ChangeLog 429 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304
  1. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. Updated README.
  3. * README
  4. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6. not to replace '--' with em dash character.
  7. * doc/aria2c.1.txt
  8. * doc/makeman
  9. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  11. every SEC seconds.
  12. * src/DownloadEngineFactory.cc
  13. * src/OptionHandlerFactory.cc
  14. * src/option_processing.cc
  15. * src/usage_text.h
  16. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17. Fixed compile warning on linux-amd64
  18. * src/FtpConnection.cc
  19. * src/IteratableChunkChecksumValidator.cc
  20. * src/MultiDiskAdaptor.cc
  21. Fixed the bug that unit test fails on linux-amd64
  22. * test/UtilTest.cc
  23. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  24. Added --dht-file-path option to change the path to dht.dat, which is a
  25. serialized DHT routing table.
  26. * src/OptionHandlerFactory.cc
  27. * src/option_processing.cc
  28. * src/usage_text.h
  29. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  30. Fixed possible underflow.
  31. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  32. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  33. Fixed the bug that last character in URI is not encoded.
  34. * src/Request.cc
  35. * test/RequestTest.cc
  36. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  37. Fixed the bug that referer header field contains fragment.
  38. Now Request class removes fragment part of URI and encodes it
  39. in Request::setUri() and setReferer().
  40. * src/Request.h
  41. * src/Request.cc
  42. * test/RequestTest.cc
  43. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  44. Added missing m4 macros.
  45. * m4/cppunit.m4
  46. * m4/libgcrypt.m4
  47. * m4/libgnutls-extra.m4
  48. * m4/libgnutls.m4
  49. * m4/libxml2.m4
  50. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  51. Fixed compile error with gcc-4.4(snapshot)
  52. * src/File.cc
  53. * src/FtpConnection.cc
  54. * src/OptionHandlerImpl.h
  55. * src/Util.cc
  56. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  57. Removed assert()
  58. * src/SocketBuffer.cc (SocketBuffer::send)
  59. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  60. Changed the type of _numNewConnection to unsigned int.
  61. * src/ActivePeerConnectionCommand.cc
  62. * src/ActivePeerConnectionCommand.h
  63. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  64. * Release 0.16.0
  65. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  66. Updated doc
  67. * README
  68. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  69. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  70. translations. Thanks to all translators.
  71. * po/bg.po
  72. * po/de.po
  73. * po/fr.po
  74. * po/ja.po
  75. * po/zh_CN.po
  76. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  77. Bump up version number to 0.16.0.
  78. * configure.ac
  79. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  80. Casted entry->maxConnections to int32_t for std::min<T> with T =
  81. int32_t.
  82. Changed the type of count to int32_t.
  83. * src/Metalink2RequestGroup.cc
  84. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  85. Added test for Time::elapsed(time_t).
  86. * test/TimeTest.cc
  87. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  88. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  89. Util::difftv() should be used instead.
  90. * src/TimeA2.cc
  91. * src/TimeA2.h
  92. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  93. Made socket for dht connections non-blocking
  94. * src/DHTAbstractMessage.cc
  95. * src/DHTAbstractMessage.h
  96. * src/DHTConnection.h
  97. * src/DHTConnectionImpl.cc
  98. * src/DHTConnectionImpl.h
  99. * src/DHTMessage.h
  100. * src/DHTMessageDispatcherImpl.cc
  101. * src/DHTMessageDispatcherImpl.h
  102. * src/DHTUnknownMessage.cc
  103. * src/DHTUnknownMessage.h
  104. * src/SocketCore.cc
  105. * src/SocketCore.h
  106. * test/MockDHTMessage.h
  107. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  108. Changed the type of offset to int.
  109. * src/ParameterizedStringParser.cc
  110. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  111. Made getAsInt() return int32_t
  112. * src/Option.h
  113. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  114. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  115. build.
  116. * configure.ac
  117. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  118. Use sqlite3_open if sqlite3_open_v2 is not available.
  119. * src/Sqlite3MozCookieParser.cc
  120. * src/Sqlite3MozCookieParser.h
  121. * m4/sqlite3.m4
  122. * test/Sqlite3MozCookieParserTest.cc
  123. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  124. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  125. * src/BtPieceMessage.cc
  126. * src/DHTPeerAnnounceStorage.cc
  127. * src/DefaultPieceStorage.cc
  128. * src/DownloadCommand.cc
  129. * src/DownloadEngine.cc
  130. * src/FtpConnection.cc
  131. * src/PeerConnection.cc
  132. * src/PeerMessageUtil.cc
  133. * src/RequestGroup.cc
  134. * src/RequestGroupMan.cc
  135. * src/SimpleBtMessage.cc
  136. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  137. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  138. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  139. * src/AbstractDiskWriter.cc
  140. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  141. Don't set Request::supportsPersistentConnection() in HttpConnection
  142. since this code is also used in AbstractProxyResponseCommand.
  143. Moved those code to HttpResponse.
  144. * src/HttpResponse.cc
  145. * src/HttpResponse.h
  146. * src/HttpConnection.cc
  147. * src/HttpConnection.h
  148. * src/HttpResponseCommand.cc
  149. * test/HttpResponseTest.cc
  150. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  151. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  152. The configuration is minimum: no torrent, no metalink, so there may be
  153. other compile error on their code.
  154. * src/a2netcompat.h
  155. * src/File.cc
  156. * src/File.h
  157. * src/SocketCore.cc
  158. * src/SocketCore.h
  159. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  160. Made a socket of incoming peer non-blocking.
  161. * src/PeerListenCommand.cc
  162. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  163. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  164. whole message data is not sent in one send() call.
  165. * src/BtPieceMessage.cc
  166. * src/BtPieceMessage.h
  167. * src/PeerConnection.cc
  168. * src/PeerConnection.h
  169. * src/SimpleBtMessage.cc
  170. * src/SimpleBtMessage.h
  171. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  172. Fixed the bug that aria2 downloads faster than max-download-limit when
  173. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  174. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  175. , instead of sum of them.
  176. * src/ActivePeerConnectionCommand.cc
  177. * src/DefaultBtInteractive.cc
  178. * src/DownloadCommand.cc
  179. * src/PeerInteractionCommand.cc
  180. * src/PeerReceiveHandshakeCommand.cc
  181. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  182. Fixed the bug that HTTPS download fails.
  183. * src/AbstractCommand.cc
  184. * src/AbstractCommand.h
  185. * src/DownloadCommand.cc
  186. * src/FtpConnection.cc
  187. * src/HttpConnection.cc
  188. * src/HttpRequestCommand.cc
  189. * src/HttpResponseCommand.cc
  190. * src/HttpSkipResponseCommand.cc
  191. * src/MSEHandshake.cc
  192. * src/PeerConnection.cc
  193. * src/SocketCore.cc
  194. * src/SocketCore.h
  195. Fixed the bug that aria2 doesn't download whole content body and cannot
  196. reuse connection if chunked transfer encoding and gzip content encoding
  197. are set.
  198. * src/DownloadCommand.cc
  199. * src/HttpSkipResponseCommand.cc
  200. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  201. Updated man page.
  202. * doc/aria2c.1.txt
  203. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  204. When error occurred while aria2 was parsing an .aria2.conf file, print
  205. the usage of the option that caused error.
  206. * src/option_processing.cc
  207. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  208. Fixed compile error on OptionHandlerException
  209. * src/Makefile.am
  210. * src/OptionHandlerException.cc
  211. * src/OptionHandlerException.h
  212. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  213. Moved message of the error to OptionHandlerException.h
  214. * src/NameMatchOptionHandler.h
  215. * src/OptionHandlerException.h
  216. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  217. When error occurs while aria2 is parsing an command-line option, print
  218. the usage of the option.
  219. * src/Makefile.am
  220. * src/NameMatchOptionHandler.h
  221. * src/OptionHandlerException.h
  222. * src/option_processing.cc
  223. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  224. Reverted previous change.
  225. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  226. username is not in URI.
  227. * src/HttpRequest.cc
  228. * src/Request.cc
  229. * test/HttpRequestTest.cc
  230. * test/RequestTest.cc
  231. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  232. Now colon is required for username and password in FTP URL, like:
  233. ftp://username:password@host.
  234. If colon is not there, aria2 don't parse it as a username. For example,
  235. aria2 don't retrieve username from ftp://username@host.
  236. This fix was made in order to login FTP server via non-transparent ftp
  237. proxy.
  238. * src/Request.cc
  239. * test/RequestTest.cc
  240. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  241. Use netrc for HTTP.
  242. Now FTP user/password is sent in Authorization header when
  243. --ftp-via-http-proxy=get is given.
  244. * src/AuthConfigFactory.cc
  245. * src/HttpRequest.cc
  246. * src/HttpRequest.h
  247. * src/NetrcAuthResolver.cc
  248. * src/NetrcAuthResolver.h
  249. * src/OptionHandlerFactory.cc
  250. * src/option_processing.cc
  251. * src/prefs.cc
  252. * src/prefs.h
  253. * test/AuthConfigFactoryTest.cc
  254. * test/HttpRequestTest.cc
  255. * test/NetrcAuthResolverTest.cc
  256. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  257. Issue PWD command first and get working directory and use it as a prefix
  258. for CWD command.
  259. * src/DownloadEngine.cc
  260. * src/DownloadEngine.h
  261. * src/FtpConnection.cc
  262. * src/FtpConnection.h
  263. * src/FtpFinishDownloadCommand.cc
  264. * src/FtpInitiateConnectionCommand.cc
  265. * src/FtpNegotiationCommand.cc
  266. * src/FtpNegotiationCommand.h
  267. * test/FtpConnectionTest.cc
  268. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  269. Removed default user/pass for FTP user/pass, since it should not have
  270. precedence over netrc configuration by default.
  271. * src/OptionHandlerFactory.cc
  272. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  273. Added debug log for socket event.
  274. * src/AbstractCommand.cc
  275. * src/PeerAbstractCommand.cc
  276. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  277. Log microseconds.
  278. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  279. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  280. Replaced HelpItem.cc with OptionHandler.cc.
  281. * po/POTFILES.in
  282. Updated po files with 'make update-po'
  283. * po/aria2c.pot
  284. * po/*.po
  285. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  286. Removed possible values from the text.
  287. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  288. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  289. Removed unused preferences:
  290. PREF_NO_PREALLOCATION
  291. PREF_STDOUT_LOG
  292. PREF_TRACKER_MAX_TRIES
  293. PREF_DIRECT_DOWNLOAD_TIMEOUT
  294. PREF_MIN_SEGMENT_SIZE
  295. * src/option_processing.cc
  296. * src/prefs.cc
  297. * src/prefs.h
  298. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  299. Integrated HelpItem into OptionParser to ease the workload for adding
  300. new options. Removed default value from usage text.
  301. * src/HelpItem.cc: Removed.
  302. * src/HelpItem.h: Removed.
  303. * src/HelpItemFactory.cc: Removed.
  304. * src/HelpItemFactory.h: Removed.
  305. * src/Makefile.am
  306. * src/Makefile.in
  307. * src/NameMatchOptionHandler.h
  308. * src/OptionHandler.cc
  309. * src/OptionHandler.h
  310. * src/OptionHandlerFactory.cc
  311. * src/OptionHandlerImpl.h
  312. * src/OptionParser.cc
  313. * src/OptionParser.h
  314. * src/TagContainer.cc: Removed.
  315. * src/TagContainer.h: Removed.
  316. * src/TaggedItem.cc: Removed.
  317. * src/TaggedItem.h: Removed.
  318. * src/main.cc
  319. * src/option_processing.cc
  320. * src/usage_text.h
  321. * src/version_usage.cc
  322. * test/HelpItemTest.cc: Removed.
  323. * test/Makefile.am
  324. * test/Makefile.in
  325. * test/OptionHandlerTest.cc
  326. * test/OptionParserTest.cc
  327. * test/TagContainerTest.cc: Removed.
  328. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  329. Moved `TransferStat stat = ...' to inside the `if' clause.
  330. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  331. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  332. Fixed the bug that a block in a piece is requested when same block is
  333. already requested to the same peer in end game mode.
  334. * src/BtRequestFactory.h
  335. * src/DefaultBtInteractive.cc
  336. * src/DefaultBtRequestFactory.cc
  337. * src/DefaultBtRequestFactory.h
  338. * src/DefaultPieceStorage.cc
  339. * src/DefaultPieceStorage.h
  340. * src/PieceStorage.h
  341. * src/UnknownLengthPieceStorage.cc
  342. * src/UnknownLengthPieceStorage.h
  343. * test/DefaultBtRequestFactoryTest.cc
  344. * test/DefaultPieceStorageTest.cc
  345. * test/MockBtRequestFactory.h
  346. * test/MockPieceStorage.h
  347. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  348. Removed _uploadLength and _downloadLength from PeerSessionResource
  349. and use PeerStat::_sessionUploadLength and
  350. PeerStat::_sessionDownloadLength.
  351. * src/PeerSessionResource.cc
  352. * src/PeerSessionResource.h
  353. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  354. Fixed the bug that prefixLength of split bucket which doesn't include
  355. local node ID is incremented.
  356. * src/DHTBucket.cc
  357. * src/DHTBucket.h
  358. * test/DHTBucketTest.cc
  359. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  360. Added cookies.sqlite to EXTRA_DIST
  361. * test/Makefile.am
  362. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  363. Added Turkish translation. Updated French, German, Russian and
  364. Simplified Chinese translations. Thanks to all translators.
  365. * po/LINGUAS
  366. * po/de.po
  367. * po/fr.po
  368. * po/ru.po
  369. * po/tr.po
  370. * po/zh_CN.po
  371. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  372. Added deliminating text to the beginning of the log so that one can find
  373. where the log starts easily.
  374. * src/main.cc
  375. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  376. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  377. to fix compile error when async DNS is not enabled by configuration.
  378. * src/AbstractCommand.cc
  379. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  380. If establishing conneciton to a server is failed, then mark error on
  381. its ServerStat.
  382. Added the cause of error to log when error event occurred.
  383. Moved message string to message.h for translation.
  384. * src/AbstractCommand.cc
  385. * src/AbstractCommand.h
  386. * src/FtpNegotiationCommand.cc
  387. * src/HttpRequestCommand.cc
  388. * src/PeerAbstractCommand.cc
  389. * src/message.h
  390. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  391. Added the function to get error message from socket.
  392. * src/SocketCore.cc
  393. * src/SocketCore.h
  394. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  395. Added convenient method RequestGroupMan::getOrCreateServerStat()
  396. * src/RequestGroupMan.cc
  397. * src/RequestGroupMan.h
  398. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  399. If error event is received in epoll, then abort download immediately.
  400. * src/AbstractCommand.cc
  401. * src/Command.cc
  402. * src/Command.h
  403. * src/DownloadEngine.cc
  404. * src/PeerAbstractCommand.cc
  405. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  406. Added usage message for --uri-selector, --server-stat-of,
  407. --server-stat-in, --server-stat-timeout options.
  408. * src/HelpItemFactory.cc
  409. * src/usage_text.h
  410. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  411. Added upper limit of FTP response buffer. The current implementation
  412. uses 4096bytes as a limit.
  413. * src/FtpConnection.cc
  414. * src/FtpConnection.h
  415. * test/FtpConnectionTest.cc
  416. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  417. Use non-blocking socket for TCP communication to avoid possible
  418. blocking due to buffer full.
  419. * src/AbstractProxyRequestCommand.cc
  420. * src/FtpConnection.cc
  421. * src/FtpConnection.h
  422. * src/FtpNegotiationCommand.cc
  423. * src/FtpNegotiationCommand.h
  424. * src/HttpConnection.cc
  425. * src/HttpConnection.h
  426. * src/HttpRequestCommand.cc
  427. * src/InitiatorMSEHandshakeCommand.cc
  428. * src/InitiatorMSEHandshakeCommand.h
  429. * src/MSEHandshake.cc
  430. * src/MSEHandshake.h
  431. * src/Makefile.am
  432. * src/PeerConnection.cc
  433. * src/PeerConnection.h
  434. * src/PeerInteractionCommand.cc
  435. * src/PeerListenCommand.cc
  436. * src/ReceiverMSEHandshakeCommand.cc
  437. * src/ReceiverMSEHandshakeCommand.h
  438. * src/SocketBuffer.cc
  439. * src/SocketBuffer.h
  440. * src/SocketCore.cc
  441. * src/SocketCore.h
  442. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  443. Call setStatusRealtime() in constructor.
  444. * src/RealtimeCommand.cc
  445. * src/RealtimeCommand.h
  446. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  447. Call Download::setNoWait(true) to execute newly created command without
  448. a pause.
  449. * src/AbstractCommand.cc
  450. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  451. Added --max-file-not-found=NUM option. If aria2 receives `file not
  452. found' error from HTTP/FTP server NUM times without getting single
  453. bytes of data, then force the download to fail.
  454. Basically aria2 tris all URIs available. So if long list of URIs are
  455. specified in Metalink, then aria2 will take a long time to fail
  456. eventually if all URIs are outdated. This option eases this situation
  457. to limit the number of servers to try.
  458. * src/FtpNegotiationCommand.cc
  459. * src/HelpItemFactory.cc
  460. * src/HttpResponseCommand.cc
  461. * src/OptionHandlerFactory.cc
  462. * src/PeerStat.h
  463. * src/RequestGroup.cc
  464. * src/RequestGroup.h
  465. * src/SegmentMan.cc
  466. * src/SegmentMan.h
  467. * src/option_processing.cc
  468. * src/prefs.cc
  469. * src/prefs.h
  470. * src/usage_text.h
  471. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  472. Fixed the bug that bulkReceiveResponse() reads all received data as a
  473. response even if more than one response is in it.
  474. * src/FtpConnection.cc
  475. * src/FtpConnection.h
  476. * test/FtpConnectionTest.cc
  477. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  478. Merged from stable-0.15
  479. * m4/libcares.m4
  480. Use pkg-config
  481. * m4/sqlite3.m4
  482. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  483. Removed unnecessary if statement.
  484. * src/DefaultPieceStorage.cc (initPieceStorage)
  485. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  486. Added --connect-timeout option to specify connect timeout in seconds.
  487. This option is in effect for HTTP/FTP/proxy server. The timeout for
  488. connecting to BitTorrent peer is not controlled by this option.
  489. * src/AbstractProxyRequestCommand.cc
  490. * src/FtpNegotiationCommand.cc
  491. * src/HelpItemFactory.cc
  492. * src/HttpRequestCommand.cc
  493. * src/OptionHandlerFactory.cc
  494. * src/option_processing.cc
  495. * src/prefs.cc
  496. * src/prefs.h
  497. * src/usage_text.h
  498. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  499. Added help message for -R option.
  500. * src/HelpItemFactory.cc
  501. * src/usage_text.h
  502. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  503. Added the message that the time is in local time zone.
  504. * src/RequestGroup.cc
  505. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  506. Implemented the ability to get timestamp from remote FTP server using
  507. MDTM command described in RFC3659.
  508. * src/FtpConnection.cc
  509. * src/FtpConnection.h
  510. * src/FtpNegotiationCommand.cc
  511. * src/FtpNegotiationCommand.h
  512. * test/FtpConnectionTest.cc
  513. * test/Makefile.am
  514. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  515. Implemented the ability to get timestamp from remote HTTP server and
  516. apply it to local file. To enable this feature, --remote-time option
  517. is added. No usage text has been written yet.
  518. If several servers returns difference timestamp, then aria2 uses latest
  519. one.
  520. * src/CopyDiskAdaptor.cc
  521. * src/CopyDiskAdaptor.h
  522. * src/DirectDiskAdaptor.cc
  523. * src/DirectDiskAdaptor.h
  524. * src/DiskAdaptor.h
  525. * src/File.cc
  526. * src/File.h
  527. * src/HttpHeader.cc
  528. * src/HttpHeader.h
  529. * src/HttpResponse.cc
  530. * src/HttpResponse.h
  531. * src/HttpResponseCommand.cc
  532. * src/HttpResponseCommand.h
  533. * src/MultiDiskAdaptor.cc
  534. * src/MultiDiskAdaptor.h
  535. * src/OptionHandlerFactory.cc
  536. * src/RequestGroup.cc
  537. * src/RequestGroup.h
  538. * src/RequestGroupMan.cc
  539. * src/option_processing.cc
  540. * src/prefs.cc
  541. * src/prefs.h
  542. * test/CopyDiskAdaptorTest.cc
  543. * test/FileTest.cc
  544. * test/Makefile.am
  545. * test/Makefile.in
  546. * test/MultiDiskAdaptorTest.cc
  547. * test/TestUtil.cc
  548. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  549. Fixed the bug that DiskWriterEntry is not created when its
  550. FileEntry.isRequested() is false and it doesn't share a piece with
  551. other FileEntries that are requested. This bug causes segmentation fault
  552. in the end.
  553. * src/MultiDiskAdaptor.cc
  554. * src/MultiDiskAdaptor.h
  555. * src/MultiFileAllocationIterator.cc
  556. * test/MultiDiskAdaptorTest.cc
  557. * test/MultiFileAllocationIteratorTest.cc
  558. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  559. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  560. called if the number of file entries are greater than max open files.
  561. * src/AbstractSingleDiskAdaptor.cc
  562. * src/AbstractSingleDiskAdaptor.h
  563. * src/DiskAdaptor.h
  564. * src/MultiDiskAdaptor.cc
  565. * src/MultiDiskAdaptor.h
  566. * test/MultiDiskAdaptorTest.cc
  567. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  568. Added a constuctor that receives struct timeval.
  569. Added operator<.
  570. * src/TimeA2.cc
  571. * src/TimeA2.h
  572. * test/TimeTest.cc
  573. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  574. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  575. * src/CookieParser.cc
  576. * test/CookieParserTest.cc
  577. * test/HttpResponseTest.cc
  578. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  579. Implmented the functions to parse date.
  580. * src/TimeA2.cc
  581. * src/TimeA2.h
  582. * test/TimeTest.cc
  583. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  584. Added "Firefox3 Cookie" feature to FeatureConfig
  585. * src/FeatureConfig.cc
  586. * src/FeatureConfig.h
  587. * test/FeatureConfigTest.cc
  588. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  589. Bump up version number to 0.16.0b
  590. * configure.ac
  591. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  592. Use pkg-config if is is available.
  593. * m4/openssl.m4
  594. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  595. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  596. * src/BtAnnounce.h
  597. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  598. If an error occurred with a URI, remove identical URI from remaining
  599. URI list because it is likely that same error occurred in the end and it
  600. is waste of time.
  601. * src/AbstractCommand.cc
  602. * src/RequestGroup.cc
  603. * src/RequestGroup.h
  604. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  605. Removed wrong comment.
  606. * src/DefaultPeerStorage.cc
  607. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  608. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  609. Added return value of getpid() to argument of srand() to achieve more
  610. randomized value.
  611. * src/SimpleRandomizer.cc
  612. * src/SimpleRandomizer.h
  613. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  614. Contact tracker frequently when the number of connections are 0 and
  615. download is not finished yet.
  616. * src/ActivePeerConnectionCommand.cc
  617. * src/BtAnnounce.h
  618. * src/DefaultBtAnnounce.cc
  619. * src/DefaultBtAnnounce.h
  620. * test/MockBtAnnounce.h
  621. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  622. Moved threshold values to UTPexExtensionMessage.
  623. * src/DefaultBtInteractive.cc
  624. * src/Peer.cc
  625. * src/Peer.h
  626. * src/UTPexExtensionMessage.cc
  627. * src/UTPexExtensionMessage.h
  628. * test/UTPexExtensionMessageTest.cc
  629. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  630. Added _incoming member to Peer class and made it true if the peer
  631. initiated connection. Don't add those peer to UTPex message.
  632. If extended handshake is received, assign _incoming to false.
  633. * src/DefaultBtInteractive.cc
  634. * src/HandshakeExtensionMessage.cc
  635. * src/Peer.cc
  636. * src/Peer.h
  637. * src/PeerListenCommand.cc
  638. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  639. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  640. Encoding Decoder. Removed size threshold for turning off on the fly
  641. inflation because resulting file may or may not be inflated depending
  642. on the file size and I think it is not expected by users.
  643. This change fixes segmentation fault when Metalink file contains gzipped
  644. file and its filesize is provided.
  645. * src/HttpResponseCommand.cc
  646. * src/HttpResponseCommand.h
  647. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  648. Made Cookie immutable.
  649. * src/Cookie.cc
  650. * src/Cookie.h
  651. * src/CookieParser.cc
  652. * src/CookieParser.h
  653. * src/CookieStorage.cc
  654. * test/CookieParserTest.cc
  655. * test/CookieStorageTest.cc
  656. * test/NsCookieParserTest.cc
  657. * test/Sqlite3MozCookieParserTest.cc
  658. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  659. Removed CookieBox, CookieBoxFactory.
  660. * src/CookieBox.cc
  661. * src/CookieBox.h
  662. * src/CookieBoxFactory.cc
  663. * src/CookieBoxFactory.h
  664. * src/Makefile.am
  665. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  666. Use CookieStorage class instead of CookieBox class.
  667. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  668. * src/AbstractProxyRequestCommand.cc
  669. * src/CookieStorage.cc
  670. * src/DownloadEngine.cc
  671. * src/DownloadEngine.h
  672. * src/HttpConnection.cc
  673. * src/HttpConnection.h
  674. * src/HttpRequest.cc
  675. * src/HttpRequest.h
  676. * src/HttpRequestCommand.cc
  677. * src/HttpResponse.cc
  678. * src/HttpResponseCommand.cc
  679. * src/HttpSkipResponseCommand.cc
  680. * src/Makefile.am
  681. * src/MultiUrlRequestInfo.cc
  682. * src/Request.cc
  683. * src/Request.h
  684. * src/main.cc
  685. * test/AllTest.cc
  686. * test/CookieStorageTest.cc
  687. * test/CookieTest.cc
  688. * test/HttpRequestTest.cc
  689. * test/HttpResponseTest.cc
  690. * test/Makefile.am
  691. * test/NsCookieParserTest.cc
  692. * test/Sqlite3MozCookieParserTest.cc
  693. * test/nscookietest.txt
  694. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  695. Updated
  696. * test/Cookies.sqlite
  697. * test/nscookietest.txt
  698. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  699. Added tests for CookieStorage::load()
  700. * test/CookieStorageTest.cc
  701. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  702. Added CookieStorage class which is based on RFC2109 and manages cookies
  703. more strictly than CookieBox and CookieBoxFactory class.
  704. * src/CookieStorage.cc
  705. * src/CookieStorage.h
  706. * src/Cookie.cc
  707. * src/Cookie.h
  708. * test/CookieStorageTest.cc
  709. * test/CookieTest.cc
  710. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  711. Fixed the bug that commands are created more than the number of pieces.
  712. * src/RequestGroup.cc
  713. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  714. Fixed infinite loop bug in FTP when SIZE command failed.
  715. * src/FtpNegotiationCommand.cc
  716. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  717. Removed DirectDiskAdaptorTest.h
  718. * test/Makefile.am
  719. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  720. Fixed chunk checksum validation cannot detect trailing garbage data.
  721. BUG#2074141
  722. * src/AbstractSingleDiskAdaptor.cc
  723. * src/AbstractSingleDiskAdaptor.h
  724. * src/CheckIntegrityEntry.cc
  725. * src/CheckIntegrityEntry.h
  726. * src/DiskAdaptor.h
  727. * src/MultiDiskAdaptor.cc
  728. * src/MultiDiskAdaptor.h
  729. * src/RequestGroup.cc
  730. * test/DirectDiskAdaptorTest.cc
  731. * test/MultiDiskAdaptorTest.cc
  732. * test/TestUtil.cc
  733. * test/TestUtil.h
  734. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  735. Bump up version number of dht.dat file to 3. In version 3 format, time
  736. is stored in 64bit, network byte order.
  737. New build can load old format(version 2) but it saves the file in new
  738. format. It means once you used new build, your dht.dat becomes
  739. incompatible with older build.
  740. * src/DHTRoutingTableDeserializer.cc
  741. * src/DHTRoutingTableSerializer.cc
  742. * test/DHTRoutingTableSerializerTest.cc
  743. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  744. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  745. * test/Makefile.am
  746. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  747. Bump up version number of .aria2 control file to 0001.
  748. New aria2 can still load version 0000 file but it saves the file in
  749. version 0001 format. It means that new aria2 can resume download
  750. started by old aria2 but the opposite is not true.
  751. * src/DefaultBtProgressInfoFile.cc
  752. * src/DefaultBtProgressInfoFile.h
  753. * test/DefaultBtProgressInfoFileTest.cc
  754. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  755. Added ntoh64 and hton64 as inline functions.
  756. * src/Util.cc
  757. * test/UtilTest.cc
  758. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  759. Added sqlite3 depenency and Firefox3 cookie support.
  760. * README
  761. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  762. State that firefox3 cookie is supported explicitly in the usage.
  763. * src/usage_text.h
  764. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  765. Externalized message.
  766. * src/RequestGroupMan.cc
  767. * src/message.h
  768. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  769. Save temporary file first and rename to the destination on success.
  770. Added test cases.
  771. * src/RequestGroupMan.cc
  772. * test/RequestGroupManTest.cc
  773. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  774. Fixed the bug that the number of connected peer is exceeding the limit
  775. (55 by default) in seeding mode.
  776. Multiplied 0.8 to _maxUploadSpeedLimit.
  777. * src/ActivePeerConnectionCommand.cc
  778. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  779. Clear table item.
  780. * src/Dictionary.cc
  781. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  782. Fixed error handling of lseek.
  783. * src/AbstractDiskWriter.cc
  784. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  785. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  786. style cookie file.
  787. * src/usage_text.h
  788. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  789. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  790. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  791. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  792. * src/Util.cc
  793. * src/Util.h
  794. * src/CookieParser.cc
  795. * test/UtilTest.cc
  796. * test/CookieParserTest.cc
  797. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  798. Separate the implementation to load old mozilla format of cookie to
  799. NsCookieParser class.
  800. * src/CookieBoxFactory.cc
  801. * src/CookieBoxFactory.h
  802. * src/NsCookieParser.cc
  803. * src/NsCookieParser.h
  804. * test/NsCookieParserTest.cc
  805. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  806. Made parse() const
  807. * src/Sqlite3MozCookieParser.cc
  808. * src/Sqlite3MozCookieParser.h
  809. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  810. Added firefox3 cookie support based on the patch submitted by
  811. tizianomueller.
  812. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  813. this functionality.
  814. * configure.ac
  815. * m4/sqlite3.m4
  816. * src/CookieBoxFactory.cc
  817. * src/CookieBoxFactory.h
  818. * src/Makefile.am
  819. * src/Makefile.in
  820. * src/Sqlite3MozCookieParser.cc
  821. * src/Sqlite3MozCookieParser.h
  822. * src/main.cc
  823. * test/CookieBoxFactoryTest.cc
  824. * test/Makefile.am
  825. * test/Makefile.in
  826. * test/Sqlite3MozCookieParserTest.cc
  827. * test/badcookies.sqlite
  828. * test/cookies.sqlite
  829. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  830. Added Danish and Greek translations.
  831. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  832. Great thanks to all translators.
  833. * po/LINGUAS
  834. * po/el.po
  835. * po/da.po
  836. * po/es.po
  837. * po/ca.po
  838. * po/nn.po
  839. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  840. Fixed man page: --follow-bittorrent should be --follow-torrent
  841. * doc/aria2c.1.txt
  842. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  843. Fixed: numCommand is less than the value specified in -C option.
  844. * src/RequestGroup.cc
  845. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  846. Fixed occasional assertion failure in PieceSegment.
  847. Calling PieceStorage::getMissingPiece(size_t) was missing after
  848. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  849. creation of duplicate segments and one of the segment was finished then
  850. assertion failure was caused.
  851. * src/SegmentMan.cc
  852. * test/SegmentManTest.cc
  853. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  854. Added options to load/save the server's performance/status to a file
  855. and the timeout to drop their data.
  856. --server-stat-of=FILE specifies the file to which performance data
  857. is saved.
  858. --server-stat-if=FILE specifies the file to read previously saved
  859. by --server-stat-of option. Might be used with --uri-selector=feedback.
  860. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  861. TIMEOUT is specified in seconds and the default value is 24hours.
  862. * src/MultiUrlRequestInfo.cc
  863. * src/OptionHandlerFactory.cc
  864. * src/RequestGroupMan.cc
  865. * src/RequestGroupMan.h
  866. * src/ServerStatMan.cc
  867. * src/ServerStatMan.h
  868. * src/option_processing.cc
  869. * src/prefs.cc
  870. * src/prefs.h
  871. * test/ServerStatManTest.cc
  872. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  873. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  874. * src/ServerStatMan.cc
  875. * src/ServerStatMan.h
  876. * test/ServerStatManTest.cc
  877. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  878. Implemented ServerStatMan::load(...) function and its test case.
  879. * src/ServerStat.cc
  880. * src/ServerStat.h
  881. * src/ServerStatMan.cc
  882. * test/ServerStatManTest.cc
  883. * test/ServerStatTest.cc
  884. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  885. Use time_t instead of int32_t. Use int64_t where milli second is
  886. expected.
  887. * src/TimeA2.cc
  888. * src/TimeA2.h
  889. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  890. Implemented ServerStatMan::save(...) function and its test case.
  891. * src/ServerStat.cc
  892. * src/ServerStat.h
  893. * src/ServerStatMan.cc
  894. * src/ServerStatMan.h
  895. * test/ServerStatManTest.cc
  896. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  897. Now aria2 uses name attribute in Metalink as local filename in
  898. BitTorrent downloads. BUG#2033999
  899. * src/BtContext.h
  900. * src/BtDependency.cc
  901. * src/DefaultBtContext.cc
  902. * src/DefaultBtContext.h
  903. * src/SingleFileDownloadContext.cc
  904. * src/SingleFileDownloadContext.h
  905. * test/BtDependencyTest.cc
  906. * test/DefaultBtContextTest.cc
  907. * test/MockBtContext.h
  908. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  909. Added AC_C_BIGENDIAN
  910. * src/configure.ac
  911. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  912. Limited numCommand less than or equal to the number of piece.
  913. * src/RequestGroup.cc
  914. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  915. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  916. directive.
  917. * test/DefaultPieceStorageTest.cc
  918. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  919. Fixed memory leak in test code
  920. * test/AnnounceListTest.cc
  921. * test/DefaultPeerListProcessorTest.cc
  922. * test/DefaultPeerStorageTest.cc
  923. * test/MetaFileUtilTest.cc
  924. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  925. Fixed wrong argument passing to BitfieldMan::isBitSet()
  926. * src/DefaultPieceStorage.cc
  927. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  928. Initialized _directIOAllowed
  929. * src/MultiDiskAdaptor.cc
  930. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  931. Fixed memory leak
  932. * src/GZipDecoder.cc
  933. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  934. Fixed memory leak
  935. * src/MetalinkParserStateMachine.cc
  936. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  937. Fixed memory leak
  938. * src/Dictionary.cc
  939. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  940. Fixed memory leak
  941. * src/IteratableChunkChecksumValidator.h
  942. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  943. Fixed unmatched malloc/free.
  944. * src/IteratableChunkChecksumValidator.cc
  945. * src/IteratableChecksumValidator.cc
  946. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  947. Removed max chunk size check. This change fixes BUG#2040169
  948. * src/ChunkedDecoder.cc
  949. * src/ChunkedDecoder.h
  950. * test/ChunkedDecoderTest.cc
  951. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  952. Implemented download speed based URI selection algorithm.
  953. Introduced new option --uri-selector.
  954. If --uri-selector=feedback is given, aria2 uses download speed observed
  955. in the previous downloads and chooses fastest server in the URI list.
  956. Currently at most 10 URIs are considered to introduce randomeness for
  957. finding better servers. The speed is average download speed in the
  958. downloads.
  959. On the other hand, if --uri-selector=inorder is given, which is default,
  960. URI is tried in order in URI list.
  961. The usage text for the new option has not been written yet.
  962. * src/AbstractCommand.cc
  963. * src/DownloadCommand.cc
  964. * src/DownloadEngine.cc
  965. * src/DownloadEngineFactory.cc
  966. * src/InOrderURISelector.cc
  967. * src/InOrderURISelector.h
  968. * src/OptionHandlerFactory.cc
  969. * src/PeerStat.h
  970. * src/RequestGroup.cc
  971. * src/RequestGroup.h
  972. * src/RequestGroupMan.cc
  973. * src/RequestGroupMan.h
  974. * src/SegmentMan.cc
  975. * src/SegmentMan.h
  976. * src/ServerStat.cc
  977. * src/ServerStat.h
  978. * src/ServerStatMan.cc
  979. * src/ServerStatMan.h
  980. * src/ServerStatURISelector.cc
  981. * src/ServerStatURISelector.h
  982. * src/URISelector.h
  983. * src/option_processing.cc
  984. * src/prefs.cc
  985. * src/prefs.h
  986. * test/InOrderURISelectorTest.cc
  987. * test/RequestGroupManTest.cc
  988. * test/ServerStatManTest.cc
  989. * test/ServerStatURISelectorTest.cc
  990. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  991. * Release 0.15.1+2
  992. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  993. Bump up version number to 0.15.1+2
  994. * configure.ac
  995. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  996. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  997. * m4/aria2_arg.m4
  998. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  999. * Release 0.15.1+1
  1000. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1001. Bump up version number to 0.15.1+1
  1002. * configure.ac
  1003. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1004. Fixed the bug that causes segmentaion fault when resuming download
  1005. using metalink without size tag. Reproducible only using HTTP URI.
  1006. * src/HttpResponseCommand.cc
  1007. * src/FtpNegotiationCommand.cc
  1008. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1009. * Release 0.15.1
  1010. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1011. Updated Bulgarian and French translations, thanks to all translators.
  1012. * po/bg.po
  1013. * po/fr.po
  1014. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1015. Bump up version number to 0.15.1
  1016. * configure.ac
  1017. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1018. Avoid repeated call of gettimeofday() when calculating speed.
  1019. * src/SpeedCalc.cc
  1020. * src/SpeedCalc.h
  1021. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1022. Removed writable check when socket's send buffer is full in BitTorrent
  1023. downloads to lower CPU usage.
  1024. * src/PeerInteractionCommand.cc
  1025. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1026. Fixed broken gzip inflation.
  1027. Turn off segmented downloading if gzip content is smaller than or equal
  1028. to 1MiB and inflate the data on the fly, because HTTP response header
  1029. doesn't contain the length of inflated file we can't determin where
  1030. the chunk of data should be written.
  1031. On the other hand, if gzip content is larger than 1MB, then turn off
  1032. on the fly inflation, because some servers returns "content-type: gzip"
  1033. for *.tgz, *.gz files.
  1034. * src/DownloadCommand.cc
  1035. * src/HttpResponseCommand.cc
  1036. * src/HttpResponseCommand.h
  1037. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1038. Applied tizianomueller's patch to fix compile error.
  1039. * test/BitfieldManTest.cc
  1040. * test/BtRequestMessageTest.cc
  1041. * test/DefaultBtContextTest.cc
  1042. * test/DefaultDiskWriterTest.cc
  1043. * test/DefaultPieceStorageTest.cc
  1044. * test/HttpHeaderProcessorTest.cc
  1045. * test/HttpResponseTest.cc
  1046. * test/Metalink2RequestGroupTest.cc
  1047. * test/MetalinkParserControllerTest.cc
  1048. * test/MetalinkProcessorTest.cc
  1049. * test/PeerSessionResourceTest.cc
  1050. * test/UtilTest.cc
  1051. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1052. * Release 0.15.0
  1053. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1054. Reordered src files in POTFILES.in so that usage text appears first.
  1055. * po/POTFILES.in
  1056. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1057. Bump up version number to 0.15.0
  1058. * configure.ac
  1059. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1060. Added Bulgarian translation.
  1061. Updated Catalan, Spanish, French and Japanese translations.
  1062. Thanks to all translators.
  1063. * po/LINGUAS
  1064. * po/bg.po
  1065. * po/ca.po
  1066. * po/es.po
  1067. * po/fr.po
  1068. * po/ja.po
  1069. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1070. Updated feature list. Added libz for dependency section.
  1071. Added a description about unit testing using CppUnit.
  1072. * README
  1073. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1074. Added a test for libz. Quoted where it is necessary.
  1075. * build_test.sh
  1076. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1077. Added GZip to `Enabled Features' list.
  1078. * src/FeatureConfig.cc
  1079. * src/FeatureConfig.h
  1080. * test/FeatureConfigTest.cc
  1081. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1082. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  1083. the transfer has not yet started.
  1084. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  1085. * src/SegmentMan.cc
  1086. * src/SegmentMan.h
  1087. * test/SegmentManTest.cc
  1088. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1089. Cache last calculated average download/upload speed.
  1090. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  1091. cached value.
  1092. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  1093. * src/PeerStat.h
  1094. * src/SpeedCalc.cc
  1095. * src/SpeedCalc.h
  1096. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1097. Call parseUrl directly.
  1098. * src/Request.cc (resetUrl)
  1099. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1100. Supported absolute/relative path in Location header field.
  1101. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  1102. * src/HttpHeader.cc
  1103. * src/HttpHeader.h
  1104. * src/HttpResponse.cc
  1105. * src/HttpSkipResponseCommand.cc
  1106. * src/Request.cc
  1107. * test/HttpHeaderTest.cc
  1108. * test/HttpResponseTest.cc
  1109. * test/RequestTest.cc
  1110. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1111. Changed help text for --load-cookie option.
  1112. * doc/aria2c.1.txt
  1113. * src/usage_text.h
  1114. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1115. Regenerated test/Makefile.in to remove stale ChangeLog.
  1116. * test/Makefile.in
  1117. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1118. Updated po files.
  1119. * po/aria2c.pot
  1120. * po/*.po
  1121. * po/*.gmo
  1122. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1123. Bump up version number to 0.15.0b
  1124. * configure.ac
  1125. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1126. Externalize messages.
  1127. * src/RequestGroupMan.cc
  1128. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  1129. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1130. Use File::exists() instead of File::isFile() to allow non-regular file
  1131. such as block special files.
  1132. * src/AbstractDiskWriter.cc
  1133. * src/MultiDiskWriter.cc
  1134. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1135. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  1136. * src/gai_strerror.h
  1137. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1138. Fixed compile error. Thanks gknauf for the patch.
  1139. * src/asctime_r.c
  1140. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1141. Included asctime_r.h from a2time.h.
  1142. * src/a2time.h
  1143. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1144. Added a message "aria2 doesn't verify signature" to log message when
  1145. signature file is saved.
  1146. * src/RequestGroupMan.cc
  1147. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1148. Added the ability to save signature when download is completed if
  1149. signature is available. The filename of signature file is the path to
  1150. download file followed by ".sig". If it already exists, then signature
  1151. will not be saved.
  1152. * src/RequestGroupMan.cc
  1153. * src/Signature.cc
  1154. * test/SignatureTest.cc
  1155. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1156. Updated the descriptions for --bt-seed-unverified.
  1157. * doc/aria2c.1
  1158. * doc/aria2c.1.html
  1159. * doc/aria2c.1.txt
  1160. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1161. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  1162. that this is not going to verify files using piece hashes.
  1163. * src/HelpItemFactory.cc
  1164. * src/OptionHandlerFactory.cc
  1165. * src/RequestGroup.cc
  1166. * src/option_processing.cc
  1167. * src/prefs.cc
  1168. * src/prefs.h
  1169. * src/usage_text.h
  1170. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1171. Added the ability to retrieve signature from Metalink file.
  1172. A retrieved signature is stored in Signature class and it is held by
  1173. DownloadContext class. Note that aria2 doesn't verify signature.
  1174. * src/DownloadContext.cc
  1175. * src/DownloadContext.h
  1176. * src/Makefile.am
  1177. * src/Makefile.in
  1178. * src/Metalink2RequestGroup.cc
  1179. * src/MetalinkEntry.cc
  1180. * src/MetalinkEntry.h
  1181. * src/MetalinkParserController.cc
  1182. * src/MetalinkParserController.h
  1183. * src/MetalinkParserStateMachine.cc
  1184. * src/MetalinkParserStateMachine.h
  1185. * src/Signature.cc
  1186. * src/Signature.h
  1187. * src/SignatureMetalinkParserState.cc
  1188. * src/SignatureMetalinkParserState.h
  1189. * src/VerificationMetalinkParserState.cc
  1190. * src/VerificationMetalinkParserState.h
  1191. * test/Metalink2RequestGroupTest.cc
  1192. * test/MetalinkParserControllerTest.cc
  1193. * test/MetalinkProcessorTest.cc
  1194. * test/test.xml
  1195. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1196. Close DiskAdaptor after renaming file.
  1197. * src/RequestGroup.cc
  1198. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1199. Corrected indentation
  1200. * src/DefaultBtProgressInfoFile.cc
  1201. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1202. Moved the calls of std::ios::exceptions() inside of try-catch block
  1203. because if an error occurred in constructor of std::fstream, then
  1204. exception is thrown immediately when std::ios::exceptions() is called
  1205. which results unhandled exception and aria2c aborts.
  1206. * src/DefaultBtProgressInfoFile.cc
  1207. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1208. Added the test for the previous change in DefaultBtContext.cc
  1209. * test/DefaultBtContextTest.cc
  1210. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1211. Fixed the bug that causes infinite loop when the number of pieces are
  1212. fewer than allowed fast set size which is 10 by default.
  1213. * src/DefaultBtContext.cc
  1214. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1215. Updated the descriptions for -j, -s. Added --bt-seed.
  1216. * doc/aria2c.1
  1217. * doc/aria2c.1.html
  1218. * doc/aria2c.1.txt
  1219. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1220. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  1221. aria2 seeds previously downloaded files without validating piece hashs.
  1222. * src/HelpItemFactory.cc
  1223. * src/OptionHandlerFactory.cc
  1224. * src/RequestGroup.cc
  1225. * src/option_processing.cc
  1226. * src/prefs.cc
  1227. * src/prefs.h
  1228. * src/usage_text.h
  1229. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1230. Updated DESCRIPTION of man page.
  1231. * doc/aria2c.1
  1232. * doc/aria2c.1.html
  1233. * doc/aria2c.1.txt
  1234. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1235. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  1236. Don't define `struct addrinfo' when __sun is defined.
  1237. * src/getaddrinfo.h
  1238. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1239. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  1240. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  1241. second argument is of type `struct _stati64'. Otherwise it is defined as
  1242. `struct stat'.
  1243. * src/AbstractDiskWriter.cc
  1244. * src/File.cc
  1245. * src/File.h
  1246. * src/a2io.h
  1247. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1248. Fixed the compile error in hurd-i386
  1249. See the original bug report:
  1250. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  1251. * src/a2io.h
  1252. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1253. Code cleanup.
  1254. * src/PeerAbstractCommand.cc
  1255. * src/PeerAbstractCommand.h
  1256. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1257. Removed TransferEncoding.
  1258. * src/DownloadCommand.cc
  1259. * src/DownloadCommand.h
  1260. * src/HttpResponseCommand.cc
  1261. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1262. Updated po files.
  1263. * po/aria2c.pot
  1264. * po/*.po
  1265. * po/*.gmo
  1266. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1267. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  1268. * src/A2STR.cc
  1269. * src/A2STR.h
  1270. * src/ChunkedDecoder.cc
  1271. * src/ChunkedDecoder.h
  1272. * src/ChunkedEncoding.cc: Removed
  1273. * src/ChunkedEncoding.h: Removed
  1274. * src/DownloadCommand.cc
  1275. * src/DownloadCommand.h
  1276. * src/HttpDownloadCommand.cc
  1277. * src/HttpResponse.cc
  1278. * src/HttpResponse.h
  1279. * src/HttpResponseCommand.cc
  1280. * src/HttpSkipResponseCommand.cc
  1281. * src/HttpSkipResponseCommand.h
  1282. * src/Makefile.am
  1283. * src/TransferEncoding.h: Removed
  1284. * test/ChunkedDecoderTest.cc
  1285. * test/ChunkedEncodingTest.cc: Removed
  1286. * test/HttpResponseTest.cc
  1287. * test/Makefile.am
  1288. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1289. Use append instead of insert.
  1290. * src/GZipDecoder.cc
  1291. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1292. Updated doc
  1293. * src/Decoder.h
  1294. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1295. Updated usage text for -s option.
  1296. * src/usage_text.h
  1297. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1298. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  1299. * src/Request.cc
  1300. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1301. Cleaned up configure.ac.
  1302. * configure.ac
  1303. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1304. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  1305. AC_ARG_ENABLE.
  1306. * configure.ac
  1307. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1308. Added gzip, deflate decoding support in HTTP using libz. If compiled
  1309. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  1310. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  1311. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  1312. fly and writes decoded data to a local disk.
  1313. * README
  1314. * README.html
  1315. * configure.ac
  1316. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  1317. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  1318. * m4/libz.m4
  1319. * src/Decoder.h
  1320. * src/DownloadCommand.cc
  1321. * src/DownloadCommand.h
  1322. * src/Exception.h
  1323. * src/GZipDecoder.cc
  1324. * src/GZipDecoder.h
  1325. * src/HttpHeader.cc
  1326. * src/HttpHeader.h
  1327. * src/HttpRequest.cc
  1328. * src/HttpRequest.h
  1329. * src/HttpResponse.cc
  1330. * src/HttpResponse.h
  1331. * src/HttpResponseCommand.cc
  1332. * src/Makefile.am
  1333. * test/GZipDecoderTest.cc
  1334. * test/HttpRequestTest.cc
  1335. * test/HttpResponseTest.cc
  1336. * test/Makefile.am
  1337. * test/Makefile.in
  1338. * test/gzip_decode_test.gz
  1339. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1340. Clarified usage of -j option.
  1341. * src/usage_text.h
  1342. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1343. Disabled getting size from the response of RETR.
  1344. If SIZE command failed, then disable resuming and segmented downloading.
  1345. * src/FtpConnection.cc
  1346. * src/FtpConnection.h
  1347. * src/FtpNegotiationCommand.cc
  1348. * src/FtpNegotiationCommand.h
  1349. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1350. Use digits to find first byte of file size, which makes the intention
  1351. of the code clearer.
  1352. * src/FtpConnection.cc
  1353. Don't call validateTotalLength() when size is 0.
  1354. * src/FtpNegotiationCommand.cc
  1355. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1356. Updated po files.
  1357. * po/aria2c.pot
  1358. * po/*.gmo
  1359. * po/*.po
  1360. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1361. Clarified usage text for --split option.
  1362. * src/usage_text.h
  1363. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1364. Bump up version number to 0.15.0dev. "dev" means "development"
  1365. version, which means I started the development of the next release!
  1366. * src/configure.ac
  1367. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1368. If FTP server returns negative response with REST raw command and
  1369. requested range is not 0, throw exception. If requested range is 0,
  1370. continue download a file from 0 byte.
  1371. * src/FtpNegotiationCommand.cc
  1372. * src/FtpNegotiationCommand.h
  1373. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1374. Supported FTP server which don't recognize SIZE raw command.
  1375. If SIZE raw command is failed, aria2 will try to get file size
  1376. from the response of RETR raw command. If both attempts are failed,
  1377. then resuming and segmented downloading are disabled.
  1378. * src/FtpConnection.cc
  1379. * src/FtpConnection.h
  1380. * src/FtpNegotiationCommand.cc
  1381. * src/FtpNegotiationCommand.h
  1382. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1383. * Release 0.14.0+1
  1384. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1385. Bump up version number to 0.14.0+1
  1386. * src/configure.ac
  1387. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1388. Fixed the code that refers static member variable from non-static
  1389. context.
  1390. * src/DefaultPeerStorage.cc
  1391. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1392. * Release 0.14.0
  1393. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1394. Added build test script
  1395. * build_test.sh
  1396. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1397. Updated ja.po
  1398. * src/ja.po
  1399. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1400. Bump up version number to 0.14.0
  1401. * src/configure.ac
  1402. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1403. Updated ja.po and fr.po. Great thanks for french translators and
  1404. Sebastien WILLEMIJNS.
  1405. * po/fr.po
  1406. * po/ja.po
  1407. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1408. Added configure option to enable/disable epoll support.
  1409. * configure.ac
  1410. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1411. Updated man page.
  1412. * doc/aria2c.1.txt
  1413. * doc/aria2c.1
  1414. * doc/aria2c.1.html
  1415. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1416. Added missing default value '5' to the usage of --split option.
  1417. * src/HelpItemFactory.cc
  1418. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1419. Filled up pieces based on the number of missing blocks, rather than
  1420. simplay the number of piece * block length.
  1421. * src/BtRequestFactory.h
  1422. * src/DefaultBtInteractive.cc
  1423. * src/DefaultBtInteractive.h
  1424. * src/DefaultBtRequestFactory.cc
  1425. * src/DefaultBtRequestFactory.h
  1426. * src/Piece.cc
  1427. * src/Piece.h
  1428. * test/BitfieldManTest.cc
  1429. * test/DefaultBtRequestFactoryTest.cc
  1430. * test/MockBtRequestFactory.h
  1431. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1432. Made _epEvents a member variable.
  1433. * src/DownloadEngine.cc
  1434. * src/DownloadEngine.h
  1435. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1436. Cancel download if http redirect is bounded more than 20 times.
  1437. * src/AbstractCommand.cc
  1438. * src/HttpSkipResponseCommand.cc
  1439. * src/Request.cc
  1440. * src/Request.h
  1441. * test/RequestTest.cc
  1442. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1443. Fixed unhandled exception(removed keyword `new').
  1444. * src/SocketCore.cc (initEPOLL)
  1445. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1446. Removed visit(const MetaEntry*)
  1447. * src/MetaEntryVisitor.h:
  1448. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  1449. and made them virtual.
  1450. * src/BencodeVisitor.h
  1451. * src/BencodeVisitor.cc
  1452. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1453. Updated po files.
  1454. * po/aria2c.pot
  1455. * po/*.po
  1456. * po/*.gmo
  1457. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1458. Moved the call setWriteCheckSocket inside the previous clause to reduce
  1459. the number of socket to watch out.
  1460. * src/PeerInteractionCommand.cc
  1461. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1462. When there is not enough space in disk when writing a chunk of data,
  1463. aria2 now prints the message to the console to warn user and aborts
  1464. its download. Not all downloads are canceled because some downloads
  1465. may use another disk or partition. BUG#1640332
  1466. * src/AbstractDiskWriter.cc
  1467. * src/PeerAbstractCommand.cc
  1468. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  1469. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  1470. setHaltRequested(true) to cancel download.
  1471. * src/PeerInteractionCommand.h
  1472. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1473. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  1474. socket from int to sock_t as sockets are unsigned in Windows.
  1475. For AsyncNameResolver, DownloadEngine, I did additional modification
  1476. for the portion of the code changed according to epoll support.
  1477. I defined sock_t in a2netcompat.h to use sock_t without including
  1478. SocketCore.h.
  1479. * src/AsyncNameResolver.cc
  1480. * src/AsyncNameResolver.h
  1481. * src/DownloadEngine.cc
  1482. * src/DownloadEngine.h
  1483. * src/SocketCore.cc
  1484. * src/SocketCore.h
  1485. * src/a2netcompat.h
  1486. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1487. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  1488. changes in the patch were applied.
  1489. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  1490. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  1491. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  1492. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1493. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  1494. a2io.h and common.h were modified.
  1495. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  1496. MinGW.
  1497. * src/common.h: Changed off_t to 64 bit in MinGW.
  1498. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1499. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1500. only a2netcompat.h is modified.
  1501. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  1502. directives.
  1503. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1504. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  1505. only gai_strerror.h is modified.
  1506. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  1507. winsock errors in MinGW.
  1508. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1509. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  1510. follow sources are applied.
  1511. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  1512. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  1513. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  1514. I included locale.h from Platform.cc.
  1515. * src/main.cc: Moved common setup/teardown code to Platform class.
  1516. * test/AllTest.cc: Use Platform class.
  1517. Set locale to C in AllTest.cc to prevent the messages to be localized.
  1518. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1519. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  1520. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  1521. * test/HttpRequestTest.cc: Casted to off_t where it should.
  1522. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1523. Applied Ross's aria2-0.13.2+1-mingw.patch and
  1524. aria2-0.13.2+1-mingw-2.patch.
  1525. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  1526. systems which don't have termious.h. I moved the directive inside of
  1527. if(isTTY) { ... clause so that line is wiped out without termious.h.
  1528. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  1529. anyway.
  1530. * src/asctime_r.h
  1531. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  1532. I added 2nd argument to the prototype declaration.
  1533. * src/StringFormat.cc: Get rid of vasprintf.
  1534. * src/getaddrinfo.h: Fixed constants.
  1535. * configure.ac: Added the check for asctime_r function.
  1536. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  1537. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1538. Added writable test for Socket when the sending message is in progress.
  1539. Usually the sending message is piece message. Without wriable check,
  1540. upload latency is dropped to more than 1sec.
  1541. * src/PeerInteractionCommand.cc
  1542. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1543. Create only requested files and files which shares a piece with
  1544. requested file in multi-torrent downloads. Directory structures are
  1545. also created in the same rule.
  1546. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  1547. DiskWriterEntry as in the previous implementation.
  1548. * src/MultiDiskWriter.cc
  1549. * src/MultiFileAllocationIterator.cc
  1550. * src/MultiFileAllocationIterator.h
  1551. * test/MultiFileAllocationIteratorTest.cc
  1552. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1553. Commented out -lprofiler
  1554. * src/Makefile.am
  1555. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1556. Bump up version number to 0.14.0b.
  1557. * src/configure.ac
  1558. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1559. Actively establish connection to peers in seeding, when peer cache
  1560. is not full and max upload speed limit is not reached.
  1561. * src/ActivePeerConnectionCommand.cc
  1562. * src/ActivePeerConnectionCommand.h
  1563. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1564. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  1565. to make room more fleshy, recently found peers.
  1566. Peer::_badConditionStartTime is not used anymore. Consider to remove
  1567. it.
  1568. * src/DefaultPeerStorage.cc
  1569. * test/DefaultPeerStorageTest.cc
  1570. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1571. Returns cached data only when the previous receiveHandshake() is called
  1572. with peek = true.
  1573. * src/PeerConnection.cc (receiveHandshake)
  1574. * src/PeerConnection.h (receiveHandshake)
  1575. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1576. Changed default value of -s option from 1 to 5.
  1577. Also max value of -s option is changed from 5 to 16.
  1578. * src/HelpItemFactory.cc
  1579. * src/OptionHandlerFactory.cc
  1580. * src/option_processing.cc
  1581. * src/usage_text.h
  1582. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1583. Changed -s options behavior. Now it means the number of connections
  1584. made simultaneously in each http/ftp download.
  1585. If 1 URL is specified, the behavior is the same with old implementation.
  1586. If -s N is given and more than N URLs are specified, first N URLs are
  1587. used and remaining URLs are used for backup. If less than N URLs are
  1588. specified, some of URLs are used more than once so that totally N
  1589. connections are made simultaneously.
  1590. * src/main.cc
  1591. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1592. Included missing iosfwd or ostream header.
  1593. * src/RequestGroupMan.cc
  1594. * src/TaggedItem.cc
  1595. * src/TaggedItem.h
  1596. * src/Util.cc
  1597. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1598. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  1599. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  1600. * src/HttpConnection.cc: Included missing sstream.
  1601. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1602. Added --bt-max-open-files option.
  1603. * src/DefaultPieceStorage.cc
  1604. * src/HelpItemFactory.cc
  1605. * src/MultiDiskAdaptor.cc
  1606. * src/MultiDiskAdaptor.h
  1607. * src/OptionHandlerFactory.cc
  1608. * src/option_processing.cc
  1609. * src/prefs.cc
  1610. * src/prefs.h
  1611. * src/usage_text.h
  1612. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1613. Fixed the bug that aria2 aborts when a path to a directory is given
  1614. in command-line.
  1615. * src/ProtocolDetector.cc
  1616. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1617. Limited the number files opened in each BitTorrent download. The default
  1618. value is 100. The option to change this value will be added.
  1619. * src/MultiDiskAdaptor.cc
  1620. * src/MultiDiskAdaptor.h
  1621. * src/MultiFileAllocationIterator.cc
  1622. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1623. Fixed the bug that HTTP downloads don't start with old libraries.
  1624. * src/HttpHeaderProcessor.cc
  1625. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1626. Use empty() instead of size() > 0.
  1627. * src/HttpConnection.cc
  1628. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1629. Drop connection if the incoming peer ID is the same with localhost's
  1630. one. The previous implementation drops connection when incoming peer's
  1631. IP address is the same with localhost's one.
  1632. * src/PeerListenCommand.cc
  1633. * src/DefaultBtInteractive.cc
  1634. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1635. Returns cached data without checking whether socket is readable
  1636. if the cache is available.
  1637. * src/PeerConnection.cc (receiveHandshake)
  1638. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1639. Included stdint.h
  1640. * src/common.h
  1641. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1642. Removed duplicate HAVE_GETTIMEOFDAY
  1643. * src/Makefile.am
  1644. * src/Makefile.in
  1645. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1646. Use interval as a minInterval when minInterval is not supplied.
  1647. * src/DefaultBtAnnounce.cc
  1648. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1649. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  1650. attempt is failed, then 2nd attempt get kicked out more quickly.
  1651. And it is now static const member of DefaultBtAnnounce.
  1652. * src/DefaultBtAnnounce.h
  1653. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1654. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  1655. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  1656. * src/ActivePeerConnectionCommand.cc
  1657. * src/BtConstants.h
  1658. * src/BtRuntime.h
  1659. * src/DHTGetPeersCommand.cc
  1660. * src/DefaultBtAnnounce.cc
  1661. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  1662. BtRuntime::MAX_PEERS.
  1663. * src/DefaultPeerStorage.h
  1664. * src/InitiatorMSEHandshakeCommand.cc
  1665. * src/PeerInitiateConnectionCommand.cc
  1666. * src/PeerInteractionCommand.cc
  1667. * src/PeerReceiveHandshakeCommand.cc
  1668. * src/TrackerWatcherCommand.cc
  1669. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1670. Always Connect to _numNewConnection
  1671. * src/ActivePeerConnectionCommand.cc
  1672. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1673. Made `begin' unsigned int.
  1674. * src/GrowSegment.h
  1675. * src/Piece.cc
  1676. * src/Piece.h
  1677. * src/PiecedSegment.cc
  1678. * src/PiecedSegment.h
  1679. * src/Segment.h
  1680. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1681. Calculate piece hash when data is arrived if the data is arrived in
  1682. order. This removes additional read operation for hash calculation.
  1683. If the data is arrived in out of order, the hash is calucated when the
  1684. piece is completed. This is the same behavior as the old implementation.
  1685. * src/BtPieceMessage.cc
  1686. * src/DefaultBtProgressInfoFile.cc
  1687. * src/DefaultPieceStorage.cc
  1688. * src/DownloadCommand.cc
  1689. * src/DownloadCommand.h
  1690. * src/DownloadEngine.cc
  1691. * src/GrowSegment.cc
  1692. * src/GrowSegment.h
  1693. * src/Piece.cc
  1694. * src/Piece.h
  1695. * src/PiecedSegment.cc
  1696. * src/PiecedSegment.h
  1697. * src/Segment.h
  1698. * test/PieceTest.cc
  1699. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1700. Try to keep the ordering of outgoing piece message.
  1701. * src/DefaultBtMessageDispatcher.cc
  1702. (DefaultBtMessageDispatcher::sendMessages)
  1703. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1704. Fixed busy loop when error/hup epoll events occur.
  1705. * src/AbstractCommand.cc
  1706. * src/PeerAbstractCommand.cc
  1707. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1708. Added --bt-request-peer-speed-limit option, which was a constant
  1709. SLOW_SPEED_THRESHOLD.
  1710. * src/ActivePeerConnectionCommand.cc
  1711. * src/ActivePeerConnectionCommand.h
  1712. * src/BtConstants.h
  1713. * src/HelpItemFactory.cc
  1714. * src/OptionHandlerFactory.cc
  1715. * src/PeerReceiveHandshakeCommand.cc
  1716. * src/option_processing.cc
  1717. * src/prefs.cc
  1718. * src/prefs.h
  1719. * src/usage_text.h
  1720. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1721. Removed repeated call of getTopDirPath(). Instead, call it once and
  1722. cache the result.
  1723. * src/MultiDiskAdaptor.cc
  1724. * src/MultiDiskAdaptor.h
  1725. (mkdir, openFile, initAndOpenFile, openExistingFile)
  1726. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1727. Fixed compile error on debian etch.
  1728. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  1729. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  1730. it is undefined.
  1731. * src/Util.cc (ULLONG_MAX)
  1732. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1733. Added epoll support. Use epoll if it is available. If not, use select.
  1734. When async dns is enabled in compile time, epoll support is enabled
  1735. only when aria2 is built with c-ares. This condition statement is
  1736. defined in a2io.h.
  1737. Currently aria2 supports both c-ares and ares, but ares is maintained
  1738. for quite a while and debian already has c-ares package, ares support
  1739. will be dropped in the future version.
  1740. * configure.ac
  1741. * src/AbstractCommand.cc
  1742. * src/AsyncNameResolver.cc
  1743. * src/AsyncNameResolver.h
  1744. * src/Command.cc
  1745. * src/Command.h
  1746. * src/DownloadEngine.cc
  1747. * src/DownloadEngine.h
  1748. * src/PeerAbstractCommand.cc
  1749. * src/SocketCore.cc
  1750. * src/SocketCore.h
  1751. * src/a2io.h
  1752. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1753. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  1754. directive.
  1755. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1756. Do not do write operation to /dev/null file.
  1757. * src/LogFactory.cc
  1758. * src/SimpleLogger.cc
  1759. Replaced vasprintf with vsnprintf
  1760. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1761. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1762. * src/BtRequestMessage.cc
  1763. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  1764. for segmentation fault caused by previous commit.
  1765. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1766. Reduced the usage of gettimeofday().
  1767. * src/DefaultBtMessageDispatcher.cc
  1768. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  1769. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1770. * src/RequestSlot.cc
  1771. * src/RequestSlot.h
  1772. (RequestSlot::isTimeout)
  1773. Made RequestSlot have a reference to Piece object to avoid find
  1774. Piece repeatedly.
  1775. * src/DefaultBtMessageDispatcher.cc
  1776. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  1777. * src/RequestSlot.cc
  1778. * src/RequestSlot.h
  1779. (RequestSlot::getPiece)
  1780. * test/DefaultBtMessageDispatcherTest.cc
  1781. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1782. * src/TimeA2.cc
  1783. * src/TimeA2.h
  1784. (Time::difference): New function.
  1785. (Time::elapsed): Done optimization.
  1786. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1787. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  1788. directive.
  1789. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1790. * src/option_processing.cc: Added missing `defined' keyword to #if
  1791. directive.
  1792. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1793. Bump up version number to 0.13.2+1
  1794. * src/configure.ac
  1795. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1796. Refactored broken outstanding piece handling.
  1797. * src/DefaultPieceStorage.cc
  1798. * src/DefaultPieceStorage.h
  1799. * src/Piece.cc
  1800. * src/Piece.h
  1801. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1802. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  1803. name collision of static variable and predefined macro.
  1804. * src/BtContext.cc
  1805. * src/BtContext.h
  1806. * src/CookieBoxFactory.cc
  1807. * src/CookieBoxFactory.h
  1808. * src/CookieParser.cc
  1809. * src/CookieParser.h
  1810. * src/DefaultBtContext.cc
  1811. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1812. * src/RequestGroup.cc
  1813. (RequestGroup::createInitialCommand): Use empty() instead of size().
  1814. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1815. * Release 0.13.2
  1816. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1817. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  1818. * po/fr.po
  1819. * po/ja.po
  1820. * po/aria2c.pot
  1821. * po/*.po
  1822. * po/*.gmo
  1823. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1824. Bump up version number to 0.13.2
  1825. * src/configure.ac
  1826. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1827. Refactord.
  1828. * src/RequestGroupMan.cc
  1829. (removeStoppedGroup)
  1830. (fillRequestGroupFromReserver)
  1831. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1832. Fixed compile error on Ubuntu.
  1833. * src/BtPieceMessage.cc
  1834. * src/MessageDigestHelper.cc
  1835. * src/Util.cc
  1836. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1837. Fixed compile error when configured with --disable-bittorrent
  1838. * test/DownloadHandlerFactoryTest.cc
  1839. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1840. Done make update-po
  1841. * po/aria2c.pot
  1842. * po/*.po
  1843. * po/*.gmo
  1844. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1845. Bump up version number to 0.13.2rc.
  1846. * src/configure.ac
  1847. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1848. Made option name bold. Updated SYNOPSIS to make it more readable.
  1849. * doc/aria2c.1.txt
  1850. * doc/aria2c.1
  1851. * doc/aria2c.1.html
  1852. * src/version_usage.cc
  1853. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1854. Refactored. Use std::string instead of size and char*.
  1855. * Data.cc
  1856. * Data.h
  1857. * test/Data.cc
  1858. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1859. Added trimSelf(). Rewritten trim() to use trimSelf().
  1860. * Util.cc
  1861. * Util.h
  1862. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1863. * src/ChunkChecksum.h (getChecksum): Return const reference.
  1864. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1865. Fixed compile error when configured with --disable-metalink.
  1866. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  1867. * test/FeatureConfigTest.cc
  1868. * test/DownloadHandlerFactoryTest.cc
  1869. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1870. Fixed compile error when configured with --without-gnutls
  1871. --without-openssl
  1872. * src/main.cc
  1873. * test/DefaultBtProgressInfoFileTest.cc
  1874. * test/SegmentManTest.cc
  1875. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1876. Fixed compile error with OpenSSL.
  1877. * src/IteratableChunkChecksumValidator.cc
  1878. * src/LibsslDHKeyExchange.h
  1879. * src/MessageDigestHelper.cc
  1880. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1881. Revert the default value of --max-concurrent-downloads to 5.
  1882. Revert the default value of --metalink-servers to 5.
  1883. Man pages was also updated.
  1884. * src/option_processing.cc
  1885. * doc/aria2c.1.txt
  1886. * doc/aria2c.1.html
  1887. * doc/aria2c.1
  1888. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1889. Returns const reference:
  1890. DownloadContext::getPieceHash, DownloadContext::getName,
  1891. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  1892. BtContext::getInfoHashAsString,
  1893. * src/BtContext.h
  1894. * src/DefaultBtContext.cc
  1895. * src/DefaultBtContext.h
  1896. * src/DownloadContext.h
  1897. * src/SingleFileDownloadContext.h
  1898. * test/MockBtContext.h
  1899. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1900. * src/RequestGroup.h (getDir): Removed.
  1901. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1902. Returns const reference. The internal urlencode function was optimized
  1903. a little bit.
  1904. * src/Request.cc
  1905. * src/Request.h
  1906. * src/HttpRequest.cc
  1907. * src/HttpRequest.h
  1908. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1909. Defined option name and possible values as std::string to reduce
  1910. temporary string object creation in runtime.
  1911. * src/HelpItemFactory.cc
  1912. * src/LogFactory.cc
  1913. * src/Option.cc
  1914. * src/OptionHandlerFactory.cc
  1915. * src/option_processing.cc
  1916. * src/prefs.cc
  1917. * src/prefs.h
  1918. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1919. Return const reference.
  1920. * src/DownloadHandlerConstants.cc
  1921. * src/DownloadHandlerConstants.h
  1922. (getMetalinkExtensions)
  1923. (getMetalinkContentTypes)
  1924. (getBtExtensions)
  1925. (getBtContentTypes)
  1926. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1927. * src/HttpHeader.cc (get): Rewritten.
  1928. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1929. Make HttpHeader::getFirst(...) return const reference.
  1930. * src/HttpHeader.cc
  1931. * src/HttpHeader.h
  1932. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1933. Use Option::getAsBool(...) instead of Option::get(...) and compare
  1934. it with V_TRUE.
  1935. * src/DefaultPieceStorage.cc
  1936. * src/DownloadCommand.cc
  1937. * src/FtpNegotiationCommand.cc
  1938. * src/HttpRequest.cc
  1939. * src/InitiateConnectionCommand.cc
  1940. * src/RequestGroup.cc
  1941. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1942. Made Option::get(...) return const reference of std::string.
  1943. * src/Option.cc
  1944. * src/Option.h
  1945. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1946. Replaced std:copy with insert.
  1947. * src/DefaultBtMessageDispatcher.cc
  1948. * src/DefaultPieceStorage.cc
  1949. * src/DownloadEngineFactory.cc
  1950. * src/RequestGroup.cc
  1951. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1952. Included SocketCore.h to fix compiler warning.
  1953. * src/InitiateConnectionCommand.cc
  1954. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1955. Put piece selection strategy algorithm to RarestPieceSelector class,
  1956. Added a switch to choose whether randomized selection so that unit
  1957. tests emit same results in, possibly, win32.
  1958. * src/DefaultPieceStorage.cc
  1959. * src/DefaultPieceStorage.h
  1960. * src/RarestPieceSelector.cc
  1961. * src/RarestPieceSelector.h
  1962. * test/DefaultPieceStorageTest.cc
  1963. * test/RarestPieceSelectorTest.cc
  1964. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1965. Don't pool connection if HTTP proxy is enabled.
  1966. * src/FtpFinishDownloadCommand.cc
  1967. * src/FtpNegotiationCommand.cc
  1968. * src/HttpSkipResponseCommand.cc
  1969. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1970. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  1971. * src/AbstractCommand.cc
  1972. * src/AbstractCommand.h
  1973. * src/ActivePeerConnectionCommand.cc
  1974. * src/FtpInitiateConnectionCommand.cc
  1975. * src/HttpInitiateConnectionCommand.cc
  1976. * src/InitiateConnectionCommandFactory.cc
  1977. * src/PeerAbstractCommand.cc
  1978. * src/PeerAbstractCommand.h
  1979. * src/PeerInitiateConnectionCommand.cc
  1980. * src/TrackerWatcherCommand.cc
  1981. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1982. Sort RequestSlot in ascending order and manipulate them using
  1983. lower_bound.
  1984. * src/DefaultBtMessageDispatcher.cc
  1985. * src/DefaultBtMessageDispatcher.h
  1986. (getMessageQueue): Added const qualifier.
  1987. (getRequestSlots): Added const qualifier.
  1988. (sendMessages): Use empty() instead of size().
  1989. (doCancelSendingPieceAction): Use HandleEvent object.
  1990. (doAbortOutstandingRequestAction): Rewritten.
  1991. (doChokedAction): Rewritten.
  1992. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  1993. (isOutstandingRequest): Rewritten.
  1994. (getOutstandingRequest): Rewritten.
  1995. (removeOutstandingRequest): Rewritten.
  1996. (addOutstandingRequest): Rewritten.
  1997. * src/RequestSlot.cc
  1998. * src/RequestSlot.h
  1999. (operator=): Rewritten.
  2000. (operator!=): New function.
  2001. (operator<): New function.
  2002. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2003. * src/DefaultBtRequestFactory.cc
  2004. (doChokedAction): Rewritten.
  2005. (removeCompletedPiece): Rewritten.
  2006. (removeTargetPiece): Rewritten.
  2007. (createRequestMessages): Added the debug log.
  2008. (createRequestMessagesOnEndGame: Added the debug log.
  2009. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2010. Added the debug log message.
  2011. * src/BtPieceMessage.cc (doReceivedAction)
  2012. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2013. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  2014. used lower_bound to process them rather than linear search.
  2015. * src/DHTPeerAnnounceStorage.cc
  2016. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2017. Call subtractPieceStats from ~PeerInteractionCommand only when the
  2018. peer has at least one completed piece.
  2019. * src/Peer.cc
  2020. * src/Peer.h
  2021. * src/PeerInteractionCommand.cc
  2022. * src/PeerSessionResource.cc
  2023. * src/PeerSessionResource.h
  2024. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2025. Removed unnecessary sorting
  2026. * src/DefaultPieceStorage (DefaultPieceStorage)
  2027. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2028. Rewritten the portion of the code that mangaes allowed fast indexes.
  2029. * src/PeerSessionResource.cc
  2030. * src/PeerSessionResource.h
  2031. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2032. Removed the invalid string including '\r' from ru.po and
  2033. did make update-po.
  2034. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2035. Added --log-level and --summary-interval to man page.
  2036. * doc/aria2c.1.txt
  2037. * doc/aria2c.1.html
  2038. * doc/aria2c.1
  2039. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2040. Added --log-level option to specify log level. Log messages under
  2041. the specified level are not output. Default value is `debug'.
  2042. * src/HelpItemFactory.cc
  2043. * src/LogFactory.cc
  2044. * src/LogFactory.h
  2045. * src/Logger.h
  2046. * src/OptionHandlerFactory.cc
  2047. * src/SimpleLogger.cc
  2048. * src/SimpleLogger.h
  2049. * src/main.cc
  2050. * src/option_processing.cc
  2051. * src/prefs.h
  2052. * src/usage_text.h
  2053. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2054. Print download progress summary of all parallel downloads in specified
  2055. interval, default 60 secs. While aria2 could download several files
  2056. in parallel (see -j option), it displayed just first download progress,
  2057. and the other downloads are hidden from the users. This new feature
  2058. prints all downloads currently in-progress to the console so that you
  2059. can check the status of all downloads. The interval can be adjusted
  2060. by --summary-interval option.
  2061. The progress readout is now cut so that all fits in the one line of
  2062. console.
  2063. * src/ConsoleStatCalc.cc
  2064. * src/ConsoleStatCalc.h
  2065. * src/HelpItemFactory.cc
  2066. * src/OptionHandlerFactory.cc
  2067. * src/RequestGroupMan.cc
  2068. * src/RequestGroupMan.h
  2069. * src/main.cc
  2070. * src/option_processing.cc
  2071. * src/prefs.h
  2072. * src/usage_text.h
  2073. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2074. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  2075. * src/DownloadEngine.cc (DownloadEngine)
  2076. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2077. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  2078. defined.
  2079. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  2080. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2081. Use erase+lower_bound+insert instead of sort.
  2082. * src/DefaultPieceStorage.cc (addPieceStats)
  2083. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2084. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  2085. * src/A2STR.cc
  2086. * src/A2STR.h
  2087. * src/OptionParser.cc (parse)
  2088. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2089. Defined fake filename `[tracker.announce]' as static const std::string.
  2090. * src/TrackerWatcherCommand.cc (createRequestGroup)
  2091. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2092. Defined default filename `index.html' as static const std::string
  2093. * src/SingleFileDownloadContext.cc
  2094. * src/SingleFileDownloadContext.h
  2095. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2096. Defined "[MEMORY]" as static const std::string.
  2097. * src/MemoryBufferPreDownloadHandler.cc (execute)
  2098. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2099. Defined control file's version number as static const std::string.
  2100. * src/DefaultBtProgressInfoFile.cc
  2101. * src/DefaultBtProgressInfoFile.h
  2102. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2103. Use Request::METHOD_GET
  2104. * src/RequestGroup.cc (createNextCommandWithAdj)
  2105. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2106. Defined "OK", "ERR", "INPR" as static const std::string
  2107. * src/RequestGroupMan.cc (showDownloadResults)
  2108. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2109. Defined default client used in extended handshake as static const
  2110. std::string
  2111. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  2112. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2113. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  2114. * src/HttpConnection.cc (eraseConfidentialInfo)
  2115. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2116. Defined default ftp user and password as static const std::string
  2117. * src/AuthConfigFactory.cc
  2118. * src/AuthConfigFactory.h
  2119. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2120. Defined strings used in netrc as static const std::string
  2121. * src/Netrc.cc
  2122. * src/Netrc.h
  2123. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2124. Defined HTTP status as static const std::string
  2125. * src/AbstractProxyResponseCommand.cc
  2126. * src/HttpHeader.cc
  2127. * src/HttpHeader.h
  2128. * src/HttpResponse.cc
  2129. * src/HttpResponseCommand.cc
  2130. * src/HttpSkipResponseCommand.cc
  2131. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2132. Defined "\r\n", "A", "I" as static const std::string
  2133. * src/A2STR.cc
  2134. * src/A2STR.h
  2135. * src/FtpConnection.cc
  2136. * src/FtpConnection.h
  2137. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2138. Added COLON_C(".") and used it in Request::parseUrl()
  2139. * src/A2STR.cc
  2140. * src/A2STR.h
  2141. * src/Request.cc (parseUrl)
  2142. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2143. Changed the type of padName from `const std::string&' to `const char*'.
  2144. * src/MSEHandshake.cc (verifyPadLength)
  2145. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2146. Defined "sha1" as static const std::string.
  2147. * src/MetalinkParserController.cc
  2148. * src/MetalinkParserController.h
  2149. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2150. Defined message digest algorithm name as static const std::string
  2151. * src/DHTTokenTracker.cc
  2152. * src/DHTUtil.cc
  2153. * src/DefaultBtContext.cc
  2154. * src/MSEHandshake.cc
  2155. * src/MessageDigestHelper.cc
  2156. * src/Peer.cc
  2157. * src/messageDigest.cc
  2158. * src/messageDigest.h
  2159. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2160. Made string literals used in SAX parser static const std::string.
  2161. * src/FileMetalinkParserState.cc
  2162. * src/FileMetalinkParserState.h
  2163. * src/FilesMetalinkParserState.cc
  2164. * src/FilesMetalinkParserState.h
  2165. * src/InitialMetalinkParserState.cc
  2166. * src/InitialMetalinkParserState.h
  2167. * src/MetalinkMetalinkParserState.cc
  2168. * src/MetalinkMetalinkParserState.h
  2169. * src/PiecesMetalinkParserState.cc
  2170. * src/PiecesMetalinkParserState.h
  2171. * src/ResourcesMetalinkParserState.cc
  2172. * src/ResourcesMetalinkParserState.h
  2173. * src/VerificationMetalinkParserState.cc
  2174. * src/VerificationMetalinkParserState.h
  2175. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2176. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  2177. * src/A2STR.cc
  2178. * src/A2STR.h
  2179. * src/File.cc
  2180. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2181. Defined static const std::string IP("ip"), PORT("port") and use them
  2182. instead of string literals.
  2183. * src/DefaultPeerListProcessor.cc
  2184. * src/DefaultPeerListProcessor.h
  2185. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2186. Made string literals for torrent file processing static const
  2187. std::string.
  2188. * src/BtContext.cc
  2189. * src/BtContext.h
  2190. * src/DefaultBtContext.cc
  2191. * src/DefaultBtContext.h
  2192. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2193. Made string literal for tracker response static const std::string
  2194. * src/BtAnnounce.cc
  2195. * src/BtAnnounce.h
  2196. * src/DefaultBtAnnounce.cc
  2197. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2198. Use DHTMessage::T instead of "t".
  2199. * src/DHTMessageTracker.cc (messageArrived)
  2200. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2201. Made keyName static const. Made trimmed charset static const
  2202. std::string.
  2203. * src/Util.cc (getContentDispositionFilename)
  2204. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2205. Made USER_AGENT const. Made "/" static const std::string.
  2206. * src/A2STR.cc
  2207. * src/A2STR.h
  2208. * src/HttpRequest.cc
  2209. * src/HttpRequest.h
  2210. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2211. Made string listeral to static const std::string:
  2212. "Content-Range", "Content-Length"
  2213. * src/HttpHeader.cc
  2214. * src/HttpHeader.h
  2215. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2216. Made string listeral to static const std::string.
  2217. * src/HttpConnection.cc
  2218. * src/HttpHeader.cc
  2219. * src/HttpHeader.h
  2220. * src/HttpResponse.cc
  2221. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2222. Made string listeral to static const std::string.
  2223. * src/A2STR.cc
  2224. * src/A2STR.h
  2225. * src/SimpleLogger.cc
  2226. * src/SimpleLogger.h
  2227. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2228. Made string literal to static const std::string.
  2229. Rewritten CookieParser::setField.
  2230. * src/A2STR.cc
  2231. * src/A2STR.h
  2232. * src/CookieBoxFactory.cc
  2233. * src/CookieBoxFactory.h
  2234. * src/CookieParser.cc
  2235. * src/CookieParser.h
  2236. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2237. Made string literal to static const std::string
  2238. * src/DHTAbstractMessage.cc
  2239. * src/DHTAnnouncePeerMessage.cc
  2240. * src/DHTAnnouncePeerMessage.h
  2241. * src/DHTAnnouncePeerReplyMessage.cc
  2242. * src/DHTAnnouncePeerReplyMessage.h
  2243. * src/DHTFindNodeMessage.cc
  2244. * src/DHTFindNodeMessage.h
  2245. * src/DHTFindNodeReplyMessage.cc
  2246. * src/DHTFindNodeReplyMessage.h
  2247. * src/DHTGetPeersMessage.cc
  2248. * src/DHTGetPeersMessage.h
  2249. * src/DHTGetPeersReplyMessage.cc
  2250. * src/DHTGetPeersReplyMessage.h
  2251. * src/DHTMessage.cc
  2252. * src/DHTMessage.h
  2253. * src/DHTMessageFactoryImpl.cc
  2254. * src/DHTMessageReceiver.cc
  2255. * src/DHTPingMessage.cc
  2256. * src/DHTPingMessage.h
  2257. * src/DHTPingReplyMessage.cc
  2258. * src/DHTPingReplyMessage.h
  2259. * src/DHTQueryMessage.cc
  2260. * src/DHTQueryMessage.h
  2261. * src/DHTResponseMessage.cc
  2262. * src/DHTResponseMessage.h
  2263. * src/DHTUnknownMessage.cc
  2264. * src/DHTUnknownMessage.h
  2265. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2266. Made string literal to static const std::string
  2267. * src/BtChokeMessage.cc (toString)
  2268. * src/BtHaveAllMessage.cc (toString)
  2269. * src/BtHaveNoneMessage.cc (toString)
  2270. * src/BtInterestedMessage.cc (toString)
  2271. * src/BtNotInterestedMessage.cc (toString)
  2272. * src/BtUnchokeMessage.cc (toString)
  2273. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2274. Replaced "" with static const variable A2STR::NIL.
  2275. Replaced string comparison against "" with std::string::empty().
  2276. Added PROTO_* to Request class and use them as a protocol string
  2277. constant.
  2278. Made "started", "stopped", "completed" static const variable in
  2279. AnnounceList class.
  2280. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2281. Updated translations. Great thanks to translators.
  2282. * po/ca.po
  2283. * po/de.po
  2284. * po/fr.po
  2285. * po/it.po
  2286. * po/ja.po
  2287. * po/ru.po
  2288. * po/zh_CN.po
  2289. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2290. Updated man page; categorized options and fixed typo.
  2291. * doc/aria2c.1.txt
  2292. * doc/aria2c.1.html
  2293. * doc/aria2c.1
  2294. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2295. Removed const ref
  2296. * src/MetalinkEntry.cc (AddProtocolPreference)
  2297. * src/RequestGroup.cc (FindServerHostByHostname)
  2298. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2299. Rewritten Accept-Features handling.
  2300. * src/HttpRequestCommand.cc (createHttpRequest)
  2301. * src/a2functional.h
  2302. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2303. Changed method signature:
  2304. DHTAbstractNodeLookupTask::toEntries
  2305. * src/DHTAbstractNodeLookupTask.cc
  2306. * src/DHTAbstractNodeLookupTask.h
  2307. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2308. Changed method signature:
  2309. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  2310. * src/BtContext.h
  2311. * src/DefaultBtContext.cc
  2312. * src/DefaultBtContext.h
  2313. * src/DefaultBtInteractive.cc
  2314. * test/DefaultBtContextTest.cc
  2315. * test/MockBtContext.h
  2316. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2317. Changed method signature:
  2318. MultiFileAllocationIterator::makeDiskWriterEntries
  2319. * src/MultiFileAllocationIterator.cc
  2320. * src/MultiFileAllocationIterator.h
  2321. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2322. Changed method sinature:
  2323. MetalinkEntry::toFileEntry,
  2324. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  2325. Metalinker::queryEntry
  2326. * src/Metalink2RequestGroup.cc
  2327. * src/MetalinkEntry.cc
  2328. * src/MetalinkEntry.h
  2329. * src/MetalinkHelper.cc
  2330. * src/MetalinkHelper.h
  2331. * src/Metalinker.cc
  2332. * src/Metalinker.h
  2333. * src/main.cc
  2334. * test/MetalinkHelperTest.cc
  2335. * test/MetalinkerTest.cc
  2336. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2337. Changed method sinature:
  2338. RequestGroup::getURIs
  2339. * src/RequestGroup.cc
  2340. * src/RequestGroup.h
  2341. * test/Metalink2RequestGroupTest.cc
  2342. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2343. Changed method signature:
  2344. PeerListProcessor::extractPeer
  2345. * src/CompactPeerListProcessor.cc
  2346. * src/CompactPeerListProcessor.h
  2347. * src/DefaultBtAnnounce.cc
  2348. * src/DefaultPeerListProcessor.cc
  2349. * src/DefaultPeerListProcessor.h
  2350. * src/DelegatingPeerListProcessor.cc
  2351. * src/DelegatingPeerListProcessor.h
  2352. * src/PeerListProcessor.h
  2353. * src/UTPexExtensionMessage.cc
  2354. * test/DefaultPeerListProcessorTest.cc
  2355. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2356. Changed method signature:
  2357. BtRequestFactory::createRequestMessages,
  2358. BtRequestFactory::createRequestMessagesOnEndGame
  2359. * src/BtRequestFactory.h
  2360. * src/DefaultBtInteractive.cc
  2361. * src/DefaultBtRequestFactory.cc
  2362. * src/DefaultBtRequestFactory.h
  2363. * test/DefaultBtRequestFactoryTest.cc
  2364. * test/MockBtRequestFactory.h
  2365. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2366. Changed method signature:
  2367. PieceStorage::getInFlightPieces
  2368. * src/DefaultBtProgressInfoFile.cc
  2369. * src/DefaultPieceStorage.cc
  2370. * src/DefaultPieceStorage.h
  2371. * src/PieceStorage.h
  2372. * src/UnknownLengthPieceStorage.cc
  2373. * src/UnknownLengthPieceStorage.h
  2374. * test/DefaultBtProgressInfoFileTest.cc
  2375. * test/MockPieceStorage.h
  2376. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2377. Changed method signature:
  2378. PostDownloadHandler::getNextRequestGroups
  2379. Metalink2RequestGroup::generate
  2380. RequestGroup::postDownloadProcessing
  2381. * src/BtPostDownloadHandler.cc
  2382. * src/BtPostDownloadHandler.h
  2383. * src/Metalink2RequestGroup.cc
  2384. * src/Metalink2RequestGroup.h
  2385. * src/MetalinkPostDownloadHandler.cc
  2386. * src/MetalinkPostDownloadHandler.h
  2387. * src/PostDownloadHandler.h
  2388. * src/RequestGroup.cc
  2389. * src/RequestGroup.h
  2390. * src/RequestGroupMan.cc
  2391. * src/main.cc
  2392. * test/BtPostDownloadHandlerTest.cc
  2393. * test/Metalink2RequestGroupTest.cc
  2394. * test/MetalinkPostDownloadHandlerTest.cc
  2395. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2396. Rewritten AccRequestGroup
  2397. * src/main.cc
  2398. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2399. Rewritten.
  2400. * src/TaggedItem.cc (toTagString)
  2401. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2402. Rewritten Accept-Features handling.
  2403. * src/HttpRequestCommand.cc (createHttpRequest)
  2404. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2405. Rewritten accept types handling.
  2406. * HttpRequest.cc (createRequest)
  2407. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2408. Rewritten
  2409. * src/FeatureConfig.cc (featureSummary)
  2410. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2411. Changed method signature:
  2412. PeerStorage::getActivePeers
  2413. * src/DHTPeerAnnounceEntry.cc
  2414. * src/DefaultPeerStorage.cc
  2415. * src/DefaultPeerStorage.h
  2416. * src/PeerStorage.h
  2417. * test/DefaultPeerStorageTest.cc
  2418. * test/MockPeerStorage.h
  2419. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2420. Changed method signature:
  2421. DHTPeerAnnounceStorage::getPeers,
  2422. DHTPeerAnnounceEntry::getPeers
  2423. * src/DHTGetPeersMessage.cc
  2424. * src/DHTPeerAnnounceEntry.cc
  2425. * src/DHTPeerAnnounceEntry.h
  2426. * src/DHTPeerAnnounceStorage.cc
  2427. * src/DHTPeerAnnounceStorage.h
  2428. * test/DHTAnnouncePeerMessageTest.cc
  2429. * test/DHTPeerAnnounceEntryTest.cc
  2430. * test/DHTPeerAnnounceStorageTest.cc
  2431. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2432. Changed method signature:
  2433. NameResolver::resolve
  2434. * src/DHTEntryPointNameResolveCommand.cc
  2435. * src/InitiateConnectionCommand.cc
  2436. * src/NameResolver.cc
  2437. * src/NameResolver.h
  2438. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2439. Changed method signature:
  2440. PieceStorage::getAdvertisedPieceIndexes
  2441. * src/DefaultBtInteractive.cc
  2442. * src/DefaultPieceStorage.cc
  2443. * src/DefaultPieceStorage.h
  2444. * src/PieceStorage.h
  2445. * src/UnknownLengthPieceStorage.h
  2446. * test/MockPieceStorage.h
  2447. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2448. Changed method signature:
  2449. SegmentMan::getInFlightSegment
  2450. * src/AbstractCommand.cc
  2451. * src/SegmentMan.cc
  2452. * src/SegmentMan.h
  2453. * test/SegmentManTest.cc
  2454. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2455. Changed method signature:
  2456. DHTAbstractNodeLookupTask::getNodesFromMessage
  2457. * src/DHTAbstractNodeLookupTask.cc
  2458. * src/DHTAbstractNodeLookupTask.h
  2459. * src/DHTNodeLookupTask.cc
  2460. * src/DHTNodeLookupTask.h
  2461. * src/DHTPeerLookupTask.cc
  2462. * src/DHTPeerLookupTask.h
  2463. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2464. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  2465. * src/AbstractCommand.cc
  2466. * src/BtCheckIntegrityEntry.cc
  2467. * src/BtCheckIntegrityEntry.h
  2468. * src/BtFileAllocationEntry.cc
  2469. * src/BtFileAllocationEntry.h
  2470. * src/BtSetup.cc
  2471. * src/BtSetup.h
  2472. * src/CheckIntegrityCommand.cc
  2473. * src/CheckIntegrityEntry.h
  2474. * src/ChecksumCheckIntegrityEntry.cc
  2475. * src/ChecksumCheckIntegrityEntry.h
  2476. * src/DHTSetup.cc
  2477. * src/DHTSetup.h
  2478. * src/DownloadEngine.cc
  2479. * src/FileAllocationCommand.cc
  2480. * src/FileAllocationEntry.h
  2481. * src/RequestGroup.cc
  2482. * src/RequestGroup.h
  2483. * src/RequestGroupMan.cc
  2484. * src/RequestGroupMan.h
  2485. * src/StreamCheckIntegrityEntry.cc
  2486. * src/StreamCheckIntegrityEntry.h
  2487. * src/StreamFileAllocationEntry.cc
  2488. * src/StreamFileAllocationEntry.h
  2489. * src/TrackerWatcherCommand.cc
  2490. * src/a2functional.h
  2491. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2492. Changed method signature:
  2493. BNode::findClosestKNodes, BNode:: enumerateBucket,
  2494. DHTBucket::getGoodNodes,
  2495. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  2496. * src/BNode.cc
  2497. * src/BNode.h
  2498. * src/DHTAbstractNodeLookupTask.cc
  2499. * src/DHTAutoSaveCommand.cc
  2500. * src/DHTBucket.cc
  2501. * src/DHTBucket.h
  2502. * src/DHTBucketRefreshTask.cc
  2503. * src/DHTFindNodeMessage.cc
  2504. * src/DHTGetPeersMessage.cc
  2505. * src/DHTRoutingTable.cc
  2506. * src/DHTRoutingTable.h
  2507. * test/BNodeTest.cc
  2508. * test/DHTBucketTest.cc
  2509. * test/DHTRoutingTableTest.cc
  2510. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2511. In piece selection functions, Pass std::deque<...> by reference rather
  2512. than returning it.
  2513. * src/BitfieldMan.cc
  2514. * src/BitfieldMan.h
  2515. * src/DefaultBtRequestFactory.cc
  2516. * src/DefaultPieceStorage.cc
  2517. * src/Piece.cc
  2518. * src/Piece.h
  2519. * test/BitfieldManTest.cc
  2520. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2521. Implemented rarest piece first piece selection strategy.
  2522. * src/AbstractBtMessage.cc
  2523. * src/AbstractBtMessage.h
  2524. * src/BitfieldMan.cc
  2525. * src/BitfieldMan.h
  2526. * src/BtBitfieldMessage.cc
  2527. * src/BtHaveAllMessage.cc
  2528. * src/BtHaveMessage.cc
  2529. * src/DefaultPieceStorage.cc
  2530. * src/DefaultPieceStorage.h
  2531. * src/PeerInteractionCommand.cc
  2532. * src/PieceStorage.h
  2533. * src/UnknownLengthPieceStorage.h
  2534. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2535. Rewritten readData and writeData.
  2536. * src/MultiDiskAdaptor.cc
  2537. * src/MultiDiskAdaptor.h
  2538. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2539. Move \n out of the message "Usage: ...".
  2540. * src/version_usage.cc
  2541. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2542. Bump up version number to 0.13.2b.
  2543. * configure.ac
  2544. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2545. Added const qualifier to argument Exception& e.
  2546. * src/Logger.h
  2547. * src/SimpleLogger.cc
  2548. * src/SimpleLogger.h
  2549. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2550. Pool connection when CWD, SIZE command fails.
  2551. * src/FtpNegotiationCommand.cc
  2552. * src/FtpNegotiationCommand.h
  2553. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2554. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  2555. * src/HttpResponseCommand.cc
  2556. * src/HttpSkipResponseCommand.cc
  2557. * src/HttpSkipResponseCommand.h
  2558. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2559. Pool connection when a server returns 4xx, 5xx responses.
  2560. * src/HttpNullDownloadCommand.cc
  2561. * src/HttpNullDownloadCommand.h
  2562. * src/HttpResponse.cc
  2563. * src/HttpResponse.h
  2564. * src/HttpResponseCommand.cc
  2565. * src/HttpResponseCommand.h
  2566. * test/HttpResponseTest.cc
  2567. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2568. Print usage when no URL is specifed or bad command-line option is
  2569. specified.
  2570. * src/HelpItemFactory.cc
  2571. * src/help_tags.h
  2572. * src/option_processing.cc
  2573. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2574. Removed duplicate log message.
  2575. * src/AbstractCommand.cc (asyncResolveHostname)
  2576. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2577. Updated man page: --async-dns and --ftp-reuse-connection were added.
  2578. Changed -j option's default value from 5 to 1.
  2579. Added new examples using protocol auto detection feature.
  2580. Removed -T, -M usage where it can be omitted.
  2581. * doc/aria2c.1.txt
  2582. * doc/aria2c.1.html
  2583. * doc/aria2c.1.txt
  2584. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2585. Updated command-line usage text, so that it tells users that they
  2586. can specify any number of torrent files and metalink files in
  2587. command-line.
  2588. * src/version_usage.cc
  2589. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2590. Changed the default value of -j option to 1.
  2591. * src/HelpItemFactory.cc
  2592. * src/option_processing.cc
  2593. * src/usage_text.h
  2594. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2595. Added the ability to reuse connection in FTP and it is enabled by
  2596. default. It can be disabled by --ftp-reuse-connection=false option.
  2597. * src/Command.cc
  2598. * src/DownloadCommand.cc
  2599. * src/FtpDownloadCommand.cc
  2600. * src/FtpDownloadCommand.h
  2601. * src/FtpFinishDownloadCommand.cc
  2602. * src/FtpFinishDownloadCommand.h
  2603. * src/FtpInitiateConnectionCommand.cc
  2604. * src/FtpNegotiationCommand.cc
  2605. * src/FtpNegotiationCommand.h
  2606. * src/HelpItemFactory.cc
  2607. * src/Makefile.am
  2608. * src/Makefile.in
  2609. * src/OptionHandlerFactory.cc
  2610. * src/option_processing.cc
  2611. * src/prefs.h
  2612. * src/usage_text.h
  2613. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2614. Call Command::transitStatus() before calling Command::execute(),
  2615. so that the status change made in execute() is not cleared.
  2616. * src/DownloadEngine.cc
  2617. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2618. Removed forward declaration of SocketCore class.
  2619. * src/HttpDownloadCommand.h
  2620. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2621. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  2622. in InitiateConnectionCommandFactory. They should be set only when
  2623. the protocol is HTTP or HTTPS.
  2624. * src/InitiateConnectionCommandFactory.cc
  2625. * src/RequestGroup.cc
  2626. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2627. Fixed infinite loop in checksum checking.
  2628. * src/IteratableChecksumValidator.cc
  2629. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2630. Set _supportsPersistentConnection to true by default.
  2631. * src/Request.cc
  2632. * src/RequestGroup.cc
  2633. * test/HttpRequestTest.cc
  2634. * test/RequestTest.cc
  2635. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2636. Added timeout to socket pool. The default timeout is 15 seconds,
  2637. which is the same value Apache uses.
  2638. * src/DownloadEngine.cc
  2639. * src/DownloadEngine.h
  2640. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2641. Fixed misuse of multimap::find()
  2642. * src/HttpHeader.cc
  2643. * test/HttpHeaderTest.cc
  2644. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2645. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  2646. option.
  2647. The asynchronous DNS is not capable of IPv6 yet.
  2648. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  2649. least for HTTP download.
  2650. * src/AbstractCommand.cc
  2651. * src/AbstractCommand.h
  2652. * src/AsyncNameResolver.cc
  2653. * src/AsyncNameResolver.h
  2654. * src/DHTEntryPointNameResolveCommand.cc
  2655. * src/DHTEntryPointNameResolveCommand.h
  2656. * src/DownloadEngine.cc
  2657. * src/DownloadEngine.h
  2658. * src/FtpInitiateConnectionCommand.cc
  2659. * src/FtpInitiateConnectionCommand.h
  2660. * src/HelpItemFactory.cc
  2661. * src/HttpInitiateConnectionCommand.cc
  2662. * src/HttpInitiateConnectionCommand.h
  2663. * src/InitiateConnectionCommand.cc
  2664. * src/InitiateConnectionCommand.h
  2665. * src/Makefile.am
  2666. * src/Makefile.in
  2667. * src/NameResolver.cc
  2668. * src/NameResolver.h
  2669. * src/OptionHandlerFactory.cc
  2670. * src/SocketCore.cc
  2671. * src/SocketCore.h
  2672. * src/Util.cc
  2673. * src/Util.h
  2674. * src/option_processing.cc
  2675. * src/prefs.h
  2676. * src/usage_text.h
  2677. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2678. Updated man page: --quiet, --header were added.
  2679. --metalink-servers and --enable-http-keep-alive option were updated.
  2680. * doc/aria2c.1
  2681. * doc/aria2c.1.html
  2682. * doc/aria2c.1.txt
  2683. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2684. Enable HTTP keep-alive by default.
  2685. * src/HelpItemFactory.cc
  2686. * src/option_processing.cc
  2687. * src/usage_text.h
  2688. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2689. Disable http keep-alive if the remote server is not HTTP/1.1.
  2690. * src/HttpConnection.cc
  2691. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2692. Receive content body of 302 response so that the connection can be
  2693. reused later when http keep-alive is enabled.
  2694. * src/HttpNullDownloadCommand.cc
  2695. * src/HttpNullDownloadCommand.h
  2696. * src/HttpResponseCommand.cc
  2697. * src/HttpResponseCommand.h
  2698. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2699. const SharedHandle<Request> -> const SharedHandle<Request>&
  2700. * src/FtpDowndloadCommand.cc
  2701. * src/FtpDowndloadCommand.h
  2702. * src/HttpDownloadCommand.cc
  2703. * src/HttpDownloadCommand.h
  2704. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2705. Fixed the bug that the control file(.aria2 file) is not renamed
  2706. according to tryAutoFileRenaming().
  2707. tryAutoFileRenaming() was rewritten so that if both renamed file and
  2708. its control file exist, use them and continue download.
  2709. The old implementation didn't take into account of control file's
  2710. existence, so basically you couldn't continue download of renamed file.
  2711. * src/BtProgressInfoFile.h
  2712. * src/DefaultBtProgressInfoFile.cc
  2713. * src/DefaultBtProgressInfoFile.h
  2714. * src/NullProgressInfoFile.h
  2715. * src/RequestGroup.cc
  2716. * test/DefaultBtProgressInfoFileTest.cc
  2717. * test/MockBtProgressInfoFile.h
  2718. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2719. Change the default value of --metalink-servers option from `5' to `1'.
  2720. * src/HelpItemFactory.cc
  2721. * src/option_processing.cc
  2722. * src/usage_text.h
  2723. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2724. Reimplemented transparent metalink using Accept request header.
  2725. * src/HttpRequest.cc
  2726. * src/HttpRequest.h
  2727. * src/HttpRequestCommand.cc
  2728. * src/Metalink2RequestGroup.cc
  2729. * src/RequestGroup.cc
  2730. * src/RequestGroup.h
  2731. * test/HttpRequestTest.cc
  2732. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2733. Bump up version number to 0.13.2a
  2734. * configure.ac
  2735. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2736. Updated configure.ac using the result of autoscan.
  2737. * configure.ac
  2738. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2739. Fixed compilation error without gcrypt/openssl.
  2740. * src/DownloadCommand.cc
  2741. * src/DownloadCommand.h
  2742. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2743. Reorganized version information so that it can be displayed in a
  2744. standard terminal screen without scrolling.
  2745. Removed http, ftp from Configuration section, because they are always
  2746. enabled.
  2747. * src/FeatureConfig.cc
  2748. * src/FeatureConfig.h
  2749. * src/main.cc
  2750. * src/messageDigest.cc
  2751. * src/messageDigest.h
  2752. * src/version_usage.cc
  2753. * test/FeatureConfigTest.cc
  2754. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2755. Masked user ID in log.
  2756. * src/FtpConnection.cc (sendUser)
  2757. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2758. Removed query part from filename in HTTP download. The query part means
  2759. the substring after "?" in URL. Firefox seems do the same thing.
  2760. A query part is sometimes very long and not suitable to filename,
  2761. so I think it is better to remove it from filename.
  2762. * src/HttpRequest.cc
  2763. * src/HttpRequest.h
  2764. * src/Request.cc
  2765. * src/Request.h
  2766. * test/HttpRequestTest.cc
  2767. * test/RequestTest.cc
  2768. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2769. Rewritten Exception class. Throw exception object, not its pointer and
  2770. catch by reference, so that remove problematic delete operator for
  2771. catched exception.
  2772. * src/Exception.cc
  2773. * src/Exception.h
  2774. * test/ExceptionTest.cc
  2775. * src/*: All files throwing/catching exception.
  2776. * test/*: All files throwing/catching exception.
  2777. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2778. Now auto protocol detection is enabled without -Z option.
  2779. But there is a important difference between with/without -Z optoin.
  2780. For example, if you type:
  2781. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  2782. then, aria2 interprets there are 3 request groups:
  2783. (1) http://host/file, http://mirror/file <-- multi-source download
  2784. (2) file1.torrent
  2785. (3) file2.metalink
  2786. On the other hand, if you invoke above command with -Z option, it is
  2787. interpreted as 4 request groups:
  2788. (1) http://host/file
  2789. (2) file1.torrent
  2790. (3) file2.metalink
  2791. (4) http://mirror/file
  2792. I think usually user don't mix multi-source URLs and torrent files, so
  2793. there is no big problem here.
  2794. * src/main.cc
  2795. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2796. Fixed the bug that causes segmentaion fault when reading XML containing
  2797. unescapsed character like '&'.
  2798. Also a modification was made which avoids adding unnecessary
  2799. characters stack and appending unused string.
  2800. * src/ExpatMetalinkProcessor.cc
  2801. * src/FileMetalinkParserState.h
  2802. * src/FilesMetalinkParserState.h
  2803. * src/FinMetalinkParserState.h
  2804. * src/HashMetalinkParserState.h
  2805. * src/InitialMetalinkParserState.h
  2806. * src/LanguageMetalinkParserState.h
  2807. * src/MetalinkMetalinkParserState.h
  2808. * src/MetalinkParserState.h
  2809. * src/MetalinkParserStateMachine.cc
  2810. * src/MetalinkParserStateMachine.h
  2811. * src/OSMetalinkParserState.h
  2812. * src/PieceHashMetalinkParserState.h
  2813. * src/PiecesMetalinkParserState.h
  2814. * src/ResourcesMetalinkParserState.h
  2815. * src/SizeMetalinkParserState.h
  2816. * src/SkipTagMetalinkParserState.h
  2817. * src/URLMetalinkParserState.h
  2818. * src/VerificationMetalinkParserState.h
  2819. * src/VersionMetalinkParserState.h
  2820. * src/XML2SAXMetalinkProcessor.cc
  2821. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2822. Added StringFormat class, which internally calls vasprintf.
  2823. operator<< is defined for this class, so it can be used with iostream
  2824. classes nicely. SimpleLogger and following functions are rewritten
  2825. using StringFormat class.
  2826. Besides, now Logger class's methods are non-const, many classes
  2827. that has a const Logger* as a member variable are modified to remove
  2828. const qualifier from the variable declaration.
  2829. * src/HelpItemFactory.cc
  2830. * src/Request.cc
  2831. * src/SimpleLogger.cc
  2832. * src/StringFormat.cc
  2833. * src/StringFormat.h
  2834. * src/Util.cc
  2835. * src/option_processing.cc
  2836. * src/version_usage.cc
  2837. * test/StringFormatTest.cc
  2838. * src/*.h: The classes that has const Logger* as a member variable.
  2839. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2840. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  2841. failed. Also fixed memory link when exception is thrown there.
  2842. * src/main.cc (AccRequestGroup)
  2843. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2844. Added build-in "Accept-Features" support. For now only "metalink" is
  2845. used in this header field.
  2846. This "metalink" value is removed from the list when connecting URLs
  2847. fed by metalink file to avoid loop in "transparent" metlaink.
  2848. * src/HttpRequest.cc
  2849. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  2850. header is also held in this variable. Also renamed setUserHeaders as
  2851. addHeader and it was rewritten to add header not just to clear the old
  2852. value.
  2853. * src/HttpRequestCommand.cc
  2854. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  2855. from "Accept-Features" list.
  2856. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  2857. default.
  2858. * src/RequestGroup.h
  2859. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  2860. * src/a2functional.h: Included <string> because Concat class depends on
  2861. it.
  2862. * test/HttpRequestTest.cc
  2863. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2864. Added comment
  2865. * src/RequestGroup.cc (createNextCommand)
  2866. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2867. Capitalized METHOD_GET and METHOD_HEAD
  2868. * src/Request.cc
  2869. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2870. Added getDownloadResults() method
  2871. * src/RequestGroupMan.cc
  2872. * src/RequestGroupMan.h
  2873. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2874. Fixed the bug that aria2 exits when commands is empty() but
  2875. _routineCommands are not.
  2876. * src/DownloadEngine.cc
  2877. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2878. Use the default value pulled from Option object in HelpItemFactory.
  2879. except options whose defualt value is embedded in a usage text.
  2880. * src/HelpItemFactory.cc
  2881. * src/HelpItemFactory.h
  2882. * src/option_processing.cc
  2883. * src/version_usage.cc
  2884. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2885. Added --quiet option to make aria2 quiet (no console output).
  2886. --quiet option is tagged with ADVANCED.
  2887. * src/HelpItemFactory.cc
  2888. * src/LogFactory.cc
  2889. * src/LogFactory.h
  2890. * src/MultiUrlRequestInfo.cc
  2891. * src/MultiUrlRequestInfo.h
  2892. * src/NullStatCalc.h: New class. This class prints nothing.
  2893. * src/OptionHandlerFactory.cc
  2894. * src/main.cc
  2895. * src/option_processing.cc
  2896. * src/prefs.h
  2897. * src/usage_text.h
  2898. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2899. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  2900. * src/HelpItemFactory.cc (createHelpItems):
  2901. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2902. Fixed compilation error in ExpatMetalinkProcessor.cc
  2903. * src/ExpatMetalinkProcessor.cc
  2904. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2905. Reuse socket if the origin server supports HTTP keep-alive and
  2906. --enable-http-keep-alive or --enable-http-pipelining is given.
  2907. The current implementation doesn't reuse the connections established
  2908. against proxy server.
  2909. * src/AbstractCommand.cc
  2910. * src/DownloadEngine.cc
  2911. * src/DownloadEngine.h
  2912. * src/HttpDownloadCommand.cc
  2913. * src/HttpInitiateConnectionCommand.cc
  2914. * src/HttpResponseCommand.cc
  2915. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2916. Rewritten HTTP keep-alive and pipelining routine.
  2917. * src/AbstractCommand.cc
  2918. * src/HttpConnection.cc
  2919. * src/HttpDownloadCommand.cc
  2920. * src/HttpRequest.cc
  2921. * src/HttpRequestCommand.cc
  2922. * src/HttpResponseCommand.cc
  2923. * src/Request.cc
  2924. * src/Request.h
  2925. * src/RequestGroup.cc
  2926. * test/HttpRequestTest.cc
  2927. * test/HttpResponseTest.cc
  2928. * test/RequestTest.cc
  2929. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2930. Added missing setUserHeaders call
  2931. * src/HttpRequestCommand.cc
  2932. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2933. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  2934. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  2935. waste of time because it is more likey false.
  2936. * src/FileAllocationDispatcherCommand.cc (execute)
  2937. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2938. Now HTTP status and version are a member variable of HttpHeader.
  2939. HTTP status is processed as a string, not integer.
  2940. * src/AbstractProxyResponseCommand.cc
  2941. * src/HttpConnection.cc
  2942. * src/HttpHeader.cc
  2943. * src/HttpHeader.h
  2944. * src/HttpHeaderProcessor.cc
  2945. * src/HttpHeaderProcessor.h
  2946. * src/HttpResponse.cc
  2947. * src/HttpResponse.h
  2948. * test/HttpHeaderProcessorTest.cc
  2949. * test/HttpResponseTest.cc
  2950. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2951. Added --header option. You can specify any number of additional HTTP headers
  2952. like:
  2953. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  2954. Unlike other commad-line option, you can use --header option multiple times.
  2955. * src/HelpItemFactory.cc
  2956. * src/HttpRequest.{cc, h}
  2957. * src/HttpRequestCommand.cc
  2958. * src/OptionHandlerFactory.cc
  2959. * src/OptionHandlerImpl.h
  2960. * src/option_processing.cc
  2961. * src/prefs.h
  2962. * src/usage_text.h
  2963. * test/HttpRequestTest.cc (testUserHeaders)
  2964. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2965. Eliminates the time lag between sequential downloads and commands in
  2966. the same RequestGroup.
  2967. In old implementation, aria2 occasionally waits 1 seconds before
  2968. executing next command or RequestGroup.
  2969. This is really a waste of time, and new implementation eliminates
  2970. this unnecessary time lag.
  2971. * src/AbstractCommand.cc
  2972. * src/AutoSaveCommand.cc
  2973. * src/CheckIntegrityCommand.cc
  2974. * src/Command.{cc, h}
  2975. * src/DownloadEngine.{cc, h}
  2976. * src/DownloadEngineFactory.cc
  2977. * src/FileAllocationCommand.cc
  2978. * src/FileAllocationDispatcherCommand.cc
  2979. * src/FillRequestGroupCommand.cc
  2980. * src/FtpInitiateConnectionCommand.cc
  2981. * src/HaveEraseCommand.cc
  2982. * src/HttpInitiateConnectionCommand.cc
  2983. * src/HttpResponseCommand.cc
  2984. * src/RealtimeCommand.cc
  2985. * src/RequestGroup.cc
  2986. * src/RequestGroupMan.cc
  2987. * src/StreamFileAllocationEntry.cc
  2988. * src/TimeBasedCommand.{cc, h}
  2989. * src/TimedHaltCommand.cc
  2990. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2991. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  2992. keyword explicit and SharedHandle's default constructor initializes
  2993. its internal obj to null, old implementation initializes it using
  2994. obj's default constructor.
  2995. To assign null, write SharedHandle<T> x(...); x.reset();
  2996. TODO: test/SharedHandleTest.cc needs more tests.
  2997. * src/SharedHandle.h
  2998. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2999. Fixed type in man page.
  3000. * doc/aria2c.1.txt
  3001. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3002. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  3003. * src/SimpleLogger.{cc, h}
  3004. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3005. Implemented auto protocol detection.
  3006. Now you can do:
  3007. aria2c -Z http://host/file file1.torrent file2.metalink
  3008. (Note: -Z option is required for auto protcol detection.)
  3009. Then aria2c downloads 3 files simultaneously:
  3010. 1. http://host/file
  3011. 2. file1.torrent <-- read local torrent file
  3012. 3. file2.metalink <-- read local Metalink file.
  3013. Same thing goes with -i option. Assume your uris.txt contans:
  3014. http://host/file
  3015. file1.torrent
  3016. file2.metalink
  3017. Then you can do: aria2c -i uris.txt
  3018. (Note: -Z option is not needed if -i option is given.)
  3019. * src/main.cc
  3020. * src/ProtocolDetector.{cc, h}
  3021. * test/ProtocolDetectorTest.cc
  3022. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3023. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  3024. installed
  3025. * src/ARC4Encryptor.h
  3026. * src/ARC4Decryptor.h
  3027. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3028. Renamed argument from 'errno' to 'err', since errno is confused with
  3029. errno defined in errno.h.
  3030. * src/LibgcryptARC4Decryptor.h
  3031. * src/LibgcryptARC4Context.h
  3032. * src/LibgcryptDHKeyExchange.h
  3033. * src/LibgcryptARC4Encryptor.h
  3034. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3035. Rewritten choking algorithm.
  3036. * src/PeerChokeCommand.{cc, h}
  3037. * src/BtInterestedMessage.cc
  3038. * src/PeerSessionResource.{cc, h}
  3039. * src/DefaultPeerStorage.{cc, h}
  3040. * src/BtNotInterestedMessage.cc
  3041. * src/DefaultBtMessageDispatcher.{cc, h}
  3042. * src/BtMessageDispatcher.h
  3043. * src/Peer.{cc, h}
  3044. * src/BtLeecherStateChoke.{cc, h}
  3045. * src/BtSetup.cc
  3046. * src/BtSeederStateChoke.{cc, h}
  3047. * src/PeerStorage.h
  3048. * test/MockPeerStorage.h
  3049. * test/MockBtMessageDispatcher.h
  3050. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3051. Fixed compilation error on x84-64 platform.
  3052. * src/AuthConfig.cc: Included ostream.
  3053. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3054. Rewritten getBasename() and getDirname(), without standard library
  3055. basename(), dirname().
  3056. * src/File.cc
  3057. * test/FileTest.cc
  3058. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3059. Added Simplified Chinese translation. Also updated the following
  3060. translations: Polish, Dutch, German. Great thanks to all translators.
  3061. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3062. Suppress content-range error when 'Content-Range' response header
  3063. doesn't contains bytes-unit specifier 'bytes'
  3064. * src/HttpHeader.cc (getRange)
  3065. * test/HttpHeaderTest.cc
  3066. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3067. Fixed compilation error with g++-4.3
  3068. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3069. Added missing include files for MinGW
  3070. * test/HttpHeaderProcessorTest.cc
  3071. * test/DHTRoutingTableSerializerTest.cc
  3072. * test/DHTRoutingTableDeserializerTest.cc
  3073. * test/UriListParserTest.cc
  3074. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3075. Now download line is printed nicely with no garbage at the end of
  3076. line. I use ioctl to get the columns of terminal.
  3077. If stdout is redirected to another device, instead of carriage return,
  3078. end of line '\n' character is used. This is feature request#1909659
  3079. * src/ConsoleStatCalc.cc (calculateStat)
  3080. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3081. Included a2time.h
  3082. * src/DHTMessageDispatcher.h
  3083. * src/DHTMessageEntry.h
  3084. * src/DHTReplaceNodeTask.h
  3085. * src/DHTMessageTracker.h
  3086. * src/Util.h
  3087. * src/CookieBox.h
  3088. * src/SocketCore.h
  3089. * src/DefaultBtMessageDispatcher.h
  3090. * src/SocketCore.cc
  3091. * src/Util.cc
  3092. * src/DHTPingTask.h
  3093. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3094. Fixed high memory footprint when DHT is enabled.
  3095. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  3096. queued than it is processed and the queue is getting longer. As a
  3097. consequence, momory usage is increased.
  3098. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  3099. replacement cache in DHTBucket which is described in Kademlia paper.
  3100. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  3101. DHTReplaceNodeTask.
  3102. * src/DHTBucket.{h, cc}
  3103. (cacheNode): New function.
  3104. (getCachedNodes): New function.
  3105. (dropNode): Push back cached node to _nodes.
  3106. * test/DHTBucketTest.cc
  3107. (testCacheNode): New test
  3108. (testDropNode): New test
  3109. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3110. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  3111. the unused 4KB memory when ssl is not used.
  3112. * src/SocketCore.cc
  3113. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3114. Added summary log for peer announce storage.
  3115. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  3116. Removed cast
  3117. * src/DefaultPeerStorage.cc (addPeer)
  3118. Log exception message
  3119. * src/DHTMessageTracker.cc (handleTimeout)
  3120. Fixed casting
  3121. * test/HttpRequestTest.cc
  3122. * test/MetalinkProcessorTest.cc
  3123. * test/PieceTest.cc
  3124. * test/MetalinkEntryTest.cc
  3125. * test/SequenceTest.cc
  3126. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3127. * src/ParameterizedStringParser.cc (createLoop):
  3128. Removed unused variable sstep.
  3129. * src/AlphaNumberDecorator.h (decode): Rewritten.
  3130. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3131. * src/Util.{h, cc}
  3132. (parseUInt): New function.
  3133. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  3134. The actual range is uint32_t.
  3135. * test/UtilTest.cc
  3136. * src/ParameterizedStringParser.cc:
  3137. Use Util::parseUInt() for loop variables.
  3138. * test/ParameterizedStringParserTest.cc
  3139. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  3140. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3141. Rewritten the functions for binding port.
  3142. * src/DHTConnectionImpl.{h, cc}
  3143. * src/PeerListenCommand.{h, cc}
  3144. * src/DHTSetup.cc
  3145. * src/BtSetup.cc
  3146. * test/DHTConnectionImplTest.cc
  3147. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3148. type cleanup for allmost all remaining files.
  3149. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3150. Type clarification
  3151. * src/PeerSessionResource.{h, cc}
  3152. * src/DefaultPieceStorage.{h, cc}
  3153. * src/Peer.{h, cc}
  3154. * test/PeerSessionResourceTest.cc
  3155. Use div function
  3156. * src/BtPieceMessage.cc (erasePieceOnDisk)
  3157. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3158. Type clarification
  3159. * src/DefaultPeerStorage.{h, cc}
  3160. * test/DefaultPeerStorageTest.cc
  3161. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3162. Type clarification: size_t for length or size, uint64_t for file
  3163. length, off_t for file offset.
  3164. * src/DefaultBtProgressInfoFile.cc
  3165. * src/DefaultBtContext.{h, cc}
  3166. * src/DefaultBtInteractive.cc
  3167. * src/DownloadCommand.{h, cc}
  3168. * src/IteratableChunkChecksumValidator.{h, cc}
  3169. * src/SegmentMan.{h, cc}
  3170. * src/SingleFileDownloadContext.{h, cc}
  3171. * src/IteratableChecksumValidator.{h, cc}
  3172. * src/BtContext.h
  3173. * src/IteratableValidator.h
  3174. * src/DownloadContext.h
  3175. * test/SingleFileDownloadContextTest.cc
  3176. * test/DefaultBtContextTest.cc
  3177. * test/MockBtContext.h
  3178. * test/Metalink2RequestGroupTest.cc
  3179. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3180. Type clarification: size_t for length or size, uint64_t for file
  3181. length, off_t for file offset.
  3182. * src/PiecedSegment.cc
  3183. * src/GrowSegment.h
  3184. * src/DefaultBtRequestFactory.h
  3185. * src/DefaultBtProgressInfoFile.cc
  3186. * src/UnknownLengthPieceStorage.h
  3187. * src/DefaultPieceStorage.cc
  3188. * src/UnknownLengthPieceStorage.cc
  3189. * src/DefaultBtInteractive.cc
  3190. * src/GrowSegment.cc
  3191. * src/BitfieldMan.h
  3192. * src/DownloadCommand.cc
  3193. * src/BtRequestFactory.h
  3194. * src/PiecedSegment.h
  3195. * src/DefaultPieceStorage.h
  3196. * src/Piece.cc
  3197. * src/DefaultBtRequestFactory.cc
  3198. * src/PieceStorage.h
  3199. * src/Segment.h
  3200. * src/Piece.h
  3201. * src/BitfieldMan.cc
  3202. * src/Util.cc
  3203. * test/DefaultBtProgressInfoFileTest.cc
  3204. * test/DefaultPieceStorageTest.cc
  3205. * test/MockPieceStorage.h
  3206. * test/BtRequestMessageTest.cc
  3207. * test/DefaultBtMessageDispatcherTest.cc
  3208. * test/BitfieldManTest.cc
  3209. * test/GrowSegmentTest.cc
  3210. * test/PieceTest.cc
  3211. * test/SegmentTest.cc
  3212. * test/SegmentManTest.cc
  3213. * test/DefaultBtRequestFactoryTest.cc
  3214. * test/MockBtRequestFactory.h
  3215. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3216. Fixed compilation error with --disable-nls
  3217. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  3218. in gettext.h causes the problem.
  3219. * src/common.h
  3220. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3221. Removed subPiece related functions.
  3222. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  3223. * src/DefaultPieceStorage.{h, cc}
  3224. * test/PieceTest.cc
  3225. * test/DefaultPieceStorageTest.cc
  3226. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3227. Use unsigned char for data store.
  3228. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3229. Bump up version number to 0.13.0+1
  3230. * configure.ac
  3231. * Release 0.13.0+1
  3232. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Changed inactive connection timeout to 120.
  3234. To accept more mulually interested peers, disconnect peer when there
  3235. is no interest between us after certain time passed.
  3236. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  3237. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3238. Fixed the bug that aria2 only uses first dns server in resolv.conf
  3239. when compiled with async DNS support.
  3240. * src/DownloadEngine.cc
  3241. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  3242. value '10' will be a little bit short when some DNS servers are
  3243. offline and several DNS servers are tried. It should be configured
  3244. by command-line option.
  3245. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3246. Merged Ross's mingw patch.
  3247. * src/DHTRoutingTableDeserializer.cc
  3248. * src/DHTRoutingTableSerializer.cc
  3249. * src/Platform.{h, cc}
  3250. * src/timegm.h
  3251. * src/gettimeofday.h
  3252. * src/getaddrinfo.h
  3253. * src/SocketCore.h
  3254. * src/common.h
  3255. * src/inet_aton.h
  3256. * src/DownloadEngine.h
  3257. * src/gai_strerror.h
  3258. * src/a2netcompat.h
  3259. * configure.ac
  3260. * configure
  3261. * aclocal.m4
  3262. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3263. Included missing iostream.
  3264. * test/AllTest.cc
  3265. * test/BtDependencyTest.cc
  3266. * test/BtExtendedMessageTest.cc
  3267. * test/DHTConnectionImplTest.cc
  3268. * test/DHTMessageFactoryImplTest.cc
  3269. * test/DHTMessageTrackerEntryTest.cc
  3270. * test/DHTNodeTest.cc
  3271. * test/DHTRoutingTableSerializerTest.cc
  3272. * test/DefaultBtAnnounceTest.cc
  3273. * test/DefaultBtContextTest.cc
  3274. * test/DefaultBtMessageFactoryTest.cc
  3275. * test/DefaultExtensionMessageFactoryTest.cc
  3276. * test/HandshakeExtensionMessageTest.cc
  3277. * test/HttpResponseTest.cc
  3278. * test/MetalinkProcessorTest.cc
  3279. * test/MultiFileAllocationIteratorTest.cc
  3280. * test/SocketCoreTest.cc
  3281. * test/UTPexExtensionMessageTest.cc
  3282. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3283. Reorganized includes.
  3284. * src/NameResolver.cc
  3285. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3286. Fixed compilation error without ares/c-ares
  3287. * src/NameResolver.h:
  3288. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3289. Added a test for large file.
  3290. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  3291. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3292. Fixed the bug that file size is ignored if size > INT32_MAX
  3293. * src/SizeMetalinkParserState.cc (endElement):
  3294. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3295. Bump up version number to 0.13.0
  3296. * configure.ac
  3297. * Release 0.13.0
  3298. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3299. Updated Makfefile.am to make 'make dist' work.
  3300. Now packaged filename is aria2c-VERSION.tar.bz2.
  3301. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  3302. Added LICENSE.OpenSSL to dist_noinst_DATA.
  3303. Large file support is now configured by configure script.
  3304. * configure.ac
  3305. Removed unsused source files
  3306. * src/
  3307. * test/
  3308. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  3309. Peer.h and BtContext.h respectively.
  3310. * src/Peer.h
  3311. * src/BtContext.h
  3312. Updated translations.
  3313. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  3314. translations. Great thanks to all translators!;)
  3315. * po/*.{po, gmo}
  3316. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3317. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  3318. statically declared sha1 MessageDigestContext.
  3319. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  3320. initialization of short-lived MessageDigestContext.
  3321. * src/MessageDigestHelper.{h, cc}
  3322. * src/main.cc
  3323. Now DownloadCommand has a reference to MessageDigestContext to avoid
  3324. the initialization of MessageDigestContext every time in validating
  3325. chunk checksum.
  3326. * src/DownloadCommand.{h, cc}
  3327. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3328. Add a file descriptor which connected to fast peer(latency<1500) to
  3329. select(). This change reduced CPU load.
  3330. * src/PeerInteractionCommand.cc
  3331. * src/DefaultBtInteractive.{h, cc}
  3332. * src/BtInteractive.h
  3333. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3334. Fixed the previous insufficient fix for possible busy loop.
  3335. * src/MSEHandshake.cc (identifyHandshakeType)
  3336. Removed unused functions.
  3337. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  3338. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3339. Fixed possible busy loop if first 20 bytes are not received for a few
  3340. minutes.
  3341. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  3342. * src/ReceiverMSEHandshakeCommand.cc
  3343. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3344. Fixed compilation error
  3345. * src/ExpatMetalinkProcessor.cc
  3346. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3347. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  3348. * src/DHTBucket.cc
  3349. Removed unnecessary cast.
  3350. * src/HandshakeExtensionMessage.cc
  3351. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  3353. is missing.
  3354. * src/OptionHandlerFactory.cc
  3355. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3356. Fixed the bug that HAVE message is not sent for a piece they are
  3357. downloaded fom http/ftp server before any BitTorrent handshake is done
  3358. with peers.
  3359. * src/DefaultBtInteractive.cc
  3360. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3361. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  3362. * src/Makefile.am
  3363. * src/Makefile.in
  3364. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3365. Updated README. Added html version of README and man page.
  3366. * README
  3367. * README.html
  3368. * readme2html: Shell script to generate README.html from README using
  3369. asciidoc.
  3370. * doc/aria2c.1.html
  3371. * doc/makeman: Added the line to generate aria2c.1.html
  3372. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3373. Fixed offset calculation.
  3374. * src/LibgcryptDHKeyExchange.h (computeSecret)
  3375. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3376. Rewritten itos and uitos using template. llitos and ullitos are
  3377. replaced with itos and uitos respectively.
  3378. * src/Util.{h, cc}
  3379. * test/UtilTest.cc
  3380. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3381. Fixed the bug that DH key exchange sometimes fails due to bad handling
  3382. of the number of bytes required for storing public key and shared
  3383. secret.
  3384. * src/LibgcryptDHKeyExchange.h
  3385. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  3386. * src/MSEHandshake.cc
  3387. * test/DHKeyExchangeTest.cc
  3388. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3389. Removed since they are not used.
  3390. * src/Xml2MetalinkProcessor.{h, cc}
  3391. * src/Socket.cc
  3392. * src/SegmentSplitter.{h, cc}
  3393. * test/Xml2MetalinkProcessorTest.cc
  3394. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3395. Fixed the bug that prevents aria2 from stopping other than by pressing
  3396. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  3397. option. aria2 doesn't stop even after --seed-time is satisfied and
  3398. continues to output blank lines in the console.
  3399. * src/ReceiverMSEHandshakeCommand.cc
  3400. * src/PeerReceiveHandshakeCommand.cc
  3401. * src/PeerListenCommand.cc
  3402. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3403. Bump up version number to 0.13.0rc
  3404. * configure.ac
  3405. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3406. Updated man page and some usage text.
  3407. * doc/aria2c.1.txt
  3408. * src/usage_text.h
  3409. * po/*.{po, gmo}
  3410. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3411. Updated translations. Added Finnish and Hebrew translations.
  3412. Great thanks to all translators!
  3413. * po/*.{po, gmo}
  3414. * po/LINGUAS
  3415. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3416. Log more detailed information about each message.
  3417. * src/DHTQueryMessage.{h, cc}
  3418. * src/DHTGetPeersMessage.{h, cc}
  3419. * src/DHTFindNodeReplyMessage.{h, cc}
  3420. * src/DHTGetPeersReplyMessage.{h, cc}
  3421. * src/DHTAnnouncePeerMessage.{h, cc}
  3422. * src/DHTResponseMessage.{h, cc}
  3423. * src/DHTFindNodeMessage.{h, cc}
  3424. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3425. Use constants defined in prefs.h
  3426. * src/option_processing.cc
  3427. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3428. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  3429. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3430. Make room for future enchancements for IPv6 addresses.
  3431. Bump up version number of dht.dat file format to 2.
  3432. Not compatible with previous version.
  3433. * src/DHTRoutingTableSerializer.cc
  3434. * src/DHTRoutingTableDeserializer.cc
  3435. * test/DHTRoutingTableSerializerTest.cc
  3436. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3437. Added handling for the return values from
  3438. PeerMessageUtil::createcompact().
  3439. * src/DefaultBtContext.cc (computeFastSet):
  3440. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3441. Fixed abort when peer's ip address is IPv4-mapped address.
  3442. * src/DefaultBtContext.cc (computeFastSet)
  3443. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  3444. cannot handle IPv4-mapped addresses.
  3445. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  3446. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3447. Proper return value handling for OpenSSL functions.
  3448. * src/LibsslDHKeyExchange.h
  3449. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3450. Random bytes generation using libgcrypt and OpenSSL.
  3451. * src/DHTUtil.{h, cc}
  3452. * test/DHTUtilTest.cc
  3453. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3454. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  3455. received.
  3456. * src/DHTMessageReceiver.cc (receiveMessage)
  3457. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3458. Fixed the bug that a return code is always 0. BUG#1897704
  3459. If error occurred during the download or there exist unfinished
  3460. downloads, aria2 returns with code 1.
  3461. * src/RequestGroupMan.{h, cc}
  3462. * src/MultiUrlRequestInfo.{h, cc}
  3463. * src/main.cc
  3464. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3465. IPv6 support for SocketCore class.
  3466. TODO: In SocketCore::establishConnection(), this is insufficient to
  3467. determin the failure of connect() here because the socket is
  3468. non-blocking state. The next addresses should be tried after select().
  3469. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  3470. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  3471. instead which address family independent.
  3472. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  3473. information in a compact peer format which is for IPv4 only.
  3474. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  3475. this is a spec of BitTorrent protocol.
  3476. * src/SocketCore.{h, cc}
  3477. * src/PeerMessageUtil.cc
  3478. * test/SocketCoreTest.cc
  3479. * test/PeerMessageUtilTest.cc
  3480. * test/DHTConnectionImplTest.cc
  3481. Handle IPv4-mapped addresses.
  3482. * src/DHTNode.cc: Now identity is determined by node id.
  3483. * src/DHTMessageTrackerEntry.cc
  3484. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  3485. should handle it.
  3486. * src/DHTRoutingTableDeserializer.cc
  3487. * src/DHTMessageFactoryImpl.cc
  3488. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3489. Change the unit of --stop option from a minute to a second.
  3490. * src/usage_text.h
  3491. * src/DownloadEngineFactory.cc
  3492. * src/OptionHandlerFactory.cc
  3493. * src/message.h
  3494. * src/TimedHaltCommand.cc
  3495. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. Make listening socket non-block mode.
  3497. * src/FtpConnection.cc
  3498. * src/FtpNegotiationCommand.{h, cc}
  3499. * src/PeerListenCommand.cc
  3500. Fixed the bug that cause slow ftp negotiation.
  3501. * src/FtpNegotiationCommand.{h, cc}
  3502. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3503. Added basic tag to --enable-dht, --dht-listen-port option.
  3504. * src/HelpItemFactory.cc (createHelpItems)
  3505. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3506. Updated text.
  3507. * src/usage_text.h
  3508. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3509. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  3510. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3511. Determin _threadtholdSpeed in each constructor for
  3512. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  3513. * src/ActivePeerConnectionCommand.{h, cc}
  3514. * src/PeerReceiveHandshakeCommand.{h, cc}
  3515. * src/BtSetup.cc
  3516. * src/BtConstants.h
  3517. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3518. Added --bt-min-crypto-level and --bt-require-crypto options.
  3519. * src/OptionHandlerFactory.cc
  3520. * src/MSEHandshake.cc
  3521. * src/HelpItemFactory.cc
  3522. * src/option_processing.cc
  3523. * src/ReceiverMSEHandshakeCommand.cc
  3524. * src/prefs.h
  3525. * src/DefaultBtAnnounce.cc
  3526. * src/InitiatorMSEHandshakeCommand.cc
  3527. * src/usage_text.h
  3528. * test/MSEHandshakeTest.cc
  3529. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3530. Bump version number to 0.13.0b
  3531. * configure.ac
  3532. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3533. Updated doc.
  3534. * src/MessageDigestHelper.h:
  3535. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3536. Use raw message digest as a token instead of its hexadecimal
  3537. representation.
  3538. * src/DHTTokenTracker.cc (generateToken)
  3539. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3540. Added Message Stream Encryption(MSE) support.
  3541. Currently, aria2 accepts incoming connections with Obfuscation Header
  3542. and legacy BitTorrent Header and establishes connections with
  3543. Obfuscation Header first and if failed then retry with legacy
  3544. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  3545. choose ARC4. The new option to change the default behavior is planned.
  3546. For tracker extension, "supportcrypto=1" is added statically.
  3547. * src/PeerInitiateConnectionCommand.{h, cc}
  3548. * src/PeerConnection.{h, cc}
  3549. * src/HandleRegistry.h
  3550. * src/SocketCore.h
  3551. * src/PeerReceiveHandshakeCommand.{h, cc}
  3552. * src/BtRegistry.{h, cc}
  3553. * src/PeerListenCommand.cc
  3554. * src/InitiatorMSEHandshakeCommand.{h, cc}
  3555. * src/ReceiverMSEHandshakeCommand.{h, cc}
  3556. * src/MSEHandshake.{h, cc}
  3557. * src/ARC4Encryptor.h
  3558. * src/ARC4Decryptor.h
  3559. * src/LibgcryptARC4Encryptor.h
  3560. * src/LibgcryptARC4Decryptor.h
  3561. * src/LibgcryptARC4Context.h
  3562. * src/LibsslARC4Encryptor.h
  3563. * src/LibsslARC4Decryptor.h
  3564. * src/LibsslARC4Context.h
  3565. * src/DHKeyExchange.h
  3566. * src/LibgcryptDHKeyExchange.h
  3567. * src/LibsslDHKeyExchange.h
  3568. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  3569. * test/DefaultBtAnnounceTest.cc
  3570. * test/ARC4Test.cc
  3571. * test/DHKeyExchangeTest.cc
  3572. Removed prepareForRetry() because it is not used.
  3573. * src/PeerAbstractCommand.{h, cc}
  3574. * src/PeerInteractionCommand.{h, cc}
  3575. * src/PeerInitiateConnectionCommand.{h, cc}
  3576. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3577. Added the ability to load nodes from torrent file. These nodes are
  3578. added to the routing table when downloading that torrent.
  3579. * src/BtContext.h
  3580. * src/DefaultBtContext.{h, cc}
  3581. * src/DHTSetup.cc
  3582. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  3583. hostname and port pair, and resolves all of them.
  3584. * src/NameResolver.{h, cc}: Added reset().
  3585. * src/RequestGroup.cc
  3586. * test/DefaultBtContextTest.cc
  3587. * test/MockBtContext.h
  3588. Removed assert() from DefaultBtContext and throw exception instead.
  3589. * src/DefaultBtContext.cc
  3590. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3591. Fixed segmentation fault bug when exiting if dht is disabled.
  3592. * src/RequestGroup.cc
  3593. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3594. Fixed typo in log message and define the message in message.h
  3595. * src/TimedHaltCommand.cc
  3596. * src/message.h
  3597. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. Included RecoverableException.h to fix compilation error.
  3599. * test/DHTMessageFactoryImplTest.cc
  3600. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3601. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  3602. * test/DHTPingMessageTest.cc
  3603. * test/DHTGetPeersMessageTest.cc
  3604. * test/DHTFindNodeMessageTest.cc
  3605. * test/DHTAnnouncePeerMessageTest.cc
  3606. * test/MockDHTMessage.h
  3607. * test/MockDHTMessageFactory.h
  3608. * test/MockDHTMessageDispatcher.h: New class.
  3609. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3610. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  3611. virtual.
  3612. * src/DHTMessageDispatcher.h
  3613. * src/DHTMessageDispatcherImpl.{h, cc}
  3614. * src/DHTSetup.cc
  3615. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3616. Adding handling of DHT error message. Just log error message and
  3617. throw exception.
  3618. * src/DHTMessageFactoryImpl.cc
  3619. * test/DHTMessageFactoryImplTest.cc
  3620. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3621. Added handling of dynamic cast failure.
  3622. * src/DHTNodeLookupTask.cc
  3623. * src/DHTPeerLookupTask.cc
  3624. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3625. Added the ability to stop aria2 itself when given time has passed
  3626. from start. Use --stop option to specify time in minutes.
  3627. When 0 is given, this feature is disabled.
  3628. * src/OptionHandlerFactory.cc
  3629. * src/TimeBasedCommand.h: Make _interval protected scope.
  3630. * src/HelpItemFactory.cc
  3631. * src/option_processing.cc
  3632. * src/prefs.h
  3633. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  3634. before calling RequestGroupMan::fillRequestGroupFromReserver().
  3635. Without this modification, the result list shows "ERR" when aria2 is
  3636. stopped by --stop option. It should be "INPR".
  3637. * src/DownloadEngine.{h, cc}
  3638. * src/DownloadEngineFactory.cc
  3639. * src/usage_text.h
  3640. * src/TimedHaltCommand.{h, cc}: New class.
  3641. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3642. Bootstrap through node added by port message.
  3643. Currently bootstrap is executed if the number of buckets in routing
  3644. table is 1.
  3645. * src/BtPortMessage.{h, cc}
  3646. * src/DefaultBtMessageFactory.{h, cc}
  3647. * src/PeerInteractionCommand.cc
  3648. * test/BtPortMessageTest.cc
  3649. * test/MockDHTTask.h
  3650. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3651. Extract the Peer class's member variables, which are only needed after
  3652. PeerInteractionCommand, into PeerSessionResource class.
  3653. This class is instantiated in PeerInteractionCommand class's ctor and
  3654. released in its dtor.
  3655. This will make Peer class lightweight and uses less memory for peers
  3656. which are not connected and wait in the queue.
  3657. * src/PeerChokeCommand.cc
  3658. * src/PeerSessionResource.{h, cc}
  3659. * src/PeerInteractionCommand.cc
  3660. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  3661. * src/DefaultBtInteractive.cc
  3662. * src/BtPieceMessage.cc
  3663. * src/BtInterestedMessage.cc
  3664. * src/BtUnchokeMessage.cc
  3665. * src/DefaultPeerStorage.{h, cc}
  3666. * src/PeerInitiateConnectionCommand.cc
  3667. * src/ActivePeerConnectionCommand.cc
  3668. * src/BtNotInterestedMessage.cc
  3669. * src/DefaultBtMessageDispatcher.cc
  3670. * src/BtChokeMessage.cc
  3671. * src/BtRequestMessage.cc
  3672. * src/Peer.{h, cc}
  3673. * src/BtRegistry.h
  3674. * src/TrackerWatcherCommand.cc
  3675. * src/PeerReceiveHandshakeCommand.cc
  3676. * test/BtExtendedMessageTest.cc
  3677. * test/BtAllowedFastMessageTest.cc
  3678. * test/BtCancelMessageTest.cc
  3679. * test/DefaultPieceStorageTest.cc
  3680. * test/BtBitfieldMessageTest.cc
  3681. * test/BtHaveMessageTest.cc
  3682. * test/BtNotInterestedMessageTest.cc
  3683. * test/BtRequestMessageTest.cc
  3684. * test/PeerSessionResourceTest.cc
  3685. * test/DefaultBtMessageDispatcherTest.cc
  3686. * test/PeerTest.cc
  3687. * test/BtInterestedMessageTest.cc
  3688. * test/BtRejectMessageTest.cc
  3689. * test/BtChokeMessageTest.cc
  3690. * test/DefaultPeerStorageTest.cc
  3691. * test/BtHaveNoneMessageTest.cc
  3692. * test/BtHaveAllMessageTest.cc
  3693. * test/DefaultExtensionMessageFactoryTest.cc
  3694. * test/BtUnchokeMessageTest.cc
  3695. * test/DefaultBtMessageFactoryTest.cc
  3696. * test/HandshakeExtensionMessageTest.cc
  3697. * test/UTPexExtensionMessageTest.cc
  3698. * test/DefaultBtRequestFactoryTest.cc
  3699. * test/BtPieceMessageTest.cc
  3700. Removed typedef PeerStats.
  3701. * src/PeerStat.h
  3702. * src/SegmentMan.cc
  3703. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3704. Added std namespace to copy, remove_copy, back_inserter,
  3705. front_inserter.
  3706. * src/RequestGroupMan.cc
  3707. * src/DefaultPieceStorage.cc
  3708. * src/StreamFileAllocationEntry.cc
  3709. * src/BtFileAllocationEntry.cc
  3710. * src/RequestGroup.cc
  3711. * src/MetalinkEntry.cc
  3712. * src/DelegatingPeerListProcessor.cc
  3713. * src/DefaultBtRequestFactory.cc
  3714. * src/DefaultBtMessageDispatcher.cc
  3715. * src/version_usage.cc: Included <algorithm>
  3716. * src/main.cc
  3717. * src/MetalinkParserController.cc
  3718. * src/DefaultBtContext.cc
  3719. * src/DownloadEngineFactory.cc
  3720. * src/a2algo.h
  3721. Removed.
  3722. * test/StreamUriListParserTest.cc
  3723. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3724. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  3725. ActivePeerConnectionCommand when it is given and
  3726. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  3727. * src/ActivePeerConnectionCommand.{h, cc}
  3728. * src/BtSetup.cc
  3729. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3730. Only add socket to DownloadEngine's select routine when peer or
  3731. localhost is unchoked and interested. This lowers CPU usage a
  3732. little bit.
  3733. * src/PeerInteractionCommand.cc
  3734. * src/PeerAbstractCommand.{h, cc}
  3735. * src/BtInteractive.h
  3736. * src/DefaultBtInteractive.{h, cc}
  3737. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3738. Revert previous change because get_peers message is needed for
  3739. announce_peer anyway.
  3740. * src/DHTGetPeersCommand.cc
  3741. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3742. Request peers thought DHT only when download hasn't finished.
  3743. * src/DHTGetPeersCommand.cc
  3744. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3745. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  3746. * src/DHTBucketRefreshTask.{h, cc}
  3747. * src/DHTSetup.cc
  3748. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3749. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  3750. standard classes.
  3751. Included string.h where mem* function are used.
  3752. Added namespace aria2.
  3753. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3754. Create directory before saving DHT routing table.
  3755. Now ios::failure is now handled properly.
  3756. * src/DHTAutoSaveCommand.cc
  3757. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3758. Removed unnecessary cerr.
  3759. * src/DownloadEngine.cc
  3760. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3761. Catch exception inside DHTMessageReceiver::receiveMessage().
  3762. Log unknown message.
  3763. * src/DHTMessageReceiver.{h, cc}
  3764. * src/DHTMessageFactory.h
  3765. * src/DHTMessageFactoryImpl.{h, cc}
  3766. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  3767. * src/DHTInteractionCommand.cc
  3768. * src/DHTUnknownMessage.{h, cc}
  3769. * test/DHTUnknownMessageTest.cc
  3770. * test/MockDHTMessageFactory.h
  3771. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3772. Commented out ip address comparison because a host can have multiple
  3773. ip addresses and it is hard to predict the hostname is resolved into
  3774. which one.
  3775. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  3776. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3777. * po/Makefile.in: Removed since this is generated by configure.
  3778. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3779. Fixed compiler warning about redefinition of SIZE_MAX.
  3780. Use common.h instead of config.h directly here.
  3781. * src/Platform.{h, cc}
  3782. The check of ENABLE_NLS is made in gettext.h, so it is not required
  3783. here.
  3784. * common.h
  3785. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  3786. Updated gettext related files.
  3787. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  3788. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  3789. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3790. Added DHT functionality, compatible with mainline.
  3791. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  3792. You may need to specify entry point to DHT network using
  3793. --dht-entry-point. DHT uses UDP port to listen incoming message.
  3794. Use --dht-listen-port to specify port number. Make sure that your
  3795. firewall configuration can pass through UDP traffic to the port.
  3796. The routing table is saved in $HOME/.aria2/dht.dat.
  3797. * src/DHT*
  3798. * src/BNode.{h, cc}
  3799. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  3800. particular torrent.
  3801. * src/Data.cc: Rewritten ctor.
  3802. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  3803. --dht-entry-point.
  3804. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  3805. * src/RequestGroup.cc: Initialize DHT functionality. When download
  3806. ends, remove BtContext from DHTPeerAnnounceStorage.
  3807. * src/BtPortMessage.{h, cc}: Rewritten.
  3808. * src/message.h
  3809. * src/OptionHandlerImpl.cc
  3810. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  3811. --dht-entry-point.
  3812. * src/Dictionary.{h, cc} (remove): New function.
  3813. * src/prefs.h
  3814. * src/DefaultBtMessageFactory.h
  3815. * src/BtHandshakeMessage.cc
  3816. * src/ActivePeerConnectionCommand.cc
  3817. * src/SocketCore.{h, cc}: Added datagram socket support.
  3818. * src/DefaultBtMessageFactory.cc
  3819. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  3820. Create DHT commands.
  3821. * src/BtMessageFactory.h
  3822. * src/PeerMessageUtil.{h, cc}
  3823. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3824. Fixed the bug that log file is not written when configuration file doesn't exist.
  3825. This is caused by using Logger class before LogFactory is not configured.
  3826. BUG #1875079
  3827. * src/option_processing.cc
  3828. Warning message "configuration doesn't exist" is only printed when --conf is
  3829. given.
  3830. * src/option_processing.cc
  3831. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3832. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  3833. ShaVisitor is now deprecated and slated to be removed.
  3834. * src/DefaultBtContext.cc
  3835. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3836. Externalize message to message.h
  3837. * src/Platform.cc
  3838. * src/message.h
  3839. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3840. Set default domain and default path to cookie.
  3841. * src/HttpResponse.cc
  3842. * src/CookieBox.{h, cc}
  3843. * src/CookieParser.{h, cc}
  3844. * test/CookieParserTest.cc
  3845. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3846. Added --no-conf and --conf-path command-line option.
  3847. --no-conf option disables loading aria2.conf file.
  3848. --conf-path option changes the configuration file path. The default
  3849. file path is $HOME/.aria2/aria2.conf
  3850. Added a warning message when the configuration file is not found.
  3851. * src/HelpItemFactory.cc
  3852. * src/option_processing.cc
  3853. * src/prefs.h
  3854. * src/usage_text.h
  3855. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Added the message to inform users that other help categories are
  3857. available in -h option.
  3858. * src/version_usage.cc
  3859. * src/TagContainer.{h, cc}
  3860. * test/TagContainerTest.cc
  3861. * src/TaggedItem.{h, cc}
  3862. * test/TaggedItemTest.cc
  3863. * src/HelpItem.h
  3864. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3865. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  3866. from PiecedSegment's ctor.
  3867. Previously Piece::getAllMissingBlockIndexes() is called from
  3868. PiecedSegment() but it is rather expensive since only first element is
  3869. used.
  3870. * src/PiecedSegment.cc
  3871. * src/Piece.{h, cc}
  3872. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3873. Rewritten get*Missing*Index functions. Now no need to allocate memory
  3874. each time these functions are called.
  3875. * src/BitfieldMan.{h, cc}
  3876. * test/BitfieldManTest.cc
  3877. * src/array_fun.h
  3878. * test/array_funTest.cc
  3879. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  3880. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  3881. filtered. Removed unnecessary cast to int32_t.
  3882. * src/BitfieldMan.{h, cc}
  3883. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3884. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  3885. payload length(4bytes) are received. This happens because lenbufLength
  3886. is not updated in this particular case and successive call of
  3887. receiveMessage() overwrites payload length with bytes recieved which
  3888. are payload body.
  3889. * src/PeerConnection.{h, cc}
  3890. * src/message.h
  3891. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3892. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  3893. peer if there are peers that have same ipaddr and port.
  3894. I've experiened segmentation fault and "pure virtual function was
  3895. called" error.
  3896. * src/Peer.h
  3897. * test/PeerTest.cc
  3898. * src/DefaultPeerStorage.cc
  3899. * test/DefaultPeerStorageTest.cc
  3900. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3901. Removed a call to isPowerOf() because it is no longer necessary here
  3902. and a request block is not always power of 2.
  3903. BUG#1866924
  3904. * src/PeerMessageUtil.cc (checkLength)
  3905. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3906. Fixed the bug that always first found Segment is removed from
  3907. usedSegmentEntries. Removed unused functions.
  3908. * src/SegmentMan.{h, cc}
  3909. * test/SegmentManTest.cc
  3910. Fixed the bug that ServerHost is not removed.
  3911. * src/RequestGroup.cc
  3912. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3913. Fixed the bug that SegmentMan::completeSegment() is not called
  3914. even if Segment is complete when --lowest-speed-limit is enabled.
  3915. BUG#1864525
  3916. * src/DownloadCommand.{h, cc}
  3917. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3918. Fixed: hash algorithm 'sha1' is always used.
  3919. * src/DownloadCommand.cc (validatePieceHash)
  3920. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3921. Added --enable-peer-exchange command-line option.
  3922. * src/OptionHandlerFactory.cc
  3923. * src/HelpItemFactory.cc
  3924. * src/option_processing.cc
  3925. * src/usage_text.h
  3926. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3927. Move extension from BtRuntime to ExtensionMessageFactory, because
  3928. extension can be specified per peer, not per torrent.
  3929. * src/DefaultBtInteractive.cc
  3930. * src/BtRuntime.h
  3931. * src/ExtendedMessagingAware.h
  3932. * src/ExtensionMessageFactory.h
  3933. * src/DefaultExtensionMessageFactory.cc
  3934. * test/DefaultExtensionMessageFactoryTest.cc
  3935. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3936. Added categorized option help. Specify category using --help option.
  3937. Also added the ability to search options in forward match.
  3938. * src/HelpItem.{h, cc}
  3939. * test/HelpItemTest.cc
  3940. * src/HelpItemFactory.{h, cc}
  3941. * src/TagContainer.{h, cc}
  3942. * test/TagContainerTest.cc
  3943. * src/option_processing.cc
  3944. * src/prefs.h
  3945. * src/TaggedItem.{h, cc}
  3946. * test/TaggedItemTest.cc
  3947. * src/version_usage.cc
  3948. * src/help_tags.h
  3949. * src/usage_text.h
  3950. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3951. Fixed segmentation fault when bad torrent metainfo is parsed.
  3952. Added dynamic_cast properly to detect the misconfiguration of metainfo
  3953. and then throw exception or skip it.
  3954. * src/DefaultBtContext.{h, cc}
  3955. * test/DefaultBtContextTest.cc
  3956. * src/AnnounceList.cc
  3957. * src/CompactPeerListProcessor.cc
  3958. * src/message.h
  3959. * src/DefaultBtAnnounce.{h, cc}
  3960. * test/DefaultBtAnnounceTest.cc
  3961. * src/BencodeVisitor.cc
  3962. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3963. Added missing "B"(=Byte). So now the message looks like this:
  3964. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  3965. * src/message.h (MSG_SHARE_RATIO_REPORT)
  3966. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3967. Show the seed ratio after torrent downloads.
  3968. For example, after torrent download completed and --seed-time and
  3969. --seed-ratio conditions are fulfilled, following message is printed
  3970. right after "Download complete: .....":
  3971. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  3972. * src/RequestGroupMan.cc
  3973. * src/RequestGroup.{h, cc}
  3974. * src/message.h
  3975. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3976. Remove a defunct control file. A defunct control file means that while
  3977. it exists, but the corresponding download file is missing.
  3978. After its removal, a download restarts from the beginning.
  3979. * src/RequestGroup.cc
  3980. * src/message.h
  3981. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3982. Allocate bitfield in Peer when it is really used. More specifically,
  3983. bitfield in Peer is allocated after the connection is established and
  3984. deallocated when the connection is dropped.
  3985. Since 2 parameters(piece length and total length) was removed from the
  3986. constructor of Peer class, many test classes were modified accordingly.
  3987. See svn log for more detailed information.
  3988. * src/PeerInteractionCommand.cc
  3989. * src/CompactPeerListProcessor.cc
  3990. * src/Peer.cc
  3991. * src/DefaultPeerListProcessor.cc
  3992. * src/PeerListenCommand.cc
  3993. * src/PeerReceiveHandshakeCommand.cc
  3994. Fixed memory leak
  3995. * src/Piece.cc
  3996. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3997. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  3998. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  3999. command-line options.
  4000. * src/option_processing.cc
  4001. * src/ActivePeerConnectionCommand.cc
  4002. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4003. Send have message to peer if it already has the piece.
  4004. * src/BtHaveMessage.{h, cc}
  4005. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4006. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  4007. port.
  4008. * src/DefaultPeerStorage.{h, cc}
  4009. * test/DefaultPeerStorageTest.cc
  4010. * src/HandshakeExtensionMessage.cc
  4011. * test/HandshakeExtensionMessageTest.cc
  4012. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  4013. * src/PeerStorage.h
  4014. * test/MockPeerStorage.h
  4015. * src/PeerListenCommand.cc
  4016. * src/PeerReceiveHandshakeCommand.cc
  4017. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4018. Added --metalink-enable-unique-protocol option.
  4019. * src/Metalink2RequestGroup.cc
  4020. * src/option_processing.cc
  4021. * src/prefs.h
  4022. * src/version_usage.cc
  4023. * doc/aria2c.1.txt
  4024. * doc/aria2c.1
  4025. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Allow a peer in incomingPeer to be added peers.
  4027. * src/DefaultPeerStorage.cc
  4028. * test/DefaultPeerStorageTest.cc
  4029. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4030. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  4031. I could reproduce this bug in following procedure:
  4032. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  4033. 2. Restart aria2.
  4034. 3. You see the download stopped around 99%.
  4035. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4036. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  4037. If timeout is reached, then _nextCommand is unused and it may contains
  4038. segments and they won't be canceled. Actually, timeout is not needed
  4039. here because if the server dropped connection, then retry is made.
  4040. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4041. Added uTorrent compatible Peer Exchange.
  4042. * src/BencodeVisitor.{h, cc}
  4043. * test/BencodeVisitorTest.cc
  4044. * src/BtConstants.h
  4045. * src/BtContext.h: Added 'private' flag.
  4046. * src/BtExtendedMessage.{h, cc}
  4047. * test/BtExtendedMessageTest.cc
  4048. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  4049. reserved field.
  4050. * test/BtHandshakeMessageTest.cc
  4051. * src/BtMessageFactory.h
  4052. * src/BtRegistry.h
  4053. * src/BtRuntime.h: This class holds default extension message IDs for
  4054. aria2. By default, aria2 uses ID 8 for ut_pex.
  4055. * src/DefaultBtContext.cc
  4056. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  4057. When it is true, aria2 enables ut_pex. This value is set by
  4058. PeerInteractionCommand.
  4059. * src/DefaultBtMessageFactory.{h, cc}
  4060. * test/DefaultBtMessageFactoryTest.cc
  4061. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  4062. handling to DefaultBtInteractive class.
  4063. * src/DefaultExtensionMessageFactory.{h, cc}
  4064. * test/DefaultExtensionMessageFactoryTest.cc
  4065. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  4066. the container(peers and incomingPeers. The equality is determined by
  4067. Peer::id).
  4068. * test/DefaultPeerStorageTest.cc
  4069. * src/ExtensionMessage.h
  4070. * test/MockExtensionMessage.h
  4071. * src/ExtensionMessageFactory.h
  4072. * test/MockExtensionMessageFactory.h
  4073. * src/HandshakeExtensionMessage.{h, cc}
  4074. * test/HandshakeExtensionMessageTest.cc
  4075. * src/MetaEntry.h
  4076. * src/Peer.{h, cc}
  4077. * src/PeerInteractionCommand.cc
  4078. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  4079. addIncomingPeer.
  4080. * src/PeerMessageUtil.{h, cc}
  4081. * src/PeerObject.h
  4082. * src/UTPexExtensionMessage.{h, cc}
  4083. * test/UTPexExtensionMessageTest.cc
  4084. * src/message.h
  4085. * src/prefs.h
  4086. Fixed the bug that returns incomplete data when it contains null
  4087. character. A convenient constructor was also added.
  4088. * src/Data.{h, cc}
  4089. Rewritten.
  4090. * src/CompactPeerListProcessor.cc
  4091. Fixed typos.
  4092. * src/message.h
  4093. * src/MetaFileUtil.cc
  4094. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4095. Added "Status Legend" label to the explanation text of 'stat' in
  4096. download result and moved it to the last. BUG#1848214
  4097. * src/RequestGroupMan.cc
  4098. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4099. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  4100. * src/Makefie.am
  4101. * test/Makefile.am
  4102. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4103. Fixed the bug that prevents aria2 from loading cookie file when expire
  4104. value is greater than 2^31-1. BUG#1851066
  4105. * src/CookieBoxFactory.cc
  4106. * test/CookieBoxFactoryTest.cc
  4107. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4108. Fixed possible memory leak when an exception is thrown.
  4109. * src/XML2SAXMetalinkProcessor.cc
  4110. Added Expat support. If both libxml2 and Expat are installed, then
  4111. libxml2 is used by default.
  4112. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  4113. ExpatMetalinkProcessor according to the configuration.
  4114. * src/ExpatMetalinkProcessor.{h, cc}
  4115. * src/main.cc: Removed libxml2 specific header and init/free function.
  4116. * src/MetalinkProcessorFactory.{h, cc}
  4117. * src/MetalinkHelper.cc
  4118. * src/Metalinker.h: Removed unnecessary libxml2 header.
  4119. * src/MetalinkProcessor.h
  4120. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  4121. MetalinkProcessorTest is used instead.
  4122. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  4123. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  4124. MetalinkProcessorFactory::newInstance().
  4125. * m4/libexpat.m4
  4126. * configure.ac: Added configuration options for libexpat.
  4127. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4128. Disabled -s option in metalink download.
  4129. * src/Metalink2RequestGroup.cc
  4130. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4131. If several protocols are available for a mirror in metalink file,
  4132. aria2 now use one of them. --metalink-preferred-protocol option was
  4133. added to specify the preference of protocol.
  4134. * src/AbstractCommand.cc
  4135. * src/OptionHandlerFactory.cc
  4136. * src/ServerHost.{h, cc}
  4137. * src/Metalink2RequestGroup.cc
  4138. * src/RequestGroup.{h, cc}
  4139. * test/RequestGroupTest.cc
  4140. * src/option_processing.cc
  4141. * src/prefs.h
  4142. * src/HttpResponseCommand.cc
  4143. * src/MetalinkResource.{h, cc}
  4144. * src/FtpNegotiationCommand.cc
  4145. * src/MetalinkEntry.{h, cc}
  4146. * src/MetalinkEntryTest.cc
  4147. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4148. Code cleanup and added debug log.
  4149. * src/PeerConnection.cc
  4150. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4151. Compiler error fix: applied the patch by Tiziano Mueller
  4152. * src/RequestGroup.cc
  4153. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4154. Fixed the bug: only first announce URL is tried in AnnounceTier,
  4155. in stopped and completed event.
  4156. * src/AnnounceList.{h, cc}
  4157. * test/AnnounceListTest.cc
  4158. * src/DefaultBtAnnounce.cc
  4159. * test/DefaultBtAnnounceTest.cc
  4160. Sorted URLs.
  4161. * test/Metalink2RequestGroupTest.cc
  4162. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4163. Removed unnecessary string copy. Updated doc and corrected indentation.
  4164. * src/Base64.cc
  4165. Fixed compilation warnings
  4166. * test/DataTest.cc
  4167. * test/HttpRequestTest.cc
  4168. * test/MetaFileUtilTest.cc
  4169. * test/RequestTest.cc
  4170. * Release 0.12.0
  4171. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4172. Updated translations
  4173. * po/{de,fr,ja,nl,ru}.po
  4174. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  4175. translations. Many thanks to translators.
  4176. * po/{ca,es,it,pt_BR,sv}.po
  4177. * po/LINGUAS
  4178. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. Added a notice about URL
  4180. * src/version_usage.cc
  4181. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  4182. Fixed the bug#1845750; CTRL+C does not stop torrent.
  4183. aria2 repeatedly sends stopped request when tracker returns error code.
  4184. * src/AnnounceList.cc
  4185. * test/AnnounceListTest.cc
  4186. * src/AnnounceTier.h
  4187. Added a message when ctrl-c is hit.
  4188. Now second ctrl-c is also handled in signal handler.
  4189. * src/RequestGroupMan.{h, cc}
  4190. * src/RequestGroup.{h, cc}
  4191. * src/MultiUrlRequestInfo.cc
  4192. * src/DownloadEngine.cc
  4193. * src/TrackerWatcherCommand.cc
  4194. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. Code cleanup
  4196. * src/Base64.cc (encode)
  4197. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. Changed Direct/IO enable/disable procesure in file allocation routine.
  4199. * src/SingleFileAllocationIterator.cc
  4200. (SingleFileAllocationIterator):
  4201. Disable directIO if offset is not multiple of 512.
  4202. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  4203. * src/MultiFileAllocationIterator.cc (allocateChunk):
  4204. Enable created SingleFileAllocationIterator's directIO.
  4205. * src/FileAllocationEntry.cc
  4206. (FileAllocationEntry): Enable directIO here.
  4207. (~FileAllocationEntry): Disable directIO here.
  4208. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  4210. * src/Peer.{h, cc}
  4211. * src/DefaultPieceStorage.cc
  4212. * test/DefaultPieceStorageTest.cc
  4213. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4214. Rewritten direct I/O support routine
  4215. * src/SingleFileAllocationIterator.cc
  4216. * src/MultiDiskAdaptor.{h, cc}
  4217. * src/ByteArrayDiskWriter.h
  4218. * src/AbstractSingleDiskAdaptor.h
  4219. * src/AbstractDiskWriter.cc
  4220. * src/DefaultPieceStorage.cc
  4221. * src/DiskWriter.h
  4222. * src/BinaryStream.h
  4223. * src/IteratableChunkChecksumValidator.cc
  4224. * src/IteratableChecksumValidator.cc
  4225. * src/CheckIntegrityEntry.cc
  4226. * src/FileAllocationEntry.cc
  4227. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4228. Fixed typo
  4229. * src/version_usage.cc
  4230. Updated doc
  4231. * doc/aria2c.1.txt
  4232. * doc/aria2c.1
  4233. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4234. Fixed compile error without message digest support.
  4235. * src/FileMetalinkParserState.cc
  4236. * src/MetalinkParserController.{h, cc}
  4237. * test/XML2SAXMetalinkProcessorTest.cc
  4238. * test/MetalinkParserControllerTest.cc
  4239. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4240. Enable direct I/O support in checksum checking.
  4241. * src/IteratableChunkChecksumValidator.{h, cc}
  4242. * test/IteratableChunkChecksumValidatorTest.cc
  4243. * src/CheckIntegrityEntry.cc
  4244. * src/PieceHashCheckIntegrityEntry.cc
  4245. * src/IteratableChecksumValidator.{h, cc}
  4246. * src/BtCheckIntegrityEntry.cc: Added doc.
  4247. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4248. Added --allow-piece-length-change option.
  4249. * src/DefaultBtProgressInfoFile.cc
  4250. * test/DefaultBtProgressInfoFileTest.cc
  4251. * src/OptionHandlerFactory.cc
  4252. * src/option_processing.cc
  4253. * src/prefs.h
  4254. * src/version_usage.cc
  4255. * doc/aria2c.1.txt
  4256. * doc/aria2c.1
  4257. Fixed: duplicated result entry appears when exception is thrown in
  4258. RequestGroup::createInitiateConnectionCommand().
  4259. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  4260. Add RequestGroup to _requestGroup after RequetGroup::
  4261. createInitiateConnectionCommand() succeeds.
  4262. Externalized message
  4263. * src/XML2SAXMetalinkProcessor.cc
  4264. * src/message.h
  4265. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4266. Forced download abort when received negative response from http/ftp
  4267. server.
  4268. * src/HttpResponseCommand.cc
  4269. * src/FtpNegotiationCommand.cc
  4270. * src/HttpResponse.cc
  4271. * src/FtpConnection.cc
  4272. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4273. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  4274. the predecessor, Xml2MetalinkParser class.
  4275. I tested them against 94KB metalink file with 1234 chunk checksums.
  4276. The new one parsed it in 22msec, while it took 6000msec with old one.
  4277. * src/XML2SAXMetalinkProcessor.{h, cc}
  4278. * test/XML2SAXMetalinkProcessorTest.cc
  4279. * src/MetalinkParserController.{h, cc}
  4280. * test/MetalinkParserControllerTest.cc
  4281. * src/MetalinkParserState.h: Also added 16 subclasses.
  4282. * src/main.cc
  4283. * src/Metalink2RequestGroup.cc
  4284. * src/MetalinkHelper.cc
  4285. * src/MetalinkEntry.cc
  4286. * src/ChunkChecksum.h
  4287. Rewritten Base64 class for better performance.
  4288. * src/Base64.{h, cc}
  4289. * test/Base64Test.cc
  4290. * src/HttpRequest.cc
  4291. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4292. Fixed the bug#1841757: aria2 will connect to server to only get
  4293. file size.
  4294. * src/StreamFileAllocationEntry.cc
  4295. * src/option_processing.cc
  4296. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  4297. downloads.
  4298. * src/FtpNegotiationCommand.cc
  4299. Suppressed wrong message when finding PreDownloadHandler
  4300. * src/RequestGroup.cc
  4301. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4302. Updated usage
  4303. * src/version_usage.cc
  4304. Updated man page
  4305. * doc/aria2c.1.txt
  4306. * doc/aria2c.1
  4307. Updated po files
  4308. * po/aria2c.pot
  4309. * po/*.po
  4310. * po/*.gmo
  4311. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4312. Eliminated g++-4.2 warning
  4313. * src/DownloadHandlerConstants.{h, cc}
  4314. * src/Util.cc
  4315. * test/MetaFileUtilTest.cc
  4316. * test/PStringBuildVisitorTest.cc
  4317. Fixed bug: --check-integrity doesn't work for multi file torrent.
  4318. * src/RequestGroup.cc
  4319. * src/BtCheckIntegrityEntry.cc
  4320. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Fixed a2io.h
  4322. * src/a2io.h
  4323. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. Added direct I/O support. The current implementation uses O_DIRECT,
  4325. which is not posix standard and is tested on linux 2.6.21.
  4326. Currently only file allocation uses direct I/O.
  4327. * src/SingleFileAllocationIterator.{h, cc}
  4328. * test/SingleFileAllocationIteratorTest.cc
  4329. * src/MultiFileAllocationIterator.{h, cc}
  4330. * test/MultiFileAllocationIteratorTest.cc
  4331. * src/BinaryStream.h
  4332. * src/DiskWriter.h
  4333. * src/AbstractDiskWriter.{h, cc}
  4334. * src/ByteArrayDiskWriter.h
  4335. * src/DiskAdaptor.h
  4336. * src/AbstractSingleDiskAdaptor.{h, cc}
  4337. * src/MultiDiskAdaptor.{h, cc}
  4338. * src/FileAllocationEntry.cc
  4339. * src/Util.{h, cc}
  4340. * src/OptionHandlerFactory.cc
  4341. * src/prefs.h
  4342. * src/version_usage.cc
  4343. * src/option_processing.cc
  4344. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  4345. handleException.
  4346. * src/MultiFileAllocationIterator.cc
  4347. Added EINTR handling
  4348. * src/SocketCore.cc
  4349. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Updated usage
  4351. * src/version_usage.cc
  4352. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4353. Applied Ross's patch for MinGW port.
  4354. * src/DownloadEngine.h
  4355. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4356. Set Content-Type to SingleFileDownloadContext when http response is
  4357. received.
  4358. * src/HttpResponseCommand.cc
  4359. * src/HttpResponse.{h, cc}
  4360. * test/HttpResponseTest.cc
  4361. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4362. Rewritten to add content-type support.
  4363. * src/DownloadHandler.{h, cc}
  4364. * src/BtPostDownloadHandler.{h, cc}
  4365. * test/BtPostDownloadHandlerTest.cc
  4366. * src/MetalinkPostDownloadHandler.{h, cc}
  4367. * test/MetalinkPostDownloadHandlerTest.cc
  4368. * src/PostDownloadHandler.{h, cc}
  4369. * src/DownloadHandlerConstants.{h, cc}
  4370. * src/RequestGroup.cc
  4371. * src/HttpResponseCommand.cc
  4372. * src/FtpNegotiationCommand.cc
  4373. * src/SingleFileDownloadContext.{h, cc}
  4374. * src/RequestGroup.h
  4375. * src/RequestGroupCriteria.h
  4376. * src/ContentTypeRequestGroupCriteria.h
  4377. Added 'mem' option value for --follow-metalink, --follow-torrent.
  4378. If it is give, metalink/torrent file is not written to the disk, but
  4379. just is kept in memory. Parsing is occurred on memory.
  4380. * src/MetalinkHelper.{h, cc}
  4381. * src/MetalinkProcessor.h
  4382. * src/Xml2MetalinkProcessor.{h, cc}
  4383. * test/Xml2MetalinkProcessorTest.cc
  4384. * src/DownloadHandlerFactory.{h, cc}
  4385. * test/DownloadHandlerFactoryTest.cc
  4386. * src/PreDownloadHandler.{h, cc}
  4387. * src/OptionHandlerFactory.cc
  4388. * src/DefaultBtContext.{h, cc}
  4389. * test/DefaultBtContextTest.cc
  4390. * src/version_usage.cc
  4391. * src/Metalink2RequestGroup.{h, cc}
  4392. * src/RequestGroup.{h, cc}
  4393. * src/a2functional.h
  4394. * test/a2functionalTest.cc
  4395. * src/MemoryBufferPreDownloadHandler.{h, cc}
  4396. * src/OptionHandlerImpl.h
  4397. * src/prefs.h
  4398. * src/Util.{h, cc}
  4399. * test/UtilTest.cc
  4400. Keep DownloadResult rather than RequestGroup after downloads to reduce
  4401. memory usage.
  4402. * src/RequestGroupMan.{h, cc}
  4403. * src/DownloadEngine.cc
  4404. * src/BtDependency.{h, cc}: Changed the type of dependee from
  4405. WeakHandle to SharedHandle because WeakHandle could be null.
  4406. * src/RequestGroup.{h, cc}
  4407. * src/DownloadEngineFactory.cc
  4408. * src/DownloadResult.h
  4409. Set totalLength after download finished
  4410. * src/UnknownLengthPieceStorage.{h, cc}
  4411. Keep torrent file specified in metalink in memory.
  4412. * src/Metalink2RequestGroup.cc
  4413. * src/BtDependency.cc
  4414. * src/TrueRequestGroupCriteria.h
  4415. Fixed the bug: seekg is used where seekp should be used.
  4416. * src/ByteArrayDiskWriter.cc
  4417. * test/ByteArraydiskWriterTest.cc
  4418. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4419. Fixed syntax error
  4420. * test/SequenceTest.cc
  4421. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4422. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4423. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  4424. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  4425. * src/RequestGroup.cc (downloadFinishedByFileLength)
  4426. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4427. Added the check to see whether ares_host_callback accepts timeouts
  4428. with c-ares; only c-ares 1.5.0 or newer accepts it.
  4429. * src/NameResolver.{h, cc}
  4430. * m4/libcares.m4
  4431. * configure.ac: Set C++ for language choice.
  4432. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4433. Fixed: compilation fails without c-ares/ares
  4434. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  4435. Generate http/ftp commands only when download is incomplete.
  4436. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  4437. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4438. Corrected typo. Examples are removed since they are available in man
  4439. page.
  4440. * src/version_usage.cc
  4441. Updated man page.
  4442. * doc/aria2c.1
  4443. * doc/aria2c.1.txt
  4444. * doc/makeman: Commented out sed command.
  4445. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Throw DlAbortEx when a remote file is not found.
  4447. * src/HttpResponse.cc
  4448. * src/FtpNegotiationCommand.cc
  4449. * src/message.h
  4450. Overwrite an existing file if --allow-overwrite=true is given.
  4451. * src/RequestGroup.cc
  4452. Removed unused functions
  4453. * src/AbstractCommand.h
  4454. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. Removed 'extern' from 'extern typedef ...' in src/*.h
  4456. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4457. Updated usage
  4458. * src/version_usage.cc
  4459. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4460. Trim announce URL
  4461. * src/DefaultBtContext.cc
  4462. * test/ShaVisitorTest.cc
  4463. Trim argument s. Give trimed s to exception constructor.
  4464. * src/Util.cc (parseInt)(parseLLInt)
  4465. * test/UtilTest.cc
  4466. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4467. Set precision back to 1.
  4468. * src/ConsoleStatCalc.cc (calculateStat)
  4469. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4470. Replaced strtol with Util::parseInt
  4471. * src/ChunkedEncoding.cc
  4472. * src/HttpConnection.cc
  4473. * src/CookieBoxFactory.cc
  4474. * src/ParameterizedStringParser.cc
  4475. * src/Util.cc
  4476. * test/UtilTest.cc
  4477. * test/OptionHandlerTest.cc
  4478. * src/Request.cc
  4479. Throw exception when empty string is given. The message for exception
  4480. changed.
  4481. * src/Util.cc (parseInt)(parseLLInt)
  4482. * src/message.h
  4483. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4484. Set precision to 2 because share ratio is rounded into 1.0 if precision
  4485. set to 1.
  4486. * src/ConsoleStatCalc.cc (calculateStat)
  4487. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4488. Preallocate non-requested file which is adjacent forward to requested
  4489. file('requested' files means the files given in --select-file option)
  4490. if they share a same piece.
  4491. This fixes long pause in the file system which doesn't support sparse
  4492. files like FAT32 while downloading.
  4493. * src/MultiFileAllocationIterator.{h, cc}
  4494. * test/MultiFileAllocationIteratorTest.cc
  4495. * src/FileEntry.{h, cc}
  4496. Removed unused _option.
  4497. * src/MultiDiskAdaptor.h
  4498. * test/MultiDiskAdaptorTest.cc
  4499. * src/DefaultPieceStorage.cc
  4500. Set the default value of --seed-ratio to 1.0.
  4501. If 0.0 is given, then seeding continues regardless of share ratio.
  4502. * src/version_usage.cc
  4503. * src/option_processing.cc
  4504. * src/BtSetup.cc
  4505. * doc/aria2c.1.txt
  4506. * doc/aria2c.1
  4507. Fixed: Selective download is not working in BitTorrent
  4508. * src/RequestGroup.cc
  4509. Introduced Sequence class. Use this instead of Util::unfoldRange()
  4510. * src/PieceStorage.h
  4511. * test/MockPieceStorage.h
  4512. * src/UnknownLengthPieceStorage.h
  4513. * src/DefaultPieceStorage.{h, cc}
  4514. * src/Metalink2RequestGroup.cc
  4515. * src/RequestGroup.cc
  4516. * src/Sequence.h
  4517. * test/SequenceTest.cc
  4518. * src/IntSequence.h
  4519. * src/message.h
  4520. * src/Util.{h, cc}
  4521. * test/UtilTest.cc
  4522. Added new function 'parse' to catch exception thrown by subclass's
  4523. parseArg
  4524. * src/OptionHandler.h
  4525. * src/OptionParser.cc
  4526. * src/NameMatchOptionHandler.h
  4527. * src/OptionHandlerImpl.h
  4528. * test/OptionHandlerTest.cc
  4529. Added IntegerRangeOptionHandler. Used for --listen-port and
  4530. --select-file. Now --listen-port accepts range of port.
  4531. * src/OptionHandlerFactory.cc
  4532. * src/version_usage.cc
  4533. * src/OptionHandlerImpl.h
  4534. * src/option_processing.cc
  4535. * src/BtSetup.cc
  4536. * src/PeerListenCommand.{h, cc}
  4537. * doc/aria2c.1.txt
  4538. * doc/aria2c.1
  4539. Implemented operator< for Exception class to provide easy way to print
  4540. exception stack trace.
  4541. * src/Exception.{h, cc}
  4542. * src/main.cc
  4543. * src/option_processing.cc
  4544. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4545. * src/version_usage.cc
  4546. (showVersion): Reworked.
  4547. (showUsage): Added examples.
  4548. Removed Hint for total length and file name.
  4549. * src/Metalink2RequestGroup.cc
  4550. * src/RequestGroup.{h, cc}
  4551. * src/HttpResponseCommand.cc
  4552. * src/FtpNegotiationCommand.cc
  4553. Now --follow-torrent and --follow-metalink option work properly.
  4554. * src/RequestGroup.cc
  4555. Updated man page
  4556. * doc/aria2c.1.txt
  4557. * doc/aria2c.1
  4558. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4559. Removed.
  4560. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  4561. Use Segment::operator==()
  4562. * src/HttpConnection.cc
  4563. * src/Segment.h
  4564. Updated usage
  4565. * src/version_usage.cc
  4566. Added EINTR treatment.
  4567. * src/SocketCore.cc
  4568. * src/AbstractDiskWriter.cc
  4569. Rewritten.
  4570. * src/Util.cc (rangedFileCopy)
  4571. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4572. Fixed typo.
  4573. * src/version_usage.cc
  4574. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4575. Implemented. Now -c option works fine.
  4576. * src/DefaultPieceStorage.cc (markPiecesDone)
  4577. * test/DefaultPieceStorageTest.cc
  4578. Removed.
  4579. * src/SegmentMan.{h, cc}
  4580. (markAllPiecesDone)
  4581. (markPieceDone)
  4582. Synchronized po files with
  4583. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  4584. * src/fr.po
  4585. * src/ru.po
  4586. * src/de.po
  4587. * src/ja.po
  4588. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Added ifdef and some modifications to compile without BitTorrent,
  4590. Metalink, MessageDigest
  4591. support.
  4592. * src/PieceHashCheckIntegrityEntry.cc
  4593. * src/MetalinkEntry.h
  4594. * src/version_usage.cc
  4595. * src/main.cc
  4596. * src/DownloadEngine.{h, cc}
  4597. * src/Metalink2RequestGroup.cc
  4598. * src/Peer.cc
  4599. * src/RequestGroup.cc
  4600. * src/MetalinkHelper.cc
  4601. * test/DefaultPieceStorageTest.cc
  4602. * test/MetalinkPostDownloadHandlerTest.cc
  4603. * test/Metalink2RequestGroupTest.cc
  4604. Hide TOTAL SPD when all downloads complete.
  4605. * src/ConsoleStatCalc.cc
  4606. Log target system information.
  4607. * src/main.cc
  4608. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4609. Now --metalink-location accepts a comma-deliminated list of locations.
  4610. * src/MetalinkEntry.{h, cc}
  4611. * test/MetalinkEntryTest.cc
  4612. * src/version_usage.cc
  4613. * src/Metalink2RequestGroup.cc
  4614. * src/Xml2MetalinkProcessor.cc
  4615. * test/Xml2MetalinkProcessorTest.cc
  4616. * doc/aria2c.1.txt
  4617. * doc/aria2c.1
  4618. * src/Util.cc (toUpper)(toLower): Rewritten.
  4619. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4620. Added the ability to detect duplicate download entry which is about to
  4621. download the same file other RequestGroup is downloading.
  4622. * src/RequestGroup.cc
  4623. * src/HttpResponseCommand.cc
  4624. * src/FtpNegotiationCommand.cc
  4625. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4626. Recalculates download progress when loading a control file,
  4627. if the piece length of DownloadContext is different from the one saved
  4628. in the control file. Currently in-flight pieces are ignored.
  4629. * src/DefaultBtProgressInfoFile.cc
  4630. * test/DefaultBtProgressInfoFileTest.cc
  4631. * src/Util.{h, cc}
  4632. * test/UtilTest.cc
  4633. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4634. Do not rotate tiers in announce-list.
  4635. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  4636. AnnounceList::allTiersFailed() used instead to detect whether all
  4637. tiers are tried and failed.
  4638. * test/DefaultBtAnnounceTest.cc
  4639. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  4640. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  4641. * test/AnnounceListTest.cc
  4642. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  4643. clause. Catch RecoverableException instead of DlRetryEx instead.
  4644. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4645. Implemented checksum validation feature(1 checksum for each file)
  4646. The validation takes place after the download.
  4647. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  4648. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  4649. * src/CheckIntegrityCommand.cc: Changed log message.
  4650. * src/Metalink2RequestGroup.cc: Set checksum to
  4651. SingleFileDownloadContext.
  4652. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  4653. PieceHashCheckIntegrity class.
  4654. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  4655. PieceHashCheckIntegrity class.
  4656. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  4657. * src/IteratableValidator.h: New class.
  4658. * src/message.h
  4659. * src/CheckIntegrityEntry.{h, cc}
  4660. * src/IteratableChunkChecksumValidator.{h, cc}
  4661. * src/SingleFileDownloadContext.h
  4662. * src/DownloadCommand.cc
  4663. --allow-overwrite=true is no longer needed to check file integrity
  4664. before download in BitTorrent download.
  4665. * src/RequestGroup.cc (getInitialCommand)
  4666. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  4667. throws exception.
  4668. * src/RequestGroupMan.cc (getInitialCommands)
  4669. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4670. urlencode the given url inside Request::parseUrl(...)
  4671. * src/Request.{h, cc}
  4672. * src/Util.{h, cc}
  4673. * test/RequestTest.cc
  4674. Removed #!metalink3! notation support because it is deleted from
  4675. the metalink specification.
  4676. * src/Request.{h, cc}
  4677. * test/RequestTest.cc
  4678. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4679. Don't connect server before checking file integrity at startup, if
  4680. filesize and output file path are known.
  4681. * src/AbstractCommand.cc
  4682. * src/StreamFileAllocationEntry.cc
  4683. * src/Metalink2RequestGroup.cc
  4684. * src/RequestGroup.{h, cc}
  4685. * src/HttpResponseCommand.cc
  4686. * src/FtpNegotiationCommand.cc
  4687. Added DownloadFailureException. If it is thrown, RequestGroup should
  4688. halt.
  4689. * src/AbstractCommand.cc
  4690. * src/DownloadFailureException.h
  4691. * src/RequestGroup.cc
  4692. Catch RecoverableException, instead of DlAbortEx.
  4693. * src/RequestGroupMan.cc
  4694. * src/FillRequestGroupCommand.cc
  4695. * src/MetaFileUtil.cc
  4696. * src/IteratableChunkChecksumValidator.cc
  4697. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  4698. getGID())
  4699. * src/CheckIntegrityCommand.cc
  4700. * src/message.h
  4701. Print gid instead of idx.
  4702. * src/RequestGroupMan.cc
  4703. Removed exception throwers declaration.
  4704. * src/DirectDiskAdaptor.{h, cc}
  4705. * src/SocketCore.{h, cc}
  4706. * src/MultiDiskAdaptor.{h, cc}
  4707. * src/HttpConnection.{h, cc}
  4708. * src/HttpResponse.{h, cc}
  4709. * src/DiskAdaptor.{h, cc}
  4710. * src/CopyDiskAdaptor.{h, cc}
  4711. * src/MultiDiskAdaptor.{h, cc}
  4712. * src/HttpHeaderProcessor.{h, cc}
  4713. * src/AbstractSingleDiskAdaptor.{h, cc}
  4714. * src/Util.{h, cc}
  4715. * test/UtilTest.cc
  4716. * src/DefaultDiskWriter.{h, cc}
  4717. * src/FtpConnection.{h, cc}
  4718. * src/AbstractDiskWriter.{h, cc}
  4719. Removed duplicate code.
  4720. * src/StreamCheckIntegrityEntry.cc
  4721. Removed unnecessary include.
  4722. * src/DiskWriter.h
  4723. Included Exception.h
  4724. * src/option_processing.cc
  4725. Included 2 files and added doc
  4726. * src/TrackerWatcherCommand.cc
  4727. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  4728. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4729. Changed CheckIntegrityEntry interface so that it can define
  4730. the action when all the chunk checksums are valid.
  4731. * src/CheckIntegrityEntry.h
  4732. * src/StreamCheckIntegrityEntry.{h, cc}
  4733. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  4734. are valid, then aira2 goes to seeding mode. Sometimes it is better
  4735. to exit rather than doing seeding. So, it would be good to toggle this
  4736. behavior.
  4737. * src/CheckIntegrityCommand.cc
  4738. * src/AbstractCommand.cc
  4739. * src/RequestGroup.cc
  4740. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4741. Reflect the download length of in-flight pieces.
  4742. It makes the download length readout more precise.
  4743. * src/DefaultPieceStorage.{h, cc}
  4744. * test/DefaultPieceStorageTest.cc
  4745. * src/a2functional.h
  4746. * test/a2functionalTest.cc
  4747. Lower CPU load when --max-download-limit is used.
  4748. There is up and down in speed indicator when enabling
  4749. http-pipelining but a download goes well. I think the problem is that
  4750. because http-pipelining is enabled, DownloadCommand is created for
  4751. each segment and in its constructor, PeerStat::downloadStart() is
  4752. called. In PeerStat::downloadStart(), speed calculation object is
  4753. reseted, which makes download speed zero.
  4754. * src/DownloadCommand.cc
  4755. Rewritten using accumulate.
  4756. * src/RequestGroupMan.cc (calculateStat)
  4757. Code clearnup.
  4758. * src/FtpNegotiationCommand.cc
  4759. * src/HttpResponseCommand.cc
  4760. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4761. Fixed: Can not resume: aria2 reports download already finished.
  4762. * src/AbstractCommand.{h, cc}
  4763. * src/HttpResponseCommand.cc
  4764. * src/FtpNegotiateCommand.cc
  4765. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4766. Now a file is stored in the directory specified in .metalnk file
  4767. (file[@name]).
  4768. * src/Metalink2RequestGroup.cc
  4769. Create the directory structure when opening the file if it doesn't
  4770. exist.
  4771. * src/AbstractDiskWriter.cc
  4772. * src/Util.{h, cc}
  4773. * src/File.h
  4774. * test/UtilTest.cc
  4775. Removed file name comparison
  4776. * src/Metalink2RequestGroup.cc
  4777. * src/HttpResponseCommand.cc
  4778. Rewritten using Util::mkdirs()
  4779. * src/FileEntry.cc (setupDir)
  4780. * test/FileEntryTest.cc
  4781. Updated doc
  4782. * src/SingleFileDownloadContext.h
  4783. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4784. Now SleepCommand dispatches nextCommand when halt is requested.
  4785. It avoids a possible long wait after hitting CTRL-C.
  4786. * src/SleepCommand.{h, cc}
  4787. * src/RequestGroupAware.{h, cc}
  4788. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  4790. to open listen port, then remove the port number from the tracker
  4791. request.
  4792. * src/DefaultBtAnnounce.cc
  4793. * test/DefaultBtAnnounceTest.cc
  4794. * test/MockPieceStorage.h
  4795. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  4796. them more testable.
  4797. * src/DefaultBtAnnounce.{h, cc}
  4798. * src/DefaultBtContext.{h, cc}
  4799. * src/Util.{h, cc}
  4800. * test/DefaultBtAnnounceTest.cc
  4801. * test/DefaultBtContextTest.cc
  4802. * test/UtilTest.cc
  4803. Added 'B' to upload bytes readout.
  4804. * src/ConsoleStatCalc.cc
  4805. Now the listen port for BitTorrent download is opened when it is
  4806. needed.
  4807. * src/DownloadEngineFactory.cc
  4808. * src/BtSetup.{h, cc}
  4809. * src/PeerListenCommand.{h, cc}
  4810. Now an exception thrown while parsing tracker response is now logged.
  4811. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  4812. called, which means no retry is made in this case, assuming a tracker
  4813. has a problem.
  4814. * src/TrackerWatcherCommand.cc
  4815. Fixed: downloading a file whose length is unkown fails.
  4816. * src/DownloadCommand.cc
  4817. Simplified prepareForNextSegment()
  4818. * src/DownloadCommand.cc
  4819. Updated
  4820. * po/POTFILES.in
  4821. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4822. Re-implemented a file listing for Metalink, which was dropped while
  4823. http/ftp/torrent integration was being implemented.
  4824. * src/MetalinkHelper.{h, cc}: New class.
  4825. * test/MetalinkHelperTest.cc
  4826. * src/main.cc
  4827. * src/Metalink2RequestGroup.cc
  4828. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4829. Added the ability to display the detailed torrent file information.
  4830. Now -S option gives not only a file listing, but also total download
  4831. length, info hash, announce URI, piece length, the number of pieces,
  4832. and mode(single or multi-torrent).
  4833. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  4834. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  4835. KiB)
  4836. * test/UtilTest.cc
  4837. * src/main.cc
  4838. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4839. Added ftp://USER:PASSWD@Servername automatic parsing.
  4840. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  4841. _password. Recognize username and password in URI.
  4842. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  4843. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  4844. * src/RequestFactory.{h, cc}: Removed.
  4845. * src/AuthConfigFactory.{h, cc}: New class.
  4846. * src/FtpConnection.cc: Use AuthConfigFactory.
  4847. * src/HttpRequest.cc: Use AuthConfigFactory.
  4848. * test/HttpRequestTest.cc: Updated.
  4849. * test/RequestTest.cc: Updated.
  4850. * test/AuthConfigFactoryTest.cc: New class.
  4851. * test/RequestFactoryTest.cc: Removed.
  4852. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4853. Use RequestGroup::allDownloadFinished() to decide whether the control
  4854. file should be removed or saved.
  4855. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  4856. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  4857. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4858. Use File::renameTo()
  4859. * src/DefaultBtProgressInfoFile.cc
  4860. Added --no-file-allocation-limit command-line option.
  4861. * src/version_usage.cc
  4862. * src/option_processing.cc
  4863. * src/OptionHandlerFactory.cc
  4864. * src/RequestGroup.{h, cc}
  4865. * src/BtCheckIntegrityEntry.cc
  4866. * src/StreamCheckIntegrityEntry.cc
  4867. * src/prefs.h
  4868. * doc/aria2c.1.txt
  4869. * doc/aria2c.1
  4870. Now prealloc is the default value for --file-allocation option.
  4871. * src/version_usage.cc
  4872. * src/option_processing.cc
  4873. * doc/aria2c.1.txt
  4874. * doc/aria2c.1
  4875. Don't URL-encode user-agent.
  4876. * src/HttpRequest.cc
  4877. Updated translations
  4878. * po/LINGUAS: Added nl for Dutch translation.
  4879. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  4880. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  4881. * po/POTFILES.in: Updated.
  4882. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4883. Added the ability to recognize url-list in a torrent file.
  4884. The retrieved URLs are attached to the corresponding FileEntry.
  4885. * src/DefaultBtContext.{h, cc}
  4886. * src/FileEntry.{h, cc}
  4887. * test/DefaultBtContextTest.cc
  4888. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4889. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  4890. after the download finishes.
  4891. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4892. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  4893. the data smaller than block length.
  4894. A block length can be specified by constructor's argument.
  4895. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  4896. Get a missing piece in the range of given FileEntry. This function is
  4897. not used in the program yet.
  4898. * src/Util.h: Added some macros.
  4899. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Added HTTP/1.1 keep alive and pipelining support.
  4901. See --enable-http-keep-alive and --enable-http-pipelining option.
  4902. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  4903. Segment.
  4904. * src/HttpDownloadCommand.{h, cc}
  4905. * src/OptionHandlerFactory.cc
  4906. * src/HttpConnection.{h, cc}
  4907. * src/version_usage.cc
  4908. * src/HttpInitiateConnectionCommand.cc
  4909. * src/FtpInitiateConnectionCommand.cc
  4910. * src/Segment.h
  4911. * src/HttpRequestCommand.{h, cc}
  4912. * src/option_processing.cc
  4913. * src/prefs.h
  4914. * src/HttpResponseCommand.cc
  4915. * src/SegmentMan.{h, cc}
  4916. * src/FtpNegotiateCommand.cc
  4917. * src/HttpProxyResponseCommand.cc
  4918. * src/Request.cc
  4919. * src/HttpRequest.cc
  4920. * src/DownloadCommand.cc
  4921. * test/HttpRequestTest.cc
  4922. * test/RequestTest.cc
  4923. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4924. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  4925. finished.
  4926. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4927. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  4928. catching it inside the method.
  4929. When no file entry is found in a metalink without querying user
  4930. preferences, throw the exception with the error message that suggests
  4931. metalink file is probably broken.
  4932. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  4933. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4934. Fixed the bug that prevents remote Metalink/Torrent file from begin
  4935. processed.
  4936. * src/RequestGroupMan.cc (removeStoppedGroup)
  4937. Added debug message.
  4938. * src/BtPostDownloadHandler.cc
  4939. * src/MetalinkPostDownloadHandler.cc
  4940. * src/PostDownloadHandler.{h, cc}
  4941. * src/RequestGroup.cc
  4942. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4943. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  4944. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4945. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  4946. stops and there are any unfinished or in-progress downloads.
  4947. Added the legend of "stat".
  4948. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. Throw exception when chunck checksum verification fails.
  4950. * src/DownloadCommand.cc (validatePieceHash): New function.
  4951. * src/PiecedSegment.{h, cc} (clear): New function.
  4952. * src/GrowSegment.{h, cc} (clear): New function.
  4953. * src/Segment.h (clear): New function.
  4954. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  4955. * test/SegmentTest.cc
  4956. * test/GrowSegmentTest.cc
  4957. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4958. Do not send referer when redirected.
  4959. * src/Request.cc (redirectUrl)
  4960. * test/RequestTest.cc
  4961. * test/HttpRequestTest.cc
  4962. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Implemented BitTorrent/http/ftp integrated download.
  4964. I've rewritten lots of files and now some headers have forward
  4965. class declarations to reduce compile time.
  4966. The implementation is extremely alpha stage, I recommend to use this
  4967. for testing purpose only.
  4968. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4969. Fixed the compilation error on 64bit platform.
  4970. * test/HttpHeaderProcessorTest.cc
  4971. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Merged Ross's patch that fixes compilation problem in MinGW
  4973. * test/DefaultBtProgressInfoFileTest.cc
  4974. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4975. Updated fr.po by sebone
  4976. * po/fr.po
  4977. Updated man page.
  4978. * doc/aria2c.1.txt
  4979. * Release 0.11.3
  4980. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4981. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  4982. failure in Metalink.
  4983. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4984. Automatically save *.aria2 control file of http/ftp download in every
  4985. 60 seconds.
  4986. * src/AutoSaveCommand.{h, cc}: New class.
  4987. * src/TimeBasedCommand.{h, cc}: New class.
  4988. * src/DownloadEngineFactory.cc (newConsoleEngine)
  4989. Disable parameterized URI support by default. Added -P option to
  4990. enable the feature.
  4991. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  4992. * src/OptionHandlerFactory.cc
  4993. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  4994. Updated Japanese translation.
  4995. * po/ja.po
  4996. Updated man page.
  4997. * doc/aria2c.1.txt
  4998. * Release 0.11.3-rc
  4999. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5000. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  5001. it is successful, then renamed to *.aria2.
  5002. This prevents *.aria2 file from being truncated or corrupted when
  5003. file system becomes out of space.
  5004. * src/DefaultBtProgressInfoFile.cc (save)
  5005. * src/SegmentMan.cc (save)
  5006. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  5007. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5008. Reduced the fragmentation of bitfield in http/ftp download.
  5009. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  5010. * test/BitfieldManTest.cc
  5011. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5012. Added the ability to disable segmented download in .metalink.
  5013. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  5014. 'url' tag.
  5015. * src/MetalinkEntry.{h, cc}
  5016. * src/RequestResource.{h, cc}
  5017. * src/MetalinkRequestInfo.cc
  5018. * src/Xml2MetalinkProcessor.cc
  5019. * test/Xml2MetalinkProcessorTest.cc
  5020. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Added parameterized URI support.
  5022. * src/main.cc: -Z option added.
  5023. * src/OptionHandlerFactory.cc
  5024. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  5025. * src/PStringDatum.h: New class.
  5026. * src/PStringSegment.{h,cc}: New class.
  5027. * src/PStringNumLoop.h: New class.
  5028. * src/PStringSelect.h: New class.
  5029. * src/NumberDecorator.h: New class.
  5030. * src/FixedWidthNumberDecorator.h: New class.
  5031. * src/AlphaNumberDecorator.h: New class.
  5032. * src/PStringVisitor.h: New class.
  5033. * src/PStringBuildVisitor.{h,cc}: New class.
  5034. * src/ParameterizedStringParser.{h,cc}: New class.
  5035. * src/Util.{h,cc}
  5036. (isNumber): New function.
  5037. (isLowercase): New function.
  5038. (isUppercase): New function.
  5039. (alphaToNum): New function.
  5040. * test/ParameterizedStringParserTest.cc: New class.
  5041. * test/AlphaNumberDecoratorTest.cc: New class.
  5042. * test/PStringBuildVisitorTest.cc: New class.
  5043. * test/UtilTest.cc
  5044. (testIsNumber): New function.
  5045. (testIsLowercase): New function.
  5046. (testIsUppercase): New function.
  5047. (testAlphaToNum): New function.
  5048. Added '\n' after the error message
  5049. * src/RequestInfo.h (printDownloadAbortMessage)
  5050. Added auto file renaming feature in http(s)/ftp download.
  5051. * src/main.cc: Added --auto-file-renaming command-line option.
  5052. * src/OptionHandlerFactory.cc
  5053. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  5054. * src/RequestGroup.{h, cc}
  5055. (shouldCancelDownloadForSafety): Rewritten
  5056. (tryAutoFileRenaming): New function.
  5057. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  5058. * src/HttpResponseCommand.cc
  5059. (executeInternal): Removed the call to RequestGroupMan::
  5060. isSameFileBeingDownloaded()
  5061. * src/FtpNegotiateCommand.cc
  5062. (recvSize): Removed the call to RequestGroupMan::
  5063. isSameFileBeingDownloaded()
  5064. * test/RequestGroupTest.cc: New class.
  5065. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5066. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  5067. IO.
  5068. * src/DefaultBtProgressInfoFile.cc
  5069. * src/MetaFileUtil.cc
  5070. * src/SimpleLogger.cc
  5071. * src/SegmentMan.cc
  5072. * src/Util.cc
  5073. * src/Platform.cc
  5074. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5075. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  5076. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5077. Avoid sparse files if possible, because VFAT32 doesn't support it.
  5078. * src/DefaultDiskWriter.cc (initAndOpenFile)
  5079. Fixed the bug that prevents file allocation is not done when
  5080. dowloading multi-torrent file.
  5081. * src/AbstractDiskWriter.cc (openFile)
  5082. Increase the maximum number of -j option from 15 to 45.
  5083. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5084. Added fr.po, thanks to Charles Landemaine.
  5085. * po/fr.po
  5086. * po/LINGUAS
  5087. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5088. gcc 3.4.4 support:
  5089. * src/DefaultBtContext.cc: int32_t -> int
  5090. * src/main.cc: int -> int32_t, int32_t -> int
  5091. * src/messageDigest.h: uint32_t -> unsigned int
  5092. * src/NameResolver.h: int32_t -> int
  5093. * src/PeerConnection.cc: int -> int32_t
  5094. * src/SpeedCalc.cc: int32_t -> int
  5095. * src/TrackerUpdateCommand.h: int -> int32_t
  5096. * src/Util.cc: int32_t -> int
  5097. * src/Util.h: int32_t -> int
  5098. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  5099. * test/AnnounceListTest.cc: int -> int32_t
  5100. * test/ChunkedEncodingTest.cc: int -> int32_t
  5101. * test/DataTest.cc: int -> int32_t
  5102. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  5103. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  5104. * test/DefaultPieceStorageTest.cc: int -> int32_t
  5105. * test/FeatureConfigTest.cc: int -> int32_t
  5106. * test/MetalinkEntryTest.cc: int -> int32_t
  5107. * test/MockBtRequestFactory.h: int -> int32_t
  5108. * test/MockPieceStorage.h: int -> int32_t
  5109. * test/OptionTest.cc: int -> int32_t
  5110. * test/RequestTest.cc: int -> int32_t
  5111. * test/SegmentManTest.cc: int -> int32_t
  5112. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  5113. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5114. Move sleep functions to Util class:
  5115. * src/Util.cc
  5116. (sleep): New function.
  5117. (usleep): New function.
  5118. * src/DownloadCommand.cc: sleep -> Util::sleep
  5119. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  5120. MinGW build enhancements. The following files are added:
  5121. * src/timegm.{c,h}
  5122. Changes to support the above new files:
  5123. * configure.ac
  5124. * src/Makefile.am
  5125. * src/a2time.h
  5126. * src/Util.cc:
  5127. * src/strptime.c: Added support for %Z option.
  5128. Fixed MinGW non-blocking bug.
  5129. * src/SocketCore.cc
  5130. * src/HttpRequestCommand.cc
  5131. Miscellenous build fixes/enhancements.
  5132. * configure.ac: Added summary report.
  5133. * src/Platform.h: Tweaked #include's.
  5134. * src/a2netcompat.h: Tweaked #include's.
  5135. * src/strptime.h: Tweaked #include's.
  5136. * src/gai_strerror.c: Tweaked #include's.
  5137. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  5138. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  5139. * src/gettimeofday.h: Added HAVE_CONFIG_H
  5140. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5141. Increased the initial connection size in BitTorrent download to 40.
  5142. * src/BtRuntime.h
  5143. Added the usage message of --peer-id-prefix option.
  5144. * src/main.cc
  5145. * Release 0.11.2
  5146. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. MessageDigestHelper is introduced in order to simplify the use
  5148. of message digest. Removed repeated code.
  5149. The message digest algorithm is now specified by string, like "sha1",
  5150. "md5".
  5151. * src/messageDigest.{h, cc}
  5152. * src/MessageDigestHelper.{h, cc}: New class.
  5153. * src/DefaultPieceStorage.cc
  5154. * src/DefaultBtContext.{h, cc}
  5155. (computeFastSet): New function.
  5156. (setInfoHash): Added for unit testing.
  5157. (setNumPieces): Added for unit testing.
  5158. * src/DefaultBtInteractive.cc
  5159. * src/BtPieceMessage.cc
  5160. * src/Peer.cc
  5161. * src/Checksum.h
  5162. * src/message.h
  5163. * src/IteratableChecksumValidator.h
  5164. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  5165. inside it.
  5166. * src/SegmentMan.{h, cc}
  5167. (checkIntegrity): Removed.
  5168. * src/IteratableChunkChecksumValidator.{h, cc}
  5169. * src/Util.h
  5170. (sha1Sum): Removed.
  5171. (simpleMessageDigest): Removed.
  5172. (fileChecksum): Removed.
  5173. (computeFastSet): Removed.
  5174. * src/ShaVisitor.cc
  5175. * src/ChunkChecksum.h
  5176. * src/DownloadCommand.cc
  5177. Removed messageDigest virtual functions.
  5178. * src/MultiDiskAdaptor.{h, cc}
  5179. * src/DiskAdaptor.h
  5180. * src/ByteArrayDiskWriter.h
  5181. * src/DiskWriter.h
  5182. * src/DiskAdaptorWriter.h
  5183. * src/AbstractSingleDiskAdaptor.{h, cc}
  5184. * src/AbstractDiskWriter.{h, cc}
  5185. Fixed comilation error when message digest is disabled.
  5186. * src/MetalinkEntry.{h, cc}
  5187. * src/MetalinkRequestInfo.cc
  5188. Removed srandom and random.
  5189. * src/SimpleRandomizer.h
  5190. Added size() virtual function to DiskAdaptor
  5191. * src/MultiDiskAdaptor.h
  5192. Fixed the bug that causes that files are not opened correctly in
  5193. multi-file torrent.
  5194. * src/TorrentRequestInfo.cc
  5195. * src/MultiDiskAdaptor.cc
  5196. Added SHA256 support
  5197. * src/messageDigest.cc
  5198. * src/Xml2MetalinkProcessor.cc
  5199. Show supported message digest algorithms
  5200. * src/main.cc
  5201. Updated contact info.
  5202. * src/main.cc
  5203. Applied Ross's patch
  5204. * src/a2netcompat.h
  5205. * src/main.cc
  5206. Fixed the bug that prevents a remote metalink from not being processed
  5207. even if '-o foo.metalink' is specified.
  5208. * src/MetalinkRequestInfo.cc
  5209. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5210. Merged Dan's patch:
  5211. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  5212. Use va_copy to avoid core dump on amd64:
  5213. * src/SimpleLogger.cc
  5214. Updated contact info.
  5215. * src/main.cc
  5216. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  5217. digest is not available.
  5218. * src/MetalinkEntry.h
  5219. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5220. Make a2netcompat.h include a2io.h to fix compilation error:
  5221. * src/a2netcompat.h
  5222. * src/SocketCore.cc: Removed include of a2io.h
  5223. * src/Util.cc: Removed include of a2io.h
  5224. Gather time related functions to a2time.h:
  5225. * src/a2time.h: New file.
  5226. * src/DefaultPeerStorage.cc
  5227. * src/SimpleLogger.cc
  5228. * src/Util.{h, cc}
  5229. * src/SimpleRandomizer.h
  5230. * src/TimeA2.{h,cc}
  5231. * src/DownloadCommand.cc
  5232. * src/main.cc
  5233. Removed #ifdef __MINGW32__ since gai_strerror is included in
  5234. a2netcompat.h:
  5235. * src/NameResolver.cc
  5236. Fixed compilation error without openssl:
  5237. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  5238. Added default block to suppress compiler warnings:
  5239. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  5240. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  5241. MinGW build enhancements. The following files are added:
  5242. * src/gai_strerror.{c,h}
  5243. * src/gettimeofday.{c,h}
  5244. Changes to support the above new files:
  5245. * configure.ac
  5246. * src/Makefile.am
  5247. * src/a2netcompat.h
  5248. * src/TimeA2.cc
  5249. * src/DefaultPeerStorage.cc
  5250. * src/NameResolver.cc: removed mingw_strerror() function.
  5251. * src/SocketCore.cc: removed mingw_strerror() function.
  5252. Miscellaneous MinGW build fixes.
  5253. * src/a2io.h: Use _lseeki64() instead of lseek()
  5254. * src/common.h
  5255. * src/DefaultFileAllocator.cc
  5256. * src/GlowFileAllocator.cc
  5257. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  5258. * src/NameResolver.cc
  5259. (callback): Changed int32_t to int.
  5260. (resolve): Changed int32_t to int.
  5261. * src/Platform.cc
  5262. * src/Platform.h
  5263. * test/MultiDiskWriterTest.cc
  5264. * test/PeerMessageUtilTest.cc
  5265. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  5266. Other enhancements and fixes.
  5267. * src/HttpRequestCommand.cc
  5268. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  5269. * src/SocketCore.cc:
  5270. (error): New function to abstract errno/WSAGetLastError().
  5271. (errorMsg): New function to abstract errno/WSAGetLastError().
  5272. (initiateSecureConnection): Added more detailed error reporting.
  5273. * src/SocketCore.h: Added private variable blocking, to allow
  5274. proper handling of OpenSSL psuedo-errors.
  5275. * src/message.h
  5276. (EX_SSL_INIT_FAILURE)
  5277. (EX_SSL_IO_ERROR)
  5278. (EX_SSL_PROTOCOL_ERROR)
  5279. (EX_SSL_UNKNOWN_ERROR)
  5280. (EX_SSL_CONNECT_ERROR)
  5281. (EX_SOCKET_BLOCKING)
  5282. (EX_SOCKET_NONBLOCKING)
  5283. (EX_SOCKET_UNKNOWN_ERROR)
  5284. * src/Util.cc
  5285. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  5286. reserved name.
  5287. (httpGMT): Fixed typo.
  5288. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Merged Ross's win32 patch(manually)
  5290. In the course of merging, following files are added.
  5291. * src/strptime.{h,c}
  5292. * src/libgen.{h,c}
  5293. * src/inet_aton.{h,c}
  5294. * src/Platform.{h,cc}
  5295. * src/localtime_r.{h,c}
  5296. * src/getaddrinfo.{h,c}
  5297. I've gethered network related things, and put them to following file:
  5298. * src/a2netcompat.h
  5299. Also io related things are put to following file:
  5300. * src/a2io.h
  5301. Changed %lld to %s because mingw32 doesn't recognize %lld.
  5302. * src/message.h
  5303. (MSG_ALLOCATION_COMPLETED)
  5304. (EX_TOO_LARGE_FILE)
  5305. (EX_SIZE_MISMATCH)
  5306. (EX_FILE_OFFSET_OUT_OF_RANGE)
  5307. (EX_INVALID_CHUNK_CHECKSUM)
  5308. (EX_INVALID_RANGE_HEADER)
  5309. * src/FileAllocationCommand.cc
  5310. * src/HttpResponse.cc
  5311. * src/RequestGroup.cc
  5312. * src/MultiDiskAdaptor.cc
  5313. * src/OptionHandlerImpl.h
  5314. * src/HttpResponseCommand.cc
  5315. * src/FtpNegotiateCommand.cc
  5316. * src/IteratableChecksumValidator.cc
  5317. * src/SegmentMan.cc
  5318. * src/ChunkChecksumValidator.cc
  5319. Added Randomizer::getRandomNumber(long int)
  5320. * src/Randomizer.h (getRandomNumber)
  5321. * src/SimpleRandomizer.h (getRandomNumber)
  5322. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  5323. * src/Util.cc (randomAlpha): Use this new function.
  5324. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5325. Converted int's to in32_t. long long int's are also converted to
  5326. int64_t
  5327. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5328. Fixed the bug that prevents cookies from being sent to the server
  5329. if the domain of cookie is FQDN and starts with ".".
  5330. * src/Cookie.cc (match)
  5331. To add the ability to change peer id.
  5332. * src/DefaultBtContext.h
  5333. (_peerIdPrefix): New variable
  5334. (setPeerIdPrefix): New function.
  5335. * src/torrentRequestInfo.cc
  5336. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  5337. DefaultBtContext.
  5338. * src/main.cc (main): Added peer-id-prefix command-line option.
  5339. The usage message is not added yet.
  5340. * src/DefaultBtContext.cc
  5341. (generatePeerId): Use _peerIdPrefix.
  5342. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  5343. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5344. Fixed the bug that prevents filename in content-disposition from
  5345. being retrieved when filename is not quoted.
  5346. * src/Util.cc (getContentDispositionFilename)
  5347. Fixed the bug that causes infinate loop and memory leak when file open
  5348. operation failed.
  5349. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5350. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5351. Fixed the bug that causes segfault when all URIs specified are
  5352. unsupported.
  5353. * src/RequestGroupMan.cc (getInitialCommands)
  5354. Check if RequestGroup::createNextCommand() returns empty list of
  5355. commands.
  5356. * src/RequestGroup.cc (createNextCommand)
  5357. Change log level from info to error so that users can notice that
  5358. an error occurred.
  5359. Fixed the bug that causes segfault when a zero-sized file is
  5360. downloaded.
  5361. * src/BitfieldMan.cc (isAllBitSet)
  5362. Return true if bitfieldLength is 0.
  5363. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5364. * src/main.cc
  5365. (showUsage): Added 3 usage examples for metalink download.
  5366. Replace MetalinkChunkChecksum with ChunkChecksum.
  5367. * src/MetalinkChunkChecksum.h: Removed.
  5368. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  5369. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  5370. * src/Xml2MetalinkProcessor.cc
  5371. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  5372. * src/MetalinkRequestInfo.cc (execute)
  5373. * Release 0.11.1
  5374. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5375. Reads URIs from stdin when "-i -" is specified.
  5376. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  5377. * src/UriListParser.h, src/UriListParser.cc: New class.
  5378. * src/StreamUriListParser.h: New class.
  5379. * src/FileUriListParser.h: New class.
  5380. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  5381. instead of UriFileListParser.
  5382. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5383. Made console readout more readable.
  5384. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5385. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5386. Fix the bug that causes -s option not to work.
  5387. * src/main.cc (main)
  5388. * src/a2algo.h: New file.
  5389. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Create directory structure specified in metalink file.
  5391. * src/RequestGroup.h, src/RequestGroup.cc
  5392. (initAndOpenFile): Create a directory to store files if it does not
  5393. exist.
  5394. (getDir): New function.
  5395. Added ETA and download speed for an individual file to readout.
  5396. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5397. * src/RequestGroup.h
  5398. (calculateDownloadSpeed): New function.
  5399. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5400. Made -S option work with metalink file and provided selective download
  5401. to metalink.
  5402. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  5403. (filename): Removed.
  5404. (file): New variable.
  5405. (size): Removed.
  5406. (operator=): Updated.
  5407. (getPath): New function.
  5408. (getLength): New function.
  5409. (toFileEntry): New function.
  5410. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  5411. (execute): Use toStream.
  5412. (showFileEntry): Removed.
  5413. * src/MetalinkRequestInfo.h
  5414. (targetFiles): New variable.
  5415. (setTargetFiles): New variable.
  5416. * src/MetalinkRequestInfo.cc
  5417. (execute): Added the ability to print file information included in
  5418. a metalink file.
  5419. Added selective download mode to metalink.
  5420. * src/main.cc
  5421. (showUsage): Updated to denote that -S and --select-file options are
  5422. applicable to metalink.
  5423. * src/FileEntry.h
  5424. (operator=): New function.
  5425. (getBasename): New function.
  5426. (getDirname): New function.
  5427. * src/Util.h, src/Util.cc
  5428. (toStream): New function.
  5429. * src/Xml2MetalinkProcessor.cc: Updated.
  5430. Made aria2 work with metalink with directory structure.
  5431. * src/File.h, src/File.cc
  5432. (getBasename): New function.
  5433. (getDirname): New function.
  5434. * src/RequestGroup.h, src/RequestGroup.cc
  5435. (_topDir): New variable.
  5436. (setTopDir): New function.
  5437. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  5438. Rewrote HTTP header parsing with stringstream.
  5439. * src/HttpConnection.h, src/HttpConnection.cc
  5440. (HttpRequestEntry): New class.
  5441. (headerBuf): Removed.
  5442. (headerBufLength): Removed.
  5443. (outstandingHttpRequests): Now its element type is
  5444. HttpRequestEntryHandle.
  5445. (findEndOfHeader): Removed.
  5446. (receiveResponse): Rewritten.
  5447. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  5448. Updated doc for -j option to notice that it should be used with -i
  5449. option.
  5450. * src/main.cc (showUsage)
  5451. Removed unused classes.
  5452. * src/RequestInfo.h
  5453. (FileInfo): Removed.
  5454. (checksum): Removed.
  5455. (fileInfo): Removed.
  5456. (setChecksum): Removed.
  5457. (getChecksum): Removed.
  5458. (getFileInfo): Removed.
  5459. Use ISO units.
  5460. * src/ConsoleDownloadEngine.cc
  5461. * src/TorrentConsoleDownloadEngine.cc
  5462. * src/Util.cc (abbrevSize)
  5463. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5464. Added the default listening ports to the help message.
  5465. * src/main.cc (showUsage)
  5466. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. Reduce the number of calls to gettimeofday to lower CPU load.
  5468. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  5469. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  5470. * src/Peer.h (calculateUploadSpeed): New function.
  5471. (calculateDownloadSpeed): New function.
  5472. * src/DefaultPeerStorage.cc
  5473. (CalculateStat): Added _now variable.
  5474. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  5475. and Peer::calculateUploadSpeed(const struct timeval&)
  5476. Drop connection if no request or piece message is exchanged in
  5477. a certain interval.
  5478. * src/DefaultBtInteractive.h
  5479. (btRuntime): New variable.
  5480. (inactiveCheckPoint): New variable.
  5481. (checkActiveInteraction): New function.
  5482. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  5483. request or piece message is received.
  5484. (checkActiveInteraction): New function.
  5485. (doInteractionProcessing): Call checkActiveInteraction.
  5486. Fixed the bug that causes remote Metalink and Torrent files are not
  5487. processed.
  5488. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  5489. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5490. Changed format of log file.
  5491. * src/SimpleLogger.cc
  5492. * Release 0.11.0
  5493. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5494. * src/AbstractCommand.cc
  5495. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  5496. MSG_MAX_TRY from error to info.
  5497. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  5498. * src/message.h
  5499. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  5500. (MSG_DOWNLOAD_ABORTED): Added %s.
  5501. (MSG_RESTARTING_DOWNLOAD): Added %s.
  5502. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  5503. * src/PeerAbstractCommand.cc
  5504. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  5505. * src/Request.h
  5506. (cookieBox): Made ShardHandle.
  5507. * src/RequestGroup.h, src/RequestGroup.cc
  5508. (createNextCommandWithAdj): New function.
  5509. * src/FileAllocationCommand.cc
  5510. (executeInternal): Use createNextCommandWithAdj().
  5511. * src/CheckIntegrityCommand.cc
  5512. (executeInternal): Use createNextCommandWithAdj().
  5513. Added --load-cookies command-option.
  5514. * src/OptionHandlerFactory.cc
  5515. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  5516. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  5517. Now aria2 can handle cookie's expiration date.
  5518. * src/Cookie.h (expires): Changed its type to time_t.
  5519. * src/main.cc: Added --load-cookies command-line option.
  5520. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  5521. * src/Util.h, src/Util.cc (httpGMT): New function.
  5522. * src/Request.cc (Request): Initialize cookieBox using
  5523. CookieBoxFactory.
  5524. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  5525. * src/CookieParser.h, src/CookieParser.cc: New class.
  5526. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  5527. * src/HttpResponseCommand.cc
  5528. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  5529. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  5530. download.
  5531. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5532. Added -j command-line option.
  5533. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5534. * src/main.cc
  5535. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  5536. Rewritten using stringstream.
  5537. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  5538. Rewritten using stringstream.
  5539. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5540. Make download size shown in MB, KB.
  5541. * src/ConsoleDownloadEngine.h (sendStatistics)
  5542. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  5543. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5544. Accept incoming connections if download rate is low.
  5545. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  5546. (_lowestSpeedLimit): New variable.
  5547. (setLowestSpeedLimit): New function.
  5548. (execute): Accept incoming connections if download rate is low.
  5549. MAX_PEERS is ignored in this case.
  5550. Disable PREF_OUT in multiple concurrent download:
  5551. * src/RequestGroup.h, src/RequestGroup.cc
  5552. (setUserDefinedFilename): New function.
  5553. * src/DownloadEngineFactory.cc
  5554. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  5555. concurrent download.
  5556. * src/DefaultSegmentManFactory.cc
  5557. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  5558. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5559. RequestGroup::getNextCommand() was renamed to createNextCommand().
  5560. Added its overloaded method.
  5561. * src/RequestGroup.h
  5562. (_numConcurrentCommand): New variable.
  5563. (setNumConcurrentCommand): New function.
  5564. * src/RequestGroup.cc
  5565. Abort download if same file is being downloaded concurrently.
  5566. * src/RequestGroup.h, src/RequestGroupMan.cc
  5567. (isSameFileBeingDownloaded): New function.
  5568. * src/HttpResponseCommand.cc (executeInternal)
  5569. * src/FtpNegotiateCommand.cc (recvSize)
  5570. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  5571. * main.cc: Added help message for -i option.
  5572. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5573. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  5574. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  5575. * src/MetalinkEntry.h
  5576. (checksum): Changed to ChecksumHandle
  5577. * src/MetalinkRequestInfo.cc
  5578. (checksum): Changed to ChecksumHandle
  5579. * src/File.cc
  5580. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  5581. * src/common.h
  5582. (DIR_OPEN_MODE): New definition
  5583. * src/RequestGroup.cc
  5584. (prepareForNextAction): Added an argument.
  5585. * src/message.h
  5586. (MSG_GOOD_CHECKSUM): New definition
  5587. (MSG_BAD_CHECKSUM): New definition
  5588. * src/HttpResponseCommand.cc
  5589. (handleDefaultEncoding): Continue download sequence in new
  5590. non-segmented download.
  5591. * src/FileAllocationEntry.h
  5592. (_nextDownloadCommand): New variable.
  5593. * src/DownloadCommand.cc
  5594. (prepareForNextSegment): Create ChecksumCommand if checksum is
  5595. available.
  5596. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  5597. * src/IteratableChecksumValidator.h,
  5598. src/IteratableChecksumValidator.cc: New class.
  5599. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  5600. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5601. Change file mode to 666:
  5602. * src/common.h (OPEN_MODE): New definition.
  5603. * src/File.cc
  5604. * src/Util.cc
  5605. * src/Directry.cc
  5606. * src/AbstractDiskWriter.cc
  5607. Change the level of log message "download aborted" to debug:
  5608. * src/PeerAbstractCommand.cc (execute)
  5609. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  5610. * src/TrackerWatcherCommand.cc
  5611. (createCommand): Sleep some seconds after request failed.
  5612. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  5613. then abort tracker request.
  5614. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5615. * Added the simultaneous download feature.
  5616. * src/main.cc: Print "Exception caught: " when exception is caught.
  5617. Use CUIDCounter instead of BtRuntime::getNewCuid():
  5618. * src/ActivePeerConnectionCommand.cc
  5619. * src/PeerInteractionCommand.cc
  5620. * src/BtRuntime.h
  5621. (cuidCounter): Removed.
  5622. (getNewCuid): Removed.
  5623. * src/DownloadEngineFactory.cc
  5624. * src/PeerListenCommand.cc
  5625. * src/TrackerUpdateCommand.cc
  5626. * src/PeerInitiateConnectionCommand.cc
  5627. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5628. * src/PeerAbstractCommand.cc
  5629. (onAbort): Call PeerStorage::returnPeer()
  5630. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  5631. (incomingPeers): New variable.
  5632. (addIncomingPeer): New function.
  5633. (returnPeer): New function.
  5634. (onErasingPeer): New function.
  5635. (addPeer): push_back -> push_front
  5636. (getActivePeers): Rewritten.
  5637. (calculateStat): Rewritten.
  5638. * src/PeerStorage.h
  5639. (TransferStat::copy): New function.
  5640. (TransferStat::TransferStat): New function.
  5641. (TransferStat::operator=): New function.
  5642. (addIncomingPeer): New function.
  5643. (returnPeer): New function.
  5644. * src/PeerListenCommand.cc
  5645. (execute): Use PeerStorage::addIncomingPeer() instead of
  5646. Peer::addPeer().
  5647. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Connect to a peer actively when download speed is lower than specified
  5649. speed in torrent download:
  5650. * src/ActivePeerConnectionCommand.h: New class.
  5651. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5652. * src/HttpRequest.cc (createRequest): url-encode user-agent
  5653. * src/main.cc: Fixed the bug that prevents download if .netrc
  5654. doesn't exist.
  5655. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5656. To cache resolved hostname:
  5657. * src/AbstractCommand.h, src/AbstractCommand.cc
  5658. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  5659. Added dns cache.
  5660. * src/FtpInitiateConnectionCommand.cc
  5661. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  5662. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  5663. NameResolver working without ares.
  5664. * src/TorrentRequestInfo.cc
  5665. (execute): Don't cache dns in torrent download.
  5666. * src/HttpInitiateConnectionCommand.cc
  5667. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  5668. * src/DNSCache.h: New class.
  5669. * src/UrlRequestInfo.cc
  5670. (execute): Use dns cache.
  5671. In http request, suppress port number in http request header if port
  5672. is 80 or 443:
  5673. * src/HttpRequest.cc (getHostText): Suppress port number in http
  5674. request header if port is 80 or 443.
  5675. (createProxyRequest): Allways send port number.
  5676. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. To add the command-line option which disables netrc support:
  5678. * src/OptionHandlerFactory.cc
  5679. (createOptionHandlers): Added PREF_NO_NETRC.
  5680. * src/main.cc: Added -n option.
  5681. * src/prefs.h (PREF_NO_NETRC): New definition.
  5682. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  5683. V_TRUE.
  5684. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  5685. is V_FALSE. This may get configurable in the future release.
  5686. To clear peer's error status by time basis:
  5687. * src/PeerAbstractCommand.cc
  5688. (onAbort): Call Peer::startBadCondition().
  5689. * src/Peer.h, src/Peer.cc
  5690. (error): Removed.
  5691. (_badConditionStartTime): New variable.
  5692. (_badConditionInterval): New variable. Initialized to 10 seconds.
  5693. (startBadCondition): New function.
  5694. (isGood): New function.
  5695. * src/DefaultPeerStorage.cc
  5696. (addPeer): Use Peer::isGood().
  5697. (FindFinePeer): Use Peer::isGood().
  5698. Always include port number in http request header:
  5699. * src/HttpRequest.cc (getHostText): Always include port number in
  5700. http request header.
  5701. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5702. To the ability to read options from a config file:
  5703. * src/main.cc: Command-line parameter validation is delegated to
  5704. OptionHandler class.
  5705. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  5706. * src/Option.h, src/Option.cc (clear): New function.
  5707. * src/OptionParser.h, src/OptionParser.cc: New class.
  5708. * src/OptionHandler.h: New class.
  5709. * src/NameMatchOptionHandler.h: New class.
  5710. * src/OptionHandlerImpl.h: New classes.
  5711. * src/prefs.h: '_' -> '-'
  5712. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  5713. (FTP_PASV): New definition.
  5714. * src/Util.h, src/Util.cc (getRealSize): New function.
  5715. To disable netrc support if .netrc file does not have correct
  5716. permissions:
  5717. * src/File.h, src/File.cc (mode): New function.
  5718. To prevent confidential information to be logged:
  5719. * src/HttpConnection.h, src/HttpConnection.cc
  5720. (eraseConfidentialInfo): New function.
  5721. (sendRequest): Call eraseConfidentialInfo().
  5722. (sendProxyRequest): Call eraseConfidentialInfo().
  5723. * src/main.cc: Validate permissions of .netrc file.
  5724. To add --user-agent command-line option:
  5725. * src/main.cc: Added new command line option: --user-agent
  5726. * src/prefs.h (PREF_USER_AGENT): New definition.
  5727. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  5728. parameter to HttpRequest object.
  5729. * src/AbstractProxyRequestCommand.cc
  5730. (executeInternal): Set user-agent option parameter to HttpRequest
  5731. object.
  5732. Marged the patches from Dan Fandrich.
  5733. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5734. Use filename and size from Metalink file instead of sending HEAD
  5735. request:
  5736. * src/UrlRequestInfo.h
  5737. (_filename): New variable.
  5738. (_totalLength): New variable.
  5739. (setTotalLength): New variable.
  5740. (setFilename): New variable.
  5741. * src/MetalinkRequestInfo.cc
  5742. (execute): Set filename and size to UrlRequestInfo
  5743. * src/UrlRequestInfo.cc
  5744. (execute): Use filename and size from Metalink instead of seding
  5745. HEAD request to servers.
  5746. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. To add the ability to resume downloading a partially downloaded file
  5748. which is downloaded from the beginning:
  5749. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  5750. takes this role.
  5751. * src/main.cc: Added -c option.
  5752. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  5753. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  5754. * src/prefs.h (PREF_CONTINUE): New definition.
  5755. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  5756. * src/DefaultDiskWriter.cc
  5757. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  5758. * src/AbstractDiskWriter.h
  5759. (glowFileAllocator): New variable.
  5760. * src/AbstractDiskWriter.cc
  5761. (openExistingFile): Now preallocate file space from the end of the
  5762. existing file if totalLength argument is specified and grater than 0.
  5763. * src/UrlRequestInfo.cc: If -c option is specified and the file
  5764. to download exists in local, continue the download of the file.
  5765. --allow-overwrite=true is assumed in this context.
  5766. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  5767. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  5768. Throw exception if --check-integrity=true is specified but chunk
  5769. checksums are not provided:
  5770. * src/UrlRequestInfo.cc
  5771. Do not print URLs to stdout:
  5772. * src/UrlRequestInfo.cc
  5773. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5774. * src/Request.h: Use AuthResolver to get authentication information.
  5775. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  5776. set to RequestFactory object.
  5777. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  5778. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  5779. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  5780. create Request object.
  5781. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  5782. To integrate Netrc into exsiting classes:
  5783. * src/Request.h
  5784. (_userDefinedAuthConfig): New variable.
  5785. (findNetrcAuthenticator): New function.
  5786. (segment): Removed.
  5787. (setUserDefinedAuthConfig): New function.
  5788. (resolveHttpAuthConfigItem): New function.
  5789. (resolveFtpAuthConfigItem): New function.
  5790. (resolveHttpProxyAuthConfigItem): New function.
  5791. * src/HttpRequest.h
  5792. (authConfig): Removed.
  5793. (proxyAuthConfig): Removed.
  5794. (setAuthConfig): Removed.
  5795. (setProxyAuthConfig): Removed.
  5796. * src/UrlRequest.h
  5797. (getHeadResult): Added a parameter: authConfigHandle
  5798. * src/common.h
  5799. (SingletonHolder.h): New include.
  5800. * src/main.cc
  5801. (Netrc.h): New include.
  5802. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  5803. Added initial value of PREF_NETRC_PATH.
  5804. Added the initialization of netrc.
  5805. * src/AuthConfig.h: New class.
  5806. * src/prefs.h
  5807. (PREF_NETRC_PATH): New definition.
  5808. * src/HttpAuthConfig.h: Removed.
  5809. * src/Netrc.cc
  5810. (getRequiredNextToken): New function.
  5811. (skipMacdef): New function.
  5812. (parse): Rewritten.
  5813. * src/Netrc.h
  5814. (getRequiredNextToken): New function.
  5815. (skipMacdef): New function.
  5816. * src/Util.h, src/Util.cc
  5817. (getHomeDir): New function.
  5818. * src/TrackerWatcherComand.cc
  5819. (createRequestCommand): Use AuthConfig.
  5820. * src/FtpConnection.cc
  5821. (sendUser): Use Request::resolveFtpAuthConfigItem().
  5822. (sendPass): Use Request::resolveFtpAuthConfigItem().
  5823. * src/Request.cc
  5824. (findNetrcAuthenticator): New function.
  5825. (resolveHttpAuthConfigItem): New function.
  5826. (resolveFtpAuthConfigItem): New function.
  5827. (resolveHttpProxyAuthConfigItem): New function.
  5828. * src/UrlRequestInfo.cc: Use AuthConfig.
  5829. * src/HttpRequest.cc
  5830. (createRequest): Use authConfig.
  5831. (getProxyAuthString): Use authConfig.
  5832. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  5833. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  5834. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. To reduce overhead to find commands whose socket is either
  5836. readable or writable in the download engine loop:
  5837. * src/Command.h, src/Command.cc
  5838. (STATUS): New enum.
  5839. (status): New variable.
  5840. (statusMatch): New function.
  5841. (setStatusActive): New function.
  5842. (setStatusInactive): New function.
  5843. * src/DownloadEngine.h, src/DownloadEngine.cc
  5844. (executeCommand): New function.
  5845. (run): Simplified.
  5846. (waitData): Call Command::setStatusActive() when command's socket is
  5847. readable or writable.
  5848. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5849. To handle Segment as SegmentHandle:
  5850. * src/AbstractCommand.cc (execute): Rewritten.
  5851. * src/SegmentMan.h: Segment -> SegmentHandle
  5852. Introducded HttpResponse class, HttpRequest class to improve code
  5853. extensiveness and make it clear:
  5854. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  5855. HttpResponse class.
  5856. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  5857. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  5858. * src/HttpConnection.cc: Contruction of http request were moved to
  5859. HttpRequest class.
  5860. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  5861. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  5862. * src/HttpAuthConfig.h: New class.
  5863. * src/Range.h: New class.
  5864. To make FtpTunnel{Request, Response}Command and
  5865. HttpProxy{Request, Response}Command derived from
  5866. AbstractProxy{Request, Response}Command:
  5867. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  5868. Derived from AbstractProxyRequestCommand class.
  5869. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  5870. Derived from AbstractProxyResponseCommand class.
  5871. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  5872. Derived from AbstractProxyRequestCommand class.
  5873. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  5874. Derived from AbstractProxyResponseCommand class.
  5875. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  5876. : New class.
  5877. * src/AbstractProxyResponseCommand.h,
  5878. src/AbstractProxyResponseCommand.cc: New class.
  5879. To add netrc support:
  5880. * src/Netrc.h, src/Netrc.cc: New class.
  5881. * src/Util.h, src/Util.cc (split): New function.
  5882. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  5883. "Content-Range" header instead of "Range" header.
  5884. * src/HttpHeader.h
  5885. (getStatus): Removed.
  5886. (setStatus): Removed.
  5887. * src/Segment.h
  5888. (getPositionToWrite): New function.
  5889. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. * src/HttpHeader.h
  5891. (Range.h): New include.
  5892. (status): New variable.
  5893. (HttpHeader): Initialized status with 0.
  5894. (getStatus): New function.
  5895. (setStatus): New function.
  5896. (getRange): New function.
  5897. (HttpHeaderHandle): New function.
  5898. * src/HttpHeader.cc
  5899. (getRange): New function.
  5900. * src/Request.h
  5901. (RequestWeakHandle): New definition.
  5902. * src/HttpConnection.h
  5903. (HttpConnectionHandle): New type definition.
  5904. * src/HttpConnection.cc
  5905. (receiveResponse): Set HTTP status to headers.
  5906. * src/main.cc
  5907. (showUsage): Fixed typo.
  5908. * src/Segment.h
  5909. (SegmentHandle): New type definition.
  5910. * src/BitfieldMan.h
  5911. (getMissingUnusedLength): New function.
  5912. * src/BitfieldMan.cc
  5913. (getMissingUnusedLength): New function.
  5914. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5915. To fix static initialization order problem:
  5916. * src/BitfieldManFactory.h
  5917. (defaultRandomizer): Removed.
  5918. (factory): New variable.
  5919. (getNewFactory): Removed.
  5920. (getFactoryInstance): New function.
  5921. (setDefaultRandomizer): Rewritten.
  5922. (getDefaultRandomizer): Rewritten.
  5923. * src/BitfieldManFactory.cc
  5924. (defaultRandomizer): Removed.
  5925. (factory): Initialized to 0.
  5926. (BitfieldManFactory): Initialized randomizer to 0.
  5927. * src/DefaultPieceStorage.cc
  5928. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  5929. * src/Peer.cc
  5930. (Peer): getNewFactory() -> getFactoryInstance()
  5931. * src/SegmentMan.cc
  5932. (initBitfield): getNewFactory() -> getFactoryInstance()
  5933. * src/Piece.cc
  5934. (Piece): getNewFactory() -> getFactoryInstance()
  5935. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. To fix the bug that causes crash on Max OS X:
  5937. * src/SimpleRandomizer.h
  5938. (getInstance): Create new instance if the static variable is null.
  5939. * src/SimpleRandomizer.cc
  5940. (randomizer): Initialized to 0.
  5941. * src/BitfieldManFactory.h
  5942. (getNewFactory): Removed the call to setRandomizer().
  5943. To fix the miscalculation of the range of checksum:
  5944. * src/BitfieldMan.h
  5945. (isBitSetOffsetRange): New function.
  5946. * src/BitfieldMan.cc
  5947. (isBitSetOffsetRange): New function.
  5948. * src/SegmentMan.cc
  5949. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  5950. Use bitfield->getBlockLength() instead of segment.segmentLength.
  5951. * Release 0.10.1
  5952. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5953. To lower CPU usage in BitTorrent download when --max-upload-limit
  5954. command-line option specified:
  5955. * src/DefaultBtMessageDispatcher.cc
  5956. (sendMessages): Calculate uploading speed only when current message
  5957. is uploading data and is not sent yet.
  5958. * src/DefaultPeerStorage.h
  5959. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  5960. * src/HttpResponseCommand.cc
  5961. (handleDefaultEncoding): Added the cast to int32_t to itos.
  5962. This fixes compile error in Soralis 10.
  5963. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5964. To fix segfault in Metalink download:
  5965. * src/UrlRequestInfo.h
  5966. (filename): Removed.
  5967. (totalLength): Removed.
  5968. (setTotalLength): Removed.
  5969. (setFilename): Removed.
  5970. * src/MetalinkRequestInfo.cc
  5971. (execute): Do not set filename and totalLength to reqInfo.
  5972. Set chunk checksum to reqInfo if it is not null.
  5973. * src/HttpResponseCommand.cc
  5974. (executeInternal): Fixed filename in log.
  5975. (handleDefaultEncoding): Removed the call to initBitfield() and
  5976. markAllPiecesDone().
  5977. (handleOtherEncoding): Added HEAD method handling.
  5978. * src/FtpNegotiateCommand.cc
  5979. (executeInternal): Added SEQ_HEAD_OK handling.
  5980. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  5981. return false.
  5982. * src/FtpNegotiateCommand.h
  5983. (SEQ_HEAD_OK): New definition.
  5984. * src/SegmentMan.cc
  5985. (initBitfield): Delete bitfield.
  5986. (isChunkChecksumValidationReady): Fixed the condition.
  5987. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  5988. works fine.
  5989. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5990. * src/Xml2MetalinkProcessor.h
  5991. (xpathExists): New function.
  5992. * src/Xml2MetalinkProcessor.cc
  5993. (xpathExists): New function.
  5994. Not to send HEAD request if filename and size are available in Metalink
  5995. file:
  5996. * src/UrlRequestInfo.h
  5997. (filename): New variable.
  5998. (totalLength): New variable.
  5999. (setTotalLength): New function.
  6000. (setFilename): New function.
  6001. * src/MetalinkRequestInfo.cc
  6002. (execute): Set filename and size to UrlRequestInfo.
  6003. * src/MetalinkEntry.cc
  6004. (MetalinkEntry): Initialize size with 0.
  6005. * src/UrlRequestInfo.cc
  6006. (execute): Set filename and size to SegmentMan.
  6007. Not to download rest of the files after selected files are downloaded
  6008. in BitTorrent:
  6009. * src/PieceStorage.h
  6010. (allDownloadFinished): New function.
  6011. * src/DefaultBtAnnounce.cc
  6012. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  6013. downloadFinished.
  6014. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  6015. * src/DefaultPieceStorage.cc
  6016. (completePiece): Use allDownloadFinished instead of downloadFinished.
  6017. Commented out the call to finishSelectiveDownloadingMode().
  6018. (downloadFinished): Call isFilteredAllBitSet() instead of
  6019. isAllBitSet().
  6020. (allDownloadFinished): New function.
  6021. * src/DefaultBtInteractive.cc
  6022. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  6023. downloadFinished().
  6024. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  6025. * src/TorrentDownloadEngine.cc
  6026. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  6027. * src/BitfieldMan.h
  6028. (isFilteredAllBitSet): New function.
  6029. * src/ShareRatioSeedCriteria.h
  6030. (PieceStorage.h): New include.
  6031. (pieceStorage): New variable.
  6032. (evaluate):
  6033. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  6034. * src/BitfieldMan.cc
  6035. (isFilteredAllBitSet): New function.
  6036. (isAllBitSet): Filter is not took into account.
  6037. Rename --force-truncate as --allow-overwrite:
  6038. * src/TorrentRequestInfo.cc
  6039. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  6040. * src/main.cc
  6041. (showUsage): --force-truncate -> --allow-overwrite
  6042. * src/message.h
  6043. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  6044. * src/prefs.h
  6045. (PREF_FORCE_TRUNCATE): Removed.
  6046. (PREF_ALLOW_OVERWRITE): New definition.
  6047. * src/SegmentMan.cc
  6048. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  6049. * src/MetalinkRequestInfo.cc
  6050. (execute): Queueing message are now logged in info level.
  6051. * src/common.h
  6052. (LONG_LONG_MAX): Removed.
  6053. (LONG_LONG_MIN): Removed.
  6054. * src/HttpResponseCommand.cc
  6055. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  6056. * src/FtpNegotiateCommand.cc
  6057. (recvSize): LONG_LONG_MAX -> INT64_MAX
  6058. * src/main.cc
  6059. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  6060. command-line option.
  6061. (main): Added --check-integriy and --realtime-chunk-checksum
  6062. command-line option.
  6063. --force-truncate -> --allow-overwrite
  6064. Set initial value of --check-integrity option to false.
  6065. Don't show usage when error occurs while persing command-line options.
  6066. Removed deprecated --upload-limit option.
  6067. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6068. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  6069. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  6070. * src/BtAllowedFastMessage.cc:
  6071. * src/BtBitfieldMessage.cc
  6072. * src/BtCancelMessage.cc
  6073. * src/BtChokeMessage.cc
  6074. * src/BtHaveAllMessage.cc
  6075. * src/BtHaveMessage.cc
  6076. * src/BtHaveNoneMessage.cc
  6077. * src/BtInterestedMessage.cc
  6078. * src/BtNotInterestedMessage.cc
  6079. * src/BtPieceMessage.cc
  6080. * src/BtPortMessage.cc
  6081. * src/BtRejectMessage.cc
  6082. * src/BtRequestMessage.cc
  6083. * src/BtSuggestPieceMessage.cc
  6084. * src/BtUnchokeMessage.cc
  6085. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  6086. files are affected.
  6087. * src/ChunkChecksumValidator.cc
  6088. * src/SegmentMan.cc
  6089. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6090. To add chunk checksum validation:
  6091. * src/MetalinkEntry.h
  6092. (MetalinkChunkChecksum.h): New include.
  6093. (chunkChecksum): New variable.
  6094. * src/Request.h
  6095. (method): New variable.
  6096. (setMethod): New function.
  6097. (getMethod): New function.
  6098. (METHOD_GET): New static constant.
  6099. (METHOD_HEAD): New static constant.
  6100. * src/Xml2MetalinkProcessor.h
  6101. (getPieceHash): New function.
  6102. * src/PieceStorage.h
  6103. (markAllPiecesDone): New function.
  6104. (checkIntegrity): New function.
  6105. * src/FileAllocator.h
  6106. (NullFileAllocationMonitor.h): New include.
  6107. (FileAllocator): Initialize fileAllocationMonitor with new
  6108. NullFileAllocationMonitor().
  6109. * src/MultiDiskAdaptor.h
  6110. (messageDigest.h): Remove include.
  6111. (ctx): Removed.
  6112. (hashUpdate): Added ctx.
  6113. (MultiDiskAdaptor): Removed ctx.
  6114. (sha1Sum): Renamed as messageDigest.
  6115. (messageDigest): New function.
  6116. * src/UrlRequestInfo.h
  6117. (HeadResult): New class.
  6118. (digestAlgo): New variable.
  6119. (chunkChecksumLength): New variable.
  6120. (chunkChecksums): New variable.
  6121. (getHeadResult): New function.
  6122. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  6123. (setDigestAlgo): New function.
  6124. (setChunkChecksumLength): New function.
  6125. (setChunkChecksums): New function.
  6126. * src/DefaultPieceStorage.cc
  6127. (DiskAdaptorWriter.h): New include.
  6128. (ChunkChecksumValidator.h): New include.
  6129. (markAllPiecesDone): New function.
  6130. (checkIntegrity): New function.
  6131. * src/DefaultBtContext.h
  6132. (getPieceHashes): New function.
  6133. * src/TorrentRequestInfo.cc
  6134. (execute): Try to validate chunk checksum if file already exists and
  6135. .aria2 file doesn't there and user allows aria2 to overwrite it.
  6136. * src/messageDigest.h
  6137. (~MessageDigestContext): Added digestFree().
  6138. * src/MetalinkRequestInfo.cc
  6139. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  6140. * src/DiskAdaptor.h
  6141. (messageDigest.h): New include.
  6142. (sha1Sum): Renamed as messageDigest.
  6143. (messageDigest): New function.
  6144. * src/DownloadCommand.h
  6145. (PeerStat.h): New include.
  6146. (maxDownloadSpeedLimit): New variable.
  6147. (startupIdleTime): New variable.
  6148. (lowestDownloadSpeedLimit): New variable.
  6149. (peerStat): New variable.
  6150. (setMaxDownloadSpeedLimit): New function.
  6151. (setStartupIdleTime): New function.
  6152. (setLowestDownloadSPeedLimit): New function.
  6153. * src/BtContext.h
  6154. (getPieceHashes): New function.
  6155. * src/main.cc
  6156. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  6157. option to true for testing purpose.
  6158. * src/BtPieceMessage.cc
  6159. (checkPieceHash): Use messageDigest
  6160. * src/DownloadEngine.cc
  6161. (SetDescriptor): Removed.
  6162. (AccumulateActiveCommand): Removed.
  6163. (waitData): Rewritten.
  6164. (updateFdSet): Rewritten.
  6165. * src/MultiDiskAdaptor.cc
  6166. (hashUpdate): Added ctx.
  6167. (sha1Sum): Renamed as messageDigest.
  6168. (messageDigest): New function.
  6169. * src/BitfieldMan.h
  6170. (isBitRangeSet): New function.
  6171. (unsetBitRange): New function.
  6172. * src/ByteArrayDiskWriter.h
  6173. (sha1Sum): Renamed as messageDigest.
  6174. (messageDigest): New function.
  6175. * src/ConsoleDownloadEngine.cc
  6176. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  6177. * src/DiskWriter.h
  6178. (messageDigest.h): New include.
  6179. (sha1Sum): Renamed as messageDigest.
  6180. (messageDigest): New function.
  6181. * src/ChunkChecksumValidator.h: New class.
  6182. * src/DiskAdaptorWriter.h: New class.
  6183. * src/prefs.h
  6184. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  6185. (PREF_CHECK_INTEGRITY): New definition.
  6186. * src/HttpResponseCommand.cc
  6187. (handleDefaultEncoding): Added method "HEAD" handling.
  6188. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6189. (handleOtherEncoding):
  6190. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  6191. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  6192. startupIdleTime, lowestDownloadSpeedLimit to command.
  6193. * src/SegmentMan.h
  6194. (getSegmentEntryByIndex): New function.
  6195. (getSegmentEntryByCuid): New function.
  6196. (getSegmentEntryIteratorByCuid): New function.
  6197. (diskWriter): DiskWriter -> DiskWriterHandle
  6198. (pieceHashes): New variable.
  6199. (chunkHashLength): New variable.
  6200. (digestAlgo): New variable.
  6201. (FindPeerStat): Removed.
  6202. (getPeerStat): Rewritten.
  6203. (markAllPiecesDone): New function.
  6204. (checkIntegrity): New function.
  6205. (tryChunkChecksumValidation): New function.
  6206. (isChunkChecksumValidationReady): New function.
  6207. * src/BitfieldMan.cc
  6208. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  6209. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  6210. blocks to 0.
  6211. (isBitRangeSet): New function.
  6212. (unsetBitRange): New function.
  6213. * src/FtpNegotiateCommand.cc
  6214. (executeInternal): Set maxDownloadSpeedLimit,
  6215. startupIdleTime, lowestDownloadSpeedLimit to command.
  6216. (recvSize): Added method "HEAD" handling.
  6217. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6218. * src/AbstractSingleDiskAdaptor.cc
  6219. (sha1Sum): Renamed as messageDigest.
  6220. (messageDigest): New function.
  6221. * src/AbstractSingleDiskAdaptor.h
  6222. (sha1Sum): Renamed as messageDigest.
  6223. (messageDigest): New function.
  6224. * src/Util.h
  6225. (indexRange): New function.
  6226. * src/MetalinkEntry.cc
  6227. (MetalinkEntry): Initialized chunkChecksum to 0.
  6228. * src/ShaVisitor.cc
  6229. (~ShaVisitor): Removed the call to ctx.digestFree().
  6230. * src/SegmentMan.cc
  6231. (ChunkChecksumValidator.h): New include.
  6232. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  6233. to DIGEST_ALGO_SHA1.
  6234. (~SegmentMan): Removed diskWriter.
  6235. (FindSegmentEntryByIndex): Removed.
  6236. (FindSegmentEntryByCuid): Removed.
  6237. (checkoutSegment): Rewritten.
  6238. (findSlowerSegmentEntry): Rewritten.
  6239. (getSegment): Rewritten.
  6240. (updateSegment): Rewritten.
  6241. (completeSegment): Rewritten.
  6242. (markAllPiecesDone): New function.
  6243. (checkIntegrity): New function.
  6244. (isChunkChecksumValidationReady): New function.
  6245. (tryChunkChecksumValidation): New function.
  6246. * src/Xml2MetalinkProcessor.cc
  6247. (getEntry): Get size and set it to entry.
  6248. Get chunk checksum and set it to entry.
  6249. (getPieceHash): New function.
  6250. * src/Util.cc
  6251. (sha1Sum): Removed ctx.digestFree()
  6252. (fileChecksum): Removed ctx.digestFree()
  6253. (indexRange): New function.
  6254. * src/Request.cc
  6255. (METHOD_GET): New variable.
  6256. (METHOD_HEAD): New variable.
  6257. (Request): Added method.
  6258. * src/UrlRequestInfo.cc
  6259. (FatalException.h): New include.
  6260. (message.h): New include.
  6261. (operator<<): Added operator<< for class HeadResult.
  6262. (getHeadResult): New function.
  6263. (execute): Get filename and size in separate download engine.
  6264. * src/ChunkChecksumValidator.cc: New class.
  6265. * src/DownloadCommand.cc:
  6266. (DownloadCommand): Added peerStat.
  6267. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  6268. the value from Option.
  6269. The buffer size is now 16KB.
  6270. Use peerStat member instead of getting it from SegmentMan.
  6271. Use startupIdleTime member instead of gettingit from Option.
  6272. Added chunk checksum validation.
  6273. * src/AbstractDiskWriter.cc
  6274. (AbstractDiskWriter): Removed ctx.
  6275. (~AbstractDiskWriter): Removed ctx.digestFree()
  6276. (writeDataInternal): Returns the return value of write.
  6277. (readDataInternal): Returns the return value of read.
  6278. (sha1Sum): Renamed as messageDigest
  6279. (messageDigest): New function.
  6280. * src/AbstractDiwkWriter.h
  6281. (messageDigest.h): Removed include.
  6282. (ctx): Removed.
  6283. (sha1Sum): Renamed as messageDigest
  6284. (messageDigest): New function.
  6285. * src/DefaultPieceStorage.h
  6286. (markAllPiecesDone): New function.
  6287. (checkIntegrity): New function.
  6288. * src/NullFileAllocationMonitor.h: New class.
  6289. * src/MetalinkChunkChecksum.h: New class.
  6290. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. To decrease CPU usage in bittorrent download, calculation results in
  6292. BitfieldMan were cached and realtime fetching PeerObject was removed
  6293. with WeakHandle introduced. Option values are set to the objects
  6294. by setter before download begins.
  6295. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  6296. * src/DefaultBtRequestFactory.h
  6297. (dispatcher): BtMessageDispatcherHandle ->
  6298. BtMessageDispatcherWeakHandle.
  6299. (messageFactory): New variable.
  6300. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  6301. BtMessageDispatcherWeakHandle.
  6302. (setBtMessageFactory): New function.
  6303. * src/DefaultBtMessageDispatcher.cc:
  6304. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  6305. from Option.
  6306. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  6307. feating the value from Option.
  6308. Use messageFactory member.
  6309. * src/PeerInteractionCommand.cc
  6310. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  6311. Add reverse dependencies to factory object.
  6312. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  6313. dispatcher.
  6314. Set messageFactory to receiver.
  6315. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  6316. btInteractive.
  6317. Set receiver to peerObject.
  6318. Set maxDownloadSpeedLimit to this.
  6319. (executeInternal): Use maxDownloadSpeedLimit member.
  6320. * src/BtChokeMessage.cc
  6321. (doReceivedAction): Use dispatcher, requestFactory member.
  6322. (onSendComplete): Use dispatcher member.
  6323. * src/PeerInteractionCommand.h
  6324. (maxDownloadSpeedLimit): New variable.
  6325. * src/DefaultBtMessageReceiver.h
  6326. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6327. (dispatcher):
  6328. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6329. (messageFactory): New variable.
  6330. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6331. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6332. (setDispatcher):
  6333. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6334. (setBtMessageFactory): New function.
  6335. * src/DefaultBtInteractive.cc
  6336. (initiateHandshake): Use messageFactory member.
  6337. (addBitfieldMessageToQueue): Use messageFactory member.
  6338. (addAllowedFastMessageToQueue): Use messageFactory member.
  6339. (decideChoking): Use messageFactory member.
  6340. (checkHave): Use messageFactory member.
  6341. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  6342. (receiveMessages): Use maxDownloadSpeedLimit member.
  6343. (decideInterest): Use messageFactory member.
  6344. * src/BtRequestMessage.cc
  6345. (doReceivedAction): Use messageFactory, dispatcher member.
  6346. (onQueued): Use dispatcher member.
  6347. * src/BtPieceMessage.cc
  6348. (doReceivedAction): Use dispatcher member.
  6349. (send): Use peerConnection member.
  6350. (onWrongPiece): Use requestFactory member.
  6351. (handleChokingEvent): Use messageFactory, dispatcher member.
  6352. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  6353. * src/BtMessageDispatcher.h
  6354. (BtMessageDispatcherWeakHandle): New type definition.
  6355. * src/SimpleBtMessage.cc
  6356. (send): Use peerConnection member.
  6357. * src/BtRejectMessage.cc
  6358. (doReceivedAction): Use dispatcher member.
  6359. * src/DefaultBtMessageDispatcher.h
  6360. (Option.h): Removed include.
  6361. (messageFactory): New variable.
  6362. (option): Removed.
  6363. (maxUploadSpeedLimit): New variable.
  6364. (requestTimeout): New variable.
  6365. (DefaultBtMessageDispatcher): Removed option.
  6366. Added maxUploadSpeedLimit, requestTimeout.
  6367. (setOption): Removed.
  6368. (getOption): Removed.
  6369. (setMaxUploadSpeedLimit): New function.
  6370. (setRequestTimeout): New function.
  6371. (setBtMessageFactory): New function.
  6372. * src/DefaultBtInteractive.h
  6373. (btMessageReceiver):
  6374. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6375. (dispatcher):
  6376. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6377. (btRequestFactory):
  6378. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6379. (peerConnection):
  6380. PeerConnectionHandle -> PeerConnectionWeakHandle
  6381. (messageFactory): New variable.
  6382. (option): Removed.
  6383. (keepAliveInterval): New variable.
  6384. (maxDownloadSpeedLimit): New variable.
  6385. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  6386. (setBtMessageReceiver):
  6387. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6388. (setDispatcher):
  6389. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6390. (setBtRequestFactory):
  6391. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6392. (setPeerConnection):
  6393. PeerConnectionHandle -> PeerConnectionWeakHandle
  6394. (setOption): Removed.
  6395. (setKeepAliveInterval): New function.
  6396. (setMaxDownloadSpeedLimit): New function.
  6397. (setBtMessageFactory): New function.
  6398. * src/BitfieldMan.h
  6399. (cachedNumMissingBlock): New variable.
  6400. (cachedNumFilteredBlock): New variable.
  6401. (cachedCompletedLength): New variable.
  6402. (cachedFilteredComletedLength): New variable.
  6403. (cachedFilteredTotalLength): New variable.
  6404. (countMissingBlockNow): New function.
  6405. (countFilteredBlockNow): New function.
  6406. (getFilteredTotalLengthNow): New function.
  6407. (getCompletedLengthNow): New function.
  6408. (getFilteredCompletedLengthNow): New function.
  6409. (updateCache): New function.
  6410. * src/AbstractBtMessage.h
  6411. (BtMessageDispatcher.h): New include.
  6412. (PeerConnection.h): New include.
  6413. (BtRequestFactory.h): New include
  6414. (BtMessageFactory.h): New include.
  6415. (dispatcher): New variable.
  6416. (messageFactory): New variable.
  6417. (peerConnection: New variable.
  6418. (setBtMessageDispatcher): New function.
  6419. (setPeerConnection): New function.
  6420. (setBtMessageFactory): New function.
  6421. (setBtRequestFactory): New function.
  6422. * src/DefaultBtMessageFactory.cc
  6423. (setCommonProperty): Set dispatcher, requestFactory, this,
  6424. peerConnection to msg.
  6425. * src/BtRegistry.h
  6426. (BT_MESSAGE_RECEIVER): New macro.
  6427. * src/PeerConnection.h
  6428. (PeerConnectionWeakHandle): New type definition.
  6429. * src/BtMessageFactory.h
  6430. (BtMessageFactoryWeakHandle): New type definition.
  6431. * src/BitfieldMan.cc
  6432. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  6433. cachedCompletedLength, cachedFilteredComletedLength,
  6434. cachedFilteredTotalLength.
  6435. Call updateCache().
  6436. (countMissingBlock): Return cachedNumMissingBlock.
  6437. (countMissingBlockNow): New function.
  6438. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  6439. (countFilteredBlockNow): New function.
  6440. (setBit): Call updateCache().
  6441. (unsetBit): Call updateCache().
  6442. (setBitfield): Call updateCache().
  6443. (clearAllBit): Call updateCache().
  6444. (setAllBit): Use setBitInternal instead of setBit.
  6445. Call updateCache().
  6446. (addFilter): Call updateCache().
  6447. (enableFilter): Call updateCache().
  6448. (disableFilter): Call updateCache().
  6449. (clearFilter): Call updateCache().
  6450. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  6451. (getFilteredTotalLengthNow): New function.
  6452. (getCompletedLength): Return cachedCompletedLength.
  6453. (getCompletedLengthNow): New function.
  6454. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  6455. (getFilteredCompletedLengthNow): New function.
  6456. (updateCache): New function.
  6457. * src/BtMessageReceiver.h
  6458. (BtMessageReceiverWeakHandle): New type definition.
  6459. * src/DefaultBtMessageReceiver.cc
  6460. (receiveHandshake): Use messageFactory member.
  6461. (sendHandshake): Use messageFactory member.
  6462. (receiveMessage): Use messageFactory member.
  6463. * src/DefaultBtMessageFactory.h
  6464. (dispatcher): New variable.
  6465. (requestFactory): New variable.
  6466. (peerConnection): New variablle.
  6467. (setBtMessageDispatcher): New function.
  6468. (setBtRequestFactory): New function.
  6469. (setPeerConnection): New function.
  6470. * src/SharedHandle.h
  6471. (RefCount): New class.
  6472. (WeakHandle): New class.
  6473. * src/PeerObject.h
  6474. (BtMessageReceiver.h): New include.
  6475. (PeerObject): Added btMessageReceiver.
  6476. (btMessageReceiver): New variable.
  6477. * src/Util.cc
  6478. (countBit): Simplified.
  6479. * src/BtCancelMessage.cc
  6480. (doReceivedAction): Use dispatcher member.
  6481. * src/BtRequestFactory.h
  6482. (BtRequestFactoryWeakHandle): New type definition.
  6483. * src/PeerStorage.h
  6484. (downloadSpeed): int -> uint32_t
  6485. (uploadSpeed): int -> uint32_t
  6486. (sessionDownloadLength): long long int -> uint64_t
  6487. (sessionUploadLength): long long int -> uint64_t
  6488. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6489. To add RecoverableException, FatalException:
  6490. * src/AbstractCommand.cc
  6491. (onAbort): Exception -> RecoverableException
  6492. * src/PeerAbstractCommand.h
  6493. (RecoverableException.h): New include.
  6494. (onAbort): Exception -> RecoverableException.
  6495. * src/PeerInteractionCommand.cc
  6496. (onAbort): Exception -> RecoverableException.
  6497. * src/PeerAbstractCommand.cc
  6498. (execute): Exception -> RecoverableException.
  6499. (onAbort): Exception -> RecoverableException.
  6500. * src/TorrentRequestInfo.cc
  6501. (execute): Exception -> RecoverableException.
  6502. * src/MetalinkRequestInfo.cc
  6503. (execute): Exception -> RecoverableException.
  6504. * src/MetaFileUtil.cc: RecoverableException.
  6505. * src/AbstractCommand.h
  6506. (onAbort): Exception -> RecoverableException.
  6507. * src/DlRetryEx.h: Exception -> RecoverableException.
  6508. * src/DlAbortEx.h: Exception -> RecoverableException.
  6509. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  6510. * src/Util.cc: Exception -> RecoverableException.
  6511. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  6512. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  6513. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  6514. To make ID static const int
  6515. * src/BtInterestedMessage.h
  6516. (ID_t): Removed.
  6517. (ID): New variable.
  6518. (getId): Made non-const.
  6519. * src/BtPieceMessage.h
  6520. (ID_t): Removed.
  6521. (ID): New variable.
  6522. (getId): Made non-const.
  6523. * src/BtChokeMessage.h
  6524. (ID_t): Removed.
  6525. (ID): New variable.
  6526. (getId): Made non-const.
  6527. * src/BtHaveAllMessage.h
  6528. (ID_t): Removed.
  6529. (ID): New variable.
  6530. (getId): Made non-const.
  6531. * src/BtKeepAliveMessage.h
  6532. (ID_t): Removed.
  6533. (ID): New variable.
  6534. (getId): Made non-const.
  6535. * src/BtHandshakeMessage.h
  6536. (ID): New variable.
  6537. (getId): Made non-const.
  6538. * src/BtSuggestPieceMessage.h
  6539. (ID_t): Removed.
  6540. (ID): New variable.
  6541. (getId): Made non-const.
  6542. * src/BtPortMessage.h
  6543. (ID_t): Removed.
  6544. (ID): New variable.
  6545. (getId): Made non-const.
  6546. * src/AbstractBtMessage.h
  6547. (id): Removed.
  6548. (AbstractBtMessage): Removed id.
  6549. (getId): Removed.
  6550. * src/BtHaveMessage.h
  6551. (ID_t): Removed.
  6552. (ID): New variable.
  6553. (getId): Made non-const.
  6554. * src/BtAllowedFastMessage.h
  6555. (ID_t): Removed.
  6556. (ID): New variable.
  6557. (getId): Made non-const.
  6558. * src/BtCancelMessage.h
  6559. (ID_t): Removed.
  6560. (ID): New variable.
  6561. (getId): Made non-const.
  6562. * src/BtNotInterestedMessage.h
  6563. (ID_t): Removed.
  6564. (ID): New variable.
  6565. (getId): Made non-const.
  6566. * src/BtChokeMessage.h
  6567. (ID_t): Removed.
  6568. (ID): New variable.
  6569. (getId): Made non-const.
  6570. * src/BtRejectMessage.h
  6571. (ID_t): Removed.
  6572. (ID): New variable.
  6573. (getId): Made non-const.
  6574. * src/BtBitfieldMessage.h
  6575. (ID_t): Removed.
  6576. (ID): New variable.
  6577. (getId): Made non-const.
  6578. * src/BtUnchokeMessage.h
  6579. (ID_t): Removed.
  6580. (ID): New variable.
  6581. (getId): Made non-const.
  6582. * src/BtRequestMessage.h
  6583. (ID_t): Removed.
  6584. (ID): New variable.
  6585. (getId): Made non-const.
  6586. * src/BtHaveMessage.h
  6587. (ID_t): Removed.
  6588. (ID): New variable.
  6589. (getId): Made non-const.
  6590. To add --force-truncate command-line option and a check whether
  6591. the file already exists:
  6592. * src/DirectDiskAdaptor.h
  6593. (getFilePath): Made virtual public.
  6594. * src/MultiDiskAdaptor.h
  6595. (File.h): New include.
  6596. (DiskWriterEntry::fileEntry): Made private.
  6597. (DiskWriterEntry::fileExists): New function.
  6598. (DiskWriterEntry::getFileEntry): New function.
  6599. (fileExists): New function.
  6600. (getFilePath): New function.
  6601. * src/TorrentRequestInfo.cc
  6602. (FatalException.h): New include.
  6603. (message.h): New include.
  6604. (RecoverableException.h): New include.
  6605. (execute): Added a check whether file is already exists or not.
  6606. * src/DiskAdaptor.h
  6607. (fileExists): New function.
  6608. (getFilePath): New function.
  6609. * src/main.cc
  6610. (showUsage): Added an explanation of --force-truncate command-line
  6611. option.
  6612. (main): Added --force-truncate command-line option.
  6613. * src/Exception.h
  6614. (setMsg): buf[256] -> buf[1024]
  6615. * src/CopyDiskWriter.h
  6616. (getFilePath): Made public virtual.
  6617. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  6618. (fileExists): New function.
  6619. * src/DownloadEngineFactory.cc
  6620. (newTorrentConsoleEngine): Don't open file here.
  6621. * src/message.h
  6622. (EX_FILE_ALREADY_EXISTS): New definition.
  6623. * src/prefs.h
  6624. (PREF_FOECE_TRUNCATE): New definition.
  6625. * src/HttpResponseCommand.cc
  6626. (handleDefaultEncoding): Added a check whether the file already exists.
  6627. * src/SegmentMan.h
  6628. (fileExists): New function.
  6629. (shouldCancelDownloadForSafety): New function.
  6630. * src/FtpNegotiateCommand.cc
  6631. (recvSize): Added a check whether the file already exists.
  6632. * src/AbstractSingleDiskAdaptor.cc
  6633. (File.h): New include.
  6634. (fileExists): New function.
  6635. * src/AbstractSingleDiskAdaptor.h
  6636. (getFilePath): Removed.
  6637. (fileExists): New function.
  6638. * src/SegmentMan.cc
  6639. (fileExists): New function.
  6640. (shouldCancelDownloadForSafety): New function.
  6641. To fix regression bug in torrent downloading:
  6642. * src/DefaultBtRequestFactory.cc
  6643. (doChokedAction): New function.
  6644. * src/DefaultBtRequestFactory.h
  6645. (doChokedAction): New function.
  6646. * src/DefaultBtMessageDispatcher.cc
  6647. (doChokedAction): Do not delete request if its target is in allowed
  6648. fast set.
  6649. * src/DefaultBtInteractive.cc
  6650. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  6651. (sendKeepAlive): Send keep alive message even if the outgoing message
  6652. queue is not empty.
  6653. (decideInterest): Simplified the code.
  6654. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  6655. it is already called when BtChokeMessage is received from a peer.
  6656. * src/BtRequestFactory.h
  6657. (doChokedAction): New function.
  6658. To clean up code:
  6659. * src/PeerInteractionCommand.h
  6660. (executeInternal): Added virtual keyword explicitly.
  6661. (prepareForRetry): Added virtual keyword explicitly.
  6662. (prepareForNextPeer): Added virtual keyword explicitly.
  6663. (onAbort): Added virtual keyword explicitly.
  6664. * src/RequestSlot.cc
  6665. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  6666. * src/BtPieceMessage.cc
  6667. (doReceivedAction): Added a debug log of piece's bitfield.
  6668. * src/Piece.h
  6669. (getBitfieldLength): New function.
  6670. * src/ByteArrayDiskWriter.cc
  6671. (clear): Added buf = 0 to avoid double free corruption.
  6672. * src/FileAllocator.cc
  6673. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  6674. Added cp.reset().
  6675. * src/BitfieldMan.h
  6676. (operator=): Rewritten.
  6677. * src/BitfieldMan.cc
  6678. (BitfieldMan): Initialized bitfield, useBitfield.
  6679. * src/PeerConnection.cc
  6680. (receiveMessage): Added a call to socket->readable() after getting
  6681. message length to avoid possible EOF.
  6682. * src/Util.cc
  6683. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  6684. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. To add an ability to pre-allocate file space:
  6686. * src/DirectDiskAdaptor.h: Rewritten.
  6687. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  6688. * src/MultiDiskAdaptor.h: Rewritten.
  6689. * src/DefaultPieceStorage.cc
  6690. (MultiDiskWriter.h): Removed include.
  6691. (PreAllocationDiskWriter.h): Removed include.
  6692. (FileAllocationMonitor.h): New include.
  6693. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  6694. (initStorage): Rewritten.
  6695. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6696. * src/FileAllocator.h: New class.
  6697. * src/FileAllocator.cc: New class.
  6698. * src/FileAllocationMonitor.h: New class.
  6699. * src/FileAllocationMonitor.cc: New class.
  6700. * src/ConsoleFileAllocationMonitor.h: New class.
  6701. * src/ConsoleFileAllocationMonitor.cc: New class.
  6702. * src/AbstractSingleDiskAdaptor.h: New class.
  6703. * src/AbstractSingleDiskAdaptor.cc: New class.
  6704. * src/DiskAdaptor.h
  6705. (Directory.h): Removed include.
  6706. (DiskWriter.h): Removed include.
  6707. (FileEntry.h): Removed include.
  6708. (diskWriter): Removed.
  6709. (DiskAdaptor): Removed diskWriter.
  6710. (openFile): Made pure virtual.
  6711. (closeFile): Made pure virtual.
  6712. (openExistingFile): Made pure virtual.
  6713. (initAndOpenFile): Made pure virtual.
  6714. (writeData): Made pure virtual.
  6715. (readData): Made pure virtual.
  6716. (sha1Sum): Made pure virtual.
  6717. (getStoreDir): Returns const reference of storeDir.
  6718. (DiskAdaptorHandle): New type definition.
  6719. * src/main.cc
  6720. (ConsoleFileAllocationMonitor.h): New include.
  6721. (showUsage): Added default value description of -s option.
  6722. Added the description of --file-allocation option.
  6723. (main): Set default value of --file-allocation option to 'none'.
  6724. Added --file-allocation command-line option.
  6725. Setup FileAllocationMonitorFactory.
  6726. * src/FtpInitiateConnectionCommand.cc
  6727. (executeInternal): Removed diskWriter related processing, which was
  6728. moved to FtpNegotiationCommand.cc.
  6729. * src/DirectDiskAdaptor.cc
  6730. (getFilePath): Made non-const.
  6731. * src/CopyDiskAdaptor.h
  6732. (DiskAdaptor.h): Removed include.
  6733. (DiskWriter.h): Removed include.
  6734. (AbstractSingleDiskAdaptor.h): New include.
  6735. (getFilePath): Made non-const. Added virtual keyword.
  6736. (CopyDiskAdaptor): Removed diskWriter.
  6737. (getTempFile): Returns const reference.
  6738. (CopyDiskAdaptorHandle): New type definition.
  6739. * src/ByteArrayDiskWriter.cc
  6740. (clear): Simplified.
  6741. (initAndOpenFile): Rewritten.
  6742. (openFile): Call initAndOpenFile()
  6743. * src/MultiDiskAdaptor.cc: Rewritten.
  6744. * src/DownloadEngineFactory.cc
  6745. (FileAllocator.h): New include.
  6746. (FileAllocationMonitor.h): New include.
  6747. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  6748. create DefaultDiskWriter with file allocator.
  6749. * src/DiskWriter.h
  6750. (initAndOpenFile): Added totalLength argument.
  6751. (openFile): Added totalLength argument.
  6752. * src/prefs.h
  6753. (PREF_FILE_ALLOCATION): New definition.
  6754. (V_PREALLOC): New definition.
  6755. (V_NONE): New definition.
  6756. * src/HttpResponseCommand.cc
  6757. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  6758. size.
  6759. * src/FtpNegotiateCommand.cc
  6760. (Util.h): New include.
  6761. (recvSize): Open file here.
  6762. * src/Util.h
  6763. (ullitos): New function.
  6764. * src/CopyDiskWriter.h
  6765. (getFilePath): Made non-const.
  6766. * src/DefaultDiskWriter.h
  6767. (Option.h): New include.
  6768. (totalLength): Removed.
  6769. (DefaultDiskWriter): Removed totalLength.
  6770. (initAndOpenFile): Added totalLength argument.
  6771. (DefaultDiskWriterHandle): New type definition.
  6772. (createNewDiskWriter): New function.
  6773. * src/Util.cc
  6774. (ullitos): New function.
  6775. * src/DefaultDiskWriter.cc
  6776. (message.h): New include.
  6777. (FileAllocator.h): New include.
  6778. (prefs.h): New include.
  6779. (Util.h): New include.
  6780. (DefaultDiskWriter): Removed totalLength.
  6781. (initAndOpenFile): Added file allocation.
  6782. (createNewDiskWriter): New function. Just for temporary solution.
  6783. It will be rewritten later.
  6784. * src/DiskAdaptor.cc
  6785. (DiskAdaptor): Removed diskWriter.
  6786. * src/AbstractDiskWriter.cc
  6787. (LogFactory.h): New include.
  6788. (AbstractDiskWriter): Added fileAllocator, logger.
  6789. (openFile): Added totalLength argument.
  6790. * src/AbstractDiskWriter.h
  6791. (FileAllocator.h): New include.
  6792. (Logger.h): New include.
  6793. (fileAllocator): New variable.
  6794. (logger): New variable.
  6795. (openFile): Added totalLength argument. Added virtual keyword
  6796. explicitly.
  6797. (openExistingFile): Added totalLength argument. Added virtual keyword
  6798. explicitly.
  6799. (closeFile): Added virtual keyword explicitly.
  6800. (sha1Sum): Added virtual keyword explicitly.
  6801. (writeData): Added virtual keyword explicitly.
  6802. (readData): Added virtual keyword explicitly.
  6803. (setFileAllocator): New function.
  6804. * src/DefaultPieceStorage.h
  6805. (FileAllocator.h): New include.
  6806. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6807. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  6808. * src/FileProgressMonitor.h: New class.
  6809. To compile aria2 on PC-BSD:
  6810. * src/DefaultBtContext.cc
  6811. (libgen.h): New include.
  6812. To fix memory leak:
  6813. * src/Exception.h
  6814. (~Exception): Delete cause. Fixed memory leak.
  6815. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6816. Rewritten a portion of bittorrent implementation:
  6817. * src/BtMessageValidator.h: New class.
  6818. * src/BtBitfieldMessageValidator.h: New class.
  6819. * src/BtHandshakeMessageValidator.h: New class.
  6820. * src/BtRequestMessageValidator.h: New class.
  6821. * src/BtSuggestPieceMessageValidator.h: New class.
  6822. * src/BtAllowedFastMessageValidator.h: New class.
  6823. * src/BtRejectMessageValidator.h: New class.
  6824. * src/BtCancelMessageValidator.h: New class.
  6825. * src/BtPieceMessageValidator.h: New class.
  6826. * src/BtHaveMessageValidator.h: New class.
  6827. * src/BtEventListener.h: New class.
  6828. * src/AbstractBtEventListener.h: New class.
  6829. * src/BtEvent.h: New class.
  6830. * src/BtChokingEvent.h: New class.
  6831. * src/BtChokedEvent.h: New class.
  6832. * src/BtCancelSendingPieceEvent.h: New class.
  6833. * src/BtAbortOutstandingRequestEvent.h: New class.
  6834. * src/Randomizer.h: New class.
  6835. * src/SimpleRandomizer.h: New class.
  6836. * src/BtMessage.h: New class.
  6837. * src/AbstractBtMessage.h: New class.
  6838. * src/SimpleBtMessage.h: New class.
  6839. * src/BtHaveMessage.h: New class.
  6840. * src/BtInterestedMessage.h: New class.
  6841. * src/BtAllowedFastMessage.h: New class.
  6842. * src/BtUnchokeMessage.h: New class.
  6843. * src/BtCancelMessage.h: New class.
  6844. * src/BtNotInterestedMessage.h: New class.
  6845. * src/BtChokeMessage.h: New class.
  6846. * src/BtHaveNoneMessage.h: New class.
  6847. * src/BtHandshakeMessage.h: New class.
  6848. * src/BtSuggestPieceMessage.h: New class.
  6849. * src/BtHaveMessage.h: New class.
  6850. * src/BtPieceMessage.h: New class.
  6851. * src/BtHaveAllMessage.h: New class.
  6852. * src/BtKeepAliveMessage.h: New class.
  6853. * src/BtPortMessage.h: New class.
  6854. * src/BtRejectMessage.h: New class.
  6855. * src/BtBitfieldMessage.h: New class.
  6856. * src/BtRequestMessage.h: New class.
  6857. * src/DefaultBtRequestFactory.h: New class.
  6858. * src/DefaultBtMessageReceiver.h: New class.
  6859. * src/BtInteractive.h: New class.
  6860. * src/BtMessageDispatcher.h: New class.
  6861. * src/DefaultBtMessageDispatcher.h: New class.
  6862. * src/DefaultBtInteractive.h: New class.
  6863. * src/BitfieldManFactory.h: New class.
  6864. * src/HandleRegistry.h: New class.
  6865. * src/BtMessageFactory.h: New class.
  6866. * src/BtMessageReceiver.h: New class.
  6867. * src/DefaultBtMessageFactory.h: New class.
  6868. * src/PeerObject.h: New class.
  6869. * src/BtRequestFactory.h: New class.
  6870. * src/SuggestPieceMessage.h: Removed.
  6871. * src/PortMessage.h: Removed.
  6872. * src/SuggestPieceMessage.h: Removed.
  6873. * src/KeepAliveMessage.h: Removed.
  6874. * src/HandshakeMessage.h: Removed.
  6875. * src/PeerInteraction.h: Removed.
  6876. * src/UnchokeMessage.h: Removed.
  6877. * src/PieceMessage.h: Removed.
  6878. * src/RequestMessage.h: Removed.
  6879. * src/InterestedMessage.h: Removed.
  6880. * src/HaveMessage.h: Removed.
  6881. * src/CancelMessage.h: Removed.
  6882. * src/RejectMessage.h: Removed.
  6883. * src/AllowedFastMessage.h: Removed.
  6884. * src/HaveNoneMessage.h: Removed.
  6885. * src/SimplePeerMessage.h: Removed.
  6886. * src/HaveAllMessage.h: Removed.
  6887. * src/BitfieldMessage.h: Removed.
  6888. * src/PeerMessageFactory.h: Removed.
  6889. * src/NotInterestedMessage.h: Removed.
  6890. * src/ChokeMessage.h: Removed.
  6891. * src/PeerMessage.h: Removed.
  6892. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. To know root cause of exception:
  6894. * src/Exception.h
  6895. (cause): New variable.
  6896. (Exception): Added a parameter.
  6897. (getMsg): Return const reference to msg.
  6898. (getCause): New function.
  6899. * src/DlRetryEx.h
  6900. (DlRetryEx): Added a parameter 'cause'.
  6901. Added an overloaded constructor.
  6902. (DlAbortEx): Added a parameter 'cause'.
  6903. Added an overloaded constructor.
  6904. * src/SimpleLogger.cc
  6905. (writeLog): Log nested exception messages recursively.
  6906. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. * src/DefaultBtProgressInfoFile.cc
  6908. (load): Fixed memory leak when the infohash doesn't match.
  6909. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6910. * src/DefaultPeerStorage.cc
  6911. (calculateStat): Simplified the code by combining 2 loops into 1.
  6912. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  6914. for BitTorrent download:
  6915. * src/PeerAbstractCommand.cc
  6916. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  6917. * src/main.cc:
  6918. (timeoutSpecified): Removed.
  6919. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  6920. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  6921. * src/TorrentRequestInfo.cc
  6922. (timeoutSpecified): Removed.
  6923. (torrentHandler): Removed timeoutSpecified and the adjustment of
  6924. timeout value.
  6925. * src/prefs.h
  6926. (PREF_BT_TIMEOUT): New definition.
  6927. Delete unused variables:
  6928. * src/TorrentRequestInfo.cc
  6929. (requestInfo): Removed.
  6930. Move setSignalHander to Util::setGlobalSignalHandler:
  6931. * src/TorrentRequestInfo.cc:
  6932. setSignalHander -> Util::setGlobalSignalHandler
  6933. * src/main.cc
  6934. (setSignalHander): Removed.
  6935. (main): setSignalHander -> Util::setGlobalSignalHandler
  6936. * src/Util.h
  6937. (setGlobalSignalHandler): New function.
  6938. * src/Util.cc
  6939. (setGlobalSignalHandler): New function.
  6940. * src/UrlRequestInfo.cc:
  6941. setSignalHander -> Util::setGlobalSignalHandler
  6942. Reset peer status in order to exit gracefully:
  6943. * src/PeerAbstractCommand.cc
  6944. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  6945. To fix the bug that causes the number of bytes uploaded is not saved
  6946. to .aria2 file:
  6947. * src/DefaultPeerStorage.h
  6948. (removedPeerSessionDownloadLength): New variable.
  6949. (removedPeerSessionUploadLength): New variable.
  6950. * src/DefaultPeerStorage.cc
  6951. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  6952. removedPeerSessionUploadLength(0).
  6953. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  6954. through all peers, and then add removedPeerSessionDownloadLength(
  6955. removedPeerSessionUploadLength) to it.
  6956. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  6957. (to) the peer to removedPeerSessionDownloadLength
  6958. (removedPeerSessionUploadLength).
  6959. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6960. To add Metalink location option:
  6961. * src/MetalinkRequestInfo.cc
  6962. (execute): Call MetalinkEntry::setLocationPreference()
  6963. * src/main.cc
  6964. (showUsage): Added the help message for --metalink-location option.
  6965. (main): Added --metalink-location option.
  6966. * src/prefs.h
  6967. (PREF_METALINK_LOCATION): New definition.
  6968. * src/MetalinkEntry.cc
  6969. (AddLocationPreference): New function object.
  6970. (setLocationPreference): New function.
  6971. * src/Xml2MetalinkProcessor.cc
  6972. (getResource): Set location attribute to MetalinkResource
  6973. To show URLs to download
  6974. * src/UrlRequestInfo.h
  6975. (printUrls): New function.
  6976. To add multiple <file> Metalink support:
  6977. * src/MetalinkEntry.h
  6978. (MetalinkResources): Removed.
  6979. (setLocationPreference): New function.
  6980. (MetalinkEntryHandle): New type definition.
  6981. (MetalinkEntries): New type definition.
  6982. * src/Xml2MetalinkProcessor.h
  6983. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  6984. (getResource): MetalinkResource* -> MetalinkResourceHandle
  6985. (parseFile): Metalinker* -> MetalinkerHandle
  6986. * src/UrlRequestInfo.h
  6987. (execute): RequestInfo* -> RequestInfos
  6988. * src/MetalinkRequestInfo.cc
  6989. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  6990. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  6991. (execute): RequestInfo* -> RequestInfos
  6992. Added multiple <file> support. Print filename when it is queued.
  6993. * src/MetalinkRequestInfo.h
  6994. (execute): RequestInfo* -> RequestInfos
  6995. (getDownloadEngine): Removed.
  6996. * src/RequestInfo.h
  6997. (RequestInfoHandle): New type definition.
  6998. (RequestInfos): New type definition.
  6999. (execute): RequestInfo* -> RequestInfos
  7000. (getDownloadEngine): Removed.
  7001. * src/MetalinkResource.h
  7002. (MetalinkResourceHandle): New type definition.
  7003. (MetalinkResources): New type definition.
  7004. * src/MetalinkEntry.cc
  7005. (~MetalinkEntry): Removed the deletion of the elements of resources,
  7006. because the element is now of type MetalinkResourceHandle.
  7007. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  7008. (Supported): MetalinkResource* -> MetalinkResourceHandle
  7009. (dropUnsupportedResource): Removed the deletion of the elements of
  7010. resources because the element is now of type MetalinkResourceHandle.
  7011. * src/Xml2MetalinkProcessor.cc
  7012. (parseFile): Metalinker* -> MetalinkerHandle
  7013. MetalinkEntry* -> MetalinkEntryHandle
  7014. Removed try-catch block.
  7015. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7016. MetalinkResource* -> MetalinkResourceHandle
  7017. Removed try-catch block.
  7018. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7019. Free result by using xmlXPathFreeObject()
  7020. * src/Metalinker.cc
  7021. (~Metalinker): Removed the deletion of entries.
  7022. MetalinkEntry* -> MetalinkEntryHandle
  7023. (queryEntry): Add multiple <file> Metalink support.
  7024. * src/Metalinker.h
  7025. (MetalinkEntries): Removed.
  7026. (queryEntry): MetalinkEntry* -> MetalinkEntries
  7027. * src/MetalinkProcessor.h
  7028. (parseFile): Metalinker* -> MetalinkerHandle
  7029. Bug fixes:
  7030. * src/PeerChokeCommand.cc
  7031. (execute): cat01->cat02
  7032. * src/DefaultPieceStorage.cc
  7033. (DefaultPieceStorage): Added diskAdaptor(0)
  7034. * src/TrackerWatcherComand.cc:
  7035. (execute): Use btAnnounce->noMoreAnnounce()
  7036. to determin whether the function returns true or not.
  7037. * src/TrackerUpdateCommand.cc:
  7038. (execute): Use btAnnounce->noMoreAnnounce()
  7039. to determin whether the function returns true or not.
  7040. * src/FtpConnection.cc
  7041. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  7042. This is the fix of the busy loop bug.
  7043. * src/DownloadCommand.cc
  7044. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  7045. cached PeerStat.
  7046. The value of "name" entry in torrent file is now set by
  7047. *DiskAdaptor::setTopDir(...) methods.
  7048. * src/MultiDiskAdaptor.h
  7049. (topDir): New variable.
  7050. (setTopDir): New function.
  7051. (getTopDir): New function.
  7052. * src/MultiDiskAdaptor.cc
  7053. (getFilePath): Concat storDir, "/" and topDir.
  7054. (mkdir): Use getFilePath() to get the directory path for output.
  7055. * src/DefaultPieceStorage.cc
  7056. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  7057. CopyDiskAdaptor.
  7058. * src/CopyDiskAdaptor.h
  7059. (topDir): New variable.
  7060. (setTopDir): New function.
  7061. (getTopDir): New function.
  7062. * src/CopyDiskAdaptor.cc
  7063. (fixFilename): Updated.
  7064. Misc
  7065. * src/UrlRequestInfo.h
  7066. (e): Removed.
  7067. (UrlRequestInfo): Removed e.
  7068. (getDownloadEngine): Removed.
  7069. * src/UrlRequestInfo.cc
  7070. (handler): Rewritten.
  7071. (printUrls): New function.
  7072. (execute): Call printUrls().
  7073. * src/HandshakeMessage.cc
  7074. (check): peerinteraction->getBtContext() -> btContext
  7075. * src/PeerInteraction.h
  7076. (getBtContext): Removed.
  7077. * src/TorrentRequestInfo.h
  7078. (execute): RequestInfo* -> RequestInfos
  7079. (getDownloadEngine): Removed.
  7080. * src/TorrentRequestInfo.cc
  7081. (haltRequested): Removed.
  7082. (btHaltRequested): New variable.
  7083. (torrentHandler): haltRequested -> btHaltRequested
  7084. (execute): RequestInfo* -> RequestInfos
  7085. * src/TorrentConsoleDownloadEngine.cc
  7086. (afterEachIteration): haltRequested -> btHaltRequested.
  7087. * src/ConsoleDownloadEngine.h
  7088. (initStatistics): Added virtual.
  7089. (calculateStatistics): Added virtual.
  7090. (onEndOfRun): Added virtual.
  7091. (afterEachIteration): Added virtual.
  7092. * src/ConsoleDownloadEngine.cc
  7093. (haltRequested): New variable.
  7094. (afterEachIteration): New function.
  7095. * src/main.cc
  7096. (requestInfo): Removed.
  7097. * src/SegmentMan.cc
  7098. (findSlowerSegmentEntry): Refactored.
  7099. * Release 0.9.0
  7100. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  7102. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  7103. * src/TorrentMan.h: Removed.
  7104. * src/TorrentMan.cc: Removed.
  7105. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  7106. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  7107. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  7108. * src/PeerAbstractCommand.cc: Use btRuntime.
  7109. * src/BtContextAwareCommand.h: New class.
  7110. * src/FileEntry.h: Added accessor methods for following variables.
  7111. (path): Made private.
  7112. (length): Made private.
  7113. (offset): Made private.
  7114. (extracted): Made private.
  7115. (requested): Made private.
  7116. (FileEntries): New definition.
  7117. (FileEntryHandle): New definition.
  7118. * src/FileEntry.cc: New file.
  7119. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  7120. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  7121. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  7122. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  7123. * src/PieceStorage.h: New file.
  7124. * src/PeerInteractionCommand.h: Use btContext.
  7125. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  7126. btRuntime.
  7127. * src/DefaultBtProgressInfoFile.h: New file.
  7128. * src/DefaultBtProgressInfoFile.cc: New file.
  7129. * src/File.cc
  7130. (Util.h): New include.
  7131. (mkdirs): New function.
  7132. * src/MultiDiskAdaptor.h
  7133. (mkdir): New function.
  7134. * src/PeerListProcessor.h
  7135. (Peers): Removed.
  7136. * src/PeerInteraction.h
  7137. (torrentMan): Removed.
  7138. (btContext): New variable.
  7139. (peerStorage): New variable.
  7140. (pieceStorage): New variable.
  7141. (btAnnounce): New variable.
  7142. (getTorrentMan): Removed.
  7143. (getBtContext): New function.
  7144. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  7145. btAnnounce.
  7146. * src/HandshakeMessage.h
  7147. (TorrentMan.h): Removed.
  7148. * src/HandshakeMessage.cc: Use btContext.
  7149. * src/DefaultBtAnnounce.cc: New file.
  7150. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  7151. * src/DefaultPieceStorage.cc: New file.
  7152. * src/DefaultBtContext.h: New file.
  7153. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  7154. Use the accessor methods of FileEntry.
  7155. * src/CookieBox.cc: Updated to use Util::slice().
  7156. * src/PieceMessage.cc: Use btContext, pieceStorage.
  7157. * src/common.h (SharedHandle.h): New include.
  7158. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  7159. pieceStorage.
  7160. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  7161. * src/DiskAdaptor.h
  7162. (topDir): Removed.
  7163. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  7164. (setTopDir): Removed.
  7165. (getTopDir): Removed.
  7166. * src/BtContext.h: New file.
  7167. * src/DefaultPeerStorage.h: New file.
  7168. * src/PieceMessage.h (TorrentMan.h): Removed.
  7169. * src/RequestMessage.h (TorrentMan.h): Removed.
  7170. * src/TorrentDownloadEngine.h
  7171. (uploadLength): New variable.
  7172. (btContext): New variable.
  7173. (btRuntime): New variable.
  7174. (pieceStorage): New variable.
  7175. (peerStorage): New variable.
  7176. (btAnnounce): New variable.
  7177. (btProgressInfoFile): New variable.
  7178. (torrentMan): Removed.
  7179. (setBtContext): New function.
  7180. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  7181. peerStorage, btAnnounce, btProgressInfoFile.
  7182. * src/Piece.h
  7183. (toString): New function.
  7184. (Pieces): New type definition.
  7185. * src/Peer.h
  7186. (active): New variable.
  7187. (Peer): Added active.
  7188. (activate): Set active to true.
  7189. (deactivate): Set active to false.
  7190. (isActive): New function.
  7191. (Peers): New type definition.
  7192. * src/DirectDiskAdaptor.cc
  7193. (getFilePath): Use the accessor methods of FileEntry.
  7194. * src/TorrentConsoleDownloadEngine.h
  7195. (afterEachIteration): New function.
  7196. * src/TorrentConsoleDownloadEngine.cc
  7197. (haltRequested): New variable.
  7198. (sendStatistics): Use pieceStorage, btRuntime.
  7199. (afterEachIteration): New function.
  7200. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  7201. * src/Directry.h
  7202. (Directory): New function.
  7203. (DirectoryHandle): New type definition.
  7204. * src/BtProgressInfoFile.h: New file.
  7205. * src/RequestMessage.cc: Use pieceStorage.
  7206. * src/BtRuntime.h: New file.
  7207. * src/DefaultBtContext.cc: New file.
  7208. * src/BitfieldMan.h
  7209. (getCompletedLength): New function(private).
  7210. (getCompletedLength): New function.
  7211. (getFilteredCompletedLength): New function.
  7212. * src/BitfieldMan.h
  7213. (getCompletedLength): New function(private).
  7214. (getCompletedLength): New function.
  7215. (getFilteredCompletedLength): New function.
  7216. * src/MultiDiskAdaptor.cc
  7217. (mkdir): New function.
  7218. (openFile): Call mkdir().
  7219. (initAndOpenFile): Call mkdir().
  7220. * src/CancelMessage.h
  7221. (TorrentMan.h): Removed.
  7222. * src/RejectMessage.h
  7223. (TorrentMan.h): Removed.
  7224. * src/DownloadEngineFactory.cc
  7225. (DefaultPieceStorage.h): New include.
  7226. (DefaultPeerStorage.h): New include.
  7227. (DefaultBtAnnounce.h): New include.
  7228. (DefaultBtProgressInfoFile.h): New include.
  7229. (newTorrentConsoleEngine): Rewritten.
  7230. * src/ShareRatioSeedCriteria.h
  7231. (torrentMan): Removed.
  7232. (btContext): New variable.
  7233. (peerStorage): New variable.
  7234. (btRuntime): New variable.
  7235. (evaluate): Use btContext, btRuntime, peerStorage.
  7236. * src/AnnounceTier.h: New file.
  7237. * src/BtAnnounce.h: New file.
  7238. * src/BtRegistry.h: New file.
  7239. * src/PeerInitiateConnectionCommand.h: Added btContext.
  7240. * src/PeerConnection.h (TorrentMan.h): Removed.
  7241. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  7242. * src/Util.h
  7243. (slice): Added an argument.
  7244. * src/Util.cc
  7245. (slice): Added an argument to control whether trim is made or not.
  7246. * src/PeerStorage.h: New file.
  7247. * src/BtRegistry.cc: New file.
  7248. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  7249. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  7250. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  7251. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  7252. * src/TorrentRequestInfo.h
  7253. (e): Removed.
  7254. (showFileEntry): Added an argument.
  7255. (getDownloadEngine): Return 0.
  7256. * src/DefaultBtAnnounce.h: New file.
  7257. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  7258. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  7259. * src/PeerMessageFactory.h
  7260. (btContext): New variable.
  7261. (pieceStorage): New variable.
  7262. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  7263. btAnnounce.
  7264. * src/DiskAdaptor.cc
  7265. (DiskAdaptor): Removed topDir.
  7266. (~DiskAdaptor): Removed topDir.
  7267. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  7268. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  7269. * src/File.h (mkdirs): New function.
  7270. * src/DefaultPeerStorage): New file.
  7271. * src/DownloadEngineFactory.h
  7272. (newTorrentConsoleEngine): Use btContext.
  7273. * src/BtContextAwareCommand.cc: New file.
  7274. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  7275. * src/PeerMessage.h
  7276. (btContext): New variable.
  7277. (peerStorage): New variable.
  7278. (pieceStorage): New variable.
  7279. (setBtContext): New function.
  7280. * src/Directry.cc
  7281. (Directory): New function.
  7282. (createDir): Do nothing if name.size() == 0.
  7283. * src/AnnounceList.h
  7284. (AnnounceTier): Removed.
  7285. (AnnounceTiers): Removed.
  7286. * src/DefaultPieceStorage.h: New file.
  7287. * src/Piece.cc (toString): New function.
  7288. To fix typo:
  7289. * src/main.cc (showVersion): Fixed typo.
  7290. To fix compile warning:
  7291. * src/DelegatingPeerListProcessor.cc
  7292. (canHandle): Added "return false".
  7293. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7294. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  7295. make the process of announce request testable.
  7296. * src/TrackerWatcherCommand.h
  7297. (TimeA2.h): Removed.
  7298. (interval): Removed.
  7299. (checkPoint): Removed.
  7300. (createRequestCommand): Added an argument 'url'.
  7301. (TrackerWatherCommand): Removed interval.
  7302. (createCommand): New function.
  7303. * src/DownloadEngineFactory.cc
  7304. (newTorrentConsoleEngine): Updated according to the changes in
  7305. TrackerWatherCommand.
  7306. * src/TorrentMan.cc
  7307. (DelegatingPeerListProcessor.h): New includes.
  7308. (TorrentMan): Added the initialization of announceInterval.
  7309. (isStoppedAnnounceReady): New function.
  7310. (isCompletedAnnounceReady): New function.
  7311. (isDefaultAnnounceReady): New function.
  7312. (isAnnounceReady): New function.
  7313. (getAnnounceUrl): New function.
  7314. (announceStart): New function.
  7315. (announceFailure): New function.
  7316. (announceSuccess): New function.
  7317. (isAllAnnounceFailed): New function.
  7318. (resetAnnounce): New function.
  7319. (processAnnounceResponse): New function.
  7320. (needMorePeerConnection): New function.
  7321. (noMoreAnnounce): New function.
  7322. * src/TrackerUpdateCommand.h
  7323. (getTrackerResponse): int->size_t
  7324. * src/TorrentMan.h
  7325. (isStoppedAnnounceReady): New function.
  7326. (isCompletedAnnounceReady): New function.
  7327. (isDefaultAnnounceReady): New function.
  7328. (announceInterval): New variable.
  7329. (isAnnounceReady): New function.
  7330. (getAnnounceUrl): New function.
  7331. (announceStart): New function.
  7332. (announceFailure): New function.
  7333. (announceSuccess): New function.
  7334. (isAllAnnounceFailed): New function.
  7335. (resetAnnounce): New function.
  7336. (processAnnounceResponse): New function.
  7337. (needMorePeerConnection): New function.
  7338. (noMoreAnnounce): New function.
  7339. * src/TrackerWatcherCommand.cc
  7340. (TrackerWatherCommand): Removed interval and checkPoint.
  7341. (execute): Rewritten.
  7342. (createCommand): New function.
  7343. (createRequestCommand): Rewritten.
  7344. * src/TrackerUpdateCommand.cc
  7345. (MetaFileUtil.h): Removed.
  7346. (DelegatingPeerListProcessor.h): Removed.
  7347. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  7348. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7349. Request -> RequestHandle:
  7350. * src/HttpResponseCommand.h: Request->RequestHandle
  7351. * src/AbstractCommand.cc: Request->RequestHandle
  7352. * src/HttpDownloadCommand.cc: Request->RequestHandle
  7353. * src/HttpRequestCommand.cc: Request->RequestHandle
  7354. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  7355. * src/AbstractCommand.h: Request->RequestHandle
  7356. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  7357. * src/HttpResponseCommand.cc: Request->RequestHandle
  7358. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  7359. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  7360. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  7361. * src/HttpConnection.h: Request->RequestHandle
  7362. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  7363. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  7364. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7365. * src/DownloadCommand.h: Request->RequestHandle
  7366. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  7367. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  7368. * src/HttpRequestCommand.h: Request->RequestHandle
  7369. * src/FtpNegotiateCommand.h: Request->RequestHandle
  7370. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7371. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  7372. * src/HttpDownloadCommand.h: Request->RequestHandle
  7373. * src/FtpConnection.cc: Request->RequestHandle
  7374. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  7375. * src/UrlRequestInfo.cc: Request->RequestHandle
  7376. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  7377. * src/HttpConnection.h: Request->RequestHandle
  7378. * src/DownloadCommand.cc: Request->RequestHandle
  7379. * src/FtpConnection.h: Request->RequestHandle
  7380. * src/FtpDowndloadCommand.h: Request->RequestHandle
  7381. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  7382. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  7383. * src/Request.h
  7384. (SharedHandle.h): New include.
  7385. (RequestHandle): New type definition.
  7386. (Requests): Redefined.
  7387. To add MULTITRACKER support:
  7388. * src/TrackerWatcherCommand.h
  7389. (createRequestCommand): New function.
  7390. * src/DownloadEngineFactory.cc
  7391. (newTorrentConsoleEngine): Removed req.
  7392. * src/prefs.h
  7393. (PREF_TRACKER_MAX_TRIES): New definition.
  7394. * src/TorrentMan.cc
  7395. (TorrentMan): Removed req. Added trackerNumTry.
  7396. (~TorrentMan): Removed req.
  7397. (setupInternal1): Added announceList.
  7398. * src/TorrentRequestInfo.cc
  7399. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  7400. announces is now specified by PREF_TRACKER_MAX_TRIES.
  7401. * src/main.cc
  7402. (main): Added PREF_TRACKER_MAX_TRIES.
  7403. * src/TorrentMan.h
  7404. (Request.h): Removed.
  7405. (AnnounceList.h): New include.
  7406. (trackerNumTry): New variable.
  7407. (req): Removed.
  7408. (announceList): New variable.
  7409. * src/TrackerWatcherCommand.cc
  7410. (execute): Rewritten.
  7411. (createRequestCommand): New function.
  7412. * src/TrackerUpdateCommand.cc
  7413. (execute): Updated with the use of AnnounceList.
  7414. * src/AnnounceList.cc: New class.
  7415. * src/AnnounceList.h: New class.
  7416. To fix typo:
  7417. * src/prefs.h
  7418. (PREF_MAX_TRIES): max_try->max_tries
  7419. To not to decode "+" as space in URL decode:
  7420. * src/Util.cc
  7421. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  7422. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7423. To add timeout to async name resolution:
  7424. * src/AbstractCommand.h
  7425. (nameResolveFinished): New function. This is not elegant way. It needs
  7426. to be more refined.
  7427. (nameResolverCheck): New variable.
  7428. * src/AbstractCommand.cc
  7429. (AbstractCommand): Added nameResolverCheck.
  7430. (execute): Added the check whether the name resolution has finished.
  7431. (setNameResolverCheck): Set nameResolverCheck to true.
  7432. (disableNameResolverCheck): Set nameResolverCheck to false.
  7433. (nameResolverFinished): New function.
  7434. * src/FtpInitiateConnectionCommand.h
  7435. (nameResolverFinished): New function.
  7436. * src/FtpInitiateConnectionCommand.cc
  7437. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7438. * src/HttpInitiateConnectionCommand.h
  7439. (nameResolverFinished): New function.
  7440. * src/HttpInitiateConnectionCommand.cc
  7441. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  7442. * src/prefs.h
  7443. (PREF_DNS_TIMEOUT): New definition.
  7444. * src/main.cc
  7445. (main): Added PREF_DNS_TIMEOUT.
  7446. To add the support for a non-compact response from a tracker:
  7447. * src/PeerListProcessor.h: New class.
  7448. * src/DefaultPeerListProcessor.h: New class.
  7449. * src/DefaultPeerListProcessor.cc: New class.
  7450. * src/CompactPeerListProcessor.h: New class.
  7451. * src/CompactPeerListProcessor.cc: New class.
  7452. * src/DelegatingPeerListProcessor.h: New class.
  7453. * src/DelegatingPeerListProcessor.cc: New class.
  7454. * src/TorrentMan.cc
  7455. (addPeer): New function(overload).
  7456. (addPeer): Delete unused peers only when new peer is added.
  7457. * src/TorrentMan.h
  7458. (PeerListProcessor.h): Included.
  7459. (Peers): Removed.
  7460. (addPeer): New function(overload).
  7461. * src/TrackerUpdateCommand.cc
  7462. (netinet/in.h): Removed.
  7463. (DelegatingPeerListProcessor.h): Included.
  7464. (execute): Updated to use DelegatingPeerListProcessor.
  7465. To fix the memory leak in TorrentMan::peers:
  7466. * src/PeerAbstractCommand.cc
  7467. (onAbort): Added peer->resetStatus().
  7468. * src/Peer.h
  7469. (resetStatus): Made public.
  7470. To improve the precision of the speed calculation:
  7471. * src/SpeedCalc.h
  7472. (nextInterval): New variable.
  7473. * src/SpeedCalc.cc
  7474. (reset): Added nextInterval.
  7475. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  7476. (changeSw): Set nextInterval to 15 seconds relative to the current
  7477. instant time.
  7478. * src/main.cc
  7479. (showVersion): Updated.
  7480. (showUsage): Updated.
  7481. * Release 0.8.1
  7482. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. * src/main.cc
  7484. (showUsage): Commented out --min-segment-size option.
  7485. (main): Commented out --min-segment-size option.
  7486. * Release 0.8.0
  7487. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. * src/*.{h,cc}:
  7489. Added an exception to the license which allows linking with OpenSSL.
  7490. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7491. * src/AbstractCommand.cc
  7492. (execute): Check whether the download has finished before checking
  7493. socket status.
  7494. Return true if peerStat->getStatus() == REQUEST_IDLE.
  7495. Do not exit even if no segment is available.
  7496. * src/prefs.h
  7497. (PREF_STARTUP_IDLE_TIME): New definition.
  7498. * src/PeerInteractionCommand.cc
  7499. (executeInternal): Removed max speed limit. Because it performs bad.
  7500. (receiveMessages): Added max speed limit. This was better than above,
  7501. but still a little bit to be desired. Sometimes the download speed
  7502. became much faster than I specified.
  7503. * src/SpeedCalc.h
  7504. (start): New variable.
  7505. (accumulatedLength): New variable.
  7506. (getAvgSpeed): New function.
  7507. * src/SpeedCalc.cc
  7508. (reset): Added start, accumulatedLength.
  7509. (update): Added calculation of an average speed.
  7510. (getAvgSpeed): New function.
  7511. * src/DownloadCommand.h
  7512. (sw): Removed.
  7513. * src/main.cc
  7514. (main): Added PREF_STARTUP_IDLE_TIME.
  7515. * src/PeerStat.h
  7516. (STATUS): Added REQUEST_IDLE.
  7517. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  7518. (getAvgDownloadSpeed): New function
  7519. (requestIdle): New function.
  7520. * src/SegmentMan.h
  7521. (SegmentEntryHandle): New type definition.
  7522. (SegmentEntries): Now holds SegmentEntryHandle.
  7523. (findSlowerSegmentEntry): New funtion.
  7524. * src/SegmentMan.cc
  7525. (save): Updated according to the changes in SegmentEntries.
  7526. (read): Updated according to the changes in SegmentEntries.
  7527. (FindSegmentEntryByIndex): Updated according to the changes in
  7528. SegmentEntries.
  7529. (FindSegmentEntryByCuid): Updated according to the changes in
  7530. SegmentEntries.
  7531. (checkoutSegment): Updated according to the changes in SegmentEntries.
  7532. (onNullBitfield): Updated according to the changes in SegmentEntries.
  7533. Renamed uitr as itr.
  7534. (findSlowerSegmentEntry): New function.
  7535. (getSegment): Updated according to the changes in SegmentEntries.
  7536. Added the feature that cancels the segment with slow server and fast
  7537. one takes it over.
  7538. (cancelSegment): Updated according to the changes in SegmentEntries.
  7539. (getDownloadLength): Updated according to the changes in
  7540. SegmentEntries.
  7541. (init): Assigned 0 to bitfield after deleting it.
  7542. * src/DownloadCommand.cc
  7543. (STARTUP_IDLE_TIME): Removed.
  7544. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  7545. * src/PeerChokeCommand.cc
  7546. (optUnchokingPeer): Updated according to the changes in Peer.
  7547. (ResetDelta): Removed.
  7548. (UploadFaster): Updated according to the changes in Peer.
  7549. (DownloadFaster): Updated according to the changes in Peer.
  7550. (execute): I clarify the meaning of "upload" and "download" here.
  7551. "upload" means the transfer from localhost to remote host.
  7552. "download" means the transfer from remote host to localhost.
  7553. Based on this rule, I swapped orderByUploadRate and
  7554. orderByDownloadRate.
  7555. * src/PeerInteractionCommand.cc
  7556. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  7557. (executeInternal): Removed the argument of
  7558. peerInteraction->sendMessages().
  7559. (receiveMessages): Rewritten download speed limit.
  7560. (sendKeepAlive): Removed peerInteraction->sendMessages().
  7561. * src/HttpResponseCommand.cc
  7562. (handleDefaultEncoding): If file size is unknown in torrent request,
  7563. do not call segmentMan->initBitfield() here.
  7564. Disabled persistent connection feature in torrent request.
  7565. * src/UrlRequestInfo.h
  7566. (UrlRequestInfo): Removed const qualifier from option.
  7567. * src/TorrentMan.h
  7568. (TransferStat): New class.
  7569. (deltaDownloadLength): Removed.
  7570. (deltaUploadLength): Removed.
  7571. (addDeltaDownloadLength): Removed.
  7572. (getDeltaDownloadLength): Removed.
  7573. (resetDeltaDownloadLength): Removed.
  7574. (addDeltaUploadLength): Removed.
  7575. (getDeltaUploadLength): Removed.
  7576. (resetDeltaUploadLength): Removed.
  7577. (addActivePeer): Added peer->activate().
  7578. (deleteActivePeer): Added peer->deactivate().
  7579. (calculateStat): New function.
  7580. * src/TorrentMan.cc
  7581. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  7582. (calculateStat): New function.
  7583. * src/PeerInteraction.h
  7584. (uploadLimit): Removed.
  7585. (option): New variable.
  7586. (setUploadLimit): Removed.
  7587. (getUploadSpeed): Removed.
  7588. (sendMessages): Removed the argument "currentUploadSpeed".
  7589. * src/PeerInteraction.cc
  7590. (prefs.h): Included.
  7591. (PeerInteraction): Removed uploadLimit. Added option.
  7592. (sendMessages): Rewritten upload speed limit.
  7593. (sendHandshake): Removed the argument from sendMessages().
  7594. (sendBitfield): Removed the argument from sendMessages().
  7595. * src/PeerAbstractCommand.cc
  7596. (execute): Commented out the portion of upload limit.
  7597. (onAbort): Removed peer->resetStatus().
  7598. * src/TorrentRequestInfo.cc
  7599. (timeoutSpecified): Declared extern.
  7600. (execute): Set timeout to 180 if timeout is not specified by.
  7601. command-line.
  7602. * src/PieceMessage.cc
  7603. (receivedAction): Added peer->updateDownloadLength().
  7604. Removed peer->addPeerUpload().
  7605. Removed torrentMan->addDeltaDownloadLength().
  7606. (send): Added peer->updateUploadLength().
  7607. Removed peer->addPeerDownload().
  7608. Removed torrentMan->addDeltaUploadLength().
  7609. * src/main.cc
  7610. (timeoutSpecified): New variable.
  7611. (main): Set timeoutSpecified to false.
  7612. If the command-line option "--upload-limit" is specified, then
  7613. timeoutSpecified is set to true. This option will remain in the next
  7614. release, but be deprecated in the future release.
  7615. * src/TorrentRequestInfo.h
  7616. (TorrentRequestInfo): Removed const qualifier from op.
  7617. * src/PeerStat.h
  7618. (uploadSpeed): New variable.
  7619. (PeerStat): Added default value to cuid.
  7620. (calculateUploadSpeed): New function.
  7621. (updateUploadLength): New function.
  7622. (getMaxUploadSpeed): New function.
  7623. (getAvgUploadSpeed): New function.
  7624. (reset): Added uploadSpeed. Set status to IDLE.
  7625. * src/TorrentDownloadEngine.h
  7626. (cp): Declared as Time.
  7627. (sessionDownloadLengthArray): Removed.
  7628. (sessionUploadLengthArray): Removed.
  7629. (currentCp): Removed.
  7630. (lastCalcStat): New variable
  7631. (lastElapsed): Removed.
  7632. (sessionDownloadLength): Removed.
  7633. (calculateStat): New function.
  7634. * src/TorrentDownloadEngine.cc
  7635. (initStatistics): Removed lastElapsed, cp[],
  7636. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  7637. currentCp, sessionDownloadLength.
  7638. Added cp.reset() and lastCalcStat.reset().
  7639. (calculateSpeed): Changed the name of the argument.
  7640. (calculateStatistics): Rewritten.
  7641. (calculateStat): New function.
  7642. * src/Peer.h
  7643. (PeerStat.h): Included.
  7644. (peerUpload): Removed.
  7645. (peerDownload): Removed.
  7646. (peerStat): New variable.
  7647. (sessionUploadLength): New variable.
  7648. (sessionDownloadLength): New variable.
  7649. (deltaUpload): Removed.
  7650. (deltaDownload): Removed.
  7651. (resetStatus): Made private.
  7652. (Peer): Added sessionUploadLength, sessionDownloadLength.
  7653. Removed peerUpload, peerDownload.
  7654. (updateUploadLength): New function.
  7655. (addDeltaUpload): Removed.
  7656. (updateDownloadLength): New function.
  7657. (resetDeltaUpload): Removed.
  7658. (getDeltaUpload): Removed.
  7659. (addDeltaDownload): Removed.
  7660. (calculateUploadSpeed): New function.
  7661. (resetDeltaDownload): Removed.
  7662. (getDeltaDownload): Removed.
  7663. (calculateDownloadSpeed): New function.
  7664. (getSessionUploadLength): New function.
  7665. (getSessionDownloadLength): New function.
  7666. (activate): New function.
  7667. (deactivate): New function.
  7668. (addPeerUpload): Removed.
  7669. (setPeerUpload): Removed.
  7670. (getPeerUpload): Removed.
  7671. (addPeerDownload): Removed.
  7672. (setPeerDownload): Removed.
  7673. (getPeerDownload): Removed.
  7674. * src/Peer.cc
  7675. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  7676. * src/MetalinkRequestInfo.h
  7677. (MetalinkRequestInfo): Removed const qualifier from op.
  7678. * src/RequestInfo.h
  7679. (op): Removed const qualifier.
  7680. (RequestInfo): Removed const qualifier from op.
  7681. * src/prefs.h
  7682. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  7683. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  7684. * src/PeerInteractionCommand.cc
  7685. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  7686. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  7687. * src/PeerInteraction.cc
  7688. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  7689. * src/main.cc
  7690. (showUsage): Updated the description of "--lowest-speed-limit" option.
  7691. Added the description of "--max-download-limit" option.
  7692. Removed the description of "--upload-limit" option.
  7693. Added the description of "--max-upload-limit" option.
  7694. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  7695. Added "--max-download-limit" option and "--max-upload-limit" option.
  7696. Added the warning message if "--upload-limit" option is used.
  7697. * src/DownloadCommand.cc
  7698. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  7699. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. To rewrite segment download mechanism for HTTP/FTP download.
  7701. Use BitfieldMan to manage segment download.
  7702. * src/HttpResponseCommand.h
  7703. (executeInternal): Pass the reference of segment.
  7704. * src/AbstractCommand.cc
  7705. (prepareForRetry): Call segmentMan->cancelSegment here.
  7706. (onAbort): Call segmentMan->cancelSegment here.
  7707. * src/HttpDownloadCommand.cc
  7708. (prepareForNextSegment): New function.
  7709. * src/DownloadEngineFactory.cc
  7710. (newConsoleEngine): Removed splitter.
  7711. (newTorrentConsoleEngine): Removed splitter.
  7712. * src/Request.h
  7713. (segment): Renamed from seg.
  7714. * src/FtpInitiateConnectionCommand.h
  7715. (executeInternal): Pass the reference of segment.
  7716. * src/AbstractCommand.h
  7717. (executeInternal): Pass the reference of segment.
  7718. * src/pref.h
  7719. (PREF_SEGMENT_SIZE): New definition.
  7720. * src/HttpProxyRequestCommand.h
  7721. (executeInternal): Pass the reference of segment.
  7722. * src/HttpResponseCommand.cc
  7723. (checkResponse): Allowed status 206 when a request range starts 0.
  7724. (handleDefaultEncoding): Rewritten the code related to Segment.
  7725. (handleOtherEncoding): Rewritten the code related to Segment.
  7726. * src/SegmentMan.h
  7727. (SegmentEntry): New class.
  7728. (SegmentEntries): New type definition.
  7729. (bitfield): New variable.
  7730. (usedSegmentEntries): New variable.
  7731. (onNullBitfield): New function.
  7732. (checkoutSegment): New function.
  7733. (segments): Removed.
  7734. (splitter): Removed.
  7735. (unregisterId): Removed.
  7736. (getSegment): New function(overload)
  7737. (getDownloadedSize): Removed.
  7738. (cancelSegment): New function.
  7739. (completeSegment): New function.
  7740. (initBitfield): New function.
  7741. (hasSegment): New function.
  7742. (getDownloadLength): New function.
  7743. * src/BitfieldMan.h
  7744. (getStartIndex): New function.
  7745. (getEndIndex): New function.
  7746. (getMissingUnusedIndex): New function(overload).
  7747. (getSparseMissingUnusedIndex): New function.
  7748. * src/BitfieldMan.cc
  7749. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  7750. (getMissingUnusedIndex): New function(overload).
  7751. (Range): New class.
  7752. (getStartIndex): New function.
  7753. (getEndIndex): New function.
  7754. (getSparseMissingUnusedIndex): New function.
  7755. (isBitSetInternal): Return false if the given index is less than 0.
  7756. * src/HttpInitiateConnectionCommand.h
  7757. (executeInternal): Pass the reference of segment.
  7758. * src/FtpNegotiateCommand.h
  7759. (executeInternal): Pass the reference of segment.
  7760. * src/FtpNegotiateCommand.cc
  7761. (recvSize): Initialize bitfield here.
  7762. * src/FtpTunnelResponseCommand.h
  7763. (executeInternal): Pass the reference of segment.
  7764. * src/HttpConnection.cc
  7765. (createRequest): Rewritten range header processing.
  7766. * src/DownloadCommand.h
  7767. (executeInternal): Pass the reference of segment.
  7768. (prepareForRetry): Removed.
  7769. (prepareForNextSegment): Added an argument segment. Made it a virtual
  7770. function.
  7771. * src/main.cc
  7772. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  7773. * src/SegmentMan.cc
  7774. (SegmentMan): Added bitfield. Removed splitter.
  7775. (~SegmentMan): Added bitfield. Removed splitter.
  7776. (unregisterId): Removed.
  7777. (getSegment): Rewritten.
  7778. (updateSegment): Rewritten.
  7779. (save): Rewritten.
  7780. (read): Rewritten.
  7781. (finished): Rewritten.
  7782. (getDownloadedSize): Removed.
  7783. (initBitfield): New function.
  7784. (FindSegmentEntryByIndex): New function object.
  7785. (FindSegmentEntryByCuid): New function object.
  7786. (checkoutSegment): New function.
  7787. (onNullBitfield): New function.
  7788. (getSegment): New function(overload).
  7789. (CancelSegment): New function object.
  7790. (cancelSegment): New function.
  7791. (completeSegment): New function.
  7792. (hasSegment): New function.
  7793. (getDownloadLength): New function.
  7794. * src/FtpInitiateConnectionCommand.cc
  7795. (executeInternal): Load .aria2 file after hostname resolution finishes.
  7796. * src/Segment.h: Rewritten.
  7797. * src/Segment.cc (operator<<): New function.
  7798. * src/HttpDownloadCommand.h
  7799. (prepareForNextSegment): New function.
  7800. * src/Request.cc
  7801. (resetUrl): Made segment null.
  7802. * src/DownloadEngine.cc
  7803. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  7804. * src/HttpProxyRequestCommand.h
  7805. (executeInternal): Pass the reference of segment.
  7806. * src/DownloadCommand.cc
  7807. (executeInternal): Rewritten the code related to Segment.
  7808. (prepareForRetry): Removed.
  7809. (prepareForNextSegment): Rewritten.
  7810. * src/FtpTunnelResponseCommand.h
  7811. (executeInternal): Pass the reference of segment.
  7812. To add HTTP 1.1 persistent connection support(experimental)
  7813. * src/HttpRequestCommand.cc
  7814. (executeInternal): Disable keep alive if it is disabled by
  7815. configuration.
  7816. * src/Request.h
  7817. (keepAlive): New variable.
  7818. (isKeepAlive): New function.
  7819. (setKeepAlive): New function.
  7820. * src/pref.h
  7821. (PREF_HTTP_KEEP_ALIVE): New definition.
  7822. * src/HttpResponseCommand.cc
  7823. (executeInternal): Check the remote server supports keep alive.
  7824. * src/HttpConnection.cc
  7825. (createRequest): Send "Connection: close" only if keep alive is
  7826. disabled.
  7827. * src/main.cc
  7828. (main):
  7829. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  7830. To add max download speed limit:
  7831. * src/pref.h
  7832. (PREF_MAX_SPEED_LIMIT): New definition.
  7833. * src/PeerInteractionCommand.cc
  7834. (executeInternal): Added max download speed limit. Not tested yet.
  7835. * src/SegmentMan.h
  7836. (PeerStats): New type definition.
  7837. (peerStats): New variable.
  7838. (registerPeerStat): New function.
  7839. (FindPeerStat): New function object.
  7840. (getPeerStat): New function.
  7841. (calculateDownloadSpeed): New function.
  7842. * src/SpeedCalc.h: New class.
  7843. * src/SpeedCalc.cc: New class.
  7844. * src/main.cc
  7845. (main):
  7846. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  7847. download speed is not restricted).
  7848. * src/PeerStat.h: New class.
  7849. * src/SegmentMan.cc
  7850. (registerPeerStat): New function.
  7851. (calculateDownloadSpeed): New function.
  7852. * src/DownloadCommand.cc
  7853. (STARTUP_IDLE_TIME): New definition.
  7854. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  7855. downloadStart.
  7856. (~DownloadCommand): Call peerStat->downloadStop.
  7857. (executeInternal): Added download speed limitter. Rewritten lowest
  7858. speed limitter.
  7859. * src/HttpConnection.cc
  7860. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  7861. * src/AbstractCommand.cc
  7862. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  7863. Added hostname to the error message.
  7864. * src/ConsoleDownloadEngine.cc
  7865. (calculateStatistics): Initialize psize with dlSize.
  7866. * src/PieceMessage.cc
  7867. (receivedAction): Do not call peerInteraction->abortPiece here.
  7868. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  7869. * src/BitfieldMan.h
  7870. (clearAllUseBit): New function.
  7871. (setAllUseBit): New function.
  7872. * src/BitfieldMan.cc
  7873. (clearAllBit): Do not clear useBitfield here.
  7874. (clearAllUseBit): New function.
  7875. (setAllUseBit): New function.
  7876. * src/Piece.cc
  7877. (clearAllBlock): Call bitfield->clearAllUseBit().
  7878. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7879. To make filename URL-decoded:
  7880. * src/HttpResponseCommand.h: Updated doc.
  7881. * src/HttpResponseCommand.cc
  7882. (determinFilename): Made filename URL-decoded.
  7883. * src/FtpInitiateConnectionCommand.cc
  7884. (executeInternal): Made filename URL-decoded.
  7885. * src/Util.h (urldecode): New function.
  7886. * src/Util.cc (urldecode): New function.
  7887. To fix a bug that caused assertion failure in ares_strerror:
  7888. * src/NameResolver.cc (callback): Fixed the bug.
  7889. * Release 0.7.3
  7890. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. To add --seed-time and --seed-ratio command-line option:
  7892. * src/Option.h (getAsDouble): New function.
  7893. * src/Option.cc (getAsDouble): New function.
  7894. * src/SeedCheckCommand.h: New class.
  7895. * src/SeedCheckCommand.cc: New class.
  7896. * src/DownloadEngineFactory.cc
  7897. (SeedCheckCommand.h): Included.
  7898. (UnionSeedCriteria.h): Included.
  7899. (TimeSeedCriteria.h): Included.
  7900. (ShareRatioSeedCriteria.h): Included.
  7901. (newTorrentConsoleEngine): Added the processing of seed option.
  7902. * src/SeedCriteria.h: New class.
  7903. * src/ShareRatioSeedCriteria.h: New class.
  7904. * src/TimeSeedCriteria.h: New class.
  7905. * src/UnionSeedCriteria.h: New class.
  7906. * src/prefs.h
  7907. (PREF_SEED_TIME): New definition.
  7908. (PREF_SEED_RATIO): New definition.
  7909. * src/main.cc
  7910. (showUsage): Added --seed-time and --seed-ratio option.
  7911. (main): Added --seed-time and --seed-ratio option.
  7912. Made default log file name "/dev/null".
  7913. * src/SharedHandle.h
  7914. (SharedHandle): Copy constructor. Made it assignable from the
  7915. SharedHandle of the subclasses.
  7916. (operator=): Made it assignable from the SharedHandle of the
  7917. subclasses.
  7918. (getRefCount): New function.
  7919. To add notice log level and the switch to write log to stdout. This
  7920. switch is configurable per log level.
  7921. * src/Logger.h
  7922. (notice): New function.
  7923. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  7924. constant.
  7925. * src/LogFactory.cc
  7926. (getInstance): The use of NullLogger was removed. A log message with
  7927. notice log level was made written to stdout along with log file.
  7928. * src/NullLogger.h
  7929. (notice): New function.
  7930. * src/SimpleLogger.h
  7931. (writeHeader): Added the 'file' argument.
  7932. (writeLog): Added the 'file' argument.
  7933. (writeFile): New function.
  7934. (stdoutField): New variable.
  7935. (SimpleLogger): Removed the default constructor.
  7936. (SimpleLogger): Made the default value of logfile 0.
  7937. (debug): Added 'virtual' keyword.
  7938. (info): Added 'virtual' keyword.
  7939. (warn): Added 'virtual' keyword.
  7940. (error): Added 'virtual' keyword.
  7941. (notice): New function.
  7942. (setStdout): New function.
  7943. * src/SimpleLogger.cc
  7944. (WRITE_LOG): Replaced writeLog with writeFile.
  7945. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  7946. (SimpleLogger): Removed the default constructor.
  7947. (setStdout): New function.
  7948. (writeLog): Added the handling of NOTICE log level.
  7949. (writeFile): New function.
  7950. (notice): New function.
  7951. * src/TorrentMan.h: Updated doc.
  7952. * src/BitfieldMan.h: Updated doc.
  7953. * src/TrackerWatcherCommand.cc
  7954. (execute): Return true if error occurred in the request to the tracker
  7955. and halt is requested.
  7956. * src/TrackerUpdateCommand.cc
  7957. (execute): Return true if error occurred in the request to the tracker
  7958. and halt is requested.
  7959. To call onDownloadComplete from TorrentMan::completePiece(), not from
  7960. DownloadEngine:
  7961. * src/TorrentConsoleDownloadEngine.h
  7962. (onSelectiveDownloadingCompletes): Removed.
  7963. * src/TorrentConsoleDownloadEngine.cc
  7964. (onSelectiveDownloadingCompletes): Removed.
  7965. * src/TorrentDownloadEngine.h
  7966. (onEndOfRun): Added 'virtual' keyword.
  7967. (afterEachIteration): Removed.
  7968. (onSelectiveDownloadingCompletes): Removed.
  7969. * src/TorrentDownloadEngine.cc
  7970. (onEndOfRun): Removed filenameFixed.
  7971. (afterEachIteration): Removed.
  7972. * src/TorrentMan.cc
  7973. (completePiece): Call onDownloadComplete here.
  7974. (onDownloadComplete): Added 2 log messages.
  7975. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7976. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  7977. * src/NameResolver.h: Added the prototype declaration of callback().
  7978. To support c-ares library:
  7979. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7980. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7981. * src/FtpInitiateConnectionCommand.h:
  7982. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7983. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7984. * src/HttpInitiateConnectionCommand.h:
  7985. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7986. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  7987. Added thes upport of c-ares's ares_strerror(the idea came from patch
  7988. #1542285 by tizianomueller)
  7989. * src/HttpInitiateConnectionCommand.cc:
  7990. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7991. * src/FtpInitiateConnectionCommand.cc:
  7992. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7993. * src/DownloadEngine.h:
  7994. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7995. * src/DownloadEngine.cc:
  7996. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  7997. To fix the bug that causes compilation failure with metalink-support
  7998. disabled(bug#1543587):
  7999. * src/main.cc: Fixed with the patch by tizianomueller.
  8000. * Release 0.7.2
  8001. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8002. * src/main.cc
  8003. (main): Added a message to inform users that aria2 is starting to
  8004. verify checksum.
  8005. * src/RequestInfo.cc
  8006. (printDownloadAbortMessage): Added a message to inform users that
  8007. transfer can be resumed.
  8008. * src/FeatureConfig.cc
  8009. (FEATURE_ASYNC_DNS): New definition.
  8010. (FeatureConfig): Added aysnc DNS entry.
  8011. To replace CommandUuid with Command* in SocketEntry and
  8012. NameResolverEntry:
  8013. * src/DownloadEngine.h
  8014. (CommandUuids): Removed.
  8015. (SocketEntry::commandUuid): Removed.
  8016. (SocketEntry::command): New variable.
  8017. (SocketEntry::SocketEntry): Updated.
  8018. (SocketEntry::operator==): Updated.
  8019. (NameResolverEntry::commandUuid): Removed.
  8020. (NameResolverEntry::command): New variable.
  8021. (NameResolverEntry::NameResolverEntry): Updated.
  8022. (NameResolverEntry::operator==): Updated.
  8023. (waitData): Changed the argument type.
  8024. (addSocketForReadCheck): Changed the argument type.
  8025. (deleteSocketForReadCheck): Changed the argument type.
  8026. (addSocketForWriteCheck): Changed the argument type.
  8027. (deleteSocketForWriteCheck): Changed the argument type.
  8028. (addNameResolverCheck): Changed the argument type.
  8029. (deleteNameResolverCheck): Changed the argument type.
  8030. * src/DownloadEngine.cc
  8031. (FindCommand): Removed.
  8032. (run): Removed activeUuid. Added activeCommands instead.
  8033. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  8034. (AccumulateActiveCommand): New function object.
  8035. (waitData): Use AccumulateActiveCommand.
  8036. (addSocketForReadCheck): Use Command instead of CommandUuid.
  8037. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  8038. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  8039. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  8040. (addNameResolverCheck): Use Command instead of CommandUuid.
  8041. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  8042. * src/AbstractCommand.cc
  8043. (disableReadCheckSocket): Updated according to the changes in
  8044. DownloadEngine.
  8045. (setReadCheckSocket): Updated according to the changes in
  8046. DownloadEngine.
  8047. (disableWriteCheckSocket): Updated according to the changes in
  8048. DownloadEngine.
  8049. (setWriteCheckSocket): Updated according to the changes in
  8050. DownloadEngine.
  8051. (setNameResolverCheck): Updated according to the changes in
  8052. DownloadEngine.
  8053. (disableNameResolverCheck): Updated according to the changes in
  8054. DownloadEngine.
  8055. * src/AbstractCommand.cc
  8056. (disableReadCheckSocket): Updated according to the changes in
  8057. DownloadEngine.
  8058. (setReadCheckSocket): Updated according to the changes in
  8059. DownloadEngine.
  8060. (disableWriteCheckSocket): Updated according to the changes in
  8061. DownloadEngine.
  8062. (setWriteCheckSocket): Updated according to the changes in
  8063. DownloadEngine.
  8064. * release 0.7.1
  8065. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. To handle the case where some BitTorrent tracker requires all letters
  8067. except for [A-Za-z0-9] is URL encoded.
  8068. * src/Util.h
  8069. (torrentUrlencode): New function.
  8070. * src/Util.cc
  8071. (ctype.h): Included.
  8072. (torrentUrlencode): New function.
  8073. * src/TrackerWatcherCommand.cc
  8074. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  8075. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. To add asynchronous DNS support(libares):
  8077. * src/AbstractCommand.h
  8078. (setNameResolverCheck): New function.
  8079. (disableNameResolverCheck): New function
  8080. (resolveHostname): New function.
  8081. * src/AbstractCommand.cc
  8082. (setNameResolverCheck): New function.
  8083. (disableNameResolverCheck): New function
  8084. (resolveHostname): New function.
  8085. * src/FtpInitiateConnectionCommand.h
  8086. (nameResolver): New function.
  8087. * src/FtpInitiateConnectionCommand.cc
  8088. (Util.h): Included.
  8089. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  8090. disableWriteCheckSocket.
  8091. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  8092. (executeInternal): Added async DNS support.
  8093. * src/HttpInitiateConnectionCommand.h
  8094. (nameResolver): New function.
  8095. * src/HttpInitiateConnectionCommand.cc
  8096. (DlRetryEx.h): Included.
  8097. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  8098. disableWriteCheckSocket.
  8099. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  8100. (executeInternal): Added async DNS support.
  8101. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  8102. by extern "C" declaration.
  8103. * src/NameResolver.cc: New class.
  8104. * src/Util.h:
  8105. (isNumberAndDotsNotation): New function
  8106. * src/Util.cc
  8107. (isNumberAndDotsNotation): New function.
  8108. * src/DownloadEngine.h
  8109. (NameResolver.h): Included.
  8110. (NameResolverEntry): New class.
  8111. (NameResolverEntries): New type definition.
  8112. (addNameResolverCheck): New function.
  8113. (deleteNameResolverCheck): New function.
  8114. * src/DownloadEngine.cc
  8115. (run): Initialize cp with 0.
  8116. (SetDescriptor::operator()): Added for NameResolverEntry.
  8117. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  8118. (waitData): Check nameResolver entries.
  8119. (updateFdSet): Update fds in nameResolver entries.
  8120. (addNameResolverCheck): New function.
  8121. (deleteNameResolverCheck): new function.
  8122. * src/PeerInteractionCommand.cc
  8123. (executeInternal): Fixed wrong socket handling.
  8124. * src/main.cc
  8125. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  8126. * src/Util.cc
  8127. (fileChecksum): Removed the call to ctx.digestReset().
  8128. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. * po/ru.po: Azamat sent me Russian translation.
  8130. * src/FtpNegotiateCommand.cc
  8131. (recvGreeting): Call disableWriteCheckSocket just after
  8132. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  8133. (recvRetr): Recognized status code 125 as a acceptable response code.
  8134. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  8135. case-insesitive filesystem(BUG#1531057).
  8136. * src/Time.h: Renamed as TimeA2.h.
  8137. * src/Time.cc: Renamed as TimeA2.cc.
  8138. * src/TimeA2.h: New class.
  8139. * src/TimeA2.cc: New class.
  8140. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  8141. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  8142. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  8143. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  8144. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  8145. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8146. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  8147. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  8148. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  8149. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8150. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  8151. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  8152. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  8153. * release 0.7.0
  8154. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8155. * src/PeerChokeCommand.h
  8156. (PeerChokeCommand): Rearranged the arguments.
  8157. * src/PeerChokeCommand.cc
  8158. (PeerChokeCommand): Rearranged the arguments.
  8159. * src/MetalinkEntry.h
  8160. (Checksum.h): Included.
  8161. (md5): Removed.
  8162. (sha1): Removed.
  8163. (checksum): New variable.
  8164. (operator=): Updated.
  8165. (check): Removed.
  8166. * src/prefs.h
  8167. (PREF_LOWEST_SPEED_LIMIT): New definition.
  8168. (PREF_FOLLOW_TORRENT): New definition.
  8169. (PREF_SELECT_FILE): New definition.
  8170. (PREF_FOLLOW_METALINK): New definition.
  8171. * src/MetalinkResource.h
  8172. (TYPE_HTTPS): Added to enum TYPE.
  8173. * src/TorrentMan.cc
  8174. (~TorrentMan): Rewritten.
  8175. * src/MultiDiskWriter.cc
  8176. (MultiDiskAdaptor): Updated according to the changes in
  8177. MessageDigestContext.
  8178. (~MultiDiskAdaptor): Updated according to the changes in
  8179. MessageDigestContext.
  8180. (hashUpdate): Updated according to the changes in MessageDigestContext.
  8181. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8182. * src/Util.h
  8183. (fileChecksum): Updated according to the changes in
  8184. MessageDigestContext.
  8185. * src/Util.cc
  8186. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8187. (fileChecksum): Updated according to the changes in
  8188. MessageDigestContext.
  8189. * src/messageDigest.h: Rewritten.
  8190. * src/MetalinkEntry.cc
  8191. (check): Removed.
  8192. (Supported): Updated.
  8193. (dropUnsupportedResource): Fixed a memory leak.
  8194. * src/ShaVisitor.cc
  8195. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  8196. (~ShaVisitor): Updated according to the changes in
  8197. MessageDigestContext.
  8198. (visit): Updated according to the changes in MessageDigestContext.
  8199. * src/main.cc
  8200. (main): Rewritten the portion of download loop. --lowest-speed-limit
  8201. command-line option added.
  8202. * src/DownloadEngine.h
  8203. (SocketEntry): New class.
  8204. (SocketEntries): New definition.
  8205. (PairFind): Removed.
  8206. (SockCmdMap): Removed.
  8207. * src/DownloadEngine.cc
  8208. (DownloadEngine): Rewritten.
  8209. (~DownloadEngine): Rewritten.
  8210. (run): Renamed activeCommandUuids as activeUuids.
  8211. (SetDescriptor): Rewritten.
  8212. (AccumulateActiveCommandUuid): Removed.
  8213. (AccumulateActiveUuid): New function object.
  8214. (waitData): Rewritten.
  8215. (updateFdSet): Rewritten.
  8216. (addSocket): Rewritten.
  8217. (deleteSocket): Rewritten.
  8218. (addSocketForReadCheck): Rewritten.
  8219. (deleteSocketForReadCheck): Rewritten.
  8220. (addSocketForWriteCheck): Rewritten.
  8221. (deleteSocketForWriteCheck): Rewritten.
  8222. * src/Xml2MetalinkProcessor.cc
  8223. (getEntry): Rewritten the portion of MetalinkEntry creation.
  8224. * src/DownloadCommand.cc
  8225. (executeInternal): Added the check routine for lowest speed limit.
  8226. * src/AbstractDiskWriter.cc
  8227. (AbstractDiskWriter): Updated according to the changes in
  8228. MessageDigestContext.
  8229. (~AbstractDiskWriter): Updated according to the changes in
  8230. MessageDigestContext.
  8231. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8232. * src/RequestInfo.h: New class.
  8233. * src/UrlRequestInfo.h: New class.
  8234. * src/UrlRequestInfo.cc: New class.
  8235. * src/TorrentRequestInfo.h: New class.
  8236. * src/TorrentRequestInfo.cc: New class.
  8237. * src/MetalinkRequestInfo.h: New class.
  8238. * src/MetalinkRequestInfo.cc: New class.
  8239. * src/Checksum.h: New class.
  8240. * src/DownloadEngineFactory.h: New class.
  8241. * src/DownloadEngineFactory.cc: New class.
  8242. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8243. * src/Option.h
  8244. (getAsBool): New function.
  8245. * src/Option.cc
  8246. (prefs.h): Included.
  8247. (defined): 0-length value is now recognized as undefined.
  8248. (getAsInt): Rewritten.
  8249. (getAsLLInt): Rewritten.
  8250. (getAsBool): New function.
  8251. * src/FeatureConfig.h: Rewritten.
  8252. * src/FeatureConfig.cc: Rewritten.
  8253. * src/prefs.h
  8254. (PREF_STDOUT_LOG): New definition.
  8255. (PREF_LOG): New definition.
  8256. (PREF_DIR): New definition.
  8257. (PREF_OUT): New definition.
  8258. (PREF_SPLIT): New definition.
  8259. (PREF_DAEMON): New definition.
  8260. (PREF_REFERER): New definition.
  8261. (PREF_TORRENT_FILE): New definition.
  8262. (PREF_LISTEN_PORT): New definition.
  8263. (PREF_METALINK_FILE): New definition.
  8264. (PREF_METALINK_VERSION): New definition.
  8265. (PREF_METALINK_LANGUAGE): New definition.
  8266. (PREF_METALINK_OS): New definition.
  8267. (PREF_METALINK_SERVERS): New definition.
  8268. * src/main.cc
  8269. (main): Following command-line parameters are now put into Option
  8270. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  8271. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  8272. metalinkLanguage, metalinkOs, metalinkServers
  8273. To fix the bug that aria2 can not handle http response header properly.
  8274. * src/HttpHeader.cc
  8275. (put): Made name lowercased.
  8276. (defined): Made name lowercased.
  8277. (getFirst): Made name lowercased.
  8278. (get): Made name lowercased.
  8279. (getFirstAsInt): Rewritten.
  8280. (getFirstAsLLInt): Rewritten.
  8281. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. * src/TorrentMan.h:
  8283. (advertisePiece): Updated doc.
  8284. (getAdvertisedPieceIndexes): Updated doc.
  8285. (removeAdvertisedPiece); New function.
  8286. * src/TorrentMan.cc
  8287. (FindElapsedHave): New function object.
  8288. (removeAdvertisedPiece): New function.
  8289. * src/HaveEraseCommand.h: New class.
  8290. * src/HaveEraseCommand.cc: New class.
  8291. * src/FeatureConfig.h: New class.
  8292. * src/FeatureConfig.cc: New class.
  8293. * src/Request.h
  8294. (defaultPorts): Removed.
  8295. * src/Request.cc
  8296. (FeatureConfig.h): Included.
  8297. (Request): Removed the statements related to defaultPorts.
  8298. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  8299. A default port number is now retrieved from FeatureConfig.
  8300. * src/main.cc
  8301. (HaveEraseCommand.h): Included.
  8302. (showVersion): Added the output of feature list.
  8303. (main): Added HaveEraseCommand to command queue in BitTorrent
  8304. downloading.
  8305. * src/PeerInteractionCommand.h
  8306. (chokeCheckPoint): Commented out.
  8307. (periodicExecPoint): New variable.
  8308. * src/PeerInteractionCommand.cc
  8309. (executeInternal): Following methods are now called in at least every
  8310. 0.5 seconds to reduce CPU usage:
  8311. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  8312. checkHave(), sendKeepAlive().
  8313. (checkLongTimePeerChoking): Commented out.
  8314. * src/BitfieldMan.h
  8315. (getNthBitIndex): Changed the method signature.
  8316. (getMissingIndexRandomly): Changed the method signature.
  8317. * src/BitfieldMan.cc
  8318. (getNthBitIndex): Rewritten
  8319. (getMissingIndexRandomly): Rewritten.
  8320. (hasMissingPiece): Rewritten.
  8321. (getMissingIndex): Refactored.
  8322. (getMissingUnusedIndex); Refactored.
  8323. (getMissingIndex): Refactored.
  8324. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8325. * src/PeerMessage.h
  8326. (Piece.h): Included.
  8327. (SharedHandle.h): Included.
  8328. (invalidate): New variable.
  8329. (uploading): New variable.
  8330. (isInvalidate): New function.
  8331. (isUploading): New function.
  8332. (onPush): New function.
  8333. (onChoked): New function.
  8334. (onCanceled): New function.
  8335. (onAbortPiece): New function.
  8336. (PeerMessageHandle): New type definition.
  8337. * src/PeerMessage.cc
  8338. (PeerMessage): Added the initialization for invalidate and uploading.
  8339. * src/CancelMessage.h
  8340. (CancelMessage): Rewritten.
  8341. * src/RejectMessage.h
  8342. (RejectMessage): Rewritten.
  8343. * src/Metalinker.h
  8344. (operator=): Defined.
  8345. * src/MetaEntry.h
  8346. (operator=): Defined.
  8347. * src/MetalinkResource.h
  8348. (operator=): Defined.
  8349. * src/AllowedFastMessage.h
  8350. (AllowedFastMessage): Rewritten.
  8351. * src/HandshakeMessage.h
  8352. (HandshakeMessage): New function(overload).
  8353. * src/HandshakeMessage.cc
  8354. (HandshakeMessage): Rewritten.
  8355. (init): New function.
  8356. * src/HaveMessage.h
  8357. (HaveMessage): Rewritten.
  8358. * src/Time.h
  8359. (operator=): Defined the function body here.
  8360. * src/Time.cc
  8361. (operator=): Removed.
  8362. * src/SocketCore.h
  8363. (operator==): Defined here.
  8364. (operator!=): Defined here.
  8365. (operator<): Defined here.
  8366. * src/SocketCore.cc
  8367. (operator==): Removed.
  8368. (operator<): Removed.
  8369. * src/BitfieldMan.h
  8370. (operator=): Defined the function body here.
  8371. * src/BitfieldMan.cc
  8372. (operator=): Removed.
  8373. * src/TorrentMan.h
  8374. (deleteErrorPeer): Removed.
  8375. (deleteUnusedPeer); New function.
  8376. * src/TorrentMan.cc
  8377. (addPeer): Call deleteUnusedPeer.
  8378. (deleteErrorPeer): Removed.
  8379. (deleteUnusedPeer): New function.
  8380. * src/PeerAbstractCommand.h
  8381. (setNoCheck): New function.
  8382. (noCheck): New variable.
  8383. * src/PeerAbstractCommand.cc
  8384. (PeerAbstractCommand): Added the initialization of noCheck.
  8385. (execute): Added a check for noCheck.
  8386. (setNoCheck): New function.
  8387. * src/Util.h
  8388. (stdio.h): Included.
  8389. * src/Util.cc
  8390. (unistd.h): Included.
  8391. * src/DefaultDiskWriter.cc
  8392. (unistd.h): Included.
  8393. * src/Peer.h
  8394. (operator==): Defined the function body here.
  8395. (operator!=): Defined the function body here.
  8396. * src/Peer.cc
  8397. (operator==): Removed.
  8398. (operator!=): Removed.
  8399. * src/Piece.h
  8400. (Piece): Defined the function body here(copy constructor).
  8401. (operator=): Defined the function body here.
  8402. (operator==): Defined the function body here.
  8403. * src/Piece.cc
  8404. (Piece): Removed(copy constructor).
  8405. (operator=): Removed.
  8406. (operator==): Removed.
  8407. * src/PeerMessageUtil.h
  8408. (ChokeMessage.h): Removed.
  8409. (UnchokeMessage.h): Removed.
  8410. (InterestedMessage.h): Removed.
  8411. (NotInterestedMessage.h): Removed.
  8412. (HaveMessage.h): Removed.
  8413. (BitfieldMessage.h): Removed.
  8414. (RequestMessage.h): Removed.
  8415. (CancelMessage.h): Removed.
  8416. (PieceMessage.h): Removed.
  8417. (HandshakeMessage.h): Removed.
  8418. (KeepAliveMessage.h): Removed.
  8419. (PortMessage.h): Removed.
  8420. (HaveAllMessage.h): Removed.
  8421. (HaveNoneMessage.h): Removed.
  8422. (PeerConnection.h): Removed.
  8423. (HandshakeMessage.h): Included.
  8424. * src/BitfieldMessage.h
  8425. (init): New function.
  8426. (BitfieldMessage): Rewritten.
  8427. (BitfieldMessage): New function(overload).
  8428. * src/RequestSlot.h
  8429. (operator=): Defined the function body here.
  8430. (operator==): Defined the function body here.
  8431. * src/RequestSlot.cc
  8432. (operator=): Removed.
  8433. (operator==): Removed.
  8434. To remove the dependency on the PeerMessage subclass from
  8435. PeerInteraction:
  8436. * src/PeerMessageFactory.h: New class.
  8437. * src/PeerMessageFactory.cc: New class.
  8438. * src/SimplePeerMessage.cc
  8439. (send): If invalidate is true then do nothing.
  8440. * src/PeerInteractionCommand.cc
  8441. (HandshakeMessage.h): Included.
  8442. (KeepAliveMessage.h): Included.
  8443. (ChokeMessage.h): Included.
  8444. (UnchokeMessage.h): Included.
  8445. (HaveMessage.h): Included.
  8446. (executeInternal): Call setNoCheck().
  8447. Removed setWriteCheckSocket(socket).
  8448. * src/PeerInteraction.h
  8449. (ChokeMessage.h): Removed.
  8450. (UnchokeMessage.h): Removed.
  8451. (InterestedMessage.h): Removed.
  8452. (NotInterestedMessage.h): Removed.
  8453. (HaveMessage.h): Removed.
  8454. (BitfieldMessage.h): Removed.
  8455. (RequestMessage.h): Removed.
  8456. (CancelMessage.h): Removed.
  8457. (PieceMessage.h): Removed.
  8458. (HandshakeMessage.h): Removed.
  8459. (KeepAliveMessage.h): Removed.
  8460. (PortMessage.h): Removed.
  8461. (HaveAllMessage.h): Removed.
  8462. (HaveNoneMessage.h): Removed.
  8463. (RejectMessage.h): Removed.
  8464. (AllowedFastMessage.h): Removed.
  8465. (SuggestPieceMessage.h): Removed.
  8466. (PeerMessageFactory.h): Included.
  8467. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  8468. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  8469. (PeerMessageFactory): New variable.
  8470. (createPeerMessage): Removed.
  8471. (createHandshakeMessage): Removed.
  8472. (setPeerMessageCommonProperty): Removed.
  8473. (addRequestSlot): New function.
  8474. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8475. (getPeerMessageFactory): New function.
  8476. (createRequestMessage): Removed.
  8477. (createCancelMessage): Removed.
  8478. (createPieceMessage): Removed.
  8479. (createHaveMessage): Removed.
  8480. (createChokeMessage): Removed.
  8481. (createUnchokeMessage): Removed.
  8482. (createInterestedMessage): Removed.
  8483. (createNotInterestedMessage): Removed.
  8484. (createBitfieldMessage): Removed.
  8485. (createKeepAliveMessage): Removed.
  8486. (createHaveAllMessage): Removed.
  8487. (createHaveNoneMessage): Removed.
  8488. (createRejectMessage): Removed.
  8489. (createAllowedFastMessage): Removed.
  8490. * src/PeerInteraction.cc
  8491. (PeerInteraction): Allocate PeerMessageFactory here.
  8492. (~PeerInteraction): Deallocate PeerMessageFactory here.
  8493. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  8494. PieceMessage::ID.
  8495. (addMessage): Simplified by using PeerMessage::onPush().
  8496. (addRequestSlot): New function.
  8497. (rejectAllPieceMessageInQueue): Simplified by using
  8498. PeerMessage::onChoked().
  8499. (rejectPieceMessageInQueue): Simplified by using
  8500. PeerMessage::onCanceled().
  8501. (abortPiece): Simplified by using PeerMessage::abortPiece().
  8502. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  8503. (createHandshakeMessage): Removed.
  8504. (createPeerMessage): Removed.
  8505. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  8506. (setPeerMessageCommonProperty): Removed.
  8507. (createRequestMessage): Removed.
  8508. (createCancelMessage): Removed.
  8509. (createPieceMessage): Removed.
  8510. (createHaveMessage): Removed.
  8511. (createChokeMessage): Removed.
  8512. (createUnchokeMessage): Removed.
  8513. (createInterestedMessage): Removed.
  8514. (createNotInterestedMessage): Removed.
  8515. (createBitfieldMessage): Removed.
  8516. (createKeepAliveMessage): Removed.
  8517. (createHaveAllMessage): Removed.
  8518. (createHaveNoneMessage): Removed.
  8519. (createRejectMessage): Removed.
  8520. (createAllowedFastMessage): Removed.
  8521. * src/PieceMessage.h
  8522. (createRejectMessage): New function.
  8523. (PieceMessage): Rewritten.
  8524. (onChoked): New function.
  8525. (onCanceled): New function.
  8526. * src/PieceMessage.cc
  8527. (send): If invalidate is true then do nothing, just return.
  8528. (createRejectMessage): New function.
  8529. (onChoked): New function.
  8530. (onCanceled): New function.
  8531. * src/RequestMessage.h
  8532. (RequestMessage): Rewritten.
  8533. (onPush): New function.
  8534. (onAbortPiece): New function.
  8535. * src/RequestMessage.cc
  8536. (onPush): New function.
  8537. (onAbortPiece): New function.
  8538. Update fd_set when a socket is added or deleted in order to improve
  8539. performance:
  8540. * src/DownloadEngine.h
  8541. (rfdset): New variable.
  8542. (wfdset): New variable.
  8543. (updateFdSet): New function.
  8544. * src/DownloadEngine.cc
  8545. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  8546. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  8547. (waitData): Copy rfdset and wfdset.
  8548. (updateFdSet): New function.
  8549. (addSocket): Call updateFdSet.
  8550. (deleteSocket): Call updateFdSet.
  8551. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8552. To add the support for Metalink3.0 backward compatible links:
  8553. * src/Request.h
  8554. (SAFE_CHARS): Added '#'.
  8555. (METALINK_MARK): New definition.
  8556. * src/Request.cc
  8557. (parseUrl): Added the support for Metalink3.0 backward compatible
  8558. links.
  8559. etc
  8560. * src/PeerInteraction.cc
  8561. (MsgPushBack): Removed.
  8562. (sendMessages): Use STL copy and back_inserter.
  8563. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  8564. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  8565. * src/TorrentMan.h
  8566. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  8567. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. * src/SharedHandle.h: New class.
  8569. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  8570. * src/HttpResponseCommand.h
  8571. (HttpResponseCommand): Wrapped Socket.
  8572. * src/SocketCore.h
  8573. (operator==): New function.
  8574. (operator!=): New function.
  8575. (operator<): New function.
  8576. (getSockfd): New function.
  8577. (isOpen): New function.
  8578. (writeData): New function.
  8579. * src/SocketCore.cc
  8580. (operator==): New function.
  8581. (operator!=): New function.
  8582. (operator<): New function.
  8583. * src/AbstractCommand.h
  8584. (socket): Changed its type to SocketHandle.
  8585. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8586. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8587. (disableReadCheckSocket): New function.
  8588. (disableWriteCheckSocket): New function.
  8589. (readCheckTarget): Changed its type to SocketHandle.
  8590. (writeCheckTarget): Changed its type to SocketHandle.
  8591. (AbstractCommand): Replaced Socket with SocketHandle.
  8592. * src/AbstractCommand.cc
  8593. (AbstractCommand): Replaced Socket with SocketHandle.
  8594. (~AbstractCommand): Removed the deallocation for Socket object.
  8595. (disableReadCheckSocket): New function.
  8596. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8597. (disableWriteCheckSocket): New function.
  8598. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8599. * src/HttpDownloadCommand.cc
  8600. (DownloadCommand): Replaced Socket with SocketHandle.
  8601. * src/PeerAbstractCommand.h
  8602. (socket): Changed its type to SocketHandle.
  8603. (peer): Changed its type to PeerHandle.
  8604. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8605. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8606. (disableReadCheckSocket): New function.
  8607. (disableWriteCheckSocket): New function.
  8608. (readCheckTarget): Changed its type to SocketHandle.
  8609. (writeCheckTarget): Changed its type to SocketHandle.
  8610. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8611. Replaced Peer with PeerHandle.
  8612. * src/HttpRequestCommand.cc
  8613. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8614. Use disableReadCheckSocket.
  8615. * src/PeerInitiateConnectionCommand.h
  8616. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8617. * src/PeerChokeCommand.cc
  8618. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  8619. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  8620. (execute): Use PeerHandle.
  8621. * src/PeerConnection.h
  8622. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  8623. (socket): Changed its type to SocketHandle.
  8624. (PeerConnection): Replaced Socket with SocketHandle.
  8625. * src/PeerConnection.cc
  8626. (PeerConnection): Replaced Socket with SocketHandle.
  8627. * src/PeerInteractionCommand.h
  8628. (PeerInteractionCommand): Replaced socket with SocketHandle.
  8629. Replaced Peer with PeerHandle.
  8630. * src/PeerInteractionCommand.cc
  8631. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  8632. Replaced Peer with PeerHandle.
  8633. (executeInternal): Use disableWriteCheckSocket.
  8634. Use HandshakeMessageHandle.
  8635. (receiveMessages): Use PeerMessageHandle.
  8636. (prepareForNextPeer): Use PeerHandle.
  8637. * src/HttpProxyRequestCommand.h
  8638. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8639. * src/HttpResponseCommand.cc
  8640. (HttpResponseCommand): Replaced Socket with SocketHandle.
  8641. * src/TorrentMan.cc
  8642. (nullPeer): Added external reference.
  8643. (~TorrentMan): Removed the deallocation of the elements of peers.
  8644. (addPeer): Rewritten.
  8645. (isPeerAvailable): Use nullPeer.
  8646. (deleteOldpeers): Replaced with deleteErrorPeer.
  8647. (deleteErrorPeer): New function.
  8648. (getPeer): Use PeerHandle and nullPeer.
  8649. (hasMissingPiece): Replaced Peer with PeerHandle.
  8650. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8651. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8652. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8653. (getMissingPiece): Replaced Peer with PeerHandle.
  8654. * src/FtpNegotiateCommand.cc
  8655. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  8656. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  8657. (recvGreeting): Use disableWriteCheckSocket.
  8658. (recvPasv): Removed the allocation of Socket.
  8659. Use disableReadCheckSocket.
  8660. (sendRestPasv): Use disableWriteCheckSocket.
  8661. (recvRetr): Changed assertion.
  8662. * src/PeerInteraction.h
  8663. (SharedHandle.h): Included SharedHandle.h.
  8664. (PeerMessageHandle): New type definition.
  8665. (HandshakeMessageHandle): New type definition.
  8666. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  8667. (peer): Changed its type to PeerHandle.
  8668. (createHandshakeMessage): Replaced HandshakeMessage with
  8669. HandshakeMessageHandle.
  8670. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  8671. (PeerInteraction): Replaced Peer with PeerHandle.
  8672. Replaced Socket with SocketHandle.
  8673. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8674. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8675. (receiveHandshake): Replaced HandshakeMessage with
  8676. HandshakeMessageHandle.
  8677. * src/PeerInteraction.cc
  8678. (PeerInteraction): Replaced Peer with PeerHandle.
  8679. Replaced Socket with SocketHandle.
  8680. (~PeerInteraction): Removed the deallocation of the elements of
  8681. messageQueue.
  8682. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  8683. (isSendingMessageInProgress): Replaced PeerMessage with
  8684. PeerMessageHandle.
  8685. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  8686. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  8687. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  8688. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  8689. (abortPiece): Use PeerMessageHandle.
  8690. (receiveHandshake): Replaced HandshakeMessage with
  8691. HandshakeMessageHandle. Removed try-catch block.
  8692. (createHandshakeMessage): Replaced HandshakeMessage with
  8693. HandshakeMessageHandle.
  8694. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  8695. Removed try-catch block.
  8696. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  8697. * src/HttpProxyResponseCommand.cc
  8698. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8699. * src/FtpTunnelResponseCommand.h
  8700. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8701. * src/HttpConnection.cc
  8702. (HttpConnection): Replaced Socket with SocketHandle.
  8703. * src/PeerAbstractCommand.cc
  8704. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  8705. (~PeerAbstractCommand): Removed the deallocation of socket.
  8706. Use disableReadCheckSocket, disableWriteCheckSocket.
  8707. (disableReadCheckSocket): New function.
  8708. (setReadCheckSocket): Replaced Socket with SocketHandle.
  8709. (disableWriteCheckSocket): New function.
  8710. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  8711. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  8712. * src/FtpTunnelRequestCommand.cc
  8713. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8714. (~FtpTunnelRequestCommand): Corrected indentation.
  8715. * src/DownloadCommand.h
  8716. (DownloadCommand): Replaced Socket with SocketHandle.
  8717. * src/PeerListenCommand.cc
  8718. (PeerListenCommand): Removed the initialization of socket.
  8719. (~PeerListenCommand): Removed the deallocation of socket.
  8720. (bindPort): Use SocketHandle.
  8721. (execute): Use SocketHandle and PeerHandle.
  8722. * src/FtpDowndloadCommand.cc
  8723. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8724. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  8725. * src/main.cc
  8726. (main): Corrected indentation.
  8727. * src/HttpInitiateConnectionCommand.cc
  8728. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  8729. (executeInternal): Removed the allocation of socket.
  8730. * src/HttpRequestCommand.h
  8731. (HttpRequestCommand): Replaced Socket with SocketHandle.
  8732. * src/FtpNegotiationCommand.h
  8733. (dataSocket): Changed its type to SocketHandle.
  8734. (serverSocket): Changed its type to SocketHandle.
  8735. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  8736. * src/TorrentMan.h
  8737. (MAX_PEER_UPDATE): Removed.
  8738. (MAX_PEERS): New definition.
  8739. (Peers): The element is now of type PeerHandle.
  8740. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  8741. (getPeer): Replaced Peer with PeerHandle.
  8742. (deleteOldErrorPeers): Removed.
  8743. (deleteErrorPeer): New function.
  8744. (hasMissingPiece): Replaced Peer with PeerHandle.
  8745. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  8746. (getMissingPiece): Replaced Peer with PeerHandle.
  8747. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  8748. (getMissingFastPiece): Replaced Peer with PeerHandle.
  8749. (addActivePeer): Replaced Peer with PeerHandle.
  8750. (deleteActivePeer): Replaced Peer with PeerHandle.
  8751. Added a check for the return value of find.
  8752. * src/FtpTunnelResponseCommand.cc
  8753. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  8754. * src/FtpInitiateConnectionCommand.cc
  8755. (executeInternal): Removed the allocation of socket.
  8756. * src/DownloadEngine.h
  8757. (Sockets): An element is now of type SocketHandle.
  8758. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  8759. (CommandUuids): New type definition.
  8760. (rsockets): Changed its type to SockCmdMap.
  8761. (wsockets): Changed its type to SockCmdMap.
  8762. (addSocket): Rewritten.
  8763. (deleteSocket): Rewritten.
  8764. (addSocketForReadCheck): Rewritten.
  8765. (deleteSocketForReadCheck): Rewritten.
  8766. (addSocketForWriteCheck): Rewritten.
  8767. (deleteSocketForWriteCheck): Rewritten.
  8768. (PairFind): New template class.
  8769. * src/HttpDownloadCommand.h
  8770. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  8771. * src/FtpConnection.cc
  8772. (FtpConnection): Replaced Socket with SocketHandle.
  8773. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  8774. block.
  8775. * src/InitiateConnectionCommandFactory.cc
  8776. (DlAbortEx.h): Included DlAbortEx.h.
  8777. (createInitiateConnectionCommand): Throw exception if the protocol of
  8778. requested URI is not supported.
  8779. * src/Peer.cc
  8780. (nullPeer): Changed its type to PeerHandle.
  8781. (operator==): New function.
  8782. (operator!=): New function.
  8783. * src/Peer.h
  8784. (SharedHandle.h): Included SharedHandle.h.
  8785. (operator==): New function.
  8786. (operator!=): New function.
  8787. (Peer): Added the default constructor.
  8788. Use resetStatus() to initialize member variables.
  8789. (nullPeer): Removed.
  8790. * src/TrackerUpdateCommand.cc
  8791. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  8792. with MIN_PEERS.
  8793. * src/PeerListenCommand.h
  8794. (socket): Changed its type to SocketHandle.
  8795. * src/Command.h
  8796. (CommandUuid): New type definition.
  8797. (uuid): New variable.
  8798. (uuidGen): New variable.
  8799. (Command): Added the initialization of uuid.
  8800. (getUuid): New function.
  8801. * src/Socket.h
  8802. (Socket): Removed.
  8803. (SocketHandle): New type definition.
  8804. * src/DownloadEngine.h
  8805. (FindCommand): New function object.
  8806. (run): The portion of socket check was rewritten.
  8807. (SetDescriptor): New function object.
  8808. (AccumulateActiveCommandUuid): New function object.
  8809. (waitData): Rewritten.
  8810. (addSocket): Rewritten.
  8811. (deleteSocket): Rewritten.
  8812. (addSocketForReadCheck): Rewritten.
  8813. (addSocketForWriteCheck): Rewritten.
  8814. (deleteSocketForReadCheck): Rewritten.
  8815. (deleteSocketForWriteCheck): Rewritten.
  8816. * src/HttpProxyResponseCommand.h
  8817. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  8818. * src/HttpConnection.h
  8819. (socket): Changed its type to SocketHandle.
  8820. (HttpConnection): Replaced Socket with SocketHandle.
  8821. * src/PeerInitiateConnectionCommand.cc
  8822. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  8823. (executeInternal): Removed the allocation of socket.
  8824. (prepareForNextPeer): Use PeerHandle.
  8825. * src/PeerMessage.h
  8826. (peer): Changed its type to PeerHandle.
  8827. (getPeer): Replaced Peer with PeerHandle.
  8828. (setPeer): Replaced Peer with PeerHandle.
  8829. * src/DownloadCommand.cc
  8830. (DownloadCommand): Replaced Socket with SocketHandle.
  8831. * src/FtpConnection.h
  8832. (socket): Changed its type to SocketHandle.
  8833. (FtpConnection): Replaced Socket with SocketHandle.
  8834. (sendPort); Replaced Socket with SocketHandle.
  8835. * src/FtpDowndloadCommand.h
  8836. (ctrlSocket): Changed its type to SocketHandle.
  8837. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  8838. * src/HttpProxyRequestCommand.cc
  8839. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  8840. * src/FtpTunnelRequestCommand.h
  8841. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  8842. etc
  8843. * src/PeerChokeCommand.h
  8844. (setAllPeerChoked): Removed.
  8845. (setAllPeerResetDelta): Removed.
  8846. * src/PeerChokeCommand.cc
  8847. (setAllPeerChoked): Removed.
  8848. (ChokePeer): New function object.
  8849. (setAllPeerResetDelta): Removed.
  8850. (ResetDelta): New function object.
  8851. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  8852. (execute): Show download speed when the local node is a seeder.
  8853. setAllPeerChoked and setAllPeerResetDelta were rewritten
  8854. using STL.
  8855. * src/TrackerWatcherCommand.h
  8856. (MIN_PEERS): Removed.
  8857. * src/TorrentMan.cc
  8858. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  8859. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8860. To fix the bug that .aria2 file is not saved if downloading is stopped
  8861. by the errors:it results that aria2 can not resume downloading:
  8862. * src/main.cc
  8863. (normalDownload): Added the call to save().
  8864. (main): Added the deletion of the elements in 'reserved'.
  8865. To fix log:
  8866. * src/PeerInteraction.cc
  8867. (receiveHandshake): Fixed log.
  8868. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8869. To improve download performance in BitTorrent:
  8870. * src/TorrentMan.cc
  8871. (getPeer): Check the number of connections. Return nullPeer if
  8872. it is greater than MAX_PEER_UPDATE.
  8873. This code was originally here, but was removed in 0.5.1.
  8874. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. To improve the conditional compilation:
  8876. * src/MultiDiskWriter.h:
  8877. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8878. * src/MultiDiskWriter.cc:
  8879. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8880. * src/Util.h:
  8881. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8882. Added ENABLE_BITTORRENT around computeFastSet().
  8883. * src/Util.cc:
  8884. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8885. Added ENABLE_BITTORRENT around computeFastSet().
  8886. * src/messageDigest.h:
  8887. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  8888. * src/ShaVisitor.h:
  8889. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8890. * src/ShaVisitor.cc:
  8891. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8892. * src/main.cc:
  8893. Added ENABLE_BITTORRENT around includes and blocks related to
  8894. BitTorrent.
  8895. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  8896. digest support is not available.
  8897. * src/AbstractDiskWriter.h:
  8898. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8899. * src/AbstractDiskWriter.cc:
  8900. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  8901. * src/MetalinkEntry.cc
  8902. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  8903. support is not available.
  8904. To add command-line options for Metalink:
  8905. * src/main.cc:
  8906. Added metalink-version, metalink-language, metalink-os,
  8907. follow-metalink.
  8908. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  8909. * src/main.cc: Use these definition.
  8910. * Release 0.6.0
  8911. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8912. To add Metalink support(http/ftp only):
  8913. * src/AbstractCommand.h
  8914. (tryReserved): New function.
  8915. * src/AbstractCommand.cc
  8916. (execute): Call tryReserved().
  8917. (tryReserved): New function.
  8918. * src/Request.h
  8919. (Requests): New type definition.
  8920. * src/SegmentMan.h
  8921. (reserved): New variable.
  8922. * src/Util.h
  8923. (fileChecksum): New function.
  8924. (toUpper): New function.
  8925. (toLower): New function.
  8926. * src/Util.cc
  8927. (messageDigest.h): Included.
  8928. (trim): Trim \r\n\t.
  8929. (fileChecksum): New function.
  8930. (toUpper): New function.
  8931. (toLower): New function.
  8932. * src/main.cc
  8933. (normalDownload): New function.
  8934. (main): Added 2 command-line options: metalink-file,
  8935. metalink-connection. Their usage has not been written yet.
  8936. * src/MetalinkProcessor.h: New class.
  8937. * src/Xml2MetalinkProcessor.h: New class.
  8938. * src/Xml2MetalinkProcessor.cc: New class.
  8939. * src/MetalinkEntry.h: New class.
  8940. * src/MetalinkEntry.cc: New class.
  8941. * src/MetalinkResource.h: New class.
  8942. * src/MetalinkResource.cc: New class.
  8943. To add md5 message digest checking:
  8944. * src/messageDigest.h: Rewritten.
  8945. * src/MultiDiskWriter.cc: Updated according to the changes in
  8946. messageDigest.h.
  8947. * src/ShaVisitor.cc: Updated according to the changes in
  8948. messageDigest.h.
  8949. * src/Util.cc: Updated according to the changes in messageDigest.h.
  8950. * src/AbstractDiskWriter.cc: Updated according to the changes in
  8951. messageDigest.h.
  8952. To fix a bug that causes segfault when the payload length in peer
  8953. message is less than 0:
  8954. * src/PeerConnection.cc:
  8955. (receiveMessage): Fixed the bug.
  8956. * src/PeerMessageUtil.cc
  8957. (checkLength): Throw an exception if length is less than or equals to
  8958. 0.
  8959. To add new interfaces to Base64 encoding/decoding:
  8960. * src/Base64.h
  8961. (part_encode): Changed the method signature.
  8962. (encode): New function(overload).
  8963. (decode): New function(overload).
  8964. * src/Base64.cc
  8965. (part_encode): Rewritten.
  8966. (encode): Rewritten.
  8967. (encode): New function(overload).
  8968. To prevent a peer to download same piece if there is an error in
  8969. checksum:
  8970. * src/PieceMessage.cc
  8971. (receivedAction): Call peerInteraction->abortPiece().
  8972. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. To fix the bug that causes same have message is sent many times to
  8974. a single peer.
  8975. * src/Time.cc
  8976. (isNewer): Use Util::difftv().
  8977. * src/Util.cc
  8978. (difftv): Added a cast to (long long int).
  8979. * src/TorrentMan.cc
  8980. (advertisePiece): Use push_front.
  8981. (getAdvertisedPieceIndexes): A performance improvement was made.
  8982. To fix the bug that sends tracker requests without a sleep interval
  8983. when the number of connections is less than 15.
  8984. * src/TrackerWatcherCommand.cc
  8985. (execute): Now the number of connections is not a factor to decide
  8986. whether or not a tracker request should be sent or not.
  8987. * src/Time.h
  8988. (setTimeInSec): New function.
  8989. * src/Time.cc
  8990. (setTimeInSec): New function.
  8991. etc.
  8992. * src/ChokeMessage.cc
  8993. (receivedAction): Removed peer->snubbing = false
  8994. * src/PeerConnection.h
  8995. (receiveHandshake): Updated doc.
  8996. * src/TorrentMan.h
  8997. (getAdvertisedPieceIndexes): Updated the method signature.
  8998. * src/TorrentMan.cc
  8999. (getAdvertisedPieceIndexes): Updated the method signature.
  9000. * src/Time.h
  9001. (getTimeInMicros): Added a cast to (long long int).
  9002. (getTimeInMillis): Added a cast to (long long int).
  9003. * Release 0.5.2
  9004. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9005. To make a listening socket non-block:
  9006. * src/SocketCore.h
  9007. (setNonBlockingMode): New function.
  9008. * src/SocketCore.cc
  9009. (setNonBlockingMode): New function.
  9010. (beginListen): Added a call to setNonBlockingMode().
  9011. (acceptConnection): Call setNonBlockingMode().
  9012. (setBlockingMode): Updated.
  9013. To handle tracker's NAT-checking:
  9014. * src/PeerConnection.cc
  9015. (receiveHandshake): 'msg' param is filled with received data and
  9016. its length is assigned to 'length' param, even if all handshake
  9017. message is not yet received.
  9018. * src/PeerInteractionCommand.cc
  9019. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  9020. a new peer connects to localhost.
  9021. A call to peerInteraction->sendHandshake() was removed because
  9022. it is called from peerInteraction->receiveHandshake(true).
  9023. * src/PeerInteraction.h
  9024. (quickReplied): New variable.
  9025. (receiveHandshake): Added an argument.
  9026. * src/PeerInteraction.cc
  9027. (PeerInteraction): Added the initialization of quickReplied.
  9028. (receiveHandshake): Send handshake message as soon as the info hash
  9029. in a handshake message from a peer is correct.
  9030. To change the random part of peer id and key parameter:
  9031. * src/TorrentMan.h
  9032. (key): New variable.
  9033. * src/TorrentMan.cc
  9034. (setupInternal1): Use Util::randomAlpha() to generate random part
  9035. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  9036. key is also generated by Util::randomAlpha() and it is now 8 character
  9037. long.
  9038. * src/Util.h
  9039. (randomAlpha): New function.
  9040. * src/Util.cc
  9041. (randomAlpha): New function.
  9042. * src/TrackerWatcherCommand.cc
  9043. (execute): In a tracker request: Use torrentMan->key as key parameter.
  9044. Added no_peer_id=1.
  9045. Set snubbing flag to false when a choke message is received from a
  9046. snubbed peer.
  9047. * src/ChokeMessage.cc
  9048. (receivedAction): Set snubbing flag to false.
  9049. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9050. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  9051. * src/SimpleLogger.h (writeHeader): New function.
  9052. * src/SimpleLogger.cc (writeHeader): New function.
  9053. (writeLog): Fixed the bug that causes segfaults if exception message
  9054. contains an unescaped "%" character.
  9055. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  9056. when a tracker request fails.
  9057. * src/Request.cc (parseUrl): Query string is now handled properly.
  9058. * Release 0.5.1
  9059. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9060. To add Time class which represents a specific instant in time and
  9061. its precision is microseconds. Time checking procedures were rewritten
  9062. using this object.
  9063. * src/Time.h: New class.
  9064. * src/Time.cc: New class.
  9065. * src/AbstractCommand.h
  9066. (updateCheckPoint): Removed.
  9067. (isTimeoutDetected): Removed.
  9068. (checkPoint): Changed the type to Time.
  9069. (timeout): New variable.
  9070. (setTimeout): New function.
  9071. * src/AbstractCommand.cc
  9072. (AbstractCommand): Removed the initialization of checkPoint.
  9073. Added the initialization of timeout.
  9074. (updateCheckPoint): Removed.
  9075. (isTimeoutDetected): Removed.
  9076. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9077. * src/PeerChokeCommand.h
  9078. (checkPoint): Changed the type to Time.
  9079. * src/PeerChokeCommand.cc
  9080. (PeerChokeCommand): Removed the initialization of checkPoint.
  9081. (execute): Rewritten using Time object.
  9082. * src/TrackerWatcherCommand.h
  9083. (checkPoint): Changed the type to Time.
  9084. * src/TrackerWatcherCommand.cc
  9085. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  9086. (execute): Rewritten.
  9087. * src/ConsoleDownloadEngine.h
  9088. (cp): Changed the type to Time.
  9089. (startup): Changed the type to Time.
  9090. * src/ConsoleDownloadEngine.cc
  9091. (initStatistics): Use cp.reset(), startup.reset().
  9092. (calculateStatistics): Rewritten using Time object.
  9093. * src/PeerAbstractCommand.h
  9094. (updateCheckPoint): Removed.
  9095. (isTimeoutDetected): Removed.
  9096. (checkPoint): Changed the type to Time.
  9097. * src/PeerAbstractCommand.cc
  9098. (PeerAbstractCommand): Removed the initialization of checkPoint.
  9099. (updateCheckPoint): Removed.
  9100. (isTimeoutDetected): Removed.
  9101. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9102. * src/PeerInteractionCommand.cc
  9103. (PeerInteractionCommand): Removed the initializations of struct
  9104. timeval variables.
  9105. * src/PeerInteractionCommand.h
  9106. (keepAliveCheckPoint): Changed the type to Time.
  9107. (chokeCheckPoint): Changed the type to Time.
  9108. (freqCheckPoint): Changed the type to Time.
  9109. (haveCheckTime): Changed the type to Time.
  9110. * src/PeerInteractionCommand.cc
  9111. (executeInternal): Rewritten using Time object.
  9112. (detectMessageFlooding): Rewritten using Time object.
  9113. (checkLongTimePeerChoking): Rewritten using Time object.
  9114. (sendKeepAlive): Rewritten using Time object.
  9115. (checkHave): Rewritten using Time object.
  9116. * src/SleepCommand.h
  9117. (checkPoint): Changed the type to Time.
  9118. * src/SleepCommand.cc
  9119. (SleepCommand): Removed the initialization of checkPoint.
  9120. (execute): Rewritten using Time object.
  9121. * src/TorrentAutoSaveCommand.h
  9122. (checkPoint): Changed the type to Time.
  9123. * src/TorrentAutoSaveCommand.cc
  9124. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  9125. (execute): Rewritten.
  9126. * src/DownloadCommand.h
  9127. (sw): Changed the type to Time.
  9128. * src/DownloadCommand.cc
  9129. (DownloadCommand): Removed the initialization of sw.
  9130. (executeInternal): Rewritten.
  9131. * src/RequestSlot.h
  9132. (dispatchedTime): Changed the type to Time.
  9133. * src/RequestSlot.cc
  9134. (RequestSlot): Removed the call to setDispatchedTime().
  9135. (setDispatchedTime): Rewirtten.
  9136. (isTimeout): Rewritten.
  9137. (getLatencyInMillis): Rewritten.
  9138. * src/TorrentDownloadEngine.h
  9139. (cp): Changed the type to Time[2].
  9140. (startup): Changed the type to Time.
  9141. * src/TorrentDownloadEngine.cc
  9142. (initStatistics): Rewritten.
  9143. (calculateStatistics): Rewritten.
  9144. * src/DownloadEngine.cc
  9145. (run): Rewritten.
  9146. To detect all attempts to connect to the tracker are failed:
  9147. * src/AbstractCommand.cc
  9148. (execute): Increment e->segmentMan->errors if a command aborted.
  9149. * src/SegmentMan.h
  9150. (errors): New variable.
  9151. * src/SegmentMan.cc
  9152. (SegmentMan): Added the initialization of errors.
  9153. (init): Added the initialization of errors.
  9154. * src/TrackerWatcherCommand.cc
  9155. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  9156. request was failed.
  9157. To handle snubbed peers:
  9158. * src/PeerChokeCommand.cc
  9159. (optUnchokingPeer): Snubbed peers don't get unchoked.
  9160. (execute): Snubbed peers don't get unchoked.
  9161. * src/PeerInteraction.h
  9162. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  9163. * src/PeerInteraction.cc
  9164. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  9165. back the requested 16k block in 60 seconds.
  9166. * src/PieceMessage.cc
  9167. (receivedAction): A peer's snubbed state is cleard if it sends
  9168. the requested 16k block in 60 seconds.
  9169. * src/Peer.h
  9170. (snubbing): New variable.
  9171. * src/Peer.cc
  9172. (resetStatus): Added snubbed = false.
  9173. To fix the bug that causes have message is not sent:
  9174. * src/PeerInteractionCommand.cc
  9175. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  9176. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  9177. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  9178. * src/TorrentMan.h
  9179. (HaveEntry): New class.
  9180. (advertisePiece): Rewritten.
  9181. (getAdvertisedPieceIndexes): Rewritten.
  9182. (Haves): Changed the type.
  9183. (getAdvertisedPieceIndexes): Added an argument.
  9184. Others:
  9185. * src/TorrentMan.h
  9186. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  9187. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  9188. * src/TorrentMan.cc
  9189. (getPeer): Don't check the number of connections here.
  9190. (setupInternal1): Changed peerId.
  9191. * src/PeerInteractionCommand.h
  9192. (KEEP_ALIVE_INTERVAL): New definition.
  9193. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  9194. * src/main.cc
  9195. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  9196. * src/DownloadEngine.h: Removed unnecessary header includes.
  9197. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9198. To fix the bug that causes segfaults if a tracker returns a zero-length
  9199. list as "peers":
  9200. * src/TrackerUpdateCommand.cc
  9201. (execute): Added a check to see wether the type of peers is Data*.
  9202. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. * Release 0.5.0
  9204. To fix compile issue with gcc3:
  9205. * src/CancelMessage.h
  9206. (ID): Renamed as ID_t
  9207. (ID_t): New enum.
  9208. * src/RejectMessage.h
  9209. (ID): Renamed as ID_t
  9210. (ID_t): New enum.
  9211. * src/SuggestPieceMessage.h
  9212. (ID): Renamed as ID_t
  9213. (ID_t): New enum.
  9214. * src/AllowedFastMessage.h
  9215. (ID): Renamed as ID_t
  9216. (ID_t): New enum.
  9217. * src/PortMessage.h
  9218. (ID): Renamed as ID_t
  9219. (ID_t): New enum.
  9220. * src/HaveNoneMessage.h
  9221. (ID): Renamed as ID_t
  9222. (ID_t): New enum.
  9223. * src/KeepAliveMessage.h
  9224. (ID): Renamed as ID_t
  9225. (ID_t): New enum.
  9226. * src/HaveAllMessage.h
  9227. (ID): Renamed as ID_t
  9228. (ID_t): New enum.
  9229. * src/UnchokeMessage.h
  9230. (ID): Renamed as ID_t
  9231. (ID_t): New enum.
  9232. * src/BitfieldMessage.h
  9233. (ID): Renamed as ID_t
  9234. (ID_t): New enum.
  9235. * src/PieceMessage.h
  9236. (ID): Renamed as ID_t
  9237. (ID_t): New enum.
  9238. * src/RequestMessage.h
  9239. (ID): Renamed as ID_t
  9240. (ID_t): New enum.
  9241. * src/NotInterestedMessage.h
  9242. (ID): Renamed as ID_t
  9243. (ID_t): New enum.
  9244. * src/ChokeMessage.h
  9245. (ID): Renamed as ID_t
  9246. (ID_t): New enum.
  9247. * src/InterestedMessage.h
  9248. (ID): Renamed as ID_t
  9249. (ID_t): New enum.
  9250. * src/HaveMessage.h
  9251. (ID): Renamed as ID_t
  9252. (ID_t): New enum.
  9253. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. * src/PeerAbstractCommand.h
  9255. (beforeSocketCheck): Removed.
  9256. * src/PeerAbstractCommand.cc
  9257. Modified in order to call executeInternal() even if socket check
  9258. and upload limit check fail.
  9259. * src/PeerInteractionCommand.h
  9260. (keepAlive): Removed.
  9261. (sendKeepAlive): New function.
  9262. (checkHave): New function.
  9263. (beforeSocketCheck): Removed.
  9264. * src/PeerInteractionCommand.cc
  9265. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  9266. calls to checkHave() and sendKeepAlive().
  9267. (keepAlive): Renamed to sendKeepAlive().
  9268. (sendKeepAlive): New function.
  9269. (beforeSocketCheck): Removed.
  9270. (checkHave): New function.
  9271. * src/BitfieldMan.cc
  9272. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  9273. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  9274. 0.
  9275. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  9276. * src/TorrentMan.h
  9277. (UsedPieces): Removed.
  9278. (Pieces): New type definition.
  9279. * src/Piece.h: Updated doc.
  9280. * src/Peer.h
  9281. (totalLength): Removed.
  9282. * src/Peer.cc
  9283. (updateLatency): Fixed the latency calculation.
  9284. * src/TorrentMan.cc
  9285. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  9286. than or equal to MAX_PEER_LIST_SIZE.
  9287. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  9288. then return false.
  9289. (deleteOldErrorPeers): Rewritten.
  9290. (deleteUsedPiece): Fixed the miss use of STL remove.
  9291. * src/PeerInteraction.h
  9292. (Pieces): Removed.
  9293. (deleteTimeoutRequestSlot): Removed.
  9294. (deleteCompletedRequestSlot): Removed.
  9295. (checkRequestSlot): New function.
  9296. * src/PeerInteraction.cc
  9297. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  9298. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  9299. (checkRequestSlot): New function.
  9300. * src/DownloadEngine.cc
  9301. (run): Clear activeSockets before calling waitData().
  9302. (waitData): Removed a call to activeSockets.clear().
  9303. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. To attempt to handle EINTR:
  9305. * src/SocketCore.cc
  9306. (isReadable): Added EINTR handling.
  9307. (isWritable): Added EINTR handling.
  9308. To improve the performance:
  9309. * src/AbstractCommand.cc
  9310. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9311. * src/PeerInteractionCommand.h
  9312. (receiveMessage): Renamed as receiveMessages().
  9313. (receiveMessages): New function.
  9314. * src/PeerInteractionCommand.cc
  9315. (executeInternal): receiveMessage loop is moved to new receiveMessages
  9316. () function. detectMessageFlooding() is moved here.
  9317. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  9318. (). The flooding detection for have message is comment out.
  9319. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  9320. Util::difftv().
  9321. (receiveMessage): Renamed as receiveMessages().
  9322. (receiveMessages): New function.
  9323. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  9324. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  9325. * src/SleepCommand.cc
  9326. (execute): Use Util::difftvsec() instead of Util::difftv().
  9327. * src/BitfieldMan.h
  9328. (getNthBitIndex): New function.
  9329. (hasMissingPiece): New function.
  9330. (getAllMissingIndexes): New function.
  9331. * src/BitfieldMan.cc
  9332. (countSetBit): Rewritten.
  9333. (getNthBitIndex): New function.
  9334. (getMissingIndexRandomly): Rewritten.
  9335. (hasMissingPiece): New function.
  9336. (getAllMissingIndexes): New function.
  9337. * src/TorrentMan.cc
  9338. (hasMissingPiece): New function.
  9339. (deleteUsedPiece): Rewritten using STL.
  9340. * src/PeerInteraction.cc
  9341. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  9342. is a little bit faster then TorrentMan::getMissingPieceIndex().
  9343. (addRequests): Updated the number of pending requests.
  9344. * src/PeerAbstractCommand.cc
  9345. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9346. (execute): Returns true if TorrentMan::isHalt() is true.
  9347. Corrected the condition of upload limit checking.
  9348. * src/Util.h
  9349. (countBit): New function.
  9350. * src/Util.cc
  9351. (nbits): New variable.
  9352. (countBit): New function.
  9353. * src/DownloadEngine.h
  9354. (SockCmdMap): New type definition.
  9355. (waitData): Added an argument.
  9356. (addSocket): Added an argument.
  9357. (addSocketForReadCheck): Added an argument.
  9358. (addSocketForWriteCheck): Added an argument.
  9359. * src/DownloadEngine.cc
  9360. (run): Executes only commands whose sockets are ready to read or write.
  9361. All commands are executed in every 1 second.
  9362. (waitData): Calls select() again if it returned
  9363. EINTR.
  9364. (addSocket): Saves socket and command object pair to the map.
  9365. (deleteSocket): Deletes socket and command object pair from the map.
  9366. (addSocketForReadCheck): Added an argument.
  9367. (addSocketForWriteCheck): Added an argument.
  9368. * src/DownloadCommand.cc
  9369. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  9370. To send "event=stopped" to the tracker when the application finishes:
  9371. * src/PeerChokeCommand.h
  9372. (checkPoint): New variable.
  9373. * src/PeerChokeCommand.cc
  9374. (PeerChokeCommand): Added the initialization of checkPoint.
  9375. (execute): The interval check is now done by checkPoint, not
  9376. SleepCommand. Return true if TorrentMan::isHalt() is true.
  9377. * src/TorrentMan.h
  9378. (halt): New function.
  9379. (hasMissingPiece): New function.
  9380. (isHalt): New function.
  9381. (setHalt): New function.
  9382. * src/TorrentMan.cc
  9383. (TorrentMan): Added the initialization of halt.
  9384. * src/TorrentAutoSaveCommand.h
  9385. (checkPoint): New variable.
  9386. * src/PeerListenCommand.cc
  9387. (execute): Returns true if TorrentMan::isHalt() is true.
  9388. * src/main.cc
  9389. (setSignalHander): Added flags argument.
  9390. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  9391. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  9392. Removed printDownloadAbortMessage() after torrent downloading loop.
  9393. * src/TorrentAutoSaveCommand.cc
  9394. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  9395. (execute): Returns true if TorrentMan::isHalt() is true.
  9396. The interval check is now done by checkPoint, not SleepCommand.
  9397. * src/TrackerWatcherCommand.cc
  9398. (execute): If TorrentMan::isHalt(), then create a tracker request with
  9399. event=stopped.
  9400. * src/TrackerUpdateCommand.cc
  9401. (prepareForRetry): Do not use SleepCommand here.
  9402. (execute): Returns true if TorrentMan::isHalt() is true.
  9403. Others:
  9404. * src/TorrentMan.cc
  9405. (getMissingPieceIndex): Updated log message.
  9406. * src/PeerInteraction.cc
  9407. (createPeerMessag): Updated log message.
  9408. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9409. To add the ability to download several pieces in mix in a command and
  9410. increase the number of request slots according to request-cancel
  9411. latency:
  9412. * src/PeerInteractionCommand.cc
  9413. (executeInternal): The number of messages to be received at a time
  9414. is increased from 10 to 50.
  9415. * src/LogFactory
  9416. (getInstance): Added NullLogger.
  9417. * src/NullLogger.h: New class.
  9418. * src/BitfieldMan.h
  9419. (getMissingIndex): New function.
  9420. * src/BitfieldMan.cc
  9421. (getMissingIndex): New function.
  9422. * src/TorrentMan.h
  9423. (checkOutPiece): New function.
  9424. (getMissingPieceIndex): New function.
  9425. (getMissingFastPieceIndex): New function.
  9426. (getMissingFastPiece): New function.
  9427. * src/TorrentMan.cc
  9428. (updatePiece): Rewritten using STL.
  9429. (syncPiece): Rewritten using STL.
  9430. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  9431. checkOutPiece().
  9432. (getMissingPieceIndex): New function.
  9433. (getMissingFastPieceIndex): New function.
  9434. (getMissingFastPiece): New function.
  9435. (checkOutPiece): New function.
  9436. * src/PeerInteraction.h
  9437. (Pieces): New type definition.
  9438. (piece): Removed.
  9439. (pieces): New variable.
  9440. (getNewPieceAndSendInterest): Added the "piece" argument.
  9441. (abortPiece): Added the "piece" argument.
  9442. (abortAllPieces): New function.
  9443. (isInRequestSlot): New function.
  9444. (hasDownloadPiece): Added the "index" argument.
  9445. (setDownloadPiece): Removed.
  9446. (getDownloadPiece): Added the "index" argument.
  9447. (updatePiece): New function.
  9448. (createRequestMessage): Added the "index" argument.
  9449. * src/PeerInteraction.cc
  9450. (onChoked): Rewritten.
  9451. (abortPiece): Rewirtten.
  9452. (abortAllPieces): New function.
  9453. (deleteTimeoutRequestSlot): Rewritten.
  9454. Clarified code a little bit.
  9455. (deleteCompletedRequestSlot): Rewritten.
  9456. (isInRequestSlot): New function.
  9457. (syncPiece): Rewritten.
  9458. (updatePiece): New function.
  9459. (getNewPieceAndSendInterest): Rewritten.
  9460. (addRequests): Rewritten.
  9461. (getDownloadPiece): Rewritten.
  9462. (hasDownloadPiece): Rewritten.
  9463. (createRequestMessage): Added the "index" argument.
  9464. * src/common.h
  9465. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  9466. (DIV_FLOOR): New definition.
  9467. * src/PieceMessage.cc
  9468. (receivedAction): Update request-piece latency here.
  9469. * src/RequestSlot.h
  9470. (getLatencyInMillis): New function.
  9471. * src/RequestSlot.cc
  9472. (isTimeout): Rewritten using getLatencyInMillis.
  9473. (getLatencyInMillis): New function.
  9474. * src/Piece.h
  9475. (operator==): New function.
  9476. (getMissingBlockIndex): New function.
  9477. * src/Piece.cc
  9478. (operator==): New function.
  9479. (getMissingBlockIndex): New function.
  9480. * src/Peer.h
  9481. (DEFAULT_LATENCY): New definition.
  9482. (latency): New variable.
  9483. (updateLatency): New function.
  9484. (getLatency): New function.
  9485. * src/Peer.cc
  9486. (resetStatus): Reset latecy.
  9487. (updateLatency): New function.
  9488. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. * src/SocketCore.cc
  9490. (isReadable): Added secure to the condition.
  9491. * src/HttpConnection.cc
  9492. (receiveResponse): Fixed a bug that causes no response header
  9493. exception.
  9494. * src/Peer.h
  9495. (getFastSet): Fixed the return value type.
  9496. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9497. To remove a wait from download loop:
  9498. * src/DownloadEngine.cc
  9499. (run): Comment out shortSleep.
  9500. To rewrite the message handling:
  9501. * src/SimplePeerMessage.h: New class.
  9502. * src/SimplePeerMessage.cc: New class.
  9503. * src/CancelMessage.h: Derived from SimplePeerMessage.
  9504. (msg): New variable.
  9505. (create): New function.
  9506. (send): Removed.
  9507. (getMessage): New function.
  9508. (getMessageLength): New function.
  9509. * src/CancelMessage.cc
  9510. (create): New function.
  9511. (receivedAction): Replaced deleteRequestMessageInQueue with
  9512. rejectPieceMessageInQueue.
  9513. (send): Removed.
  9514. (getMessage): New function.
  9515. (getMessageLength): New function.
  9516. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  9517. (msg): New variable.
  9518. (msgLength): New variable.
  9519. (~BitfieldMessage): Deleted msg.
  9520. (send): Removed.
  9521. (getMessage): New function.
  9522. (getMessageLength): New function.
  9523. * src/BitfieldMessage.cc
  9524. (create): New function.
  9525. (send): Removed.
  9526. (getMessage): New function.
  9527. (getMessageLength): New function.
  9528. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  9529. (msg): New variable.
  9530. (sendPredicate): New function.
  9531. (onSendComplete): New function.
  9532. (send): Removed.
  9533. (getMessage): New function.
  9534. (getMessageLength): New function.
  9535. (create): New function.
  9536. * src/ChokeMessage.cc
  9537. (create): New function.
  9538. (send): Removed.
  9539. (sendPredicate): New function.
  9540. (getMessage): New function.
  9541. (getMessageLength): New function.
  9542. (onSendComplete): New function.
  9543. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  9544. (msg): New variable.
  9545. (send): Removed.
  9546. (getMessage): New function.
  9547. (getMessageLength): New function.
  9548. * src/KeepAliveMessage.cc
  9549. (send): Removed.
  9550. (getMessage): New function.
  9551. (getMessageLength): New function.
  9552. * src/PortMessage.h
  9553. (create): New function.
  9554. (receivedAction): Updated log message.
  9555. * src/PortMessage.cc: New file.
  9556. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  9557. (msg): New variable.
  9558. (sendPredicate): New function.
  9559. (onSendComplete): New function.
  9560. (create): New function.
  9561. (send): Removed.
  9562. (getMessage): New function.
  9563. (getMessageLength): New function.
  9564. * src/UnchokeMessage.cc
  9565. (create): New function.
  9566. (send): Removed.
  9567. (sendPredicate): New function.
  9568. (getMessage): New function.
  9569. (getMessageLength): New function.
  9570. (onSendComplete): New function.
  9571. * src/PieceMessage.h
  9572. (leftPieceDataLength): Removed.
  9573. (leftDataLength): New variable.
  9574. (headerSend): New variable.
  9575. (pendingCount): New variable.
  9576. (msgHeader): New variable.
  9577. (sendPieceData): New function.
  9578. (incrementPendingCount): New function.
  9579. (isPendingCountMax): New function.
  9580. (create): New function.
  9581. (getMessageHeader): New function.
  9582. (getMessageHeaderLength): New function.
  9583. * src/PieceMessage.cc
  9584. (create): New function.
  9585. (getMessageHeader): New function.
  9586. (getMessageHeaderLength): New function.
  9587. (send): Rewritten.
  9588. (sendPieceData): New function.
  9589. * src/HaveMessage.h: Derived from SimplePeerMessage.
  9590. (msg): New variable.
  9591. (create): New function.
  9592. (getMessage): New function.
  9593. (getMessageLength): New function.
  9594. * src/HaveMessage.cc
  9595. (create): New function.
  9596. (send): Removed.
  9597. (sendPieceData): New function.
  9598. (getMessage): New function.
  9599. (getMessageLength): New function.
  9600. * src/RequestMessage.h: Derived from SimplePeerMessage.
  9601. (msg): New variable.
  9602. (create): New function.
  9603. (send): Removed.
  9604. (getMessage): New function.
  9605. (getMessageLength): New function.
  9606. * src/RequestMessage.cc
  9607. (create): New function.
  9608. (receivedAction): Added the handling of fast extension.
  9609. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  9610. (send): Removed.
  9611. (getMessage): New function.
  9612. (getMessageLength): New function.
  9613. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  9614. (msg): New variable.
  9615. (sendPredicate): New function.
  9616. (onSendComplete): New function.
  9617. (create): New function.
  9618. (getMessage): New function.
  9619. (getMessageLength): New function.
  9620. * src/InterestedMessage.cc
  9621. (create): New function.
  9622. (send): Removed.
  9623. (sendPieceData): New function.
  9624. (getMessage): New function.
  9625. (getMessageLength): New function.
  9626. (onSendComplete): New function.
  9627. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  9628. (msg): New variable.
  9629. (sendPieceData): New function.
  9630. (onSendComplete): New function.
  9631. (create): New function.
  9632. (send): Removed.
  9633. (getMessage): New function.
  9634. (getMessageLength): New function.
  9635. * src/NotInterestedMessage.cc
  9636. (create): New function.
  9637. (send): Removed.
  9638. (sendPredicate): New function.
  9639. (getMessage): New function.
  9640. (getMessageLength): New function.
  9641. (onSendComplete): New function.
  9642. * src/AllowedFastMessage.h: New class.
  9643. * src/AllowedFastMessage.cc: New class.
  9644. * src/RejectMessage.h: New class.
  9645. * src/RejectMessage.cc: New class.
  9646. * src/SuggestPieceMessage.h: New class.
  9647. * src/SuggestPieceMessage.cc: New class.
  9648. * src/HaveAllMessage.h: New class.
  9649. * src/HaveAllMessage.cc: New class.
  9650. * src/HaveNoneMessage.h: New class.
  9651. * src/HaveNoneMessage.cc: New class.
  9652. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  9653. (msg): New variable.
  9654. (reserved): New variable.
  9655. (create): New function.
  9656. (getId): New function.
  9657. (receivedAction): New function.
  9658. (getMessage): New function.
  9659. (getMessageLength): New function.
  9660. (isFastExtensionSupported): New function.
  9661. * src/HandshakeMessage.cc
  9662. (HandshakeMessage): Moved here from HandshakeMessage.h.
  9663. (create): New function.
  9664. (getMessage): New function.
  9665. (getMessageLength): New function.
  9666. (toString): Added the output of reserved field.
  9667. (check): Added const qualifier.
  9668. (isFastExtensionSupported): New function.
  9669. * src/PeerMessageUtil.h
  9670. (createChokeMessage): Removed.
  9671. (createUnchokeMessage): Removed.
  9672. (createInterestedMessage): Removed.
  9673. (createNotInterestedMessage): Removed.
  9674. (createHaveMessage): Removed.
  9675. (createBitfieldMessage): Removed.
  9676. (createRequestMessage): Removed.
  9677. (createCancelMessage): Removed.
  9678. (createPieceMessage): Removed.
  9679. (createPortMessage): Removed.
  9680. (createChokeMessage): Removed.
  9681. (createUnchokeMessage): Removed.
  9682. (createInterestedMessage): Removed.
  9683. (createNotInterestedMessage): Removed.
  9684. (createHaveMessage): Removed.
  9685. (createBitfieldMessage): Removed.
  9686. (createRequestMessage): Removed.
  9687. (createCancelMessage): Removed.
  9688. (createPieceMessage): Removed.
  9689. (createKeepAliveMessage): Removed.
  9690. (createHandshakeMessage): Removed.
  9691. (setIntParam): New function.
  9692. (createPeerMessageString): New function.
  9693. * src/PeerMessageUtil.cc
  9694. (createChokeMessage): Removed.
  9695. (createUnchokeMessage): Removed.
  9696. (createInterestedMessage): Removed.
  9697. (createNotInterestedMessage): Removed.
  9698. (createHaveMessage): Removed.
  9699. (createBitfieldMessage): Removed.
  9700. (createRequestMessage): Removed.
  9701. (createCancelMessage): Removed.
  9702. (createPieceMessage): Removed.
  9703. (createPortMessage): Removed.
  9704. (createRequestMessage): Removed.
  9705. (createCancelMessage): Removed.
  9706. (createPieceMessage): Removed.
  9707. (createHaveMessage): Removed.
  9708. (createChokeMessage): Removed.
  9709. (createUnchokeMessage): Removed.
  9710. (createInterestedMessage): Removed.
  9711. (createNotInterestedMessage): Removed.
  9712. (createBitfieldMessage): Removed.
  9713. (createKeepAliveMessage): Removed.
  9714. (createHandshakeMessage): Removed.
  9715. (setIntParam): New function.
  9716. (createPeerMessageString): New function.
  9717. * src/PeerConnection.h
  9718. (peer): Removed.
  9719. (torrentMan): Removed.
  9720. (createNLengthMessage): Removed.
  9721. (setIntParam): Removed.
  9722. (writeOutgoingMessageLog): Removed all overloaded functions.
  9723. (PeerConnection): Deleted peer and torrentMan from its arguments.
  9724. (sendMessage): New function.
  9725. (sendHandshake): Removed.
  9726. (sendKeepAlive): Removed.
  9727. (sendChoke): Removed.
  9728. (sendUnchoke): Removed.
  9729. (sendInterested): Removed.
  9730. (sendNotInterested): Removed.
  9731. (sendHave): Removed.
  9732. (sendBitfield): Removed.
  9733. (sendRequest): Removed.
  9734. (sendPiece): Removed.
  9735. (sendPieceHeader): Removed.
  9736. (sendPieceData): Removed.
  9737. (sendCancel): Removed.
  9738. (getPeer): Removed.
  9739. * src/PeerConnection.cc
  9740. (PeerConnection): Deleted peer and torrentMan from its arguments.
  9741. (sendHandshake): Removed.
  9742. (sendKeepAlive): Removed.
  9743. (createNLengthMessage): Removed.
  9744. (setIntParam): Removed.
  9745. (writeOutgoingMessageLog): Removed all overloaded functions.
  9746. (sendChoke): Removed.
  9747. (sendUnchoke): Removed.
  9748. (sendInterested): Removed.
  9749. (sendNotInterested): Removed.
  9750. (sendHave): Removed.
  9751. (sendBitfield): Removed.
  9752. (sendRequest): Removed.
  9753. (sendPiece): Removed.
  9754. (sendPieceHeader): Removed.
  9755. (sendPieceData): Removed.
  9756. (sendMessage): New function.
  9757. (sendCancel): Removed.
  9758. * src/PeerInteractionCommand.cc
  9759. (PeerInteractionCommand): Call setUploadLimit.
  9760. (executeInternal): Call setUploadLimit.
  9761. Added the handling of "inProgress" state of handshake message.
  9762. Call sendBitfield() or sendAllowdFast() instead of deprecated
  9763. sendNow().
  9764. (keepAlive): Call addMessage and sendMessage instead of deprecated
  9765. sendNow().
  9766. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  9767. * src/TorrentMan.h
  9768. (PEER_ID_LENGTH): New definition.
  9769. (hasAllPieces): New function.
  9770. * src/TorrentMan.cc
  9771. (getMissingPiece): Added the handling of fast extension.
  9772. (cancelPiece): Call updatePiece().
  9773. (hasAllPieces): New function.
  9774. * src/PeerInteraction.h
  9775. (fastSet): New variable.
  9776. (getNewPieceAndSendInterest): Changed the return type to void.
  9777. (send): Renamed as sendMessages.
  9778. (deleteAllRequestSlot): Removed.
  9779. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9780. (cancelAllRequest): Removed all overloaded functions.
  9781. (deleteAllRequestSlot): Removed.
  9782. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9783. (rejectPieceMessageInQueue): New function.
  9784. (rejectAllPieceMessageInQueue): New function.
  9785. (onChoked): New function.
  9786. (isSendingMessageInProgress): New function.
  9787. (getCorrespondingRequestSlot): Changed its arguments.
  9788. (isInFastSet): New function.
  9789. (addFastSetIndex): New function.
  9790. (addRequests): New function.
  9791. (sendNow): Removed.
  9792. (trySendNow): Removed.
  9793. (sendBitfield): New function.
  9794. (sendAllowdFast): New function.
  9795. (createHaveAllMessage): New function.
  9796. (createHaveNoneMessage): New function.
  9797. (createRejectMessage): New function.
  9798. (createAllowedFastMessage): New function.
  9799. * src/PeerInteraction.cc
  9800. (send): Renamed as sendMessages.
  9801. (sendMessages): New function.
  9802. (MsgPushBack): New class.
  9803. (isSendingMessageInProgress): New function.
  9804. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  9805. (rejectAllPieceMessageInQueue): New function.
  9806. Added the handling of fast extension.
  9807. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  9808. (rejectPieceMessageInQueue): New function.
  9809. Added the handling of fast extension.
  9810. (deleteRequestSlot): Replaced for loop with std::find.
  9811. (onChoked): New function.
  9812. (deleteAllRequestSlot): Removed.
  9813. (abortPiece): Rewirtten.
  9814. (deleteTimeoutRequestSlot): Updated log messages.
  9815. (getCorrespondingRequestSlot): Changed its arguments.
  9816. (cancelAllRequest): Removed all overloaded functions.
  9817. (receiveHandshake): Added the check to see whether an incoming peer
  9818. supports fast extension.
  9819. (createHandshakeMessage): Use HandshakeMessage::create instead of
  9820. PeerMessageUtil.
  9821. (createPeerMessage): Use create() of each message class instead of
  9822. PeerMessageUtil.
  9823. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  9824. AllowedFastMessage were added.
  9825. (getNewPieceAndSendInterest): Changed its return value type to void.
  9826. Added the handling of fast extension.
  9827. (addRequests): New function.
  9828. (sendNow): Removed.
  9829. (sendHandshake): Rewritten.
  9830. (trySendNow): Removed.
  9831. (sendBitfield): New function.
  9832. (sendAllowdFast): New function.
  9833. (isInFastSet): New function.
  9834. (addFastSetIndex): New function.
  9835. (createRequestMessage): Use RequestMessage::create instead of
  9836. PeerMessageUtil.
  9837. (createCancelMessage): Use CancelMessage::create instead of
  9838. PeerMessageUtil.
  9839. (createPieceMessage): Use PieceMessage::create instead of
  9840. PeerMessageUtil.
  9841. (createHaveMessage): Use HaveMessage::create instead of
  9842. PeerMessageUtil.
  9843. (createChokeMessage): Use ChokeMessage::create instead of
  9844. PeerMessageUtil.
  9845. (createUnchokeMessage): Use UnchokeMessage::create instead of
  9846. PeerMessageUtil.
  9847. (createInterestedMessage): Use InterestedMessage::create instead of
  9848. PeerMessageUtil.
  9849. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  9850. of PeerMessageUtil.
  9851. (createBitfieldMessage): Use BitfieldMessage::create instead of
  9852. PeerMessageUtil.
  9853. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  9854. PeerMessageUtil.
  9855. (createHaveAllMessage): New function.
  9856. (createHaveNoneMessage): New function.
  9857. (createRejectMessage): New function.
  9858. (createAllowedFastMessage: New function.
  9859. * src/Util.h
  9860. (sha1Sum): New function.
  9861. (computeFastSet): New function.
  9862. * src/Util.cc
  9863. (sha1Sum): New function.
  9864. (computeFastSet): New function.
  9865. * src/Peer.h
  9866. (fastExtensionEnabled): New variable.
  9867. (fastSet): New variable.
  9868. (setAllBitfield): New function.
  9869. (setFastExtensionEnabled): New function.
  9870. (isFastExtensionEnabled): New function.
  9871. (addFastSetIndex): New function.
  9872. (getFastSet): New function.
  9873. (isInFastSet): New function.
  9874. (countFastSet): New function.
  9875. * src/Peer.cc
  9876. (isInFastSet): New function.
  9877. (addFastSetIndex): New function.
  9878. (setAllBitfield): New function.
  9879. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  9880. sockets.
  9881. * src/PeerAbstractCommand.cc
  9882. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  9883. and uploadLimit.
  9884. (execute): Changed the procedure of checking sockets. The upload speed
  9885. checking were added.
  9886. (setUploadLimit): New function.
  9887. (setUploadLimitCheck): New function.
  9888. * src/PeerAbstractCommand.h
  9889. (setUploadLimit): New function.
  9890. (setUploadLimitCheck): New function.
  9891. (uploadLimit): New variable.
  9892. (uploadLimitCheck): New variable.
  9893. To contact a tracker regularly:
  9894. * src/TrackerWatcherCommand.h (interval): New variable.
  9895. (checkPoint): New variable.
  9896. (TrackerWatcherCommand): Added interval argument.
  9897. * src/TrackerWatcherCommand.cc
  9898. (TrackerWatcherCommand): Initialized checkPoint.
  9899. (execute): Now a tracker is contacted in every specified period.
  9900. If peer list is not needed, send request with numwant=0.
  9901. * src/TrackerUpdateCommand.cc
  9902. (execute): Updated log messages.
  9903. * src/DownloadEngine.cc
  9904. (~DownloadEngine): Removed two asserts.
  9905. (waitData): Uncommented wfds. May be a bug fix.
  9906. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9907. * src/PeerInteractionCommand.h
  9908. (checkInactiveConnection): Removed.
  9909. * src/PeerInteractionCommand.cc
  9910. (executeInternal): Removed following function calls:
  9911. detectMessageFlooding(), checkLongTimePeerChoking and
  9912. checkInactiveConnection().
  9913. (checkInactiveConnection): Removed.
  9914. (detectMessageFlooding): Removed function call to
  9915. checkInactiveConnection().
  9916. * src/PeerMessageUtil.h
  9917. (createChokeMessage): New function. Overload.
  9918. (createUnchokeMessage): New function. Overload.
  9919. (createInterestedMessage): New function. Overload.
  9920. (createNotInterestedMessage): New function. Overload.
  9921. (createHaveMessage): New function. Overload.
  9922. (createBitfieldMessage): New function. Overload.
  9923. (createRequestMessage): New function. Overload.
  9924. (createCancelMessage): New function. Overload.
  9925. (createPieceMessage): New function. Overload.
  9926. (createKeepAliveMessage): New function. Overload.
  9927. * src/PeerMessageUtil.cc
  9928. (createChokeMessage): New function. Overload.
  9929. (createUnchokeMessage): New function. Overload.
  9930. (createInterestedMessage): New function. Overload.
  9931. (createNotInterestedMessage): New function. Overload.
  9932. (createHaveMessage): New function. Overload.
  9933. (createBitfieldMessage): New function. Overload.
  9934. (createRequestMessage): New function. Overload.
  9935. (createCancelMessage): New function. Overload.
  9936. (createPieceMessage): New function. Overload.
  9937. (createKeepAliveMessage): New function. Overload.
  9938. * src/SendMessageQueue.cc
  9939. (createRequestMessage): Use PeerMessageUtil.
  9940. (createCancelMessage): Use PeerMessageUtil.
  9941. (createPieceMessage): Use PeerMessageUtil.
  9942. (createHaveMessage): Use PeerMessageUtil.
  9943. (createChokeMessage): Use PeerMessageUtil.
  9944. (createUnchokeMessage): Use PeerMessageUtil.
  9945. (createInterestedMessage): Use PeerMessageUtil.
  9946. (createNotInterestedMessage): Use PeerMessageUtil.
  9947. (createBitfieldMessage): Use PeerMessageUtil.
  9948. (createKeepAliveMessage): Use PeerMessageUtil.
  9949. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  9950. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  9951. * src/PeerInteraction.h: New class.
  9952. * src/PeerInteraction.cc: New class.
  9953. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. Each peer message has its own class.
  9955. * src/PendingMessages.h: Removed.
  9956. * src/PendingMessages.cc: Removed. The sending process was moved to
  9957. each message class.
  9958. * src/RequestSlotMan.h: Removed.
  9959. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  9960. SendMessageQueue.
  9961. * src/RequestMessage.h: New class.
  9962. * src/RequestMessage.cc: New class.
  9963. * src/CancelMessage.h: New class.
  9964. * src/CancelMessage.cc: New class.
  9965. * src/BitfieldMessage.h: New class.
  9966. * src/BitfieldMessage.cc: New class.
  9967. * src/ChokeMessage.h: New class.
  9968. * src/ChokeMessage.cc: New class.
  9969. * src/KeepAliveMessage.h: New class.
  9970. * src/KeepAliveMessage.cc: New class.
  9971. * src/PortMessage.h: New class.
  9972. * src/UnchokeMessage.h: New class.
  9973. * src/UnchokeMessage.cc: New class.
  9974. * src/PieceMessage.h: New class.
  9975. * src/PieceMessage.cc: New class.
  9976. * src/HaveMessage.h: New class.
  9977. * src/HaveMessage.cc: New class.
  9978. * src/BitfieldMessage.h: New class.
  9979. * src/BitfieldMessage.cc: New class.
  9980. * src/NotInterestedMessage.h: New class.
  9981. * src/NotInterestedMessage.cc: New class.
  9982. * src/InterestedMessage.h: New class.
  9983. * src/InterestedMessage.cc: New class.
  9984. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  9985. (getSendMessageQueue): New function.
  9986. (setSendMessageQueue): New function.
  9987. * src/HandshakeMessage.cc: New class.
  9988. * src/PeerConnection.h (receiveMessage): Changed return value and
  9989. arguments.
  9990. (receiveHandshake): Changed return value and arguments.
  9991. * src/PeerConnection.cc (receiveMessage): Do not create message class
  9992. here.
  9993. (receiveHandshake): Do not create handshake class here.
  9994. * src/PeerInteractionCommand.h (peerConnection): Removed.
  9995. (piece): Removed.
  9996. (syncPiece): Removed.
  9997. (sendInterest): Removed.
  9998. (sendMessages): Removed.
  9999. (createRequestPendingMessage): Removed.
  10000. (checkPieceHash): Removed.
  10001. (erasePieceOnDisk): Removed.
  10002. (getNewPieceAndSendInterest): Removed.
  10003. (onGotNewPice): Removed.
  10004. (onGotWrongPiece): Removed.
  10005. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10006. Removed peerConnection, piece.
  10007. (~PeerInteractionCommand): Removed peerConnection.
  10008. (executeInternal): Use sendMessageQueue instead of peerConnection.
  10009. (syncPiece): Moved to SendMessageQueue.
  10010. (decideChoking): Removed PendingMessage.
  10011. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  10012. The action after receiving peer message was moved to each message
  10013. class.
  10014. (onGotNewPice): Moved to SendMessageQueue.
  10015. (onGotWrongPiece): Moved to SendMessageQueue.
  10016. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  10017. (sendInterest): Moved to SendMessageQueue.
  10018. (createRequestPendingMessage): Removed.
  10019. (sendMessages): Moved to SendMessageQueue.
  10020. (onAbort): Use SendMessageQueue::abortPiece()
  10021. (keepAlive): Use sendMessageQueue instead of peerConnection.
  10022. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  10023. (checkPieceHash): Moved to SendMessageQueue.
  10024. (erasePieceOnDisk): Moved to SendMessageQueue.
  10025. * src/PeerMessageUtil.h
  10026. (createBitfieldMessage): Removed.
  10027. (createHaveMessage): Changed return value and arguments.
  10028. (createBitfieldMessage): Changed return value and arguments.
  10029. (createRequestCancelMessage): Removed.
  10030. (createPieceMessage): Changed return value and arguments.
  10031. (getShortIntParam): New function.
  10032. (checkIndex): Changed arguments.
  10033. (checkBegin): Changed arguments.
  10034. (checkLength): Changed arguments.
  10035. (checkPieceOffset): Removed.
  10036. (checkRange): New function.
  10037. (checkBitfield): Changed arguments.
  10038. (createPeerMessage): Removed.
  10039. (checkIntegrity): Removed.
  10040. (createHandshakeMessage): Changed arguments.
  10041. (createChokeMessage): New function.
  10042. (createUnchokeMessage): New function.
  10043. (createInterestedMessage): New function.
  10044. (createNotInterestedMessage): New function.
  10045. (createRequestMessage): New function.
  10046. (createCancelMessage): New function.
  10047. (createPortMessage): New function.
  10048. * src/PeerMessageUtil.cc
  10049. (createBitfieldMessage): Removed.
  10050. (createHaveMessage): Changed return value and arguments.
  10051. (createBitfieldMessage): Changed return value and arguments.
  10052. (createRequestCancelMessage): Removed.
  10053. (createPieceMessage): Changed return value and arguments.
  10054. (getShortIntParam): New function.
  10055. (checkIndex): Changed arguments.
  10056. (checkBegin): Changed arguments.
  10057. (checkLength): Changed arguments.
  10058. (checkPieceOffset): Removed.
  10059. (checkRange): New function.
  10060. (checkBitfield): Changed arguments.
  10061. (createPeerMessage): Removed.
  10062. (checkIntegrity): Removed.
  10063. (createHandshakeMessage): Changed arguments.
  10064. (createChokeMessage): New function.
  10065. (createUnchokeMessage): New function.
  10066. (createInterestedMessage): New function.
  10067. (createNotInterestedMessage): New function.
  10068. (createRequestMessage): New function.
  10069. (createCancelMessage): New function.
  10070. (createPortMessage): New function.
  10071. * src/PeerMessage.h
  10072. (id): Removed.
  10073. (index): Removed.
  10074. (begin): Removed.
  10075. (length): Removed.
  10076. (bitfield): Removed.
  10077. (bitfieldLength): Removed.
  10078. (block): Removed.
  10079. (blockLength): Removed.
  10080. (inProgress): New variable.
  10081. (cuid): New variable.
  10082. (peer): New variable.
  10083. (sendMessageQueue): New variable.
  10084. (logger): New variable.
  10085. (setBitfield): Removed.
  10086. (getBitfield): Removed.
  10087. (setBlock): Removed.
  10088. (getBlock): Removed.
  10089. (getBitfieldLength): Removed.
  10090. (getBlockLength): Removed.
  10091. (isInProgress): New function.
  10092. (toString): Made pure virtual.
  10093. (check): New function.
  10094. (send): New function.
  10095. (receivedAction): New function.
  10096. (getId): Made pure virtual.
  10097. (setId): Removed.
  10098. (getIndex): Removed.
  10099. (setIndex): Removed.
  10100. (getBegin): Removed.
  10101. (setBegin): Removed.
  10102. (getLength): Removed.
  10103. (setLength): Removed.
  10104. (getCuid): New function.
  10105. (setCuid): New function.
  10106. (getPeer): New function.
  10107. (setPeer): New function.
  10108. (getSendMessageQueue): New function.
  10109. (setSendMessageQueue): New function.
  10110. (ID): Removed.
  10111. * src/PeerMessage.cc
  10112. (setBitfield): Removed.
  10113. (setBlock): Removed.
  10114. (toString): Removed.
  10115. * src/TorrentMan.h
  10116. (getPieceLength): New function.
  10117. (getPieceLength): New function.
  10118. * src/SendMessageQueue.h
  10119. (REQUEST_TIME_OUT): New definition.
  10120. (RequestSlots): New definition.
  10121. (MessageQueue): New definition.
  10122. (requestSlotMan): Removed.
  10123. (pendingMessages): Removed.
  10124. (requestSlots): New variable.
  10125. (messageQueue): New variable.
  10126. (torrentMan): New variable.
  10127. (peerConnection): New variable.
  10128. (peer): New variable.
  10129. (piece): New variable.
  10130. (getNewPieceAndSendInterest): New function.
  10131. (createPeerMessage): New function.
  10132. (createHandshakeMessage): New function.
  10133. (send): Made private.
  10134. (setPeerMessageCommonProperty): New function.
  10135. (deleteAllRequestSlot): New function.
  10136. (deleteRequestMessageInQueue): New function.
  10137. (cancelAllRequest): Made private.
  10138. (cancelAllRequest): Made private.
  10139. (countRequestSlot): Made private.
  10140. (addPendingMessage): Removed.
  10141. (deletePendingPieceMessage): Removed.
  10142. (deletePendingRequestMessage): Removed.
  10143. (addMessage): New function.
  10144. (deletePieceMessageInQueue): New function.
  10145. (deleteTimeoutRequestSlot): Changed argument.
  10146. (deleteCompletedRequestSlot): Changed argument.
  10147. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  10148. (getCorrespondingRequestSlot): New function.
  10149. (countPendingMessage): Removed.
  10150. (countMessageInQueue): New function.
  10151. (getTorrentMan): New function.
  10152. (getPeerConnection): New function.
  10153. (hasDownloadPiece): New function.
  10154. (getDownloadPiece): New function.
  10155. (setDownloadPiece): New function.
  10156. (syncPiece): New function.
  10157. (sendMessages): New function.
  10158. (sendNow): New function.
  10159. (trySendNow): New function.
  10160. (abortPiece): New function.
  10161. (sendHandshake): New function.
  10162. (receiveMessage): New function.
  10163. (receiveHandshake): New function.
  10164. (createRequestMessage): New function.
  10165. (createCancelMessage): New function.
  10166. (createPieceMessage): New function.
  10167. (createHaveMessage): New function.
  10168. (createChokeMessage): New function.
  10169. (createUnchokeMessage): New function.
  10170. (createInterestedMessage): New function.
  10171. (createNotInterestedMessage): New function.
  10172. (createBitfieldMessage): New function.
  10173. (createKeepAliveMessage): New function.
  10174. * src/SendMessageQueue.cc
  10175. (SendMessageQueue): Removed requestSlotMan.
  10176. Instantiated peerConnection here.
  10177. (~SendMessageQueue): Removed requestSlotMan.
  10178. Added deletion of peerConnection and the contents of messageQueue.
  10179. (send): Updated according to the change of messageQueue.
  10180. (addPendingMessage): Renamed to addMessage.
  10181. (addMessage): New function.
  10182. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  10183. (deletePieceMessageInQueue): New function.
  10184. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  10185. (deleteRequestMessageInQueue): New function.
  10186. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  10187. here.
  10188. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  10189. (...) was moved here.
  10190. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  10191. moved here.
  10192. (deleteCompletedRequestSlot):
  10193. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  10194. (getCorrespondingRequestSlot):
  10195. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  10196. And renamed to getCorrespondingRequestSlot, correcting a typo.
  10197. (countPendingMessage): Renamed to countMessageInQueue.
  10198. (countMessageInQueue): New function.
  10199. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  10200. (receiveHandshake): New function.
  10201. (createHandshakeMessage): New function.
  10202. (receiveMessage): New function.
  10203. (createPeerMessage): New function.
  10204. (syncPiece): New function.
  10205. (getNewPieceAndSendInterest): New function.
  10206. (sendMessages): New function.
  10207. (sendNow): New function.
  10208. (trySendNow): New function.
  10209. (sendHandshake): New function.
  10210. (abortPiece): New function.
  10211. (getDownloadPiece): New function.
  10212. (getPeerMessageCommonProperty): New function.
  10213. (createRequestMessage): New function.
  10214. (createCancelMessage): New function.
  10215. (createPieceMessage): New function.
  10216. (createHaveMessage): New function.
  10217. (createChokeMessage): New function.
  10218. (createUnchokeMessage): New function.
  10219. (createInterestedMessage): New function.
  10220. (createNotInterestedMessage): New function.
  10221. (createBitfieldMessage): New function.
  10222. (createKeepAliveMessage): New function.
  10223. To add simple Content-Disposition support:
  10224. * src/HttpResponseCommand.h (determinFilename): New function.
  10225. * src/HttpResponseCommand.cc (executeInternal):
  10226. Use determinFilename(headers) instead of req->getFile() when comparing
  10227. filename.
  10228. (determinFilename): New function.
  10229. (handleDefaultEncoding): Use determinFilename(headers) instead of
  10230. req->getFile().
  10231. (handleOtherEncoding): Use determinFilename(headers) instead of
  10232. req->getFile().
  10233. * src/Util.h (getContentDispositionFilename): New function.
  10234. * src/Util.cc (getContentDispositionFilename): New function.
  10235. * src/LogFactory.h (release): New function.
  10236. * src/LogFactory.cc (release): New function.
  10237. To fix a bug that causes out-of-bound exception when HTTP status
  10238. line is wrong:
  10239. * src/HttpConnection.cc (receiveResponse): Added a check for header
  10240. size.
  10241. * src/common.h (Deleter): New class.
  10242. * src/SegmentMan.cc
  10243. (~SegmentMan): Added deletion of splitter and diskWriter.
  10244. * src/DownloadEngine.h
  10245. (Commands): Use deque.
  10246. (clearQueue): New function.
  10247. * src/DownloadEngine.cc
  10248. (~DownloadEngine): Added deletion of segmentMan.
  10249. (cleanQueue): New function.
  10250. * src/TorrentDownloadEngine.h
  10251. (TorrentDownloadEngine): The implementation was moved to
  10252. TorrentDownloadEngine.cc.
  10253. (~TorrentDownloadEngine): The implementation was moved to
  10254. TorrentDownloadEngine.cc.
  10255. * src/TorrentDownloadEngine.cc
  10256. (~TorrentDownloadEngine): Added deletion of torrentMan.
  10257. * src/main.cc
  10258. (clearRequest): Removed.
  10259. (handler): Added deletion of e.
  10260. (torrentHandler): Added deletion of te.
  10261. (main): Do not share splitter.
  10262. Use Deleter instead of clearRequest.
  10263. Deletion of classes were updated.
  10264. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10265. * src/main.cc (main): Fixed typo.
  10266. * src/message.h: Fixed typo.
  10267. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  10268. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10269. To add --select-file command-line option:
  10270. * src/Util.cc
  10271. (unfoldRange): New function.
  10272. (getNum): New function.
  10273. (unfoldSubRange): New function
  10274. * src/main.cc
  10275. (showUsage): Added help message.
  10276. (main): Added --select-file command-line option. Updated the layout of
  10277. file listing.
  10278. * src/common.h
  10279. (Integers): New definition.
  10280. * src/SocketCore.cc
  10281. (writeData): Removed timeout argument.
  10282. (readData): Removed timeout argument.
  10283. (peekData): Removed timeout argument.
  10284. * src/Socket.cc
  10285. (writeData): Removed timeout argument.
  10286. (readData): Removed timeout argument.
  10287. (peekData): Removed timeout argument.
  10288. * Release 0.4.1
  10289. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. To deploy upload rate based choking algorithm:
  10291. * src/PeerInteractionCommand.cc
  10292. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  10293. peer currently used.
  10294. (decideChoking): Deleted the choke/unchoke decision algorithm when
  10295. download completes. Simplified.
  10296. (receiveMessage): Updated.
  10297. * src/TorrentMan.h
  10298. (activePeers): New variable.
  10299. (addActivePeer): New function.
  10300. (getActivePeers): New function.
  10301. (deleteActivePeer): New function.
  10302. * src/TorrentMan.cc
  10303. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  10304. * src/PeerAbstractCommand.cc
  10305. (onAbort): Use peer->resetStatus().
  10306. * src/main.cc
  10307. (PeerChokeCommand.h): Included.
  10308. (main): Added the instance of ChokingCommand to the command queue.
  10309. * src/Peer.h
  10310. (amChoking): Renamed from amChocking
  10311. (chokingRequired): New variable.
  10312. (optUnchoking): New variable.
  10313. (deltaUpload): New variable.
  10314. (deltaDownload): New variable.
  10315. (addDeltaUpload): New function.
  10316. (resetDeltaUpload): New function.
  10317. (addDeltaDownload): New function.
  10318. (resetDeltaDownload): New function.
  10319. (addPeerUpload): Added a call to addDeltaUpload.
  10320. (addPeerDownload): Added a call to addDeltaDownload.
  10321. * src/Peer.cc
  10322. (shouldBeChoking): Renamed from shouldChoke.
  10323. (resetStatus): New function.
  10324. * src/PeerChokeCommand.h: New class.
  10325. * src/PeerChokeCommand.cc: New class.
  10326. To add lazy upload speed limiter:
  10327. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  10328. statistics calculation to TorrentDownloadEngine.
  10329. * src/TorrentConsoleDownloadEngine.cc
  10330. (sendStatistics): Renamed from printStatistics.
  10331. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  10332. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  10333. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  10334. * src/TorrentDownloadEngine.h: Added the variables for statistics
  10335. calculation.
  10336. (sendStatistics): New function as pure virtual function.
  10337. (getUploadSpeed): New function.
  10338. * src/TorrentDownloadEngine.cc
  10339. (initStatistics): New function.
  10340. (calculateSpeed): New function.
  10341. (calculateStatistics): New function.
  10342. * src/SendMessageQueue.h
  10343. (uploadLength): New variable.
  10344. (send): Added an argument.
  10345. (setUploadLimit): New function.
  10346. (getUploadLimit): New function.
  10347. * src/SendMessageQueue.cc
  10348. (send): Added upload speed limiter.
  10349. * src/prefs.h
  10350. (PREF_UPLOAD_LIMIT): New definition.
  10351. * src/PeerInteractionCommand.cc
  10352. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  10353. * src/main.cc
  10354. (main): Added --upload-limit option
  10355. For bug fixes:
  10356. * src/main.cc
  10357. (showUsage): Corrected --listen-port help
  10358. Other changes:
  10359. * src/TorrentMan.cc
  10360. (getPeer): Return nullPeer if connection is grather than
  10361. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  10362. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. To add some useful information to the exception message:
  10364. * src/SocketCore.cc : Updated messages.
  10365. * src/SegmentMan.cc :
  10366. * src/TorrentMan.cc : Updated messages.
  10367. * src/MultiDiskWriter.cc : Updated messages.
  10368. * src/Util.cc : Updated messages.
  10369. * src/AbstractDiskWriter.cc : Updated messages.
  10370. * src/PreAllocationDiskWriter.cc : Updated messages.
  10371. * src/message.cc : Added new messages. Updated some messages.
  10372. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  10373. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  10374. Updated threshold from 30 to 15.
  10375. * src/AbstractDiskWriter.h (filename): New variable.
  10376. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  10377. (createFile): Assigned filename.
  10378. * src/main.cc: Updated the help message for http-auth-scheme.
  10379. * Release 0.4.0
  10380. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10381. To add TrackerUpdateCommand with which replaces
  10382. CompactTrackerResponseProcessor:
  10383. * src/TrackerWatcherCommand.h (req): Removed.
  10384. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  10385. if the number of peer connections are less than 30.
  10386. * src/ByteArrayDiskWriter.h (readData): Implemented.
  10387. * src/SegmentMan.h (diskWriter): New function.
  10388. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  10389. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  10390. (main): Use TrackerUpdateCommand.
  10391. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  10392. (req): New variable.
  10393. (setTrackerResponseProcessor): Removed.
  10394. (getTrackerResponseProcessor): Removed.
  10395. (processTrackerResponse): Removed.
  10396. * src/DownloadEngine.h (diskWriter): Removed.
  10397. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  10398. to torrentMan->processTrackerResponse().
  10399. To add Util::expandBuffer:
  10400. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  10401. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  10402. * src/Util.h (expandBuffer): New function.
  10403. To fix the bug that causes segmentation fault when "-l ." is specified
  10404. in command-line option:
  10405. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  10406. (openFile): New function.
  10407. (closeFile): New function.
  10408. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  10409. (~SimpleLogger): Call closeFile();
  10410. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  10411. * src/main.cc (main): Added a check to see logger is configured
  10412. properly.
  10413. To enable HTTP authentication without specifying "--http-auth-scheme"
  10414. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  10415. * src/HttpConnection.cc (createRequest): Send Authorization header
  10416. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  10417. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  10418. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  10419. * src/Peer.cc (shouldChoke): Updated algorithm.
  10420. * src/message.h (EX_AUTH_FAILED): New definition.
  10421. (EX_FILE_OPEN): New definition.
  10422. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  10423. if status == 401.
  10424. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  10425. if req->isTorrent == true.
  10426. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  10427. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  10428. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  10429. (createFile): Updated message.
  10430. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10431. To add a readout of estimated remaining time to normal HTTP/FTP
  10432. downloads:
  10433. * src/ConsoleDownloadEngine.h (startup): New variable.
  10434. (startupLength): New variable.
  10435. (isStartupLengthSet): New variable.
  10436. (avgSpeed): New variable.
  10437. (eta): New variable.
  10438. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  10439. estimated remaining time.
  10440. (initStatistics): Initialized newly added variables.
  10441. (calculateStatistics): Calculate average speed and estimated remaining
  10442. time.
  10443. To decouple TorrentDownloadEngine from HttpResponseCommand:
  10444. * src/TrackerDownloadCommand.h: Removed.
  10445. * src/TrackerDownloadCommand.cc: Removed.
  10446. * src/TrackerInitCommand.h: Removed.
  10447. * src/TrackerInitCommand.cc: Removed.
  10448. * src/TrackerUpdateCommand.h: Removed.
  10449. * src/TrackerUpdateCommand.cc: Removed.
  10450. * src/TrackerWatcherCommand.cc (execute): The construction of request
  10451. url written in TrackerInitCommand was moved here. Do not create
  10452. tracker request command if torrentMan->trackers != 0.
  10453. * src/CompactTrackerResponseProcessor.h: New class.
  10454. * src/CompactTrackerResponseProcessor.cc: New class.
  10455. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  10456. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  10457. Decoupled TorrentDownloadEngine from this.
  10458. * src/SegmentMan.h (init): New function.
  10459. * src/SegmentMan.cc (init): New function.
  10460. * src/TorrentMan.h (responseProcessor): New variable.
  10461. (trackers): New variable.
  10462. (setTrackerResponseProcessor): New function.
  10463. (getTrackerResponseProcessor): New function.
  10464. (processTrackerResponse): New function.
  10465. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  10466. (processTrackerResponse): New function.
  10467. * src/main.cc (main): Use ByteArrayDiskWriter and
  10468. CompactTrackerResponseProcessor.
  10469. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  10470. processTrackerResponse().
  10471. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  10472. readout.
  10473. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  10474. which indicates download has completed.
  10475. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  10476. (closeFile): fd >= 0, not fd > 0
  10477. * src/main.cc (main): Added short cut for show-files.
  10478. Added short cut for torrent-file.
  10479. Added new command-line option listen-port.
  10480. Updated i18n messages.
  10481. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10482. To add LogFactory which creates singleton logger:
  10483. * src/LogFactory.h: New class.
  10484. * src/LogFactory.cc: New class.
  10485. * src/Command.h (logger): New variable.
  10486. (Constructor): Use LogFactory.
  10487. * src/AbstractCommand.cc: Use Command::logger
  10488. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  10489. Use LogFactory.
  10490. * src/SegmentSplitter.h : Made logger protected.
  10491. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  10492. * src/SegmentMan.cc (Constructor): Use LogFactory.
  10493. * src/DownloadEngine.h : Made logger protected.
  10494. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  10495. * src/PeerInteractionCommand.cc : Use Command::logger.
  10496. * src/HttpResponseCommand.cc : Use Command::logger.
  10497. * src/SegmentMan.h : Made logger private.
  10498. * src/TorrentMan.h : Made logger private.
  10499. * src/TorrentMan.cc : Use LogFactory.
  10500. * src/FtpNegotiateCommand.cc : Use Command::logger.
  10501. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  10502. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  10503. Use LogFactory.
  10504. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  10505. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  10506. Use LogFactory.
  10507. * src/DownloadCommand.cc : Use Command::logger.
  10508. * src/PeerAbstractCommand.cc : Use Command::logger.
  10509. * src/PeerListenCommand.cc : Use Command::logger.
  10510. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  10511. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  10512. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  10513. * src/TrackerWatcherCommand.cc : Use Command::logger.
  10514. * src/TrackerUpdateCommand.cc : Use Command::logger.
  10515. * src/TrackerDownloadCommand.cc : Use Command::logger.
  10516. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  10517. Use LogFactory.
  10518. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  10519. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  10520. Use LogFactory.
  10521. * src/main.cc (main): Use LogFactory.
  10522. * src/DiskAdaptor.h (logger): New variable.
  10523. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  10524. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  10525. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10526. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  10527. parameter to a tracker request.
  10528. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  10529. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  10530. * src/main.cc (setSignalHander): New function.
  10531. (main): Added a handler for SIGTERM.
  10532. (handler): Updated message.
  10533. (torrentHandler): Updated message.
  10534. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10535. * src/TorrentConsoleDownloadEngine.cc
  10536. (onPartialDownloadingCompletes): Renamed as
  10537. onSelectiveDownloadingCompletes.
  10538. (onSelectiveDownloadingCompletes): Updated message.
  10539. To add DiskAdaptor which abstract DiskWriter family:
  10540. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  10541. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  10542. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  10543. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  10544. MultiDiskAdaptor.h.
  10545. (readFileEntry): Changed its arguments.
  10546. (setup): setupDiskWriter is merged into this function.
  10547. (setupDiskWriter): Removed.
  10548. (setFileFilter): New function.
  10549. (readFileEntryFromMetaInfoFile): Updated according to the changes
  10550. made in readFileEntry.
  10551. (getFilePath): Removed.
  10552. (getTempFilePath): Removed.
  10553. (getSegmentFilePath): Updated due to the removal of getFilePath.
  10554. (fixFilename): Removed.
  10555. (copySingleFile): Removed.
  10556. (splitMultiFile): Removed.
  10557. (deleteTempFile): Removed.
  10558. (setFileEntriesToDownload): Removed.
  10559. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  10560. (isSelectiveDownloadingMode): New function.
  10561. (setAllMultiFileRequestedState): Removed.
  10562. (finishPartialDownloadingMode): Renamed as
  10563. finishSelectiveDownloadingMode.
  10564. (finishSelectiveDownloadingMode): New function.
  10565. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  10566. (getSelectedTotalLength): New function.
  10567. (onDownloadComplete): Use diskAdaptor.
  10568. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  10569. (Range): Removed.
  10570. (setMultiFileEntries): Renamed as setFileEntries.
  10571. (setFileEntries): New function.
  10572. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  10573. (pieceLength): New variable.
  10574. * src/main.cc (printDownloadCompeleteMessage): New function.
  10575. (torrentHandler): Use diskAdaptor instead of diskWriter.
  10576. (main): Renamed torrent-show-files to show-files.
  10577. Rewritten file contents listing.
  10578. * src/TorrentMan.h (FileEntry): Removed.
  10579. (multiFileTopDir): Removed.
  10580. (multiFileEntries): Removed.
  10581. (diskWriter): Removed.
  10582. (diskAdaptor): New variable.
  10583. * src/DefaultDiskWriter.h (totalLength): New variable.
  10584. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  10585. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  10586. diskWriter.
  10587. * src/TorrentConsoleDownloadEngine.h
  10588. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  10589. (partialTotalLength): Renamed as selectedTotalLength.
  10590. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  10591. openExistingFile, otherwise call initAndOpenFile.
  10592. (closeFile): fd > 0, not fd != 0.
  10593. * src/DirectDiskAdaptor.h: New class.
  10594. * src/DirectDiskAdaptor.cc: New class.
  10595. * src/MultiDiskAdaptor.h: New class.
  10596. * src/MultiDiskAdaptor.cc: New class.
  10597. * src/CopyDiskAdaptor.h: New class.
  10598. * src/CopyDiskAdaptor.cc: New class.
  10599. * src/DiskAdaptor.h: New class.
  10600. * src/DiskAdaptor.cc: New class.
  10601. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  10602. (PREF_SHOW_FILES): New definition.
  10603. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10604. To add the ability to download multi torrent into respective files
  10605. directly:
  10606. * src/DiskWriter.h (openFile): New function.
  10607. (seek): Removed.
  10608. * src/MultiDiskWriter.h: New class.
  10609. * src/MultiDiskWriter.cc: New class.
  10610. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  10611. protected.
  10612. (openFile): New function.
  10613. * src/AbstractDiskWriter.cc (openFile): New function.
  10614. * src/prefs.h (V_FALSE): New definition.
  10615. (PREF_DIRECT_FILE_MAPPING): New definition.
  10616. * src/TorrentMan.h (setupDiskWriter): New function.
  10617. (setAllMultiFileRequestedState): New function.
  10618. (onDownloadComplete): New function.
  10619. * src/TorrentMan.cc : Included MultiDiskWriter.h
  10620. (setupDiskWriter): New function.
  10621. (getFilePath): Updated.
  10622. (getTempFilePath): Updated.
  10623. (getSegmentFilePath): Updated.
  10624. (fixFilename): Updated.
  10625. (deleteTempFile): Updated.
  10626. (setAllMultiFileRequestedState): New function.
  10627. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  10628. (finishPartialDownloadingMode): Reset requested flags.
  10629. (onDownloadComplete): New function.
  10630. * src/main.cc: Added --direct-file-mapping option.
  10631. Use TorrentMan::setupDiskWriter().
  10632. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  10633. onDownloadComplete().
  10634. To fix ETA bug:
  10635. * src/Util.h (difftvsec): New function.
  10636. * src/Util.cc (difftvsec): New function.
  10637. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  10638. type of "elapsed" instead of long long int.
  10639. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  10640. The updates of statistics takes place every 1 seconds.
  10641. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  10642. (calculateSpeed): Changed its argument signature.
  10643. * src/PeerMessage.cc (toString): Fixed message.
  10644. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10645. To print ETA:
  10646. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  10647. completion handling when dealing with
  10648. TorrentMan::isPartialDownloadingMode() == true.
  10649. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  10650. New function.
  10651. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  10652. (sessionDownloadLength): New variable.
  10653. (avgSpeed): New variable.
  10654. (eta): New variable.
  10655. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  10656. new variables: eta, avgSpeed, startup.
  10657. (calculateSpeed): Calculate average speed and ETA.
  10658. (printStatistics): Added ETA.
  10659. * src/Util.h (secfmt): New function.
  10660. * src/Util.cc (secfmt): New function.
  10661. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10662. To detect "keep alive" flooding:
  10663. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  10664. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  10665. variable: keepAliveCount.
  10666. (detectMessageFlooding): Added "keep alive" flooding detection.
  10667. (receiveMessage): Increase keepAliveCount when "keep alive" message
  10668. received.
  10669. To add the ability to download only specified files in multi-file
  10670. torrent:
  10671. * src/BitfieldMan.h (filterBitfield): New variable.
  10672. (filterEnabled): New variable.
  10673. (setFilterBit): New function.
  10674. (enableFilter): New function.
  10675. (disableFilter): New function.
  10676. (isFilterEnabled): New function.
  10677. (getFilteredTotalLength): New function.
  10678. (getCompletedLength): New function.
  10679. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  10680. filterBitfield, filterEnabled.
  10681. (CopyConstructor): Added filterBitfield and filterEnabled.
  10682. (operator==): Added filterBitfield and filterEnabled.
  10683. (Destructor): Added filterBitfield.
  10684. (getMissingIndex): Use filterBitfield.
  10685. (getMissingUnusedIndex): Use filterBitfield.
  10686. (getFirstMissingUnusedIndex): Use filterBitfield.
  10687. (getFirstMissingUnusedIndex): Use filterBitfield.
  10688. (getAllMissingIndexes): Use filterBitfield.
  10689. (countMissingBlock): Use filterBitfield.
  10690. (countBlock): Use filterBitfield.
  10691. (setBitInternal): Added new argument on.
  10692. (setUseBit): Use setBitInternal.
  10693. (unsetUseBit): Use setBitInternal.
  10694. (setBit): Use setBitInternal.
  10695. (unsetBit): Use setBitInternal.
  10696. (isAllBitSet): Use filterBitfield.
  10697. (setFilterBit): New function.
  10698. (addFilter): New function.
  10699. (enableFilter): New function.
  10700. (disableFilter): New function.
  10701. (clearFilter): New function.
  10702. (isFilterEnabled): New function.
  10703. (getFilteredTotalLength): New function.
  10704. (getCompletedLength): New function.
  10705. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  10706. Initalized newly added variables.
  10707. [FileEntry](offset): New variable.
  10708. [FileEntry](extracted): New variable.
  10709. [FileEntry](requested): New variable.
  10710. (readFileEntry): New function.
  10711. (option): New variable.
  10712. (splitMultiFile): Removed const qualifier.
  10713. (fixFilename): Removed const qualifier.
  10714. (readFileEntryFromMetaInfoFile): New function.
  10715. (finishPartialDownloadingMode): New function.
  10716. (isPartialDownloadingMode): New function.
  10717. (setFileEntriesToDownload): New function.
  10718. (getCompletedLength): New function.
  10719. (getPartialTotalLength): New function.
  10720. * src/TorrentMan.cc (readFileEntry): New function.
  10721. (setup): Use readFileEntry. If no-preallocation option is specified,
  10722. use DefaultDiskWriter.
  10723. (readFileEntryFromMetaInfoFile): New function.
  10724. (fixFilename): Removed const qualifier.
  10725. (splitMultiFile): Removed const qualifier.
  10726. (setFileEntriesToDownload): New function.
  10727. (isPartialDownloadingMode): New function.
  10728. (finishPartialDownloadingMode): New function.
  10729. (getCompletedLength): New function.
  10730. (getPartialTotalLength): New function.
  10731. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  10732. New variable.
  10733. (partialTotalLength): New variable.
  10734. (downloadLength): New variable.
  10735. (totalLength): New variable.
  10736. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  10737. Added log.
  10738. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  10739. partialTotalLength, downloadLength, totalLength.
  10740. (calculate): Calculate downloadLength and totalLength.
  10741. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  10742. * src/main.cc (addCommand): Changed argument signature.
  10743. (main): Added new variable: args. Added new option "torrent-show-files"
  10744. "no-preallocation". Usage is not updated yet.
  10745. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10746. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  10747. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10748. Attempt to add the ability to listing file entries in a .torrent file.
  10749. This feature is not yet complete.
  10750. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  10751. * src/TorrentMan.cc (getMultiFileEntries): New function.
  10752. (getName): New function.
  10753. * src/TorrentMan.h (getMultiFileEntries): New function.
  10754. (getName): New function.
  10755. * src/main.cc (main): Use above 2 funtion.
  10756. * Release 0.3.2
  10757. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10758. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  10759. (detectMessageFlooding): Updated threshold value.
  10760. (checkLongTimePeerChoking): Updated timeout value.
  10761. (getNewPieceAndSendInterest): Added debug log.
  10762. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  10763. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  10764. (getPeer): Updated.
  10765. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  10766. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  10767. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  10768. is localhost.
  10769. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  10770. * src/PendingMessage.cc (processMessage): Not to send piece message
  10771. if peer is not interested in the pieces localhost has.
  10772. * src/Peer.cc (shouldChoke): Updated.
  10773. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  10774. * src/Util.cc (isPowerOf): New function.
  10775. * src/Util.h (isPowerOf): New function.
  10776. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  10777. whether or not it is power of 2.
  10778. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10779. Added new class SendMessageQueue that includes PendingMessages and
  10780. RequestSlotMan.
  10781. * src/SendMessageQueue.h: New class.
  10782. * src/SendMessageQueue.cc: New class.
  10783. * src/PendingMessage.h: Added new member variable blockIndex and its
  10784. accessors.
  10785. (createRequestMessage): Updated.
  10786. * src/PendingMessage.cc (createRequestMessage): Updated.
  10787. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  10788. SendMessageQueue.
  10789. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  10790. (receiveMessage): Updated with SendMessageQueue.
  10791. (deletePendingPieceMessage): Removed.
  10792. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  10793. (sendInterest): Updated with SendMessageQueue.
  10794. (createRequestPendingMessage): Updated with SendMessageQueue.
  10795. (sendMessages): Updated with SendMessageQueue.
  10796. (onAbort): Updated with SendMessageQueue.
  10797. (keepAlive): Updated with SendMessageQueue.
  10798. (beforeSocketCheck): Updated SendMessageQueue.
  10799. * src/PeerInteractionCommand (sendMessages): Shuffle
  10800. missingBLockIndexes before using it.
  10801. Added its own timeout for peer connection.
  10802. * src/PeerAbstractCommand.h: Added member variable timeout and its
  10803. setter.
  10804. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  10805. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10806. Added setTimeout() call.
  10807. (executeInternal): Added setTimeout() call.
  10808. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  10809. Added timeout.
  10810. (isTimeoutDetected): Updated.
  10811. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  10812. option.
  10813. Added *simple* message flooding checker.
  10814. * src/PeerInteractionCommand.cc (executeInternal):
  10815. Added detectMessageFlooding() call.
  10816. (detectMessageFlooding): New function.
  10817. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  10818. (beforeSocketCheck): Added detectMessageFlooding() call.
  10819. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  10820. chokeUnchokeCount, haveCount, detectMessageFlooding().
  10821. Removed deletePendingPieceMessage(), getRequestSlot(),
  10822. deleteRequestSlot(), deleteAllRequestSlot().
  10823. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  10824. Added checkLongTimePeerChoking() call.
  10825. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  10826. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  10827. if duplicate == false.
  10828. The parameter "uploaded" and "downloaded" in the tracker request are
  10829. the size since the client sent the "started" event to the tracker.
  10830. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  10831. uploaded size to preDownloadedSize, preUploadedSize respectively.
  10832. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  10833. getSessionDownloadedSize(), getSessionUploadedSize().
  10834. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  10835. getSessionUploadedSize() instead of getDownloadedSize(),
  10836. getUploadedSize().
  10837. * src/PendingMessage.cc (processMessage): Do not send request message
  10838. if the peer is choking the client.
  10839. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  10840. less than interval.
  10841. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10842. * configure.in: Added gnutls support. Added several CPP macros.
  10843. * m4/openssl.m4: Added.
  10844. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  10845. readData(), peekData(). Added gnutls support.
  10846. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  10847. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  10848. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  10849. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  10850. Instead, added a check for whether setup method has executed
  10851. successfully.
  10852. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  10853. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  10854. * src/Makefile.am: Updated.
  10855. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  10856. using whether OpenSSL or gcrypt, depending on the result of configure
  10857. script.
  10858. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  10859. messageDigest.h.
  10860. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  10861. * src/PeerListenCommand.cc: Added log about port binded successfully.
  10862. Fixed memory leak.
  10863. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  10864. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  10865. Removed instantiation of TrackerInitCommand. Instead,
  10866. TrackerWatcherCommand is instantiated and pushed to the command queue.
  10867. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  10868. ENABLE_SSL.
  10869. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  10870. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  10871. If a piece is already acquired by another command, delete the request
  10872. slots for the piece.
  10873. * src/TrackerUpdateCommand.cc (execute):
  10874. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  10875. Added a check whether peer list is null.
  10876. Fixed the bug that causes sending completed event to the tracker
  10877. several times.
  10878. * src/TrackerInitCommand.cc (execute):
  10879. Fixed the bug that causes sending completed event to the tracker
  10880. several times.
  10881. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  10882. by using messageDigest.h.
  10883. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10884. * PeerConnection.cc: Replaced log message "keep-alive" with
  10885. "keep alive".
  10886. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  10887. localhost long time.
  10888. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  10889. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  10890. at most 100 failure entry from the list. If with duplicate = false,
  10891. MAX_PEER_LIST is not checked.
  10892. * PeerListenCommand.cc: Fixed the argument order of log message.
  10893. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  10895. Added warn().
  10896. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  10897. Implemented warn().
  10898. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  10899. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10900. * Request.h: Added AFTER_COMPLETED event.
  10901. * TorrentDownloadEngine.cc: Prints "Download complete" message
  10902. instead of downloaded size and progress(%) after download completes.
  10903. * PeerInteractionCommand.cc: After download completes, sends unchoke
  10904. message to the peer if it is interested in what localhost has
  10905. downloaded.
  10906. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  10907. destination instead of just renaming it.
  10908. * TorrentMan.cc: Added deleteTempFile().
  10909. * PeerAbstractCommand.cc: do not stop execution after download
  10910. completes. This makes localhost a seeder.
  10911. * Util.{h,cc}: Added fileCopy().
  10912. * PeerListenCommand.cc: do not stop execution after download completes.
  10913. This makes localhost a seeder.
  10914. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  10915. Added TorrentMan::deleteTempFile() to torrentHandler.
  10916. Initialized the variable dir as ".".
  10917. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  10918. Deleted renameSingleFile().
  10919. Added copySingleFile(), deleteTempFile().
  10920. * DownloadEngine.h: Added virtual function afterEachIteration().
  10921. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  10922. in onEndOfRun() to afterEachIteration().
  10923. In onEndOfRun(), changed if condition to check whether filenameFixed is
  10924. true.
  10925. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  10926. In rangedFileCopy(), added try-catch block to properly close file
  10927. descriptors.
  10928. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  10929. Added afterEachIteration(), isFilenameFixed().
  10930. * Peer.cc: Changed choking strategy.
  10931. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  10932. * TrackerInitCommand.cc: Send completed event only once.
  10933. * DownloadEngine.cc: Added a call to afterEachIteration().
  10934. * TrackerUpdateCommand.cc: Do not stop execution after download
  10935. completes.
  10936. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  10937. connect the peers at most MAX_PEER_UPDATE when a peer list is
  10938. received from a tracker.
  10939. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  10940. Decreased the number of failure peers to delete to 0(just comment out
  10941. the line).
  10942. * Release 0.3.1
  10943. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10944. * PeerInteractionCommand.cc: added a call to
  10945. TorrentMan::unadvertisePiece in Destructor.
  10946. * PeerInteractionCommand.cc: make have message sent immediately
  10947. if the size of pending message queue is zero.
  10948. * TorrentMan.cc: set the maximum size of peer list to 250.
  10949. * TorrentMan.h: changed the container type of Peers and UsedPieces
  10950. to deque.
  10951. * Util.cc: fixed rangedFileCopy.
  10952. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  10953. to Constructor. Also, moved digest cleanup to Destructor.
  10954. * MetaFileUtil.cc: fixed memory leak
  10955. * replaced std::vector with std::deque.
  10956. * AbstractCommand.cc: casted timeout value to long long int.
  10957. * ChunkedEncoding.cc: fixed memory leak.
  10958. * PeerInteractionCommand.cc: casted timeout value to long long int.
  10959. * SleepCommand.cc: casted timeout value to long long int.
  10960. * Data.cc: fixed memory leak.
  10961. * Data.cc: fixed toLLInt().
  10962. * BitfieldMan.cc: fixed memory leak.
  10963. * TorrentMan.cc: initialized storeDir to ".".
  10964. * TorrentMan.cc: fixed memory leak.
  10965. * TorrentMan.cc: corrected file paths of splitted files.
  10966. * PeerAbstractCommand.cc: casted timeout to long long int.
  10967. * main.cc: added delete(req) and delete(te->diskWriter).
  10968. * RequestSlot.cc: casted timeout value to long long int.
  10969. * Request.cc: fixed memory leak.
  10970. * PendingMessage.cc: make HAVE messages sent only when peer does not
  10971. have the piece.
  10972. * Peer.{h,cc}: added hasPiece(int index).
  10973. * main.cc: corrected addCommand.
  10974. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10975. * BitTorrent protocol support added.
  10976. * Release 0.3.0
  10977. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10978. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  10979. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10980. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  10981. decoding did not work properly.
  10982. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10983. * DownloadEngine.h: included sys/time.h
  10984. * DownloadEngine.cc: remove sys/time.h
  10985. * Makefile.am (SUBDIRS): Add intl.
  10986. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  10987. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10988. * main.cc: correct help message for --http-auth-scheme.
  10989. * main.cc: changed e-mail address for bug reports.
  10990. * ja.po: added japanese translation.
  10991. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10992. * SimpleLogger.cc: flush log file instead of stdout.
  10993. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10994. * main.cc: Fixed command-line option: max-tries
  10995. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  10996. does not equal to seg.sp.
  10997. * DownloadCommand.cc: If EOF is got from the server and the total size
  10998. of file is not zero, then throw DlRetryEx.
  10999. * main.cc: Set the minium value of min-segment-size to 1024.
  11000. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  11001. fails because of a regression since 0.2.0 release.
  11002. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11003. * HttpConnection.cc:
  11004. * common.h: defined the user agent name as macro
  11005. * DownloadEngine.{h, cc}:
  11006. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  11007. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  11008. * main.cc: Download complete/abort message is now generated by main.
  11009. * Makefile.am (SUBDIRS): Add m4.
  11010. (ACLOCAL_AMFLAGS): New variable.
  11011. (EXTRA_DIST): New variable.
  11012. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  11013. * gettext: added gettext functionality
  11014. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11015. * AbstractCommand.cc:
  11016. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  11017. unregister its cuid from SegmentMan.
  11018. * DownloadEngine.cc: .aria2 file was written when a downloading
  11019. failed with errors.
  11020. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  11021. Added "User-Agent" header to CONNECT proxy request.
  11022. Fixed "Proxy-Authorization" header. Now proxy authorization works
  11023. properly.
  11024. * Logger.h:
  11025. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  11026. * ChunkedEncoding.cc: Added #include directive for strings.h
  11027. * Release 0.2.1
  11028. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11029. * Util.{h,cc}: added startsWith().
  11030. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  11031. Util::endsWith().
  11032. * SocketCore.cc: struct addrinfo is now zero-initialized.
  11033. * common.h: added #include directive of limit.h.
  11034. * DownloadEngine.cc: added #include directive of sys/time.h and
  11035. algorithm.
  11036. * Exception.h: added #include directive of stdio.h.
  11037. * AbstractCommand.h: added #include directive of sys/time.h.
  11038. * DownloadCommand.h: added #include directive of sys/time.h.
  11039. * *.h: added #include directive of common.h to all base classes.
  11040. subclasses' one was removed.
  11041. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  11042. does not define these macros.
  11043. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11044. * Release 0.2.0
  11045. * main.cc:
  11046. * HttpInitiateConnectionCommand.{h,cc}:
  11047. * prefs.h:
  11048. * HttpConnection.{h,cc}: added --http-proxy-method option.
  11049. We can now use GET command in http proxy.
  11050. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11051. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  11052. that splits slowest segment of SegmentMan::commands vector.
  11053. This is the default split algorithm of aria2.
  11054. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  11055. that splits first segment of SegmentMan::commands vector.
  11056. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  11057. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  11058. * Segment.h:
  11059. * SegmentMan.cc: Added speed field to Segment.h
  11060. * main.cc: -s option now affects all URLs in command-line arguemtns.
  11061. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  11062. * message.h: Change file size related %d to %lld.
  11063. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11064. * FtpInitiateConnectionCommand.{h,cc}:
  11065. * FtpNegotiationCommand.{h,cc}:
  11066. * FtpDownloadCommand.{h,cc}:
  11067. * FtpConnection.{h,cc}: Added FTP support
  11068. * SimpleLogger.cc: Log message now includes time information.
  11069. * main.cc: The value of --http-auth-scheme option is chagned from
  11070. 'BASIC' to 'basic'
  11071. * main.cc: Added --timeout command-line option.
  11072. * main.cc: Added --min-segment-size command-line option.
  11073. * main.cc: Added --max-retries command-line option.
  11074. * prefs.h: option string constants are now defined in prefs.h
  11075. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11076. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  11077. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  11078. with version 0.1.0's one.
  11079. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11080. * configure.in: Added --enable-ssl option to configure script.
  11081. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  11082. cannot permit absoluteURI as Request-URI.
  11083. * HttpConnection.cc: Added Referer support.
  11084. * main.cc: Added referer command-line option.
  11085. * main.cc: Added rety-wait command-line option.
  11086. * Exception.h: Fixed formating bug in Exception::setMsg()
  11087. * SocketCore.{h,cc}:
  11088. * Socket.{h, cc}:
  11089. * Request.cc:
  11090. * InitiateConnectionCommandFactory.cc:
  11091. * HttpRequestCommand.cc: Added HTTPS support.
  11092. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  11093. for SocketCore.
  11094. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  11095. size is wrong
  11096. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  11097. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  11098. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  11099. * Release 0.1.0