ChangeLog 500 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710
  1. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added --max-overall-download-limit option. Now --max-upload-limit
  3. option is not ignored when --max-overall-upload-limit option has
  4. non-zero value. aria2 checks download(upload) speed in the order:
  5. first checks overall speed limit and if it is not exceeded, then
  6. checks speed limit per download. Thus you can specify both
  7. value. For example, set --max-overall-download-limit=1M and
  8. --max-download-limit=500K to prevent from one download from eating
  9. all overall speed limit.
  10. * src/DefaultBtInteractive.cc
  11. * src/DefaultBtInteractive.h
  12. * src/DefaultBtMessageDispatcher.cc
  13. * src/DefaultBtMessageDispatcher.h
  14. * src/DownloadCommand.cc
  15. * src/DownloadCommand.h
  16. * src/FtpNegotiationCommand.cc
  17. * src/HttpResponseCommand.cc
  18. * src/OptionHandlerFactory.cc
  19. * src/PeerInteractionCommand.cc
  20. * src/RequestGroup.cc
  21. * src/RequestGroup.h
  22. * src/RequestGroupMan.cc
  23. * src/RequestGroupMan.h
  24. * src/prefs.cc
  25. * src/prefs.h
  26. * src/usage_text.h
  27. * test/DefaultBtMessageDispatcherTest.cc
  28. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Documented select-file option in Input File section.
  30. Documented --http-auth-challenge option.
  31. * doc/aria2c.1.txt
  32. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Now select-file can be specified in the uri list(-i list).
  34. * src/BtContext.cc
  35. * src/BtContext.h
  36. * src/RequestGroup.cc
  37. * src/Sequence.h
  38. * src/download_helper.cc
  39. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Made the upper value of --max-concurrent-downloads options unlimited.
  41. * src/OptionHandlerFactory.cc
  42. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Fixed the bug that disk writer is not created even if it shares
  44. same piece with the preceding file if the length of previous file
  45. is 0.
  46. * src/MultiDiskAdaptor.cc
  47. * test/MultiDiskAdaptorTest.cc
  48. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. In BitTorrent, Open files in read-only mode for hash check. After
  50. that, re-open file in read/write mode only when the download is
  51. not finished.
  52. * src/AbstractDiskWriter.cc
  53. * src/AbstractDiskWriter.h
  54. * src/AbstractSingleDiskAdaptor.cc
  55. * src/AbstractSingleDiskAdaptor.h
  56. * src/BtCheckIntegrityEntry.cc
  57. * src/DiskAdaptor.h
  58. * src/DiskWriter.h
  59. * src/MultiDiskAdaptor.cc
  60. * src/MultiDiskAdaptor.h
  61. * src/RequestGroup.cc
  62. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  63. Added --http-auth-challenge option. If it is set to true(by
  64. default), aria2 sends HTTP authorization header only when it is
  65. requested by the server. If false is set, then authorization
  66. header is always sent to the server. This is useful for servers
  67. that don't respond 401 code when authentication is required.
  68. There is an exception: if username and password are embedded in
  69. URI, authorization header is always sent to the server regardless
  70. of this option.
  71. * src/AuthConfigFactory.cc
  72. * src/HttpSkipResponseCommand.cc
  73. * src/OptionHandlerFactory.cc
  74. * src/prefs.cc
  75. * src/prefs.h
  76. * src/usage_text.h
  77. * test/AuthConfigFactoryTest.cc
  78. * test/HttpRequestTest.cc
  79. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  80. * Release 1.2.0
  81. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Updated Spanish, Ukrainian, Russian and Japanese translations.
  83. Thanks to all translators.
  84. * po/es.po
  85. * po/ja.po
  86. * po/ru.po
  87. * po/uk.po
  88. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Call deleteSocketForReadCheck() before socket is closed.
  90. * src/HttpListenCommand.cc
  91. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Defined virtual destructor for BObject.
  93. * src/bencode.h
  94. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Rewritten BDE to make it efficient.
  96. * src/bencode.cc
  97. * src/bencode.h
  98. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Removed function throw list.
  100. * src/bencode.cc
  101. * src/bencode.h
  102. * test/BencodeTest.cc
  103. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  104. Enclosed all URLs in double quotes in command-line examples.
  105. * doc/aria2c.1.txt
  106. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Updated reference/see also section.
  108. * README
  109. * doc/aria2c.1.txt
  110. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Reorganized man page based on man man-pages.
  112. * doc/aria2c.1.txt
  113. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  115. because same documents are available in man page. Added
  116. References section.
  117. * README
  118. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  120. PERFORMANCE PROFILE section.
  121. * doc/aria2c.1.txt
  122. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Rewritten the section for configuration file.
  124. * README
  125. * doc/aria2c.1.txt
  126. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Fixed the segmentation fault during execution of choking algorithm
  128. in leecher state because of broken compare operator
  129. implementation.
  130. * src/BtLeecherStateChoke.cc
  131. * src/BtLeecherStateChoke.h
  132. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Open file in binary mode.
  134. * src/CookieStorage.cc
  135. * src/DHTSetup.cc
  136. * src/DHTUtil.cc
  137. * src/Netrc.cc
  138. * src/NsCookieParser.cc
  139. * src/ProtocolDetector.cc
  140. * src/RequestGroupMan.cc
  141. * src/Signature.cc
  142. * src/bencode.cc
  143. * src/download_helper.cc
  144. * src/option_processing.cc
  145. * test/CookieParserTest.cc
  146. * test/DefaultBtProgressInfoFileTest.cc
  147. * test/FileTest.cc
  148. * test/GZipDecoderTest.cc
  149. * test/RequestGroupManTest.cc
  150. * test/SignatureTest.cc
  151. * test/SingleFileAllocationIteratorTest.cc
  152. * test/UriListParserTest.cc
  153. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Removed operator[] because it is ambiguous with built-in []
  155. operator.
  156. * src/array_fun.h
  157. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Fixed compile error
  159. * src/OptionParser.cc
  160. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Added missing call to arrayWrapperConst
  162. * test/array_funTest.cc
  163. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Use array_wrapper instead of array_ptr.
  165. * src/DHTRoutingTableDeserializer.cc
  166. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  168. * src/array_fun.h
  169. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Added array_wrapper template.
  171. * src/array_fun.h
  172. * test/array_funTest.cc
  173. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Use operator T* of array_ptr.
  175. * src/OptionParser.cc
  176. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Use localhost instead of 127.0.0.1
  178. * test/FtpConnectionTest.cc
  179. * test/MSEHandshakeTest.cc
  180. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Added operator T*
  182. * src/array_fun.h
  183. * test/array_funTest.cc
  184. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Use dynamically allocated char array to detect memory access
  186. violation.
  187. * src/DHTRoutingTableDeserializer.cc
  188. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  190. defined.
  191. * src/PeerMessageUtil.cc
  192. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  193. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  194. * configure.ac
  195. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Added a check to see struct sockaddr_in has sin_len member.
  197. * configure.ac
  198. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Fixed buffer overrun.
  200. * src/DHTRoutingTableDeserializer.cc
  201. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Added LL for long long int constant.
  203. * test/FtpConnectionTest.cc
  204. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Casted to unsigned int to suppress compiler warning on netbsd.
  206. * src/BtRuntime.h
  207. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Assign the value of tv.tv_sec to time_t timesec instead of giving
  209. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  210. type time_t.
  211. * src/SimpleLogger.cc
  212. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Added test for FtpConnection::receiveSizeResponse().
  214. * test/FtpConnectionTest.cc
  215. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Fix epoll error on the old kernel 2.6.8 or ealier.
  217. * src/EpollEventPoll.cc
  218. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  219. Use Util::parseLLInt instead of sscanf for portability. The
  220. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  221. * src/FtpConnection.cc
  222. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  224. block. It should not filter anything.
  225. * src/BitfieldMan.cc
  226. * src/ConsoleStatCalc.cc
  227. * test/BitfieldManTest.cc
  228. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Fixed the bug that the boolean options that don't take arguments
  230. don't work.
  231. * src/OptionHandlerImpl.h
  232. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. Fixed broken selected file BitTorrent download.
  234. * src/MultiDiskAdaptor.cc
  235. * test/MultiDiskAdaptorTest.cc
  236. * test/MultiFileAllocationIteratorTest.cc
  237. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Fixed #define guard for EpollEventPoll
  239. * src/EpollEventPoll.h
  240. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Wait 2 seconds. 1 second is sometimes not enough.
  242. * test/TimeSeedCriteriaTest.cc
  243. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Use localhost instead of 127.0.0.1.
  245. * test/DHTConnectionImplTest.cc
  246. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Suppressed compiler warning.
  248. * src/AdaptiveURISelector.cc
  249. * src/DefaultPieceStorage.cc
  250. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Defined virtual destructor.
  252. * src/MetalinkParserState.h
  253. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Give NULL for second argument of getaddrinfo instead of "0".
  255. * src/NameResolver.cc
  256. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  258. included strptime doesn't parse data for this format.
  259. * src/FtpConnection.cc
  260. * test/FtpConnectionTest.cc
  261. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  262. Removed tests giving -1 for unsigned argument.
  263. * test/SingleFileDownloadContextTest.cc
  264. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Don't use sha256 in tests because it might not be supported by the
  266. SSL library.
  267. * test/MetalinkProcessorTest.cc
  268. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Removed tests giving -1 for unsigned argument.
  270. * test/AlphaNumberDecoratorTest
  271. * test/BitfieldManTest.cc
  272. * test/DefaultBtContextTest.cc
  273. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  274. Fixed compile error without libcares when epoll is available.
  275. * src/EpollEventPoll.cc
  276. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  277. Included fstream instead of iostream.
  278. * test/SignatureTest.cc
  279. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. Removed #include <algorithm>
  281. * test/RequestGroupTest.cc
  282. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  284. using RequestGroup::extractURIResult().
  285. * src/AdaptiveURISelector.cc
  286. * src/RequestGroup.cc
  287. * src/RequestGroup.h
  288. * test/RequestGroupTest.cc
  289. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Added tests for array_ptr.
  291. * test/array_funTest.cc
  292. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  293. Don't send ip parameter to a tracker if ip parameter is empty
  294. string.
  295. * src/DefaultBtAnnounce.cc
  296. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Adjusted line feed.
  298. * src/version_usage.cc
  299. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Print tags, possible values when OptionHandlerException is caught.
  301. * src/option_processing.cc
  302. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Changed the message for FatalException.
  304. * src/OptionParser.cc
  305. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Documented --bt-external-ip option in man page. Updated man pages
  307. for --proxy-method option.
  308. * doc/aria2c.1.txt
  309. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Use GET method for FTP via HTTP proxy.
  311. * src/FtpInitiateConnectionCommand.cc
  312. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. Changed the default value of --proxy-method option from 'tunnel'
  314. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  315. option.
  316. * src/AbstractCommand.cc
  317. * src/AbstractCommand.h
  318. * src/FtpInitiateConnectionCommand.cc
  319. * src/HttpDownloadCommand.cc
  320. * src/HttpInitiateConnectionCommand.cc
  321. * src/HttpInitiateConnectionCommand.h
  322. * src/OptionHandlerFactory.cc
  323. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  324. Initialized _logger
  325. * src/SelectEventPoll.cc
  326. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  327. Defined a copy constructor for the same type.
  328. * src/SharedHandle.h
  329. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  330. Added OptionParser::parseArg() which internally uses getopt_long
  331. to parse command-line options. All command-line options are now
  332. configured by OptionHandler. No manual editing of struct option*
  333. is required any more.
  334. * src/NameMatchOptionHandler.h
  335. * src/OptionHandler.h
  336. * src/OptionHandlerFactory.cc
  337. * src/OptionHandlerImpl.h
  338. * src/OptionParser.cc
  339. * src/OptionParser.h
  340. * src/array_fun.h
  341. * src/main.cc
  342. * src/option_processing.cc
  343. * test/OptionHandlerTest.cc
  344. * test/OptionParserTest.cc
  345. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. Fixed configure error with --disable-epoll
  347. * configure.ac
  348. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Fixed compile error when HAVE_EPOLL is not defined.
  350. Fixed linker error on bigendian systems.
  351. * src/SocketCore.cc
  352. * src/SocketCore.h
  353. * test/DefaultBtProgressInfoFileTest.cc
  354. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  355. Added --bt-external-ip option. You can specify the external IP
  356. address to report to a BitTorrent tracker. Although this function
  357. is named 'external', it can accept any kind of IP addresses.
  358. * src/DefaultBtAnnounce.cc
  359. * src/OptionHandlerFactory.cc
  360. * src/option_processing.cc
  361. * src/prefs.cc
  362. * src/prefs.h
  363. * src/usage_text.h
  364. * test/DefaultBtAnnounceTest.cc
  365. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. Extracted the algorithm to find the longest incremental sequence
  367. as max_sequence template.
  368. * src/LongestSequencePieceSelector.cc
  369. * src/a2algo.h
  370. * test/Makefile.am
  371. * test/a2algoTest.cc
  372. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  374. * src/usage_text.h
  375. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Updated doc for --uri-selector, --http-server-listen-port and
  377. --enable-http-server option. Documented --event-poll option.
  378. * doc/aria2c.1.txt
  379. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Updated doc for --enable-http-server.
  381. * src/usage_text.h
  382. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Documented --http-server-listen-port and --enable-http-server in
  384. man page.
  385. * doc/aria2c.1.txt
  386. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  388. translations. Thanks to all translators.
  389. * po/es.po
  390. * po/id.po
  391. * po/it.po
  392. * po/ru.po
  393. * po/uk.po
  394. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Bump up version number to 1.2.0
  396. * configure.ac
  397. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. BtContext::getAnnounceTiers() now returns const reference.
  399. * src/BtContext.h
  400. * src/DefaultBtContext.cc
  401. * src/DefaultBtContext.h
  402. * test/MockBtContext.h
  403. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  404. Change the number of retries for tracker request based on the
  405. number of available tracker in a torrent file.
  406. * src/TrackerWatcherCommand.cc
  407. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Added _maxTries property to RequestGroup and assign the option
  409. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  410. RequestGroup::getMaxTries() instead of
  411. Option::getAsInt(PREF_MAX_TRIES).
  412. * src/AbstractCommand.cc
  413. * src/RequestGroup.cc
  414. * src/RequestGroup.h
  415. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  417. Mandriva. I modified the patch: make RequestGroup have the
  418. timeout value and AdaptiveURISelector directly modifies that
  419. value.
  420. * src/AbstractCommand.cc
  421. * src/AdaptiveURISelector.cc
  422. * src/AdaptiveURISelector.h
  423. * src/FtpNegotiationCommand.cc
  424. * src/RequestGroup.cc
  425. * src/RequestGroup.h
  426. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  427. Fixed compiler warning
  428. * test/IteratableChecksumValidatorTest.cc
  429. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  431. integrated downloads. This PieceSelector subclass finds the
  432. longest continuous sequence in the available missing pieces and
  433. selects the last index of such sequence. This makes HTTP/FTP
  434. connections less interrupted by the pieces obtained by BitTorrent
  435. peers.
  436. * src/DefaultPieceStorage.cc
  437. * src/DefaultPieceStorage.h
  438. * src/LongestSequencePieceSelector.cc
  439. * src/LongestSequencePieceSelector.h
  440. * src/Makefile.am
  441. * src/PieceSelector.h
  442. * src/RarestPieceSelector.h
  443. * src/RequestGroup.cc
  444. * test/BtDependencyTest.cc
  445. * test/DefaultPieceStorageTest.cc
  446. * test/IteratableChecksumValidatorTest.cc
  447. * test/LongestSequencePieceSelectorTest.cc
  448. * test/Makefile.am
  449. * test/SegmentManTest.cc
  450. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  451. Fixed the bug that the average speed is wrong in
  452. http/ftp/BitTorrent integrated download. Only the download bytes
  453. in BitTorrent were considered.
  454. * src/RequestGroup.cc
  455. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Choose port for BitTorrent/DHT randomly from the specified range.
  457. * src/DHTConnectionImpl.cc
  458. * src/PeerListenCommand.cc
  459. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Send HTTP Authorization header only if it is requested by the
  461. server(response 401). There are some exceptions. The authorization
  462. header for proxy is always sent if it is available without request
  463. by the server. If username/password is specified in the URI, it
  464. is immediately sent to the server without request by the server.
  465. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  466. SharedHandle<AuthConfig>().
  467. NetrcAuthResolver::resolveAuthConfig() returns
  468. SharedHandle<AuthConfig>() if no AuthConfig is available.
  469. * src/AbstractAuthResolver.cc
  470. * src/AbstractProxyRequestCommand.cc
  471. * src/AuthConfigFactory.cc
  472. * src/AuthConfigFactory.h
  473. * src/HttpConnection.cc
  474. * src/HttpRequest.cc
  475. * src/HttpRequest.h
  476. * src/HttpResponse.cc
  477. * src/HttpResponseCommand.cc
  478. * src/HttpSkipResponseCommand.cc
  479. * test/AuthConfigFactoryTest.cc
  480. * test/HttpRequestTest.cc
  481. * test/HttpResponseTest.cc
  482. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Remove leading "--" from help keyword and a substring after "="
  484. from help keyword, so that one can query options by '-h--max-' or
  485. '-hmax-peers=10'.
  486. * src/option_processing.cc
  487. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. Rewritten PStringVisitor and its implementation.
  489. * src/PStringBuildVisitor.cc
  490. * src/PStringBuildVisitor.h
  491. * src/PStringDatum.h
  492. * src/PStringNumLoop.h
  493. * src/PStringSegment.cc
  494. * src/PStringSegment.h
  495. * src/PStringSelect.h
  496. * src/PStringVisitor.h
  497. * src/download_helper.cc
  498. * test/PStringBuildVisitorTest.cc
  499. * test/ParameterizedStringParserTest.cc
  500. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Persist connection between the built-in HTTP server and a client
  502. if a client supports keep-alive. Fixed the bug that aria2 exits
  503. when the HTTP server receives EOF from a client.
  504. * src/HttpServer.cc
  505. * src/HttpServer.h
  506. * src/HttpServerCommand.cc
  507. * src/HttpServerCommand.h
  508. * src/HttpServerResponseCommand.cc
  509. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Added experimental built-in HTTP server. Currently, when a client
  511. accesses to the server, it responds with the current download
  512. progress. By default, it is disabled. To enable the server, give
  513. --enable-http-server option. To change the default port number
  514. for the server to listen to, use --http-server-listen-port option.
  515. The response HTML is very simple and refreshes it self each 1
  516. second. Because of this refresh, you see flicker in normal web
  517. browser such as Firefox. I recommend to use console-based browser
  518. such as elinks, w3m. To connect to the server, run 'elinks
  519. http://localhost:6800/' while running aria2. Please replace port
  520. number '6800'(which is default) with your preference.
  521. * src/DownloadEngineFactory.cc
  522. * src/HttpHeader.cc
  523. * src/HttpHeader.h
  524. * src/HttpHeaderProcessor.cc
  525. * src/HttpHeaderProcessor.h
  526. * src/HttpListenCommand.cc
  527. * src/HttpListenCommand.h
  528. * src/HttpServer.cc
  529. * src/HttpServer.h
  530. * src/HttpServerCommand.cc
  531. * src/HttpServerCommand.h
  532. * src/HttpServerResponseCommand.cc
  533. * src/HttpServerResponseCommand.h
  534. * src/Makefile.am
  535. * src/OptionHandlerFactory.cc
  536. * src/Util.cc
  537. * src/Util.h
  538. * src/help_tags.h
  539. * src/option_processing.cc
  540. * src/prefs.cc
  541. * src/prefs.h
  542. * src/usage_text.h
  543. * test/HttpHeaderProcessorTest.cc
  544. * test/UtilTest.cc
  545. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. Removed.
  547. * src/CheckIntegrityMan.cc
  548. * src/FileAllocationMan.cc
  549. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Made (piece) hash check sequential for each RequestGroup because
  551. simultaneous hash check is slower than sequential execution.
  552. * src/CheckIntegrityCommand.cc
  553. * src/CheckIntegrityDispatcherCommand.cc
  554. * src/CheckIntegrityDispatcherCommand.h
  555. * src/CheckIntegrityMan.h
  556. * src/ConsoleStatCalc.cc
  557. * src/DownloadCommand.cc
  558. * src/DownloadEngine.cc
  559. * src/DownloadEngine.h
  560. * src/DownloadEngineFactory.cc
  561. * src/Makefile.am
  562. * src/Makefile.in
  563. * src/RequestGroup.cc
  564. * src/StatCalc.h
  565. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  567. SequentialDispatcherCommand.
  568. * src/FileAllocationDispatcherCommand.cc
  569. * src/SequentialDispatcherCommand.h
  570. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Rewritten FileAllocationDispatcherCommand using brand new
  572. SequentialDispatcherCommand.
  573. * src/DownloadEngineFactory.cc
  574. * src/FileAllocationCommand.cc
  575. * src/FileAllocationDispatcherCommand.cc
  576. * src/FileAllocationDispatcherCommand.h
  577. * src/Makefile.am
  578. * src/SequentialDispatcherCommand.h
  579. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Replaced FileAllocationMan with
  581. SequentialPicker<FileAllocationEntry>.
  582. * src/BtCheckIntegrityEntry.cc
  583. * src/ConsoleStatCalc.cc
  584. * src/DownloadEngine.cc
  585. * src/DownloadEngine.h
  586. * src/DownloadEngineFactory.cc
  587. * src/FileAllocationCommand.cc
  588. * src/FileAllocationDispatcherCommand.cc
  589. * src/FileAllocationMan.h
  590. * src/Makefile.am
  591. * src/SequentialPicker.h
  592. * src/StatCalc.h
  593. * src/StreamCheckIntegrityEntry.cc
  594. * test/Makefile.am
  595. * test/SequentialPickerTest.cc
  596. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Added doc for adaptive URI selector.
  598. * doc/aria2c.1.txt
  599. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  600. Added doc for adaptive URI selector.
  601. * src/usage_text.h
  602. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  603. Added doc for --bt-max-peers option.
  604. * doc/aria2c.1.txt
  605. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Added doc for --bt-hash-check-seed option.
  607. * doc/aria2c.1.txt
  608. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  609. Documented exit codes.
  610. * doc/aria2c.1.txt
  611. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  612. Added --bt-max-peers option to specify the maximum number of peers
  613. per torrent. 0 means unlimited number of peers.
  614. * src/ActivePeerConnectionCommand.cc
  615. * src/BtRuntime.h
  616. * src/DefaultPeerStorage.cc
  617. * src/DefaultPeerStorage.h
  618. * src/OptionHandlerFactory.cc
  619. * src/RequestGroup.cc
  620. * src/option_processing.cc
  621. * src/prefs.cc
  622. * src/prefs.h
  623. * src/usage_text.h
  624. * test/DefaultPeerStorageTest.cc
  625. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Added --bt-hash-check-seed option. If true is given to this
  627. option, after hash check using --check-integrity option and file
  628. is complete, continue to seed file. If you want to check file and
  629. download it only when it is damaged or incomplete, set this option
  630. to false. This option has effect only on BitTorrent download.
  631. The default value is true(This is the same behavior with the
  632. previous release).
  633. * src/BtCheckIntegrityEntry.cc
  634. * src/OptionHandlerFactory.cc
  635. * src/option_processing.cc
  636. * src/prefs.cc
  637. * src/prefs.h
  638. * src/usage_text.h
  639. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. Updated copyright year.
  641. * src/version_usage.cc
  642. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Rewritten the usage text for --bt-request-peer-speed-limit option.
  644. * doc/aria2c.1.txt
  645. * src/usage_text.h
  646. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Made the max value of split option unlimited.
  648. * doc/aria2c.1.txt
  649. * src/OptionHandlerFactory.cc
  650. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Fixed compile warning/error.
  652. * src/DownloadResult.h
  653. * src/HttpDownloadCommand.cc
  654. * src/ServerStat.cc
  655. * test/RequestGroupTest.cc
  656. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Added --event-poll option to select the method for polling events.
  658. The available methods are "select" and "epoll". "epoll" is
  659. available on Linux only. The earlier release has the compile
  660. option to choose from these methods.
  661. * configure.ac
  662. * src/RequestGroupMan.cc
  663. * src/OptionHandlerFactory.cc
  664. * src/EpollEventPoll.h
  665. * src/StreamFileAllocationEntry.cc
  666. * src/a2io.h
  667. * src/SelectEventPoll.h
  668. * src/option_processing.cc
  669. * src/prefs.h
  670. * src/EpollEventPoll.cc
  671. * src/EventPoll.h
  672. * src/SocketCore.h
  673. * src/Makefile.am
  674. * src/main.cc
  675. * src/DownloadEngine.h
  676. * src/SelectEventPoll.cc
  677. * src/DownloadEngine.cc
  678. * src/SocketCore.cc
  679. * src/DownloadEngineFactory.cc
  680. * src/Makefile.in
  681. * src/prefs.cc
  682. * src/usage_text.h
  683. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Included RecoverableException.h from main.cc
  685. * src/main.cc
  686. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  688. now returns last error encountered in the HTTP/FTP downloads as a
  689. exit status value. If all downloads finished successfully, aria2
  690. returns 0. The error code is defined in src/DownloadResult.h.
  691. The error occurred in the download currently in progress is not
  692. reported as a last error. If no error has encountered but there
  693. are in progress or waiting downloads, aria2 returns 7.
  694. * src/AbstractCommand.cc
  695. * src/DlAbortEx.h
  696. * src/DlRetryEx.h
  697. * src/DownloadCommand.cc
  698. * src/DownloadFailureException.h
  699. * src/DownloadResult.h
  700. * src/FtpNegotiationCommand.cc
  701. * src/HttpSkipResponseCommand.cc
  702. * src/Makefile.am
  703. * src/MultiUrlRequestInfo.cc
  704. * src/MultiUrlRequestInfo.h
  705. * src/RecoverableException.h
  706. * src/RequestGroup.cc
  707. * src/RequestGroup.h
  708. * src/RequestGroupMan.cc
  709. * src/RequestGroupMan.h
  710. * src/URIResult.cc
  711. * src/URIResult.h
  712. * src/main.cc
  713. * src/option_processing.cc
  714. * test/RequestGroupTest.cc
  715. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  717. patch adds AdaptiveURISelector, which selects one of the bests
  718. mirrors for first and reserved connections. For supplementary
  719. ones, it returns mirrors which has not been tested yet, and if
  720. each of them already tested, returns mirrors which has to be
  721. tested again. Otherwise, it doesn't return anymore mirrors.
  722. * src/AdaptiveURISelector.cc
  723. * src/AdaptiveURISelector.h
  724. * src/FtpNegotiationCommand.cc
  725. * src/HttpResponseCommand.cc
  726. * src/Makefile.am
  727. * src/Makefile.in
  728. * src/OptionHandlerFactory.cc
  729. * src/RequestGroup.cc
  730. * src/RequestGroup.h
  731. * src/RequestGroupMan.cc
  732. * src/ServerStat.cc
  733. * src/ServerStat.h
  734. * src/ServerStatMan.cc
  735. * src/SpeedCalc.cc
  736. * src/URISelector.h
  737. * src/prefs.cc
  738. * src/prefs.h
  739. * test/RequestGroupManTest.cc
  740. * test/ServerStatManTest.cc
  741. * test/ServerStatTest.cc
  742. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Fixed unit test error.
  744. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  745. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. * Release 1.1.2
  747. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Updated Russian translation. Thanks to the translators.
  749. * po/ru.po
  750. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Added the description of --use-head option to man page.
  752. * doc/aria2c.1.txt
  753. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Bump up version number to 1.1.2
  755. * configure.ac
  756. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Added --use-head option to toggle whether HEAD method should be
  758. used in the first HTTP request. By default aria2 uses HEAD method
  759. as the first request. When the server doesn't recognize HEAD, then
  760. give aria2 --use-head=false to force aria2 to use GET method
  761. instead.
  762. * src/OptionHandlerFactory.cc
  763. * src/RequestGroupMan.cc
  764. * src/option_processing.cc
  765. * src/prefs.cc
  766. * src/prefs.h
  767. * src/usage_text.h
  768. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Fixed the bug that BitTorrent download doesn't finish when REJECT
  770. message is received before CHOKE message. The old implementation
  771. doen't clear the use-bit of the piece when recieved REJECT
  772. message.
  773. * src/DefaultBtMessageDispatcher.cc
  774. * test/DefaultBtMessageDispatcherTest.cc
  775. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. * Release 1.1.1
  777. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Bump up version number to 1.1.1.
  779. * configure.ac
  780. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Fixed the bug that --summary-interval=0 doesn't work. The summary
  782. is printed repeatedly.
  783. * src/ConsoleStatCalc.cc
  784. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  785. * Release 1.1.0
  786. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Added ifdef clause for conditional compilation.
  788. * src/main.cc
  789. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  791. translations. Thanks to all translators.
  792. * po/ja.po
  793. * po/ru.po
  794. * po/uk.po
  795. * po/zh_CN.po
  796. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Added the preceding ">>> " before the message "Printing the
  798. contents of file..." to make the output more readable.
  799. * src/main.cc
  800. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Added try-catch block in the loop in showFiles() to continue the
  802. operation even if the exception occurred in one file.
  803. * src/main.cc (showFiles)
  804. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Made messages in showFiles() translatable.
  806. * po/aria2.pot
  807. * src/main.cc
  808. * src/message.h
  809. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  810. Print the contents of Torrent/Metalink files are printed without
  811. -T/-M options.
  812. * src/main.cc
  813. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Escaped '--' with '\--'
  815. * README
  816. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Updated "How to build" section in README. Mentioned about
  818. --with-ca-bundle compile option.
  819. * README
  820. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Bump up version number to 1.1.0.
  822. * configure.ac
  823. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Added a note for --dht-listen-port option.
  825. * doc/aria2c.1.txt
  826. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  827. Update doc for --realtime-chunk-checksum option.
  828. * doc/aria2c.1.txt
  829. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Update doc for --realtime-chunk-checksum option.
  831. * src/usage_text.h
  832. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Updated French, Japanese, Russian and Ukrainian translations.
  834. Thanks to all translators.
  835. * po/fr.po
  836. * po/ja.po
  837. * po/ru.po
  838. * po/uk.po
  839. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Renamed aria2c.pot to aria2.pot
  841. * po/aria2.pot
  842. * po/aria2c.pot: Removed.
  843. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Removed MetaEntry.h
  845. * src/Makefile.am
  846. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Rename file by appending digits if a local file exists and its
  848. file size is larger than that of remote file with --continue
  849. option. The old implementation just throws exception in such case.
  850. * src/RequestGroup.cc
  851. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Fixed the bug that download progress summary is not printed in the
  853. interval specified by the option.
  854. * src/ConsoleStatCalc.cc
  855. * src/ConsoleStatCalc.h
  856. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. Fixed compiler warning
  858. * src/Cookie.cc
  859. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Fixed the cookie implementation based on RFC2965.
  861. Now if a value in domain field is not started with dot, then
  862. prepend dot. That means a cookie with domain=sf.net is sent to
  863. wiki.sf.net.
  864. * src/Cookie.cc
  865. * test/CookieParserTest.cc
  866. * test/CookieStorageTest.cc
  867. * test/CookieTest.cc
  868. * test/NsCookieParserTest.cc
  869. * test/Sqlite3MozCookieParserTest.cc
  870. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  871. Fixed the bug that causes corrupted downloads if HTTP pipelining
  872. is enabled and the server doesn't support keep-alive.
  873. * src/AbstractCommand.cc
  874. * src/DownloadCommand.cc
  875. * src/HttpDownloadCommand.cc
  876. * src/HttpDownloadCommand.h
  877. * src/HttpResponseCommand.cc
  878. * src/Request.cc
  879. * src/Request.h
  880. * test/RequestTest.cc
  881. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  882. Removed Dictionary/List/Data and its related classes.
  883. * src/BencodeVisitor.cc: Removed.
  884. * src/BencodeVisitor.h: Removed.
  885. * src/Data.cc: Removed.
  886. * src/Data.h: Removed.
  887. * src/Dictionary.cc: Removed.
  888. * src/Dictionary.h: Removed.
  889. * src/List.cc: Removed.
  890. * src/List.h: Removed.
  891. * src/Makefile.am
  892. * src/MetaEntry.h: Removed.
  893. * src/MetaEntryVisitor.h: Removed.
  894. * src/MetaFileUtil.cc: Removed.
  895. * src/MetaFileUtil.h: Removed.
  896. * test/BencodeVisitorTest.cc: Removed.
  897. * test/DataTest.cc: Removed.
  898. * test/DictionaryTest.cc: Removed.
  899. * test/ListTest.cc: Removed.
  900. * test/Makefile.am
  901. * test/MetaFileUtilTest.cc: Removed.
  902. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  903. Removed include of MetaEntry.h
  904. * test/DHTMessageTrackerEntryTest.cc
  905. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Use BDE instead of Dictionary/List/Data.
  907. * src/AnnounceList.cc
  908. * src/AnnounceList.h
  909. * test/AnnounceListTest.cc
  910. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  911. Use BDE instead of Dictionary/List/Data.
  912. * src/DHTAbstractMessage.cc
  913. * src/DHTAbstractMessage.h
  914. * src/DHTAnnouncePeerMessage.cc
  915. * src/DHTAnnouncePeerMessage.h
  916. * src/DHTAnnouncePeerReplyMessage.cc
  917. * src/DHTAnnouncePeerReplyMessage.h
  918. * src/DHTFindNodeMessage.cc
  919. * src/DHTFindNodeMessage.h
  920. * src/DHTFindNodeReplyMessage.cc
  921. * src/DHTFindNodeReplyMessage.h
  922. * src/DHTGetPeersMessage.cc
  923. * src/DHTGetPeersMessage.h
  924. * src/DHTGetPeersReplyMessage.cc
  925. * src/DHTGetPeersReplyMessage.h
  926. * src/DHTMessageFactory.h
  927. * src/DHTMessageFactoryImpl.cc
  928. * src/DHTMessageFactoryImpl.h
  929. * src/DHTMessageReceiver.cc
  930. * src/DHTMessageTracker.cc
  931. * src/DHTMessageTracker.h
  932. * src/DHTPingMessage.cc
  933. * src/DHTPingMessage.h
  934. * src/DHTPingReplyMessage.cc
  935. * src/DHTPingReplyMessage.h
  936. * src/DHTQueryMessage.cc
  937. * src/DHTQueryMessage.h
  938. * src/DHTResponseMessage.cc
  939. * src/DHTResponseMessage.h
  940. * test/DHTAnnouncePeerMessageTest.cc
  941. * test/DHTAnnouncePeerReplyMessageTest.cc
  942. * test/DHTFindNodeMessageTest.cc
  943. * test/DHTFindNodeReplyMessageTest.cc
  944. * test/DHTGetPeersMessageTest.cc
  945. * test/DHTGetPeersReplyMessageTest.cc
  946. * test/DHTMessageFactoryImplTest.cc
  947. * test/DHTMessageTrackerTest.cc
  948. * test/DHTPingMessageTest.cc
  949. * test/DHTPingReplyMessageTest.cc
  950. * test/MockDHTMessageFactory.h
  951. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Added tests the case where length < 0 is specified.
  953. * test/BencodeTest.cc
  954. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  955. Fixed memory leak in decoderawstring()
  956. * src/bencode.cc
  957. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Added missing #ifdef guard. Added uc() function for String and
  959. removeKey() for Dict.
  960. * src/bencode.cc
  961. * src/bencode.h
  962. * test/BencodeTest.cc
  963. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Use BDE instead of Dictionary/List/Data.
  965. * src/HandshakeExtensionMessage.cc
  966. * src/HandshakeExtensionMessage.h
  967. * test/HandshakeExtensionMessageTest.cc
  968. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  969. Added --max-overall-upload-limit option. This option limits the
  970. overall upload speed. Stated in help message that the existing
  971. --max-upload-limit option limits the upload speed per each
  972. torrent. Man page is also updated.
  973. * doc/aria2c.1.txt
  974. * src/DefaultBtMessageDispatcher.cc
  975. * src/DefaultBtMessageDispatcher.h
  976. * src/OptionHandlerFactory.cc
  977. * src/PeerInteractionCommand.cc
  978. * src/option_processing.cc
  979. * src/prefs.cc
  980. * src/prefs.h
  981. * src/usage_text.h
  982. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  983. Use BDE instead of Dictionary/List/Data classes.
  984. * src/CompactPeerListProcessor.cc
  985. * src/CompactPeerListProcessor.h
  986. * src/DefaultBtAnnounce.cc
  987. * src/DefaultBtContext.cc
  988. * src/DefaultBtContext.h
  989. * src/DefaultPeerListProcessor.cc
  990. * src/DefaultPeerListProcessor.h
  991. * src/DelegatingPeerListProcessor.cc
  992. * src/DelegatingPeerListProcessor.h
  993. * src/PeerListProcessor.h
  994. * src/UTPexExtensionMessage.cc
  995. * src/Util.h
  996. * src/message.h
  997. * test/DefaultBtContextTest.cc
  998. * test/DefaultPeerListProcessorTest.cc
  999. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1000. Added bencode helper functions and BDE class.
  1001. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1002. * src/Makefile.am
  1003. * src/bencode.cc
  1004. * src/bencode.h
  1005. * test/BencodeTest.cc
  1006. * test/Makefile.am
  1007. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Fixed the bug that bad URI is sent to the tracker when the announe
  1009. URI in torrent file includes query.
  1010. * src/DefaultBtAnnounce.cc
  1011. * test/DefaultBtAnnounceTest.cc
  1012. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Added Option::blank().
  1014. Use !Option::blank(name) instead of Option::defined(name) for
  1015. the options that take filename.
  1016. * src/MultiUrlRequestInfo.cc
  1017. * src/Option.cc
  1018. * src/Option.h
  1019. * src/main.cc
  1020. * src/option_processing.cc
  1021. * test/OptionTest.cc
  1022. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Documented the default value of --check-certificate option in man
  1024. page.
  1025. * doc/aria2c.1.txt
  1026. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1027. Enabled --check-certificate by default. Added compile
  1028. time(configure) option --with-ca-bundle to specify CA bundle.
  1029. Warn if --check-certificate=true and --ca-certificate is not
  1030. specified or loading CA certificate is failed.
  1031. * configure.ac
  1032. * src/MultiUrlRequestInfo.cc
  1033. * src/OptionHandlerFactory.cc
  1034. * src/message.h
  1035. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. Mentioned https tag in help option.
  1037. * doc/aria2c.1.txt
  1038. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1039. Added `https' tag to help option category. Added https tag to
  1040. --ca-certificate, --certificate, --check-certificate and
  1041. --private-key option.
  1042. * src/OptionHandlerFactory.cc
  1043. * src/help_tags.h
  1044. * src/option_processing.cc
  1045. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Changed the package name from `aria2c' to `aria2' in order to fix
  1047. the packaging issue in Debian and Fedora. The name of the
  1048. executable is not changed.
  1049. * configure.ac
  1050. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1051. Fixed typos
  1052. * src/usage_text.h
  1053. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Fixed typos and updated doc.
  1055. * README
  1056. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Fixed typos
  1058. * doc/aria2c.1.txt
  1059. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Fixed typos
  1061. * src/usage_text.h
  1062. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1063. Print a message when no files to download.
  1064. * src/download_helper.cc
  1065. * src/main.cc
  1066. * src/message.h
  1067. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. RFC3986 complied Percent-Encoding(urlencode).
  1069. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1070. ones.
  1071. * src/Request.cc
  1072. * src/Util.cc
  1073. * src/Util.h
  1074. * test/BtHandshakeMessageTest.cc
  1075. * test/DefaultBtAnnounceTest.cc
  1076. * test/DefaultBtContextTest.cc
  1077. * test/RequestTest.cc
  1078. * test/UtilTest.cc
  1079. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Fixed the bug that prevents aria2 from downloading 0-length files
  1081. via HTTP/FTP.
  1082. * src/DefaultBtContext.cc
  1083. * src/DefaultBtContext.h
  1084. * src/DownloadContext.h
  1085. * src/FtpNegotiationCommand.cc
  1086. * src/HttpResponseCommand.cc
  1087. * src/HttpResponseCommand.h
  1088. * src/RequestGroup.cc
  1089. * src/SingleFileDownloadContext.cc
  1090. * src/SingleFileDownloadContext.h
  1091. * test/BtPostDownloadHandlerTest.cc
  1092. * test/MetalinkPostDownloadHandlerTest.cc
  1093. * test/MockBtContext.h
  1094. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1096. * src/option_processing.cc
  1097. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Applied aria2-1.0.1-mingw.patch.
  1099. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1100. mingw.
  1101. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1102. * src/SocketCore.cc
  1103. * src/a2netcompat.h
  1104. * test/SocketCoreTest.cc
  1105. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1106. * Release 1.0.1
  1107. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Updated Ukrainian and Norwegian Nynorsk translations.
  1109. Thanks to all translators.
  1110. * po/nn.po
  1111. * po/uk.po
  1112. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1113. Don't show download result when -S option is used.
  1114. * src/main.cc
  1115. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Bump up version number to 1.0.1
  1117. * configure.ac
  1118. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1119. Closed files after the test cases in MultiDiskWriterTest::
  1120. testResetDiskWriterEntries(). This will fix the unit test error
  1121. in mingw32 build.
  1122. * test/MultiDiskWriterTest.cc
  1123. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Use HEAD method to get file size from HTTP server for segmented
  1125. downloading.
  1126. The request to the BitTorrent Tracker always uses GET method because
  1127. the response of the tracker is small and it doesn't need segmented
  1128. download.
  1129. * src/FtpNegotiationCommand.cc
  1130. * src/HttpRequest.cc
  1131. * src/HttpResponseCommand.cc
  1132. * src/HttpSkipResponseCommand.cc
  1133. * src/RequestGroup.cc
  1134. * src/RequestGroup.h
  1135. * src/TrackerWatcherCommand.cc
  1136. * test/HttpRequestTest.cc
  1137. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1138. Fixed the bug that causes floating exception when -T option is used and
  1139. no URIs are given.
  1140. * src/download_helper.cc
  1141. * test/DownloadHelperTest.cc
  1142. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1143. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1144. errors in MinGW:
  1145. Closed file after saving server stats (RequestGroupMan.cc)
  1146. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1147. Ignored case & handled 2-digit years (strptime.c)
  1148. Added missing suseconds_t definition (a2time.h)
  1149. Fixed socket CLOSE() define (SocketCore.cc)
  1150. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1151. Changed utime() test values from x000 to x00000 as MinGW failed on
  1152. values less than timezone offset from Unix epoch
  1153. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1154. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1155. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1156. handle negative dates (CookieParserTest.cc)
  1157. * src/a2time.h
  1158. * src/FtpConnection.cc
  1159. * src/RequestGroupMan.cc
  1160. * src/SocketCore.cc
  1161. * src/strptime.c
  1162. * test/CookieParserTest.cc
  1163. * test/CopyDiskAdaptorTest.cc
  1164. * test/FileTest.cc
  1165. * test/FtpConnectionTest.cc
  1166. * test/MultiDiskAdaptorTest.cc
  1167. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1168. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1169. * doc/aria2c.1.txt
  1170. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1171. * Release 1.0.0
  1172. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Added '~' to reserved characters.
  1174. * src/Util.cc
  1175. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Do not urlencode Request::url in setUrl() because we want unmodified
  1177. URL using Request::getUrl()
  1178. * src/Request.cc
  1179. * src/Request.h
  1180. * test/RequestTest.cc
  1181. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1182. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  1183. Thanks to all translators.
  1184. * po/bg.po
  1185. * po/fr.po
  1186. * po/ja.po
  1187. * po/ru.po
  1188. * po/uk.po
  1189. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Bump up version number to 1.0.0
  1191. * configure.ac
  1192. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1193. Added nosqlite3 build to build_test.sh.
  1194. Renamed noxml as expat.
  1195. * build_test.sh
  1196. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Updated INPUT FILE section.
  1198. * doc/aria2c.1.txt
  1199. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  1201. on big endian systems because test .aria2 files are made for little
  1202. endian systems.
  1203. * test/DefaultBtProgressInfoFileTest.cc
  1204. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1205. Dropped ares support.
  1206. * README
  1207. * configure.ac
  1208. * m4/libares.m4: Removed.
  1209. * src/AsyncNameResolver.cc
  1210. * src/Makefile.am
  1211. * test/Makefile.am
  1212. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  1214. Removed const qualifier from DiskWriter::size().
  1215. * src/AbstractDiskWriter.cc
  1216. * src/AbstractDiskWriter.h
  1217. * src/ByteArrayDiskWriter.cc
  1218. * src/ByteArrayDiskWriter.h
  1219. * src/DiskWriter.h
  1220. * test/ByteArrayDiskWriterTest.cc
  1221. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Fixed the bug that causes segmentation fault/bus error during executing
  1223. choking algorithm while seeding. This is caused by improper
  1224. implementation of compare function which returns inconsistent results
  1225. depending on the timing of last unchoke.
  1226. * src/BtSeederStateChoke.cc
  1227. * src/BtSeederStateChoke.h
  1228. * src/DefaultPeerStorage.cc
  1229. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Removed TODO
  1231. * TODO
  1232. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1233. Added a section that explains how to pass argument to options that
  1234. takes optional arguments with its short form.
  1235. * doc/aria2c.1.txt
  1236. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Added -u for the short form of --max-upload-limit option.
  1238. * doc/aria2c.1.txt
  1239. * src/option_processing.cc
  1240. * src/usage_text.h
  1241. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1242. Added -V for the short form of --check-integrity option.
  1243. Now the argument of --check-integrity option is optional:
  1244. if it is omitted, it is evaluated as true.
  1245. * doc/aria2c.1.txt
  1246. * src/option_processing.cc
  1247. * src/usage_text.h
  1248. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Made the default value of --ftp-pasv option set to true and it can take
  1250. true/false values.
  1251. * src/OptionHandlerFactory.cc
  1252. * src/option_processing.cc
  1253. * src/usage_text.h
  1254. * doc/aria2c.1.txt
  1255. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Given custom random number generator to std::random_shuffle.
  1257. * src/AnnounceList.cc
  1258. * src/BtLeecherStateChoke.cc
  1259. * src/BtSeederStateChoke.cc
  1260. * src/DefaultBtRequestFactory.cc
  1261. * src/MetalinkEntry.cc
  1262. * src/RarestPieceSelector.cc
  1263. * src/SimpleRandomizer.cc
  1264. * src/SimpleRandomizer.h
  1265. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1266. Now the default value of --enable-direct-io is true.
  1267. * src/OptionHandlerFactory.cc
  1268. * doc/aria2c.1.txt
  1269. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Erase peer before executing onReturningPeer and onErasingPeer
  1271. because choking algorithm called from onReturningPeer doesn't
  1272. like erasing peer in the active peer list.
  1273. * src/DefaultPeerStorage.cc
  1274. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Instead of creating special filename in createDownloadResult() if
  1276. inMemoryDownload() is true, now it is done in getFilePath().
  1277. * src/RequestGroup.cc
  1278. * test/RequestGroupTest.cc
  1279. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Print "[MEMORY]" and filename if a file is not saved in disk and just
  1281. processed in memory. This is the fix for previous comment out.
  1282. * src/MemoryBufferPreDownloadHandler.cc
  1283. * src/RequestGroup.cc
  1284. * src/RequestGroup.h
  1285. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Commented out the code which sets virtual directory path "[MEMORY]"
  1287. propagate directory to store to following RequestGroup.
  1288. * src/MemoryBufferPreDownloadHandler.cc
  1289. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Bump up version number to 1.0.0b
  1291. * configure.ac
  1292. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Added input_uris.txt to EXTRA_DIST
  1294. * test/Makefile.am
  1295. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Removed PeerObject.h from Makefile.am
  1297. * src/Makefile.am
  1298. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1299. Avoid slow seeding
  1300. * src/PeerInteractionCommand.cc
  1301. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1302. Updated usage for -i option.
  1303. * src/usage_text.h (TEXT_INPUT_FILE)
  1304. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Added INPUT FILE section to man page.
  1306. Escaped fake URLs.
  1307. * doc/aria2c.1.txt
  1308. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Fixed wrong note position for -o option.
  1310. * doc/aria2c.1.txt
  1311. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Fixed compile error without SSL/XML library.
  1313. * src/DefaultBtProgressInfoFile.cc
  1314. * src/DefaultBtProgressInfoFile.h
  1315. * src/FileMetalinkParserState.cc
  1316. * src/RequestGroup.h
  1317. * src/SocketCore.cc
  1318. * src/SocketCore.h
  1319. * src/VerificationMetalinkParserState.cc
  1320. * src/download_helper.h
  1321. * src/main.cc
  1322. * test/DefaultBtProgressInfoFileTest.cc
  1323. * test/DownloadHelperTest.cc
  1324. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Rewritten URI handling functions. They are now provided as a testable
  1326. functions.
  1327. * src/Makefile.am
  1328. * src/RequestGroup.cc
  1329. * src/RequestGroup.h
  1330. * src/download_helper.cc
  1331. * src/download_helper.h
  1332. * src/main.cc
  1333. * test/DownloadHelperTest.cc
  1334. * test/Makefile.am
  1335. * test/input_uris.txt
  1336. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Quickly terminate commands when ctrl-c is pressed.
  1338. * src/DownloadEngine.cc
  1339. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Quickly terminate idle commands when download finished.
  1341. * src/AbstractCommand.cc
  1342. * src/DownloadCommand.cc
  1343. * src/DownloadEngine.cc
  1344. * src/DownloadEngine.h
  1345. * src/SleepCommand.cc
  1346. * src/SleepCommand.h
  1347. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Added the ability to specify output filename and directory in input
  1349. file.
  1350. Additional parameters are added in the following line of URIs
  1351. with proceeding white space(s), 1 parameter in 1 line.
  1352. The parameter names are the same with the command-line option name
  1353. without proceeding "--". Not all the options are available here:
  1354. at the moment, 'dir' and 'out' options are avialable.
  1355. Please note that out option has no effect against Metalink or BitTorrent
  1356. downloads.
  1357. Example input file:
  1358. http://host/foo-1.1.tar.bz2
  1359. out=foo.tar.bz2
  1360. dir=/tmp/downloads
  1361. http://host/thundermonkey-2.0.tar.bz2
  1362. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1363. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1364. thundermonkey-2.0.tar.bz2 is saved as
  1365. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1366. * src/BtPostDownloadHandler.cc
  1367. * src/Metalink2RequestGroup.cc
  1368. * src/Metalink2RequestGroup.h
  1369. * src/MetalinkPostDownloadHandler.cc
  1370. * src/UriListParser.cc
  1371. * src/UriListParser.h
  1372. * src/main.cc
  1373. * test/Metalink2RequestGroupTest.cc
  1374. * test/UriListParserTest.cc
  1375. * test/filelist1.txt
  1376. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Fixed error when SSL library is not found.
  1378. * configure.ac
  1379. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Cross referenced among -s, -C and -j options.
  1381. Updated usage of -C and -s options.
  1382. * src/usage_text.h
  1383. * doc/aria2c.1.txt
  1384. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Fixed bad cast in 32bit platforms.
  1386. * test/DefaultPieceStorageTest.cc
  1387. (DefaultPieceStorageTest::testGetCompletedLength)
  1388. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Fixed unit test fails on 32bit platforms.
  1390. * test/CookieParserTest.cc
  1391. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1392. Show an average download speed in Download results.
  1393. * src/BtFileAllocationEntry.cc
  1394. * src/DefaultPieceStorage.cc
  1395. * src/DownloadContext.cc
  1396. * src/DownloadContext.h
  1397. * src/DownloadResult.h
  1398. * src/RequestGroup.cc
  1399. * src/RequestGroupMan.cc
  1400. * src/StreamFileAllocationEntry.cc
  1401. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. Fixed the bug that metalink file is not processed if Content-Type
  1403. field has a paramter.
  1404. * src/HttpResponse.cc
  1405. * src/HttpResponse.h
  1406. * test/HttpResponseTest.cc
  1407. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Removed unused code.
  1409. * src/DefaultBtAnnounce.cc
  1410. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  1412. the value larger than DefaultPieceStorage::getTotalLength() when
  1413. in flight pieces are involved.
  1414. * src/DefaultPieceStorage.cc
  1415. * test/DefaultPieceStorageTest.cc
  1416. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1417. Bump up version number to 1.0.0a.
  1418. * configure.ac
  1419. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Updated configure.ac
  1421. * configure.ac
  1422. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Added usege for proxy.
  1424. * doc/aria2c.1.txt
  1425. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Added usage for --ca-certificate, --certificate, --private-key and
  1427. --check-certificate options.
  1428. * doc/aria2c.1.txt
  1429. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Updated man page
  1431. * doc/aria2c.1.txt
  1432. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Added --no-proxy option. It receives comman separated hostname or
  1434. domains to which proxy should not be used.
  1435. aria2 honors the environment variable no_proxy to override no-proxy
  1436. value in configuration file. The user can override the environment
  1437. variable no_proxy with --no-proxy command-line option.
  1438. * src/AbstractCommand.cc
  1439. * src/OptionHandlerFactory.cc
  1440. * src/option_processing.cc
  1441. * src/prefs.cc
  1442. * src/prefs.h
  1443. * src/usage_text.h
  1444. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1445. Added the ability to verify peer in SSL/TLS using given CA certificates.
  1446. The CA certificates are specified in --ca-certificate option.
  1447. By default, the verification is disabled. Use --check-certificate
  1448. option to enable it.
  1449. * src/HttpRequestCommand.cc
  1450. * src/LibgnutlsTLSContext.cc
  1451. * src/LibgnutlsTLSContext.h
  1452. * src/LibsslTLSContext.cc
  1453. * src/LibsslTLSContext.h
  1454. * src/MultiUrlRequestInfo.cc
  1455. * src/OptionHandlerFactory.cc
  1456. * src/SocketCore.cc
  1457. * src/SocketCore.h
  1458. * src/a2functional.h
  1459. * src/message.h
  1460. * src/option_processing.cc
  1461. * src/prefs.cc
  1462. * src/prefs.h
  1463. * src/usage_text.h
  1464. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1465. Added client certificate authentication for SSL/TLS.
  1466. Currently a private key must be decrypted for use with aria2.
  1467. If a user accidentally gives encrypted file to aria2 then following
  1468. thing happens:
  1469. If encrypted private key is given to aria2, it behaves differently
  1470. depending on the ssl library it uses. If aria2 built with openssl then
  1471. openssl prompts the user for password. If aria2 build with gnutls then
  1472. aria2 exists with error at start up.
  1473. * src/DownloadEngineFactory.cc
  1474. * src/MultiUrlRequestInfo.cc
  1475. * src/OptionHandlerFactory.cc
  1476. * src/option_processing.cc
  1477. * src/prefs.cc
  1478. * src/prefs.h
  1479. * src/usage_text.h
  1480. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Introduced TLSContext that holds TLS related data that can be shared
  1482. with multiple SSL connections.
  1483. * src/DownloadEngineFactory.cc
  1484. * src/LibgnutlsTLSContext.cc
  1485. * src/LibgnutlsTLSContext.h
  1486. * src/LibsslTLSContext.cc
  1487. * src/LibsslTLSContext.h
  1488. * src/Makefile.am
  1489. * src/SocketCore.cc
  1490. * src/SocketCore.h
  1491. * src/TLSContext.h
  1492. * src/message.h
  1493. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Fixed the bug that the DiskWriter of the first FileEntry whose
  1495. `needsFileAllocation' property is false is not created
  1496. even if it shares a piece with next FileEntry which `requested' property
  1497. is true.
  1498. Fixed the bug that zero-length file is not created if pre file
  1499. allocation is not done.
  1500. * src/MultiDiskAdaptor.cc
  1501. * src/MultiDiskAdaptor.h
  1502. * test/MultiDiskAdaptorTest.cc
  1503. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1504. Added the ability to pool proxy connection.
  1505. The conneciton in FTP with proxy-method=GET is not pooled.
  1506. Proxy-Connection header will not be sent when sending CONNECT method.
  1507. * src/DownloadEngine.cc
  1508. * src/DownloadEngine.h
  1509. * src/FtpFinishDownloadCommand.cc
  1510. * src/FtpInitiateConnectionCommand.cc
  1511. * src/FtpNegotiationCommand.cc
  1512. * src/HttpDownloadCommand.cc
  1513. * src/HttpInitiateConnectionCommand.cc
  1514. * src/HttpRequest.cc
  1515. * src/HttpRequest.h
  1516. * src/HttpResponse.cc
  1517. * src/HttpSkipResponseCommand.cc
  1518. * test/HttpRequestTest.cc
  1519. * test/HttpResponseTest.cc
  1520. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1521. Handle date before epoch.
  1522. To create *bad* Time object, call Time::null().
  1523. * src/CookieParser.cc
  1524. * src/FtpConnection.cc
  1525. * src/FtpConnection.h
  1526. * src/FtpNegotiationCommand.cc
  1527. * src/RequestGroup.cc
  1528. * src/TimeA2.cc
  1529. * src/TimeA2.h
  1530. * test/CookieParserTest.cc
  1531. * test/FtpConnectionTest.cc
  1532. * test/TimeTest.cc
  1533. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1534. Added support for following envrionment variables: http_proxy,
  1535. https_proxy, ftp_proxy and all_proxy.
  1536. Each variable is equivalent to the aria2 option whose name is the
  1537. variable name with '_' replaced with '-'.
  1538. They overrides options specified in aria2.conf file.
  1539. The envrionment variables can be overrode using command-line option.
  1540. * src/option_processing.cc
  1541. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1542. Renamed --http-proxy-method as --proxy-method.
  1543. * src/AbstractCommand.cc
  1544. * src/FtpInitiateConnectionCommand.cc
  1545. * src/HttpInitiateConnectionCommand.cc
  1546. * src/OptionHandlerFactory.cc
  1547. * src/option_processing.cc
  1548. * src/prefs.cc
  1549. * src/prefs.h
  1550. * src/usage_text.h
  1551. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1552. Deprecated --http-proxy-user and --http-proxy-passwd options.
  1553. Added --https-proxy, --ftp-proxy and --all-proxy options.
  1554. Above 3 options and --http-proxy option can handle proxy in URL format
  1555. like: http://user:passwd@host:port.
  1556. If a proxy requires user/password, they must be specified in a URL.
  1557. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  1558. instead.
  1559. * src/AbstractCommand.cc
  1560. * src/AbstractCommand.h
  1561. * src/AbstractProxyRequestCommand.cc
  1562. * src/AbstractProxyRequestCommand.h
  1563. * src/AuthConfigFactory.cc
  1564. * src/AuthConfigFactory.h
  1565. * src/FtpFinishDownloadCommand.cc
  1566. * src/FtpInitiateConnectionCommand.cc
  1567. * src/FtpInitiateConnectionCommand.h
  1568. * src/FtpNegotiationCommand.cc
  1569. * src/FtpTunnelRequestCommand.cc
  1570. * src/FtpTunnelRequestCommand.h
  1571. * src/HttpDownloadCommand.cc
  1572. * src/HttpInitiateConnectionCommand.cc
  1573. * src/HttpInitiateConnectionCommand.h
  1574. * src/HttpProxyRequestCommand.cc
  1575. * src/HttpProxyRequestCommand.h
  1576. * src/HttpRequest.cc
  1577. * src/HttpRequest.h
  1578. * src/HttpRequestCommand.cc
  1579. * src/HttpRequestCommand.h
  1580. * src/HttpSkipResponseCommand.cc
  1581. * src/InitiateConnectionCommand.cc
  1582. * src/InitiateConnectionCommand.h
  1583. * src/OptionHandlerFactory.cc
  1584. * src/OptionHandlerImpl.h
  1585. * src/Request.cc
  1586. * src/option_processing.cc
  1587. * src/prefs.cc
  1588. * src/prefs.h
  1589. * src/usage_text.h
  1590. * test/AuthConfigFactoryTest.cc
  1591. * test/HttpRequestTest.cc
  1592. * test/OptionHandlerTest.cc
  1593. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1594. Execute choking algorithm when unchoked and interested peer is
  1595. disconected.
  1596. * src/DefaultPeerStorage.cc
  1597. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1598. Added testcase for BtNotInterestedMessage from unchoked peer.
  1599. * test/BtNotInterestedMessageTest.cc
  1600. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1601. Execute choking algorithm when BtInterestedMessage arrives from
  1602. unchoked peer.
  1603. * src/BtInterestedMessage.cc
  1604. * src/BtInterestedMessage.h
  1605. * src/DefaultBtMessageFactory.cc
  1606. * test/BtInterestedMessageTest.cc
  1607. * test/MockPeerStorage.h
  1608. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1609. AuthConfigFactory is now part of DownloadEngine.
  1610. * src/AbstractProxyRequestCommand.cc
  1611. * src/AuthConfigFactory.h
  1612. * src/DownloadEngine.cc
  1613. * src/DownloadEngine.h
  1614. * src/FtpConnection.cc
  1615. * src/FtpConnection.h
  1616. * src/FtpNegotiationCommand.cc
  1617. * src/HttpConnection.cc
  1618. * src/HttpRequest.cc
  1619. * src/HttpRequest.h
  1620. * src/HttpRequestCommand.cc
  1621. * src/HttpResponse.cc
  1622. * src/HttpResponseCommand.cc
  1623. * src/HttpSkipResponseCommand.cc
  1624. * src/MultiUrlRequestInfo.cc
  1625. * src/main.cc
  1626. * test/FtpConnectionTest.cc
  1627. * test/HttpRequestTest.cc
  1628. * test/HttpResponseTest.cc
  1629. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1630. Corrected catched exception type.
  1631. * src/ServerStatMan.cc
  1632. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1633. DNSCache is now part of DownloadEngine.
  1634. * src/DNSCache.h
  1635. * src/DownloadEngine.cc
  1636. * src/DownloadEngine.h
  1637. * src/InitiateConnectionCommand.cc
  1638. * src/MultiUrlRequestInfo.cc
  1639. * test/Makefile.am
  1640. * test/Makefile.in
  1641. * test/SimpleDNSCacheTest.cc
  1642. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1643. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  1644. DownloadEngine.
  1645. * src/ActivePeerConnectionCommand.cc
  1646. * src/BtSetup.cc
  1647. * src/CUIDCounter.h
  1648. * src/DHTSetup.cc
  1649. * src/DownloadCommand.cc
  1650. * src/DownloadEngine.cc
  1651. * src/DownloadEngine.h
  1652. * src/DownloadEngineFactory.cc
  1653. * src/FileAllocationDispatcherCommand.cc
  1654. * src/InitiatorMSEHandshakeCommand.cc
  1655. * src/PeerInitiateConnectionCommand.cc
  1656. * src/PeerInteractionCommand.cc
  1657. * src/PeerListenCommand.cc
  1658. * src/RequestGroup.cc
  1659. * src/StreamFileAllocationEntry.cc
  1660. * src/TrackerWatcherCommand.cc
  1661. * src/main.cc
  1662. * test/RequestGroupManTest.cc
  1663. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1664. Implemented commented code in BtSeederStateChoke
  1665. * src/BtSeederStateChoke.cc
  1666. * src/Peer.cc
  1667. * src/Peer.h
  1668. * src/PeerInteractionCommand.cc
  1669. * src/PeerSessionResource.cc
  1670. * src/PeerSessionResource.h
  1671. * test/MockBtMessageDispatcher.h
  1672. * test/PeerSessionResourceTest.cc
  1673. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1674. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  1675. its object.
  1676. * src/AbstractBtMessage.cc
  1677. * src/ActivePeerConnectionCommand.cc
  1678. * src/ActivePeerConnectionCommand.h
  1679. * src/BtContextAwareCommand.cc
  1680. * src/BtContextAwareCommand.h
  1681. * src/BtExtendedMessage.cc
  1682. * src/BtExtendedMessage.h
  1683. * src/BtInterestedMessage.cc
  1684. * src/BtInterestedMessage.h
  1685. * src/BtNotInterestedMessage.cc
  1686. * src/BtNotInterestedMessage.h
  1687. * src/BtRegistry.cc
  1688. * src/BtRegistry.h
  1689. * src/BtSeederStateChoke.cc
  1690. * src/BtSetup.cc
  1691. * src/DHTGetPeersCommand.cc
  1692. * src/DHTGetPeersCommand.h
  1693. * src/DHTPeerAnnounceEntry.cc
  1694. * src/DHTPeerAnnounceEntry.h
  1695. * src/DHTPeerAnnounceStorage.cc
  1696. * src/DHTPeerAnnounceStorage.h
  1697. * src/DHTPeerLookupTask.cc
  1698. * src/DHTPeerLookupTask.h
  1699. * src/DHTSetup.cc
  1700. * src/DHTSetup.h
  1701. * src/DHTTaskFactory.h
  1702. * src/DHTTaskFactoryImpl.cc
  1703. * src/DHTTaskFactoryImpl.h
  1704. * src/DefaultBtAnnounce.cc
  1705. * src/DefaultBtInteractive.cc
  1706. * src/DefaultBtInteractive.h
  1707. * src/DefaultBtMessageDispatcher.cc
  1708. * src/DefaultBtMessageDispatcher.h
  1709. * src/DefaultBtMessageFactory.cc
  1710. * src/DefaultBtMessageFactory.h
  1711. * src/DefaultBtMessageReceiver.cc
  1712. * src/DefaultBtProgressInfoFile.cc
  1713. * src/DefaultBtProgressInfoFile.h
  1714. * src/DefaultBtRequestFactory.cc
  1715. * src/DefaultBtRequestFactory.h
  1716. * src/DefaultExtensionMessageFactory.cc
  1717. * src/DefaultExtensionMessageFactory.h
  1718. * src/DefaultPeerStorage.cc
  1719. * src/DefaultPeerStorage.h
  1720. * src/DownloadEngine.cc
  1721. * src/DownloadEngine.h
  1722. * src/InitiatorMSEHandshakeCommand.cc
  1723. * src/InitiatorMSEHandshakeCommand.h
  1724. * src/MSEHandshake.cc
  1725. * src/MSEHandshake.h
  1726. * src/Makefile.am
  1727. * src/Makefile.in
  1728. * src/PeerChokeCommand.cc
  1729. * src/PeerChokeCommand.h
  1730. * src/PeerInitiateConnectionCommand.cc
  1731. * src/PeerInitiateConnectionCommand.h
  1732. * src/PeerInteractionCommand.cc
  1733. * src/PeerInteractionCommand.h
  1734. * src/PeerObject.h
  1735. * src/PeerReceiveHandshakeCommand.cc
  1736. * src/PeerReceiveHandshakeCommand.h
  1737. * src/ReceiverMSEHandshakeCommand.cc
  1738. * src/RequestGroup.cc
  1739. * src/RequestGroup.h
  1740. * src/RequestGroupMan.cc
  1741. * src/RequestGroupMan.h
  1742. * src/SeedCheckCommand.cc
  1743. * src/SeedCheckCommand.h
  1744. * src/ShareRatioSeedCriteria.h
  1745. * src/SimpleBtMessage.cc
  1746. * src/TrackerWatcherCommand.cc
  1747. * src/TrackerWatcherCommand.h
  1748. * src/UTPexExtensionMessage.cc
  1749. * src/UTPexExtensionMessage.h
  1750. * test/BtCancelMessageTest.cc
  1751. * test/BtChokeMessageTest.cc
  1752. * test/BtExtendedMessageTest.cc
  1753. * test/BtInterestedMessageTest.cc
  1754. * test/BtNotInterestedMessageTest.cc
  1755. * test/BtPieceMessageTest.cc
  1756. * test/BtPortMessageTest.cc
  1757. * test/BtRegistryTest.cc
  1758. * test/BtRejectMessageTest.cc
  1759. * test/BtRequestMessageTest.cc
  1760. * test/DHTPeerAnnounceEntryTest.cc
  1761. * test/DHTPeerAnnounceStorageTest.cc
  1762. * test/DefaultBtMessageDispatcherTest.cc
  1763. * test/DefaultBtMessageFactoryTest.cc
  1764. * test/DefaultBtProgressInfoFileTest.cc
  1765. * test/DefaultBtRequestFactoryTest.cc
  1766. * test/DefaultExtensionMessageFactoryTest.cc
  1767. * test/MSEHandshakeTest.cc
  1768. * test/MockDHTTaskFactory.h
  1769. * test/ShareRatioSeedCriteriaTest.cc
  1770. * test/UTPexExtensionMessageTest.cc
  1771. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1772. Fixed compiler warning.
  1773. * test/UtilTest.cc
  1774. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1775. Treat Cookie object as session cookie if expiry = 0 is given.
  1776. With this change, you can specify session scoped cookies in an external
  1777. file setting expiry value to 0.
  1778. * src/Cookie.cc
  1779. * src/Cookie.h
  1780. * test/CookieParserTest.cc
  1781. * test/CookieStorageTest.cc
  1782. * test/CookieTest.cc
  1783. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1784. Changed signature of DHTMessageFactory::createResponseMessage().
  1785. Removed unused validateIDMatch.
  1786. * src/DHTMessageFactory.h
  1787. * src/DHTMessageFactoryImpl.cc
  1788. * src/DHTMessageFactoryImpl.h
  1789. * src/DHTMessageTracker.cc
  1790. * test/DHTMessageFactoryImplTest.cc
  1791. * test/MockDHTMessageFactory.h
  1792. Dropped DHT message coming from same ID of localhost.
  1793. * src/DHTMessageReceiver.cc
  1794. Rejected adding node whose ID is the same as localhost's.
  1795. * src/DHTRoutingTable.cc
  1796. * test/BtPortMessageTest.cc
  1797. * test/DHTRoutingTableTest.cc
  1798. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1799. Pool connection when redirection occurs with Content-Length = 0.
  1800. * src/HttpSkipResponseCommand.cc
  1801. * src/HttpSkipResponseCommand.h
  1802. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1803. Fixed the bug that causes time out when redirection occurs with
  1804. content-length 0.
  1805. * src/HttpResponseCommand.cc
  1806. * src/HttpSkipResponseCommand.cc
  1807. * src/HttpSkipResponseCommand.h
  1808. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1809. Now each status legends is shown only when it appears in Download
  1810. Result. If Download Result has no item, then status legend will not
  1811. be printed.
  1812. * src/RequestGroupMan.cc
  1813. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1814. Removed duplicate creation of OptionHandlers.
  1815. * src/option_processing.cc
  1816. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1817. Fixed the bug that causes segmentation fault when accessing files which
  1818. don't exist or are not included in --select-file option while
  1819. validating chunk checksum.
  1820. * src/MultiDiskAdaptor.cc
  1821. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1822. Fixed compiler warning.
  1823. * test/UtilTest.cc
  1824. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1825. Included cstdlib. This fixed the compile error with g++-4.3.2.
  1826. * src/IteratableChecksumValidator.cc
  1827. * src/IteratableChunkChecksumValidator.cc
  1828. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1829. * Release 0.16.2
  1830. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1831. Added Serbian translation. Updated Ukrainian translation.
  1832. Thanks to all translators.
  1833. * po/sr.po
  1834. * po/uk.po
  1835. * po/LINGUAS
  1836. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1837. Bump up version number to 0.16.2
  1838. * configure.ac
  1839. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1840. Added length equality test to operator== to drop a piece message
  1841. whose length does not match to the requested one.
  1842. * src/RequestSlot.cc
  1843. * test/DefaultBtMessageDispatcherTest.cc
  1844. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1845. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  1846. recieved.
  1847. In this fix, if a request larger than 16KiB length is received, aria2
  1848. disconnects the peer.
  1849. * src/BtConstants.h
  1850. * src/PeerMessageUtil.cc
  1851. * src/PeerMessageUtil.h
  1852. * test/BtRequestMessageTest.cc
  1853. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1854. * Release 0.16.1
  1855. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1856. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  1857. * doc/aria2c.1.txt
  1858. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1859. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  1860. Updated French, Simplified Chinese and Japanese translations.
  1861. Thanks to all translators.
  1862. en@quot and en@boldquot are also added.
  1863. * po/LINGUAS
  1864. * po/fr.po
  1865. * po/ja.po
  1866. * po/uk.po
  1867. * po/vi.po
  1868. * po/zh_CN.po
  1869. * po/zh_TW.po
  1870. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1871. Bump up version number to 0.16.1.
  1872. * configure.ac
  1873. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1874. Updated README.
  1875. * README
  1876. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1877. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  1878. not to replace '--' with em dash character.
  1879. * doc/aria2c.1.txt
  1880. * doc/makeman
  1881. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1882. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  1883. every SEC seconds.
  1884. * src/DownloadEngineFactory.cc
  1885. * src/OptionHandlerFactory.cc
  1886. * src/option_processing.cc
  1887. * src/usage_text.h
  1888. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1889. Fixed compile warning on linux-amd64
  1890. * src/FtpConnection.cc
  1891. * src/IteratableChunkChecksumValidator.cc
  1892. * src/MultiDiskAdaptor.cc
  1893. Fixed the bug that unit test fails on linux-amd64
  1894. * test/UtilTest.cc
  1895. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1896. Added --dht-file-path option to change the path to dht.dat, which is a
  1897. serialized DHT routing table.
  1898. * src/OptionHandlerFactory.cc
  1899. * src/option_processing.cc
  1900. * src/usage_text.h
  1901. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1902. Fixed possible underflow.
  1903. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  1904. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1905. Fixed the bug that last character in URI is not encoded.
  1906. * src/Request.cc
  1907. * test/RequestTest.cc
  1908. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1909. Fixed the bug that referer header field contains fragment.
  1910. Now Request class removes fragment part of URI and encodes it
  1911. in Request::setUri() and setReferer().
  1912. * src/Request.h
  1913. * src/Request.cc
  1914. * test/RequestTest.cc
  1915. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1916. Added missing m4 macros.
  1917. * m4/cppunit.m4
  1918. * m4/libgcrypt.m4
  1919. * m4/libgnutls-extra.m4
  1920. * m4/libgnutls.m4
  1921. * m4/libxml2.m4
  1922. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1923. Fixed compile error with gcc-4.4(snapshot)
  1924. * src/File.cc
  1925. * src/FtpConnection.cc
  1926. * src/OptionHandlerImpl.h
  1927. * src/Util.cc
  1928. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1929. Removed assert()
  1930. * src/SocketBuffer.cc (SocketBuffer::send)
  1931. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1932. Changed the type of _numNewConnection to unsigned int.
  1933. * src/ActivePeerConnectionCommand.cc
  1934. * src/ActivePeerConnectionCommand.h
  1935. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1936. * Release 0.16.0
  1937. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1938. Updated doc
  1939. * README
  1940. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1941. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  1942. translations. Thanks to all translators.
  1943. * po/bg.po
  1944. * po/de.po
  1945. * po/fr.po
  1946. * po/ja.po
  1947. * po/zh_CN.po
  1948. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1949. Bump up version number to 0.16.0.
  1950. * configure.ac
  1951. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1952. Casted entry->maxConnections to int32_t for std::min<T> with T =
  1953. int32_t.
  1954. Changed the type of count to int32_t.
  1955. * src/Metalink2RequestGroup.cc
  1956. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1957. Added test for Time::elapsed(time_t).
  1958. * test/TimeTest.cc
  1959. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1960. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  1961. Util::difftv() should be used instead.
  1962. * src/TimeA2.cc
  1963. * src/TimeA2.h
  1964. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1965. Made socket for dht connections non-blocking
  1966. * src/DHTAbstractMessage.cc
  1967. * src/DHTAbstractMessage.h
  1968. * src/DHTConnection.h
  1969. * src/DHTConnectionImpl.cc
  1970. * src/DHTConnectionImpl.h
  1971. * src/DHTMessage.h
  1972. * src/DHTMessageDispatcherImpl.cc
  1973. * src/DHTMessageDispatcherImpl.h
  1974. * src/DHTUnknownMessage.cc
  1975. * src/DHTUnknownMessage.h
  1976. * src/SocketCore.cc
  1977. * src/SocketCore.h
  1978. * test/MockDHTMessage.h
  1979. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1980. Changed the type of offset to int.
  1981. * src/ParameterizedStringParser.cc
  1982. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1983. Made getAsInt() return int32_t
  1984. * src/Option.h
  1985. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1986. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  1987. build.
  1988. * configure.ac
  1989. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1990. Use sqlite3_open if sqlite3_open_v2 is not available.
  1991. * src/Sqlite3MozCookieParser.cc
  1992. * src/Sqlite3MozCookieParser.h
  1993. * m4/sqlite3.m4
  1994. * test/Sqlite3MozCookieParserTest.cc
  1995. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1996. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  1997. * src/BtPieceMessage.cc
  1998. * src/DHTPeerAnnounceStorage.cc
  1999. * src/DefaultPieceStorage.cc
  2000. * src/DownloadCommand.cc
  2001. * src/DownloadEngine.cc
  2002. * src/FtpConnection.cc
  2003. * src/PeerConnection.cc
  2004. * src/PeerMessageUtil.cc
  2005. * src/RequestGroup.cc
  2006. * src/RequestGroupMan.cc
  2007. * src/SimpleBtMessage.cc
  2008. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2009. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2010. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2011. * src/AbstractDiskWriter.cc
  2012. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2013. Don't set Request::supportsPersistentConnection() in HttpConnection
  2014. since this code is also used in AbstractProxyResponseCommand.
  2015. Moved those code to HttpResponse.
  2016. * src/HttpResponse.cc
  2017. * src/HttpResponse.h
  2018. * src/HttpConnection.cc
  2019. * src/HttpConnection.h
  2020. * src/HttpResponseCommand.cc
  2021. * test/HttpResponseTest.cc
  2022. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2023. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2024. The configuration is minimum: no torrent, no metalink, so there may be
  2025. other compile error on their code.
  2026. * src/a2netcompat.h
  2027. * src/File.cc
  2028. * src/File.h
  2029. * src/SocketCore.cc
  2030. * src/SocketCore.h
  2031. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2032. Made a socket of incoming peer non-blocking.
  2033. * src/PeerListenCommand.cc
  2034. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2035. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2036. whole message data is not sent in one send() call.
  2037. * src/BtPieceMessage.cc
  2038. * src/BtPieceMessage.h
  2039. * src/PeerConnection.cc
  2040. * src/PeerConnection.h
  2041. * src/SimpleBtMessage.cc
  2042. * src/SimpleBtMessage.h
  2043. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2044. Fixed the bug that aria2 downloads faster than max-download-limit when
  2045. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2046. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2047. , instead of sum of them.
  2048. * src/ActivePeerConnectionCommand.cc
  2049. * src/DefaultBtInteractive.cc
  2050. * src/DownloadCommand.cc
  2051. * src/PeerInteractionCommand.cc
  2052. * src/PeerReceiveHandshakeCommand.cc
  2053. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2054. Fixed the bug that HTTPS download fails.
  2055. * src/AbstractCommand.cc
  2056. * src/AbstractCommand.h
  2057. * src/DownloadCommand.cc
  2058. * src/FtpConnection.cc
  2059. * src/HttpConnection.cc
  2060. * src/HttpRequestCommand.cc
  2061. * src/HttpResponseCommand.cc
  2062. * src/HttpSkipResponseCommand.cc
  2063. * src/MSEHandshake.cc
  2064. * src/PeerConnection.cc
  2065. * src/SocketCore.cc
  2066. * src/SocketCore.h
  2067. Fixed the bug that aria2 doesn't download whole content body and cannot
  2068. reuse connection if chunked transfer encoding and gzip content encoding
  2069. are set.
  2070. * src/DownloadCommand.cc
  2071. * src/HttpSkipResponseCommand.cc
  2072. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2073. Updated man page.
  2074. * doc/aria2c.1.txt
  2075. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2076. When error occurred while aria2 was parsing an .aria2.conf file, print
  2077. the usage of the option that caused error.
  2078. * src/option_processing.cc
  2079. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2080. Fixed compile error on OptionHandlerException
  2081. * src/Makefile.am
  2082. * src/OptionHandlerException.cc
  2083. * src/OptionHandlerException.h
  2084. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2085. Moved message of the error to OptionHandlerException.h
  2086. * src/NameMatchOptionHandler.h
  2087. * src/OptionHandlerException.h
  2088. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2089. When error occurs while aria2 is parsing an command-line option, print
  2090. the usage of the option.
  2091. * src/Makefile.am
  2092. * src/NameMatchOptionHandler.h
  2093. * src/OptionHandlerException.h
  2094. * src/option_processing.cc
  2095. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2096. Reverted previous change.
  2097. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2098. username is not in URI.
  2099. * src/HttpRequest.cc
  2100. * src/Request.cc
  2101. * test/HttpRequestTest.cc
  2102. * test/RequestTest.cc
  2103. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2104. Now colon is required for username and password in FTP URL, like:
  2105. ftp://username:password@host.
  2106. If colon is not there, aria2 don't parse it as a username. For example,
  2107. aria2 don't retrieve username from ftp://username@host.
  2108. This fix was made in order to login FTP server via non-transparent ftp
  2109. proxy.
  2110. * src/Request.cc
  2111. * test/RequestTest.cc
  2112. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2113. Use netrc for HTTP.
  2114. Now FTP user/password is sent in Authorization header when
  2115. --ftp-via-http-proxy=get is given.
  2116. * src/AuthConfigFactory.cc
  2117. * src/HttpRequest.cc
  2118. * src/HttpRequest.h
  2119. * src/NetrcAuthResolver.cc
  2120. * src/NetrcAuthResolver.h
  2121. * src/OptionHandlerFactory.cc
  2122. * src/option_processing.cc
  2123. * src/prefs.cc
  2124. * src/prefs.h
  2125. * test/AuthConfigFactoryTest.cc
  2126. * test/HttpRequestTest.cc
  2127. * test/NetrcAuthResolverTest.cc
  2128. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2129. Issue PWD command first and get working directory and use it as a prefix
  2130. for CWD command.
  2131. * src/DownloadEngine.cc
  2132. * src/DownloadEngine.h
  2133. * src/FtpConnection.cc
  2134. * src/FtpConnection.h
  2135. * src/FtpFinishDownloadCommand.cc
  2136. * src/FtpInitiateConnectionCommand.cc
  2137. * src/FtpNegotiationCommand.cc
  2138. * src/FtpNegotiationCommand.h
  2139. * test/FtpConnectionTest.cc
  2140. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2141. Removed default user/pass for FTP user/pass, since it should not have
  2142. precedence over netrc configuration by default.
  2143. * src/OptionHandlerFactory.cc
  2144. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2145. Added debug log for socket event.
  2146. * src/AbstractCommand.cc
  2147. * src/PeerAbstractCommand.cc
  2148. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2149. Log microseconds.
  2150. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2151. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2152. Replaced HelpItem.cc with OptionHandler.cc.
  2153. * po/POTFILES.in
  2154. Updated po files with 'make update-po'
  2155. * po/aria2c.pot
  2156. * po/*.po
  2157. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2158. Removed possible values from the text.
  2159. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2160. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2161. Removed unused preferences:
  2162. PREF_NO_PREALLOCATION
  2163. PREF_STDOUT_LOG
  2164. PREF_TRACKER_MAX_TRIES
  2165. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2166. PREF_MIN_SEGMENT_SIZE
  2167. * src/option_processing.cc
  2168. * src/prefs.cc
  2169. * src/prefs.h
  2170. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2171. Integrated HelpItem into OptionParser to ease the workload for adding
  2172. new options. Removed default value from usage text.
  2173. * src/HelpItem.cc: Removed.
  2174. * src/HelpItem.h: Removed.
  2175. * src/HelpItemFactory.cc: Removed.
  2176. * src/HelpItemFactory.h: Removed.
  2177. * src/Makefile.am
  2178. * src/Makefile.in
  2179. * src/NameMatchOptionHandler.h
  2180. * src/OptionHandler.cc
  2181. * src/OptionHandler.h
  2182. * src/OptionHandlerFactory.cc
  2183. * src/OptionHandlerImpl.h
  2184. * src/OptionParser.cc
  2185. * src/OptionParser.h
  2186. * src/TagContainer.cc: Removed.
  2187. * src/TagContainer.h: Removed.
  2188. * src/TaggedItem.cc: Removed.
  2189. * src/TaggedItem.h: Removed.
  2190. * src/main.cc
  2191. * src/option_processing.cc
  2192. * src/usage_text.h
  2193. * src/version_usage.cc
  2194. * test/HelpItemTest.cc: Removed.
  2195. * test/Makefile.am
  2196. * test/Makefile.in
  2197. * test/OptionHandlerTest.cc
  2198. * test/OptionParserTest.cc
  2199. * test/TagContainerTest.cc: Removed.
  2200. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2201. Moved `TransferStat stat = ...' to inside the `if' clause.
  2202. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  2203. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2204. Fixed the bug that a block in a piece is requested when same block is
  2205. already requested to the same peer in end game mode.
  2206. * src/BtRequestFactory.h
  2207. * src/DefaultBtInteractive.cc
  2208. * src/DefaultBtRequestFactory.cc
  2209. * src/DefaultBtRequestFactory.h
  2210. * src/DefaultPieceStorage.cc
  2211. * src/DefaultPieceStorage.h
  2212. * src/PieceStorage.h
  2213. * src/UnknownLengthPieceStorage.cc
  2214. * src/UnknownLengthPieceStorage.h
  2215. * test/DefaultBtRequestFactoryTest.cc
  2216. * test/DefaultPieceStorageTest.cc
  2217. * test/MockBtRequestFactory.h
  2218. * test/MockPieceStorage.h
  2219. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2220. Removed _uploadLength and _downloadLength from PeerSessionResource
  2221. and use PeerStat::_sessionUploadLength and
  2222. PeerStat::_sessionDownloadLength.
  2223. * src/PeerSessionResource.cc
  2224. * src/PeerSessionResource.h
  2225. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2226. Fixed the bug that prefixLength of split bucket which doesn't include
  2227. local node ID is incremented.
  2228. * src/DHTBucket.cc
  2229. * src/DHTBucket.h
  2230. * test/DHTBucketTest.cc
  2231. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2232. Added cookies.sqlite to EXTRA_DIST
  2233. * test/Makefile.am
  2234. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2235. Added Turkish translation. Updated French, German, Russian and
  2236. Simplified Chinese translations. Thanks to all translators.
  2237. * po/LINGUAS
  2238. * po/de.po
  2239. * po/fr.po
  2240. * po/ru.po
  2241. * po/tr.po
  2242. * po/zh_CN.po
  2243. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2244. Added deliminating text to the beginning of the log so that one can find
  2245. where the log starts easily.
  2246. * src/main.cc
  2247. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2248. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2249. to fix compile error when async DNS is not enabled by configuration.
  2250. * src/AbstractCommand.cc
  2251. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2252. If establishing conneciton to a server is failed, then mark error on
  2253. its ServerStat.
  2254. Added the cause of error to log when error event occurred.
  2255. Moved message string to message.h for translation.
  2256. * src/AbstractCommand.cc
  2257. * src/AbstractCommand.h
  2258. * src/FtpNegotiationCommand.cc
  2259. * src/HttpRequestCommand.cc
  2260. * src/PeerAbstractCommand.cc
  2261. * src/message.h
  2262. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2263. Added the function to get error message from socket.
  2264. * src/SocketCore.cc
  2265. * src/SocketCore.h
  2266. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2267. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2268. * src/RequestGroupMan.cc
  2269. * src/RequestGroupMan.h
  2270. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2271. If error event is received in epoll, then abort download immediately.
  2272. * src/AbstractCommand.cc
  2273. * src/Command.cc
  2274. * src/Command.h
  2275. * src/DownloadEngine.cc
  2276. * src/PeerAbstractCommand.cc
  2277. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2278. Added usage message for --uri-selector, --server-stat-of,
  2279. --server-stat-in, --server-stat-timeout options.
  2280. * src/HelpItemFactory.cc
  2281. * src/usage_text.h
  2282. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2283. Added upper limit of FTP response buffer. The current implementation
  2284. uses 4096bytes as a limit.
  2285. * src/FtpConnection.cc
  2286. * src/FtpConnection.h
  2287. * test/FtpConnectionTest.cc
  2288. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2289. Use non-blocking socket for TCP communication to avoid possible
  2290. blocking due to buffer full.
  2291. * src/AbstractProxyRequestCommand.cc
  2292. * src/FtpConnection.cc
  2293. * src/FtpConnection.h
  2294. * src/FtpNegotiationCommand.cc
  2295. * src/FtpNegotiationCommand.h
  2296. * src/HttpConnection.cc
  2297. * src/HttpConnection.h
  2298. * src/HttpRequestCommand.cc
  2299. * src/InitiatorMSEHandshakeCommand.cc
  2300. * src/InitiatorMSEHandshakeCommand.h
  2301. * src/MSEHandshake.cc
  2302. * src/MSEHandshake.h
  2303. * src/Makefile.am
  2304. * src/PeerConnection.cc
  2305. * src/PeerConnection.h
  2306. * src/PeerInteractionCommand.cc
  2307. * src/PeerListenCommand.cc
  2308. * src/ReceiverMSEHandshakeCommand.cc
  2309. * src/ReceiverMSEHandshakeCommand.h
  2310. * src/SocketBuffer.cc
  2311. * src/SocketBuffer.h
  2312. * src/SocketCore.cc
  2313. * src/SocketCore.h
  2314. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2315. Call setStatusRealtime() in constructor.
  2316. * src/RealtimeCommand.cc
  2317. * src/RealtimeCommand.h
  2318. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2319. Call Download::setNoWait(true) to execute newly created command without
  2320. a pause.
  2321. * src/AbstractCommand.cc
  2322. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2323. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2324. found' error from HTTP/FTP server NUM times without getting single
  2325. bytes of data, then force the download to fail.
  2326. Basically aria2 tris all URIs available. So if long list of URIs are
  2327. specified in Metalink, then aria2 will take a long time to fail
  2328. eventually if all URIs are outdated. This option eases this situation
  2329. to limit the number of servers to try.
  2330. * src/FtpNegotiationCommand.cc
  2331. * src/HelpItemFactory.cc
  2332. * src/HttpResponseCommand.cc
  2333. * src/OptionHandlerFactory.cc
  2334. * src/PeerStat.h
  2335. * src/RequestGroup.cc
  2336. * src/RequestGroup.h
  2337. * src/SegmentMan.cc
  2338. * src/SegmentMan.h
  2339. * src/option_processing.cc
  2340. * src/prefs.cc
  2341. * src/prefs.h
  2342. * src/usage_text.h
  2343. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2344. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2345. response even if more than one response is in it.
  2346. * src/FtpConnection.cc
  2347. * src/FtpConnection.h
  2348. * test/FtpConnectionTest.cc
  2349. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2350. Merged from stable-0.15
  2351. * m4/libcares.m4
  2352. Use pkg-config
  2353. * m4/sqlite3.m4
  2354. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2355. Removed unnecessary if statement.
  2356. * src/DefaultPieceStorage.cc (initPieceStorage)
  2357. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2358. Added --connect-timeout option to specify connect timeout in seconds.
  2359. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2360. connecting to BitTorrent peer is not controlled by this option.
  2361. * src/AbstractProxyRequestCommand.cc
  2362. * src/FtpNegotiationCommand.cc
  2363. * src/HelpItemFactory.cc
  2364. * src/HttpRequestCommand.cc
  2365. * src/OptionHandlerFactory.cc
  2366. * src/option_processing.cc
  2367. * src/prefs.cc
  2368. * src/prefs.h
  2369. * src/usage_text.h
  2370. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2371. Added help message for -R option.
  2372. * src/HelpItemFactory.cc
  2373. * src/usage_text.h
  2374. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2375. Added the message that the time is in local time zone.
  2376. * src/RequestGroup.cc
  2377. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2378. Implemented the ability to get timestamp from remote FTP server using
  2379. MDTM command described in RFC3659.
  2380. * src/FtpConnection.cc
  2381. * src/FtpConnection.h
  2382. * src/FtpNegotiationCommand.cc
  2383. * src/FtpNegotiationCommand.h
  2384. * test/FtpConnectionTest.cc
  2385. * test/Makefile.am
  2386. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2387. Implemented the ability to get timestamp from remote HTTP server and
  2388. apply it to local file. To enable this feature, --remote-time option
  2389. is added. No usage text has been written yet.
  2390. If several servers returns difference timestamp, then aria2 uses latest
  2391. one.
  2392. * src/CopyDiskAdaptor.cc
  2393. * src/CopyDiskAdaptor.h
  2394. * src/DirectDiskAdaptor.cc
  2395. * src/DirectDiskAdaptor.h
  2396. * src/DiskAdaptor.h
  2397. * src/File.cc
  2398. * src/File.h
  2399. * src/HttpHeader.cc
  2400. * src/HttpHeader.h
  2401. * src/HttpResponse.cc
  2402. * src/HttpResponse.h
  2403. * src/HttpResponseCommand.cc
  2404. * src/HttpResponseCommand.h
  2405. * src/MultiDiskAdaptor.cc
  2406. * src/MultiDiskAdaptor.h
  2407. * src/OptionHandlerFactory.cc
  2408. * src/RequestGroup.cc
  2409. * src/RequestGroup.h
  2410. * src/RequestGroupMan.cc
  2411. * src/option_processing.cc
  2412. * src/prefs.cc
  2413. * src/prefs.h
  2414. * test/CopyDiskAdaptorTest.cc
  2415. * test/FileTest.cc
  2416. * test/Makefile.am
  2417. * test/Makefile.in
  2418. * test/MultiDiskAdaptorTest.cc
  2419. * test/TestUtil.cc
  2420. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2421. Fixed the bug that DiskWriterEntry is not created when its
  2422. FileEntry.isRequested() is false and it doesn't share a piece with
  2423. other FileEntries that are requested. This bug causes segmentation fault
  2424. in the end.
  2425. * src/MultiDiskAdaptor.cc
  2426. * src/MultiDiskAdaptor.h
  2427. * src/MultiFileAllocationIterator.cc
  2428. * test/MultiDiskAdaptorTest.cc
  2429. * test/MultiFileAllocationIteratorTest.cc
  2430. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2431. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  2432. called if the number of file entries are greater than max open files.
  2433. * src/AbstractSingleDiskAdaptor.cc
  2434. * src/AbstractSingleDiskAdaptor.h
  2435. * src/DiskAdaptor.h
  2436. * src/MultiDiskAdaptor.cc
  2437. * src/MultiDiskAdaptor.h
  2438. * test/MultiDiskAdaptorTest.cc
  2439. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2440. Added a constuctor that receives struct timeval.
  2441. Added operator<.
  2442. * src/TimeA2.cc
  2443. * src/TimeA2.h
  2444. * test/TimeTest.cc
  2445. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2446. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  2447. * src/CookieParser.cc
  2448. * test/CookieParserTest.cc
  2449. * test/HttpResponseTest.cc
  2450. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2451. Implmented the functions to parse date.
  2452. * src/TimeA2.cc
  2453. * src/TimeA2.h
  2454. * test/TimeTest.cc
  2455. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2456. Added "Firefox3 Cookie" feature to FeatureConfig
  2457. * src/FeatureConfig.cc
  2458. * src/FeatureConfig.h
  2459. * test/FeatureConfigTest.cc
  2460. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2461. Bump up version number to 0.16.0b
  2462. * configure.ac
  2463. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2464. Use pkg-config if is is available.
  2465. * m4/openssl.m4
  2466. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2467. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  2468. * src/BtAnnounce.h
  2469. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2470. If an error occurred with a URI, remove identical URI from remaining
  2471. URI list because it is likely that same error occurred in the end and it
  2472. is waste of time.
  2473. * src/AbstractCommand.cc
  2474. * src/RequestGroup.cc
  2475. * src/RequestGroup.h
  2476. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2477. Removed wrong comment.
  2478. * src/DefaultPeerStorage.cc
  2479. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2480. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  2481. Added return value of getpid() to argument of srand() to achieve more
  2482. randomized value.
  2483. * src/SimpleRandomizer.cc
  2484. * src/SimpleRandomizer.h
  2485. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2486. Contact tracker frequently when the number of connections are 0 and
  2487. download is not finished yet.
  2488. * src/ActivePeerConnectionCommand.cc
  2489. * src/BtAnnounce.h
  2490. * src/DefaultBtAnnounce.cc
  2491. * src/DefaultBtAnnounce.h
  2492. * test/MockBtAnnounce.h
  2493. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2494. Moved threshold values to UTPexExtensionMessage.
  2495. * src/DefaultBtInteractive.cc
  2496. * src/Peer.cc
  2497. * src/Peer.h
  2498. * src/UTPexExtensionMessage.cc
  2499. * src/UTPexExtensionMessage.h
  2500. * test/UTPexExtensionMessageTest.cc
  2501. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2502. Added _incoming member to Peer class and made it true if the peer
  2503. initiated connection. Don't add those peer to UTPex message.
  2504. If extended handshake is received, assign _incoming to false.
  2505. * src/DefaultBtInteractive.cc
  2506. * src/HandshakeExtensionMessage.cc
  2507. * src/Peer.cc
  2508. * src/Peer.h
  2509. * src/PeerListenCommand.cc
  2510. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2511. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  2512. Encoding Decoder. Removed size threshold for turning off on the fly
  2513. inflation because resulting file may or may not be inflated depending
  2514. on the file size and I think it is not expected by users.
  2515. This change fixes segmentation fault when Metalink file contains gzipped
  2516. file and its filesize is provided.
  2517. * src/HttpResponseCommand.cc
  2518. * src/HttpResponseCommand.h
  2519. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2520. Made Cookie immutable.
  2521. * src/Cookie.cc
  2522. * src/Cookie.h
  2523. * src/CookieParser.cc
  2524. * src/CookieParser.h
  2525. * src/CookieStorage.cc
  2526. * test/CookieParserTest.cc
  2527. * test/CookieStorageTest.cc
  2528. * test/NsCookieParserTest.cc
  2529. * test/Sqlite3MozCookieParserTest.cc
  2530. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2531. Removed CookieBox, CookieBoxFactory.
  2532. * src/CookieBox.cc
  2533. * src/CookieBox.h
  2534. * src/CookieBoxFactory.cc
  2535. * src/CookieBoxFactory.h
  2536. * src/Makefile.am
  2537. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2538. Use CookieStorage class instead of CookieBox class.
  2539. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  2540. * src/AbstractProxyRequestCommand.cc
  2541. * src/CookieStorage.cc
  2542. * src/DownloadEngine.cc
  2543. * src/DownloadEngine.h
  2544. * src/HttpConnection.cc
  2545. * src/HttpConnection.h
  2546. * src/HttpRequest.cc
  2547. * src/HttpRequest.h
  2548. * src/HttpRequestCommand.cc
  2549. * src/HttpResponse.cc
  2550. * src/HttpResponseCommand.cc
  2551. * src/HttpSkipResponseCommand.cc
  2552. * src/Makefile.am
  2553. * src/MultiUrlRequestInfo.cc
  2554. * src/Request.cc
  2555. * src/Request.h
  2556. * src/main.cc
  2557. * test/AllTest.cc
  2558. * test/CookieStorageTest.cc
  2559. * test/CookieTest.cc
  2560. * test/HttpRequestTest.cc
  2561. * test/HttpResponseTest.cc
  2562. * test/Makefile.am
  2563. * test/NsCookieParserTest.cc
  2564. * test/Sqlite3MozCookieParserTest.cc
  2565. * test/nscookietest.txt
  2566. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2567. Updated
  2568. * test/Cookies.sqlite
  2569. * test/nscookietest.txt
  2570. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2571. Added tests for CookieStorage::load()
  2572. * test/CookieStorageTest.cc
  2573. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2574. Added CookieStorage class which is based on RFC2109 and manages cookies
  2575. more strictly than CookieBox and CookieBoxFactory class.
  2576. * src/CookieStorage.cc
  2577. * src/CookieStorage.h
  2578. * src/Cookie.cc
  2579. * src/Cookie.h
  2580. * test/CookieStorageTest.cc
  2581. * test/CookieTest.cc
  2582. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2583. Fixed the bug that commands are created more than the number of pieces.
  2584. * src/RequestGroup.cc
  2585. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2586. Fixed infinite loop bug in FTP when SIZE command failed.
  2587. * src/FtpNegotiationCommand.cc
  2588. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2589. Removed DirectDiskAdaptorTest.h
  2590. * test/Makefile.am
  2591. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2592. Fixed chunk checksum validation cannot detect trailing garbage data.
  2593. BUG#2074141
  2594. * src/AbstractSingleDiskAdaptor.cc
  2595. * src/AbstractSingleDiskAdaptor.h
  2596. * src/CheckIntegrityEntry.cc
  2597. * src/CheckIntegrityEntry.h
  2598. * src/DiskAdaptor.h
  2599. * src/MultiDiskAdaptor.cc
  2600. * src/MultiDiskAdaptor.h
  2601. * src/RequestGroup.cc
  2602. * test/DirectDiskAdaptorTest.cc
  2603. * test/MultiDiskAdaptorTest.cc
  2604. * test/TestUtil.cc
  2605. * test/TestUtil.h
  2606. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2607. Bump up version number of dht.dat file to 3. In version 3 format, time
  2608. is stored in 64bit, network byte order.
  2609. New build can load old format(version 2) but it saves the file in new
  2610. format. It means once you used new build, your dht.dat becomes
  2611. incompatible with older build.
  2612. * src/DHTRoutingTableDeserializer.cc
  2613. * src/DHTRoutingTableSerializer.cc
  2614. * test/DHTRoutingTableSerializerTest.cc
  2615. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2616. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  2617. * test/Makefile.am
  2618. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2619. Bump up version number of .aria2 control file to 0001.
  2620. New aria2 can still load version 0000 file but it saves the file in
  2621. version 0001 format. It means that new aria2 can resume download
  2622. started by old aria2 but the opposite is not true.
  2623. * src/DefaultBtProgressInfoFile.cc
  2624. * src/DefaultBtProgressInfoFile.h
  2625. * test/DefaultBtProgressInfoFileTest.cc
  2626. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2627. Added ntoh64 and hton64 as inline functions.
  2628. * src/Util.cc
  2629. * test/UtilTest.cc
  2630. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2631. Added sqlite3 depenency and Firefox3 cookie support.
  2632. * README
  2633. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2634. State that firefox3 cookie is supported explicitly in the usage.
  2635. * src/usage_text.h
  2636. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2637. Externalized message.
  2638. * src/RequestGroupMan.cc
  2639. * src/message.h
  2640. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2641. Save temporary file first and rename to the destination on success.
  2642. Added test cases.
  2643. * src/RequestGroupMan.cc
  2644. * test/RequestGroupManTest.cc
  2645. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2646. Fixed the bug that the number of connected peer is exceeding the limit
  2647. (55 by default) in seeding mode.
  2648. Multiplied 0.8 to _maxUploadSpeedLimit.
  2649. * src/ActivePeerConnectionCommand.cc
  2650. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2651. Clear table item.
  2652. * src/Dictionary.cc
  2653. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2654. Fixed error handling of lseek.
  2655. * src/AbstractDiskWriter.cc
  2656. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2657. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  2658. style cookie file.
  2659. * src/usage_text.h
  2660. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2661. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  2662. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  2663. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  2664. * src/Util.cc
  2665. * src/Util.h
  2666. * src/CookieParser.cc
  2667. * test/UtilTest.cc
  2668. * test/CookieParserTest.cc
  2669. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2670. Separate the implementation to load old mozilla format of cookie to
  2671. NsCookieParser class.
  2672. * src/CookieBoxFactory.cc
  2673. * src/CookieBoxFactory.h
  2674. * src/NsCookieParser.cc
  2675. * src/NsCookieParser.h
  2676. * test/NsCookieParserTest.cc
  2677. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2678. Made parse() const
  2679. * src/Sqlite3MozCookieParser.cc
  2680. * src/Sqlite3MozCookieParser.h
  2681. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2682. Added firefox3 cookie support based on the patch submitted by
  2683. tizianomueller.
  2684. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  2685. this functionality.
  2686. * configure.ac
  2687. * m4/sqlite3.m4
  2688. * src/CookieBoxFactory.cc
  2689. * src/CookieBoxFactory.h
  2690. * src/Makefile.am
  2691. * src/Makefile.in
  2692. * src/Sqlite3MozCookieParser.cc
  2693. * src/Sqlite3MozCookieParser.h
  2694. * src/main.cc
  2695. * test/CookieBoxFactoryTest.cc
  2696. * test/Makefile.am
  2697. * test/Makefile.in
  2698. * test/Sqlite3MozCookieParserTest.cc
  2699. * test/badcookies.sqlite
  2700. * test/cookies.sqlite
  2701. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2702. Added Danish and Greek translations.
  2703. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  2704. Great thanks to all translators.
  2705. * po/LINGUAS
  2706. * po/el.po
  2707. * po/da.po
  2708. * po/es.po
  2709. * po/ca.po
  2710. * po/nn.po
  2711. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2712. Fixed man page: --follow-bittorrent should be --follow-torrent
  2713. * doc/aria2c.1.txt
  2714. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2715. Fixed: numCommand is less than the value specified in -C option.
  2716. * src/RequestGroup.cc
  2717. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2718. Fixed occasional assertion failure in PieceSegment.
  2719. Calling PieceStorage::getMissingPiece(size_t) was missing after
  2720. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  2721. creation of duplicate segments and one of the segment was finished then
  2722. assertion failure was caused.
  2723. * src/SegmentMan.cc
  2724. * test/SegmentManTest.cc
  2725. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2726. Added options to load/save the server's performance/status to a file
  2727. and the timeout to drop their data.
  2728. --server-stat-of=FILE specifies the file to which performance data
  2729. is saved.
  2730. --server-stat-if=FILE specifies the file to read previously saved
  2731. by --server-stat-of option. Might be used with --uri-selector=feedback.
  2732. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  2733. TIMEOUT is specified in seconds and the default value is 24hours.
  2734. * src/MultiUrlRequestInfo.cc
  2735. * src/OptionHandlerFactory.cc
  2736. * src/RequestGroupMan.cc
  2737. * src/RequestGroupMan.h
  2738. * src/ServerStatMan.cc
  2739. * src/ServerStatMan.h
  2740. * src/option_processing.cc
  2741. * src/prefs.cc
  2742. * src/prefs.h
  2743. * test/ServerStatManTest.cc
  2744. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2745. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  2746. * src/ServerStatMan.cc
  2747. * src/ServerStatMan.h
  2748. * test/ServerStatManTest.cc
  2749. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2750. Implemented ServerStatMan::load(...) function and its test case.
  2751. * src/ServerStat.cc
  2752. * src/ServerStat.h
  2753. * src/ServerStatMan.cc
  2754. * test/ServerStatManTest.cc
  2755. * test/ServerStatTest.cc
  2756. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2757. Use time_t instead of int32_t. Use int64_t where milli second is
  2758. expected.
  2759. * src/TimeA2.cc
  2760. * src/TimeA2.h
  2761. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2762. Implemented ServerStatMan::save(...) function and its test case.
  2763. * src/ServerStat.cc
  2764. * src/ServerStat.h
  2765. * src/ServerStatMan.cc
  2766. * src/ServerStatMan.h
  2767. * test/ServerStatManTest.cc
  2768. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2769. Now aria2 uses name attribute in Metalink as local filename in
  2770. BitTorrent downloads. BUG#2033999
  2771. * src/BtContext.h
  2772. * src/BtDependency.cc
  2773. * src/DefaultBtContext.cc
  2774. * src/DefaultBtContext.h
  2775. * src/SingleFileDownloadContext.cc
  2776. * src/SingleFileDownloadContext.h
  2777. * test/BtDependencyTest.cc
  2778. * test/DefaultBtContextTest.cc
  2779. * test/MockBtContext.h
  2780. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2781. Added AC_C_BIGENDIAN
  2782. * src/configure.ac
  2783. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2784. Limited numCommand less than or equal to the number of piece.
  2785. * src/RequestGroup.cc
  2786. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2787. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  2788. directive.
  2789. * test/DefaultPieceStorageTest.cc
  2790. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2791. Fixed memory leak in test code
  2792. * test/AnnounceListTest.cc
  2793. * test/DefaultPeerListProcessorTest.cc
  2794. * test/DefaultPeerStorageTest.cc
  2795. * test/MetaFileUtilTest.cc
  2796. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2797. Fixed wrong argument passing to BitfieldMan::isBitSet()
  2798. * src/DefaultPieceStorage.cc
  2799. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2800. Initialized _directIOAllowed
  2801. * src/MultiDiskAdaptor.cc
  2802. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2803. Fixed memory leak
  2804. * src/GZipDecoder.cc
  2805. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2806. Fixed memory leak
  2807. * src/MetalinkParserStateMachine.cc
  2808. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2809. Fixed memory leak
  2810. * src/Dictionary.cc
  2811. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2812. Fixed memory leak
  2813. * src/IteratableChunkChecksumValidator.h
  2814. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2815. Fixed unmatched malloc/free.
  2816. * src/IteratableChunkChecksumValidator.cc
  2817. * src/IteratableChecksumValidator.cc
  2818. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2819. Removed max chunk size check. This change fixes BUG#2040169
  2820. * src/ChunkedDecoder.cc
  2821. * src/ChunkedDecoder.h
  2822. * test/ChunkedDecoderTest.cc
  2823. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2824. Implemented download speed based URI selection algorithm.
  2825. Introduced new option --uri-selector.
  2826. If --uri-selector=feedback is given, aria2 uses download speed observed
  2827. in the previous downloads and chooses fastest server in the URI list.
  2828. Currently at most 10 URIs are considered to introduce randomeness for
  2829. finding better servers. The speed is average download speed in the
  2830. downloads.
  2831. On the other hand, if --uri-selector=inorder is given, which is default,
  2832. URI is tried in order in URI list.
  2833. The usage text for the new option has not been written yet.
  2834. * src/AbstractCommand.cc
  2835. * src/DownloadCommand.cc
  2836. * src/DownloadEngine.cc
  2837. * src/DownloadEngineFactory.cc
  2838. * src/InOrderURISelector.cc
  2839. * src/InOrderURISelector.h
  2840. * src/OptionHandlerFactory.cc
  2841. * src/PeerStat.h
  2842. * src/RequestGroup.cc
  2843. * src/RequestGroup.h
  2844. * src/RequestGroupMan.cc
  2845. * src/RequestGroupMan.h
  2846. * src/SegmentMan.cc
  2847. * src/SegmentMan.h
  2848. * src/ServerStat.cc
  2849. * src/ServerStat.h
  2850. * src/ServerStatMan.cc
  2851. * src/ServerStatMan.h
  2852. * src/ServerStatURISelector.cc
  2853. * src/ServerStatURISelector.h
  2854. * src/URISelector.h
  2855. * src/option_processing.cc
  2856. * src/prefs.cc
  2857. * src/prefs.h
  2858. * test/InOrderURISelectorTest.cc
  2859. * test/RequestGroupManTest.cc
  2860. * test/ServerStatManTest.cc
  2861. * test/ServerStatURISelectorTest.cc
  2862. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2863. * Release 0.15.1+2
  2864. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2865. Bump up version number to 0.15.1+2
  2866. * configure.ac
  2867. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2868. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  2869. * m4/aria2_arg.m4
  2870. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2871. * Release 0.15.1+1
  2872. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2873. Bump up version number to 0.15.1+1
  2874. * configure.ac
  2875. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2876. Fixed the bug that causes segmentaion fault when resuming download
  2877. using metalink without size tag. Reproducible only using HTTP URI.
  2878. * src/HttpResponseCommand.cc
  2879. * src/FtpNegotiationCommand.cc
  2880. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2881. * Release 0.15.1
  2882. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2883. Updated Bulgarian and French translations, thanks to all translators.
  2884. * po/bg.po
  2885. * po/fr.po
  2886. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2887. Bump up version number to 0.15.1
  2888. * configure.ac
  2889. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2890. Avoid repeated call of gettimeofday() when calculating speed.
  2891. * src/SpeedCalc.cc
  2892. * src/SpeedCalc.h
  2893. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2894. Removed writable check when socket's send buffer is full in BitTorrent
  2895. downloads to lower CPU usage.
  2896. * src/PeerInteractionCommand.cc
  2897. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2898. Fixed broken gzip inflation.
  2899. Turn off segmented downloading if gzip content is smaller than or equal
  2900. to 1MiB and inflate the data on the fly, because HTTP response header
  2901. doesn't contain the length of inflated file we can't determin where
  2902. the chunk of data should be written.
  2903. On the other hand, if gzip content is larger than 1MB, then turn off
  2904. on the fly inflation, because some servers returns "content-type: gzip"
  2905. for *.tgz, *.gz files.
  2906. * src/DownloadCommand.cc
  2907. * src/HttpResponseCommand.cc
  2908. * src/HttpResponseCommand.h
  2909. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2910. Applied tizianomueller's patch to fix compile error.
  2911. * test/BitfieldManTest.cc
  2912. * test/BtRequestMessageTest.cc
  2913. * test/DefaultBtContextTest.cc
  2914. * test/DefaultDiskWriterTest.cc
  2915. * test/DefaultPieceStorageTest.cc
  2916. * test/HttpHeaderProcessorTest.cc
  2917. * test/HttpResponseTest.cc
  2918. * test/Metalink2RequestGroupTest.cc
  2919. * test/MetalinkParserControllerTest.cc
  2920. * test/MetalinkProcessorTest.cc
  2921. * test/PeerSessionResourceTest.cc
  2922. * test/UtilTest.cc
  2923. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2924. * Release 0.15.0
  2925. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2926. Reordered src files in POTFILES.in so that usage text appears first.
  2927. * po/POTFILES.in
  2928. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2929. Bump up version number to 0.15.0
  2930. * configure.ac
  2931. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2932. Added Bulgarian translation.
  2933. Updated Catalan, Spanish, French and Japanese translations.
  2934. Thanks to all translators.
  2935. * po/LINGUAS
  2936. * po/bg.po
  2937. * po/ca.po
  2938. * po/es.po
  2939. * po/fr.po
  2940. * po/ja.po
  2941. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2942. Updated feature list. Added libz for dependency section.
  2943. Added a description about unit testing using CppUnit.
  2944. * README
  2945. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2946. Added a test for libz. Quoted where it is necessary.
  2947. * build_test.sh
  2948. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2949. Added GZip to `Enabled Features' list.
  2950. * src/FeatureConfig.cc
  2951. * src/FeatureConfig.h
  2952. * test/FeatureConfigTest.cc
  2953. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2954. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  2955. the transfer has not yet started.
  2956. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  2957. * src/SegmentMan.cc
  2958. * src/SegmentMan.h
  2959. * test/SegmentManTest.cc
  2960. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2961. Cache last calculated average download/upload speed.
  2962. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  2963. cached value.
  2964. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  2965. * src/PeerStat.h
  2966. * src/SpeedCalc.cc
  2967. * src/SpeedCalc.h
  2968. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2969. Call parseUrl directly.
  2970. * src/Request.cc (resetUrl)
  2971. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2972. Supported absolute/relative path in Location header field.
  2973. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  2974. * src/HttpHeader.cc
  2975. * src/HttpHeader.h
  2976. * src/HttpResponse.cc
  2977. * src/HttpSkipResponseCommand.cc
  2978. * src/Request.cc
  2979. * test/HttpHeaderTest.cc
  2980. * test/HttpResponseTest.cc
  2981. * test/RequestTest.cc
  2982. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2983. Changed help text for --load-cookie option.
  2984. * doc/aria2c.1.txt
  2985. * src/usage_text.h
  2986. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2987. Regenerated test/Makefile.in to remove stale ChangeLog.
  2988. * test/Makefile.in
  2989. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2990. Updated po files.
  2991. * po/aria2c.pot
  2992. * po/*.po
  2993. * po/*.gmo
  2994. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2995. Bump up version number to 0.15.0b
  2996. * configure.ac
  2997. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2998. Externalize messages.
  2999. * src/RequestGroupMan.cc
  3000. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3001. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3002. Use File::exists() instead of File::isFile() to allow non-regular file
  3003. such as block special files.
  3004. * src/AbstractDiskWriter.cc
  3005. * src/MultiDiskWriter.cc
  3006. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3007. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3008. * src/gai_strerror.h
  3009. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3010. Fixed compile error. Thanks gknauf for the patch.
  3011. * src/asctime_r.c
  3012. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3013. Included asctime_r.h from a2time.h.
  3014. * src/a2time.h
  3015. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3016. Added a message "aria2 doesn't verify signature" to log message when
  3017. signature file is saved.
  3018. * src/RequestGroupMan.cc
  3019. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3020. Added the ability to save signature when download is completed if
  3021. signature is available. The filename of signature file is the path to
  3022. download file followed by ".sig". If it already exists, then signature
  3023. will not be saved.
  3024. * src/RequestGroupMan.cc
  3025. * src/Signature.cc
  3026. * test/SignatureTest.cc
  3027. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3028. Updated the descriptions for --bt-seed-unverified.
  3029. * doc/aria2c.1
  3030. * doc/aria2c.1.html
  3031. * doc/aria2c.1.txt
  3032. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3033. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3034. that this is not going to verify files using piece hashes.
  3035. * src/HelpItemFactory.cc
  3036. * src/OptionHandlerFactory.cc
  3037. * src/RequestGroup.cc
  3038. * src/option_processing.cc
  3039. * src/prefs.cc
  3040. * src/prefs.h
  3041. * src/usage_text.h
  3042. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3043. Added the ability to retrieve signature from Metalink file.
  3044. A retrieved signature is stored in Signature class and it is held by
  3045. DownloadContext class. Note that aria2 doesn't verify signature.
  3046. * src/DownloadContext.cc
  3047. * src/DownloadContext.h
  3048. * src/Makefile.am
  3049. * src/Makefile.in
  3050. * src/Metalink2RequestGroup.cc
  3051. * src/MetalinkEntry.cc
  3052. * src/MetalinkEntry.h
  3053. * src/MetalinkParserController.cc
  3054. * src/MetalinkParserController.h
  3055. * src/MetalinkParserStateMachine.cc
  3056. * src/MetalinkParserStateMachine.h
  3057. * src/Signature.cc
  3058. * src/Signature.h
  3059. * src/SignatureMetalinkParserState.cc
  3060. * src/SignatureMetalinkParserState.h
  3061. * src/VerificationMetalinkParserState.cc
  3062. * src/VerificationMetalinkParserState.h
  3063. * test/Metalink2RequestGroupTest.cc
  3064. * test/MetalinkParserControllerTest.cc
  3065. * test/MetalinkProcessorTest.cc
  3066. * test/test.xml
  3067. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3068. Close DiskAdaptor after renaming file.
  3069. * src/RequestGroup.cc
  3070. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3071. Corrected indentation
  3072. * src/DefaultBtProgressInfoFile.cc
  3073. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3074. Moved the calls of std::ios::exceptions() inside of try-catch block
  3075. because if an error occurred in constructor of std::fstream, then
  3076. exception is thrown immediately when std::ios::exceptions() is called
  3077. which results unhandled exception and aria2c aborts.
  3078. * src/DefaultBtProgressInfoFile.cc
  3079. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3080. Added the test for the previous change in DefaultBtContext.cc
  3081. * test/DefaultBtContextTest.cc
  3082. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3083. Fixed the bug that causes infinite loop when the number of pieces are
  3084. fewer than allowed fast set size which is 10 by default.
  3085. * src/DefaultBtContext.cc
  3086. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3087. Updated the descriptions for -j, -s. Added --bt-seed.
  3088. * doc/aria2c.1
  3089. * doc/aria2c.1.html
  3090. * doc/aria2c.1.txt
  3091. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3092. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3093. aria2 seeds previously downloaded files without validating piece hashs.
  3094. * src/HelpItemFactory.cc
  3095. * src/OptionHandlerFactory.cc
  3096. * src/RequestGroup.cc
  3097. * src/option_processing.cc
  3098. * src/prefs.cc
  3099. * src/prefs.h
  3100. * src/usage_text.h
  3101. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3102. Updated DESCRIPTION of man page.
  3103. * doc/aria2c.1
  3104. * doc/aria2c.1.html
  3105. * doc/aria2c.1.txt
  3106. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3107. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3108. Don't define `struct addrinfo' when __sun is defined.
  3109. * src/getaddrinfo.h
  3110. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3111. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3112. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3113. second argument is of type `struct _stati64'. Otherwise it is defined as
  3114. `struct stat'.
  3115. * src/AbstractDiskWriter.cc
  3116. * src/File.cc
  3117. * src/File.h
  3118. * src/a2io.h
  3119. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3120. Fixed the compile error in hurd-i386
  3121. See the original bug report:
  3122. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3123. * src/a2io.h
  3124. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3125. Code cleanup.
  3126. * src/PeerAbstractCommand.cc
  3127. * src/PeerAbstractCommand.h
  3128. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3129. Removed TransferEncoding.
  3130. * src/DownloadCommand.cc
  3131. * src/DownloadCommand.h
  3132. * src/HttpResponseCommand.cc
  3133. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3134. Updated po files.
  3135. * po/aria2c.pot
  3136. * po/*.po
  3137. * po/*.gmo
  3138. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3139. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3140. * src/A2STR.cc
  3141. * src/A2STR.h
  3142. * src/ChunkedDecoder.cc
  3143. * src/ChunkedDecoder.h
  3144. * src/ChunkedEncoding.cc: Removed
  3145. * src/ChunkedEncoding.h: Removed
  3146. * src/DownloadCommand.cc
  3147. * src/DownloadCommand.h
  3148. * src/HttpDownloadCommand.cc
  3149. * src/HttpResponse.cc
  3150. * src/HttpResponse.h
  3151. * src/HttpResponseCommand.cc
  3152. * src/HttpSkipResponseCommand.cc
  3153. * src/HttpSkipResponseCommand.h
  3154. * src/Makefile.am
  3155. * src/TransferEncoding.h: Removed
  3156. * test/ChunkedDecoderTest.cc
  3157. * test/ChunkedEncodingTest.cc: Removed
  3158. * test/HttpResponseTest.cc
  3159. * test/Makefile.am
  3160. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3161. Use append instead of insert.
  3162. * src/GZipDecoder.cc
  3163. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3164. Updated doc
  3165. * src/Decoder.h
  3166. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3167. Updated usage text for -s option.
  3168. * src/usage_text.h
  3169. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3170. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3171. * src/Request.cc
  3172. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3173. Cleaned up configure.ac.
  3174. * configure.ac
  3175. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3176. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3177. AC_ARG_ENABLE.
  3178. * configure.ac
  3179. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3180. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3181. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3182. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  3183. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  3184. fly and writes decoded data to a local disk.
  3185. * README
  3186. * README.html
  3187. * configure.ac
  3188. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  3189. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  3190. * m4/libz.m4
  3191. * src/Decoder.h
  3192. * src/DownloadCommand.cc
  3193. * src/DownloadCommand.h
  3194. * src/Exception.h
  3195. * src/GZipDecoder.cc
  3196. * src/GZipDecoder.h
  3197. * src/HttpHeader.cc
  3198. * src/HttpHeader.h
  3199. * src/HttpRequest.cc
  3200. * src/HttpRequest.h
  3201. * src/HttpResponse.cc
  3202. * src/HttpResponse.h
  3203. * src/HttpResponseCommand.cc
  3204. * src/Makefile.am
  3205. * test/GZipDecoderTest.cc
  3206. * test/HttpRequestTest.cc
  3207. * test/HttpResponseTest.cc
  3208. * test/Makefile.am
  3209. * test/Makefile.in
  3210. * test/gzip_decode_test.gz
  3211. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3212. Clarified usage of -j option.
  3213. * src/usage_text.h
  3214. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3215. Disabled getting size from the response of RETR.
  3216. If SIZE command failed, then disable resuming and segmented downloading.
  3217. * src/FtpConnection.cc
  3218. * src/FtpConnection.h
  3219. * src/FtpNegotiationCommand.cc
  3220. * src/FtpNegotiationCommand.h
  3221. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3222. Use digits to find first byte of file size, which makes the intention
  3223. of the code clearer.
  3224. * src/FtpConnection.cc
  3225. Don't call validateTotalLength() when size is 0.
  3226. * src/FtpNegotiationCommand.cc
  3227. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3228. Updated po files.
  3229. * po/aria2c.pot
  3230. * po/*.gmo
  3231. * po/*.po
  3232. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Clarified usage text for --split option.
  3234. * src/usage_text.h
  3235. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3236. Bump up version number to 0.15.0dev. "dev" means "development"
  3237. version, which means I started the development of the next release!
  3238. * src/configure.ac
  3239. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3240. If FTP server returns negative response with REST raw command and
  3241. requested range is not 0, throw exception. If requested range is 0,
  3242. continue download a file from 0 byte.
  3243. * src/FtpNegotiationCommand.cc
  3244. * src/FtpNegotiationCommand.h
  3245. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3246. Supported FTP server which don't recognize SIZE raw command.
  3247. If SIZE raw command is failed, aria2 will try to get file size
  3248. from the response of RETR raw command. If both attempts are failed,
  3249. then resuming and segmented downloading are disabled.
  3250. * src/FtpConnection.cc
  3251. * src/FtpConnection.h
  3252. * src/FtpNegotiationCommand.cc
  3253. * src/FtpNegotiationCommand.h
  3254. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3255. * Release 0.14.0+1
  3256. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3257. Bump up version number to 0.14.0+1
  3258. * src/configure.ac
  3259. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3260. Fixed the code that refers static member variable from non-static
  3261. context.
  3262. * src/DefaultPeerStorage.cc
  3263. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3264. * Release 0.14.0
  3265. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3266. Added build test script
  3267. * build_test.sh
  3268. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3269. Updated ja.po
  3270. * src/ja.po
  3271. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3272. Bump up version number to 0.14.0
  3273. * src/configure.ac
  3274. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3275. Updated ja.po and fr.po. Great thanks for french translators and
  3276. Sebastien WILLEMIJNS.
  3277. * po/fr.po
  3278. * po/ja.po
  3279. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3280. Added configure option to enable/disable epoll support.
  3281. * configure.ac
  3282. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3283. Updated man page.
  3284. * doc/aria2c.1.txt
  3285. * doc/aria2c.1
  3286. * doc/aria2c.1.html
  3287. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3288. Added missing default value '5' to the usage of --split option.
  3289. * src/HelpItemFactory.cc
  3290. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3291. Filled up pieces based on the number of missing blocks, rather than
  3292. simplay the number of piece * block length.
  3293. * src/BtRequestFactory.h
  3294. * src/DefaultBtInteractive.cc
  3295. * src/DefaultBtInteractive.h
  3296. * src/DefaultBtRequestFactory.cc
  3297. * src/DefaultBtRequestFactory.h
  3298. * src/Piece.cc
  3299. * src/Piece.h
  3300. * test/BitfieldManTest.cc
  3301. * test/DefaultBtRequestFactoryTest.cc
  3302. * test/MockBtRequestFactory.h
  3303. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3304. Made _epEvents a member variable.
  3305. * src/DownloadEngine.cc
  3306. * src/DownloadEngine.h
  3307. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3308. Cancel download if http redirect is bounded more than 20 times.
  3309. * src/AbstractCommand.cc
  3310. * src/HttpSkipResponseCommand.cc
  3311. * src/Request.cc
  3312. * src/Request.h
  3313. * test/RequestTest.cc
  3314. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3315. Fixed unhandled exception(removed keyword `new').
  3316. * src/SocketCore.cc (initEPOLL)
  3317. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3318. Removed visit(const MetaEntry*)
  3319. * src/MetaEntryVisitor.h:
  3320. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3321. and made them virtual.
  3322. * src/BencodeVisitor.h
  3323. * src/BencodeVisitor.cc
  3324. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3325. Updated po files.
  3326. * po/aria2c.pot
  3327. * po/*.po
  3328. * po/*.gmo
  3329. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3330. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3331. the number of socket to watch out.
  3332. * src/PeerInteractionCommand.cc
  3333. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3334. When there is not enough space in disk when writing a chunk of data,
  3335. aria2 now prints the message to the console to warn user and aborts
  3336. its download. Not all downloads are canceled because some downloads
  3337. may use another disk or partition. BUG#1640332
  3338. * src/AbstractDiskWriter.cc
  3339. * src/PeerAbstractCommand.cc
  3340. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3341. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3342. setHaltRequested(true) to cancel download.
  3343. * src/PeerInteractionCommand.h
  3344. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3345. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3346. socket from int to sock_t as sockets are unsigned in Windows.
  3347. For AsyncNameResolver, DownloadEngine, I did additional modification
  3348. for the portion of the code changed according to epoll support.
  3349. I defined sock_t in a2netcompat.h to use sock_t without including
  3350. SocketCore.h.
  3351. * src/AsyncNameResolver.cc
  3352. * src/AsyncNameResolver.h
  3353. * src/DownloadEngine.cc
  3354. * src/DownloadEngine.h
  3355. * src/SocketCore.cc
  3356. * src/SocketCore.h
  3357. * src/a2netcompat.h
  3358. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3359. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3360. changes in the patch were applied.
  3361. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3362. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3363. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3364. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3365. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3366. a2io.h and common.h were modified.
  3367. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3368. MinGW.
  3369. * src/common.h: Changed off_t to 64 bit in MinGW.
  3370. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3371. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3372. only a2netcompat.h is modified.
  3373. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3374. directives.
  3375. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3376. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3377. only gai_strerror.h is modified.
  3378. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3379. winsock errors in MinGW.
  3380. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3381. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3382. follow sources are applied.
  3383. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3384. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3385. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3386. I included locale.h from Platform.cc.
  3387. * src/main.cc: Moved common setup/teardown code to Platform class.
  3388. * test/AllTest.cc: Use Platform class.
  3389. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3390. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3391. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3392. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3393. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3394. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3395. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3396. aria2-0.13.2+1-mingw-2.patch.
  3397. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3398. systems which don't have termious.h. I moved the directive inside of
  3399. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3400. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3401. anyway.
  3402. * src/asctime_r.h
  3403. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3404. I added 2nd argument to the prototype declaration.
  3405. * src/StringFormat.cc: Get rid of vasprintf.
  3406. * src/getaddrinfo.h: Fixed constants.
  3407. * configure.ac: Added the check for asctime_r function.
  3408. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3409. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3410. Added writable test for Socket when the sending message is in progress.
  3411. Usually the sending message is piece message. Without wriable check,
  3412. upload latency is dropped to more than 1sec.
  3413. * src/PeerInteractionCommand.cc
  3414. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3415. Create only requested files and files which shares a piece with
  3416. requested file in multi-torrent downloads. Directory structures are
  3417. also created in the same rule.
  3418. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  3419. DiskWriterEntry as in the previous implementation.
  3420. * src/MultiDiskWriter.cc
  3421. * src/MultiFileAllocationIterator.cc
  3422. * src/MultiFileAllocationIterator.h
  3423. * test/MultiFileAllocationIteratorTest.cc
  3424. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3425. Commented out -lprofiler
  3426. * src/Makefile.am
  3427. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3428. Bump up version number to 0.14.0b.
  3429. * src/configure.ac
  3430. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3431. Actively establish connection to peers in seeding, when peer cache
  3432. is not full and max upload speed limit is not reached.
  3433. * src/ActivePeerConnectionCommand.cc
  3434. * src/ActivePeerConnectionCommand.h
  3435. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3436. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  3437. to make room more fleshy, recently found peers.
  3438. Peer::_badConditionStartTime is not used anymore. Consider to remove
  3439. it.
  3440. * src/DefaultPeerStorage.cc
  3441. * test/DefaultPeerStorageTest.cc
  3442. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3443. Returns cached data only when the previous receiveHandshake() is called
  3444. with peek = true.
  3445. * src/PeerConnection.cc (receiveHandshake)
  3446. * src/PeerConnection.h (receiveHandshake)
  3447. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3448. Changed default value of -s option from 1 to 5.
  3449. Also max value of -s option is changed from 5 to 16.
  3450. * src/HelpItemFactory.cc
  3451. * src/OptionHandlerFactory.cc
  3452. * src/option_processing.cc
  3453. * src/usage_text.h
  3454. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3455. Changed -s options behavior. Now it means the number of connections
  3456. made simultaneously in each http/ftp download.
  3457. If 1 URL is specified, the behavior is the same with old implementation.
  3458. If -s N is given and more than N URLs are specified, first N URLs are
  3459. used and remaining URLs are used for backup. If less than N URLs are
  3460. specified, some of URLs are used more than once so that totally N
  3461. connections are made simultaneously.
  3462. * src/main.cc
  3463. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3464. Included missing iosfwd or ostream header.
  3465. * src/RequestGroupMan.cc
  3466. * src/TaggedItem.cc
  3467. * src/TaggedItem.h
  3468. * src/Util.cc
  3469. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3470. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  3471. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  3472. * src/HttpConnection.cc: Included missing sstream.
  3473. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3474. Added --bt-max-open-files option.
  3475. * src/DefaultPieceStorage.cc
  3476. * src/HelpItemFactory.cc
  3477. * src/MultiDiskAdaptor.cc
  3478. * src/MultiDiskAdaptor.h
  3479. * src/OptionHandlerFactory.cc
  3480. * src/option_processing.cc
  3481. * src/prefs.cc
  3482. * src/prefs.h
  3483. * src/usage_text.h
  3484. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3485. Fixed the bug that aria2 aborts when a path to a directory is given
  3486. in command-line.
  3487. * src/ProtocolDetector.cc
  3488. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3489. Limited the number files opened in each BitTorrent download. The default
  3490. value is 100. The option to change this value will be added.
  3491. * src/MultiDiskAdaptor.cc
  3492. * src/MultiDiskAdaptor.h
  3493. * src/MultiFileAllocationIterator.cc
  3494. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3495. Fixed the bug that HTTP downloads don't start with old libraries.
  3496. * src/HttpHeaderProcessor.cc
  3497. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3498. Use empty() instead of size() > 0.
  3499. * src/HttpConnection.cc
  3500. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3501. Drop connection if the incoming peer ID is the same with localhost's
  3502. one. The previous implementation drops connection when incoming peer's
  3503. IP address is the same with localhost's one.
  3504. * src/PeerListenCommand.cc
  3505. * src/DefaultBtInteractive.cc
  3506. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3507. Returns cached data without checking whether socket is readable
  3508. if the cache is available.
  3509. * src/PeerConnection.cc (receiveHandshake)
  3510. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3511. Included stdint.h
  3512. * src/common.h
  3513. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3514. Removed duplicate HAVE_GETTIMEOFDAY
  3515. * src/Makefile.am
  3516. * src/Makefile.in
  3517. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3518. Use interval as a minInterval when minInterval is not supplied.
  3519. * src/DefaultBtAnnounce.cc
  3520. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3521. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  3522. attempt is failed, then 2nd attempt get kicked out more quickly.
  3523. And it is now static const member of DefaultBtAnnounce.
  3524. * src/DefaultBtAnnounce.h
  3525. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3526. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  3527. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  3528. * src/ActivePeerConnectionCommand.cc
  3529. * src/BtConstants.h
  3530. * src/BtRuntime.h
  3531. * src/DHTGetPeersCommand.cc
  3532. * src/DefaultBtAnnounce.cc
  3533. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  3534. BtRuntime::MAX_PEERS.
  3535. * src/DefaultPeerStorage.h
  3536. * src/InitiatorMSEHandshakeCommand.cc
  3537. * src/PeerInitiateConnectionCommand.cc
  3538. * src/PeerInteractionCommand.cc
  3539. * src/PeerReceiveHandshakeCommand.cc
  3540. * src/TrackerWatcherCommand.cc
  3541. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3542. Always Connect to _numNewConnection
  3543. * src/ActivePeerConnectionCommand.cc
  3544. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3545. Made `begin' unsigned int.
  3546. * src/GrowSegment.h
  3547. * src/Piece.cc
  3548. * src/Piece.h
  3549. * src/PiecedSegment.cc
  3550. * src/PiecedSegment.h
  3551. * src/Segment.h
  3552. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3553. Calculate piece hash when data is arrived if the data is arrived in
  3554. order. This removes additional read operation for hash calculation.
  3555. If the data is arrived in out of order, the hash is calucated when the
  3556. piece is completed. This is the same behavior as the old implementation.
  3557. * src/BtPieceMessage.cc
  3558. * src/DefaultBtProgressInfoFile.cc
  3559. * src/DefaultPieceStorage.cc
  3560. * src/DownloadCommand.cc
  3561. * src/DownloadCommand.h
  3562. * src/DownloadEngine.cc
  3563. * src/GrowSegment.cc
  3564. * src/GrowSegment.h
  3565. * src/Piece.cc
  3566. * src/Piece.h
  3567. * src/PiecedSegment.cc
  3568. * src/PiecedSegment.h
  3569. * src/Segment.h
  3570. * test/PieceTest.cc
  3571. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3572. Try to keep the ordering of outgoing piece message.
  3573. * src/DefaultBtMessageDispatcher.cc
  3574. (DefaultBtMessageDispatcher::sendMessages)
  3575. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3576. Fixed busy loop when error/hup epoll events occur.
  3577. * src/AbstractCommand.cc
  3578. * src/PeerAbstractCommand.cc
  3579. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3580. Added --bt-request-peer-speed-limit option, which was a constant
  3581. SLOW_SPEED_THRESHOLD.
  3582. * src/ActivePeerConnectionCommand.cc
  3583. * src/ActivePeerConnectionCommand.h
  3584. * src/BtConstants.h
  3585. * src/HelpItemFactory.cc
  3586. * src/OptionHandlerFactory.cc
  3587. * src/PeerReceiveHandshakeCommand.cc
  3588. * src/option_processing.cc
  3589. * src/prefs.cc
  3590. * src/prefs.h
  3591. * src/usage_text.h
  3592. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3593. Removed repeated call of getTopDirPath(). Instead, call it once and
  3594. cache the result.
  3595. * src/MultiDiskAdaptor.cc
  3596. * src/MultiDiskAdaptor.h
  3597. (mkdir, openFile, initAndOpenFile, openExistingFile)
  3598. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3599. Fixed compile error on debian etch.
  3600. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  3601. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  3602. it is undefined.
  3603. * src/Util.cc (ULLONG_MAX)
  3604. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3605. Added epoll support. Use epoll if it is available. If not, use select.
  3606. When async dns is enabled in compile time, epoll support is enabled
  3607. only when aria2 is built with c-ares. This condition statement is
  3608. defined in a2io.h.
  3609. Currently aria2 supports both c-ares and ares, but ares is maintained
  3610. for quite a while and debian already has c-ares package, ares support
  3611. will be dropped in the future version.
  3612. * configure.ac
  3613. * src/AbstractCommand.cc
  3614. * src/AsyncNameResolver.cc
  3615. * src/AsyncNameResolver.h
  3616. * src/Command.cc
  3617. * src/Command.h
  3618. * src/DownloadEngine.cc
  3619. * src/DownloadEngine.h
  3620. * src/PeerAbstractCommand.cc
  3621. * src/SocketCore.cc
  3622. * src/SocketCore.h
  3623. * src/a2io.h
  3624. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3625. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  3626. directive.
  3627. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3628. Do not do write operation to /dev/null file.
  3629. * src/LogFactory.cc
  3630. * src/SimpleLogger.cc
  3631. Replaced vasprintf with vsnprintf
  3632. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3633. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3634. * src/BtRequestMessage.cc
  3635. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  3636. for segmentation fault caused by previous commit.
  3637. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3638. Reduced the usage of gettimeofday().
  3639. * src/DefaultBtMessageDispatcher.cc
  3640. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  3641. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3642. * src/RequestSlot.cc
  3643. * src/RequestSlot.h
  3644. (RequestSlot::isTimeout)
  3645. Made RequestSlot have a reference to Piece object to avoid find
  3646. Piece repeatedly.
  3647. * src/DefaultBtMessageDispatcher.cc
  3648. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3649. * src/RequestSlot.cc
  3650. * src/RequestSlot.h
  3651. (RequestSlot::getPiece)
  3652. * test/DefaultBtMessageDispatcherTest.cc
  3653. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3654. * src/TimeA2.cc
  3655. * src/TimeA2.h
  3656. (Time::difference): New function.
  3657. (Time::elapsed): Done optimization.
  3658. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3659. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  3660. directive.
  3661. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3662. * src/option_processing.cc: Added missing `defined' keyword to #if
  3663. directive.
  3664. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3665. Bump up version number to 0.13.2+1
  3666. * src/configure.ac
  3667. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3668. Refactored broken outstanding piece handling.
  3669. * src/DefaultPieceStorage.cc
  3670. * src/DefaultPieceStorage.h
  3671. * src/Piece.cc
  3672. * src/Piece.h
  3673. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3674. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  3675. name collision of static variable and predefined macro.
  3676. * src/BtContext.cc
  3677. * src/BtContext.h
  3678. * src/CookieBoxFactory.cc
  3679. * src/CookieBoxFactory.h
  3680. * src/CookieParser.cc
  3681. * src/CookieParser.h
  3682. * src/DefaultBtContext.cc
  3683. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3684. * src/RequestGroup.cc
  3685. (RequestGroup::createInitialCommand): Use empty() instead of size().
  3686. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3687. * Release 0.13.2
  3688. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3689. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  3690. * po/fr.po
  3691. * po/ja.po
  3692. * po/aria2c.pot
  3693. * po/*.po
  3694. * po/*.gmo
  3695. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3696. Bump up version number to 0.13.2
  3697. * src/configure.ac
  3698. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3699. Refactord.
  3700. * src/RequestGroupMan.cc
  3701. (removeStoppedGroup)
  3702. (fillRequestGroupFromReserver)
  3703. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3704. Fixed compile error on Ubuntu.
  3705. * src/BtPieceMessage.cc
  3706. * src/MessageDigestHelper.cc
  3707. * src/Util.cc
  3708. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3709. Fixed compile error when configured with --disable-bittorrent
  3710. * test/DownloadHandlerFactoryTest.cc
  3711. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3712. Done make update-po
  3713. * po/aria2c.pot
  3714. * po/*.po
  3715. * po/*.gmo
  3716. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3717. Bump up version number to 0.13.2rc.
  3718. * src/configure.ac
  3719. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3720. Made option name bold. Updated SYNOPSIS to make it more readable.
  3721. * doc/aria2c.1.txt
  3722. * doc/aria2c.1
  3723. * doc/aria2c.1.html
  3724. * src/version_usage.cc
  3725. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3726. Refactored. Use std::string instead of size and char*.
  3727. * Data.cc
  3728. * Data.h
  3729. * test/Data.cc
  3730. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3731. Added trimSelf(). Rewritten trim() to use trimSelf().
  3732. * Util.cc
  3733. * Util.h
  3734. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3735. * src/ChunkChecksum.h (getChecksum): Return const reference.
  3736. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3737. Fixed compile error when configured with --disable-metalink.
  3738. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  3739. * test/FeatureConfigTest.cc
  3740. * test/DownloadHandlerFactoryTest.cc
  3741. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3742. Fixed compile error when configured with --without-gnutls
  3743. --without-openssl
  3744. * src/main.cc
  3745. * test/DefaultBtProgressInfoFileTest.cc
  3746. * test/SegmentManTest.cc
  3747. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3748. Fixed compile error with OpenSSL.
  3749. * src/IteratableChunkChecksumValidator.cc
  3750. * src/LibsslDHKeyExchange.h
  3751. * src/MessageDigestHelper.cc
  3752. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3753. Revert the default value of --max-concurrent-downloads to 5.
  3754. Revert the default value of --metalink-servers to 5.
  3755. Man pages was also updated.
  3756. * src/option_processing.cc
  3757. * doc/aria2c.1.txt
  3758. * doc/aria2c.1.html
  3759. * doc/aria2c.1
  3760. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3761. Returns const reference:
  3762. DownloadContext::getPieceHash, DownloadContext::getName,
  3763. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  3764. BtContext::getInfoHashAsString,
  3765. * src/BtContext.h
  3766. * src/DefaultBtContext.cc
  3767. * src/DefaultBtContext.h
  3768. * src/DownloadContext.h
  3769. * src/SingleFileDownloadContext.h
  3770. * test/MockBtContext.h
  3771. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3772. * src/RequestGroup.h (getDir): Removed.
  3773. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3774. Returns const reference. The internal urlencode function was optimized
  3775. a little bit.
  3776. * src/Request.cc
  3777. * src/Request.h
  3778. * src/HttpRequest.cc
  3779. * src/HttpRequest.h
  3780. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3781. Defined option name and possible values as std::string to reduce
  3782. temporary string object creation in runtime.
  3783. * src/HelpItemFactory.cc
  3784. * src/LogFactory.cc
  3785. * src/Option.cc
  3786. * src/OptionHandlerFactory.cc
  3787. * src/option_processing.cc
  3788. * src/prefs.cc
  3789. * src/prefs.h
  3790. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3791. Return const reference.
  3792. * src/DownloadHandlerConstants.cc
  3793. * src/DownloadHandlerConstants.h
  3794. (getMetalinkExtensions)
  3795. (getMetalinkContentTypes)
  3796. (getBtExtensions)
  3797. (getBtContentTypes)
  3798. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3799. * src/HttpHeader.cc (get): Rewritten.
  3800. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3801. Make HttpHeader::getFirst(...) return const reference.
  3802. * src/HttpHeader.cc
  3803. * src/HttpHeader.h
  3804. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. Use Option::getAsBool(...) instead of Option::get(...) and compare
  3806. it with V_TRUE.
  3807. * src/DefaultPieceStorage.cc
  3808. * src/DownloadCommand.cc
  3809. * src/FtpNegotiationCommand.cc
  3810. * src/HttpRequest.cc
  3811. * src/InitiateConnectionCommand.cc
  3812. * src/RequestGroup.cc
  3813. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3814. Made Option::get(...) return const reference of std::string.
  3815. * src/Option.cc
  3816. * src/Option.h
  3817. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3818. Replaced std:copy with insert.
  3819. * src/DefaultBtMessageDispatcher.cc
  3820. * src/DefaultPieceStorage.cc
  3821. * src/DownloadEngineFactory.cc
  3822. * src/RequestGroup.cc
  3823. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3824. Included SocketCore.h to fix compiler warning.
  3825. * src/InitiateConnectionCommand.cc
  3826. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3827. Put piece selection strategy algorithm to RarestPieceSelector class,
  3828. Added a switch to choose whether randomized selection so that unit
  3829. tests emit same results in, possibly, win32.
  3830. * src/DefaultPieceStorage.cc
  3831. * src/DefaultPieceStorage.h
  3832. * src/RarestPieceSelector.cc
  3833. * src/RarestPieceSelector.h
  3834. * test/DefaultPieceStorageTest.cc
  3835. * test/RarestPieceSelectorTest.cc
  3836. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3837. Don't pool connection if HTTP proxy is enabled.
  3838. * src/FtpFinishDownloadCommand.cc
  3839. * src/FtpNegotiationCommand.cc
  3840. * src/HttpSkipResponseCommand.cc
  3841. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3842. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  3843. * src/AbstractCommand.cc
  3844. * src/AbstractCommand.h
  3845. * src/ActivePeerConnectionCommand.cc
  3846. * src/FtpInitiateConnectionCommand.cc
  3847. * src/HttpInitiateConnectionCommand.cc
  3848. * src/InitiateConnectionCommandFactory.cc
  3849. * src/PeerAbstractCommand.cc
  3850. * src/PeerAbstractCommand.h
  3851. * src/PeerInitiateConnectionCommand.cc
  3852. * src/TrackerWatcherCommand.cc
  3853. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3854. Sort RequestSlot in ascending order and manipulate them using
  3855. lower_bound.
  3856. * src/DefaultBtMessageDispatcher.cc
  3857. * src/DefaultBtMessageDispatcher.h
  3858. (getMessageQueue): Added const qualifier.
  3859. (getRequestSlots): Added const qualifier.
  3860. (sendMessages): Use empty() instead of size().
  3861. (doCancelSendingPieceAction): Use HandleEvent object.
  3862. (doAbortOutstandingRequestAction): Rewritten.
  3863. (doChokedAction): Rewritten.
  3864. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  3865. (isOutstandingRequest): Rewritten.
  3866. (getOutstandingRequest): Rewritten.
  3867. (removeOutstandingRequest): Rewritten.
  3868. (addOutstandingRequest): Rewritten.
  3869. * src/RequestSlot.cc
  3870. * src/RequestSlot.h
  3871. (operator=): Rewritten.
  3872. (operator!=): New function.
  3873. (operator<): New function.
  3874. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3875. * src/DefaultBtRequestFactory.cc
  3876. (doChokedAction): Rewritten.
  3877. (removeCompletedPiece): Rewritten.
  3878. (removeTargetPiece): Rewritten.
  3879. (createRequestMessages): Added the debug log.
  3880. (createRequestMessagesOnEndGame: Added the debug log.
  3881. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3882. Added the debug log message.
  3883. * src/BtPieceMessage.cc (doReceivedAction)
  3884. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3885. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  3886. used lower_bound to process them rather than linear search.
  3887. * src/DHTPeerAnnounceStorage.cc
  3888. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3889. Call subtractPieceStats from ~PeerInteractionCommand only when the
  3890. peer has at least one completed piece.
  3891. * src/Peer.cc
  3892. * src/Peer.h
  3893. * src/PeerInteractionCommand.cc
  3894. * src/PeerSessionResource.cc
  3895. * src/PeerSessionResource.h
  3896. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3897. Removed unnecessary sorting
  3898. * src/DefaultPieceStorage (DefaultPieceStorage)
  3899. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3900. Rewritten the portion of the code that mangaes allowed fast indexes.
  3901. * src/PeerSessionResource.cc
  3902. * src/PeerSessionResource.h
  3903. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3904. Removed the invalid string including '\r' from ru.po and
  3905. did make update-po.
  3906. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3907. Added --log-level and --summary-interval to man page.
  3908. * doc/aria2c.1.txt
  3909. * doc/aria2c.1.html
  3910. * doc/aria2c.1
  3911. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3912. Added --log-level option to specify log level. Log messages under
  3913. the specified level are not output. Default value is `debug'.
  3914. * src/HelpItemFactory.cc
  3915. * src/LogFactory.cc
  3916. * src/LogFactory.h
  3917. * src/Logger.h
  3918. * src/OptionHandlerFactory.cc
  3919. * src/SimpleLogger.cc
  3920. * src/SimpleLogger.h
  3921. * src/main.cc
  3922. * src/option_processing.cc
  3923. * src/prefs.h
  3924. * src/usage_text.h
  3925. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3926. Print download progress summary of all parallel downloads in specified
  3927. interval, default 60 secs. While aria2 could download several files
  3928. in parallel (see -j option), it displayed just first download progress,
  3929. and the other downloads are hidden from the users. This new feature
  3930. prints all downloads currently in-progress to the console so that you
  3931. can check the status of all downloads. The interval can be adjusted
  3932. by --summary-interval option.
  3933. The progress readout is now cut so that all fits in the one line of
  3934. console.
  3935. * src/ConsoleStatCalc.cc
  3936. * src/ConsoleStatCalc.h
  3937. * src/HelpItemFactory.cc
  3938. * src/OptionHandlerFactory.cc
  3939. * src/RequestGroupMan.cc
  3940. * src/RequestGroupMan.h
  3941. * src/main.cc
  3942. * src/option_processing.cc
  3943. * src/prefs.h
  3944. * src/usage_text.h
  3945. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3946. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  3947. * src/DownloadEngine.cc (DownloadEngine)
  3948. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3949. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  3950. defined.
  3951. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  3952. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3953. Use erase+lower_bound+insert instead of sort.
  3954. * src/DefaultPieceStorage.cc (addPieceStats)
  3955. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3956. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  3957. * src/A2STR.cc
  3958. * src/A2STR.h
  3959. * src/OptionParser.cc (parse)
  3960. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Defined fake filename `[tracker.announce]' as static const std::string.
  3962. * src/TrackerWatcherCommand.cc (createRequestGroup)
  3963. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3964. Defined default filename `index.html' as static const std::string
  3965. * src/SingleFileDownloadContext.cc
  3966. * src/SingleFileDownloadContext.h
  3967. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3968. Defined "[MEMORY]" as static const std::string.
  3969. * src/MemoryBufferPreDownloadHandler.cc (execute)
  3970. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3971. Defined control file's version number as static const std::string.
  3972. * src/DefaultBtProgressInfoFile.cc
  3973. * src/DefaultBtProgressInfoFile.h
  3974. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3975. Use Request::METHOD_GET
  3976. * src/RequestGroup.cc (createNextCommandWithAdj)
  3977. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3978. Defined "OK", "ERR", "INPR" as static const std::string
  3979. * src/RequestGroupMan.cc (showDownloadResults)
  3980. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3981. Defined default client used in extended handshake as static const
  3982. std::string
  3983. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  3984. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3985. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  3986. * src/HttpConnection.cc (eraseConfidentialInfo)
  3987. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3988. Defined default ftp user and password as static const std::string
  3989. * src/AuthConfigFactory.cc
  3990. * src/AuthConfigFactory.h
  3991. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3992. Defined strings used in netrc as static const std::string
  3993. * src/Netrc.cc
  3994. * src/Netrc.h
  3995. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3996. Defined HTTP status as static const std::string
  3997. * src/AbstractProxyResponseCommand.cc
  3998. * src/HttpHeader.cc
  3999. * src/HttpHeader.h
  4000. * src/HttpResponse.cc
  4001. * src/HttpResponseCommand.cc
  4002. * src/HttpSkipResponseCommand.cc
  4003. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4004. Defined "\r\n", "A", "I" as static const std::string
  4005. * src/A2STR.cc
  4006. * src/A2STR.h
  4007. * src/FtpConnection.cc
  4008. * src/FtpConnection.h
  4009. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4010. Added COLON_C(".") and used it in Request::parseUrl()
  4011. * src/A2STR.cc
  4012. * src/A2STR.h
  4013. * src/Request.cc (parseUrl)
  4014. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4015. Changed the type of padName from `const std::string&' to `const char*'.
  4016. * src/MSEHandshake.cc (verifyPadLength)
  4017. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4018. Defined "sha1" as static const std::string.
  4019. * src/MetalinkParserController.cc
  4020. * src/MetalinkParserController.h
  4021. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4022. Defined message digest algorithm name as static const std::string
  4023. * src/DHTTokenTracker.cc
  4024. * src/DHTUtil.cc
  4025. * src/DefaultBtContext.cc
  4026. * src/MSEHandshake.cc
  4027. * src/MessageDigestHelper.cc
  4028. * src/Peer.cc
  4029. * src/messageDigest.cc
  4030. * src/messageDigest.h
  4031. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4032. Made string literals used in SAX parser static const std::string.
  4033. * src/FileMetalinkParserState.cc
  4034. * src/FileMetalinkParserState.h
  4035. * src/FilesMetalinkParserState.cc
  4036. * src/FilesMetalinkParserState.h
  4037. * src/InitialMetalinkParserState.cc
  4038. * src/InitialMetalinkParserState.h
  4039. * src/MetalinkMetalinkParserState.cc
  4040. * src/MetalinkMetalinkParserState.h
  4041. * src/PiecesMetalinkParserState.cc
  4042. * src/PiecesMetalinkParserState.h
  4043. * src/ResourcesMetalinkParserState.cc
  4044. * src/ResourcesMetalinkParserState.h
  4045. * src/VerificationMetalinkParserState.cc
  4046. * src/VerificationMetalinkParserState.h
  4047. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4048. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4049. * src/A2STR.cc
  4050. * src/A2STR.h
  4051. * src/File.cc
  4052. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4053. Defined static const std::string IP("ip"), PORT("port") and use them
  4054. instead of string literals.
  4055. * src/DefaultPeerListProcessor.cc
  4056. * src/DefaultPeerListProcessor.h
  4057. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4058. Made string literals for torrent file processing static const
  4059. std::string.
  4060. * src/BtContext.cc
  4061. * src/BtContext.h
  4062. * src/DefaultBtContext.cc
  4063. * src/DefaultBtContext.h
  4064. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4065. Made string literal for tracker response static const std::string
  4066. * src/BtAnnounce.cc
  4067. * src/BtAnnounce.h
  4068. * src/DefaultBtAnnounce.cc
  4069. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4070. Use DHTMessage::T instead of "t".
  4071. * src/DHTMessageTracker.cc (messageArrived)
  4072. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4073. Made keyName static const. Made trimmed charset static const
  4074. std::string.
  4075. * src/Util.cc (getContentDispositionFilename)
  4076. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. Made USER_AGENT const. Made "/" static const std::string.
  4078. * src/A2STR.cc
  4079. * src/A2STR.h
  4080. * src/HttpRequest.cc
  4081. * src/HttpRequest.h
  4082. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4083. Made string listeral to static const std::string:
  4084. "Content-Range", "Content-Length"
  4085. * src/HttpHeader.cc
  4086. * src/HttpHeader.h
  4087. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4088. Made string listeral to static const std::string.
  4089. * src/HttpConnection.cc
  4090. * src/HttpHeader.cc
  4091. * src/HttpHeader.h
  4092. * src/HttpResponse.cc
  4093. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4094. Made string listeral to static const std::string.
  4095. * src/A2STR.cc
  4096. * src/A2STR.h
  4097. * src/SimpleLogger.cc
  4098. * src/SimpleLogger.h
  4099. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4100. Made string literal to static const std::string.
  4101. Rewritten CookieParser::setField.
  4102. * src/A2STR.cc
  4103. * src/A2STR.h
  4104. * src/CookieBoxFactory.cc
  4105. * src/CookieBoxFactory.h
  4106. * src/CookieParser.cc
  4107. * src/CookieParser.h
  4108. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4109. Made string literal to static const std::string
  4110. * src/DHTAbstractMessage.cc
  4111. * src/DHTAnnouncePeerMessage.cc
  4112. * src/DHTAnnouncePeerMessage.h
  4113. * src/DHTAnnouncePeerReplyMessage.cc
  4114. * src/DHTAnnouncePeerReplyMessage.h
  4115. * src/DHTFindNodeMessage.cc
  4116. * src/DHTFindNodeMessage.h
  4117. * src/DHTFindNodeReplyMessage.cc
  4118. * src/DHTFindNodeReplyMessage.h
  4119. * src/DHTGetPeersMessage.cc
  4120. * src/DHTGetPeersMessage.h
  4121. * src/DHTGetPeersReplyMessage.cc
  4122. * src/DHTGetPeersReplyMessage.h
  4123. * src/DHTMessage.cc
  4124. * src/DHTMessage.h
  4125. * src/DHTMessageFactoryImpl.cc
  4126. * src/DHTMessageReceiver.cc
  4127. * src/DHTPingMessage.cc
  4128. * src/DHTPingMessage.h
  4129. * src/DHTPingReplyMessage.cc
  4130. * src/DHTPingReplyMessage.h
  4131. * src/DHTQueryMessage.cc
  4132. * src/DHTQueryMessage.h
  4133. * src/DHTResponseMessage.cc
  4134. * src/DHTResponseMessage.h
  4135. * src/DHTUnknownMessage.cc
  4136. * src/DHTUnknownMessage.h
  4137. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4138. Made string literal to static const std::string
  4139. * src/BtChokeMessage.cc (toString)
  4140. * src/BtHaveAllMessage.cc (toString)
  4141. * src/BtHaveNoneMessage.cc (toString)
  4142. * src/BtInterestedMessage.cc (toString)
  4143. * src/BtNotInterestedMessage.cc (toString)
  4144. * src/BtUnchokeMessage.cc (toString)
  4145. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4146. Replaced "" with static const variable A2STR::NIL.
  4147. Replaced string comparison against "" with std::string::empty().
  4148. Added PROTO_* to Request class and use them as a protocol string
  4149. constant.
  4150. Made "started", "stopped", "completed" static const variable in
  4151. AnnounceList class.
  4152. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4153. Updated translations. Great thanks to translators.
  4154. * po/ca.po
  4155. * po/de.po
  4156. * po/fr.po
  4157. * po/it.po
  4158. * po/ja.po
  4159. * po/ru.po
  4160. * po/zh_CN.po
  4161. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4162. Updated man page; categorized options and fixed typo.
  4163. * doc/aria2c.1.txt
  4164. * doc/aria2c.1.html
  4165. * doc/aria2c.1
  4166. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4167. Removed const ref
  4168. * src/MetalinkEntry.cc (AddProtocolPreference)
  4169. * src/RequestGroup.cc (FindServerHostByHostname)
  4170. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4171. Rewritten Accept-Features handling.
  4172. * src/HttpRequestCommand.cc (createHttpRequest)
  4173. * src/a2functional.h
  4174. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4175. Changed method signature:
  4176. DHTAbstractNodeLookupTask::toEntries
  4177. * src/DHTAbstractNodeLookupTask.cc
  4178. * src/DHTAbstractNodeLookupTask.h
  4179. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4180. Changed method signature:
  4181. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4182. * src/BtContext.h
  4183. * src/DefaultBtContext.cc
  4184. * src/DefaultBtContext.h
  4185. * src/DefaultBtInteractive.cc
  4186. * test/DefaultBtContextTest.cc
  4187. * test/MockBtContext.h
  4188. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4189. Changed method signature:
  4190. MultiFileAllocationIterator::makeDiskWriterEntries
  4191. * src/MultiFileAllocationIterator.cc
  4192. * src/MultiFileAllocationIterator.h
  4193. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4194. Changed method sinature:
  4195. MetalinkEntry::toFileEntry,
  4196. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  4197. Metalinker::queryEntry
  4198. * src/Metalink2RequestGroup.cc
  4199. * src/MetalinkEntry.cc
  4200. * src/MetalinkEntry.h
  4201. * src/MetalinkHelper.cc
  4202. * src/MetalinkHelper.h
  4203. * src/Metalinker.cc
  4204. * src/Metalinker.h
  4205. * src/main.cc
  4206. * test/MetalinkHelperTest.cc
  4207. * test/MetalinkerTest.cc
  4208. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Changed method sinature:
  4210. RequestGroup::getURIs
  4211. * src/RequestGroup.cc
  4212. * src/RequestGroup.h
  4213. * test/Metalink2RequestGroupTest.cc
  4214. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. Changed method signature:
  4216. PeerListProcessor::extractPeer
  4217. * src/CompactPeerListProcessor.cc
  4218. * src/CompactPeerListProcessor.h
  4219. * src/DefaultBtAnnounce.cc
  4220. * src/DefaultPeerListProcessor.cc
  4221. * src/DefaultPeerListProcessor.h
  4222. * src/DelegatingPeerListProcessor.cc
  4223. * src/DelegatingPeerListProcessor.h
  4224. * src/PeerListProcessor.h
  4225. * src/UTPexExtensionMessage.cc
  4226. * test/DefaultPeerListProcessorTest.cc
  4227. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4228. Changed method signature:
  4229. BtRequestFactory::createRequestMessages,
  4230. BtRequestFactory::createRequestMessagesOnEndGame
  4231. * src/BtRequestFactory.h
  4232. * src/DefaultBtInteractive.cc
  4233. * src/DefaultBtRequestFactory.cc
  4234. * src/DefaultBtRequestFactory.h
  4235. * test/DefaultBtRequestFactoryTest.cc
  4236. * test/MockBtRequestFactory.h
  4237. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4238. Changed method signature:
  4239. PieceStorage::getInFlightPieces
  4240. * src/DefaultBtProgressInfoFile.cc
  4241. * src/DefaultPieceStorage.cc
  4242. * src/DefaultPieceStorage.h
  4243. * src/PieceStorage.h
  4244. * src/UnknownLengthPieceStorage.cc
  4245. * src/UnknownLengthPieceStorage.h
  4246. * test/DefaultBtProgressInfoFileTest.cc
  4247. * test/MockPieceStorage.h
  4248. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4249. Changed method signature:
  4250. PostDownloadHandler::getNextRequestGroups
  4251. Metalink2RequestGroup::generate
  4252. RequestGroup::postDownloadProcessing
  4253. * src/BtPostDownloadHandler.cc
  4254. * src/BtPostDownloadHandler.h
  4255. * src/Metalink2RequestGroup.cc
  4256. * src/Metalink2RequestGroup.h
  4257. * src/MetalinkPostDownloadHandler.cc
  4258. * src/MetalinkPostDownloadHandler.h
  4259. * src/PostDownloadHandler.h
  4260. * src/RequestGroup.cc
  4261. * src/RequestGroup.h
  4262. * src/RequestGroupMan.cc
  4263. * src/main.cc
  4264. * test/BtPostDownloadHandlerTest.cc
  4265. * test/Metalink2RequestGroupTest.cc
  4266. * test/MetalinkPostDownloadHandlerTest.cc
  4267. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4268. Rewritten AccRequestGroup
  4269. * src/main.cc
  4270. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4271. Rewritten.
  4272. * src/TaggedItem.cc (toTagString)
  4273. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4274. Rewritten Accept-Features handling.
  4275. * src/HttpRequestCommand.cc (createHttpRequest)
  4276. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4277. Rewritten accept types handling.
  4278. * HttpRequest.cc (createRequest)
  4279. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4280. Rewritten
  4281. * src/FeatureConfig.cc (featureSummary)
  4282. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4283. Changed method signature:
  4284. PeerStorage::getActivePeers
  4285. * src/DHTPeerAnnounceEntry.cc
  4286. * src/DefaultPeerStorage.cc
  4287. * src/DefaultPeerStorage.h
  4288. * src/PeerStorage.h
  4289. * test/DefaultPeerStorageTest.cc
  4290. * test/MockPeerStorage.h
  4291. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4292. Changed method signature:
  4293. DHTPeerAnnounceStorage::getPeers,
  4294. DHTPeerAnnounceEntry::getPeers
  4295. * src/DHTGetPeersMessage.cc
  4296. * src/DHTPeerAnnounceEntry.cc
  4297. * src/DHTPeerAnnounceEntry.h
  4298. * src/DHTPeerAnnounceStorage.cc
  4299. * src/DHTPeerAnnounceStorage.h
  4300. * test/DHTAnnouncePeerMessageTest.cc
  4301. * test/DHTPeerAnnounceEntryTest.cc
  4302. * test/DHTPeerAnnounceStorageTest.cc
  4303. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. Changed method signature:
  4305. NameResolver::resolve
  4306. * src/DHTEntryPointNameResolveCommand.cc
  4307. * src/InitiateConnectionCommand.cc
  4308. * src/NameResolver.cc
  4309. * src/NameResolver.h
  4310. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4311. Changed method signature:
  4312. PieceStorage::getAdvertisedPieceIndexes
  4313. * src/DefaultBtInteractive.cc
  4314. * src/DefaultPieceStorage.cc
  4315. * src/DefaultPieceStorage.h
  4316. * src/PieceStorage.h
  4317. * src/UnknownLengthPieceStorage.h
  4318. * test/MockPieceStorage.h
  4319. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4320. Changed method signature:
  4321. SegmentMan::getInFlightSegment
  4322. * src/AbstractCommand.cc
  4323. * src/SegmentMan.cc
  4324. * src/SegmentMan.h
  4325. * test/SegmentManTest.cc
  4326. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Changed method signature:
  4328. DHTAbstractNodeLookupTask::getNodesFromMessage
  4329. * src/DHTAbstractNodeLookupTask.cc
  4330. * src/DHTAbstractNodeLookupTask.h
  4331. * src/DHTNodeLookupTask.cc
  4332. * src/DHTNodeLookupTask.h
  4333. * src/DHTPeerLookupTask.cc
  4334. * src/DHTPeerLookupTask.h
  4335. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4336. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4337. * src/AbstractCommand.cc
  4338. * src/BtCheckIntegrityEntry.cc
  4339. * src/BtCheckIntegrityEntry.h
  4340. * src/BtFileAllocationEntry.cc
  4341. * src/BtFileAllocationEntry.h
  4342. * src/BtSetup.cc
  4343. * src/BtSetup.h
  4344. * src/CheckIntegrityCommand.cc
  4345. * src/CheckIntegrityEntry.h
  4346. * src/ChecksumCheckIntegrityEntry.cc
  4347. * src/ChecksumCheckIntegrityEntry.h
  4348. * src/DHTSetup.cc
  4349. * src/DHTSetup.h
  4350. * src/DownloadEngine.cc
  4351. * src/FileAllocationCommand.cc
  4352. * src/FileAllocationEntry.h
  4353. * src/RequestGroup.cc
  4354. * src/RequestGroup.h
  4355. * src/RequestGroupMan.cc
  4356. * src/RequestGroupMan.h
  4357. * src/StreamCheckIntegrityEntry.cc
  4358. * src/StreamCheckIntegrityEntry.h
  4359. * src/StreamFileAllocationEntry.cc
  4360. * src/StreamFileAllocationEntry.h
  4361. * src/TrackerWatcherCommand.cc
  4362. * src/a2functional.h
  4363. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4364. Changed method signature:
  4365. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4366. DHTBucket::getGoodNodes,
  4367. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4368. * src/BNode.cc
  4369. * src/BNode.h
  4370. * src/DHTAbstractNodeLookupTask.cc
  4371. * src/DHTAutoSaveCommand.cc
  4372. * src/DHTBucket.cc
  4373. * src/DHTBucket.h
  4374. * src/DHTBucketRefreshTask.cc
  4375. * src/DHTFindNodeMessage.cc
  4376. * src/DHTGetPeersMessage.cc
  4377. * src/DHTRoutingTable.cc
  4378. * src/DHTRoutingTable.h
  4379. * test/BNodeTest.cc
  4380. * test/DHTBucketTest.cc
  4381. * test/DHTRoutingTableTest.cc
  4382. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4383. In piece selection functions, Pass std::deque<...> by reference rather
  4384. than returning it.
  4385. * src/BitfieldMan.cc
  4386. * src/BitfieldMan.h
  4387. * src/DefaultBtRequestFactory.cc
  4388. * src/DefaultPieceStorage.cc
  4389. * src/Piece.cc
  4390. * src/Piece.h
  4391. * test/BitfieldManTest.cc
  4392. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4393. Implemented rarest piece first piece selection strategy.
  4394. * src/AbstractBtMessage.cc
  4395. * src/AbstractBtMessage.h
  4396. * src/BitfieldMan.cc
  4397. * src/BitfieldMan.h
  4398. * src/BtBitfieldMessage.cc
  4399. * src/BtHaveAllMessage.cc
  4400. * src/BtHaveMessage.cc
  4401. * src/DefaultPieceStorage.cc
  4402. * src/DefaultPieceStorage.h
  4403. * src/PeerInteractionCommand.cc
  4404. * src/PieceStorage.h
  4405. * src/UnknownLengthPieceStorage.h
  4406. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4407. Rewritten readData and writeData.
  4408. * src/MultiDiskAdaptor.cc
  4409. * src/MultiDiskAdaptor.h
  4410. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. Move \n out of the message "Usage: ...".
  4412. * src/version_usage.cc
  4413. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Bump up version number to 0.13.2b.
  4415. * configure.ac
  4416. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4417. Added const qualifier to argument Exception& e.
  4418. * src/Logger.h
  4419. * src/SimpleLogger.cc
  4420. * src/SimpleLogger.h
  4421. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4422. Pool connection when CWD, SIZE command fails.
  4423. * src/FtpNegotiationCommand.cc
  4424. * src/FtpNegotiationCommand.h
  4425. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4426. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  4427. * src/HttpResponseCommand.cc
  4428. * src/HttpSkipResponseCommand.cc
  4429. * src/HttpSkipResponseCommand.h
  4430. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4431. Pool connection when a server returns 4xx, 5xx responses.
  4432. * src/HttpNullDownloadCommand.cc
  4433. * src/HttpNullDownloadCommand.h
  4434. * src/HttpResponse.cc
  4435. * src/HttpResponse.h
  4436. * src/HttpResponseCommand.cc
  4437. * src/HttpResponseCommand.h
  4438. * test/HttpResponseTest.cc
  4439. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. Print usage when no URL is specifed or bad command-line option is
  4441. specified.
  4442. * src/HelpItemFactory.cc
  4443. * src/help_tags.h
  4444. * src/option_processing.cc
  4445. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Removed duplicate log message.
  4447. * src/AbstractCommand.cc (asyncResolveHostname)
  4448. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4449. Updated man page: --async-dns and --ftp-reuse-connection were added.
  4450. Changed -j option's default value from 5 to 1.
  4451. Added new examples using protocol auto detection feature.
  4452. Removed -T, -M usage where it can be omitted.
  4453. * doc/aria2c.1.txt
  4454. * doc/aria2c.1.html
  4455. * doc/aria2c.1.txt
  4456. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4457. Updated command-line usage text, so that it tells users that they
  4458. can specify any number of torrent files and metalink files in
  4459. command-line.
  4460. * src/version_usage.cc
  4461. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4462. Changed the default value of -j option to 1.
  4463. * src/HelpItemFactory.cc
  4464. * src/option_processing.cc
  4465. * src/usage_text.h
  4466. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4467. Added the ability to reuse connection in FTP and it is enabled by
  4468. default. It can be disabled by --ftp-reuse-connection=false option.
  4469. * src/Command.cc
  4470. * src/DownloadCommand.cc
  4471. * src/FtpDownloadCommand.cc
  4472. * src/FtpDownloadCommand.h
  4473. * src/FtpFinishDownloadCommand.cc
  4474. * src/FtpFinishDownloadCommand.h
  4475. * src/FtpInitiateConnectionCommand.cc
  4476. * src/FtpNegotiationCommand.cc
  4477. * src/FtpNegotiationCommand.h
  4478. * src/HelpItemFactory.cc
  4479. * src/Makefile.am
  4480. * src/Makefile.in
  4481. * src/OptionHandlerFactory.cc
  4482. * src/option_processing.cc
  4483. * src/prefs.h
  4484. * src/usage_text.h
  4485. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4486. Call Command::transitStatus() before calling Command::execute(),
  4487. so that the status change made in execute() is not cleared.
  4488. * src/DownloadEngine.cc
  4489. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4490. Removed forward declaration of SocketCore class.
  4491. * src/HttpDownloadCommand.h
  4492. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4493. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  4494. in InitiateConnectionCommandFactory. They should be set only when
  4495. the protocol is HTTP or HTTPS.
  4496. * src/InitiateConnectionCommandFactory.cc
  4497. * src/RequestGroup.cc
  4498. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4499. Fixed infinite loop in checksum checking.
  4500. * src/IteratableChecksumValidator.cc
  4501. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4502. Set _supportsPersistentConnection to true by default.
  4503. * src/Request.cc
  4504. * src/RequestGroup.cc
  4505. * test/HttpRequestTest.cc
  4506. * test/RequestTest.cc
  4507. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4508. Added timeout to socket pool. The default timeout is 15 seconds,
  4509. which is the same value Apache uses.
  4510. * src/DownloadEngine.cc
  4511. * src/DownloadEngine.h
  4512. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4513. Fixed misuse of multimap::find()
  4514. * src/HttpHeader.cc
  4515. * test/HttpHeaderTest.cc
  4516. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4517. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  4518. option.
  4519. The asynchronous DNS is not capable of IPv6 yet.
  4520. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  4521. least for HTTP download.
  4522. * src/AbstractCommand.cc
  4523. * src/AbstractCommand.h
  4524. * src/AsyncNameResolver.cc
  4525. * src/AsyncNameResolver.h
  4526. * src/DHTEntryPointNameResolveCommand.cc
  4527. * src/DHTEntryPointNameResolveCommand.h
  4528. * src/DownloadEngine.cc
  4529. * src/DownloadEngine.h
  4530. * src/FtpInitiateConnectionCommand.cc
  4531. * src/FtpInitiateConnectionCommand.h
  4532. * src/HelpItemFactory.cc
  4533. * src/HttpInitiateConnectionCommand.cc
  4534. * src/HttpInitiateConnectionCommand.h
  4535. * src/InitiateConnectionCommand.cc
  4536. * src/InitiateConnectionCommand.h
  4537. * src/Makefile.am
  4538. * src/Makefile.in
  4539. * src/NameResolver.cc
  4540. * src/NameResolver.h
  4541. * src/OptionHandlerFactory.cc
  4542. * src/SocketCore.cc
  4543. * src/SocketCore.h
  4544. * src/Util.cc
  4545. * src/Util.h
  4546. * src/option_processing.cc
  4547. * src/prefs.h
  4548. * src/usage_text.h
  4549. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4550. Updated man page: --quiet, --header were added.
  4551. --metalink-servers and --enable-http-keep-alive option were updated.
  4552. * doc/aria2c.1
  4553. * doc/aria2c.1.html
  4554. * doc/aria2c.1.txt
  4555. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4556. Enable HTTP keep-alive by default.
  4557. * src/HelpItemFactory.cc
  4558. * src/option_processing.cc
  4559. * src/usage_text.h
  4560. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4561. Disable http keep-alive if the remote server is not HTTP/1.1.
  4562. * src/HttpConnection.cc
  4563. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4564. Receive content body of 302 response so that the connection can be
  4565. reused later when http keep-alive is enabled.
  4566. * src/HttpNullDownloadCommand.cc
  4567. * src/HttpNullDownloadCommand.h
  4568. * src/HttpResponseCommand.cc
  4569. * src/HttpResponseCommand.h
  4570. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4571. const SharedHandle<Request> -> const SharedHandle<Request>&
  4572. * src/FtpDowndloadCommand.cc
  4573. * src/FtpDowndloadCommand.h
  4574. * src/HttpDownloadCommand.cc
  4575. * src/HttpDownloadCommand.h
  4576. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4577. Fixed the bug that the control file(.aria2 file) is not renamed
  4578. according to tryAutoFileRenaming().
  4579. tryAutoFileRenaming() was rewritten so that if both renamed file and
  4580. its control file exist, use them and continue download.
  4581. The old implementation didn't take into account of control file's
  4582. existence, so basically you couldn't continue download of renamed file.
  4583. * src/BtProgressInfoFile.h
  4584. * src/DefaultBtProgressInfoFile.cc
  4585. * src/DefaultBtProgressInfoFile.h
  4586. * src/NullProgressInfoFile.h
  4587. * src/RequestGroup.cc
  4588. * test/DefaultBtProgressInfoFileTest.cc
  4589. * test/MockBtProgressInfoFile.h
  4590. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4591. Change the default value of --metalink-servers option from `5' to `1'.
  4592. * src/HelpItemFactory.cc
  4593. * src/option_processing.cc
  4594. * src/usage_text.h
  4595. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4596. Reimplemented transparent metalink using Accept request header.
  4597. * src/HttpRequest.cc
  4598. * src/HttpRequest.h
  4599. * src/HttpRequestCommand.cc
  4600. * src/Metalink2RequestGroup.cc
  4601. * src/RequestGroup.cc
  4602. * src/RequestGroup.h
  4603. * test/HttpRequestTest.cc
  4604. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4605. Bump up version number to 0.13.2a
  4606. * configure.ac
  4607. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4608. Updated configure.ac using the result of autoscan.
  4609. * configure.ac
  4610. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4611. Fixed compilation error without gcrypt/openssl.
  4612. * src/DownloadCommand.cc
  4613. * src/DownloadCommand.h
  4614. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4615. Reorganized version information so that it can be displayed in a
  4616. standard terminal screen without scrolling.
  4617. Removed http, ftp from Configuration section, because they are always
  4618. enabled.
  4619. * src/FeatureConfig.cc
  4620. * src/FeatureConfig.h
  4621. * src/main.cc
  4622. * src/messageDigest.cc
  4623. * src/messageDigest.h
  4624. * src/version_usage.cc
  4625. * test/FeatureConfigTest.cc
  4626. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4627. Masked user ID in log.
  4628. * src/FtpConnection.cc (sendUser)
  4629. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Removed query part from filename in HTTP download. The query part means
  4631. the substring after "?" in URL. Firefox seems do the same thing.
  4632. A query part is sometimes very long and not suitable to filename,
  4633. so I think it is better to remove it from filename.
  4634. * src/HttpRequest.cc
  4635. * src/HttpRequest.h
  4636. * src/Request.cc
  4637. * src/Request.h
  4638. * test/HttpRequestTest.cc
  4639. * test/RequestTest.cc
  4640. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Rewritten Exception class. Throw exception object, not its pointer and
  4642. catch by reference, so that remove problematic delete operator for
  4643. catched exception.
  4644. * src/Exception.cc
  4645. * src/Exception.h
  4646. * test/ExceptionTest.cc
  4647. * src/*: All files throwing/catching exception.
  4648. * test/*: All files throwing/catching exception.
  4649. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4650. Now auto protocol detection is enabled without -Z option.
  4651. But there is a important difference between with/without -Z optoin.
  4652. For example, if you type:
  4653. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  4654. then, aria2 interprets there are 3 request groups:
  4655. (1) http://host/file, http://mirror/file <-- multi-source download
  4656. (2) file1.torrent
  4657. (3) file2.metalink
  4658. On the other hand, if you invoke above command with -Z option, it is
  4659. interpreted as 4 request groups:
  4660. (1) http://host/file
  4661. (2) file1.torrent
  4662. (3) file2.metalink
  4663. (4) http://mirror/file
  4664. I think usually user don't mix multi-source URLs and torrent files, so
  4665. there is no big problem here.
  4666. * src/main.cc
  4667. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4668. Fixed the bug that causes segmentaion fault when reading XML containing
  4669. unescapsed character like '&'.
  4670. Also a modification was made which avoids adding unnecessary
  4671. characters stack and appending unused string.
  4672. * src/ExpatMetalinkProcessor.cc
  4673. * src/FileMetalinkParserState.h
  4674. * src/FilesMetalinkParserState.h
  4675. * src/FinMetalinkParserState.h
  4676. * src/HashMetalinkParserState.h
  4677. * src/InitialMetalinkParserState.h
  4678. * src/LanguageMetalinkParserState.h
  4679. * src/MetalinkMetalinkParserState.h
  4680. * src/MetalinkParserState.h
  4681. * src/MetalinkParserStateMachine.cc
  4682. * src/MetalinkParserStateMachine.h
  4683. * src/OSMetalinkParserState.h
  4684. * src/PieceHashMetalinkParserState.h
  4685. * src/PiecesMetalinkParserState.h
  4686. * src/ResourcesMetalinkParserState.h
  4687. * src/SizeMetalinkParserState.h
  4688. * src/SkipTagMetalinkParserState.h
  4689. * src/URLMetalinkParserState.h
  4690. * src/VerificationMetalinkParserState.h
  4691. * src/VersionMetalinkParserState.h
  4692. * src/XML2SAXMetalinkProcessor.cc
  4693. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4694. Added StringFormat class, which internally calls vasprintf.
  4695. operator<< is defined for this class, so it can be used with iostream
  4696. classes nicely. SimpleLogger and following functions are rewritten
  4697. using StringFormat class.
  4698. Besides, now Logger class's methods are non-const, many classes
  4699. that has a const Logger* as a member variable are modified to remove
  4700. const qualifier from the variable declaration.
  4701. * src/HelpItemFactory.cc
  4702. * src/Request.cc
  4703. * src/SimpleLogger.cc
  4704. * src/StringFormat.cc
  4705. * src/StringFormat.h
  4706. * src/Util.cc
  4707. * src/option_processing.cc
  4708. * src/version_usage.cc
  4709. * test/StringFormatTest.cc
  4710. * src/*.h: The classes that has const Logger* as a member variable.
  4711. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4712. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  4713. failed. Also fixed memory link when exception is thrown there.
  4714. * src/main.cc (AccRequestGroup)
  4715. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4716. Added build-in "Accept-Features" support. For now only "metalink" is
  4717. used in this header field.
  4718. This "metalink" value is removed from the list when connecting URLs
  4719. fed by metalink file to avoid loop in "transparent" metlaink.
  4720. * src/HttpRequest.cc
  4721. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  4722. header is also held in this variable. Also renamed setUserHeaders as
  4723. addHeader and it was rewritten to add header not just to clear the old
  4724. value.
  4725. * src/HttpRequestCommand.cc
  4726. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  4727. from "Accept-Features" list.
  4728. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  4729. default.
  4730. * src/RequestGroup.h
  4731. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  4732. * src/a2functional.h: Included <string> because Concat class depends on
  4733. it.
  4734. * test/HttpRequestTest.cc
  4735. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4736. Added comment
  4737. * src/RequestGroup.cc (createNextCommand)
  4738. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Capitalized METHOD_GET and METHOD_HEAD
  4740. * src/Request.cc
  4741. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4742. Added getDownloadResults() method
  4743. * src/RequestGroupMan.cc
  4744. * src/RequestGroupMan.h
  4745. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4746. Fixed the bug that aria2 exits when commands is empty() but
  4747. _routineCommands are not.
  4748. * src/DownloadEngine.cc
  4749. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4750. Use the default value pulled from Option object in HelpItemFactory.
  4751. except options whose defualt value is embedded in a usage text.
  4752. * src/HelpItemFactory.cc
  4753. * src/HelpItemFactory.h
  4754. * src/option_processing.cc
  4755. * src/version_usage.cc
  4756. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. Added --quiet option to make aria2 quiet (no console output).
  4758. --quiet option is tagged with ADVANCED.
  4759. * src/HelpItemFactory.cc
  4760. * src/LogFactory.cc
  4761. * src/LogFactory.h
  4762. * src/MultiUrlRequestInfo.cc
  4763. * src/MultiUrlRequestInfo.h
  4764. * src/NullStatCalc.h: New class. This class prints nothing.
  4765. * src/OptionHandlerFactory.cc
  4766. * src/main.cc
  4767. * src/option_processing.cc
  4768. * src/prefs.h
  4769. * src/usage_text.h
  4770. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4771. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  4772. * src/HelpItemFactory.cc (createHelpItems):
  4773. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4774. Fixed compilation error in ExpatMetalinkProcessor.cc
  4775. * src/ExpatMetalinkProcessor.cc
  4776. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4777. Reuse socket if the origin server supports HTTP keep-alive and
  4778. --enable-http-keep-alive or --enable-http-pipelining is given.
  4779. The current implementation doesn't reuse the connections established
  4780. against proxy server.
  4781. * src/AbstractCommand.cc
  4782. * src/DownloadEngine.cc
  4783. * src/DownloadEngine.h
  4784. * src/HttpDownloadCommand.cc
  4785. * src/HttpInitiateConnectionCommand.cc
  4786. * src/HttpResponseCommand.cc
  4787. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4788. Rewritten HTTP keep-alive and pipelining routine.
  4789. * src/AbstractCommand.cc
  4790. * src/HttpConnection.cc
  4791. * src/HttpDownloadCommand.cc
  4792. * src/HttpRequest.cc
  4793. * src/HttpRequestCommand.cc
  4794. * src/HttpResponseCommand.cc
  4795. * src/Request.cc
  4796. * src/Request.h
  4797. * src/RequestGroup.cc
  4798. * test/HttpRequestTest.cc
  4799. * test/HttpResponseTest.cc
  4800. * test/RequestTest.cc
  4801. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4802. Added missing setUserHeaders call
  4803. * src/HttpRequestCommand.cc
  4804. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4805. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  4806. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  4807. waste of time because it is more likey false.
  4808. * src/FileAllocationDispatcherCommand.cc (execute)
  4809. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4810. Now HTTP status and version are a member variable of HttpHeader.
  4811. HTTP status is processed as a string, not integer.
  4812. * src/AbstractProxyResponseCommand.cc
  4813. * src/HttpConnection.cc
  4814. * src/HttpHeader.cc
  4815. * src/HttpHeader.h
  4816. * src/HttpHeaderProcessor.cc
  4817. * src/HttpHeaderProcessor.h
  4818. * src/HttpResponse.cc
  4819. * src/HttpResponse.h
  4820. * test/HttpHeaderProcessorTest.cc
  4821. * test/HttpResponseTest.cc
  4822. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4823. Added --header option. You can specify any number of additional HTTP headers
  4824. like:
  4825. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  4826. Unlike other commad-line option, you can use --header option multiple times.
  4827. * src/HelpItemFactory.cc
  4828. * src/HttpRequest.{cc, h}
  4829. * src/HttpRequestCommand.cc
  4830. * src/OptionHandlerFactory.cc
  4831. * src/OptionHandlerImpl.h
  4832. * src/option_processing.cc
  4833. * src/prefs.h
  4834. * src/usage_text.h
  4835. * test/HttpRequestTest.cc (testUserHeaders)
  4836. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4837. Eliminates the time lag between sequential downloads and commands in
  4838. the same RequestGroup.
  4839. In old implementation, aria2 occasionally waits 1 seconds before
  4840. executing next command or RequestGroup.
  4841. This is really a waste of time, and new implementation eliminates
  4842. this unnecessary time lag.
  4843. * src/AbstractCommand.cc
  4844. * src/AutoSaveCommand.cc
  4845. * src/CheckIntegrityCommand.cc
  4846. * src/Command.{cc, h}
  4847. * src/DownloadEngine.{cc, h}
  4848. * src/DownloadEngineFactory.cc
  4849. * src/FileAllocationCommand.cc
  4850. * src/FileAllocationDispatcherCommand.cc
  4851. * src/FillRequestGroupCommand.cc
  4852. * src/FtpInitiateConnectionCommand.cc
  4853. * src/HaveEraseCommand.cc
  4854. * src/HttpInitiateConnectionCommand.cc
  4855. * src/HttpResponseCommand.cc
  4856. * src/RealtimeCommand.cc
  4857. * src/RequestGroup.cc
  4858. * src/RequestGroupMan.cc
  4859. * src/StreamFileAllocationEntry.cc
  4860. * src/TimeBasedCommand.{cc, h}
  4861. * src/TimedHaltCommand.cc
  4862. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4863. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  4864. keyword explicit and SharedHandle's default constructor initializes
  4865. its internal obj to null, old implementation initializes it using
  4866. obj's default constructor.
  4867. To assign null, write SharedHandle<T> x(...); x.reset();
  4868. TODO: test/SharedHandleTest.cc needs more tests.
  4869. * src/SharedHandle.h
  4870. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4871. Fixed type in man page.
  4872. * doc/aria2c.1.txt
  4873. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  4875. * src/SimpleLogger.{cc, h}
  4876. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4877. Implemented auto protocol detection.
  4878. Now you can do:
  4879. aria2c -Z http://host/file file1.torrent file2.metalink
  4880. (Note: -Z option is required for auto protcol detection.)
  4881. Then aria2c downloads 3 files simultaneously:
  4882. 1. http://host/file
  4883. 2. file1.torrent <-- read local torrent file
  4884. 3. file2.metalink <-- read local Metalink file.
  4885. Same thing goes with -i option. Assume your uris.txt contans:
  4886. http://host/file
  4887. file1.torrent
  4888. file2.metalink
  4889. Then you can do: aria2c -i uris.txt
  4890. (Note: -Z option is not needed if -i option is given.)
  4891. * src/main.cc
  4892. * src/ProtocolDetector.{cc, h}
  4893. * test/ProtocolDetectorTest.cc
  4894. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4895. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  4896. installed
  4897. * src/ARC4Encryptor.h
  4898. * src/ARC4Decryptor.h
  4899. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Renamed argument from 'errno' to 'err', since errno is confused with
  4901. errno defined in errno.h.
  4902. * src/LibgcryptARC4Decryptor.h
  4903. * src/LibgcryptARC4Context.h
  4904. * src/LibgcryptDHKeyExchange.h
  4905. * src/LibgcryptARC4Encryptor.h
  4906. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4907. Rewritten choking algorithm.
  4908. * src/PeerChokeCommand.{cc, h}
  4909. * src/BtInterestedMessage.cc
  4910. * src/PeerSessionResource.{cc, h}
  4911. * src/DefaultPeerStorage.{cc, h}
  4912. * src/BtNotInterestedMessage.cc
  4913. * src/DefaultBtMessageDispatcher.{cc, h}
  4914. * src/BtMessageDispatcher.h
  4915. * src/Peer.{cc, h}
  4916. * src/BtLeecherStateChoke.{cc, h}
  4917. * src/BtSetup.cc
  4918. * src/BtSeederStateChoke.{cc, h}
  4919. * src/PeerStorage.h
  4920. * test/MockPeerStorage.h
  4921. * test/MockBtMessageDispatcher.h
  4922. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4923. Fixed compilation error on x84-64 platform.
  4924. * src/AuthConfig.cc: Included ostream.
  4925. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4926. Rewritten getBasename() and getDirname(), without standard library
  4927. basename(), dirname().
  4928. * src/File.cc
  4929. * test/FileTest.cc
  4930. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4931. Added Simplified Chinese translation. Also updated the following
  4932. translations: Polish, Dutch, German. Great thanks to all translators.
  4933. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4934. Suppress content-range error when 'Content-Range' response header
  4935. doesn't contains bytes-unit specifier 'bytes'
  4936. * src/HttpHeader.cc (getRange)
  4937. * test/HttpHeaderTest.cc
  4938. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4939. Fixed compilation error with g++-4.3
  4940. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4941. Added missing include files for MinGW
  4942. * test/HttpHeaderProcessorTest.cc
  4943. * test/DHTRoutingTableSerializerTest.cc
  4944. * test/DHTRoutingTableDeserializerTest.cc
  4945. * test/UriListParserTest.cc
  4946. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4947. Now download line is printed nicely with no garbage at the end of
  4948. line. I use ioctl to get the columns of terminal.
  4949. If stdout is redirected to another device, instead of carriage return,
  4950. end of line '\n' character is used. This is feature request#1909659
  4951. * src/ConsoleStatCalc.cc (calculateStat)
  4952. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. Included a2time.h
  4954. * src/DHTMessageDispatcher.h
  4955. * src/DHTMessageEntry.h
  4956. * src/DHTReplaceNodeTask.h
  4957. * src/DHTMessageTracker.h
  4958. * src/Util.h
  4959. * src/CookieBox.h
  4960. * src/SocketCore.h
  4961. * src/DefaultBtMessageDispatcher.h
  4962. * src/SocketCore.cc
  4963. * src/Util.cc
  4964. * src/DHTPingTask.h
  4965. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4966. Fixed high memory footprint when DHT is enabled.
  4967. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  4968. queued than it is processed and the queue is getting longer. As a
  4969. consequence, momory usage is increased.
  4970. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  4971. replacement cache in DHTBucket which is described in Kademlia paper.
  4972. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  4973. DHTReplaceNodeTask.
  4974. * src/DHTBucket.{h, cc}
  4975. (cacheNode): New function.
  4976. (getCachedNodes): New function.
  4977. (dropNode): Push back cached node to _nodes.
  4978. * test/DHTBucketTest.cc
  4979. (testCacheNode): New test
  4980. (testDropNode): New test
  4981. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  4983. the unused 4KB memory when ssl is not used.
  4984. * src/SocketCore.cc
  4985. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4986. Added summary log for peer announce storage.
  4987. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  4988. Removed cast
  4989. * src/DefaultPeerStorage.cc (addPeer)
  4990. Log exception message
  4991. * src/DHTMessageTracker.cc (handleTimeout)
  4992. Fixed casting
  4993. * test/HttpRequestTest.cc
  4994. * test/MetalinkProcessorTest.cc
  4995. * test/PieceTest.cc
  4996. * test/MetalinkEntryTest.cc
  4997. * test/SequenceTest.cc
  4998. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4999. * src/ParameterizedStringParser.cc (createLoop):
  5000. Removed unused variable sstep.
  5001. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5002. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. * src/Util.{h, cc}
  5004. (parseUInt): New function.
  5005. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5006. The actual range is uint32_t.
  5007. * test/UtilTest.cc
  5008. * src/ParameterizedStringParser.cc:
  5009. Use Util::parseUInt() for loop variables.
  5010. * test/ParameterizedStringParserTest.cc
  5011. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5012. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5013. Rewritten the functions for binding port.
  5014. * src/DHTConnectionImpl.{h, cc}
  5015. * src/PeerListenCommand.{h, cc}
  5016. * src/DHTSetup.cc
  5017. * src/BtSetup.cc
  5018. * test/DHTConnectionImplTest.cc
  5019. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5020. type cleanup for allmost all remaining files.
  5021. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5022. Type clarification
  5023. * src/PeerSessionResource.{h, cc}
  5024. * src/DefaultPieceStorage.{h, cc}
  5025. * src/Peer.{h, cc}
  5026. * test/PeerSessionResourceTest.cc
  5027. Use div function
  5028. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5029. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Type clarification
  5031. * src/DefaultPeerStorage.{h, cc}
  5032. * test/DefaultPeerStorageTest.cc
  5033. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5034. Type clarification: size_t for length or size, uint64_t for file
  5035. length, off_t for file offset.
  5036. * src/DefaultBtProgressInfoFile.cc
  5037. * src/DefaultBtContext.{h, cc}
  5038. * src/DefaultBtInteractive.cc
  5039. * src/DownloadCommand.{h, cc}
  5040. * src/IteratableChunkChecksumValidator.{h, cc}
  5041. * src/SegmentMan.{h, cc}
  5042. * src/SingleFileDownloadContext.{h, cc}
  5043. * src/IteratableChecksumValidator.{h, cc}
  5044. * src/BtContext.h
  5045. * src/IteratableValidator.h
  5046. * src/DownloadContext.h
  5047. * test/SingleFileDownloadContextTest.cc
  5048. * test/DefaultBtContextTest.cc
  5049. * test/MockBtContext.h
  5050. * test/Metalink2RequestGroupTest.cc
  5051. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5052. Type clarification: size_t for length or size, uint64_t for file
  5053. length, off_t for file offset.
  5054. * src/PiecedSegment.cc
  5055. * src/GrowSegment.h
  5056. * src/DefaultBtRequestFactory.h
  5057. * src/DefaultBtProgressInfoFile.cc
  5058. * src/UnknownLengthPieceStorage.h
  5059. * src/DefaultPieceStorage.cc
  5060. * src/UnknownLengthPieceStorage.cc
  5061. * src/DefaultBtInteractive.cc
  5062. * src/GrowSegment.cc
  5063. * src/BitfieldMan.h
  5064. * src/DownloadCommand.cc
  5065. * src/BtRequestFactory.h
  5066. * src/PiecedSegment.h
  5067. * src/DefaultPieceStorage.h
  5068. * src/Piece.cc
  5069. * src/DefaultBtRequestFactory.cc
  5070. * src/PieceStorage.h
  5071. * src/Segment.h
  5072. * src/Piece.h
  5073. * src/BitfieldMan.cc
  5074. * src/Util.cc
  5075. * test/DefaultBtProgressInfoFileTest.cc
  5076. * test/DefaultPieceStorageTest.cc
  5077. * test/MockPieceStorage.h
  5078. * test/BtRequestMessageTest.cc
  5079. * test/DefaultBtMessageDispatcherTest.cc
  5080. * test/BitfieldManTest.cc
  5081. * test/GrowSegmentTest.cc
  5082. * test/PieceTest.cc
  5083. * test/SegmentTest.cc
  5084. * test/SegmentManTest.cc
  5085. * test/DefaultBtRequestFactoryTest.cc
  5086. * test/MockBtRequestFactory.h
  5087. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5088. Fixed compilation error with --disable-nls
  5089. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5090. in gettext.h causes the problem.
  5091. * src/common.h
  5092. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5093. Removed subPiece related functions.
  5094. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5095. * src/DefaultPieceStorage.{h, cc}
  5096. * test/PieceTest.cc
  5097. * test/DefaultPieceStorageTest.cc
  5098. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. Use unsigned char for data store.
  5100. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5101. Bump up version number to 0.13.0+1
  5102. * configure.ac
  5103. * Release 0.13.0+1
  5104. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5105. Changed inactive connection timeout to 120.
  5106. To accept more mulually interested peers, disconnect peer when there
  5107. is no interest between us after certain time passed.
  5108. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5109. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5110. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5111. when compiled with async DNS support.
  5112. * src/DownloadEngine.cc
  5113. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5114. value '10' will be a little bit short when some DNS servers are
  5115. offline and several DNS servers are tried. It should be configured
  5116. by command-line option.
  5117. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5118. Merged Ross's mingw patch.
  5119. * src/DHTRoutingTableDeserializer.cc
  5120. * src/DHTRoutingTableSerializer.cc
  5121. * src/Platform.{h, cc}
  5122. * src/timegm.h
  5123. * src/gettimeofday.h
  5124. * src/getaddrinfo.h
  5125. * src/SocketCore.h
  5126. * src/common.h
  5127. * src/inet_aton.h
  5128. * src/DownloadEngine.h
  5129. * src/gai_strerror.h
  5130. * src/a2netcompat.h
  5131. * configure.ac
  5132. * configure
  5133. * aclocal.m4
  5134. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5135. Included missing iostream.
  5136. * test/AllTest.cc
  5137. * test/BtDependencyTest.cc
  5138. * test/BtExtendedMessageTest.cc
  5139. * test/DHTConnectionImplTest.cc
  5140. * test/DHTMessageFactoryImplTest.cc
  5141. * test/DHTMessageTrackerEntryTest.cc
  5142. * test/DHTNodeTest.cc
  5143. * test/DHTRoutingTableSerializerTest.cc
  5144. * test/DefaultBtAnnounceTest.cc
  5145. * test/DefaultBtContextTest.cc
  5146. * test/DefaultBtMessageFactoryTest.cc
  5147. * test/DefaultExtensionMessageFactoryTest.cc
  5148. * test/HandshakeExtensionMessageTest.cc
  5149. * test/HttpResponseTest.cc
  5150. * test/MetalinkProcessorTest.cc
  5151. * test/MultiFileAllocationIteratorTest.cc
  5152. * test/SocketCoreTest.cc
  5153. * test/UTPexExtensionMessageTest.cc
  5154. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5155. Reorganized includes.
  5156. * src/NameResolver.cc
  5157. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5158. Fixed compilation error without ares/c-ares
  5159. * src/NameResolver.h:
  5160. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5161. Added a test for large file.
  5162. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5163. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5164. Fixed the bug that file size is ignored if size > INT32_MAX
  5165. * src/SizeMetalinkParserState.cc (endElement):
  5166. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5167. Bump up version number to 0.13.0
  5168. * configure.ac
  5169. * Release 0.13.0
  5170. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5171. Updated Makfefile.am to make 'make dist' work.
  5172. Now packaged filename is aria2c-VERSION.tar.bz2.
  5173. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5174. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5175. Large file support is now configured by configure script.
  5176. * configure.ac
  5177. Removed unsused source files
  5178. * src/
  5179. * test/
  5180. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5181. Peer.h and BtContext.h respectively.
  5182. * src/Peer.h
  5183. * src/BtContext.h
  5184. Updated translations.
  5185. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  5186. translations. Great thanks to all translators!;)
  5187. * po/*.{po, gmo}
  5188. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  5190. statically declared sha1 MessageDigestContext.
  5191. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  5192. initialization of short-lived MessageDigestContext.
  5193. * src/MessageDigestHelper.{h, cc}
  5194. * src/main.cc
  5195. Now DownloadCommand has a reference to MessageDigestContext to avoid
  5196. the initialization of MessageDigestContext every time in validating
  5197. chunk checksum.
  5198. * src/DownloadCommand.{h, cc}
  5199. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5200. Add a file descriptor which connected to fast peer(latency<1500) to
  5201. select(). This change reduced CPU load.
  5202. * src/PeerInteractionCommand.cc
  5203. * src/DefaultBtInteractive.{h, cc}
  5204. * src/BtInteractive.h
  5205. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5206. Fixed the previous insufficient fix for possible busy loop.
  5207. * src/MSEHandshake.cc (identifyHandshakeType)
  5208. Removed unused functions.
  5209. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  5210. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. Fixed possible busy loop if first 20 bytes are not received for a few
  5212. minutes.
  5213. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  5214. * src/ReceiverMSEHandshakeCommand.cc
  5215. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5216. Fixed compilation error
  5217. * src/ExpatMetalinkProcessor.cc
  5218. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5219. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  5220. * src/DHTBucket.cc
  5221. Removed unnecessary cast.
  5222. * src/HandshakeExtensionMessage.cc
  5223. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5224. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  5225. is missing.
  5226. * src/OptionHandlerFactory.cc
  5227. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5228. Fixed the bug that HAVE message is not sent for a piece they are
  5229. downloaded fom http/ftp server before any BitTorrent handshake is done
  5230. with peers.
  5231. * src/DefaultBtInteractive.cc
  5232. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5233. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  5234. * src/Makefile.am
  5235. * src/Makefile.in
  5236. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. Updated README. Added html version of README and man page.
  5238. * README
  5239. * README.html
  5240. * readme2html: Shell script to generate README.html from README using
  5241. asciidoc.
  5242. * doc/aria2c.1.html
  5243. * doc/makeman: Added the line to generate aria2c.1.html
  5244. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5245. Fixed offset calculation.
  5246. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5247. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5248. Rewritten itos and uitos using template. llitos and ullitos are
  5249. replaced with itos and uitos respectively.
  5250. * src/Util.{h, cc}
  5251. * test/UtilTest.cc
  5252. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5253. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5254. of the number of bytes required for storing public key and shared
  5255. secret.
  5256. * src/LibgcryptDHKeyExchange.h
  5257. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5258. * src/MSEHandshake.cc
  5259. * test/DHKeyExchangeTest.cc
  5260. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5261. Removed since they are not used.
  5262. * src/Xml2MetalinkProcessor.{h, cc}
  5263. * src/Socket.cc
  5264. * src/SegmentSplitter.{h, cc}
  5265. * test/Xml2MetalinkProcessorTest.cc
  5266. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Fixed the bug that prevents aria2 from stopping other than by pressing
  5268. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5269. option. aria2 doesn't stop even after --seed-time is satisfied and
  5270. continues to output blank lines in the console.
  5271. * src/ReceiverMSEHandshakeCommand.cc
  5272. * src/PeerReceiveHandshakeCommand.cc
  5273. * src/PeerListenCommand.cc
  5274. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Bump up version number to 0.13.0rc
  5276. * configure.ac
  5277. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Updated man page and some usage text.
  5279. * doc/aria2c.1.txt
  5280. * src/usage_text.h
  5281. * po/*.{po, gmo}
  5282. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5283. Updated translations. Added Finnish and Hebrew translations.
  5284. Great thanks to all translators!
  5285. * po/*.{po, gmo}
  5286. * po/LINGUAS
  5287. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5288. Log more detailed information about each message.
  5289. * src/DHTQueryMessage.{h, cc}
  5290. * src/DHTGetPeersMessage.{h, cc}
  5291. * src/DHTFindNodeReplyMessage.{h, cc}
  5292. * src/DHTGetPeersReplyMessage.{h, cc}
  5293. * src/DHTAnnouncePeerMessage.{h, cc}
  5294. * src/DHTResponseMessage.{h, cc}
  5295. * src/DHTFindNodeMessage.{h, cc}
  5296. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Use constants defined in prefs.h
  5298. * src/option_processing.cc
  5299. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5300. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  5301. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5302. Make room for future enchancements for IPv6 addresses.
  5303. Bump up version number of dht.dat file format to 2.
  5304. Not compatible with previous version.
  5305. * src/DHTRoutingTableSerializer.cc
  5306. * src/DHTRoutingTableDeserializer.cc
  5307. * test/DHTRoutingTableSerializerTest.cc
  5308. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5309. Added handling for the return values from
  5310. PeerMessageUtil::createcompact().
  5311. * src/DefaultBtContext.cc (computeFastSet):
  5312. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5313. Fixed abort when peer's ip address is IPv4-mapped address.
  5314. * src/DefaultBtContext.cc (computeFastSet)
  5315. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5316. cannot handle IPv4-mapped addresses.
  5317. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5318. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Proper return value handling for OpenSSL functions.
  5320. * src/LibsslDHKeyExchange.h
  5321. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5322. Random bytes generation using libgcrypt and OpenSSL.
  5323. * src/DHTUtil.{h, cc}
  5324. * test/DHTUtilTest.cc
  5325. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5327. received.
  5328. * src/DHTMessageReceiver.cc (receiveMessage)
  5329. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Fixed the bug that a return code is always 0. BUG#1897704
  5331. If error occurred during the download or there exist unfinished
  5332. downloads, aria2 returns with code 1.
  5333. * src/RequestGroupMan.{h, cc}
  5334. * src/MultiUrlRequestInfo.{h, cc}
  5335. * src/main.cc
  5336. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5337. IPv6 support for SocketCore class.
  5338. TODO: In SocketCore::establishConnection(), this is insufficient to
  5339. determin the failure of connect() here because the socket is
  5340. non-blocking state. The next addresses should be tried after select().
  5341. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5342. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5343. instead which address family independent.
  5344. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5345. information in a compact peer format which is for IPv4 only.
  5346. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5347. this is a spec of BitTorrent protocol.
  5348. * src/SocketCore.{h, cc}
  5349. * src/PeerMessageUtil.cc
  5350. * test/SocketCoreTest.cc
  5351. * test/PeerMessageUtilTest.cc
  5352. * test/DHTConnectionImplTest.cc
  5353. Handle IPv4-mapped addresses.
  5354. * src/DHTNode.cc: Now identity is determined by node id.
  5355. * src/DHTMessageTrackerEntry.cc
  5356. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5357. should handle it.
  5358. * src/DHTRoutingTableDeserializer.cc
  5359. * src/DHTMessageFactoryImpl.cc
  5360. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5361. Change the unit of --stop option from a minute to a second.
  5362. * src/usage_text.h
  5363. * src/DownloadEngineFactory.cc
  5364. * src/OptionHandlerFactory.cc
  5365. * src/message.h
  5366. * src/TimedHaltCommand.cc
  5367. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5368. Make listening socket non-block mode.
  5369. * src/FtpConnection.cc
  5370. * src/FtpNegotiationCommand.{h, cc}
  5371. * src/PeerListenCommand.cc
  5372. Fixed the bug that cause slow ftp negotiation.
  5373. * src/FtpNegotiationCommand.{h, cc}
  5374. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5375. Added basic tag to --enable-dht, --dht-listen-port option.
  5376. * src/HelpItemFactory.cc (createHelpItems)
  5377. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5378. Updated text.
  5379. * src/usage_text.h
  5380. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5381. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5382. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5383. Determin _threadtholdSpeed in each constructor for
  5384. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5385. * src/ActivePeerConnectionCommand.{h, cc}
  5386. * src/PeerReceiveHandshakeCommand.{h, cc}
  5387. * src/BtSetup.cc
  5388. * src/BtConstants.h
  5389. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Added --bt-min-crypto-level and --bt-require-crypto options.
  5391. * src/OptionHandlerFactory.cc
  5392. * src/MSEHandshake.cc
  5393. * src/HelpItemFactory.cc
  5394. * src/option_processing.cc
  5395. * src/ReceiverMSEHandshakeCommand.cc
  5396. * src/prefs.h
  5397. * src/DefaultBtAnnounce.cc
  5398. * src/InitiatorMSEHandshakeCommand.cc
  5399. * src/usage_text.h
  5400. * test/MSEHandshakeTest.cc
  5401. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. Bump version number to 0.13.0b
  5403. * configure.ac
  5404. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5405. Updated doc.
  5406. * src/MessageDigestHelper.h:
  5407. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Use raw message digest as a token instead of its hexadecimal
  5409. representation.
  5410. * src/DHTTokenTracker.cc (generateToken)
  5411. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5412. Added Message Stream Encryption(MSE) support.
  5413. Currently, aria2 accepts incoming connections with Obfuscation Header
  5414. and legacy BitTorrent Header and establishes connections with
  5415. Obfuscation Header first and if failed then retry with legacy
  5416. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  5417. choose ARC4. The new option to change the default behavior is planned.
  5418. For tracker extension, "supportcrypto=1" is added statically.
  5419. * src/PeerInitiateConnectionCommand.{h, cc}
  5420. * src/PeerConnection.{h, cc}
  5421. * src/HandleRegistry.h
  5422. * src/SocketCore.h
  5423. * src/PeerReceiveHandshakeCommand.{h, cc}
  5424. * src/BtRegistry.{h, cc}
  5425. * src/PeerListenCommand.cc
  5426. * src/InitiatorMSEHandshakeCommand.{h, cc}
  5427. * src/ReceiverMSEHandshakeCommand.{h, cc}
  5428. * src/MSEHandshake.{h, cc}
  5429. * src/ARC4Encryptor.h
  5430. * src/ARC4Decryptor.h
  5431. * src/LibgcryptARC4Encryptor.h
  5432. * src/LibgcryptARC4Decryptor.h
  5433. * src/LibgcryptARC4Context.h
  5434. * src/LibsslARC4Encryptor.h
  5435. * src/LibsslARC4Decryptor.h
  5436. * src/LibsslARC4Context.h
  5437. * src/DHKeyExchange.h
  5438. * src/LibgcryptDHKeyExchange.h
  5439. * src/LibsslDHKeyExchange.h
  5440. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  5441. * test/DefaultBtAnnounceTest.cc
  5442. * test/ARC4Test.cc
  5443. * test/DHKeyExchangeTest.cc
  5444. Removed prepareForRetry() because it is not used.
  5445. * src/PeerAbstractCommand.{h, cc}
  5446. * src/PeerInteractionCommand.{h, cc}
  5447. * src/PeerInitiateConnectionCommand.{h, cc}
  5448. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5449. Added the ability to load nodes from torrent file. These nodes are
  5450. added to the routing table when downloading that torrent.
  5451. * src/BtContext.h
  5452. * src/DefaultBtContext.{h, cc}
  5453. * src/DHTSetup.cc
  5454. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  5455. hostname and port pair, and resolves all of them.
  5456. * src/NameResolver.{h, cc}: Added reset().
  5457. * src/RequestGroup.cc
  5458. * test/DefaultBtContextTest.cc
  5459. * test/MockBtContext.h
  5460. Removed assert() from DefaultBtContext and throw exception instead.
  5461. * src/DefaultBtContext.cc
  5462. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5463. Fixed segmentation fault bug when exiting if dht is disabled.
  5464. * src/RequestGroup.cc
  5465. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5466. Fixed typo in log message and define the message in message.h
  5467. * src/TimedHaltCommand.cc
  5468. * src/message.h
  5469. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5470. Included RecoverableException.h to fix compilation error.
  5471. * test/DHTMessageFactoryImplTest.cc
  5472. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5473. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  5474. * test/DHTPingMessageTest.cc
  5475. * test/DHTGetPeersMessageTest.cc
  5476. * test/DHTFindNodeMessageTest.cc
  5477. * test/DHTAnnouncePeerMessageTest.cc
  5478. * test/MockDHTMessage.h
  5479. * test/MockDHTMessageFactory.h
  5480. * test/MockDHTMessageDispatcher.h: New class.
  5481. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5482. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  5483. virtual.
  5484. * src/DHTMessageDispatcher.h
  5485. * src/DHTMessageDispatcherImpl.{h, cc}
  5486. * src/DHTSetup.cc
  5487. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5488. Adding handling of DHT error message. Just log error message and
  5489. throw exception.
  5490. * src/DHTMessageFactoryImpl.cc
  5491. * test/DHTMessageFactoryImplTest.cc
  5492. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5493. Added handling of dynamic cast failure.
  5494. * src/DHTNodeLookupTask.cc
  5495. * src/DHTPeerLookupTask.cc
  5496. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Added the ability to stop aria2 itself when given time has passed
  5498. from start. Use --stop option to specify time in minutes.
  5499. When 0 is given, this feature is disabled.
  5500. * src/OptionHandlerFactory.cc
  5501. * src/TimeBasedCommand.h: Make _interval protected scope.
  5502. * src/HelpItemFactory.cc
  5503. * src/option_processing.cc
  5504. * src/prefs.h
  5505. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  5506. before calling RequestGroupMan::fillRequestGroupFromReserver().
  5507. Without this modification, the result list shows "ERR" when aria2 is
  5508. stopped by --stop option. It should be "INPR".
  5509. * src/DownloadEngine.{h, cc}
  5510. * src/DownloadEngineFactory.cc
  5511. * src/usage_text.h
  5512. * src/TimedHaltCommand.{h, cc}: New class.
  5513. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5514. Bootstrap through node added by port message.
  5515. Currently bootstrap is executed if the number of buckets in routing
  5516. table is 1.
  5517. * src/BtPortMessage.{h, cc}
  5518. * src/DefaultBtMessageFactory.{h, cc}
  5519. * src/PeerInteractionCommand.cc
  5520. * test/BtPortMessageTest.cc
  5521. * test/MockDHTTask.h
  5522. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5523. Extract the Peer class's member variables, which are only needed after
  5524. PeerInteractionCommand, into PeerSessionResource class.
  5525. This class is instantiated in PeerInteractionCommand class's ctor and
  5526. released in its dtor.
  5527. This will make Peer class lightweight and uses less memory for peers
  5528. which are not connected and wait in the queue.
  5529. * src/PeerChokeCommand.cc
  5530. * src/PeerSessionResource.{h, cc}
  5531. * src/PeerInteractionCommand.cc
  5532. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  5533. * src/DefaultBtInteractive.cc
  5534. * src/BtPieceMessage.cc
  5535. * src/BtInterestedMessage.cc
  5536. * src/BtUnchokeMessage.cc
  5537. * src/DefaultPeerStorage.{h, cc}
  5538. * src/PeerInitiateConnectionCommand.cc
  5539. * src/ActivePeerConnectionCommand.cc
  5540. * src/BtNotInterestedMessage.cc
  5541. * src/DefaultBtMessageDispatcher.cc
  5542. * src/BtChokeMessage.cc
  5543. * src/BtRequestMessage.cc
  5544. * src/Peer.{h, cc}
  5545. * src/BtRegistry.h
  5546. * src/TrackerWatcherCommand.cc
  5547. * src/PeerReceiveHandshakeCommand.cc
  5548. * test/BtExtendedMessageTest.cc
  5549. * test/BtAllowedFastMessageTest.cc
  5550. * test/BtCancelMessageTest.cc
  5551. * test/DefaultPieceStorageTest.cc
  5552. * test/BtBitfieldMessageTest.cc
  5553. * test/BtHaveMessageTest.cc
  5554. * test/BtNotInterestedMessageTest.cc
  5555. * test/BtRequestMessageTest.cc
  5556. * test/PeerSessionResourceTest.cc
  5557. * test/DefaultBtMessageDispatcherTest.cc
  5558. * test/PeerTest.cc
  5559. * test/BtInterestedMessageTest.cc
  5560. * test/BtRejectMessageTest.cc
  5561. * test/BtChokeMessageTest.cc
  5562. * test/DefaultPeerStorageTest.cc
  5563. * test/BtHaveNoneMessageTest.cc
  5564. * test/BtHaveAllMessageTest.cc
  5565. * test/DefaultExtensionMessageFactoryTest.cc
  5566. * test/BtUnchokeMessageTest.cc
  5567. * test/DefaultBtMessageFactoryTest.cc
  5568. * test/HandshakeExtensionMessageTest.cc
  5569. * test/UTPexExtensionMessageTest.cc
  5570. * test/DefaultBtRequestFactoryTest.cc
  5571. * test/BtPieceMessageTest.cc
  5572. Removed typedef PeerStats.
  5573. * src/PeerStat.h
  5574. * src/SegmentMan.cc
  5575. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5576. Added std namespace to copy, remove_copy, back_inserter,
  5577. front_inserter.
  5578. * src/RequestGroupMan.cc
  5579. * src/DefaultPieceStorage.cc
  5580. * src/StreamFileAllocationEntry.cc
  5581. * src/BtFileAllocationEntry.cc
  5582. * src/RequestGroup.cc
  5583. * src/MetalinkEntry.cc
  5584. * src/DelegatingPeerListProcessor.cc
  5585. * src/DefaultBtRequestFactory.cc
  5586. * src/DefaultBtMessageDispatcher.cc
  5587. * src/version_usage.cc: Included <algorithm>
  5588. * src/main.cc
  5589. * src/MetalinkParserController.cc
  5590. * src/DefaultBtContext.cc
  5591. * src/DownloadEngineFactory.cc
  5592. * src/a2algo.h
  5593. Removed.
  5594. * test/StreamUriListParserTest.cc
  5595. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5596. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  5597. ActivePeerConnectionCommand when it is given and
  5598. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  5599. * src/ActivePeerConnectionCommand.{h, cc}
  5600. * src/BtSetup.cc
  5601. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5602. Only add socket to DownloadEngine's select routine when peer or
  5603. localhost is unchoked and interested. This lowers CPU usage a
  5604. little bit.
  5605. * src/PeerInteractionCommand.cc
  5606. * src/PeerAbstractCommand.{h, cc}
  5607. * src/BtInteractive.h
  5608. * src/DefaultBtInteractive.{h, cc}
  5609. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5610. Revert previous change because get_peers message is needed for
  5611. announce_peer anyway.
  5612. * src/DHTGetPeersCommand.cc
  5613. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5614. Request peers thought DHT only when download hasn't finished.
  5615. * src/DHTGetPeersCommand.cc
  5616. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5617. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  5618. * src/DHTBucketRefreshTask.{h, cc}
  5619. * src/DHTSetup.cc
  5620. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5621. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  5622. standard classes.
  5623. Included string.h where mem* function are used.
  5624. Added namespace aria2.
  5625. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5626. Create directory before saving DHT routing table.
  5627. Now ios::failure is now handled properly.
  5628. * src/DHTAutoSaveCommand.cc
  5629. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5630. Removed unnecessary cerr.
  5631. * src/DownloadEngine.cc
  5632. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5633. Catch exception inside DHTMessageReceiver::receiveMessage().
  5634. Log unknown message.
  5635. * src/DHTMessageReceiver.{h, cc}
  5636. * src/DHTMessageFactory.h
  5637. * src/DHTMessageFactoryImpl.{h, cc}
  5638. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  5639. * src/DHTInteractionCommand.cc
  5640. * src/DHTUnknownMessage.{h, cc}
  5641. * test/DHTUnknownMessageTest.cc
  5642. * test/MockDHTMessageFactory.h
  5643. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5644. Commented out ip address comparison because a host can have multiple
  5645. ip addresses and it is hard to predict the hostname is resolved into
  5646. which one.
  5647. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  5648. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5649. * po/Makefile.in: Removed since this is generated by configure.
  5650. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. Fixed compiler warning about redefinition of SIZE_MAX.
  5652. Use common.h instead of config.h directly here.
  5653. * src/Platform.{h, cc}
  5654. The check of ENABLE_NLS is made in gettext.h, so it is not required
  5655. here.
  5656. * common.h
  5657. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  5658. Updated gettext related files.
  5659. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  5660. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  5661. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5662. Added DHT functionality, compatible with mainline.
  5663. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  5664. You may need to specify entry point to DHT network using
  5665. --dht-entry-point. DHT uses UDP port to listen incoming message.
  5666. Use --dht-listen-port to specify port number. Make sure that your
  5667. firewall configuration can pass through UDP traffic to the port.
  5668. The routing table is saved in $HOME/.aria2/dht.dat.
  5669. * src/DHT*
  5670. * src/BNode.{h, cc}
  5671. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  5672. particular torrent.
  5673. * src/Data.cc: Rewritten ctor.
  5674. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  5675. --dht-entry-point.
  5676. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  5677. * src/RequestGroup.cc: Initialize DHT functionality. When download
  5678. ends, remove BtContext from DHTPeerAnnounceStorage.
  5679. * src/BtPortMessage.{h, cc}: Rewritten.
  5680. * src/message.h
  5681. * src/OptionHandlerImpl.cc
  5682. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  5683. --dht-entry-point.
  5684. * src/Dictionary.{h, cc} (remove): New function.
  5685. * src/prefs.h
  5686. * src/DefaultBtMessageFactory.h
  5687. * src/BtHandshakeMessage.cc
  5688. * src/ActivePeerConnectionCommand.cc
  5689. * src/SocketCore.{h, cc}: Added datagram socket support.
  5690. * src/DefaultBtMessageFactory.cc
  5691. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  5692. Create DHT commands.
  5693. * src/BtMessageFactory.h
  5694. * src/PeerMessageUtil.{h, cc}
  5695. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5696. Fixed the bug that log file is not written when configuration file doesn't exist.
  5697. This is caused by using Logger class before LogFactory is not configured.
  5698. BUG #1875079
  5699. * src/option_processing.cc
  5700. Warning message "configuration doesn't exist" is only printed when --conf is
  5701. given.
  5702. * src/option_processing.cc
  5703. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5704. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  5705. ShaVisitor is now deprecated and slated to be removed.
  5706. * src/DefaultBtContext.cc
  5707. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Externalize message to message.h
  5709. * src/Platform.cc
  5710. * src/message.h
  5711. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5712. Set default domain and default path to cookie.
  5713. * src/HttpResponse.cc
  5714. * src/CookieBox.{h, cc}
  5715. * src/CookieParser.{h, cc}
  5716. * test/CookieParserTest.cc
  5717. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5718. Added --no-conf and --conf-path command-line option.
  5719. --no-conf option disables loading aria2.conf file.
  5720. --conf-path option changes the configuration file path. The default
  5721. file path is $HOME/.aria2/aria2.conf
  5722. Added a warning message when the configuration file is not found.
  5723. * src/HelpItemFactory.cc
  5724. * src/option_processing.cc
  5725. * src/prefs.h
  5726. * src/usage_text.h
  5727. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5728. Added the message to inform users that other help categories are
  5729. available in -h option.
  5730. * src/version_usage.cc
  5731. * src/TagContainer.{h, cc}
  5732. * test/TagContainerTest.cc
  5733. * src/TaggedItem.{h, cc}
  5734. * test/TaggedItemTest.cc
  5735. * src/HelpItem.h
  5736. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5737. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  5738. from PiecedSegment's ctor.
  5739. Previously Piece::getAllMissingBlockIndexes() is called from
  5740. PiecedSegment() but it is rather expensive since only first element is
  5741. used.
  5742. * src/PiecedSegment.cc
  5743. * src/Piece.{h, cc}
  5744. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5745. Rewritten get*Missing*Index functions. Now no need to allocate memory
  5746. each time these functions are called.
  5747. * src/BitfieldMan.{h, cc}
  5748. * test/BitfieldManTest.cc
  5749. * src/array_fun.h
  5750. * test/array_funTest.cc
  5751. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  5752. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  5753. filtered. Removed unnecessary cast to int32_t.
  5754. * src/BitfieldMan.{h, cc}
  5755. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5756. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  5757. payload length(4bytes) are received. This happens because lenbufLength
  5758. is not updated in this particular case and successive call of
  5759. receiveMessage() overwrites payload length with bytes recieved which
  5760. are payload body.
  5761. * src/PeerConnection.{h, cc}
  5762. * src/message.h
  5763. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5764. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  5765. peer if there are peers that have same ipaddr and port.
  5766. I've experiened segmentation fault and "pure virtual function was
  5767. called" error.
  5768. * src/Peer.h
  5769. * test/PeerTest.cc
  5770. * src/DefaultPeerStorage.cc
  5771. * test/DefaultPeerStorageTest.cc
  5772. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Removed a call to isPowerOf() because it is no longer necessary here
  5774. and a request block is not always power of 2.
  5775. BUG#1866924
  5776. * src/PeerMessageUtil.cc (checkLength)
  5777. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5778. Fixed the bug that always first found Segment is removed from
  5779. usedSegmentEntries. Removed unused functions.
  5780. * src/SegmentMan.{h, cc}
  5781. * test/SegmentManTest.cc
  5782. Fixed the bug that ServerHost is not removed.
  5783. * src/RequestGroup.cc
  5784. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Fixed the bug that SegmentMan::completeSegment() is not called
  5786. even if Segment is complete when --lowest-speed-limit is enabled.
  5787. BUG#1864525
  5788. * src/DownloadCommand.{h, cc}
  5789. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5790. Fixed: hash algorithm 'sha1' is always used.
  5791. * src/DownloadCommand.cc (validatePieceHash)
  5792. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5793. Added --enable-peer-exchange command-line option.
  5794. * src/OptionHandlerFactory.cc
  5795. * src/HelpItemFactory.cc
  5796. * src/option_processing.cc
  5797. * src/usage_text.h
  5798. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. Move extension from BtRuntime to ExtensionMessageFactory, because
  5800. extension can be specified per peer, not per torrent.
  5801. * src/DefaultBtInteractive.cc
  5802. * src/BtRuntime.h
  5803. * src/ExtendedMessagingAware.h
  5804. * src/ExtensionMessageFactory.h
  5805. * src/DefaultExtensionMessageFactory.cc
  5806. * test/DefaultExtensionMessageFactoryTest.cc
  5807. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Added categorized option help. Specify category using --help option.
  5809. Also added the ability to search options in forward match.
  5810. * src/HelpItem.{h, cc}
  5811. * test/HelpItemTest.cc
  5812. * src/HelpItemFactory.{h, cc}
  5813. * src/TagContainer.{h, cc}
  5814. * test/TagContainerTest.cc
  5815. * src/option_processing.cc
  5816. * src/prefs.h
  5817. * src/TaggedItem.{h, cc}
  5818. * test/TaggedItemTest.cc
  5819. * src/version_usage.cc
  5820. * src/help_tags.h
  5821. * src/usage_text.h
  5822. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5823. Fixed segmentation fault when bad torrent metainfo is parsed.
  5824. Added dynamic_cast properly to detect the misconfiguration of metainfo
  5825. and then throw exception or skip it.
  5826. * src/DefaultBtContext.{h, cc}
  5827. * test/DefaultBtContextTest.cc
  5828. * src/AnnounceList.cc
  5829. * src/CompactPeerListProcessor.cc
  5830. * src/message.h
  5831. * src/DefaultBtAnnounce.{h, cc}
  5832. * test/DefaultBtAnnounceTest.cc
  5833. * src/BencodeVisitor.cc
  5834. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Added missing "B"(=Byte). So now the message looks like this:
  5836. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  5837. * src/message.h (MSG_SHARE_RATIO_REPORT)
  5838. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5839. Show the seed ratio after torrent downloads.
  5840. For example, after torrent download completed and --seed-time and
  5841. --seed-ratio conditions are fulfilled, following message is printed
  5842. right after "Download complete: .....":
  5843. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  5844. * src/RequestGroupMan.cc
  5845. * src/RequestGroup.{h, cc}
  5846. * src/message.h
  5847. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5848. Remove a defunct control file. A defunct control file means that while
  5849. it exists, but the corresponding download file is missing.
  5850. After its removal, a download restarts from the beginning.
  5851. * src/RequestGroup.cc
  5852. * src/message.h
  5853. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5854. Allocate bitfield in Peer when it is really used. More specifically,
  5855. bitfield in Peer is allocated after the connection is established and
  5856. deallocated when the connection is dropped.
  5857. Since 2 parameters(piece length and total length) was removed from the
  5858. constructor of Peer class, many test classes were modified accordingly.
  5859. See svn log for more detailed information.
  5860. * src/PeerInteractionCommand.cc
  5861. * src/CompactPeerListProcessor.cc
  5862. * src/Peer.cc
  5863. * src/DefaultPeerListProcessor.cc
  5864. * src/PeerListenCommand.cc
  5865. * src/PeerReceiveHandshakeCommand.cc
  5866. Fixed memory leak
  5867. * src/Piece.cc
  5868. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  5870. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  5871. command-line options.
  5872. * src/option_processing.cc
  5873. * src/ActivePeerConnectionCommand.cc
  5874. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5875. Send have message to peer if it already has the piece.
  5876. * src/BtHaveMessage.{h, cc}
  5877. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  5879. port.
  5880. * src/DefaultPeerStorage.{h, cc}
  5881. * test/DefaultPeerStorageTest.cc
  5882. * src/HandshakeExtensionMessage.cc
  5883. * test/HandshakeExtensionMessageTest.cc
  5884. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  5885. * src/PeerStorage.h
  5886. * test/MockPeerStorage.h
  5887. * src/PeerListenCommand.cc
  5888. * src/PeerReceiveHandshakeCommand.cc
  5889. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Added --metalink-enable-unique-protocol option.
  5891. * src/Metalink2RequestGroup.cc
  5892. * src/option_processing.cc
  5893. * src/prefs.h
  5894. * src/version_usage.cc
  5895. * doc/aria2c.1.txt
  5896. * doc/aria2c.1
  5897. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5898. Allow a peer in incomingPeer to be added peers.
  5899. * src/DefaultPeerStorage.cc
  5900. * test/DefaultPeerStorageTest.cc
  5901. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5902. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  5903. I could reproduce this bug in following procedure:
  5904. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  5905. 2. Restart aria2.
  5906. 3. You see the download stopped around 99%.
  5907. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5908. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  5909. If timeout is reached, then _nextCommand is unused and it may contains
  5910. segments and they won't be canceled. Actually, timeout is not needed
  5911. here because if the server dropped connection, then retry is made.
  5912. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5913. Added uTorrent compatible Peer Exchange.
  5914. * src/BencodeVisitor.{h, cc}
  5915. * test/BencodeVisitorTest.cc
  5916. * src/BtConstants.h
  5917. * src/BtContext.h: Added 'private' flag.
  5918. * src/BtExtendedMessage.{h, cc}
  5919. * test/BtExtendedMessageTest.cc
  5920. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  5921. reserved field.
  5922. * test/BtHandshakeMessageTest.cc
  5923. * src/BtMessageFactory.h
  5924. * src/BtRegistry.h
  5925. * src/BtRuntime.h: This class holds default extension message IDs for
  5926. aria2. By default, aria2 uses ID 8 for ut_pex.
  5927. * src/DefaultBtContext.cc
  5928. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  5929. When it is true, aria2 enables ut_pex. This value is set by
  5930. PeerInteractionCommand.
  5931. * src/DefaultBtMessageFactory.{h, cc}
  5932. * test/DefaultBtMessageFactoryTest.cc
  5933. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  5934. handling to DefaultBtInteractive class.
  5935. * src/DefaultExtensionMessageFactory.{h, cc}
  5936. * test/DefaultExtensionMessageFactoryTest.cc
  5937. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  5938. the container(peers and incomingPeers. The equality is determined by
  5939. Peer::id).
  5940. * test/DefaultPeerStorageTest.cc
  5941. * src/ExtensionMessage.h
  5942. * test/MockExtensionMessage.h
  5943. * src/ExtensionMessageFactory.h
  5944. * test/MockExtensionMessageFactory.h
  5945. * src/HandshakeExtensionMessage.{h, cc}
  5946. * test/HandshakeExtensionMessageTest.cc
  5947. * src/MetaEntry.h
  5948. * src/Peer.{h, cc}
  5949. * src/PeerInteractionCommand.cc
  5950. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  5951. addIncomingPeer.
  5952. * src/PeerMessageUtil.{h, cc}
  5953. * src/PeerObject.h
  5954. * src/UTPexExtensionMessage.{h, cc}
  5955. * test/UTPexExtensionMessageTest.cc
  5956. * src/message.h
  5957. * src/prefs.h
  5958. Fixed the bug that returns incomplete data when it contains null
  5959. character. A convenient constructor was also added.
  5960. * src/Data.{h, cc}
  5961. Rewritten.
  5962. * src/CompactPeerListProcessor.cc
  5963. Fixed typos.
  5964. * src/message.h
  5965. * src/MetaFileUtil.cc
  5966. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5967. Added "Status Legend" label to the explanation text of 'stat' in
  5968. download result and moved it to the last. BUG#1848214
  5969. * src/RequestGroupMan.cc
  5970. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5971. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  5972. * src/Makefie.am
  5973. * test/Makefile.am
  5974. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5975. Fixed the bug that prevents aria2 from loading cookie file when expire
  5976. value is greater than 2^31-1. BUG#1851066
  5977. * src/CookieBoxFactory.cc
  5978. * test/CookieBoxFactoryTest.cc
  5979. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5980. Fixed possible memory leak when an exception is thrown.
  5981. * src/XML2SAXMetalinkProcessor.cc
  5982. Added Expat support. If both libxml2 and Expat are installed, then
  5983. libxml2 is used by default.
  5984. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  5985. ExpatMetalinkProcessor according to the configuration.
  5986. * src/ExpatMetalinkProcessor.{h, cc}
  5987. * src/main.cc: Removed libxml2 specific header and init/free function.
  5988. * src/MetalinkProcessorFactory.{h, cc}
  5989. * src/MetalinkHelper.cc
  5990. * src/Metalinker.h: Removed unnecessary libxml2 header.
  5991. * src/MetalinkProcessor.h
  5992. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  5993. MetalinkProcessorTest is used instead.
  5994. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  5995. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  5996. MetalinkProcessorFactory::newInstance().
  5997. * m4/libexpat.m4
  5998. * configure.ac: Added configuration options for libexpat.
  5999. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. Disabled -s option in metalink download.
  6001. * src/Metalink2RequestGroup.cc
  6002. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6003. If several protocols are available for a mirror in metalink file,
  6004. aria2 now use one of them. --metalink-preferred-protocol option was
  6005. added to specify the preference of protocol.
  6006. * src/AbstractCommand.cc
  6007. * src/OptionHandlerFactory.cc
  6008. * src/ServerHost.{h, cc}
  6009. * src/Metalink2RequestGroup.cc
  6010. * src/RequestGroup.{h, cc}
  6011. * test/RequestGroupTest.cc
  6012. * src/option_processing.cc
  6013. * src/prefs.h
  6014. * src/HttpResponseCommand.cc
  6015. * src/MetalinkResource.{h, cc}
  6016. * src/FtpNegotiationCommand.cc
  6017. * src/MetalinkEntry.{h, cc}
  6018. * src/MetalinkEntryTest.cc
  6019. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6020. Code cleanup and added debug log.
  6021. * src/PeerConnection.cc
  6022. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6023. Compiler error fix: applied the patch by Tiziano Mueller
  6024. * src/RequestGroup.cc
  6025. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6026. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6027. in stopped and completed event.
  6028. * src/AnnounceList.{h, cc}
  6029. * test/AnnounceListTest.cc
  6030. * src/DefaultBtAnnounce.cc
  6031. * test/DefaultBtAnnounceTest.cc
  6032. Sorted URLs.
  6033. * test/Metalink2RequestGroupTest.cc
  6034. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. Removed unnecessary string copy. Updated doc and corrected indentation.
  6036. * src/Base64.cc
  6037. Fixed compilation warnings
  6038. * test/DataTest.cc
  6039. * test/HttpRequestTest.cc
  6040. * test/MetaFileUtilTest.cc
  6041. * test/RequestTest.cc
  6042. * Release 0.12.0
  6043. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6044. Updated translations
  6045. * po/{de,fr,ja,nl,ru}.po
  6046. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6047. translations. Many thanks to translators.
  6048. * po/{ca,es,it,pt_BR,sv}.po
  6049. * po/LINGUAS
  6050. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6051. Added a notice about URL
  6052. * src/version_usage.cc
  6053. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6054. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6055. aria2 repeatedly sends stopped request when tracker returns error code.
  6056. * src/AnnounceList.cc
  6057. * test/AnnounceListTest.cc
  6058. * src/AnnounceTier.h
  6059. Added a message when ctrl-c is hit.
  6060. Now second ctrl-c is also handled in signal handler.
  6061. * src/RequestGroupMan.{h, cc}
  6062. * src/RequestGroup.{h, cc}
  6063. * src/MultiUrlRequestInfo.cc
  6064. * src/DownloadEngine.cc
  6065. * src/TrackerWatcherCommand.cc
  6066. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6067. Code cleanup
  6068. * src/Base64.cc (encode)
  6069. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6070. Changed Direct/IO enable/disable procesure in file allocation routine.
  6071. * src/SingleFileAllocationIterator.cc
  6072. (SingleFileAllocationIterator):
  6073. Disable directIO if offset is not multiple of 512.
  6074. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6075. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6076. Enable created SingleFileAllocationIterator's directIO.
  6077. * src/FileAllocationEntry.cc
  6078. (FileAllocationEntry): Enable directIO here.
  6079. (~FileAllocationEntry): Disable directIO here.
  6080. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6081. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6082. * src/Peer.{h, cc}
  6083. * src/DefaultPieceStorage.cc
  6084. * test/DefaultPieceStorageTest.cc
  6085. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Rewritten direct I/O support routine
  6087. * src/SingleFileAllocationIterator.cc
  6088. * src/MultiDiskAdaptor.{h, cc}
  6089. * src/ByteArrayDiskWriter.h
  6090. * src/AbstractSingleDiskAdaptor.h
  6091. * src/AbstractDiskWriter.cc
  6092. * src/DefaultPieceStorage.cc
  6093. * src/DiskWriter.h
  6094. * src/BinaryStream.h
  6095. * src/IteratableChunkChecksumValidator.cc
  6096. * src/IteratableChecksumValidator.cc
  6097. * src/CheckIntegrityEntry.cc
  6098. * src/FileAllocationEntry.cc
  6099. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6100. Fixed typo
  6101. * src/version_usage.cc
  6102. Updated doc
  6103. * doc/aria2c.1.txt
  6104. * doc/aria2c.1
  6105. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6106. Fixed compile error without message digest support.
  6107. * src/FileMetalinkParserState.cc
  6108. * src/MetalinkParserController.{h, cc}
  6109. * test/XML2SAXMetalinkProcessorTest.cc
  6110. * test/MetalinkParserControllerTest.cc
  6111. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6112. Enable direct I/O support in checksum checking.
  6113. * src/IteratableChunkChecksumValidator.{h, cc}
  6114. * test/IteratableChunkChecksumValidatorTest.cc
  6115. * src/CheckIntegrityEntry.cc
  6116. * src/PieceHashCheckIntegrityEntry.cc
  6117. * src/IteratableChecksumValidator.{h, cc}
  6118. * src/BtCheckIntegrityEntry.cc: Added doc.
  6119. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Added --allow-piece-length-change option.
  6121. * src/DefaultBtProgressInfoFile.cc
  6122. * test/DefaultBtProgressInfoFileTest.cc
  6123. * src/OptionHandlerFactory.cc
  6124. * src/option_processing.cc
  6125. * src/prefs.h
  6126. * src/version_usage.cc
  6127. * doc/aria2c.1.txt
  6128. * doc/aria2c.1
  6129. Fixed: duplicated result entry appears when exception is thrown in
  6130. RequestGroup::createInitiateConnectionCommand().
  6131. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6132. Add RequestGroup to _requestGroup after RequetGroup::
  6133. createInitiateConnectionCommand() succeeds.
  6134. Externalized message
  6135. * src/XML2SAXMetalinkProcessor.cc
  6136. * src/message.h
  6137. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. Forced download abort when received negative response from http/ftp
  6139. server.
  6140. * src/HttpResponseCommand.cc
  6141. * src/FtpNegotiationCommand.cc
  6142. * src/HttpResponse.cc
  6143. * src/FtpConnection.cc
  6144. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6146. the predecessor, Xml2MetalinkParser class.
  6147. I tested them against 94KB metalink file with 1234 chunk checksums.
  6148. The new one parsed it in 22msec, while it took 6000msec with old one.
  6149. * src/XML2SAXMetalinkProcessor.{h, cc}
  6150. * test/XML2SAXMetalinkProcessorTest.cc
  6151. * src/MetalinkParserController.{h, cc}
  6152. * test/MetalinkParserControllerTest.cc
  6153. * src/MetalinkParserState.h: Also added 16 subclasses.
  6154. * src/main.cc
  6155. * src/Metalink2RequestGroup.cc
  6156. * src/MetalinkHelper.cc
  6157. * src/MetalinkEntry.cc
  6158. * src/ChunkChecksum.h
  6159. Rewritten Base64 class for better performance.
  6160. * src/Base64.{h, cc}
  6161. * test/Base64Test.cc
  6162. * src/HttpRequest.cc
  6163. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6164. Fixed the bug#1841757: aria2 will connect to server to only get
  6165. file size.
  6166. * src/StreamFileAllocationEntry.cc
  6167. * src/option_processing.cc
  6168. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6169. downloads.
  6170. * src/FtpNegotiationCommand.cc
  6171. Suppressed wrong message when finding PreDownloadHandler
  6172. * src/RequestGroup.cc
  6173. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Updated usage
  6175. * src/version_usage.cc
  6176. Updated man page
  6177. * doc/aria2c.1.txt
  6178. * doc/aria2c.1
  6179. Updated po files
  6180. * po/aria2c.pot
  6181. * po/*.po
  6182. * po/*.gmo
  6183. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6184. Eliminated g++-4.2 warning
  6185. * src/DownloadHandlerConstants.{h, cc}
  6186. * src/Util.cc
  6187. * test/MetaFileUtilTest.cc
  6188. * test/PStringBuildVisitorTest.cc
  6189. Fixed bug: --check-integrity doesn't work for multi file torrent.
  6190. * src/RequestGroup.cc
  6191. * src/BtCheckIntegrityEntry.cc
  6192. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6193. Fixed a2io.h
  6194. * src/a2io.h
  6195. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Added direct I/O support. The current implementation uses O_DIRECT,
  6197. which is not posix standard and is tested on linux 2.6.21.
  6198. Currently only file allocation uses direct I/O.
  6199. * src/SingleFileAllocationIterator.{h, cc}
  6200. * test/SingleFileAllocationIteratorTest.cc
  6201. * src/MultiFileAllocationIterator.{h, cc}
  6202. * test/MultiFileAllocationIteratorTest.cc
  6203. * src/BinaryStream.h
  6204. * src/DiskWriter.h
  6205. * src/AbstractDiskWriter.{h, cc}
  6206. * src/ByteArrayDiskWriter.h
  6207. * src/DiskAdaptor.h
  6208. * src/AbstractSingleDiskAdaptor.{h, cc}
  6209. * src/MultiDiskAdaptor.{h, cc}
  6210. * src/FileAllocationEntry.cc
  6211. * src/Util.{h, cc}
  6212. * src/OptionHandlerFactory.cc
  6213. * src/prefs.h
  6214. * src/version_usage.cc
  6215. * src/option_processing.cc
  6216. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  6217. handleException.
  6218. * src/MultiFileAllocationIterator.cc
  6219. Added EINTR handling
  6220. * src/SocketCore.cc
  6221. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6222. Updated usage
  6223. * src/version_usage.cc
  6224. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6225. Applied Ross's patch for MinGW port.
  6226. * src/DownloadEngine.h
  6227. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6228. Set Content-Type to SingleFileDownloadContext when http response is
  6229. received.
  6230. * src/HttpResponseCommand.cc
  6231. * src/HttpResponse.{h, cc}
  6232. * test/HttpResponseTest.cc
  6233. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Rewritten to add content-type support.
  6235. * src/DownloadHandler.{h, cc}
  6236. * src/BtPostDownloadHandler.{h, cc}
  6237. * test/BtPostDownloadHandlerTest.cc
  6238. * src/MetalinkPostDownloadHandler.{h, cc}
  6239. * test/MetalinkPostDownloadHandlerTest.cc
  6240. * src/PostDownloadHandler.{h, cc}
  6241. * src/DownloadHandlerConstants.{h, cc}
  6242. * src/RequestGroup.cc
  6243. * src/HttpResponseCommand.cc
  6244. * src/FtpNegotiationCommand.cc
  6245. * src/SingleFileDownloadContext.{h, cc}
  6246. * src/RequestGroup.h
  6247. * src/RequestGroupCriteria.h
  6248. * src/ContentTypeRequestGroupCriteria.h
  6249. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6250. If it is give, metalink/torrent file is not written to the disk, but
  6251. just is kept in memory. Parsing is occurred on memory.
  6252. * src/MetalinkHelper.{h, cc}
  6253. * src/MetalinkProcessor.h
  6254. * src/Xml2MetalinkProcessor.{h, cc}
  6255. * test/Xml2MetalinkProcessorTest.cc
  6256. * src/DownloadHandlerFactory.{h, cc}
  6257. * test/DownloadHandlerFactoryTest.cc
  6258. * src/PreDownloadHandler.{h, cc}
  6259. * src/OptionHandlerFactory.cc
  6260. * src/DefaultBtContext.{h, cc}
  6261. * test/DefaultBtContextTest.cc
  6262. * src/version_usage.cc
  6263. * src/Metalink2RequestGroup.{h, cc}
  6264. * src/RequestGroup.{h, cc}
  6265. * src/a2functional.h
  6266. * test/a2functionalTest.cc
  6267. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6268. * src/OptionHandlerImpl.h
  6269. * src/prefs.h
  6270. * src/Util.{h, cc}
  6271. * test/UtilTest.cc
  6272. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6273. memory usage.
  6274. * src/RequestGroupMan.{h, cc}
  6275. * src/DownloadEngine.cc
  6276. * src/BtDependency.{h, cc}: Changed the type of dependee from
  6277. WeakHandle to SharedHandle because WeakHandle could be null.
  6278. * src/RequestGroup.{h, cc}
  6279. * src/DownloadEngineFactory.cc
  6280. * src/DownloadResult.h
  6281. Set totalLength after download finished
  6282. * src/UnknownLengthPieceStorage.{h, cc}
  6283. Keep torrent file specified in metalink in memory.
  6284. * src/Metalink2RequestGroup.cc
  6285. * src/BtDependency.cc
  6286. * src/TrueRequestGroupCriteria.h
  6287. Fixed the bug: seekg is used where seekp should be used.
  6288. * src/ByteArrayDiskWriter.cc
  6289. * test/ByteArraydiskWriterTest.cc
  6290. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. Fixed syntax error
  6292. * test/SequenceTest.cc
  6293. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6295. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  6296. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6297. * src/RequestGroup.cc (downloadFinishedByFileLength)
  6298. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. Added the check to see whether ares_host_callback accepts timeouts
  6300. with c-ares; only c-ares 1.5.0 or newer accepts it.
  6301. * src/NameResolver.{h, cc}
  6302. * m4/libcares.m4
  6303. * configure.ac: Set C++ for language choice.
  6304. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Fixed: compilation fails without c-ares/ares
  6306. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6307. Generate http/ftp commands only when download is incomplete.
  6308. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6309. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6310. Corrected typo. Examples are removed since they are available in man
  6311. page.
  6312. * src/version_usage.cc
  6313. Updated man page.
  6314. * doc/aria2c.1
  6315. * doc/aria2c.1.txt
  6316. * doc/makeman: Commented out sed command.
  6317. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6318. Throw DlAbortEx when a remote file is not found.
  6319. * src/HttpResponse.cc
  6320. * src/FtpNegotiationCommand.cc
  6321. * src/message.h
  6322. Overwrite an existing file if --allow-overwrite=true is given.
  6323. * src/RequestGroup.cc
  6324. Removed unused functions
  6325. * src/AbstractCommand.h
  6326. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6327. Removed 'extern' from 'extern typedef ...' in src/*.h
  6328. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6329. Updated usage
  6330. * src/version_usage.cc
  6331. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6332. Trim announce URL
  6333. * src/DefaultBtContext.cc
  6334. * test/ShaVisitorTest.cc
  6335. Trim argument s. Give trimed s to exception constructor.
  6336. * src/Util.cc (parseInt)(parseLLInt)
  6337. * test/UtilTest.cc
  6338. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Set precision back to 1.
  6340. * src/ConsoleStatCalc.cc (calculateStat)
  6341. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6342. Replaced strtol with Util::parseInt
  6343. * src/ChunkedEncoding.cc
  6344. * src/HttpConnection.cc
  6345. * src/CookieBoxFactory.cc
  6346. * src/ParameterizedStringParser.cc
  6347. * src/Util.cc
  6348. * test/UtilTest.cc
  6349. * test/OptionHandlerTest.cc
  6350. * src/Request.cc
  6351. Throw exception when empty string is given. The message for exception
  6352. changed.
  6353. * src/Util.cc (parseInt)(parseLLInt)
  6354. * src/message.h
  6355. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6357. set to 1.
  6358. * src/ConsoleStatCalc.cc (calculateStat)
  6359. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Preallocate non-requested file which is adjacent forward to requested
  6361. file('requested' files means the files given in --select-file option)
  6362. if they share a same piece.
  6363. This fixes long pause in the file system which doesn't support sparse
  6364. files like FAT32 while downloading.
  6365. * src/MultiFileAllocationIterator.{h, cc}
  6366. * test/MultiFileAllocationIteratorTest.cc
  6367. * src/FileEntry.{h, cc}
  6368. Removed unused _option.
  6369. * src/MultiDiskAdaptor.h
  6370. * test/MultiDiskAdaptorTest.cc
  6371. * src/DefaultPieceStorage.cc
  6372. Set the default value of --seed-ratio to 1.0.
  6373. If 0.0 is given, then seeding continues regardless of share ratio.
  6374. * src/version_usage.cc
  6375. * src/option_processing.cc
  6376. * src/BtSetup.cc
  6377. * doc/aria2c.1.txt
  6378. * doc/aria2c.1
  6379. Fixed: Selective download is not working in BitTorrent
  6380. * src/RequestGroup.cc
  6381. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6382. * src/PieceStorage.h
  6383. * test/MockPieceStorage.h
  6384. * src/UnknownLengthPieceStorage.h
  6385. * src/DefaultPieceStorage.{h, cc}
  6386. * src/Metalink2RequestGroup.cc
  6387. * src/RequestGroup.cc
  6388. * src/Sequence.h
  6389. * test/SequenceTest.cc
  6390. * src/IntSequence.h
  6391. * src/message.h
  6392. * src/Util.{h, cc}
  6393. * test/UtilTest.cc
  6394. Added new function 'parse' to catch exception thrown by subclass's
  6395. parseArg
  6396. * src/OptionHandler.h
  6397. * src/OptionParser.cc
  6398. * src/NameMatchOptionHandler.h
  6399. * src/OptionHandlerImpl.h
  6400. * test/OptionHandlerTest.cc
  6401. Added IntegerRangeOptionHandler. Used for --listen-port and
  6402. --select-file. Now --listen-port accepts range of port.
  6403. * src/OptionHandlerFactory.cc
  6404. * src/version_usage.cc
  6405. * src/OptionHandlerImpl.h
  6406. * src/option_processing.cc
  6407. * src/BtSetup.cc
  6408. * src/PeerListenCommand.{h, cc}
  6409. * doc/aria2c.1.txt
  6410. * doc/aria2c.1
  6411. Implemented operator< for Exception class to provide easy way to print
  6412. exception stack trace.
  6413. * src/Exception.{h, cc}
  6414. * src/main.cc
  6415. * src/option_processing.cc
  6416. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6417. * src/version_usage.cc
  6418. (showVersion): Reworked.
  6419. (showUsage): Added examples.
  6420. Removed Hint for total length and file name.
  6421. * src/Metalink2RequestGroup.cc
  6422. * src/RequestGroup.{h, cc}
  6423. * src/HttpResponseCommand.cc
  6424. * src/FtpNegotiationCommand.cc
  6425. Now --follow-torrent and --follow-metalink option work properly.
  6426. * src/RequestGroup.cc
  6427. Updated man page
  6428. * doc/aria2c.1.txt
  6429. * doc/aria2c.1
  6430. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Removed.
  6432. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  6433. Use Segment::operator==()
  6434. * src/HttpConnection.cc
  6435. * src/Segment.h
  6436. Updated usage
  6437. * src/version_usage.cc
  6438. Added EINTR treatment.
  6439. * src/SocketCore.cc
  6440. * src/AbstractDiskWriter.cc
  6441. Rewritten.
  6442. * src/Util.cc (rangedFileCopy)
  6443. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6444. Fixed typo.
  6445. * src/version_usage.cc
  6446. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6447. Implemented. Now -c option works fine.
  6448. * src/DefaultPieceStorage.cc (markPiecesDone)
  6449. * test/DefaultPieceStorageTest.cc
  6450. Removed.
  6451. * src/SegmentMan.{h, cc}
  6452. (markAllPiecesDone)
  6453. (markPieceDone)
  6454. Synchronized po files with
  6455. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  6456. * src/fr.po
  6457. * src/ru.po
  6458. * src/de.po
  6459. * src/ja.po
  6460. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6461. Added ifdef and some modifications to compile without BitTorrent,
  6462. Metalink, MessageDigest
  6463. support.
  6464. * src/PieceHashCheckIntegrityEntry.cc
  6465. * src/MetalinkEntry.h
  6466. * src/version_usage.cc
  6467. * src/main.cc
  6468. * src/DownloadEngine.{h, cc}
  6469. * src/Metalink2RequestGroup.cc
  6470. * src/Peer.cc
  6471. * src/RequestGroup.cc
  6472. * src/MetalinkHelper.cc
  6473. * test/DefaultPieceStorageTest.cc
  6474. * test/MetalinkPostDownloadHandlerTest.cc
  6475. * test/Metalink2RequestGroupTest.cc
  6476. Hide TOTAL SPD when all downloads complete.
  6477. * src/ConsoleStatCalc.cc
  6478. Log target system information.
  6479. * src/main.cc
  6480. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6481. Now --metalink-location accepts a comma-deliminated list of locations.
  6482. * src/MetalinkEntry.{h, cc}
  6483. * test/MetalinkEntryTest.cc
  6484. * src/version_usage.cc
  6485. * src/Metalink2RequestGroup.cc
  6486. * src/Xml2MetalinkProcessor.cc
  6487. * test/Xml2MetalinkProcessorTest.cc
  6488. * doc/aria2c.1.txt
  6489. * doc/aria2c.1
  6490. * src/Util.cc (toUpper)(toLower): Rewritten.
  6491. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6492. Added the ability to detect duplicate download entry which is about to
  6493. download the same file other RequestGroup is downloading.
  6494. * src/RequestGroup.cc
  6495. * src/HttpResponseCommand.cc
  6496. * src/FtpNegotiationCommand.cc
  6497. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Recalculates download progress when loading a control file,
  6499. if the piece length of DownloadContext is different from the one saved
  6500. in the control file. Currently in-flight pieces are ignored.
  6501. * src/DefaultBtProgressInfoFile.cc
  6502. * test/DefaultBtProgressInfoFileTest.cc
  6503. * src/Util.{h, cc}
  6504. * test/UtilTest.cc
  6505. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Do not rotate tiers in announce-list.
  6507. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  6508. AnnounceList::allTiersFailed() used instead to detect whether all
  6509. tiers are tried and failed.
  6510. * test/DefaultBtAnnounceTest.cc
  6511. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  6512. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  6513. * test/AnnounceListTest.cc
  6514. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  6515. clause. Catch RecoverableException instead of DlRetryEx instead.
  6516. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6517. Implemented checksum validation feature(1 checksum for each file)
  6518. The validation takes place after the download.
  6519. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  6520. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  6521. * src/CheckIntegrityCommand.cc: Changed log message.
  6522. * src/Metalink2RequestGroup.cc: Set checksum to
  6523. SingleFileDownloadContext.
  6524. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  6525. PieceHashCheckIntegrity class.
  6526. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  6527. PieceHashCheckIntegrity class.
  6528. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  6529. * src/IteratableValidator.h: New class.
  6530. * src/message.h
  6531. * src/CheckIntegrityEntry.{h, cc}
  6532. * src/IteratableChunkChecksumValidator.{h, cc}
  6533. * src/SingleFileDownloadContext.h
  6534. * src/DownloadCommand.cc
  6535. --allow-overwrite=true is no longer needed to check file integrity
  6536. before download in BitTorrent download.
  6537. * src/RequestGroup.cc (getInitialCommand)
  6538. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  6539. throws exception.
  6540. * src/RequestGroupMan.cc (getInitialCommands)
  6541. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6542. urlencode the given url inside Request::parseUrl(...)
  6543. * src/Request.{h, cc}
  6544. * src/Util.{h, cc}
  6545. * test/RequestTest.cc
  6546. Removed #!metalink3! notation support because it is deleted from
  6547. the metalink specification.
  6548. * src/Request.{h, cc}
  6549. * test/RequestTest.cc
  6550. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6551. Don't connect server before checking file integrity at startup, if
  6552. filesize and output file path are known.
  6553. * src/AbstractCommand.cc
  6554. * src/StreamFileAllocationEntry.cc
  6555. * src/Metalink2RequestGroup.cc
  6556. * src/RequestGroup.{h, cc}
  6557. * src/HttpResponseCommand.cc
  6558. * src/FtpNegotiationCommand.cc
  6559. Added DownloadFailureException. If it is thrown, RequestGroup should
  6560. halt.
  6561. * src/AbstractCommand.cc
  6562. * src/DownloadFailureException.h
  6563. * src/RequestGroup.cc
  6564. Catch RecoverableException, instead of DlAbortEx.
  6565. * src/RequestGroupMan.cc
  6566. * src/FillRequestGroupCommand.cc
  6567. * src/MetaFileUtil.cc
  6568. * src/IteratableChunkChecksumValidator.cc
  6569. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  6570. getGID())
  6571. * src/CheckIntegrityCommand.cc
  6572. * src/message.h
  6573. Print gid instead of idx.
  6574. * src/RequestGroupMan.cc
  6575. Removed exception throwers declaration.
  6576. * src/DirectDiskAdaptor.{h, cc}
  6577. * src/SocketCore.{h, cc}
  6578. * src/MultiDiskAdaptor.{h, cc}
  6579. * src/HttpConnection.{h, cc}
  6580. * src/HttpResponse.{h, cc}
  6581. * src/DiskAdaptor.{h, cc}
  6582. * src/CopyDiskAdaptor.{h, cc}
  6583. * src/MultiDiskAdaptor.{h, cc}
  6584. * src/HttpHeaderProcessor.{h, cc}
  6585. * src/AbstractSingleDiskAdaptor.{h, cc}
  6586. * src/Util.{h, cc}
  6587. * test/UtilTest.cc
  6588. * src/DefaultDiskWriter.{h, cc}
  6589. * src/FtpConnection.{h, cc}
  6590. * src/AbstractDiskWriter.{h, cc}
  6591. Removed duplicate code.
  6592. * src/StreamCheckIntegrityEntry.cc
  6593. Removed unnecessary include.
  6594. * src/DiskWriter.h
  6595. Included Exception.h
  6596. * src/option_processing.cc
  6597. Included 2 files and added doc
  6598. * src/TrackerWatcherCommand.cc
  6599. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  6600. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Changed CheckIntegrityEntry interface so that it can define
  6602. the action when all the chunk checksums are valid.
  6603. * src/CheckIntegrityEntry.h
  6604. * src/StreamCheckIntegrityEntry.{h, cc}
  6605. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  6606. are valid, then aira2 goes to seeding mode. Sometimes it is better
  6607. to exit rather than doing seeding. So, it would be good to toggle this
  6608. behavior.
  6609. * src/CheckIntegrityCommand.cc
  6610. * src/AbstractCommand.cc
  6611. * src/RequestGroup.cc
  6612. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6613. Reflect the download length of in-flight pieces.
  6614. It makes the download length readout more precise.
  6615. * src/DefaultPieceStorage.{h, cc}
  6616. * test/DefaultPieceStorageTest.cc
  6617. * src/a2functional.h
  6618. * test/a2functionalTest.cc
  6619. Lower CPU load when --max-download-limit is used.
  6620. There is up and down in speed indicator when enabling
  6621. http-pipelining but a download goes well. I think the problem is that
  6622. because http-pipelining is enabled, DownloadCommand is created for
  6623. each segment and in its constructor, PeerStat::downloadStart() is
  6624. called. In PeerStat::downloadStart(), speed calculation object is
  6625. reseted, which makes download speed zero.
  6626. * src/DownloadCommand.cc
  6627. Rewritten using accumulate.
  6628. * src/RequestGroupMan.cc (calculateStat)
  6629. Code clearnup.
  6630. * src/FtpNegotiationCommand.cc
  6631. * src/HttpResponseCommand.cc
  6632. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6633. Fixed: Can not resume: aria2 reports download already finished.
  6634. * src/AbstractCommand.{h, cc}
  6635. * src/HttpResponseCommand.cc
  6636. * src/FtpNegotiateCommand.cc
  6637. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6638. Now a file is stored in the directory specified in .metalnk file
  6639. (file[@name]).
  6640. * src/Metalink2RequestGroup.cc
  6641. Create the directory structure when opening the file if it doesn't
  6642. exist.
  6643. * src/AbstractDiskWriter.cc
  6644. * src/Util.{h, cc}
  6645. * src/File.h
  6646. * test/UtilTest.cc
  6647. Removed file name comparison
  6648. * src/Metalink2RequestGroup.cc
  6649. * src/HttpResponseCommand.cc
  6650. Rewritten using Util::mkdirs()
  6651. * src/FileEntry.cc (setupDir)
  6652. * test/FileEntryTest.cc
  6653. Updated doc
  6654. * src/SingleFileDownloadContext.h
  6655. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6656. Now SleepCommand dispatches nextCommand when halt is requested.
  6657. It avoids a possible long wait after hitting CTRL-C.
  6658. * src/SleepCommand.{h, cc}
  6659. * src/RequestGroupAware.{h, cc}
  6660. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6661. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  6662. to open listen port, then remove the port number from the tracker
  6663. request.
  6664. * src/DefaultBtAnnounce.cc
  6665. * test/DefaultBtAnnounceTest.cc
  6666. * test/MockPieceStorage.h
  6667. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  6668. them more testable.
  6669. * src/DefaultBtAnnounce.{h, cc}
  6670. * src/DefaultBtContext.{h, cc}
  6671. * src/Util.{h, cc}
  6672. * test/DefaultBtAnnounceTest.cc
  6673. * test/DefaultBtContextTest.cc
  6674. * test/UtilTest.cc
  6675. Added 'B' to upload bytes readout.
  6676. * src/ConsoleStatCalc.cc
  6677. Now the listen port for BitTorrent download is opened when it is
  6678. needed.
  6679. * src/DownloadEngineFactory.cc
  6680. * src/BtSetup.{h, cc}
  6681. * src/PeerListenCommand.{h, cc}
  6682. Now an exception thrown while parsing tracker response is now logged.
  6683. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  6684. called, which means no retry is made in this case, assuming a tracker
  6685. has a problem.
  6686. * src/TrackerWatcherCommand.cc
  6687. Fixed: downloading a file whose length is unkown fails.
  6688. * src/DownloadCommand.cc
  6689. Simplified prepareForNextSegment()
  6690. * src/DownloadCommand.cc
  6691. Updated
  6692. * po/POTFILES.in
  6693. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. Re-implemented a file listing for Metalink, which was dropped while
  6695. http/ftp/torrent integration was being implemented.
  6696. * src/MetalinkHelper.{h, cc}: New class.
  6697. * test/MetalinkHelperTest.cc
  6698. * src/main.cc
  6699. * src/Metalink2RequestGroup.cc
  6700. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Added the ability to display the detailed torrent file information.
  6702. Now -S option gives not only a file listing, but also total download
  6703. length, info hash, announce URI, piece length, the number of pieces,
  6704. and mode(single or multi-torrent).
  6705. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  6706. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  6707. KiB)
  6708. * test/UtilTest.cc
  6709. * src/main.cc
  6710. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6711. Added ftp://USER:PASSWD@Servername automatic parsing.
  6712. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  6713. _password. Recognize username and password in URI.
  6714. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  6715. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  6716. * src/RequestFactory.{h, cc}: Removed.
  6717. * src/AuthConfigFactory.{h, cc}: New class.
  6718. * src/FtpConnection.cc: Use AuthConfigFactory.
  6719. * src/HttpRequest.cc: Use AuthConfigFactory.
  6720. * test/HttpRequestTest.cc: Updated.
  6721. * test/RequestTest.cc: Updated.
  6722. * test/AuthConfigFactoryTest.cc: New class.
  6723. * test/RequestFactoryTest.cc: Removed.
  6724. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Use RequestGroup::allDownloadFinished() to decide whether the control
  6726. file should be removed or saved.
  6727. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  6728. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  6729. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. Use File::renameTo()
  6731. * src/DefaultBtProgressInfoFile.cc
  6732. Added --no-file-allocation-limit command-line option.
  6733. * src/version_usage.cc
  6734. * src/option_processing.cc
  6735. * src/OptionHandlerFactory.cc
  6736. * src/RequestGroup.{h, cc}
  6737. * src/BtCheckIntegrityEntry.cc
  6738. * src/StreamCheckIntegrityEntry.cc
  6739. * src/prefs.h
  6740. * doc/aria2c.1.txt
  6741. * doc/aria2c.1
  6742. Now prealloc is the default value for --file-allocation option.
  6743. * src/version_usage.cc
  6744. * src/option_processing.cc
  6745. * doc/aria2c.1.txt
  6746. * doc/aria2c.1
  6747. Don't URL-encode user-agent.
  6748. * src/HttpRequest.cc
  6749. Updated translations
  6750. * po/LINGUAS: Added nl for Dutch translation.
  6751. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  6752. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  6753. * po/POTFILES.in: Updated.
  6754. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6755. Added the ability to recognize url-list in a torrent file.
  6756. The retrieved URLs are attached to the corresponding FileEntry.
  6757. * src/DefaultBtContext.{h, cc}
  6758. * src/FileEntry.{h, cc}
  6759. * test/DefaultBtContextTest.cc
  6760. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6761. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  6762. after the download finishes.
  6763. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6764. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  6765. the data smaller than block length.
  6766. A block length can be specified by constructor's argument.
  6767. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  6768. Get a missing piece in the range of given FileEntry. This function is
  6769. not used in the program yet.
  6770. * src/Util.h: Added some macros.
  6771. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6772. Added HTTP/1.1 keep alive and pipelining support.
  6773. See --enable-http-keep-alive and --enable-http-pipelining option.
  6774. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  6775. Segment.
  6776. * src/HttpDownloadCommand.{h, cc}
  6777. * src/OptionHandlerFactory.cc
  6778. * src/HttpConnection.{h, cc}
  6779. * src/version_usage.cc
  6780. * src/HttpInitiateConnectionCommand.cc
  6781. * src/FtpInitiateConnectionCommand.cc
  6782. * src/Segment.h
  6783. * src/HttpRequestCommand.{h, cc}
  6784. * src/option_processing.cc
  6785. * src/prefs.h
  6786. * src/HttpResponseCommand.cc
  6787. * src/SegmentMan.{h, cc}
  6788. * src/FtpNegotiateCommand.cc
  6789. * src/HttpProxyResponseCommand.cc
  6790. * src/Request.cc
  6791. * src/HttpRequest.cc
  6792. * src/DownloadCommand.cc
  6793. * test/HttpRequestTest.cc
  6794. * test/RequestTest.cc
  6795. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6796. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  6797. finished.
  6798. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6799. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  6800. catching it inside the method.
  6801. When no file entry is found in a metalink without querying user
  6802. preferences, throw the exception with the error message that suggests
  6803. metalink file is probably broken.
  6804. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  6805. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Fixed the bug that prevents remote Metalink/Torrent file from begin
  6807. processed.
  6808. * src/RequestGroupMan.cc (removeStoppedGroup)
  6809. Added debug message.
  6810. * src/BtPostDownloadHandler.cc
  6811. * src/MetalinkPostDownloadHandler.cc
  6812. * src/PostDownloadHandler.{h, cc}
  6813. * src/RequestGroup.cc
  6814. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6815. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  6816. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  6818. stops and there are any unfinished or in-progress downloads.
  6819. Added the legend of "stat".
  6820. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6821. Throw exception when chunck checksum verification fails.
  6822. * src/DownloadCommand.cc (validatePieceHash): New function.
  6823. * src/PiecedSegment.{h, cc} (clear): New function.
  6824. * src/GrowSegment.{h, cc} (clear): New function.
  6825. * src/Segment.h (clear): New function.
  6826. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  6827. * test/SegmentTest.cc
  6828. * test/GrowSegmentTest.cc
  6829. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6830. Do not send referer when redirected.
  6831. * src/Request.cc (redirectUrl)
  6832. * test/RequestTest.cc
  6833. * test/HttpRequestTest.cc
  6834. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6835. Implemented BitTorrent/http/ftp integrated download.
  6836. I've rewritten lots of files and now some headers have forward
  6837. class declarations to reduce compile time.
  6838. The implementation is extremely alpha stage, I recommend to use this
  6839. for testing purpose only.
  6840. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Fixed the compilation error on 64bit platform.
  6842. * test/HttpHeaderProcessorTest.cc
  6843. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6844. Merged Ross's patch that fixes compilation problem in MinGW
  6845. * test/DefaultBtProgressInfoFileTest.cc
  6846. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6847. Updated fr.po by sebone
  6848. * po/fr.po
  6849. Updated man page.
  6850. * doc/aria2c.1.txt
  6851. * Release 0.11.3
  6852. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6853. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  6854. failure in Metalink.
  6855. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6856. Automatically save *.aria2 control file of http/ftp download in every
  6857. 60 seconds.
  6858. * src/AutoSaveCommand.{h, cc}: New class.
  6859. * src/TimeBasedCommand.{h, cc}: New class.
  6860. * src/DownloadEngineFactory.cc (newConsoleEngine)
  6861. Disable parameterized URI support by default. Added -P option to
  6862. enable the feature.
  6863. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  6864. * src/OptionHandlerFactory.cc
  6865. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  6866. Updated Japanese translation.
  6867. * po/ja.po
  6868. Updated man page.
  6869. * doc/aria2c.1.txt
  6870. * Release 0.11.3-rc
  6871. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  6873. it is successful, then renamed to *.aria2.
  6874. This prevents *.aria2 file from being truncated or corrupted when
  6875. file system becomes out of space.
  6876. * src/DefaultBtProgressInfoFile.cc (save)
  6877. * src/SegmentMan.cc (save)
  6878. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  6879. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Reduced the fragmentation of bitfield in http/ftp download.
  6881. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  6882. * test/BitfieldManTest.cc
  6883. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6884. Added the ability to disable segmented download in .metalink.
  6885. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  6886. 'url' tag.
  6887. * src/MetalinkEntry.{h, cc}
  6888. * src/RequestResource.{h, cc}
  6889. * src/MetalinkRequestInfo.cc
  6890. * src/Xml2MetalinkProcessor.cc
  6891. * test/Xml2MetalinkProcessorTest.cc
  6892. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Added parameterized URI support.
  6894. * src/main.cc: -Z option added.
  6895. * src/OptionHandlerFactory.cc
  6896. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  6897. * src/PStringDatum.h: New class.
  6898. * src/PStringSegment.{h,cc}: New class.
  6899. * src/PStringNumLoop.h: New class.
  6900. * src/PStringSelect.h: New class.
  6901. * src/NumberDecorator.h: New class.
  6902. * src/FixedWidthNumberDecorator.h: New class.
  6903. * src/AlphaNumberDecorator.h: New class.
  6904. * src/PStringVisitor.h: New class.
  6905. * src/PStringBuildVisitor.{h,cc}: New class.
  6906. * src/ParameterizedStringParser.{h,cc}: New class.
  6907. * src/Util.{h,cc}
  6908. (isNumber): New function.
  6909. (isLowercase): New function.
  6910. (isUppercase): New function.
  6911. (alphaToNum): New function.
  6912. * test/ParameterizedStringParserTest.cc: New class.
  6913. * test/AlphaNumberDecoratorTest.cc: New class.
  6914. * test/PStringBuildVisitorTest.cc: New class.
  6915. * test/UtilTest.cc
  6916. (testIsNumber): New function.
  6917. (testIsLowercase): New function.
  6918. (testIsUppercase): New function.
  6919. (testAlphaToNum): New function.
  6920. Added '\n' after the error message
  6921. * src/RequestInfo.h (printDownloadAbortMessage)
  6922. Added auto file renaming feature in http(s)/ftp download.
  6923. * src/main.cc: Added --auto-file-renaming command-line option.
  6924. * src/OptionHandlerFactory.cc
  6925. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  6926. * src/RequestGroup.{h, cc}
  6927. (shouldCancelDownloadForSafety): Rewritten
  6928. (tryAutoFileRenaming): New function.
  6929. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  6930. * src/HttpResponseCommand.cc
  6931. (executeInternal): Removed the call to RequestGroupMan::
  6932. isSameFileBeingDownloaded()
  6933. * src/FtpNegotiateCommand.cc
  6934. (recvSize): Removed the call to RequestGroupMan::
  6935. isSameFileBeingDownloaded()
  6936. * test/RequestGroupTest.cc: New class.
  6937. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6938. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  6939. IO.
  6940. * src/DefaultBtProgressInfoFile.cc
  6941. * src/MetaFileUtil.cc
  6942. * src/SimpleLogger.cc
  6943. * src/SegmentMan.cc
  6944. * src/Util.cc
  6945. * src/Platform.cc
  6946. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  6948. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6949. Avoid sparse files if possible, because VFAT32 doesn't support it.
  6950. * src/DefaultDiskWriter.cc (initAndOpenFile)
  6951. Fixed the bug that prevents file allocation is not done when
  6952. dowloading multi-torrent file.
  6953. * src/AbstractDiskWriter.cc (openFile)
  6954. Increase the maximum number of -j option from 15 to 45.
  6955. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6956. Added fr.po, thanks to Charles Landemaine.
  6957. * po/fr.po
  6958. * po/LINGUAS
  6959. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6960. gcc 3.4.4 support:
  6961. * src/DefaultBtContext.cc: int32_t -> int
  6962. * src/main.cc: int -> int32_t, int32_t -> int
  6963. * src/messageDigest.h: uint32_t -> unsigned int
  6964. * src/NameResolver.h: int32_t -> int
  6965. * src/PeerConnection.cc: int -> int32_t
  6966. * src/SpeedCalc.cc: int32_t -> int
  6967. * src/TrackerUpdateCommand.h: int -> int32_t
  6968. * src/Util.cc: int32_t -> int
  6969. * src/Util.h: int32_t -> int
  6970. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  6971. * test/AnnounceListTest.cc: int -> int32_t
  6972. * test/ChunkedEncodingTest.cc: int -> int32_t
  6973. * test/DataTest.cc: int -> int32_t
  6974. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  6975. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  6976. * test/DefaultPieceStorageTest.cc: int -> int32_t
  6977. * test/FeatureConfigTest.cc: int -> int32_t
  6978. * test/MetalinkEntryTest.cc: int -> int32_t
  6979. * test/MockBtRequestFactory.h: int -> int32_t
  6980. * test/MockPieceStorage.h: int -> int32_t
  6981. * test/OptionTest.cc: int -> int32_t
  6982. * test/RequestTest.cc: int -> int32_t
  6983. * test/SegmentManTest.cc: int -> int32_t
  6984. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  6985. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6986. Move sleep functions to Util class:
  6987. * src/Util.cc
  6988. (sleep): New function.
  6989. (usleep): New function.
  6990. * src/DownloadCommand.cc: sleep -> Util::sleep
  6991. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  6992. MinGW build enhancements. The following files are added:
  6993. * src/timegm.{c,h}
  6994. Changes to support the above new files:
  6995. * configure.ac
  6996. * src/Makefile.am
  6997. * src/a2time.h
  6998. * src/Util.cc:
  6999. * src/strptime.c: Added support for %Z option.
  7000. Fixed MinGW non-blocking bug.
  7001. * src/SocketCore.cc
  7002. * src/HttpRequestCommand.cc
  7003. Miscellenous build fixes/enhancements.
  7004. * configure.ac: Added summary report.
  7005. * src/Platform.h: Tweaked #include's.
  7006. * src/a2netcompat.h: Tweaked #include's.
  7007. * src/strptime.h: Tweaked #include's.
  7008. * src/gai_strerror.c: Tweaked #include's.
  7009. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7010. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7011. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7012. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7013. Increased the initial connection size in BitTorrent download to 40.
  7014. * src/BtRuntime.h
  7015. Added the usage message of --peer-id-prefix option.
  7016. * src/main.cc
  7017. * Release 0.11.2
  7018. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7019. MessageDigestHelper is introduced in order to simplify the use
  7020. of message digest. Removed repeated code.
  7021. The message digest algorithm is now specified by string, like "sha1",
  7022. "md5".
  7023. * src/messageDigest.{h, cc}
  7024. * src/MessageDigestHelper.{h, cc}: New class.
  7025. * src/DefaultPieceStorage.cc
  7026. * src/DefaultBtContext.{h, cc}
  7027. (computeFastSet): New function.
  7028. (setInfoHash): Added for unit testing.
  7029. (setNumPieces): Added for unit testing.
  7030. * src/DefaultBtInteractive.cc
  7031. * src/BtPieceMessage.cc
  7032. * src/Peer.cc
  7033. * src/Checksum.h
  7034. * src/message.h
  7035. * src/IteratableChecksumValidator.h
  7036. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7037. inside it.
  7038. * src/SegmentMan.{h, cc}
  7039. (checkIntegrity): Removed.
  7040. * src/IteratableChunkChecksumValidator.{h, cc}
  7041. * src/Util.h
  7042. (sha1Sum): Removed.
  7043. (simpleMessageDigest): Removed.
  7044. (fileChecksum): Removed.
  7045. (computeFastSet): Removed.
  7046. * src/ShaVisitor.cc
  7047. * src/ChunkChecksum.h
  7048. * src/DownloadCommand.cc
  7049. Removed messageDigest virtual functions.
  7050. * src/MultiDiskAdaptor.{h, cc}
  7051. * src/DiskAdaptor.h
  7052. * src/ByteArrayDiskWriter.h
  7053. * src/DiskWriter.h
  7054. * src/DiskAdaptorWriter.h
  7055. * src/AbstractSingleDiskAdaptor.{h, cc}
  7056. * src/AbstractDiskWriter.{h, cc}
  7057. Fixed comilation error when message digest is disabled.
  7058. * src/MetalinkEntry.{h, cc}
  7059. * src/MetalinkRequestInfo.cc
  7060. Removed srandom and random.
  7061. * src/SimpleRandomizer.h
  7062. Added size() virtual function to DiskAdaptor
  7063. * src/MultiDiskAdaptor.h
  7064. Fixed the bug that causes that files are not opened correctly in
  7065. multi-file torrent.
  7066. * src/TorrentRequestInfo.cc
  7067. * src/MultiDiskAdaptor.cc
  7068. Added SHA256 support
  7069. * src/messageDigest.cc
  7070. * src/Xml2MetalinkProcessor.cc
  7071. Show supported message digest algorithms
  7072. * src/main.cc
  7073. Updated contact info.
  7074. * src/main.cc
  7075. Applied Ross's patch
  7076. * src/a2netcompat.h
  7077. * src/main.cc
  7078. Fixed the bug that prevents a remote metalink from not being processed
  7079. even if '-o foo.metalink' is specified.
  7080. * src/MetalinkRequestInfo.cc
  7081. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7082. Merged Dan's patch:
  7083. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7084. Use va_copy to avoid core dump on amd64:
  7085. * src/SimpleLogger.cc
  7086. Updated contact info.
  7087. * src/main.cc
  7088. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7089. digest is not available.
  7090. * src/MetalinkEntry.h
  7091. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7092. Make a2netcompat.h include a2io.h to fix compilation error:
  7093. * src/a2netcompat.h
  7094. * src/SocketCore.cc: Removed include of a2io.h
  7095. * src/Util.cc: Removed include of a2io.h
  7096. Gather time related functions to a2time.h:
  7097. * src/a2time.h: New file.
  7098. * src/DefaultPeerStorage.cc
  7099. * src/SimpleLogger.cc
  7100. * src/Util.{h, cc}
  7101. * src/SimpleRandomizer.h
  7102. * src/TimeA2.{h,cc}
  7103. * src/DownloadCommand.cc
  7104. * src/main.cc
  7105. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7106. a2netcompat.h:
  7107. * src/NameResolver.cc
  7108. Fixed compilation error without openssl:
  7109. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7110. Added default block to suppress compiler warnings:
  7111. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7112. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7113. MinGW build enhancements. The following files are added:
  7114. * src/gai_strerror.{c,h}
  7115. * src/gettimeofday.{c,h}
  7116. Changes to support the above new files:
  7117. * configure.ac
  7118. * src/Makefile.am
  7119. * src/a2netcompat.h
  7120. * src/TimeA2.cc
  7121. * src/DefaultPeerStorage.cc
  7122. * src/NameResolver.cc: removed mingw_strerror() function.
  7123. * src/SocketCore.cc: removed mingw_strerror() function.
  7124. Miscellaneous MinGW build fixes.
  7125. * src/a2io.h: Use _lseeki64() instead of lseek()
  7126. * src/common.h
  7127. * src/DefaultFileAllocator.cc
  7128. * src/GlowFileAllocator.cc
  7129. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7130. * src/NameResolver.cc
  7131. (callback): Changed int32_t to int.
  7132. (resolve): Changed int32_t to int.
  7133. * src/Platform.cc
  7134. * src/Platform.h
  7135. * test/MultiDiskWriterTest.cc
  7136. * test/PeerMessageUtilTest.cc
  7137. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7138. Other enhancements and fixes.
  7139. * src/HttpRequestCommand.cc
  7140. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7141. * src/SocketCore.cc:
  7142. (error): New function to abstract errno/WSAGetLastError().
  7143. (errorMsg): New function to abstract errno/WSAGetLastError().
  7144. (initiateSecureConnection): Added more detailed error reporting.
  7145. * src/SocketCore.h: Added private variable blocking, to allow
  7146. proper handling of OpenSSL psuedo-errors.
  7147. * src/message.h
  7148. (EX_SSL_INIT_FAILURE)
  7149. (EX_SSL_IO_ERROR)
  7150. (EX_SSL_PROTOCOL_ERROR)
  7151. (EX_SSL_UNKNOWN_ERROR)
  7152. (EX_SSL_CONNECT_ERROR)
  7153. (EX_SOCKET_BLOCKING)
  7154. (EX_SOCKET_NONBLOCKING)
  7155. (EX_SOCKET_UNKNOWN_ERROR)
  7156. * src/Util.cc
  7157. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7158. reserved name.
  7159. (httpGMT): Fixed typo.
  7160. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Merged Ross's win32 patch(manually)
  7162. In the course of merging, following files are added.
  7163. * src/strptime.{h,c}
  7164. * src/libgen.{h,c}
  7165. * src/inet_aton.{h,c}
  7166. * src/Platform.{h,cc}
  7167. * src/localtime_r.{h,c}
  7168. * src/getaddrinfo.{h,c}
  7169. I've gethered network related things, and put them to following file:
  7170. * src/a2netcompat.h
  7171. Also io related things are put to following file:
  7172. * src/a2io.h
  7173. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7174. * src/message.h
  7175. (MSG_ALLOCATION_COMPLETED)
  7176. (EX_TOO_LARGE_FILE)
  7177. (EX_SIZE_MISMATCH)
  7178. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7179. (EX_INVALID_CHUNK_CHECKSUM)
  7180. (EX_INVALID_RANGE_HEADER)
  7181. * src/FileAllocationCommand.cc
  7182. * src/HttpResponse.cc
  7183. * src/RequestGroup.cc
  7184. * src/MultiDiskAdaptor.cc
  7185. * src/OptionHandlerImpl.h
  7186. * src/HttpResponseCommand.cc
  7187. * src/FtpNegotiateCommand.cc
  7188. * src/IteratableChecksumValidator.cc
  7189. * src/SegmentMan.cc
  7190. * src/ChunkChecksumValidator.cc
  7191. Added Randomizer::getRandomNumber(long int)
  7192. * src/Randomizer.h (getRandomNumber)
  7193. * src/SimpleRandomizer.h (getRandomNumber)
  7194. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  7195. * src/Util.cc (randomAlpha): Use this new function.
  7196. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7197. Converted int's to in32_t. long long int's are also converted to
  7198. int64_t
  7199. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7200. Fixed the bug that prevents cookies from being sent to the server
  7201. if the domain of cookie is FQDN and starts with ".".
  7202. * src/Cookie.cc (match)
  7203. To add the ability to change peer id.
  7204. * src/DefaultBtContext.h
  7205. (_peerIdPrefix): New variable
  7206. (setPeerIdPrefix): New function.
  7207. * src/torrentRequestInfo.cc
  7208. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  7209. DefaultBtContext.
  7210. * src/main.cc (main): Added peer-id-prefix command-line option.
  7211. The usage message is not added yet.
  7212. * src/DefaultBtContext.cc
  7213. (generatePeerId): Use _peerIdPrefix.
  7214. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  7215. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Fixed the bug that prevents filename in content-disposition from
  7217. being retrieved when filename is not quoted.
  7218. * src/Util.cc (getContentDispositionFilename)
  7219. Fixed the bug that causes infinate loop and memory leak when file open
  7220. operation failed.
  7221. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7222. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Fixed the bug that causes segfault when all URIs specified are
  7224. unsupported.
  7225. * src/RequestGroupMan.cc (getInitialCommands)
  7226. Check if RequestGroup::createNextCommand() returns empty list of
  7227. commands.
  7228. * src/RequestGroup.cc (createNextCommand)
  7229. Change log level from info to error so that users can notice that
  7230. an error occurred.
  7231. Fixed the bug that causes segfault when a zero-sized file is
  7232. downloaded.
  7233. * src/BitfieldMan.cc (isAllBitSet)
  7234. Return true if bitfieldLength is 0.
  7235. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7236. * src/main.cc
  7237. (showUsage): Added 3 usage examples for metalink download.
  7238. Replace MetalinkChunkChecksum with ChunkChecksum.
  7239. * src/MetalinkChunkChecksum.h: Removed.
  7240. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7241. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7242. * src/Xml2MetalinkProcessor.cc
  7243. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7244. * src/MetalinkRequestInfo.cc (execute)
  7245. * Release 0.11.1
  7246. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7247. Reads URIs from stdin when "-i -" is specified.
  7248. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7249. * src/UriListParser.h, src/UriListParser.cc: New class.
  7250. * src/StreamUriListParser.h: New class.
  7251. * src/FileUriListParser.h: New class.
  7252. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7253. instead of UriFileListParser.
  7254. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7255. Made console readout more readable.
  7256. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7257. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. Fix the bug that causes -s option not to work.
  7259. * src/main.cc (main)
  7260. * src/a2algo.h: New file.
  7261. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7262. Create directory structure specified in metalink file.
  7263. * src/RequestGroup.h, src/RequestGroup.cc
  7264. (initAndOpenFile): Create a directory to store files if it does not
  7265. exist.
  7266. (getDir): New function.
  7267. Added ETA and download speed for an individual file to readout.
  7268. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7269. * src/RequestGroup.h
  7270. (calculateDownloadSpeed): New function.
  7271. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Made -S option work with metalink file and provided selective download
  7273. to metalink.
  7274. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  7275. (filename): Removed.
  7276. (file): New variable.
  7277. (size): Removed.
  7278. (operator=): Updated.
  7279. (getPath): New function.
  7280. (getLength): New function.
  7281. (toFileEntry): New function.
  7282. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  7283. (execute): Use toStream.
  7284. (showFileEntry): Removed.
  7285. * src/MetalinkRequestInfo.h
  7286. (targetFiles): New variable.
  7287. (setTargetFiles): New variable.
  7288. * src/MetalinkRequestInfo.cc
  7289. (execute): Added the ability to print file information included in
  7290. a metalink file.
  7291. Added selective download mode to metalink.
  7292. * src/main.cc
  7293. (showUsage): Updated to denote that -S and --select-file options are
  7294. applicable to metalink.
  7295. * src/FileEntry.h
  7296. (operator=): New function.
  7297. (getBasename): New function.
  7298. (getDirname): New function.
  7299. * src/Util.h, src/Util.cc
  7300. (toStream): New function.
  7301. * src/Xml2MetalinkProcessor.cc: Updated.
  7302. Made aria2 work with metalink with directory structure.
  7303. * src/File.h, src/File.cc
  7304. (getBasename): New function.
  7305. (getDirname): New function.
  7306. * src/RequestGroup.h, src/RequestGroup.cc
  7307. (_topDir): New variable.
  7308. (setTopDir): New function.
  7309. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7310. Rewrote HTTP header parsing with stringstream.
  7311. * src/HttpConnection.h, src/HttpConnection.cc
  7312. (HttpRequestEntry): New class.
  7313. (headerBuf): Removed.
  7314. (headerBufLength): Removed.
  7315. (outstandingHttpRequests): Now its element type is
  7316. HttpRequestEntryHandle.
  7317. (findEndOfHeader): Removed.
  7318. (receiveResponse): Rewritten.
  7319. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7320. Updated doc for -j option to notice that it should be used with -i
  7321. option.
  7322. * src/main.cc (showUsage)
  7323. Removed unused classes.
  7324. * src/RequestInfo.h
  7325. (FileInfo): Removed.
  7326. (checksum): Removed.
  7327. (fileInfo): Removed.
  7328. (setChecksum): Removed.
  7329. (getChecksum): Removed.
  7330. (getFileInfo): Removed.
  7331. Use ISO units.
  7332. * src/ConsoleDownloadEngine.cc
  7333. * src/TorrentConsoleDownloadEngine.cc
  7334. * src/Util.cc (abbrevSize)
  7335. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7336. Added the default listening ports to the help message.
  7337. * src/main.cc (showUsage)
  7338. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. Reduce the number of calls to gettimeofday to lower CPU load.
  7340. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7341. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7342. * src/Peer.h (calculateUploadSpeed): New function.
  7343. (calculateDownloadSpeed): New function.
  7344. * src/DefaultPeerStorage.cc
  7345. (CalculateStat): Added _now variable.
  7346. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7347. and Peer::calculateUploadSpeed(const struct timeval&)
  7348. Drop connection if no request or piece message is exchanged in
  7349. a certain interval.
  7350. * src/DefaultBtInteractive.h
  7351. (btRuntime): New variable.
  7352. (inactiveCheckPoint): New variable.
  7353. (checkActiveInteraction): New function.
  7354. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7355. request or piece message is received.
  7356. (checkActiveInteraction): New function.
  7357. (doInteractionProcessing): Call checkActiveInteraction.
  7358. Fixed the bug that causes remote Metalink and Torrent files are not
  7359. processed.
  7360. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7361. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Changed format of log file.
  7363. * src/SimpleLogger.cc
  7364. * Release 0.11.0
  7365. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. * src/AbstractCommand.cc
  7367. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7368. MSG_MAX_TRY from error to info.
  7369. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7370. * src/message.h
  7371. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7372. (MSG_DOWNLOAD_ABORTED): Added %s.
  7373. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7374. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7375. * src/PeerAbstractCommand.cc
  7376. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7377. * src/Request.h
  7378. (cookieBox): Made ShardHandle.
  7379. * src/RequestGroup.h, src/RequestGroup.cc
  7380. (createNextCommandWithAdj): New function.
  7381. * src/FileAllocationCommand.cc
  7382. (executeInternal): Use createNextCommandWithAdj().
  7383. * src/CheckIntegrityCommand.cc
  7384. (executeInternal): Use createNextCommandWithAdj().
  7385. Added --load-cookies command-option.
  7386. * src/OptionHandlerFactory.cc
  7387. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7388. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7389. Now aria2 can handle cookie's expiration date.
  7390. * src/Cookie.h (expires): Changed its type to time_t.
  7391. * src/main.cc: Added --load-cookies command-line option.
  7392. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7393. * src/Util.h, src/Util.cc (httpGMT): New function.
  7394. * src/Request.cc (Request): Initialize cookieBox using
  7395. CookieBoxFactory.
  7396. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7397. * src/CookieParser.h, src/CookieParser.cc: New class.
  7398. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7399. * src/HttpResponseCommand.cc
  7400. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7401. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7402. download.
  7403. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7404. Added -j command-line option.
  7405. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7406. * src/main.cc
  7407. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7408. Rewritten using stringstream.
  7409. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  7410. Rewritten using stringstream.
  7411. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7412. Make download size shown in MB, KB.
  7413. * src/ConsoleDownloadEngine.h (sendStatistics)
  7414. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  7415. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7416. Accept incoming connections if download rate is low.
  7417. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  7418. (_lowestSpeedLimit): New variable.
  7419. (setLowestSpeedLimit): New function.
  7420. (execute): Accept incoming connections if download rate is low.
  7421. MAX_PEERS is ignored in this case.
  7422. Disable PREF_OUT in multiple concurrent download:
  7423. * src/RequestGroup.h, src/RequestGroup.cc
  7424. (setUserDefinedFilename): New function.
  7425. * src/DownloadEngineFactory.cc
  7426. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  7427. concurrent download.
  7428. * src/DefaultSegmentManFactory.cc
  7429. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  7430. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7431. RequestGroup::getNextCommand() was renamed to createNextCommand().
  7432. Added its overloaded method.
  7433. * src/RequestGroup.h
  7434. (_numConcurrentCommand): New variable.
  7435. (setNumConcurrentCommand): New function.
  7436. * src/RequestGroup.cc
  7437. Abort download if same file is being downloaded concurrently.
  7438. * src/RequestGroup.h, src/RequestGroupMan.cc
  7439. (isSameFileBeingDownloaded): New function.
  7440. * src/HttpResponseCommand.cc (executeInternal)
  7441. * src/FtpNegotiateCommand.cc (recvSize)
  7442. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  7443. * main.cc: Added help message for -i option.
  7444. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  7446. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  7447. * src/MetalinkEntry.h
  7448. (checksum): Changed to ChecksumHandle
  7449. * src/MetalinkRequestInfo.cc
  7450. (checksum): Changed to ChecksumHandle
  7451. * src/File.cc
  7452. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  7453. * src/common.h
  7454. (DIR_OPEN_MODE): New definition
  7455. * src/RequestGroup.cc
  7456. (prepareForNextAction): Added an argument.
  7457. * src/message.h
  7458. (MSG_GOOD_CHECKSUM): New definition
  7459. (MSG_BAD_CHECKSUM): New definition
  7460. * src/HttpResponseCommand.cc
  7461. (handleDefaultEncoding): Continue download sequence in new
  7462. non-segmented download.
  7463. * src/FileAllocationEntry.h
  7464. (_nextDownloadCommand): New variable.
  7465. * src/DownloadCommand.cc
  7466. (prepareForNextSegment): Create ChecksumCommand if checksum is
  7467. available.
  7468. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  7469. * src/IteratableChecksumValidator.h,
  7470. src/IteratableChecksumValidator.cc: New class.
  7471. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  7472. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7473. Change file mode to 666:
  7474. * src/common.h (OPEN_MODE): New definition.
  7475. * src/File.cc
  7476. * src/Util.cc
  7477. * src/Directry.cc
  7478. * src/AbstractDiskWriter.cc
  7479. Change the level of log message "download aborted" to debug:
  7480. * src/PeerAbstractCommand.cc (execute)
  7481. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  7482. * src/TrackerWatcherCommand.cc
  7483. (createCommand): Sleep some seconds after request failed.
  7484. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  7485. then abort tracker request.
  7486. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7487. * Added the simultaneous download feature.
  7488. * src/main.cc: Print "Exception caught: " when exception is caught.
  7489. Use CUIDCounter instead of BtRuntime::getNewCuid():
  7490. * src/ActivePeerConnectionCommand.cc
  7491. * src/PeerInteractionCommand.cc
  7492. * src/BtRuntime.h
  7493. (cuidCounter): Removed.
  7494. (getNewCuid): Removed.
  7495. * src/DownloadEngineFactory.cc
  7496. * src/PeerListenCommand.cc
  7497. * src/TrackerUpdateCommand.cc
  7498. * src/PeerInitiateConnectionCommand.cc
  7499. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7500. * src/PeerAbstractCommand.cc
  7501. (onAbort): Call PeerStorage::returnPeer()
  7502. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  7503. (incomingPeers): New variable.
  7504. (addIncomingPeer): New function.
  7505. (returnPeer): New function.
  7506. (onErasingPeer): New function.
  7507. (addPeer): push_back -> push_front
  7508. (getActivePeers): Rewritten.
  7509. (calculateStat): Rewritten.
  7510. * src/PeerStorage.h
  7511. (TransferStat::copy): New function.
  7512. (TransferStat::TransferStat): New function.
  7513. (TransferStat::operator=): New function.
  7514. (addIncomingPeer): New function.
  7515. (returnPeer): New function.
  7516. * src/PeerListenCommand.cc
  7517. (execute): Use PeerStorage::addIncomingPeer() instead of
  7518. Peer::addPeer().
  7519. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7520. Connect to a peer actively when download speed is lower than specified
  7521. speed in torrent download:
  7522. * src/ActivePeerConnectionCommand.h: New class.
  7523. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. * src/HttpRequest.cc (createRequest): url-encode user-agent
  7525. * src/main.cc: Fixed the bug that prevents download if .netrc
  7526. doesn't exist.
  7527. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. To cache resolved hostname:
  7529. * src/AbstractCommand.h, src/AbstractCommand.cc
  7530. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  7531. Added dns cache.
  7532. * src/FtpInitiateConnectionCommand.cc
  7533. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  7534. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  7535. NameResolver working without ares.
  7536. * src/TorrentRequestInfo.cc
  7537. (execute): Don't cache dns in torrent download.
  7538. * src/HttpInitiateConnectionCommand.cc
  7539. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  7540. * src/DNSCache.h: New class.
  7541. * src/UrlRequestInfo.cc
  7542. (execute): Use dns cache.
  7543. In http request, suppress port number in http request header if port
  7544. is 80 or 443:
  7545. * src/HttpRequest.cc (getHostText): Suppress port number in http
  7546. request header if port is 80 or 443.
  7547. (createProxyRequest): Allways send port number.
  7548. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7549. To add the command-line option which disables netrc support:
  7550. * src/OptionHandlerFactory.cc
  7551. (createOptionHandlers): Added PREF_NO_NETRC.
  7552. * src/main.cc: Added -n option.
  7553. * src/prefs.h (PREF_NO_NETRC): New definition.
  7554. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  7555. V_TRUE.
  7556. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  7557. is V_FALSE. This may get configurable in the future release.
  7558. To clear peer's error status by time basis:
  7559. * src/PeerAbstractCommand.cc
  7560. (onAbort): Call Peer::startBadCondition().
  7561. * src/Peer.h, src/Peer.cc
  7562. (error): Removed.
  7563. (_badConditionStartTime): New variable.
  7564. (_badConditionInterval): New variable. Initialized to 10 seconds.
  7565. (startBadCondition): New function.
  7566. (isGood): New function.
  7567. * src/DefaultPeerStorage.cc
  7568. (addPeer): Use Peer::isGood().
  7569. (FindFinePeer): Use Peer::isGood().
  7570. Always include port number in http request header:
  7571. * src/HttpRequest.cc (getHostText): Always include port number in
  7572. http request header.
  7573. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7574. To the ability to read options from a config file:
  7575. * src/main.cc: Command-line parameter validation is delegated to
  7576. OptionHandler class.
  7577. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  7578. * src/Option.h, src/Option.cc (clear): New function.
  7579. * src/OptionParser.h, src/OptionParser.cc: New class.
  7580. * src/OptionHandler.h: New class.
  7581. * src/NameMatchOptionHandler.h: New class.
  7582. * src/OptionHandlerImpl.h: New classes.
  7583. * src/prefs.h: '_' -> '-'
  7584. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  7585. (FTP_PASV): New definition.
  7586. * src/Util.h, src/Util.cc (getRealSize): New function.
  7587. To disable netrc support if .netrc file does not have correct
  7588. permissions:
  7589. * src/File.h, src/File.cc (mode): New function.
  7590. To prevent confidential information to be logged:
  7591. * src/HttpConnection.h, src/HttpConnection.cc
  7592. (eraseConfidentialInfo): New function.
  7593. (sendRequest): Call eraseConfidentialInfo().
  7594. (sendProxyRequest): Call eraseConfidentialInfo().
  7595. * src/main.cc: Validate permissions of .netrc file.
  7596. To add --user-agent command-line option:
  7597. * src/main.cc: Added new command line option: --user-agent
  7598. * src/prefs.h (PREF_USER_AGENT): New definition.
  7599. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  7600. parameter to HttpRequest object.
  7601. * src/AbstractProxyRequestCommand.cc
  7602. (executeInternal): Set user-agent option parameter to HttpRequest
  7603. object.
  7604. Marged the patches from Dan Fandrich.
  7605. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7606. Use filename and size from Metalink file instead of sending HEAD
  7607. request:
  7608. * src/UrlRequestInfo.h
  7609. (_filename): New variable.
  7610. (_totalLength): New variable.
  7611. (setTotalLength): New variable.
  7612. (setFilename): New variable.
  7613. * src/MetalinkRequestInfo.cc
  7614. (execute): Set filename and size to UrlRequestInfo
  7615. * src/UrlRequestInfo.cc
  7616. (execute): Use filename and size from Metalink instead of seding
  7617. HEAD request to servers.
  7618. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. To add the ability to resume downloading a partially downloaded file
  7620. which is downloaded from the beginning:
  7621. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  7622. takes this role.
  7623. * src/main.cc: Added -c option.
  7624. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  7625. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  7626. * src/prefs.h (PREF_CONTINUE): New definition.
  7627. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  7628. * src/DefaultDiskWriter.cc
  7629. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  7630. * src/AbstractDiskWriter.h
  7631. (glowFileAllocator): New variable.
  7632. * src/AbstractDiskWriter.cc
  7633. (openExistingFile): Now preallocate file space from the end of the
  7634. existing file if totalLength argument is specified and grater than 0.
  7635. * src/UrlRequestInfo.cc: If -c option is specified and the file
  7636. to download exists in local, continue the download of the file.
  7637. --allow-overwrite=true is assumed in this context.
  7638. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  7639. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  7640. Throw exception if --check-integrity=true is specified but chunk
  7641. checksums are not provided:
  7642. * src/UrlRequestInfo.cc
  7643. Do not print URLs to stdout:
  7644. * src/UrlRequestInfo.cc
  7645. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. * src/Request.h: Use AuthResolver to get authentication information.
  7647. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  7648. set to RequestFactory object.
  7649. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  7650. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  7651. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  7652. create Request object.
  7653. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  7654. To integrate Netrc into exsiting classes:
  7655. * src/Request.h
  7656. (_userDefinedAuthConfig): New variable.
  7657. (findNetrcAuthenticator): New function.
  7658. (segment): Removed.
  7659. (setUserDefinedAuthConfig): New function.
  7660. (resolveHttpAuthConfigItem): New function.
  7661. (resolveFtpAuthConfigItem): New function.
  7662. (resolveHttpProxyAuthConfigItem): New function.
  7663. * src/HttpRequest.h
  7664. (authConfig): Removed.
  7665. (proxyAuthConfig): Removed.
  7666. (setAuthConfig): Removed.
  7667. (setProxyAuthConfig): Removed.
  7668. * src/UrlRequest.h
  7669. (getHeadResult): Added a parameter: authConfigHandle
  7670. * src/common.h
  7671. (SingletonHolder.h): New include.
  7672. * src/main.cc
  7673. (Netrc.h): New include.
  7674. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  7675. Added initial value of PREF_NETRC_PATH.
  7676. Added the initialization of netrc.
  7677. * src/AuthConfig.h: New class.
  7678. * src/prefs.h
  7679. (PREF_NETRC_PATH): New definition.
  7680. * src/HttpAuthConfig.h: Removed.
  7681. * src/Netrc.cc
  7682. (getRequiredNextToken): New function.
  7683. (skipMacdef): New function.
  7684. (parse): Rewritten.
  7685. * src/Netrc.h
  7686. (getRequiredNextToken): New function.
  7687. (skipMacdef): New function.
  7688. * src/Util.h, src/Util.cc
  7689. (getHomeDir): New function.
  7690. * src/TrackerWatcherComand.cc
  7691. (createRequestCommand): Use AuthConfig.
  7692. * src/FtpConnection.cc
  7693. (sendUser): Use Request::resolveFtpAuthConfigItem().
  7694. (sendPass): Use Request::resolveFtpAuthConfigItem().
  7695. * src/Request.cc
  7696. (findNetrcAuthenticator): New function.
  7697. (resolveHttpAuthConfigItem): New function.
  7698. (resolveFtpAuthConfigItem): New function.
  7699. (resolveHttpProxyAuthConfigItem): New function.
  7700. * src/UrlRequestInfo.cc: Use AuthConfig.
  7701. * src/HttpRequest.cc
  7702. (createRequest): Use authConfig.
  7703. (getProxyAuthString): Use authConfig.
  7704. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  7705. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  7706. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7707. To reduce overhead to find commands whose socket is either
  7708. readable or writable in the download engine loop:
  7709. * src/Command.h, src/Command.cc
  7710. (STATUS): New enum.
  7711. (status): New variable.
  7712. (statusMatch): New function.
  7713. (setStatusActive): New function.
  7714. (setStatusInactive): New function.
  7715. * src/DownloadEngine.h, src/DownloadEngine.cc
  7716. (executeCommand): New function.
  7717. (run): Simplified.
  7718. (waitData): Call Command::setStatusActive() when command's socket is
  7719. readable or writable.
  7720. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. To handle Segment as SegmentHandle:
  7722. * src/AbstractCommand.cc (execute): Rewritten.
  7723. * src/SegmentMan.h: Segment -> SegmentHandle
  7724. Introducded HttpResponse class, HttpRequest class to improve code
  7725. extensiveness and make it clear:
  7726. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  7727. HttpResponse class.
  7728. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  7729. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  7730. * src/HttpConnection.cc: Contruction of http request were moved to
  7731. HttpRequest class.
  7732. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  7733. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  7734. * src/HttpAuthConfig.h: New class.
  7735. * src/Range.h: New class.
  7736. To make FtpTunnel{Request, Response}Command and
  7737. HttpProxy{Request, Response}Command derived from
  7738. AbstractProxy{Request, Response}Command:
  7739. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  7740. Derived from AbstractProxyRequestCommand class.
  7741. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  7742. Derived from AbstractProxyResponseCommand class.
  7743. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  7744. Derived from AbstractProxyRequestCommand class.
  7745. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  7746. Derived from AbstractProxyResponseCommand class.
  7747. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  7748. : New class.
  7749. * src/AbstractProxyResponseCommand.h,
  7750. src/AbstractProxyResponseCommand.cc: New class.
  7751. To add netrc support:
  7752. * src/Netrc.h, src/Netrc.cc: New class.
  7753. * src/Util.h, src/Util.cc (split): New function.
  7754. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  7755. "Content-Range" header instead of "Range" header.
  7756. * src/HttpHeader.h
  7757. (getStatus): Removed.
  7758. (setStatus): Removed.
  7759. * src/Segment.h
  7760. (getPositionToWrite): New function.
  7761. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7762. * src/HttpHeader.h
  7763. (Range.h): New include.
  7764. (status): New variable.
  7765. (HttpHeader): Initialized status with 0.
  7766. (getStatus): New function.
  7767. (setStatus): New function.
  7768. (getRange): New function.
  7769. (HttpHeaderHandle): New function.
  7770. * src/HttpHeader.cc
  7771. (getRange): New function.
  7772. * src/Request.h
  7773. (RequestWeakHandle): New definition.
  7774. * src/HttpConnection.h
  7775. (HttpConnectionHandle): New type definition.
  7776. * src/HttpConnection.cc
  7777. (receiveResponse): Set HTTP status to headers.
  7778. * src/main.cc
  7779. (showUsage): Fixed typo.
  7780. * src/Segment.h
  7781. (SegmentHandle): New type definition.
  7782. * src/BitfieldMan.h
  7783. (getMissingUnusedLength): New function.
  7784. * src/BitfieldMan.cc
  7785. (getMissingUnusedLength): New function.
  7786. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. To fix static initialization order problem:
  7788. * src/BitfieldManFactory.h
  7789. (defaultRandomizer): Removed.
  7790. (factory): New variable.
  7791. (getNewFactory): Removed.
  7792. (getFactoryInstance): New function.
  7793. (setDefaultRandomizer): Rewritten.
  7794. (getDefaultRandomizer): Rewritten.
  7795. * src/BitfieldManFactory.cc
  7796. (defaultRandomizer): Removed.
  7797. (factory): Initialized to 0.
  7798. (BitfieldManFactory): Initialized randomizer to 0.
  7799. * src/DefaultPieceStorage.cc
  7800. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  7801. * src/Peer.cc
  7802. (Peer): getNewFactory() -> getFactoryInstance()
  7803. * src/SegmentMan.cc
  7804. (initBitfield): getNewFactory() -> getFactoryInstance()
  7805. * src/Piece.cc
  7806. (Piece): getNewFactory() -> getFactoryInstance()
  7807. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. To fix the bug that causes crash on Max OS X:
  7809. * src/SimpleRandomizer.h
  7810. (getInstance): Create new instance if the static variable is null.
  7811. * src/SimpleRandomizer.cc
  7812. (randomizer): Initialized to 0.
  7813. * src/BitfieldManFactory.h
  7814. (getNewFactory): Removed the call to setRandomizer().
  7815. To fix the miscalculation of the range of checksum:
  7816. * src/BitfieldMan.h
  7817. (isBitSetOffsetRange): New function.
  7818. * src/BitfieldMan.cc
  7819. (isBitSetOffsetRange): New function.
  7820. * src/SegmentMan.cc
  7821. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  7822. Use bitfield->getBlockLength() instead of segment.segmentLength.
  7823. * Release 0.10.1
  7824. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7825. To lower CPU usage in BitTorrent download when --max-upload-limit
  7826. command-line option specified:
  7827. * src/DefaultBtMessageDispatcher.cc
  7828. (sendMessages): Calculate uploading speed only when current message
  7829. is uploading data and is not sent yet.
  7830. * src/DefaultPeerStorage.h
  7831. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  7832. * src/HttpResponseCommand.cc
  7833. (handleDefaultEncoding): Added the cast to int32_t to itos.
  7834. This fixes compile error in Soralis 10.
  7835. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7836. To fix segfault in Metalink download:
  7837. * src/UrlRequestInfo.h
  7838. (filename): Removed.
  7839. (totalLength): Removed.
  7840. (setTotalLength): Removed.
  7841. (setFilename): Removed.
  7842. * src/MetalinkRequestInfo.cc
  7843. (execute): Do not set filename and totalLength to reqInfo.
  7844. Set chunk checksum to reqInfo if it is not null.
  7845. * src/HttpResponseCommand.cc
  7846. (executeInternal): Fixed filename in log.
  7847. (handleDefaultEncoding): Removed the call to initBitfield() and
  7848. markAllPiecesDone().
  7849. (handleOtherEncoding): Added HEAD method handling.
  7850. * src/FtpNegotiateCommand.cc
  7851. (executeInternal): Added SEQ_HEAD_OK handling.
  7852. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  7853. return false.
  7854. * src/FtpNegotiateCommand.h
  7855. (SEQ_HEAD_OK): New definition.
  7856. * src/SegmentMan.cc
  7857. (initBitfield): Delete bitfield.
  7858. (isChunkChecksumValidationReady): Fixed the condition.
  7859. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  7860. works fine.
  7861. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7862. * src/Xml2MetalinkProcessor.h
  7863. (xpathExists): New function.
  7864. * src/Xml2MetalinkProcessor.cc
  7865. (xpathExists): New function.
  7866. Not to send HEAD request if filename and size are available in Metalink
  7867. file:
  7868. * src/UrlRequestInfo.h
  7869. (filename): New variable.
  7870. (totalLength): New variable.
  7871. (setTotalLength): New function.
  7872. (setFilename): New function.
  7873. * src/MetalinkRequestInfo.cc
  7874. (execute): Set filename and size to UrlRequestInfo.
  7875. * src/MetalinkEntry.cc
  7876. (MetalinkEntry): Initialize size with 0.
  7877. * src/UrlRequestInfo.cc
  7878. (execute): Set filename and size to SegmentMan.
  7879. Not to download rest of the files after selected files are downloaded
  7880. in BitTorrent:
  7881. * src/PieceStorage.h
  7882. (allDownloadFinished): New function.
  7883. * src/DefaultBtAnnounce.cc
  7884. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  7885. downloadFinished.
  7886. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  7887. * src/DefaultPieceStorage.cc
  7888. (completePiece): Use allDownloadFinished instead of downloadFinished.
  7889. Commented out the call to finishSelectiveDownloadingMode().
  7890. (downloadFinished): Call isFilteredAllBitSet() instead of
  7891. isAllBitSet().
  7892. (allDownloadFinished): New function.
  7893. * src/DefaultBtInteractive.cc
  7894. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  7895. downloadFinished().
  7896. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  7897. * src/TorrentDownloadEngine.cc
  7898. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  7899. * src/BitfieldMan.h
  7900. (isFilteredAllBitSet): New function.
  7901. * src/ShareRatioSeedCriteria.h
  7902. (PieceStorage.h): New include.
  7903. (pieceStorage): New variable.
  7904. (evaluate):
  7905. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  7906. * src/BitfieldMan.cc
  7907. (isFilteredAllBitSet): New function.
  7908. (isAllBitSet): Filter is not took into account.
  7909. Rename --force-truncate as --allow-overwrite:
  7910. * src/TorrentRequestInfo.cc
  7911. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  7912. * src/main.cc
  7913. (showUsage): --force-truncate -> --allow-overwrite
  7914. * src/message.h
  7915. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  7916. * src/prefs.h
  7917. (PREF_FORCE_TRUNCATE): Removed.
  7918. (PREF_ALLOW_OVERWRITE): New definition.
  7919. * src/SegmentMan.cc
  7920. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  7921. * src/MetalinkRequestInfo.cc
  7922. (execute): Queueing message are now logged in info level.
  7923. * src/common.h
  7924. (LONG_LONG_MAX): Removed.
  7925. (LONG_LONG_MIN): Removed.
  7926. * src/HttpResponseCommand.cc
  7927. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  7928. * src/FtpNegotiateCommand.cc
  7929. (recvSize): LONG_LONG_MAX -> INT64_MAX
  7930. * src/main.cc
  7931. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  7932. command-line option.
  7933. (main): Added --check-integriy and --realtime-chunk-checksum
  7934. command-line option.
  7935. --force-truncate -> --allow-overwrite
  7936. Set initial value of --check-integrity option to false.
  7937. Don't show usage when error occurs while persing command-line options.
  7938. Removed deprecated --upload-limit option.
  7939. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  7941. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  7942. * src/BtAllowedFastMessage.cc:
  7943. * src/BtBitfieldMessage.cc
  7944. * src/BtCancelMessage.cc
  7945. * src/BtChokeMessage.cc
  7946. * src/BtHaveAllMessage.cc
  7947. * src/BtHaveMessage.cc
  7948. * src/BtHaveNoneMessage.cc
  7949. * src/BtInterestedMessage.cc
  7950. * src/BtNotInterestedMessage.cc
  7951. * src/BtPieceMessage.cc
  7952. * src/BtPortMessage.cc
  7953. * src/BtRejectMessage.cc
  7954. * src/BtRequestMessage.cc
  7955. * src/BtSuggestPieceMessage.cc
  7956. * src/BtUnchokeMessage.cc
  7957. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  7958. files are affected.
  7959. * src/ChunkChecksumValidator.cc
  7960. * src/SegmentMan.cc
  7961. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. To add chunk checksum validation:
  7963. * src/MetalinkEntry.h
  7964. (MetalinkChunkChecksum.h): New include.
  7965. (chunkChecksum): New variable.
  7966. * src/Request.h
  7967. (method): New variable.
  7968. (setMethod): New function.
  7969. (getMethod): New function.
  7970. (METHOD_GET): New static constant.
  7971. (METHOD_HEAD): New static constant.
  7972. * src/Xml2MetalinkProcessor.h
  7973. (getPieceHash): New function.
  7974. * src/PieceStorage.h
  7975. (markAllPiecesDone): New function.
  7976. (checkIntegrity): New function.
  7977. * src/FileAllocator.h
  7978. (NullFileAllocationMonitor.h): New include.
  7979. (FileAllocator): Initialize fileAllocationMonitor with new
  7980. NullFileAllocationMonitor().
  7981. * src/MultiDiskAdaptor.h
  7982. (messageDigest.h): Remove include.
  7983. (ctx): Removed.
  7984. (hashUpdate): Added ctx.
  7985. (MultiDiskAdaptor): Removed ctx.
  7986. (sha1Sum): Renamed as messageDigest.
  7987. (messageDigest): New function.
  7988. * src/UrlRequestInfo.h
  7989. (HeadResult): New class.
  7990. (digestAlgo): New variable.
  7991. (chunkChecksumLength): New variable.
  7992. (chunkChecksums): New variable.
  7993. (getHeadResult): New function.
  7994. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  7995. (setDigestAlgo): New function.
  7996. (setChunkChecksumLength): New function.
  7997. (setChunkChecksums): New function.
  7998. * src/DefaultPieceStorage.cc
  7999. (DiskAdaptorWriter.h): New include.
  8000. (ChunkChecksumValidator.h): New include.
  8001. (markAllPiecesDone): New function.
  8002. (checkIntegrity): New function.
  8003. * src/DefaultBtContext.h
  8004. (getPieceHashes): New function.
  8005. * src/TorrentRequestInfo.cc
  8006. (execute): Try to validate chunk checksum if file already exists and
  8007. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8008. * src/messageDigest.h
  8009. (~MessageDigestContext): Added digestFree().
  8010. * src/MetalinkRequestInfo.cc
  8011. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8012. * src/DiskAdaptor.h
  8013. (messageDigest.h): New include.
  8014. (sha1Sum): Renamed as messageDigest.
  8015. (messageDigest): New function.
  8016. * src/DownloadCommand.h
  8017. (PeerStat.h): New include.
  8018. (maxDownloadSpeedLimit): New variable.
  8019. (startupIdleTime): New variable.
  8020. (lowestDownloadSpeedLimit): New variable.
  8021. (peerStat): New variable.
  8022. (setMaxDownloadSpeedLimit): New function.
  8023. (setStartupIdleTime): New function.
  8024. (setLowestDownloadSPeedLimit): New function.
  8025. * src/BtContext.h
  8026. (getPieceHashes): New function.
  8027. * src/main.cc
  8028. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8029. option to true for testing purpose.
  8030. * src/BtPieceMessage.cc
  8031. (checkPieceHash): Use messageDigest
  8032. * src/DownloadEngine.cc
  8033. (SetDescriptor): Removed.
  8034. (AccumulateActiveCommand): Removed.
  8035. (waitData): Rewritten.
  8036. (updateFdSet): Rewritten.
  8037. * src/MultiDiskAdaptor.cc
  8038. (hashUpdate): Added ctx.
  8039. (sha1Sum): Renamed as messageDigest.
  8040. (messageDigest): New function.
  8041. * src/BitfieldMan.h
  8042. (isBitRangeSet): New function.
  8043. (unsetBitRange): New function.
  8044. * src/ByteArrayDiskWriter.h
  8045. (sha1Sum): Renamed as messageDigest.
  8046. (messageDigest): New function.
  8047. * src/ConsoleDownloadEngine.cc
  8048. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8049. * src/DiskWriter.h
  8050. (messageDigest.h): New include.
  8051. (sha1Sum): Renamed as messageDigest.
  8052. (messageDigest): New function.
  8053. * src/ChunkChecksumValidator.h: New class.
  8054. * src/DiskAdaptorWriter.h: New class.
  8055. * src/prefs.h
  8056. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8057. (PREF_CHECK_INTEGRITY): New definition.
  8058. * src/HttpResponseCommand.cc
  8059. (handleDefaultEncoding): Added method "HEAD" handling.
  8060. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8061. (handleOtherEncoding):
  8062. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8063. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8064. startupIdleTime, lowestDownloadSpeedLimit to command.
  8065. * src/SegmentMan.h
  8066. (getSegmentEntryByIndex): New function.
  8067. (getSegmentEntryByCuid): New function.
  8068. (getSegmentEntryIteratorByCuid): New function.
  8069. (diskWriter): DiskWriter -> DiskWriterHandle
  8070. (pieceHashes): New variable.
  8071. (chunkHashLength): New variable.
  8072. (digestAlgo): New variable.
  8073. (FindPeerStat): Removed.
  8074. (getPeerStat): Rewritten.
  8075. (markAllPiecesDone): New function.
  8076. (checkIntegrity): New function.
  8077. (tryChunkChecksumValidation): New function.
  8078. (isChunkChecksumValidationReady): New function.
  8079. * src/BitfieldMan.cc
  8080. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8081. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8082. blocks to 0.
  8083. (isBitRangeSet): New function.
  8084. (unsetBitRange): New function.
  8085. * src/FtpNegotiateCommand.cc
  8086. (executeInternal): Set maxDownloadSpeedLimit,
  8087. startupIdleTime, lowestDownloadSpeedLimit to command.
  8088. (recvSize): Added method "HEAD" handling.
  8089. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8090. * src/AbstractSingleDiskAdaptor.cc
  8091. (sha1Sum): Renamed as messageDigest.
  8092. (messageDigest): New function.
  8093. * src/AbstractSingleDiskAdaptor.h
  8094. (sha1Sum): Renamed as messageDigest.
  8095. (messageDigest): New function.
  8096. * src/Util.h
  8097. (indexRange): New function.
  8098. * src/MetalinkEntry.cc
  8099. (MetalinkEntry): Initialized chunkChecksum to 0.
  8100. * src/ShaVisitor.cc
  8101. (~ShaVisitor): Removed the call to ctx.digestFree().
  8102. * src/SegmentMan.cc
  8103. (ChunkChecksumValidator.h): New include.
  8104. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8105. to DIGEST_ALGO_SHA1.
  8106. (~SegmentMan): Removed diskWriter.
  8107. (FindSegmentEntryByIndex): Removed.
  8108. (FindSegmentEntryByCuid): Removed.
  8109. (checkoutSegment): Rewritten.
  8110. (findSlowerSegmentEntry): Rewritten.
  8111. (getSegment): Rewritten.
  8112. (updateSegment): Rewritten.
  8113. (completeSegment): Rewritten.
  8114. (markAllPiecesDone): New function.
  8115. (checkIntegrity): New function.
  8116. (isChunkChecksumValidationReady): New function.
  8117. (tryChunkChecksumValidation): New function.
  8118. * src/Xml2MetalinkProcessor.cc
  8119. (getEntry): Get size and set it to entry.
  8120. Get chunk checksum and set it to entry.
  8121. (getPieceHash): New function.
  8122. * src/Util.cc
  8123. (sha1Sum): Removed ctx.digestFree()
  8124. (fileChecksum): Removed ctx.digestFree()
  8125. (indexRange): New function.
  8126. * src/Request.cc
  8127. (METHOD_GET): New variable.
  8128. (METHOD_HEAD): New variable.
  8129. (Request): Added method.
  8130. * src/UrlRequestInfo.cc
  8131. (FatalException.h): New include.
  8132. (message.h): New include.
  8133. (operator<<): Added operator<< for class HeadResult.
  8134. (getHeadResult): New function.
  8135. (execute): Get filename and size in separate download engine.
  8136. * src/ChunkChecksumValidator.cc: New class.
  8137. * src/DownloadCommand.cc:
  8138. (DownloadCommand): Added peerStat.
  8139. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8140. the value from Option.
  8141. The buffer size is now 16KB.
  8142. Use peerStat member instead of getting it from SegmentMan.
  8143. Use startupIdleTime member instead of gettingit from Option.
  8144. Added chunk checksum validation.
  8145. * src/AbstractDiskWriter.cc
  8146. (AbstractDiskWriter): Removed ctx.
  8147. (~AbstractDiskWriter): Removed ctx.digestFree()
  8148. (writeDataInternal): Returns the return value of write.
  8149. (readDataInternal): Returns the return value of read.
  8150. (sha1Sum): Renamed as messageDigest
  8151. (messageDigest): New function.
  8152. * src/AbstractDiwkWriter.h
  8153. (messageDigest.h): Removed include.
  8154. (ctx): Removed.
  8155. (sha1Sum): Renamed as messageDigest
  8156. (messageDigest): New function.
  8157. * src/DefaultPieceStorage.h
  8158. (markAllPiecesDone): New function.
  8159. (checkIntegrity): New function.
  8160. * src/NullFileAllocationMonitor.h: New class.
  8161. * src/MetalinkChunkChecksum.h: New class.
  8162. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8163. To decrease CPU usage in bittorrent download, calculation results in
  8164. BitfieldMan were cached and realtime fetching PeerObject was removed
  8165. with WeakHandle introduced. Option values are set to the objects
  8166. by setter before download begins.
  8167. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8168. * src/DefaultBtRequestFactory.h
  8169. (dispatcher): BtMessageDispatcherHandle ->
  8170. BtMessageDispatcherWeakHandle.
  8171. (messageFactory): New variable.
  8172. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8173. BtMessageDispatcherWeakHandle.
  8174. (setBtMessageFactory): New function.
  8175. * src/DefaultBtMessageDispatcher.cc:
  8176. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8177. from Option.
  8178. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8179. feating the value from Option.
  8180. Use messageFactory member.
  8181. * src/PeerInteractionCommand.cc
  8182. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  8183. Add reverse dependencies to factory object.
  8184. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  8185. dispatcher.
  8186. Set messageFactory to receiver.
  8187. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  8188. btInteractive.
  8189. Set receiver to peerObject.
  8190. Set maxDownloadSpeedLimit to this.
  8191. (executeInternal): Use maxDownloadSpeedLimit member.
  8192. * src/BtChokeMessage.cc
  8193. (doReceivedAction): Use dispatcher, requestFactory member.
  8194. (onSendComplete): Use dispatcher member.
  8195. * src/PeerInteractionCommand.h
  8196. (maxDownloadSpeedLimit): New variable.
  8197. * src/DefaultBtMessageReceiver.h
  8198. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8199. (dispatcher):
  8200. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8201. (messageFactory): New variable.
  8202. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8203. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8204. (setDispatcher):
  8205. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8206. (setBtMessageFactory): New function.
  8207. * src/DefaultBtInteractive.cc
  8208. (initiateHandshake): Use messageFactory member.
  8209. (addBitfieldMessageToQueue): Use messageFactory member.
  8210. (addAllowedFastMessageToQueue): Use messageFactory member.
  8211. (decideChoking): Use messageFactory member.
  8212. (checkHave): Use messageFactory member.
  8213. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  8214. (receiveMessages): Use maxDownloadSpeedLimit member.
  8215. (decideInterest): Use messageFactory member.
  8216. * src/BtRequestMessage.cc
  8217. (doReceivedAction): Use messageFactory, dispatcher member.
  8218. (onQueued): Use dispatcher member.
  8219. * src/BtPieceMessage.cc
  8220. (doReceivedAction): Use dispatcher member.
  8221. (send): Use peerConnection member.
  8222. (onWrongPiece): Use requestFactory member.
  8223. (handleChokingEvent): Use messageFactory, dispatcher member.
  8224. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  8225. * src/BtMessageDispatcher.h
  8226. (BtMessageDispatcherWeakHandle): New type definition.
  8227. * src/SimpleBtMessage.cc
  8228. (send): Use peerConnection member.
  8229. * src/BtRejectMessage.cc
  8230. (doReceivedAction): Use dispatcher member.
  8231. * src/DefaultBtMessageDispatcher.h
  8232. (Option.h): Removed include.
  8233. (messageFactory): New variable.
  8234. (option): Removed.
  8235. (maxUploadSpeedLimit): New variable.
  8236. (requestTimeout): New variable.
  8237. (DefaultBtMessageDispatcher): Removed option.
  8238. Added maxUploadSpeedLimit, requestTimeout.
  8239. (setOption): Removed.
  8240. (getOption): Removed.
  8241. (setMaxUploadSpeedLimit): New function.
  8242. (setRequestTimeout): New function.
  8243. (setBtMessageFactory): New function.
  8244. * src/DefaultBtInteractive.h
  8245. (btMessageReceiver):
  8246. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8247. (dispatcher):
  8248. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8249. (btRequestFactory):
  8250. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8251. (peerConnection):
  8252. PeerConnectionHandle -> PeerConnectionWeakHandle
  8253. (messageFactory): New variable.
  8254. (option): Removed.
  8255. (keepAliveInterval): New variable.
  8256. (maxDownloadSpeedLimit): New variable.
  8257. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8258. (setBtMessageReceiver):
  8259. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8260. (setDispatcher):
  8261. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8262. (setBtRequestFactory):
  8263. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8264. (setPeerConnection):
  8265. PeerConnectionHandle -> PeerConnectionWeakHandle
  8266. (setOption): Removed.
  8267. (setKeepAliveInterval): New function.
  8268. (setMaxDownloadSpeedLimit): New function.
  8269. (setBtMessageFactory): New function.
  8270. * src/BitfieldMan.h
  8271. (cachedNumMissingBlock): New variable.
  8272. (cachedNumFilteredBlock): New variable.
  8273. (cachedCompletedLength): New variable.
  8274. (cachedFilteredComletedLength): New variable.
  8275. (cachedFilteredTotalLength): New variable.
  8276. (countMissingBlockNow): New function.
  8277. (countFilteredBlockNow): New function.
  8278. (getFilteredTotalLengthNow): New function.
  8279. (getCompletedLengthNow): New function.
  8280. (getFilteredCompletedLengthNow): New function.
  8281. (updateCache): New function.
  8282. * src/AbstractBtMessage.h
  8283. (BtMessageDispatcher.h): New include.
  8284. (PeerConnection.h): New include.
  8285. (BtRequestFactory.h): New include
  8286. (BtMessageFactory.h): New include.
  8287. (dispatcher): New variable.
  8288. (messageFactory): New variable.
  8289. (peerConnection: New variable.
  8290. (setBtMessageDispatcher): New function.
  8291. (setPeerConnection): New function.
  8292. (setBtMessageFactory): New function.
  8293. (setBtRequestFactory): New function.
  8294. * src/DefaultBtMessageFactory.cc
  8295. (setCommonProperty): Set dispatcher, requestFactory, this,
  8296. peerConnection to msg.
  8297. * src/BtRegistry.h
  8298. (BT_MESSAGE_RECEIVER): New macro.
  8299. * src/PeerConnection.h
  8300. (PeerConnectionWeakHandle): New type definition.
  8301. * src/BtMessageFactory.h
  8302. (BtMessageFactoryWeakHandle): New type definition.
  8303. * src/BitfieldMan.cc
  8304. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8305. cachedCompletedLength, cachedFilteredComletedLength,
  8306. cachedFilteredTotalLength.
  8307. Call updateCache().
  8308. (countMissingBlock): Return cachedNumMissingBlock.
  8309. (countMissingBlockNow): New function.
  8310. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8311. (countFilteredBlockNow): New function.
  8312. (setBit): Call updateCache().
  8313. (unsetBit): Call updateCache().
  8314. (setBitfield): Call updateCache().
  8315. (clearAllBit): Call updateCache().
  8316. (setAllBit): Use setBitInternal instead of setBit.
  8317. Call updateCache().
  8318. (addFilter): Call updateCache().
  8319. (enableFilter): Call updateCache().
  8320. (disableFilter): Call updateCache().
  8321. (clearFilter): Call updateCache().
  8322. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8323. (getFilteredTotalLengthNow): New function.
  8324. (getCompletedLength): Return cachedCompletedLength.
  8325. (getCompletedLengthNow): New function.
  8326. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8327. (getFilteredCompletedLengthNow): New function.
  8328. (updateCache): New function.
  8329. * src/BtMessageReceiver.h
  8330. (BtMessageReceiverWeakHandle): New type definition.
  8331. * src/DefaultBtMessageReceiver.cc
  8332. (receiveHandshake): Use messageFactory member.
  8333. (sendHandshake): Use messageFactory member.
  8334. (receiveMessage): Use messageFactory member.
  8335. * src/DefaultBtMessageFactory.h
  8336. (dispatcher): New variable.
  8337. (requestFactory): New variable.
  8338. (peerConnection): New variablle.
  8339. (setBtMessageDispatcher): New function.
  8340. (setBtRequestFactory): New function.
  8341. (setPeerConnection): New function.
  8342. * src/SharedHandle.h
  8343. (RefCount): New class.
  8344. (WeakHandle): New class.
  8345. * src/PeerObject.h
  8346. (BtMessageReceiver.h): New include.
  8347. (PeerObject): Added btMessageReceiver.
  8348. (btMessageReceiver): New variable.
  8349. * src/Util.cc
  8350. (countBit): Simplified.
  8351. * src/BtCancelMessage.cc
  8352. (doReceivedAction): Use dispatcher member.
  8353. * src/BtRequestFactory.h
  8354. (BtRequestFactoryWeakHandle): New type definition.
  8355. * src/PeerStorage.h
  8356. (downloadSpeed): int -> uint32_t
  8357. (uploadSpeed): int -> uint32_t
  8358. (sessionDownloadLength): long long int -> uint64_t
  8359. (sessionUploadLength): long long int -> uint64_t
  8360. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. To add RecoverableException, FatalException:
  8362. * src/AbstractCommand.cc
  8363. (onAbort): Exception -> RecoverableException
  8364. * src/PeerAbstractCommand.h
  8365. (RecoverableException.h): New include.
  8366. (onAbort): Exception -> RecoverableException.
  8367. * src/PeerInteractionCommand.cc
  8368. (onAbort): Exception -> RecoverableException.
  8369. * src/PeerAbstractCommand.cc
  8370. (execute): Exception -> RecoverableException.
  8371. (onAbort): Exception -> RecoverableException.
  8372. * src/TorrentRequestInfo.cc
  8373. (execute): Exception -> RecoverableException.
  8374. * src/MetalinkRequestInfo.cc
  8375. (execute): Exception -> RecoverableException.
  8376. * src/MetaFileUtil.cc: RecoverableException.
  8377. * src/AbstractCommand.h
  8378. (onAbort): Exception -> RecoverableException.
  8379. * src/DlRetryEx.h: Exception -> RecoverableException.
  8380. * src/DlAbortEx.h: Exception -> RecoverableException.
  8381. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8382. * src/Util.cc: Exception -> RecoverableException.
  8383. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8384. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8385. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8386. To make ID static const int
  8387. * src/BtInterestedMessage.h
  8388. (ID_t): Removed.
  8389. (ID): New variable.
  8390. (getId): Made non-const.
  8391. * src/BtPieceMessage.h
  8392. (ID_t): Removed.
  8393. (ID): New variable.
  8394. (getId): Made non-const.
  8395. * src/BtChokeMessage.h
  8396. (ID_t): Removed.
  8397. (ID): New variable.
  8398. (getId): Made non-const.
  8399. * src/BtHaveAllMessage.h
  8400. (ID_t): Removed.
  8401. (ID): New variable.
  8402. (getId): Made non-const.
  8403. * src/BtKeepAliveMessage.h
  8404. (ID_t): Removed.
  8405. (ID): New variable.
  8406. (getId): Made non-const.
  8407. * src/BtHandshakeMessage.h
  8408. (ID): New variable.
  8409. (getId): Made non-const.
  8410. * src/BtSuggestPieceMessage.h
  8411. (ID_t): Removed.
  8412. (ID): New variable.
  8413. (getId): Made non-const.
  8414. * src/BtPortMessage.h
  8415. (ID_t): Removed.
  8416. (ID): New variable.
  8417. (getId): Made non-const.
  8418. * src/AbstractBtMessage.h
  8419. (id): Removed.
  8420. (AbstractBtMessage): Removed id.
  8421. (getId): Removed.
  8422. * src/BtHaveMessage.h
  8423. (ID_t): Removed.
  8424. (ID): New variable.
  8425. (getId): Made non-const.
  8426. * src/BtAllowedFastMessage.h
  8427. (ID_t): Removed.
  8428. (ID): New variable.
  8429. (getId): Made non-const.
  8430. * src/BtCancelMessage.h
  8431. (ID_t): Removed.
  8432. (ID): New variable.
  8433. (getId): Made non-const.
  8434. * src/BtNotInterestedMessage.h
  8435. (ID_t): Removed.
  8436. (ID): New variable.
  8437. (getId): Made non-const.
  8438. * src/BtChokeMessage.h
  8439. (ID_t): Removed.
  8440. (ID): New variable.
  8441. (getId): Made non-const.
  8442. * src/BtRejectMessage.h
  8443. (ID_t): Removed.
  8444. (ID): New variable.
  8445. (getId): Made non-const.
  8446. * src/BtBitfieldMessage.h
  8447. (ID_t): Removed.
  8448. (ID): New variable.
  8449. (getId): Made non-const.
  8450. * src/BtUnchokeMessage.h
  8451. (ID_t): Removed.
  8452. (ID): New variable.
  8453. (getId): Made non-const.
  8454. * src/BtRequestMessage.h
  8455. (ID_t): Removed.
  8456. (ID): New variable.
  8457. (getId): Made non-const.
  8458. * src/BtHaveMessage.h
  8459. (ID_t): Removed.
  8460. (ID): New variable.
  8461. (getId): Made non-const.
  8462. To add --force-truncate command-line option and a check whether
  8463. the file already exists:
  8464. * src/DirectDiskAdaptor.h
  8465. (getFilePath): Made virtual public.
  8466. * src/MultiDiskAdaptor.h
  8467. (File.h): New include.
  8468. (DiskWriterEntry::fileEntry): Made private.
  8469. (DiskWriterEntry::fileExists): New function.
  8470. (DiskWriterEntry::getFileEntry): New function.
  8471. (fileExists): New function.
  8472. (getFilePath): New function.
  8473. * src/TorrentRequestInfo.cc
  8474. (FatalException.h): New include.
  8475. (message.h): New include.
  8476. (RecoverableException.h): New include.
  8477. (execute): Added a check whether file is already exists or not.
  8478. * src/DiskAdaptor.h
  8479. (fileExists): New function.
  8480. (getFilePath): New function.
  8481. * src/main.cc
  8482. (showUsage): Added an explanation of --force-truncate command-line
  8483. option.
  8484. (main): Added --force-truncate command-line option.
  8485. * src/Exception.h
  8486. (setMsg): buf[256] -> buf[1024]
  8487. * src/CopyDiskWriter.h
  8488. (getFilePath): Made public virtual.
  8489. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  8490. (fileExists): New function.
  8491. * src/DownloadEngineFactory.cc
  8492. (newTorrentConsoleEngine): Don't open file here.
  8493. * src/message.h
  8494. (EX_FILE_ALREADY_EXISTS): New definition.
  8495. * src/prefs.h
  8496. (PREF_FOECE_TRUNCATE): New definition.
  8497. * src/HttpResponseCommand.cc
  8498. (handleDefaultEncoding): Added a check whether the file already exists.
  8499. * src/SegmentMan.h
  8500. (fileExists): New function.
  8501. (shouldCancelDownloadForSafety): New function.
  8502. * src/FtpNegotiateCommand.cc
  8503. (recvSize): Added a check whether the file already exists.
  8504. * src/AbstractSingleDiskAdaptor.cc
  8505. (File.h): New include.
  8506. (fileExists): New function.
  8507. * src/AbstractSingleDiskAdaptor.h
  8508. (getFilePath): Removed.
  8509. (fileExists): New function.
  8510. * src/SegmentMan.cc
  8511. (fileExists): New function.
  8512. (shouldCancelDownloadForSafety): New function.
  8513. To fix regression bug in torrent downloading:
  8514. * src/DefaultBtRequestFactory.cc
  8515. (doChokedAction): New function.
  8516. * src/DefaultBtRequestFactory.h
  8517. (doChokedAction): New function.
  8518. * src/DefaultBtMessageDispatcher.cc
  8519. (doChokedAction): Do not delete request if its target is in allowed
  8520. fast set.
  8521. * src/DefaultBtInteractive.cc
  8522. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  8523. (sendKeepAlive): Send keep alive message even if the outgoing message
  8524. queue is not empty.
  8525. (decideInterest): Simplified the code.
  8526. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  8527. it is already called when BtChokeMessage is received from a peer.
  8528. * src/BtRequestFactory.h
  8529. (doChokedAction): New function.
  8530. To clean up code:
  8531. * src/PeerInteractionCommand.h
  8532. (executeInternal): Added virtual keyword explicitly.
  8533. (prepareForRetry): Added virtual keyword explicitly.
  8534. (prepareForNextPeer): Added virtual keyword explicitly.
  8535. (onAbort): Added virtual keyword explicitly.
  8536. * src/RequestSlot.cc
  8537. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  8538. * src/BtPieceMessage.cc
  8539. (doReceivedAction): Added a debug log of piece's bitfield.
  8540. * src/Piece.h
  8541. (getBitfieldLength): New function.
  8542. * src/ByteArrayDiskWriter.cc
  8543. (clear): Added buf = 0 to avoid double free corruption.
  8544. * src/FileAllocator.cc
  8545. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  8546. Added cp.reset().
  8547. * src/BitfieldMan.h
  8548. (operator=): Rewritten.
  8549. * src/BitfieldMan.cc
  8550. (BitfieldMan): Initialized bitfield, useBitfield.
  8551. * src/PeerConnection.cc
  8552. (receiveMessage): Added a call to socket->readable() after getting
  8553. message length to avoid possible EOF.
  8554. * src/Util.cc
  8555. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  8556. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. To add an ability to pre-allocate file space:
  8558. * src/DirectDiskAdaptor.h: Rewritten.
  8559. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  8560. * src/MultiDiskAdaptor.h: Rewritten.
  8561. * src/DefaultPieceStorage.cc
  8562. (MultiDiskWriter.h): Removed include.
  8563. (PreAllocationDiskWriter.h): Removed include.
  8564. (FileAllocationMonitor.h): New include.
  8565. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  8566. (initStorage): Rewritten.
  8567. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8568. * src/FileAllocator.h: New class.
  8569. * src/FileAllocator.cc: New class.
  8570. * src/FileAllocationMonitor.h: New class.
  8571. * src/FileAllocationMonitor.cc: New class.
  8572. * src/ConsoleFileAllocationMonitor.h: New class.
  8573. * src/ConsoleFileAllocationMonitor.cc: New class.
  8574. * src/AbstractSingleDiskAdaptor.h: New class.
  8575. * src/AbstractSingleDiskAdaptor.cc: New class.
  8576. * src/DiskAdaptor.h
  8577. (Directory.h): Removed include.
  8578. (DiskWriter.h): Removed include.
  8579. (FileEntry.h): Removed include.
  8580. (diskWriter): Removed.
  8581. (DiskAdaptor): Removed diskWriter.
  8582. (openFile): Made pure virtual.
  8583. (closeFile): Made pure virtual.
  8584. (openExistingFile): Made pure virtual.
  8585. (initAndOpenFile): Made pure virtual.
  8586. (writeData): Made pure virtual.
  8587. (readData): Made pure virtual.
  8588. (sha1Sum): Made pure virtual.
  8589. (getStoreDir): Returns const reference of storeDir.
  8590. (DiskAdaptorHandle): New type definition.
  8591. * src/main.cc
  8592. (ConsoleFileAllocationMonitor.h): New include.
  8593. (showUsage): Added default value description of -s option.
  8594. Added the description of --file-allocation option.
  8595. (main): Set default value of --file-allocation option to 'none'.
  8596. Added --file-allocation command-line option.
  8597. Setup FileAllocationMonitorFactory.
  8598. * src/FtpInitiateConnectionCommand.cc
  8599. (executeInternal): Removed diskWriter related processing, which was
  8600. moved to FtpNegotiationCommand.cc.
  8601. * src/DirectDiskAdaptor.cc
  8602. (getFilePath): Made non-const.
  8603. * src/CopyDiskAdaptor.h
  8604. (DiskAdaptor.h): Removed include.
  8605. (DiskWriter.h): Removed include.
  8606. (AbstractSingleDiskAdaptor.h): New include.
  8607. (getFilePath): Made non-const. Added virtual keyword.
  8608. (CopyDiskAdaptor): Removed diskWriter.
  8609. (getTempFile): Returns const reference.
  8610. (CopyDiskAdaptorHandle): New type definition.
  8611. * src/ByteArrayDiskWriter.cc
  8612. (clear): Simplified.
  8613. (initAndOpenFile): Rewritten.
  8614. (openFile): Call initAndOpenFile()
  8615. * src/MultiDiskAdaptor.cc: Rewritten.
  8616. * src/DownloadEngineFactory.cc
  8617. (FileAllocator.h): New include.
  8618. (FileAllocationMonitor.h): New include.
  8619. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  8620. create DefaultDiskWriter with file allocator.
  8621. * src/DiskWriter.h
  8622. (initAndOpenFile): Added totalLength argument.
  8623. (openFile): Added totalLength argument.
  8624. * src/prefs.h
  8625. (PREF_FILE_ALLOCATION): New definition.
  8626. (V_PREALLOC): New definition.
  8627. (V_NONE): New definition.
  8628. * src/HttpResponseCommand.cc
  8629. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  8630. size.
  8631. * src/FtpNegotiateCommand.cc
  8632. (Util.h): New include.
  8633. (recvSize): Open file here.
  8634. * src/Util.h
  8635. (ullitos): New function.
  8636. * src/CopyDiskWriter.h
  8637. (getFilePath): Made non-const.
  8638. * src/DefaultDiskWriter.h
  8639. (Option.h): New include.
  8640. (totalLength): Removed.
  8641. (DefaultDiskWriter): Removed totalLength.
  8642. (initAndOpenFile): Added totalLength argument.
  8643. (DefaultDiskWriterHandle): New type definition.
  8644. (createNewDiskWriter): New function.
  8645. * src/Util.cc
  8646. (ullitos): New function.
  8647. * src/DefaultDiskWriter.cc
  8648. (message.h): New include.
  8649. (FileAllocator.h): New include.
  8650. (prefs.h): New include.
  8651. (Util.h): New include.
  8652. (DefaultDiskWriter): Removed totalLength.
  8653. (initAndOpenFile): Added file allocation.
  8654. (createNewDiskWriter): New function. Just for temporary solution.
  8655. It will be rewritten later.
  8656. * src/DiskAdaptor.cc
  8657. (DiskAdaptor): Removed diskWriter.
  8658. * src/AbstractDiskWriter.cc
  8659. (LogFactory.h): New include.
  8660. (AbstractDiskWriter): Added fileAllocator, logger.
  8661. (openFile): Added totalLength argument.
  8662. * src/AbstractDiskWriter.h
  8663. (FileAllocator.h): New include.
  8664. (Logger.h): New include.
  8665. (fileAllocator): New variable.
  8666. (logger): New variable.
  8667. (openFile): Added totalLength argument. Added virtual keyword
  8668. explicitly.
  8669. (openExistingFile): Added totalLength argument. Added virtual keyword
  8670. explicitly.
  8671. (closeFile): Added virtual keyword explicitly.
  8672. (sha1Sum): Added virtual keyword explicitly.
  8673. (writeData): Added virtual keyword explicitly.
  8674. (readData): Added virtual keyword explicitly.
  8675. (setFileAllocator): New function.
  8676. * src/DefaultPieceStorage.h
  8677. (FileAllocator.h): New include.
  8678. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8679. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8680. * src/FileProgressMonitor.h: New class.
  8681. To compile aria2 on PC-BSD:
  8682. * src/DefaultBtContext.cc
  8683. (libgen.h): New include.
  8684. To fix memory leak:
  8685. * src/Exception.h
  8686. (~Exception): Delete cause. Fixed memory leak.
  8687. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Rewritten a portion of bittorrent implementation:
  8689. * src/BtMessageValidator.h: New class.
  8690. * src/BtBitfieldMessageValidator.h: New class.
  8691. * src/BtHandshakeMessageValidator.h: New class.
  8692. * src/BtRequestMessageValidator.h: New class.
  8693. * src/BtSuggestPieceMessageValidator.h: New class.
  8694. * src/BtAllowedFastMessageValidator.h: New class.
  8695. * src/BtRejectMessageValidator.h: New class.
  8696. * src/BtCancelMessageValidator.h: New class.
  8697. * src/BtPieceMessageValidator.h: New class.
  8698. * src/BtHaveMessageValidator.h: New class.
  8699. * src/BtEventListener.h: New class.
  8700. * src/AbstractBtEventListener.h: New class.
  8701. * src/BtEvent.h: New class.
  8702. * src/BtChokingEvent.h: New class.
  8703. * src/BtChokedEvent.h: New class.
  8704. * src/BtCancelSendingPieceEvent.h: New class.
  8705. * src/BtAbortOutstandingRequestEvent.h: New class.
  8706. * src/Randomizer.h: New class.
  8707. * src/SimpleRandomizer.h: New class.
  8708. * src/BtMessage.h: New class.
  8709. * src/AbstractBtMessage.h: New class.
  8710. * src/SimpleBtMessage.h: New class.
  8711. * src/BtHaveMessage.h: New class.
  8712. * src/BtInterestedMessage.h: New class.
  8713. * src/BtAllowedFastMessage.h: New class.
  8714. * src/BtUnchokeMessage.h: New class.
  8715. * src/BtCancelMessage.h: New class.
  8716. * src/BtNotInterestedMessage.h: New class.
  8717. * src/BtChokeMessage.h: New class.
  8718. * src/BtHaveNoneMessage.h: New class.
  8719. * src/BtHandshakeMessage.h: New class.
  8720. * src/BtSuggestPieceMessage.h: New class.
  8721. * src/BtHaveMessage.h: New class.
  8722. * src/BtPieceMessage.h: New class.
  8723. * src/BtHaveAllMessage.h: New class.
  8724. * src/BtKeepAliveMessage.h: New class.
  8725. * src/BtPortMessage.h: New class.
  8726. * src/BtRejectMessage.h: New class.
  8727. * src/BtBitfieldMessage.h: New class.
  8728. * src/BtRequestMessage.h: New class.
  8729. * src/DefaultBtRequestFactory.h: New class.
  8730. * src/DefaultBtMessageReceiver.h: New class.
  8731. * src/BtInteractive.h: New class.
  8732. * src/BtMessageDispatcher.h: New class.
  8733. * src/DefaultBtMessageDispatcher.h: New class.
  8734. * src/DefaultBtInteractive.h: New class.
  8735. * src/BitfieldManFactory.h: New class.
  8736. * src/HandleRegistry.h: New class.
  8737. * src/BtMessageFactory.h: New class.
  8738. * src/BtMessageReceiver.h: New class.
  8739. * src/DefaultBtMessageFactory.h: New class.
  8740. * src/PeerObject.h: New class.
  8741. * src/BtRequestFactory.h: New class.
  8742. * src/SuggestPieceMessage.h: Removed.
  8743. * src/PortMessage.h: Removed.
  8744. * src/SuggestPieceMessage.h: Removed.
  8745. * src/KeepAliveMessage.h: Removed.
  8746. * src/HandshakeMessage.h: Removed.
  8747. * src/PeerInteraction.h: Removed.
  8748. * src/UnchokeMessage.h: Removed.
  8749. * src/PieceMessage.h: Removed.
  8750. * src/RequestMessage.h: Removed.
  8751. * src/InterestedMessage.h: Removed.
  8752. * src/HaveMessage.h: Removed.
  8753. * src/CancelMessage.h: Removed.
  8754. * src/RejectMessage.h: Removed.
  8755. * src/AllowedFastMessage.h: Removed.
  8756. * src/HaveNoneMessage.h: Removed.
  8757. * src/SimplePeerMessage.h: Removed.
  8758. * src/HaveAllMessage.h: Removed.
  8759. * src/BitfieldMessage.h: Removed.
  8760. * src/PeerMessageFactory.h: Removed.
  8761. * src/NotInterestedMessage.h: Removed.
  8762. * src/ChokeMessage.h: Removed.
  8763. * src/PeerMessage.h: Removed.
  8764. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8765. To know root cause of exception:
  8766. * src/Exception.h
  8767. (cause): New variable.
  8768. (Exception): Added a parameter.
  8769. (getMsg): Return const reference to msg.
  8770. (getCause): New function.
  8771. * src/DlRetryEx.h
  8772. (DlRetryEx): Added a parameter 'cause'.
  8773. Added an overloaded constructor.
  8774. (DlAbortEx): Added a parameter 'cause'.
  8775. Added an overloaded constructor.
  8776. * src/SimpleLogger.cc
  8777. (writeLog): Log nested exception messages recursively.
  8778. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. * src/DefaultBtProgressInfoFile.cc
  8780. (load): Fixed memory leak when the infohash doesn't match.
  8781. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. * src/DefaultPeerStorage.cc
  8783. (calculateStat): Simplified the code by combining 2 loops into 1.
  8784. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  8786. for BitTorrent download:
  8787. * src/PeerAbstractCommand.cc
  8788. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  8789. * src/main.cc:
  8790. (timeoutSpecified): Removed.
  8791. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  8792. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  8793. * src/TorrentRequestInfo.cc
  8794. (timeoutSpecified): Removed.
  8795. (torrentHandler): Removed timeoutSpecified and the adjustment of
  8796. timeout value.
  8797. * src/prefs.h
  8798. (PREF_BT_TIMEOUT): New definition.
  8799. Delete unused variables:
  8800. * src/TorrentRequestInfo.cc
  8801. (requestInfo): Removed.
  8802. Move setSignalHander to Util::setGlobalSignalHandler:
  8803. * src/TorrentRequestInfo.cc:
  8804. setSignalHander -> Util::setGlobalSignalHandler
  8805. * src/main.cc
  8806. (setSignalHander): Removed.
  8807. (main): setSignalHander -> Util::setGlobalSignalHandler
  8808. * src/Util.h
  8809. (setGlobalSignalHandler): New function.
  8810. * src/Util.cc
  8811. (setGlobalSignalHandler): New function.
  8812. * src/UrlRequestInfo.cc:
  8813. setSignalHander -> Util::setGlobalSignalHandler
  8814. Reset peer status in order to exit gracefully:
  8815. * src/PeerAbstractCommand.cc
  8816. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  8817. To fix the bug that causes the number of bytes uploaded is not saved
  8818. to .aria2 file:
  8819. * src/DefaultPeerStorage.h
  8820. (removedPeerSessionDownloadLength): New variable.
  8821. (removedPeerSessionUploadLength): New variable.
  8822. * src/DefaultPeerStorage.cc
  8823. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  8824. removedPeerSessionUploadLength(0).
  8825. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  8826. through all peers, and then add removedPeerSessionDownloadLength(
  8827. removedPeerSessionUploadLength) to it.
  8828. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  8829. (to) the peer to removedPeerSessionDownloadLength
  8830. (removedPeerSessionUploadLength).
  8831. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. To add Metalink location option:
  8833. * src/MetalinkRequestInfo.cc
  8834. (execute): Call MetalinkEntry::setLocationPreference()
  8835. * src/main.cc
  8836. (showUsage): Added the help message for --metalink-location option.
  8837. (main): Added --metalink-location option.
  8838. * src/prefs.h
  8839. (PREF_METALINK_LOCATION): New definition.
  8840. * src/MetalinkEntry.cc
  8841. (AddLocationPreference): New function object.
  8842. (setLocationPreference): New function.
  8843. * src/Xml2MetalinkProcessor.cc
  8844. (getResource): Set location attribute to MetalinkResource
  8845. To show URLs to download
  8846. * src/UrlRequestInfo.h
  8847. (printUrls): New function.
  8848. To add multiple <file> Metalink support:
  8849. * src/MetalinkEntry.h
  8850. (MetalinkResources): Removed.
  8851. (setLocationPreference): New function.
  8852. (MetalinkEntryHandle): New type definition.
  8853. (MetalinkEntries): New type definition.
  8854. * src/Xml2MetalinkProcessor.h
  8855. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8856. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8857. (parseFile): Metalinker* -> MetalinkerHandle
  8858. * src/UrlRequestInfo.h
  8859. (execute): RequestInfo* -> RequestInfos
  8860. * src/MetalinkRequestInfo.cc
  8861. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  8862. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  8863. (execute): RequestInfo* -> RequestInfos
  8864. Added multiple <file> support. Print filename when it is queued.
  8865. * src/MetalinkRequestInfo.h
  8866. (execute): RequestInfo* -> RequestInfos
  8867. (getDownloadEngine): Removed.
  8868. * src/RequestInfo.h
  8869. (RequestInfoHandle): New type definition.
  8870. (RequestInfos): New type definition.
  8871. (execute): RequestInfo* -> RequestInfos
  8872. (getDownloadEngine): Removed.
  8873. * src/MetalinkResource.h
  8874. (MetalinkResourceHandle): New type definition.
  8875. (MetalinkResources): New type definition.
  8876. * src/MetalinkEntry.cc
  8877. (~MetalinkEntry): Removed the deletion of the elements of resources,
  8878. because the element is now of type MetalinkResourceHandle.
  8879. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  8880. (Supported): MetalinkResource* -> MetalinkResourceHandle
  8881. (dropUnsupportedResource): Removed the deletion of the elements of
  8882. resources because the element is now of type MetalinkResourceHandle.
  8883. * src/Xml2MetalinkProcessor.cc
  8884. (parseFile): Metalinker* -> MetalinkerHandle
  8885. MetalinkEntry* -> MetalinkEntryHandle
  8886. Removed try-catch block.
  8887. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8888. MetalinkResource* -> MetalinkResourceHandle
  8889. Removed try-catch block.
  8890. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8891. Free result by using xmlXPathFreeObject()
  8892. * src/Metalinker.cc
  8893. (~Metalinker): Removed the deletion of entries.
  8894. MetalinkEntry* -> MetalinkEntryHandle
  8895. (queryEntry): Add multiple <file> Metalink support.
  8896. * src/Metalinker.h
  8897. (MetalinkEntries): Removed.
  8898. (queryEntry): MetalinkEntry* -> MetalinkEntries
  8899. * src/MetalinkProcessor.h
  8900. (parseFile): Metalinker* -> MetalinkerHandle
  8901. Bug fixes:
  8902. * src/PeerChokeCommand.cc
  8903. (execute): cat01->cat02
  8904. * src/DefaultPieceStorage.cc
  8905. (DefaultPieceStorage): Added diskAdaptor(0)
  8906. * src/TrackerWatcherComand.cc:
  8907. (execute): Use btAnnounce->noMoreAnnounce()
  8908. to determin whether the function returns true or not.
  8909. * src/TrackerUpdateCommand.cc:
  8910. (execute): Use btAnnounce->noMoreAnnounce()
  8911. to determin whether the function returns true or not.
  8912. * src/FtpConnection.cc
  8913. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  8914. This is the fix of the busy loop bug.
  8915. * src/DownloadCommand.cc
  8916. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  8917. cached PeerStat.
  8918. The value of "name" entry in torrent file is now set by
  8919. *DiskAdaptor::setTopDir(...) methods.
  8920. * src/MultiDiskAdaptor.h
  8921. (topDir): New variable.
  8922. (setTopDir): New function.
  8923. (getTopDir): New function.
  8924. * src/MultiDiskAdaptor.cc
  8925. (getFilePath): Concat storDir, "/" and topDir.
  8926. (mkdir): Use getFilePath() to get the directory path for output.
  8927. * src/DefaultPieceStorage.cc
  8928. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  8929. CopyDiskAdaptor.
  8930. * src/CopyDiskAdaptor.h
  8931. (topDir): New variable.
  8932. (setTopDir): New function.
  8933. (getTopDir): New function.
  8934. * src/CopyDiskAdaptor.cc
  8935. (fixFilename): Updated.
  8936. Misc
  8937. * src/UrlRequestInfo.h
  8938. (e): Removed.
  8939. (UrlRequestInfo): Removed e.
  8940. (getDownloadEngine): Removed.
  8941. * src/UrlRequestInfo.cc
  8942. (handler): Rewritten.
  8943. (printUrls): New function.
  8944. (execute): Call printUrls().
  8945. * src/HandshakeMessage.cc
  8946. (check): peerinteraction->getBtContext() -> btContext
  8947. * src/PeerInteraction.h
  8948. (getBtContext): Removed.
  8949. * src/TorrentRequestInfo.h
  8950. (execute): RequestInfo* -> RequestInfos
  8951. (getDownloadEngine): Removed.
  8952. * src/TorrentRequestInfo.cc
  8953. (haltRequested): Removed.
  8954. (btHaltRequested): New variable.
  8955. (torrentHandler): haltRequested -> btHaltRequested
  8956. (execute): RequestInfo* -> RequestInfos
  8957. * src/TorrentConsoleDownloadEngine.cc
  8958. (afterEachIteration): haltRequested -> btHaltRequested.
  8959. * src/ConsoleDownloadEngine.h
  8960. (initStatistics): Added virtual.
  8961. (calculateStatistics): Added virtual.
  8962. (onEndOfRun): Added virtual.
  8963. (afterEachIteration): Added virtual.
  8964. * src/ConsoleDownloadEngine.cc
  8965. (haltRequested): New variable.
  8966. (afterEachIteration): New function.
  8967. * src/main.cc
  8968. (requestInfo): Removed.
  8969. * src/SegmentMan.cc
  8970. (findSlowerSegmentEntry): Refactored.
  8971. * Release 0.9.0
  8972. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  8974. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  8975. * src/TorrentMan.h: Removed.
  8976. * src/TorrentMan.cc: Removed.
  8977. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  8978. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  8979. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  8980. * src/PeerAbstractCommand.cc: Use btRuntime.
  8981. * src/BtContextAwareCommand.h: New class.
  8982. * src/FileEntry.h: Added accessor methods for following variables.
  8983. (path): Made private.
  8984. (length): Made private.
  8985. (offset): Made private.
  8986. (extracted): Made private.
  8987. (requested): Made private.
  8988. (FileEntries): New definition.
  8989. (FileEntryHandle): New definition.
  8990. * src/FileEntry.cc: New file.
  8991. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  8992. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  8993. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  8994. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  8995. * src/PieceStorage.h: New file.
  8996. * src/PeerInteractionCommand.h: Use btContext.
  8997. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  8998. btRuntime.
  8999. * src/DefaultBtProgressInfoFile.h: New file.
  9000. * src/DefaultBtProgressInfoFile.cc: New file.
  9001. * src/File.cc
  9002. (Util.h): New include.
  9003. (mkdirs): New function.
  9004. * src/MultiDiskAdaptor.h
  9005. (mkdir): New function.
  9006. * src/PeerListProcessor.h
  9007. (Peers): Removed.
  9008. * src/PeerInteraction.h
  9009. (torrentMan): Removed.
  9010. (btContext): New variable.
  9011. (peerStorage): New variable.
  9012. (pieceStorage): New variable.
  9013. (btAnnounce): New variable.
  9014. (getTorrentMan): Removed.
  9015. (getBtContext): New function.
  9016. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9017. btAnnounce.
  9018. * src/HandshakeMessage.h
  9019. (TorrentMan.h): Removed.
  9020. * src/HandshakeMessage.cc: Use btContext.
  9021. * src/DefaultBtAnnounce.cc: New file.
  9022. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9023. * src/DefaultPieceStorage.cc: New file.
  9024. * src/DefaultBtContext.h: New file.
  9025. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9026. Use the accessor methods of FileEntry.
  9027. * src/CookieBox.cc: Updated to use Util::slice().
  9028. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9029. * src/common.h (SharedHandle.h): New include.
  9030. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9031. pieceStorage.
  9032. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9033. * src/DiskAdaptor.h
  9034. (topDir): Removed.
  9035. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9036. (setTopDir): Removed.
  9037. (getTopDir): Removed.
  9038. * src/BtContext.h: New file.
  9039. * src/DefaultPeerStorage.h: New file.
  9040. * src/PieceMessage.h (TorrentMan.h): Removed.
  9041. * src/RequestMessage.h (TorrentMan.h): Removed.
  9042. * src/TorrentDownloadEngine.h
  9043. (uploadLength): New variable.
  9044. (btContext): New variable.
  9045. (btRuntime): New variable.
  9046. (pieceStorage): New variable.
  9047. (peerStorage): New variable.
  9048. (btAnnounce): New variable.
  9049. (btProgressInfoFile): New variable.
  9050. (torrentMan): Removed.
  9051. (setBtContext): New function.
  9052. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9053. peerStorage, btAnnounce, btProgressInfoFile.
  9054. * src/Piece.h
  9055. (toString): New function.
  9056. (Pieces): New type definition.
  9057. * src/Peer.h
  9058. (active): New variable.
  9059. (Peer): Added active.
  9060. (activate): Set active to true.
  9061. (deactivate): Set active to false.
  9062. (isActive): New function.
  9063. (Peers): New type definition.
  9064. * src/DirectDiskAdaptor.cc
  9065. (getFilePath): Use the accessor methods of FileEntry.
  9066. * src/TorrentConsoleDownloadEngine.h
  9067. (afterEachIteration): New function.
  9068. * src/TorrentConsoleDownloadEngine.cc
  9069. (haltRequested): New variable.
  9070. (sendStatistics): Use pieceStorage, btRuntime.
  9071. (afterEachIteration): New function.
  9072. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9073. * src/Directry.h
  9074. (Directory): New function.
  9075. (DirectoryHandle): New type definition.
  9076. * src/BtProgressInfoFile.h: New file.
  9077. * src/RequestMessage.cc: Use pieceStorage.
  9078. * src/BtRuntime.h: New file.
  9079. * src/DefaultBtContext.cc: New file.
  9080. * src/BitfieldMan.h
  9081. (getCompletedLength): New function(private).
  9082. (getCompletedLength): New function.
  9083. (getFilteredCompletedLength): New function.
  9084. * src/BitfieldMan.h
  9085. (getCompletedLength): New function(private).
  9086. (getCompletedLength): New function.
  9087. (getFilteredCompletedLength): New function.
  9088. * src/MultiDiskAdaptor.cc
  9089. (mkdir): New function.
  9090. (openFile): Call mkdir().
  9091. (initAndOpenFile): Call mkdir().
  9092. * src/CancelMessage.h
  9093. (TorrentMan.h): Removed.
  9094. * src/RejectMessage.h
  9095. (TorrentMan.h): Removed.
  9096. * src/DownloadEngineFactory.cc
  9097. (DefaultPieceStorage.h): New include.
  9098. (DefaultPeerStorage.h): New include.
  9099. (DefaultBtAnnounce.h): New include.
  9100. (DefaultBtProgressInfoFile.h): New include.
  9101. (newTorrentConsoleEngine): Rewritten.
  9102. * src/ShareRatioSeedCriteria.h
  9103. (torrentMan): Removed.
  9104. (btContext): New variable.
  9105. (peerStorage): New variable.
  9106. (btRuntime): New variable.
  9107. (evaluate): Use btContext, btRuntime, peerStorage.
  9108. * src/AnnounceTier.h: New file.
  9109. * src/BtAnnounce.h: New file.
  9110. * src/BtRegistry.h: New file.
  9111. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9112. * src/PeerConnection.h (TorrentMan.h): Removed.
  9113. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9114. * src/Util.h
  9115. (slice): Added an argument.
  9116. * src/Util.cc
  9117. (slice): Added an argument to control whether trim is made or not.
  9118. * src/PeerStorage.h: New file.
  9119. * src/BtRegistry.cc: New file.
  9120. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9121. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9122. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9123. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9124. * src/TorrentRequestInfo.h
  9125. (e): Removed.
  9126. (showFileEntry): Added an argument.
  9127. (getDownloadEngine): Return 0.
  9128. * src/DefaultBtAnnounce.h: New file.
  9129. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9130. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9131. * src/PeerMessageFactory.h
  9132. (btContext): New variable.
  9133. (pieceStorage): New variable.
  9134. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9135. btAnnounce.
  9136. * src/DiskAdaptor.cc
  9137. (DiskAdaptor): Removed topDir.
  9138. (~DiskAdaptor): Removed topDir.
  9139. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9140. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9141. * src/File.h (mkdirs): New function.
  9142. * src/DefaultPeerStorage): New file.
  9143. * src/DownloadEngineFactory.h
  9144. (newTorrentConsoleEngine): Use btContext.
  9145. * src/BtContextAwareCommand.cc: New file.
  9146. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9147. * src/PeerMessage.h
  9148. (btContext): New variable.
  9149. (peerStorage): New variable.
  9150. (pieceStorage): New variable.
  9151. (setBtContext): New function.
  9152. * src/Directry.cc
  9153. (Directory): New function.
  9154. (createDir): Do nothing if name.size() == 0.
  9155. * src/AnnounceList.h
  9156. (AnnounceTier): Removed.
  9157. (AnnounceTiers): Removed.
  9158. * src/DefaultPieceStorage.h: New file.
  9159. * src/Piece.cc (toString): New function.
  9160. To fix typo:
  9161. * src/main.cc (showVersion): Fixed typo.
  9162. To fix compile warning:
  9163. * src/DelegatingPeerListProcessor.cc
  9164. (canHandle): Added "return false".
  9165. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9166. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9167. make the process of announce request testable.
  9168. * src/TrackerWatcherCommand.h
  9169. (TimeA2.h): Removed.
  9170. (interval): Removed.
  9171. (checkPoint): Removed.
  9172. (createRequestCommand): Added an argument 'url'.
  9173. (TrackerWatherCommand): Removed interval.
  9174. (createCommand): New function.
  9175. * src/DownloadEngineFactory.cc
  9176. (newTorrentConsoleEngine): Updated according to the changes in
  9177. TrackerWatherCommand.
  9178. * src/TorrentMan.cc
  9179. (DelegatingPeerListProcessor.h): New includes.
  9180. (TorrentMan): Added the initialization of announceInterval.
  9181. (isStoppedAnnounceReady): New function.
  9182. (isCompletedAnnounceReady): New function.
  9183. (isDefaultAnnounceReady): New function.
  9184. (isAnnounceReady): New function.
  9185. (getAnnounceUrl): New function.
  9186. (announceStart): New function.
  9187. (announceFailure): New function.
  9188. (announceSuccess): New function.
  9189. (isAllAnnounceFailed): New function.
  9190. (resetAnnounce): New function.
  9191. (processAnnounceResponse): New function.
  9192. (needMorePeerConnection): New function.
  9193. (noMoreAnnounce): New function.
  9194. * src/TrackerUpdateCommand.h
  9195. (getTrackerResponse): int->size_t
  9196. * src/TorrentMan.h
  9197. (isStoppedAnnounceReady): New function.
  9198. (isCompletedAnnounceReady): New function.
  9199. (isDefaultAnnounceReady): New function.
  9200. (announceInterval): New variable.
  9201. (isAnnounceReady): New function.
  9202. (getAnnounceUrl): New function.
  9203. (announceStart): New function.
  9204. (announceFailure): New function.
  9205. (announceSuccess): New function.
  9206. (isAllAnnounceFailed): New function.
  9207. (resetAnnounce): New function.
  9208. (processAnnounceResponse): New function.
  9209. (needMorePeerConnection): New function.
  9210. (noMoreAnnounce): New function.
  9211. * src/TrackerWatcherCommand.cc
  9212. (TrackerWatherCommand): Removed interval and checkPoint.
  9213. (execute): Rewritten.
  9214. (createCommand): New function.
  9215. (createRequestCommand): Rewritten.
  9216. * src/TrackerUpdateCommand.cc
  9217. (MetaFileUtil.h): Removed.
  9218. (DelegatingPeerListProcessor.h): Removed.
  9219. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  9220. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9221. Request -> RequestHandle:
  9222. * src/HttpResponseCommand.h: Request->RequestHandle
  9223. * src/AbstractCommand.cc: Request->RequestHandle
  9224. * src/HttpDownloadCommand.cc: Request->RequestHandle
  9225. * src/HttpRequestCommand.cc: Request->RequestHandle
  9226. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  9227. * src/AbstractCommand.h: Request->RequestHandle
  9228. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  9229. * src/HttpResponseCommand.cc: Request->RequestHandle
  9230. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  9231. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  9232. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  9233. * src/HttpConnection.h: Request->RequestHandle
  9234. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  9235. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  9236. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9237. * src/DownloadCommand.h: Request->RequestHandle
  9238. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9239. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9240. * src/HttpRequestCommand.h: Request->RequestHandle
  9241. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9242. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9243. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9244. * src/HttpDownloadCommand.h: Request->RequestHandle
  9245. * src/FtpConnection.cc: Request->RequestHandle
  9246. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9247. * src/UrlRequestInfo.cc: Request->RequestHandle
  9248. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9249. * src/HttpConnection.h: Request->RequestHandle
  9250. * src/DownloadCommand.cc: Request->RequestHandle
  9251. * src/FtpConnection.h: Request->RequestHandle
  9252. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9253. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9254. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9255. * src/Request.h
  9256. (SharedHandle.h): New include.
  9257. (RequestHandle): New type definition.
  9258. (Requests): Redefined.
  9259. To add MULTITRACKER support:
  9260. * src/TrackerWatcherCommand.h
  9261. (createRequestCommand): New function.
  9262. * src/DownloadEngineFactory.cc
  9263. (newTorrentConsoleEngine): Removed req.
  9264. * src/prefs.h
  9265. (PREF_TRACKER_MAX_TRIES): New definition.
  9266. * src/TorrentMan.cc
  9267. (TorrentMan): Removed req. Added trackerNumTry.
  9268. (~TorrentMan): Removed req.
  9269. (setupInternal1): Added announceList.
  9270. * src/TorrentRequestInfo.cc
  9271. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9272. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9273. * src/main.cc
  9274. (main): Added PREF_TRACKER_MAX_TRIES.
  9275. * src/TorrentMan.h
  9276. (Request.h): Removed.
  9277. (AnnounceList.h): New include.
  9278. (trackerNumTry): New variable.
  9279. (req): Removed.
  9280. (announceList): New variable.
  9281. * src/TrackerWatcherCommand.cc
  9282. (execute): Rewritten.
  9283. (createRequestCommand): New function.
  9284. * src/TrackerUpdateCommand.cc
  9285. (execute): Updated with the use of AnnounceList.
  9286. * src/AnnounceList.cc: New class.
  9287. * src/AnnounceList.h: New class.
  9288. To fix typo:
  9289. * src/prefs.h
  9290. (PREF_MAX_TRIES): max_try->max_tries
  9291. To not to decode "+" as space in URL decode:
  9292. * src/Util.cc
  9293. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  9294. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9295. To add timeout to async name resolution:
  9296. * src/AbstractCommand.h
  9297. (nameResolveFinished): New function. This is not elegant way. It needs
  9298. to be more refined.
  9299. (nameResolverCheck): New variable.
  9300. * src/AbstractCommand.cc
  9301. (AbstractCommand): Added nameResolverCheck.
  9302. (execute): Added the check whether the name resolution has finished.
  9303. (setNameResolverCheck): Set nameResolverCheck to true.
  9304. (disableNameResolverCheck): Set nameResolverCheck to false.
  9305. (nameResolverFinished): New function.
  9306. * src/FtpInitiateConnectionCommand.h
  9307. (nameResolverFinished): New function.
  9308. * src/FtpInitiateConnectionCommand.cc
  9309. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9310. * src/HttpInitiateConnectionCommand.h
  9311. (nameResolverFinished): New function.
  9312. * src/HttpInitiateConnectionCommand.cc
  9313. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9314. * src/prefs.h
  9315. (PREF_DNS_TIMEOUT): New definition.
  9316. * src/main.cc
  9317. (main): Added PREF_DNS_TIMEOUT.
  9318. To add the support for a non-compact response from a tracker:
  9319. * src/PeerListProcessor.h: New class.
  9320. * src/DefaultPeerListProcessor.h: New class.
  9321. * src/DefaultPeerListProcessor.cc: New class.
  9322. * src/CompactPeerListProcessor.h: New class.
  9323. * src/CompactPeerListProcessor.cc: New class.
  9324. * src/DelegatingPeerListProcessor.h: New class.
  9325. * src/DelegatingPeerListProcessor.cc: New class.
  9326. * src/TorrentMan.cc
  9327. (addPeer): New function(overload).
  9328. (addPeer): Delete unused peers only when new peer is added.
  9329. * src/TorrentMan.h
  9330. (PeerListProcessor.h): Included.
  9331. (Peers): Removed.
  9332. (addPeer): New function(overload).
  9333. * src/TrackerUpdateCommand.cc
  9334. (netinet/in.h): Removed.
  9335. (DelegatingPeerListProcessor.h): Included.
  9336. (execute): Updated to use DelegatingPeerListProcessor.
  9337. To fix the memory leak in TorrentMan::peers:
  9338. * src/PeerAbstractCommand.cc
  9339. (onAbort): Added peer->resetStatus().
  9340. * src/Peer.h
  9341. (resetStatus): Made public.
  9342. To improve the precision of the speed calculation:
  9343. * src/SpeedCalc.h
  9344. (nextInterval): New variable.
  9345. * src/SpeedCalc.cc
  9346. (reset): Added nextInterval.
  9347. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9348. (changeSw): Set nextInterval to 15 seconds relative to the current
  9349. instant time.
  9350. * src/main.cc
  9351. (showVersion): Updated.
  9352. (showUsage): Updated.
  9353. * Release 0.8.1
  9354. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9355. * src/main.cc
  9356. (showUsage): Commented out --min-segment-size option.
  9357. (main): Commented out --min-segment-size option.
  9358. * Release 0.8.0
  9359. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9360. * src/*.{h,cc}:
  9361. Added an exception to the license which allows linking with OpenSSL.
  9362. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9363. * src/AbstractCommand.cc
  9364. (execute): Check whether the download has finished before checking
  9365. socket status.
  9366. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9367. Do not exit even if no segment is available.
  9368. * src/prefs.h
  9369. (PREF_STARTUP_IDLE_TIME): New definition.
  9370. * src/PeerInteractionCommand.cc
  9371. (executeInternal): Removed max speed limit. Because it performs bad.
  9372. (receiveMessages): Added max speed limit. This was better than above,
  9373. but still a little bit to be desired. Sometimes the download speed
  9374. became much faster than I specified.
  9375. * src/SpeedCalc.h
  9376. (start): New variable.
  9377. (accumulatedLength): New variable.
  9378. (getAvgSpeed): New function.
  9379. * src/SpeedCalc.cc
  9380. (reset): Added start, accumulatedLength.
  9381. (update): Added calculation of an average speed.
  9382. (getAvgSpeed): New function.
  9383. * src/DownloadCommand.h
  9384. (sw): Removed.
  9385. * src/main.cc
  9386. (main): Added PREF_STARTUP_IDLE_TIME.
  9387. * src/PeerStat.h
  9388. (STATUS): Added REQUEST_IDLE.
  9389. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9390. (getAvgDownloadSpeed): New function
  9391. (requestIdle): New function.
  9392. * src/SegmentMan.h
  9393. (SegmentEntryHandle): New type definition.
  9394. (SegmentEntries): Now holds SegmentEntryHandle.
  9395. (findSlowerSegmentEntry): New funtion.
  9396. * src/SegmentMan.cc
  9397. (save): Updated according to the changes in SegmentEntries.
  9398. (read): Updated according to the changes in SegmentEntries.
  9399. (FindSegmentEntryByIndex): Updated according to the changes in
  9400. SegmentEntries.
  9401. (FindSegmentEntryByCuid): Updated according to the changes in
  9402. SegmentEntries.
  9403. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9404. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9405. Renamed uitr as itr.
  9406. (findSlowerSegmentEntry): New function.
  9407. (getSegment): Updated according to the changes in SegmentEntries.
  9408. Added the feature that cancels the segment with slow server and fast
  9409. one takes it over.
  9410. (cancelSegment): Updated according to the changes in SegmentEntries.
  9411. (getDownloadLength): Updated according to the changes in
  9412. SegmentEntries.
  9413. (init): Assigned 0 to bitfield after deleting it.
  9414. * src/DownloadCommand.cc
  9415. (STARTUP_IDLE_TIME): Removed.
  9416. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  9417. * src/PeerChokeCommand.cc
  9418. (optUnchokingPeer): Updated according to the changes in Peer.
  9419. (ResetDelta): Removed.
  9420. (UploadFaster): Updated according to the changes in Peer.
  9421. (DownloadFaster): Updated according to the changes in Peer.
  9422. (execute): I clarify the meaning of "upload" and "download" here.
  9423. "upload" means the transfer from localhost to remote host.
  9424. "download" means the transfer from remote host to localhost.
  9425. Based on this rule, I swapped orderByUploadRate and
  9426. orderByDownloadRate.
  9427. * src/PeerInteractionCommand.cc
  9428. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  9429. (executeInternal): Removed the argument of
  9430. peerInteraction->sendMessages().
  9431. (receiveMessages): Rewritten download speed limit.
  9432. (sendKeepAlive): Removed peerInteraction->sendMessages().
  9433. * src/HttpResponseCommand.cc
  9434. (handleDefaultEncoding): If file size is unknown in torrent request,
  9435. do not call segmentMan->initBitfield() here.
  9436. Disabled persistent connection feature in torrent request.
  9437. * src/UrlRequestInfo.h
  9438. (UrlRequestInfo): Removed const qualifier from option.
  9439. * src/TorrentMan.h
  9440. (TransferStat): New class.
  9441. (deltaDownloadLength): Removed.
  9442. (deltaUploadLength): Removed.
  9443. (addDeltaDownloadLength): Removed.
  9444. (getDeltaDownloadLength): Removed.
  9445. (resetDeltaDownloadLength): Removed.
  9446. (addDeltaUploadLength): Removed.
  9447. (getDeltaUploadLength): Removed.
  9448. (resetDeltaUploadLength): Removed.
  9449. (addActivePeer): Added peer->activate().
  9450. (deleteActivePeer): Added peer->deactivate().
  9451. (calculateStat): New function.
  9452. * src/TorrentMan.cc
  9453. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  9454. (calculateStat): New function.
  9455. * src/PeerInteraction.h
  9456. (uploadLimit): Removed.
  9457. (option): New variable.
  9458. (setUploadLimit): Removed.
  9459. (getUploadSpeed): Removed.
  9460. (sendMessages): Removed the argument "currentUploadSpeed".
  9461. * src/PeerInteraction.cc
  9462. (prefs.h): Included.
  9463. (PeerInteraction): Removed uploadLimit. Added option.
  9464. (sendMessages): Rewritten upload speed limit.
  9465. (sendHandshake): Removed the argument from sendMessages().
  9466. (sendBitfield): Removed the argument from sendMessages().
  9467. * src/PeerAbstractCommand.cc
  9468. (execute): Commented out the portion of upload limit.
  9469. (onAbort): Removed peer->resetStatus().
  9470. * src/TorrentRequestInfo.cc
  9471. (timeoutSpecified): Declared extern.
  9472. (execute): Set timeout to 180 if timeout is not specified by.
  9473. command-line.
  9474. * src/PieceMessage.cc
  9475. (receivedAction): Added peer->updateDownloadLength().
  9476. Removed peer->addPeerUpload().
  9477. Removed torrentMan->addDeltaDownloadLength().
  9478. (send): Added peer->updateUploadLength().
  9479. Removed peer->addPeerDownload().
  9480. Removed torrentMan->addDeltaUploadLength().
  9481. * src/main.cc
  9482. (timeoutSpecified): New variable.
  9483. (main): Set timeoutSpecified to false.
  9484. If the command-line option "--upload-limit" is specified, then
  9485. timeoutSpecified is set to true. This option will remain in the next
  9486. release, but be deprecated in the future release.
  9487. * src/TorrentRequestInfo.h
  9488. (TorrentRequestInfo): Removed const qualifier from op.
  9489. * src/PeerStat.h
  9490. (uploadSpeed): New variable.
  9491. (PeerStat): Added default value to cuid.
  9492. (calculateUploadSpeed): New function.
  9493. (updateUploadLength): New function.
  9494. (getMaxUploadSpeed): New function.
  9495. (getAvgUploadSpeed): New function.
  9496. (reset): Added uploadSpeed. Set status to IDLE.
  9497. * src/TorrentDownloadEngine.h
  9498. (cp): Declared as Time.
  9499. (sessionDownloadLengthArray): Removed.
  9500. (sessionUploadLengthArray): Removed.
  9501. (currentCp): Removed.
  9502. (lastCalcStat): New variable
  9503. (lastElapsed): Removed.
  9504. (sessionDownloadLength): Removed.
  9505. (calculateStat): New function.
  9506. * src/TorrentDownloadEngine.cc
  9507. (initStatistics): Removed lastElapsed, cp[],
  9508. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  9509. currentCp, sessionDownloadLength.
  9510. Added cp.reset() and lastCalcStat.reset().
  9511. (calculateSpeed): Changed the name of the argument.
  9512. (calculateStatistics): Rewritten.
  9513. (calculateStat): New function.
  9514. * src/Peer.h
  9515. (PeerStat.h): Included.
  9516. (peerUpload): Removed.
  9517. (peerDownload): Removed.
  9518. (peerStat): New variable.
  9519. (sessionUploadLength): New variable.
  9520. (sessionDownloadLength): New variable.
  9521. (deltaUpload): Removed.
  9522. (deltaDownload): Removed.
  9523. (resetStatus): Made private.
  9524. (Peer): Added sessionUploadLength, sessionDownloadLength.
  9525. Removed peerUpload, peerDownload.
  9526. (updateUploadLength): New function.
  9527. (addDeltaUpload): Removed.
  9528. (updateDownloadLength): New function.
  9529. (resetDeltaUpload): Removed.
  9530. (getDeltaUpload): Removed.
  9531. (addDeltaDownload): Removed.
  9532. (calculateUploadSpeed): New function.
  9533. (resetDeltaDownload): Removed.
  9534. (getDeltaDownload): Removed.
  9535. (calculateDownloadSpeed): New function.
  9536. (getSessionUploadLength): New function.
  9537. (getSessionDownloadLength): New function.
  9538. (activate): New function.
  9539. (deactivate): New function.
  9540. (addPeerUpload): Removed.
  9541. (setPeerUpload): Removed.
  9542. (getPeerUpload): Removed.
  9543. (addPeerDownload): Removed.
  9544. (setPeerDownload): Removed.
  9545. (getPeerDownload): Removed.
  9546. * src/Peer.cc
  9547. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  9548. * src/MetalinkRequestInfo.h
  9549. (MetalinkRequestInfo): Removed const qualifier from op.
  9550. * src/RequestInfo.h
  9551. (op): Removed const qualifier.
  9552. (RequestInfo): Removed const qualifier from op.
  9553. * src/prefs.h
  9554. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  9555. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  9556. * src/PeerInteractionCommand.cc
  9557. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  9558. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  9559. * src/PeerInteraction.cc
  9560. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  9561. * src/main.cc
  9562. (showUsage): Updated the description of "--lowest-speed-limit" option.
  9563. Added the description of "--max-download-limit" option.
  9564. Removed the description of "--upload-limit" option.
  9565. Added the description of "--max-upload-limit" option.
  9566. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  9567. Added "--max-download-limit" option and "--max-upload-limit" option.
  9568. Added the warning message if "--upload-limit" option is used.
  9569. * src/DownloadCommand.cc
  9570. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  9571. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9572. To rewrite segment download mechanism for HTTP/FTP download.
  9573. Use BitfieldMan to manage segment download.
  9574. * src/HttpResponseCommand.h
  9575. (executeInternal): Pass the reference of segment.
  9576. * src/AbstractCommand.cc
  9577. (prepareForRetry): Call segmentMan->cancelSegment here.
  9578. (onAbort): Call segmentMan->cancelSegment here.
  9579. * src/HttpDownloadCommand.cc
  9580. (prepareForNextSegment): New function.
  9581. * src/DownloadEngineFactory.cc
  9582. (newConsoleEngine): Removed splitter.
  9583. (newTorrentConsoleEngine): Removed splitter.
  9584. * src/Request.h
  9585. (segment): Renamed from seg.
  9586. * src/FtpInitiateConnectionCommand.h
  9587. (executeInternal): Pass the reference of segment.
  9588. * src/AbstractCommand.h
  9589. (executeInternal): Pass the reference of segment.
  9590. * src/pref.h
  9591. (PREF_SEGMENT_SIZE): New definition.
  9592. * src/HttpProxyRequestCommand.h
  9593. (executeInternal): Pass the reference of segment.
  9594. * src/HttpResponseCommand.cc
  9595. (checkResponse): Allowed status 206 when a request range starts 0.
  9596. (handleDefaultEncoding): Rewritten the code related to Segment.
  9597. (handleOtherEncoding): Rewritten the code related to Segment.
  9598. * src/SegmentMan.h
  9599. (SegmentEntry): New class.
  9600. (SegmentEntries): New type definition.
  9601. (bitfield): New variable.
  9602. (usedSegmentEntries): New variable.
  9603. (onNullBitfield): New function.
  9604. (checkoutSegment): New function.
  9605. (segments): Removed.
  9606. (splitter): Removed.
  9607. (unregisterId): Removed.
  9608. (getSegment): New function(overload)
  9609. (getDownloadedSize): Removed.
  9610. (cancelSegment): New function.
  9611. (completeSegment): New function.
  9612. (initBitfield): New function.
  9613. (hasSegment): New function.
  9614. (getDownloadLength): New function.
  9615. * src/BitfieldMan.h
  9616. (getStartIndex): New function.
  9617. (getEndIndex): New function.
  9618. (getMissingUnusedIndex): New function(overload).
  9619. (getSparseMissingUnusedIndex): New function.
  9620. * src/BitfieldMan.cc
  9621. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  9622. (getMissingUnusedIndex): New function(overload).
  9623. (Range): New class.
  9624. (getStartIndex): New function.
  9625. (getEndIndex): New function.
  9626. (getSparseMissingUnusedIndex): New function.
  9627. (isBitSetInternal): Return false if the given index is less than 0.
  9628. * src/HttpInitiateConnectionCommand.h
  9629. (executeInternal): Pass the reference of segment.
  9630. * src/FtpNegotiateCommand.h
  9631. (executeInternal): Pass the reference of segment.
  9632. * src/FtpNegotiateCommand.cc
  9633. (recvSize): Initialize bitfield here.
  9634. * src/FtpTunnelResponseCommand.h
  9635. (executeInternal): Pass the reference of segment.
  9636. * src/HttpConnection.cc
  9637. (createRequest): Rewritten range header processing.
  9638. * src/DownloadCommand.h
  9639. (executeInternal): Pass the reference of segment.
  9640. (prepareForRetry): Removed.
  9641. (prepareForNextSegment): Added an argument segment. Made it a virtual
  9642. function.
  9643. * src/main.cc
  9644. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  9645. * src/SegmentMan.cc
  9646. (SegmentMan): Added bitfield. Removed splitter.
  9647. (~SegmentMan): Added bitfield. Removed splitter.
  9648. (unregisterId): Removed.
  9649. (getSegment): Rewritten.
  9650. (updateSegment): Rewritten.
  9651. (save): Rewritten.
  9652. (read): Rewritten.
  9653. (finished): Rewritten.
  9654. (getDownloadedSize): Removed.
  9655. (initBitfield): New function.
  9656. (FindSegmentEntryByIndex): New function object.
  9657. (FindSegmentEntryByCuid): New function object.
  9658. (checkoutSegment): New function.
  9659. (onNullBitfield): New function.
  9660. (getSegment): New function(overload).
  9661. (CancelSegment): New function object.
  9662. (cancelSegment): New function.
  9663. (completeSegment): New function.
  9664. (hasSegment): New function.
  9665. (getDownloadLength): New function.
  9666. * src/FtpInitiateConnectionCommand.cc
  9667. (executeInternal): Load .aria2 file after hostname resolution finishes.
  9668. * src/Segment.h: Rewritten.
  9669. * src/Segment.cc (operator<<): New function.
  9670. * src/HttpDownloadCommand.h
  9671. (prepareForNextSegment): New function.
  9672. * src/Request.cc
  9673. (resetUrl): Made segment null.
  9674. * src/DownloadEngine.cc
  9675. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  9676. * src/HttpProxyRequestCommand.h
  9677. (executeInternal): Pass the reference of segment.
  9678. * src/DownloadCommand.cc
  9679. (executeInternal): Rewritten the code related to Segment.
  9680. (prepareForRetry): Removed.
  9681. (prepareForNextSegment): Rewritten.
  9682. * src/FtpTunnelResponseCommand.h
  9683. (executeInternal): Pass the reference of segment.
  9684. To add HTTP 1.1 persistent connection support(experimental)
  9685. * src/HttpRequestCommand.cc
  9686. (executeInternal): Disable keep alive if it is disabled by
  9687. configuration.
  9688. * src/Request.h
  9689. (keepAlive): New variable.
  9690. (isKeepAlive): New function.
  9691. (setKeepAlive): New function.
  9692. * src/pref.h
  9693. (PREF_HTTP_KEEP_ALIVE): New definition.
  9694. * src/HttpResponseCommand.cc
  9695. (executeInternal): Check the remote server supports keep alive.
  9696. * src/HttpConnection.cc
  9697. (createRequest): Send "Connection: close" only if keep alive is
  9698. disabled.
  9699. * src/main.cc
  9700. (main):
  9701. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  9702. To add max download speed limit:
  9703. * src/pref.h
  9704. (PREF_MAX_SPEED_LIMIT): New definition.
  9705. * src/PeerInteractionCommand.cc
  9706. (executeInternal): Added max download speed limit. Not tested yet.
  9707. * src/SegmentMan.h
  9708. (PeerStats): New type definition.
  9709. (peerStats): New variable.
  9710. (registerPeerStat): New function.
  9711. (FindPeerStat): New function object.
  9712. (getPeerStat): New function.
  9713. (calculateDownloadSpeed): New function.
  9714. * src/SpeedCalc.h: New class.
  9715. * src/SpeedCalc.cc: New class.
  9716. * src/main.cc
  9717. (main):
  9718. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  9719. download speed is not restricted).
  9720. * src/PeerStat.h: New class.
  9721. * src/SegmentMan.cc
  9722. (registerPeerStat): New function.
  9723. (calculateDownloadSpeed): New function.
  9724. * src/DownloadCommand.cc
  9725. (STARTUP_IDLE_TIME): New definition.
  9726. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  9727. downloadStart.
  9728. (~DownloadCommand): Call peerStat->downloadStop.
  9729. (executeInternal): Added download speed limitter. Rewritten lowest
  9730. speed limitter.
  9731. * src/HttpConnection.cc
  9732. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  9733. * src/AbstractCommand.cc
  9734. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  9735. Added hostname to the error message.
  9736. * src/ConsoleDownloadEngine.cc
  9737. (calculateStatistics): Initialize psize with dlSize.
  9738. * src/PieceMessage.cc
  9739. (receivedAction): Do not call peerInteraction->abortPiece here.
  9740. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  9741. * src/BitfieldMan.h
  9742. (clearAllUseBit): New function.
  9743. (setAllUseBit): New function.
  9744. * src/BitfieldMan.cc
  9745. (clearAllBit): Do not clear useBitfield here.
  9746. (clearAllUseBit): New function.
  9747. (setAllUseBit): New function.
  9748. * src/Piece.cc
  9749. (clearAllBlock): Call bitfield->clearAllUseBit().
  9750. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9751. To make filename URL-decoded:
  9752. * src/HttpResponseCommand.h: Updated doc.
  9753. * src/HttpResponseCommand.cc
  9754. (determinFilename): Made filename URL-decoded.
  9755. * src/FtpInitiateConnectionCommand.cc
  9756. (executeInternal): Made filename URL-decoded.
  9757. * src/Util.h (urldecode): New function.
  9758. * src/Util.cc (urldecode): New function.
  9759. To fix a bug that caused assertion failure in ares_strerror:
  9760. * src/NameResolver.cc (callback): Fixed the bug.
  9761. * Release 0.7.3
  9762. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9763. To add --seed-time and --seed-ratio command-line option:
  9764. * src/Option.h (getAsDouble): New function.
  9765. * src/Option.cc (getAsDouble): New function.
  9766. * src/SeedCheckCommand.h: New class.
  9767. * src/SeedCheckCommand.cc: New class.
  9768. * src/DownloadEngineFactory.cc
  9769. (SeedCheckCommand.h): Included.
  9770. (UnionSeedCriteria.h): Included.
  9771. (TimeSeedCriteria.h): Included.
  9772. (ShareRatioSeedCriteria.h): Included.
  9773. (newTorrentConsoleEngine): Added the processing of seed option.
  9774. * src/SeedCriteria.h: New class.
  9775. * src/ShareRatioSeedCriteria.h: New class.
  9776. * src/TimeSeedCriteria.h: New class.
  9777. * src/UnionSeedCriteria.h: New class.
  9778. * src/prefs.h
  9779. (PREF_SEED_TIME): New definition.
  9780. (PREF_SEED_RATIO): New definition.
  9781. * src/main.cc
  9782. (showUsage): Added --seed-time and --seed-ratio option.
  9783. (main): Added --seed-time and --seed-ratio option.
  9784. Made default log file name "/dev/null".
  9785. * src/SharedHandle.h
  9786. (SharedHandle): Copy constructor. Made it assignable from the
  9787. SharedHandle of the subclasses.
  9788. (operator=): Made it assignable from the SharedHandle of the
  9789. subclasses.
  9790. (getRefCount): New function.
  9791. To add notice log level and the switch to write log to stdout. This
  9792. switch is configurable per log level.
  9793. * src/Logger.h
  9794. (notice): New function.
  9795. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  9796. constant.
  9797. * src/LogFactory.cc
  9798. (getInstance): The use of NullLogger was removed. A log message with
  9799. notice log level was made written to stdout along with log file.
  9800. * src/NullLogger.h
  9801. (notice): New function.
  9802. * src/SimpleLogger.h
  9803. (writeHeader): Added the 'file' argument.
  9804. (writeLog): Added the 'file' argument.
  9805. (writeFile): New function.
  9806. (stdoutField): New variable.
  9807. (SimpleLogger): Removed the default constructor.
  9808. (SimpleLogger): Made the default value of logfile 0.
  9809. (debug): Added 'virtual' keyword.
  9810. (info): Added 'virtual' keyword.
  9811. (warn): Added 'virtual' keyword.
  9812. (error): Added 'virtual' keyword.
  9813. (notice): New function.
  9814. (setStdout): New function.
  9815. * src/SimpleLogger.cc
  9816. (WRITE_LOG): Replaced writeLog with writeFile.
  9817. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  9818. (SimpleLogger): Removed the default constructor.
  9819. (setStdout): New function.
  9820. (writeLog): Added the handling of NOTICE log level.
  9821. (writeFile): New function.
  9822. (notice): New function.
  9823. * src/TorrentMan.h: Updated doc.
  9824. * src/BitfieldMan.h: Updated doc.
  9825. * src/TrackerWatcherCommand.cc
  9826. (execute): Return true if error occurred in the request to the tracker
  9827. and halt is requested.
  9828. * src/TrackerUpdateCommand.cc
  9829. (execute): Return true if error occurred in the request to the tracker
  9830. and halt is requested.
  9831. To call onDownloadComplete from TorrentMan::completePiece(), not from
  9832. DownloadEngine:
  9833. * src/TorrentConsoleDownloadEngine.h
  9834. (onSelectiveDownloadingCompletes): Removed.
  9835. * src/TorrentConsoleDownloadEngine.cc
  9836. (onSelectiveDownloadingCompletes): Removed.
  9837. * src/TorrentDownloadEngine.h
  9838. (onEndOfRun): Added 'virtual' keyword.
  9839. (afterEachIteration): Removed.
  9840. (onSelectiveDownloadingCompletes): Removed.
  9841. * src/TorrentDownloadEngine.cc
  9842. (onEndOfRun): Removed filenameFixed.
  9843. (afterEachIteration): Removed.
  9844. * src/TorrentMan.cc
  9845. (completePiece): Call onDownloadComplete here.
  9846. (onDownloadComplete): Added 2 log messages.
  9847. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  9849. * src/NameResolver.h: Added the prototype declaration of callback().
  9850. To support c-ares library:
  9851. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9852. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9853. * src/FtpInitiateConnectionCommand.h:
  9854. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9855. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9856. * src/HttpInitiateConnectionCommand.h:
  9857. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9858. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  9859. Added thes upport of c-ares's ares_strerror(the idea came from patch
  9860. #1542285 by tizianomueller)
  9861. * src/HttpInitiateConnectionCommand.cc:
  9862. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9863. * src/FtpInitiateConnectionCommand.cc:
  9864. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9865. * src/DownloadEngine.h:
  9866. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9867. * src/DownloadEngine.cc:
  9868. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9869. To fix the bug that causes compilation failure with metalink-support
  9870. disabled(bug#1543587):
  9871. * src/main.cc: Fixed with the patch by tizianomueller.
  9872. * Release 0.7.2
  9873. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9874. * src/main.cc
  9875. (main): Added a message to inform users that aria2 is starting to
  9876. verify checksum.
  9877. * src/RequestInfo.cc
  9878. (printDownloadAbortMessage): Added a message to inform users that
  9879. transfer can be resumed.
  9880. * src/FeatureConfig.cc
  9881. (FEATURE_ASYNC_DNS): New definition.
  9882. (FeatureConfig): Added aysnc DNS entry.
  9883. To replace CommandUuid with Command* in SocketEntry and
  9884. NameResolverEntry:
  9885. * src/DownloadEngine.h
  9886. (CommandUuids): Removed.
  9887. (SocketEntry::commandUuid): Removed.
  9888. (SocketEntry::command): New variable.
  9889. (SocketEntry::SocketEntry): Updated.
  9890. (SocketEntry::operator==): Updated.
  9891. (NameResolverEntry::commandUuid): Removed.
  9892. (NameResolverEntry::command): New variable.
  9893. (NameResolverEntry::NameResolverEntry): Updated.
  9894. (NameResolverEntry::operator==): Updated.
  9895. (waitData): Changed the argument type.
  9896. (addSocketForReadCheck): Changed the argument type.
  9897. (deleteSocketForReadCheck): Changed the argument type.
  9898. (addSocketForWriteCheck): Changed the argument type.
  9899. (deleteSocketForWriteCheck): Changed the argument type.
  9900. (addNameResolverCheck): Changed the argument type.
  9901. (deleteNameResolverCheck): Changed the argument type.
  9902. * src/DownloadEngine.cc
  9903. (FindCommand): Removed.
  9904. (run): Removed activeUuid. Added activeCommands instead.
  9905. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  9906. (AccumulateActiveCommand): New function object.
  9907. (waitData): Use AccumulateActiveCommand.
  9908. (addSocketForReadCheck): Use Command instead of CommandUuid.
  9909. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  9910. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  9911. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  9912. (addNameResolverCheck): Use Command instead of CommandUuid.
  9913. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  9914. * src/AbstractCommand.cc
  9915. (disableReadCheckSocket): Updated according to the changes in
  9916. DownloadEngine.
  9917. (setReadCheckSocket): Updated according to the changes in
  9918. DownloadEngine.
  9919. (disableWriteCheckSocket): Updated according to the changes in
  9920. DownloadEngine.
  9921. (setWriteCheckSocket): Updated according to the changes in
  9922. DownloadEngine.
  9923. (setNameResolverCheck): Updated according to the changes in
  9924. DownloadEngine.
  9925. (disableNameResolverCheck): Updated according to the changes in
  9926. DownloadEngine.
  9927. * src/AbstractCommand.cc
  9928. (disableReadCheckSocket): Updated according to the changes in
  9929. DownloadEngine.
  9930. (setReadCheckSocket): Updated according to the changes in
  9931. DownloadEngine.
  9932. (disableWriteCheckSocket): Updated according to the changes in
  9933. DownloadEngine.
  9934. (setWriteCheckSocket): Updated according to the changes in
  9935. DownloadEngine.
  9936. * release 0.7.1
  9937. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9938. To handle the case where some BitTorrent tracker requires all letters
  9939. except for [A-Za-z0-9] is URL encoded.
  9940. * src/Util.h
  9941. (torrentUrlencode): New function.
  9942. * src/Util.cc
  9943. (ctype.h): Included.
  9944. (torrentUrlencode): New function.
  9945. * src/TrackerWatcherCommand.cc
  9946. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  9947. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9948. To add asynchronous DNS support(libares):
  9949. * src/AbstractCommand.h
  9950. (setNameResolverCheck): New function.
  9951. (disableNameResolverCheck): New function
  9952. (resolveHostname): New function.
  9953. * src/AbstractCommand.cc
  9954. (setNameResolverCheck): New function.
  9955. (disableNameResolverCheck): New function
  9956. (resolveHostname): New function.
  9957. * src/FtpInitiateConnectionCommand.h
  9958. (nameResolver): New function.
  9959. * src/FtpInitiateConnectionCommand.cc
  9960. (Util.h): Included.
  9961. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  9962. disableWriteCheckSocket.
  9963. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  9964. (executeInternal): Added async DNS support.
  9965. * src/HttpInitiateConnectionCommand.h
  9966. (nameResolver): New function.
  9967. * src/HttpInitiateConnectionCommand.cc
  9968. (DlRetryEx.h): Included.
  9969. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  9970. disableWriteCheckSocket.
  9971. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  9972. (executeInternal): Added async DNS support.
  9973. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  9974. by extern "C" declaration.
  9975. * src/NameResolver.cc: New class.
  9976. * src/Util.h:
  9977. (isNumberAndDotsNotation): New function
  9978. * src/Util.cc
  9979. (isNumberAndDotsNotation): New function.
  9980. * src/DownloadEngine.h
  9981. (NameResolver.h): Included.
  9982. (NameResolverEntry): New class.
  9983. (NameResolverEntries): New type definition.
  9984. (addNameResolverCheck): New function.
  9985. (deleteNameResolverCheck): New function.
  9986. * src/DownloadEngine.cc
  9987. (run): Initialize cp with 0.
  9988. (SetDescriptor::operator()): Added for NameResolverEntry.
  9989. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  9990. (waitData): Check nameResolver entries.
  9991. (updateFdSet): Update fds in nameResolver entries.
  9992. (addNameResolverCheck): New function.
  9993. (deleteNameResolverCheck): new function.
  9994. * src/PeerInteractionCommand.cc
  9995. (executeInternal): Fixed wrong socket handling.
  9996. * src/main.cc
  9997. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  9998. * src/Util.cc
  9999. (fileChecksum): Removed the call to ctx.digestReset().
  10000. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10001. * po/ru.po: Azamat sent me Russian translation.
  10002. * src/FtpNegotiateCommand.cc
  10003. (recvGreeting): Call disableWriteCheckSocket just after
  10004. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10005. (recvRetr): Recognized status code 125 as a acceptable response code.
  10006. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10007. case-insesitive filesystem(BUG#1531057).
  10008. * src/Time.h: Renamed as TimeA2.h.
  10009. * src/Time.cc: Renamed as TimeA2.cc.
  10010. * src/TimeA2.h: New class.
  10011. * src/TimeA2.cc: New class.
  10012. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10013. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10014. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10015. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10016. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10017. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10018. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10019. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10020. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10021. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10022. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10023. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10024. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10025. * release 0.7.0
  10026. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10027. * src/PeerChokeCommand.h
  10028. (PeerChokeCommand): Rearranged the arguments.
  10029. * src/PeerChokeCommand.cc
  10030. (PeerChokeCommand): Rearranged the arguments.
  10031. * src/MetalinkEntry.h
  10032. (Checksum.h): Included.
  10033. (md5): Removed.
  10034. (sha1): Removed.
  10035. (checksum): New variable.
  10036. (operator=): Updated.
  10037. (check): Removed.
  10038. * src/prefs.h
  10039. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10040. (PREF_FOLLOW_TORRENT): New definition.
  10041. (PREF_SELECT_FILE): New definition.
  10042. (PREF_FOLLOW_METALINK): New definition.
  10043. * src/MetalinkResource.h
  10044. (TYPE_HTTPS): Added to enum TYPE.
  10045. * src/TorrentMan.cc
  10046. (~TorrentMan): Rewritten.
  10047. * src/MultiDiskWriter.cc
  10048. (MultiDiskAdaptor): Updated according to the changes in
  10049. MessageDigestContext.
  10050. (~MultiDiskAdaptor): Updated according to the changes in
  10051. MessageDigestContext.
  10052. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10053. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10054. * src/Util.h
  10055. (fileChecksum): Updated according to the changes in
  10056. MessageDigestContext.
  10057. * src/Util.cc
  10058. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10059. (fileChecksum): Updated according to the changes in
  10060. MessageDigestContext.
  10061. * src/messageDigest.h: Rewritten.
  10062. * src/MetalinkEntry.cc
  10063. (check): Removed.
  10064. (Supported): Updated.
  10065. (dropUnsupportedResource): Fixed a memory leak.
  10066. * src/ShaVisitor.cc
  10067. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10068. (~ShaVisitor): Updated according to the changes in
  10069. MessageDigestContext.
  10070. (visit): Updated according to the changes in MessageDigestContext.
  10071. * src/main.cc
  10072. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10073. command-line option added.
  10074. * src/DownloadEngine.h
  10075. (SocketEntry): New class.
  10076. (SocketEntries): New definition.
  10077. (PairFind): Removed.
  10078. (SockCmdMap): Removed.
  10079. * src/DownloadEngine.cc
  10080. (DownloadEngine): Rewritten.
  10081. (~DownloadEngine): Rewritten.
  10082. (run): Renamed activeCommandUuids as activeUuids.
  10083. (SetDescriptor): Rewritten.
  10084. (AccumulateActiveCommandUuid): Removed.
  10085. (AccumulateActiveUuid): New function object.
  10086. (waitData): Rewritten.
  10087. (updateFdSet): Rewritten.
  10088. (addSocket): Rewritten.
  10089. (deleteSocket): Rewritten.
  10090. (addSocketForReadCheck): Rewritten.
  10091. (deleteSocketForReadCheck): Rewritten.
  10092. (addSocketForWriteCheck): Rewritten.
  10093. (deleteSocketForWriteCheck): Rewritten.
  10094. * src/Xml2MetalinkProcessor.cc
  10095. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10096. * src/DownloadCommand.cc
  10097. (executeInternal): Added the check routine for lowest speed limit.
  10098. * src/AbstractDiskWriter.cc
  10099. (AbstractDiskWriter): Updated according to the changes in
  10100. MessageDigestContext.
  10101. (~AbstractDiskWriter): Updated according to the changes in
  10102. MessageDigestContext.
  10103. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10104. * src/RequestInfo.h: New class.
  10105. * src/UrlRequestInfo.h: New class.
  10106. * src/UrlRequestInfo.cc: New class.
  10107. * src/TorrentRequestInfo.h: New class.
  10108. * src/TorrentRequestInfo.cc: New class.
  10109. * src/MetalinkRequestInfo.h: New class.
  10110. * src/MetalinkRequestInfo.cc: New class.
  10111. * src/Checksum.h: New class.
  10112. * src/DownloadEngineFactory.h: New class.
  10113. * src/DownloadEngineFactory.cc: New class.
  10114. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10115. * src/Option.h
  10116. (getAsBool): New function.
  10117. * src/Option.cc
  10118. (prefs.h): Included.
  10119. (defined): 0-length value is now recognized as undefined.
  10120. (getAsInt): Rewritten.
  10121. (getAsLLInt): Rewritten.
  10122. (getAsBool): New function.
  10123. * src/FeatureConfig.h: Rewritten.
  10124. * src/FeatureConfig.cc: Rewritten.
  10125. * src/prefs.h
  10126. (PREF_STDOUT_LOG): New definition.
  10127. (PREF_LOG): New definition.
  10128. (PREF_DIR): New definition.
  10129. (PREF_OUT): New definition.
  10130. (PREF_SPLIT): New definition.
  10131. (PREF_DAEMON): New definition.
  10132. (PREF_REFERER): New definition.
  10133. (PREF_TORRENT_FILE): New definition.
  10134. (PREF_LISTEN_PORT): New definition.
  10135. (PREF_METALINK_FILE): New definition.
  10136. (PREF_METALINK_VERSION): New definition.
  10137. (PREF_METALINK_LANGUAGE): New definition.
  10138. (PREF_METALINK_OS): New definition.
  10139. (PREF_METALINK_SERVERS): New definition.
  10140. * src/main.cc
  10141. (main): Following command-line parameters are now put into Option
  10142. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10143. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10144. metalinkLanguage, metalinkOs, metalinkServers
  10145. To fix the bug that aria2 can not handle http response header properly.
  10146. * src/HttpHeader.cc
  10147. (put): Made name lowercased.
  10148. (defined): Made name lowercased.
  10149. (getFirst): Made name lowercased.
  10150. (get): Made name lowercased.
  10151. (getFirstAsInt): Rewritten.
  10152. (getFirstAsLLInt): Rewritten.
  10153. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10154. * src/TorrentMan.h:
  10155. (advertisePiece): Updated doc.
  10156. (getAdvertisedPieceIndexes): Updated doc.
  10157. (removeAdvertisedPiece); New function.
  10158. * src/TorrentMan.cc
  10159. (FindElapsedHave): New function object.
  10160. (removeAdvertisedPiece): New function.
  10161. * src/HaveEraseCommand.h: New class.
  10162. * src/HaveEraseCommand.cc: New class.
  10163. * src/FeatureConfig.h: New class.
  10164. * src/FeatureConfig.cc: New class.
  10165. * src/Request.h
  10166. (defaultPorts): Removed.
  10167. * src/Request.cc
  10168. (FeatureConfig.h): Included.
  10169. (Request): Removed the statements related to defaultPorts.
  10170. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10171. A default port number is now retrieved from FeatureConfig.
  10172. * src/main.cc
  10173. (HaveEraseCommand.h): Included.
  10174. (showVersion): Added the output of feature list.
  10175. (main): Added HaveEraseCommand to command queue in BitTorrent
  10176. downloading.
  10177. * src/PeerInteractionCommand.h
  10178. (chokeCheckPoint): Commented out.
  10179. (periodicExecPoint): New variable.
  10180. * src/PeerInteractionCommand.cc
  10181. (executeInternal): Following methods are now called in at least every
  10182. 0.5 seconds to reduce CPU usage:
  10183. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  10184. checkHave(), sendKeepAlive().
  10185. (checkLongTimePeerChoking): Commented out.
  10186. * src/BitfieldMan.h
  10187. (getNthBitIndex): Changed the method signature.
  10188. (getMissingIndexRandomly): Changed the method signature.
  10189. * src/BitfieldMan.cc
  10190. (getNthBitIndex): Rewritten
  10191. (getMissingIndexRandomly): Rewritten.
  10192. (hasMissingPiece): Rewritten.
  10193. (getMissingIndex): Refactored.
  10194. (getMissingUnusedIndex); Refactored.
  10195. (getMissingIndex): Refactored.
  10196. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10197. * src/PeerMessage.h
  10198. (Piece.h): Included.
  10199. (SharedHandle.h): Included.
  10200. (invalidate): New variable.
  10201. (uploading): New variable.
  10202. (isInvalidate): New function.
  10203. (isUploading): New function.
  10204. (onPush): New function.
  10205. (onChoked): New function.
  10206. (onCanceled): New function.
  10207. (onAbortPiece): New function.
  10208. (PeerMessageHandle): New type definition.
  10209. * src/PeerMessage.cc
  10210. (PeerMessage): Added the initialization for invalidate and uploading.
  10211. * src/CancelMessage.h
  10212. (CancelMessage): Rewritten.
  10213. * src/RejectMessage.h
  10214. (RejectMessage): Rewritten.
  10215. * src/Metalinker.h
  10216. (operator=): Defined.
  10217. * src/MetaEntry.h
  10218. (operator=): Defined.
  10219. * src/MetalinkResource.h
  10220. (operator=): Defined.
  10221. * src/AllowedFastMessage.h
  10222. (AllowedFastMessage): Rewritten.
  10223. * src/HandshakeMessage.h
  10224. (HandshakeMessage): New function(overload).
  10225. * src/HandshakeMessage.cc
  10226. (HandshakeMessage): Rewritten.
  10227. (init): New function.
  10228. * src/HaveMessage.h
  10229. (HaveMessage): Rewritten.
  10230. * src/Time.h
  10231. (operator=): Defined the function body here.
  10232. * src/Time.cc
  10233. (operator=): Removed.
  10234. * src/SocketCore.h
  10235. (operator==): Defined here.
  10236. (operator!=): Defined here.
  10237. (operator<): Defined here.
  10238. * src/SocketCore.cc
  10239. (operator==): Removed.
  10240. (operator<): Removed.
  10241. * src/BitfieldMan.h
  10242. (operator=): Defined the function body here.
  10243. * src/BitfieldMan.cc
  10244. (operator=): Removed.
  10245. * src/TorrentMan.h
  10246. (deleteErrorPeer): Removed.
  10247. (deleteUnusedPeer); New function.
  10248. * src/TorrentMan.cc
  10249. (addPeer): Call deleteUnusedPeer.
  10250. (deleteErrorPeer): Removed.
  10251. (deleteUnusedPeer): New function.
  10252. * src/PeerAbstractCommand.h
  10253. (setNoCheck): New function.
  10254. (noCheck): New variable.
  10255. * src/PeerAbstractCommand.cc
  10256. (PeerAbstractCommand): Added the initialization of noCheck.
  10257. (execute): Added a check for noCheck.
  10258. (setNoCheck): New function.
  10259. * src/Util.h
  10260. (stdio.h): Included.
  10261. * src/Util.cc
  10262. (unistd.h): Included.
  10263. * src/DefaultDiskWriter.cc
  10264. (unistd.h): Included.
  10265. * src/Peer.h
  10266. (operator==): Defined the function body here.
  10267. (operator!=): Defined the function body here.
  10268. * src/Peer.cc
  10269. (operator==): Removed.
  10270. (operator!=): Removed.
  10271. * src/Piece.h
  10272. (Piece): Defined the function body here(copy constructor).
  10273. (operator=): Defined the function body here.
  10274. (operator==): Defined the function body here.
  10275. * src/Piece.cc
  10276. (Piece): Removed(copy constructor).
  10277. (operator=): Removed.
  10278. (operator==): Removed.
  10279. * src/PeerMessageUtil.h
  10280. (ChokeMessage.h): Removed.
  10281. (UnchokeMessage.h): Removed.
  10282. (InterestedMessage.h): Removed.
  10283. (NotInterestedMessage.h): Removed.
  10284. (HaveMessage.h): Removed.
  10285. (BitfieldMessage.h): Removed.
  10286. (RequestMessage.h): Removed.
  10287. (CancelMessage.h): Removed.
  10288. (PieceMessage.h): Removed.
  10289. (HandshakeMessage.h): Removed.
  10290. (KeepAliveMessage.h): Removed.
  10291. (PortMessage.h): Removed.
  10292. (HaveAllMessage.h): Removed.
  10293. (HaveNoneMessage.h): Removed.
  10294. (PeerConnection.h): Removed.
  10295. (HandshakeMessage.h): Included.
  10296. * src/BitfieldMessage.h
  10297. (init): New function.
  10298. (BitfieldMessage): Rewritten.
  10299. (BitfieldMessage): New function(overload).
  10300. * src/RequestSlot.h
  10301. (operator=): Defined the function body here.
  10302. (operator==): Defined the function body here.
  10303. * src/RequestSlot.cc
  10304. (operator=): Removed.
  10305. (operator==): Removed.
  10306. To remove the dependency on the PeerMessage subclass from
  10307. PeerInteraction:
  10308. * src/PeerMessageFactory.h: New class.
  10309. * src/PeerMessageFactory.cc: New class.
  10310. * src/SimplePeerMessage.cc
  10311. (send): If invalidate is true then do nothing.
  10312. * src/PeerInteractionCommand.cc
  10313. (HandshakeMessage.h): Included.
  10314. (KeepAliveMessage.h): Included.
  10315. (ChokeMessage.h): Included.
  10316. (UnchokeMessage.h): Included.
  10317. (HaveMessage.h): Included.
  10318. (executeInternal): Call setNoCheck().
  10319. Removed setWriteCheckSocket(socket).
  10320. * src/PeerInteraction.h
  10321. (ChokeMessage.h): Removed.
  10322. (UnchokeMessage.h): Removed.
  10323. (InterestedMessage.h): Removed.
  10324. (NotInterestedMessage.h): Removed.
  10325. (HaveMessage.h): Removed.
  10326. (BitfieldMessage.h): Removed.
  10327. (RequestMessage.h): Removed.
  10328. (CancelMessage.h): Removed.
  10329. (PieceMessage.h): Removed.
  10330. (HandshakeMessage.h): Removed.
  10331. (KeepAliveMessage.h): Removed.
  10332. (PortMessage.h): Removed.
  10333. (HaveAllMessage.h): Removed.
  10334. (HaveNoneMessage.h): Removed.
  10335. (RejectMessage.h): Removed.
  10336. (AllowedFastMessage.h): Removed.
  10337. (SuggestPieceMessage.h): Removed.
  10338. (PeerMessageFactory.h): Included.
  10339. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10340. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10341. (PeerMessageFactory): New variable.
  10342. (createPeerMessage): Removed.
  10343. (createHandshakeMessage): Removed.
  10344. (setPeerMessageCommonProperty): Removed.
  10345. (addRequestSlot): New function.
  10346. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10347. (getPeerMessageFactory): New function.
  10348. (createRequestMessage): Removed.
  10349. (createCancelMessage): Removed.
  10350. (createPieceMessage): Removed.
  10351. (createHaveMessage): Removed.
  10352. (createChokeMessage): Removed.
  10353. (createUnchokeMessage): Removed.
  10354. (createInterestedMessage): Removed.
  10355. (createNotInterestedMessage): Removed.
  10356. (createBitfieldMessage): Removed.
  10357. (createKeepAliveMessage): Removed.
  10358. (createHaveAllMessage): Removed.
  10359. (createHaveNoneMessage): Removed.
  10360. (createRejectMessage): Removed.
  10361. (createAllowedFastMessage): Removed.
  10362. * src/PeerInteraction.cc
  10363. (PeerInteraction): Allocate PeerMessageFactory here.
  10364. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10365. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10366. PieceMessage::ID.
  10367. (addMessage): Simplified by using PeerMessage::onPush().
  10368. (addRequestSlot): New function.
  10369. (rejectAllPieceMessageInQueue): Simplified by using
  10370. PeerMessage::onChoked().
  10371. (rejectPieceMessageInQueue): Simplified by using
  10372. PeerMessage::onCanceled().
  10373. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10374. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10375. (createHandshakeMessage): Removed.
  10376. (createPeerMessage): Removed.
  10377. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10378. (setPeerMessageCommonProperty): Removed.
  10379. (createRequestMessage): Removed.
  10380. (createCancelMessage): Removed.
  10381. (createPieceMessage): Removed.
  10382. (createHaveMessage): Removed.
  10383. (createChokeMessage): Removed.
  10384. (createUnchokeMessage): Removed.
  10385. (createInterestedMessage): Removed.
  10386. (createNotInterestedMessage): Removed.
  10387. (createBitfieldMessage): Removed.
  10388. (createKeepAliveMessage): Removed.
  10389. (createHaveAllMessage): Removed.
  10390. (createHaveNoneMessage): Removed.
  10391. (createRejectMessage): Removed.
  10392. (createAllowedFastMessage): Removed.
  10393. * src/PieceMessage.h
  10394. (createRejectMessage): New function.
  10395. (PieceMessage): Rewritten.
  10396. (onChoked): New function.
  10397. (onCanceled): New function.
  10398. * src/PieceMessage.cc
  10399. (send): If invalidate is true then do nothing, just return.
  10400. (createRejectMessage): New function.
  10401. (onChoked): New function.
  10402. (onCanceled): New function.
  10403. * src/RequestMessage.h
  10404. (RequestMessage): Rewritten.
  10405. (onPush): New function.
  10406. (onAbortPiece): New function.
  10407. * src/RequestMessage.cc
  10408. (onPush): New function.
  10409. (onAbortPiece): New function.
  10410. Update fd_set when a socket is added or deleted in order to improve
  10411. performance:
  10412. * src/DownloadEngine.h
  10413. (rfdset): New variable.
  10414. (wfdset): New variable.
  10415. (updateFdSet): New function.
  10416. * src/DownloadEngine.cc
  10417. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  10418. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  10419. (waitData): Copy rfdset and wfdset.
  10420. (updateFdSet): New function.
  10421. (addSocket): Call updateFdSet.
  10422. (deleteSocket): Call updateFdSet.
  10423. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10424. To add the support for Metalink3.0 backward compatible links:
  10425. * src/Request.h
  10426. (SAFE_CHARS): Added '#'.
  10427. (METALINK_MARK): New definition.
  10428. * src/Request.cc
  10429. (parseUrl): Added the support for Metalink3.0 backward compatible
  10430. links.
  10431. etc
  10432. * src/PeerInteraction.cc
  10433. (MsgPushBack): Removed.
  10434. (sendMessages): Use STL copy and back_inserter.
  10435. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  10436. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  10437. * src/TorrentMan.h
  10438. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  10439. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10440. * src/SharedHandle.h: New class.
  10441. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  10442. * src/HttpResponseCommand.h
  10443. (HttpResponseCommand): Wrapped Socket.
  10444. * src/SocketCore.h
  10445. (operator==): New function.
  10446. (operator!=): New function.
  10447. (operator<): New function.
  10448. (getSockfd): New function.
  10449. (isOpen): New function.
  10450. (writeData): New function.
  10451. * src/SocketCore.cc
  10452. (operator==): New function.
  10453. (operator!=): New function.
  10454. (operator<): New function.
  10455. * src/AbstractCommand.h
  10456. (socket): Changed its type to SocketHandle.
  10457. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10458. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10459. (disableReadCheckSocket): New function.
  10460. (disableWriteCheckSocket): New function.
  10461. (readCheckTarget): Changed its type to SocketHandle.
  10462. (writeCheckTarget): Changed its type to SocketHandle.
  10463. (AbstractCommand): Replaced Socket with SocketHandle.
  10464. * src/AbstractCommand.cc
  10465. (AbstractCommand): Replaced Socket with SocketHandle.
  10466. (~AbstractCommand): Removed the deallocation for Socket object.
  10467. (disableReadCheckSocket): New function.
  10468. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10469. (disableWriteCheckSocket): New function.
  10470. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10471. * src/HttpDownloadCommand.cc
  10472. (DownloadCommand): Replaced Socket with SocketHandle.
  10473. * src/PeerAbstractCommand.h
  10474. (socket): Changed its type to SocketHandle.
  10475. (peer): Changed its type to PeerHandle.
  10476. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10477. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10478. (disableReadCheckSocket): New function.
  10479. (disableWriteCheckSocket): New function.
  10480. (readCheckTarget): Changed its type to SocketHandle.
  10481. (writeCheckTarget): Changed its type to SocketHandle.
  10482. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10483. Replaced Peer with PeerHandle.
  10484. * src/HttpRequestCommand.cc
  10485. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10486. Use disableReadCheckSocket.
  10487. * src/PeerInitiateConnectionCommand.h
  10488. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10489. * src/PeerChokeCommand.cc
  10490. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  10491. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  10492. (execute): Use PeerHandle.
  10493. * src/PeerConnection.h
  10494. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  10495. (socket): Changed its type to SocketHandle.
  10496. (PeerConnection): Replaced Socket with SocketHandle.
  10497. * src/PeerConnection.cc
  10498. (PeerConnection): Replaced Socket with SocketHandle.
  10499. * src/PeerInteractionCommand.h
  10500. (PeerInteractionCommand): Replaced socket with SocketHandle.
  10501. Replaced Peer with PeerHandle.
  10502. * src/PeerInteractionCommand.cc
  10503. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  10504. Replaced Peer with PeerHandle.
  10505. (executeInternal): Use disableWriteCheckSocket.
  10506. Use HandshakeMessageHandle.
  10507. (receiveMessages): Use PeerMessageHandle.
  10508. (prepareForNextPeer): Use PeerHandle.
  10509. * src/HttpProxyRequestCommand.h
  10510. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10511. * src/HttpResponseCommand.cc
  10512. (HttpResponseCommand): Replaced Socket with SocketHandle.
  10513. * src/TorrentMan.cc
  10514. (nullPeer): Added external reference.
  10515. (~TorrentMan): Removed the deallocation of the elements of peers.
  10516. (addPeer): Rewritten.
  10517. (isPeerAvailable): Use nullPeer.
  10518. (deleteOldpeers): Replaced with deleteErrorPeer.
  10519. (deleteErrorPeer): New function.
  10520. (getPeer): Use PeerHandle and nullPeer.
  10521. (hasMissingPiece): Replaced Peer with PeerHandle.
  10522. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10523. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10524. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10525. (getMissingPiece): Replaced Peer with PeerHandle.
  10526. * src/FtpNegotiateCommand.cc
  10527. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  10528. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  10529. (recvGreeting): Use disableWriteCheckSocket.
  10530. (recvPasv): Removed the allocation of Socket.
  10531. Use disableReadCheckSocket.
  10532. (sendRestPasv): Use disableWriteCheckSocket.
  10533. (recvRetr): Changed assertion.
  10534. * src/PeerInteraction.h
  10535. (SharedHandle.h): Included SharedHandle.h.
  10536. (PeerMessageHandle): New type definition.
  10537. (HandshakeMessageHandle): New type definition.
  10538. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  10539. (peer): Changed its type to PeerHandle.
  10540. (createHandshakeMessage): Replaced HandshakeMessage with
  10541. HandshakeMessageHandle.
  10542. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  10543. (PeerInteraction): Replaced Peer with PeerHandle.
  10544. Replaced Socket with SocketHandle.
  10545. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10546. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10547. (receiveHandshake): Replaced HandshakeMessage with
  10548. HandshakeMessageHandle.
  10549. * src/PeerInteraction.cc
  10550. (PeerInteraction): Replaced Peer with PeerHandle.
  10551. Replaced Socket with SocketHandle.
  10552. (~PeerInteraction): Removed the deallocation of the elements of
  10553. messageQueue.
  10554. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  10555. (isSendingMessageInProgress): Replaced PeerMessage with
  10556. PeerMessageHandle.
  10557. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  10558. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10559. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  10560. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  10561. (abortPiece): Use PeerMessageHandle.
  10562. (receiveHandshake): Replaced HandshakeMessage with
  10563. HandshakeMessageHandle. Removed try-catch block.
  10564. (createHandshakeMessage): Replaced HandshakeMessage with
  10565. HandshakeMessageHandle.
  10566. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10567. Removed try-catch block.
  10568. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  10569. * src/HttpProxyResponseCommand.cc
  10570. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10571. * src/FtpTunnelResponseCommand.h
  10572. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10573. * src/HttpConnection.cc
  10574. (HttpConnection): Replaced Socket with SocketHandle.
  10575. * src/PeerAbstractCommand.cc
  10576. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10577. (~PeerAbstractCommand): Removed the deallocation of socket.
  10578. Use disableReadCheckSocket, disableWriteCheckSocket.
  10579. (disableReadCheckSocket): New function.
  10580. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10581. (disableWriteCheckSocket): New function.
  10582. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10583. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  10584. * src/FtpTunnelRequestCommand.cc
  10585. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10586. (~FtpTunnelRequestCommand): Corrected indentation.
  10587. * src/DownloadCommand.h
  10588. (DownloadCommand): Replaced Socket with SocketHandle.
  10589. * src/PeerListenCommand.cc
  10590. (PeerListenCommand): Removed the initialization of socket.
  10591. (~PeerListenCommand): Removed the deallocation of socket.
  10592. (bindPort): Use SocketHandle.
  10593. (execute): Use SocketHandle and PeerHandle.
  10594. * src/FtpDowndloadCommand.cc
  10595. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10596. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  10597. * src/main.cc
  10598. (main): Corrected indentation.
  10599. * src/HttpInitiateConnectionCommand.cc
  10600. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  10601. (executeInternal): Removed the allocation of socket.
  10602. * src/HttpRequestCommand.h
  10603. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10604. * src/FtpNegotiationCommand.h
  10605. (dataSocket): Changed its type to SocketHandle.
  10606. (serverSocket): Changed its type to SocketHandle.
  10607. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  10608. * src/TorrentMan.h
  10609. (MAX_PEER_UPDATE): Removed.
  10610. (MAX_PEERS): New definition.
  10611. (Peers): The element is now of type PeerHandle.
  10612. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  10613. (getPeer): Replaced Peer with PeerHandle.
  10614. (deleteOldErrorPeers): Removed.
  10615. (deleteErrorPeer): New function.
  10616. (hasMissingPiece): Replaced Peer with PeerHandle.
  10617. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10618. (getMissingPiece): Replaced Peer with PeerHandle.
  10619. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10620. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10621. (addActivePeer): Replaced Peer with PeerHandle.
  10622. (deleteActivePeer): Replaced Peer with PeerHandle.
  10623. Added a check for the return value of find.
  10624. * src/FtpTunnelResponseCommand.cc
  10625. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10626. * src/FtpInitiateConnectionCommand.cc
  10627. (executeInternal): Removed the allocation of socket.
  10628. * src/DownloadEngine.h
  10629. (Sockets): An element is now of type SocketHandle.
  10630. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  10631. (CommandUuids): New type definition.
  10632. (rsockets): Changed its type to SockCmdMap.
  10633. (wsockets): Changed its type to SockCmdMap.
  10634. (addSocket): Rewritten.
  10635. (deleteSocket): Rewritten.
  10636. (addSocketForReadCheck): Rewritten.
  10637. (deleteSocketForReadCheck): Rewritten.
  10638. (addSocketForWriteCheck): Rewritten.
  10639. (deleteSocketForWriteCheck): Rewritten.
  10640. (PairFind): New template class.
  10641. * src/HttpDownloadCommand.h
  10642. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  10643. * src/FtpConnection.cc
  10644. (FtpConnection): Replaced Socket with SocketHandle.
  10645. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  10646. block.
  10647. * src/InitiateConnectionCommandFactory.cc
  10648. (DlAbortEx.h): Included DlAbortEx.h.
  10649. (createInitiateConnectionCommand): Throw exception if the protocol of
  10650. requested URI is not supported.
  10651. * src/Peer.cc
  10652. (nullPeer): Changed its type to PeerHandle.
  10653. (operator==): New function.
  10654. (operator!=): New function.
  10655. * src/Peer.h
  10656. (SharedHandle.h): Included SharedHandle.h.
  10657. (operator==): New function.
  10658. (operator!=): New function.
  10659. (Peer): Added the default constructor.
  10660. Use resetStatus() to initialize member variables.
  10661. (nullPeer): Removed.
  10662. * src/TrackerUpdateCommand.cc
  10663. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  10664. with MIN_PEERS.
  10665. * src/PeerListenCommand.h
  10666. (socket): Changed its type to SocketHandle.
  10667. * src/Command.h
  10668. (CommandUuid): New type definition.
  10669. (uuid): New variable.
  10670. (uuidGen): New variable.
  10671. (Command): Added the initialization of uuid.
  10672. (getUuid): New function.
  10673. * src/Socket.h
  10674. (Socket): Removed.
  10675. (SocketHandle): New type definition.
  10676. * src/DownloadEngine.h
  10677. (FindCommand): New function object.
  10678. (run): The portion of socket check was rewritten.
  10679. (SetDescriptor): New function object.
  10680. (AccumulateActiveCommandUuid): New function object.
  10681. (waitData): Rewritten.
  10682. (addSocket): Rewritten.
  10683. (deleteSocket): Rewritten.
  10684. (addSocketForReadCheck): Rewritten.
  10685. (addSocketForWriteCheck): Rewritten.
  10686. (deleteSocketForReadCheck): Rewritten.
  10687. (deleteSocketForWriteCheck): Rewritten.
  10688. * src/HttpProxyResponseCommand.h
  10689. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  10690. * src/HttpConnection.h
  10691. (socket): Changed its type to SocketHandle.
  10692. (HttpConnection): Replaced Socket with SocketHandle.
  10693. * src/PeerInitiateConnectionCommand.cc
  10694. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10695. (executeInternal): Removed the allocation of socket.
  10696. (prepareForNextPeer): Use PeerHandle.
  10697. * src/PeerMessage.h
  10698. (peer): Changed its type to PeerHandle.
  10699. (getPeer): Replaced Peer with PeerHandle.
  10700. (setPeer): Replaced Peer with PeerHandle.
  10701. * src/DownloadCommand.cc
  10702. (DownloadCommand): Replaced Socket with SocketHandle.
  10703. * src/FtpConnection.h
  10704. (socket): Changed its type to SocketHandle.
  10705. (FtpConnection): Replaced Socket with SocketHandle.
  10706. (sendPort); Replaced Socket with SocketHandle.
  10707. * src/FtpDowndloadCommand.h
  10708. (ctrlSocket): Changed its type to SocketHandle.
  10709. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10710. * src/HttpProxyRequestCommand.cc
  10711. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10712. * src/FtpTunnelRequestCommand.h
  10713. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10714. etc
  10715. * src/PeerChokeCommand.h
  10716. (setAllPeerChoked): Removed.
  10717. (setAllPeerResetDelta): Removed.
  10718. * src/PeerChokeCommand.cc
  10719. (setAllPeerChoked): Removed.
  10720. (ChokePeer): New function object.
  10721. (setAllPeerResetDelta): Removed.
  10722. (ResetDelta): New function object.
  10723. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  10724. (execute): Show download speed when the local node is a seeder.
  10725. setAllPeerChoked and setAllPeerResetDelta were rewritten
  10726. using STL.
  10727. * src/TrackerWatcherCommand.h
  10728. (MIN_PEERS): Removed.
  10729. * src/TorrentMan.cc
  10730. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  10731. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10732. To fix the bug that .aria2 file is not saved if downloading is stopped
  10733. by the errors:it results that aria2 can not resume downloading:
  10734. * src/main.cc
  10735. (normalDownload): Added the call to save().
  10736. (main): Added the deletion of the elements in 'reserved'.
  10737. To fix log:
  10738. * src/PeerInteraction.cc
  10739. (receiveHandshake): Fixed log.
  10740. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10741. To improve download performance in BitTorrent:
  10742. * src/TorrentMan.cc
  10743. (getPeer): Check the number of connections. Return nullPeer if
  10744. it is greater than MAX_PEER_UPDATE.
  10745. This code was originally here, but was removed in 0.5.1.
  10746. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10747. To improve the conditional compilation:
  10748. * src/MultiDiskWriter.h:
  10749. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10750. * src/MultiDiskWriter.cc:
  10751. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10752. * src/Util.h:
  10753. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10754. Added ENABLE_BITTORRENT around computeFastSet().
  10755. * src/Util.cc:
  10756. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10757. Added ENABLE_BITTORRENT around computeFastSet().
  10758. * src/messageDigest.h:
  10759. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  10760. * src/ShaVisitor.h:
  10761. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10762. * src/ShaVisitor.cc:
  10763. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10764. * src/main.cc:
  10765. Added ENABLE_BITTORRENT around includes and blocks related to
  10766. BitTorrent.
  10767. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  10768. digest support is not available.
  10769. * src/AbstractDiskWriter.h:
  10770. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10771. * src/AbstractDiskWriter.cc:
  10772. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10773. * src/MetalinkEntry.cc
  10774. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  10775. support is not available.
  10776. To add command-line options for Metalink:
  10777. * src/main.cc:
  10778. Added metalink-version, metalink-language, metalink-os,
  10779. follow-metalink.
  10780. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  10781. * src/main.cc: Use these definition.
  10782. * Release 0.6.0
  10783. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10784. To add Metalink support(http/ftp only):
  10785. * src/AbstractCommand.h
  10786. (tryReserved): New function.
  10787. * src/AbstractCommand.cc
  10788. (execute): Call tryReserved().
  10789. (tryReserved): New function.
  10790. * src/Request.h
  10791. (Requests): New type definition.
  10792. * src/SegmentMan.h
  10793. (reserved): New variable.
  10794. * src/Util.h
  10795. (fileChecksum): New function.
  10796. (toUpper): New function.
  10797. (toLower): New function.
  10798. * src/Util.cc
  10799. (messageDigest.h): Included.
  10800. (trim): Trim \r\n\t.
  10801. (fileChecksum): New function.
  10802. (toUpper): New function.
  10803. (toLower): New function.
  10804. * src/main.cc
  10805. (normalDownload): New function.
  10806. (main): Added 2 command-line options: metalink-file,
  10807. metalink-connection. Their usage has not been written yet.
  10808. * src/MetalinkProcessor.h: New class.
  10809. * src/Xml2MetalinkProcessor.h: New class.
  10810. * src/Xml2MetalinkProcessor.cc: New class.
  10811. * src/MetalinkEntry.h: New class.
  10812. * src/MetalinkEntry.cc: New class.
  10813. * src/MetalinkResource.h: New class.
  10814. * src/MetalinkResource.cc: New class.
  10815. To add md5 message digest checking:
  10816. * src/messageDigest.h: Rewritten.
  10817. * src/MultiDiskWriter.cc: Updated according to the changes in
  10818. messageDigest.h.
  10819. * src/ShaVisitor.cc: Updated according to the changes in
  10820. messageDigest.h.
  10821. * src/Util.cc: Updated according to the changes in messageDigest.h.
  10822. * src/AbstractDiskWriter.cc: Updated according to the changes in
  10823. messageDigest.h.
  10824. To fix a bug that causes segfault when the payload length in peer
  10825. message is less than 0:
  10826. * src/PeerConnection.cc:
  10827. (receiveMessage): Fixed the bug.
  10828. * src/PeerMessageUtil.cc
  10829. (checkLength): Throw an exception if length is less than or equals to
  10830. 0.
  10831. To add new interfaces to Base64 encoding/decoding:
  10832. * src/Base64.h
  10833. (part_encode): Changed the method signature.
  10834. (encode): New function(overload).
  10835. (decode): New function(overload).
  10836. * src/Base64.cc
  10837. (part_encode): Rewritten.
  10838. (encode): Rewritten.
  10839. (encode): New function(overload).
  10840. To prevent a peer to download same piece if there is an error in
  10841. checksum:
  10842. * src/PieceMessage.cc
  10843. (receivedAction): Call peerInteraction->abortPiece().
  10844. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10845. To fix the bug that causes same have message is sent many times to
  10846. a single peer.
  10847. * src/Time.cc
  10848. (isNewer): Use Util::difftv().
  10849. * src/Util.cc
  10850. (difftv): Added a cast to (long long int).
  10851. * src/TorrentMan.cc
  10852. (advertisePiece): Use push_front.
  10853. (getAdvertisedPieceIndexes): A performance improvement was made.
  10854. To fix the bug that sends tracker requests without a sleep interval
  10855. when the number of connections is less than 15.
  10856. * src/TrackerWatcherCommand.cc
  10857. (execute): Now the number of connections is not a factor to decide
  10858. whether or not a tracker request should be sent or not.
  10859. * src/Time.h
  10860. (setTimeInSec): New function.
  10861. * src/Time.cc
  10862. (setTimeInSec): New function.
  10863. etc.
  10864. * src/ChokeMessage.cc
  10865. (receivedAction): Removed peer->snubbing = false
  10866. * src/PeerConnection.h
  10867. (receiveHandshake): Updated doc.
  10868. * src/TorrentMan.h
  10869. (getAdvertisedPieceIndexes): Updated the method signature.
  10870. * src/TorrentMan.cc
  10871. (getAdvertisedPieceIndexes): Updated the method signature.
  10872. * src/Time.h
  10873. (getTimeInMicros): Added a cast to (long long int).
  10874. (getTimeInMillis): Added a cast to (long long int).
  10875. * Release 0.5.2
  10876. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10877. To make a listening socket non-block:
  10878. * src/SocketCore.h
  10879. (setNonBlockingMode): New function.
  10880. * src/SocketCore.cc
  10881. (setNonBlockingMode): New function.
  10882. (beginListen): Added a call to setNonBlockingMode().
  10883. (acceptConnection): Call setNonBlockingMode().
  10884. (setBlockingMode): Updated.
  10885. To handle tracker's NAT-checking:
  10886. * src/PeerConnection.cc
  10887. (receiveHandshake): 'msg' param is filled with received data and
  10888. its length is assigned to 'length' param, even if all handshake
  10889. message is not yet received.
  10890. * src/PeerInteractionCommand.cc
  10891. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  10892. a new peer connects to localhost.
  10893. A call to peerInteraction->sendHandshake() was removed because
  10894. it is called from peerInteraction->receiveHandshake(true).
  10895. * src/PeerInteraction.h
  10896. (quickReplied): New variable.
  10897. (receiveHandshake): Added an argument.
  10898. * src/PeerInteraction.cc
  10899. (PeerInteraction): Added the initialization of quickReplied.
  10900. (receiveHandshake): Send handshake message as soon as the info hash
  10901. in a handshake message from a peer is correct.
  10902. To change the random part of peer id and key parameter:
  10903. * src/TorrentMan.h
  10904. (key): New variable.
  10905. * src/TorrentMan.cc
  10906. (setupInternal1): Use Util::randomAlpha() to generate random part
  10907. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  10908. key is also generated by Util::randomAlpha() and it is now 8 character
  10909. long.
  10910. * src/Util.h
  10911. (randomAlpha): New function.
  10912. * src/Util.cc
  10913. (randomAlpha): New function.
  10914. * src/TrackerWatcherCommand.cc
  10915. (execute): In a tracker request: Use torrentMan->key as key parameter.
  10916. Added no_peer_id=1.
  10917. Set snubbing flag to false when a choke message is received from a
  10918. snubbed peer.
  10919. * src/ChokeMessage.cc
  10920. (receivedAction): Set snubbing flag to false.
  10921. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10922. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  10923. * src/SimpleLogger.h (writeHeader): New function.
  10924. * src/SimpleLogger.cc (writeHeader): New function.
  10925. (writeLog): Fixed the bug that causes segfaults if exception message
  10926. contains an unescaped "%" character.
  10927. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  10928. when a tracker request fails.
  10929. * src/Request.cc (parseUrl): Query string is now handled properly.
  10930. * Release 0.5.1
  10931. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10932. To add Time class which represents a specific instant in time and
  10933. its precision is microseconds. Time checking procedures were rewritten
  10934. using this object.
  10935. * src/Time.h: New class.
  10936. * src/Time.cc: New class.
  10937. * src/AbstractCommand.h
  10938. (updateCheckPoint): Removed.
  10939. (isTimeoutDetected): Removed.
  10940. (checkPoint): Changed the type to Time.
  10941. (timeout): New variable.
  10942. (setTimeout): New function.
  10943. * src/AbstractCommand.cc
  10944. (AbstractCommand): Removed the initialization of checkPoint.
  10945. Added the initialization of timeout.
  10946. (updateCheckPoint): Removed.
  10947. (isTimeoutDetected): Removed.
  10948. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10949. * src/PeerChokeCommand.h
  10950. (checkPoint): Changed the type to Time.
  10951. * src/PeerChokeCommand.cc
  10952. (PeerChokeCommand): Removed the initialization of checkPoint.
  10953. (execute): Rewritten using Time object.
  10954. * src/TrackerWatcherCommand.h
  10955. (checkPoint): Changed the type to Time.
  10956. * src/TrackerWatcherCommand.cc
  10957. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  10958. (execute): Rewritten.
  10959. * src/ConsoleDownloadEngine.h
  10960. (cp): Changed the type to Time.
  10961. (startup): Changed the type to Time.
  10962. * src/ConsoleDownloadEngine.cc
  10963. (initStatistics): Use cp.reset(), startup.reset().
  10964. (calculateStatistics): Rewritten using Time object.
  10965. * src/PeerAbstractCommand.h
  10966. (updateCheckPoint): Removed.
  10967. (isTimeoutDetected): Removed.
  10968. (checkPoint): Changed the type to Time.
  10969. * src/PeerAbstractCommand.cc
  10970. (PeerAbstractCommand): Removed the initialization of checkPoint.
  10971. (updateCheckPoint): Removed.
  10972. (isTimeoutDetected): Removed.
  10973. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10974. * src/PeerInteractionCommand.cc
  10975. (PeerInteractionCommand): Removed the initializations of struct
  10976. timeval variables.
  10977. * src/PeerInteractionCommand.h
  10978. (keepAliveCheckPoint): Changed the type to Time.
  10979. (chokeCheckPoint): Changed the type to Time.
  10980. (freqCheckPoint): Changed the type to Time.
  10981. (haveCheckTime): Changed the type to Time.
  10982. * src/PeerInteractionCommand.cc
  10983. (executeInternal): Rewritten using Time object.
  10984. (detectMessageFlooding): Rewritten using Time object.
  10985. (checkLongTimePeerChoking): Rewritten using Time object.
  10986. (sendKeepAlive): Rewritten using Time object.
  10987. (checkHave): Rewritten using Time object.
  10988. * src/SleepCommand.h
  10989. (checkPoint): Changed the type to Time.
  10990. * src/SleepCommand.cc
  10991. (SleepCommand): Removed the initialization of checkPoint.
  10992. (execute): Rewritten using Time object.
  10993. * src/TorrentAutoSaveCommand.h
  10994. (checkPoint): Changed the type to Time.
  10995. * src/TorrentAutoSaveCommand.cc
  10996. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  10997. (execute): Rewritten.
  10998. * src/DownloadCommand.h
  10999. (sw): Changed the type to Time.
  11000. * src/DownloadCommand.cc
  11001. (DownloadCommand): Removed the initialization of sw.
  11002. (executeInternal): Rewritten.
  11003. * src/RequestSlot.h
  11004. (dispatchedTime): Changed the type to Time.
  11005. * src/RequestSlot.cc
  11006. (RequestSlot): Removed the call to setDispatchedTime().
  11007. (setDispatchedTime): Rewirtten.
  11008. (isTimeout): Rewritten.
  11009. (getLatencyInMillis): Rewritten.
  11010. * src/TorrentDownloadEngine.h
  11011. (cp): Changed the type to Time[2].
  11012. (startup): Changed the type to Time.
  11013. * src/TorrentDownloadEngine.cc
  11014. (initStatistics): Rewritten.
  11015. (calculateStatistics): Rewritten.
  11016. * src/DownloadEngine.cc
  11017. (run): Rewritten.
  11018. To detect all attempts to connect to the tracker are failed:
  11019. * src/AbstractCommand.cc
  11020. (execute): Increment e->segmentMan->errors if a command aborted.
  11021. * src/SegmentMan.h
  11022. (errors): New variable.
  11023. * src/SegmentMan.cc
  11024. (SegmentMan): Added the initialization of errors.
  11025. (init): Added the initialization of errors.
  11026. * src/TrackerWatcherCommand.cc
  11027. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11028. request was failed.
  11029. To handle snubbed peers:
  11030. * src/PeerChokeCommand.cc
  11031. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11032. (execute): Snubbed peers don't get unchoked.
  11033. * src/PeerInteraction.h
  11034. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11035. * src/PeerInteraction.cc
  11036. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11037. back the requested 16k block in 60 seconds.
  11038. * src/PieceMessage.cc
  11039. (receivedAction): A peer's snubbed state is cleard if it sends
  11040. the requested 16k block in 60 seconds.
  11041. * src/Peer.h
  11042. (snubbing): New variable.
  11043. * src/Peer.cc
  11044. (resetStatus): Added snubbed = false.
  11045. To fix the bug that causes have message is not sent:
  11046. * src/PeerInteractionCommand.cc
  11047. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11048. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11049. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11050. * src/TorrentMan.h
  11051. (HaveEntry): New class.
  11052. (advertisePiece): Rewritten.
  11053. (getAdvertisedPieceIndexes): Rewritten.
  11054. (Haves): Changed the type.
  11055. (getAdvertisedPieceIndexes): Added an argument.
  11056. Others:
  11057. * src/TorrentMan.h
  11058. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11059. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11060. * src/TorrentMan.cc
  11061. (getPeer): Don't check the number of connections here.
  11062. (setupInternal1): Changed peerId.
  11063. * src/PeerInteractionCommand.h
  11064. (KEEP_ALIVE_INTERVAL): New definition.
  11065. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11066. * src/main.cc
  11067. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11068. * src/DownloadEngine.h: Removed unnecessary header includes.
  11069. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11070. To fix the bug that causes segfaults if a tracker returns a zero-length
  11071. list as "peers":
  11072. * src/TrackerUpdateCommand.cc
  11073. (execute): Added a check to see wether the type of peers is Data*.
  11074. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11075. * Release 0.5.0
  11076. To fix compile issue with gcc3:
  11077. * src/CancelMessage.h
  11078. (ID): Renamed as ID_t
  11079. (ID_t): New enum.
  11080. * src/RejectMessage.h
  11081. (ID): Renamed as ID_t
  11082. (ID_t): New enum.
  11083. * src/SuggestPieceMessage.h
  11084. (ID): Renamed as ID_t
  11085. (ID_t): New enum.
  11086. * src/AllowedFastMessage.h
  11087. (ID): Renamed as ID_t
  11088. (ID_t): New enum.
  11089. * src/PortMessage.h
  11090. (ID): Renamed as ID_t
  11091. (ID_t): New enum.
  11092. * src/HaveNoneMessage.h
  11093. (ID): Renamed as ID_t
  11094. (ID_t): New enum.
  11095. * src/KeepAliveMessage.h
  11096. (ID): Renamed as ID_t
  11097. (ID_t): New enum.
  11098. * src/HaveAllMessage.h
  11099. (ID): Renamed as ID_t
  11100. (ID_t): New enum.
  11101. * src/UnchokeMessage.h
  11102. (ID): Renamed as ID_t
  11103. (ID_t): New enum.
  11104. * src/BitfieldMessage.h
  11105. (ID): Renamed as ID_t
  11106. (ID_t): New enum.
  11107. * src/PieceMessage.h
  11108. (ID): Renamed as ID_t
  11109. (ID_t): New enum.
  11110. * src/RequestMessage.h
  11111. (ID): Renamed as ID_t
  11112. (ID_t): New enum.
  11113. * src/NotInterestedMessage.h
  11114. (ID): Renamed as ID_t
  11115. (ID_t): New enum.
  11116. * src/ChokeMessage.h
  11117. (ID): Renamed as ID_t
  11118. (ID_t): New enum.
  11119. * src/InterestedMessage.h
  11120. (ID): Renamed as ID_t
  11121. (ID_t): New enum.
  11122. * src/HaveMessage.h
  11123. (ID): Renamed as ID_t
  11124. (ID_t): New enum.
  11125. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11126. * src/PeerAbstractCommand.h
  11127. (beforeSocketCheck): Removed.
  11128. * src/PeerAbstractCommand.cc
  11129. Modified in order to call executeInternal() even if socket check
  11130. and upload limit check fail.
  11131. * src/PeerInteractionCommand.h
  11132. (keepAlive): Removed.
  11133. (sendKeepAlive): New function.
  11134. (checkHave): New function.
  11135. (beforeSocketCheck): Removed.
  11136. * src/PeerInteractionCommand.cc
  11137. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11138. calls to checkHave() and sendKeepAlive().
  11139. (keepAlive): Renamed to sendKeepAlive().
  11140. (sendKeepAlive): New function.
  11141. (beforeSocketCheck): Removed.
  11142. (checkHave): New function.
  11143. * src/BitfieldMan.cc
  11144. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11145. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11146. 0.
  11147. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11148. * src/TorrentMan.h
  11149. (UsedPieces): Removed.
  11150. (Pieces): New type definition.
  11151. * src/Piece.h: Updated doc.
  11152. * src/Peer.h
  11153. (totalLength): Removed.
  11154. * src/Peer.cc
  11155. (updateLatency): Fixed the latency calculation.
  11156. * src/TorrentMan.cc
  11157. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11158. than or equal to MAX_PEER_LIST_SIZE.
  11159. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11160. then return false.
  11161. (deleteOldErrorPeers): Rewritten.
  11162. (deleteUsedPiece): Fixed the miss use of STL remove.
  11163. * src/PeerInteraction.h
  11164. (Pieces): Removed.
  11165. (deleteTimeoutRequestSlot): Removed.
  11166. (deleteCompletedRequestSlot): Removed.
  11167. (checkRequestSlot): New function.
  11168. * src/PeerInteraction.cc
  11169. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11170. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11171. (checkRequestSlot): New function.
  11172. * src/DownloadEngine.cc
  11173. (run): Clear activeSockets before calling waitData().
  11174. (waitData): Removed a call to activeSockets.clear().
  11175. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11176. To attempt to handle EINTR:
  11177. * src/SocketCore.cc
  11178. (isReadable): Added EINTR handling.
  11179. (isWritable): Added EINTR handling.
  11180. To improve the performance:
  11181. * src/AbstractCommand.cc
  11182. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11183. * src/PeerInteractionCommand.h
  11184. (receiveMessage): Renamed as receiveMessages().
  11185. (receiveMessages): New function.
  11186. * src/PeerInteractionCommand.cc
  11187. (executeInternal): receiveMessage loop is moved to new receiveMessages
  11188. () function. detectMessageFlooding() is moved here.
  11189. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  11190. (). The flooding detection for have message is comment out.
  11191. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  11192. Util::difftv().
  11193. (receiveMessage): Renamed as receiveMessages().
  11194. (receiveMessages): New function.
  11195. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  11196. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  11197. * src/SleepCommand.cc
  11198. (execute): Use Util::difftvsec() instead of Util::difftv().
  11199. * src/BitfieldMan.h
  11200. (getNthBitIndex): New function.
  11201. (hasMissingPiece): New function.
  11202. (getAllMissingIndexes): New function.
  11203. * src/BitfieldMan.cc
  11204. (countSetBit): Rewritten.
  11205. (getNthBitIndex): New function.
  11206. (getMissingIndexRandomly): Rewritten.
  11207. (hasMissingPiece): New function.
  11208. (getAllMissingIndexes): New function.
  11209. * src/TorrentMan.cc
  11210. (hasMissingPiece): New function.
  11211. (deleteUsedPiece): Rewritten using STL.
  11212. * src/PeerInteraction.cc
  11213. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  11214. is a little bit faster then TorrentMan::getMissingPieceIndex().
  11215. (addRequests): Updated the number of pending requests.
  11216. * src/PeerAbstractCommand.cc
  11217. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11218. (execute): Returns true if TorrentMan::isHalt() is true.
  11219. Corrected the condition of upload limit checking.
  11220. * src/Util.h
  11221. (countBit): New function.
  11222. * src/Util.cc
  11223. (nbits): New variable.
  11224. (countBit): New function.
  11225. * src/DownloadEngine.h
  11226. (SockCmdMap): New type definition.
  11227. (waitData): Added an argument.
  11228. (addSocket): Added an argument.
  11229. (addSocketForReadCheck): Added an argument.
  11230. (addSocketForWriteCheck): Added an argument.
  11231. * src/DownloadEngine.cc
  11232. (run): Executes only commands whose sockets are ready to read or write.
  11233. All commands are executed in every 1 second.
  11234. (waitData): Calls select() again if it returned
  11235. EINTR.
  11236. (addSocket): Saves socket and command object pair to the map.
  11237. (deleteSocket): Deletes socket and command object pair from the map.
  11238. (addSocketForReadCheck): Added an argument.
  11239. (addSocketForWriteCheck): Added an argument.
  11240. * src/DownloadCommand.cc
  11241. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11242. To send "event=stopped" to the tracker when the application finishes:
  11243. * src/PeerChokeCommand.h
  11244. (checkPoint): New variable.
  11245. * src/PeerChokeCommand.cc
  11246. (PeerChokeCommand): Added the initialization of checkPoint.
  11247. (execute): The interval check is now done by checkPoint, not
  11248. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11249. * src/TorrentMan.h
  11250. (halt): New function.
  11251. (hasMissingPiece): New function.
  11252. (isHalt): New function.
  11253. (setHalt): New function.
  11254. * src/TorrentMan.cc
  11255. (TorrentMan): Added the initialization of halt.
  11256. * src/TorrentAutoSaveCommand.h
  11257. (checkPoint): New variable.
  11258. * src/PeerListenCommand.cc
  11259. (execute): Returns true if TorrentMan::isHalt() is true.
  11260. * src/main.cc
  11261. (setSignalHander): Added flags argument.
  11262. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11263. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11264. Removed printDownloadAbortMessage() after torrent downloading loop.
  11265. * src/TorrentAutoSaveCommand.cc
  11266. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11267. (execute): Returns true if TorrentMan::isHalt() is true.
  11268. The interval check is now done by checkPoint, not SleepCommand.
  11269. * src/TrackerWatcherCommand.cc
  11270. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11271. event=stopped.
  11272. * src/TrackerUpdateCommand.cc
  11273. (prepareForRetry): Do not use SleepCommand here.
  11274. (execute): Returns true if TorrentMan::isHalt() is true.
  11275. Others:
  11276. * src/TorrentMan.cc
  11277. (getMissingPieceIndex): Updated log message.
  11278. * src/PeerInteraction.cc
  11279. (createPeerMessag): Updated log message.
  11280. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11281. To add the ability to download several pieces in mix in a command and
  11282. increase the number of request slots according to request-cancel
  11283. latency:
  11284. * src/PeerInteractionCommand.cc
  11285. (executeInternal): The number of messages to be received at a time
  11286. is increased from 10 to 50.
  11287. * src/LogFactory
  11288. (getInstance): Added NullLogger.
  11289. * src/NullLogger.h: New class.
  11290. * src/BitfieldMan.h
  11291. (getMissingIndex): New function.
  11292. * src/BitfieldMan.cc
  11293. (getMissingIndex): New function.
  11294. * src/TorrentMan.h
  11295. (checkOutPiece): New function.
  11296. (getMissingPieceIndex): New function.
  11297. (getMissingFastPieceIndex): New function.
  11298. (getMissingFastPiece): New function.
  11299. * src/TorrentMan.cc
  11300. (updatePiece): Rewritten using STL.
  11301. (syncPiece): Rewritten using STL.
  11302. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  11303. checkOutPiece().
  11304. (getMissingPieceIndex): New function.
  11305. (getMissingFastPieceIndex): New function.
  11306. (getMissingFastPiece): New function.
  11307. (checkOutPiece): New function.
  11308. * src/PeerInteraction.h
  11309. (Pieces): New type definition.
  11310. (piece): Removed.
  11311. (pieces): New variable.
  11312. (getNewPieceAndSendInterest): Added the "piece" argument.
  11313. (abortPiece): Added the "piece" argument.
  11314. (abortAllPieces): New function.
  11315. (isInRequestSlot): New function.
  11316. (hasDownloadPiece): Added the "index" argument.
  11317. (setDownloadPiece): Removed.
  11318. (getDownloadPiece): Added the "index" argument.
  11319. (updatePiece): New function.
  11320. (createRequestMessage): Added the "index" argument.
  11321. * src/PeerInteraction.cc
  11322. (onChoked): Rewritten.
  11323. (abortPiece): Rewirtten.
  11324. (abortAllPieces): New function.
  11325. (deleteTimeoutRequestSlot): Rewritten.
  11326. Clarified code a little bit.
  11327. (deleteCompletedRequestSlot): Rewritten.
  11328. (isInRequestSlot): New function.
  11329. (syncPiece): Rewritten.
  11330. (updatePiece): New function.
  11331. (getNewPieceAndSendInterest): Rewritten.
  11332. (addRequests): Rewritten.
  11333. (getDownloadPiece): Rewritten.
  11334. (hasDownloadPiece): Rewritten.
  11335. (createRequestMessage): Added the "index" argument.
  11336. * src/common.h
  11337. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11338. (DIV_FLOOR): New definition.
  11339. * src/PieceMessage.cc
  11340. (receivedAction): Update request-piece latency here.
  11341. * src/RequestSlot.h
  11342. (getLatencyInMillis): New function.
  11343. * src/RequestSlot.cc
  11344. (isTimeout): Rewritten using getLatencyInMillis.
  11345. (getLatencyInMillis): New function.
  11346. * src/Piece.h
  11347. (operator==): New function.
  11348. (getMissingBlockIndex): New function.
  11349. * src/Piece.cc
  11350. (operator==): New function.
  11351. (getMissingBlockIndex): New function.
  11352. * src/Peer.h
  11353. (DEFAULT_LATENCY): New definition.
  11354. (latency): New variable.
  11355. (updateLatency): New function.
  11356. (getLatency): New function.
  11357. * src/Peer.cc
  11358. (resetStatus): Reset latecy.
  11359. (updateLatency): New function.
  11360. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11361. * src/SocketCore.cc
  11362. (isReadable): Added secure to the condition.
  11363. * src/HttpConnection.cc
  11364. (receiveResponse): Fixed a bug that causes no response header
  11365. exception.
  11366. * src/Peer.h
  11367. (getFastSet): Fixed the return value type.
  11368. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11369. To remove a wait from download loop:
  11370. * src/DownloadEngine.cc
  11371. (run): Comment out shortSleep.
  11372. To rewrite the message handling:
  11373. * src/SimplePeerMessage.h: New class.
  11374. * src/SimplePeerMessage.cc: New class.
  11375. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11376. (msg): New variable.
  11377. (create): New function.
  11378. (send): Removed.
  11379. (getMessage): New function.
  11380. (getMessageLength): New function.
  11381. * src/CancelMessage.cc
  11382. (create): New function.
  11383. (receivedAction): Replaced deleteRequestMessageInQueue with
  11384. rejectPieceMessageInQueue.
  11385. (send): Removed.
  11386. (getMessage): New function.
  11387. (getMessageLength): New function.
  11388. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11389. (msg): New variable.
  11390. (msgLength): New variable.
  11391. (~BitfieldMessage): Deleted msg.
  11392. (send): Removed.
  11393. (getMessage): New function.
  11394. (getMessageLength): New function.
  11395. * src/BitfieldMessage.cc
  11396. (create): New function.
  11397. (send): Removed.
  11398. (getMessage): New function.
  11399. (getMessageLength): New function.
  11400. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11401. (msg): New variable.
  11402. (sendPredicate): New function.
  11403. (onSendComplete): New function.
  11404. (send): Removed.
  11405. (getMessage): New function.
  11406. (getMessageLength): New function.
  11407. (create): New function.
  11408. * src/ChokeMessage.cc
  11409. (create): New function.
  11410. (send): Removed.
  11411. (sendPredicate): New function.
  11412. (getMessage): New function.
  11413. (getMessageLength): New function.
  11414. (onSendComplete): New function.
  11415. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  11416. (msg): New variable.
  11417. (send): Removed.
  11418. (getMessage): New function.
  11419. (getMessageLength): New function.
  11420. * src/KeepAliveMessage.cc
  11421. (send): Removed.
  11422. (getMessage): New function.
  11423. (getMessageLength): New function.
  11424. * src/PortMessage.h
  11425. (create): New function.
  11426. (receivedAction): Updated log message.
  11427. * src/PortMessage.cc: New file.
  11428. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  11429. (msg): New variable.
  11430. (sendPredicate): New function.
  11431. (onSendComplete): New function.
  11432. (create): New function.
  11433. (send): Removed.
  11434. (getMessage): New function.
  11435. (getMessageLength): New function.
  11436. * src/UnchokeMessage.cc
  11437. (create): New function.
  11438. (send): Removed.
  11439. (sendPredicate): New function.
  11440. (getMessage): New function.
  11441. (getMessageLength): New function.
  11442. (onSendComplete): New function.
  11443. * src/PieceMessage.h
  11444. (leftPieceDataLength): Removed.
  11445. (leftDataLength): New variable.
  11446. (headerSend): New variable.
  11447. (pendingCount): New variable.
  11448. (msgHeader): New variable.
  11449. (sendPieceData): New function.
  11450. (incrementPendingCount): New function.
  11451. (isPendingCountMax): New function.
  11452. (create): New function.
  11453. (getMessageHeader): New function.
  11454. (getMessageHeaderLength): New function.
  11455. * src/PieceMessage.cc
  11456. (create): New function.
  11457. (getMessageHeader): New function.
  11458. (getMessageHeaderLength): New function.
  11459. (send): Rewritten.
  11460. (sendPieceData): New function.
  11461. * src/HaveMessage.h: Derived from SimplePeerMessage.
  11462. (msg): New variable.
  11463. (create): New function.
  11464. (getMessage): New function.
  11465. (getMessageLength): New function.
  11466. * src/HaveMessage.cc
  11467. (create): New function.
  11468. (send): Removed.
  11469. (sendPieceData): New function.
  11470. (getMessage): New function.
  11471. (getMessageLength): New function.
  11472. * src/RequestMessage.h: Derived from SimplePeerMessage.
  11473. (msg): New variable.
  11474. (create): New function.
  11475. (send): Removed.
  11476. (getMessage): New function.
  11477. (getMessageLength): New function.
  11478. * src/RequestMessage.cc
  11479. (create): New function.
  11480. (receivedAction): Added the handling of fast extension.
  11481. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  11482. (send): Removed.
  11483. (getMessage): New function.
  11484. (getMessageLength): New function.
  11485. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  11486. (msg): New variable.
  11487. (sendPredicate): New function.
  11488. (onSendComplete): New function.
  11489. (create): New function.
  11490. (getMessage): New function.
  11491. (getMessageLength): New function.
  11492. * src/InterestedMessage.cc
  11493. (create): New function.
  11494. (send): Removed.
  11495. (sendPieceData): New function.
  11496. (getMessage): New function.
  11497. (getMessageLength): New function.
  11498. (onSendComplete): New function.
  11499. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  11500. (msg): New variable.
  11501. (sendPieceData): New function.
  11502. (onSendComplete): New function.
  11503. (create): New function.
  11504. (send): Removed.
  11505. (getMessage): New function.
  11506. (getMessageLength): New function.
  11507. * src/NotInterestedMessage.cc
  11508. (create): New function.
  11509. (send): Removed.
  11510. (sendPredicate): New function.
  11511. (getMessage): New function.
  11512. (getMessageLength): New function.
  11513. (onSendComplete): New function.
  11514. * src/AllowedFastMessage.h: New class.
  11515. * src/AllowedFastMessage.cc: New class.
  11516. * src/RejectMessage.h: New class.
  11517. * src/RejectMessage.cc: New class.
  11518. * src/SuggestPieceMessage.h: New class.
  11519. * src/SuggestPieceMessage.cc: New class.
  11520. * src/HaveAllMessage.h: New class.
  11521. * src/HaveAllMessage.cc: New class.
  11522. * src/HaveNoneMessage.h: New class.
  11523. * src/HaveNoneMessage.cc: New class.
  11524. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  11525. (msg): New variable.
  11526. (reserved): New variable.
  11527. (create): New function.
  11528. (getId): New function.
  11529. (receivedAction): New function.
  11530. (getMessage): New function.
  11531. (getMessageLength): New function.
  11532. (isFastExtensionSupported): New function.
  11533. * src/HandshakeMessage.cc
  11534. (HandshakeMessage): Moved here from HandshakeMessage.h.
  11535. (create): New function.
  11536. (getMessage): New function.
  11537. (getMessageLength): New function.
  11538. (toString): Added the output of reserved field.
  11539. (check): Added const qualifier.
  11540. (isFastExtensionSupported): New function.
  11541. * src/PeerMessageUtil.h
  11542. (createChokeMessage): Removed.
  11543. (createUnchokeMessage): Removed.
  11544. (createInterestedMessage): Removed.
  11545. (createNotInterestedMessage): Removed.
  11546. (createHaveMessage): Removed.
  11547. (createBitfieldMessage): Removed.
  11548. (createRequestMessage): Removed.
  11549. (createCancelMessage): Removed.
  11550. (createPieceMessage): Removed.
  11551. (createPortMessage): Removed.
  11552. (createChokeMessage): Removed.
  11553. (createUnchokeMessage): Removed.
  11554. (createInterestedMessage): Removed.
  11555. (createNotInterestedMessage): Removed.
  11556. (createHaveMessage): Removed.
  11557. (createBitfieldMessage): Removed.
  11558. (createRequestMessage): Removed.
  11559. (createCancelMessage): Removed.
  11560. (createPieceMessage): Removed.
  11561. (createKeepAliveMessage): Removed.
  11562. (createHandshakeMessage): Removed.
  11563. (setIntParam): New function.
  11564. (createPeerMessageString): New function.
  11565. * src/PeerMessageUtil.cc
  11566. (createChokeMessage): Removed.
  11567. (createUnchokeMessage): Removed.
  11568. (createInterestedMessage): Removed.
  11569. (createNotInterestedMessage): Removed.
  11570. (createHaveMessage): Removed.
  11571. (createBitfieldMessage): Removed.
  11572. (createRequestMessage): Removed.
  11573. (createCancelMessage): Removed.
  11574. (createPieceMessage): Removed.
  11575. (createPortMessage): Removed.
  11576. (createRequestMessage): Removed.
  11577. (createCancelMessage): Removed.
  11578. (createPieceMessage): Removed.
  11579. (createHaveMessage): Removed.
  11580. (createChokeMessage): Removed.
  11581. (createUnchokeMessage): Removed.
  11582. (createInterestedMessage): Removed.
  11583. (createNotInterestedMessage): Removed.
  11584. (createBitfieldMessage): Removed.
  11585. (createKeepAliveMessage): Removed.
  11586. (createHandshakeMessage): Removed.
  11587. (setIntParam): New function.
  11588. (createPeerMessageString): New function.
  11589. * src/PeerConnection.h
  11590. (peer): Removed.
  11591. (torrentMan): Removed.
  11592. (createNLengthMessage): Removed.
  11593. (setIntParam): Removed.
  11594. (writeOutgoingMessageLog): Removed all overloaded functions.
  11595. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11596. (sendMessage): New function.
  11597. (sendHandshake): Removed.
  11598. (sendKeepAlive): Removed.
  11599. (sendChoke): Removed.
  11600. (sendUnchoke): Removed.
  11601. (sendInterested): Removed.
  11602. (sendNotInterested): Removed.
  11603. (sendHave): Removed.
  11604. (sendBitfield): Removed.
  11605. (sendRequest): Removed.
  11606. (sendPiece): Removed.
  11607. (sendPieceHeader): Removed.
  11608. (sendPieceData): Removed.
  11609. (sendCancel): Removed.
  11610. (getPeer): Removed.
  11611. * src/PeerConnection.cc
  11612. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11613. (sendHandshake): Removed.
  11614. (sendKeepAlive): Removed.
  11615. (createNLengthMessage): Removed.
  11616. (setIntParam): Removed.
  11617. (writeOutgoingMessageLog): Removed all overloaded functions.
  11618. (sendChoke): Removed.
  11619. (sendUnchoke): Removed.
  11620. (sendInterested): Removed.
  11621. (sendNotInterested): Removed.
  11622. (sendHave): Removed.
  11623. (sendBitfield): Removed.
  11624. (sendRequest): Removed.
  11625. (sendPiece): Removed.
  11626. (sendPieceHeader): Removed.
  11627. (sendPieceData): Removed.
  11628. (sendMessage): New function.
  11629. (sendCancel): Removed.
  11630. * src/PeerInteractionCommand.cc
  11631. (PeerInteractionCommand): Call setUploadLimit.
  11632. (executeInternal): Call setUploadLimit.
  11633. Added the handling of "inProgress" state of handshake message.
  11634. Call sendBitfield() or sendAllowdFast() instead of deprecated
  11635. sendNow().
  11636. (keepAlive): Call addMessage and sendMessage instead of deprecated
  11637. sendNow().
  11638. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  11639. * src/TorrentMan.h
  11640. (PEER_ID_LENGTH): New definition.
  11641. (hasAllPieces): New function.
  11642. * src/TorrentMan.cc
  11643. (getMissingPiece): Added the handling of fast extension.
  11644. (cancelPiece): Call updatePiece().
  11645. (hasAllPieces): New function.
  11646. * src/PeerInteraction.h
  11647. (fastSet): New variable.
  11648. (getNewPieceAndSendInterest): Changed the return type to void.
  11649. (send): Renamed as sendMessages.
  11650. (deleteAllRequestSlot): Removed.
  11651. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11652. (cancelAllRequest): Removed all overloaded functions.
  11653. (deleteAllRequestSlot): Removed.
  11654. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11655. (rejectPieceMessageInQueue): New function.
  11656. (rejectAllPieceMessageInQueue): New function.
  11657. (onChoked): New function.
  11658. (isSendingMessageInProgress): New function.
  11659. (getCorrespondingRequestSlot): Changed its arguments.
  11660. (isInFastSet): New function.
  11661. (addFastSetIndex): New function.
  11662. (addRequests): New function.
  11663. (sendNow): Removed.
  11664. (trySendNow): Removed.
  11665. (sendBitfield): New function.
  11666. (sendAllowdFast): New function.
  11667. (createHaveAllMessage): New function.
  11668. (createHaveNoneMessage): New function.
  11669. (createRejectMessage): New function.
  11670. (createAllowedFastMessage): New function.
  11671. * src/PeerInteraction.cc
  11672. (send): Renamed as sendMessages.
  11673. (sendMessages): New function.
  11674. (MsgPushBack): New class.
  11675. (isSendingMessageInProgress): New function.
  11676. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11677. (rejectAllPieceMessageInQueue): New function.
  11678. Added the handling of fast extension.
  11679. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11680. (rejectPieceMessageInQueue): New function.
  11681. Added the handling of fast extension.
  11682. (deleteRequestSlot): Replaced for loop with std::find.
  11683. (onChoked): New function.
  11684. (deleteAllRequestSlot): Removed.
  11685. (abortPiece): Rewirtten.
  11686. (deleteTimeoutRequestSlot): Updated log messages.
  11687. (getCorrespondingRequestSlot): Changed its arguments.
  11688. (cancelAllRequest): Removed all overloaded functions.
  11689. (receiveHandshake): Added the check to see whether an incoming peer
  11690. supports fast extension.
  11691. (createHandshakeMessage): Use HandshakeMessage::create instead of
  11692. PeerMessageUtil.
  11693. (createPeerMessage): Use create() of each message class instead of
  11694. PeerMessageUtil.
  11695. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  11696. AllowedFastMessage were added.
  11697. (getNewPieceAndSendInterest): Changed its return value type to void.
  11698. Added the handling of fast extension.
  11699. (addRequests): New function.
  11700. (sendNow): Removed.
  11701. (sendHandshake): Rewritten.
  11702. (trySendNow): Removed.
  11703. (sendBitfield): New function.
  11704. (sendAllowdFast): New function.
  11705. (isInFastSet): New function.
  11706. (addFastSetIndex): New function.
  11707. (createRequestMessage): Use RequestMessage::create instead of
  11708. PeerMessageUtil.
  11709. (createCancelMessage): Use CancelMessage::create instead of
  11710. PeerMessageUtil.
  11711. (createPieceMessage): Use PieceMessage::create instead of
  11712. PeerMessageUtil.
  11713. (createHaveMessage): Use HaveMessage::create instead of
  11714. PeerMessageUtil.
  11715. (createChokeMessage): Use ChokeMessage::create instead of
  11716. PeerMessageUtil.
  11717. (createUnchokeMessage): Use UnchokeMessage::create instead of
  11718. PeerMessageUtil.
  11719. (createInterestedMessage): Use InterestedMessage::create instead of
  11720. PeerMessageUtil.
  11721. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  11722. of PeerMessageUtil.
  11723. (createBitfieldMessage): Use BitfieldMessage::create instead of
  11724. PeerMessageUtil.
  11725. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  11726. PeerMessageUtil.
  11727. (createHaveAllMessage): New function.
  11728. (createHaveNoneMessage): New function.
  11729. (createRejectMessage): New function.
  11730. (createAllowedFastMessage: New function.
  11731. * src/Util.h
  11732. (sha1Sum): New function.
  11733. (computeFastSet): New function.
  11734. * src/Util.cc
  11735. (sha1Sum): New function.
  11736. (computeFastSet): New function.
  11737. * src/Peer.h
  11738. (fastExtensionEnabled): New variable.
  11739. (fastSet): New variable.
  11740. (setAllBitfield): New function.
  11741. (setFastExtensionEnabled): New function.
  11742. (isFastExtensionEnabled): New function.
  11743. (addFastSetIndex): New function.
  11744. (getFastSet): New function.
  11745. (isInFastSet): New function.
  11746. (countFastSet): New function.
  11747. * src/Peer.cc
  11748. (isInFastSet): New function.
  11749. (addFastSetIndex): New function.
  11750. (setAllBitfield): New function.
  11751. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  11752. sockets.
  11753. * src/PeerAbstractCommand.cc
  11754. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  11755. and uploadLimit.
  11756. (execute): Changed the procedure of checking sockets. The upload speed
  11757. checking were added.
  11758. (setUploadLimit): New function.
  11759. (setUploadLimitCheck): New function.
  11760. * src/PeerAbstractCommand.h
  11761. (setUploadLimit): New function.
  11762. (setUploadLimitCheck): New function.
  11763. (uploadLimit): New variable.
  11764. (uploadLimitCheck): New variable.
  11765. To contact a tracker regularly:
  11766. * src/TrackerWatcherCommand.h (interval): New variable.
  11767. (checkPoint): New variable.
  11768. (TrackerWatcherCommand): Added interval argument.
  11769. * src/TrackerWatcherCommand.cc
  11770. (TrackerWatcherCommand): Initialized checkPoint.
  11771. (execute): Now a tracker is contacted in every specified period.
  11772. If peer list is not needed, send request with numwant=0.
  11773. * src/TrackerUpdateCommand.cc
  11774. (execute): Updated log messages.
  11775. * src/DownloadEngine.cc
  11776. (~DownloadEngine): Removed two asserts.
  11777. (waitData): Uncommented wfds. May be a bug fix.
  11778. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11779. * src/PeerInteractionCommand.h
  11780. (checkInactiveConnection): Removed.
  11781. * src/PeerInteractionCommand.cc
  11782. (executeInternal): Removed following function calls:
  11783. detectMessageFlooding(), checkLongTimePeerChoking and
  11784. checkInactiveConnection().
  11785. (checkInactiveConnection): Removed.
  11786. (detectMessageFlooding): Removed function call to
  11787. checkInactiveConnection().
  11788. * src/PeerMessageUtil.h
  11789. (createChokeMessage): New function. Overload.
  11790. (createUnchokeMessage): New function. Overload.
  11791. (createInterestedMessage): New function. Overload.
  11792. (createNotInterestedMessage): New function. Overload.
  11793. (createHaveMessage): New function. Overload.
  11794. (createBitfieldMessage): New function. Overload.
  11795. (createRequestMessage): New function. Overload.
  11796. (createCancelMessage): New function. Overload.
  11797. (createPieceMessage): New function. Overload.
  11798. (createKeepAliveMessage): New function. Overload.
  11799. * src/PeerMessageUtil.cc
  11800. (createChokeMessage): New function. Overload.
  11801. (createUnchokeMessage): New function. Overload.
  11802. (createInterestedMessage): New function. Overload.
  11803. (createNotInterestedMessage): New function. Overload.
  11804. (createHaveMessage): New function. Overload.
  11805. (createBitfieldMessage): New function. Overload.
  11806. (createRequestMessage): New function. Overload.
  11807. (createCancelMessage): New function. Overload.
  11808. (createPieceMessage): New function. Overload.
  11809. (createKeepAliveMessage): New function. Overload.
  11810. * src/SendMessageQueue.cc
  11811. (createRequestMessage): Use PeerMessageUtil.
  11812. (createCancelMessage): Use PeerMessageUtil.
  11813. (createPieceMessage): Use PeerMessageUtil.
  11814. (createHaveMessage): Use PeerMessageUtil.
  11815. (createChokeMessage): Use PeerMessageUtil.
  11816. (createUnchokeMessage): Use PeerMessageUtil.
  11817. (createInterestedMessage): Use PeerMessageUtil.
  11818. (createNotInterestedMessage): Use PeerMessageUtil.
  11819. (createBitfieldMessage): Use PeerMessageUtil.
  11820. (createKeepAliveMessage): Use PeerMessageUtil.
  11821. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  11822. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  11823. * src/PeerInteraction.h: New class.
  11824. * src/PeerInteraction.cc: New class.
  11825. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11826. Each peer message has its own class.
  11827. * src/PendingMessages.h: Removed.
  11828. * src/PendingMessages.cc: Removed. The sending process was moved to
  11829. each message class.
  11830. * src/RequestSlotMan.h: Removed.
  11831. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  11832. SendMessageQueue.
  11833. * src/RequestMessage.h: New class.
  11834. * src/RequestMessage.cc: New class.
  11835. * src/CancelMessage.h: New class.
  11836. * src/CancelMessage.cc: New class.
  11837. * src/BitfieldMessage.h: New class.
  11838. * src/BitfieldMessage.cc: New class.
  11839. * src/ChokeMessage.h: New class.
  11840. * src/ChokeMessage.cc: New class.
  11841. * src/KeepAliveMessage.h: New class.
  11842. * src/KeepAliveMessage.cc: New class.
  11843. * src/PortMessage.h: New class.
  11844. * src/UnchokeMessage.h: New class.
  11845. * src/UnchokeMessage.cc: New class.
  11846. * src/PieceMessage.h: New class.
  11847. * src/PieceMessage.cc: New class.
  11848. * src/HaveMessage.h: New class.
  11849. * src/HaveMessage.cc: New class.
  11850. * src/BitfieldMessage.h: New class.
  11851. * src/BitfieldMessage.cc: New class.
  11852. * src/NotInterestedMessage.h: New class.
  11853. * src/NotInterestedMessage.cc: New class.
  11854. * src/InterestedMessage.h: New class.
  11855. * src/InterestedMessage.cc: New class.
  11856. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  11857. (getSendMessageQueue): New function.
  11858. (setSendMessageQueue): New function.
  11859. * src/HandshakeMessage.cc: New class.
  11860. * src/PeerConnection.h (receiveMessage): Changed return value and
  11861. arguments.
  11862. (receiveHandshake): Changed return value and arguments.
  11863. * src/PeerConnection.cc (receiveMessage): Do not create message class
  11864. here.
  11865. (receiveHandshake): Do not create handshake class here.
  11866. * src/PeerInteractionCommand.h (peerConnection): Removed.
  11867. (piece): Removed.
  11868. (syncPiece): Removed.
  11869. (sendInterest): Removed.
  11870. (sendMessages): Removed.
  11871. (createRequestPendingMessage): Removed.
  11872. (checkPieceHash): Removed.
  11873. (erasePieceOnDisk): Removed.
  11874. (getNewPieceAndSendInterest): Removed.
  11875. (onGotNewPice): Removed.
  11876. (onGotWrongPiece): Removed.
  11877. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11878. Removed peerConnection, piece.
  11879. (~PeerInteractionCommand): Removed peerConnection.
  11880. (executeInternal): Use sendMessageQueue instead of peerConnection.
  11881. (syncPiece): Moved to SendMessageQueue.
  11882. (decideChoking): Removed PendingMessage.
  11883. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  11884. The action after receiving peer message was moved to each message
  11885. class.
  11886. (onGotNewPice): Moved to SendMessageQueue.
  11887. (onGotWrongPiece): Moved to SendMessageQueue.
  11888. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  11889. (sendInterest): Moved to SendMessageQueue.
  11890. (createRequestPendingMessage): Removed.
  11891. (sendMessages): Moved to SendMessageQueue.
  11892. (onAbort): Use SendMessageQueue::abortPiece()
  11893. (keepAlive): Use sendMessageQueue instead of peerConnection.
  11894. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  11895. (checkPieceHash): Moved to SendMessageQueue.
  11896. (erasePieceOnDisk): Moved to SendMessageQueue.
  11897. * src/PeerMessageUtil.h
  11898. (createBitfieldMessage): Removed.
  11899. (createHaveMessage): Changed return value and arguments.
  11900. (createBitfieldMessage): Changed return value and arguments.
  11901. (createRequestCancelMessage): Removed.
  11902. (createPieceMessage): Changed return value and arguments.
  11903. (getShortIntParam): New function.
  11904. (checkIndex): Changed arguments.
  11905. (checkBegin): Changed arguments.
  11906. (checkLength): Changed arguments.
  11907. (checkPieceOffset): Removed.
  11908. (checkRange): New function.
  11909. (checkBitfield): Changed arguments.
  11910. (createPeerMessage): Removed.
  11911. (checkIntegrity): Removed.
  11912. (createHandshakeMessage): Changed arguments.
  11913. (createChokeMessage): New function.
  11914. (createUnchokeMessage): New function.
  11915. (createInterestedMessage): New function.
  11916. (createNotInterestedMessage): New function.
  11917. (createRequestMessage): New function.
  11918. (createCancelMessage): New function.
  11919. (createPortMessage): New function.
  11920. * src/PeerMessageUtil.cc
  11921. (createBitfieldMessage): Removed.
  11922. (createHaveMessage): Changed return value and arguments.
  11923. (createBitfieldMessage): Changed return value and arguments.
  11924. (createRequestCancelMessage): Removed.
  11925. (createPieceMessage): Changed return value and arguments.
  11926. (getShortIntParam): New function.
  11927. (checkIndex): Changed arguments.
  11928. (checkBegin): Changed arguments.
  11929. (checkLength): Changed arguments.
  11930. (checkPieceOffset): Removed.
  11931. (checkRange): New function.
  11932. (checkBitfield): Changed arguments.
  11933. (createPeerMessage): Removed.
  11934. (checkIntegrity): Removed.
  11935. (createHandshakeMessage): Changed arguments.
  11936. (createChokeMessage): New function.
  11937. (createUnchokeMessage): New function.
  11938. (createInterestedMessage): New function.
  11939. (createNotInterestedMessage): New function.
  11940. (createRequestMessage): New function.
  11941. (createCancelMessage): New function.
  11942. (createPortMessage): New function.
  11943. * src/PeerMessage.h
  11944. (id): Removed.
  11945. (index): Removed.
  11946. (begin): Removed.
  11947. (length): Removed.
  11948. (bitfield): Removed.
  11949. (bitfieldLength): Removed.
  11950. (block): Removed.
  11951. (blockLength): Removed.
  11952. (inProgress): New variable.
  11953. (cuid): New variable.
  11954. (peer): New variable.
  11955. (sendMessageQueue): New variable.
  11956. (logger): New variable.
  11957. (setBitfield): Removed.
  11958. (getBitfield): Removed.
  11959. (setBlock): Removed.
  11960. (getBlock): Removed.
  11961. (getBitfieldLength): Removed.
  11962. (getBlockLength): Removed.
  11963. (isInProgress): New function.
  11964. (toString): Made pure virtual.
  11965. (check): New function.
  11966. (send): New function.
  11967. (receivedAction): New function.
  11968. (getId): Made pure virtual.
  11969. (setId): Removed.
  11970. (getIndex): Removed.
  11971. (setIndex): Removed.
  11972. (getBegin): Removed.
  11973. (setBegin): Removed.
  11974. (getLength): Removed.
  11975. (setLength): Removed.
  11976. (getCuid): New function.
  11977. (setCuid): New function.
  11978. (getPeer): New function.
  11979. (setPeer): New function.
  11980. (getSendMessageQueue): New function.
  11981. (setSendMessageQueue): New function.
  11982. (ID): Removed.
  11983. * src/PeerMessage.cc
  11984. (setBitfield): Removed.
  11985. (setBlock): Removed.
  11986. (toString): Removed.
  11987. * src/TorrentMan.h
  11988. (getPieceLength): New function.
  11989. (getPieceLength): New function.
  11990. * src/SendMessageQueue.h
  11991. (REQUEST_TIME_OUT): New definition.
  11992. (RequestSlots): New definition.
  11993. (MessageQueue): New definition.
  11994. (requestSlotMan): Removed.
  11995. (pendingMessages): Removed.
  11996. (requestSlots): New variable.
  11997. (messageQueue): New variable.
  11998. (torrentMan): New variable.
  11999. (peerConnection): New variable.
  12000. (peer): New variable.
  12001. (piece): New variable.
  12002. (getNewPieceAndSendInterest): New function.
  12003. (createPeerMessage): New function.
  12004. (createHandshakeMessage): New function.
  12005. (send): Made private.
  12006. (setPeerMessageCommonProperty): New function.
  12007. (deleteAllRequestSlot): New function.
  12008. (deleteRequestMessageInQueue): New function.
  12009. (cancelAllRequest): Made private.
  12010. (cancelAllRequest): Made private.
  12011. (countRequestSlot): Made private.
  12012. (addPendingMessage): Removed.
  12013. (deletePendingPieceMessage): Removed.
  12014. (deletePendingRequestMessage): Removed.
  12015. (addMessage): New function.
  12016. (deletePieceMessageInQueue): New function.
  12017. (deleteTimeoutRequestSlot): Changed argument.
  12018. (deleteCompletedRequestSlot): Changed argument.
  12019. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12020. (getCorrespondingRequestSlot): New function.
  12021. (countPendingMessage): Removed.
  12022. (countMessageInQueue): New function.
  12023. (getTorrentMan): New function.
  12024. (getPeerConnection): New function.
  12025. (hasDownloadPiece): New function.
  12026. (getDownloadPiece): New function.
  12027. (setDownloadPiece): New function.
  12028. (syncPiece): New function.
  12029. (sendMessages): New function.
  12030. (sendNow): New function.
  12031. (trySendNow): New function.
  12032. (abortPiece): New function.
  12033. (sendHandshake): New function.
  12034. (receiveMessage): New function.
  12035. (receiveHandshake): New function.
  12036. (createRequestMessage): New function.
  12037. (createCancelMessage): New function.
  12038. (createPieceMessage): New function.
  12039. (createHaveMessage): New function.
  12040. (createChokeMessage): New function.
  12041. (createUnchokeMessage): New function.
  12042. (createInterestedMessage): New function.
  12043. (createNotInterestedMessage): New function.
  12044. (createBitfieldMessage): New function.
  12045. (createKeepAliveMessage): New function.
  12046. * src/SendMessageQueue.cc
  12047. (SendMessageQueue): Removed requestSlotMan.
  12048. Instantiated peerConnection here.
  12049. (~SendMessageQueue): Removed requestSlotMan.
  12050. Added deletion of peerConnection and the contents of messageQueue.
  12051. (send): Updated according to the change of messageQueue.
  12052. (addPendingMessage): Renamed to addMessage.
  12053. (addMessage): New function.
  12054. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12055. (deletePieceMessageInQueue): New function.
  12056. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12057. (deleteRequestMessageInQueue): New function.
  12058. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12059. here.
  12060. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12061. (...) was moved here.
  12062. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12063. moved here.
  12064. (deleteCompletedRequestSlot):
  12065. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12066. (getCorrespondingRequestSlot):
  12067. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12068. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12069. (countPendingMessage): Renamed to countMessageInQueue.
  12070. (countMessageInQueue): New function.
  12071. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12072. (receiveHandshake): New function.
  12073. (createHandshakeMessage): New function.
  12074. (receiveMessage): New function.
  12075. (createPeerMessage): New function.
  12076. (syncPiece): New function.
  12077. (getNewPieceAndSendInterest): New function.
  12078. (sendMessages): New function.
  12079. (sendNow): New function.
  12080. (trySendNow): New function.
  12081. (sendHandshake): New function.
  12082. (abortPiece): New function.
  12083. (getDownloadPiece): New function.
  12084. (getPeerMessageCommonProperty): New function.
  12085. (createRequestMessage): New function.
  12086. (createCancelMessage): New function.
  12087. (createPieceMessage): New function.
  12088. (createHaveMessage): New function.
  12089. (createChokeMessage): New function.
  12090. (createUnchokeMessage): New function.
  12091. (createInterestedMessage): New function.
  12092. (createNotInterestedMessage): New function.
  12093. (createBitfieldMessage): New function.
  12094. (createKeepAliveMessage): New function.
  12095. To add simple Content-Disposition support:
  12096. * src/HttpResponseCommand.h (determinFilename): New function.
  12097. * src/HttpResponseCommand.cc (executeInternal):
  12098. Use determinFilename(headers) instead of req->getFile() when comparing
  12099. filename.
  12100. (determinFilename): New function.
  12101. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12102. req->getFile().
  12103. (handleOtherEncoding): Use determinFilename(headers) instead of
  12104. req->getFile().
  12105. * src/Util.h (getContentDispositionFilename): New function.
  12106. * src/Util.cc (getContentDispositionFilename): New function.
  12107. * src/LogFactory.h (release): New function.
  12108. * src/LogFactory.cc (release): New function.
  12109. To fix a bug that causes out-of-bound exception when HTTP status
  12110. line is wrong:
  12111. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12112. size.
  12113. * src/common.h (Deleter): New class.
  12114. * src/SegmentMan.cc
  12115. (~SegmentMan): Added deletion of splitter and diskWriter.
  12116. * src/DownloadEngine.h
  12117. (Commands): Use deque.
  12118. (clearQueue): New function.
  12119. * src/DownloadEngine.cc
  12120. (~DownloadEngine): Added deletion of segmentMan.
  12121. (cleanQueue): New function.
  12122. * src/TorrentDownloadEngine.h
  12123. (TorrentDownloadEngine): The implementation was moved to
  12124. TorrentDownloadEngine.cc.
  12125. (~TorrentDownloadEngine): The implementation was moved to
  12126. TorrentDownloadEngine.cc.
  12127. * src/TorrentDownloadEngine.cc
  12128. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12129. * src/main.cc
  12130. (clearRequest): Removed.
  12131. (handler): Added deletion of e.
  12132. (torrentHandler): Added deletion of te.
  12133. (main): Do not share splitter.
  12134. Use Deleter instead of clearRequest.
  12135. Deletion of classes were updated.
  12136. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12137. * src/main.cc (main): Fixed typo.
  12138. * src/message.h: Fixed typo.
  12139. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12140. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12141. To add --select-file command-line option:
  12142. * src/Util.cc
  12143. (unfoldRange): New function.
  12144. (getNum): New function.
  12145. (unfoldSubRange): New function
  12146. * src/main.cc
  12147. (showUsage): Added help message.
  12148. (main): Added --select-file command-line option. Updated the layout of
  12149. file listing.
  12150. * src/common.h
  12151. (Integers): New definition.
  12152. * src/SocketCore.cc
  12153. (writeData): Removed timeout argument.
  12154. (readData): Removed timeout argument.
  12155. (peekData): Removed timeout argument.
  12156. * src/Socket.cc
  12157. (writeData): Removed timeout argument.
  12158. (readData): Removed timeout argument.
  12159. (peekData): Removed timeout argument.
  12160. * Release 0.4.1
  12161. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12162. To deploy upload rate based choking algorithm:
  12163. * src/PeerInteractionCommand.cc
  12164. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12165. peer currently used.
  12166. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12167. download completes. Simplified.
  12168. (receiveMessage): Updated.
  12169. * src/TorrentMan.h
  12170. (activePeers): New variable.
  12171. (addActivePeer): New function.
  12172. (getActivePeers): New function.
  12173. (deleteActivePeer): New function.
  12174. * src/TorrentMan.cc
  12175. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12176. * src/PeerAbstractCommand.cc
  12177. (onAbort): Use peer->resetStatus().
  12178. * src/main.cc
  12179. (PeerChokeCommand.h): Included.
  12180. (main): Added the instance of ChokingCommand to the command queue.
  12181. * src/Peer.h
  12182. (amChoking): Renamed from amChocking
  12183. (chokingRequired): New variable.
  12184. (optUnchoking): New variable.
  12185. (deltaUpload): New variable.
  12186. (deltaDownload): New variable.
  12187. (addDeltaUpload): New function.
  12188. (resetDeltaUpload): New function.
  12189. (addDeltaDownload): New function.
  12190. (resetDeltaDownload): New function.
  12191. (addPeerUpload): Added a call to addDeltaUpload.
  12192. (addPeerDownload): Added a call to addDeltaDownload.
  12193. * src/Peer.cc
  12194. (shouldBeChoking): Renamed from shouldChoke.
  12195. (resetStatus): New function.
  12196. * src/PeerChokeCommand.h: New class.
  12197. * src/PeerChokeCommand.cc: New class.
  12198. To add lazy upload speed limiter:
  12199. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  12200. statistics calculation to TorrentDownloadEngine.
  12201. * src/TorrentConsoleDownloadEngine.cc
  12202. (sendStatistics): Renamed from printStatistics.
  12203. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  12204. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  12205. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  12206. * src/TorrentDownloadEngine.h: Added the variables for statistics
  12207. calculation.
  12208. (sendStatistics): New function as pure virtual function.
  12209. (getUploadSpeed): New function.
  12210. * src/TorrentDownloadEngine.cc
  12211. (initStatistics): New function.
  12212. (calculateSpeed): New function.
  12213. (calculateStatistics): New function.
  12214. * src/SendMessageQueue.h
  12215. (uploadLength): New variable.
  12216. (send): Added an argument.
  12217. (setUploadLimit): New function.
  12218. (getUploadLimit): New function.
  12219. * src/SendMessageQueue.cc
  12220. (send): Added upload speed limiter.
  12221. * src/prefs.h
  12222. (PREF_UPLOAD_LIMIT): New definition.
  12223. * src/PeerInteractionCommand.cc
  12224. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  12225. * src/main.cc
  12226. (main): Added --upload-limit option
  12227. For bug fixes:
  12228. * src/main.cc
  12229. (showUsage): Corrected --listen-port help
  12230. Other changes:
  12231. * src/TorrentMan.cc
  12232. (getPeer): Return nullPeer if connection is grather than
  12233. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  12234. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12235. To add some useful information to the exception message:
  12236. * src/SocketCore.cc : Updated messages.
  12237. * src/SegmentMan.cc :
  12238. * src/TorrentMan.cc : Updated messages.
  12239. * src/MultiDiskWriter.cc : Updated messages.
  12240. * src/Util.cc : Updated messages.
  12241. * src/AbstractDiskWriter.cc : Updated messages.
  12242. * src/PreAllocationDiskWriter.cc : Updated messages.
  12243. * src/message.cc : Added new messages. Updated some messages.
  12244. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12245. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12246. Updated threshold from 30 to 15.
  12247. * src/AbstractDiskWriter.h (filename): New variable.
  12248. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12249. (createFile): Assigned filename.
  12250. * src/main.cc: Updated the help message for http-auth-scheme.
  12251. * Release 0.4.0
  12252. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12253. To add TrackerUpdateCommand with which replaces
  12254. CompactTrackerResponseProcessor:
  12255. * src/TrackerWatcherCommand.h (req): Removed.
  12256. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12257. if the number of peer connections are less than 30.
  12258. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12259. * src/SegmentMan.h (diskWriter): New function.
  12260. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12261. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12262. (main): Use TrackerUpdateCommand.
  12263. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12264. (req): New variable.
  12265. (setTrackerResponseProcessor): Removed.
  12266. (getTrackerResponseProcessor): Removed.
  12267. (processTrackerResponse): Removed.
  12268. * src/DownloadEngine.h (diskWriter): Removed.
  12269. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12270. to torrentMan->processTrackerResponse().
  12271. To add Util::expandBuffer:
  12272. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12273. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12274. * src/Util.h (expandBuffer): New function.
  12275. To fix the bug that causes segmentation fault when "-l ." is specified
  12276. in command-line option:
  12277. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  12278. (openFile): New function.
  12279. (closeFile): New function.
  12280. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  12281. (~SimpleLogger): Call closeFile();
  12282. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  12283. * src/main.cc (main): Added a check to see logger is configured
  12284. properly.
  12285. To enable HTTP authentication without specifying "--http-auth-scheme"
  12286. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  12287. * src/HttpConnection.cc (createRequest): Send Authorization header
  12288. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  12289. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  12290. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  12291. * src/Peer.cc (shouldChoke): Updated algorithm.
  12292. * src/message.h (EX_AUTH_FAILED): New definition.
  12293. (EX_FILE_OPEN): New definition.
  12294. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  12295. if status == 401.
  12296. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  12297. if req->isTorrent == true.
  12298. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  12299. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  12300. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  12301. (createFile): Updated message.
  12302. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12303. To add a readout of estimated remaining time to normal HTTP/FTP
  12304. downloads:
  12305. * src/ConsoleDownloadEngine.h (startup): New variable.
  12306. (startupLength): New variable.
  12307. (isStartupLengthSet): New variable.
  12308. (avgSpeed): New variable.
  12309. (eta): New variable.
  12310. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12311. estimated remaining time.
  12312. (initStatistics): Initialized newly added variables.
  12313. (calculateStatistics): Calculate average speed and estimated remaining
  12314. time.
  12315. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12316. * src/TrackerDownloadCommand.h: Removed.
  12317. * src/TrackerDownloadCommand.cc: Removed.
  12318. * src/TrackerInitCommand.h: Removed.
  12319. * src/TrackerInitCommand.cc: Removed.
  12320. * src/TrackerUpdateCommand.h: Removed.
  12321. * src/TrackerUpdateCommand.cc: Removed.
  12322. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12323. url written in TrackerInitCommand was moved here. Do not create
  12324. tracker request command if torrentMan->trackers != 0.
  12325. * src/CompactTrackerResponseProcessor.h: New class.
  12326. * src/CompactTrackerResponseProcessor.cc: New class.
  12327. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12328. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12329. Decoupled TorrentDownloadEngine from this.
  12330. * src/SegmentMan.h (init): New function.
  12331. * src/SegmentMan.cc (init): New function.
  12332. * src/TorrentMan.h (responseProcessor): New variable.
  12333. (trackers): New variable.
  12334. (setTrackerResponseProcessor): New function.
  12335. (getTrackerResponseProcessor): New function.
  12336. (processTrackerResponse): New function.
  12337. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12338. (processTrackerResponse): New function.
  12339. * src/main.cc (main): Use ByteArrayDiskWriter and
  12340. CompactTrackerResponseProcessor.
  12341. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12342. processTrackerResponse().
  12343. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12344. readout.
  12345. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12346. which indicates download has completed.
  12347. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12348. (closeFile): fd >= 0, not fd > 0
  12349. * src/main.cc (main): Added short cut for show-files.
  12350. Added short cut for torrent-file.
  12351. Added new command-line option listen-port.
  12352. Updated i18n messages.
  12353. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12354. To add LogFactory which creates singleton logger:
  12355. * src/LogFactory.h: New class.
  12356. * src/LogFactory.cc: New class.
  12357. * src/Command.h (logger): New variable.
  12358. (Constructor): Use LogFactory.
  12359. * src/AbstractCommand.cc: Use Command::logger
  12360. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12361. Use LogFactory.
  12362. * src/SegmentSplitter.h : Made logger protected.
  12363. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12364. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12365. * src/DownloadEngine.h : Made logger protected.
  12366. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12367. * src/PeerInteractionCommand.cc : Use Command::logger.
  12368. * src/HttpResponseCommand.cc : Use Command::logger.
  12369. * src/SegmentMan.h : Made logger private.
  12370. * src/TorrentMan.h : Made logger private.
  12371. * src/TorrentMan.cc : Use LogFactory.
  12372. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12373. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12374. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12375. Use LogFactory.
  12376. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12377. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12378. Use LogFactory.
  12379. * src/DownloadCommand.cc : Use Command::logger.
  12380. * src/PeerAbstractCommand.cc : Use Command::logger.
  12381. * src/PeerListenCommand.cc : Use Command::logger.
  12382. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12383. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12384. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12385. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12386. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12387. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12388. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12389. Use LogFactory.
  12390. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12391. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12392. Use LogFactory.
  12393. * src/main.cc (main): Use LogFactory.
  12394. * src/DiskAdaptor.h (logger): New variable.
  12395. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12396. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12397. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12398. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12399. parameter to a tracker request.
  12400. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12401. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12402. * src/main.cc (setSignalHander): New function.
  12403. (main): Added a handler for SIGTERM.
  12404. (handler): Updated message.
  12405. (torrentHandler): Updated message.
  12406. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12407. * src/TorrentConsoleDownloadEngine.cc
  12408. (onPartialDownloadingCompletes): Renamed as
  12409. onSelectiveDownloadingCompletes.
  12410. (onSelectiveDownloadingCompletes): Updated message.
  12411. To add DiskAdaptor which abstract DiskWriter family:
  12412. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  12413. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  12414. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  12415. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  12416. MultiDiskAdaptor.h.
  12417. (readFileEntry): Changed its arguments.
  12418. (setup): setupDiskWriter is merged into this function.
  12419. (setupDiskWriter): Removed.
  12420. (setFileFilter): New function.
  12421. (readFileEntryFromMetaInfoFile): Updated according to the changes
  12422. made in readFileEntry.
  12423. (getFilePath): Removed.
  12424. (getTempFilePath): Removed.
  12425. (getSegmentFilePath): Updated due to the removal of getFilePath.
  12426. (fixFilename): Removed.
  12427. (copySingleFile): Removed.
  12428. (splitMultiFile): Removed.
  12429. (deleteTempFile): Removed.
  12430. (setFileEntriesToDownload): Removed.
  12431. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  12432. (isSelectiveDownloadingMode): New function.
  12433. (setAllMultiFileRequestedState): Removed.
  12434. (finishPartialDownloadingMode): Renamed as
  12435. finishSelectiveDownloadingMode.
  12436. (finishSelectiveDownloadingMode): New function.
  12437. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  12438. (getSelectedTotalLength): New function.
  12439. (onDownloadComplete): Use diskAdaptor.
  12440. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  12441. (Range): Removed.
  12442. (setMultiFileEntries): Renamed as setFileEntries.
  12443. (setFileEntries): New function.
  12444. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  12445. (pieceLength): New variable.
  12446. * src/main.cc (printDownloadCompeleteMessage): New function.
  12447. (torrentHandler): Use diskAdaptor instead of diskWriter.
  12448. (main): Renamed torrent-show-files to show-files.
  12449. Rewritten file contents listing.
  12450. * src/TorrentMan.h (FileEntry): Removed.
  12451. (multiFileTopDir): Removed.
  12452. (multiFileEntries): Removed.
  12453. (diskWriter): Removed.
  12454. (diskAdaptor): New variable.
  12455. * src/DefaultDiskWriter.h (totalLength): New variable.
  12456. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  12457. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  12458. diskWriter.
  12459. * src/TorrentConsoleDownloadEngine.h
  12460. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  12461. (partialTotalLength): Renamed as selectedTotalLength.
  12462. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  12463. openExistingFile, otherwise call initAndOpenFile.
  12464. (closeFile): fd > 0, not fd != 0.
  12465. * src/DirectDiskAdaptor.h: New class.
  12466. * src/DirectDiskAdaptor.cc: New class.
  12467. * src/MultiDiskAdaptor.h: New class.
  12468. * src/MultiDiskAdaptor.cc: New class.
  12469. * src/CopyDiskAdaptor.h: New class.
  12470. * src/CopyDiskAdaptor.cc: New class.
  12471. * src/DiskAdaptor.h: New class.
  12472. * src/DiskAdaptor.cc: New class.
  12473. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  12474. (PREF_SHOW_FILES): New definition.
  12475. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12476. To add the ability to download multi torrent into respective files
  12477. directly:
  12478. * src/DiskWriter.h (openFile): New function.
  12479. (seek): Removed.
  12480. * src/MultiDiskWriter.h: New class.
  12481. * src/MultiDiskWriter.cc: New class.
  12482. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  12483. protected.
  12484. (openFile): New function.
  12485. * src/AbstractDiskWriter.cc (openFile): New function.
  12486. * src/prefs.h (V_FALSE): New definition.
  12487. (PREF_DIRECT_FILE_MAPPING): New definition.
  12488. * src/TorrentMan.h (setupDiskWriter): New function.
  12489. (setAllMultiFileRequestedState): New function.
  12490. (onDownloadComplete): New function.
  12491. * src/TorrentMan.cc : Included MultiDiskWriter.h
  12492. (setupDiskWriter): New function.
  12493. (getFilePath): Updated.
  12494. (getTempFilePath): Updated.
  12495. (getSegmentFilePath): Updated.
  12496. (fixFilename): Updated.
  12497. (deleteTempFile): Updated.
  12498. (setAllMultiFileRequestedState): New function.
  12499. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  12500. (finishPartialDownloadingMode): Reset requested flags.
  12501. (onDownloadComplete): New function.
  12502. * src/main.cc: Added --direct-file-mapping option.
  12503. Use TorrentMan::setupDiskWriter().
  12504. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  12505. onDownloadComplete().
  12506. To fix ETA bug:
  12507. * src/Util.h (difftvsec): New function.
  12508. * src/Util.cc (difftvsec): New function.
  12509. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  12510. type of "elapsed" instead of long long int.
  12511. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  12512. The updates of statistics takes place every 1 seconds.
  12513. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  12514. (calculateSpeed): Changed its argument signature.
  12515. * src/PeerMessage.cc (toString): Fixed message.
  12516. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12517. To print ETA:
  12518. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  12519. completion handling when dealing with
  12520. TorrentMan::isPartialDownloadingMode() == true.
  12521. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  12522. New function.
  12523. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  12524. (sessionDownloadLength): New variable.
  12525. (avgSpeed): New variable.
  12526. (eta): New variable.
  12527. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  12528. new variables: eta, avgSpeed, startup.
  12529. (calculateSpeed): Calculate average speed and ETA.
  12530. (printStatistics): Added ETA.
  12531. * src/Util.h (secfmt): New function.
  12532. * src/Util.cc (secfmt): New function.
  12533. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12534. To detect "keep alive" flooding:
  12535. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  12536. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  12537. variable: keepAliveCount.
  12538. (detectMessageFlooding): Added "keep alive" flooding detection.
  12539. (receiveMessage): Increase keepAliveCount when "keep alive" message
  12540. received.
  12541. To add the ability to download only specified files in multi-file
  12542. torrent:
  12543. * src/BitfieldMan.h (filterBitfield): New variable.
  12544. (filterEnabled): New variable.
  12545. (setFilterBit): New function.
  12546. (enableFilter): New function.
  12547. (disableFilter): New function.
  12548. (isFilterEnabled): New function.
  12549. (getFilteredTotalLength): New function.
  12550. (getCompletedLength): New function.
  12551. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  12552. filterBitfield, filterEnabled.
  12553. (CopyConstructor): Added filterBitfield and filterEnabled.
  12554. (operator==): Added filterBitfield and filterEnabled.
  12555. (Destructor): Added filterBitfield.
  12556. (getMissingIndex): Use filterBitfield.
  12557. (getMissingUnusedIndex): Use filterBitfield.
  12558. (getFirstMissingUnusedIndex): Use filterBitfield.
  12559. (getFirstMissingUnusedIndex): Use filterBitfield.
  12560. (getAllMissingIndexes): Use filterBitfield.
  12561. (countMissingBlock): Use filterBitfield.
  12562. (countBlock): Use filterBitfield.
  12563. (setBitInternal): Added new argument on.
  12564. (setUseBit): Use setBitInternal.
  12565. (unsetUseBit): Use setBitInternal.
  12566. (setBit): Use setBitInternal.
  12567. (unsetBit): Use setBitInternal.
  12568. (isAllBitSet): Use filterBitfield.
  12569. (setFilterBit): New function.
  12570. (addFilter): New function.
  12571. (enableFilter): New function.
  12572. (disableFilter): New function.
  12573. (clearFilter): New function.
  12574. (isFilterEnabled): New function.
  12575. (getFilteredTotalLength): New function.
  12576. (getCompletedLength): New function.
  12577. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  12578. Initalized newly added variables.
  12579. [FileEntry](offset): New variable.
  12580. [FileEntry](extracted): New variable.
  12581. [FileEntry](requested): New variable.
  12582. (readFileEntry): New function.
  12583. (option): New variable.
  12584. (splitMultiFile): Removed const qualifier.
  12585. (fixFilename): Removed const qualifier.
  12586. (readFileEntryFromMetaInfoFile): New function.
  12587. (finishPartialDownloadingMode): New function.
  12588. (isPartialDownloadingMode): New function.
  12589. (setFileEntriesToDownload): New function.
  12590. (getCompletedLength): New function.
  12591. (getPartialTotalLength): New function.
  12592. * src/TorrentMan.cc (readFileEntry): New function.
  12593. (setup): Use readFileEntry. If no-preallocation option is specified,
  12594. use DefaultDiskWriter.
  12595. (readFileEntryFromMetaInfoFile): New function.
  12596. (fixFilename): Removed const qualifier.
  12597. (splitMultiFile): Removed const qualifier.
  12598. (setFileEntriesToDownload): New function.
  12599. (isPartialDownloadingMode): New function.
  12600. (finishPartialDownloadingMode): New function.
  12601. (getCompletedLength): New function.
  12602. (getPartialTotalLength): New function.
  12603. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  12604. New variable.
  12605. (partialTotalLength): New variable.
  12606. (downloadLength): New variable.
  12607. (totalLength): New variable.
  12608. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  12609. Added log.
  12610. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  12611. partialTotalLength, downloadLength, totalLength.
  12612. (calculate): Calculate downloadLength and totalLength.
  12613. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  12614. * src/main.cc (addCommand): Changed argument signature.
  12615. (main): Added new variable: args. Added new option "torrent-show-files"
  12616. "no-preallocation". Usage is not updated yet.
  12617. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12618. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  12619. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12620. Attempt to add the ability to listing file entries in a .torrent file.
  12621. This feature is not yet complete.
  12622. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  12623. * src/TorrentMan.cc (getMultiFileEntries): New function.
  12624. (getName): New function.
  12625. * src/TorrentMan.h (getMultiFileEntries): New function.
  12626. (getName): New function.
  12627. * src/main.cc (main): Use above 2 funtion.
  12628. * Release 0.3.2
  12629. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12630. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  12631. (detectMessageFlooding): Updated threshold value.
  12632. (checkLongTimePeerChoking): Updated timeout value.
  12633. (getNewPieceAndSendInterest): Added debug log.
  12634. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  12635. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  12636. (getPeer): Updated.
  12637. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  12638. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  12639. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  12640. is localhost.
  12641. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  12642. * src/PendingMessage.cc (processMessage): Not to send piece message
  12643. if peer is not interested in the pieces localhost has.
  12644. * src/Peer.cc (shouldChoke): Updated.
  12645. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  12646. * src/Util.cc (isPowerOf): New function.
  12647. * src/Util.h (isPowerOf): New function.
  12648. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  12649. whether or not it is power of 2.
  12650. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12651. Added new class SendMessageQueue that includes PendingMessages and
  12652. RequestSlotMan.
  12653. * src/SendMessageQueue.h: New class.
  12654. * src/SendMessageQueue.cc: New class.
  12655. * src/PendingMessage.h: Added new member variable blockIndex and its
  12656. accessors.
  12657. (createRequestMessage): Updated.
  12658. * src/PendingMessage.cc (createRequestMessage): Updated.
  12659. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  12660. SendMessageQueue.
  12661. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  12662. (receiveMessage): Updated with SendMessageQueue.
  12663. (deletePendingPieceMessage): Removed.
  12664. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  12665. (sendInterest): Updated with SendMessageQueue.
  12666. (createRequestPendingMessage): Updated with SendMessageQueue.
  12667. (sendMessages): Updated with SendMessageQueue.
  12668. (onAbort): Updated with SendMessageQueue.
  12669. (keepAlive): Updated with SendMessageQueue.
  12670. (beforeSocketCheck): Updated SendMessageQueue.
  12671. * src/PeerInteractionCommand (sendMessages): Shuffle
  12672. missingBLockIndexes before using it.
  12673. Added its own timeout for peer connection.
  12674. * src/PeerAbstractCommand.h: Added member variable timeout and its
  12675. setter.
  12676. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  12677. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12678. Added setTimeout() call.
  12679. (executeInternal): Added setTimeout() call.
  12680. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  12681. Added timeout.
  12682. (isTimeoutDetected): Updated.
  12683. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  12684. option.
  12685. Added *simple* message flooding checker.
  12686. * src/PeerInteractionCommand.cc (executeInternal):
  12687. Added detectMessageFlooding() call.
  12688. (detectMessageFlooding): New function.
  12689. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  12690. (beforeSocketCheck): Added detectMessageFlooding() call.
  12691. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  12692. chokeUnchokeCount, haveCount, detectMessageFlooding().
  12693. Removed deletePendingPieceMessage(), getRequestSlot(),
  12694. deleteRequestSlot(), deleteAllRequestSlot().
  12695. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  12696. Added checkLongTimePeerChoking() call.
  12697. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  12698. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  12699. if duplicate == false.
  12700. The parameter "uploaded" and "downloaded" in the tracker request are
  12701. the size since the client sent the "started" event to the tracker.
  12702. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  12703. uploaded size to preDownloadedSize, preUploadedSize respectively.
  12704. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  12705. getSessionDownloadedSize(), getSessionUploadedSize().
  12706. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  12707. getSessionUploadedSize() instead of getDownloadedSize(),
  12708. getUploadedSize().
  12709. * src/PendingMessage.cc (processMessage): Do not send request message
  12710. if the peer is choking the client.
  12711. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  12712. less than interval.
  12713. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12714. * configure.in: Added gnutls support. Added several CPP macros.
  12715. * m4/openssl.m4: Added.
  12716. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  12717. readData(), peekData(). Added gnutls support.
  12718. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  12719. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  12720. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  12721. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  12722. Instead, added a check for whether setup method has executed
  12723. successfully.
  12724. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  12725. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  12726. * src/Makefile.am: Updated.
  12727. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  12728. using whether OpenSSL or gcrypt, depending on the result of configure
  12729. script.
  12730. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  12731. messageDigest.h.
  12732. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  12733. * src/PeerListenCommand.cc: Added log about port binded successfully.
  12734. Fixed memory leak.
  12735. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  12736. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  12737. Removed instantiation of TrackerInitCommand. Instead,
  12738. TrackerWatcherCommand is instantiated and pushed to the command queue.
  12739. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  12740. ENABLE_SSL.
  12741. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  12742. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  12743. If a piece is already acquired by another command, delete the request
  12744. slots for the piece.
  12745. * src/TrackerUpdateCommand.cc (execute):
  12746. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  12747. Added a check whether peer list is null.
  12748. Fixed the bug that causes sending completed event to the tracker
  12749. several times.
  12750. * src/TrackerInitCommand.cc (execute):
  12751. Fixed the bug that causes sending completed event to the tracker
  12752. several times.
  12753. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  12754. by using messageDigest.h.
  12755. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12756. * PeerConnection.cc: Replaced log message "keep-alive" with
  12757. "keep alive".
  12758. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  12759. localhost long time.
  12760. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  12761. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  12762. at most 100 failure entry from the list. If with duplicate = false,
  12763. MAX_PEER_LIST is not checked.
  12764. * PeerListenCommand.cc: Fixed the argument order of log message.
  12765. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12766. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  12767. Added warn().
  12768. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  12769. Implemented warn().
  12770. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  12771. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12772. * Request.h: Added AFTER_COMPLETED event.
  12773. * TorrentDownloadEngine.cc: Prints "Download complete" message
  12774. instead of downloaded size and progress(%) after download completes.
  12775. * PeerInteractionCommand.cc: After download completes, sends unchoke
  12776. message to the peer if it is interested in what localhost has
  12777. downloaded.
  12778. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  12779. destination instead of just renaming it.
  12780. * TorrentMan.cc: Added deleteTempFile().
  12781. * PeerAbstractCommand.cc: do not stop execution after download
  12782. completes. This makes localhost a seeder.
  12783. * Util.{h,cc}: Added fileCopy().
  12784. * PeerListenCommand.cc: do not stop execution after download completes.
  12785. This makes localhost a seeder.
  12786. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  12787. Added TorrentMan::deleteTempFile() to torrentHandler.
  12788. Initialized the variable dir as ".".
  12789. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  12790. Deleted renameSingleFile().
  12791. Added copySingleFile(), deleteTempFile().
  12792. * DownloadEngine.h: Added virtual function afterEachIteration().
  12793. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  12794. in onEndOfRun() to afterEachIteration().
  12795. In onEndOfRun(), changed if condition to check whether filenameFixed is
  12796. true.
  12797. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  12798. In rangedFileCopy(), added try-catch block to properly close file
  12799. descriptors.
  12800. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  12801. Added afterEachIteration(), isFilenameFixed().
  12802. * Peer.cc: Changed choking strategy.
  12803. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  12804. * TrackerInitCommand.cc: Send completed event only once.
  12805. * DownloadEngine.cc: Added a call to afterEachIteration().
  12806. * TrackerUpdateCommand.cc: Do not stop execution after download
  12807. completes.
  12808. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  12809. connect the peers at most MAX_PEER_UPDATE when a peer list is
  12810. received from a tracker.
  12811. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  12812. Decreased the number of failure peers to delete to 0(just comment out
  12813. the line).
  12814. * Release 0.3.1
  12815. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12816. * PeerInteractionCommand.cc: added a call to
  12817. TorrentMan::unadvertisePiece in Destructor.
  12818. * PeerInteractionCommand.cc: make have message sent immediately
  12819. if the size of pending message queue is zero.
  12820. * TorrentMan.cc: set the maximum size of peer list to 250.
  12821. * TorrentMan.h: changed the container type of Peers and UsedPieces
  12822. to deque.
  12823. * Util.cc: fixed rangedFileCopy.
  12824. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  12825. to Constructor. Also, moved digest cleanup to Destructor.
  12826. * MetaFileUtil.cc: fixed memory leak
  12827. * replaced std::vector with std::deque.
  12828. * AbstractCommand.cc: casted timeout value to long long int.
  12829. * ChunkedEncoding.cc: fixed memory leak.
  12830. * PeerInteractionCommand.cc: casted timeout value to long long int.
  12831. * SleepCommand.cc: casted timeout value to long long int.
  12832. * Data.cc: fixed memory leak.
  12833. * Data.cc: fixed toLLInt().
  12834. * BitfieldMan.cc: fixed memory leak.
  12835. * TorrentMan.cc: initialized storeDir to ".".
  12836. * TorrentMan.cc: fixed memory leak.
  12837. * TorrentMan.cc: corrected file paths of splitted files.
  12838. * PeerAbstractCommand.cc: casted timeout to long long int.
  12839. * main.cc: added delete(req) and delete(te->diskWriter).
  12840. * RequestSlot.cc: casted timeout value to long long int.
  12841. * Request.cc: fixed memory leak.
  12842. * PendingMessage.cc: make HAVE messages sent only when peer does not
  12843. have the piece.
  12844. * Peer.{h,cc}: added hasPiece(int index).
  12845. * main.cc: corrected addCommand.
  12846. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12847. * BitTorrent protocol support added.
  12848. * Release 0.3.0
  12849. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12850. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  12851. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12852. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  12853. decoding did not work properly.
  12854. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12855. * DownloadEngine.h: included sys/time.h
  12856. * DownloadEngine.cc: remove sys/time.h
  12857. * Makefile.am (SUBDIRS): Add intl.
  12858. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  12859. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12860. * main.cc: correct help message for --http-auth-scheme.
  12861. * main.cc: changed e-mail address for bug reports.
  12862. * ja.po: added japanese translation.
  12863. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12864. * SimpleLogger.cc: flush log file instead of stdout.
  12865. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12866. * main.cc: Fixed command-line option: max-tries
  12867. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  12868. does not equal to seg.sp.
  12869. * DownloadCommand.cc: If EOF is got from the server and the total size
  12870. of file is not zero, then throw DlRetryEx.
  12871. * main.cc: Set the minium value of min-segment-size to 1024.
  12872. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  12873. fails because of a regression since 0.2.0 release.
  12874. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12875. * HttpConnection.cc:
  12876. * common.h: defined the user agent name as macro
  12877. * DownloadEngine.{h, cc}:
  12878. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  12879. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  12880. * main.cc: Download complete/abort message is now generated by main.
  12881. * Makefile.am (SUBDIRS): Add m4.
  12882. (ACLOCAL_AMFLAGS): New variable.
  12883. (EXTRA_DIST): New variable.
  12884. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  12885. * gettext: added gettext functionality
  12886. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12887. * AbstractCommand.cc:
  12888. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  12889. unregister its cuid from SegmentMan.
  12890. * DownloadEngine.cc: .aria2 file was written when a downloading
  12891. failed with errors.
  12892. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  12893. Added "User-Agent" header to CONNECT proxy request.
  12894. Fixed "Proxy-Authorization" header. Now proxy authorization works
  12895. properly.
  12896. * Logger.h:
  12897. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  12898. * ChunkedEncoding.cc: Added #include directive for strings.h
  12899. * Release 0.2.1
  12900. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12901. * Util.{h,cc}: added startsWith().
  12902. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  12903. Util::endsWith().
  12904. * SocketCore.cc: struct addrinfo is now zero-initialized.
  12905. * common.h: added #include directive of limit.h.
  12906. * DownloadEngine.cc: added #include directive of sys/time.h and
  12907. algorithm.
  12908. * Exception.h: added #include directive of stdio.h.
  12909. * AbstractCommand.h: added #include directive of sys/time.h.
  12910. * DownloadCommand.h: added #include directive of sys/time.h.
  12911. * *.h: added #include directive of common.h to all base classes.
  12912. subclasses' one was removed.
  12913. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  12914. does not define these macros.
  12915. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12916. * Release 0.2.0
  12917. * main.cc:
  12918. * HttpInitiateConnectionCommand.{h,cc}:
  12919. * prefs.h:
  12920. * HttpConnection.{h,cc}: added --http-proxy-method option.
  12921. We can now use GET command in http proxy.
  12922. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12923. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  12924. that splits slowest segment of SegmentMan::commands vector.
  12925. This is the default split algorithm of aria2.
  12926. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  12927. that splits first segment of SegmentMan::commands vector.
  12928. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  12929. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  12930. * Segment.h:
  12931. * SegmentMan.cc: Added speed field to Segment.h
  12932. * main.cc: -s option now affects all URLs in command-line arguemtns.
  12933. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  12934. * message.h: Change file size related %d to %lld.
  12935. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12936. * FtpInitiateConnectionCommand.{h,cc}:
  12937. * FtpNegotiationCommand.{h,cc}:
  12938. * FtpDownloadCommand.{h,cc}:
  12939. * FtpConnection.{h,cc}: Added FTP support
  12940. * SimpleLogger.cc: Log message now includes time information.
  12941. * main.cc: The value of --http-auth-scheme option is chagned from
  12942. 'BASIC' to 'basic'
  12943. * main.cc: Added --timeout command-line option.
  12944. * main.cc: Added --min-segment-size command-line option.
  12945. * main.cc: Added --max-retries command-line option.
  12946. * prefs.h: option string constants are now defined in prefs.h
  12947. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12948. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  12949. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  12950. with version 0.1.0's one.
  12951. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12952. * configure.in: Added --enable-ssl option to configure script.
  12953. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  12954. cannot permit absoluteURI as Request-URI.
  12955. * HttpConnection.cc: Added Referer support.
  12956. * main.cc: Added referer command-line option.
  12957. * main.cc: Added rety-wait command-line option.
  12958. * Exception.h: Fixed formating bug in Exception::setMsg()
  12959. * SocketCore.{h,cc}:
  12960. * Socket.{h, cc}:
  12961. * Request.cc:
  12962. * InitiateConnectionCommandFactory.cc:
  12963. * HttpRequestCommand.cc: Added HTTPS support.
  12964. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  12965. for SocketCore.
  12966. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  12967. size is wrong
  12968. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  12969. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  12970. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  12971. * Release 0.1.0