ChangeLog 500 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716
  1. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added --max-overall-download-limit in man page.
  3. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4. * doc/aria2c.1.txt
  5. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Added --max-overall-download-limit option. Now --max-upload-limit
  7. option is not ignored when --max-overall-upload-limit option has
  8. non-zero value. aria2 checks download(upload) speed in the order:
  9. first checks overall speed limit and if it is not exceeded, then
  10. checks speed limit per download. Thus you can specify both
  11. value. For example, set --max-overall-download-limit=1M and
  12. --max-download-limit=500K to prevent from one download from eating
  13. all overall speed limit.
  14. * src/DefaultBtInteractive.cc
  15. * src/DefaultBtInteractive.h
  16. * src/DefaultBtMessageDispatcher.cc
  17. * src/DefaultBtMessageDispatcher.h
  18. * src/DownloadCommand.cc
  19. * src/DownloadCommand.h
  20. * src/FtpNegotiationCommand.cc
  21. * src/HttpResponseCommand.cc
  22. * src/OptionHandlerFactory.cc
  23. * src/PeerInteractionCommand.cc
  24. * src/RequestGroup.cc
  25. * src/RequestGroup.h
  26. * src/RequestGroupMan.cc
  27. * src/RequestGroupMan.h
  28. * src/prefs.cc
  29. * src/prefs.h
  30. * src/usage_text.h
  31. * test/DefaultBtMessageDispatcherTest.cc
  32. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Documented select-file option in Input File section.
  34. Documented --http-auth-challenge option.
  35. * doc/aria2c.1.txt
  36. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Now select-file can be specified in the uri list(-i list).
  38. * src/BtContext.cc
  39. * src/BtContext.h
  40. * src/RequestGroup.cc
  41. * src/Sequence.h
  42. * src/download_helper.cc
  43. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Made the upper value of --max-concurrent-downloads options unlimited.
  45. * src/OptionHandlerFactory.cc
  46. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. Fixed the bug that disk writer is not created even if it shares
  48. same piece with the preceding file if the length of previous file
  49. is 0.
  50. * src/MultiDiskAdaptor.cc
  51. * test/MultiDiskAdaptorTest.cc
  52. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. In BitTorrent, Open files in read-only mode for hash check. After
  54. that, re-open file in read/write mode only when the download is
  55. not finished.
  56. * src/AbstractDiskWriter.cc
  57. * src/AbstractDiskWriter.h
  58. * src/AbstractSingleDiskAdaptor.cc
  59. * src/AbstractSingleDiskAdaptor.h
  60. * src/BtCheckIntegrityEntry.cc
  61. * src/DiskAdaptor.h
  62. * src/DiskWriter.h
  63. * src/MultiDiskAdaptor.cc
  64. * src/MultiDiskAdaptor.h
  65. * src/RequestGroup.cc
  66. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Added --http-auth-challenge option. If it is set to true(by
  68. default), aria2 sends HTTP authorization header only when it is
  69. requested by the server. If false is set, then authorization
  70. header is always sent to the server. This is useful for servers
  71. that don't respond 401 code when authentication is required.
  72. There is an exception: if username and password are embedded in
  73. URI, authorization header is always sent to the server regardless
  74. of this option.
  75. * src/AuthConfigFactory.cc
  76. * src/HttpSkipResponseCommand.cc
  77. * src/OptionHandlerFactory.cc
  78. * src/prefs.cc
  79. * src/prefs.h
  80. * src/usage_text.h
  81. * test/AuthConfigFactoryTest.cc
  82. * test/HttpRequestTest.cc
  83. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. * Release 1.2.0
  85. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  86. Updated Spanish, Ukrainian, Russian and Japanese translations.
  87. Thanks to all translators.
  88. * po/es.po
  89. * po/ja.po
  90. * po/ru.po
  91. * po/uk.po
  92. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Call deleteSocketForReadCheck() before socket is closed.
  94. * src/HttpListenCommand.cc
  95. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Defined virtual destructor for BObject.
  97. * src/bencode.h
  98. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Rewritten BDE to make it efficient.
  100. * src/bencode.cc
  101. * src/bencode.h
  102. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Removed function throw list.
  104. * src/bencode.cc
  105. * src/bencode.h
  106. * test/BencodeTest.cc
  107. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Enclosed all URLs in double quotes in command-line examples.
  109. * doc/aria2c.1.txt
  110. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Updated reference/see also section.
  112. * README
  113. * doc/aria2c.1.txt
  114. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Reorganized man page based on man man-pages.
  116. * doc/aria2c.1.txt
  117. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  119. because same documents are available in man page. Added
  120. References section.
  121. * README
  122. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  124. PERFORMANCE PROFILE section.
  125. * doc/aria2c.1.txt
  126. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Rewritten the section for configuration file.
  128. * README
  129. * doc/aria2c.1.txt
  130. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Fixed the segmentation fault during execution of choking algorithm
  132. in leecher state because of broken compare operator
  133. implementation.
  134. * src/BtLeecherStateChoke.cc
  135. * src/BtLeecherStateChoke.h
  136. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Open file in binary mode.
  138. * src/CookieStorage.cc
  139. * src/DHTSetup.cc
  140. * src/DHTUtil.cc
  141. * src/Netrc.cc
  142. * src/NsCookieParser.cc
  143. * src/ProtocolDetector.cc
  144. * src/RequestGroupMan.cc
  145. * src/Signature.cc
  146. * src/bencode.cc
  147. * src/download_helper.cc
  148. * src/option_processing.cc
  149. * test/CookieParserTest.cc
  150. * test/DefaultBtProgressInfoFileTest.cc
  151. * test/FileTest.cc
  152. * test/GZipDecoderTest.cc
  153. * test/RequestGroupManTest.cc
  154. * test/SignatureTest.cc
  155. * test/SingleFileAllocationIteratorTest.cc
  156. * test/UriListParserTest.cc
  157. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Removed operator[] because it is ambiguous with built-in []
  159. operator.
  160. * src/array_fun.h
  161. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Fixed compile error
  163. * src/OptionParser.cc
  164. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. Added missing call to arrayWrapperConst
  166. * test/array_funTest.cc
  167. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  168. Use array_wrapper instead of array_ptr.
  169. * src/DHTRoutingTableDeserializer.cc
  170. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  171. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  172. * src/array_fun.h
  173. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Added array_wrapper template.
  175. * src/array_fun.h
  176. * test/array_funTest.cc
  177. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Use operator T* of array_ptr.
  179. * src/OptionParser.cc
  180. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Use localhost instead of 127.0.0.1
  182. * test/FtpConnectionTest.cc
  183. * test/MSEHandshakeTest.cc
  184. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Added operator T*
  186. * src/array_fun.h
  187. * test/array_funTest.cc
  188. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Use dynamically allocated char array to detect memory access
  190. violation.
  191. * src/DHTRoutingTableDeserializer.cc
  192. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  193. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  194. defined.
  195. * src/PeerMessageUtil.cc
  196. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  198. * configure.ac
  199. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Added a check to see struct sockaddr_in has sin_len member.
  201. * configure.ac
  202. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Fixed buffer overrun.
  204. * src/DHTRoutingTableDeserializer.cc
  205. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Added LL for long long int constant.
  207. * test/FtpConnectionTest.cc
  208. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Casted to unsigned int to suppress compiler warning on netbsd.
  210. * src/BtRuntime.h
  211. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Assign the value of tv.tv_sec to time_t timesec instead of giving
  213. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  214. type time_t.
  215. * src/SimpleLogger.cc
  216. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Added test for FtpConnection::receiveSizeResponse().
  218. * test/FtpConnectionTest.cc
  219. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. Fix epoll error on the old kernel 2.6.8 or ealier.
  221. * src/EpollEventPoll.cc
  222. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Use Util::parseLLInt instead of sscanf for portability. The
  224. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  225. * src/FtpConnection.cc
  226. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  227. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  228. block. It should not filter anything.
  229. * src/BitfieldMan.cc
  230. * src/ConsoleStatCalc.cc
  231. * test/BitfieldManTest.cc
  232. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. Fixed the bug that the boolean options that don't take arguments
  234. don't work.
  235. * src/OptionHandlerImpl.h
  236. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  237. Fixed broken selected file BitTorrent download.
  238. * src/MultiDiskAdaptor.cc
  239. * test/MultiDiskAdaptorTest.cc
  240. * test/MultiFileAllocationIteratorTest.cc
  241. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Fixed #define guard for EpollEventPoll
  243. * src/EpollEventPoll.h
  244. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Wait 2 seconds. 1 second is sometimes not enough.
  246. * test/TimeSeedCriteriaTest.cc
  247. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  248. Use localhost instead of 127.0.0.1.
  249. * test/DHTConnectionImplTest.cc
  250. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Suppressed compiler warning.
  252. * src/AdaptiveURISelector.cc
  253. * src/DefaultPieceStorage.cc
  254. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Defined virtual destructor.
  256. * src/MetalinkParserState.h
  257. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  258. Give NULL for second argument of getaddrinfo instead of "0".
  259. * src/NameResolver.cc
  260. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  262. included strptime doesn't parse data for this format.
  263. * src/FtpConnection.cc
  264. * test/FtpConnectionTest.cc
  265. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Removed tests giving -1 for unsigned argument.
  267. * test/SingleFileDownloadContextTest.cc
  268. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Don't use sha256 in tests because it might not be supported by the
  270. SSL library.
  271. * test/MetalinkProcessorTest.cc
  272. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Removed tests giving -1 for unsigned argument.
  274. * test/AlphaNumberDecoratorTest
  275. * test/BitfieldManTest.cc
  276. * test/DefaultBtContextTest.cc
  277. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  278. Fixed compile error without libcares when epoll is available.
  279. * src/EpollEventPoll.cc
  280. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Included fstream instead of iostream.
  282. * test/SignatureTest.cc
  283. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Removed #include <algorithm>
  285. * test/RequestGroupTest.cc
  286. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  287. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  288. using RequestGroup::extractURIResult().
  289. * src/AdaptiveURISelector.cc
  290. * src/RequestGroup.cc
  291. * src/RequestGroup.h
  292. * test/RequestGroupTest.cc
  293. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Added tests for array_ptr.
  295. * test/array_funTest.cc
  296. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Don't send ip parameter to a tracker if ip parameter is empty
  298. string.
  299. * src/DefaultBtAnnounce.cc
  300. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Adjusted line feed.
  302. * src/version_usage.cc
  303. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  304. Print tags, possible values when OptionHandlerException is caught.
  305. * src/option_processing.cc
  306. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  307. Changed the message for FatalException.
  308. * src/OptionParser.cc
  309. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Documented --bt-external-ip option in man page. Updated man pages
  311. for --proxy-method option.
  312. * doc/aria2c.1.txt
  313. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  314. Use GET method for FTP via HTTP proxy.
  315. * src/FtpInitiateConnectionCommand.cc
  316. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. Changed the default value of --proxy-method option from 'tunnel'
  318. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  319. option.
  320. * src/AbstractCommand.cc
  321. * src/AbstractCommand.h
  322. * src/FtpInitiateConnectionCommand.cc
  323. * src/HttpDownloadCommand.cc
  324. * src/HttpInitiateConnectionCommand.cc
  325. * src/HttpInitiateConnectionCommand.h
  326. * src/OptionHandlerFactory.cc
  327. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Initialized _logger
  329. * src/SelectEventPoll.cc
  330. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Defined a copy constructor for the same type.
  332. * src/SharedHandle.h
  333. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Added OptionParser::parseArg() which internally uses getopt_long
  335. to parse command-line options. All command-line options are now
  336. configured by OptionHandler. No manual editing of struct option*
  337. is required any more.
  338. * src/NameMatchOptionHandler.h
  339. * src/OptionHandler.h
  340. * src/OptionHandlerFactory.cc
  341. * src/OptionHandlerImpl.h
  342. * src/OptionParser.cc
  343. * src/OptionParser.h
  344. * src/array_fun.h
  345. * src/main.cc
  346. * src/option_processing.cc
  347. * test/OptionHandlerTest.cc
  348. * test/OptionParserTest.cc
  349. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  350. Fixed configure error with --disable-epoll
  351. * configure.ac
  352. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Fixed compile error when HAVE_EPOLL is not defined.
  354. Fixed linker error on bigendian systems.
  355. * src/SocketCore.cc
  356. * src/SocketCore.h
  357. * test/DefaultBtProgressInfoFileTest.cc
  358. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Added --bt-external-ip option. You can specify the external IP
  360. address to report to a BitTorrent tracker. Although this function
  361. is named 'external', it can accept any kind of IP addresses.
  362. * src/DefaultBtAnnounce.cc
  363. * src/OptionHandlerFactory.cc
  364. * src/option_processing.cc
  365. * src/prefs.cc
  366. * src/prefs.h
  367. * src/usage_text.h
  368. * test/DefaultBtAnnounceTest.cc
  369. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  370. Extracted the algorithm to find the longest incremental sequence
  371. as max_sequence template.
  372. * src/LongestSequencePieceSelector.cc
  373. * src/a2algo.h
  374. * test/Makefile.am
  375. * test/a2algoTest.cc
  376. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  378. * src/usage_text.h
  379. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Updated doc for --uri-selector, --http-server-listen-port and
  381. --enable-http-server option. Documented --event-poll option.
  382. * doc/aria2c.1.txt
  383. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Updated doc for --enable-http-server.
  385. * src/usage_text.h
  386. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Documented --http-server-listen-port and --enable-http-server in
  388. man page.
  389. * doc/aria2c.1.txt
  390. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  392. translations. Thanks to all translators.
  393. * po/es.po
  394. * po/id.po
  395. * po/it.po
  396. * po/ru.po
  397. * po/uk.po
  398. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Bump up version number to 1.2.0
  400. * configure.ac
  401. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. BtContext::getAnnounceTiers() now returns const reference.
  403. * src/BtContext.h
  404. * src/DefaultBtContext.cc
  405. * src/DefaultBtContext.h
  406. * test/MockBtContext.h
  407. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Change the number of retries for tracker request based on the
  409. number of available tracker in a torrent file.
  410. * src/TrackerWatcherCommand.cc
  411. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Added _maxTries property to RequestGroup and assign the option
  413. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  414. RequestGroup::getMaxTries() instead of
  415. Option::getAsInt(PREF_MAX_TRIES).
  416. * src/AbstractCommand.cc
  417. * src/RequestGroup.cc
  418. * src/RequestGroup.h
  419. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  420. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  421. Mandriva. I modified the patch: make RequestGroup have the
  422. timeout value and AdaptiveURISelector directly modifies that
  423. value.
  424. * src/AbstractCommand.cc
  425. * src/AdaptiveURISelector.cc
  426. * src/AdaptiveURISelector.h
  427. * src/FtpNegotiationCommand.cc
  428. * src/RequestGroup.cc
  429. * src/RequestGroup.h
  430. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Fixed compiler warning
  432. * test/IteratableChecksumValidatorTest.cc
  433. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  435. integrated downloads. This PieceSelector subclass finds the
  436. longest continuous sequence in the available missing pieces and
  437. selects the last index of such sequence. This makes HTTP/FTP
  438. connections less interrupted by the pieces obtained by BitTorrent
  439. peers.
  440. * src/DefaultPieceStorage.cc
  441. * src/DefaultPieceStorage.h
  442. * src/LongestSequencePieceSelector.cc
  443. * src/LongestSequencePieceSelector.h
  444. * src/Makefile.am
  445. * src/PieceSelector.h
  446. * src/RarestPieceSelector.h
  447. * src/RequestGroup.cc
  448. * test/BtDependencyTest.cc
  449. * test/DefaultPieceStorageTest.cc
  450. * test/IteratableChecksumValidatorTest.cc
  451. * test/LongestSequencePieceSelectorTest.cc
  452. * test/Makefile.am
  453. * test/SegmentManTest.cc
  454. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. Fixed the bug that the average speed is wrong in
  456. http/ftp/BitTorrent integrated download. Only the download bytes
  457. in BitTorrent were considered.
  458. * src/RequestGroup.cc
  459. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Choose port for BitTorrent/DHT randomly from the specified range.
  461. * src/DHTConnectionImpl.cc
  462. * src/PeerListenCommand.cc
  463. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Send HTTP Authorization header only if it is requested by the
  465. server(response 401). There are some exceptions. The authorization
  466. header for proxy is always sent if it is available without request
  467. by the server. If username/password is specified in the URI, it
  468. is immediately sent to the server without request by the server.
  469. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  470. SharedHandle<AuthConfig>().
  471. NetrcAuthResolver::resolveAuthConfig() returns
  472. SharedHandle<AuthConfig>() if no AuthConfig is available.
  473. * src/AbstractAuthResolver.cc
  474. * src/AbstractProxyRequestCommand.cc
  475. * src/AuthConfigFactory.cc
  476. * src/AuthConfigFactory.h
  477. * src/HttpConnection.cc
  478. * src/HttpRequest.cc
  479. * src/HttpRequest.h
  480. * src/HttpResponse.cc
  481. * src/HttpResponseCommand.cc
  482. * src/HttpSkipResponseCommand.cc
  483. * test/AuthConfigFactoryTest.cc
  484. * test/HttpRequestTest.cc
  485. * test/HttpResponseTest.cc
  486. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  487. Remove leading "--" from help keyword and a substring after "="
  488. from help keyword, so that one can query options by '-h--max-' or
  489. '-hmax-peers=10'.
  490. * src/option_processing.cc
  491. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Rewritten PStringVisitor and its implementation.
  493. * src/PStringBuildVisitor.cc
  494. * src/PStringBuildVisitor.h
  495. * src/PStringDatum.h
  496. * src/PStringNumLoop.h
  497. * src/PStringSegment.cc
  498. * src/PStringSegment.h
  499. * src/PStringSelect.h
  500. * src/PStringVisitor.h
  501. * src/download_helper.cc
  502. * test/PStringBuildVisitorTest.cc
  503. * test/ParameterizedStringParserTest.cc
  504. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Persist connection between the built-in HTTP server and a client
  506. if a client supports keep-alive. Fixed the bug that aria2 exits
  507. when the HTTP server receives EOF from a client.
  508. * src/HttpServer.cc
  509. * src/HttpServer.h
  510. * src/HttpServerCommand.cc
  511. * src/HttpServerCommand.h
  512. * src/HttpServerResponseCommand.cc
  513. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Added experimental built-in HTTP server. Currently, when a client
  515. accesses to the server, it responds with the current download
  516. progress. By default, it is disabled. To enable the server, give
  517. --enable-http-server option. To change the default port number
  518. for the server to listen to, use --http-server-listen-port option.
  519. The response HTML is very simple and refreshes it self each 1
  520. second. Because of this refresh, you see flicker in normal web
  521. browser such as Firefox. I recommend to use console-based browser
  522. such as elinks, w3m. To connect to the server, run 'elinks
  523. http://localhost:6800/' while running aria2. Please replace port
  524. number '6800'(which is default) with your preference.
  525. * src/DownloadEngineFactory.cc
  526. * src/HttpHeader.cc
  527. * src/HttpHeader.h
  528. * src/HttpHeaderProcessor.cc
  529. * src/HttpHeaderProcessor.h
  530. * src/HttpListenCommand.cc
  531. * src/HttpListenCommand.h
  532. * src/HttpServer.cc
  533. * src/HttpServer.h
  534. * src/HttpServerCommand.cc
  535. * src/HttpServerCommand.h
  536. * src/HttpServerResponseCommand.cc
  537. * src/HttpServerResponseCommand.h
  538. * src/Makefile.am
  539. * src/OptionHandlerFactory.cc
  540. * src/Util.cc
  541. * src/Util.h
  542. * src/help_tags.h
  543. * src/option_processing.cc
  544. * src/prefs.cc
  545. * src/prefs.h
  546. * src/usage_text.h
  547. * test/HttpHeaderProcessorTest.cc
  548. * test/UtilTest.cc
  549. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Removed.
  551. * src/CheckIntegrityMan.cc
  552. * src/FileAllocationMan.cc
  553. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Made (piece) hash check sequential for each RequestGroup because
  555. simultaneous hash check is slower than sequential execution.
  556. * src/CheckIntegrityCommand.cc
  557. * src/CheckIntegrityDispatcherCommand.cc
  558. * src/CheckIntegrityDispatcherCommand.h
  559. * src/CheckIntegrityMan.h
  560. * src/ConsoleStatCalc.cc
  561. * src/DownloadCommand.cc
  562. * src/DownloadEngine.cc
  563. * src/DownloadEngine.h
  564. * src/DownloadEngineFactory.cc
  565. * src/Makefile.am
  566. * src/Makefile.in
  567. * src/RequestGroup.cc
  568. * src/StatCalc.h
  569. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  571. SequentialDispatcherCommand.
  572. * src/FileAllocationDispatcherCommand.cc
  573. * src/SequentialDispatcherCommand.h
  574. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Rewritten FileAllocationDispatcherCommand using brand new
  576. SequentialDispatcherCommand.
  577. * src/DownloadEngineFactory.cc
  578. * src/FileAllocationCommand.cc
  579. * src/FileAllocationDispatcherCommand.cc
  580. * src/FileAllocationDispatcherCommand.h
  581. * src/Makefile.am
  582. * src/SequentialDispatcherCommand.h
  583. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  584. Replaced FileAllocationMan with
  585. SequentialPicker<FileAllocationEntry>.
  586. * src/BtCheckIntegrityEntry.cc
  587. * src/ConsoleStatCalc.cc
  588. * src/DownloadEngine.cc
  589. * src/DownloadEngine.h
  590. * src/DownloadEngineFactory.cc
  591. * src/FileAllocationCommand.cc
  592. * src/FileAllocationDispatcherCommand.cc
  593. * src/FileAllocationMan.h
  594. * src/Makefile.am
  595. * src/SequentialPicker.h
  596. * src/StatCalc.h
  597. * src/StreamCheckIntegrityEntry.cc
  598. * test/Makefile.am
  599. * test/SequentialPickerTest.cc
  600. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Added doc for adaptive URI selector.
  602. * doc/aria2c.1.txt
  603. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Added doc for adaptive URI selector.
  605. * src/usage_text.h
  606. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Added doc for --bt-max-peers option.
  608. * doc/aria2c.1.txt
  609. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Added doc for --bt-hash-check-seed option.
  611. * doc/aria2c.1.txt
  612. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Documented exit codes.
  614. * doc/aria2c.1.txt
  615. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. Added --bt-max-peers option to specify the maximum number of peers
  617. per torrent. 0 means unlimited number of peers.
  618. * src/ActivePeerConnectionCommand.cc
  619. * src/BtRuntime.h
  620. * src/DefaultPeerStorage.cc
  621. * src/DefaultPeerStorage.h
  622. * src/OptionHandlerFactory.cc
  623. * src/RequestGroup.cc
  624. * src/option_processing.cc
  625. * src/prefs.cc
  626. * src/prefs.h
  627. * src/usage_text.h
  628. * test/DefaultPeerStorageTest.cc
  629. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Added --bt-hash-check-seed option. If true is given to this
  631. option, after hash check using --check-integrity option and file
  632. is complete, continue to seed file. If you want to check file and
  633. download it only when it is damaged or incomplete, set this option
  634. to false. This option has effect only on BitTorrent download.
  635. The default value is true(This is the same behavior with the
  636. previous release).
  637. * src/BtCheckIntegrityEntry.cc
  638. * src/OptionHandlerFactory.cc
  639. * src/option_processing.cc
  640. * src/prefs.cc
  641. * src/prefs.h
  642. * src/usage_text.h
  643. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Updated copyright year.
  645. * src/version_usage.cc
  646. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Rewritten the usage text for --bt-request-peer-speed-limit option.
  648. * doc/aria2c.1.txt
  649. * src/usage_text.h
  650. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Made the max value of split option unlimited.
  652. * doc/aria2c.1.txt
  653. * src/OptionHandlerFactory.cc
  654. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Fixed compile warning/error.
  656. * src/DownloadResult.h
  657. * src/HttpDownloadCommand.cc
  658. * src/ServerStat.cc
  659. * test/RequestGroupTest.cc
  660. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Added --event-poll option to select the method for polling events.
  662. The available methods are "select" and "epoll". "epoll" is
  663. available on Linux only. The earlier release has the compile
  664. option to choose from these methods.
  665. * configure.ac
  666. * src/RequestGroupMan.cc
  667. * src/OptionHandlerFactory.cc
  668. * src/EpollEventPoll.h
  669. * src/StreamFileAllocationEntry.cc
  670. * src/a2io.h
  671. * src/SelectEventPoll.h
  672. * src/option_processing.cc
  673. * src/prefs.h
  674. * src/EpollEventPoll.cc
  675. * src/EventPoll.h
  676. * src/SocketCore.h
  677. * src/Makefile.am
  678. * src/main.cc
  679. * src/DownloadEngine.h
  680. * src/SelectEventPoll.cc
  681. * src/DownloadEngine.cc
  682. * src/SocketCore.cc
  683. * src/DownloadEngineFactory.cc
  684. * src/Makefile.in
  685. * src/prefs.cc
  686. * src/usage_text.h
  687. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  688. Included RecoverableException.h from main.cc
  689. * src/main.cc
  690. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  692. now returns last error encountered in the HTTP/FTP downloads as a
  693. exit status value. If all downloads finished successfully, aria2
  694. returns 0. The error code is defined in src/DownloadResult.h.
  695. The error occurred in the download currently in progress is not
  696. reported as a last error. If no error has encountered but there
  697. are in progress or waiting downloads, aria2 returns 7.
  698. * src/AbstractCommand.cc
  699. * src/DlAbortEx.h
  700. * src/DlRetryEx.h
  701. * src/DownloadCommand.cc
  702. * src/DownloadFailureException.h
  703. * src/DownloadResult.h
  704. * src/FtpNegotiationCommand.cc
  705. * src/HttpSkipResponseCommand.cc
  706. * src/Makefile.am
  707. * src/MultiUrlRequestInfo.cc
  708. * src/MultiUrlRequestInfo.h
  709. * src/RecoverableException.h
  710. * src/RequestGroup.cc
  711. * src/RequestGroup.h
  712. * src/RequestGroupMan.cc
  713. * src/RequestGroupMan.h
  714. * src/URIResult.cc
  715. * src/URIResult.h
  716. * src/main.cc
  717. * src/option_processing.cc
  718. * test/RequestGroupTest.cc
  719. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  721. patch adds AdaptiveURISelector, which selects one of the bests
  722. mirrors for first and reserved connections. For supplementary
  723. ones, it returns mirrors which has not been tested yet, and if
  724. each of them already tested, returns mirrors which has to be
  725. tested again. Otherwise, it doesn't return anymore mirrors.
  726. * src/AdaptiveURISelector.cc
  727. * src/AdaptiveURISelector.h
  728. * src/FtpNegotiationCommand.cc
  729. * src/HttpResponseCommand.cc
  730. * src/Makefile.am
  731. * src/Makefile.in
  732. * src/OptionHandlerFactory.cc
  733. * src/RequestGroup.cc
  734. * src/RequestGroup.h
  735. * src/RequestGroupMan.cc
  736. * src/ServerStat.cc
  737. * src/ServerStat.h
  738. * src/ServerStatMan.cc
  739. * src/SpeedCalc.cc
  740. * src/URISelector.h
  741. * src/prefs.cc
  742. * src/prefs.h
  743. * test/RequestGroupManTest.cc
  744. * test/ServerStatManTest.cc
  745. * test/ServerStatTest.cc
  746. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Fixed unit test error.
  748. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  749. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  750. * Release 1.1.2
  751. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Updated Russian translation. Thanks to the translators.
  753. * po/ru.po
  754. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Added the description of --use-head option to man page.
  756. * doc/aria2c.1.txt
  757. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. Bump up version number to 1.1.2
  759. * configure.ac
  760. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Added --use-head option to toggle whether HEAD method should be
  762. used in the first HTTP request. By default aria2 uses HEAD method
  763. as the first request. When the server doesn't recognize HEAD, then
  764. give aria2 --use-head=false to force aria2 to use GET method
  765. instead.
  766. * src/OptionHandlerFactory.cc
  767. * src/RequestGroupMan.cc
  768. * src/option_processing.cc
  769. * src/prefs.cc
  770. * src/prefs.h
  771. * src/usage_text.h
  772. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Fixed the bug that BitTorrent download doesn't finish when REJECT
  774. message is received before CHOKE message. The old implementation
  775. doen't clear the use-bit of the piece when recieved REJECT
  776. message.
  777. * src/DefaultBtMessageDispatcher.cc
  778. * test/DefaultBtMessageDispatcherTest.cc
  779. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. * Release 1.1.1
  781. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Bump up version number to 1.1.1.
  783. * configure.ac
  784. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  785. Fixed the bug that --summary-interval=0 doesn't work. The summary
  786. is printed repeatedly.
  787. * src/ConsoleStatCalc.cc
  788. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. * Release 1.1.0
  790. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Added ifdef clause for conditional compilation.
  792. * src/main.cc
  793. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  795. translations. Thanks to all translators.
  796. * po/ja.po
  797. * po/ru.po
  798. * po/uk.po
  799. * po/zh_CN.po
  800. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Added the preceding ">>> " before the message "Printing the
  802. contents of file..." to make the output more readable.
  803. * src/main.cc
  804. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Added try-catch block in the loop in showFiles() to continue the
  806. operation even if the exception occurred in one file.
  807. * src/main.cc (showFiles)
  808. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Made messages in showFiles() translatable.
  810. * po/aria2.pot
  811. * src/main.cc
  812. * src/message.h
  813. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Print the contents of Torrent/Metalink files are printed without
  815. -T/-M options.
  816. * src/main.cc
  817. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Escaped '--' with '\--'
  819. * README
  820. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Updated "How to build" section in README. Mentioned about
  822. --with-ca-bundle compile option.
  823. * README
  824. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Bump up version number to 1.1.0.
  826. * configure.ac
  827. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Added a note for --dht-listen-port option.
  829. * doc/aria2c.1.txt
  830. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Update doc for --realtime-chunk-checksum option.
  832. * doc/aria2c.1.txt
  833. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Update doc for --realtime-chunk-checksum option.
  835. * src/usage_text.h
  836. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Updated French, Japanese, Russian and Ukrainian translations.
  838. Thanks to all translators.
  839. * po/fr.po
  840. * po/ja.po
  841. * po/ru.po
  842. * po/uk.po
  843. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Renamed aria2c.pot to aria2.pot
  845. * po/aria2.pot
  846. * po/aria2c.pot: Removed.
  847. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Removed MetaEntry.h
  849. * src/Makefile.am
  850. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Rename file by appending digits if a local file exists and its
  852. file size is larger than that of remote file with --continue
  853. option. The old implementation just throws exception in such case.
  854. * src/RequestGroup.cc
  855. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Fixed the bug that download progress summary is not printed in the
  857. interval specified by the option.
  858. * src/ConsoleStatCalc.cc
  859. * src/ConsoleStatCalc.h
  860. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Fixed compiler warning
  862. * src/Cookie.cc
  863. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Fixed the cookie implementation based on RFC2965.
  865. Now if a value in domain field is not started with dot, then
  866. prepend dot. That means a cookie with domain=sf.net is sent to
  867. wiki.sf.net.
  868. * src/Cookie.cc
  869. * test/CookieParserTest.cc
  870. * test/CookieStorageTest.cc
  871. * test/CookieTest.cc
  872. * test/NsCookieParserTest.cc
  873. * test/Sqlite3MozCookieParserTest.cc
  874. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  875. Fixed the bug that causes corrupted downloads if HTTP pipelining
  876. is enabled and the server doesn't support keep-alive.
  877. * src/AbstractCommand.cc
  878. * src/DownloadCommand.cc
  879. * src/HttpDownloadCommand.cc
  880. * src/HttpDownloadCommand.h
  881. * src/HttpResponseCommand.cc
  882. * src/Request.cc
  883. * src/Request.h
  884. * test/RequestTest.cc
  885. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Removed Dictionary/List/Data and its related classes.
  887. * src/BencodeVisitor.cc: Removed.
  888. * src/BencodeVisitor.h: Removed.
  889. * src/Data.cc: Removed.
  890. * src/Data.h: Removed.
  891. * src/Dictionary.cc: Removed.
  892. * src/Dictionary.h: Removed.
  893. * src/List.cc: Removed.
  894. * src/List.h: Removed.
  895. * src/Makefile.am
  896. * src/MetaEntry.h: Removed.
  897. * src/MetaEntryVisitor.h: Removed.
  898. * src/MetaFileUtil.cc: Removed.
  899. * src/MetaFileUtil.h: Removed.
  900. * test/BencodeVisitorTest.cc: Removed.
  901. * test/DataTest.cc: Removed.
  902. * test/DictionaryTest.cc: Removed.
  903. * test/ListTest.cc: Removed.
  904. * test/Makefile.am
  905. * test/MetaFileUtilTest.cc: Removed.
  906. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  907. Removed include of MetaEntry.h
  908. * test/DHTMessageTrackerEntryTest.cc
  909. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Use BDE instead of Dictionary/List/Data.
  911. * src/AnnounceList.cc
  912. * src/AnnounceList.h
  913. * test/AnnounceListTest.cc
  914. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  915. Use BDE instead of Dictionary/List/Data.
  916. * src/DHTAbstractMessage.cc
  917. * src/DHTAbstractMessage.h
  918. * src/DHTAnnouncePeerMessage.cc
  919. * src/DHTAnnouncePeerMessage.h
  920. * src/DHTAnnouncePeerReplyMessage.cc
  921. * src/DHTAnnouncePeerReplyMessage.h
  922. * src/DHTFindNodeMessage.cc
  923. * src/DHTFindNodeMessage.h
  924. * src/DHTFindNodeReplyMessage.cc
  925. * src/DHTFindNodeReplyMessage.h
  926. * src/DHTGetPeersMessage.cc
  927. * src/DHTGetPeersMessage.h
  928. * src/DHTGetPeersReplyMessage.cc
  929. * src/DHTGetPeersReplyMessage.h
  930. * src/DHTMessageFactory.h
  931. * src/DHTMessageFactoryImpl.cc
  932. * src/DHTMessageFactoryImpl.h
  933. * src/DHTMessageReceiver.cc
  934. * src/DHTMessageTracker.cc
  935. * src/DHTMessageTracker.h
  936. * src/DHTPingMessage.cc
  937. * src/DHTPingMessage.h
  938. * src/DHTPingReplyMessage.cc
  939. * src/DHTPingReplyMessage.h
  940. * src/DHTQueryMessage.cc
  941. * src/DHTQueryMessage.h
  942. * src/DHTResponseMessage.cc
  943. * src/DHTResponseMessage.h
  944. * test/DHTAnnouncePeerMessageTest.cc
  945. * test/DHTAnnouncePeerReplyMessageTest.cc
  946. * test/DHTFindNodeMessageTest.cc
  947. * test/DHTFindNodeReplyMessageTest.cc
  948. * test/DHTGetPeersMessageTest.cc
  949. * test/DHTGetPeersReplyMessageTest.cc
  950. * test/DHTMessageFactoryImplTest.cc
  951. * test/DHTMessageTrackerTest.cc
  952. * test/DHTPingMessageTest.cc
  953. * test/DHTPingReplyMessageTest.cc
  954. * test/MockDHTMessageFactory.h
  955. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Added tests the case where length < 0 is specified.
  957. * test/BencodeTest.cc
  958. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Fixed memory leak in decoderawstring()
  960. * src/bencode.cc
  961. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  962. Added missing #ifdef guard. Added uc() function for String and
  963. removeKey() for Dict.
  964. * src/bencode.cc
  965. * src/bencode.h
  966. * test/BencodeTest.cc
  967. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Use BDE instead of Dictionary/List/Data.
  969. * src/HandshakeExtensionMessage.cc
  970. * src/HandshakeExtensionMessage.h
  971. * test/HandshakeExtensionMessageTest.cc
  972. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  973. Added --max-overall-upload-limit option. This option limits the
  974. overall upload speed. Stated in help message that the existing
  975. --max-upload-limit option limits the upload speed per each
  976. torrent. Man page is also updated.
  977. * doc/aria2c.1.txt
  978. * src/DefaultBtMessageDispatcher.cc
  979. * src/DefaultBtMessageDispatcher.h
  980. * src/OptionHandlerFactory.cc
  981. * src/PeerInteractionCommand.cc
  982. * src/option_processing.cc
  983. * src/prefs.cc
  984. * src/prefs.h
  985. * src/usage_text.h
  986. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Use BDE instead of Dictionary/List/Data classes.
  988. * src/CompactPeerListProcessor.cc
  989. * src/CompactPeerListProcessor.h
  990. * src/DefaultBtAnnounce.cc
  991. * src/DefaultBtContext.cc
  992. * src/DefaultBtContext.h
  993. * src/DefaultPeerListProcessor.cc
  994. * src/DefaultPeerListProcessor.h
  995. * src/DelegatingPeerListProcessor.cc
  996. * src/DelegatingPeerListProcessor.h
  997. * src/PeerListProcessor.h
  998. * src/UTPexExtensionMessage.cc
  999. * src/Util.h
  1000. * src/message.h
  1001. * test/DefaultBtContextTest.cc
  1002. * test/DefaultPeerListProcessorTest.cc
  1003. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Added bencode helper functions and BDE class.
  1005. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1006. * src/Makefile.am
  1007. * src/bencode.cc
  1008. * src/bencode.h
  1009. * test/BencodeTest.cc
  1010. * test/Makefile.am
  1011. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1012. Fixed the bug that bad URI is sent to the tracker when the announe
  1013. URI in torrent file includes query.
  1014. * src/DefaultBtAnnounce.cc
  1015. * test/DefaultBtAnnounceTest.cc
  1016. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. Added Option::blank().
  1018. Use !Option::blank(name) instead of Option::defined(name) for
  1019. the options that take filename.
  1020. * src/MultiUrlRequestInfo.cc
  1021. * src/Option.cc
  1022. * src/Option.h
  1023. * src/main.cc
  1024. * src/option_processing.cc
  1025. * test/OptionTest.cc
  1026. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1027. Documented the default value of --check-certificate option in man
  1028. page.
  1029. * doc/aria2c.1.txt
  1030. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1031. Enabled --check-certificate by default. Added compile
  1032. time(configure) option --with-ca-bundle to specify CA bundle.
  1033. Warn if --check-certificate=true and --ca-certificate is not
  1034. specified or loading CA certificate is failed.
  1035. * configure.ac
  1036. * src/MultiUrlRequestInfo.cc
  1037. * src/OptionHandlerFactory.cc
  1038. * src/message.h
  1039. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1040. Mentioned https tag in help option.
  1041. * doc/aria2c.1.txt
  1042. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1043. Added `https' tag to help option category. Added https tag to
  1044. --ca-certificate, --certificate, --check-certificate and
  1045. --private-key option.
  1046. * src/OptionHandlerFactory.cc
  1047. * src/help_tags.h
  1048. * src/option_processing.cc
  1049. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Changed the package name from `aria2c' to `aria2' in order to fix
  1051. the packaging issue in Debian and Fedora. The name of the
  1052. executable is not changed.
  1053. * configure.ac
  1054. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Fixed typos
  1056. * src/usage_text.h
  1057. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Fixed typos and updated doc.
  1059. * README
  1060. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Fixed typos
  1062. * doc/aria2c.1.txt
  1063. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Fixed typos
  1065. * src/usage_text.h
  1066. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1067. Print a message when no files to download.
  1068. * src/download_helper.cc
  1069. * src/main.cc
  1070. * src/message.h
  1071. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. RFC3986 complied Percent-Encoding(urlencode).
  1073. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1074. ones.
  1075. * src/Request.cc
  1076. * src/Util.cc
  1077. * src/Util.h
  1078. * test/BtHandshakeMessageTest.cc
  1079. * test/DefaultBtAnnounceTest.cc
  1080. * test/DefaultBtContextTest.cc
  1081. * test/RequestTest.cc
  1082. * test/UtilTest.cc
  1083. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1084. Fixed the bug that prevents aria2 from downloading 0-length files
  1085. via HTTP/FTP.
  1086. * src/DefaultBtContext.cc
  1087. * src/DefaultBtContext.h
  1088. * src/DownloadContext.h
  1089. * src/FtpNegotiationCommand.cc
  1090. * src/HttpResponseCommand.cc
  1091. * src/HttpResponseCommand.h
  1092. * src/RequestGroup.cc
  1093. * src/SingleFileDownloadContext.cc
  1094. * src/SingleFileDownloadContext.h
  1095. * test/BtPostDownloadHandlerTest.cc
  1096. * test/MetalinkPostDownloadHandlerTest.cc
  1097. * test/MockBtContext.h
  1098. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1100. * src/option_processing.cc
  1101. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1102. Applied aria2-1.0.1-mingw.patch.
  1103. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1104. mingw.
  1105. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1106. * src/SocketCore.cc
  1107. * src/a2netcompat.h
  1108. * test/SocketCoreTest.cc
  1109. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. * Release 1.0.1
  1111. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Updated Ukrainian and Norwegian Nynorsk translations.
  1113. Thanks to all translators.
  1114. * po/nn.po
  1115. * po/uk.po
  1116. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Don't show download result when -S option is used.
  1118. * src/main.cc
  1119. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Bump up version number to 1.0.1
  1121. * configure.ac
  1122. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Closed files after the test cases in MultiDiskWriterTest::
  1124. testResetDiskWriterEntries(). This will fix the unit test error
  1125. in mingw32 build.
  1126. * test/MultiDiskWriterTest.cc
  1127. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Use HEAD method to get file size from HTTP server for segmented
  1129. downloading.
  1130. The request to the BitTorrent Tracker always uses GET method because
  1131. the response of the tracker is small and it doesn't need segmented
  1132. download.
  1133. * src/FtpNegotiationCommand.cc
  1134. * src/HttpRequest.cc
  1135. * src/HttpResponseCommand.cc
  1136. * src/HttpSkipResponseCommand.cc
  1137. * src/RequestGroup.cc
  1138. * src/RequestGroup.h
  1139. * src/TrackerWatcherCommand.cc
  1140. * test/HttpRequestTest.cc
  1141. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Fixed the bug that causes floating exception when -T option is used and
  1143. no URIs are given.
  1144. * src/download_helper.cc
  1145. * test/DownloadHelperTest.cc
  1146. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1147. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1148. errors in MinGW:
  1149. Closed file after saving server stats (RequestGroupMan.cc)
  1150. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1151. Ignored case & handled 2-digit years (strptime.c)
  1152. Added missing suseconds_t definition (a2time.h)
  1153. Fixed socket CLOSE() define (SocketCore.cc)
  1154. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1155. Changed utime() test values from x000 to x00000 as MinGW failed on
  1156. values less than timezone offset from Unix epoch
  1157. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1158. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1159. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1160. handle negative dates (CookieParserTest.cc)
  1161. * src/a2time.h
  1162. * src/FtpConnection.cc
  1163. * src/RequestGroupMan.cc
  1164. * src/SocketCore.cc
  1165. * src/strptime.c
  1166. * test/CookieParserTest.cc
  1167. * test/CopyDiskAdaptorTest.cc
  1168. * test/FileTest.cc
  1169. * test/FtpConnectionTest.cc
  1170. * test/MultiDiskAdaptorTest.cc
  1171. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1173. * doc/aria2c.1.txt
  1174. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. * Release 1.0.0
  1176. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Added '~' to reserved characters.
  1178. * src/Util.cc
  1179. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Do not urlencode Request::url in setUrl() because we want unmodified
  1181. URL using Request::getUrl()
  1182. * src/Request.cc
  1183. * src/Request.h
  1184. * test/RequestTest.cc
  1185. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  1187. Thanks to all translators.
  1188. * po/bg.po
  1189. * po/fr.po
  1190. * po/ja.po
  1191. * po/ru.po
  1192. * po/uk.po
  1193. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Bump up version number to 1.0.0
  1195. * configure.ac
  1196. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Added nosqlite3 build to build_test.sh.
  1198. Renamed noxml as expat.
  1199. * build_test.sh
  1200. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Updated INPUT FILE section.
  1202. * doc/aria2c.1.txt
  1203. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  1205. on big endian systems because test .aria2 files are made for little
  1206. endian systems.
  1207. * test/DefaultBtProgressInfoFileTest.cc
  1208. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Dropped ares support.
  1210. * README
  1211. * configure.ac
  1212. * m4/libares.m4: Removed.
  1213. * src/AsyncNameResolver.cc
  1214. * src/Makefile.am
  1215. * test/Makefile.am
  1216. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  1218. Removed const qualifier from DiskWriter::size().
  1219. * src/AbstractDiskWriter.cc
  1220. * src/AbstractDiskWriter.h
  1221. * src/ByteArrayDiskWriter.cc
  1222. * src/ByteArrayDiskWriter.h
  1223. * src/DiskWriter.h
  1224. * test/ByteArrayDiskWriterTest.cc
  1225. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1226. Fixed the bug that causes segmentation fault/bus error during executing
  1227. choking algorithm while seeding. This is caused by improper
  1228. implementation of compare function which returns inconsistent results
  1229. depending on the timing of last unchoke.
  1230. * src/BtSeederStateChoke.cc
  1231. * src/BtSeederStateChoke.h
  1232. * src/DefaultPeerStorage.cc
  1233. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Removed TODO
  1235. * TODO
  1236. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Added a section that explains how to pass argument to options that
  1238. takes optional arguments with its short form.
  1239. * doc/aria2c.1.txt
  1240. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Added -u for the short form of --max-upload-limit option.
  1242. * doc/aria2c.1.txt
  1243. * src/option_processing.cc
  1244. * src/usage_text.h
  1245. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1246. Added -V for the short form of --check-integrity option.
  1247. Now the argument of --check-integrity option is optional:
  1248. if it is omitted, it is evaluated as true.
  1249. * doc/aria2c.1.txt
  1250. * src/option_processing.cc
  1251. * src/usage_text.h
  1252. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Made the default value of --ftp-pasv option set to true and it can take
  1254. true/false values.
  1255. * src/OptionHandlerFactory.cc
  1256. * src/option_processing.cc
  1257. * src/usage_text.h
  1258. * doc/aria2c.1.txt
  1259. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Given custom random number generator to std::random_shuffle.
  1261. * src/AnnounceList.cc
  1262. * src/BtLeecherStateChoke.cc
  1263. * src/BtSeederStateChoke.cc
  1264. * src/DefaultBtRequestFactory.cc
  1265. * src/MetalinkEntry.cc
  1266. * src/RarestPieceSelector.cc
  1267. * src/SimpleRandomizer.cc
  1268. * src/SimpleRandomizer.h
  1269. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Now the default value of --enable-direct-io is true.
  1271. * src/OptionHandlerFactory.cc
  1272. * doc/aria2c.1.txt
  1273. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Erase peer before executing onReturningPeer and onErasingPeer
  1275. because choking algorithm called from onReturningPeer doesn't
  1276. like erasing peer in the active peer list.
  1277. * src/DefaultPeerStorage.cc
  1278. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Instead of creating special filename in createDownloadResult() if
  1280. inMemoryDownload() is true, now it is done in getFilePath().
  1281. * src/RequestGroup.cc
  1282. * test/RequestGroupTest.cc
  1283. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Print "[MEMORY]" and filename if a file is not saved in disk and just
  1285. processed in memory. This is the fix for previous comment out.
  1286. * src/MemoryBufferPreDownloadHandler.cc
  1287. * src/RequestGroup.cc
  1288. * src/RequestGroup.h
  1289. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Commented out the code which sets virtual directory path "[MEMORY]"
  1291. propagate directory to store to following RequestGroup.
  1292. * src/MemoryBufferPreDownloadHandler.cc
  1293. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Bump up version number to 1.0.0b
  1295. * configure.ac
  1296. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1297. Added input_uris.txt to EXTRA_DIST
  1298. * test/Makefile.am
  1299. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Removed PeerObject.h from Makefile.am
  1301. * src/Makefile.am
  1302. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Avoid slow seeding
  1304. * src/PeerInteractionCommand.cc
  1305. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Updated usage for -i option.
  1307. * src/usage_text.h (TEXT_INPUT_FILE)
  1308. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Added INPUT FILE section to man page.
  1310. Escaped fake URLs.
  1311. * doc/aria2c.1.txt
  1312. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Fixed wrong note position for -o option.
  1314. * doc/aria2c.1.txt
  1315. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Fixed compile error without SSL/XML library.
  1317. * src/DefaultBtProgressInfoFile.cc
  1318. * src/DefaultBtProgressInfoFile.h
  1319. * src/FileMetalinkParserState.cc
  1320. * src/RequestGroup.h
  1321. * src/SocketCore.cc
  1322. * src/SocketCore.h
  1323. * src/VerificationMetalinkParserState.cc
  1324. * src/download_helper.h
  1325. * src/main.cc
  1326. * test/DefaultBtProgressInfoFileTest.cc
  1327. * test/DownloadHelperTest.cc
  1328. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Rewritten URI handling functions. They are now provided as a testable
  1330. functions.
  1331. * src/Makefile.am
  1332. * src/RequestGroup.cc
  1333. * src/RequestGroup.h
  1334. * src/download_helper.cc
  1335. * src/download_helper.h
  1336. * src/main.cc
  1337. * test/DownloadHelperTest.cc
  1338. * test/Makefile.am
  1339. * test/input_uris.txt
  1340. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Quickly terminate commands when ctrl-c is pressed.
  1342. * src/DownloadEngine.cc
  1343. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Quickly terminate idle commands when download finished.
  1345. * src/AbstractCommand.cc
  1346. * src/DownloadCommand.cc
  1347. * src/DownloadEngine.cc
  1348. * src/DownloadEngine.h
  1349. * src/SleepCommand.cc
  1350. * src/SleepCommand.h
  1351. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1352. Added the ability to specify output filename and directory in input
  1353. file.
  1354. Additional parameters are added in the following line of URIs
  1355. with proceeding white space(s), 1 parameter in 1 line.
  1356. The parameter names are the same with the command-line option name
  1357. without proceeding "--". Not all the options are available here:
  1358. at the moment, 'dir' and 'out' options are avialable.
  1359. Please note that out option has no effect against Metalink or BitTorrent
  1360. downloads.
  1361. Example input file:
  1362. http://host/foo-1.1.tar.bz2
  1363. out=foo.tar.bz2
  1364. dir=/tmp/downloads
  1365. http://host/thundermonkey-2.0.tar.bz2
  1366. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1367. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1368. thundermonkey-2.0.tar.bz2 is saved as
  1369. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1370. * src/BtPostDownloadHandler.cc
  1371. * src/Metalink2RequestGroup.cc
  1372. * src/Metalink2RequestGroup.h
  1373. * src/MetalinkPostDownloadHandler.cc
  1374. * src/UriListParser.cc
  1375. * src/UriListParser.h
  1376. * src/main.cc
  1377. * test/Metalink2RequestGroupTest.cc
  1378. * test/UriListParserTest.cc
  1379. * test/filelist1.txt
  1380. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Fixed error when SSL library is not found.
  1382. * configure.ac
  1383. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Cross referenced among -s, -C and -j options.
  1385. Updated usage of -C and -s options.
  1386. * src/usage_text.h
  1387. * doc/aria2c.1.txt
  1388. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Fixed bad cast in 32bit platforms.
  1390. * test/DefaultPieceStorageTest.cc
  1391. (DefaultPieceStorageTest::testGetCompletedLength)
  1392. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Fixed unit test fails on 32bit platforms.
  1394. * test/CookieParserTest.cc
  1395. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Show an average download speed in Download results.
  1397. * src/BtFileAllocationEntry.cc
  1398. * src/DefaultPieceStorage.cc
  1399. * src/DownloadContext.cc
  1400. * src/DownloadContext.h
  1401. * src/DownloadResult.h
  1402. * src/RequestGroup.cc
  1403. * src/RequestGroupMan.cc
  1404. * src/StreamFileAllocationEntry.cc
  1405. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Fixed the bug that metalink file is not processed if Content-Type
  1407. field has a paramter.
  1408. * src/HttpResponse.cc
  1409. * src/HttpResponse.h
  1410. * test/HttpResponseTest.cc
  1411. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Removed unused code.
  1413. * src/DefaultBtAnnounce.cc
  1414. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  1416. the value larger than DefaultPieceStorage::getTotalLength() when
  1417. in flight pieces are involved.
  1418. * src/DefaultPieceStorage.cc
  1419. * test/DefaultPieceStorageTest.cc
  1420. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Bump up version number to 1.0.0a.
  1422. * configure.ac
  1423. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Updated configure.ac
  1425. * configure.ac
  1426. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1427. Added usege for proxy.
  1428. * doc/aria2c.1.txt
  1429. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Added usage for --ca-certificate, --certificate, --private-key and
  1431. --check-certificate options.
  1432. * doc/aria2c.1.txt
  1433. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Updated man page
  1435. * doc/aria2c.1.txt
  1436. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Added --no-proxy option. It receives comman separated hostname or
  1438. domains to which proxy should not be used.
  1439. aria2 honors the environment variable no_proxy to override no-proxy
  1440. value in configuration file. The user can override the environment
  1441. variable no_proxy with --no-proxy command-line option.
  1442. * src/AbstractCommand.cc
  1443. * src/OptionHandlerFactory.cc
  1444. * src/option_processing.cc
  1445. * src/prefs.cc
  1446. * src/prefs.h
  1447. * src/usage_text.h
  1448. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Added the ability to verify peer in SSL/TLS using given CA certificates.
  1450. The CA certificates are specified in --ca-certificate option.
  1451. By default, the verification is disabled. Use --check-certificate
  1452. option to enable it.
  1453. * src/HttpRequestCommand.cc
  1454. * src/LibgnutlsTLSContext.cc
  1455. * src/LibgnutlsTLSContext.h
  1456. * src/LibsslTLSContext.cc
  1457. * src/LibsslTLSContext.h
  1458. * src/MultiUrlRequestInfo.cc
  1459. * src/OptionHandlerFactory.cc
  1460. * src/SocketCore.cc
  1461. * src/SocketCore.h
  1462. * src/a2functional.h
  1463. * src/message.h
  1464. * src/option_processing.cc
  1465. * src/prefs.cc
  1466. * src/prefs.h
  1467. * src/usage_text.h
  1468. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Added client certificate authentication for SSL/TLS.
  1470. Currently a private key must be decrypted for use with aria2.
  1471. If a user accidentally gives encrypted file to aria2 then following
  1472. thing happens:
  1473. If encrypted private key is given to aria2, it behaves differently
  1474. depending on the ssl library it uses. If aria2 built with openssl then
  1475. openssl prompts the user for password. If aria2 build with gnutls then
  1476. aria2 exists with error at start up.
  1477. * src/DownloadEngineFactory.cc
  1478. * src/MultiUrlRequestInfo.cc
  1479. * src/OptionHandlerFactory.cc
  1480. * src/option_processing.cc
  1481. * src/prefs.cc
  1482. * src/prefs.h
  1483. * src/usage_text.h
  1484. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1485. Introduced TLSContext that holds TLS related data that can be shared
  1486. with multiple SSL connections.
  1487. * src/DownloadEngineFactory.cc
  1488. * src/LibgnutlsTLSContext.cc
  1489. * src/LibgnutlsTLSContext.h
  1490. * src/LibsslTLSContext.cc
  1491. * src/LibsslTLSContext.h
  1492. * src/Makefile.am
  1493. * src/SocketCore.cc
  1494. * src/SocketCore.h
  1495. * src/TLSContext.h
  1496. * src/message.h
  1497. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Fixed the bug that the DiskWriter of the first FileEntry whose
  1499. `needsFileAllocation' property is false is not created
  1500. even if it shares a piece with next FileEntry which `requested' property
  1501. is true.
  1502. Fixed the bug that zero-length file is not created if pre file
  1503. allocation is not done.
  1504. * src/MultiDiskAdaptor.cc
  1505. * src/MultiDiskAdaptor.h
  1506. * test/MultiDiskAdaptorTest.cc
  1507. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1508. Added the ability to pool proxy connection.
  1509. The conneciton in FTP with proxy-method=GET is not pooled.
  1510. Proxy-Connection header will not be sent when sending CONNECT method.
  1511. * src/DownloadEngine.cc
  1512. * src/DownloadEngine.h
  1513. * src/FtpFinishDownloadCommand.cc
  1514. * src/FtpInitiateConnectionCommand.cc
  1515. * src/FtpNegotiationCommand.cc
  1516. * src/HttpDownloadCommand.cc
  1517. * src/HttpInitiateConnectionCommand.cc
  1518. * src/HttpRequest.cc
  1519. * src/HttpRequest.h
  1520. * src/HttpResponse.cc
  1521. * src/HttpSkipResponseCommand.cc
  1522. * test/HttpRequestTest.cc
  1523. * test/HttpResponseTest.cc
  1524. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1525. Handle date before epoch.
  1526. To create *bad* Time object, call Time::null().
  1527. * src/CookieParser.cc
  1528. * src/FtpConnection.cc
  1529. * src/FtpConnection.h
  1530. * src/FtpNegotiationCommand.cc
  1531. * src/RequestGroup.cc
  1532. * src/TimeA2.cc
  1533. * src/TimeA2.h
  1534. * test/CookieParserTest.cc
  1535. * test/FtpConnectionTest.cc
  1536. * test/TimeTest.cc
  1537. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1538. Added support for following envrionment variables: http_proxy,
  1539. https_proxy, ftp_proxy and all_proxy.
  1540. Each variable is equivalent to the aria2 option whose name is the
  1541. variable name with '_' replaced with '-'.
  1542. They overrides options specified in aria2.conf file.
  1543. The envrionment variables can be overrode using command-line option.
  1544. * src/option_processing.cc
  1545. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1546. Renamed --http-proxy-method as --proxy-method.
  1547. * src/AbstractCommand.cc
  1548. * src/FtpInitiateConnectionCommand.cc
  1549. * src/HttpInitiateConnectionCommand.cc
  1550. * src/OptionHandlerFactory.cc
  1551. * src/option_processing.cc
  1552. * src/prefs.cc
  1553. * src/prefs.h
  1554. * src/usage_text.h
  1555. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1556. Deprecated --http-proxy-user and --http-proxy-passwd options.
  1557. Added --https-proxy, --ftp-proxy and --all-proxy options.
  1558. Above 3 options and --http-proxy option can handle proxy in URL format
  1559. like: http://user:passwd@host:port.
  1560. If a proxy requires user/password, they must be specified in a URL.
  1561. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  1562. instead.
  1563. * src/AbstractCommand.cc
  1564. * src/AbstractCommand.h
  1565. * src/AbstractProxyRequestCommand.cc
  1566. * src/AbstractProxyRequestCommand.h
  1567. * src/AuthConfigFactory.cc
  1568. * src/AuthConfigFactory.h
  1569. * src/FtpFinishDownloadCommand.cc
  1570. * src/FtpInitiateConnectionCommand.cc
  1571. * src/FtpInitiateConnectionCommand.h
  1572. * src/FtpNegotiationCommand.cc
  1573. * src/FtpTunnelRequestCommand.cc
  1574. * src/FtpTunnelRequestCommand.h
  1575. * src/HttpDownloadCommand.cc
  1576. * src/HttpInitiateConnectionCommand.cc
  1577. * src/HttpInitiateConnectionCommand.h
  1578. * src/HttpProxyRequestCommand.cc
  1579. * src/HttpProxyRequestCommand.h
  1580. * src/HttpRequest.cc
  1581. * src/HttpRequest.h
  1582. * src/HttpRequestCommand.cc
  1583. * src/HttpRequestCommand.h
  1584. * src/HttpSkipResponseCommand.cc
  1585. * src/InitiateConnectionCommand.cc
  1586. * src/InitiateConnectionCommand.h
  1587. * src/OptionHandlerFactory.cc
  1588. * src/OptionHandlerImpl.h
  1589. * src/Request.cc
  1590. * src/option_processing.cc
  1591. * src/prefs.cc
  1592. * src/prefs.h
  1593. * src/usage_text.h
  1594. * test/AuthConfigFactoryTest.cc
  1595. * test/HttpRequestTest.cc
  1596. * test/OptionHandlerTest.cc
  1597. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1598. Execute choking algorithm when unchoked and interested peer is
  1599. disconected.
  1600. * src/DefaultPeerStorage.cc
  1601. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1602. Added testcase for BtNotInterestedMessage from unchoked peer.
  1603. * test/BtNotInterestedMessageTest.cc
  1604. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1605. Execute choking algorithm when BtInterestedMessage arrives from
  1606. unchoked peer.
  1607. * src/BtInterestedMessage.cc
  1608. * src/BtInterestedMessage.h
  1609. * src/DefaultBtMessageFactory.cc
  1610. * test/BtInterestedMessageTest.cc
  1611. * test/MockPeerStorage.h
  1612. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1613. AuthConfigFactory is now part of DownloadEngine.
  1614. * src/AbstractProxyRequestCommand.cc
  1615. * src/AuthConfigFactory.h
  1616. * src/DownloadEngine.cc
  1617. * src/DownloadEngine.h
  1618. * src/FtpConnection.cc
  1619. * src/FtpConnection.h
  1620. * src/FtpNegotiationCommand.cc
  1621. * src/HttpConnection.cc
  1622. * src/HttpRequest.cc
  1623. * src/HttpRequest.h
  1624. * src/HttpRequestCommand.cc
  1625. * src/HttpResponse.cc
  1626. * src/HttpResponseCommand.cc
  1627. * src/HttpSkipResponseCommand.cc
  1628. * src/MultiUrlRequestInfo.cc
  1629. * src/main.cc
  1630. * test/FtpConnectionTest.cc
  1631. * test/HttpRequestTest.cc
  1632. * test/HttpResponseTest.cc
  1633. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1634. Corrected catched exception type.
  1635. * src/ServerStatMan.cc
  1636. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1637. DNSCache is now part of DownloadEngine.
  1638. * src/DNSCache.h
  1639. * src/DownloadEngine.cc
  1640. * src/DownloadEngine.h
  1641. * src/InitiateConnectionCommand.cc
  1642. * src/MultiUrlRequestInfo.cc
  1643. * test/Makefile.am
  1644. * test/Makefile.in
  1645. * test/SimpleDNSCacheTest.cc
  1646. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1647. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  1648. DownloadEngine.
  1649. * src/ActivePeerConnectionCommand.cc
  1650. * src/BtSetup.cc
  1651. * src/CUIDCounter.h
  1652. * src/DHTSetup.cc
  1653. * src/DownloadCommand.cc
  1654. * src/DownloadEngine.cc
  1655. * src/DownloadEngine.h
  1656. * src/DownloadEngineFactory.cc
  1657. * src/FileAllocationDispatcherCommand.cc
  1658. * src/InitiatorMSEHandshakeCommand.cc
  1659. * src/PeerInitiateConnectionCommand.cc
  1660. * src/PeerInteractionCommand.cc
  1661. * src/PeerListenCommand.cc
  1662. * src/RequestGroup.cc
  1663. * src/StreamFileAllocationEntry.cc
  1664. * src/TrackerWatcherCommand.cc
  1665. * src/main.cc
  1666. * test/RequestGroupManTest.cc
  1667. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1668. Implemented commented code in BtSeederStateChoke
  1669. * src/BtSeederStateChoke.cc
  1670. * src/Peer.cc
  1671. * src/Peer.h
  1672. * src/PeerInteractionCommand.cc
  1673. * src/PeerSessionResource.cc
  1674. * src/PeerSessionResource.h
  1675. * test/MockBtMessageDispatcher.h
  1676. * test/PeerSessionResourceTest.cc
  1677. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1678. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  1679. its object.
  1680. * src/AbstractBtMessage.cc
  1681. * src/ActivePeerConnectionCommand.cc
  1682. * src/ActivePeerConnectionCommand.h
  1683. * src/BtContextAwareCommand.cc
  1684. * src/BtContextAwareCommand.h
  1685. * src/BtExtendedMessage.cc
  1686. * src/BtExtendedMessage.h
  1687. * src/BtInterestedMessage.cc
  1688. * src/BtInterestedMessage.h
  1689. * src/BtNotInterestedMessage.cc
  1690. * src/BtNotInterestedMessage.h
  1691. * src/BtRegistry.cc
  1692. * src/BtRegistry.h
  1693. * src/BtSeederStateChoke.cc
  1694. * src/BtSetup.cc
  1695. * src/DHTGetPeersCommand.cc
  1696. * src/DHTGetPeersCommand.h
  1697. * src/DHTPeerAnnounceEntry.cc
  1698. * src/DHTPeerAnnounceEntry.h
  1699. * src/DHTPeerAnnounceStorage.cc
  1700. * src/DHTPeerAnnounceStorage.h
  1701. * src/DHTPeerLookupTask.cc
  1702. * src/DHTPeerLookupTask.h
  1703. * src/DHTSetup.cc
  1704. * src/DHTSetup.h
  1705. * src/DHTTaskFactory.h
  1706. * src/DHTTaskFactoryImpl.cc
  1707. * src/DHTTaskFactoryImpl.h
  1708. * src/DefaultBtAnnounce.cc
  1709. * src/DefaultBtInteractive.cc
  1710. * src/DefaultBtInteractive.h
  1711. * src/DefaultBtMessageDispatcher.cc
  1712. * src/DefaultBtMessageDispatcher.h
  1713. * src/DefaultBtMessageFactory.cc
  1714. * src/DefaultBtMessageFactory.h
  1715. * src/DefaultBtMessageReceiver.cc
  1716. * src/DefaultBtProgressInfoFile.cc
  1717. * src/DefaultBtProgressInfoFile.h
  1718. * src/DefaultBtRequestFactory.cc
  1719. * src/DefaultBtRequestFactory.h
  1720. * src/DefaultExtensionMessageFactory.cc
  1721. * src/DefaultExtensionMessageFactory.h
  1722. * src/DefaultPeerStorage.cc
  1723. * src/DefaultPeerStorage.h
  1724. * src/DownloadEngine.cc
  1725. * src/DownloadEngine.h
  1726. * src/InitiatorMSEHandshakeCommand.cc
  1727. * src/InitiatorMSEHandshakeCommand.h
  1728. * src/MSEHandshake.cc
  1729. * src/MSEHandshake.h
  1730. * src/Makefile.am
  1731. * src/Makefile.in
  1732. * src/PeerChokeCommand.cc
  1733. * src/PeerChokeCommand.h
  1734. * src/PeerInitiateConnectionCommand.cc
  1735. * src/PeerInitiateConnectionCommand.h
  1736. * src/PeerInteractionCommand.cc
  1737. * src/PeerInteractionCommand.h
  1738. * src/PeerObject.h
  1739. * src/PeerReceiveHandshakeCommand.cc
  1740. * src/PeerReceiveHandshakeCommand.h
  1741. * src/ReceiverMSEHandshakeCommand.cc
  1742. * src/RequestGroup.cc
  1743. * src/RequestGroup.h
  1744. * src/RequestGroupMan.cc
  1745. * src/RequestGroupMan.h
  1746. * src/SeedCheckCommand.cc
  1747. * src/SeedCheckCommand.h
  1748. * src/ShareRatioSeedCriteria.h
  1749. * src/SimpleBtMessage.cc
  1750. * src/TrackerWatcherCommand.cc
  1751. * src/TrackerWatcherCommand.h
  1752. * src/UTPexExtensionMessage.cc
  1753. * src/UTPexExtensionMessage.h
  1754. * test/BtCancelMessageTest.cc
  1755. * test/BtChokeMessageTest.cc
  1756. * test/BtExtendedMessageTest.cc
  1757. * test/BtInterestedMessageTest.cc
  1758. * test/BtNotInterestedMessageTest.cc
  1759. * test/BtPieceMessageTest.cc
  1760. * test/BtPortMessageTest.cc
  1761. * test/BtRegistryTest.cc
  1762. * test/BtRejectMessageTest.cc
  1763. * test/BtRequestMessageTest.cc
  1764. * test/DHTPeerAnnounceEntryTest.cc
  1765. * test/DHTPeerAnnounceStorageTest.cc
  1766. * test/DefaultBtMessageDispatcherTest.cc
  1767. * test/DefaultBtMessageFactoryTest.cc
  1768. * test/DefaultBtProgressInfoFileTest.cc
  1769. * test/DefaultBtRequestFactoryTest.cc
  1770. * test/DefaultExtensionMessageFactoryTest.cc
  1771. * test/MSEHandshakeTest.cc
  1772. * test/MockDHTTaskFactory.h
  1773. * test/ShareRatioSeedCriteriaTest.cc
  1774. * test/UTPexExtensionMessageTest.cc
  1775. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1776. Fixed compiler warning.
  1777. * test/UtilTest.cc
  1778. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1779. Treat Cookie object as session cookie if expiry = 0 is given.
  1780. With this change, you can specify session scoped cookies in an external
  1781. file setting expiry value to 0.
  1782. * src/Cookie.cc
  1783. * src/Cookie.h
  1784. * test/CookieParserTest.cc
  1785. * test/CookieStorageTest.cc
  1786. * test/CookieTest.cc
  1787. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1788. Changed signature of DHTMessageFactory::createResponseMessage().
  1789. Removed unused validateIDMatch.
  1790. * src/DHTMessageFactory.h
  1791. * src/DHTMessageFactoryImpl.cc
  1792. * src/DHTMessageFactoryImpl.h
  1793. * src/DHTMessageTracker.cc
  1794. * test/DHTMessageFactoryImplTest.cc
  1795. * test/MockDHTMessageFactory.h
  1796. Dropped DHT message coming from same ID of localhost.
  1797. * src/DHTMessageReceiver.cc
  1798. Rejected adding node whose ID is the same as localhost's.
  1799. * src/DHTRoutingTable.cc
  1800. * test/BtPortMessageTest.cc
  1801. * test/DHTRoutingTableTest.cc
  1802. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1803. Pool connection when redirection occurs with Content-Length = 0.
  1804. * src/HttpSkipResponseCommand.cc
  1805. * src/HttpSkipResponseCommand.h
  1806. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1807. Fixed the bug that causes time out when redirection occurs with
  1808. content-length 0.
  1809. * src/HttpResponseCommand.cc
  1810. * src/HttpSkipResponseCommand.cc
  1811. * src/HttpSkipResponseCommand.h
  1812. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1813. Now each status legends is shown only when it appears in Download
  1814. Result. If Download Result has no item, then status legend will not
  1815. be printed.
  1816. * src/RequestGroupMan.cc
  1817. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1818. Removed duplicate creation of OptionHandlers.
  1819. * src/option_processing.cc
  1820. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1821. Fixed the bug that causes segmentation fault when accessing files which
  1822. don't exist or are not included in --select-file option while
  1823. validating chunk checksum.
  1824. * src/MultiDiskAdaptor.cc
  1825. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1826. Fixed compiler warning.
  1827. * test/UtilTest.cc
  1828. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1829. Included cstdlib. This fixed the compile error with g++-4.3.2.
  1830. * src/IteratableChecksumValidator.cc
  1831. * src/IteratableChunkChecksumValidator.cc
  1832. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1833. * Release 0.16.2
  1834. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1835. Added Serbian translation. Updated Ukrainian translation.
  1836. Thanks to all translators.
  1837. * po/sr.po
  1838. * po/uk.po
  1839. * po/LINGUAS
  1840. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1841. Bump up version number to 0.16.2
  1842. * configure.ac
  1843. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1844. Added length equality test to operator== to drop a piece message
  1845. whose length does not match to the requested one.
  1846. * src/RequestSlot.cc
  1847. * test/DefaultBtMessageDispatcherTest.cc
  1848. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1849. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  1850. recieved.
  1851. In this fix, if a request larger than 16KiB length is received, aria2
  1852. disconnects the peer.
  1853. * src/BtConstants.h
  1854. * src/PeerMessageUtil.cc
  1855. * src/PeerMessageUtil.h
  1856. * test/BtRequestMessageTest.cc
  1857. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1858. * Release 0.16.1
  1859. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1860. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  1861. * doc/aria2c.1.txt
  1862. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1863. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  1864. Updated French, Simplified Chinese and Japanese translations.
  1865. Thanks to all translators.
  1866. en@quot and en@boldquot are also added.
  1867. * po/LINGUAS
  1868. * po/fr.po
  1869. * po/ja.po
  1870. * po/uk.po
  1871. * po/vi.po
  1872. * po/zh_CN.po
  1873. * po/zh_TW.po
  1874. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1875. Bump up version number to 0.16.1.
  1876. * configure.ac
  1877. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1878. Updated README.
  1879. * README
  1880. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1881. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  1882. not to replace '--' with em dash character.
  1883. * doc/aria2c.1.txt
  1884. * doc/makeman
  1885. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1886. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  1887. every SEC seconds.
  1888. * src/DownloadEngineFactory.cc
  1889. * src/OptionHandlerFactory.cc
  1890. * src/option_processing.cc
  1891. * src/usage_text.h
  1892. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1893. Fixed compile warning on linux-amd64
  1894. * src/FtpConnection.cc
  1895. * src/IteratableChunkChecksumValidator.cc
  1896. * src/MultiDiskAdaptor.cc
  1897. Fixed the bug that unit test fails on linux-amd64
  1898. * test/UtilTest.cc
  1899. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1900. Added --dht-file-path option to change the path to dht.dat, which is a
  1901. serialized DHT routing table.
  1902. * src/OptionHandlerFactory.cc
  1903. * src/option_processing.cc
  1904. * src/usage_text.h
  1905. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1906. Fixed possible underflow.
  1907. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  1908. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1909. Fixed the bug that last character in URI is not encoded.
  1910. * src/Request.cc
  1911. * test/RequestTest.cc
  1912. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1913. Fixed the bug that referer header field contains fragment.
  1914. Now Request class removes fragment part of URI and encodes it
  1915. in Request::setUri() and setReferer().
  1916. * src/Request.h
  1917. * src/Request.cc
  1918. * test/RequestTest.cc
  1919. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1920. Added missing m4 macros.
  1921. * m4/cppunit.m4
  1922. * m4/libgcrypt.m4
  1923. * m4/libgnutls-extra.m4
  1924. * m4/libgnutls.m4
  1925. * m4/libxml2.m4
  1926. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1927. Fixed compile error with gcc-4.4(snapshot)
  1928. * src/File.cc
  1929. * src/FtpConnection.cc
  1930. * src/OptionHandlerImpl.h
  1931. * src/Util.cc
  1932. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1933. Removed assert()
  1934. * src/SocketBuffer.cc (SocketBuffer::send)
  1935. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1936. Changed the type of _numNewConnection to unsigned int.
  1937. * src/ActivePeerConnectionCommand.cc
  1938. * src/ActivePeerConnectionCommand.h
  1939. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1940. * Release 0.16.0
  1941. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1942. Updated doc
  1943. * README
  1944. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1945. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  1946. translations. Thanks to all translators.
  1947. * po/bg.po
  1948. * po/de.po
  1949. * po/fr.po
  1950. * po/ja.po
  1951. * po/zh_CN.po
  1952. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1953. Bump up version number to 0.16.0.
  1954. * configure.ac
  1955. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1956. Casted entry->maxConnections to int32_t for std::min<T> with T =
  1957. int32_t.
  1958. Changed the type of count to int32_t.
  1959. * src/Metalink2RequestGroup.cc
  1960. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1961. Added test for Time::elapsed(time_t).
  1962. * test/TimeTest.cc
  1963. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1964. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  1965. Util::difftv() should be used instead.
  1966. * src/TimeA2.cc
  1967. * src/TimeA2.h
  1968. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1969. Made socket for dht connections non-blocking
  1970. * src/DHTAbstractMessage.cc
  1971. * src/DHTAbstractMessage.h
  1972. * src/DHTConnection.h
  1973. * src/DHTConnectionImpl.cc
  1974. * src/DHTConnectionImpl.h
  1975. * src/DHTMessage.h
  1976. * src/DHTMessageDispatcherImpl.cc
  1977. * src/DHTMessageDispatcherImpl.h
  1978. * src/DHTUnknownMessage.cc
  1979. * src/DHTUnknownMessage.h
  1980. * src/SocketCore.cc
  1981. * src/SocketCore.h
  1982. * test/MockDHTMessage.h
  1983. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1984. Changed the type of offset to int.
  1985. * src/ParameterizedStringParser.cc
  1986. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1987. Made getAsInt() return int32_t
  1988. * src/Option.h
  1989. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1990. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  1991. build.
  1992. * configure.ac
  1993. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1994. Use sqlite3_open if sqlite3_open_v2 is not available.
  1995. * src/Sqlite3MozCookieParser.cc
  1996. * src/Sqlite3MozCookieParser.h
  1997. * m4/sqlite3.m4
  1998. * test/Sqlite3MozCookieParserTest.cc
  1999. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2000. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  2001. * src/BtPieceMessage.cc
  2002. * src/DHTPeerAnnounceStorage.cc
  2003. * src/DefaultPieceStorage.cc
  2004. * src/DownloadCommand.cc
  2005. * src/DownloadEngine.cc
  2006. * src/FtpConnection.cc
  2007. * src/PeerConnection.cc
  2008. * src/PeerMessageUtil.cc
  2009. * src/RequestGroup.cc
  2010. * src/RequestGroupMan.cc
  2011. * src/SimpleBtMessage.cc
  2012. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2013. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2014. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2015. * src/AbstractDiskWriter.cc
  2016. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2017. Don't set Request::supportsPersistentConnection() in HttpConnection
  2018. since this code is also used in AbstractProxyResponseCommand.
  2019. Moved those code to HttpResponse.
  2020. * src/HttpResponse.cc
  2021. * src/HttpResponse.h
  2022. * src/HttpConnection.cc
  2023. * src/HttpConnection.h
  2024. * src/HttpResponseCommand.cc
  2025. * test/HttpResponseTest.cc
  2026. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2027. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2028. The configuration is minimum: no torrent, no metalink, so there may be
  2029. other compile error on their code.
  2030. * src/a2netcompat.h
  2031. * src/File.cc
  2032. * src/File.h
  2033. * src/SocketCore.cc
  2034. * src/SocketCore.h
  2035. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2036. Made a socket of incoming peer non-blocking.
  2037. * src/PeerListenCommand.cc
  2038. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2039. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2040. whole message data is not sent in one send() call.
  2041. * src/BtPieceMessage.cc
  2042. * src/BtPieceMessage.h
  2043. * src/PeerConnection.cc
  2044. * src/PeerConnection.h
  2045. * src/SimpleBtMessage.cc
  2046. * src/SimpleBtMessage.h
  2047. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2048. Fixed the bug that aria2 downloads faster than max-download-limit when
  2049. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2050. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2051. , instead of sum of them.
  2052. * src/ActivePeerConnectionCommand.cc
  2053. * src/DefaultBtInteractive.cc
  2054. * src/DownloadCommand.cc
  2055. * src/PeerInteractionCommand.cc
  2056. * src/PeerReceiveHandshakeCommand.cc
  2057. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2058. Fixed the bug that HTTPS download fails.
  2059. * src/AbstractCommand.cc
  2060. * src/AbstractCommand.h
  2061. * src/DownloadCommand.cc
  2062. * src/FtpConnection.cc
  2063. * src/HttpConnection.cc
  2064. * src/HttpRequestCommand.cc
  2065. * src/HttpResponseCommand.cc
  2066. * src/HttpSkipResponseCommand.cc
  2067. * src/MSEHandshake.cc
  2068. * src/PeerConnection.cc
  2069. * src/SocketCore.cc
  2070. * src/SocketCore.h
  2071. Fixed the bug that aria2 doesn't download whole content body and cannot
  2072. reuse connection if chunked transfer encoding and gzip content encoding
  2073. are set.
  2074. * src/DownloadCommand.cc
  2075. * src/HttpSkipResponseCommand.cc
  2076. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2077. Updated man page.
  2078. * doc/aria2c.1.txt
  2079. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2080. When error occurred while aria2 was parsing an .aria2.conf file, print
  2081. the usage of the option that caused error.
  2082. * src/option_processing.cc
  2083. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2084. Fixed compile error on OptionHandlerException
  2085. * src/Makefile.am
  2086. * src/OptionHandlerException.cc
  2087. * src/OptionHandlerException.h
  2088. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2089. Moved message of the error to OptionHandlerException.h
  2090. * src/NameMatchOptionHandler.h
  2091. * src/OptionHandlerException.h
  2092. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2093. When error occurs while aria2 is parsing an command-line option, print
  2094. the usage of the option.
  2095. * src/Makefile.am
  2096. * src/NameMatchOptionHandler.h
  2097. * src/OptionHandlerException.h
  2098. * src/option_processing.cc
  2099. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2100. Reverted previous change.
  2101. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2102. username is not in URI.
  2103. * src/HttpRequest.cc
  2104. * src/Request.cc
  2105. * test/HttpRequestTest.cc
  2106. * test/RequestTest.cc
  2107. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2108. Now colon is required for username and password in FTP URL, like:
  2109. ftp://username:password@host.
  2110. If colon is not there, aria2 don't parse it as a username. For example,
  2111. aria2 don't retrieve username from ftp://username@host.
  2112. This fix was made in order to login FTP server via non-transparent ftp
  2113. proxy.
  2114. * src/Request.cc
  2115. * test/RequestTest.cc
  2116. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2117. Use netrc for HTTP.
  2118. Now FTP user/password is sent in Authorization header when
  2119. --ftp-via-http-proxy=get is given.
  2120. * src/AuthConfigFactory.cc
  2121. * src/HttpRequest.cc
  2122. * src/HttpRequest.h
  2123. * src/NetrcAuthResolver.cc
  2124. * src/NetrcAuthResolver.h
  2125. * src/OptionHandlerFactory.cc
  2126. * src/option_processing.cc
  2127. * src/prefs.cc
  2128. * src/prefs.h
  2129. * test/AuthConfigFactoryTest.cc
  2130. * test/HttpRequestTest.cc
  2131. * test/NetrcAuthResolverTest.cc
  2132. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2133. Issue PWD command first and get working directory and use it as a prefix
  2134. for CWD command.
  2135. * src/DownloadEngine.cc
  2136. * src/DownloadEngine.h
  2137. * src/FtpConnection.cc
  2138. * src/FtpConnection.h
  2139. * src/FtpFinishDownloadCommand.cc
  2140. * src/FtpInitiateConnectionCommand.cc
  2141. * src/FtpNegotiationCommand.cc
  2142. * src/FtpNegotiationCommand.h
  2143. * test/FtpConnectionTest.cc
  2144. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2145. Removed default user/pass for FTP user/pass, since it should not have
  2146. precedence over netrc configuration by default.
  2147. * src/OptionHandlerFactory.cc
  2148. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2149. Added debug log for socket event.
  2150. * src/AbstractCommand.cc
  2151. * src/PeerAbstractCommand.cc
  2152. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2153. Log microseconds.
  2154. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2155. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2156. Replaced HelpItem.cc with OptionHandler.cc.
  2157. * po/POTFILES.in
  2158. Updated po files with 'make update-po'
  2159. * po/aria2c.pot
  2160. * po/*.po
  2161. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2162. Removed possible values from the text.
  2163. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2164. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2165. Removed unused preferences:
  2166. PREF_NO_PREALLOCATION
  2167. PREF_STDOUT_LOG
  2168. PREF_TRACKER_MAX_TRIES
  2169. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2170. PREF_MIN_SEGMENT_SIZE
  2171. * src/option_processing.cc
  2172. * src/prefs.cc
  2173. * src/prefs.h
  2174. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2175. Integrated HelpItem into OptionParser to ease the workload for adding
  2176. new options. Removed default value from usage text.
  2177. * src/HelpItem.cc: Removed.
  2178. * src/HelpItem.h: Removed.
  2179. * src/HelpItemFactory.cc: Removed.
  2180. * src/HelpItemFactory.h: Removed.
  2181. * src/Makefile.am
  2182. * src/Makefile.in
  2183. * src/NameMatchOptionHandler.h
  2184. * src/OptionHandler.cc
  2185. * src/OptionHandler.h
  2186. * src/OptionHandlerFactory.cc
  2187. * src/OptionHandlerImpl.h
  2188. * src/OptionParser.cc
  2189. * src/OptionParser.h
  2190. * src/TagContainer.cc: Removed.
  2191. * src/TagContainer.h: Removed.
  2192. * src/TaggedItem.cc: Removed.
  2193. * src/TaggedItem.h: Removed.
  2194. * src/main.cc
  2195. * src/option_processing.cc
  2196. * src/usage_text.h
  2197. * src/version_usage.cc
  2198. * test/HelpItemTest.cc: Removed.
  2199. * test/Makefile.am
  2200. * test/Makefile.in
  2201. * test/OptionHandlerTest.cc
  2202. * test/OptionParserTest.cc
  2203. * test/TagContainerTest.cc: Removed.
  2204. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2205. Moved `TransferStat stat = ...' to inside the `if' clause.
  2206. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  2207. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2208. Fixed the bug that a block in a piece is requested when same block is
  2209. already requested to the same peer in end game mode.
  2210. * src/BtRequestFactory.h
  2211. * src/DefaultBtInteractive.cc
  2212. * src/DefaultBtRequestFactory.cc
  2213. * src/DefaultBtRequestFactory.h
  2214. * src/DefaultPieceStorage.cc
  2215. * src/DefaultPieceStorage.h
  2216. * src/PieceStorage.h
  2217. * src/UnknownLengthPieceStorage.cc
  2218. * src/UnknownLengthPieceStorage.h
  2219. * test/DefaultBtRequestFactoryTest.cc
  2220. * test/DefaultPieceStorageTest.cc
  2221. * test/MockBtRequestFactory.h
  2222. * test/MockPieceStorage.h
  2223. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2224. Removed _uploadLength and _downloadLength from PeerSessionResource
  2225. and use PeerStat::_sessionUploadLength and
  2226. PeerStat::_sessionDownloadLength.
  2227. * src/PeerSessionResource.cc
  2228. * src/PeerSessionResource.h
  2229. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2230. Fixed the bug that prefixLength of split bucket which doesn't include
  2231. local node ID is incremented.
  2232. * src/DHTBucket.cc
  2233. * src/DHTBucket.h
  2234. * test/DHTBucketTest.cc
  2235. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2236. Added cookies.sqlite to EXTRA_DIST
  2237. * test/Makefile.am
  2238. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2239. Added Turkish translation. Updated French, German, Russian and
  2240. Simplified Chinese translations. Thanks to all translators.
  2241. * po/LINGUAS
  2242. * po/de.po
  2243. * po/fr.po
  2244. * po/ru.po
  2245. * po/tr.po
  2246. * po/zh_CN.po
  2247. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2248. Added deliminating text to the beginning of the log so that one can find
  2249. where the log starts easily.
  2250. * src/main.cc
  2251. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2252. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2253. to fix compile error when async DNS is not enabled by configuration.
  2254. * src/AbstractCommand.cc
  2255. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2256. If establishing conneciton to a server is failed, then mark error on
  2257. its ServerStat.
  2258. Added the cause of error to log when error event occurred.
  2259. Moved message string to message.h for translation.
  2260. * src/AbstractCommand.cc
  2261. * src/AbstractCommand.h
  2262. * src/FtpNegotiationCommand.cc
  2263. * src/HttpRequestCommand.cc
  2264. * src/PeerAbstractCommand.cc
  2265. * src/message.h
  2266. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2267. Added the function to get error message from socket.
  2268. * src/SocketCore.cc
  2269. * src/SocketCore.h
  2270. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2271. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2272. * src/RequestGroupMan.cc
  2273. * src/RequestGroupMan.h
  2274. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2275. If error event is received in epoll, then abort download immediately.
  2276. * src/AbstractCommand.cc
  2277. * src/Command.cc
  2278. * src/Command.h
  2279. * src/DownloadEngine.cc
  2280. * src/PeerAbstractCommand.cc
  2281. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2282. Added usage message for --uri-selector, --server-stat-of,
  2283. --server-stat-in, --server-stat-timeout options.
  2284. * src/HelpItemFactory.cc
  2285. * src/usage_text.h
  2286. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2287. Added upper limit of FTP response buffer. The current implementation
  2288. uses 4096bytes as a limit.
  2289. * src/FtpConnection.cc
  2290. * src/FtpConnection.h
  2291. * test/FtpConnectionTest.cc
  2292. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2293. Use non-blocking socket for TCP communication to avoid possible
  2294. blocking due to buffer full.
  2295. * src/AbstractProxyRequestCommand.cc
  2296. * src/FtpConnection.cc
  2297. * src/FtpConnection.h
  2298. * src/FtpNegotiationCommand.cc
  2299. * src/FtpNegotiationCommand.h
  2300. * src/HttpConnection.cc
  2301. * src/HttpConnection.h
  2302. * src/HttpRequestCommand.cc
  2303. * src/InitiatorMSEHandshakeCommand.cc
  2304. * src/InitiatorMSEHandshakeCommand.h
  2305. * src/MSEHandshake.cc
  2306. * src/MSEHandshake.h
  2307. * src/Makefile.am
  2308. * src/PeerConnection.cc
  2309. * src/PeerConnection.h
  2310. * src/PeerInteractionCommand.cc
  2311. * src/PeerListenCommand.cc
  2312. * src/ReceiverMSEHandshakeCommand.cc
  2313. * src/ReceiverMSEHandshakeCommand.h
  2314. * src/SocketBuffer.cc
  2315. * src/SocketBuffer.h
  2316. * src/SocketCore.cc
  2317. * src/SocketCore.h
  2318. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2319. Call setStatusRealtime() in constructor.
  2320. * src/RealtimeCommand.cc
  2321. * src/RealtimeCommand.h
  2322. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2323. Call Download::setNoWait(true) to execute newly created command without
  2324. a pause.
  2325. * src/AbstractCommand.cc
  2326. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2327. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2328. found' error from HTTP/FTP server NUM times without getting single
  2329. bytes of data, then force the download to fail.
  2330. Basically aria2 tris all URIs available. So if long list of URIs are
  2331. specified in Metalink, then aria2 will take a long time to fail
  2332. eventually if all URIs are outdated. This option eases this situation
  2333. to limit the number of servers to try.
  2334. * src/FtpNegotiationCommand.cc
  2335. * src/HelpItemFactory.cc
  2336. * src/HttpResponseCommand.cc
  2337. * src/OptionHandlerFactory.cc
  2338. * src/PeerStat.h
  2339. * src/RequestGroup.cc
  2340. * src/RequestGroup.h
  2341. * src/SegmentMan.cc
  2342. * src/SegmentMan.h
  2343. * src/option_processing.cc
  2344. * src/prefs.cc
  2345. * src/prefs.h
  2346. * src/usage_text.h
  2347. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2348. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2349. response even if more than one response is in it.
  2350. * src/FtpConnection.cc
  2351. * src/FtpConnection.h
  2352. * test/FtpConnectionTest.cc
  2353. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2354. Merged from stable-0.15
  2355. * m4/libcares.m4
  2356. Use pkg-config
  2357. * m4/sqlite3.m4
  2358. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2359. Removed unnecessary if statement.
  2360. * src/DefaultPieceStorage.cc (initPieceStorage)
  2361. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2362. Added --connect-timeout option to specify connect timeout in seconds.
  2363. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2364. connecting to BitTorrent peer is not controlled by this option.
  2365. * src/AbstractProxyRequestCommand.cc
  2366. * src/FtpNegotiationCommand.cc
  2367. * src/HelpItemFactory.cc
  2368. * src/HttpRequestCommand.cc
  2369. * src/OptionHandlerFactory.cc
  2370. * src/option_processing.cc
  2371. * src/prefs.cc
  2372. * src/prefs.h
  2373. * src/usage_text.h
  2374. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2375. Added help message for -R option.
  2376. * src/HelpItemFactory.cc
  2377. * src/usage_text.h
  2378. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2379. Added the message that the time is in local time zone.
  2380. * src/RequestGroup.cc
  2381. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2382. Implemented the ability to get timestamp from remote FTP server using
  2383. MDTM command described in RFC3659.
  2384. * src/FtpConnection.cc
  2385. * src/FtpConnection.h
  2386. * src/FtpNegotiationCommand.cc
  2387. * src/FtpNegotiationCommand.h
  2388. * test/FtpConnectionTest.cc
  2389. * test/Makefile.am
  2390. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2391. Implemented the ability to get timestamp from remote HTTP server and
  2392. apply it to local file. To enable this feature, --remote-time option
  2393. is added. No usage text has been written yet.
  2394. If several servers returns difference timestamp, then aria2 uses latest
  2395. one.
  2396. * src/CopyDiskAdaptor.cc
  2397. * src/CopyDiskAdaptor.h
  2398. * src/DirectDiskAdaptor.cc
  2399. * src/DirectDiskAdaptor.h
  2400. * src/DiskAdaptor.h
  2401. * src/File.cc
  2402. * src/File.h
  2403. * src/HttpHeader.cc
  2404. * src/HttpHeader.h
  2405. * src/HttpResponse.cc
  2406. * src/HttpResponse.h
  2407. * src/HttpResponseCommand.cc
  2408. * src/HttpResponseCommand.h
  2409. * src/MultiDiskAdaptor.cc
  2410. * src/MultiDiskAdaptor.h
  2411. * src/OptionHandlerFactory.cc
  2412. * src/RequestGroup.cc
  2413. * src/RequestGroup.h
  2414. * src/RequestGroupMan.cc
  2415. * src/option_processing.cc
  2416. * src/prefs.cc
  2417. * src/prefs.h
  2418. * test/CopyDiskAdaptorTest.cc
  2419. * test/FileTest.cc
  2420. * test/Makefile.am
  2421. * test/Makefile.in
  2422. * test/MultiDiskAdaptorTest.cc
  2423. * test/TestUtil.cc
  2424. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2425. Fixed the bug that DiskWriterEntry is not created when its
  2426. FileEntry.isRequested() is false and it doesn't share a piece with
  2427. other FileEntries that are requested. This bug causes segmentation fault
  2428. in the end.
  2429. * src/MultiDiskAdaptor.cc
  2430. * src/MultiDiskAdaptor.h
  2431. * src/MultiFileAllocationIterator.cc
  2432. * test/MultiDiskAdaptorTest.cc
  2433. * test/MultiFileAllocationIteratorTest.cc
  2434. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2435. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  2436. called if the number of file entries are greater than max open files.
  2437. * src/AbstractSingleDiskAdaptor.cc
  2438. * src/AbstractSingleDiskAdaptor.h
  2439. * src/DiskAdaptor.h
  2440. * src/MultiDiskAdaptor.cc
  2441. * src/MultiDiskAdaptor.h
  2442. * test/MultiDiskAdaptorTest.cc
  2443. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2444. Added a constuctor that receives struct timeval.
  2445. Added operator<.
  2446. * src/TimeA2.cc
  2447. * src/TimeA2.h
  2448. * test/TimeTest.cc
  2449. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2450. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  2451. * src/CookieParser.cc
  2452. * test/CookieParserTest.cc
  2453. * test/HttpResponseTest.cc
  2454. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2455. Implmented the functions to parse date.
  2456. * src/TimeA2.cc
  2457. * src/TimeA2.h
  2458. * test/TimeTest.cc
  2459. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2460. Added "Firefox3 Cookie" feature to FeatureConfig
  2461. * src/FeatureConfig.cc
  2462. * src/FeatureConfig.h
  2463. * test/FeatureConfigTest.cc
  2464. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2465. Bump up version number to 0.16.0b
  2466. * configure.ac
  2467. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2468. Use pkg-config if is is available.
  2469. * m4/openssl.m4
  2470. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2471. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  2472. * src/BtAnnounce.h
  2473. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2474. If an error occurred with a URI, remove identical URI from remaining
  2475. URI list because it is likely that same error occurred in the end and it
  2476. is waste of time.
  2477. * src/AbstractCommand.cc
  2478. * src/RequestGroup.cc
  2479. * src/RequestGroup.h
  2480. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2481. Removed wrong comment.
  2482. * src/DefaultPeerStorage.cc
  2483. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2484. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  2485. Added return value of getpid() to argument of srand() to achieve more
  2486. randomized value.
  2487. * src/SimpleRandomizer.cc
  2488. * src/SimpleRandomizer.h
  2489. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2490. Contact tracker frequently when the number of connections are 0 and
  2491. download is not finished yet.
  2492. * src/ActivePeerConnectionCommand.cc
  2493. * src/BtAnnounce.h
  2494. * src/DefaultBtAnnounce.cc
  2495. * src/DefaultBtAnnounce.h
  2496. * test/MockBtAnnounce.h
  2497. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2498. Moved threshold values to UTPexExtensionMessage.
  2499. * src/DefaultBtInteractive.cc
  2500. * src/Peer.cc
  2501. * src/Peer.h
  2502. * src/UTPexExtensionMessage.cc
  2503. * src/UTPexExtensionMessage.h
  2504. * test/UTPexExtensionMessageTest.cc
  2505. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2506. Added _incoming member to Peer class and made it true if the peer
  2507. initiated connection. Don't add those peer to UTPex message.
  2508. If extended handshake is received, assign _incoming to false.
  2509. * src/DefaultBtInteractive.cc
  2510. * src/HandshakeExtensionMessage.cc
  2511. * src/Peer.cc
  2512. * src/Peer.h
  2513. * src/PeerListenCommand.cc
  2514. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2515. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  2516. Encoding Decoder. Removed size threshold for turning off on the fly
  2517. inflation because resulting file may or may not be inflated depending
  2518. on the file size and I think it is not expected by users.
  2519. This change fixes segmentation fault when Metalink file contains gzipped
  2520. file and its filesize is provided.
  2521. * src/HttpResponseCommand.cc
  2522. * src/HttpResponseCommand.h
  2523. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2524. Made Cookie immutable.
  2525. * src/Cookie.cc
  2526. * src/Cookie.h
  2527. * src/CookieParser.cc
  2528. * src/CookieParser.h
  2529. * src/CookieStorage.cc
  2530. * test/CookieParserTest.cc
  2531. * test/CookieStorageTest.cc
  2532. * test/NsCookieParserTest.cc
  2533. * test/Sqlite3MozCookieParserTest.cc
  2534. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2535. Removed CookieBox, CookieBoxFactory.
  2536. * src/CookieBox.cc
  2537. * src/CookieBox.h
  2538. * src/CookieBoxFactory.cc
  2539. * src/CookieBoxFactory.h
  2540. * src/Makefile.am
  2541. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2542. Use CookieStorage class instead of CookieBox class.
  2543. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  2544. * src/AbstractProxyRequestCommand.cc
  2545. * src/CookieStorage.cc
  2546. * src/DownloadEngine.cc
  2547. * src/DownloadEngine.h
  2548. * src/HttpConnection.cc
  2549. * src/HttpConnection.h
  2550. * src/HttpRequest.cc
  2551. * src/HttpRequest.h
  2552. * src/HttpRequestCommand.cc
  2553. * src/HttpResponse.cc
  2554. * src/HttpResponseCommand.cc
  2555. * src/HttpSkipResponseCommand.cc
  2556. * src/Makefile.am
  2557. * src/MultiUrlRequestInfo.cc
  2558. * src/Request.cc
  2559. * src/Request.h
  2560. * src/main.cc
  2561. * test/AllTest.cc
  2562. * test/CookieStorageTest.cc
  2563. * test/CookieTest.cc
  2564. * test/HttpRequestTest.cc
  2565. * test/HttpResponseTest.cc
  2566. * test/Makefile.am
  2567. * test/NsCookieParserTest.cc
  2568. * test/Sqlite3MozCookieParserTest.cc
  2569. * test/nscookietest.txt
  2570. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2571. Updated
  2572. * test/Cookies.sqlite
  2573. * test/nscookietest.txt
  2574. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2575. Added tests for CookieStorage::load()
  2576. * test/CookieStorageTest.cc
  2577. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2578. Added CookieStorage class which is based on RFC2109 and manages cookies
  2579. more strictly than CookieBox and CookieBoxFactory class.
  2580. * src/CookieStorage.cc
  2581. * src/CookieStorage.h
  2582. * src/Cookie.cc
  2583. * src/Cookie.h
  2584. * test/CookieStorageTest.cc
  2585. * test/CookieTest.cc
  2586. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2587. Fixed the bug that commands are created more than the number of pieces.
  2588. * src/RequestGroup.cc
  2589. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2590. Fixed infinite loop bug in FTP when SIZE command failed.
  2591. * src/FtpNegotiationCommand.cc
  2592. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2593. Removed DirectDiskAdaptorTest.h
  2594. * test/Makefile.am
  2595. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2596. Fixed chunk checksum validation cannot detect trailing garbage data.
  2597. BUG#2074141
  2598. * src/AbstractSingleDiskAdaptor.cc
  2599. * src/AbstractSingleDiskAdaptor.h
  2600. * src/CheckIntegrityEntry.cc
  2601. * src/CheckIntegrityEntry.h
  2602. * src/DiskAdaptor.h
  2603. * src/MultiDiskAdaptor.cc
  2604. * src/MultiDiskAdaptor.h
  2605. * src/RequestGroup.cc
  2606. * test/DirectDiskAdaptorTest.cc
  2607. * test/MultiDiskAdaptorTest.cc
  2608. * test/TestUtil.cc
  2609. * test/TestUtil.h
  2610. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2611. Bump up version number of dht.dat file to 3. In version 3 format, time
  2612. is stored in 64bit, network byte order.
  2613. New build can load old format(version 2) but it saves the file in new
  2614. format. It means once you used new build, your dht.dat becomes
  2615. incompatible with older build.
  2616. * src/DHTRoutingTableDeserializer.cc
  2617. * src/DHTRoutingTableSerializer.cc
  2618. * test/DHTRoutingTableSerializerTest.cc
  2619. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2620. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  2621. * test/Makefile.am
  2622. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2623. Bump up version number of .aria2 control file to 0001.
  2624. New aria2 can still load version 0000 file but it saves the file in
  2625. version 0001 format. It means that new aria2 can resume download
  2626. started by old aria2 but the opposite is not true.
  2627. * src/DefaultBtProgressInfoFile.cc
  2628. * src/DefaultBtProgressInfoFile.h
  2629. * test/DefaultBtProgressInfoFileTest.cc
  2630. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2631. Added ntoh64 and hton64 as inline functions.
  2632. * src/Util.cc
  2633. * test/UtilTest.cc
  2634. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2635. Added sqlite3 depenency and Firefox3 cookie support.
  2636. * README
  2637. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2638. State that firefox3 cookie is supported explicitly in the usage.
  2639. * src/usage_text.h
  2640. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2641. Externalized message.
  2642. * src/RequestGroupMan.cc
  2643. * src/message.h
  2644. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2645. Save temporary file first and rename to the destination on success.
  2646. Added test cases.
  2647. * src/RequestGroupMan.cc
  2648. * test/RequestGroupManTest.cc
  2649. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2650. Fixed the bug that the number of connected peer is exceeding the limit
  2651. (55 by default) in seeding mode.
  2652. Multiplied 0.8 to _maxUploadSpeedLimit.
  2653. * src/ActivePeerConnectionCommand.cc
  2654. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2655. Clear table item.
  2656. * src/Dictionary.cc
  2657. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2658. Fixed error handling of lseek.
  2659. * src/AbstractDiskWriter.cc
  2660. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2661. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  2662. style cookie file.
  2663. * src/usage_text.h
  2664. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2665. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  2666. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  2667. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  2668. * src/Util.cc
  2669. * src/Util.h
  2670. * src/CookieParser.cc
  2671. * test/UtilTest.cc
  2672. * test/CookieParserTest.cc
  2673. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2674. Separate the implementation to load old mozilla format of cookie to
  2675. NsCookieParser class.
  2676. * src/CookieBoxFactory.cc
  2677. * src/CookieBoxFactory.h
  2678. * src/NsCookieParser.cc
  2679. * src/NsCookieParser.h
  2680. * test/NsCookieParserTest.cc
  2681. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2682. Made parse() const
  2683. * src/Sqlite3MozCookieParser.cc
  2684. * src/Sqlite3MozCookieParser.h
  2685. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2686. Added firefox3 cookie support based on the patch submitted by
  2687. tizianomueller.
  2688. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  2689. this functionality.
  2690. * configure.ac
  2691. * m4/sqlite3.m4
  2692. * src/CookieBoxFactory.cc
  2693. * src/CookieBoxFactory.h
  2694. * src/Makefile.am
  2695. * src/Makefile.in
  2696. * src/Sqlite3MozCookieParser.cc
  2697. * src/Sqlite3MozCookieParser.h
  2698. * src/main.cc
  2699. * test/CookieBoxFactoryTest.cc
  2700. * test/Makefile.am
  2701. * test/Makefile.in
  2702. * test/Sqlite3MozCookieParserTest.cc
  2703. * test/badcookies.sqlite
  2704. * test/cookies.sqlite
  2705. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2706. Added Danish and Greek translations.
  2707. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  2708. Great thanks to all translators.
  2709. * po/LINGUAS
  2710. * po/el.po
  2711. * po/da.po
  2712. * po/es.po
  2713. * po/ca.po
  2714. * po/nn.po
  2715. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2716. Fixed man page: --follow-bittorrent should be --follow-torrent
  2717. * doc/aria2c.1.txt
  2718. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2719. Fixed: numCommand is less than the value specified in -C option.
  2720. * src/RequestGroup.cc
  2721. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2722. Fixed occasional assertion failure in PieceSegment.
  2723. Calling PieceStorage::getMissingPiece(size_t) was missing after
  2724. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  2725. creation of duplicate segments and one of the segment was finished then
  2726. assertion failure was caused.
  2727. * src/SegmentMan.cc
  2728. * test/SegmentManTest.cc
  2729. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2730. Added options to load/save the server's performance/status to a file
  2731. and the timeout to drop their data.
  2732. --server-stat-of=FILE specifies the file to which performance data
  2733. is saved.
  2734. --server-stat-if=FILE specifies the file to read previously saved
  2735. by --server-stat-of option. Might be used with --uri-selector=feedback.
  2736. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  2737. TIMEOUT is specified in seconds and the default value is 24hours.
  2738. * src/MultiUrlRequestInfo.cc
  2739. * src/OptionHandlerFactory.cc
  2740. * src/RequestGroupMan.cc
  2741. * src/RequestGroupMan.h
  2742. * src/ServerStatMan.cc
  2743. * src/ServerStatMan.h
  2744. * src/option_processing.cc
  2745. * src/prefs.cc
  2746. * src/prefs.h
  2747. * test/ServerStatManTest.cc
  2748. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2749. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  2750. * src/ServerStatMan.cc
  2751. * src/ServerStatMan.h
  2752. * test/ServerStatManTest.cc
  2753. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2754. Implemented ServerStatMan::load(...) function and its test case.
  2755. * src/ServerStat.cc
  2756. * src/ServerStat.h
  2757. * src/ServerStatMan.cc
  2758. * test/ServerStatManTest.cc
  2759. * test/ServerStatTest.cc
  2760. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2761. Use time_t instead of int32_t. Use int64_t where milli second is
  2762. expected.
  2763. * src/TimeA2.cc
  2764. * src/TimeA2.h
  2765. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2766. Implemented ServerStatMan::save(...) function and its test case.
  2767. * src/ServerStat.cc
  2768. * src/ServerStat.h
  2769. * src/ServerStatMan.cc
  2770. * src/ServerStatMan.h
  2771. * test/ServerStatManTest.cc
  2772. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2773. Now aria2 uses name attribute in Metalink as local filename in
  2774. BitTorrent downloads. BUG#2033999
  2775. * src/BtContext.h
  2776. * src/BtDependency.cc
  2777. * src/DefaultBtContext.cc
  2778. * src/DefaultBtContext.h
  2779. * src/SingleFileDownloadContext.cc
  2780. * src/SingleFileDownloadContext.h
  2781. * test/BtDependencyTest.cc
  2782. * test/DefaultBtContextTest.cc
  2783. * test/MockBtContext.h
  2784. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2785. Added AC_C_BIGENDIAN
  2786. * src/configure.ac
  2787. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2788. Limited numCommand less than or equal to the number of piece.
  2789. * src/RequestGroup.cc
  2790. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2791. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  2792. directive.
  2793. * test/DefaultPieceStorageTest.cc
  2794. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2795. Fixed memory leak in test code
  2796. * test/AnnounceListTest.cc
  2797. * test/DefaultPeerListProcessorTest.cc
  2798. * test/DefaultPeerStorageTest.cc
  2799. * test/MetaFileUtilTest.cc
  2800. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2801. Fixed wrong argument passing to BitfieldMan::isBitSet()
  2802. * src/DefaultPieceStorage.cc
  2803. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2804. Initialized _directIOAllowed
  2805. * src/MultiDiskAdaptor.cc
  2806. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2807. Fixed memory leak
  2808. * src/GZipDecoder.cc
  2809. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2810. Fixed memory leak
  2811. * src/MetalinkParserStateMachine.cc
  2812. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2813. Fixed memory leak
  2814. * src/Dictionary.cc
  2815. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2816. Fixed memory leak
  2817. * src/IteratableChunkChecksumValidator.h
  2818. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2819. Fixed unmatched malloc/free.
  2820. * src/IteratableChunkChecksumValidator.cc
  2821. * src/IteratableChecksumValidator.cc
  2822. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2823. Removed max chunk size check. This change fixes BUG#2040169
  2824. * src/ChunkedDecoder.cc
  2825. * src/ChunkedDecoder.h
  2826. * test/ChunkedDecoderTest.cc
  2827. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2828. Implemented download speed based URI selection algorithm.
  2829. Introduced new option --uri-selector.
  2830. If --uri-selector=feedback is given, aria2 uses download speed observed
  2831. in the previous downloads and chooses fastest server in the URI list.
  2832. Currently at most 10 URIs are considered to introduce randomeness for
  2833. finding better servers. The speed is average download speed in the
  2834. downloads.
  2835. On the other hand, if --uri-selector=inorder is given, which is default,
  2836. URI is tried in order in URI list.
  2837. The usage text for the new option has not been written yet.
  2838. * src/AbstractCommand.cc
  2839. * src/DownloadCommand.cc
  2840. * src/DownloadEngine.cc
  2841. * src/DownloadEngineFactory.cc
  2842. * src/InOrderURISelector.cc
  2843. * src/InOrderURISelector.h
  2844. * src/OptionHandlerFactory.cc
  2845. * src/PeerStat.h
  2846. * src/RequestGroup.cc
  2847. * src/RequestGroup.h
  2848. * src/RequestGroupMan.cc
  2849. * src/RequestGroupMan.h
  2850. * src/SegmentMan.cc
  2851. * src/SegmentMan.h
  2852. * src/ServerStat.cc
  2853. * src/ServerStat.h
  2854. * src/ServerStatMan.cc
  2855. * src/ServerStatMan.h
  2856. * src/ServerStatURISelector.cc
  2857. * src/ServerStatURISelector.h
  2858. * src/URISelector.h
  2859. * src/option_processing.cc
  2860. * src/prefs.cc
  2861. * src/prefs.h
  2862. * test/InOrderURISelectorTest.cc
  2863. * test/RequestGroupManTest.cc
  2864. * test/ServerStatManTest.cc
  2865. * test/ServerStatURISelectorTest.cc
  2866. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2867. * Release 0.15.1+2
  2868. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2869. Bump up version number to 0.15.1+2
  2870. * configure.ac
  2871. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2872. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  2873. * m4/aria2_arg.m4
  2874. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2875. * Release 0.15.1+1
  2876. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2877. Bump up version number to 0.15.1+1
  2878. * configure.ac
  2879. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2880. Fixed the bug that causes segmentaion fault when resuming download
  2881. using metalink without size tag. Reproducible only using HTTP URI.
  2882. * src/HttpResponseCommand.cc
  2883. * src/FtpNegotiationCommand.cc
  2884. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2885. * Release 0.15.1
  2886. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2887. Updated Bulgarian and French translations, thanks to all translators.
  2888. * po/bg.po
  2889. * po/fr.po
  2890. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2891. Bump up version number to 0.15.1
  2892. * configure.ac
  2893. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2894. Avoid repeated call of gettimeofday() when calculating speed.
  2895. * src/SpeedCalc.cc
  2896. * src/SpeedCalc.h
  2897. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2898. Removed writable check when socket's send buffer is full in BitTorrent
  2899. downloads to lower CPU usage.
  2900. * src/PeerInteractionCommand.cc
  2901. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2902. Fixed broken gzip inflation.
  2903. Turn off segmented downloading if gzip content is smaller than or equal
  2904. to 1MiB and inflate the data on the fly, because HTTP response header
  2905. doesn't contain the length of inflated file we can't determin where
  2906. the chunk of data should be written.
  2907. On the other hand, if gzip content is larger than 1MB, then turn off
  2908. on the fly inflation, because some servers returns "content-type: gzip"
  2909. for *.tgz, *.gz files.
  2910. * src/DownloadCommand.cc
  2911. * src/HttpResponseCommand.cc
  2912. * src/HttpResponseCommand.h
  2913. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2914. Applied tizianomueller's patch to fix compile error.
  2915. * test/BitfieldManTest.cc
  2916. * test/BtRequestMessageTest.cc
  2917. * test/DefaultBtContextTest.cc
  2918. * test/DefaultDiskWriterTest.cc
  2919. * test/DefaultPieceStorageTest.cc
  2920. * test/HttpHeaderProcessorTest.cc
  2921. * test/HttpResponseTest.cc
  2922. * test/Metalink2RequestGroupTest.cc
  2923. * test/MetalinkParserControllerTest.cc
  2924. * test/MetalinkProcessorTest.cc
  2925. * test/PeerSessionResourceTest.cc
  2926. * test/UtilTest.cc
  2927. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2928. * Release 0.15.0
  2929. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2930. Reordered src files in POTFILES.in so that usage text appears first.
  2931. * po/POTFILES.in
  2932. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2933. Bump up version number to 0.15.0
  2934. * configure.ac
  2935. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2936. Added Bulgarian translation.
  2937. Updated Catalan, Spanish, French and Japanese translations.
  2938. Thanks to all translators.
  2939. * po/LINGUAS
  2940. * po/bg.po
  2941. * po/ca.po
  2942. * po/es.po
  2943. * po/fr.po
  2944. * po/ja.po
  2945. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2946. Updated feature list. Added libz for dependency section.
  2947. Added a description about unit testing using CppUnit.
  2948. * README
  2949. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2950. Added a test for libz. Quoted where it is necessary.
  2951. * build_test.sh
  2952. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2953. Added GZip to `Enabled Features' list.
  2954. * src/FeatureConfig.cc
  2955. * src/FeatureConfig.h
  2956. * test/FeatureConfigTest.cc
  2957. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2958. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  2959. the transfer has not yet started.
  2960. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  2961. * src/SegmentMan.cc
  2962. * src/SegmentMan.h
  2963. * test/SegmentManTest.cc
  2964. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2965. Cache last calculated average download/upload speed.
  2966. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  2967. cached value.
  2968. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  2969. * src/PeerStat.h
  2970. * src/SpeedCalc.cc
  2971. * src/SpeedCalc.h
  2972. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2973. Call parseUrl directly.
  2974. * src/Request.cc (resetUrl)
  2975. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2976. Supported absolute/relative path in Location header field.
  2977. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  2978. * src/HttpHeader.cc
  2979. * src/HttpHeader.h
  2980. * src/HttpResponse.cc
  2981. * src/HttpSkipResponseCommand.cc
  2982. * src/Request.cc
  2983. * test/HttpHeaderTest.cc
  2984. * test/HttpResponseTest.cc
  2985. * test/RequestTest.cc
  2986. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2987. Changed help text for --load-cookie option.
  2988. * doc/aria2c.1.txt
  2989. * src/usage_text.h
  2990. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2991. Regenerated test/Makefile.in to remove stale ChangeLog.
  2992. * test/Makefile.in
  2993. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2994. Updated po files.
  2995. * po/aria2c.pot
  2996. * po/*.po
  2997. * po/*.gmo
  2998. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2999. Bump up version number to 0.15.0b
  3000. * configure.ac
  3001. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3002. Externalize messages.
  3003. * src/RequestGroupMan.cc
  3004. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3005. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3006. Use File::exists() instead of File::isFile() to allow non-regular file
  3007. such as block special files.
  3008. * src/AbstractDiskWriter.cc
  3009. * src/MultiDiskWriter.cc
  3010. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3011. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3012. * src/gai_strerror.h
  3013. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3014. Fixed compile error. Thanks gknauf for the patch.
  3015. * src/asctime_r.c
  3016. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3017. Included asctime_r.h from a2time.h.
  3018. * src/a2time.h
  3019. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3020. Added a message "aria2 doesn't verify signature" to log message when
  3021. signature file is saved.
  3022. * src/RequestGroupMan.cc
  3023. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3024. Added the ability to save signature when download is completed if
  3025. signature is available. The filename of signature file is the path to
  3026. download file followed by ".sig". If it already exists, then signature
  3027. will not be saved.
  3028. * src/RequestGroupMan.cc
  3029. * src/Signature.cc
  3030. * test/SignatureTest.cc
  3031. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3032. Updated the descriptions for --bt-seed-unverified.
  3033. * doc/aria2c.1
  3034. * doc/aria2c.1.html
  3035. * doc/aria2c.1.txt
  3036. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3037. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3038. that this is not going to verify files using piece hashes.
  3039. * src/HelpItemFactory.cc
  3040. * src/OptionHandlerFactory.cc
  3041. * src/RequestGroup.cc
  3042. * src/option_processing.cc
  3043. * src/prefs.cc
  3044. * src/prefs.h
  3045. * src/usage_text.h
  3046. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3047. Added the ability to retrieve signature from Metalink file.
  3048. A retrieved signature is stored in Signature class and it is held by
  3049. DownloadContext class. Note that aria2 doesn't verify signature.
  3050. * src/DownloadContext.cc
  3051. * src/DownloadContext.h
  3052. * src/Makefile.am
  3053. * src/Makefile.in
  3054. * src/Metalink2RequestGroup.cc
  3055. * src/MetalinkEntry.cc
  3056. * src/MetalinkEntry.h
  3057. * src/MetalinkParserController.cc
  3058. * src/MetalinkParserController.h
  3059. * src/MetalinkParserStateMachine.cc
  3060. * src/MetalinkParserStateMachine.h
  3061. * src/Signature.cc
  3062. * src/Signature.h
  3063. * src/SignatureMetalinkParserState.cc
  3064. * src/SignatureMetalinkParserState.h
  3065. * src/VerificationMetalinkParserState.cc
  3066. * src/VerificationMetalinkParserState.h
  3067. * test/Metalink2RequestGroupTest.cc
  3068. * test/MetalinkParserControllerTest.cc
  3069. * test/MetalinkProcessorTest.cc
  3070. * test/test.xml
  3071. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3072. Close DiskAdaptor after renaming file.
  3073. * src/RequestGroup.cc
  3074. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3075. Corrected indentation
  3076. * src/DefaultBtProgressInfoFile.cc
  3077. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3078. Moved the calls of std::ios::exceptions() inside of try-catch block
  3079. because if an error occurred in constructor of std::fstream, then
  3080. exception is thrown immediately when std::ios::exceptions() is called
  3081. which results unhandled exception and aria2c aborts.
  3082. * src/DefaultBtProgressInfoFile.cc
  3083. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3084. Added the test for the previous change in DefaultBtContext.cc
  3085. * test/DefaultBtContextTest.cc
  3086. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3087. Fixed the bug that causes infinite loop when the number of pieces are
  3088. fewer than allowed fast set size which is 10 by default.
  3089. * src/DefaultBtContext.cc
  3090. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3091. Updated the descriptions for -j, -s. Added --bt-seed.
  3092. * doc/aria2c.1
  3093. * doc/aria2c.1.html
  3094. * doc/aria2c.1.txt
  3095. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3096. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3097. aria2 seeds previously downloaded files without validating piece hashs.
  3098. * src/HelpItemFactory.cc
  3099. * src/OptionHandlerFactory.cc
  3100. * src/RequestGroup.cc
  3101. * src/option_processing.cc
  3102. * src/prefs.cc
  3103. * src/prefs.h
  3104. * src/usage_text.h
  3105. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3106. Updated DESCRIPTION of man page.
  3107. * doc/aria2c.1
  3108. * doc/aria2c.1.html
  3109. * doc/aria2c.1.txt
  3110. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3111. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3112. Don't define `struct addrinfo' when __sun is defined.
  3113. * src/getaddrinfo.h
  3114. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3115. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3116. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3117. second argument is of type `struct _stati64'. Otherwise it is defined as
  3118. `struct stat'.
  3119. * src/AbstractDiskWriter.cc
  3120. * src/File.cc
  3121. * src/File.h
  3122. * src/a2io.h
  3123. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3124. Fixed the compile error in hurd-i386
  3125. See the original bug report:
  3126. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3127. * src/a2io.h
  3128. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3129. Code cleanup.
  3130. * src/PeerAbstractCommand.cc
  3131. * src/PeerAbstractCommand.h
  3132. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3133. Removed TransferEncoding.
  3134. * src/DownloadCommand.cc
  3135. * src/DownloadCommand.h
  3136. * src/HttpResponseCommand.cc
  3137. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3138. Updated po files.
  3139. * po/aria2c.pot
  3140. * po/*.po
  3141. * po/*.gmo
  3142. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3143. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3144. * src/A2STR.cc
  3145. * src/A2STR.h
  3146. * src/ChunkedDecoder.cc
  3147. * src/ChunkedDecoder.h
  3148. * src/ChunkedEncoding.cc: Removed
  3149. * src/ChunkedEncoding.h: Removed
  3150. * src/DownloadCommand.cc
  3151. * src/DownloadCommand.h
  3152. * src/HttpDownloadCommand.cc
  3153. * src/HttpResponse.cc
  3154. * src/HttpResponse.h
  3155. * src/HttpResponseCommand.cc
  3156. * src/HttpSkipResponseCommand.cc
  3157. * src/HttpSkipResponseCommand.h
  3158. * src/Makefile.am
  3159. * src/TransferEncoding.h: Removed
  3160. * test/ChunkedDecoderTest.cc
  3161. * test/ChunkedEncodingTest.cc: Removed
  3162. * test/HttpResponseTest.cc
  3163. * test/Makefile.am
  3164. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3165. Use append instead of insert.
  3166. * src/GZipDecoder.cc
  3167. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3168. Updated doc
  3169. * src/Decoder.h
  3170. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3171. Updated usage text for -s option.
  3172. * src/usage_text.h
  3173. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3174. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3175. * src/Request.cc
  3176. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3177. Cleaned up configure.ac.
  3178. * configure.ac
  3179. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3180. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3181. AC_ARG_ENABLE.
  3182. * configure.ac
  3183. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3184. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3185. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3186. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  3187. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  3188. fly and writes decoded data to a local disk.
  3189. * README
  3190. * README.html
  3191. * configure.ac
  3192. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  3193. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  3194. * m4/libz.m4
  3195. * src/Decoder.h
  3196. * src/DownloadCommand.cc
  3197. * src/DownloadCommand.h
  3198. * src/Exception.h
  3199. * src/GZipDecoder.cc
  3200. * src/GZipDecoder.h
  3201. * src/HttpHeader.cc
  3202. * src/HttpHeader.h
  3203. * src/HttpRequest.cc
  3204. * src/HttpRequest.h
  3205. * src/HttpResponse.cc
  3206. * src/HttpResponse.h
  3207. * src/HttpResponseCommand.cc
  3208. * src/Makefile.am
  3209. * test/GZipDecoderTest.cc
  3210. * test/HttpRequestTest.cc
  3211. * test/HttpResponseTest.cc
  3212. * test/Makefile.am
  3213. * test/Makefile.in
  3214. * test/gzip_decode_test.gz
  3215. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3216. Clarified usage of -j option.
  3217. * src/usage_text.h
  3218. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3219. Disabled getting size from the response of RETR.
  3220. If SIZE command failed, then disable resuming and segmented downloading.
  3221. * src/FtpConnection.cc
  3222. * src/FtpConnection.h
  3223. * src/FtpNegotiationCommand.cc
  3224. * src/FtpNegotiationCommand.h
  3225. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3226. Use digits to find first byte of file size, which makes the intention
  3227. of the code clearer.
  3228. * src/FtpConnection.cc
  3229. Don't call validateTotalLength() when size is 0.
  3230. * src/FtpNegotiationCommand.cc
  3231. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3232. Updated po files.
  3233. * po/aria2c.pot
  3234. * po/*.gmo
  3235. * po/*.po
  3236. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3237. Clarified usage text for --split option.
  3238. * src/usage_text.h
  3239. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3240. Bump up version number to 0.15.0dev. "dev" means "development"
  3241. version, which means I started the development of the next release!
  3242. * src/configure.ac
  3243. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3244. If FTP server returns negative response with REST raw command and
  3245. requested range is not 0, throw exception. If requested range is 0,
  3246. continue download a file from 0 byte.
  3247. * src/FtpNegotiationCommand.cc
  3248. * src/FtpNegotiationCommand.h
  3249. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3250. Supported FTP server which don't recognize SIZE raw command.
  3251. If SIZE raw command is failed, aria2 will try to get file size
  3252. from the response of RETR raw command. If both attempts are failed,
  3253. then resuming and segmented downloading are disabled.
  3254. * src/FtpConnection.cc
  3255. * src/FtpConnection.h
  3256. * src/FtpNegotiationCommand.cc
  3257. * src/FtpNegotiationCommand.h
  3258. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3259. * Release 0.14.0+1
  3260. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3261. Bump up version number to 0.14.0+1
  3262. * src/configure.ac
  3263. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3264. Fixed the code that refers static member variable from non-static
  3265. context.
  3266. * src/DefaultPeerStorage.cc
  3267. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3268. * Release 0.14.0
  3269. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3270. Added build test script
  3271. * build_test.sh
  3272. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3273. Updated ja.po
  3274. * src/ja.po
  3275. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3276. Bump up version number to 0.14.0
  3277. * src/configure.ac
  3278. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3279. Updated ja.po and fr.po. Great thanks for french translators and
  3280. Sebastien WILLEMIJNS.
  3281. * po/fr.po
  3282. * po/ja.po
  3283. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3284. Added configure option to enable/disable epoll support.
  3285. * configure.ac
  3286. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3287. Updated man page.
  3288. * doc/aria2c.1.txt
  3289. * doc/aria2c.1
  3290. * doc/aria2c.1.html
  3291. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3292. Added missing default value '5' to the usage of --split option.
  3293. * src/HelpItemFactory.cc
  3294. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3295. Filled up pieces based on the number of missing blocks, rather than
  3296. simplay the number of piece * block length.
  3297. * src/BtRequestFactory.h
  3298. * src/DefaultBtInteractive.cc
  3299. * src/DefaultBtInteractive.h
  3300. * src/DefaultBtRequestFactory.cc
  3301. * src/DefaultBtRequestFactory.h
  3302. * src/Piece.cc
  3303. * src/Piece.h
  3304. * test/BitfieldManTest.cc
  3305. * test/DefaultBtRequestFactoryTest.cc
  3306. * test/MockBtRequestFactory.h
  3307. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3308. Made _epEvents a member variable.
  3309. * src/DownloadEngine.cc
  3310. * src/DownloadEngine.h
  3311. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3312. Cancel download if http redirect is bounded more than 20 times.
  3313. * src/AbstractCommand.cc
  3314. * src/HttpSkipResponseCommand.cc
  3315. * src/Request.cc
  3316. * src/Request.h
  3317. * test/RequestTest.cc
  3318. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3319. Fixed unhandled exception(removed keyword `new').
  3320. * src/SocketCore.cc (initEPOLL)
  3321. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3322. Removed visit(const MetaEntry*)
  3323. * src/MetaEntryVisitor.h:
  3324. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3325. and made them virtual.
  3326. * src/BencodeVisitor.h
  3327. * src/BencodeVisitor.cc
  3328. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3329. Updated po files.
  3330. * po/aria2c.pot
  3331. * po/*.po
  3332. * po/*.gmo
  3333. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3334. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3335. the number of socket to watch out.
  3336. * src/PeerInteractionCommand.cc
  3337. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3338. When there is not enough space in disk when writing a chunk of data,
  3339. aria2 now prints the message to the console to warn user and aborts
  3340. its download. Not all downloads are canceled because some downloads
  3341. may use another disk or partition. BUG#1640332
  3342. * src/AbstractDiskWriter.cc
  3343. * src/PeerAbstractCommand.cc
  3344. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3345. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3346. setHaltRequested(true) to cancel download.
  3347. * src/PeerInteractionCommand.h
  3348. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3349. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3350. socket from int to sock_t as sockets are unsigned in Windows.
  3351. For AsyncNameResolver, DownloadEngine, I did additional modification
  3352. for the portion of the code changed according to epoll support.
  3353. I defined sock_t in a2netcompat.h to use sock_t without including
  3354. SocketCore.h.
  3355. * src/AsyncNameResolver.cc
  3356. * src/AsyncNameResolver.h
  3357. * src/DownloadEngine.cc
  3358. * src/DownloadEngine.h
  3359. * src/SocketCore.cc
  3360. * src/SocketCore.h
  3361. * src/a2netcompat.h
  3362. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3363. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3364. changes in the patch were applied.
  3365. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3366. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3367. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3368. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3369. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3370. a2io.h and common.h were modified.
  3371. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3372. MinGW.
  3373. * src/common.h: Changed off_t to 64 bit in MinGW.
  3374. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3375. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3376. only a2netcompat.h is modified.
  3377. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3378. directives.
  3379. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3380. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3381. only gai_strerror.h is modified.
  3382. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3383. winsock errors in MinGW.
  3384. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3385. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3386. follow sources are applied.
  3387. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3388. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3389. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3390. I included locale.h from Platform.cc.
  3391. * src/main.cc: Moved common setup/teardown code to Platform class.
  3392. * test/AllTest.cc: Use Platform class.
  3393. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3394. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3395. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3396. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3397. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3398. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3399. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3400. aria2-0.13.2+1-mingw-2.patch.
  3401. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3402. systems which don't have termious.h. I moved the directive inside of
  3403. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3404. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3405. anyway.
  3406. * src/asctime_r.h
  3407. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3408. I added 2nd argument to the prototype declaration.
  3409. * src/StringFormat.cc: Get rid of vasprintf.
  3410. * src/getaddrinfo.h: Fixed constants.
  3411. * configure.ac: Added the check for asctime_r function.
  3412. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3413. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3414. Added writable test for Socket when the sending message is in progress.
  3415. Usually the sending message is piece message. Without wriable check,
  3416. upload latency is dropped to more than 1sec.
  3417. * src/PeerInteractionCommand.cc
  3418. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3419. Create only requested files and files which shares a piece with
  3420. requested file in multi-torrent downloads. Directory structures are
  3421. also created in the same rule.
  3422. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  3423. DiskWriterEntry as in the previous implementation.
  3424. * src/MultiDiskWriter.cc
  3425. * src/MultiFileAllocationIterator.cc
  3426. * src/MultiFileAllocationIterator.h
  3427. * test/MultiFileAllocationIteratorTest.cc
  3428. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3429. Commented out -lprofiler
  3430. * src/Makefile.am
  3431. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3432. Bump up version number to 0.14.0b.
  3433. * src/configure.ac
  3434. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3435. Actively establish connection to peers in seeding, when peer cache
  3436. is not full and max upload speed limit is not reached.
  3437. * src/ActivePeerConnectionCommand.cc
  3438. * src/ActivePeerConnectionCommand.h
  3439. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3440. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  3441. to make room more fleshy, recently found peers.
  3442. Peer::_badConditionStartTime is not used anymore. Consider to remove
  3443. it.
  3444. * src/DefaultPeerStorage.cc
  3445. * test/DefaultPeerStorageTest.cc
  3446. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3447. Returns cached data only when the previous receiveHandshake() is called
  3448. with peek = true.
  3449. * src/PeerConnection.cc (receiveHandshake)
  3450. * src/PeerConnection.h (receiveHandshake)
  3451. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3452. Changed default value of -s option from 1 to 5.
  3453. Also max value of -s option is changed from 5 to 16.
  3454. * src/HelpItemFactory.cc
  3455. * src/OptionHandlerFactory.cc
  3456. * src/option_processing.cc
  3457. * src/usage_text.h
  3458. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3459. Changed -s options behavior. Now it means the number of connections
  3460. made simultaneously in each http/ftp download.
  3461. If 1 URL is specified, the behavior is the same with old implementation.
  3462. If -s N is given and more than N URLs are specified, first N URLs are
  3463. used and remaining URLs are used for backup. If less than N URLs are
  3464. specified, some of URLs are used more than once so that totally N
  3465. connections are made simultaneously.
  3466. * src/main.cc
  3467. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3468. Included missing iosfwd or ostream header.
  3469. * src/RequestGroupMan.cc
  3470. * src/TaggedItem.cc
  3471. * src/TaggedItem.h
  3472. * src/Util.cc
  3473. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3474. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  3475. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  3476. * src/HttpConnection.cc: Included missing sstream.
  3477. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3478. Added --bt-max-open-files option.
  3479. * src/DefaultPieceStorage.cc
  3480. * src/HelpItemFactory.cc
  3481. * src/MultiDiskAdaptor.cc
  3482. * src/MultiDiskAdaptor.h
  3483. * src/OptionHandlerFactory.cc
  3484. * src/option_processing.cc
  3485. * src/prefs.cc
  3486. * src/prefs.h
  3487. * src/usage_text.h
  3488. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3489. Fixed the bug that aria2 aborts when a path to a directory is given
  3490. in command-line.
  3491. * src/ProtocolDetector.cc
  3492. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3493. Limited the number files opened in each BitTorrent download. The default
  3494. value is 100. The option to change this value will be added.
  3495. * src/MultiDiskAdaptor.cc
  3496. * src/MultiDiskAdaptor.h
  3497. * src/MultiFileAllocationIterator.cc
  3498. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3499. Fixed the bug that HTTP downloads don't start with old libraries.
  3500. * src/HttpHeaderProcessor.cc
  3501. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3502. Use empty() instead of size() > 0.
  3503. * src/HttpConnection.cc
  3504. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3505. Drop connection if the incoming peer ID is the same with localhost's
  3506. one. The previous implementation drops connection when incoming peer's
  3507. IP address is the same with localhost's one.
  3508. * src/PeerListenCommand.cc
  3509. * src/DefaultBtInteractive.cc
  3510. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3511. Returns cached data without checking whether socket is readable
  3512. if the cache is available.
  3513. * src/PeerConnection.cc (receiveHandshake)
  3514. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3515. Included stdint.h
  3516. * src/common.h
  3517. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3518. Removed duplicate HAVE_GETTIMEOFDAY
  3519. * src/Makefile.am
  3520. * src/Makefile.in
  3521. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3522. Use interval as a minInterval when minInterval is not supplied.
  3523. * src/DefaultBtAnnounce.cc
  3524. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3525. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  3526. attempt is failed, then 2nd attempt get kicked out more quickly.
  3527. And it is now static const member of DefaultBtAnnounce.
  3528. * src/DefaultBtAnnounce.h
  3529. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3530. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  3531. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  3532. * src/ActivePeerConnectionCommand.cc
  3533. * src/BtConstants.h
  3534. * src/BtRuntime.h
  3535. * src/DHTGetPeersCommand.cc
  3536. * src/DefaultBtAnnounce.cc
  3537. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  3538. BtRuntime::MAX_PEERS.
  3539. * src/DefaultPeerStorage.h
  3540. * src/InitiatorMSEHandshakeCommand.cc
  3541. * src/PeerInitiateConnectionCommand.cc
  3542. * src/PeerInteractionCommand.cc
  3543. * src/PeerReceiveHandshakeCommand.cc
  3544. * src/TrackerWatcherCommand.cc
  3545. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3546. Always Connect to _numNewConnection
  3547. * src/ActivePeerConnectionCommand.cc
  3548. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3549. Made `begin' unsigned int.
  3550. * src/GrowSegment.h
  3551. * src/Piece.cc
  3552. * src/Piece.h
  3553. * src/PiecedSegment.cc
  3554. * src/PiecedSegment.h
  3555. * src/Segment.h
  3556. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3557. Calculate piece hash when data is arrived if the data is arrived in
  3558. order. This removes additional read operation for hash calculation.
  3559. If the data is arrived in out of order, the hash is calucated when the
  3560. piece is completed. This is the same behavior as the old implementation.
  3561. * src/BtPieceMessage.cc
  3562. * src/DefaultBtProgressInfoFile.cc
  3563. * src/DefaultPieceStorage.cc
  3564. * src/DownloadCommand.cc
  3565. * src/DownloadCommand.h
  3566. * src/DownloadEngine.cc
  3567. * src/GrowSegment.cc
  3568. * src/GrowSegment.h
  3569. * src/Piece.cc
  3570. * src/Piece.h
  3571. * src/PiecedSegment.cc
  3572. * src/PiecedSegment.h
  3573. * src/Segment.h
  3574. * test/PieceTest.cc
  3575. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3576. Try to keep the ordering of outgoing piece message.
  3577. * src/DefaultBtMessageDispatcher.cc
  3578. (DefaultBtMessageDispatcher::sendMessages)
  3579. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3580. Fixed busy loop when error/hup epoll events occur.
  3581. * src/AbstractCommand.cc
  3582. * src/PeerAbstractCommand.cc
  3583. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3584. Added --bt-request-peer-speed-limit option, which was a constant
  3585. SLOW_SPEED_THRESHOLD.
  3586. * src/ActivePeerConnectionCommand.cc
  3587. * src/ActivePeerConnectionCommand.h
  3588. * src/BtConstants.h
  3589. * src/HelpItemFactory.cc
  3590. * src/OptionHandlerFactory.cc
  3591. * src/PeerReceiveHandshakeCommand.cc
  3592. * src/option_processing.cc
  3593. * src/prefs.cc
  3594. * src/prefs.h
  3595. * src/usage_text.h
  3596. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3597. Removed repeated call of getTopDirPath(). Instead, call it once and
  3598. cache the result.
  3599. * src/MultiDiskAdaptor.cc
  3600. * src/MultiDiskAdaptor.h
  3601. (mkdir, openFile, initAndOpenFile, openExistingFile)
  3602. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3603. Fixed compile error on debian etch.
  3604. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  3605. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  3606. it is undefined.
  3607. * src/Util.cc (ULLONG_MAX)
  3608. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3609. Added epoll support. Use epoll if it is available. If not, use select.
  3610. When async dns is enabled in compile time, epoll support is enabled
  3611. only when aria2 is built with c-ares. This condition statement is
  3612. defined in a2io.h.
  3613. Currently aria2 supports both c-ares and ares, but ares is maintained
  3614. for quite a while and debian already has c-ares package, ares support
  3615. will be dropped in the future version.
  3616. * configure.ac
  3617. * src/AbstractCommand.cc
  3618. * src/AsyncNameResolver.cc
  3619. * src/AsyncNameResolver.h
  3620. * src/Command.cc
  3621. * src/Command.h
  3622. * src/DownloadEngine.cc
  3623. * src/DownloadEngine.h
  3624. * src/PeerAbstractCommand.cc
  3625. * src/SocketCore.cc
  3626. * src/SocketCore.h
  3627. * src/a2io.h
  3628. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3629. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  3630. directive.
  3631. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3632. Do not do write operation to /dev/null file.
  3633. * src/LogFactory.cc
  3634. * src/SimpleLogger.cc
  3635. Replaced vasprintf with vsnprintf
  3636. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3637. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3638. * src/BtRequestMessage.cc
  3639. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  3640. for segmentation fault caused by previous commit.
  3641. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3642. Reduced the usage of gettimeofday().
  3643. * src/DefaultBtMessageDispatcher.cc
  3644. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  3645. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3646. * src/RequestSlot.cc
  3647. * src/RequestSlot.h
  3648. (RequestSlot::isTimeout)
  3649. Made RequestSlot have a reference to Piece object to avoid find
  3650. Piece repeatedly.
  3651. * src/DefaultBtMessageDispatcher.cc
  3652. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3653. * src/RequestSlot.cc
  3654. * src/RequestSlot.h
  3655. (RequestSlot::getPiece)
  3656. * test/DefaultBtMessageDispatcherTest.cc
  3657. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3658. * src/TimeA2.cc
  3659. * src/TimeA2.h
  3660. (Time::difference): New function.
  3661. (Time::elapsed): Done optimization.
  3662. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3663. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  3664. directive.
  3665. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3666. * src/option_processing.cc: Added missing `defined' keyword to #if
  3667. directive.
  3668. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3669. Bump up version number to 0.13.2+1
  3670. * src/configure.ac
  3671. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3672. Refactored broken outstanding piece handling.
  3673. * src/DefaultPieceStorage.cc
  3674. * src/DefaultPieceStorage.h
  3675. * src/Piece.cc
  3676. * src/Piece.h
  3677. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3678. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  3679. name collision of static variable and predefined macro.
  3680. * src/BtContext.cc
  3681. * src/BtContext.h
  3682. * src/CookieBoxFactory.cc
  3683. * src/CookieBoxFactory.h
  3684. * src/CookieParser.cc
  3685. * src/CookieParser.h
  3686. * src/DefaultBtContext.cc
  3687. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3688. * src/RequestGroup.cc
  3689. (RequestGroup::createInitialCommand): Use empty() instead of size().
  3690. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3691. * Release 0.13.2
  3692. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3693. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  3694. * po/fr.po
  3695. * po/ja.po
  3696. * po/aria2c.pot
  3697. * po/*.po
  3698. * po/*.gmo
  3699. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3700. Bump up version number to 0.13.2
  3701. * src/configure.ac
  3702. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3703. Refactord.
  3704. * src/RequestGroupMan.cc
  3705. (removeStoppedGroup)
  3706. (fillRequestGroupFromReserver)
  3707. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3708. Fixed compile error on Ubuntu.
  3709. * src/BtPieceMessage.cc
  3710. * src/MessageDigestHelper.cc
  3711. * src/Util.cc
  3712. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3713. Fixed compile error when configured with --disable-bittorrent
  3714. * test/DownloadHandlerFactoryTest.cc
  3715. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3716. Done make update-po
  3717. * po/aria2c.pot
  3718. * po/*.po
  3719. * po/*.gmo
  3720. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3721. Bump up version number to 0.13.2rc.
  3722. * src/configure.ac
  3723. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3724. Made option name bold. Updated SYNOPSIS to make it more readable.
  3725. * doc/aria2c.1.txt
  3726. * doc/aria2c.1
  3727. * doc/aria2c.1.html
  3728. * src/version_usage.cc
  3729. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3730. Refactored. Use std::string instead of size and char*.
  3731. * Data.cc
  3732. * Data.h
  3733. * test/Data.cc
  3734. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3735. Added trimSelf(). Rewritten trim() to use trimSelf().
  3736. * Util.cc
  3737. * Util.h
  3738. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3739. * src/ChunkChecksum.h (getChecksum): Return const reference.
  3740. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3741. Fixed compile error when configured with --disable-metalink.
  3742. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  3743. * test/FeatureConfigTest.cc
  3744. * test/DownloadHandlerFactoryTest.cc
  3745. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3746. Fixed compile error when configured with --without-gnutls
  3747. --without-openssl
  3748. * src/main.cc
  3749. * test/DefaultBtProgressInfoFileTest.cc
  3750. * test/SegmentManTest.cc
  3751. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3752. Fixed compile error with OpenSSL.
  3753. * src/IteratableChunkChecksumValidator.cc
  3754. * src/LibsslDHKeyExchange.h
  3755. * src/MessageDigestHelper.cc
  3756. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3757. Revert the default value of --max-concurrent-downloads to 5.
  3758. Revert the default value of --metalink-servers to 5.
  3759. Man pages was also updated.
  3760. * src/option_processing.cc
  3761. * doc/aria2c.1.txt
  3762. * doc/aria2c.1.html
  3763. * doc/aria2c.1
  3764. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3765. Returns const reference:
  3766. DownloadContext::getPieceHash, DownloadContext::getName,
  3767. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  3768. BtContext::getInfoHashAsString,
  3769. * src/BtContext.h
  3770. * src/DefaultBtContext.cc
  3771. * src/DefaultBtContext.h
  3772. * src/DownloadContext.h
  3773. * src/SingleFileDownloadContext.h
  3774. * test/MockBtContext.h
  3775. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3776. * src/RequestGroup.h (getDir): Removed.
  3777. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3778. Returns const reference. The internal urlencode function was optimized
  3779. a little bit.
  3780. * src/Request.cc
  3781. * src/Request.h
  3782. * src/HttpRequest.cc
  3783. * src/HttpRequest.h
  3784. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3785. Defined option name and possible values as std::string to reduce
  3786. temporary string object creation in runtime.
  3787. * src/HelpItemFactory.cc
  3788. * src/LogFactory.cc
  3789. * src/Option.cc
  3790. * src/OptionHandlerFactory.cc
  3791. * src/option_processing.cc
  3792. * src/prefs.cc
  3793. * src/prefs.h
  3794. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3795. Return const reference.
  3796. * src/DownloadHandlerConstants.cc
  3797. * src/DownloadHandlerConstants.h
  3798. (getMetalinkExtensions)
  3799. (getMetalinkContentTypes)
  3800. (getBtExtensions)
  3801. (getBtContentTypes)
  3802. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3803. * src/HttpHeader.cc (get): Rewritten.
  3804. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. Make HttpHeader::getFirst(...) return const reference.
  3806. * src/HttpHeader.cc
  3807. * src/HttpHeader.h
  3808. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3809. Use Option::getAsBool(...) instead of Option::get(...) and compare
  3810. it with V_TRUE.
  3811. * src/DefaultPieceStorage.cc
  3812. * src/DownloadCommand.cc
  3813. * src/FtpNegotiationCommand.cc
  3814. * src/HttpRequest.cc
  3815. * src/InitiateConnectionCommand.cc
  3816. * src/RequestGroup.cc
  3817. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3818. Made Option::get(...) return const reference of std::string.
  3819. * src/Option.cc
  3820. * src/Option.h
  3821. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3822. Replaced std:copy with insert.
  3823. * src/DefaultBtMessageDispatcher.cc
  3824. * src/DefaultPieceStorage.cc
  3825. * src/DownloadEngineFactory.cc
  3826. * src/RequestGroup.cc
  3827. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3828. Included SocketCore.h to fix compiler warning.
  3829. * src/InitiateConnectionCommand.cc
  3830. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3831. Put piece selection strategy algorithm to RarestPieceSelector class,
  3832. Added a switch to choose whether randomized selection so that unit
  3833. tests emit same results in, possibly, win32.
  3834. * src/DefaultPieceStorage.cc
  3835. * src/DefaultPieceStorage.h
  3836. * src/RarestPieceSelector.cc
  3837. * src/RarestPieceSelector.h
  3838. * test/DefaultPieceStorageTest.cc
  3839. * test/RarestPieceSelectorTest.cc
  3840. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3841. Don't pool connection if HTTP proxy is enabled.
  3842. * src/FtpFinishDownloadCommand.cc
  3843. * src/FtpNegotiationCommand.cc
  3844. * src/HttpSkipResponseCommand.cc
  3845. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3846. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  3847. * src/AbstractCommand.cc
  3848. * src/AbstractCommand.h
  3849. * src/ActivePeerConnectionCommand.cc
  3850. * src/FtpInitiateConnectionCommand.cc
  3851. * src/HttpInitiateConnectionCommand.cc
  3852. * src/InitiateConnectionCommandFactory.cc
  3853. * src/PeerAbstractCommand.cc
  3854. * src/PeerAbstractCommand.h
  3855. * src/PeerInitiateConnectionCommand.cc
  3856. * src/TrackerWatcherCommand.cc
  3857. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3858. Sort RequestSlot in ascending order and manipulate them using
  3859. lower_bound.
  3860. * src/DefaultBtMessageDispatcher.cc
  3861. * src/DefaultBtMessageDispatcher.h
  3862. (getMessageQueue): Added const qualifier.
  3863. (getRequestSlots): Added const qualifier.
  3864. (sendMessages): Use empty() instead of size().
  3865. (doCancelSendingPieceAction): Use HandleEvent object.
  3866. (doAbortOutstandingRequestAction): Rewritten.
  3867. (doChokedAction): Rewritten.
  3868. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  3869. (isOutstandingRequest): Rewritten.
  3870. (getOutstandingRequest): Rewritten.
  3871. (removeOutstandingRequest): Rewritten.
  3872. (addOutstandingRequest): Rewritten.
  3873. * src/RequestSlot.cc
  3874. * src/RequestSlot.h
  3875. (operator=): Rewritten.
  3876. (operator!=): New function.
  3877. (operator<): New function.
  3878. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3879. * src/DefaultBtRequestFactory.cc
  3880. (doChokedAction): Rewritten.
  3881. (removeCompletedPiece): Rewritten.
  3882. (removeTargetPiece): Rewritten.
  3883. (createRequestMessages): Added the debug log.
  3884. (createRequestMessagesOnEndGame: Added the debug log.
  3885. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3886. Added the debug log message.
  3887. * src/BtPieceMessage.cc (doReceivedAction)
  3888. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3889. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  3890. used lower_bound to process them rather than linear search.
  3891. * src/DHTPeerAnnounceStorage.cc
  3892. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3893. Call subtractPieceStats from ~PeerInteractionCommand only when the
  3894. peer has at least one completed piece.
  3895. * src/Peer.cc
  3896. * src/Peer.h
  3897. * src/PeerInteractionCommand.cc
  3898. * src/PeerSessionResource.cc
  3899. * src/PeerSessionResource.h
  3900. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3901. Removed unnecessary sorting
  3902. * src/DefaultPieceStorage (DefaultPieceStorage)
  3903. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3904. Rewritten the portion of the code that mangaes allowed fast indexes.
  3905. * src/PeerSessionResource.cc
  3906. * src/PeerSessionResource.h
  3907. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3908. Removed the invalid string including '\r' from ru.po and
  3909. did make update-po.
  3910. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3911. Added --log-level and --summary-interval to man page.
  3912. * doc/aria2c.1.txt
  3913. * doc/aria2c.1.html
  3914. * doc/aria2c.1
  3915. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3916. Added --log-level option to specify log level. Log messages under
  3917. the specified level are not output. Default value is `debug'.
  3918. * src/HelpItemFactory.cc
  3919. * src/LogFactory.cc
  3920. * src/LogFactory.h
  3921. * src/Logger.h
  3922. * src/OptionHandlerFactory.cc
  3923. * src/SimpleLogger.cc
  3924. * src/SimpleLogger.h
  3925. * src/main.cc
  3926. * src/option_processing.cc
  3927. * src/prefs.h
  3928. * src/usage_text.h
  3929. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3930. Print download progress summary of all parallel downloads in specified
  3931. interval, default 60 secs. While aria2 could download several files
  3932. in parallel (see -j option), it displayed just first download progress,
  3933. and the other downloads are hidden from the users. This new feature
  3934. prints all downloads currently in-progress to the console so that you
  3935. can check the status of all downloads. The interval can be adjusted
  3936. by --summary-interval option.
  3937. The progress readout is now cut so that all fits in the one line of
  3938. console.
  3939. * src/ConsoleStatCalc.cc
  3940. * src/ConsoleStatCalc.h
  3941. * src/HelpItemFactory.cc
  3942. * src/OptionHandlerFactory.cc
  3943. * src/RequestGroupMan.cc
  3944. * src/RequestGroupMan.h
  3945. * src/main.cc
  3946. * src/option_processing.cc
  3947. * src/prefs.h
  3948. * src/usage_text.h
  3949. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3950. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  3951. * src/DownloadEngine.cc (DownloadEngine)
  3952. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3953. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  3954. defined.
  3955. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  3956. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3957. Use erase+lower_bound+insert instead of sort.
  3958. * src/DefaultPieceStorage.cc (addPieceStats)
  3959. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3960. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  3961. * src/A2STR.cc
  3962. * src/A2STR.h
  3963. * src/OptionParser.cc (parse)
  3964. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3965. Defined fake filename `[tracker.announce]' as static const std::string.
  3966. * src/TrackerWatcherCommand.cc (createRequestGroup)
  3967. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3968. Defined default filename `index.html' as static const std::string
  3969. * src/SingleFileDownloadContext.cc
  3970. * src/SingleFileDownloadContext.h
  3971. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3972. Defined "[MEMORY]" as static const std::string.
  3973. * src/MemoryBufferPreDownloadHandler.cc (execute)
  3974. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3975. Defined control file's version number as static const std::string.
  3976. * src/DefaultBtProgressInfoFile.cc
  3977. * src/DefaultBtProgressInfoFile.h
  3978. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3979. Use Request::METHOD_GET
  3980. * src/RequestGroup.cc (createNextCommandWithAdj)
  3981. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3982. Defined "OK", "ERR", "INPR" as static const std::string
  3983. * src/RequestGroupMan.cc (showDownloadResults)
  3984. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3985. Defined default client used in extended handshake as static const
  3986. std::string
  3987. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  3988. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3989. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  3990. * src/HttpConnection.cc (eraseConfidentialInfo)
  3991. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3992. Defined default ftp user and password as static const std::string
  3993. * src/AuthConfigFactory.cc
  3994. * src/AuthConfigFactory.h
  3995. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3996. Defined strings used in netrc as static const std::string
  3997. * src/Netrc.cc
  3998. * src/Netrc.h
  3999. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4000. Defined HTTP status as static const std::string
  4001. * src/AbstractProxyResponseCommand.cc
  4002. * src/HttpHeader.cc
  4003. * src/HttpHeader.h
  4004. * src/HttpResponse.cc
  4005. * src/HttpResponseCommand.cc
  4006. * src/HttpSkipResponseCommand.cc
  4007. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4008. Defined "\r\n", "A", "I" as static const std::string
  4009. * src/A2STR.cc
  4010. * src/A2STR.h
  4011. * src/FtpConnection.cc
  4012. * src/FtpConnection.h
  4013. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4014. Added COLON_C(".") and used it in Request::parseUrl()
  4015. * src/A2STR.cc
  4016. * src/A2STR.h
  4017. * src/Request.cc (parseUrl)
  4018. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4019. Changed the type of padName from `const std::string&' to `const char*'.
  4020. * src/MSEHandshake.cc (verifyPadLength)
  4021. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4022. Defined "sha1" as static const std::string.
  4023. * src/MetalinkParserController.cc
  4024. * src/MetalinkParserController.h
  4025. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Defined message digest algorithm name as static const std::string
  4027. * src/DHTTokenTracker.cc
  4028. * src/DHTUtil.cc
  4029. * src/DefaultBtContext.cc
  4030. * src/MSEHandshake.cc
  4031. * src/MessageDigestHelper.cc
  4032. * src/Peer.cc
  4033. * src/messageDigest.cc
  4034. * src/messageDigest.h
  4035. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4036. Made string literals used in SAX parser static const std::string.
  4037. * src/FileMetalinkParserState.cc
  4038. * src/FileMetalinkParserState.h
  4039. * src/FilesMetalinkParserState.cc
  4040. * src/FilesMetalinkParserState.h
  4041. * src/InitialMetalinkParserState.cc
  4042. * src/InitialMetalinkParserState.h
  4043. * src/MetalinkMetalinkParserState.cc
  4044. * src/MetalinkMetalinkParserState.h
  4045. * src/PiecesMetalinkParserState.cc
  4046. * src/PiecesMetalinkParserState.h
  4047. * src/ResourcesMetalinkParserState.cc
  4048. * src/ResourcesMetalinkParserState.h
  4049. * src/VerificationMetalinkParserState.cc
  4050. * src/VerificationMetalinkParserState.h
  4051. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4052. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4053. * src/A2STR.cc
  4054. * src/A2STR.h
  4055. * src/File.cc
  4056. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4057. Defined static const std::string IP("ip"), PORT("port") and use them
  4058. instead of string literals.
  4059. * src/DefaultPeerListProcessor.cc
  4060. * src/DefaultPeerListProcessor.h
  4061. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4062. Made string literals for torrent file processing static const
  4063. std::string.
  4064. * src/BtContext.cc
  4065. * src/BtContext.h
  4066. * src/DefaultBtContext.cc
  4067. * src/DefaultBtContext.h
  4068. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4069. Made string literal for tracker response static const std::string
  4070. * src/BtAnnounce.cc
  4071. * src/BtAnnounce.h
  4072. * src/DefaultBtAnnounce.cc
  4073. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4074. Use DHTMessage::T instead of "t".
  4075. * src/DHTMessageTracker.cc (messageArrived)
  4076. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. Made keyName static const. Made trimmed charset static const
  4078. std::string.
  4079. * src/Util.cc (getContentDispositionFilename)
  4080. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4081. Made USER_AGENT const. Made "/" static const std::string.
  4082. * src/A2STR.cc
  4083. * src/A2STR.h
  4084. * src/HttpRequest.cc
  4085. * src/HttpRequest.h
  4086. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4087. Made string listeral to static const std::string:
  4088. "Content-Range", "Content-Length"
  4089. * src/HttpHeader.cc
  4090. * src/HttpHeader.h
  4091. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4092. Made string listeral to static const std::string.
  4093. * src/HttpConnection.cc
  4094. * src/HttpHeader.cc
  4095. * src/HttpHeader.h
  4096. * src/HttpResponse.cc
  4097. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4098. Made string listeral to static const std::string.
  4099. * src/A2STR.cc
  4100. * src/A2STR.h
  4101. * src/SimpleLogger.cc
  4102. * src/SimpleLogger.h
  4103. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4104. Made string literal to static const std::string.
  4105. Rewritten CookieParser::setField.
  4106. * src/A2STR.cc
  4107. * src/A2STR.h
  4108. * src/CookieBoxFactory.cc
  4109. * src/CookieBoxFactory.h
  4110. * src/CookieParser.cc
  4111. * src/CookieParser.h
  4112. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4113. Made string literal to static const std::string
  4114. * src/DHTAbstractMessage.cc
  4115. * src/DHTAnnouncePeerMessage.cc
  4116. * src/DHTAnnouncePeerMessage.h
  4117. * src/DHTAnnouncePeerReplyMessage.cc
  4118. * src/DHTAnnouncePeerReplyMessage.h
  4119. * src/DHTFindNodeMessage.cc
  4120. * src/DHTFindNodeMessage.h
  4121. * src/DHTFindNodeReplyMessage.cc
  4122. * src/DHTFindNodeReplyMessage.h
  4123. * src/DHTGetPeersMessage.cc
  4124. * src/DHTGetPeersMessage.h
  4125. * src/DHTGetPeersReplyMessage.cc
  4126. * src/DHTGetPeersReplyMessage.h
  4127. * src/DHTMessage.cc
  4128. * src/DHTMessage.h
  4129. * src/DHTMessageFactoryImpl.cc
  4130. * src/DHTMessageReceiver.cc
  4131. * src/DHTPingMessage.cc
  4132. * src/DHTPingMessage.h
  4133. * src/DHTPingReplyMessage.cc
  4134. * src/DHTPingReplyMessage.h
  4135. * src/DHTQueryMessage.cc
  4136. * src/DHTQueryMessage.h
  4137. * src/DHTResponseMessage.cc
  4138. * src/DHTResponseMessage.h
  4139. * src/DHTUnknownMessage.cc
  4140. * src/DHTUnknownMessage.h
  4141. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4142. Made string literal to static const std::string
  4143. * src/BtChokeMessage.cc (toString)
  4144. * src/BtHaveAllMessage.cc (toString)
  4145. * src/BtHaveNoneMessage.cc (toString)
  4146. * src/BtInterestedMessage.cc (toString)
  4147. * src/BtNotInterestedMessage.cc (toString)
  4148. * src/BtUnchokeMessage.cc (toString)
  4149. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4150. Replaced "" with static const variable A2STR::NIL.
  4151. Replaced string comparison against "" with std::string::empty().
  4152. Added PROTO_* to Request class and use them as a protocol string
  4153. constant.
  4154. Made "started", "stopped", "completed" static const variable in
  4155. AnnounceList class.
  4156. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4157. Updated translations. Great thanks to translators.
  4158. * po/ca.po
  4159. * po/de.po
  4160. * po/fr.po
  4161. * po/it.po
  4162. * po/ja.po
  4163. * po/ru.po
  4164. * po/zh_CN.po
  4165. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4166. Updated man page; categorized options and fixed typo.
  4167. * doc/aria2c.1.txt
  4168. * doc/aria2c.1.html
  4169. * doc/aria2c.1
  4170. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4171. Removed const ref
  4172. * src/MetalinkEntry.cc (AddProtocolPreference)
  4173. * src/RequestGroup.cc (FindServerHostByHostname)
  4174. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4175. Rewritten Accept-Features handling.
  4176. * src/HttpRequestCommand.cc (createHttpRequest)
  4177. * src/a2functional.h
  4178. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. Changed method signature:
  4180. DHTAbstractNodeLookupTask::toEntries
  4181. * src/DHTAbstractNodeLookupTask.cc
  4182. * src/DHTAbstractNodeLookupTask.h
  4183. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4184. Changed method signature:
  4185. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4186. * src/BtContext.h
  4187. * src/DefaultBtContext.cc
  4188. * src/DefaultBtContext.h
  4189. * src/DefaultBtInteractive.cc
  4190. * test/DefaultBtContextTest.cc
  4191. * test/MockBtContext.h
  4192. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4193. Changed method signature:
  4194. MultiFileAllocationIterator::makeDiskWriterEntries
  4195. * src/MultiFileAllocationIterator.cc
  4196. * src/MultiFileAllocationIterator.h
  4197. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. Changed method sinature:
  4199. MetalinkEntry::toFileEntry,
  4200. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  4201. Metalinker::queryEntry
  4202. * src/Metalink2RequestGroup.cc
  4203. * src/MetalinkEntry.cc
  4204. * src/MetalinkEntry.h
  4205. * src/MetalinkHelper.cc
  4206. * src/MetalinkHelper.h
  4207. * src/Metalinker.cc
  4208. * src/Metalinker.h
  4209. * src/main.cc
  4210. * test/MetalinkHelperTest.cc
  4211. * test/MetalinkerTest.cc
  4212. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4213. Changed method sinature:
  4214. RequestGroup::getURIs
  4215. * src/RequestGroup.cc
  4216. * src/RequestGroup.h
  4217. * test/Metalink2RequestGroupTest.cc
  4218. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4219. Changed method signature:
  4220. PeerListProcessor::extractPeer
  4221. * src/CompactPeerListProcessor.cc
  4222. * src/CompactPeerListProcessor.h
  4223. * src/DefaultBtAnnounce.cc
  4224. * src/DefaultPeerListProcessor.cc
  4225. * src/DefaultPeerListProcessor.h
  4226. * src/DelegatingPeerListProcessor.cc
  4227. * src/DelegatingPeerListProcessor.h
  4228. * src/PeerListProcessor.h
  4229. * src/UTPexExtensionMessage.cc
  4230. * test/DefaultPeerListProcessorTest.cc
  4231. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4232. Changed method signature:
  4233. BtRequestFactory::createRequestMessages,
  4234. BtRequestFactory::createRequestMessagesOnEndGame
  4235. * src/BtRequestFactory.h
  4236. * src/DefaultBtInteractive.cc
  4237. * src/DefaultBtRequestFactory.cc
  4238. * src/DefaultBtRequestFactory.h
  4239. * test/DefaultBtRequestFactoryTest.cc
  4240. * test/MockBtRequestFactory.h
  4241. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4242. Changed method signature:
  4243. PieceStorage::getInFlightPieces
  4244. * src/DefaultBtProgressInfoFile.cc
  4245. * src/DefaultPieceStorage.cc
  4246. * src/DefaultPieceStorage.h
  4247. * src/PieceStorage.h
  4248. * src/UnknownLengthPieceStorage.cc
  4249. * src/UnknownLengthPieceStorage.h
  4250. * test/DefaultBtProgressInfoFileTest.cc
  4251. * test/MockPieceStorage.h
  4252. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4253. Changed method signature:
  4254. PostDownloadHandler::getNextRequestGroups
  4255. Metalink2RequestGroup::generate
  4256. RequestGroup::postDownloadProcessing
  4257. * src/BtPostDownloadHandler.cc
  4258. * src/BtPostDownloadHandler.h
  4259. * src/Metalink2RequestGroup.cc
  4260. * src/Metalink2RequestGroup.h
  4261. * src/MetalinkPostDownloadHandler.cc
  4262. * src/MetalinkPostDownloadHandler.h
  4263. * src/PostDownloadHandler.h
  4264. * src/RequestGroup.cc
  4265. * src/RequestGroup.h
  4266. * src/RequestGroupMan.cc
  4267. * src/main.cc
  4268. * test/BtPostDownloadHandlerTest.cc
  4269. * test/Metalink2RequestGroupTest.cc
  4270. * test/MetalinkPostDownloadHandlerTest.cc
  4271. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4272. Rewritten AccRequestGroup
  4273. * src/main.cc
  4274. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4275. Rewritten.
  4276. * src/TaggedItem.cc (toTagString)
  4277. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4278. Rewritten Accept-Features handling.
  4279. * src/HttpRequestCommand.cc (createHttpRequest)
  4280. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4281. Rewritten accept types handling.
  4282. * HttpRequest.cc (createRequest)
  4283. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4284. Rewritten
  4285. * src/FeatureConfig.cc (featureSummary)
  4286. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4287. Changed method signature:
  4288. PeerStorage::getActivePeers
  4289. * src/DHTPeerAnnounceEntry.cc
  4290. * src/DefaultPeerStorage.cc
  4291. * src/DefaultPeerStorage.h
  4292. * src/PeerStorage.h
  4293. * test/DefaultPeerStorageTest.cc
  4294. * test/MockPeerStorage.h
  4295. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4296. Changed method signature:
  4297. DHTPeerAnnounceStorage::getPeers,
  4298. DHTPeerAnnounceEntry::getPeers
  4299. * src/DHTGetPeersMessage.cc
  4300. * src/DHTPeerAnnounceEntry.cc
  4301. * src/DHTPeerAnnounceEntry.h
  4302. * src/DHTPeerAnnounceStorage.cc
  4303. * src/DHTPeerAnnounceStorage.h
  4304. * test/DHTAnnouncePeerMessageTest.cc
  4305. * test/DHTPeerAnnounceEntryTest.cc
  4306. * test/DHTPeerAnnounceStorageTest.cc
  4307. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4308. Changed method signature:
  4309. NameResolver::resolve
  4310. * src/DHTEntryPointNameResolveCommand.cc
  4311. * src/InitiateConnectionCommand.cc
  4312. * src/NameResolver.cc
  4313. * src/NameResolver.h
  4314. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4315. Changed method signature:
  4316. PieceStorage::getAdvertisedPieceIndexes
  4317. * src/DefaultBtInteractive.cc
  4318. * src/DefaultPieceStorage.cc
  4319. * src/DefaultPieceStorage.h
  4320. * src/PieceStorage.h
  4321. * src/UnknownLengthPieceStorage.h
  4322. * test/MockPieceStorage.h
  4323. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. Changed method signature:
  4325. SegmentMan::getInFlightSegment
  4326. * src/AbstractCommand.cc
  4327. * src/SegmentMan.cc
  4328. * src/SegmentMan.h
  4329. * test/SegmentManTest.cc
  4330. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4331. Changed method signature:
  4332. DHTAbstractNodeLookupTask::getNodesFromMessage
  4333. * src/DHTAbstractNodeLookupTask.cc
  4334. * src/DHTAbstractNodeLookupTask.h
  4335. * src/DHTNodeLookupTask.cc
  4336. * src/DHTNodeLookupTask.h
  4337. * src/DHTPeerLookupTask.cc
  4338. * src/DHTPeerLookupTask.h
  4339. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4340. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4341. * src/AbstractCommand.cc
  4342. * src/BtCheckIntegrityEntry.cc
  4343. * src/BtCheckIntegrityEntry.h
  4344. * src/BtFileAllocationEntry.cc
  4345. * src/BtFileAllocationEntry.h
  4346. * src/BtSetup.cc
  4347. * src/BtSetup.h
  4348. * src/CheckIntegrityCommand.cc
  4349. * src/CheckIntegrityEntry.h
  4350. * src/ChecksumCheckIntegrityEntry.cc
  4351. * src/ChecksumCheckIntegrityEntry.h
  4352. * src/DHTSetup.cc
  4353. * src/DHTSetup.h
  4354. * src/DownloadEngine.cc
  4355. * src/FileAllocationCommand.cc
  4356. * src/FileAllocationEntry.h
  4357. * src/RequestGroup.cc
  4358. * src/RequestGroup.h
  4359. * src/RequestGroupMan.cc
  4360. * src/RequestGroupMan.h
  4361. * src/StreamCheckIntegrityEntry.cc
  4362. * src/StreamCheckIntegrityEntry.h
  4363. * src/StreamFileAllocationEntry.cc
  4364. * src/StreamFileAllocationEntry.h
  4365. * src/TrackerWatcherCommand.cc
  4366. * src/a2functional.h
  4367. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4368. Changed method signature:
  4369. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4370. DHTBucket::getGoodNodes,
  4371. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4372. * src/BNode.cc
  4373. * src/BNode.h
  4374. * src/DHTAbstractNodeLookupTask.cc
  4375. * src/DHTAutoSaveCommand.cc
  4376. * src/DHTBucket.cc
  4377. * src/DHTBucket.h
  4378. * src/DHTBucketRefreshTask.cc
  4379. * src/DHTFindNodeMessage.cc
  4380. * src/DHTGetPeersMessage.cc
  4381. * src/DHTRoutingTable.cc
  4382. * src/DHTRoutingTable.h
  4383. * test/BNodeTest.cc
  4384. * test/DHTBucketTest.cc
  4385. * test/DHTRoutingTableTest.cc
  4386. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4387. In piece selection functions, Pass std::deque<...> by reference rather
  4388. than returning it.
  4389. * src/BitfieldMan.cc
  4390. * src/BitfieldMan.h
  4391. * src/DefaultBtRequestFactory.cc
  4392. * src/DefaultPieceStorage.cc
  4393. * src/Piece.cc
  4394. * src/Piece.h
  4395. * test/BitfieldManTest.cc
  4396. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4397. Implemented rarest piece first piece selection strategy.
  4398. * src/AbstractBtMessage.cc
  4399. * src/AbstractBtMessage.h
  4400. * src/BitfieldMan.cc
  4401. * src/BitfieldMan.h
  4402. * src/BtBitfieldMessage.cc
  4403. * src/BtHaveAllMessage.cc
  4404. * src/BtHaveMessage.cc
  4405. * src/DefaultPieceStorage.cc
  4406. * src/DefaultPieceStorage.h
  4407. * src/PeerInteractionCommand.cc
  4408. * src/PieceStorage.h
  4409. * src/UnknownLengthPieceStorage.h
  4410. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. Rewritten readData and writeData.
  4412. * src/MultiDiskAdaptor.cc
  4413. * src/MultiDiskAdaptor.h
  4414. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4415. Move \n out of the message "Usage: ...".
  4416. * src/version_usage.cc
  4417. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4418. Bump up version number to 0.13.2b.
  4419. * configure.ac
  4420. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4421. Added const qualifier to argument Exception& e.
  4422. * src/Logger.h
  4423. * src/SimpleLogger.cc
  4424. * src/SimpleLogger.h
  4425. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4426. Pool connection when CWD, SIZE command fails.
  4427. * src/FtpNegotiationCommand.cc
  4428. * src/FtpNegotiationCommand.h
  4429. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4430. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  4431. * src/HttpResponseCommand.cc
  4432. * src/HttpSkipResponseCommand.cc
  4433. * src/HttpSkipResponseCommand.h
  4434. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4435. Pool connection when a server returns 4xx, 5xx responses.
  4436. * src/HttpNullDownloadCommand.cc
  4437. * src/HttpNullDownloadCommand.h
  4438. * src/HttpResponse.cc
  4439. * src/HttpResponse.h
  4440. * src/HttpResponseCommand.cc
  4441. * src/HttpResponseCommand.h
  4442. * test/HttpResponseTest.cc
  4443. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4444. Print usage when no URL is specifed or bad command-line option is
  4445. specified.
  4446. * src/HelpItemFactory.cc
  4447. * src/help_tags.h
  4448. * src/option_processing.cc
  4449. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4450. Removed duplicate log message.
  4451. * src/AbstractCommand.cc (asyncResolveHostname)
  4452. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4453. Updated man page: --async-dns and --ftp-reuse-connection were added.
  4454. Changed -j option's default value from 5 to 1.
  4455. Added new examples using protocol auto detection feature.
  4456. Removed -T, -M usage where it can be omitted.
  4457. * doc/aria2c.1.txt
  4458. * doc/aria2c.1.html
  4459. * doc/aria2c.1.txt
  4460. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4461. Updated command-line usage text, so that it tells users that they
  4462. can specify any number of torrent files and metalink files in
  4463. command-line.
  4464. * src/version_usage.cc
  4465. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. Changed the default value of -j option to 1.
  4467. * src/HelpItemFactory.cc
  4468. * src/option_processing.cc
  4469. * src/usage_text.h
  4470. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4471. Added the ability to reuse connection in FTP and it is enabled by
  4472. default. It can be disabled by --ftp-reuse-connection=false option.
  4473. * src/Command.cc
  4474. * src/DownloadCommand.cc
  4475. * src/FtpDownloadCommand.cc
  4476. * src/FtpDownloadCommand.h
  4477. * src/FtpFinishDownloadCommand.cc
  4478. * src/FtpFinishDownloadCommand.h
  4479. * src/FtpInitiateConnectionCommand.cc
  4480. * src/FtpNegotiationCommand.cc
  4481. * src/FtpNegotiationCommand.h
  4482. * src/HelpItemFactory.cc
  4483. * src/Makefile.am
  4484. * src/Makefile.in
  4485. * src/OptionHandlerFactory.cc
  4486. * src/option_processing.cc
  4487. * src/prefs.h
  4488. * src/usage_text.h
  4489. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4490. Call Command::transitStatus() before calling Command::execute(),
  4491. so that the status change made in execute() is not cleared.
  4492. * src/DownloadEngine.cc
  4493. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Removed forward declaration of SocketCore class.
  4495. * src/HttpDownloadCommand.h
  4496. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4497. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  4498. in InitiateConnectionCommandFactory. They should be set only when
  4499. the protocol is HTTP or HTTPS.
  4500. * src/InitiateConnectionCommandFactory.cc
  4501. * src/RequestGroup.cc
  4502. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4503. Fixed infinite loop in checksum checking.
  4504. * src/IteratableChecksumValidator.cc
  4505. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Set _supportsPersistentConnection to true by default.
  4507. * src/Request.cc
  4508. * src/RequestGroup.cc
  4509. * test/HttpRequestTest.cc
  4510. * test/RequestTest.cc
  4511. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4512. Added timeout to socket pool. The default timeout is 15 seconds,
  4513. which is the same value Apache uses.
  4514. * src/DownloadEngine.cc
  4515. * src/DownloadEngine.h
  4516. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4517. Fixed misuse of multimap::find()
  4518. * src/HttpHeader.cc
  4519. * test/HttpHeaderTest.cc
  4520. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4521. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  4522. option.
  4523. The asynchronous DNS is not capable of IPv6 yet.
  4524. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  4525. least for HTTP download.
  4526. * src/AbstractCommand.cc
  4527. * src/AbstractCommand.h
  4528. * src/AsyncNameResolver.cc
  4529. * src/AsyncNameResolver.h
  4530. * src/DHTEntryPointNameResolveCommand.cc
  4531. * src/DHTEntryPointNameResolveCommand.h
  4532. * src/DownloadEngine.cc
  4533. * src/DownloadEngine.h
  4534. * src/FtpInitiateConnectionCommand.cc
  4535. * src/FtpInitiateConnectionCommand.h
  4536. * src/HelpItemFactory.cc
  4537. * src/HttpInitiateConnectionCommand.cc
  4538. * src/HttpInitiateConnectionCommand.h
  4539. * src/InitiateConnectionCommand.cc
  4540. * src/InitiateConnectionCommand.h
  4541. * src/Makefile.am
  4542. * src/Makefile.in
  4543. * src/NameResolver.cc
  4544. * src/NameResolver.h
  4545. * src/OptionHandlerFactory.cc
  4546. * src/SocketCore.cc
  4547. * src/SocketCore.h
  4548. * src/Util.cc
  4549. * src/Util.h
  4550. * src/option_processing.cc
  4551. * src/prefs.h
  4552. * src/usage_text.h
  4553. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. Updated man page: --quiet, --header were added.
  4555. --metalink-servers and --enable-http-keep-alive option were updated.
  4556. * doc/aria2c.1
  4557. * doc/aria2c.1.html
  4558. * doc/aria2c.1.txt
  4559. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. Enable HTTP keep-alive by default.
  4561. * src/HelpItemFactory.cc
  4562. * src/option_processing.cc
  4563. * src/usage_text.h
  4564. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4565. Disable http keep-alive if the remote server is not HTTP/1.1.
  4566. * src/HttpConnection.cc
  4567. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4568. Receive content body of 302 response so that the connection can be
  4569. reused later when http keep-alive is enabled.
  4570. * src/HttpNullDownloadCommand.cc
  4571. * src/HttpNullDownloadCommand.h
  4572. * src/HttpResponseCommand.cc
  4573. * src/HttpResponseCommand.h
  4574. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4575. const SharedHandle<Request> -> const SharedHandle<Request>&
  4576. * src/FtpDowndloadCommand.cc
  4577. * src/FtpDowndloadCommand.h
  4578. * src/HttpDownloadCommand.cc
  4579. * src/HttpDownloadCommand.h
  4580. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4581. Fixed the bug that the control file(.aria2 file) is not renamed
  4582. according to tryAutoFileRenaming().
  4583. tryAutoFileRenaming() was rewritten so that if both renamed file and
  4584. its control file exist, use them and continue download.
  4585. The old implementation didn't take into account of control file's
  4586. existence, so basically you couldn't continue download of renamed file.
  4587. * src/BtProgressInfoFile.h
  4588. * src/DefaultBtProgressInfoFile.cc
  4589. * src/DefaultBtProgressInfoFile.h
  4590. * src/NullProgressInfoFile.h
  4591. * src/RequestGroup.cc
  4592. * test/DefaultBtProgressInfoFileTest.cc
  4593. * test/MockBtProgressInfoFile.h
  4594. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4595. Change the default value of --metalink-servers option from `5' to `1'.
  4596. * src/HelpItemFactory.cc
  4597. * src/option_processing.cc
  4598. * src/usage_text.h
  4599. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4600. Reimplemented transparent metalink using Accept request header.
  4601. * src/HttpRequest.cc
  4602. * src/HttpRequest.h
  4603. * src/HttpRequestCommand.cc
  4604. * src/Metalink2RequestGroup.cc
  4605. * src/RequestGroup.cc
  4606. * src/RequestGroup.h
  4607. * test/HttpRequestTest.cc
  4608. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4609. Bump up version number to 0.13.2a
  4610. * configure.ac
  4611. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4612. Updated configure.ac using the result of autoscan.
  4613. * configure.ac
  4614. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4615. Fixed compilation error without gcrypt/openssl.
  4616. * src/DownloadCommand.cc
  4617. * src/DownloadCommand.h
  4618. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. Reorganized version information so that it can be displayed in a
  4620. standard terminal screen without scrolling.
  4621. Removed http, ftp from Configuration section, because they are always
  4622. enabled.
  4623. * src/FeatureConfig.cc
  4624. * src/FeatureConfig.h
  4625. * src/main.cc
  4626. * src/messageDigest.cc
  4627. * src/messageDigest.h
  4628. * src/version_usage.cc
  4629. * test/FeatureConfigTest.cc
  4630. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4631. Masked user ID in log.
  4632. * src/FtpConnection.cc (sendUser)
  4633. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4634. Removed query part from filename in HTTP download. The query part means
  4635. the substring after "?" in URL. Firefox seems do the same thing.
  4636. A query part is sometimes very long and not suitable to filename,
  4637. so I think it is better to remove it from filename.
  4638. * src/HttpRequest.cc
  4639. * src/HttpRequest.h
  4640. * src/Request.cc
  4641. * src/Request.h
  4642. * test/HttpRequestTest.cc
  4643. * test/RequestTest.cc
  4644. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4645. Rewritten Exception class. Throw exception object, not its pointer and
  4646. catch by reference, so that remove problematic delete operator for
  4647. catched exception.
  4648. * src/Exception.cc
  4649. * src/Exception.h
  4650. * test/ExceptionTest.cc
  4651. * src/*: All files throwing/catching exception.
  4652. * test/*: All files throwing/catching exception.
  4653. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4654. Now auto protocol detection is enabled without -Z option.
  4655. But there is a important difference between with/without -Z optoin.
  4656. For example, if you type:
  4657. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  4658. then, aria2 interprets there are 3 request groups:
  4659. (1) http://host/file, http://mirror/file <-- multi-source download
  4660. (2) file1.torrent
  4661. (3) file2.metalink
  4662. On the other hand, if you invoke above command with -Z option, it is
  4663. interpreted as 4 request groups:
  4664. (1) http://host/file
  4665. (2) file1.torrent
  4666. (3) file2.metalink
  4667. (4) http://mirror/file
  4668. I think usually user don't mix multi-source URLs and torrent files, so
  4669. there is no big problem here.
  4670. * src/main.cc
  4671. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4672. Fixed the bug that causes segmentaion fault when reading XML containing
  4673. unescapsed character like '&'.
  4674. Also a modification was made which avoids adding unnecessary
  4675. characters stack and appending unused string.
  4676. * src/ExpatMetalinkProcessor.cc
  4677. * src/FileMetalinkParserState.h
  4678. * src/FilesMetalinkParserState.h
  4679. * src/FinMetalinkParserState.h
  4680. * src/HashMetalinkParserState.h
  4681. * src/InitialMetalinkParserState.h
  4682. * src/LanguageMetalinkParserState.h
  4683. * src/MetalinkMetalinkParserState.h
  4684. * src/MetalinkParserState.h
  4685. * src/MetalinkParserStateMachine.cc
  4686. * src/MetalinkParserStateMachine.h
  4687. * src/OSMetalinkParserState.h
  4688. * src/PieceHashMetalinkParserState.h
  4689. * src/PiecesMetalinkParserState.h
  4690. * src/ResourcesMetalinkParserState.h
  4691. * src/SizeMetalinkParserState.h
  4692. * src/SkipTagMetalinkParserState.h
  4693. * src/URLMetalinkParserState.h
  4694. * src/VerificationMetalinkParserState.h
  4695. * src/VersionMetalinkParserState.h
  4696. * src/XML2SAXMetalinkProcessor.cc
  4697. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4698. Added StringFormat class, which internally calls vasprintf.
  4699. operator<< is defined for this class, so it can be used with iostream
  4700. classes nicely. SimpleLogger and following functions are rewritten
  4701. using StringFormat class.
  4702. Besides, now Logger class's methods are non-const, many classes
  4703. that has a const Logger* as a member variable are modified to remove
  4704. const qualifier from the variable declaration.
  4705. * src/HelpItemFactory.cc
  4706. * src/Request.cc
  4707. * src/SimpleLogger.cc
  4708. * src/StringFormat.cc
  4709. * src/StringFormat.h
  4710. * src/Util.cc
  4711. * src/option_processing.cc
  4712. * src/version_usage.cc
  4713. * test/StringFormatTest.cc
  4714. * src/*.h: The classes that has const Logger* as a member variable.
  4715. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4716. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  4717. failed. Also fixed memory link when exception is thrown there.
  4718. * src/main.cc (AccRequestGroup)
  4719. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4720. Added build-in "Accept-Features" support. For now only "metalink" is
  4721. used in this header field.
  4722. This "metalink" value is removed from the list when connecting URLs
  4723. fed by metalink file to avoid loop in "transparent" metlaink.
  4724. * src/HttpRequest.cc
  4725. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  4726. header is also held in this variable. Also renamed setUserHeaders as
  4727. addHeader and it was rewritten to add header not just to clear the old
  4728. value.
  4729. * src/HttpRequestCommand.cc
  4730. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  4731. from "Accept-Features" list.
  4732. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  4733. default.
  4734. * src/RequestGroup.h
  4735. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  4736. * src/a2functional.h: Included <string> because Concat class depends on
  4737. it.
  4738. * test/HttpRequestTest.cc
  4739. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4740. Added comment
  4741. * src/RequestGroup.cc (createNextCommand)
  4742. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Capitalized METHOD_GET and METHOD_HEAD
  4744. * src/Request.cc
  4745. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4746. Added getDownloadResults() method
  4747. * src/RequestGroupMan.cc
  4748. * src/RequestGroupMan.h
  4749. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4750. Fixed the bug that aria2 exits when commands is empty() but
  4751. _routineCommands are not.
  4752. * src/DownloadEngine.cc
  4753. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4754. Use the default value pulled from Option object in HelpItemFactory.
  4755. except options whose defualt value is embedded in a usage text.
  4756. * src/HelpItemFactory.cc
  4757. * src/HelpItemFactory.h
  4758. * src/option_processing.cc
  4759. * src/version_usage.cc
  4760. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4761. Added --quiet option to make aria2 quiet (no console output).
  4762. --quiet option is tagged with ADVANCED.
  4763. * src/HelpItemFactory.cc
  4764. * src/LogFactory.cc
  4765. * src/LogFactory.h
  4766. * src/MultiUrlRequestInfo.cc
  4767. * src/MultiUrlRequestInfo.h
  4768. * src/NullStatCalc.h: New class. This class prints nothing.
  4769. * src/OptionHandlerFactory.cc
  4770. * src/main.cc
  4771. * src/option_processing.cc
  4772. * src/prefs.h
  4773. * src/usage_text.h
  4774. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4775. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  4776. * src/HelpItemFactory.cc (createHelpItems):
  4777. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4778. Fixed compilation error in ExpatMetalinkProcessor.cc
  4779. * src/ExpatMetalinkProcessor.cc
  4780. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4781. Reuse socket if the origin server supports HTTP keep-alive and
  4782. --enable-http-keep-alive or --enable-http-pipelining is given.
  4783. The current implementation doesn't reuse the connections established
  4784. against proxy server.
  4785. * src/AbstractCommand.cc
  4786. * src/DownloadEngine.cc
  4787. * src/DownloadEngine.h
  4788. * src/HttpDownloadCommand.cc
  4789. * src/HttpInitiateConnectionCommand.cc
  4790. * src/HttpResponseCommand.cc
  4791. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4792. Rewritten HTTP keep-alive and pipelining routine.
  4793. * src/AbstractCommand.cc
  4794. * src/HttpConnection.cc
  4795. * src/HttpDownloadCommand.cc
  4796. * src/HttpRequest.cc
  4797. * src/HttpRequestCommand.cc
  4798. * src/HttpResponseCommand.cc
  4799. * src/Request.cc
  4800. * src/Request.h
  4801. * src/RequestGroup.cc
  4802. * test/HttpRequestTest.cc
  4803. * test/HttpResponseTest.cc
  4804. * test/RequestTest.cc
  4805. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4806. Added missing setUserHeaders call
  4807. * src/HttpRequestCommand.cc
  4808. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4809. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  4810. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  4811. waste of time because it is more likey false.
  4812. * src/FileAllocationDispatcherCommand.cc (execute)
  4813. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. Now HTTP status and version are a member variable of HttpHeader.
  4815. HTTP status is processed as a string, not integer.
  4816. * src/AbstractProxyResponseCommand.cc
  4817. * src/HttpConnection.cc
  4818. * src/HttpHeader.cc
  4819. * src/HttpHeader.h
  4820. * src/HttpHeaderProcessor.cc
  4821. * src/HttpHeaderProcessor.h
  4822. * src/HttpResponse.cc
  4823. * src/HttpResponse.h
  4824. * test/HttpHeaderProcessorTest.cc
  4825. * test/HttpResponseTest.cc
  4826. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4827. Added --header option. You can specify any number of additional HTTP headers
  4828. like:
  4829. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  4830. Unlike other commad-line option, you can use --header option multiple times.
  4831. * src/HelpItemFactory.cc
  4832. * src/HttpRequest.{cc, h}
  4833. * src/HttpRequestCommand.cc
  4834. * src/OptionHandlerFactory.cc
  4835. * src/OptionHandlerImpl.h
  4836. * src/option_processing.cc
  4837. * src/prefs.h
  4838. * src/usage_text.h
  4839. * test/HttpRequestTest.cc (testUserHeaders)
  4840. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4841. Eliminates the time lag between sequential downloads and commands in
  4842. the same RequestGroup.
  4843. In old implementation, aria2 occasionally waits 1 seconds before
  4844. executing next command or RequestGroup.
  4845. This is really a waste of time, and new implementation eliminates
  4846. this unnecessary time lag.
  4847. * src/AbstractCommand.cc
  4848. * src/AutoSaveCommand.cc
  4849. * src/CheckIntegrityCommand.cc
  4850. * src/Command.{cc, h}
  4851. * src/DownloadEngine.{cc, h}
  4852. * src/DownloadEngineFactory.cc
  4853. * src/FileAllocationCommand.cc
  4854. * src/FileAllocationDispatcherCommand.cc
  4855. * src/FillRequestGroupCommand.cc
  4856. * src/FtpInitiateConnectionCommand.cc
  4857. * src/HaveEraseCommand.cc
  4858. * src/HttpInitiateConnectionCommand.cc
  4859. * src/HttpResponseCommand.cc
  4860. * src/RealtimeCommand.cc
  4861. * src/RequestGroup.cc
  4862. * src/RequestGroupMan.cc
  4863. * src/StreamFileAllocationEntry.cc
  4864. * src/TimeBasedCommand.{cc, h}
  4865. * src/TimedHaltCommand.cc
  4866. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4867. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  4868. keyword explicit and SharedHandle's default constructor initializes
  4869. its internal obj to null, old implementation initializes it using
  4870. obj's default constructor.
  4871. To assign null, write SharedHandle<T> x(...); x.reset();
  4872. TODO: test/SharedHandleTest.cc needs more tests.
  4873. * src/SharedHandle.h
  4874. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4875. Fixed type in man page.
  4876. * doc/aria2c.1.txt
  4877. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4878. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  4879. * src/SimpleLogger.{cc, h}
  4880. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4881. Implemented auto protocol detection.
  4882. Now you can do:
  4883. aria2c -Z http://host/file file1.torrent file2.metalink
  4884. (Note: -Z option is required for auto protcol detection.)
  4885. Then aria2c downloads 3 files simultaneously:
  4886. 1. http://host/file
  4887. 2. file1.torrent <-- read local torrent file
  4888. 3. file2.metalink <-- read local Metalink file.
  4889. Same thing goes with -i option. Assume your uris.txt contans:
  4890. http://host/file
  4891. file1.torrent
  4892. file2.metalink
  4893. Then you can do: aria2c -i uris.txt
  4894. (Note: -Z option is not needed if -i option is given.)
  4895. * src/main.cc
  4896. * src/ProtocolDetector.{cc, h}
  4897. * test/ProtocolDetectorTest.cc
  4898. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4899. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  4900. installed
  4901. * src/ARC4Encryptor.h
  4902. * src/ARC4Decryptor.h
  4903. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4904. Renamed argument from 'errno' to 'err', since errno is confused with
  4905. errno defined in errno.h.
  4906. * src/LibgcryptARC4Decryptor.h
  4907. * src/LibgcryptARC4Context.h
  4908. * src/LibgcryptDHKeyExchange.h
  4909. * src/LibgcryptARC4Encryptor.h
  4910. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4911. Rewritten choking algorithm.
  4912. * src/PeerChokeCommand.{cc, h}
  4913. * src/BtInterestedMessage.cc
  4914. * src/PeerSessionResource.{cc, h}
  4915. * src/DefaultPeerStorage.{cc, h}
  4916. * src/BtNotInterestedMessage.cc
  4917. * src/DefaultBtMessageDispatcher.{cc, h}
  4918. * src/BtMessageDispatcher.h
  4919. * src/Peer.{cc, h}
  4920. * src/BtLeecherStateChoke.{cc, h}
  4921. * src/BtSetup.cc
  4922. * src/BtSeederStateChoke.{cc, h}
  4923. * src/PeerStorage.h
  4924. * test/MockPeerStorage.h
  4925. * test/MockBtMessageDispatcher.h
  4926. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4927. Fixed compilation error on x84-64 platform.
  4928. * src/AuthConfig.cc: Included ostream.
  4929. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4930. Rewritten getBasename() and getDirname(), without standard library
  4931. basename(), dirname().
  4932. * src/File.cc
  4933. * test/FileTest.cc
  4934. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4935. Added Simplified Chinese translation. Also updated the following
  4936. translations: Polish, Dutch, German. Great thanks to all translators.
  4937. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4938. Suppress content-range error when 'Content-Range' response header
  4939. doesn't contains bytes-unit specifier 'bytes'
  4940. * src/HttpHeader.cc (getRange)
  4941. * test/HttpHeaderTest.cc
  4942. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4943. Fixed compilation error with g++-4.3
  4944. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4945. Added missing include files for MinGW
  4946. * test/HttpHeaderProcessorTest.cc
  4947. * test/DHTRoutingTableSerializerTest.cc
  4948. * test/DHTRoutingTableDeserializerTest.cc
  4949. * test/UriListParserTest.cc
  4950. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4951. Now download line is printed nicely with no garbage at the end of
  4952. line. I use ioctl to get the columns of terminal.
  4953. If stdout is redirected to another device, instead of carriage return,
  4954. end of line '\n' character is used. This is feature request#1909659
  4955. * src/ConsoleStatCalc.cc (calculateStat)
  4956. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. Included a2time.h
  4958. * src/DHTMessageDispatcher.h
  4959. * src/DHTMessageEntry.h
  4960. * src/DHTReplaceNodeTask.h
  4961. * src/DHTMessageTracker.h
  4962. * src/Util.h
  4963. * src/CookieBox.h
  4964. * src/SocketCore.h
  4965. * src/DefaultBtMessageDispatcher.h
  4966. * src/SocketCore.cc
  4967. * src/Util.cc
  4968. * src/DHTPingTask.h
  4969. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4970. Fixed high memory footprint when DHT is enabled.
  4971. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  4972. queued than it is processed and the queue is getting longer. As a
  4973. consequence, momory usage is increased.
  4974. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  4975. replacement cache in DHTBucket which is described in Kademlia paper.
  4976. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  4977. DHTReplaceNodeTask.
  4978. * src/DHTBucket.{h, cc}
  4979. (cacheNode): New function.
  4980. (getCachedNodes): New function.
  4981. (dropNode): Push back cached node to _nodes.
  4982. * test/DHTBucketTest.cc
  4983. (testCacheNode): New test
  4984. (testDropNode): New test
  4985. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4986. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  4987. the unused 4KB memory when ssl is not used.
  4988. * src/SocketCore.cc
  4989. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4990. Added summary log for peer announce storage.
  4991. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  4992. Removed cast
  4993. * src/DefaultPeerStorage.cc (addPeer)
  4994. Log exception message
  4995. * src/DHTMessageTracker.cc (handleTimeout)
  4996. Fixed casting
  4997. * test/HttpRequestTest.cc
  4998. * test/MetalinkProcessorTest.cc
  4999. * test/PieceTest.cc
  5000. * test/MetalinkEntryTest.cc
  5001. * test/SequenceTest.cc
  5002. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. * src/ParameterizedStringParser.cc (createLoop):
  5004. Removed unused variable sstep.
  5005. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5006. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5007. * src/Util.{h, cc}
  5008. (parseUInt): New function.
  5009. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5010. The actual range is uint32_t.
  5011. * test/UtilTest.cc
  5012. * src/ParameterizedStringParser.cc:
  5013. Use Util::parseUInt() for loop variables.
  5014. * test/ParameterizedStringParserTest.cc
  5015. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5016. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5017. Rewritten the functions for binding port.
  5018. * src/DHTConnectionImpl.{h, cc}
  5019. * src/PeerListenCommand.{h, cc}
  5020. * src/DHTSetup.cc
  5021. * src/BtSetup.cc
  5022. * test/DHTConnectionImplTest.cc
  5023. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5024. type cleanup for allmost all remaining files.
  5025. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Type clarification
  5027. * src/PeerSessionResource.{h, cc}
  5028. * src/DefaultPieceStorage.{h, cc}
  5029. * src/Peer.{h, cc}
  5030. * test/PeerSessionResourceTest.cc
  5031. Use div function
  5032. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5033. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5034. Type clarification
  5035. * src/DefaultPeerStorage.{h, cc}
  5036. * test/DefaultPeerStorageTest.cc
  5037. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5038. Type clarification: size_t for length or size, uint64_t for file
  5039. length, off_t for file offset.
  5040. * src/DefaultBtProgressInfoFile.cc
  5041. * src/DefaultBtContext.{h, cc}
  5042. * src/DefaultBtInteractive.cc
  5043. * src/DownloadCommand.{h, cc}
  5044. * src/IteratableChunkChecksumValidator.{h, cc}
  5045. * src/SegmentMan.{h, cc}
  5046. * src/SingleFileDownloadContext.{h, cc}
  5047. * src/IteratableChecksumValidator.{h, cc}
  5048. * src/BtContext.h
  5049. * src/IteratableValidator.h
  5050. * src/DownloadContext.h
  5051. * test/SingleFileDownloadContextTest.cc
  5052. * test/DefaultBtContextTest.cc
  5053. * test/MockBtContext.h
  5054. * test/Metalink2RequestGroupTest.cc
  5055. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5056. Type clarification: size_t for length or size, uint64_t for file
  5057. length, off_t for file offset.
  5058. * src/PiecedSegment.cc
  5059. * src/GrowSegment.h
  5060. * src/DefaultBtRequestFactory.h
  5061. * src/DefaultBtProgressInfoFile.cc
  5062. * src/UnknownLengthPieceStorage.h
  5063. * src/DefaultPieceStorage.cc
  5064. * src/UnknownLengthPieceStorage.cc
  5065. * src/DefaultBtInteractive.cc
  5066. * src/GrowSegment.cc
  5067. * src/BitfieldMan.h
  5068. * src/DownloadCommand.cc
  5069. * src/BtRequestFactory.h
  5070. * src/PiecedSegment.h
  5071. * src/DefaultPieceStorage.h
  5072. * src/Piece.cc
  5073. * src/DefaultBtRequestFactory.cc
  5074. * src/PieceStorage.h
  5075. * src/Segment.h
  5076. * src/Piece.h
  5077. * src/BitfieldMan.cc
  5078. * src/Util.cc
  5079. * test/DefaultBtProgressInfoFileTest.cc
  5080. * test/DefaultPieceStorageTest.cc
  5081. * test/MockPieceStorage.h
  5082. * test/BtRequestMessageTest.cc
  5083. * test/DefaultBtMessageDispatcherTest.cc
  5084. * test/BitfieldManTest.cc
  5085. * test/GrowSegmentTest.cc
  5086. * test/PieceTest.cc
  5087. * test/SegmentTest.cc
  5088. * test/SegmentManTest.cc
  5089. * test/DefaultBtRequestFactoryTest.cc
  5090. * test/MockBtRequestFactory.h
  5091. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5092. Fixed compilation error with --disable-nls
  5093. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5094. in gettext.h causes the problem.
  5095. * src/common.h
  5096. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5097. Removed subPiece related functions.
  5098. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5099. * src/DefaultPieceStorage.{h, cc}
  5100. * test/PieceTest.cc
  5101. * test/DefaultPieceStorageTest.cc
  5102. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5103. Use unsigned char for data store.
  5104. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5105. Bump up version number to 0.13.0+1
  5106. * configure.ac
  5107. * Release 0.13.0+1
  5108. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5109. Changed inactive connection timeout to 120.
  5110. To accept more mulually interested peers, disconnect peer when there
  5111. is no interest between us after certain time passed.
  5112. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5113. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5114. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5115. when compiled with async DNS support.
  5116. * src/DownloadEngine.cc
  5117. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5118. value '10' will be a little bit short when some DNS servers are
  5119. offline and several DNS servers are tried. It should be configured
  5120. by command-line option.
  5121. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5122. Merged Ross's mingw patch.
  5123. * src/DHTRoutingTableDeserializer.cc
  5124. * src/DHTRoutingTableSerializer.cc
  5125. * src/Platform.{h, cc}
  5126. * src/timegm.h
  5127. * src/gettimeofday.h
  5128. * src/getaddrinfo.h
  5129. * src/SocketCore.h
  5130. * src/common.h
  5131. * src/inet_aton.h
  5132. * src/DownloadEngine.h
  5133. * src/gai_strerror.h
  5134. * src/a2netcompat.h
  5135. * configure.ac
  5136. * configure
  5137. * aclocal.m4
  5138. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5139. Included missing iostream.
  5140. * test/AllTest.cc
  5141. * test/BtDependencyTest.cc
  5142. * test/BtExtendedMessageTest.cc
  5143. * test/DHTConnectionImplTest.cc
  5144. * test/DHTMessageFactoryImplTest.cc
  5145. * test/DHTMessageTrackerEntryTest.cc
  5146. * test/DHTNodeTest.cc
  5147. * test/DHTRoutingTableSerializerTest.cc
  5148. * test/DefaultBtAnnounceTest.cc
  5149. * test/DefaultBtContextTest.cc
  5150. * test/DefaultBtMessageFactoryTest.cc
  5151. * test/DefaultExtensionMessageFactoryTest.cc
  5152. * test/HandshakeExtensionMessageTest.cc
  5153. * test/HttpResponseTest.cc
  5154. * test/MetalinkProcessorTest.cc
  5155. * test/MultiFileAllocationIteratorTest.cc
  5156. * test/SocketCoreTest.cc
  5157. * test/UTPexExtensionMessageTest.cc
  5158. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5159. Reorganized includes.
  5160. * src/NameResolver.cc
  5161. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5162. Fixed compilation error without ares/c-ares
  5163. * src/NameResolver.h:
  5164. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5165. Added a test for large file.
  5166. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5167. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5168. Fixed the bug that file size is ignored if size > INT32_MAX
  5169. * src/SizeMetalinkParserState.cc (endElement):
  5170. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5171. Bump up version number to 0.13.0
  5172. * configure.ac
  5173. * Release 0.13.0
  5174. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. Updated Makfefile.am to make 'make dist' work.
  5176. Now packaged filename is aria2c-VERSION.tar.bz2.
  5177. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5178. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5179. Large file support is now configured by configure script.
  5180. * configure.ac
  5181. Removed unsused source files
  5182. * src/
  5183. * test/
  5184. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5185. Peer.h and BtContext.h respectively.
  5186. * src/Peer.h
  5187. * src/BtContext.h
  5188. Updated translations.
  5189. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  5190. translations. Great thanks to all translators!;)
  5191. * po/*.{po, gmo}
  5192. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5193. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  5194. statically declared sha1 MessageDigestContext.
  5195. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  5196. initialization of short-lived MessageDigestContext.
  5197. * src/MessageDigestHelper.{h, cc}
  5198. * src/main.cc
  5199. Now DownloadCommand has a reference to MessageDigestContext to avoid
  5200. the initialization of MessageDigestContext every time in validating
  5201. chunk checksum.
  5202. * src/DownloadCommand.{h, cc}
  5203. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5204. Add a file descriptor which connected to fast peer(latency<1500) to
  5205. select(). This change reduced CPU load.
  5206. * src/PeerInteractionCommand.cc
  5207. * src/DefaultBtInteractive.{h, cc}
  5208. * src/BtInteractive.h
  5209. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5210. Fixed the previous insufficient fix for possible busy loop.
  5211. * src/MSEHandshake.cc (identifyHandshakeType)
  5212. Removed unused functions.
  5213. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  5214. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5215. Fixed possible busy loop if first 20 bytes are not received for a few
  5216. minutes.
  5217. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  5218. * src/ReceiverMSEHandshakeCommand.cc
  5219. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5220. Fixed compilation error
  5221. * src/ExpatMetalinkProcessor.cc
  5222. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5223. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  5224. * src/DHTBucket.cc
  5225. Removed unnecessary cast.
  5226. * src/HandshakeExtensionMessage.cc
  5227. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5228. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  5229. is missing.
  5230. * src/OptionHandlerFactory.cc
  5231. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5232. Fixed the bug that HAVE message is not sent for a piece they are
  5233. downloaded fom http/ftp server before any BitTorrent handshake is done
  5234. with peers.
  5235. * src/DefaultBtInteractive.cc
  5236. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  5238. * src/Makefile.am
  5239. * src/Makefile.in
  5240. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. Updated README. Added html version of README and man page.
  5242. * README
  5243. * README.html
  5244. * readme2html: Shell script to generate README.html from README using
  5245. asciidoc.
  5246. * doc/aria2c.1.html
  5247. * doc/makeman: Added the line to generate aria2c.1.html
  5248. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Fixed offset calculation.
  5250. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5251. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5252. Rewritten itos and uitos using template. llitos and ullitos are
  5253. replaced with itos and uitos respectively.
  5254. * src/Util.{h, cc}
  5255. * test/UtilTest.cc
  5256. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5257. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5258. of the number of bytes required for storing public key and shared
  5259. secret.
  5260. * src/LibgcryptDHKeyExchange.h
  5261. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5262. * src/MSEHandshake.cc
  5263. * test/DHKeyExchangeTest.cc
  5264. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5265. Removed since they are not used.
  5266. * src/Xml2MetalinkProcessor.{h, cc}
  5267. * src/Socket.cc
  5268. * src/SegmentSplitter.{h, cc}
  5269. * test/Xml2MetalinkProcessorTest.cc
  5270. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5271. Fixed the bug that prevents aria2 from stopping other than by pressing
  5272. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5273. option. aria2 doesn't stop even after --seed-time is satisfied and
  5274. continues to output blank lines in the console.
  5275. * src/ReceiverMSEHandshakeCommand.cc
  5276. * src/PeerReceiveHandshakeCommand.cc
  5277. * src/PeerListenCommand.cc
  5278. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5279. Bump up version number to 0.13.0rc
  5280. * configure.ac
  5281. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. Updated man page and some usage text.
  5283. * doc/aria2c.1.txt
  5284. * src/usage_text.h
  5285. * po/*.{po, gmo}
  5286. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5287. Updated translations. Added Finnish and Hebrew translations.
  5288. Great thanks to all translators!
  5289. * po/*.{po, gmo}
  5290. * po/LINGUAS
  5291. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5292. Log more detailed information about each message.
  5293. * src/DHTQueryMessage.{h, cc}
  5294. * src/DHTGetPeersMessage.{h, cc}
  5295. * src/DHTFindNodeReplyMessage.{h, cc}
  5296. * src/DHTGetPeersReplyMessage.{h, cc}
  5297. * src/DHTAnnouncePeerMessage.{h, cc}
  5298. * src/DHTResponseMessage.{h, cc}
  5299. * src/DHTFindNodeMessage.{h, cc}
  5300. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5301. Use constants defined in prefs.h
  5302. * src/option_processing.cc
  5303. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5304. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  5305. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5306. Make room for future enchancements for IPv6 addresses.
  5307. Bump up version number of dht.dat file format to 2.
  5308. Not compatible with previous version.
  5309. * src/DHTRoutingTableSerializer.cc
  5310. * src/DHTRoutingTableDeserializer.cc
  5311. * test/DHTRoutingTableSerializerTest.cc
  5312. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5313. Added handling for the return values from
  5314. PeerMessageUtil::createcompact().
  5315. * src/DefaultBtContext.cc (computeFastSet):
  5316. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5317. Fixed abort when peer's ip address is IPv4-mapped address.
  5318. * src/DefaultBtContext.cc (computeFastSet)
  5319. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5320. cannot handle IPv4-mapped addresses.
  5321. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5322. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5323. Proper return value handling for OpenSSL functions.
  5324. * src/LibsslDHKeyExchange.h
  5325. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Random bytes generation using libgcrypt and OpenSSL.
  5327. * src/DHTUtil.{h, cc}
  5328. * test/DHTUtilTest.cc
  5329. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5331. received.
  5332. * src/DHTMessageReceiver.cc (receiveMessage)
  5333. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5334. Fixed the bug that a return code is always 0. BUG#1897704
  5335. If error occurred during the download or there exist unfinished
  5336. downloads, aria2 returns with code 1.
  5337. * src/RequestGroupMan.{h, cc}
  5338. * src/MultiUrlRequestInfo.{h, cc}
  5339. * src/main.cc
  5340. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. IPv6 support for SocketCore class.
  5342. TODO: In SocketCore::establishConnection(), this is insufficient to
  5343. determin the failure of connect() here because the socket is
  5344. non-blocking state. The next addresses should be tried after select().
  5345. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5346. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5347. instead which address family independent.
  5348. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5349. information in a compact peer format which is for IPv4 only.
  5350. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5351. this is a spec of BitTorrent protocol.
  5352. * src/SocketCore.{h, cc}
  5353. * src/PeerMessageUtil.cc
  5354. * test/SocketCoreTest.cc
  5355. * test/PeerMessageUtilTest.cc
  5356. * test/DHTConnectionImplTest.cc
  5357. Handle IPv4-mapped addresses.
  5358. * src/DHTNode.cc: Now identity is determined by node id.
  5359. * src/DHTMessageTrackerEntry.cc
  5360. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5361. should handle it.
  5362. * src/DHTRoutingTableDeserializer.cc
  5363. * src/DHTMessageFactoryImpl.cc
  5364. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5365. Change the unit of --stop option from a minute to a second.
  5366. * src/usage_text.h
  5367. * src/DownloadEngineFactory.cc
  5368. * src/OptionHandlerFactory.cc
  5369. * src/message.h
  5370. * src/TimedHaltCommand.cc
  5371. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5372. Make listening socket non-block mode.
  5373. * src/FtpConnection.cc
  5374. * src/FtpNegotiationCommand.{h, cc}
  5375. * src/PeerListenCommand.cc
  5376. Fixed the bug that cause slow ftp negotiation.
  5377. * src/FtpNegotiationCommand.{h, cc}
  5378. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Added basic tag to --enable-dht, --dht-listen-port option.
  5380. * src/HelpItemFactory.cc (createHelpItems)
  5381. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5382. Updated text.
  5383. * src/usage_text.h
  5384. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5386. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Determin _threadtholdSpeed in each constructor for
  5388. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5389. * src/ActivePeerConnectionCommand.{h, cc}
  5390. * src/PeerReceiveHandshakeCommand.{h, cc}
  5391. * src/BtSetup.cc
  5392. * src/BtConstants.h
  5393. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5394. Added --bt-min-crypto-level and --bt-require-crypto options.
  5395. * src/OptionHandlerFactory.cc
  5396. * src/MSEHandshake.cc
  5397. * src/HelpItemFactory.cc
  5398. * src/option_processing.cc
  5399. * src/ReceiverMSEHandshakeCommand.cc
  5400. * src/prefs.h
  5401. * src/DefaultBtAnnounce.cc
  5402. * src/InitiatorMSEHandshakeCommand.cc
  5403. * src/usage_text.h
  5404. * test/MSEHandshakeTest.cc
  5405. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5406. Bump version number to 0.13.0b
  5407. * configure.ac
  5408. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5409. Updated doc.
  5410. * src/MessageDigestHelper.h:
  5411. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5412. Use raw message digest as a token instead of its hexadecimal
  5413. representation.
  5414. * src/DHTTokenTracker.cc (generateToken)
  5415. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5416. Added Message Stream Encryption(MSE) support.
  5417. Currently, aria2 accepts incoming connections with Obfuscation Header
  5418. and legacy BitTorrent Header and establishes connections with
  5419. Obfuscation Header first and if failed then retry with legacy
  5420. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  5421. choose ARC4. The new option to change the default behavior is planned.
  5422. For tracker extension, "supportcrypto=1" is added statically.
  5423. * src/PeerInitiateConnectionCommand.{h, cc}
  5424. * src/PeerConnection.{h, cc}
  5425. * src/HandleRegistry.h
  5426. * src/SocketCore.h
  5427. * src/PeerReceiveHandshakeCommand.{h, cc}
  5428. * src/BtRegistry.{h, cc}
  5429. * src/PeerListenCommand.cc
  5430. * src/InitiatorMSEHandshakeCommand.{h, cc}
  5431. * src/ReceiverMSEHandshakeCommand.{h, cc}
  5432. * src/MSEHandshake.{h, cc}
  5433. * src/ARC4Encryptor.h
  5434. * src/ARC4Decryptor.h
  5435. * src/LibgcryptARC4Encryptor.h
  5436. * src/LibgcryptARC4Decryptor.h
  5437. * src/LibgcryptARC4Context.h
  5438. * src/LibsslARC4Encryptor.h
  5439. * src/LibsslARC4Decryptor.h
  5440. * src/LibsslARC4Context.h
  5441. * src/DHKeyExchange.h
  5442. * src/LibgcryptDHKeyExchange.h
  5443. * src/LibsslDHKeyExchange.h
  5444. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  5445. * test/DefaultBtAnnounceTest.cc
  5446. * test/ARC4Test.cc
  5447. * test/DHKeyExchangeTest.cc
  5448. Removed prepareForRetry() because it is not used.
  5449. * src/PeerAbstractCommand.{h, cc}
  5450. * src/PeerInteractionCommand.{h, cc}
  5451. * src/PeerInitiateConnectionCommand.{h, cc}
  5452. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Added the ability to load nodes from torrent file. These nodes are
  5454. added to the routing table when downloading that torrent.
  5455. * src/BtContext.h
  5456. * src/DefaultBtContext.{h, cc}
  5457. * src/DHTSetup.cc
  5458. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  5459. hostname and port pair, and resolves all of them.
  5460. * src/NameResolver.{h, cc}: Added reset().
  5461. * src/RequestGroup.cc
  5462. * test/DefaultBtContextTest.cc
  5463. * test/MockBtContext.h
  5464. Removed assert() from DefaultBtContext and throw exception instead.
  5465. * src/DefaultBtContext.cc
  5466. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. Fixed segmentation fault bug when exiting if dht is disabled.
  5468. * src/RequestGroup.cc
  5469. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5470. Fixed typo in log message and define the message in message.h
  5471. * src/TimedHaltCommand.cc
  5472. * src/message.h
  5473. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5474. Included RecoverableException.h to fix compilation error.
  5475. * test/DHTMessageFactoryImplTest.cc
  5476. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  5478. * test/DHTPingMessageTest.cc
  5479. * test/DHTGetPeersMessageTest.cc
  5480. * test/DHTFindNodeMessageTest.cc
  5481. * test/DHTAnnouncePeerMessageTest.cc
  5482. * test/MockDHTMessage.h
  5483. * test/MockDHTMessageFactory.h
  5484. * test/MockDHTMessageDispatcher.h: New class.
  5485. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5486. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  5487. virtual.
  5488. * src/DHTMessageDispatcher.h
  5489. * src/DHTMessageDispatcherImpl.{h, cc}
  5490. * src/DHTSetup.cc
  5491. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5492. Adding handling of DHT error message. Just log error message and
  5493. throw exception.
  5494. * src/DHTMessageFactoryImpl.cc
  5495. * test/DHTMessageFactoryImplTest.cc
  5496. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Added handling of dynamic cast failure.
  5498. * src/DHTNodeLookupTask.cc
  5499. * src/DHTPeerLookupTask.cc
  5500. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5501. Added the ability to stop aria2 itself when given time has passed
  5502. from start. Use --stop option to specify time in minutes.
  5503. When 0 is given, this feature is disabled.
  5504. * src/OptionHandlerFactory.cc
  5505. * src/TimeBasedCommand.h: Make _interval protected scope.
  5506. * src/HelpItemFactory.cc
  5507. * src/option_processing.cc
  5508. * src/prefs.h
  5509. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  5510. before calling RequestGroupMan::fillRequestGroupFromReserver().
  5511. Without this modification, the result list shows "ERR" when aria2 is
  5512. stopped by --stop option. It should be "INPR".
  5513. * src/DownloadEngine.{h, cc}
  5514. * src/DownloadEngineFactory.cc
  5515. * src/usage_text.h
  5516. * src/TimedHaltCommand.{h, cc}: New class.
  5517. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5518. Bootstrap through node added by port message.
  5519. Currently bootstrap is executed if the number of buckets in routing
  5520. table is 1.
  5521. * src/BtPortMessage.{h, cc}
  5522. * src/DefaultBtMessageFactory.{h, cc}
  5523. * src/PeerInteractionCommand.cc
  5524. * test/BtPortMessageTest.cc
  5525. * test/MockDHTTask.h
  5526. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Extract the Peer class's member variables, which are only needed after
  5528. PeerInteractionCommand, into PeerSessionResource class.
  5529. This class is instantiated in PeerInteractionCommand class's ctor and
  5530. released in its dtor.
  5531. This will make Peer class lightweight and uses less memory for peers
  5532. which are not connected and wait in the queue.
  5533. * src/PeerChokeCommand.cc
  5534. * src/PeerSessionResource.{h, cc}
  5535. * src/PeerInteractionCommand.cc
  5536. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  5537. * src/DefaultBtInteractive.cc
  5538. * src/BtPieceMessage.cc
  5539. * src/BtInterestedMessage.cc
  5540. * src/BtUnchokeMessage.cc
  5541. * src/DefaultPeerStorage.{h, cc}
  5542. * src/PeerInitiateConnectionCommand.cc
  5543. * src/ActivePeerConnectionCommand.cc
  5544. * src/BtNotInterestedMessage.cc
  5545. * src/DefaultBtMessageDispatcher.cc
  5546. * src/BtChokeMessage.cc
  5547. * src/BtRequestMessage.cc
  5548. * src/Peer.{h, cc}
  5549. * src/BtRegistry.h
  5550. * src/TrackerWatcherCommand.cc
  5551. * src/PeerReceiveHandshakeCommand.cc
  5552. * test/BtExtendedMessageTest.cc
  5553. * test/BtAllowedFastMessageTest.cc
  5554. * test/BtCancelMessageTest.cc
  5555. * test/DefaultPieceStorageTest.cc
  5556. * test/BtBitfieldMessageTest.cc
  5557. * test/BtHaveMessageTest.cc
  5558. * test/BtNotInterestedMessageTest.cc
  5559. * test/BtRequestMessageTest.cc
  5560. * test/PeerSessionResourceTest.cc
  5561. * test/DefaultBtMessageDispatcherTest.cc
  5562. * test/PeerTest.cc
  5563. * test/BtInterestedMessageTest.cc
  5564. * test/BtRejectMessageTest.cc
  5565. * test/BtChokeMessageTest.cc
  5566. * test/DefaultPeerStorageTest.cc
  5567. * test/BtHaveNoneMessageTest.cc
  5568. * test/BtHaveAllMessageTest.cc
  5569. * test/DefaultExtensionMessageFactoryTest.cc
  5570. * test/BtUnchokeMessageTest.cc
  5571. * test/DefaultBtMessageFactoryTest.cc
  5572. * test/HandshakeExtensionMessageTest.cc
  5573. * test/UTPexExtensionMessageTest.cc
  5574. * test/DefaultBtRequestFactoryTest.cc
  5575. * test/BtPieceMessageTest.cc
  5576. Removed typedef PeerStats.
  5577. * src/PeerStat.h
  5578. * src/SegmentMan.cc
  5579. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5580. Added std namespace to copy, remove_copy, back_inserter,
  5581. front_inserter.
  5582. * src/RequestGroupMan.cc
  5583. * src/DefaultPieceStorage.cc
  5584. * src/StreamFileAllocationEntry.cc
  5585. * src/BtFileAllocationEntry.cc
  5586. * src/RequestGroup.cc
  5587. * src/MetalinkEntry.cc
  5588. * src/DelegatingPeerListProcessor.cc
  5589. * src/DefaultBtRequestFactory.cc
  5590. * src/DefaultBtMessageDispatcher.cc
  5591. * src/version_usage.cc: Included <algorithm>
  5592. * src/main.cc
  5593. * src/MetalinkParserController.cc
  5594. * src/DefaultBtContext.cc
  5595. * src/DownloadEngineFactory.cc
  5596. * src/a2algo.h
  5597. Removed.
  5598. * test/StreamUriListParserTest.cc
  5599. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5600. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  5601. ActivePeerConnectionCommand when it is given and
  5602. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  5603. * src/ActivePeerConnectionCommand.{h, cc}
  5604. * src/BtSetup.cc
  5605. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5606. Only add socket to DownloadEngine's select routine when peer or
  5607. localhost is unchoked and interested. This lowers CPU usage a
  5608. little bit.
  5609. * src/PeerInteractionCommand.cc
  5610. * src/PeerAbstractCommand.{h, cc}
  5611. * src/BtInteractive.h
  5612. * src/DefaultBtInteractive.{h, cc}
  5613. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5614. Revert previous change because get_peers message is needed for
  5615. announce_peer anyway.
  5616. * src/DHTGetPeersCommand.cc
  5617. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. Request peers thought DHT only when download hasn't finished.
  5619. * src/DHTGetPeersCommand.cc
  5620. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5621. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  5622. * src/DHTBucketRefreshTask.{h, cc}
  5623. * src/DHTSetup.cc
  5624. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5625. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  5626. standard classes.
  5627. Included string.h where mem* function are used.
  5628. Added namespace aria2.
  5629. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5630. Create directory before saving DHT routing table.
  5631. Now ios::failure is now handled properly.
  5632. * src/DHTAutoSaveCommand.cc
  5633. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5634. Removed unnecessary cerr.
  5635. * src/DownloadEngine.cc
  5636. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Catch exception inside DHTMessageReceiver::receiveMessage().
  5638. Log unknown message.
  5639. * src/DHTMessageReceiver.{h, cc}
  5640. * src/DHTMessageFactory.h
  5641. * src/DHTMessageFactoryImpl.{h, cc}
  5642. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  5643. * src/DHTInteractionCommand.cc
  5644. * src/DHTUnknownMessage.{h, cc}
  5645. * test/DHTUnknownMessageTest.cc
  5646. * test/MockDHTMessageFactory.h
  5647. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Commented out ip address comparison because a host can have multiple
  5649. ip addresses and it is hard to predict the hostname is resolved into
  5650. which one.
  5651. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  5652. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5653. * po/Makefile.in: Removed since this is generated by configure.
  5654. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5655. Fixed compiler warning about redefinition of SIZE_MAX.
  5656. Use common.h instead of config.h directly here.
  5657. * src/Platform.{h, cc}
  5658. The check of ENABLE_NLS is made in gettext.h, so it is not required
  5659. here.
  5660. * common.h
  5661. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  5662. Updated gettext related files.
  5663. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  5664. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  5665. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Added DHT functionality, compatible with mainline.
  5667. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  5668. You may need to specify entry point to DHT network using
  5669. --dht-entry-point. DHT uses UDP port to listen incoming message.
  5670. Use --dht-listen-port to specify port number. Make sure that your
  5671. firewall configuration can pass through UDP traffic to the port.
  5672. The routing table is saved in $HOME/.aria2/dht.dat.
  5673. * src/DHT*
  5674. * src/BNode.{h, cc}
  5675. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  5676. particular torrent.
  5677. * src/Data.cc: Rewritten ctor.
  5678. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  5679. --dht-entry-point.
  5680. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  5681. * src/RequestGroup.cc: Initialize DHT functionality. When download
  5682. ends, remove BtContext from DHTPeerAnnounceStorage.
  5683. * src/BtPortMessage.{h, cc}: Rewritten.
  5684. * src/message.h
  5685. * src/OptionHandlerImpl.cc
  5686. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  5687. --dht-entry-point.
  5688. * src/Dictionary.{h, cc} (remove): New function.
  5689. * src/prefs.h
  5690. * src/DefaultBtMessageFactory.h
  5691. * src/BtHandshakeMessage.cc
  5692. * src/ActivePeerConnectionCommand.cc
  5693. * src/SocketCore.{h, cc}: Added datagram socket support.
  5694. * src/DefaultBtMessageFactory.cc
  5695. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  5696. Create DHT commands.
  5697. * src/BtMessageFactory.h
  5698. * src/PeerMessageUtil.{h, cc}
  5699. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. Fixed the bug that log file is not written when configuration file doesn't exist.
  5701. This is caused by using Logger class before LogFactory is not configured.
  5702. BUG #1875079
  5703. * src/option_processing.cc
  5704. Warning message "configuration doesn't exist" is only printed when --conf is
  5705. given.
  5706. * src/option_processing.cc
  5707. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  5709. ShaVisitor is now deprecated and slated to be removed.
  5710. * src/DefaultBtContext.cc
  5711. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5712. Externalize message to message.h
  5713. * src/Platform.cc
  5714. * src/message.h
  5715. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5716. Set default domain and default path to cookie.
  5717. * src/HttpResponse.cc
  5718. * src/CookieBox.{h, cc}
  5719. * src/CookieParser.{h, cc}
  5720. * test/CookieParserTest.cc
  5721. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Added --no-conf and --conf-path command-line option.
  5723. --no-conf option disables loading aria2.conf file.
  5724. --conf-path option changes the configuration file path. The default
  5725. file path is $HOME/.aria2/aria2.conf
  5726. Added a warning message when the configuration file is not found.
  5727. * src/HelpItemFactory.cc
  5728. * src/option_processing.cc
  5729. * src/prefs.h
  5730. * src/usage_text.h
  5731. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5732. Added the message to inform users that other help categories are
  5733. available in -h option.
  5734. * src/version_usage.cc
  5735. * src/TagContainer.{h, cc}
  5736. * test/TagContainerTest.cc
  5737. * src/TaggedItem.{h, cc}
  5738. * test/TaggedItemTest.cc
  5739. * src/HelpItem.h
  5740. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5741. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  5742. from PiecedSegment's ctor.
  5743. Previously Piece::getAllMissingBlockIndexes() is called from
  5744. PiecedSegment() but it is rather expensive since only first element is
  5745. used.
  5746. * src/PiecedSegment.cc
  5747. * src/Piece.{h, cc}
  5748. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. Rewritten get*Missing*Index functions. Now no need to allocate memory
  5750. each time these functions are called.
  5751. * src/BitfieldMan.{h, cc}
  5752. * test/BitfieldManTest.cc
  5753. * src/array_fun.h
  5754. * test/array_funTest.cc
  5755. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  5756. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  5757. filtered. Removed unnecessary cast to int32_t.
  5758. * src/BitfieldMan.{h, cc}
  5759. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5760. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  5761. payload length(4bytes) are received. This happens because lenbufLength
  5762. is not updated in this particular case and successive call of
  5763. receiveMessage() overwrites payload length with bytes recieved which
  5764. are payload body.
  5765. * src/PeerConnection.{h, cc}
  5766. * src/message.h
  5767. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5768. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  5769. peer if there are peers that have same ipaddr and port.
  5770. I've experiened segmentation fault and "pure virtual function was
  5771. called" error.
  5772. * src/Peer.h
  5773. * test/PeerTest.cc
  5774. * src/DefaultPeerStorage.cc
  5775. * test/DefaultPeerStorageTest.cc
  5776. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5777. Removed a call to isPowerOf() because it is no longer necessary here
  5778. and a request block is not always power of 2.
  5779. BUG#1866924
  5780. * src/PeerMessageUtil.cc (checkLength)
  5781. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5782. Fixed the bug that always first found Segment is removed from
  5783. usedSegmentEntries. Removed unused functions.
  5784. * src/SegmentMan.{h, cc}
  5785. * test/SegmentManTest.cc
  5786. Fixed the bug that ServerHost is not removed.
  5787. * src/RequestGroup.cc
  5788. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5789. Fixed the bug that SegmentMan::completeSegment() is not called
  5790. even if Segment is complete when --lowest-speed-limit is enabled.
  5791. BUG#1864525
  5792. * src/DownloadCommand.{h, cc}
  5793. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5794. Fixed: hash algorithm 'sha1' is always used.
  5795. * src/DownloadCommand.cc (validatePieceHash)
  5796. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Added --enable-peer-exchange command-line option.
  5798. * src/OptionHandlerFactory.cc
  5799. * src/HelpItemFactory.cc
  5800. * src/option_processing.cc
  5801. * src/usage_text.h
  5802. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5803. Move extension from BtRuntime to ExtensionMessageFactory, because
  5804. extension can be specified per peer, not per torrent.
  5805. * src/DefaultBtInteractive.cc
  5806. * src/BtRuntime.h
  5807. * src/ExtendedMessagingAware.h
  5808. * src/ExtensionMessageFactory.h
  5809. * src/DefaultExtensionMessageFactory.cc
  5810. * test/DefaultExtensionMessageFactoryTest.cc
  5811. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Added categorized option help. Specify category using --help option.
  5813. Also added the ability to search options in forward match.
  5814. * src/HelpItem.{h, cc}
  5815. * test/HelpItemTest.cc
  5816. * src/HelpItemFactory.{h, cc}
  5817. * src/TagContainer.{h, cc}
  5818. * test/TagContainerTest.cc
  5819. * src/option_processing.cc
  5820. * src/prefs.h
  5821. * src/TaggedItem.{h, cc}
  5822. * test/TaggedItemTest.cc
  5823. * src/version_usage.cc
  5824. * src/help_tags.h
  5825. * src/usage_text.h
  5826. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Fixed segmentation fault when bad torrent metainfo is parsed.
  5828. Added dynamic_cast properly to detect the misconfiguration of metainfo
  5829. and then throw exception or skip it.
  5830. * src/DefaultBtContext.{h, cc}
  5831. * test/DefaultBtContextTest.cc
  5832. * src/AnnounceList.cc
  5833. * src/CompactPeerListProcessor.cc
  5834. * src/message.h
  5835. * src/DefaultBtAnnounce.{h, cc}
  5836. * test/DefaultBtAnnounceTest.cc
  5837. * src/BencodeVisitor.cc
  5838. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5839. Added missing "B"(=Byte). So now the message looks like this:
  5840. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  5841. * src/message.h (MSG_SHARE_RATIO_REPORT)
  5842. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5843. Show the seed ratio after torrent downloads.
  5844. For example, after torrent download completed and --seed-time and
  5845. --seed-ratio conditions are fulfilled, following message is printed
  5846. right after "Download complete: .....":
  5847. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  5848. * src/RequestGroupMan.cc
  5849. * src/RequestGroup.{h, cc}
  5850. * src/message.h
  5851. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. Remove a defunct control file. A defunct control file means that while
  5853. it exists, but the corresponding download file is missing.
  5854. After its removal, a download restarts from the beginning.
  5855. * src/RequestGroup.cc
  5856. * src/message.h
  5857. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5858. Allocate bitfield in Peer when it is really used. More specifically,
  5859. bitfield in Peer is allocated after the connection is established and
  5860. deallocated when the connection is dropped.
  5861. Since 2 parameters(piece length and total length) was removed from the
  5862. constructor of Peer class, many test classes were modified accordingly.
  5863. See svn log for more detailed information.
  5864. * src/PeerInteractionCommand.cc
  5865. * src/CompactPeerListProcessor.cc
  5866. * src/Peer.cc
  5867. * src/DefaultPeerListProcessor.cc
  5868. * src/PeerListenCommand.cc
  5869. * src/PeerReceiveHandshakeCommand.cc
  5870. Fixed memory leak
  5871. * src/Piece.cc
  5872. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5873. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  5874. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  5875. command-line options.
  5876. * src/option_processing.cc
  5877. * src/ActivePeerConnectionCommand.cc
  5878. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5879. Send have message to peer if it already has the piece.
  5880. * src/BtHaveMessage.{h, cc}
  5881. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5882. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  5883. port.
  5884. * src/DefaultPeerStorage.{h, cc}
  5885. * test/DefaultPeerStorageTest.cc
  5886. * src/HandshakeExtensionMessage.cc
  5887. * test/HandshakeExtensionMessageTest.cc
  5888. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  5889. * src/PeerStorage.h
  5890. * test/MockPeerStorage.h
  5891. * src/PeerListenCommand.cc
  5892. * src/PeerReceiveHandshakeCommand.cc
  5893. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5894. Added --metalink-enable-unique-protocol option.
  5895. * src/Metalink2RequestGroup.cc
  5896. * src/option_processing.cc
  5897. * src/prefs.h
  5898. * src/version_usage.cc
  5899. * doc/aria2c.1.txt
  5900. * doc/aria2c.1
  5901. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5902. Allow a peer in incomingPeer to be added peers.
  5903. * src/DefaultPeerStorage.cc
  5904. * test/DefaultPeerStorageTest.cc
  5905. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5906. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  5907. I could reproduce this bug in following procedure:
  5908. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  5909. 2. Restart aria2.
  5910. 3. You see the download stopped around 99%.
  5911. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5912. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  5913. If timeout is reached, then _nextCommand is unused and it may contains
  5914. segments and they won't be canceled. Actually, timeout is not needed
  5915. here because if the server dropped connection, then retry is made.
  5916. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. Added uTorrent compatible Peer Exchange.
  5918. * src/BencodeVisitor.{h, cc}
  5919. * test/BencodeVisitorTest.cc
  5920. * src/BtConstants.h
  5921. * src/BtContext.h: Added 'private' flag.
  5922. * src/BtExtendedMessage.{h, cc}
  5923. * test/BtExtendedMessageTest.cc
  5924. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  5925. reserved field.
  5926. * test/BtHandshakeMessageTest.cc
  5927. * src/BtMessageFactory.h
  5928. * src/BtRegistry.h
  5929. * src/BtRuntime.h: This class holds default extension message IDs for
  5930. aria2. By default, aria2 uses ID 8 for ut_pex.
  5931. * src/DefaultBtContext.cc
  5932. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  5933. When it is true, aria2 enables ut_pex. This value is set by
  5934. PeerInteractionCommand.
  5935. * src/DefaultBtMessageFactory.{h, cc}
  5936. * test/DefaultBtMessageFactoryTest.cc
  5937. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  5938. handling to DefaultBtInteractive class.
  5939. * src/DefaultExtensionMessageFactory.{h, cc}
  5940. * test/DefaultExtensionMessageFactoryTest.cc
  5941. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  5942. the container(peers and incomingPeers. The equality is determined by
  5943. Peer::id).
  5944. * test/DefaultPeerStorageTest.cc
  5945. * src/ExtensionMessage.h
  5946. * test/MockExtensionMessage.h
  5947. * src/ExtensionMessageFactory.h
  5948. * test/MockExtensionMessageFactory.h
  5949. * src/HandshakeExtensionMessage.{h, cc}
  5950. * test/HandshakeExtensionMessageTest.cc
  5951. * src/MetaEntry.h
  5952. * src/Peer.{h, cc}
  5953. * src/PeerInteractionCommand.cc
  5954. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  5955. addIncomingPeer.
  5956. * src/PeerMessageUtil.{h, cc}
  5957. * src/PeerObject.h
  5958. * src/UTPexExtensionMessage.{h, cc}
  5959. * test/UTPexExtensionMessageTest.cc
  5960. * src/message.h
  5961. * src/prefs.h
  5962. Fixed the bug that returns incomplete data when it contains null
  5963. character. A convenient constructor was also added.
  5964. * src/Data.{h, cc}
  5965. Rewritten.
  5966. * src/CompactPeerListProcessor.cc
  5967. Fixed typos.
  5968. * src/message.h
  5969. * src/MetaFileUtil.cc
  5970. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5971. Added "Status Legend" label to the explanation text of 'stat' in
  5972. download result and moved it to the last. BUG#1848214
  5973. * src/RequestGroupMan.cc
  5974. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5975. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  5976. * src/Makefie.am
  5977. * test/Makefile.am
  5978. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5979. Fixed the bug that prevents aria2 from loading cookie file when expire
  5980. value is greater than 2^31-1. BUG#1851066
  5981. * src/CookieBoxFactory.cc
  5982. * test/CookieBoxFactoryTest.cc
  5983. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5984. Fixed possible memory leak when an exception is thrown.
  5985. * src/XML2SAXMetalinkProcessor.cc
  5986. Added Expat support. If both libxml2 and Expat are installed, then
  5987. libxml2 is used by default.
  5988. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  5989. ExpatMetalinkProcessor according to the configuration.
  5990. * src/ExpatMetalinkProcessor.{h, cc}
  5991. * src/main.cc: Removed libxml2 specific header and init/free function.
  5992. * src/MetalinkProcessorFactory.{h, cc}
  5993. * src/MetalinkHelper.cc
  5994. * src/Metalinker.h: Removed unnecessary libxml2 header.
  5995. * src/MetalinkProcessor.h
  5996. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  5997. MetalinkProcessorTest is used instead.
  5998. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  5999. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  6000. MetalinkProcessorFactory::newInstance().
  6001. * m4/libexpat.m4
  6002. * configure.ac: Added configuration options for libexpat.
  6003. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6004. Disabled -s option in metalink download.
  6005. * src/Metalink2RequestGroup.cc
  6006. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6007. If several protocols are available for a mirror in metalink file,
  6008. aria2 now use one of them. --metalink-preferred-protocol option was
  6009. added to specify the preference of protocol.
  6010. * src/AbstractCommand.cc
  6011. * src/OptionHandlerFactory.cc
  6012. * src/ServerHost.{h, cc}
  6013. * src/Metalink2RequestGroup.cc
  6014. * src/RequestGroup.{h, cc}
  6015. * test/RequestGroupTest.cc
  6016. * src/option_processing.cc
  6017. * src/prefs.h
  6018. * src/HttpResponseCommand.cc
  6019. * src/MetalinkResource.{h, cc}
  6020. * src/FtpNegotiationCommand.cc
  6021. * src/MetalinkEntry.{h, cc}
  6022. * src/MetalinkEntryTest.cc
  6023. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6024. Code cleanup and added debug log.
  6025. * src/PeerConnection.cc
  6026. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6027. Compiler error fix: applied the patch by Tiziano Mueller
  6028. * src/RequestGroup.cc
  6029. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6030. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6031. in stopped and completed event.
  6032. * src/AnnounceList.{h, cc}
  6033. * test/AnnounceListTest.cc
  6034. * src/DefaultBtAnnounce.cc
  6035. * test/DefaultBtAnnounceTest.cc
  6036. Sorted URLs.
  6037. * test/Metalink2RequestGroupTest.cc
  6038. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Removed unnecessary string copy. Updated doc and corrected indentation.
  6040. * src/Base64.cc
  6041. Fixed compilation warnings
  6042. * test/DataTest.cc
  6043. * test/HttpRequestTest.cc
  6044. * test/MetaFileUtilTest.cc
  6045. * test/RequestTest.cc
  6046. * Release 0.12.0
  6047. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6048. Updated translations
  6049. * po/{de,fr,ja,nl,ru}.po
  6050. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6051. translations. Many thanks to translators.
  6052. * po/{ca,es,it,pt_BR,sv}.po
  6053. * po/LINGUAS
  6054. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6055. Added a notice about URL
  6056. * src/version_usage.cc
  6057. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6058. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6059. aria2 repeatedly sends stopped request when tracker returns error code.
  6060. * src/AnnounceList.cc
  6061. * test/AnnounceListTest.cc
  6062. * src/AnnounceTier.h
  6063. Added a message when ctrl-c is hit.
  6064. Now second ctrl-c is also handled in signal handler.
  6065. * src/RequestGroupMan.{h, cc}
  6066. * src/RequestGroup.{h, cc}
  6067. * src/MultiUrlRequestInfo.cc
  6068. * src/DownloadEngine.cc
  6069. * src/TrackerWatcherCommand.cc
  6070. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Code cleanup
  6072. * src/Base64.cc (encode)
  6073. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. Changed Direct/IO enable/disable procesure in file allocation routine.
  6075. * src/SingleFileAllocationIterator.cc
  6076. (SingleFileAllocationIterator):
  6077. Disable directIO if offset is not multiple of 512.
  6078. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6079. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6080. Enable created SingleFileAllocationIterator's directIO.
  6081. * src/FileAllocationEntry.cc
  6082. (FileAllocationEntry): Enable directIO here.
  6083. (~FileAllocationEntry): Disable directIO here.
  6084. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6085. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6086. * src/Peer.{h, cc}
  6087. * src/DefaultPieceStorage.cc
  6088. * test/DefaultPieceStorageTest.cc
  6089. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6090. Rewritten direct I/O support routine
  6091. * src/SingleFileAllocationIterator.cc
  6092. * src/MultiDiskAdaptor.{h, cc}
  6093. * src/ByteArrayDiskWriter.h
  6094. * src/AbstractSingleDiskAdaptor.h
  6095. * src/AbstractDiskWriter.cc
  6096. * src/DefaultPieceStorage.cc
  6097. * src/DiskWriter.h
  6098. * src/BinaryStream.h
  6099. * src/IteratableChunkChecksumValidator.cc
  6100. * src/IteratableChecksumValidator.cc
  6101. * src/CheckIntegrityEntry.cc
  6102. * src/FileAllocationEntry.cc
  6103. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6104. Fixed typo
  6105. * src/version_usage.cc
  6106. Updated doc
  6107. * doc/aria2c.1.txt
  6108. * doc/aria2c.1
  6109. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6110. Fixed compile error without message digest support.
  6111. * src/FileMetalinkParserState.cc
  6112. * src/MetalinkParserController.{h, cc}
  6113. * test/XML2SAXMetalinkProcessorTest.cc
  6114. * test/MetalinkParserControllerTest.cc
  6115. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6116. Enable direct I/O support in checksum checking.
  6117. * src/IteratableChunkChecksumValidator.{h, cc}
  6118. * test/IteratableChunkChecksumValidatorTest.cc
  6119. * src/CheckIntegrityEntry.cc
  6120. * src/PieceHashCheckIntegrityEntry.cc
  6121. * src/IteratableChecksumValidator.{h, cc}
  6122. * src/BtCheckIntegrityEntry.cc: Added doc.
  6123. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6124. Added --allow-piece-length-change option.
  6125. * src/DefaultBtProgressInfoFile.cc
  6126. * test/DefaultBtProgressInfoFileTest.cc
  6127. * src/OptionHandlerFactory.cc
  6128. * src/option_processing.cc
  6129. * src/prefs.h
  6130. * src/version_usage.cc
  6131. * doc/aria2c.1.txt
  6132. * doc/aria2c.1
  6133. Fixed: duplicated result entry appears when exception is thrown in
  6134. RequestGroup::createInitiateConnectionCommand().
  6135. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6136. Add RequestGroup to _requestGroup after RequetGroup::
  6137. createInitiateConnectionCommand() succeeds.
  6138. Externalized message
  6139. * src/XML2SAXMetalinkProcessor.cc
  6140. * src/message.h
  6141. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Forced download abort when received negative response from http/ftp
  6143. server.
  6144. * src/HttpResponseCommand.cc
  6145. * src/FtpNegotiationCommand.cc
  6146. * src/HttpResponse.cc
  6147. * src/FtpConnection.cc
  6148. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6149. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6150. the predecessor, Xml2MetalinkParser class.
  6151. I tested them against 94KB metalink file with 1234 chunk checksums.
  6152. The new one parsed it in 22msec, while it took 6000msec with old one.
  6153. * src/XML2SAXMetalinkProcessor.{h, cc}
  6154. * test/XML2SAXMetalinkProcessorTest.cc
  6155. * src/MetalinkParserController.{h, cc}
  6156. * test/MetalinkParserControllerTest.cc
  6157. * src/MetalinkParserState.h: Also added 16 subclasses.
  6158. * src/main.cc
  6159. * src/Metalink2RequestGroup.cc
  6160. * src/MetalinkHelper.cc
  6161. * src/MetalinkEntry.cc
  6162. * src/ChunkChecksum.h
  6163. Rewritten Base64 class for better performance.
  6164. * src/Base64.{h, cc}
  6165. * test/Base64Test.cc
  6166. * src/HttpRequest.cc
  6167. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. Fixed the bug#1841757: aria2 will connect to server to only get
  6169. file size.
  6170. * src/StreamFileAllocationEntry.cc
  6171. * src/option_processing.cc
  6172. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6173. downloads.
  6174. * src/FtpNegotiationCommand.cc
  6175. Suppressed wrong message when finding PreDownloadHandler
  6176. * src/RequestGroup.cc
  6177. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Updated usage
  6179. * src/version_usage.cc
  6180. Updated man page
  6181. * doc/aria2c.1.txt
  6182. * doc/aria2c.1
  6183. Updated po files
  6184. * po/aria2c.pot
  6185. * po/*.po
  6186. * po/*.gmo
  6187. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6188. Eliminated g++-4.2 warning
  6189. * src/DownloadHandlerConstants.{h, cc}
  6190. * src/Util.cc
  6191. * test/MetaFileUtilTest.cc
  6192. * test/PStringBuildVisitorTest.cc
  6193. Fixed bug: --check-integrity doesn't work for multi file torrent.
  6194. * src/RequestGroup.cc
  6195. * src/BtCheckIntegrityEntry.cc
  6196. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6197. Fixed a2io.h
  6198. * src/a2io.h
  6199. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6200. Added direct I/O support. The current implementation uses O_DIRECT,
  6201. which is not posix standard and is tested on linux 2.6.21.
  6202. Currently only file allocation uses direct I/O.
  6203. * src/SingleFileAllocationIterator.{h, cc}
  6204. * test/SingleFileAllocationIteratorTest.cc
  6205. * src/MultiFileAllocationIterator.{h, cc}
  6206. * test/MultiFileAllocationIteratorTest.cc
  6207. * src/BinaryStream.h
  6208. * src/DiskWriter.h
  6209. * src/AbstractDiskWriter.{h, cc}
  6210. * src/ByteArrayDiskWriter.h
  6211. * src/DiskAdaptor.h
  6212. * src/AbstractSingleDiskAdaptor.{h, cc}
  6213. * src/MultiDiskAdaptor.{h, cc}
  6214. * src/FileAllocationEntry.cc
  6215. * src/Util.{h, cc}
  6216. * src/OptionHandlerFactory.cc
  6217. * src/prefs.h
  6218. * src/version_usage.cc
  6219. * src/option_processing.cc
  6220. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  6221. handleException.
  6222. * src/MultiFileAllocationIterator.cc
  6223. Added EINTR handling
  6224. * src/SocketCore.cc
  6225. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Updated usage
  6227. * src/version_usage.cc
  6228. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6229. Applied Ross's patch for MinGW port.
  6230. * src/DownloadEngine.h
  6231. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Set Content-Type to SingleFileDownloadContext when http response is
  6233. received.
  6234. * src/HttpResponseCommand.cc
  6235. * src/HttpResponse.{h, cc}
  6236. * test/HttpResponseTest.cc
  6237. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6238. Rewritten to add content-type support.
  6239. * src/DownloadHandler.{h, cc}
  6240. * src/BtPostDownloadHandler.{h, cc}
  6241. * test/BtPostDownloadHandlerTest.cc
  6242. * src/MetalinkPostDownloadHandler.{h, cc}
  6243. * test/MetalinkPostDownloadHandlerTest.cc
  6244. * src/PostDownloadHandler.{h, cc}
  6245. * src/DownloadHandlerConstants.{h, cc}
  6246. * src/RequestGroup.cc
  6247. * src/HttpResponseCommand.cc
  6248. * src/FtpNegotiationCommand.cc
  6249. * src/SingleFileDownloadContext.{h, cc}
  6250. * src/RequestGroup.h
  6251. * src/RequestGroupCriteria.h
  6252. * src/ContentTypeRequestGroupCriteria.h
  6253. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6254. If it is give, metalink/torrent file is not written to the disk, but
  6255. just is kept in memory. Parsing is occurred on memory.
  6256. * src/MetalinkHelper.{h, cc}
  6257. * src/MetalinkProcessor.h
  6258. * src/Xml2MetalinkProcessor.{h, cc}
  6259. * test/Xml2MetalinkProcessorTest.cc
  6260. * src/DownloadHandlerFactory.{h, cc}
  6261. * test/DownloadHandlerFactoryTest.cc
  6262. * src/PreDownloadHandler.{h, cc}
  6263. * src/OptionHandlerFactory.cc
  6264. * src/DefaultBtContext.{h, cc}
  6265. * test/DefaultBtContextTest.cc
  6266. * src/version_usage.cc
  6267. * src/Metalink2RequestGroup.{h, cc}
  6268. * src/RequestGroup.{h, cc}
  6269. * src/a2functional.h
  6270. * test/a2functionalTest.cc
  6271. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6272. * src/OptionHandlerImpl.h
  6273. * src/prefs.h
  6274. * src/Util.{h, cc}
  6275. * test/UtilTest.cc
  6276. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6277. memory usage.
  6278. * src/RequestGroupMan.{h, cc}
  6279. * src/DownloadEngine.cc
  6280. * src/BtDependency.{h, cc}: Changed the type of dependee from
  6281. WeakHandle to SharedHandle because WeakHandle could be null.
  6282. * src/RequestGroup.{h, cc}
  6283. * src/DownloadEngineFactory.cc
  6284. * src/DownloadResult.h
  6285. Set totalLength after download finished
  6286. * src/UnknownLengthPieceStorage.{h, cc}
  6287. Keep torrent file specified in metalink in memory.
  6288. * src/Metalink2RequestGroup.cc
  6289. * src/BtDependency.cc
  6290. * src/TrueRequestGroupCriteria.h
  6291. Fixed the bug: seekg is used where seekp should be used.
  6292. * src/ByteArrayDiskWriter.cc
  6293. * test/ByteArraydiskWriterTest.cc
  6294. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. Fixed syntax error
  6296. * test/SequenceTest.cc
  6297. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6299. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  6300. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6301. * src/RequestGroup.cc (downloadFinishedByFileLength)
  6302. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6303. Added the check to see whether ares_host_callback accepts timeouts
  6304. with c-ares; only c-ares 1.5.0 or newer accepts it.
  6305. * src/NameResolver.{h, cc}
  6306. * m4/libcares.m4
  6307. * configure.ac: Set C++ for language choice.
  6308. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Fixed: compilation fails without c-ares/ares
  6310. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6311. Generate http/ftp commands only when download is incomplete.
  6312. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6313. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6314. Corrected typo. Examples are removed since they are available in man
  6315. page.
  6316. * src/version_usage.cc
  6317. Updated man page.
  6318. * doc/aria2c.1
  6319. * doc/aria2c.1.txt
  6320. * doc/makeman: Commented out sed command.
  6321. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. Throw DlAbortEx when a remote file is not found.
  6323. * src/HttpResponse.cc
  6324. * src/FtpNegotiationCommand.cc
  6325. * src/message.h
  6326. Overwrite an existing file if --allow-overwrite=true is given.
  6327. * src/RequestGroup.cc
  6328. Removed unused functions
  6329. * src/AbstractCommand.h
  6330. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Removed 'extern' from 'extern typedef ...' in src/*.h
  6332. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6333. Updated usage
  6334. * src/version_usage.cc
  6335. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6336. Trim announce URL
  6337. * src/DefaultBtContext.cc
  6338. * test/ShaVisitorTest.cc
  6339. Trim argument s. Give trimed s to exception constructor.
  6340. * src/Util.cc (parseInt)(parseLLInt)
  6341. * test/UtilTest.cc
  6342. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6343. Set precision back to 1.
  6344. * src/ConsoleStatCalc.cc (calculateStat)
  6345. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Replaced strtol with Util::parseInt
  6347. * src/ChunkedEncoding.cc
  6348. * src/HttpConnection.cc
  6349. * src/CookieBoxFactory.cc
  6350. * src/ParameterizedStringParser.cc
  6351. * src/Util.cc
  6352. * test/UtilTest.cc
  6353. * test/OptionHandlerTest.cc
  6354. * src/Request.cc
  6355. Throw exception when empty string is given. The message for exception
  6356. changed.
  6357. * src/Util.cc (parseInt)(parseLLInt)
  6358. * src/message.h
  6359. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6361. set to 1.
  6362. * src/ConsoleStatCalc.cc (calculateStat)
  6363. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. Preallocate non-requested file which is adjacent forward to requested
  6365. file('requested' files means the files given in --select-file option)
  6366. if they share a same piece.
  6367. This fixes long pause in the file system which doesn't support sparse
  6368. files like FAT32 while downloading.
  6369. * src/MultiFileAllocationIterator.{h, cc}
  6370. * test/MultiFileAllocationIteratorTest.cc
  6371. * src/FileEntry.{h, cc}
  6372. Removed unused _option.
  6373. * src/MultiDiskAdaptor.h
  6374. * test/MultiDiskAdaptorTest.cc
  6375. * src/DefaultPieceStorage.cc
  6376. Set the default value of --seed-ratio to 1.0.
  6377. If 0.0 is given, then seeding continues regardless of share ratio.
  6378. * src/version_usage.cc
  6379. * src/option_processing.cc
  6380. * src/BtSetup.cc
  6381. * doc/aria2c.1.txt
  6382. * doc/aria2c.1
  6383. Fixed: Selective download is not working in BitTorrent
  6384. * src/RequestGroup.cc
  6385. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6386. * src/PieceStorage.h
  6387. * test/MockPieceStorage.h
  6388. * src/UnknownLengthPieceStorage.h
  6389. * src/DefaultPieceStorage.{h, cc}
  6390. * src/Metalink2RequestGroup.cc
  6391. * src/RequestGroup.cc
  6392. * src/Sequence.h
  6393. * test/SequenceTest.cc
  6394. * src/IntSequence.h
  6395. * src/message.h
  6396. * src/Util.{h, cc}
  6397. * test/UtilTest.cc
  6398. Added new function 'parse' to catch exception thrown by subclass's
  6399. parseArg
  6400. * src/OptionHandler.h
  6401. * src/OptionParser.cc
  6402. * src/NameMatchOptionHandler.h
  6403. * src/OptionHandlerImpl.h
  6404. * test/OptionHandlerTest.cc
  6405. Added IntegerRangeOptionHandler. Used for --listen-port and
  6406. --select-file. Now --listen-port accepts range of port.
  6407. * src/OptionHandlerFactory.cc
  6408. * src/version_usage.cc
  6409. * src/OptionHandlerImpl.h
  6410. * src/option_processing.cc
  6411. * src/BtSetup.cc
  6412. * src/PeerListenCommand.{h, cc}
  6413. * doc/aria2c.1.txt
  6414. * doc/aria2c.1
  6415. Implemented operator< for Exception class to provide easy way to print
  6416. exception stack trace.
  6417. * src/Exception.{h, cc}
  6418. * src/main.cc
  6419. * src/option_processing.cc
  6420. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. * src/version_usage.cc
  6422. (showVersion): Reworked.
  6423. (showUsage): Added examples.
  6424. Removed Hint for total length and file name.
  6425. * src/Metalink2RequestGroup.cc
  6426. * src/RequestGroup.{h, cc}
  6427. * src/HttpResponseCommand.cc
  6428. * src/FtpNegotiationCommand.cc
  6429. Now --follow-torrent and --follow-metalink option work properly.
  6430. * src/RequestGroup.cc
  6431. Updated man page
  6432. * doc/aria2c.1.txt
  6433. * doc/aria2c.1
  6434. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. Removed.
  6436. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  6437. Use Segment::operator==()
  6438. * src/HttpConnection.cc
  6439. * src/Segment.h
  6440. Updated usage
  6441. * src/version_usage.cc
  6442. Added EINTR treatment.
  6443. * src/SocketCore.cc
  6444. * src/AbstractDiskWriter.cc
  6445. Rewritten.
  6446. * src/Util.cc (rangedFileCopy)
  6447. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6448. Fixed typo.
  6449. * src/version_usage.cc
  6450. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6451. Implemented. Now -c option works fine.
  6452. * src/DefaultPieceStorage.cc (markPiecesDone)
  6453. * test/DefaultPieceStorageTest.cc
  6454. Removed.
  6455. * src/SegmentMan.{h, cc}
  6456. (markAllPiecesDone)
  6457. (markPieceDone)
  6458. Synchronized po files with
  6459. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  6460. * src/fr.po
  6461. * src/ru.po
  6462. * src/de.po
  6463. * src/ja.po
  6464. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Added ifdef and some modifications to compile without BitTorrent,
  6466. Metalink, MessageDigest
  6467. support.
  6468. * src/PieceHashCheckIntegrityEntry.cc
  6469. * src/MetalinkEntry.h
  6470. * src/version_usage.cc
  6471. * src/main.cc
  6472. * src/DownloadEngine.{h, cc}
  6473. * src/Metalink2RequestGroup.cc
  6474. * src/Peer.cc
  6475. * src/RequestGroup.cc
  6476. * src/MetalinkHelper.cc
  6477. * test/DefaultPieceStorageTest.cc
  6478. * test/MetalinkPostDownloadHandlerTest.cc
  6479. * test/Metalink2RequestGroupTest.cc
  6480. Hide TOTAL SPD when all downloads complete.
  6481. * src/ConsoleStatCalc.cc
  6482. Log target system information.
  6483. * src/main.cc
  6484. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6485. Now --metalink-location accepts a comma-deliminated list of locations.
  6486. * src/MetalinkEntry.{h, cc}
  6487. * test/MetalinkEntryTest.cc
  6488. * src/version_usage.cc
  6489. * src/Metalink2RequestGroup.cc
  6490. * src/Xml2MetalinkProcessor.cc
  6491. * test/Xml2MetalinkProcessorTest.cc
  6492. * doc/aria2c.1.txt
  6493. * doc/aria2c.1
  6494. * src/Util.cc (toUpper)(toLower): Rewritten.
  6495. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6496. Added the ability to detect duplicate download entry which is about to
  6497. download the same file other RequestGroup is downloading.
  6498. * src/RequestGroup.cc
  6499. * src/HttpResponseCommand.cc
  6500. * src/FtpNegotiationCommand.cc
  6501. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Recalculates download progress when loading a control file,
  6503. if the piece length of DownloadContext is different from the one saved
  6504. in the control file. Currently in-flight pieces are ignored.
  6505. * src/DefaultBtProgressInfoFile.cc
  6506. * test/DefaultBtProgressInfoFileTest.cc
  6507. * src/Util.{h, cc}
  6508. * test/UtilTest.cc
  6509. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. Do not rotate tiers in announce-list.
  6511. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  6512. AnnounceList::allTiersFailed() used instead to detect whether all
  6513. tiers are tried and failed.
  6514. * test/DefaultBtAnnounceTest.cc
  6515. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  6516. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  6517. * test/AnnounceListTest.cc
  6518. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  6519. clause. Catch RecoverableException instead of DlRetryEx instead.
  6520. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6521. Implemented checksum validation feature(1 checksum for each file)
  6522. The validation takes place after the download.
  6523. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  6524. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  6525. * src/CheckIntegrityCommand.cc: Changed log message.
  6526. * src/Metalink2RequestGroup.cc: Set checksum to
  6527. SingleFileDownloadContext.
  6528. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  6529. PieceHashCheckIntegrity class.
  6530. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  6531. PieceHashCheckIntegrity class.
  6532. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  6533. * src/IteratableValidator.h: New class.
  6534. * src/message.h
  6535. * src/CheckIntegrityEntry.{h, cc}
  6536. * src/IteratableChunkChecksumValidator.{h, cc}
  6537. * src/SingleFileDownloadContext.h
  6538. * src/DownloadCommand.cc
  6539. --allow-overwrite=true is no longer needed to check file integrity
  6540. before download in BitTorrent download.
  6541. * src/RequestGroup.cc (getInitialCommand)
  6542. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  6543. throws exception.
  6544. * src/RequestGroupMan.cc (getInitialCommands)
  6545. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6546. urlencode the given url inside Request::parseUrl(...)
  6547. * src/Request.{h, cc}
  6548. * src/Util.{h, cc}
  6549. * test/RequestTest.cc
  6550. Removed #!metalink3! notation support because it is deleted from
  6551. the metalink specification.
  6552. * src/Request.{h, cc}
  6553. * test/RequestTest.cc
  6554. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6555. Don't connect server before checking file integrity at startup, if
  6556. filesize and output file path are known.
  6557. * src/AbstractCommand.cc
  6558. * src/StreamFileAllocationEntry.cc
  6559. * src/Metalink2RequestGroup.cc
  6560. * src/RequestGroup.{h, cc}
  6561. * src/HttpResponseCommand.cc
  6562. * src/FtpNegotiationCommand.cc
  6563. Added DownloadFailureException. If it is thrown, RequestGroup should
  6564. halt.
  6565. * src/AbstractCommand.cc
  6566. * src/DownloadFailureException.h
  6567. * src/RequestGroup.cc
  6568. Catch RecoverableException, instead of DlAbortEx.
  6569. * src/RequestGroupMan.cc
  6570. * src/FillRequestGroupCommand.cc
  6571. * src/MetaFileUtil.cc
  6572. * src/IteratableChunkChecksumValidator.cc
  6573. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  6574. getGID())
  6575. * src/CheckIntegrityCommand.cc
  6576. * src/message.h
  6577. Print gid instead of idx.
  6578. * src/RequestGroupMan.cc
  6579. Removed exception throwers declaration.
  6580. * src/DirectDiskAdaptor.{h, cc}
  6581. * src/SocketCore.{h, cc}
  6582. * src/MultiDiskAdaptor.{h, cc}
  6583. * src/HttpConnection.{h, cc}
  6584. * src/HttpResponse.{h, cc}
  6585. * src/DiskAdaptor.{h, cc}
  6586. * src/CopyDiskAdaptor.{h, cc}
  6587. * src/MultiDiskAdaptor.{h, cc}
  6588. * src/HttpHeaderProcessor.{h, cc}
  6589. * src/AbstractSingleDiskAdaptor.{h, cc}
  6590. * src/Util.{h, cc}
  6591. * test/UtilTest.cc
  6592. * src/DefaultDiskWriter.{h, cc}
  6593. * src/FtpConnection.{h, cc}
  6594. * src/AbstractDiskWriter.{h, cc}
  6595. Removed duplicate code.
  6596. * src/StreamCheckIntegrityEntry.cc
  6597. Removed unnecessary include.
  6598. * src/DiskWriter.h
  6599. Included Exception.h
  6600. * src/option_processing.cc
  6601. Included 2 files and added doc
  6602. * src/TrackerWatcherCommand.cc
  6603. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  6604. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6605. Changed CheckIntegrityEntry interface so that it can define
  6606. the action when all the chunk checksums are valid.
  6607. * src/CheckIntegrityEntry.h
  6608. * src/StreamCheckIntegrityEntry.{h, cc}
  6609. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  6610. are valid, then aira2 goes to seeding mode. Sometimes it is better
  6611. to exit rather than doing seeding. So, it would be good to toggle this
  6612. behavior.
  6613. * src/CheckIntegrityCommand.cc
  6614. * src/AbstractCommand.cc
  6615. * src/RequestGroup.cc
  6616. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6617. Reflect the download length of in-flight pieces.
  6618. It makes the download length readout more precise.
  6619. * src/DefaultPieceStorage.{h, cc}
  6620. * test/DefaultPieceStorageTest.cc
  6621. * src/a2functional.h
  6622. * test/a2functionalTest.cc
  6623. Lower CPU load when --max-download-limit is used.
  6624. There is up and down in speed indicator when enabling
  6625. http-pipelining but a download goes well. I think the problem is that
  6626. because http-pipelining is enabled, DownloadCommand is created for
  6627. each segment and in its constructor, PeerStat::downloadStart() is
  6628. called. In PeerStat::downloadStart(), speed calculation object is
  6629. reseted, which makes download speed zero.
  6630. * src/DownloadCommand.cc
  6631. Rewritten using accumulate.
  6632. * src/RequestGroupMan.cc (calculateStat)
  6633. Code clearnup.
  6634. * src/FtpNegotiationCommand.cc
  6635. * src/HttpResponseCommand.cc
  6636. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6637. Fixed: Can not resume: aria2 reports download already finished.
  6638. * src/AbstractCommand.{h, cc}
  6639. * src/HttpResponseCommand.cc
  6640. * src/FtpNegotiateCommand.cc
  6641. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6642. Now a file is stored in the directory specified in .metalnk file
  6643. (file[@name]).
  6644. * src/Metalink2RequestGroup.cc
  6645. Create the directory structure when opening the file if it doesn't
  6646. exist.
  6647. * src/AbstractDiskWriter.cc
  6648. * src/Util.{h, cc}
  6649. * src/File.h
  6650. * test/UtilTest.cc
  6651. Removed file name comparison
  6652. * src/Metalink2RequestGroup.cc
  6653. * src/HttpResponseCommand.cc
  6654. Rewritten using Util::mkdirs()
  6655. * src/FileEntry.cc (setupDir)
  6656. * test/FileEntryTest.cc
  6657. Updated doc
  6658. * src/SingleFileDownloadContext.h
  6659. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. Now SleepCommand dispatches nextCommand when halt is requested.
  6661. It avoids a possible long wait after hitting CTRL-C.
  6662. * src/SleepCommand.{h, cc}
  6663. * src/RequestGroupAware.{h, cc}
  6664. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6665. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  6666. to open listen port, then remove the port number from the tracker
  6667. request.
  6668. * src/DefaultBtAnnounce.cc
  6669. * test/DefaultBtAnnounceTest.cc
  6670. * test/MockPieceStorage.h
  6671. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  6672. them more testable.
  6673. * src/DefaultBtAnnounce.{h, cc}
  6674. * src/DefaultBtContext.{h, cc}
  6675. * src/Util.{h, cc}
  6676. * test/DefaultBtAnnounceTest.cc
  6677. * test/DefaultBtContextTest.cc
  6678. * test/UtilTest.cc
  6679. Added 'B' to upload bytes readout.
  6680. * src/ConsoleStatCalc.cc
  6681. Now the listen port for BitTorrent download is opened when it is
  6682. needed.
  6683. * src/DownloadEngineFactory.cc
  6684. * src/BtSetup.{h, cc}
  6685. * src/PeerListenCommand.{h, cc}
  6686. Now an exception thrown while parsing tracker response is now logged.
  6687. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  6688. called, which means no retry is made in this case, assuming a tracker
  6689. has a problem.
  6690. * src/TrackerWatcherCommand.cc
  6691. Fixed: downloading a file whose length is unkown fails.
  6692. * src/DownloadCommand.cc
  6693. Simplified prepareForNextSegment()
  6694. * src/DownloadCommand.cc
  6695. Updated
  6696. * po/POTFILES.in
  6697. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6698. Re-implemented a file listing for Metalink, which was dropped while
  6699. http/ftp/torrent integration was being implemented.
  6700. * src/MetalinkHelper.{h, cc}: New class.
  6701. * test/MetalinkHelperTest.cc
  6702. * src/main.cc
  6703. * src/Metalink2RequestGroup.cc
  6704. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Added the ability to display the detailed torrent file information.
  6706. Now -S option gives not only a file listing, but also total download
  6707. length, info hash, announce URI, piece length, the number of pieces,
  6708. and mode(single or multi-torrent).
  6709. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  6710. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  6711. KiB)
  6712. * test/UtilTest.cc
  6713. * src/main.cc
  6714. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6715. Added ftp://USER:PASSWD@Servername automatic parsing.
  6716. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  6717. _password. Recognize username and password in URI.
  6718. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  6719. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  6720. * src/RequestFactory.{h, cc}: Removed.
  6721. * src/AuthConfigFactory.{h, cc}: New class.
  6722. * src/FtpConnection.cc: Use AuthConfigFactory.
  6723. * src/HttpRequest.cc: Use AuthConfigFactory.
  6724. * test/HttpRequestTest.cc: Updated.
  6725. * test/RequestTest.cc: Updated.
  6726. * test/AuthConfigFactoryTest.cc: New class.
  6727. * test/RequestFactoryTest.cc: Removed.
  6728. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6729. Use RequestGroup::allDownloadFinished() to decide whether the control
  6730. file should be removed or saved.
  6731. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  6732. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  6733. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6734. Use File::renameTo()
  6735. * src/DefaultBtProgressInfoFile.cc
  6736. Added --no-file-allocation-limit command-line option.
  6737. * src/version_usage.cc
  6738. * src/option_processing.cc
  6739. * src/OptionHandlerFactory.cc
  6740. * src/RequestGroup.{h, cc}
  6741. * src/BtCheckIntegrityEntry.cc
  6742. * src/StreamCheckIntegrityEntry.cc
  6743. * src/prefs.h
  6744. * doc/aria2c.1.txt
  6745. * doc/aria2c.1
  6746. Now prealloc is the default value for --file-allocation option.
  6747. * src/version_usage.cc
  6748. * src/option_processing.cc
  6749. * doc/aria2c.1.txt
  6750. * doc/aria2c.1
  6751. Don't URL-encode user-agent.
  6752. * src/HttpRequest.cc
  6753. Updated translations
  6754. * po/LINGUAS: Added nl for Dutch translation.
  6755. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  6756. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  6757. * po/POTFILES.in: Updated.
  6758. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6759. Added the ability to recognize url-list in a torrent file.
  6760. The retrieved URLs are attached to the corresponding FileEntry.
  6761. * src/DefaultBtContext.{h, cc}
  6762. * src/FileEntry.{h, cc}
  6763. * test/DefaultBtContextTest.cc
  6764. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6765. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  6766. after the download finishes.
  6767. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6768. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  6769. the data smaller than block length.
  6770. A block length can be specified by constructor's argument.
  6771. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  6772. Get a missing piece in the range of given FileEntry. This function is
  6773. not used in the program yet.
  6774. * src/Util.h: Added some macros.
  6775. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6776. Added HTTP/1.1 keep alive and pipelining support.
  6777. See --enable-http-keep-alive and --enable-http-pipelining option.
  6778. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  6779. Segment.
  6780. * src/HttpDownloadCommand.{h, cc}
  6781. * src/OptionHandlerFactory.cc
  6782. * src/HttpConnection.{h, cc}
  6783. * src/version_usage.cc
  6784. * src/HttpInitiateConnectionCommand.cc
  6785. * src/FtpInitiateConnectionCommand.cc
  6786. * src/Segment.h
  6787. * src/HttpRequestCommand.{h, cc}
  6788. * src/option_processing.cc
  6789. * src/prefs.h
  6790. * src/HttpResponseCommand.cc
  6791. * src/SegmentMan.{h, cc}
  6792. * src/FtpNegotiateCommand.cc
  6793. * src/HttpProxyResponseCommand.cc
  6794. * src/Request.cc
  6795. * src/HttpRequest.cc
  6796. * src/DownloadCommand.cc
  6797. * test/HttpRequestTest.cc
  6798. * test/RequestTest.cc
  6799. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6800. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  6801. finished.
  6802. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6803. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  6804. catching it inside the method.
  6805. When no file entry is found in a metalink without querying user
  6806. preferences, throw the exception with the error message that suggests
  6807. metalink file is probably broken.
  6808. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  6809. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6810. Fixed the bug that prevents remote Metalink/Torrent file from begin
  6811. processed.
  6812. * src/RequestGroupMan.cc (removeStoppedGroup)
  6813. Added debug message.
  6814. * src/BtPostDownloadHandler.cc
  6815. * src/MetalinkPostDownloadHandler.cc
  6816. * src/PostDownloadHandler.{h, cc}
  6817. * src/RequestGroup.cc
  6818. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6819. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  6820. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6821. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  6822. stops and there are any unfinished or in-progress downloads.
  6823. Added the legend of "stat".
  6824. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6825. Throw exception when chunck checksum verification fails.
  6826. * src/DownloadCommand.cc (validatePieceHash): New function.
  6827. * src/PiecedSegment.{h, cc} (clear): New function.
  6828. * src/GrowSegment.{h, cc} (clear): New function.
  6829. * src/Segment.h (clear): New function.
  6830. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  6831. * test/SegmentTest.cc
  6832. * test/GrowSegmentTest.cc
  6833. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6834. Do not send referer when redirected.
  6835. * src/Request.cc (redirectUrl)
  6836. * test/RequestTest.cc
  6837. * test/HttpRequestTest.cc
  6838. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6839. Implemented BitTorrent/http/ftp integrated download.
  6840. I've rewritten lots of files and now some headers have forward
  6841. class declarations to reduce compile time.
  6842. The implementation is extremely alpha stage, I recommend to use this
  6843. for testing purpose only.
  6844. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Fixed the compilation error on 64bit platform.
  6846. * test/HttpHeaderProcessorTest.cc
  6847. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. Merged Ross's patch that fixes compilation problem in MinGW
  6849. * test/DefaultBtProgressInfoFileTest.cc
  6850. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6851. Updated fr.po by sebone
  6852. * po/fr.po
  6853. Updated man page.
  6854. * doc/aria2c.1.txt
  6855. * Release 0.11.3
  6856. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  6858. failure in Metalink.
  6859. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Automatically save *.aria2 control file of http/ftp download in every
  6861. 60 seconds.
  6862. * src/AutoSaveCommand.{h, cc}: New class.
  6863. * src/TimeBasedCommand.{h, cc}: New class.
  6864. * src/DownloadEngineFactory.cc (newConsoleEngine)
  6865. Disable parameterized URI support by default. Added -P option to
  6866. enable the feature.
  6867. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  6868. * src/OptionHandlerFactory.cc
  6869. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  6870. Updated Japanese translation.
  6871. * po/ja.po
  6872. Updated man page.
  6873. * doc/aria2c.1.txt
  6874. * Release 0.11.3-rc
  6875. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  6877. it is successful, then renamed to *.aria2.
  6878. This prevents *.aria2 file from being truncated or corrupted when
  6879. file system becomes out of space.
  6880. * src/DefaultBtProgressInfoFile.cc (save)
  6881. * src/SegmentMan.cc (save)
  6882. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  6883. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6884. Reduced the fragmentation of bitfield in http/ftp download.
  6885. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  6886. * test/BitfieldManTest.cc
  6887. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6888. Added the ability to disable segmented download in .metalink.
  6889. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  6890. 'url' tag.
  6891. * src/MetalinkEntry.{h, cc}
  6892. * src/RequestResource.{h, cc}
  6893. * src/MetalinkRequestInfo.cc
  6894. * src/Xml2MetalinkProcessor.cc
  6895. * test/Xml2MetalinkProcessorTest.cc
  6896. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Added parameterized URI support.
  6898. * src/main.cc: -Z option added.
  6899. * src/OptionHandlerFactory.cc
  6900. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  6901. * src/PStringDatum.h: New class.
  6902. * src/PStringSegment.{h,cc}: New class.
  6903. * src/PStringNumLoop.h: New class.
  6904. * src/PStringSelect.h: New class.
  6905. * src/NumberDecorator.h: New class.
  6906. * src/FixedWidthNumberDecorator.h: New class.
  6907. * src/AlphaNumberDecorator.h: New class.
  6908. * src/PStringVisitor.h: New class.
  6909. * src/PStringBuildVisitor.{h,cc}: New class.
  6910. * src/ParameterizedStringParser.{h,cc}: New class.
  6911. * src/Util.{h,cc}
  6912. (isNumber): New function.
  6913. (isLowercase): New function.
  6914. (isUppercase): New function.
  6915. (alphaToNum): New function.
  6916. * test/ParameterizedStringParserTest.cc: New class.
  6917. * test/AlphaNumberDecoratorTest.cc: New class.
  6918. * test/PStringBuildVisitorTest.cc: New class.
  6919. * test/UtilTest.cc
  6920. (testIsNumber): New function.
  6921. (testIsLowercase): New function.
  6922. (testIsUppercase): New function.
  6923. (testAlphaToNum): New function.
  6924. Added '\n' after the error message
  6925. * src/RequestInfo.h (printDownloadAbortMessage)
  6926. Added auto file renaming feature in http(s)/ftp download.
  6927. * src/main.cc: Added --auto-file-renaming command-line option.
  6928. * src/OptionHandlerFactory.cc
  6929. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  6930. * src/RequestGroup.{h, cc}
  6931. (shouldCancelDownloadForSafety): Rewritten
  6932. (tryAutoFileRenaming): New function.
  6933. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  6934. * src/HttpResponseCommand.cc
  6935. (executeInternal): Removed the call to RequestGroupMan::
  6936. isSameFileBeingDownloaded()
  6937. * src/FtpNegotiateCommand.cc
  6938. (recvSize): Removed the call to RequestGroupMan::
  6939. isSameFileBeingDownloaded()
  6940. * test/RequestGroupTest.cc: New class.
  6941. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6942. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  6943. IO.
  6944. * src/DefaultBtProgressInfoFile.cc
  6945. * src/MetaFileUtil.cc
  6946. * src/SimpleLogger.cc
  6947. * src/SegmentMan.cc
  6948. * src/Util.cc
  6949. * src/Platform.cc
  6950. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6951. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  6952. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. Avoid sparse files if possible, because VFAT32 doesn't support it.
  6954. * src/DefaultDiskWriter.cc (initAndOpenFile)
  6955. Fixed the bug that prevents file allocation is not done when
  6956. dowloading multi-torrent file.
  6957. * src/AbstractDiskWriter.cc (openFile)
  6958. Increase the maximum number of -j option from 15 to 45.
  6959. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6960. Added fr.po, thanks to Charles Landemaine.
  6961. * po/fr.po
  6962. * po/LINGUAS
  6963. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6964. gcc 3.4.4 support:
  6965. * src/DefaultBtContext.cc: int32_t -> int
  6966. * src/main.cc: int -> int32_t, int32_t -> int
  6967. * src/messageDigest.h: uint32_t -> unsigned int
  6968. * src/NameResolver.h: int32_t -> int
  6969. * src/PeerConnection.cc: int -> int32_t
  6970. * src/SpeedCalc.cc: int32_t -> int
  6971. * src/TrackerUpdateCommand.h: int -> int32_t
  6972. * src/Util.cc: int32_t -> int
  6973. * src/Util.h: int32_t -> int
  6974. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  6975. * test/AnnounceListTest.cc: int -> int32_t
  6976. * test/ChunkedEncodingTest.cc: int -> int32_t
  6977. * test/DataTest.cc: int -> int32_t
  6978. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  6979. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  6980. * test/DefaultPieceStorageTest.cc: int -> int32_t
  6981. * test/FeatureConfigTest.cc: int -> int32_t
  6982. * test/MetalinkEntryTest.cc: int -> int32_t
  6983. * test/MockBtRequestFactory.h: int -> int32_t
  6984. * test/MockPieceStorage.h: int -> int32_t
  6985. * test/OptionTest.cc: int -> int32_t
  6986. * test/RequestTest.cc: int -> int32_t
  6987. * test/SegmentManTest.cc: int -> int32_t
  6988. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  6989. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6990. Move sleep functions to Util class:
  6991. * src/Util.cc
  6992. (sleep): New function.
  6993. (usleep): New function.
  6994. * src/DownloadCommand.cc: sleep -> Util::sleep
  6995. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  6996. MinGW build enhancements. The following files are added:
  6997. * src/timegm.{c,h}
  6998. Changes to support the above new files:
  6999. * configure.ac
  7000. * src/Makefile.am
  7001. * src/a2time.h
  7002. * src/Util.cc:
  7003. * src/strptime.c: Added support for %Z option.
  7004. Fixed MinGW non-blocking bug.
  7005. * src/SocketCore.cc
  7006. * src/HttpRequestCommand.cc
  7007. Miscellenous build fixes/enhancements.
  7008. * configure.ac: Added summary report.
  7009. * src/Platform.h: Tweaked #include's.
  7010. * src/a2netcompat.h: Tweaked #include's.
  7011. * src/strptime.h: Tweaked #include's.
  7012. * src/gai_strerror.c: Tweaked #include's.
  7013. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7014. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7015. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7016. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7017. Increased the initial connection size in BitTorrent download to 40.
  7018. * src/BtRuntime.h
  7019. Added the usage message of --peer-id-prefix option.
  7020. * src/main.cc
  7021. * Release 0.11.2
  7022. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7023. MessageDigestHelper is introduced in order to simplify the use
  7024. of message digest. Removed repeated code.
  7025. The message digest algorithm is now specified by string, like "sha1",
  7026. "md5".
  7027. * src/messageDigest.{h, cc}
  7028. * src/MessageDigestHelper.{h, cc}: New class.
  7029. * src/DefaultPieceStorage.cc
  7030. * src/DefaultBtContext.{h, cc}
  7031. (computeFastSet): New function.
  7032. (setInfoHash): Added for unit testing.
  7033. (setNumPieces): Added for unit testing.
  7034. * src/DefaultBtInteractive.cc
  7035. * src/BtPieceMessage.cc
  7036. * src/Peer.cc
  7037. * src/Checksum.h
  7038. * src/message.h
  7039. * src/IteratableChecksumValidator.h
  7040. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7041. inside it.
  7042. * src/SegmentMan.{h, cc}
  7043. (checkIntegrity): Removed.
  7044. * src/IteratableChunkChecksumValidator.{h, cc}
  7045. * src/Util.h
  7046. (sha1Sum): Removed.
  7047. (simpleMessageDigest): Removed.
  7048. (fileChecksum): Removed.
  7049. (computeFastSet): Removed.
  7050. * src/ShaVisitor.cc
  7051. * src/ChunkChecksum.h
  7052. * src/DownloadCommand.cc
  7053. Removed messageDigest virtual functions.
  7054. * src/MultiDiskAdaptor.{h, cc}
  7055. * src/DiskAdaptor.h
  7056. * src/ByteArrayDiskWriter.h
  7057. * src/DiskWriter.h
  7058. * src/DiskAdaptorWriter.h
  7059. * src/AbstractSingleDiskAdaptor.{h, cc}
  7060. * src/AbstractDiskWriter.{h, cc}
  7061. Fixed comilation error when message digest is disabled.
  7062. * src/MetalinkEntry.{h, cc}
  7063. * src/MetalinkRequestInfo.cc
  7064. Removed srandom and random.
  7065. * src/SimpleRandomizer.h
  7066. Added size() virtual function to DiskAdaptor
  7067. * src/MultiDiskAdaptor.h
  7068. Fixed the bug that causes that files are not opened correctly in
  7069. multi-file torrent.
  7070. * src/TorrentRequestInfo.cc
  7071. * src/MultiDiskAdaptor.cc
  7072. Added SHA256 support
  7073. * src/messageDigest.cc
  7074. * src/Xml2MetalinkProcessor.cc
  7075. Show supported message digest algorithms
  7076. * src/main.cc
  7077. Updated contact info.
  7078. * src/main.cc
  7079. Applied Ross's patch
  7080. * src/a2netcompat.h
  7081. * src/main.cc
  7082. Fixed the bug that prevents a remote metalink from not being processed
  7083. even if '-o foo.metalink' is specified.
  7084. * src/MetalinkRequestInfo.cc
  7085. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. Merged Dan's patch:
  7087. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7088. Use va_copy to avoid core dump on amd64:
  7089. * src/SimpleLogger.cc
  7090. Updated contact info.
  7091. * src/main.cc
  7092. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7093. digest is not available.
  7094. * src/MetalinkEntry.h
  7095. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7096. Make a2netcompat.h include a2io.h to fix compilation error:
  7097. * src/a2netcompat.h
  7098. * src/SocketCore.cc: Removed include of a2io.h
  7099. * src/Util.cc: Removed include of a2io.h
  7100. Gather time related functions to a2time.h:
  7101. * src/a2time.h: New file.
  7102. * src/DefaultPeerStorage.cc
  7103. * src/SimpleLogger.cc
  7104. * src/Util.{h, cc}
  7105. * src/SimpleRandomizer.h
  7106. * src/TimeA2.{h,cc}
  7107. * src/DownloadCommand.cc
  7108. * src/main.cc
  7109. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7110. a2netcompat.h:
  7111. * src/NameResolver.cc
  7112. Fixed compilation error without openssl:
  7113. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7114. Added default block to suppress compiler warnings:
  7115. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7116. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7117. MinGW build enhancements. The following files are added:
  7118. * src/gai_strerror.{c,h}
  7119. * src/gettimeofday.{c,h}
  7120. Changes to support the above new files:
  7121. * configure.ac
  7122. * src/Makefile.am
  7123. * src/a2netcompat.h
  7124. * src/TimeA2.cc
  7125. * src/DefaultPeerStorage.cc
  7126. * src/NameResolver.cc: removed mingw_strerror() function.
  7127. * src/SocketCore.cc: removed mingw_strerror() function.
  7128. Miscellaneous MinGW build fixes.
  7129. * src/a2io.h: Use _lseeki64() instead of lseek()
  7130. * src/common.h
  7131. * src/DefaultFileAllocator.cc
  7132. * src/GlowFileAllocator.cc
  7133. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7134. * src/NameResolver.cc
  7135. (callback): Changed int32_t to int.
  7136. (resolve): Changed int32_t to int.
  7137. * src/Platform.cc
  7138. * src/Platform.h
  7139. * test/MultiDiskWriterTest.cc
  7140. * test/PeerMessageUtilTest.cc
  7141. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7142. Other enhancements and fixes.
  7143. * src/HttpRequestCommand.cc
  7144. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7145. * src/SocketCore.cc:
  7146. (error): New function to abstract errno/WSAGetLastError().
  7147. (errorMsg): New function to abstract errno/WSAGetLastError().
  7148. (initiateSecureConnection): Added more detailed error reporting.
  7149. * src/SocketCore.h: Added private variable blocking, to allow
  7150. proper handling of OpenSSL psuedo-errors.
  7151. * src/message.h
  7152. (EX_SSL_INIT_FAILURE)
  7153. (EX_SSL_IO_ERROR)
  7154. (EX_SSL_PROTOCOL_ERROR)
  7155. (EX_SSL_UNKNOWN_ERROR)
  7156. (EX_SSL_CONNECT_ERROR)
  7157. (EX_SOCKET_BLOCKING)
  7158. (EX_SOCKET_NONBLOCKING)
  7159. (EX_SOCKET_UNKNOWN_ERROR)
  7160. * src/Util.cc
  7161. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7162. reserved name.
  7163. (httpGMT): Fixed typo.
  7164. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7165. Merged Ross's win32 patch(manually)
  7166. In the course of merging, following files are added.
  7167. * src/strptime.{h,c}
  7168. * src/libgen.{h,c}
  7169. * src/inet_aton.{h,c}
  7170. * src/Platform.{h,cc}
  7171. * src/localtime_r.{h,c}
  7172. * src/getaddrinfo.{h,c}
  7173. I've gethered network related things, and put them to following file:
  7174. * src/a2netcompat.h
  7175. Also io related things are put to following file:
  7176. * src/a2io.h
  7177. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7178. * src/message.h
  7179. (MSG_ALLOCATION_COMPLETED)
  7180. (EX_TOO_LARGE_FILE)
  7181. (EX_SIZE_MISMATCH)
  7182. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7183. (EX_INVALID_CHUNK_CHECKSUM)
  7184. (EX_INVALID_RANGE_HEADER)
  7185. * src/FileAllocationCommand.cc
  7186. * src/HttpResponse.cc
  7187. * src/RequestGroup.cc
  7188. * src/MultiDiskAdaptor.cc
  7189. * src/OptionHandlerImpl.h
  7190. * src/HttpResponseCommand.cc
  7191. * src/FtpNegotiateCommand.cc
  7192. * src/IteratableChecksumValidator.cc
  7193. * src/SegmentMan.cc
  7194. * src/ChunkChecksumValidator.cc
  7195. Added Randomizer::getRandomNumber(long int)
  7196. * src/Randomizer.h (getRandomNumber)
  7197. * src/SimpleRandomizer.h (getRandomNumber)
  7198. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  7199. * src/Util.cc (randomAlpha): Use this new function.
  7200. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7201. Converted int's to in32_t. long long int's are also converted to
  7202. int64_t
  7203. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Fixed the bug that prevents cookies from being sent to the server
  7205. if the domain of cookie is FQDN and starts with ".".
  7206. * src/Cookie.cc (match)
  7207. To add the ability to change peer id.
  7208. * src/DefaultBtContext.h
  7209. (_peerIdPrefix): New variable
  7210. (setPeerIdPrefix): New function.
  7211. * src/torrentRequestInfo.cc
  7212. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  7213. DefaultBtContext.
  7214. * src/main.cc (main): Added peer-id-prefix command-line option.
  7215. The usage message is not added yet.
  7216. * src/DefaultBtContext.cc
  7217. (generatePeerId): Use _peerIdPrefix.
  7218. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  7219. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Fixed the bug that prevents filename in content-disposition from
  7221. being retrieved when filename is not quoted.
  7222. * src/Util.cc (getContentDispositionFilename)
  7223. Fixed the bug that causes infinate loop and memory leak when file open
  7224. operation failed.
  7225. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7226. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7227. Fixed the bug that causes segfault when all URIs specified are
  7228. unsupported.
  7229. * src/RequestGroupMan.cc (getInitialCommands)
  7230. Check if RequestGroup::createNextCommand() returns empty list of
  7231. commands.
  7232. * src/RequestGroup.cc (createNextCommand)
  7233. Change log level from info to error so that users can notice that
  7234. an error occurred.
  7235. Fixed the bug that causes segfault when a zero-sized file is
  7236. downloaded.
  7237. * src/BitfieldMan.cc (isAllBitSet)
  7238. Return true if bitfieldLength is 0.
  7239. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7240. * src/main.cc
  7241. (showUsage): Added 3 usage examples for metalink download.
  7242. Replace MetalinkChunkChecksum with ChunkChecksum.
  7243. * src/MetalinkChunkChecksum.h: Removed.
  7244. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7245. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7246. * src/Xml2MetalinkProcessor.cc
  7247. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7248. * src/MetalinkRequestInfo.cc (execute)
  7249. * Release 0.11.1
  7250. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7251. Reads URIs from stdin when "-i -" is specified.
  7252. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7253. * src/UriListParser.h, src/UriListParser.cc: New class.
  7254. * src/StreamUriListParser.h: New class.
  7255. * src/FileUriListParser.h: New class.
  7256. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7257. instead of UriFileListParser.
  7258. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Made console readout more readable.
  7260. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7261. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7262. Fix the bug that causes -s option not to work.
  7263. * src/main.cc (main)
  7264. * src/a2algo.h: New file.
  7265. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7266. Create directory structure specified in metalink file.
  7267. * src/RequestGroup.h, src/RequestGroup.cc
  7268. (initAndOpenFile): Create a directory to store files if it does not
  7269. exist.
  7270. (getDir): New function.
  7271. Added ETA and download speed for an individual file to readout.
  7272. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7273. * src/RequestGroup.h
  7274. (calculateDownloadSpeed): New function.
  7275. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Made -S option work with metalink file and provided selective download
  7277. to metalink.
  7278. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  7279. (filename): Removed.
  7280. (file): New variable.
  7281. (size): Removed.
  7282. (operator=): Updated.
  7283. (getPath): New function.
  7284. (getLength): New function.
  7285. (toFileEntry): New function.
  7286. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  7287. (execute): Use toStream.
  7288. (showFileEntry): Removed.
  7289. * src/MetalinkRequestInfo.h
  7290. (targetFiles): New variable.
  7291. (setTargetFiles): New variable.
  7292. * src/MetalinkRequestInfo.cc
  7293. (execute): Added the ability to print file information included in
  7294. a metalink file.
  7295. Added selective download mode to metalink.
  7296. * src/main.cc
  7297. (showUsage): Updated to denote that -S and --select-file options are
  7298. applicable to metalink.
  7299. * src/FileEntry.h
  7300. (operator=): New function.
  7301. (getBasename): New function.
  7302. (getDirname): New function.
  7303. * src/Util.h, src/Util.cc
  7304. (toStream): New function.
  7305. * src/Xml2MetalinkProcessor.cc: Updated.
  7306. Made aria2 work with metalink with directory structure.
  7307. * src/File.h, src/File.cc
  7308. (getBasename): New function.
  7309. (getDirname): New function.
  7310. * src/RequestGroup.h, src/RequestGroup.cc
  7311. (_topDir): New variable.
  7312. (setTopDir): New function.
  7313. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7314. Rewrote HTTP header parsing with stringstream.
  7315. * src/HttpConnection.h, src/HttpConnection.cc
  7316. (HttpRequestEntry): New class.
  7317. (headerBuf): Removed.
  7318. (headerBufLength): Removed.
  7319. (outstandingHttpRequests): Now its element type is
  7320. HttpRequestEntryHandle.
  7321. (findEndOfHeader): Removed.
  7322. (receiveResponse): Rewritten.
  7323. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7324. Updated doc for -j option to notice that it should be used with -i
  7325. option.
  7326. * src/main.cc (showUsage)
  7327. Removed unused classes.
  7328. * src/RequestInfo.h
  7329. (FileInfo): Removed.
  7330. (checksum): Removed.
  7331. (fileInfo): Removed.
  7332. (setChecksum): Removed.
  7333. (getChecksum): Removed.
  7334. (getFileInfo): Removed.
  7335. Use ISO units.
  7336. * src/ConsoleDownloadEngine.cc
  7337. * src/TorrentConsoleDownloadEngine.cc
  7338. * src/Util.cc (abbrevSize)
  7339. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Added the default listening ports to the help message.
  7341. * src/main.cc (showUsage)
  7342. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7343. Reduce the number of calls to gettimeofday to lower CPU load.
  7344. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7345. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7346. * src/Peer.h (calculateUploadSpeed): New function.
  7347. (calculateDownloadSpeed): New function.
  7348. * src/DefaultPeerStorage.cc
  7349. (CalculateStat): Added _now variable.
  7350. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7351. and Peer::calculateUploadSpeed(const struct timeval&)
  7352. Drop connection if no request or piece message is exchanged in
  7353. a certain interval.
  7354. * src/DefaultBtInteractive.h
  7355. (btRuntime): New variable.
  7356. (inactiveCheckPoint): New variable.
  7357. (checkActiveInteraction): New function.
  7358. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7359. request or piece message is received.
  7360. (checkActiveInteraction): New function.
  7361. (doInteractionProcessing): Call checkActiveInteraction.
  7362. Fixed the bug that causes remote Metalink and Torrent files are not
  7363. processed.
  7364. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7365. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Changed format of log file.
  7367. * src/SimpleLogger.cc
  7368. * Release 0.11.0
  7369. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7370. * src/AbstractCommand.cc
  7371. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7372. MSG_MAX_TRY from error to info.
  7373. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7374. * src/message.h
  7375. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7376. (MSG_DOWNLOAD_ABORTED): Added %s.
  7377. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7378. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7379. * src/PeerAbstractCommand.cc
  7380. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7381. * src/Request.h
  7382. (cookieBox): Made ShardHandle.
  7383. * src/RequestGroup.h, src/RequestGroup.cc
  7384. (createNextCommandWithAdj): New function.
  7385. * src/FileAllocationCommand.cc
  7386. (executeInternal): Use createNextCommandWithAdj().
  7387. * src/CheckIntegrityCommand.cc
  7388. (executeInternal): Use createNextCommandWithAdj().
  7389. Added --load-cookies command-option.
  7390. * src/OptionHandlerFactory.cc
  7391. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7392. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7393. Now aria2 can handle cookie's expiration date.
  7394. * src/Cookie.h (expires): Changed its type to time_t.
  7395. * src/main.cc: Added --load-cookies command-line option.
  7396. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7397. * src/Util.h, src/Util.cc (httpGMT): New function.
  7398. * src/Request.cc (Request): Initialize cookieBox using
  7399. CookieBoxFactory.
  7400. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7401. * src/CookieParser.h, src/CookieParser.cc: New class.
  7402. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7403. * src/HttpResponseCommand.cc
  7404. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7405. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7406. download.
  7407. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. Added -j command-line option.
  7409. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7410. * src/main.cc
  7411. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7412. Rewritten using stringstream.
  7413. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  7414. Rewritten using stringstream.
  7415. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7416. Make download size shown in MB, KB.
  7417. * src/ConsoleDownloadEngine.h (sendStatistics)
  7418. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  7419. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7420. Accept incoming connections if download rate is low.
  7421. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  7422. (_lowestSpeedLimit): New variable.
  7423. (setLowestSpeedLimit): New function.
  7424. (execute): Accept incoming connections if download rate is low.
  7425. MAX_PEERS is ignored in this case.
  7426. Disable PREF_OUT in multiple concurrent download:
  7427. * src/RequestGroup.h, src/RequestGroup.cc
  7428. (setUserDefinedFilename): New function.
  7429. * src/DownloadEngineFactory.cc
  7430. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  7431. concurrent download.
  7432. * src/DefaultSegmentManFactory.cc
  7433. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  7434. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7435. RequestGroup::getNextCommand() was renamed to createNextCommand().
  7436. Added its overloaded method.
  7437. * src/RequestGroup.h
  7438. (_numConcurrentCommand): New variable.
  7439. (setNumConcurrentCommand): New function.
  7440. * src/RequestGroup.cc
  7441. Abort download if same file is being downloaded concurrently.
  7442. * src/RequestGroup.h, src/RequestGroupMan.cc
  7443. (isSameFileBeingDownloaded): New function.
  7444. * src/HttpResponseCommand.cc (executeInternal)
  7445. * src/FtpNegotiateCommand.cc (recvSize)
  7446. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  7447. * main.cc: Added help message for -i option.
  7448. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7449. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  7450. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  7451. * src/MetalinkEntry.h
  7452. (checksum): Changed to ChecksumHandle
  7453. * src/MetalinkRequestInfo.cc
  7454. (checksum): Changed to ChecksumHandle
  7455. * src/File.cc
  7456. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  7457. * src/common.h
  7458. (DIR_OPEN_MODE): New definition
  7459. * src/RequestGroup.cc
  7460. (prepareForNextAction): Added an argument.
  7461. * src/message.h
  7462. (MSG_GOOD_CHECKSUM): New definition
  7463. (MSG_BAD_CHECKSUM): New definition
  7464. * src/HttpResponseCommand.cc
  7465. (handleDefaultEncoding): Continue download sequence in new
  7466. non-segmented download.
  7467. * src/FileAllocationEntry.h
  7468. (_nextDownloadCommand): New variable.
  7469. * src/DownloadCommand.cc
  7470. (prepareForNextSegment): Create ChecksumCommand if checksum is
  7471. available.
  7472. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  7473. * src/IteratableChecksumValidator.h,
  7474. src/IteratableChecksumValidator.cc: New class.
  7475. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  7476. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7477. Change file mode to 666:
  7478. * src/common.h (OPEN_MODE): New definition.
  7479. * src/File.cc
  7480. * src/Util.cc
  7481. * src/Directry.cc
  7482. * src/AbstractDiskWriter.cc
  7483. Change the level of log message "download aborted" to debug:
  7484. * src/PeerAbstractCommand.cc (execute)
  7485. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  7486. * src/TrackerWatcherCommand.cc
  7487. (createCommand): Sleep some seconds after request failed.
  7488. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  7489. then abort tracker request.
  7490. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7491. * Added the simultaneous download feature.
  7492. * src/main.cc: Print "Exception caught: " when exception is caught.
  7493. Use CUIDCounter instead of BtRuntime::getNewCuid():
  7494. * src/ActivePeerConnectionCommand.cc
  7495. * src/PeerInteractionCommand.cc
  7496. * src/BtRuntime.h
  7497. (cuidCounter): Removed.
  7498. (getNewCuid): Removed.
  7499. * src/DownloadEngineFactory.cc
  7500. * src/PeerListenCommand.cc
  7501. * src/TrackerUpdateCommand.cc
  7502. * src/PeerInitiateConnectionCommand.cc
  7503. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. * src/PeerAbstractCommand.cc
  7505. (onAbort): Call PeerStorage::returnPeer()
  7506. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  7507. (incomingPeers): New variable.
  7508. (addIncomingPeer): New function.
  7509. (returnPeer): New function.
  7510. (onErasingPeer): New function.
  7511. (addPeer): push_back -> push_front
  7512. (getActivePeers): Rewritten.
  7513. (calculateStat): Rewritten.
  7514. * src/PeerStorage.h
  7515. (TransferStat::copy): New function.
  7516. (TransferStat::TransferStat): New function.
  7517. (TransferStat::operator=): New function.
  7518. (addIncomingPeer): New function.
  7519. (returnPeer): New function.
  7520. * src/PeerListenCommand.cc
  7521. (execute): Use PeerStorage::addIncomingPeer() instead of
  7522. Peer::addPeer().
  7523. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. Connect to a peer actively when download speed is lower than specified
  7525. speed in torrent download:
  7526. * src/ActivePeerConnectionCommand.h: New class.
  7527. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. * src/HttpRequest.cc (createRequest): url-encode user-agent
  7529. * src/main.cc: Fixed the bug that prevents download if .netrc
  7530. doesn't exist.
  7531. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7532. To cache resolved hostname:
  7533. * src/AbstractCommand.h, src/AbstractCommand.cc
  7534. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  7535. Added dns cache.
  7536. * src/FtpInitiateConnectionCommand.cc
  7537. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  7538. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  7539. NameResolver working without ares.
  7540. * src/TorrentRequestInfo.cc
  7541. (execute): Don't cache dns in torrent download.
  7542. * src/HttpInitiateConnectionCommand.cc
  7543. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  7544. * src/DNSCache.h: New class.
  7545. * src/UrlRequestInfo.cc
  7546. (execute): Use dns cache.
  7547. In http request, suppress port number in http request header if port
  7548. is 80 or 443:
  7549. * src/HttpRequest.cc (getHostText): Suppress port number in http
  7550. request header if port is 80 or 443.
  7551. (createProxyRequest): Allways send port number.
  7552. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7553. To add the command-line option which disables netrc support:
  7554. * src/OptionHandlerFactory.cc
  7555. (createOptionHandlers): Added PREF_NO_NETRC.
  7556. * src/main.cc: Added -n option.
  7557. * src/prefs.h (PREF_NO_NETRC): New definition.
  7558. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  7559. V_TRUE.
  7560. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  7561. is V_FALSE. This may get configurable in the future release.
  7562. To clear peer's error status by time basis:
  7563. * src/PeerAbstractCommand.cc
  7564. (onAbort): Call Peer::startBadCondition().
  7565. * src/Peer.h, src/Peer.cc
  7566. (error): Removed.
  7567. (_badConditionStartTime): New variable.
  7568. (_badConditionInterval): New variable. Initialized to 10 seconds.
  7569. (startBadCondition): New function.
  7570. (isGood): New function.
  7571. * src/DefaultPeerStorage.cc
  7572. (addPeer): Use Peer::isGood().
  7573. (FindFinePeer): Use Peer::isGood().
  7574. Always include port number in http request header:
  7575. * src/HttpRequest.cc (getHostText): Always include port number in
  7576. http request header.
  7577. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. To the ability to read options from a config file:
  7579. * src/main.cc: Command-line parameter validation is delegated to
  7580. OptionHandler class.
  7581. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  7582. * src/Option.h, src/Option.cc (clear): New function.
  7583. * src/OptionParser.h, src/OptionParser.cc: New class.
  7584. * src/OptionHandler.h: New class.
  7585. * src/NameMatchOptionHandler.h: New class.
  7586. * src/OptionHandlerImpl.h: New classes.
  7587. * src/prefs.h: '_' -> '-'
  7588. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  7589. (FTP_PASV): New definition.
  7590. * src/Util.h, src/Util.cc (getRealSize): New function.
  7591. To disable netrc support if .netrc file does not have correct
  7592. permissions:
  7593. * src/File.h, src/File.cc (mode): New function.
  7594. To prevent confidential information to be logged:
  7595. * src/HttpConnection.h, src/HttpConnection.cc
  7596. (eraseConfidentialInfo): New function.
  7597. (sendRequest): Call eraseConfidentialInfo().
  7598. (sendProxyRequest): Call eraseConfidentialInfo().
  7599. * src/main.cc: Validate permissions of .netrc file.
  7600. To add --user-agent command-line option:
  7601. * src/main.cc: Added new command line option: --user-agent
  7602. * src/prefs.h (PREF_USER_AGENT): New definition.
  7603. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  7604. parameter to HttpRequest object.
  7605. * src/AbstractProxyRequestCommand.cc
  7606. (executeInternal): Set user-agent option parameter to HttpRequest
  7607. object.
  7608. Marged the patches from Dan Fandrich.
  7609. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Use filename and size from Metalink file instead of sending HEAD
  7611. request:
  7612. * src/UrlRequestInfo.h
  7613. (_filename): New variable.
  7614. (_totalLength): New variable.
  7615. (setTotalLength): New variable.
  7616. (setFilename): New variable.
  7617. * src/MetalinkRequestInfo.cc
  7618. (execute): Set filename and size to UrlRequestInfo
  7619. * src/UrlRequestInfo.cc
  7620. (execute): Use filename and size from Metalink instead of seding
  7621. HEAD request to servers.
  7622. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7623. To add the ability to resume downloading a partially downloaded file
  7624. which is downloaded from the beginning:
  7625. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  7626. takes this role.
  7627. * src/main.cc: Added -c option.
  7628. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  7629. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  7630. * src/prefs.h (PREF_CONTINUE): New definition.
  7631. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  7632. * src/DefaultDiskWriter.cc
  7633. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  7634. * src/AbstractDiskWriter.h
  7635. (glowFileAllocator): New variable.
  7636. * src/AbstractDiskWriter.cc
  7637. (openExistingFile): Now preallocate file space from the end of the
  7638. existing file if totalLength argument is specified and grater than 0.
  7639. * src/UrlRequestInfo.cc: If -c option is specified and the file
  7640. to download exists in local, continue the download of the file.
  7641. --allow-overwrite=true is assumed in this context.
  7642. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  7643. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  7644. Throw exception if --check-integrity=true is specified but chunk
  7645. checksums are not provided:
  7646. * src/UrlRequestInfo.cc
  7647. Do not print URLs to stdout:
  7648. * src/UrlRequestInfo.cc
  7649. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. * src/Request.h: Use AuthResolver to get authentication information.
  7651. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  7652. set to RequestFactory object.
  7653. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  7654. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  7655. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  7656. create Request object.
  7657. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  7658. To integrate Netrc into exsiting classes:
  7659. * src/Request.h
  7660. (_userDefinedAuthConfig): New variable.
  7661. (findNetrcAuthenticator): New function.
  7662. (segment): Removed.
  7663. (setUserDefinedAuthConfig): New function.
  7664. (resolveHttpAuthConfigItem): New function.
  7665. (resolveFtpAuthConfigItem): New function.
  7666. (resolveHttpProxyAuthConfigItem): New function.
  7667. * src/HttpRequest.h
  7668. (authConfig): Removed.
  7669. (proxyAuthConfig): Removed.
  7670. (setAuthConfig): Removed.
  7671. (setProxyAuthConfig): Removed.
  7672. * src/UrlRequest.h
  7673. (getHeadResult): Added a parameter: authConfigHandle
  7674. * src/common.h
  7675. (SingletonHolder.h): New include.
  7676. * src/main.cc
  7677. (Netrc.h): New include.
  7678. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  7679. Added initial value of PREF_NETRC_PATH.
  7680. Added the initialization of netrc.
  7681. * src/AuthConfig.h: New class.
  7682. * src/prefs.h
  7683. (PREF_NETRC_PATH): New definition.
  7684. * src/HttpAuthConfig.h: Removed.
  7685. * src/Netrc.cc
  7686. (getRequiredNextToken): New function.
  7687. (skipMacdef): New function.
  7688. (parse): Rewritten.
  7689. * src/Netrc.h
  7690. (getRequiredNextToken): New function.
  7691. (skipMacdef): New function.
  7692. * src/Util.h, src/Util.cc
  7693. (getHomeDir): New function.
  7694. * src/TrackerWatcherComand.cc
  7695. (createRequestCommand): Use AuthConfig.
  7696. * src/FtpConnection.cc
  7697. (sendUser): Use Request::resolveFtpAuthConfigItem().
  7698. (sendPass): Use Request::resolveFtpAuthConfigItem().
  7699. * src/Request.cc
  7700. (findNetrcAuthenticator): New function.
  7701. (resolveHttpAuthConfigItem): New function.
  7702. (resolveFtpAuthConfigItem): New function.
  7703. (resolveHttpProxyAuthConfigItem): New function.
  7704. * src/UrlRequestInfo.cc: Use AuthConfig.
  7705. * src/HttpRequest.cc
  7706. (createRequest): Use authConfig.
  7707. (getProxyAuthString): Use authConfig.
  7708. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  7709. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  7710. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. To reduce overhead to find commands whose socket is either
  7712. readable or writable in the download engine loop:
  7713. * src/Command.h, src/Command.cc
  7714. (STATUS): New enum.
  7715. (status): New variable.
  7716. (statusMatch): New function.
  7717. (setStatusActive): New function.
  7718. (setStatusInactive): New function.
  7719. * src/DownloadEngine.h, src/DownloadEngine.cc
  7720. (executeCommand): New function.
  7721. (run): Simplified.
  7722. (waitData): Call Command::setStatusActive() when command's socket is
  7723. readable or writable.
  7724. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. To handle Segment as SegmentHandle:
  7726. * src/AbstractCommand.cc (execute): Rewritten.
  7727. * src/SegmentMan.h: Segment -> SegmentHandle
  7728. Introducded HttpResponse class, HttpRequest class to improve code
  7729. extensiveness and make it clear:
  7730. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  7731. HttpResponse class.
  7732. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  7733. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  7734. * src/HttpConnection.cc: Contruction of http request were moved to
  7735. HttpRequest class.
  7736. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  7737. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  7738. * src/HttpAuthConfig.h: New class.
  7739. * src/Range.h: New class.
  7740. To make FtpTunnel{Request, Response}Command and
  7741. HttpProxy{Request, Response}Command derived from
  7742. AbstractProxy{Request, Response}Command:
  7743. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  7744. Derived from AbstractProxyRequestCommand class.
  7745. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  7746. Derived from AbstractProxyResponseCommand class.
  7747. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  7748. Derived from AbstractProxyRequestCommand class.
  7749. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  7750. Derived from AbstractProxyResponseCommand class.
  7751. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  7752. : New class.
  7753. * src/AbstractProxyResponseCommand.h,
  7754. src/AbstractProxyResponseCommand.cc: New class.
  7755. To add netrc support:
  7756. * src/Netrc.h, src/Netrc.cc: New class.
  7757. * src/Util.h, src/Util.cc (split): New function.
  7758. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  7759. "Content-Range" header instead of "Range" header.
  7760. * src/HttpHeader.h
  7761. (getStatus): Removed.
  7762. (setStatus): Removed.
  7763. * src/Segment.h
  7764. (getPositionToWrite): New function.
  7765. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7766. * src/HttpHeader.h
  7767. (Range.h): New include.
  7768. (status): New variable.
  7769. (HttpHeader): Initialized status with 0.
  7770. (getStatus): New function.
  7771. (setStatus): New function.
  7772. (getRange): New function.
  7773. (HttpHeaderHandle): New function.
  7774. * src/HttpHeader.cc
  7775. (getRange): New function.
  7776. * src/Request.h
  7777. (RequestWeakHandle): New definition.
  7778. * src/HttpConnection.h
  7779. (HttpConnectionHandle): New type definition.
  7780. * src/HttpConnection.cc
  7781. (receiveResponse): Set HTTP status to headers.
  7782. * src/main.cc
  7783. (showUsage): Fixed typo.
  7784. * src/Segment.h
  7785. (SegmentHandle): New type definition.
  7786. * src/BitfieldMan.h
  7787. (getMissingUnusedLength): New function.
  7788. * src/BitfieldMan.cc
  7789. (getMissingUnusedLength): New function.
  7790. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. To fix static initialization order problem:
  7792. * src/BitfieldManFactory.h
  7793. (defaultRandomizer): Removed.
  7794. (factory): New variable.
  7795. (getNewFactory): Removed.
  7796. (getFactoryInstance): New function.
  7797. (setDefaultRandomizer): Rewritten.
  7798. (getDefaultRandomizer): Rewritten.
  7799. * src/BitfieldManFactory.cc
  7800. (defaultRandomizer): Removed.
  7801. (factory): Initialized to 0.
  7802. (BitfieldManFactory): Initialized randomizer to 0.
  7803. * src/DefaultPieceStorage.cc
  7804. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  7805. * src/Peer.cc
  7806. (Peer): getNewFactory() -> getFactoryInstance()
  7807. * src/SegmentMan.cc
  7808. (initBitfield): getNewFactory() -> getFactoryInstance()
  7809. * src/Piece.cc
  7810. (Piece): getNewFactory() -> getFactoryInstance()
  7811. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7812. To fix the bug that causes crash on Max OS X:
  7813. * src/SimpleRandomizer.h
  7814. (getInstance): Create new instance if the static variable is null.
  7815. * src/SimpleRandomizer.cc
  7816. (randomizer): Initialized to 0.
  7817. * src/BitfieldManFactory.h
  7818. (getNewFactory): Removed the call to setRandomizer().
  7819. To fix the miscalculation of the range of checksum:
  7820. * src/BitfieldMan.h
  7821. (isBitSetOffsetRange): New function.
  7822. * src/BitfieldMan.cc
  7823. (isBitSetOffsetRange): New function.
  7824. * src/SegmentMan.cc
  7825. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  7826. Use bitfield->getBlockLength() instead of segment.segmentLength.
  7827. * Release 0.10.1
  7828. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. To lower CPU usage in BitTorrent download when --max-upload-limit
  7830. command-line option specified:
  7831. * src/DefaultBtMessageDispatcher.cc
  7832. (sendMessages): Calculate uploading speed only when current message
  7833. is uploading data and is not sent yet.
  7834. * src/DefaultPeerStorage.h
  7835. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  7836. * src/HttpResponseCommand.cc
  7837. (handleDefaultEncoding): Added the cast to int32_t to itos.
  7838. This fixes compile error in Soralis 10.
  7839. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. To fix segfault in Metalink download:
  7841. * src/UrlRequestInfo.h
  7842. (filename): Removed.
  7843. (totalLength): Removed.
  7844. (setTotalLength): Removed.
  7845. (setFilename): Removed.
  7846. * src/MetalinkRequestInfo.cc
  7847. (execute): Do not set filename and totalLength to reqInfo.
  7848. Set chunk checksum to reqInfo if it is not null.
  7849. * src/HttpResponseCommand.cc
  7850. (executeInternal): Fixed filename in log.
  7851. (handleDefaultEncoding): Removed the call to initBitfield() and
  7852. markAllPiecesDone().
  7853. (handleOtherEncoding): Added HEAD method handling.
  7854. * src/FtpNegotiateCommand.cc
  7855. (executeInternal): Added SEQ_HEAD_OK handling.
  7856. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  7857. return false.
  7858. * src/FtpNegotiateCommand.h
  7859. (SEQ_HEAD_OK): New definition.
  7860. * src/SegmentMan.cc
  7861. (initBitfield): Delete bitfield.
  7862. (isChunkChecksumValidationReady): Fixed the condition.
  7863. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  7864. works fine.
  7865. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. * src/Xml2MetalinkProcessor.h
  7867. (xpathExists): New function.
  7868. * src/Xml2MetalinkProcessor.cc
  7869. (xpathExists): New function.
  7870. Not to send HEAD request if filename and size are available in Metalink
  7871. file:
  7872. * src/UrlRequestInfo.h
  7873. (filename): New variable.
  7874. (totalLength): New variable.
  7875. (setTotalLength): New function.
  7876. (setFilename): New function.
  7877. * src/MetalinkRequestInfo.cc
  7878. (execute): Set filename and size to UrlRequestInfo.
  7879. * src/MetalinkEntry.cc
  7880. (MetalinkEntry): Initialize size with 0.
  7881. * src/UrlRequestInfo.cc
  7882. (execute): Set filename and size to SegmentMan.
  7883. Not to download rest of the files after selected files are downloaded
  7884. in BitTorrent:
  7885. * src/PieceStorage.h
  7886. (allDownloadFinished): New function.
  7887. * src/DefaultBtAnnounce.cc
  7888. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  7889. downloadFinished.
  7890. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  7891. * src/DefaultPieceStorage.cc
  7892. (completePiece): Use allDownloadFinished instead of downloadFinished.
  7893. Commented out the call to finishSelectiveDownloadingMode().
  7894. (downloadFinished): Call isFilteredAllBitSet() instead of
  7895. isAllBitSet().
  7896. (allDownloadFinished): New function.
  7897. * src/DefaultBtInteractive.cc
  7898. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  7899. downloadFinished().
  7900. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  7901. * src/TorrentDownloadEngine.cc
  7902. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  7903. * src/BitfieldMan.h
  7904. (isFilteredAllBitSet): New function.
  7905. * src/ShareRatioSeedCriteria.h
  7906. (PieceStorage.h): New include.
  7907. (pieceStorage): New variable.
  7908. (evaluate):
  7909. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  7910. * src/BitfieldMan.cc
  7911. (isFilteredAllBitSet): New function.
  7912. (isAllBitSet): Filter is not took into account.
  7913. Rename --force-truncate as --allow-overwrite:
  7914. * src/TorrentRequestInfo.cc
  7915. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  7916. * src/main.cc
  7917. (showUsage): --force-truncate -> --allow-overwrite
  7918. * src/message.h
  7919. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  7920. * src/prefs.h
  7921. (PREF_FORCE_TRUNCATE): Removed.
  7922. (PREF_ALLOW_OVERWRITE): New definition.
  7923. * src/SegmentMan.cc
  7924. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  7925. * src/MetalinkRequestInfo.cc
  7926. (execute): Queueing message are now logged in info level.
  7927. * src/common.h
  7928. (LONG_LONG_MAX): Removed.
  7929. (LONG_LONG_MIN): Removed.
  7930. * src/HttpResponseCommand.cc
  7931. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  7932. * src/FtpNegotiateCommand.cc
  7933. (recvSize): LONG_LONG_MAX -> INT64_MAX
  7934. * src/main.cc
  7935. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  7936. command-line option.
  7937. (main): Added --check-integriy and --realtime-chunk-checksum
  7938. command-line option.
  7939. --force-truncate -> --allow-overwrite
  7940. Set initial value of --check-integrity option to false.
  7941. Don't show usage when error occurs while persing command-line options.
  7942. Removed deprecated --upload-limit option.
  7943. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7944. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  7945. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  7946. * src/BtAllowedFastMessage.cc:
  7947. * src/BtBitfieldMessage.cc
  7948. * src/BtCancelMessage.cc
  7949. * src/BtChokeMessage.cc
  7950. * src/BtHaveAllMessage.cc
  7951. * src/BtHaveMessage.cc
  7952. * src/BtHaveNoneMessage.cc
  7953. * src/BtInterestedMessage.cc
  7954. * src/BtNotInterestedMessage.cc
  7955. * src/BtPieceMessage.cc
  7956. * src/BtPortMessage.cc
  7957. * src/BtRejectMessage.cc
  7958. * src/BtRequestMessage.cc
  7959. * src/BtSuggestPieceMessage.cc
  7960. * src/BtUnchokeMessage.cc
  7961. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  7962. files are affected.
  7963. * src/ChunkChecksumValidator.cc
  7964. * src/SegmentMan.cc
  7965. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. To add chunk checksum validation:
  7967. * src/MetalinkEntry.h
  7968. (MetalinkChunkChecksum.h): New include.
  7969. (chunkChecksum): New variable.
  7970. * src/Request.h
  7971. (method): New variable.
  7972. (setMethod): New function.
  7973. (getMethod): New function.
  7974. (METHOD_GET): New static constant.
  7975. (METHOD_HEAD): New static constant.
  7976. * src/Xml2MetalinkProcessor.h
  7977. (getPieceHash): New function.
  7978. * src/PieceStorage.h
  7979. (markAllPiecesDone): New function.
  7980. (checkIntegrity): New function.
  7981. * src/FileAllocator.h
  7982. (NullFileAllocationMonitor.h): New include.
  7983. (FileAllocator): Initialize fileAllocationMonitor with new
  7984. NullFileAllocationMonitor().
  7985. * src/MultiDiskAdaptor.h
  7986. (messageDigest.h): Remove include.
  7987. (ctx): Removed.
  7988. (hashUpdate): Added ctx.
  7989. (MultiDiskAdaptor): Removed ctx.
  7990. (sha1Sum): Renamed as messageDigest.
  7991. (messageDigest): New function.
  7992. * src/UrlRequestInfo.h
  7993. (HeadResult): New class.
  7994. (digestAlgo): New variable.
  7995. (chunkChecksumLength): New variable.
  7996. (chunkChecksums): New variable.
  7997. (getHeadResult): New function.
  7998. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  7999. (setDigestAlgo): New function.
  8000. (setChunkChecksumLength): New function.
  8001. (setChunkChecksums): New function.
  8002. * src/DefaultPieceStorage.cc
  8003. (DiskAdaptorWriter.h): New include.
  8004. (ChunkChecksumValidator.h): New include.
  8005. (markAllPiecesDone): New function.
  8006. (checkIntegrity): New function.
  8007. * src/DefaultBtContext.h
  8008. (getPieceHashes): New function.
  8009. * src/TorrentRequestInfo.cc
  8010. (execute): Try to validate chunk checksum if file already exists and
  8011. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8012. * src/messageDigest.h
  8013. (~MessageDigestContext): Added digestFree().
  8014. * src/MetalinkRequestInfo.cc
  8015. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8016. * src/DiskAdaptor.h
  8017. (messageDigest.h): New include.
  8018. (sha1Sum): Renamed as messageDigest.
  8019. (messageDigest): New function.
  8020. * src/DownloadCommand.h
  8021. (PeerStat.h): New include.
  8022. (maxDownloadSpeedLimit): New variable.
  8023. (startupIdleTime): New variable.
  8024. (lowestDownloadSpeedLimit): New variable.
  8025. (peerStat): New variable.
  8026. (setMaxDownloadSpeedLimit): New function.
  8027. (setStartupIdleTime): New function.
  8028. (setLowestDownloadSPeedLimit): New function.
  8029. * src/BtContext.h
  8030. (getPieceHashes): New function.
  8031. * src/main.cc
  8032. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8033. option to true for testing purpose.
  8034. * src/BtPieceMessage.cc
  8035. (checkPieceHash): Use messageDigest
  8036. * src/DownloadEngine.cc
  8037. (SetDescriptor): Removed.
  8038. (AccumulateActiveCommand): Removed.
  8039. (waitData): Rewritten.
  8040. (updateFdSet): Rewritten.
  8041. * src/MultiDiskAdaptor.cc
  8042. (hashUpdate): Added ctx.
  8043. (sha1Sum): Renamed as messageDigest.
  8044. (messageDigest): New function.
  8045. * src/BitfieldMan.h
  8046. (isBitRangeSet): New function.
  8047. (unsetBitRange): New function.
  8048. * src/ByteArrayDiskWriter.h
  8049. (sha1Sum): Renamed as messageDigest.
  8050. (messageDigest): New function.
  8051. * src/ConsoleDownloadEngine.cc
  8052. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8053. * src/DiskWriter.h
  8054. (messageDigest.h): New include.
  8055. (sha1Sum): Renamed as messageDigest.
  8056. (messageDigest): New function.
  8057. * src/ChunkChecksumValidator.h: New class.
  8058. * src/DiskAdaptorWriter.h: New class.
  8059. * src/prefs.h
  8060. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8061. (PREF_CHECK_INTEGRITY): New definition.
  8062. * src/HttpResponseCommand.cc
  8063. (handleDefaultEncoding): Added method "HEAD" handling.
  8064. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8065. (handleOtherEncoding):
  8066. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8067. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8068. startupIdleTime, lowestDownloadSpeedLimit to command.
  8069. * src/SegmentMan.h
  8070. (getSegmentEntryByIndex): New function.
  8071. (getSegmentEntryByCuid): New function.
  8072. (getSegmentEntryIteratorByCuid): New function.
  8073. (diskWriter): DiskWriter -> DiskWriterHandle
  8074. (pieceHashes): New variable.
  8075. (chunkHashLength): New variable.
  8076. (digestAlgo): New variable.
  8077. (FindPeerStat): Removed.
  8078. (getPeerStat): Rewritten.
  8079. (markAllPiecesDone): New function.
  8080. (checkIntegrity): New function.
  8081. (tryChunkChecksumValidation): New function.
  8082. (isChunkChecksumValidationReady): New function.
  8083. * src/BitfieldMan.cc
  8084. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8085. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8086. blocks to 0.
  8087. (isBitRangeSet): New function.
  8088. (unsetBitRange): New function.
  8089. * src/FtpNegotiateCommand.cc
  8090. (executeInternal): Set maxDownloadSpeedLimit,
  8091. startupIdleTime, lowestDownloadSpeedLimit to command.
  8092. (recvSize): Added method "HEAD" handling.
  8093. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8094. * src/AbstractSingleDiskAdaptor.cc
  8095. (sha1Sum): Renamed as messageDigest.
  8096. (messageDigest): New function.
  8097. * src/AbstractSingleDiskAdaptor.h
  8098. (sha1Sum): Renamed as messageDigest.
  8099. (messageDigest): New function.
  8100. * src/Util.h
  8101. (indexRange): New function.
  8102. * src/MetalinkEntry.cc
  8103. (MetalinkEntry): Initialized chunkChecksum to 0.
  8104. * src/ShaVisitor.cc
  8105. (~ShaVisitor): Removed the call to ctx.digestFree().
  8106. * src/SegmentMan.cc
  8107. (ChunkChecksumValidator.h): New include.
  8108. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8109. to DIGEST_ALGO_SHA1.
  8110. (~SegmentMan): Removed diskWriter.
  8111. (FindSegmentEntryByIndex): Removed.
  8112. (FindSegmentEntryByCuid): Removed.
  8113. (checkoutSegment): Rewritten.
  8114. (findSlowerSegmentEntry): Rewritten.
  8115. (getSegment): Rewritten.
  8116. (updateSegment): Rewritten.
  8117. (completeSegment): Rewritten.
  8118. (markAllPiecesDone): New function.
  8119. (checkIntegrity): New function.
  8120. (isChunkChecksumValidationReady): New function.
  8121. (tryChunkChecksumValidation): New function.
  8122. * src/Xml2MetalinkProcessor.cc
  8123. (getEntry): Get size and set it to entry.
  8124. Get chunk checksum and set it to entry.
  8125. (getPieceHash): New function.
  8126. * src/Util.cc
  8127. (sha1Sum): Removed ctx.digestFree()
  8128. (fileChecksum): Removed ctx.digestFree()
  8129. (indexRange): New function.
  8130. * src/Request.cc
  8131. (METHOD_GET): New variable.
  8132. (METHOD_HEAD): New variable.
  8133. (Request): Added method.
  8134. * src/UrlRequestInfo.cc
  8135. (FatalException.h): New include.
  8136. (message.h): New include.
  8137. (operator<<): Added operator<< for class HeadResult.
  8138. (getHeadResult): New function.
  8139. (execute): Get filename and size in separate download engine.
  8140. * src/ChunkChecksumValidator.cc: New class.
  8141. * src/DownloadCommand.cc:
  8142. (DownloadCommand): Added peerStat.
  8143. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8144. the value from Option.
  8145. The buffer size is now 16KB.
  8146. Use peerStat member instead of getting it from SegmentMan.
  8147. Use startupIdleTime member instead of gettingit from Option.
  8148. Added chunk checksum validation.
  8149. * src/AbstractDiskWriter.cc
  8150. (AbstractDiskWriter): Removed ctx.
  8151. (~AbstractDiskWriter): Removed ctx.digestFree()
  8152. (writeDataInternal): Returns the return value of write.
  8153. (readDataInternal): Returns the return value of read.
  8154. (sha1Sum): Renamed as messageDigest
  8155. (messageDigest): New function.
  8156. * src/AbstractDiwkWriter.h
  8157. (messageDigest.h): Removed include.
  8158. (ctx): Removed.
  8159. (sha1Sum): Renamed as messageDigest
  8160. (messageDigest): New function.
  8161. * src/DefaultPieceStorage.h
  8162. (markAllPiecesDone): New function.
  8163. (checkIntegrity): New function.
  8164. * src/NullFileAllocationMonitor.h: New class.
  8165. * src/MetalinkChunkChecksum.h: New class.
  8166. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. To decrease CPU usage in bittorrent download, calculation results in
  8168. BitfieldMan were cached and realtime fetching PeerObject was removed
  8169. with WeakHandle introduced. Option values are set to the objects
  8170. by setter before download begins.
  8171. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8172. * src/DefaultBtRequestFactory.h
  8173. (dispatcher): BtMessageDispatcherHandle ->
  8174. BtMessageDispatcherWeakHandle.
  8175. (messageFactory): New variable.
  8176. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8177. BtMessageDispatcherWeakHandle.
  8178. (setBtMessageFactory): New function.
  8179. * src/DefaultBtMessageDispatcher.cc:
  8180. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8181. from Option.
  8182. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8183. feating the value from Option.
  8184. Use messageFactory member.
  8185. * src/PeerInteractionCommand.cc
  8186. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  8187. Add reverse dependencies to factory object.
  8188. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  8189. dispatcher.
  8190. Set messageFactory to receiver.
  8191. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  8192. btInteractive.
  8193. Set receiver to peerObject.
  8194. Set maxDownloadSpeedLimit to this.
  8195. (executeInternal): Use maxDownloadSpeedLimit member.
  8196. * src/BtChokeMessage.cc
  8197. (doReceivedAction): Use dispatcher, requestFactory member.
  8198. (onSendComplete): Use dispatcher member.
  8199. * src/PeerInteractionCommand.h
  8200. (maxDownloadSpeedLimit): New variable.
  8201. * src/DefaultBtMessageReceiver.h
  8202. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8203. (dispatcher):
  8204. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8205. (messageFactory): New variable.
  8206. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8207. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8208. (setDispatcher):
  8209. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8210. (setBtMessageFactory): New function.
  8211. * src/DefaultBtInteractive.cc
  8212. (initiateHandshake): Use messageFactory member.
  8213. (addBitfieldMessageToQueue): Use messageFactory member.
  8214. (addAllowedFastMessageToQueue): Use messageFactory member.
  8215. (decideChoking): Use messageFactory member.
  8216. (checkHave): Use messageFactory member.
  8217. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  8218. (receiveMessages): Use maxDownloadSpeedLimit member.
  8219. (decideInterest): Use messageFactory member.
  8220. * src/BtRequestMessage.cc
  8221. (doReceivedAction): Use messageFactory, dispatcher member.
  8222. (onQueued): Use dispatcher member.
  8223. * src/BtPieceMessage.cc
  8224. (doReceivedAction): Use dispatcher member.
  8225. (send): Use peerConnection member.
  8226. (onWrongPiece): Use requestFactory member.
  8227. (handleChokingEvent): Use messageFactory, dispatcher member.
  8228. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  8229. * src/BtMessageDispatcher.h
  8230. (BtMessageDispatcherWeakHandle): New type definition.
  8231. * src/SimpleBtMessage.cc
  8232. (send): Use peerConnection member.
  8233. * src/BtRejectMessage.cc
  8234. (doReceivedAction): Use dispatcher member.
  8235. * src/DefaultBtMessageDispatcher.h
  8236. (Option.h): Removed include.
  8237. (messageFactory): New variable.
  8238. (option): Removed.
  8239. (maxUploadSpeedLimit): New variable.
  8240. (requestTimeout): New variable.
  8241. (DefaultBtMessageDispatcher): Removed option.
  8242. Added maxUploadSpeedLimit, requestTimeout.
  8243. (setOption): Removed.
  8244. (getOption): Removed.
  8245. (setMaxUploadSpeedLimit): New function.
  8246. (setRequestTimeout): New function.
  8247. (setBtMessageFactory): New function.
  8248. * src/DefaultBtInteractive.h
  8249. (btMessageReceiver):
  8250. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8251. (dispatcher):
  8252. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8253. (btRequestFactory):
  8254. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8255. (peerConnection):
  8256. PeerConnectionHandle -> PeerConnectionWeakHandle
  8257. (messageFactory): New variable.
  8258. (option): Removed.
  8259. (keepAliveInterval): New variable.
  8260. (maxDownloadSpeedLimit): New variable.
  8261. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8262. (setBtMessageReceiver):
  8263. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8264. (setDispatcher):
  8265. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8266. (setBtRequestFactory):
  8267. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8268. (setPeerConnection):
  8269. PeerConnectionHandle -> PeerConnectionWeakHandle
  8270. (setOption): Removed.
  8271. (setKeepAliveInterval): New function.
  8272. (setMaxDownloadSpeedLimit): New function.
  8273. (setBtMessageFactory): New function.
  8274. * src/BitfieldMan.h
  8275. (cachedNumMissingBlock): New variable.
  8276. (cachedNumFilteredBlock): New variable.
  8277. (cachedCompletedLength): New variable.
  8278. (cachedFilteredComletedLength): New variable.
  8279. (cachedFilteredTotalLength): New variable.
  8280. (countMissingBlockNow): New function.
  8281. (countFilteredBlockNow): New function.
  8282. (getFilteredTotalLengthNow): New function.
  8283. (getCompletedLengthNow): New function.
  8284. (getFilteredCompletedLengthNow): New function.
  8285. (updateCache): New function.
  8286. * src/AbstractBtMessage.h
  8287. (BtMessageDispatcher.h): New include.
  8288. (PeerConnection.h): New include.
  8289. (BtRequestFactory.h): New include
  8290. (BtMessageFactory.h): New include.
  8291. (dispatcher): New variable.
  8292. (messageFactory): New variable.
  8293. (peerConnection: New variable.
  8294. (setBtMessageDispatcher): New function.
  8295. (setPeerConnection): New function.
  8296. (setBtMessageFactory): New function.
  8297. (setBtRequestFactory): New function.
  8298. * src/DefaultBtMessageFactory.cc
  8299. (setCommonProperty): Set dispatcher, requestFactory, this,
  8300. peerConnection to msg.
  8301. * src/BtRegistry.h
  8302. (BT_MESSAGE_RECEIVER): New macro.
  8303. * src/PeerConnection.h
  8304. (PeerConnectionWeakHandle): New type definition.
  8305. * src/BtMessageFactory.h
  8306. (BtMessageFactoryWeakHandle): New type definition.
  8307. * src/BitfieldMan.cc
  8308. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8309. cachedCompletedLength, cachedFilteredComletedLength,
  8310. cachedFilteredTotalLength.
  8311. Call updateCache().
  8312. (countMissingBlock): Return cachedNumMissingBlock.
  8313. (countMissingBlockNow): New function.
  8314. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8315. (countFilteredBlockNow): New function.
  8316. (setBit): Call updateCache().
  8317. (unsetBit): Call updateCache().
  8318. (setBitfield): Call updateCache().
  8319. (clearAllBit): Call updateCache().
  8320. (setAllBit): Use setBitInternal instead of setBit.
  8321. Call updateCache().
  8322. (addFilter): Call updateCache().
  8323. (enableFilter): Call updateCache().
  8324. (disableFilter): Call updateCache().
  8325. (clearFilter): Call updateCache().
  8326. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8327. (getFilteredTotalLengthNow): New function.
  8328. (getCompletedLength): Return cachedCompletedLength.
  8329. (getCompletedLengthNow): New function.
  8330. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8331. (getFilteredCompletedLengthNow): New function.
  8332. (updateCache): New function.
  8333. * src/BtMessageReceiver.h
  8334. (BtMessageReceiverWeakHandle): New type definition.
  8335. * src/DefaultBtMessageReceiver.cc
  8336. (receiveHandshake): Use messageFactory member.
  8337. (sendHandshake): Use messageFactory member.
  8338. (receiveMessage): Use messageFactory member.
  8339. * src/DefaultBtMessageFactory.h
  8340. (dispatcher): New variable.
  8341. (requestFactory): New variable.
  8342. (peerConnection): New variablle.
  8343. (setBtMessageDispatcher): New function.
  8344. (setBtRequestFactory): New function.
  8345. (setPeerConnection): New function.
  8346. * src/SharedHandle.h
  8347. (RefCount): New class.
  8348. (WeakHandle): New class.
  8349. * src/PeerObject.h
  8350. (BtMessageReceiver.h): New include.
  8351. (PeerObject): Added btMessageReceiver.
  8352. (btMessageReceiver): New variable.
  8353. * src/Util.cc
  8354. (countBit): Simplified.
  8355. * src/BtCancelMessage.cc
  8356. (doReceivedAction): Use dispatcher member.
  8357. * src/BtRequestFactory.h
  8358. (BtRequestFactoryWeakHandle): New type definition.
  8359. * src/PeerStorage.h
  8360. (downloadSpeed): int -> uint32_t
  8361. (uploadSpeed): int -> uint32_t
  8362. (sessionDownloadLength): long long int -> uint64_t
  8363. (sessionUploadLength): long long int -> uint64_t
  8364. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. To add RecoverableException, FatalException:
  8366. * src/AbstractCommand.cc
  8367. (onAbort): Exception -> RecoverableException
  8368. * src/PeerAbstractCommand.h
  8369. (RecoverableException.h): New include.
  8370. (onAbort): Exception -> RecoverableException.
  8371. * src/PeerInteractionCommand.cc
  8372. (onAbort): Exception -> RecoverableException.
  8373. * src/PeerAbstractCommand.cc
  8374. (execute): Exception -> RecoverableException.
  8375. (onAbort): Exception -> RecoverableException.
  8376. * src/TorrentRequestInfo.cc
  8377. (execute): Exception -> RecoverableException.
  8378. * src/MetalinkRequestInfo.cc
  8379. (execute): Exception -> RecoverableException.
  8380. * src/MetaFileUtil.cc: RecoverableException.
  8381. * src/AbstractCommand.h
  8382. (onAbort): Exception -> RecoverableException.
  8383. * src/DlRetryEx.h: Exception -> RecoverableException.
  8384. * src/DlAbortEx.h: Exception -> RecoverableException.
  8385. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8386. * src/Util.cc: Exception -> RecoverableException.
  8387. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8388. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8389. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8390. To make ID static const int
  8391. * src/BtInterestedMessage.h
  8392. (ID_t): Removed.
  8393. (ID): New variable.
  8394. (getId): Made non-const.
  8395. * src/BtPieceMessage.h
  8396. (ID_t): Removed.
  8397. (ID): New variable.
  8398. (getId): Made non-const.
  8399. * src/BtChokeMessage.h
  8400. (ID_t): Removed.
  8401. (ID): New variable.
  8402. (getId): Made non-const.
  8403. * src/BtHaveAllMessage.h
  8404. (ID_t): Removed.
  8405. (ID): New variable.
  8406. (getId): Made non-const.
  8407. * src/BtKeepAliveMessage.h
  8408. (ID_t): Removed.
  8409. (ID): New variable.
  8410. (getId): Made non-const.
  8411. * src/BtHandshakeMessage.h
  8412. (ID): New variable.
  8413. (getId): Made non-const.
  8414. * src/BtSuggestPieceMessage.h
  8415. (ID_t): Removed.
  8416. (ID): New variable.
  8417. (getId): Made non-const.
  8418. * src/BtPortMessage.h
  8419. (ID_t): Removed.
  8420. (ID): New variable.
  8421. (getId): Made non-const.
  8422. * src/AbstractBtMessage.h
  8423. (id): Removed.
  8424. (AbstractBtMessage): Removed id.
  8425. (getId): Removed.
  8426. * src/BtHaveMessage.h
  8427. (ID_t): Removed.
  8428. (ID): New variable.
  8429. (getId): Made non-const.
  8430. * src/BtAllowedFastMessage.h
  8431. (ID_t): Removed.
  8432. (ID): New variable.
  8433. (getId): Made non-const.
  8434. * src/BtCancelMessage.h
  8435. (ID_t): Removed.
  8436. (ID): New variable.
  8437. (getId): Made non-const.
  8438. * src/BtNotInterestedMessage.h
  8439. (ID_t): Removed.
  8440. (ID): New variable.
  8441. (getId): Made non-const.
  8442. * src/BtChokeMessage.h
  8443. (ID_t): Removed.
  8444. (ID): New variable.
  8445. (getId): Made non-const.
  8446. * src/BtRejectMessage.h
  8447. (ID_t): Removed.
  8448. (ID): New variable.
  8449. (getId): Made non-const.
  8450. * src/BtBitfieldMessage.h
  8451. (ID_t): Removed.
  8452. (ID): New variable.
  8453. (getId): Made non-const.
  8454. * src/BtUnchokeMessage.h
  8455. (ID_t): Removed.
  8456. (ID): New variable.
  8457. (getId): Made non-const.
  8458. * src/BtRequestMessage.h
  8459. (ID_t): Removed.
  8460. (ID): New variable.
  8461. (getId): Made non-const.
  8462. * src/BtHaveMessage.h
  8463. (ID_t): Removed.
  8464. (ID): New variable.
  8465. (getId): Made non-const.
  8466. To add --force-truncate command-line option and a check whether
  8467. the file already exists:
  8468. * src/DirectDiskAdaptor.h
  8469. (getFilePath): Made virtual public.
  8470. * src/MultiDiskAdaptor.h
  8471. (File.h): New include.
  8472. (DiskWriterEntry::fileEntry): Made private.
  8473. (DiskWriterEntry::fileExists): New function.
  8474. (DiskWriterEntry::getFileEntry): New function.
  8475. (fileExists): New function.
  8476. (getFilePath): New function.
  8477. * src/TorrentRequestInfo.cc
  8478. (FatalException.h): New include.
  8479. (message.h): New include.
  8480. (RecoverableException.h): New include.
  8481. (execute): Added a check whether file is already exists or not.
  8482. * src/DiskAdaptor.h
  8483. (fileExists): New function.
  8484. (getFilePath): New function.
  8485. * src/main.cc
  8486. (showUsage): Added an explanation of --force-truncate command-line
  8487. option.
  8488. (main): Added --force-truncate command-line option.
  8489. * src/Exception.h
  8490. (setMsg): buf[256] -> buf[1024]
  8491. * src/CopyDiskWriter.h
  8492. (getFilePath): Made public virtual.
  8493. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  8494. (fileExists): New function.
  8495. * src/DownloadEngineFactory.cc
  8496. (newTorrentConsoleEngine): Don't open file here.
  8497. * src/message.h
  8498. (EX_FILE_ALREADY_EXISTS): New definition.
  8499. * src/prefs.h
  8500. (PREF_FOECE_TRUNCATE): New definition.
  8501. * src/HttpResponseCommand.cc
  8502. (handleDefaultEncoding): Added a check whether the file already exists.
  8503. * src/SegmentMan.h
  8504. (fileExists): New function.
  8505. (shouldCancelDownloadForSafety): New function.
  8506. * src/FtpNegotiateCommand.cc
  8507. (recvSize): Added a check whether the file already exists.
  8508. * src/AbstractSingleDiskAdaptor.cc
  8509. (File.h): New include.
  8510. (fileExists): New function.
  8511. * src/AbstractSingleDiskAdaptor.h
  8512. (getFilePath): Removed.
  8513. (fileExists): New function.
  8514. * src/SegmentMan.cc
  8515. (fileExists): New function.
  8516. (shouldCancelDownloadForSafety): New function.
  8517. To fix regression bug in torrent downloading:
  8518. * src/DefaultBtRequestFactory.cc
  8519. (doChokedAction): New function.
  8520. * src/DefaultBtRequestFactory.h
  8521. (doChokedAction): New function.
  8522. * src/DefaultBtMessageDispatcher.cc
  8523. (doChokedAction): Do not delete request if its target is in allowed
  8524. fast set.
  8525. * src/DefaultBtInteractive.cc
  8526. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  8527. (sendKeepAlive): Send keep alive message even if the outgoing message
  8528. queue is not empty.
  8529. (decideInterest): Simplified the code.
  8530. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  8531. it is already called when BtChokeMessage is received from a peer.
  8532. * src/BtRequestFactory.h
  8533. (doChokedAction): New function.
  8534. To clean up code:
  8535. * src/PeerInteractionCommand.h
  8536. (executeInternal): Added virtual keyword explicitly.
  8537. (prepareForRetry): Added virtual keyword explicitly.
  8538. (prepareForNextPeer): Added virtual keyword explicitly.
  8539. (onAbort): Added virtual keyword explicitly.
  8540. * src/RequestSlot.cc
  8541. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  8542. * src/BtPieceMessage.cc
  8543. (doReceivedAction): Added a debug log of piece's bitfield.
  8544. * src/Piece.h
  8545. (getBitfieldLength): New function.
  8546. * src/ByteArrayDiskWriter.cc
  8547. (clear): Added buf = 0 to avoid double free corruption.
  8548. * src/FileAllocator.cc
  8549. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  8550. Added cp.reset().
  8551. * src/BitfieldMan.h
  8552. (operator=): Rewritten.
  8553. * src/BitfieldMan.cc
  8554. (BitfieldMan): Initialized bitfield, useBitfield.
  8555. * src/PeerConnection.cc
  8556. (receiveMessage): Added a call to socket->readable() after getting
  8557. message length to avoid possible EOF.
  8558. * src/Util.cc
  8559. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  8560. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. To add an ability to pre-allocate file space:
  8562. * src/DirectDiskAdaptor.h: Rewritten.
  8563. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  8564. * src/MultiDiskAdaptor.h: Rewritten.
  8565. * src/DefaultPieceStorage.cc
  8566. (MultiDiskWriter.h): Removed include.
  8567. (PreAllocationDiskWriter.h): Removed include.
  8568. (FileAllocationMonitor.h): New include.
  8569. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  8570. (initStorage): Rewritten.
  8571. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8572. * src/FileAllocator.h: New class.
  8573. * src/FileAllocator.cc: New class.
  8574. * src/FileAllocationMonitor.h: New class.
  8575. * src/FileAllocationMonitor.cc: New class.
  8576. * src/ConsoleFileAllocationMonitor.h: New class.
  8577. * src/ConsoleFileAllocationMonitor.cc: New class.
  8578. * src/AbstractSingleDiskAdaptor.h: New class.
  8579. * src/AbstractSingleDiskAdaptor.cc: New class.
  8580. * src/DiskAdaptor.h
  8581. (Directory.h): Removed include.
  8582. (DiskWriter.h): Removed include.
  8583. (FileEntry.h): Removed include.
  8584. (diskWriter): Removed.
  8585. (DiskAdaptor): Removed diskWriter.
  8586. (openFile): Made pure virtual.
  8587. (closeFile): Made pure virtual.
  8588. (openExistingFile): Made pure virtual.
  8589. (initAndOpenFile): Made pure virtual.
  8590. (writeData): Made pure virtual.
  8591. (readData): Made pure virtual.
  8592. (sha1Sum): Made pure virtual.
  8593. (getStoreDir): Returns const reference of storeDir.
  8594. (DiskAdaptorHandle): New type definition.
  8595. * src/main.cc
  8596. (ConsoleFileAllocationMonitor.h): New include.
  8597. (showUsage): Added default value description of -s option.
  8598. Added the description of --file-allocation option.
  8599. (main): Set default value of --file-allocation option to 'none'.
  8600. Added --file-allocation command-line option.
  8601. Setup FileAllocationMonitorFactory.
  8602. * src/FtpInitiateConnectionCommand.cc
  8603. (executeInternal): Removed diskWriter related processing, which was
  8604. moved to FtpNegotiationCommand.cc.
  8605. * src/DirectDiskAdaptor.cc
  8606. (getFilePath): Made non-const.
  8607. * src/CopyDiskAdaptor.h
  8608. (DiskAdaptor.h): Removed include.
  8609. (DiskWriter.h): Removed include.
  8610. (AbstractSingleDiskAdaptor.h): New include.
  8611. (getFilePath): Made non-const. Added virtual keyword.
  8612. (CopyDiskAdaptor): Removed diskWriter.
  8613. (getTempFile): Returns const reference.
  8614. (CopyDiskAdaptorHandle): New type definition.
  8615. * src/ByteArrayDiskWriter.cc
  8616. (clear): Simplified.
  8617. (initAndOpenFile): Rewritten.
  8618. (openFile): Call initAndOpenFile()
  8619. * src/MultiDiskAdaptor.cc: Rewritten.
  8620. * src/DownloadEngineFactory.cc
  8621. (FileAllocator.h): New include.
  8622. (FileAllocationMonitor.h): New include.
  8623. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  8624. create DefaultDiskWriter with file allocator.
  8625. * src/DiskWriter.h
  8626. (initAndOpenFile): Added totalLength argument.
  8627. (openFile): Added totalLength argument.
  8628. * src/prefs.h
  8629. (PREF_FILE_ALLOCATION): New definition.
  8630. (V_PREALLOC): New definition.
  8631. (V_NONE): New definition.
  8632. * src/HttpResponseCommand.cc
  8633. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  8634. size.
  8635. * src/FtpNegotiateCommand.cc
  8636. (Util.h): New include.
  8637. (recvSize): Open file here.
  8638. * src/Util.h
  8639. (ullitos): New function.
  8640. * src/CopyDiskWriter.h
  8641. (getFilePath): Made non-const.
  8642. * src/DefaultDiskWriter.h
  8643. (Option.h): New include.
  8644. (totalLength): Removed.
  8645. (DefaultDiskWriter): Removed totalLength.
  8646. (initAndOpenFile): Added totalLength argument.
  8647. (DefaultDiskWriterHandle): New type definition.
  8648. (createNewDiskWriter): New function.
  8649. * src/Util.cc
  8650. (ullitos): New function.
  8651. * src/DefaultDiskWriter.cc
  8652. (message.h): New include.
  8653. (FileAllocator.h): New include.
  8654. (prefs.h): New include.
  8655. (Util.h): New include.
  8656. (DefaultDiskWriter): Removed totalLength.
  8657. (initAndOpenFile): Added file allocation.
  8658. (createNewDiskWriter): New function. Just for temporary solution.
  8659. It will be rewritten later.
  8660. * src/DiskAdaptor.cc
  8661. (DiskAdaptor): Removed diskWriter.
  8662. * src/AbstractDiskWriter.cc
  8663. (LogFactory.h): New include.
  8664. (AbstractDiskWriter): Added fileAllocator, logger.
  8665. (openFile): Added totalLength argument.
  8666. * src/AbstractDiskWriter.h
  8667. (FileAllocator.h): New include.
  8668. (Logger.h): New include.
  8669. (fileAllocator): New variable.
  8670. (logger): New variable.
  8671. (openFile): Added totalLength argument. Added virtual keyword
  8672. explicitly.
  8673. (openExistingFile): Added totalLength argument. Added virtual keyword
  8674. explicitly.
  8675. (closeFile): Added virtual keyword explicitly.
  8676. (sha1Sum): Added virtual keyword explicitly.
  8677. (writeData): Added virtual keyword explicitly.
  8678. (readData): Added virtual keyword explicitly.
  8679. (setFileAllocator): New function.
  8680. * src/DefaultPieceStorage.h
  8681. (FileAllocator.h): New include.
  8682. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8683. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8684. * src/FileProgressMonitor.h: New class.
  8685. To compile aria2 on PC-BSD:
  8686. * src/DefaultBtContext.cc
  8687. (libgen.h): New include.
  8688. To fix memory leak:
  8689. * src/Exception.h
  8690. (~Exception): Delete cause. Fixed memory leak.
  8691. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8692. Rewritten a portion of bittorrent implementation:
  8693. * src/BtMessageValidator.h: New class.
  8694. * src/BtBitfieldMessageValidator.h: New class.
  8695. * src/BtHandshakeMessageValidator.h: New class.
  8696. * src/BtRequestMessageValidator.h: New class.
  8697. * src/BtSuggestPieceMessageValidator.h: New class.
  8698. * src/BtAllowedFastMessageValidator.h: New class.
  8699. * src/BtRejectMessageValidator.h: New class.
  8700. * src/BtCancelMessageValidator.h: New class.
  8701. * src/BtPieceMessageValidator.h: New class.
  8702. * src/BtHaveMessageValidator.h: New class.
  8703. * src/BtEventListener.h: New class.
  8704. * src/AbstractBtEventListener.h: New class.
  8705. * src/BtEvent.h: New class.
  8706. * src/BtChokingEvent.h: New class.
  8707. * src/BtChokedEvent.h: New class.
  8708. * src/BtCancelSendingPieceEvent.h: New class.
  8709. * src/BtAbortOutstandingRequestEvent.h: New class.
  8710. * src/Randomizer.h: New class.
  8711. * src/SimpleRandomizer.h: New class.
  8712. * src/BtMessage.h: New class.
  8713. * src/AbstractBtMessage.h: New class.
  8714. * src/SimpleBtMessage.h: New class.
  8715. * src/BtHaveMessage.h: New class.
  8716. * src/BtInterestedMessage.h: New class.
  8717. * src/BtAllowedFastMessage.h: New class.
  8718. * src/BtUnchokeMessage.h: New class.
  8719. * src/BtCancelMessage.h: New class.
  8720. * src/BtNotInterestedMessage.h: New class.
  8721. * src/BtChokeMessage.h: New class.
  8722. * src/BtHaveNoneMessage.h: New class.
  8723. * src/BtHandshakeMessage.h: New class.
  8724. * src/BtSuggestPieceMessage.h: New class.
  8725. * src/BtHaveMessage.h: New class.
  8726. * src/BtPieceMessage.h: New class.
  8727. * src/BtHaveAllMessage.h: New class.
  8728. * src/BtKeepAliveMessage.h: New class.
  8729. * src/BtPortMessage.h: New class.
  8730. * src/BtRejectMessage.h: New class.
  8731. * src/BtBitfieldMessage.h: New class.
  8732. * src/BtRequestMessage.h: New class.
  8733. * src/DefaultBtRequestFactory.h: New class.
  8734. * src/DefaultBtMessageReceiver.h: New class.
  8735. * src/BtInteractive.h: New class.
  8736. * src/BtMessageDispatcher.h: New class.
  8737. * src/DefaultBtMessageDispatcher.h: New class.
  8738. * src/DefaultBtInteractive.h: New class.
  8739. * src/BitfieldManFactory.h: New class.
  8740. * src/HandleRegistry.h: New class.
  8741. * src/BtMessageFactory.h: New class.
  8742. * src/BtMessageReceiver.h: New class.
  8743. * src/DefaultBtMessageFactory.h: New class.
  8744. * src/PeerObject.h: New class.
  8745. * src/BtRequestFactory.h: New class.
  8746. * src/SuggestPieceMessage.h: Removed.
  8747. * src/PortMessage.h: Removed.
  8748. * src/SuggestPieceMessage.h: Removed.
  8749. * src/KeepAliveMessage.h: Removed.
  8750. * src/HandshakeMessage.h: Removed.
  8751. * src/PeerInteraction.h: Removed.
  8752. * src/UnchokeMessage.h: Removed.
  8753. * src/PieceMessage.h: Removed.
  8754. * src/RequestMessage.h: Removed.
  8755. * src/InterestedMessage.h: Removed.
  8756. * src/HaveMessage.h: Removed.
  8757. * src/CancelMessage.h: Removed.
  8758. * src/RejectMessage.h: Removed.
  8759. * src/AllowedFastMessage.h: Removed.
  8760. * src/HaveNoneMessage.h: Removed.
  8761. * src/SimplePeerMessage.h: Removed.
  8762. * src/HaveAllMessage.h: Removed.
  8763. * src/BitfieldMessage.h: Removed.
  8764. * src/PeerMessageFactory.h: Removed.
  8765. * src/NotInterestedMessage.h: Removed.
  8766. * src/ChokeMessage.h: Removed.
  8767. * src/PeerMessage.h: Removed.
  8768. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8769. To know root cause of exception:
  8770. * src/Exception.h
  8771. (cause): New variable.
  8772. (Exception): Added a parameter.
  8773. (getMsg): Return const reference to msg.
  8774. (getCause): New function.
  8775. * src/DlRetryEx.h
  8776. (DlRetryEx): Added a parameter 'cause'.
  8777. Added an overloaded constructor.
  8778. (DlAbortEx): Added a parameter 'cause'.
  8779. Added an overloaded constructor.
  8780. * src/SimpleLogger.cc
  8781. (writeLog): Log nested exception messages recursively.
  8782. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. * src/DefaultBtProgressInfoFile.cc
  8784. (load): Fixed memory leak when the infohash doesn't match.
  8785. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8786. * src/DefaultPeerStorage.cc
  8787. (calculateStat): Simplified the code by combining 2 loops into 1.
  8788. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8789. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  8790. for BitTorrent download:
  8791. * src/PeerAbstractCommand.cc
  8792. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  8793. * src/main.cc:
  8794. (timeoutSpecified): Removed.
  8795. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  8796. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  8797. * src/TorrentRequestInfo.cc
  8798. (timeoutSpecified): Removed.
  8799. (torrentHandler): Removed timeoutSpecified and the adjustment of
  8800. timeout value.
  8801. * src/prefs.h
  8802. (PREF_BT_TIMEOUT): New definition.
  8803. Delete unused variables:
  8804. * src/TorrentRequestInfo.cc
  8805. (requestInfo): Removed.
  8806. Move setSignalHander to Util::setGlobalSignalHandler:
  8807. * src/TorrentRequestInfo.cc:
  8808. setSignalHander -> Util::setGlobalSignalHandler
  8809. * src/main.cc
  8810. (setSignalHander): Removed.
  8811. (main): setSignalHander -> Util::setGlobalSignalHandler
  8812. * src/Util.h
  8813. (setGlobalSignalHandler): New function.
  8814. * src/Util.cc
  8815. (setGlobalSignalHandler): New function.
  8816. * src/UrlRequestInfo.cc:
  8817. setSignalHander -> Util::setGlobalSignalHandler
  8818. Reset peer status in order to exit gracefully:
  8819. * src/PeerAbstractCommand.cc
  8820. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  8821. To fix the bug that causes the number of bytes uploaded is not saved
  8822. to .aria2 file:
  8823. * src/DefaultPeerStorage.h
  8824. (removedPeerSessionDownloadLength): New variable.
  8825. (removedPeerSessionUploadLength): New variable.
  8826. * src/DefaultPeerStorage.cc
  8827. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  8828. removedPeerSessionUploadLength(0).
  8829. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  8830. through all peers, and then add removedPeerSessionDownloadLength(
  8831. removedPeerSessionUploadLength) to it.
  8832. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  8833. (to) the peer to removedPeerSessionDownloadLength
  8834. (removedPeerSessionUploadLength).
  8835. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. To add Metalink location option:
  8837. * src/MetalinkRequestInfo.cc
  8838. (execute): Call MetalinkEntry::setLocationPreference()
  8839. * src/main.cc
  8840. (showUsage): Added the help message for --metalink-location option.
  8841. (main): Added --metalink-location option.
  8842. * src/prefs.h
  8843. (PREF_METALINK_LOCATION): New definition.
  8844. * src/MetalinkEntry.cc
  8845. (AddLocationPreference): New function object.
  8846. (setLocationPreference): New function.
  8847. * src/Xml2MetalinkProcessor.cc
  8848. (getResource): Set location attribute to MetalinkResource
  8849. To show URLs to download
  8850. * src/UrlRequestInfo.h
  8851. (printUrls): New function.
  8852. To add multiple <file> Metalink support:
  8853. * src/MetalinkEntry.h
  8854. (MetalinkResources): Removed.
  8855. (setLocationPreference): New function.
  8856. (MetalinkEntryHandle): New type definition.
  8857. (MetalinkEntries): New type definition.
  8858. * src/Xml2MetalinkProcessor.h
  8859. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8860. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8861. (parseFile): Metalinker* -> MetalinkerHandle
  8862. * src/UrlRequestInfo.h
  8863. (execute): RequestInfo* -> RequestInfos
  8864. * src/MetalinkRequestInfo.cc
  8865. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  8866. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  8867. (execute): RequestInfo* -> RequestInfos
  8868. Added multiple <file> support. Print filename when it is queued.
  8869. * src/MetalinkRequestInfo.h
  8870. (execute): RequestInfo* -> RequestInfos
  8871. (getDownloadEngine): Removed.
  8872. * src/RequestInfo.h
  8873. (RequestInfoHandle): New type definition.
  8874. (RequestInfos): New type definition.
  8875. (execute): RequestInfo* -> RequestInfos
  8876. (getDownloadEngine): Removed.
  8877. * src/MetalinkResource.h
  8878. (MetalinkResourceHandle): New type definition.
  8879. (MetalinkResources): New type definition.
  8880. * src/MetalinkEntry.cc
  8881. (~MetalinkEntry): Removed the deletion of the elements of resources,
  8882. because the element is now of type MetalinkResourceHandle.
  8883. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  8884. (Supported): MetalinkResource* -> MetalinkResourceHandle
  8885. (dropUnsupportedResource): Removed the deletion of the elements of
  8886. resources because the element is now of type MetalinkResourceHandle.
  8887. * src/Xml2MetalinkProcessor.cc
  8888. (parseFile): Metalinker* -> MetalinkerHandle
  8889. MetalinkEntry* -> MetalinkEntryHandle
  8890. Removed try-catch block.
  8891. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8892. MetalinkResource* -> MetalinkResourceHandle
  8893. Removed try-catch block.
  8894. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8895. Free result by using xmlXPathFreeObject()
  8896. * src/Metalinker.cc
  8897. (~Metalinker): Removed the deletion of entries.
  8898. MetalinkEntry* -> MetalinkEntryHandle
  8899. (queryEntry): Add multiple <file> Metalink support.
  8900. * src/Metalinker.h
  8901. (MetalinkEntries): Removed.
  8902. (queryEntry): MetalinkEntry* -> MetalinkEntries
  8903. * src/MetalinkProcessor.h
  8904. (parseFile): Metalinker* -> MetalinkerHandle
  8905. Bug fixes:
  8906. * src/PeerChokeCommand.cc
  8907. (execute): cat01->cat02
  8908. * src/DefaultPieceStorage.cc
  8909. (DefaultPieceStorage): Added diskAdaptor(0)
  8910. * src/TrackerWatcherComand.cc:
  8911. (execute): Use btAnnounce->noMoreAnnounce()
  8912. to determin whether the function returns true or not.
  8913. * src/TrackerUpdateCommand.cc:
  8914. (execute): Use btAnnounce->noMoreAnnounce()
  8915. to determin whether the function returns true or not.
  8916. * src/FtpConnection.cc
  8917. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  8918. This is the fix of the busy loop bug.
  8919. * src/DownloadCommand.cc
  8920. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  8921. cached PeerStat.
  8922. The value of "name" entry in torrent file is now set by
  8923. *DiskAdaptor::setTopDir(...) methods.
  8924. * src/MultiDiskAdaptor.h
  8925. (topDir): New variable.
  8926. (setTopDir): New function.
  8927. (getTopDir): New function.
  8928. * src/MultiDiskAdaptor.cc
  8929. (getFilePath): Concat storDir, "/" and topDir.
  8930. (mkdir): Use getFilePath() to get the directory path for output.
  8931. * src/DefaultPieceStorage.cc
  8932. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  8933. CopyDiskAdaptor.
  8934. * src/CopyDiskAdaptor.h
  8935. (topDir): New variable.
  8936. (setTopDir): New function.
  8937. (getTopDir): New function.
  8938. * src/CopyDiskAdaptor.cc
  8939. (fixFilename): Updated.
  8940. Misc
  8941. * src/UrlRequestInfo.h
  8942. (e): Removed.
  8943. (UrlRequestInfo): Removed e.
  8944. (getDownloadEngine): Removed.
  8945. * src/UrlRequestInfo.cc
  8946. (handler): Rewritten.
  8947. (printUrls): New function.
  8948. (execute): Call printUrls().
  8949. * src/HandshakeMessage.cc
  8950. (check): peerinteraction->getBtContext() -> btContext
  8951. * src/PeerInteraction.h
  8952. (getBtContext): Removed.
  8953. * src/TorrentRequestInfo.h
  8954. (execute): RequestInfo* -> RequestInfos
  8955. (getDownloadEngine): Removed.
  8956. * src/TorrentRequestInfo.cc
  8957. (haltRequested): Removed.
  8958. (btHaltRequested): New variable.
  8959. (torrentHandler): haltRequested -> btHaltRequested
  8960. (execute): RequestInfo* -> RequestInfos
  8961. * src/TorrentConsoleDownloadEngine.cc
  8962. (afterEachIteration): haltRequested -> btHaltRequested.
  8963. * src/ConsoleDownloadEngine.h
  8964. (initStatistics): Added virtual.
  8965. (calculateStatistics): Added virtual.
  8966. (onEndOfRun): Added virtual.
  8967. (afterEachIteration): Added virtual.
  8968. * src/ConsoleDownloadEngine.cc
  8969. (haltRequested): New variable.
  8970. (afterEachIteration): New function.
  8971. * src/main.cc
  8972. (requestInfo): Removed.
  8973. * src/SegmentMan.cc
  8974. (findSlowerSegmentEntry): Refactored.
  8975. * Release 0.9.0
  8976. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  8978. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  8979. * src/TorrentMan.h: Removed.
  8980. * src/TorrentMan.cc: Removed.
  8981. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  8982. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  8983. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  8984. * src/PeerAbstractCommand.cc: Use btRuntime.
  8985. * src/BtContextAwareCommand.h: New class.
  8986. * src/FileEntry.h: Added accessor methods for following variables.
  8987. (path): Made private.
  8988. (length): Made private.
  8989. (offset): Made private.
  8990. (extracted): Made private.
  8991. (requested): Made private.
  8992. (FileEntries): New definition.
  8993. (FileEntryHandle): New definition.
  8994. * src/FileEntry.cc: New file.
  8995. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  8996. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  8997. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  8998. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  8999. * src/PieceStorage.h: New file.
  9000. * src/PeerInteractionCommand.h: Use btContext.
  9001. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  9002. btRuntime.
  9003. * src/DefaultBtProgressInfoFile.h: New file.
  9004. * src/DefaultBtProgressInfoFile.cc: New file.
  9005. * src/File.cc
  9006. (Util.h): New include.
  9007. (mkdirs): New function.
  9008. * src/MultiDiskAdaptor.h
  9009. (mkdir): New function.
  9010. * src/PeerListProcessor.h
  9011. (Peers): Removed.
  9012. * src/PeerInteraction.h
  9013. (torrentMan): Removed.
  9014. (btContext): New variable.
  9015. (peerStorage): New variable.
  9016. (pieceStorage): New variable.
  9017. (btAnnounce): New variable.
  9018. (getTorrentMan): Removed.
  9019. (getBtContext): New function.
  9020. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9021. btAnnounce.
  9022. * src/HandshakeMessage.h
  9023. (TorrentMan.h): Removed.
  9024. * src/HandshakeMessage.cc: Use btContext.
  9025. * src/DefaultBtAnnounce.cc: New file.
  9026. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9027. * src/DefaultPieceStorage.cc: New file.
  9028. * src/DefaultBtContext.h: New file.
  9029. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9030. Use the accessor methods of FileEntry.
  9031. * src/CookieBox.cc: Updated to use Util::slice().
  9032. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9033. * src/common.h (SharedHandle.h): New include.
  9034. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9035. pieceStorage.
  9036. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9037. * src/DiskAdaptor.h
  9038. (topDir): Removed.
  9039. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9040. (setTopDir): Removed.
  9041. (getTopDir): Removed.
  9042. * src/BtContext.h: New file.
  9043. * src/DefaultPeerStorage.h: New file.
  9044. * src/PieceMessage.h (TorrentMan.h): Removed.
  9045. * src/RequestMessage.h (TorrentMan.h): Removed.
  9046. * src/TorrentDownloadEngine.h
  9047. (uploadLength): New variable.
  9048. (btContext): New variable.
  9049. (btRuntime): New variable.
  9050. (pieceStorage): New variable.
  9051. (peerStorage): New variable.
  9052. (btAnnounce): New variable.
  9053. (btProgressInfoFile): New variable.
  9054. (torrentMan): Removed.
  9055. (setBtContext): New function.
  9056. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9057. peerStorage, btAnnounce, btProgressInfoFile.
  9058. * src/Piece.h
  9059. (toString): New function.
  9060. (Pieces): New type definition.
  9061. * src/Peer.h
  9062. (active): New variable.
  9063. (Peer): Added active.
  9064. (activate): Set active to true.
  9065. (deactivate): Set active to false.
  9066. (isActive): New function.
  9067. (Peers): New type definition.
  9068. * src/DirectDiskAdaptor.cc
  9069. (getFilePath): Use the accessor methods of FileEntry.
  9070. * src/TorrentConsoleDownloadEngine.h
  9071. (afterEachIteration): New function.
  9072. * src/TorrentConsoleDownloadEngine.cc
  9073. (haltRequested): New variable.
  9074. (sendStatistics): Use pieceStorage, btRuntime.
  9075. (afterEachIteration): New function.
  9076. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9077. * src/Directry.h
  9078. (Directory): New function.
  9079. (DirectoryHandle): New type definition.
  9080. * src/BtProgressInfoFile.h: New file.
  9081. * src/RequestMessage.cc: Use pieceStorage.
  9082. * src/BtRuntime.h: New file.
  9083. * src/DefaultBtContext.cc: New file.
  9084. * src/BitfieldMan.h
  9085. (getCompletedLength): New function(private).
  9086. (getCompletedLength): New function.
  9087. (getFilteredCompletedLength): New function.
  9088. * src/BitfieldMan.h
  9089. (getCompletedLength): New function(private).
  9090. (getCompletedLength): New function.
  9091. (getFilteredCompletedLength): New function.
  9092. * src/MultiDiskAdaptor.cc
  9093. (mkdir): New function.
  9094. (openFile): Call mkdir().
  9095. (initAndOpenFile): Call mkdir().
  9096. * src/CancelMessage.h
  9097. (TorrentMan.h): Removed.
  9098. * src/RejectMessage.h
  9099. (TorrentMan.h): Removed.
  9100. * src/DownloadEngineFactory.cc
  9101. (DefaultPieceStorage.h): New include.
  9102. (DefaultPeerStorage.h): New include.
  9103. (DefaultBtAnnounce.h): New include.
  9104. (DefaultBtProgressInfoFile.h): New include.
  9105. (newTorrentConsoleEngine): Rewritten.
  9106. * src/ShareRatioSeedCriteria.h
  9107. (torrentMan): Removed.
  9108. (btContext): New variable.
  9109. (peerStorage): New variable.
  9110. (btRuntime): New variable.
  9111. (evaluate): Use btContext, btRuntime, peerStorage.
  9112. * src/AnnounceTier.h: New file.
  9113. * src/BtAnnounce.h: New file.
  9114. * src/BtRegistry.h: New file.
  9115. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9116. * src/PeerConnection.h (TorrentMan.h): Removed.
  9117. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9118. * src/Util.h
  9119. (slice): Added an argument.
  9120. * src/Util.cc
  9121. (slice): Added an argument to control whether trim is made or not.
  9122. * src/PeerStorage.h: New file.
  9123. * src/BtRegistry.cc: New file.
  9124. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9125. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9126. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9127. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9128. * src/TorrentRequestInfo.h
  9129. (e): Removed.
  9130. (showFileEntry): Added an argument.
  9131. (getDownloadEngine): Return 0.
  9132. * src/DefaultBtAnnounce.h: New file.
  9133. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9134. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9135. * src/PeerMessageFactory.h
  9136. (btContext): New variable.
  9137. (pieceStorage): New variable.
  9138. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9139. btAnnounce.
  9140. * src/DiskAdaptor.cc
  9141. (DiskAdaptor): Removed topDir.
  9142. (~DiskAdaptor): Removed topDir.
  9143. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9144. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9145. * src/File.h (mkdirs): New function.
  9146. * src/DefaultPeerStorage): New file.
  9147. * src/DownloadEngineFactory.h
  9148. (newTorrentConsoleEngine): Use btContext.
  9149. * src/BtContextAwareCommand.cc: New file.
  9150. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9151. * src/PeerMessage.h
  9152. (btContext): New variable.
  9153. (peerStorage): New variable.
  9154. (pieceStorage): New variable.
  9155. (setBtContext): New function.
  9156. * src/Directry.cc
  9157. (Directory): New function.
  9158. (createDir): Do nothing if name.size() == 0.
  9159. * src/AnnounceList.h
  9160. (AnnounceTier): Removed.
  9161. (AnnounceTiers): Removed.
  9162. * src/DefaultPieceStorage.h: New file.
  9163. * src/Piece.cc (toString): New function.
  9164. To fix typo:
  9165. * src/main.cc (showVersion): Fixed typo.
  9166. To fix compile warning:
  9167. * src/DelegatingPeerListProcessor.cc
  9168. (canHandle): Added "return false".
  9169. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9170. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9171. make the process of announce request testable.
  9172. * src/TrackerWatcherCommand.h
  9173. (TimeA2.h): Removed.
  9174. (interval): Removed.
  9175. (checkPoint): Removed.
  9176. (createRequestCommand): Added an argument 'url'.
  9177. (TrackerWatherCommand): Removed interval.
  9178. (createCommand): New function.
  9179. * src/DownloadEngineFactory.cc
  9180. (newTorrentConsoleEngine): Updated according to the changes in
  9181. TrackerWatherCommand.
  9182. * src/TorrentMan.cc
  9183. (DelegatingPeerListProcessor.h): New includes.
  9184. (TorrentMan): Added the initialization of announceInterval.
  9185. (isStoppedAnnounceReady): New function.
  9186. (isCompletedAnnounceReady): New function.
  9187. (isDefaultAnnounceReady): New function.
  9188. (isAnnounceReady): New function.
  9189. (getAnnounceUrl): New function.
  9190. (announceStart): New function.
  9191. (announceFailure): New function.
  9192. (announceSuccess): New function.
  9193. (isAllAnnounceFailed): New function.
  9194. (resetAnnounce): New function.
  9195. (processAnnounceResponse): New function.
  9196. (needMorePeerConnection): New function.
  9197. (noMoreAnnounce): New function.
  9198. * src/TrackerUpdateCommand.h
  9199. (getTrackerResponse): int->size_t
  9200. * src/TorrentMan.h
  9201. (isStoppedAnnounceReady): New function.
  9202. (isCompletedAnnounceReady): New function.
  9203. (isDefaultAnnounceReady): New function.
  9204. (announceInterval): New variable.
  9205. (isAnnounceReady): New function.
  9206. (getAnnounceUrl): New function.
  9207. (announceStart): New function.
  9208. (announceFailure): New function.
  9209. (announceSuccess): New function.
  9210. (isAllAnnounceFailed): New function.
  9211. (resetAnnounce): New function.
  9212. (processAnnounceResponse): New function.
  9213. (needMorePeerConnection): New function.
  9214. (noMoreAnnounce): New function.
  9215. * src/TrackerWatcherCommand.cc
  9216. (TrackerWatherCommand): Removed interval and checkPoint.
  9217. (execute): Rewritten.
  9218. (createCommand): New function.
  9219. (createRequestCommand): Rewritten.
  9220. * src/TrackerUpdateCommand.cc
  9221. (MetaFileUtil.h): Removed.
  9222. (DelegatingPeerListProcessor.h): Removed.
  9223. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  9224. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9225. Request -> RequestHandle:
  9226. * src/HttpResponseCommand.h: Request->RequestHandle
  9227. * src/AbstractCommand.cc: Request->RequestHandle
  9228. * src/HttpDownloadCommand.cc: Request->RequestHandle
  9229. * src/HttpRequestCommand.cc: Request->RequestHandle
  9230. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  9231. * src/AbstractCommand.h: Request->RequestHandle
  9232. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  9233. * src/HttpResponseCommand.cc: Request->RequestHandle
  9234. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  9235. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  9236. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  9237. * src/HttpConnection.h: Request->RequestHandle
  9238. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  9239. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  9240. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9241. * src/DownloadCommand.h: Request->RequestHandle
  9242. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9243. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9244. * src/HttpRequestCommand.h: Request->RequestHandle
  9245. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9246. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9247. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9248. * src/HttpDownloadCommand.h: Request->RequestHandle
  9249. * src/FtpConnection.cc: Request->RequestHandle
  9250. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9251. * src/UrlRequestInfo.cc: Request->RequestHandle
  9252. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9253. * src/HttpConnection.h: Request->RequestHandle
  9254. * src/DownloadCommand.cc: Request->RequestHandle
  9255. * src/FtpConnection.h: Request->RequestHandle
  9256. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9257. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9258. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9259. * src/Request.h
  9260. (SharedHandle.h): New include.
  9261. (RequestHandle): New type definition.
  9262. (Requests): Redefined.
  9263. To add MULTITRACKER support:
  9264. * src/TrackerWatcherCommand.h
  9265. (createRequestCommand): New function.
  9266. * src/DownloadEngineFactory.cc
  9267. (newTorrentConsoleEngine): Removed req.
  9268. * src/prefs.h
  9269. (PREF_TRACKER_MAX_TRIES): New definition.
  9270. * src/TorrentMan.cc
  9271. (TorrentMan): Removed req. Added trackerNumTry.
  9272. (~TorrentMan): Removed req.
  9273. (setupInternal1): Added announceList.
  9274. * src/TorrentRequestInfo.cc
  9275. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9276. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9277. * src/main.cc
  9278. (main): Added PREF_TRACKER_MAX_TRIES.
  9279. * src/TorrentMan.h
  9280. (Request.h): Removed.
  9281. (AnnounceList.h): New include.
  9282. (trackerNumTry): New variable.
  9283. (req): Removed.
  9284. (announceList): New variable.
  9285. * src/TrackerWatcherCommand.cc
  9286. (execute): Rewritten.
  9287. (createRequestCommand): New function.
  9288. * src/TrackerUpdateCommand.cc
  9289. (execute): Updated with the use of AnnounceList.
  9290. * src/AnnounceList.cc: New class.
  9291. * src/AnnounceList.h: New class.
  9292. To fix typo:
  9293. * src/prefs.h
  9294. (PREF_MAX_TRIES): max_try->max_tries
  9295. To not to decode "+" as space in URL decode:
  9296. * src/Util.cc
  9297. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  9298. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. To add timeout to async name resolution:
  9300. * src/AbstractCommand.h
  9301. (nameResolveFinished): New function. This is not elegant way. It needs
  9302. to be more refined.
  9303. (nameResolverCheck): New variable.
  9304. * src/AbstractCommand.cc
  9305. (AbstractCommand): Added nameResolverCheck.
  9306. (execute): Added the check whether the name resolution has finished.
  9307. (setNameResolverCheck): Set nameResolverCheck to true.
  9308. (disableNameResolverCheck): Set nameResolverCheck to false.
  9309. (nameResolverFinished): New function.
  9310. * src/FtpInitiateConnectionCommand.h
  9311. (nameResolverFinished): New function.
  9312. * src/FtpInitiateConnectionCommand.cc
  9313. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9314. * src/HttpInitiateConnectionCommand.h
  9315. (nameResolverFinished): New function.
  9316. * src/HttpInitiateConnectionCommand.cc
  9317. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9318. * src/prefs.h
  9319. (PREF_DNS_TIMEOUT): New definition.
  9320. * src/main.cc
  9321. (main): Added PREF_DNS_TIMEOUT.
  9322. To add the support for a non-compact response from a tracker:
  9323. * src/PeerListProcessor.h: New class.
  9324. * src/DefaultPeerListProcessor.h: New class.
  9325. * src/DefaultPeerListProcessor.cc: New class.
  9326. * src/CompactPeerListProcessor.h: New class.
  9327. * src/CompactPeerListProcessor.cc: New class.
  9328. * src/DelegatingPeerListProcessor.h: New class.
  9329. * src/DelegatingPeerListProcessor.cc: New class.
  9330. * src/TorrentMan.cc
  9331. (addPeer): New function(overload).
  9332. (addPeer): Delete unused peers only when new peer is added.
  9333. * src/TorrentMan.h
  9334. (PeerListProcessor.h): Included.
  9335. (Peers): Removed.
  9336. (addPeer): New function(overload).
  9337. * src/TrackerUpdateCommand.cc
  9338. (netinet/in.h): Removed.
  9339. (DelegatingPeerListProcessor.h): Included.
  9340. (execute): Updated to use DelegatingPeerListProcessor.
  9341. To fix the memory leak in TorrentMan::peers:
  9342. * src/PeerAbstractCommand.cc
  9343. (onAbort): Added peer->resetStatus().
  9344. * src/Peer.h
  9345. (resetStatus): Made public.
  9346. To improve the precision of the speed calculation:
  9347. * src/SpeedCalc.h
  9348. (nextInterval): New variable.
  9349. * src/SpeedCalc.cc
  9350. (reset): Added nextInterval.
  9351. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9352. (changeSw): Set nextInterval to 15 seconds relative to the current
  9353. instant time.
  9354. * src/main.cc
  9355. (showVersion): Updated.
  9356. (showUsage): Updated.
  9357. * Release 0.8.1
  9358. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9359. * src/main.cc
  9360. (showUsage): Commented out --min-segment-size option.
  9361. (main): Commented out --min-segment-size option.
  9362. * Release 0.8.0
  9363. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9364. * src/*.{h,cc}:
  9365. Added an exception to the license which allows linking with OpenSSL.
  9366. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9367. * src/AbstractCommand.cc
  9368. (execute): Check whether the download has finished before checking
  9369. socket status.
  9370. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9371. Do not exit even if no segment is available.
  9372. * src/prefs.h
  9373. (PREF_STARTUP_IDLE_TIME): New definition.
  9374. * src/PeerInteractionCommand.cc
  9375. (executeInternal): Removed max speed limit. Because it performs bad.
  9376. (receiveMessages): Added max speed limit. This was better than above,
  9377. but still a little bit to be desired. Sometimes the download speed
  9378. became much faster than I specified.
  9379. * src/SpeedCalc.h
  9380. (start): New variable.
  9381. (accumulatedLength): New variable.
  9382. (getAvgSpeed): New function.
  9383. * src/SpeedCalc.cc
  9384. (reset): Added start, accumulatedLength.
  9385. (update): Added calculation of an average speed.
  9386. (getAvgSpeed): New function.
  9387. * src/DownloadCommand.h
  9388. (sw): Removed.
  9389. * src/main.cc
  9390. (main): Added PREF_STARTUP_IDLE_TIME.
  9391. * src/PeerStat.h
  9392. (STATUS): Added REQUEST_IDLE.
  9393. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9394. (getAvgDownloadSpeed): New function
  9395. (requestIdle): New function.
  9396. * src/SegmentMan.h
  9397. (SegmentEntryHandle): New type definition.
  9398. (SegmentEntries): Now holds SegmentEntryHandle.
  9399. (findSlowerSegmentEntry): New funtion.
  9400. * src/SegmentMan.cc
  9401. (save): Updated according to the changes in SegmentEntries.
  9402. (read): Updated according to the changes in SegmentEntries.
  9403. (FindSegmentEntryByIndex): Updated according to the changes in
  9404. SegmentEntries.
  9405. (FindSegmentEntryByCuid): Updated according to the changes in
  9406. SegmentEntries.
  9407. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9408. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9409. Renamed uitr as itr.
  9410. (findSlowerSegmentEntry): New function.
  9411. (getSegment): Updated according to the changes in SegmentEntries.
  9412. Added the feature that cancels the segment with slow server and fast
  9413. one takes it over.
  9414. (cancelSegment): Updated according to the changes in SegmentEntries.
  9415. (getDownloadLength): Updated according to the changes in
  9416. SegmentEntries.
  9417. (init): Assigned 0 to bitfield after deleting it.
  9418. * src/DownloadCommand.cc
  9419. (STARTUP_IDLE_TIME): Removed.
  9420. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  9421. * src/PeerChokeCommand.cc
  9422. (optUnchokingPeer): Updated according to the changes in Peer.
  9423. (ResetDelta): Removed.
  9424. (UploadFaster): Updated according to the changes in Peer.
  9425. (DownloadFaster): Updated according to the changes in Peer.
  9426. (execute): I clarify the meaning of "upload" and "download" here.
  9427. "upload" means the transfer from localhost to remote host.
  9428. "download" means the transfer from remote host to localhost.
  9429. Based on this rule, I swapped orderByUploadRate and
  9430. orderByDownloadRate.
  9431. * src/PeerInteractionCommand.cc
  9432. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  9433. (executeInternal): Removed the argument of
  9434. peerInteraction->sendMessages().
  9435. (receiveMessages): Rewritten download speed limit.
  9436. (sendKeepAlive): Removed peerInteraction->sendMessages().
  9437. * src/HttpResponseCommand.cc
  9438. (handleDefaultEncoding): If file size is unknown in torrent request,
  9439. do not call segmentMan->initBitfield() here.
  9440. Disabled persistent connection feature in torrent request.
  9441. * src/UrlRequestInfo.h
  9442. (UrlRequestInfo): Removed const qualifier from option.
  9443. * src/TorrentMan.h
  9444. (TransferStat): New class.
  9445. (deltaDownloadLength): Removed.
  9446. (deltaUploadLength): Removed.
  9447. (addDeltaDownloadLength): Removed.
  9448. (getDeltaDownloadLength): Removed.
  9449. (resetDeltaDownloadLength): Removed.
  9450. (addDeltaUploadLength): Removed.
  9451. (getDeltaUploadLength): Removed.
  9452. (resetDeltaUploadLength): Removed.
  9453. (addActivePeer): Added peer->activate().
  9454. (deleteActivePeer): Added peer->deactivate().
  9455. (calculateStat): New function.
  9456. * src/TorrentMan.cc
  9457. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  9458. (calculateStat): New function.
  9459. * src/PeerInteraction.h
  9460. (uploadLimit): Removed.
  9461. (option): New variable.
  9462. (setUploadLimit): Removed.
  9463. (getUploadSpeed): Removed.
  9464. (sendMessages): Removed the argument "currentUploadSpeed".
  9465. * src/PeerInteraction.cc
  9466. (prefs.h): Included.
  9467. (PeerInteraction): Removed uploadLimit. Added option.
  9468. (sendMessages): Rewritten upload speed limit.
  9469. (sendHandshake): Removed the argument from sendMessages().
  9470. (sendBitfield): Removed the argument from sendMessages().
  9471. * src/PeerAbstractCommand.cc
  9472. (execute): Commented out the portion of upload limit.
  9473. (onAbort): Removed peer->resetStatus().
  9474. * src/TorrentRequestInfo.cc
  9475. (timeoutSpecified): Declared extern.
  9476. (execute): Set timeout to 180 if timeout is not specified by.
  9477. command-line.
  9478. * src/PieceMessage.cc
  9479. (receivedAction): Added peer->updateDownloadLength().
  9480. Removed peer->addPeerUpload().
  9481. Removed torrentMan->addDeltaDownloadLength().
  9482. (send): Added peer->updateUploadLength().
  9483. Removed peer->addPeerDownload().
  9484. Removed torrentMan->addDeltaUploadLength().
  9485. * src/main.cc
  9486. (timeoutSpecified): New variable.
  9487. (main): Set timeoutSpecified to false.
  9488. If the command-line option "--upload-limit" is specified, then
  9489. timeoutSpecified is set to true. This option will remain in the next
  9490. release, but be deprecated in the future release.
  9491. * src/TorrentRequestInfo.h
  9492. (TorrentRequestInfo): Removed const qualifier from op.
  9493. * src/PeerStat.h
  9494. (uploadSpeed): New variable.
  9495. (PeerStat): Added default value to cuid.
  9496. (calculateUploadSpeed): New function.
  9497. (updateUploadLength): New function.
  9498. (getMaxUploadSpeed): New function.
  9499. (getAvgUploadSpeed): New function.
  9500. (reset): Added uploadSpeed. Set status to IDLE.
  9501. * src/TorrentDownloadEngine.h
  9502. (cp): Declared as Time.
  9503. (sessionDownloadLengthArray): Removed.
  9504. (sessionUploadLengthArray): Removed.
  9505. (currentCp): Removed.
  9506. (lastCalcStat): New variable
  9507. (lastElapsed): Removed.
  9508. (sessionDownloadLength): Removed.
  9509. (calculateStat): New function.
  9510. * src/TorrentDownloadEngine.cc
  9511. (initStatistics): Removed lastElapsed, cp[],
  9512. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  9513. currentCp, sessionDownloadLength.
  9514. Added cp.reset() and lastCalcStat.reset().
  9515. (calculateSpeed): Changed the name of the argument.
  9516. (calculateStatistics): Rewritten.
  9517. (calculateStat): New function.
  9518. * src/Peer.h
  9519. (PeerStat.h): Included.
  9520. (peerUpload): Removed.
  9521. (peerDownload): Removed.
  9522. (peerStat): New variable.
  9523. (sessionUploadLength): New variable.
  9524. (sessionDownloadLength): New variable.
  9525. (deltaUpload): Removed.
  9526. (deltaDownload): Removed.
  9527. (resetStatus): Made private.
  9528. (Peer): Added sessionUploadLength, sessionDownloadLength.
  9529. Removed peerUpload, peerDownload.
  9530. (updateUploadLength): New function.
  9531. (addDeltaUpload): Removed.
  9532. (updateDownloadLength): New function.
  9533. (resetDeltaUpload): Removed.
  9534. (getDeltaUpload): Removed.
  9535. (addDeltaDownload): Removed.
  9536. (calculateUploadSpeed): New function.
  9537. (resetDeltaDownload): Removed.
  9538. (getDeltaDownload): Removed.
  9539. (calculateDownloadSpeed): New function.
  9540. (getSessionUploadLength): New function.
  9541. (getSessionDownloadLength): New function.
  9542. (activate): New function.
  9543. (deactivate): New function.
  9544. (addPeerUpload): Removed.
  9545. (setPeerUpload): Removed.
  9546. (getPeerUpload): Removed.
  9547. (addPeerDownload): Removed.
  9548. (setPeerDownload): Removed.
  9549. (getPeerDownload): Removed.
  9550. * src/Peer.cc
  9551. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  9552. * src/MetalinkRequestInfo.h
  9553. (MetalinkRequestInfo): Removed const qualifier from op.
  9554. * src/RequestInfo.h
  9555. (op): Removed const qualifier.
  9556. (RequestInfo): Removed const qualifier from op.
  9557. * src/prefs.h
  9558. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  9559. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  9560. * src/PeerInteractionCommand.cc
  9561. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  9562. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  9563. * src/PeerInteraction.cc
  9564. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  9565. * src/main.cc
  9566. (showUsage): Updated the description of "--lowest-speed-limit" option.
  9567. Added the description of "--max-download-limit" option.
  9568. Removed the description of "--upload-limit" option.
  9569. Added the description of "--max-upload-limit" option.
  9570. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  9571. Added "--max-download-limit" option and "--max-upload-limit" option.
  9572. Added the warning message if "--upload-limit" option is used.
  9573. * src/DownloadCommand.cc
  9574. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  9575. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. To rewrite segment download mechanism for HTTP/FTP download.
  9577. Use BitfieldMan to manage segment download.
  9578. * src/HttpResponseCommand.h
  9579. (executeInternal): Pass the reference of segment.
  9580. * src/AbstractCommand.cc
  9581. (prepareForRetry): Call segmentMan->cancelSegment here.
  9582. (onAbort): Call segmentMan->cancelSegment here.
  9583. * src/HttpDownloadCommand.cc
  9584. (prepareForNextSegment): New function.
  9585. * src/DownloadEngineFactory.cc
  9586. (newConsoleEngine): Removed splitter.
  9587. (newTorrentConsoleEngine): Removed splitter.
  9588. * src/Request.h
  9589. (segment): Renamed from seg.
  9590. * src/FtpInitiateConnectionCommand.h
  9591. (executeInternal): Pass the reference of segment.
  9592. * src/AbstractCommand.h
  9593. (executeInternal): Pass the reference of segment.
  9594. * src/pref.h
  9595. (PREF_SEGMENT_SIZE): New definition.
  9596. * src/HttpProxyRequestCommand.h
  9597. (executeInternal): Pass the reference of segment.
  9598. * src/HttpResponseCommand.cc
  9599. (checkResponse): Allowed status 206 when a request range starts 0.
  9600. (handleDefaultEncoding): Rewritten the code related to Segment.
  9601. (handleOtherEncoding): Rewritten the code related to Segment.
  9602. * src/SegmentMan.h
  9603. (SegmentEntry): New class.
  9604. (SegmentEntries): New type definition.
  9605. (bitfield): New variable.
  9606. (usedSegmentEntries): New variable.
  9607. (onNullBitfield): New function.
  9608. (checkoutSegment): New function.
  9609. (segments): Removed.
  9610. (splitter): Removed.
  9611. (unregisterId): Removed.
  9612. (getSegment): New function(overload)
  9613. (getDownloadedSize): Removed.
  9614. (cancelSegment): New function.
  9615. (completeSegment): New function.
  9616. (initBitfield): New function.
  9617. (hasSegment): New function.
  9618. (getDownloadLength): New function.
  9619. * src/BitfieldMan.h
  9620. (getStartIndex): New function.
  9621. (getEndIndex): New function.
  9622. (getMissingUnusedIndex): New function(overload).
  9623. (getSparseMissingUnusedIndex): New function.
  9624. * src/BitfieldMan.cc
  9625. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  9626. (getMissingUnusedIndex): New function(overload).
  9627. (Range): New class.
  9628. (getStartIndex): New function.
  9629. (getEndIndex): New function.
  9630. (getSparseMissingUnusedIndex): New function.
  9631. (isBitSetInternal): Return false if the given index is less than 0.
  9632. * src/HttpInitiateConnectionCommand.h
  9633. (executeInternal): Pass the reference of segment.
  9634. * src/FtpNegotiateCommand.h
  9635. (executeInternal): Pass the reference of segment.
  9636. * src/FtpNegotiateCommand.cc
  9637. (recvSize): Initialize bitfield here.
  9638. * src/FtpTunnelResponseCommand.h
  9639. (executeInternal): Pass the reference of segment.
  9640. * src/HttpConnection.cc
  9641. (createRequest): Rewritten range header processing.
  9642. * src/DownloadCommand.h
  9643. (executeInternal): Pass the reference of segment.
  9644. (prepareForRetry): Removed.
  9645. (prepareForNextSegment): Added an argument segment. Made it a virtual
  9646. function.
  9647. * src/main.cc
  9648. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  9649. * src/SegmentMan.cc
  9650. (SegmentMan): Added bitfield. Removed splitter.
  9651. (~SegmentMan): Added bitfield. Removed splitter.
  9652. (unregisterId): Removed.
  9653. (getSegment): Rewritten.
  9654. (updateSegment): Rewritten.
  9655. (save): Rewritten.
  9656. (read): Rewritten.
  9657. (finished): Rewritten.
  9658. (getDownloadedSize): Removed.
  9659. (initBitfield): New function.
  9660. (FindSegmentEntryByIndex): New function object.
  9661. (FindSegmentEntryByCuid): New function object.
  9662. (checkoutSegment): New function.
  9663. (onNullBitfield): New function.
  9664. (getSegment): New function(overload).
  9665. (CancelSegment): New function object.
  9666. (cancelSegment): New function.
  9667. (completeSegment): New function.
  9668. (hasSegment): New function.
  9669. (getDownloadLength): New function.
  9670. * src/FtpInitiateConnectionCommand.cc
  9671. (executeInternal): Load .aria2 file after hostname resolution finishes.
  9672. * src/Segment.h: Rewritten.
  9673. * src/Segment.cc (operator<<): New function.
  9674. * src/HttpDownloadCommand.h
  9675. (prepareForNextSegment): New function.
  9676. * src/Request.cc
  9677. (resetUrl): Made segment null.
  9678. * src/DownloadEngine.cc
  9679. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  9680. * src/HttpProxyRequestCommand.h
  9681. (executeInternal): Pass the reference of segment.
  9682. * src/DownloadCommand.cc
  9683. (executeInternal): Rewritten the code related to Segment.
  9684. (prepareForRetry): Removed.
  9685. (prepareForNextSegment): Rewritten.
  9686. * src/FtpTunnelResponseCommand.h
  9687. (executeInternal): Pass the reference of segment.
  9688. To add HTTP 1.1 persistent connection support(experimental)
  9689. * src/HttpRequestCommand.cc
  9690. (executeInternal): Disable keep alive if it is disabled by
  9691. configuration.
  9692. * src/Request.h
  9693. (keepAlive): New variable.
  9694. (isKeepAlive): New function.
  9695. (setKeepAlive): New function.
  9696. * src/pref.h
  9697. (PREF_HTTP_KEEP_ALIVE): New definition.
  9698. * src/HttpResponseCommand.cc
  9699. (executeInternal): Check the remote server supports keep alive.
  9700. * src/HttpConnection.cc
  9701. (createRequest): Send "Connection: close" only if keep alive is
  9702. disabled.
  9703. * src/main.cc
  9704. (main):
  9705. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  9706. To add max download speed limit:
  9707. * src/pref.h
  9708. (PREF_MAX_SPEED_LIMIT): New definition.
  9709. * src/PeerInteractionCommand.cc
  9710. (executeInternal): Added max download speed limit. Not tested yet.
  9711. * src/SegmentMan.h
  9712. (PeerStats): New type definition.
  9713. (peerStats): New variable.
  9714. (registerPeerStat): New function.
  9715. (FindPeerStat): New function object.
  9716. (getPeerStat): New function.
  9717. (calculateDownloadSpeed): New function.
  9718. * src/SpeedCalc.h: New class.
  9719. * src/SpeedCalc.cc: New class.
  9720. * src/main.cc
  9721. (main):
  9722. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  9723. download speed is not restricted).
  9724. * src/PeerStat.h: New class.
  9725. * src/SegmentMan.cc
  9726. (registerPeerStat): New function.
  9727. (calculateDownloadSpeed): New function.
  9728. * src/DownloadCommand.cc
  9729. (STARTUP_IDLE_TIME): New definition.
  9730. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  9731. downloadStart.
  9732. (~DownloadCommand): Call peerStat->downloadStop.
  9733. (executeInternal): Added download speed limitter. Rewritten lowest
  9734. speed limitter.
  9735. * src/HttpConnection.cc
  9736. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  9737. * src/AbstractCommand.cc
  9738. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  9739. Added hostname to the error message.
  9740. * src/ConsoleDownloadEngine.cc
  9741. (calculateStatistics): Initialize psize with dlSize.
  9742. * src/PieceMessage.cc
  9743. (receivedAction): Do not call peerInteraction->abortPiece here.
  9744. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  9745. * src/BitfieldMan.h
  9746. (clearAllUseBit): New function.
  9747. (setAllUseBit): New function.
  9748. * src/BitfieldMan.cc
  9749. (clearAllBit): Do not clear useBitfield here.
  9750. (clearAllUseBit): New function.
  9751. (setAllUseBit): New function.
  9752. * src/Piece.cc
  9753. (clearAllBlock): Call bitfield->clearAllUseBit().
  9754. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9755. To make filename URL-decoded:
  9756. * src/HttpResponseCommand.h: Updated doc.
  9757. * src/HttpResponseCommand.cc
  9758. (determinFilename): Made filename URL-decoded.
  9759. * src/FtpInitiateConnectionCommand.cc
  9760. (executeInternal): Made filename URL-decoded.
  9761. * src/Util.h (urldecode): New function.
  9762. * src/Util.cc (urldecode): New function.
  9763. To fix a bug that caused assertion failure in ares_strerror:
  9764. * src/NameResolver.cc (callback): Fixed the bug.
  9765. * Release 0.7.3
  9766. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9767. To add --seed-time and --seed-ratio command-line option:
  9768. * src/Option.h (getAsDouble): New function.
  9769. * src/Option.cc (getAsDouble): New function.
  9770. * src/SeedCheckCommand.h: New class.
  9771. * src/SeedCheckCommand.cc: New class.
  9772. * src/DownloadEngineFactory.cc
  9773. (SeedCheckCommand.h): Included.
  9774. (UnionSeedCriteria.h): Included.
  9775. (TimeSeedCriteria.h): Included.
  9776. (ShareRatioSeedCriteria.h): Included.
  9777. (newTorrentConsoleEngine): Added the processing of seed option.
  9778. * src/SeedCriteria.h: New class.
  9779. * src/ShareRatioSeedCriteria.h: New class.
  9780. * src/TimeSeedCriteria.h: New class.
  9781. * src/UnionSeedCriteria.h: New class.
  9782. * src/prefs.h
  9783. (PREF_SEED_TIME): New definition.
  9784. (PREF_SEED_RATIO): New definition.
  9785. * src/main.cc
  9786. (showUsage): Added --seed-time and --seed-ratio option.
  9787. (main): Added --seed-time and --seed-ratio option.
  9788. Made default log file name "/dev/null".
  9789. * src/SharedHandle.h
  9790. (SharedHandle): Copy constructor. Made it assignable from the
  9791. SharedHandle of the subclasses.
  9792. (operator=): Made it assignable from the SharedHandle of the
  9793. subclasses.
  9794. (getRefCount): New function.
  9795. To add notice log level and the switch to write log to stdout. This
  9796. switch is configurable per log level.
  9797. * src/Logger.h
  9798. (notice): New function.
  9799. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  9800. constant.
  9801. * src/LogFactory.cc
  9802. (getInstance): The use of NullLogger was removed. A log message with
  9803. notice log level was made written to stdout along with log file.
  9804. * src/NullLogger.h
  9805. (notice): New function.
  9806. * src/SimpleLogger.h
  9807. (writeHeader): Added the 'file' argument.
  9808. (writeLog): Added the 'file' argument.
  9809. (writeFile): New function.
  9810. (stdoutField): New variable.
  9811. (SimpleLogger): Removed the default constructor.
  9812. (SimpleLogger): Made the default value of logfile 0.
  9813. (debug): Added 'virtual' keyword.
  9814. (info): Added 'virtual' keyword.
  9815. (warn): Added 'virtual' keyword.
  9816. (error): Added 'virtual' keyword.
  9817. (notice): New function.
  9818. (setStdout): New function.
  9819. * src/SimpleLogger.cc
  9820. (WRITE_LOG): Replaced writeLog with writeFile.
  9821. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  9822. (SimpleLogger): Removed the default constructor.
  9823. (setStdout): New function.
  9824. (writeLog): Added the handling of NOTICE log level.
  9825. (writeFile): New function.
  9826. (notice): New function.
  9827. * src/TorrentMan.h: Updated doc.
  9828. * src/BitfieldMan.h: Updated doc.
  9829. * src/TrackerWatcherCommand.cc
  9830. (execute): Return true if error occurred in the request to the tracker
  9831. and halt is requested.
  9832. * src/TrackerUpdateCommand.cc
  9833. (execute): Return true if error occurred in the request to the tracker
  9834. and halt is requested.
  9835. To call onDownloadComplete from TorrentMan::completePiece(), not from
  9836. DownloadEngine:
  9837. * src/TorrentConsoleDownloadEngine.h
  9838. (onSelectiveDownloadingCompletes): Removed.
  9839. * src/TorrentConsoleDownloadEngine.cc
  9840. (onSelectiveDownloadingCompletes): Removed.
  9841. * src/TorrentDownloadEngine.h
  9842. (onEndOfRun): Added 'virtual' keyword.
  9843. (afterEachIteration): Removed.
  9844. (onSelectiveDownloadingCompletes): Removed.
  9845. * src/TorrentDownloadEngine.cc
  9846. (onEndOfRun): Removed filenameFixed.
  9847. (afterEachIteration): Removed.
  9848. * src/TorrentMan.cc
  9849. (completePiece): Call onDownloadComplete here.
  9850. (onDownloadComplete): Added 2 log messages.
  9851. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9852. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  9853. * src/NameResolver.h: Added the prototype declaration of callback().
  9854. To support c-ares library:
  9855. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9856. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9857. * src/FtpInitiateConnectionCommand.h:
  9858. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9859. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9860. * src/HttpInitiateConnectionCommand.h:
  9861. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9862. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  9863. Added thes upport of c-ares's ares_strerror(the idea came from patch
  9864. #1542285 by tizianomueller)
  9865. * src/HttpInitiateConnectionCommand.cc:
  9866. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9867. * src/FtpInitiateConnectionCommand.cc:
  9868. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9869. * src/DownloadEngine.h:
  9870. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9871. * src/DownloadEngine.cc:
  9872. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9873. To fix the bug that causes compilation failure with metalink-support
  9874. disabled(bug#1543587):
  9875. * src/main.cc: Fixed with the patch by tizianomueller.
  9876. * Release 0.7.2
  9877. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9878. * src/main.cc
  9879. (main): Added a message to inform users that aria2 is starting to
  9880. verify checksum.
  9881. * src/RequestInfo.cc
  9882. (printDownloadAbortMessage): Added a message to inform users that
  9883. transfer can be resumed.
  9884. * src/FeatureConfig.cc
  9885. (FEATURE_ASYNC_DNS): New definition.
  9886. (FeatureConfig): Added aysnc DNS entry.
  9887. To replace CommandUuid with Command* in SocketEntry and
  9888. NameResolverEntry:
  9889. * src/DownloadEngine.h
  9890. (CommandUuids): Removed.
  9891. (SocketEntry::commandUuid): Removed.
  9892. (SocketEntry::command): New variable.
  9893. (SocketEntry::SocketEntry): Updated.
  9894. (SocketEntry::operator==): Updated.
  9895. (NameResolverEntry::commandUuid): Removed.
  9896. (NameResolverEntry::command): New variable.
  9897. (NameResolverEntry::NameResolverEntry): Updated.
  9898. (NameResolverEntry::operator==): Updated.
  9899. (waitData): Changed the argument type.
  9900. (addSocketForReadCheck): Changed the argument type.
  9901. (deleteSocketForReadCheck): Changed the argument type.
  9902. (addSocketForWriteCheck): Changed the argument type.
  9903. (deleteSocketForWriteCheck): Changed the argument type.
  9904. (addNameResolverCheck): Changed the argument type.
  9905. (deleteNameResolverCheck): Changed the argument type.
  9906. * src/DownloadEngine.cc
  9907. (FindCommand): Removed.
  9908. (run): Removed activeUuid. Added activeCommands instead.
  9909. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  9910. (AccumulateActiveCommand): New function object.
  9911. (waitData): Use AccumulateActiveCommand.
  9912. (addSocketForReadCheck): Use Command instead of CommandUuid.
  9913. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  9914. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  9915. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  9916. (addNameResolverCheck): Use Command instead of CommandUuid.
  9917. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  9918. * src/AbstractCommand.cc
  9919. (disableReadCheckSocket): Updated according to the changes in
  9920. DownloadEngine.
  9921. (setReadCheckSocket): Updated according to the changes in
  9922. DownloadEngine.
  9923. (disableWriteCheckSocket): Updated according to the changes in
  9924. DownloadEngine.
  9925. (setWriteCheckSocket): Updated according to the changes in
  9926. DownloadEngine.
  9927. (setNameResolverCheck): Updated according to the changes in
  9928. DownloadEngine.
  9929. (disableNameResolverCheck): Updated according to the changes in
  9930. DownloadEngine.
  9931. * src/AbstractCommand.cc
  9932. (disableReadCheckSocket): Updated according to the changes in
  9933. DownloadEngine.
  9934. (setReadCheckSocket): Updated according to the changes in
  9935. DownloadEngine.
  9936. (disableWriteCheckSocket): Updated according to the changes in
  9937. DownloadEngine.
  9938. (setWriteCheckSocket): Updated according to the changes in
  9939. DownloadEngine.
  9940. * release 0.7.1
  9941. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9942. To handle the case where some BitTorrent tracker requires all letters
  9943. except for [A-Za-z0-9] is URL encoded.
  9944. * src/Util.h
  9945. (torrentUrlencode): New function.
  9946. * src/Util.cc
  9947. (ctype.h): Included.
  9948. (torrentUrlencode): New function.
  9949. * src/TrackerWatcherCommand.cc
  9950. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  9951. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9952. To add asynchronous DNS support(libares):
  9953. * src/AbstractCommand.h
  9954. (setNameResolverCheck): New function.
  9955. (disableNameResolverCheck): New function
  9956. (resolveHostname): New function.
  9957. * src/AbstractCommand.cc
  9958. (setNameResolverCheck): New function.
  9959. (disableNameResolverCheck): New function
  9960. (resolveHostname): New function.
  9961. * src/FtpInitiateConnectionCommand.h
  9962. (nameResolver): New function.
  9963. * src/FtpInitiateConnectionCommand.cc
  9964. (Util.h): Included.
  9965. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  9966. disableWriteCheckSocket.
  9967. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  9968. (executeInternal): Added async DNS support.
  9969. * src/HttpInitiateConnectionCommand.h
  9970. (nameResolver): New function.
  9971. * src/HttpInitiateConnectionCommand.cc
  9972. (DlRetryEx.h): Included.
  9973. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  9974. disableWriteCheckSocket.
  9975. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  9976. (executeInternal): Added async DNS support.
  9977. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  9978. by extern "C" declaration.
  9979. * src/NameResolver.cc: New class.
  9980. * src/Util.h:
  9981. (isNumberAndDotsNotation): New function
  9982. * src/Util.cc
  9983. (isNumberAndDotsNotation): New function.
  9984. * src/DownloadEngine.h
  9985. (NameResolver.h): Included.
  9986. (NameResolverEntry): New class.
  9987. (NameResolverEntries): New type definition.
  9988. (addNameResolverCheck): New function.
  9989. (deleteNameResolverCheck): New function.
  9990. * src/DownloadEngine.cc
  9991. (run): Initialize cp with 0.
  9992. (SetDescriptor::operator()): Added for NameResolverEntry.
  9993. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  9994. (waitData): Check nameResolver entries.
  9995. (updateFdSet): Update fds in nameResolver entries.
  9996. (addNameResolverCheck): New function.
  9997. (deleteNameResolverCheck): new function.
  9998. * src/PeerInteractionCommand.cc
  9999. (executeInternal): Fixed wrong socket handling.
  10000. * src/main.cc
  10001. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  10002. * src/Util.cc
  10003. (fileChecksum): Removed the call to ctx.digestReset().
  10004. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. * po/ru.po: Azamat sent me Russian translation.
  10006. * src/FtpNegotiateCommand.cc
  10007. (recvGreeting): Call disableWriteCheckSocket just after
  10008. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10009. (recvRetr): Recognized status code 125 as a acceptable response code.
  10010. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10011. case-insesitive filesystem(BUG#1531057).
  10012. * src/Time.h: Renamed as TimeA2.h.
  10013. * src/Time.cc: Renamed as TimeA2.cc.
  10014. * src/TimeA2.h: New class.
  10015. * src/TimeA2.cc: New class.
  10016. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10017. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10018. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10019. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10020. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10021. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10022. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10023. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10024. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10025. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10026. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10027. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10028. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10029. * release 0.7.0
  10030. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10031. * src/PeerChokeCommand.h
  10032. (PeerChokeCommand): Rearranged the arguments.
  10033. * src/PeerChokeCommand.cc
  10034. (PeerChokeCommand): Rearranged the arguments.
  10035. * src/MetalinkEntry.h
  10036. (Checksum.h): Included.
  10037. (md5): Removed.
  10038. (sha1): Removed.
  10039. (checksum): New variable.
  10040. (operator=): Updated.
  10041. (check): Removed.
  10042. * src/prefs.h
  10043. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10044. (PREF_FOLLOW_TORRENT): New definition.
  10045. (PREF_SELECT_FILE): New definition.
  10046. (PREF_FOLLOW_METALINK): New definition.
  10047. * src/MetalinkResource.h
  10048. (TYPE_HTTPS): Added to enum TYPE.
  10049. * src/TorrentMan.cc
  10050. (~TorrentMan): Rewritten.
  10051. * src/MultiDiskWriter.cc
  10052. (MultiDiskAdaptor): Updated according to the changes in
  10053. MessageDigestContext.
  10054. (~MultiDiskAdaptor): Updated according to the changes in
  10055. MessageDigestContext.
  10056. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10057. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10058. * src/Util.h
  10059. (fileChecksum): Updated according to the changes in
  10060. MessageDigestContext.
  10061. * src/Util.cc
  10062. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10063. (fileChecksum): Updated according to the changes in
  10064. MessageDigestContext.
  10065. * src/messageDigest.h: Rewritten.
  10066. * src/MetalinkEntry.cc
  10067. (check): Removed.
  10068. (Supported): Updated.
  10069. (dropUnsupportedResource): Fixed a memory leak.
  10070. * src/ShaVisitor.cc
  10071. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10072. (~ShaVisitor): Updated according to the changes in
  10073. MessageDigestContext.
  10074. (visit): Updated according to the changes in MessageDigestContext.
  10075. * src/main.cc
  10076. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10077. command-line option added.
  10078. * src/DownloadEngine.h
  10079. (SocketEntry): New class.
  10080. (SocketEntries): New definition.
  10081. (PairFind): Removed.
  10082. (SockCmdMap): Removed.
  10083. * src/DownloadEngine.cc
  10084. (DownloadEngine): Rewritten.
  10085. (~DownloadEngine): Rewritten.
  10086. (run): Renamed activeCommandUuids as activeUuids.
  10087. (SetDescriptor): Rewritten.
  10088. (AccumulateActiveCommandUuid): Removed.
  10089. (AccumulateActiveUuid): New function object.
  10090. (waitData): Rewritten.
  10091. (updateFdSet): Rewritten.
  10092. (addSocket): Rewritten.
  10093. (deleteSocket): Rewritten.
  10094. (addSocketForReadCheck): Rewritten.
  10095. (deleteSocketForReadCheck): Rewritten.
  10096. (addSocketForWriteCheck): Rewritten.
  10097. (deleteSocketForWriteCheck): Rewritten.
  10098. * src/Xml2MetalinkProcessor.cc
  10099. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10100. * src/DownloadCommand.cc
  10101. (executeInternal): Added the check routine for lowest speed limit.
  10102. * src/AbstractDiskWriter.cc
  10103. (AbstractDiskWriter): Updated according to the changes in
  10104. MessageDigestContext.
  10105. (~AbstractDiskWriter): Updated according to the changes in
  10106. MessageDigestContext.
  10107. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10108. * src/RequestInfo.h: New class.
  10109. * src/UrlRequestInfo.h: New class.
  10110. * src/UrlRequestInfo.cc: New class.
  10111. * src/TorrentRequestInfo.h: New class.
  10112. * src/TorrentRequestInfo.cc: New class.
  10113. * src/MetalinkRequestInfo.h: New class.
  10114. * src/MetalinkRequestInfo.cc: New class.
  10115. * src/Checksum.h: New class.
  10116. * src/DownloadEngineFactory.h: New class.
  10117. * src/DownloadEngineFactory.cc: New class.
  10118. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. * src/Option.h
  10120. (getAsBool): New function.
  10121. * src/Option.cc
  10122. (prefs.h): Included.
  10123. (defined): 0-length value is now recognized as undefined.
  10124. (getAsInt): Rewritten.
  10125. (getAsLLInt): Rewritten.
  10126. (getAsBool): New function.
  10127. * src/FeatureConfig.h: Rewritten.
  10128. * src/FeatureConfig.cc: Rewritten.
  10129. * src/prefs.h
  10130. (PREF_STDOUT_LOG): New definition.
  10131. (PREF_LOG): New definition.
  10132. (PREF_DIR): New definition.
  10133. (PREF_OUT): New definition.
  10134. (PREF_SPLIT): New definition.
  10135. (PREF_DAEMON): New definition.
  10136. (PREF_REFERER): New definition.
  10137. (PREF_TORRENT_FILE): New definition.
  10138. (PREF_LISTEN_PORT): New definition.
  10139. (PREF_METALINK_FILE): New definition.
  10140. (PREF_METALINK_VERSION): New definition.
  10141. (PREF_METALINK_LANGUAGE): New definition.
  10142. (PREF_METALINK_OS): New definition.
  10143. (PREF_METALINK_SERVERS): New definition.
  10144. * src/main.cc
  10145. (main): Following command-line parameters are now put into Option
  10146. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10147. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10148. metalinkLanguage, metalinkOs, metalinkServers
  10149. To fix the bug that aria2 can not handle http response header properly.
  10150. * src/HttpHeader.cc
  10151. (put): Made name lowercased.
  10152. (defined): Made name lowercased.
  10153. (getFirst): Made name lowercased.
  10154. (get): Made name lowercased.
  10155. (getFirstAsInt): Rewritten.
  10156. (getFirstAsLLInt): Rewritten.
  10157. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10158. * src/TorrentMan.h:
  10159. (advertisePiece): Updated doc.
  10160. (getAdvertisedPieceIndexes): Updated doc.
  10161. (removeAdvertisedPiece); New function.
  10162. * src/TorrentMan.cc
  10163. (FindElapsedHave): New function object.
  10164. (removeAdvertisedPiece): New function.
  10165. * src/HaveEraseCommand.h: New class.
  10166. * src/HaveEraseCommand.cc: New class.
  10167. * src/FeatureConfig.h: New class.
  10168. * src/FeatureConfig.cc: New class.
  10169. * src/Request.h
  10170. (defaultPorts): Removed.
  10171. * src/Request.cc
  10172. (FeatureConfig.h): Included.
  10173. (Request): Removed the statements related to defaultPorts.
  10174. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10175. A default port number is now retrieved from FeatureConfig.
  10176. * src/main.cc
  10177. (HaveEraseCommand.h): Included.
  10178. (showVersion): Added the output of feature list.
  10179. (main): Added HaveEraseCommand to command queue in BitTorrent
  10180. downloading.
  10181. * src/PeerInteractionCommand.h
  10182. (chokeCheckPoint): Commented out.
  10183. (periodicExecPoint): New variable.
  10184. * src/PeerInteractionCommand.cc
  10185. (executeInternal): Following methods are now called in at least every
  10186. 0.5 seconds to reduce CPU usage:
  10187. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  10188. checkHave(), sendKeepAlive().
  10189. (checkLongTimePeerChoking): Commented out.
  10190. * src/BitfieldMan.h
  10191. (getNthBitIndex): Changed the method signature.
  10192. (getMissingIndexRandomly): Changed the method signature.
  10193. * src/BitfieldMan.cc
  10194. (getNthBitIndex): Rewritten
  10195. (getMissingIndexRandomly): Rewritten.
  10196. (hasMissingPiece): Rewritten.
  10197. (getMissingIndex): Refactored.
  10198. (getMissingUnusedIndex); Refactored.
  10199. (getMissingIndex): Refactored.
  10200. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10201. * src/PeerMessage.h
  10202. (Piece.h): Included.
  10203. (SharedHandle.h): Included.
  10204. (invalidate): New variable.
  10205. (uploading): New variable.
  10206. (isInvalidate): New function.
  10207. (isUploading): New function.
  10208. (onPush): New function.
  10209. (onChoked): New function.
  10210. (onCanceled): New function.
  10211. (onAbortPiece): New function.
  10212. (PeerMessageHandle): New type definition.
  10213. * src/PeerMessage.cc
  10214. (PeerMessage): Added the initialization for invalidate and uploading.
  10215. * src/CancelMessage.h
  10216. (CancelMessage): Rewritten.
  10217. * src/RejectMessage.h
  10218. (RejectMessage): Rewritten.
  10219. * src/Metalinker.h
  10220. (operator=): Defined.
  10221. * src/MetaEntry.h
  10222. (operator=): Defined.
  10223. * src/MetalinkResource.h
  10224. (operator=): Defined.
  10225. * src/AllowedFastMessage.h
  10226. (AllowedFastMessage): Rewritten.
  10227. * src/HandshakeMessage.h
  10228. (HandshakeMessage): New function(overload).
  10229. * src/HandshakeMessage.cc
  10230. (HandshakeMessage): Rewritten.
  10231. (init): New function.
  10232. * src/HaveMessage.h
  10233. (HaveMessage): Rewritten.
  10234. * src/Time.h
  10235. (operator=): Defined the function body here.
  10236. * src/Time.cc
  10237. (operator=): Removed.
  10238. * src/SocketCore.h
  10239. (operator==): Defined here.
  10240. (operator!=): Defined here.
  10241. (operator<): Defined here.
  10242. * src/SocketCore.cc
  10243. (operator==): Removed.
  10244. (operator<): Removed.
  10245. * src/BitfieldMan.h
  10246. (operator=): Defined the function body here.
  10247. * src/BitfieldMan.cc
  10248. (operator=): Removed.
  10249. * src/TorrentMan.h
  10250. (deleteErrorPeer): Removed.
  10251. (deleteUnusedPeer); New function.
  10252. * src/TorrentMan.cc
  10253. (addPeer): Call deleteUnusedPeer.
  10254. (deleteErrorPeer): Removed.
  10255. (deleteUnusedPeer): New function.
  10256. * src/PeerAbstractCommand.h
  10257. (setNoCheck): New function.
  10258. (noCheck): New variable.
  10259. * src/PeerAbstractCommand.cc
  10260. (PeerAbstractCommand): Added the initialization of noCheck.
  10261. (execute): Added a check for noCheck.
  10262. (setNoCheck): New function.
  10263. * src/Util.h
  10264. (stdio.h): Included.
  10265. * src/Util.cc
  10266. (unistd.h): Included.
  10267. * src/DefaultDiskWriter.cc
  10268. (unistd.h): Included.
  10269. * src/Peer.h
  10270. (operator==): Defined the function body here.
  10271. (operator!=): Defined the function body here.
  10272. * src/Peer.cc
  10273. (operator==): Removed.
  10274. (operator!=): Removed.
  10275. * src/Piece.h
  10276. (Piece): Defined the function body here(copy constructor).
  10277. (operator=): Defined the function body here.
  10278. (operator==): Defined the function body here.
  10279. * src/Piece.cc
  10280. (Piece): Removed(copy constructor).
  10281. (operator=): Removed.
  10282. (operator==): Removed.
  10283. * src/PeerMessageUtil.h
  10284. (ChokeMessage.h): Removed.
  10285. (UnchokeMessage.h): Removed.
  10286. (InterestedMessage.h): Removed.
  10287. (NotInterestedMessage.h): Removed.
  10288. (HaveMessage.h): Removed.
  10289. (BitfieldMessage.h): Removed.
  10290. (RequestMessage.h): Removed.
  10291. (CancelMessage.h): Removed.
  10292. (PieceMessage.h): Removed.
  10293. (HandshakeMessage.h): Removed.
  10294. (KeepAliveMessage.h): Removed.
  10295. (PortMessage.h): Removed.
  10296. (HaveAllMessage.h): Removed.
  10297. (HaveNoneMessage.h): Removed.
  10298. (PeerConnection.h): Removed.
  10299. (HandshakeMessage.h): Included.
  10300. * src/BitfieldMessage.h
  10301. (init): New function.
  10302. (BitfieldMessage): Rewritten.
  10303. (BitfieldMessage): New function(overload).
  10304. * src/RequestSlot.h
  10305. (operator=): Defined the function body here.
  10306. (operator==): Defined the function body here.
  10307. * src/RequestSlot.cc
  10308. (operator=): Removed.
  10309. (operator==): Removed.
  10310. To remove the dependency on the PeerMessage subclass from
  10311. PeerInteraction:
  10312. * src/PeerMessageFactory.h: New class.
  10313. * src/PeerMessageFactory.cc: New class.
  10314. * src/SimplePeerMessage.cc
  10315. (send): If invalidate is true then do nothing.
  10316. * src/PeerInteractionCommand.cc
  10317. (HandshakeMessage.h): Included.
  10318. (KeepAliveMessage.h): Included.
  10319. (ChokeMessage.h): Included.
  10320. (UnchokeMessage.h): Included.
  10321. (HaveMessage.h): Included.
  10322. (executeInternal): Call setNoCheck().
  10323. Removed setWriteCheckSocket(socket).
  10324. * src/PeerInteraction.h
  10325. (ChokeMessage.h): Removed.
  10326. (UnchokeMessage.h): Removed.
  10327. (InterestedMessage.h): Removed.
  10328. (NotInterestedMessage.h): Removed.
  10329. (HaveMessage.h): Removed.
  10330. (BitfieldMessage.h): Removed.
  10331. (RequestMessage.h): Removed.
  10332. (CancelMessage.h): Removed.
  10333. (PieceMessage.h): Removed.
  10334. (HandshakeMessage.h): Removed.
  10335. (KeepAliveMessage.h): Removed.
  10336. (PortMessage.h): Removed.
  10337. (HaveAllMessage.h): Removed.
  10338. (HaveNoneMessage.h): Removed.
  10339. (RejectMessage.h): Removed.
  10340. (AllowedFastMessage.h): Removed.
  10341. (SuggestPieceMessage.h): Removed.
  10342. (PeerMessageFactory.h): Included.
  10343. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10344. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10345. (PeerMessageFactory): New variable.
  10346. (createPeerMessage): Removed.
  10347. (createHandshakeMessage): Removed.
  10348. (setPeerMessageCommonProperty): Removed.
  10349. (addRequestSlot): New function.
  10350. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10351. (getPeerMessageFactory): New function.
  10352. (createRequestMessage): Removed.
  10353. (createCancelMessage): Removed.
  10354. (createPieceMessage): Removed.
  10355. (createHaveMessage): Removed.
  10356. (createChokeMessage): Removed.
  10357. (createUnchokeMessage): Removed.
  10358. (createInterestedMessage): Removed.
  10359. (createNotInterestedMessage): Removed.
  10360. (createBitfieldMessage): Removed.
  10361. (createKeepAliveMessage): Removed.
  10362. (createHaveAllMessage): Removed.
  10363. (createHaveNoneMessage): Removed.
  10364. (createRejectMessage): Removed.
  10365. (createAllowedFastMessage): Removed.
  10366. * src/PeerInteraction.cc
  10367. (PeerInteraction): Allocate PeerMessageFactory here.
  10368. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10369. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10370. PieceMessage::ID.
  10371. (addMessage): Simplified by using PeerMessage::onPush().
  10372. (addRequestSlot): New function.
  10373. (rejectAllPieceMessageInQueue): Simplified by using
  10374. PeerMessage::onChoked().
  10375. (rejectPieceMessageInQueue): Simplified by using
  10376. PeerMessage::onCanceled().
  10377. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10378. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10379. (createHandshakeMessage): Removed.
  10380. (createPeerMessage): Removed.
  10381. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10382. (setPeerMessageCommonProperty): Removed.
  10383. (createRequestMessage): Removed.
  10384. (createCancelMessage): Removed.
  10385. (createPieceMessage): Removed.
  10386. (createHaveMessage): Removed.
  10387. (createChokeMessage): Removed.
  10388. (createUnchokeMessage): Removed.
  10389. (createInterestedMessage): Removed.
  10390. (createNotInterestedMessage): Removed.
  10391. (createBitfieldMessage): Removed.
  10392. (createKeepAliveMessage): Removed.
  10393. (createHaveAllMessage): Removed.
  10394. (createHaveNoneMessage): Removed.
  10395. (createRejectMessage): Removed.
  10396. (createAllowedFastMessage): Removed.
  10397. * src/PieceMessage.h
  10398. (createRejectMessage): New function.
  10399. (PieceMessage): Rewritten.
  10400. (onChoked): New function.
  10401. (onCanceled): New function.
  10402. * src/PieceMessage.cc
  10403. (send): If invalidate is true then do nothing, just return.
  10404. (createRejectMessage): New function.
  10405. (onChoked): New function.
  10406. (onCanceled): New function.
  10407. * src/RequestMessage.h
  10408. (RequestMessage): Rewritten.
  10409. (onPush): New function.
  10410. (onAbortPiece): New function.
  10411. * src/RequestMessage.cc
  10412. (onPush): New function.
  10413. (onAbortPiece): New function.
  10414. Update fd_set when a socket is added or deleted in order to improve
  10415. performance:
  10416. * src/DownloadEngine.h
  10417. (rfdset): New variable.
  10418. (wfdset): New variable.
  10419. (updateFdSet): New function.
  10420. * src/DownloadEngine.cc
  10421. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  10422. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  10423. (waitData): Copy rfdset and wfdset.
  10424. (updateFdSet): New function.
  10425. (addSocket): Call updateFdSet.
  10426. (deleteSocket): Call updateFdSet.
  10427. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10428. To add the support for Metalink3.0 backward compatible links:
  10429. * src/Request.h
  10430. (SAFE_CHARS): Added '#'.
  10431. (METALINK_MARK): New definition.
  10432. * src/Request.cc
  10433. (parseUrl): Added the support for Metalink3.0 backward compatible
  10434. links.
  10435. etc
  10436. * src/PeerInteraction.cc
  10437. (MsgPushBack): Removed.
  10438. (sendMessages): Use STL copy and back_inserter.
  10439. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  10440. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  10441. * src/TorrentMan.h
  10442. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  10443. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10444. * src/SharedHandle.h: New class.
  10445. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  10446. * src/HttpResponseCommand.h
  10447. (HttpResponseCommand): Wrapped Socket.
  10448. * src/SocketCore.h
  10449. (operator==): New function.
  10450. (operator!=): New function.
  10451. (operator<): New function.
  10452. (getSockfd): New function.
  10453. (isOpen): New function.
  10454. (writeData): New function.
  10455. * src/SocketCore.cc
  10456. (operator==): New function.
  10457. (operator!=): New function.
  10458. (operator<): New function.
  10459. * src/AbstractCommand.h
  10460. (socket): Changed its type to SocketHandle.
  10461. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10462. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10463. (disableReadCheckSocket): New function.
  10464. (disableWriteCheckSocket): New function.
  10465. (readCheckTarget): Changed its type to SocketHandle.
  10466. (writeCheckTarget): Changed its type to SocketHandle.
  10467. (AbstractCommand): Replaced Socket with SocketHandle.
  10468. * src/AbstractCommand.cc
  10469. (AbstractCommand): Replaced Socket with SocketHandle.
  10470. (~AbstractCommand): Removed the deallocation for Socket object.
  10471. (disableReadCheckSocket): New function.
  10472. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10473. (disableWriteCheckSocket): New function.
  10474. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10475. * src/HttpDownloadCommand.cc
  10476. (DownloadCommand): Replaced Socket with SocketHandle.
  10477. * src/PeerAbstractCommand.h
  10478. (socket): Changed its type to SocketHandle.
  10479. (peer): Changed its type to PeerHandle.
  10480. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10481. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10482. (disableReadCheckSocket): New function.
  10483. (disableWriteCheckSocket): New function.
  10484. (readCheckTarget): Changed its type to SocketHandle.
  10485. (writeCheckTarget): Changed its type to SocketHandle.
  10486. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10487. Replaced Peer with PeerHandle.
  10488. * src/HttpRequestCommand.cc
  10489. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10490. Use disableReadCheckSocket.
  10491. * src/PeerInitiateConnectionCommand.h
  10492. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10493. * src/PeerChokeCommand.cc
  10494. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  10495. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  10496. (execute): Use PeerHandle.
  10497. * src/PeerConnection.h
  10498. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  10499. (socket): Changed its type to SocketHandle.
  10500. (PeerConnection): Replaced Socket with SocketHandle.
  10501. * src/PeerConnection.cc
  10502. (PeerConnection): Replaced Socket with SocketHandle.
  10503. * src/PeerInteractionCommand.h
  10504. (PeerInteractionCommand): Replaced socket with SocketHandle.
  10505. Replaced Peer with PeerHandle.
  10506. * src/PeerInteractionCommand.cc
  10507. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  10508. Replaced Peer with PeerHandle.
  10509. (executeInternal): Use disableWriteCheckSocket.
  10510. Use HandshakeMessageHandle.
  10511. (receiveMessages): Use PeerMessageHandle.
  10512. (prepareForNextPeer): Use PeerHandle.
  10513. * src/HttpProxyRequestCommand.h
  10514. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10515. * src/HttpResponseCommand.cc
  10516. (HttpResponseCommand): Replaced Socket with SocketHandle.
  10517. * src/TorrentMan.cc
  10518. (nullPeer): Added external reference.
  10519. (~TorrentMan): Removed the deallocation of the elements of peers.
  10520. (addPeer): Rewritten.
  10521. (isPeerAvailable): Use nullPeer.
  10522. (deleteOldpeers): Replaced with deleteErrorPeer.
  10523. (deleteErrorPeer): New function.
  10524. (getPeer): Use PeerHandle and nullPeer.
  10525. (hasMissingPiece): Replaced Peer with PeerHandle.
  10526. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10527. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10528. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10529. (getMissingPiece): Replaced Peer with PeerHandle.
  10530. * src/FtpNegotiateCommand.cc
  10531. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  10532. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  10533. (recvGreeting): Use disableWriteCheckSocket.
  10534. (recvPasv): Removed the allocation of Socket.
  10535. Use disableReadCheckSocket.
  10536. (sendRestPasv): Use disableWriteCheckSocket.
  10537. (recvRetr): Changed assertion.
  10538. * src/PeerInteraction.h
  10539. (SharedHandle.h): Included SharedHandle.h.
  10540. (PeerMessageHandle): New type definition.
  10541. (HandshakeMessageHandle): New type definition.
  10542. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  10543. (peer): Changed its type to PeerHandle.
  10544. (createHandshakeMessage): Replaced HandshakeMessage with
  10545. HandshakeMessageHandle.
  10546. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  10547. (PeerInteraction): Replaced Peer with PeerHandle.
  10548. Replaced Socket with SocketHandle.
  10549. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10550. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10551. (receiveHandshake): Replaced HandshakeMessage with
  10552. HandshakeMessageHandle.
  10553. * src/PeerInteraction.cc
  10554. (PeerInteraction): Replaced Peer with PeerHandle.
  10555. Replaced Socket with SocketHandle.
  10556. (~PeerInteraction): Removed the deallocation of the elements of
  10557. messageQueue.
  10558. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  10559. (isSendingMessageInProgress): Replaced PeerMessage with
  10560. PeerMessageHandle.
  10561. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  10562. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10563. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  10564. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  10565. (abortPiece): Use PeerMessageHandle.
  10566. (receiveHandshake): Replaced HandshakeMessage with
  10567. HandshakeMessageHandle. Removed try-catch block.
  10568. (createHandshakeMessage): Replaced HandshakeMessage with
  10569. HandshakeMessageHandle.
  10570. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10571. Removed try-catch block.
  10572. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  10573. * src/HttpProxyResponseCommand.cc
  10574. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10575. * src/FtpTunnelResponseCommand.h
  10576. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10577. * src/HttpConnection.cc
  10578. (HttpConnection): Replaced Socket with SocketHandle.
  10579. * src/PeerAbstractCommand.cc
  10580. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10581. (~PeerAbstractCommand): Removed the deallocation of socket.
  10582. Use disableReadCheckSocket, disableWriteCheckSocket.
  10583. (disableReadCheckSocket): New function.
  10584. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10585. (disableWriteCheckSocket): New function.
  10586. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10587. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  10588. * src/FtpTunnelRequestCommand.cc
  10589. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10590. (~FtpTunnelRequestCommand): Corrected indentation.
  10591. * src/DownloadCommand.h
  10592. (DownloadCommand): Replaced Socket with SocketHandle.
  10593. * src/PeerListenCommand.cc
  10594. (PeerListenCommand): Removed the initialization of socket.
  10595. (~PeerListenCommand): Removed the deallocation of socket.
  10596. (bindPort): Use SocketHandle.
  10597. (execute): Use SocketHandle and PeerHandle.
  10598. * src/FtpDowndloadCommand.cc
  10599. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10600. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  10601. * src/main.cc
  10602. (main): Corrected indentation.
  10603. * src/HttpInitiateConnectionCommand.cc
  10604. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  10605. (executeInternal): Removed the allocation of socket.
  10606. * src/HttpRequestCommand.h
  10607. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10608. * src/FtpNegotiationCommand.h
  10609. (dataSocket): Changed its type to SocketHandle.
  10610. (serverSocket): Changed its type to SocketHandle.
  10611. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  10612. * src/TorrentMan.h
  10613. (MAX_PEER_UPDATE): Removed.
  10614. (MAX_PEERS): New definition.
  10615. (Peers): The element is now of type PeerHandle.
  10616. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  10617. (getPeer): Replaced Peer with PeerHandle.
  10618. (deleteOldErrorPeers): Removed.
  10619. (deleteErrorPeer): New function.
  10620. (hasMissingPiece): Replaced Peer with PeerHandle.
  10621. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10622. (getMissingPiece): Replaced Peer with PeerHandle.
  10623. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10624. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10625. (addActivePeer): Replaced Peer with PeerHandle.
  10626. (deleteActivePeer): Replaced Peer with PeerHandle.
  10627. Added a check for the return value of find.
  10628. * src/FtpTunnelResponseCommand.cc
  10629. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10630. * src/FtpInitiateConnectionCommand.cc
  10631. (executeInternal): Removed the allocation of socket.
  10632. * src/DownloadEngine.h
  10633. (Sockets): An element is now of type SocketHandle.
  10634. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  10635. (CommandUuids): New type definition.
  10636. (rsockets): Changed its type to SockCmdMap.
  10637. (wsockets): Changed its type to SockCmdMap.
  10638. (addSocket): Rewritten.
  10639. (deleteSocket): Rewritten.
  10640. (addSocketForReadCheck): Rewritten.
  10641. (deleteSocketForReadCheck): Rewritten.
  10642. (addSocketForWriteCheck): Rewritten.
  10643. (deleteSocketForWriteCheck): Rewritten.
  10644. (PairFind): New template class.
  10645. * src/HttpDownloadCommand.h
  10646. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  10647. * src/FtpConnection.cc
  10648. (FtpConnection): Replaced Socket with SocketHandle.
  10649. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  10650. block.
  10651. * src/InitiateConnectionCommandFactory.cc
  10652. (DlAbortEx.h): Included DlAbortEx.h.
  10653. (createInitiateConnectionCommand): Throw exception if the protocol of
  10654. requested URI is not supported.
  10655. * src/Peer.cc
  10656. (nullPeer): Changed its type to PeerHandle.
  10657. (operator==): New function.
  10658. (operator!=): New function.
  10659. * src/Peer.h
  10660. (SharedHandle.h): Included SharedHandle.h.
  10661. (operator==): New function.
  10662. (operator!=): New function.
  10663. (Peer): Added the default constructor.
  10664. Use resetStatus() to initialize member variables.
  10665. (nullPeer): Removed.
  10666. * src/TrackerUpdateCommand.cc
  10667. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  10668. with MIN_PEERS.
  10669. * src/PeerListenCommand.h
  10670. (socket): Changed its type to SocketHandle.
  10671. * src/Command.h
  10672. (CommandUuid): New type definition.
  10673. (uuid): New variable.
  10674. (uuidGen): New variable.
  10675. (Command): Added the initialization of uuid.
  10676. (getUuid): New function.
  10677. * src/Socket.h
  10678. (Socket): Removed.
  10679. (SocketHandle): New type definition.
  10680. * src/DownloadEngine.h
  10681. (FindCommand): New function object.
  10682. (run): The portion of socket check was rewritten.
  10683. (SetDescriptor): New function object.
  10684. (AccumulateActiveCommandUuid): New function object.
  10685. (waitData): Rewritten.
  10686. (addSocket): Rewritten.
  10687. (deleteSocket): Rewritten.
  10688. (addSocketForReadCheck): Rewritten.
  10689. (addSocketForWriteCheck): Rewritten.
  10690. (deleteSocketForReadCheck): Rewritten.
  10691. (deleteSocketForWriteCheck): Rewritten.
  10692. * src/HttpProxyResponseCommand.h
  10693. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  10694. * src/HttpConnection.h
  10695. (socket): Changed its type to SocketHandle.
  10696. (HttpConnection): Replaced Socket with SocketHandle.
  10697. * src/PeerInitiateConnectionCommand.cc
  10698. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10699. (executeInternal): Removed the allocation of socket.
  10700. (prepareForNextPeer): Use PeerHandle.
  10701. * src/PeerMessage.h
  10702. (peer): Changed its type to PeerHandle.
  10703. (getPeer): Replaced Peer with PeerHandle.
  10704. (setPeer): Replaced Peer with PeerHandle.
  10705. * src/DownloadCommand.cc
  10706. (DownloadCommand): Replaced Socket with SocketHandle.
  10707. * src/FtpConnection.h
  10708. (socket): Changed its type to SocketHandle.
  10709. (FtpConnection): Replaced Socket with SocketHandle.
  10710. (sendPort); Replaced Socket with SocketHandle.
  10711. * src/FtpDowndloadCommand.h
  10712. (ctrlSocket): Changed its type to SocketHandle.
  10713. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10714. * src/HttpProxyRequestCommand.cc
  10715. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10716. * src/FtpTunnelRequestCommand.h
  10717. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10718. etc
  10719. * src/PeerChokeCommand.h
  10720. (setAllPeerChoked): Removed.
  10721. (setAllPeerResetDelta): Removed.
  10722. * src/PeerChokeCommand.cc
  10723. (setAllPeerChoked): Removed.
  10724. (ChokePeer): New function object.
  10725. (setAllPeerResetDelta): Removed.
  10726. (ResetDelta): New function object.
  10727. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  10728. (execute): Show download speed when the local node is a seeder.
  10729. setAllPeerChoked and setAllPeerResetDelta were rewritten
  10730. using STL.
  10731. * src/TrackerWatcherCommand.h
  10732. (MIN_PEERS): Removed.
  10733. * src/TorrentMan.cc
  10734. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  10735. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10736. To fix the bug that .aria2 file is not saved if downloading is stopped
  10737. by the errors:it results that aria2 can not resume downloading:
  10738. * src/main.cc
  10739. (normalDownload): Added the call to save().
  10740. (main): Added the deletion of the elements in 'reserved'.
  10741. To fix log:
  10742. * src/PeerInteraction.cc
  10743. (receiveHandshake): Fixed log.
  10744. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10745. To improve download performance in BitTorrent:
  10746. * src/TorrentMan.cc
  10747. (getPeer): Check the number of connections. Return nullPeer if
  10748. it is greater than MAX_PEER_UPDATE.
  10749. This code was originally here, but was removed in 0.5.1.
  10750. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10751. To improve the conditional compilation:
  10752. * src/MultiDiskWriter.h:
  10753. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10754. * src/MultiDiskWriter.cc:
  10755. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10756. * src/Util.h:
  10757. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10758. Added ENABLE_BITTORRENT around computeFastSet().
  10759. * src/Util.cc:
  10760. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10761. Added ENABLE_BITTORRENT around computeFastSet().
  10762. * src/messageDigest.h:
  10763. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  10764. * src/ShaVisitor.h:
  10765. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10766. * src/ShaVisitor.cc:
  10767. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10768. * src/main.cc:
  10769. Added ENABLE_BITTORRENT around includes and blocks related to
  10770. BitTorrent.
  10771. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  10772. digest support is not available.
  10773. * src/AbstractDiskWriter.h:
  10774. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10775. * src/AbstractDiskWriter.cc:
  10776. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10777. * src/MetalinkEntry.cc
  10778. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  10779. support is not available.
  10780. To add command-line options for Metalink:
  10781. * src/main.cc:
  10782. Added metalink-version, metalink-language, metalink-os,
  10783. follow-metalink.
  10784. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  10785. * src/main.cc: Use these definition.
  10786. * Release 0.6.0
  10787. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10788. To add Metalink support(http/ftp only):
  10789. * src/AbstractCommand.h
  10790. (tryReserved): New function.
  10791. * src/AbstractCommand.cc
  10792. (execute): Call tryReserved().
  10793. (tryReserved): New function.
  10794. * src/Request.h
  10795. (Requests): New type definition.
  10796. * src/SegmentMan.h
  10797. (reserved): New variable.
  10798. * src/Util.h
  10799. (fileChecksum): New function.
  10800. (toUpper): New function.
  10801. (toLower): New function.
  10802. * src/Util.cc
  10803. (messageDigest.h): Included.
  10804. (trim): Trim \r\n\t.
  10805. (fileChecksum): New function.
  10806. (toUpper): New function.
  10807. (toLower): New function.
  10808. * src/main.cc
  10809. (normalDownload): New function.
  10810. (main): Added 2 command-line options: metalink-file,
  10811. metalink-connection. Their usage has not been written yet.
  10812. * src/MetalinkProcessor.h: New class.
  10813. * src/Xml2MetalinkProcessor.h: New class.
  10814. * src/Xml2MetalinkProcessor.cc: New class.
  10815. * src/MetalinkEntry.h: New class.
  10816. * src/MetalinkEntry.cc: New class.
  10817. * src/MetalinkResource.h: New class.
  10818. * src/MetalinkResource.cc: New class.
  10819. To add md5 message digest checking:
  10820. * src/messageDigest.h: Rewritten.
  10821. * src/MultiDiskWriter.cc: Updated according to the changes in
  10822. messageDigest.h.
  10823. * src/ShaVisitor.cc: Updated according to the changes in
  10824. messageDigest.h.
  10825. * src/Util.cc: Updated according to the changes in messageDigest.h.
  10826. * src/AbstractDiskWriter.cc: Updated according to the changes in
  10827. messageDigest.h.
  10828. To fix a bug that causes segfault when the payload length in peer
  10829. message is less than 0:
  10830. * src/PeerConnection.cc:
  10831. (receiveMessage): Fixed the bug.
  10832. * src/PeerMessageUtil.cc
  10833. (checkLength): Throw an exception if length is less than or equals to
  10834. 0.
  10835. To add new interfaces to Base64 encoding/decoding:
  10836. * src/Base64.h
  10837. (part_encode): Changed the method signature.
  10838. (encode): New function(overload).
  10839. (decode): New function(overload).
  10840. * src/Base64.cc
  10841. (part_encode): Rewritten.
  10842. (encode): Rewritten.
  10843. (encode): New function(overload).
  10844. To prevent a peer to download same piece if there is an error in
  10845. checksum:
  10846. * src/PieceMessage.cc
  10847. (receivedAction): Call peerInteraction->abortPiece().
  10848. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10849. To fix the bug that causes same have message is sent many times to
  10850. a single peer.
  10851. * src/Time.cc
  10852. (isNewer): Use Util::difftv().
  10853. * src/Util.cc
  10854. (difftv): Added a cast to (long long int).
  10855. * src/TorrentMan.cc
  10856. (advertisePiece): Use push_front.
  10857. (getAdvertisedPieceIndexes): A performance improvement was made.
  10858. To fix the bug that sends tracker requests without a sleep interval
  10859. when the number of connections is less than 15.
  10860. * src/TrackerWatcherCommand.cc
  10861. (execute): Now the number of connections is not a factor to decide
  10862. whether or not a tracker request should be sent or not.
  10863. * src/Time.h
  10864. (setTimeInSec): New function.
  10865. * src/Time.cc
  10866. (setTimeInSec): New function.
  10867. etc.
  10868. * src/ChokeMessage.cc
  10869. (receivedAction): Removed peer->snubbing = false
  10870. * src/PeerConnection.h
  10871. (receiveHandshake): Updated doc.
  10872. * src/TorrentMan.h
  10873. (getAdvertisedPieceIndexes): Updated the method signature.
  10874. * src/TorrentMan.cc
  10875. (getAdvertisedPieceIndexes): Updated the method signature.
  10876. * src/Time.h
  10877. (getTimeInMicros): Added a cast to (long long int).
  10878. (getTimeInMillis): Added a cast to (long long int).
  10879. * Release 0.5.2
  10880. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10881. To make a listening socket non-block:
  10882. * src/SocketCore.h
  10883. (setNonBlockingMode): New function.
  10884. * src/SocketCore.cc
  10885. (setNonBlockingMode): New function.
  10886. (beginListen): Added a call to setNonBlockingMode().
  10887. (acceptConnection): Call setNonBlockingMode().
  10888. (setBlockingMode): Updated.
  10889. To handle tracker's NAT-checking:
  10890. * src/PeerConnection.cc
  10891. (receiveHandshake): 'msg' param is filled with received data and
  10892. its length is assigned to 'length' param, even if all handshake
  10893. message is not yet received.
  10894. * src/PeerInteractionCommand.cc
  10895. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  10896. a new peer connects to localhost.
  10897. A call to peerInteraction->sendHandshake() was removed because
  10898. it is called from peerInteraction->receiveHandshake(true).
  10899. * src/PeerInteraction.h
  10900. (quickReplied): New variable.
  10901. (receiveHandshake): Added an argument.
  10902. * src/PeerInteraction.cc
  10903. (PeerInteraction): Added the initialization of quickReplied.
  10904. (receiveHandshake): Send handshake message as soon as the info hash
  10905. in a handshake message from a peer is correct.
  10906. To change the random part of peer id and key parameter:
  10907. * src/TorrentMan.h
  10908. (key): New variable.
  10909. * src/TorrentMan.cc
  10910. (setupInternal1): Use Util::randomAlpha() to generate random part
  10911. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  10912. key is also generated by Util::randomAlpha() and it is now 8 character
  10913. long.
  10914. * src/Util.h
  10915. (randomAlpha): New function.
  10916. * src/Util.cc
  10917. (randomAlpha): New function.
  10918. * src/TrackerWatcherCommand.cc
  10919. (execute): In a tracker request: Use torrentMan->key as key parameter.
  10920. Added no_peer_id=1.
  10921. Set snubbing flag to false when a choke message is received from a
  10922. snubbed peer.
  10923. * src/ChokeMessage.cc
  10924. (receivedAction): Set snubbing flag to false.
  10925. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10926. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  10927. * src/SimpleLogger.h (writeHeader): New function.
  10928. * src/SimpleLogger.cc (writeHeader): New function.
  10929. (writeLog): Fixed the bug that causes segfaults if exception message
  10930. contains an unescaped "%" character.
  10931. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  10932. when a tracker request fails.
  10933. * src/Request.cc (parseUrl): Query string is now handled properly.
  10934. * Release 0.5.1
  10935. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10936. To add Time class which represents a specific instant in time and
  10937. its precision is microseconds. Time checking procedures were rewritten
  10938. using this object.
  10939. * src/Time.h: New class.
  10940. * src/Time.cc: New class.
  10941. * src/AbstractCommand.h
  10942. (updateCheckPoint): Removed.
  10943. (isTimeoutDetected): Removed.
  10944. (checkPoint): Changed the type to Time.
  10945. (timeout): New variable.
  10946. (setTimeout): New function.
  10947. * src/AbstractCommand.cc
  10948. (AbstractCommand): Removed the initialization of checkPoint.
  10949. Added the initialization of timeout.
  10950. (updateCheckPoint): Removed.
  10951. (isTimeoutDetected): Removed.
  10952. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10953. * src/PeerChokeCommand.h
  10954. (checkPoint): Changed the type to Time.
  10955. * src/PeerChokeCommand.cc
  10956. (PeerChokeCommand): Removed the initialization of checkPoint.
  10957. (execute): Rewritten using Time object.
  10958. * src/TrackerWatcherCommand.h
  10959. (checkPoint): Changed the type to Time.
  10960. * src/TrackerWatcherCommand.cc
  10961. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  10962. (execute): Rewritten.
  10963. * src/ConsoleDownloadEngine.h
  10964. (cp): Changed the type to Time.
  10965. (startup): Changed the type to Time.
  10966. * src/ConsoleDownloadEngine.cc
  10967. (initStatistics): Use cp.reset(), startup.reset().
  10968. (calculateStatistics): Rewritten using Time object.
  10969. * src/PeerAbstractCommand.h
  10970. (updateCheckPoint): Removed.
  10971. (isTimeoutDetected): Removed.
  10972. (checkPoint): Changed the type to Time.
  10973. * src/PeerAbstractCommand.cc
  10974. (PeerAbstractCommand): Removed the initialization of checkPoint.
  10975. (updateCheckPoint): Removed.
  10976. (isTimeoutDetected): Removed.
  10977. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10978. * src/PeerInteractionCommand.cc
  10979. (PeerInteractionCommand): Removed the initializations of struct
  10980. timeval variables.
  10981. * src/PeerInteractionCommand.h
  10982. (keepAliveCheckPoint): Changed the type to Time.
  10983. (chokeCheckPoint): Changed the type to Time.
  10984. (freqCheckPoint): Changed the type to Time.
  10985. (haveCheckTime): Changed the type to Time.
  10986. * src/PeerInteractionCommand.cc
  10987. (executeInternal): Rewritten using Time object.
  10988. (detectMessageFlooding): Rewritten using Time object.
  10989. (checkLongTimePeerChoking): Rewritten using Time object.
  10990. (sendKeepAlive): Rewritten using Time object.
  10991. (checkHave): Rewritten using Time object.
  10992. * src/SleepCommand.h
  10993. (checkPoint): Changed the type to Time.
  10994. * src/SleepCommand.cc
  10995. (SleepCommand): Removed the initialization of checkPoint.
  10996. (execute): Rewritten using Time object.
  10997. * src/TorrentAutoSaveCommand.h
  10998. (checkPoint): Changed the type to Time.
  10999. * src/TorrentAutoSaveCommand.cc
  11000. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  11001. (execute): Rewritten.
  11002. * src/DownloadCommand.h
  11003. (sw): Changed the type to Time.
  11004. * src/DownloadCommand.cc
  11005. (DownloadCommand): Removed the initialization of sw.
  11006. (executeInternal): Rewritten.
  11007. * src/RequestSlot.h
  11008. (dispatchedTime): Changed the type to Time.
  11009. * src/RequestSlot.cc
  11010. (RequestSlot): Removed the call to setDispatchedTime().
  11011. (setDispatchedTime): Rewirtten.
  11012. (isTimeout): Rewritten.
  11013. (getLatencyInMillis): Rewritten.
  11014. * src/TorrentDownloadEngine.h
  11015. (cp): Changed the type to Time[2].
  11016. (startup): Changed the type to Time.
  11017. * src/TorrentDownloadEngine.cc
  11018. (initStatistics): Rewritten.
  11019. (calculateStatistics): Rewritten.
  11020. * src/DownloadEngine.cc
  11021. (run): Rewritten.
  11022. To detect all attempts to connect to the tracker are failed:
  11023. * src/AbstractCommand.cc
  11024. (execute): Increment e->segmentMan->errors if a command aborted.
  11025. * src/SegmentMan.h
  11026. (errors): New variable.
  11027. * src/SegmentMan.cc
  11028. (SegmentMan): Added the initialization of errors.
  11029. (init): Added the initialization of errors.
  11030. * src/TrackerWatcherCommand.cc
  11031. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11032. request was failed.
  11033. To handle snubbed peers:
  11034. * src/PeerChokeCommand.cc
  11035. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11036. (execute): Snubbed peers don't get unchoked.
  11037. * src/PeerInteraction.h
  11038. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11039. * src/PeerInteraction.cc
  11040. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11041. back the requested 16k block in 60 seconds.
  11042. * src/PieceMessage.cc
  11043. (receivedAction): A peer's snubbed state is cleard if it sends
  11044. the requested 16k block in 60 seconds.
  11045. * src/Peer.h
  11046. (snubbing): New variable.
  11047. * src/Peer.cc
  11048. (resetStatus): Added snubbed = false.
  11049. To fix the bug that causes have message is not sent:
  11050. * src/PeerInteractionCommand.cc
  11051. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11052. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11053. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11054. * src/TorrentMan.h
  11055. (HaveEntry): New class.
  11056. (advertisePiece): Rewritten.
  11057. (getAdvertisedPieceIndexes): Rewritten.
  11058. (Haves): Changed the type.
  11059. (getAdvertisedPieceIndexes): Added an argument.
  11060. Others:
  11061. * src/TorrentMan.h
  11062. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11063. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11064. * src/TorrentMan.cc
  11065. (getPeer): Don't check the number of connections here.
  11066. (setupInternal1): Changed peerId.
  11067. * src/PeerInteractionCommand.h
  11068. (KEEP_ALIVE_INTERVAL): New definition.
  11069. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11070. * src/main.cc
  11071. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11072. * src/DownloadEngine.h: Removed unnecessary header includes.
  11073. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11074. To fix the bug that causes segfaults if a tracker returns a zero-length
  11075. list as "peers":
  11076. * src/TrackerUpdateCommand.cc
  11077. (execute): Added a check to see wether the type of peers is Data*.
  11078. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11079. * Release 0.5.0
  11080. To fix compile issue with gcc3:
  11081. * src/CancelMessage.h
  11082. (ID): Renamed as ID_t
  11083. (ID_t): New enum.
  11084. * src/RejectMessage.h
  11085. (ID): Renamed as ID_t
  11086. (ID_t): New enum.
  11087. * src/SuggestPieceMessage.h
  11088. (ID): Renamed as ID_t
  11089. (ID_t): New enum.
  11090. * src/AllowedFastMessage.h
  11091. (ID): Renamed as ID_t
  11092. (ID_t): New enum.
  11093. * src/PortMessage.h
  11094. (ID): Renamed as ID_t
  11095. (ID_t): New enum.
  11096. * src/HaveNoneMessage.h
  11097. (ID): Renamed as ID_t
  11098. (ID_t): New enum.
  11099. * src/KeepAliveMessage.h
  11100. (ID): Renamed as ID_t
  11101. (ID_t): New enum.
  11102. * src/HaveAllMessage.h
  11103. (ID): Renamed as ID_t
  11104. (ID_t): New enum.
  11105. * src/UnchokeMessage.h
  11106. (ID): Renamed as ID_t
  11107. (ID_t): New enum.
  11108. * src/BitfieldMessage.h
  11109. (ID): Renamed as ID_t
  11110. (ID_t): New enum.
  11111. * src/PieceMessage.h
  11112. (ID): Renamed as ID_t
  11113. (ID_t): New enum.
  11114. * src/RequestMessage.h
  11115. (ID): Renamed as ID_t
  11116. (ID_t): New enum.
  11117. * src/NotInterestedMessage.h
  11118. (ID): Renamed as ID_t
  11119. (ID_t): New enum.
  11120. * src/ChokeMessage.h
  11121. (ID): Renamed as ID_t
  11122. (ID_t): New enum.
  11123. * src/InterestedMessage.h
  11124. (ID): Renamed as ID_t
  11125. (ID_t): New enum.
  11126. * src/HaveMessage.h
  11127. (ID): Renamed as ID_t
  11128. (ID_t): New enum.
  11129. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11130. * src/PeerAbstractCommand.h
  11131. (beforeSocketCheck): Removed.
  11132. * src/PeerAbstractCommand.cc
  11133. Modified in order to call executeInternal() even if socket check
  11134. and upload limit check fail.
  11135. * src/PeerInteractionCommand.h
  11136. (keepAlive): Removed.
  11137. (sendKeepAlive): New function.
  11138. (checkHave): New function.
  11139. (beforeSocketCheck): Removed.
  11140. * src/PeerInteractionCommand.cc
  11141. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11142. calls to checkHave() and sendKeepAlive().
  11143. (keepAlive): Renamed to sendKeepAlive().
  11144. (sendKeepAlive): New function.
  11145. (beforeSocketCheck): Removed.
  11146. (checkHave): New function.
  11147. * src/BitfieldMan.cc
  11148. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11149. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11150. 0.
  11151. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11152. * src/TorrentMan.h
  11153. (UsedPieces): Removed.
  11154. (Pieces): New type definition.
  11155. * src/Piece.h: Updated doc.
  11156. * src/Peer.h
  11157. (totalLength): Removed.
  11158. * src/Peer.cc
  11159. (updateLatency): Fixed the latency calculation.
  11160. * src/TorrentMan.cc
  11161. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11162. than or equal to MAX_PEER_LIST_SIZE.
  11163. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11164. then return false.
  11165. (deleteOldErrorPeers): Rewritten.
  11166. (deleteUsedPiece): Fixed the miss use of STL remove.
  11167. * src/PeerInteraction.h
  11168. (Pieces): Removed.
  11169. (deleteTimeoutRequestSlot): Removed.
  11170. (deleteCompletedRequestSlot): Removed.
  11171. (checkRequestSlot): New function.
  11172. * src/PeerInteraction.cc
  11173. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11174. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11175. (checkRequestSlot): New function.
  11176. * src/DownloadEngine.cc
  11177. (run): Clear activeSockets before calling waitData().
  11178. (waitData): Removed a call to activeSockets.clear().
  11179. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11180. To attempt to handle EINTR:
  11181. * src/SocketCore.cc
  11182. (isReadable): Added EINTR handling.
  11183. (isWritable): Added EINTR handling.
  11184. To improve the performance:
  11185. * src/AbstractCommand.cc
  11186. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11187. * src/PeerInteractionCommand.h
  11188. (receiveMessage): Renamed as receiveMessages().
  11189. (receiveMessages): New function.
  11190. * src/PeerInteractionCommand.cc
  11191. (executeInternal): receiveMessage loop is moved to new receiveMessages
  11192. () function. detectMessageFlooding() is moved here.
  11193. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  11194. (). The flooding detection for have message is comment out.
  11195. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  11196. Util::difftv().
  11197. (receiveMessage): Renamed as receiveMessages().
  11198. (receiveMessages): New function.
  11199. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  11200. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  11201. * src/SleepCommand.cc
  11202. (execute): Use Util::difftvsec() instead of Util::difftv().
  11203. * src/BitfieldMan.h
  11204. (getNthBitIndex): New function.
  11205. (hasMissingPiece): New function.
  11206. (getAllMissingIndexes): New function.
  11207. * src/BitfieldMan.cc
  11208. (countSetBit): Rewritten.
  11209. (getNthBitIndex): New function.
  11210. (getMissingIndexRandomly): Rewritten.
  11211. (hasMissingPiece): New function.
  11212. (getAllMissingIndexes): New function.
  11213. * src/TorrentMan.cc
  11214. (hasMissingPiece): New function.
  11215. (deleteUsedPiece): Rewritten using STL.
  11216. * src/PeerInteraction.cc
  11217. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  11218. is a little bit faster then TorrentMan::getMissingPieceIndex().
  11219. (addRequests): Updated the number of pending requests.
  11220. * src/PeerAbstractCommand.cc
  11221. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11222. (execute): Returns true if TorrentMan::isHalt() is true.
  11223. Corrected the condition of upload limit checking.
  11224. * src/Util.h
  11225. (countBit): New function.
  11226. * src/Util.cc
  11227. (nbits): New variable.
  11228. (countBit): New function.
  11229. * src/DownloadEngine.h
  11230. (SockCmdMap): New type definition.
  11231. (waitData): Added an argument.
  11232. (addSocket): Added an argument.
  11233. (addSocketForReadCheck): Added an argument.
  11234. (addSocketForWriteCheck): Added an argument.
  11235. * src/DownloadEngine.cc
  11236. (run): Executes only commands whose sockets are ready to read or write.
  11237. All commands are executed in every 1 second.
  11238. (waitData): Calls select() again if it returned
  11239. EINTR.
  11240. (addSocket): Saves socket and command object pair to the map.
  11241. (deleteSocket): Deletes socket and command object pair from the map.
  11242. (addSocketForReadCheck): Added an argument.
  11243. (addSocketForWriteCheck): Added an argument.
  11244. * src/DownloadCommand.cc
  11245. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11246. To send "event=stopped" to the tracker when the application finishes:
  11247. * src/PeerChokeCommand.h
  11248. (checkPoint): New variable.
  11249. * src/PeerChokeCommand.cc
  11250. (PeerChokeCommand): Added the initialization of checkPoint.
  11251. (execute): The interval check is now done by checkPoint, not
  11252. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11253. * src/TorrentMan.h
  11254. (halt): New function.
  11255. (hasMissingPiece): New function.
  11256. (isHalt): New function.
  11257. (setHalt): New function.
  11258. * src/TorrentMan.cc
  11259. (TorrentMan): Added the initialization of halt.
  11260. * src/TorrentAutoSaveCommand.h
  11261. (checkPoint): New variable.
  11262. * src/PeerListenCommand.cc
  11263. (execute): Returns true if TorrentMan::isHalt() is true.
  11264. * src/main.cc
  11265. (setSignalHander): Added flags argument.
  11266. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11267. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11268. Removed printDownloadAbortMessage() after torrent downloading loop.
  11269. * src/TorrentAutoSaveCommand.cc
  11270. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11271. (execute): Returns true if TorrentMan::isHalt() is true.
  11272. The interval check is now done by checkPoint, not SleepCommand.
  11273. * src/TrackerWatcherCommand.cc
  11274. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11275. event=stopped.
  11276. * src/TrackerUpdateCommand.cc
  11277. (prepareForRetry): Do not use SleepCommand here.
  11278. (execute): Returns true if TorrentMan::isHalt() is true.
  11279. Others:
  11280. * src/TorrentMan.cc
  11281. (getMissingPieceIndex): Updated log message.
  11282. * src/PeerInteraction.cc
  11283. (createPeerMessag): Updated log message.
  11284. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11285. To add the ability to download several pieces in mix in a command and
  11286. increase the number of request slots according to request-cancel
  11287. latency:
  11288. * src/PeerInteractionCommand.cc
  11289. (executeInternal): The number of messages to be received at a time
  11290. is increased from 10 to 50.
  11291. * src/LogFactory
  11292. (getInstance): Added NullLogger.
  11293. * src/NullLogger.h: New class.
  11294. * src/BitfieldMan.h
  11295. (getMissingIndex): New function.
  11296. * src/BitfieldMan.cc
  11297. (getMissingIndex): New function.
  11298. * src/TorrentMan.h
  11299. (checkOutPiece): New function.
  11300. (getMissingPieceIndex): New function.
  11301. (getMissingFastPieceIndex): New function.
  11302. (getMissingFastPiece): New function.
  11303. * src/TorrentMan.cc
  11304. (updatePiece): Rewritten using STL.
  11305. (syncPiece): Rewritten using STL.
  11306. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  11307. checkOutPiece().
  11308. (getMissingPieceIndex): New function.
  11309. (getMissingFastPieceIndex): New function.
  11310. (getMissingFastPiece): New function.
  11311. (checkOutPiece): New function.
  11312. * src/PeerInteraction.h
  11313. (Pieces): New type definition.
  11314. (piece): Removed.
  11315. (pieces): New variable.
  11316. (getNewPieceAndSendInterest): Added the "piece" argument.
  11317. (abortPiece): Added the "piece" argument.
  11318. (abortAllPieces): New function.
  11319. (isInRequestSlot): New function.
  11320. (hasDownloadPiece): Added the "index" argument.
  11321. (setDownloadPiece): Removed.
  11322. (getDownloadPiece): Added the "index" argument.
  11323. (updatePiece): New function.
  11324. (createRequestMessage): Added the "index" argument.
  11325. * src/PeerInteraction.cc
  11326. (onChoked): Rewritten.
  11327. (abortPiece): Rewirtten.
  11328. (abortAllPieces): New function.
  11329. (deleteTimeoutRequestSlot): Rewritten.
  11330. Clarified code a little bit.
  11331. (deleteCompletedRequestSlot): Rewritten.
  11332. (isInRequestSlot): New function.
  11333. (syncPiece): Rewritten.
  11334. (updatePiece): New function.
  11335. (getNewPieceAndSendInterest): Rewritten.
  11336. (addRequests): Rewritten.
  11337. (getDownloadPiece): Rewritten.
  11338. (hasDownloadPiece): Rewritten.
  11339. (createRequestMessage): Added the "index" argument.
  11340. * src/common.h
  11341. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11342. (DIV_FLOOR): New definition.
  11343. * src/PieceMessage.cc
  11344. (receivedAction): Update request-piece latency here.
  11345. * src/RequestSlot.h
  11346. (getLatencyInMillis): New function.
  11347. * src/RequestSlot.cc
  11348. (isTimeout): Rewritten using getLatencyInMillis.
  11349. (getLatencyInMillis): New function.
  11350. * src/Piece.h
  11351. (operator==): New function.
  11352. (getMissingBlockIndex): New function.
  11353. * src/Piece.cc
  11354. (operator==): New function.
  11355. (getMissingBlockIndex): New function.
  11356. * src/Peer.h
  11357. (DEFAULT_LATENCY): New definition.
  11358. (latency): New variable.
  11359. (updateLatency): New function.
  11360. (getLatency): New function.
  11361. * src/Peer.cc
  11362. (resetStatus): Reset latecy.
  11363. (updateLatency): New function.
  11364. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11365. * src/SocketCore.cc
  11366. (isReadable): Added secure to the condition.
  11367. * src/HttpConnection.cc
  11368. (receiveResponse): Fixed a bug that causes no response header
  11369. exception.
  11370. * src/Peer.h
  11371. (getFastSet): Fixed the return value type.
  11372. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11373. To remove a wait from download loop:
  11374. * src/DownloadEngine.cc
  11375. (run): Comment out shortSleep.
  11376. To rewrite the message handling:
  11377. * src/SimplePeerMessage.h: New class.
  11378. * src/SimplePeerMessage.cc: New class.
  11379. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11380. (msg): New variable.
  11381. (create): New function.
  11382. (send): Removed.
  11383. (getMessage): New function.
  11384. (getMessageLength): New function.
  11385. * src/CancelMessage.cc
  11386. (create): New function.
  11387. (receivedAction): Replaced deleteRequestMessageInQueue with
  11388. rejectPieceMessageInQueue.
  11389. (send): Removed.
  11390. (getMessage): New function.
  11391. (getMessageLength): New function.
  11392. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11393. (msg): New variable.
  11394. (msgLength): New variable.
  11395. (~BitfieldMessage): Deleted msg.
  11396. (send): Removed.
  11397. (getMessage): New function.
  11398. (getMessageLength): New function.
  11399. * src/BitfieldMessage.cc
  11400. (create): New function.
  11401. (send): Removed.
  11402. (getMessage): New function.
  11403. (getMessageLength): New function.
  11404. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11405. (msg): New variable.
  11406. (sendPredicate): New function.
  11407. (onSendComplete): New function.
  11408. (send): Removed.
  11409. (getMessage): New function.
  11410. (getMessageLength): New function.
  11411. (create): New function.
  11412. * src/ChokeMessage.cc
  11413. (create): New function.
  11414. (send): Removed.
  11415. (sendPredicate): New function.
  11416. (getMessage): New function.
  11417. (getMessageLength): New function.
  11418. (onSendComplete): New function.
  11419. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  11420. (msg): New variable.
  11421. (send): Removed.
  11422. (getMessage): New function.
  11423. (getMessageLength): New function.
  11424. * src/KeepAliveMessage.cc
  11425. (send): Removed.
  11426. (getMessage): New function.
  11427. (getMessageLength): New function.
  11428. * src/PortMessage.h
  11429. (create): New function.
  11430. (receivedAction): Updated log message.
  11431. * src/PortMessage.cc: New file.
  11432. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  11433. (msg): New variable.
  11434. (sendPredicate): New function.
  11435. (onSendComplete): New function.
  11436. (create): New function.
  11437. (send): Removed.
  11438. (getMessage): New function.
  11439. (getMessageLength): New function.
  11440. * src/UnchokeMessage.cc
  11441. (create): New function.
  11442. (send): Removed.
  11443. (sendPredicate): New function.
  11444. (getMessage): New function.
  11445. (getMessageLength): New function.
  11446. (onSendComplete): New function.
  11447. * src/PieceMessage.h
  11448. (leftPieceDataLength): Removed.
  11449. (leftDataLength): New variable.
  11450. (headerSend): New variable.
  11451. (pendingCount): New variable.
  11452. (msgHeader): New variable.
  11453. (sendPieceData): New function.
  11454. (incrementPendingCount): New function.
  11455. (isPendingCountMax): New function.
  11456. (create): New function.
  11457. (getMessageHeader): New function.
  11458. (getMessageHeaderLength): New function.
  11459. * src/PieceMessage.cc
  11460. (create): New function.
  11461. (getMessageHeader): New function.
  11462. (getMessageHeaderLength): New function.
  11463. (send): Rewritten.
  11464. (sendPieceData): New function.
  11465. * src/HaveMessage.h: Derived from SimplePeerMessage.
  11466. (msg): New variable.
  11467. (create): New function.
  11468. (getMessage): New function.
  11469. (getMessageLength): New function.
  11470. * src/HaveMessage.cc
  11471. (create): New function.
  11472. (send): Removed.
  11473. (sendPieceData): New function.
  11474. (getMessage): New function.
  11475. (getMessageLength): New function.
  11476. * src/RequestMessage.h: Derived from SimplePeerMessage.
  11477. (msg): New variable.
  11478. (create): New function.
  11479. (send): Removed.
  11480. (getMessage): New function.
  11481. (getMessageLength): New function.
  11482. * src/RequestMessage.cc
  11483. (create): New function.
  11484. (receivedAction): Added the handling of fast extension.
  11485. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  11486. (send): Removed.
  11487. (getMessage): New function.
  11488. (getMessageLength): New function.
  11489. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  11490. (msg): New variable.
  11491. (sendPredicate): New function.
  11492. (onSendComplete): New function.
  11493. (create): New function.
  11494. (getMessage): New function.
  11495. (getMessageLength): New function.
  11496. * src/InterestedMessage.cc
  11497. (create): New function.
  11498. (send): Removed.
  11499. (sendPieceData): New function.
  11500. (getMessage): New function.
  11501. (getMessageLength): New function.
  11502. (onSendComplete): New function.
  11503. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  11504. (msg): New variable.
  11505. (sendPieceData): New function.
  11506. (onSendComplete): New function.
  11507. (create): New function.
  11508. (send): Removed.
  11509. (getMessage): New function.
  11510. (getMessageLength): New function.
  11511. * src/NotInterestedMessage.cc
  11512. (create): New function.
  11513. (send): Removed.
  11514. (sendPredicate): New function.
  11515. (getMessage): New function.
  11516. (getMessageLength): New function.
  11517. (onSendComplete): New function.
  11518. * src/AllowedFastMessage.h: New class.
  11519. * src/AllowedFastMessage.cc: New class.
  11520. * src/RejectMessage.h: New class.
  11521. * src/RejectMessage.cc: New class.
  11522. * src/SuggestPieceMessage.h: New class.
  11523. * src/SuggestPieceMessage.cc: New class.
  11524. * src/HaveAllMessage.h: New class.
  11525. * src/HaveAllMessage.cc: New class.
  11526. * src/HaveNoneMessage.h: New class.
  11527. * src/HaveNoneMessage.cc: New class.
  11528. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  11529. (msg): New variable.
  11530. (reserved): New variable.
  11531. (create): New function.
  11532. (getId): New function.
  11533. (receivedAction): New function.
  11534. (getMessage): New function.
  11535. (getMessageLength): New function.
  11536. (isFastExtensionSupported): New function.
  11537. * src/HandshakeMessage.cc
  11538. (HandshakeMessage): Moved here from HandshakeMessage.h.
  11539. (create): New function.
  11540. (getMessage): New function.
  11541. (getMessageLength): New function.
  11542. (toString): Added the output of reserved field.
  11543. (check): Added const qualifier.
  11544. (isFastExtensionSupported): New function.
  11545. * src/PeerMessageUtil.h
  11546. (createChokeMessage): Removed.
  11547. (createUnchokeMessage): Removed.
  11548. (createInterestedMessage): Removed.
  11549. (createNotInterestedMessage): Removed.
  11550. (createHaveMessage): Removed.
  11551. (createBitfieldMessage): Removed.
  11552. (createRequestMessage): Removed.
  11553. (createCancelMessage): Removed.
  11554. (createPieceMessage): Removed.
  11555. (createPortMessage): Removed.
  11556. (createChokeMessage): Removed.
  11557. (createUnchokeMessage): Removed.
  11558. (createInterestedMessage): Removed.
  11559. (createNotInterestedMessage): Removed.
  11560. (createHaveMessage): Removed.
  11561. (createBitfieldMessage): Removed.
  11562. (createRequestMessage): Removed.
  11563. (createCancelMessage): Removed.
  11564. (createPieceMessage): Removed.
  11565. (createKeepAliveMessage): Removed.
  11566. (createHandshakeMessage): Removed.
  11567. (setIntParam): New function.
  11568. (createPeerMessageString): New function.
  11569. * src/PeerMessageUtil.cc
  11570. (createChokeMessage): Removed.
  11571. (createUnchokeMessage): Removed.
  11572. (createInterestedMessage): Removed.
  11573. (createNotInterestedMessage): Removed.
  11574. (createHaveMessage): Removed.
  11575. (createBitfieldMessage): Removed.
  11576. (createRequestMessage): Removed.
  11577. (createCancelMessage): Removed.
  11578. (createPieceMessage): Removed.
  11579. (createPortMessage): Removed.
  11580. (createRequestMessage): Removed.
  11581. (createCancelMessage): Removed.
  11582. (createPieceMessage): Removed.
  11583. (createHaveMessage): Removed.
  11584. (createChokeMessage): Removed.
  11585. (createUnchokeMessage): Removed.
  11586. (createInterestedMessage): Removed.
  11587. (createNotInterestedMessage): Removed.
  11588. (createBitfieldMessage): Removed.
  11589. (createKeepAliveMessage): Removed.
  11590. (createHandshakeMessage): Removed.
  11591. (setIntParam): New function.
  11592. (createPeerMessageString): New function.
  11593. * src/PeerConnection.h
  11594. (peer): Removed.
  11595. (torrentMan): Removed.
  11596. (createNLengthMessage): Removed.
  11597. (setIntParam): Removed.
  11598. (writeOutgoingMessageLog): Removed all overloaded functions.
  11599. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11600. (sendMessage): New function.
  11601. (sendHandshake): Removed.
  11602. (sendKeepAlive): Removed.
  11603. (sendChoke): Removed.
  11604. (sendUnchoke): Removed.
  11605. (sendInterested): Removed.
  11606. (sendNotInterested): Removed.
  11607. (sendHave): Removed.
  11608. (sendBitfield): Removed.
  11609. (sendRequest): Removed.
  11610. (sendPiece): Removed.
  11611. (sendPieceHeader): Removed.
  11612. (sendPieceData): Removed.
  11613. (sendCancel): Removed.
  11614. (getPeer): Removed.
  11615. * src/PeerConnection.cc
  11616. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11617. (sendHandshake): Removed.
  11618. (sendKeepAlive): Removed.
  11619. (createNLengthMessage): Removed.
  11620. (setIntParam): Removed.
  11621. (writeOutgoingMessageLog): Removed all overloaded functions.
  11622. (sendChoke): Removed.
  11623. (sendUnchoke): Removed.
  11624. (sendInterested): Removed.
  11625. (sendNotInterested): Removed.
  11626. (sendHave): Removed.
  11627. (sendBitfield): Removed.
  11628. (sendRequest): Removed.
  11629. (sendPiece): Removed.
  11630. (sendPieceHeader): Removed.
  11631. (sendPieceData): Removed.
  11632. (sendMessage): New function.
  11633. (sendCancel): Removed.
  11634. * src/PeerInteractionCommand.cc
  11635. (PeerInteractionCommand): Call setUploadLimit.
  11636. (executeInternal): Call setUploadLimit.
  11637. Added the handling of "inProgress" state of handshake message.
  11638. Call sendBitfield() or sendAllowdFast() instead of deprecated
  11639. sendNow().
  11640. (keepAlive): Call addMessage and sendMessage instead of deprecated
  11641. sendNow().
  11642. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  11643. * src/TorrentMan.h
  11644. (PEER_ID_LENGTH): New definition.
  11645. (hasAllPieces): New function.
  11646. * src/TorrentMan.cc
  11647. (getMissingPiece): Added the handling of fast extension.
  11648. (cancelPiece): Call updatePiece().
  11649. (hasAllPieces): New function.
  11650. * src/PeerInteraction.h
  11651. (fastSet): New variable.
  11652. (getNewPieceAndSendInterest): Changed the return type to void.
  11653. (send): Renamed as sendMessages.
  11654. (deleteAllRequestSlot): Removed.
  11655. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11656. (cancelAllRequest): Removed all overloaded functions.
  11657. (deleteAllRequestSlot): Removed.
  11658. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11659. (rejectPieceMessageInQueue): New function.
  11660. (rejectAllPieceMessageInQueue): New function.
  11661. (onChoked): New function.
  11662. (isSendingMessageInProgress): New function.
  11663. (getCorrespondingRequestSlot): Changed its arguments.
  11664. (isInFastSet): New function.
  11665. (addFastSetIndex): New function.
  11666. (addRequests): New function.
  11667. (sendNow): Removed.
  11668. (trySendNow): Removed.
  11669. (sendBitfield): New function.
  11670. (sendAllowdFast): New function.
  11671. (createHaveAllMessage): New function.
  11672. (createHaveNoneMessage): New function.
  11673. (createRejectMessage): New function.
  11674. (createAllowedFastMessage): New function.
  11675. * src/PeerInteraction.cc
  11676. (send): Renamed as sendMessages.
  11677. (sendMessages): New function.
  11678. (MsgPushBack): New class.
  11679. (isSendingMessageInProgress): New function.
  11680. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11681. (rejectAllPieceMessageInQueue): New function.
  11682. Added the handling of fast extension.
  11683. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11684. (rejectPieceMessageInQueue): New function.
  11685. Added the handling of fast extension.
  11686. (deleteRequestSlot): Replaced for loop with std::find.
  11687. (onChoked): New function.
  11688. (deleteAllRequestSlot): Removed.
  11689. (abortPiece): Rewirtten.
  11690. (deleteTimeoutRequestSlot): Updated log messages.
  11691. (getCorrespondingRequestSlot): Changed its arguments.
  11692. (cancelAllRequest): Removed all overloaded functions.
  11693. (receiveHandshake): Added the check to see whether an incoming peer
  11694. supports fast extension.
  11695. (createHandshakeMessage): Use HandshakeMessage::create instead of
  11696. PeerMessageUtil.
  11697. (createPeerMessage): Use create() of each message class instead of
  11698. PeerMessageUtil.
  11699. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  11700. AllowedFastMessage were added.
  11701. (getNewPieceAndSendInterest): Changed its return value type to void.
  11702. Added the handling of fast extension.
  11703. (addRequests): New function.
  11704. (sendNow): Removed.
  11705. (sendHandshake): Rewritten.
  11706. (trySendNow): Removed.
  11707. (sendBitfield): New function.
  11708. (sendAllowdFast): New function.
  11709. (isInFastSet): New function.
  11710. (addFastSetIndex): New function.
  11711. (createRequestMessage): Use RequestMessage::create instead of
  11712. PeerMessageUtil.
  11713. (createCancelMessage): Use CancelMessage::create instead of
  11714. PeerMessageUtil.
  11715. (createPieceMessage): Use PieceMessage::create instead of
  11716. PeerMessageUtil.
  11717. (createHaveMessage): Use HaveMessage::create instead of
  11718. PeerMessageUtil.
  11719. (createChokeMessage): Use ChokeMessage::create instead of
  11720. PeerMessageUtil.
  11721. (createUnchokeMessage): Use UnchokeMessage::create instead of
  11722. PeerMessageUtil.
  11723. (createInterestedMessage): Use InterestedMessage::create instead of
  11724. PeerMessageUtil.
  11725. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  11726. of PeerMessageUtil.
  11727. (createBitfieldMessage): Use BitfieldMessage::create instead of
  11728. PeerMessageUtil.
  11729. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  11730. PeerMessageUtil.
  11731. (createHaveAllMessage): New function.
  11732. (createHaveNoneMessage): New function.
  11733. (createRejectMessage): New function.
  11734. (createAllowedFastMessage: New function.
  11735. * src/Util.h
  11736. (sha1Sum): New function.
  11737. (computeFastSet): New function.
  11738. * src/Util.cc
  11739. (sha1Sum): New function.
  11740. (computeFastSet): New function.
  11741. * src/Peer.h
  11742. (fastExtensionEnabled): New variable.
  11743. (fastSet): New variable.
  11744. (setAllBitfield): New function.
  11745. (setFastExtensionEnabled): New function.
  11746. (isFastExtensionEnabled): New function.
  11747. (addFastSetIndex): New function.
  11748. (getFastSet): New function.
  11749. (isInFastSet): New function.
  11750. (countFastSet): New function.
  11751. * src/Peer.cc
  11752. (isInFastSet): New function.
  11753. (addFastSetIndex): New function.
  11754. (setAllBitfield): New function.
  11755. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  11756. sockets.
  11757. * src/PeerAbstractCommand.cc
  11758. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  11759. and uploadLimit.
  11760. (execute): Changed the procedure of checking sockets. The upload speed
  11761. checking were added.
  11762. (setUploadLimit): New function.
  11763. (setUploadLimitCheck): New function.
  11764. * src/PeerAbstractCommand.h
  11765. (setUploadLimit): New function.
  11766. (setUploadLimitCheck): New function.
  11767. (uploadLimit): New variable.
  11768. (uploadLimitCheck): New variable.
  11769. To contact a tracker regularly:
  11770. * src/TrackerWatcherCommand.h (interval): New variable.
  11771. (checkPoint): New variable.
  11772. (TrackerWatcherCommand): Added interval argument.
  11773. * src/TrackerWatcherCommand.cc
  11774. (TrackerWatcherCommand): Initialized checkPoint.
  11775. (execute): Now a tracker is contacted in every specified period.
  11776. If peer list is not needed, send request with numwant=0.
  11777. * src/TrackerUpdateCommand.cc
  11778. (execute): Updated log messages.
  11779. * src/DownloadEngine.cc
  11780. (~DownloadEngine): Removed two asserts.
  11781. (waitData): Uncommented wfds. May be a bug fix.
  11782. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11783. * src/PeerInteractionCommand.h
  11784. (checkInactiveConnection): Removed.
  11785. * src/PeerInteractionCommand.cc
  11786. (executeInternal): Removed following function calls:
  11787. detectMessageFlooding(), checkLongTimePeerChoking and
  11788. checkInactiveConnection().
  11789. (checkInactiveConnection): Removed.
  11790. (detectMessageFlooding): Removed function call to
  11791. checkInactiveConnection().
  11792. * src/PeerMessageUtil.h
  11793. (createChokeMessage): New function. Overload.
  11794. (createUnchokeMessage): New function. Overload.
  11795. (createInterestedMessage): New function. Overload.
  11796. (createNotInterestedMessage): New function. Overload.
  11797. (createHaveMessage): New function. Overload.
  11798. (createBitfieldMessage): New function. Overload.
  11799. (createRequestMessage): New function. Overload.
  11800. (createCancelMessage): New function. Overload.
  11801. (createPieceMessage): New function. Overload.
  11802. (createKeepAliveMessage): New function. Overload.
  11803. * src/PeerMessageUtil.cc
  11804. (createChokeMessage): New function. Overload.
  11805. (createUnchokeMessage): New function. Overload.
  11806. (createInterestedMessage): New function. Overload.
  11807. (createNotInterestedMessage): New function. Overload.
  11808. (createHaveMessage): New function. Overload.
  11809. (createBitfieldMessage): New function. Overload.
  11810. (createRequestMessage): New function. Overload.
  11811. (createCancelMessage): New function. Overload.
  11812. (createPieceMessage): New function. Overload.
  11813. (createKeepAliveMessage): New function. Overload.
  11814. * src/SendMessageQueue.cc
  11815. (createRequestMessage): Use PeerMessageUtil.
  11816. (createCancelMessage): Use PeerMessageUtil.
  11817. (createPieceMessage): Use PeerMessageUtil.
  11818. (createHaveMessage): Use PeerMessageUtil.
  11819. (createChokeMessage): Use PeerMessageUtil.
  11820. (createUnchokeMessage): Use PeerMessageUtil.
  11821. (createInterestedMessage): Use PeerMessageUtil.
  11822. (createNotInterestedMessage): Use PeerMessageUtil.
  11823. (createBitfieldMessage): Use PeerMessageUtil.
  11824. (createKeepAliveMessage): Use PeerMessageUtil.
  11825. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  11826. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  11827. * src/PeerInteraction.h: New class.
  11828. * src/PeerInteraction.cc: New class.
  11829. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11830. Each peer message has its own class.
  11831. * src/PendingMessages.h: Removed.
  11832. * src/PendingMessages.cc: Removed. The sending process was moved to
  11833. each message class.
  11834. * src/RequestSlotMan.h: Removed.
  11835. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  11836. SendMessageQueue.
  11837. * src/RequestMessage.h: New class.
  11838. * src/RequestMessage.cc: New class.
  11839. * src/CancelMessage.h: New class.
  11840. * src/CancelMessage.cc: New class.
  11841. * src/BitfieldMessage.h: New class.
  11842. * src/BitfieldMessage.cc: New class.
  11843. * src/ChokeMessage.h: New class.
  11844. * src/ChokeMessage.cc: New class.
  11845. * src/KeepAliveMessage.h: New class.
  11846. * src/KeepAliveMessage.cc: New class.
  11847. * src/PortMessage.h: New class.
  11848. * src/UnchokeMessage.h: New class.
  11849. * src/UnchokeMessage.cc: New class.
  11850. * src/PieceMessage.h: New class.
  11851. * src/PieceMessage.cc: New class.
  11852. * src/HaveMessage.h: New class.
  11853. * src/HaveMessage.cc: New class.
  11854. * src/BitfieldMessage.h: New class.
  11855. * src/BitfieldMessage.cc: New class.
  11856. * src/NotInterestedMessage.h: New class.
  11857. * src/NotInterestedMessage.cc: New class.
  11858. * src/InterestedMessage.h: New class.
  11859. * src/InterestedMessage.cc: New class.
  11860. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  11861. (getSendMessageQueue): New function.
  11862. (setSendMessageQueue): New function.
  11863. * src/HandshakeMessage.cc: New class.
  11864. * src/PeerConnection.h (receiveMessage): Changed return value and
  11865. arguments.
  11866. (receiveHandshake): Changed return value and arguments.
  11867. * src/PeerConnection.cc (receiveMessage): Do not create message class
  11868. here.
  11869. (receiveHandshake): Do not create handshake class here.
  11870. * src/PeerInteractionCommand.h (peerConnection): Removed.
  11871. (piece): Removed.
  11872. (syncPiece): Removed.
  11873. (sendInterest): Removed.
  11874. (sendMessages): Removed.
  11875. (createRequestPendingMessage): Removed.
  11876. (checkPieceHash): Removed.
  11877. (erasePieceOnDisk): Removed.
  11878. (getNewPieceAndSendInterest): Removed.
  11879. (onGotNewPice): Removed.
  11880. (onGotWrongPiece): Removed.
  11881. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11882. Removed peerConnection, piece.
  11883. (~PeerInteractionCommand): Removed peerConnection.
  11884. (executeInternal): Use sendMessageQueue instead of peerConnection.
  11885. (syncPiece): Moved to SendMessageQueue.
  11886. (decideChoking): Removed PendingMessage.
  11887. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  11888. The action after receiving peer message was moved to each message
  11889. class.
  11890. (onGotNewPice): Moved to SendMessageQueue.
  11891. (onGotWrongPiece): Moved to SendMessageQueue.
  11892. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  11893. (sendInterest): Moved to SendMessageQueue.
  11894. (createRequestPendingMessage): Removed.
  11895. (sendMessages): Moved to SendMessageQueue.
  11896. (onAbort): Use SendMessageQueue::abortPiece()
  11897. (keepAlive): Use sendMessageQueue instead of peerConnection.
  11898. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  11899. (checkPieceHash): Moved to SendMessageQueue.
  11900. (erasePieceOnDisk): Moved to SendMessageQueue.
  11901. * src/PeerMessageUtil.h
  11902. (createBitfieldMessage): Removed.
  11903. (createHaveMessage): Changed return value and arguments.
  11904. (createBitfieldMessage): Changed return value and arguments.
  11905. (createRequestCancelMessage): Removed.
  11906. (createPieceMessage): Changed return value and arguments.
  11907. (getShortIntParam): New function.
  11908. (checkIndex): Changed arguments.
  11909. (checkBegin): Changed arguments.
  11910. (checkLength): Changed arguments.
  11911. (checkPieceOffset): Removed.
  11912. (checkRange): New function.
  11913. (checkBitfield): Changed arguments.
  11914. (createPeerMessage): Removed.
  11915. (checkIntegrity): Removed.
  11916. (createHandshakeMessage): Changed arguments.
  11917. (createChokeMessage): New function.
  11918. (createUnchokeMessage): New function.
  11919. (createInterestedMessage): New function.
  11920. (createNotInterestedMessage): New function.
  11921. (createRequestMessage): New function.
  11922. (createCancelMessage): New function.
  11923. (createPortMessage): New function.
  11924. * src/PeerMessageUtil.cc
  11925. (createBitfieldMessage): Removed.
  11926. (createHaveMessage): Changed return value and arguments.
  11927. (createBitfieldMessage): Changed return value and arguments.
  11928. (createRequestCancelMessage): Removed.
  11929. (createPieceMessage): Changed return value and arguments.
  11930. (getShortIntParam): New function.
  11931. (checkIndex): Changed arguments.
  11932. (checkBegin): Changed arguments.
  11933. (checkLength): Changed arguments.
  11934. (checkPieceOffset): Removed.
  11935. (checkRange): New function.
  11936. (checkBitfield): Changed arguments.
  11937. (createPeerMessage): Removed.
  11938. (checkIntegrity): Removed.
  11939. (createHandshakeMessage): Changed arguments.
  11940. (createChokeMessage): New function.
  11941. (createUnchokeMessage): New function.
  11942. (createInterestedMessage): New function.
  11943. (createNotInterestedMessage): New function.
  11944. (createRequestMessage): New function.
  11945. (createCancelMessage): New function.
  11946. (createPortMessage): New function.
  11947. * src/PeerMessage.h
  11948. (id): Removed.
  11949. (index): Removed.
  11950. (begin): Removed.
  11951. (length): Removed.
  11952. (bitfield): Removed.
  11953. (bitfieldLength): Removed.
  11954. (block): Removed.
  11955. (blockLength): Removed.
  11956. (inProgress): New variable.
  11957. (cuid): New variable.
  11958. (peer): New variable.
  11959. (sendMessageQueue): New variable.
  11960. (logger): New variable.
  11961. (setBitfield): Removed.
  11962. (getBitfield): Removed.
  11963. (setBlock): Removed.
  11964. (getBlock): Removed.
  11965. (getBitfieldLength): Removed.
  11966. (getBlockLength): Removed.
  11967. (isInProgress): New function.
  11968. (toString): Made pure virtual.
  11969. (check): New function.
  11970. (send): New function.
  11971. (receivedAction): New function.
  11972. (getId): Made pure virtual.
  11973. (setId): Removed.
  11974. (getIndex): Removed.
  11975. (setIndex): Removed.
  11976. (getBegin): Removed.
  11977. (setBegin): Removed.
  11978. (getLength): Removed.
  11979. (setLength): Removed.
  11980. (getCuid): New function.
  11981. (setCuid): New function.
  11982. (getPeer): New function.
  11983. (setPeer): New function.
  11984. (getSendMessageQueue): New function.
  11985. (setSendMessageQueue): New function.
  11986. (ID): Removed.
  11987. * src/PeerMessage.cc
  11988. (setBitfield): Removed.
  11989. (setBlock): Removed.
  11990. (toString): Removed.
  11991. * src/TorrentMan.h
  11992. (getPieceLength): New function.
  11993. (getPieceLength): New function.
  11994. * src/SendMessageQueue.h
  11995. (REQUEST_TIME_OUT): New definition.
  11996. (RequestSlots): New definition.
  11997. (MessageQueue): New definition.
  11998. (requestSlotMan): Removed.
  11999. (pendingMessages): Removed.
  12000. (requestSlots): New variable.
  12001. (messageQueue): New variable.
  12002. (torrentMan): New variable.
  12003. (peerConnection): New variable.
  12004. (peer): New variable.
  12005. (piece): New variable.
  12006. (getNewPieceAndSendInterest): New function.
  12007. (createPeerMessage): New function.
  12008. (createHandshakeMessage): New function.
  12009. (send): Made private.
  12010. (setPeerMessageCommonProperty): New function.
  12011. (deleteAllRequestSlot): New function.
  12012. (deleteRequestMessageInQueue): New function.
  12013. (cancelAllRequest): Made private.
  12014. (cancelAllRequest): Made private.
  12015. (countRequestSlot): Made private.
  12016. (addPendingMessage): Removed.
  12017. (deletePendingPieceMessage): Removed.
  12018. (deletePendingRequestMessage): Removed.
  12019. (addMessage): New function.
  12020. (deletePieceMessageInQueue): New function.
  12021. (deleteTimeoutRequestSlot): Changed argument.
  12022. (deleteCompletedRequestSlot): Changed argument.
  12023. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12024. (getCorrespondingRequestSlot): New function.
  12025. (countPendingMessage): Removed.
  12026. (countMessageInQueue): New function.
  12027. (getTorrentMan): New function.
  12028. (getPeerConnection): New function.
  12029. (hasDownloadPiece): New function.
  12030. (getDownloadPiece): New function.
  12031. (setDownloadPiece): New function.
  12032. (syncPiece): New function.
  12033. (sendMessages): New function.
  12034. (sendNow): New function.
  12035. (trySendNow): New function.
  12036. (abortPiece): New function.
  12037. (sendHandshake): New function.
  12038. (receiveMessage): New function.
  12039. (receiveHandshake): New function.
  12040. (createRequestMessage): New function.
  12041. (createCancelMessage): New function.
  12042. (createPieceMessage): New function.
  12043. (createHaveMessage): New function.
  12044. (createChokeMessage): New function.
  12045. (createUnchokeMessage): New function.
  12046. (createInterestedMessage): New function.
  12047. (createNotInterestedMessage): New function.
  12048. (createBitfieldMessage): New function.
  12049. (createKeepAliveMessage): New function.
  12050. * src/SendMessageQueue.cc
  12051. (SendMessageQueue): Removed requestSlotMan.
  12052. Instantiated peerConnection here.
  12053. (~SendMessageQueue): Removed requestSlotMan.
  12054. Added deletion of peerConnection and the contents of messageQueue.
  12055. (send): Updated according to the change of messageQueue.
  12056. (addPendingMessage): Renamed to addMessage.
  12057. (addMessage): New function.
  12058. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12059. (deletePieceMessageInQueue): New function.
  12060. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12061. (deleteRequestMessageInQueue): New function.
  12062. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12063. here.
  12064. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12065. (...) was moved here.
  12066. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12067. moved here.
  12068. (deleteCompletedRequestSlot):
  12069. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12070. (getCorrespondingRequestSlot):
  12071. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12072. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12073. (countPendingMessage): Renamed to countMessageInQueue.
  12074. (countMessageInQueue): New function.
  12075. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12076. (receiveHandshake): New function.
  12077. (createHandshakeMessage): New function.
  12078. (receiveMessage): New function.
  12079. (createPeerMessage): New function.
  12080. (syncPiece): New function.
  12081. (getNewPieceAndSendInterest): New function.
  12082. (sendMessages): New function.
  12083. (sendNow): New function.
  12084. (trySendNow): New function.
  12085. (sendHandshake): New function.
  12086. (abortPiece): New function.
  12087. (getDownloadPiece): New function.
  12088. (getPeerMessageCommonProperty): New function.
  12089. (createRequestMessage): New function.
  12090. (createCancelMessage): New function.
  12091. (createPieceMessage): New function.
  12092. (createHaveMessage): New function.
  12093. (createChokeMessage): New function.
  12094. (createUnchokeMessage): New function.
  12095. (createInterestedMessage): New function.
  12096. (createNotInterestedMessage): New function.
  12097. (createBitfieldMessage): New function.
  12098. (createKeepAliveMessage): New function.
  12099. To add simple Content-Disposition support:
  12100. * src/HttpResponseCommand.h (determinFilename): New function.
  12101. * src/HttpResponseCommand.cc (executeInternal):
  12102. Use determinFilename(headers) instead of req->getFile() when comparing
  12103. filename.
  12104. (determinFilename): New function.
  12105. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12106. req->getFile().
  12107. (handleOtherEncoding): Use determinFilename(headers) instead of
  12108. req->getFile().
  12109. * src/Util.h (getContentDispositionFilename): New function.
  12110. * src/Util.cc (getContentDispositionFilename): New function.
  12111. * src/LogFactory.h (release): New function.
  12112. * src/LogFactory.cc (release): New function.
  12113. To fix a bug that causes out-of-bound exception when HTTP status
  12114. line is wrong:
  12115. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12116. size.
  12117. * src/common.h (Deleter): New class.
  12118. * src/SegmentMan.cc
  12119. (~SegmentMan): Added deletion of splitter and diskWriter.
  12120. * src/DownloadEngine.h
  12121. (Commands): Use deque.
  12122. (clearQueue): New function.
  12123. * src/DownloadEngine.cc
  12124. (~DownloadEngine): Added deletion of segmentMan.
  12125. (cleanQueue): New function.
  12126. * src/TorrentDownloadEngine.h
  12127. (TorrentDownloadEngine): The implementation was moved to
  12128. TorrentDownloadEngine.cc.
  12129. (~TorrentDownloadEngine): The implementation was moved to
  12130. TorrentDownloadEngine.cc.
  12131. * src/TorrentDownloadEngine.cc
  12132. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12133. * src/main.cc
  12134. (clearRequest): Removed.
  12135. (handler): Added deletion of e.
  12136. (torrentHandler): Added deletion of te.
  12137. (main): Do not share splitter.
  12138. Use Deleter instead of clearRequest.
  12139. Deletion of classes were updated.
  12140. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12141. * src/main.cc (main): Fixed typo.
  12142. * src/message.h: Fixed typo.
  12143. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12144. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12145. To add --select-file command-line option:
  12146. * src/Util.cc
  12147. (unfoldRange): New function.
  12148. (getNum): New function.
  12149. (unfoldSubRange): New function
  12150. * src/main.cc
  12151. (showUsage): Added help message.
  12152. (main): Added --select-file command-line option. Updated the layout of
  12153. file listing.
  12154. * src/common.h
  12155. (Integers): New definition.
  12156. * src/SocketCore.cc
  12157. (writeData): Removed timeout argument.
  12158. (readData): Removed timeout argument.
  12159. (peekData): Removed timeout argument.
  12160. * src/Socket.cc
  12161. (writeData): Removed timeout argument.
  12162. (readData): Removed timeout argument.
  12163. (peekData): Removed timeout argument.
  12164. * Release 0.4.1
  12165. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12166. To deploy upload rate based choking algorithm:
  12167. * src/PeerInteractionCommand.cc
  12168. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12169. peer currently used.
  12170. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12171. download completes. Simplified.
  12172. (receiveMessage): Updated.
  12173. * src/TorrentMan.h
  12174. (activePeers): New variable.
  12175. (addActivePeer): New function.
  12176. (getActivePeers): New function.
  12177. (deleteActivePeer): New function.
  12178. * src/TorrentMan.cc
  12179. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12180. * src/PeerAbstractCommand.cc
  12181. (onAbort): Use peer->resetStatus().
  12182. * src/main.cc
  12183. (PeerChokeCommand.h): Included.
  12184. (main): Added the instance of ChokingCommand to the command queue.
  12185. * src/Peer.h
  12186. (amChoking): Renamed from amChocking
  12187. (chokingRequired): New variable.
  12188. (optUnchoking): New variable.
  12189. (deltaUpload): New variable.
  12190. (deltaDownload): New variable.
  12191. (addDeltaUpload): New function.
  12192. (resetDeltaUpload): New function.
  12193. (addDeltaDownload): New function.
  12194. (resetDeltaDownload): New function.
  12195. (addPeerUpload): Added a call to addDeltaUpload.
  12196. (addPeerDownload): Added a call to addDeltaDownload.
  12197. * src/Peer.cc
  12198. (shouldBeChoking): Renamed from shouldChoke.
  12199. (resetStatus): New function.
  12200. * src/PeerChokeCommand.h: New class.
  12201. * src/PeerChokeCommand.cc: New class.
  12202. To add lazy upload speed limiter:
  12203. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  12204. statistics calculation to TorrentDownloadEngine.
  12205. * src/TorrentConsoleDownloadEngine.cc
  12206. (sendStatistics): Renamed from printStatistics.
  12207. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  12208. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  12209. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  12210. * src/TorrentDownloadEngine.h: Added the variables for statistics
  12211. calculation.
  12212. (sendStatistics): New function as pure virtual function.
  12213. (getUploadSpeed): New function.
  12214. * src/TorrentDownloadEngine.cc
  12215. (initStatistics): New function.
  12216. (calculateSpeed): New function.
  12217. (calculateStatistics): New function.
  12218. * src/SendMessageQueue.h
  12219. (uploadLength): New variable.
  12220. (send): Added an argument.
  12221. (setUploadLimit): New function.
  12222. (getUploadLimit): New function.
  12223. * src/SendMessageQueue.cc
  12224. (send): Added upload speed limiter.
  12225. * src/prefs.h
  12226. (PREF_UPLOAD_LIMIT): New definition.
  12227. * src/PeerInteractionCommand.cc
  12228. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  12229. * src/main.cc
  12230. (main): Added --upload-limit option
  12231. For bug fixes:
  12232. * src/main.cc
  12233. (showUsage): Corrected --listen-port help
  12234. Other changes:
  12235. * src/TorrentMan.cc
  12236. (getPeer): Return nullPeer if connection is grather than
  12237. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  12238. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12239. To add some useful information to the exception message:
  12240. * src/SocketCore.cc : Updated messages.
  12241. * src/SegmentMan.cc :
  12242. * src/TorrentMan.cc : Updated messages.
  12243. * src/MultiDiskWriter.cc : Updated messages.
  12244. * src/Util.cc : Updated messages.
  12245. * src/AbstractDiskWriter.cc : Updated messages.
  12246. * src/PreAllocationDiskWriter.cc : Updated messages.
  12247. * src/message.cc : Added new messages. Updated some messages.
  12248. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12249. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12250. Updated threshold from 30 to 15.
  12251. * src/AbstractDiskWriter.h (filename): New variable.
  12252. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12253. (createFile): Assigned filename.
  12254. * src/main.cc: Updated the help message for http-auth-scheme.
  12255. * Release 0.4.0
  12256. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12257. To add TrackerUpdateCommand with which replaces
  12258. CompactTrackerResponseProcessor:
  12259. * src/TrackerWatcherCommand.h (req): Removed.
  12260. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12261. if the number of peer connections are less than 30.
  12262. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12263. * src/SegmentMan.h (diskWriter): New function.
  12264. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12265. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12266. (main): Use TrackerUpdateCommand.
  12267. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12268. (req): New variable.
  12269. (setTrackerResponseProcessor): Removed.
  12270. (getTrackerResponseProcessor): Removed.
  12271. (processTrackerResponse): Removed.
  12272. * src/DownloadEngine.h (diskWriter): Removed.
  12273. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12274. to torrentMan->processTrackerResponse().
  12275. To add Util::expandBuffer:
  12276. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12277. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12278. * src/Util.h (expandBuffer): New function.
  12279. To fix the bug that causes segmentation fault when "-l ." is specified
  12280. in command-line option:
  12281. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  12282. (openFile): New function.
  12283. (closeFile): New function.
  12284. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  12285. (~SimpleLogger): Call closeFile();
  12286. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  12287. * src/main.cc (main): Added a check to see logger is configured
  12288. properly.
  12289. To enable HTTP authentication without specifying "--http-auth-scheme"
  12290. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  12291. * src/HttpConnection.cc (createRequest): Send Authorization header
  12292. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  12293. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  12294. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  12295. * src/Peer.cc (shouldChoke): Updated algorithm.
  12296. * src/message.h (EX_AUTH_FAILED): New definition.
  12297. (EX_FILE_OPEN): New definition.
  12298. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  12299. if status == 401.
  12300. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  12301. if req->isTorrent == true.
  12302. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  12303. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  12304. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  12305. (createFile): Updated message.
  12306. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12307. To add a readout of estimated remaining time to normal HTTP/FTP
  12308. downloads:
  12309. * src/ConsoleDownloadEngine.h (startup): New variable.
  12310. (startupLength): New variable.
  12311. (isStartupLengthSet): New variable.
  12312. (avgSpeed): New variable.
  12313. (eta): New variable.
  12314. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12315. estimated remaining time.
  12316. (initStatistics): Initialized newly added variables.
  12317. (calculateStatistics): Calculate average speed and estimated remaining
  12318. time.
  12319. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12320. * src/TrackerDownloadCommand.h: Removed.
  12321. * src/TrackerDownloadCommand.cc: Removed.
  12322. * src/TrackerInitCommand.h: Removed.
  12323. * src/TrackerInitCommand.cc: Removed.
  12324. * src/TrackerUpdateCommand.h: Removed.
  12325. * src/TrackerUpdateCommand.cc: Removed.
  12326. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12327. url written in TrackerInitCommand was moved here. Do not create
  12328. tracker request command if torrentMan->trackers != 0.
  12329. * src/CompactTrackerResponseProcessor.h: New class.
  12330. * src/CompactTrackerResponseProcessor.cc: New class.
  12331. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12332. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12333. Decoupled TorrentDownloadEngine from this.
  12334. * src/SegmentMan.h (init): New function.
  12335. * src/SegmentMan.cc (init): New function.
  12336. * src/TorrentMan.h (responseProcessor): New variable.
  12337. (trackers): New variable.
  12338. (setTrackerResponseProcessor): New function.
  12339. (getTrackerResponseProcessor): New function.
  12340. (processTrackerResponse): New function.
  12341. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12342. (processTrackerResponse): New function.
  12343. * src/main.cc (main): Use ByteArrayDiskWriter and
  12344. CompactTrackerResponseProcessor.
  12345. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12346. processTrackerResponse().
  12347. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12348. readout.
  12349. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12350. which indicates download has completed.
  12351. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12352. (closeFile): fd >= 0, not fd > 0
  12353. * src/main.cc (main): Added short cut for show-files.
  12354. Added short cut for torrent-file.
  12355. Added new command-line option listen-port.
  12356. Updated i18n messages.
  12357. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12358. To add LogFactory which creates singleton logger:
  12359. * src/LogFactory.h: New class.
  12360. * src/LogFactory.cc: New class.
  12361. * src/Command.h (logger): New variable.
  12362. (Constructor): Use LogFactory.
  12363. * src/AbstractCommand.cc: Use Command::logger
  12364. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12365. Use LogFactory.
  12366. * src/SegmentSplitter.h : Made logger protected.
  12367. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12368. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12369. * src/DownloadEngine.h : Made logger protected.
  12370. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12371. * src/PeerInteractionCommand.cc : Use Command::logger.
  12372. * src/HttpResponseCommand.cc : Use Command::logger.
  12373. * src/SegmentMan.h : Made logger private.
  12374. * src/TorrentMan.h : Made logger private.
  12375. * src/TorrentMan.cc : Use LogFactory.
  12376. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12377. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12378. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12379. Use LogFactory.
  12380. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12381. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12382. Use LogFactory.
  12383. * src/DownloadCommand.cc : Use Command::logger.
  12384. * src/PeerAbstractCommand.cc : Use Command::logger.
  12385. * src/PeerListenCommand.cc : Use Command::logger.
  12386. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12387. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12388. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12389. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12390. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12391. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12392. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12393. Use LogFactory.
  12394. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12395. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12396. Use LogFactory.
  12397. * src/main.cc (main): Use LogFactory.
  12398. * src/DiskAdaptor.h (logger): New variable.
  12399. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12400. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12401. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12402. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12403. parameter to a tracker request.
  12404. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12405. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12406. * src/main.cc (setSignalHander): New function.
  12407. (main): Added a handler for SIGTERM.
  12408. (handler): Updated message.
  12409. (torrentHandler): Updated message.
  12410. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12411. * src/TorrentConsoleDownloadEngine.cc
  12412. (onPartialDownloadingCompletes): Renamed as
  12413. onSelectiveDownloadingCompletes.
  12414. (onSelectiveDownloadingCompletes): Updated message.
  12415. To add DiskAdaptor which abstract DiskWriter family:
  12416. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  12417. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  12418. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  12419. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  12420. MultiDiskAdaptor.h.
  12421. (readFileEntry): Changed its arguments.
  12422. (setup): setupDiskWriter is merged into this function.
  12423. (setupDiskWriter): Removed.
  12424. (setFileFilter): New function.
  12425. (readFileEntryFromMetaInfoFile): Updated according to the changes
  12426. made in readFileEntry.
  12427. (getFilePath): Removed.
  12428. (getTempFilePath): Removed.
  12429. (getSegmentFilePath): Updated due to the removal of getFilePath.
  12430. (fixFilename): Removed.
  12431. (copySingleFile): Removed.
  12432. (splitMultiFile): Removed.
  12433. (deleteTempFile): Removed.
  12434. (setFileEntriesToDownload): Removed.
  12435. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  12436. (isSelectiveDownloadingMode): New function.
  12437. (setAllMultiFileRequestedState): Removed.
  12438. (finishPartialDownloadingMode): Renamed as
  12439. finishSelectiveDownloadingMode.
  12440. (finishSelectiveDownloadingMode): New function.
  12441. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  12442. (getSelectedTotalLength): New function.
  12443. (onDownloadComplete): Use diskAdaptor.
  12444. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  12445. (Range): Removed.
  12446. (setMultiFileEntries): Renamed as setFileEntries.
  12447. (setFileEntries): New function.
  12448. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  12449. (pieceLength): New variable.
  12450. * src/main.cc (printDownloadCompeleteMessage): New function.
  12451. (torrentHandler): Use diskAdaptor instead of diskWriter.
  12452. (main): Renamed torrent-show-files to show-files.
  12453. Rewritten file contents listing.
  12454. * src/TorrentMan.h (FileEntry): Removed.
  12455. (multiFileTopDir): Removed.
  12456. (multiFileEntries): Removed.
  12457. (diskWriter): Removed.
  12458. (diskAdaptor): New variable.
  12459. * src/DefaultDiskWriter.h (totalLength): New variable.
  12460. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  12461. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  12462. diskWriter.
  12463. * src/TorrentConsoleDownloadEngine.h
  12464. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  12465. (partialTotalLength): Renamed as selectedTotalLength.
  12466. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  12467. openExistingFile, otherwise call initAndOpenFile.
  12468. (closeFile): fd > 0, not fd != 0.
  12469. * src/DirectDiskAdaptor.h: New class.
  12470. * src/DirectDiskAdaptor.cc: New class.
  12471. * src/MultiDiskAdaptor.h: New class.
  12472. * src/MultiDiskAdaptor.cc: New class.
  12473. * src/CopyDiskAdaptor.h: New class.
  12474. * src/CopyDiskAdaptor.cc: New class.
  12475. * src/DiskAdaptor.h: New class.
  12476. * src/DiskAdaptor.cc: New class.
  12477. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  12478. (PREF_SHOW_FILES): New definition.
  12479. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12480. To add the ability to download multi torrent into respective files
  12481. directly:
  12482. * src/DiskWriter.h (openFile): New function.
  12483. (seek): Removed.
  12484. * src/MultiDiskWriter.h: New class.
  12485. * src/MultiDiskWriter.cc: New class.
  12486. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  12487. protected.
  12488. (openFile): New function.
  12489. * src/AbstractDiskWriter.cc (openFile): New function.
  12490. * src/prefs.h (V_FALSE): New definition.
  12491. (PREF_DIRECT_FILE_MAPPING): New definition.
  12492. * src/TorrentMan.h (setupDiskWriter): New function.
  12493. (setAllMultiFileRequestedState): New function.
  12494. (onDownloadComplete): New function.
  12495. * src/TorrentMan.cc : Included MultiDiskWriter.h
  12496. (setupDiskWriter): New function.
  12497. (getFilePath): Updated.
  12498. (getTempFilePath): Updated.
  12499. (getSegmentFilePath): Updated.
  12500. (fixFilename): Updated.
  12501. (deleteTempFile): Updated.
  12502. (setAllMultiFileRequestedState): New function.
  12503. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  12504. (finishPartialDownloadingMode): Reset requested flags.
  12505. (onDownloadComplete): New function.
  12506. * src/main.cc: Added --direct-file-mapping option.
  12507. Use TorrentMan::setupDiskWriter().
  12508. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  12509. onDownloadComplete().
  12510. To fix ETA bug:
  12511. * src/Util.h (difftvsec): New function.
  12512. * src/Util.cc (difftvsec): New function.
  12513. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  12514. type of "elapsed" instead of long long int.
  12515. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  12516. The updates of statistics takes place every 1 seconds.
  12517. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  12518. (calculateSpeed): Changed its argument signature.
  12519. * src/PeerMessage.cc (toString): Fixed message.
  12520. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12521. To print ETA:
  12522. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  12523. completion handling when dealing with
  12524. TorrentMan::isPartialDownloadingMode() == true.
  12525. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  12526. New function.
  12527. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  12528. (sessionDownloadLength): New variable.
  12529. (avgSpeed): New variable.
  12530. (eta): New variable.
  12531. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  12532. new variables: eta, avgSpeed, startup.
  12533. (calculateSpeed): Calculate average speed and ETA.
  12534. (printStatistics): Added ETA.
  12535. * src/Util.h (secfmt): New function.
  12536. * src/Util.cc (secfmt): New function.
  12537. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12538. To detect "keep alive" flooding:
  12539. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  12540. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  12541. variable: keepAliveCount.
  12542. (detectMessageFlooding): Added "keep alive" flooding detection.
  12543. (receiveMessage): Increase keepAliveCount when "keep alive" message
  12544. received.
  12545. To add the ability to download only specified files in multi-file
  12546. torrent:
  12547. * src/BitfieldMan.h (filterBitfield): New variable.
  12548. (filterEnabled): New variable.
  12549. (setFilterBit): New function.
  12550. (enableFilter): New function.
  12551. (disableFilter): New function.
  12552. (isFilterEnabled): New function.
  12553. (getFilteredTotalLength): New function.
  12554. (getCompletedLength): New function.
  12555. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  12556. filterBitfield, filterEnabled.
  12557. (CopyConstructor): Added filterBitfield and filterEnabled.
  12558. (operator==): Added filterBitfield and filterEnabled.
  12559. (Destructor): Added filterBitfield.
  12560. (getMissingIndex): Use filterBitfield.
  12561. (getMissingUnusedIndex): Use filterBitfield.
  12562. (getFirstMissingUnusedIndex): Use filterBitfield.
  12563. (getFirstMissingUnusedIndex): Use filterBitfield.
  12564. (getAllMissingIndexes): Use filterBitfield.
  12565. (countMissingBlock): Use filterBitfield.
  12566. (countBlock): Use filterBitfield.
  12567. (setBitInternal): Added new argument on.
  12568. (setUseBit): Use setBitInternal.
  12569. (unsetUseBit): Use setBitInternal.
  12570. (setBit): Use setBitInternal.
  12571. (unsetBit): Use setBitInternal.
  12572. (isAllBitSet): Use filterBitfield.
  12573. (setFilterBit): New function.
  12574. (addFilter): New function.
  12575. (enableFilter): New function.
  12576. (disableFilter): New function.
  12577. (clearFilter): New function.
  12578. (isFilterEnabled): New function.
  12579. (getFilteredTotalLength): New function.
  12580. (getCompletedLength): New function.
  12581. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  12582. Initalized newly added variables.
  12583. [FileEntry](offset): New variable.
  12584. [FileEntry](extracted): New variable.
  12585. [FileEntry](requested): New variable.
  12586. (readFileEntry): New function.
  12587. (option): New variable.
  12588. (splitMultiFile): Removed const qualifier.
  12589. (fixFilename): Removed const qualifier.
  12590. (readFileEntryFromMetaInfoFile): New function.
  12591. (finishPartialDownloadingMode): New function.
  12592. (isPartialDownloadingMode): New function.
  12593. (setFileEntriesToDownload): New function.
  12594. (getCompletedLength): New function.
  12595. (getPartialTotalLength): New function.
  12596. * src/TorrentMan.cc (readFileEntry): New function.
  12597. (setup): Use readFileEntry. If no-preallocation option is specified,
  12598. use DefaultDiskWriter.
  12599. (readFileEntryFromMetaInfoFile): New function.
  12600. (fixFilename): Removed const qualifier.
  12601. (splitMultiFile): Removed const qualifier.
  12602. (setFileEntriesToDownload): New function.
  12603. (isPartialDownloadingMode): New function.
  12604. (finishPartialDownloadingMode): New function.
  12605. (getCompletedLength): New function.
  12606. (getPartialTotalLength): New function.
  12607. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  12608. New variable.
  12609. (partialTotalLength): New variable.
  12610. (downloadLength): New variable.
  12611. (totalLength): New variable.
  12612. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  12613. Added log.
  12614. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  12615. partialTotalLength, downloadLength, totalLength.
  12616. (calculate): Calculate downloadLength and totalLength.
  12617. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  12618. * src/main.cc (addCommand): Changed argument signature.
  12619. (main): Added new variable: args. Added new option "torrent-show-files"
  12620. "no-preallocation". Usage is not updated yet.
  12621. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12622. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  12623. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12624. Attempt to add the ability to listing file entries in a .torrent file.
  12625. This feature is not yet complete.
  12626. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  12627. * src/TorrentMan.cc (getMultiFileEntries): New function.
  12628. (getName): New function.
  12629. * src/TorrentMan.h (getMultiFileEntries): New function.
  12630. (getName): New function.
  12631. * src/main.cc (main): Use above 2 funtion.
  12632. * Release 0.3.2
  12633. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12634. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  12635. (detectMessageFlooding): Updated threshold value.
  12636. (checkLongTimePeerChoking): Updated timeout value.
  12637. (getNewPieceAndSendInterest): Added debug log.
  12638. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  12639. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  12640. (getPeer): Updated.
  12641. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  12642. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  12643. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  12644. is localhost.
  12645. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  12646. * src/PendingMessage.cc (processMessage): Not to send piece message
  12647. if peer is not interested in the pieces localhost has.
  12648. * src/Peer.cc (shouldChoke): Updated.
  12649. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  12650. * src/Util.cc (isPowerOf): New function.
  12651. * src/Util.h (isPowerOf): New function.
  12652. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  12653. whether or not it is power of 2.
  12654. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12655. Added new class SendMessageQueue that includes PendingMessages and
  12656. RequestSlotMan.
  12657. * src/SendMessageQueue.h: New class.
  12658. * src/SendMessageQueue.cc: New class.
  12659. * src/PendingMessage.h: Added new member variable blockIndex and its
  12660. accessors.
  12661. (createRequestMessage): Updated.
  12662. * src/PendingMessage.cc (createRequestMessage): Updated.
  12663. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  12664. SendMessageQueue.
  12665. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  12666. (receiveMessage): Updated with SendMessageQueue.
  12667. (deletePendingPieceMessage): Removed.
  12668. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  12669. (sendInterest): Updated with SendMessageQueue.
  12670. (createRequestPendingMessage): Updated with SendMessageQueue.
  12671. (sendMessages): Updated with SendMessageQueue.
  12672. (onAbort): Updated with SendMessageQueue.
  12673. (keepAlive): Updated with SendMessageQueue.
  12674. (beforeSocketCheck): Updated SendMessageQueue.
  12675. * src/PeerInteractionCommand (sendMessages): Shuffle
  12676. missingBLockIndexes before using it.
  12677. Added its own timeout for peer connection.
  12678. * src/PeerAbstractCommand.h: Added member variable timeout and its
  12679. setter.
  12680. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  12681. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12682. Added setTimeout() call.
  12683. (executeInternal): Added setTimeout() call.
  12684. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  12685. Added timeout.
  12686. (isTimeoutDetected): Updated.
  12687. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  12688. option.
  12689. Added *simple* message flooding checker.
  12690. * src/PeerInteractionCommand.cc (executeInternal):
  12691. Added detectMessageFlooding() call.
  12692. (detectMessageFlooding): New function.
  12693. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  12694. (beforeSocketCheck): Added detectMessageFlooding() call.
  12695. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  12696. chokeUnchokeCount, haveCount, detectMessageFlooding().
  12697. Removed deletePendingPieceMessage(), getRequestSlot(),
  12698. deleteRequestSlot(), deleteAllRequestSlot().
  12699. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  12700. Added checkLongTimePeerChoking() call.
  12701. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  12702. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  12703. if duplicate == false.
  12704. The parameter "uploaded" and "downloaded" in the tracker request are
  12705. the size since the client sent the "started" event to the tracker.
  12706. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  12707. uploaded size to preDownloadedSize, preUploadedSize respectively.
  12708. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  12709. getSessionDownloadedSize(), getSessionUploadedSize().
  12710. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  12711. getSessionUploadedSize() instead of getDownloadedSize(),
  12712. getUploadedSize().
  12713. * src/PendingMessage.cc (processMessage): Do not send request message
  12714. if the peer is choking the client.
  12715. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  12716. less than interval.
  12717. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12718. * configure.in: Added gnutls support. Added several CPP macros.
  12719. * m4/openssl.m4: Added.
  12720. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  12721. readData(), peekData(). Added gnutls support.
  12722. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  12723. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  12724. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  12725. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  12726. Instead, added a check for whether setup method has executed
  12727. successfully.
  12728. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  12729. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  12730. * src/Makefile.am: Updated.
  12731. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  12732. using whether OpenSSL or gcrypt, depending on the result of configure
  12733. script.
  12734. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  12735. messageDigest.h.
  12736. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  12737. * src/PeerListenCommand.cc: Added log about port binded successfully.
  12738. Fixed memory leak.
  12739. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  12740. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  12741. Removed instantiation of TrackerInitCommand. Instead,
  12742. TrackerWatcherCommand is instantiated and pushed to the command queue.
  12743. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  12744. ENABLE_SSL.
  12745. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  12746. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  12747. If a piece is already acquired by another command, delete the request
  12748. slots for the piece.
  12749. * src/TrackerUpdateCommand.cc (execute):
  12750. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  12751. Added a check whether peer list is null.
  12752. Fixed the bug that causes sending completed event to the tracker
  12753. several times.
  12754. * src/TrackerInitCommand.cc (execute):
  12755. Fixed the bug that causes sending completed event to the tracker
  12756. several times.
  12757. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  12758. by using messageDigest.h.
  12759. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12760. * PeerConnection.cc: Replaced log message "keep-alive" with
  12761. "keep alive".
  12762. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  12763. localhost long time.
  12764. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  12765. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  12766. at most 100 failure entry from the list. If with duplicate = false,
  12767. MAX_PEER_LIST is not checked.
  12768. * PeerListenCommand.cc: Fixed the argument order of log message.
  12769. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12770. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  12771. Added warn().
  12772. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  12773. Implemented warn().
  12774. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  12775. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12776. * Request.h: Added AFTER_COMPLETED event.
  12777. * TorrentDownloadEngine.cc: Prints "Download complete" message
  12778. instead of downloaded size and progress(%) after download completes.
  12779. * PeerInteractionCommand.cc: After download completes, sends unchoke
  12780. message to the peer if it is interested in what localhost has
  12781. downloaded.
  12782. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  12783. destination instead of just renaming it.
  12784. * TorrentMan.cc: Added deleteTempFile().
  12785. * PeerAbstractCommand.cc: do not stop execution after download
  12786. completes. This makes localhost a seeder.
  12787. * Util.{h,cc}: Added fileCopy().
  12788. * PeerListenCommand.cc: do not stop execution after download completes.
  12789. This makes localhost a seeder.
  12790. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  12791. Added TorrentMan::deleteTempFile() to torrentHandler.
  12792. Initialized the variable dir as ".".
  12793. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  12794. Deleted renameSingleFile().
  12795. Added copySingleFile(), deleteTempFile().
  12796. * DownloadEngine.h: Added virtual function afterEachIteration().
  12797. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  12798. in onEndOfRun() to afterEachIteration().
  12799. In onEndOfRun(), changed if condition to check whether filenameFixed is
  12800. true.
  12801. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  12802. In rangedFileCopy(), added try-catch block to properly close file
  12803. descriptors.
  12804. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  12805. Added afterEachIteration(), isFilenameFixed().
  12806. * Peer.cc: Changed choking strategy.
  12807. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  12808. * TrackerInitCommand.cc: Send completed event only once.
  12809. * DownloadEngine.cc: Added a call to afterEachIteration().
  12810. * TrackerUpdateCommand.cc: Do not stop execution after download
  12811. completes.
  12812. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  12813. connect the peers at most MAX_PEER_UPDATE when a peer list is
  12814. received from a tracker.
  12815. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  12816. Decreased the number of failure peers to delete to 0(just comment out
  12817. the line).
  12818. * Release 0.3.1
  12819. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12820. * PeerInteractionCommand.cc: added a call to
  12821. TorrentMan::unadvertisePiece in Destructor.
  12822. * PeerInteractionCommand.cc: make have message sent immediately
  12823. if the size of pending message queue is zero.
  12824. * TorrentMan.cc: set the maximum size of peer list to 250.
  12825. * TorrentMan.h: changed the container type of Peers and UsedPieces
  12826. to deque.
  12827. * Util.cc: fixed rangedFileCopy.
  12828. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  12829. to Constructor. Also, moved digest cleanup to Destructor.
  12830. * MetaFileUtil.cc: fixed memory leak
  12831. * replaced std::vector with std::deque.
  12832. * AbstractCommand.cc: casted timeout value to long long int.
  12833. * ChunkedEncoding.cc: fixed memory leak.
  12834. * PeerInteractionCommand.cc: casted timeout value to long long int.
  12835. * SleepCommand.cc: casted timeout value to long long int.
  12836. * Data.cc: fixed memory leak.
  12837. * Data.cc: fixed toLLInt().
  12838. * BitfieldMan.cc: fixed memory leak.
  12839. * TorrentMan.cc: initialized storeDir to ".".
  12840. * TorrentMan.cc: fixed memory leak.
  12841. * TorrentMan.cc: corrected file paths of splitted files.
  12842. * PeerAbstractCommand.cc: casted timeout to long long int.
  12843. * main.cc: added delete(req) and delete(te->diskWriter).
  12844. * RequestSlot.cc: casted timeout value to long long int.
  12845. * Request.cc: fixed memory leak.
  12846. * PendingMessage.cc: make HAVE messages sent only when peer does not
  12847. have the piece.
  12848. * Peer.{h,cc}: added hasPiece(int index).
  12849. * main.cc: corrected addCommand.
  12850. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12851. * BitTorrent protocol support added.
  12852. * Release 0.3.0
  12853. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12854. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  12855. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12856. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  12857. decoding did not work properly.
  12858. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12859. * DownloadEngine.h: included sys/time.h
  12860. * DownloadEngine.cc: remove sys/time.h
  12861. * Makefile.am (SUBDIRS): Add intl.
  12862. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  12863. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12864. * main.cc: correct help message for --http-auth-scheme.
  12865. * main.cc: changed e-mail address for bug reports.
  12866. * ja.po: added japanese translation.
  12867. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12868. * SimpleLogger.cc: flush log file instead of stdout.
  12869. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12870. * main.cc: Fixed command-line option: max-tries
  12871. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  12872. does not equal to seg.sp.
  12873. * DownloadCommand.cc: If EOF is got from the server and the total size
  12874. of file is not zero, then throw DlRetryEx.
  12875. * main.cc: Set the minium value of min-segment-size to 1024.
  12876. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  12877. fails because of a regression since 0.2.0 release.
  12878. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12879. * HttpConnection.cc:
  12880. * common.h: defined the user agent name as macro
  12881. * DownloadEngine.{h, cc}:
  12882. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  12883. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  12884. * main.cc: Download complete/abort message is now generated by main.
  12885. * Makefile.am (SUBDIRS): Add m4.
  12886. (ACLOCAL_AMFLAGS): New variable.
  12887. (EXTRA_DIST): New variable.
  12888. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  12889. * gettext: added gettext functionality
  12890. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12891. * AbstractCommand.cc:
  12892. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  12893. unregister its cuid from SegmentMan.
  12894. * DownloadEngine.cc: .aria2 file was written when a downloading
  12895. failed with errors.
  12896. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  12897. Added "User-Agent" header to CONNECT proxy request.
  12898. Fixed "Proxy-Authorization" header. Now proxy authorization works
  12899. properly.
  12900. * Logger.h:
  12901. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  12902. * ChunkedEncoding.cc: Added #include directive for strings.h
  12903. * Release 0.2.1
  12904. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12905. * Util.{h,cc}: added startsWith().
  12906. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  12907. Util::endsWith().
  12908. * SocketCore.cc: struct addrinfo is now zero-initialized.
  12909. * common.h: added #include directive of limit.h.
  12910. * DownloadEngine.cc: added #include directive of sys/time.h and
  12911. algorithm.
  12912. * Exception.h: added #include directive of stdio.h.
  12913. * AbstractCommand.h: added #include directive of sys/time.h.
  12914. * DownloadCommand.h: added #include directive of sys/time.h.
  12915. * *.h: added #include directive of common.h to all base classes.
  12916. subclasses' one was removed.
  12917. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  12918. does not define these macros.
  12919. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12920. * Release 0.2.0
  12921. * main.cc:
  12922. * HttpInitiateConnectionCommand.{h,cc}:
  12923. * prefs.h:
  12924. * HttpConnection.{h,cc}: added --http-proxy-method option.
  12925. We can now use GET command in http proxy.
  12926. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12927. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  12928. that splits slowest segment of SegmentMan::commands vector.
  12929. This is the default split algorithm of aria2.
  12930. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  12931. that splits first segment of SegmentMan::commands vector.
  12932. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  12933. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  12934. * Segment.h:
  12935. * SegmentMan.cc: Added speed field to Segment.h
  12936. * main.cc: -s option now affects all URLs in command-line arguemtns.
  12937. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  12938. * message.h: Change file size related %d to %lld.
  12939. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12940. * FtpInitiateConnectionCommand.{h,cc}:
  12941. * FtpNegotiationCommand.{h,cc}:
  12942. * FtpDownloadCommand.{h,cc}:
  12943. * FtpConnection.{h,cc}: Added FTP support
  12944. * SimpleLogger.cc: Log message now includes time information.
  12945. * main.cc: The value of --http-auth-scheme option is chagned from
  12946. 'BASIC' to 'basic'
  12947. * main.cc: Added --timeout command-line option.
  12948. * main.cc: Added --min-segment-size command-line option.
  12949. * main.cc: Added --max-retries command-line option.
  12950. * prefs.h: option string constants are now defined in prefs.h
  12951. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12952. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  12953. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  12954. with version 0.1.0's one.
  12955. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12956. * configure.in: Added --enable-ssl option to configure script.
  12957. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  12958. cannot permit absoluteURI as Request-URI.
  12959. * HttpConnection.cc: Added Referer support.
  12960. * main.cc: Added referer command-line option.
  12961. * main.cc: Added rety-wait command-line option.
  12962. * Exception.h: Fixed formating bug in Exception::setMsg()
  12963. * SocketCore.{h,cc}:
  12964. * Socket.{h, cc}:
  12965. * Request.cc:
  12966. * InitiateConnectionCommandFactory.cc:
  12967. * HttpRequestCommand.cc: Added HTTPS support.
  12968. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  12969. for SocketCore.
  12970. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  12971. size is wrong
  12972. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  12973. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  12974. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  12975. * Release 0.1.0