ChangeLog 533 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829
  1. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4. Removed _directIOAllowed member from DiskWriter.
  5. * src/AbstractDiskWriter.cc
  6. * src/AbstractDiskWriter.h
  7. * src/AbstractSingleDiskAdaptor.cc
  8. * src/AbstractSingleDiskAdaptor.h
  9. * src/BinaryStream.h
  10. * src/ByteArrayDiskWriter.h
  11. * src/DefaultPieceStorage.cc
  12. * src/DiskWriter.h
  13. * src/MultiDiskAdaptor.cc
  14. * src/MultiDiskAdaptor.h
  15. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Now the constructor of AbstractDiskWriter takes filename as an
  17. argument and filename argument is removed from openFile(),
  18. initAndOpenFile(), openExistingFile() interface. storeDir member
  19. and its accessor functions are removed from DiskAdaptor because it
  20. is not used anymore. size() member function of DefaultDiskWriter,
  21. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  22. opening file.
  23. * src/AbstractDiskWriter.cc
  24. * src/AbstractDiskWriter.h
  25. * src/AbstractSingleDiskAdaptor.cc
  26. * src/AbstractSingleDiskAdaptor.h
  27. * src/ByteArrayDiskWriter.cc
  28. * src/ByteArrayDiskWriter.h
  29. * src/ByteArrayDiskWriterFactory.cc
  30. * src/ByteArrayDiskWriterFactory.h
  31. * src/DefaultDiskWriter.cc
  32. * src/DefaultDiskWriter.h
  33. * src/DefaultDiskWriterFactory.cc
  34. * src/DefaultDiskWriterFactory.h
  35. * src/DefaultPieceStorage.cc
  36. * src/DirectDiskAdaptor.cc
  37. * src/DirectDiskAdaptor.h
  38. * src/DiskAdaptor.h
  39. * src/DiskWriter.h
  40. * src/DiskWriterFactory.h
  41. * src/MessageDigestHelper.cc
  42. * src/MultiDiskAdaptor.cc
  43. * src/RequestGroup.cc
  44. * src/UnknownLengthPieceStorage.cc
  45. * src/Util.cc
  46. * test/DefaultDiskWriterTest.cc
  47. * test/DirectDiskAdaptorTest.cc
  48. * test/FallocFileAllocationIteratorTest.cc
  49. * test/MessageDigestHelperTest.cc
  50. * test/MetalinkProcessorTest.cc
  51. * test/MultiDiskAdaptorTest.cc
  52. * test/MultiFileAllocationIteratorTest.cc
  53. * test/SingleFileAllocationIteratorTest.cc
  54. * test/UtilTest.cc
  55. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Fixed the bug that aria2 aborts when --select-file is used. This
  57. bug was introduced in r1199.
  58. * src/MultiDiskAdaptor.cc
  59. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  60. Code cleanup
  61. * test/MockPieceStorage.cc
  62. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  63. Fixed the bug that read-only file with wrong file size will cause
  64. error because it cannot be truncated to the correct size. Now if
  65. file size is different than the expected one, re-open file in
  66. writable mode.
  67. * src/AbstractSingleDiskAdaptor.cc
  68. * src/AbstractSingleDiskAdaptor.h
  69. * src/BtCheckIntegrityEntry.cc
  70. * src/DiskAdaptor.h
  71. * src/MultiDiskAdaptor.h
  72. * src/RequestGroup.cc
  73. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Fixed the bug that with --check-integrity option aria2 reports
  75. downloaded file size is 0 even if some parts of file is correctly
  76. downloaded. This bug is reproducible for the download that a file
  77. includes last piece is missing. This bug doesn't reveal for
  78. single-torrent with file allocation on.
  79. * src/IteratableChecksumValidator.cc
  80. * test/IteratableChecksumValidatorTest.cc
  81. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Avoid circular reference between RequestGroup and AdaptiveURISelector
  83. * src/RequestGroupMan.cc
  84. * src/AdaptiveURISelector.cc
  85. * src/AdaptiveURISelector.h
  86. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. * Release 1.3.2
  88. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Updated README
  90. * README
  91. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Updated Ukrainian translations. Thanks to Alexander10.
  93. * po/uk.po
  94. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Code cleanup
  96. * src/MetalinkParserStateMachine.cc
  97. * src/MetalinkParserStateMachine.h
  98. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  100. and expat simultaneously, MetalinkProcessor is now not base class
  101. and it is directly implemented in XML2SAXMetalinkProcessor and
  102. ExpatMetalinkProcessor.
  103. * src/ExpatMetalinkProcessor.cc
  104. * src/ExpatMetalinkProcessor.h
  105. * src/Makefile.am
  106. * src/MetalinkHelper.cc
  107. * src/MetalinkProcessor.h
  108. * src/MetalinkProcessorFactory.cc: Removed.
  109. * src/MetalinkProcessorFactory.h: Removed
  110. * src/XML2SAXMetalinkProcessor.cc
  111. * src/XML2SAXMetalinkProcessor.h
  112. * test/MetalinkProcessorTest.cc
  113. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. Bump up version number to 1.3.2
  115. * configure.ac
  116. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  117. Added missing file.
  118. * test/Makefile.am
  119. * test/url-list-singleFileEndsWithSlash.torrent
  120. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  122. request.
  123. * src/AnnounceList.cc
  124. * src/AnnounceList.h
  125. * src/BDE.cc: Added
  126. * src/BDE.h: Added
  127. * src/DHTAbstractMessage.cc
  128. * src/DHTAbstractMessage.h
  129. * src/DHTAnnouncePeerMessage.cc
  130. * src/DHTAnnouncePeerMessage.h
  131. * src/DHTAnnouncePeerReplyMessage.cc
  132. * src/DHTAnnouncePeerReplyMessage.h
  133. * src/DHTFindNodeMessage.cc
  134. * src/DHTFindNodeMessage.h
  135. * src/DHTFindNodeReplyMessage.cc
  136. * src/DHTFindNodeReplyMessage.h
  137. * src/DHTGetPeersMessage.cc
  138. * src/DHTGetPeersMessage.h
  139. * src/DHTGetPeersReplyMessage.cc
  140. * src/DHTGetPeersReplyMessage.h
  141. * src/DHTMessageFactory.h
  142. * src/DHTMessageFactoryImpl.cc
  143. * src/DHTMessageFactoryImpl.h
  144. * src/DHTMessageReceiver.cc
  145. * src/DHTMessageTracker.cc
  146. * src/DHTMessageTracker.h
  147. * src/DHTPingMessage.cc
  148. * src/DHTPingMessage.h
  149. * src/DHTPingReplyMessage.cc
  150. * src/DHTPingReplyMessage.h
  151. * src/DHTQueryMessage.cc
  152. * src/DHTQueryMessage.h
  153. * src/DHTResponseMessage.cc
  154. * src/DHTResponseMessage.h
  155. * src/DefaultBtAnnounce.cc
  156. * src/DefaultBtContext.cc
  157. * src/DefaultBtContext.h
  158. * src/HandshakeExtensionMessage.cc
  159. * src/Makefile.am
  160. * src/PeerListProcessor.h
  161. * src/UTPexExtensionMessage.cc
  162. * src/bencode.cc
  163. * src/bencode.h
  164. * test/AnnounceListTest.cc
  165. * test/BDETest.cc: Added
  166. * test/BencodeTest.cc
  167. * test/DHTAnnouncePeerMessageTest.cc
  168. * test/DHTAnnouncePeerReplyMessageTest.cc
  169. * test/DHTFindNodeMessageTest.cc
  170. * test/DHTFindNodeReplyMessageTest.cc
  171. * test/DHTGetPeersMessageTest.cc
  172. * test/DHTGetPeersReplyMessageTest.cc
  173. * test/DHTMessageFactoryImplTest.cc
  174. * test/DHTMessageTrackerTest.cc
  175. * test/DHTPingMessageTest.cc
  176. * test/DHTPingReplyMessageTest.cc
  177. * test/Makefile.am
  178. * test/MockDHTMessageFactory.h
  179. * test/PeerListProcessorTest.cc
  180. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Use url-list (web-seeding) only for single-file torrent. This is
  182. basically the same behavior with Metalink file with torrent and
  183. URIs.
  184. * src/RequestGroup.cc
  185. * src/DefaultBtContext.cc
  186. * test/DefaultBtContextTest.cc
  187. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Rewritten expr
  189. * src/array_fun.h
  190. * test/array_funTest.cc
  191. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  193. * src/DefaultBtMessageDispatcher.cc
  194. * src/a2algo.h
  195. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Removed ExtendedMessagingAware. Instead of using inheritance,
  197. added ExtensionMessageRegistry and it is passed to
  198. DefaultExtensionMessageFactory.
  199. * src/DefaultBtInteractive.cc
  200. * src/DefaultBtInteractive.h
  201. * src/DefaultExtensionMessageFactory.cc
  202. * src/DefaultExtensionMessageFactory.h
  203. * src/ExtendedMessagingAware.h: Removed.
  204. * src/ExtensionMessageFactory.h
  205. * src/ExtensionMessageRegistry.h: Added.
  206. * src/Makefile.am
  207. * src/PeerInteractionCommand.cc
  208. * test/DefaultExtensionMessageFactoryTest.cc
  209. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Fixed typo in log messages
  211. * src/MSEHandshake.cc
  212. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Fixed the bug that prevents torrent download from finishing. The
  214. bug doesn't reveal for all torrents. The torrents affected this
  215. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  216. of pieces.
  217. * src/bitfield.h
  218. * test/bitfieldTest.cc
  219. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. Code cleanup
  221. * src/PeerListProcessor.h
  222. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Removed RequestGroupAware
  224. * src/AbstractCommand.cc
  225. * src/AbstractCommand.h
  226. * src/ActivePeerConnectionCommand.cc
  227. * src/ActivePeerConnectionCommand.h
  228. * src/DHTGetPeersCommand.cc
  229. * src/DHTGetPeersCommand.h
  230. * src/InitiatorMSEHandshakeCommand.cc
  231. * src/InitiatorMSEHandshakeCommand.h
  232. * src/Makefile.am
  233. * src/PeerInitiateConnectionCommand.cc
  234. * src/PeerInitiateConnectionCommand.h
  235. * src/PeerInteractionCommand.cc
  236. * src/PeerInteractionCommand.h
  237. * src/RealtimeCommand.cc
  238. * src/RealtimeCommand.h
  239. * src/RequestGroupAware.cc: Removed
  240. * src/RequestGroupAware.h: Removed
  241. * src/SeedCheckCommand.cc
  242. * src/SeedCheckCommand.h
  243. * src/SleepCommand.cc
  244. * src/TrackerWatcherCommand.cc
  245. * src/TrackerWatcherCommand.h
  246. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Rewritten PeerListProcessor
  248. * src/PeerListProcessor.h
  249. * src/CompactPeerListProcessor.h: Removed
  250. * src/CompactPeerListProcessor.cc: Removed
  251. * src/DelegatingPeerListProcessor.cc: Removed.
  252. * src/DefaultBtAnnounce.cc
  253. * src/Makefile.am
  254. * src/UTPexExtensionMessage.cc
  255. * src/DefaultPeerListProcessor.h: Removed.
  256. * src/DefaultPeerListProcessor.cc: Removed.
  257. * src/DelegatingPeerListProcessor.h: Removed.
  258. * test/Makefile.am
  259. * test/PeerListProcessorTest.cc
  260. * test/DefaultPeerListProcessorTest.cc: Removed.
  261. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  262. Rewritten RequestGroupMan::calculateStat()
  263. * src/RequestGroupMan.cc
  264. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Removed unnecessary virtual destructor for Request class.
  266. * src/Request.cc
  267. * src/Request.h
  268. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Avoid dynamic_pointer_cast.
  270. * src/DHTGetPeersCommand.cc
  271. * src/DHTGetPeersCommand.h
  272. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  274. BtEvent.
  275. * src/AbstractBtEventListener.h: Removed.
  276. * src/AbstractBtMessage.cc
  277. * src/AbstractBtMessage.h
  278. * src/BtAbortOutstandingRequestEvent.h
  279. * src/BtCancelSendingPieceEvent.h
  280. * src/BtChokedEvent.h: Removed.
  281. * src/BtChokingEvent.h
  282. * src/BtEvent.h: Removed
  283. * src/BtEventListener.h: Removed.
  284. * src/BtMessage.h
  285. * src/BtPieceMessage.cc
  286. * src/BtPieceMessage.h
  287. * src/BtRequestMessage.cc
  288. * src/BtRequestMessage.h
  289. * src/DefaultBtMessageDispatcher.cc
  290. * src/Makefile.am
  291. * src/a2functional.h
  292. * test/BtPieceMessageTest.cc
  293. * test/BtRequestMessageTest.cc
  294. * test/DefaultBtMessageDispatcherTest.cc
  295. * test/MockBtMessage.h
  296. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Code cleanup
  298. * src/RequestGroupMan.cc
  299. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Code cleanup
  301. * src/DownloadCommand.cc
  302. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Fixed segmentation fault when GZipDecoder::decode() returns 0
  304. byte.
  305. * src/DownloadCommand.cc
  306. * src/bitfield.h
  307. * test/bitfieldTest.cc
  308. Fixed the bug that causes infinite loop if broken web server
  309. returns chunked response without last "0" chunk-size marker and
  310. closes connection.
  311. * src/DownloadCommand.cc
  312. Instantiate properly configured HttpDownloadCommand for
  313. non-resumable downlaods.
  314. * src/HttpResponseCommand.cc
  315. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  316. Rewritten array operation functions.
  317. * src/BitfieldMan.cc
  318. * src/array_fun.h
  319. * test/array_funTest.cc
  320. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Removed unused variable 'query'
  322. * src/Request.cc
  323. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  324. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  325. accidentally set to false in r1162.
  326. * configure.ac
  327. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Code cleanup
  329. * src/BNode.cc
  330. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Increase prefixLength for the bucket which doesn't own local node
  332. ID when splitting bucket.
  333. * src/DHTBucket.cc
  334. * test/DHTBucketTest.cc
  335. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. * Release 1.3.1
  337. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  338. Bump up version number to 1.3.1
  339. * configure.ac
  340. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Removed unused variable checkPoint. Also removed include directive
  342. for TimeA2.h.
  343. * src/SeedCheckCommand.h
  344. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  345. Fixed the bug that upload limit exceeds the value specified in
  346. --seed-ratio option depending on the timing of the execution of
  347. SeedCheckCommand.
  348. * src/SeedCheckCommand.cc
  349. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  350. Fixed the bug that removed peer's session upload/download length
  351. are counted twice in _cachedTransferStat before it is
  352. re-calculated. This affected the calculation of shara ratio,
  353. resulting aria2 wrongly determines that specified share ratio is
  354. reached. Also fixed the typo in calculateStatFor function name.
  355. * src/BtSetup.cc
  356. * src/DefaultPeerStorage.cc
  357. * src/ShareRatioSeedCriteria.h
  358. * test/ShareRatioSeedCriteriaTest.cc
  359. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  360. * Release 1.3.0
  361. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  363. Nynorsk translations. Thanks to all translators.
  364. * po/es.po
  365. * po/ja.po
  366. * po/nn.po
  367. * po/ru.po
  368. * po/uk.po
  369. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  370. Rewritten isInRange()
  371. * src/DHTBucket.cc
  372. * test/DHTBucketTest.cc
  373. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Fixed typo
  375. * doc/aria2c.1.txt
  376. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  378. malloc/realloc is not used.
  379. * src/configure.ac
  380. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. BitfieldMan::getMissingIndexes family functions now takes unsigned
  382. char* bitfield instead of stl container for efficiency.
  383. PieceSelector::select now takes this
  384. bitfield. RarestPieceSelector::select now also performs
  385. efficiently for this change. bitfield namespace is introduced and
  386. it has several helper functions to handle basic bitfield
  387. operations such as test, count set bits, etc.
  388. * src/BitfieldMan.cc
  389. * src/BitfieldMan.h
  390. * src/DefaultBtRequestFactory.cc
  391. * src/DefaultPieceStorage.cc
  392. * src/DefaultPieceStorage.h
  393. * src/LongestSequencePieceSelector.cc
  394. * src/LongestSequencePieceSelector.h
  395. * src/Makefile.am
  396. * src/Piece.cc
  397. * src/Piece.h
  398. * src/PieceSelector.h
  399. * src/RarestPieceSelector.cc
  400. * src/RarestPieceSelector.h
  401. * src/Util.cc
  402. * src/Util.h
  403. * src/bitfield.h
  404. * test/BitfieldManTest.cc
  405. * test/LongestSequencePieceSelectorTest.cc
  406. * test/Makefile.am
  407. * test/RarestPieceSelectorTest.cc
  408. * test/UtilTest.cc
  409. * test/bitfieldTest.cc
  410. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. Made accepted socket non-block.
  412. * src/FtpNegotiationCommand.cc
  413. * src/HttpListenCommand.cc
  414. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  415. Guarded #ifdef HAVE_POSIX_FALLOCATE
  416. * src/AbstractSingleDiskAdaptor.cc
  417. * src/DefaultPieceStorage.cc
  418. * src/DiskAdaptor.h
  419. * src/DiskAdaptor.h
  420. * src/MultiFileAllocationIterator.cc
  421. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. Run
  423. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  424. in every 1 sec. The timeout of RequestSlot is 60s by default and
  425. it doesn't need to be called every time when
  426. DefaultBtInteractive::doInteractionProcessing() is called.
  427. * src/DefaultBtInteractive.cc
  428. * src/DefaultBtInteractive.h
  429. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Documented 'falloc' in man page.
  431. * doc/aria2c.1.txt
  432. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Updated doc
  434. * src/usage_text.h
  435. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Added 'falloc' parameter for --file-allocation option. 'falloc'
  437. allocation mode uses posix_fallocate() system call to allocate
  438. file on disk. If you are using newer file systems such as ext4
  439. (with extents support), btrfs or xfs, 'falloc' is your best
  440. choice. It allocates large(few GiB) files almost instantly. Don't
  441. use 'falloc' with legacy file systems such as ext3 because it
  442. takes almost same time as 'prealloc' and it blocks aria2 entirely
  443. until allocation finishes. 'falloc' may not be available if your
  444. system doesn't have posix_fallocate() system call.
  445. * configure.ac
  446. * src/AbstractDiskWriter.cc
  447. * src/AbstractDiskWriter.h
  448. * src/AbstractSingleDiskAdaptor.cc
  449. * src/BinaryStream.h
  450. * src/BtCheckIntegrityEntry.cc
  451. * src/ByteArrayDiskWriter.h
  452. * src/CheckIntegrityEntry.cc
  453. * src/CheckIntegrityEntry.h
  454. * src/DefaultPieceStorage.cc
  455. * src/DiskAdaptor.cc
  456. * src/DiskAdaptor.h
  457. * src/DiskWriter.h
  458. * src/FallocFileAllocationIterator.cc
  459. * src/FallocFileAllocationIterator.h
  460. * src/FileAllocationEntry.cc
  461. * src/FileAllocationEntry.h
  462. * src/Makefile.am
  463. * src/MultiFileAllocationIterator.cc
  464. * src/MultiFileAllocationIterator.h
  465. * src/OptionHandlerFactory.cc
  466. * src/RequestGroup.cc
  467. * src/StreamCheckIntegrityEntry.cc
  468. * src/prefs.cc
  469. * src/prefs.h
  470. * src/usage_text.h
  471. * test/FallocFileAllocationIteratorTest.cc
  472. * test/Makefile.am
  473. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Removed duplicate enableDirectIO() call.
  475. * src/MultiFileAllocationIterator.cc
  476. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  477. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  478. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  479. cost of std::rotate().
  480. * src/RarestPieceSelector.cc
  481. * src/RarestPieceSelector.h
  482. * test/RarestPieceSelectorTest.cc
  483. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Updated usage doc for --bt-tracker-interval option.
  485. * src/usage_text.h
  486. * doc/aria2c.1.txt
  487. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. Documented --bt-tracker-interval option in man page.
  489. * doc/aria2c.1.txt
  490. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Added an option to specify the interval between tracker requests.
  492. If non-zero value is specified, aria2 uses it and ignores the
  493. interval value in the response of tracker. If zero is specified,
  494. aria2 determines the inteval value based on the tarcker response
  495. and download progress.
  496. * src/DefaultBtAnnounce.cc
  497. * src/DefaultBtAnnounce.h
  498. * src/OptionHandlerFactory.cc
  499. * src/RequestGroup.cc
  500. * src/prefs.cc
  501. * src/prefs.h
  502. * src/usage_text.h
  503. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  504. Added operator+=, operator-=, operator-
  505. * src/TransferStat.cc
  506. * src/TransferStat.h
  507. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Refactored RarestPieceSelector to reduce CPU load, especially for
  509. addPieceStats.
  510. * src/RarestPieceSelector.cc
  511. * src/RarestPieceSelector.h
  512. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  514. getAllMissingBlockIndexes to reduce a call to
  515. array_function_base::operator[].
  516. * src/BitfieldMan.cc
  517. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Cached TransferStat/download speed to avoid to sum them up in each
  519. call.
  520. * src/DefaultPeerStorage.cc
  521. * src/DefaultPeerStorage.h
  522. * src/SegmentMan.cc
  523. * src/SegmentMan.h
  524. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Typedefed cuid_t as int32_t in Command.h
  526. * src/CUIDCounter.h
  527. * src/Command.cc
  528. * src/Command.h
  529. * src/DownloadEngine.cc
  530. * src/DownloadEngine.h
  531. * src/PeerStat.h
  532. * src/SegmentMan.cc
  533. * src/SegmentMan.h
  534. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Reduced the number of calls to PeerStorage::calculateStat() and
  536. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  537. transfer rate.
  538. * src/DefaultBtInteractive.cc
  539. * src/DefaultBtMessageDispatcher.cc
  540. * src/DefaultPeerStorage.cc
  541. * src/DefaultPeerStorage.h
  542. * src/DownloadCommand.cc
  543. * src/DownloadEngine.cc
  544. * src/PeerStorage.h
  545. * src/SegmentMan.cc
  546. * src/SegmentMan.h
  547. * test/MockPeerStorage.h
  548. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. Prepended _dir+"/" after joining path elements in torrent file.
  550. * src/DefaultBtContext.cc
  551. * test/DefaultBtContextTest.cc
  552. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Added missing IndexBtMessageValidator.h
  554. * src/Makefile.am
  555. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  556. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  557. Chinese translations. Thank you for contributing our project.
  558. * po/id.po
  559. * po/it.po
  560. * po/ru.po
  561. * po/uk.po
  562. * po/zh_CN.po
  563. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Updated README
  565. * README
  566. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  567. Bump up version number to 1.3.0
  568. * configure.ac
  569. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Updated doc
  571. * src/DefaultBtContext.h
  572. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Slice/joinPath for name of single torrent.
  574. * src/DefaultBtContext.cc
  575. * test/DefaultBtContextTest.cc
  576. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  577. Updated man page: Documented --dry-run and --index-out
  578. options. Changed the default value of --uri-selector and
  579. --http-auth-challenge options. Removed --direct-file-mapping
  580. option. Added example for --index-out
  581. * doc/aria2c.1.txt
  582. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Updated TEXT_DRY_RUN
  584. * src/usage_text.h
  585. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Changed the default value of --uri-selector option from 'inorder'
  587. to 'feedback'
  588. * src/OptionHandlerFactory.cc
  589. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  590. Included current URI in exception message.
  591. * src/AbstractCommand.cc
  592. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Renamed ServerStatURISelector as FeedbackURISelector.
  594. * src/FeedbackURISelector.cc
  595. * src/FeedbackURISelector.h
  596. * src/Makefile.am
  597. * src/RequestGroupMan.cc
  598. * src/ServerStatURISelector.cc
  599. * src/ServerStatURISelector.h
  600. * test/FeedbackURISelectorTest.cc
  601. * test/Makefile.am
  602. * test/ServerStatURISelectorTest.cc
  603. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  605. all URIs are tested and their timeout is not reached.
  606. * src/AdaptiveURISelector.cc
  607. * src/AdaptiveURISelector.h
  608. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  609. Changed the default value of --http-auth-challenge option to false.
  610. * src/OptionHandlerFactory.cc
  611. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  612. Reuse URIs when all unused URIs run out.
  613. * src/OptionHandlerFactory.cc
  614. * src/RequestGroup.cc
  615. * src/prefs.cc
  616. * src/prefs.h
  617. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  619. and BtRejectMessage are derived from RangeBtMessage class.
  620. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  621. derived from IndexBtMessage class. BtChokeMessage,
  622. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  623. BtNotInterestedMessage and BtUnchokeMessage are derived from
  624. ZeroBtMessage class.
  625. * src/AbstractBtMessage.cc
  626. * src/AbstractBtMessage.h
  627. * src/BtAllowedFastMessage.cc
  628. * src/BtAllowedFastMessage.h
  629. * src/BtAllowedFastMessageValidator.h: Removed
  630. * src/BtBitfieldMessage.cc
  631. * src/BtBitfieldMessage.h
  632. * src/BtCancelMessage.cc
  633. * src/BtCancelMessage.h
  634. * src/BtCancelMessageValidator.h: Removed
  635. * src/BtChokeMessage.cc
  636. * src/BtChokeMessage.h
  637. * src/BtExtendedMessage.cc
  638. * src/BtExtendedMessage.h
  639. * src/BtHandshakeMessage.cc
  640. * src/BtHandshakeMessage.h
  641. * src/BtHaveAllMessage.cc
  642. * src/BtHaveAllMessage.h
  643. * src/BtHaveMessage.cc
  644. * src/BtHaveMessage.h
  645. * src/BtHaveMessageValidator.h: Removed
  646. * src/BtHaveNoneMessage.cc
  647. * src/BtHaveNoneMessage.h
  648. * src/BtInterestedMessage.cc
  649. * src/BtInterestedMessage.h
  650. * src/BtKeepAliveMessage.cc
  651. * src/BtKeepAliveMessage.h
  652. * src/BtNotInterestedMessage.cc
  653. * src/BtNotInterestedMessage.h
  654. * src/BtPieceMessage.cc
  655. * src/BtPieceMessage.h
  656. * src/BtPortMessage.cc
  657. * src/BtPortMessage.h
  658. * src/BtRejectMessage.cc
  659. * src/BtRejectMessage.h
  660. * src/BtRejectMessageValidator.h: Removed
  661. * src/BtRequestMessage.cc
  662. * src/BtRequestMessage.h
  663. * src/BtRequestMessageValidator.h: Removed
  664. * src/BtSuggestPieceMessage.cc
  665. * src/BtSuggestPieceMessage.h
  666. * src/BtSuggestPieceMessageValidator.h: Removed
  667. * src/BtUnchokeMessage.cc
  668. * src/BtUnchokeMessage.h
  669. * src/DefaultBtMessageFactory.cc
  670. * src/IndexBtMessage.cc
  671. * src/IndexBtMessage.h
  672. * src/IndexBtMessageValidator.h
  673. * src/Makefile.am
  674. * src/PeerMessageUtil.cc
  675. * src/PeerMessageUtil.h
  676. * src/RangeBtMessage.cc
  677. * src/RangeBtMessage.h
  678. * src/RangeBtMessageValidator.h
  679. * src/SimpleBtMessage.cc
  680. * src/SimpleBtMessage.h
  681. * src/ZeroBtMessage.cc
  682. * src/ZeroBtMessage.h
  683. * test/BtRequestMessageTest.cc
  684. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  685. Reverted usage_text.h to r1093 to avoid to lose translated
  686. messages.
  687. * src/usage_text.h
  688. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  690. declared as non-const previously is now const and defined in class
  691. definition.
  692. * src/AbstractBtMessage.cc
  693. * src/AbstractBtMessage.h
  694. * src/BtAllowedFastMessage.cc
  695. * src/BtAllowedFastMessage.h
  696. * src/BtBitfieldMessage.h
  697. * src/BtCancelMessage.cc
  698. * src/BtCancelMessage.h
  699. * src/BtChokeMessage.cc
  700. * src/BtChokeMessage.h
  701. * src/BtExtendedMessage.cc
  702. * src/BtExtendedMessage.h
  703. * src/BtHandshakeMessage.cc
  704. * src/BtHandshakeMessage.h
  705. * src/BtHaveAllMessage.cc
  706. * src/BtHaveAllMessage.h
  707. * src/BtHaveMessage.cc
  708. * src/BtHaveMessage.h
  709. * src/BtHaveNoneMessage.cc
  710. * src/BtHaveNoneMessage.h
  711. * src/BtInterestedMessage.cc
  712. * src/BtInterestedMessage.h
  713. * src/BtKeepAliveMessage.cc
  714. * src/BtKeepAliveMessage.h
  715. * src/BtMessage.h
  716. * src/BtNotInterestedMessage.cc
  717. * src/BtNotInterestedMessage.h
  718. * src/BtPieceMessage.h
  719. * src/BtPortMessage.cc
  720. * src/BtPortMessage.h
  721. * src/BtRejectMessage.cc
  722. * src/BtRejectMessage.h
  723. * src/BtRequestMessage.cc
  724. * src/BtRequestMessage.h
  725. * src/BtSuggestPieceMessage.cc
  726. * src/BtSuggestPieceMessage.h
  727. * src/BtUnchokeMessage.cc
  728. * src/BtUnchokeMessage.h
  729. * src/SimpleBtMessage.cc
  730. * src/SimpleBtMessage.h
  731. * test/MockBtMessage.h
  732. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Use FileEntry::exists()
  734. * src/MultiDiskAdaptor.cc
  735. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Added exists()
  737. * src/FileEntry.cc
  738. * src/FileEntry.h
  739. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Added missing prefix dir.
  741. * src/download_helper.cc
  742. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Removed --direct-file-mapping option and CopyDiskAdaptor.
  744. * src/CopyDiskAdaptor.cc: Removed
  745. * src/CopyDiskAdaptor.h: Removed
  746. * src/DefaultPieceStorage.cc
  747. * src/Makefile.am
  748. * src/OptionHandlerFactory.cc
  749. * src/prefs.cc
  750. * src/prefs.h
  751. * src/usage_text.h
  752. * test/CopyDiskAdaptorTest.cc: Removed
  753. * test/Makefile.am
  754. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Rewritten isSameFileBeingDownloaded()
  756. * src/RequestGroupMan.cc
  757. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. Removed getName() from DownloadContext. getName() is declared in
  759. BtContext.
  760. * src/BtContext.h
  761. * src/DownloadContext.h
  762. * src/SingleFileDownloadContext.cc
  763. * src/SingleFileDownloadContext.h
  764. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  765. in AbstractSingleDiskAdaptor.
  766. * src/AbstractSingleDiskAdaptor.h
  767. * src/DiskAdaptor.h
  768. * src/MultiDiskAdaptor.h
  769. * src/RequestGroup.cc
  770. Removed setTopDir() and getTopDir() and getTopDirPath() from
  771. MultiDiskAdaptor.
  772. * src/DefaultPieceStorage.cc
  773. * src/MultiDiskAdaptor.cc
  774. * src/MultiDiskAdaptor.h
  775. * test/MultiDiskAdaptorTest.cc
  776. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  777. FileEntry::getPath() contains store(top level) directory to
  778. simplify path handling operation. In the previous implementation,
  779. store directory is concatenated to FileEntry::getPath() in
  780. DownloadContext.
  781. * src/BtDependency.cc
  782. * src/BtPostDownloadHandler.cc
  783. * src/CopyDiskAdaptor.cc
  784. * src/DefaultBtContext.cc
  785. * src/DirectDiskAdaptor.cc
  786. * src/FileEntry.cc
  787. * src/FileEntry.h
  788. * src/FtpNegotiationCommand.cc
  789. * src/HttpResponse.cc
  790. * src/HttpResponseCommand.cc
  791. * src/Metalink2RequestGroup.cc
  792. * src/MultiDiskAdaptor.cc
  793. * src/MultiDiskAdaptor.h
  794. * src/MultiFileAllocationIterator.cc
  795. * src/RequestGroup.cc
  796. * src/SingleFileDownloadContext.cc
  797. * src/SingleFileDownloadContext.h
  798. * src/download_helper.cc
  799. * test/BtDependencyTest.cc
  800. * test/CopyDiskAdaptorTest.cc
  801. * test/DefaultBtContextTest.cc
  802. * test/DefaultBtProgressInfoFileTest.cc
  803. * test/DirectDiskAdaptorTest.cc
  804. * test/DownloadHelperTest.cc
  805. * test/FileEntryTest.cc
  806. * test/MultiDiskAdaptorTest.cc
  807. * test/MultiFileAllocationIteratorTest.cc
  808. * test/RequestGroupTest.cc
  809. * test/SingleFileDownloadContextTest.cc
  810. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Fixed compiler warning
  812. * src/download_helper.cc
  813. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Throw exception if same infohash torrent is now downloading.
  815. * src/RequestGroup.cc
  816. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Added --dry-run option. In this mode, aria2 just checks whether
  818. the remote file is available and doesn't download data. This
  819. option has effect on HTTP/FTP downloads and BitTorrent downloads
  820. are canceled in this mode.
  821. * src/FtpNegotiationCommand.cc
  822. * src/HttpResponseCommand.cc
  823. * src/HttpResponseCommand.h
  824. * src/OptionHandlerFactory.cc
  825. * src/RequestGroup.cc
  826. * src/RequestGroupMan.cc
  827. * src/prefs.cc
  828. * src/prefs.h
  829. * src/usage_text.h
  830. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Fixed compiler waring
  832. * test/UriListParserTest.cc
  833. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Parse options in -i list using OptionParser.
  835. * src/UriListParser.cc
  836. * src/UriListParser.h
  837. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Don't reset URI in retry to avoid additional round trips because
  839. of redirects.
  840. * src/AbstractCommand.cc
  841. * src/OptionHandlerFactory.cc
  842. * src/prefs.cc
  843. * src/prefs.h
  844. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Declared hide() in OptionHandler.
  846. * src/NameMatchOptionHandler.h
  847. * src/OptionHandler.h
  848. * src/OptionHandlerImpl.h
  849. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Updated doc
  851. * src/Peer.h
  852. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Added log message in setStatusInternal()
  854. * src/ServerStat.cc
  855. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Call ServerStat::setError() in AbstractCommand::onAbort() to
  857. effectively exclude failed server.
  858. * src/AbstractCommand.cc
  859. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Added --index-out option to specify each file path for torrent.
  861. Here index shown in --show-files option is used to specify which
  862. file path should be altered. For example, to change the file path
  863. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  864. option multiple times: --index-out=1=aria2.tar.bz2
  865. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  866. available. This option can be specified in -i list.
  867. * src/DefaultBtContext.cc
  868. * src/DefaultBtContext.h
  869. * src/MultiDiskAdaptor.cc
  870. * src/MultiDiskAdaptor.h
  871. * src/MultiFileAllocationIterator.cc
  872. * src/OptionHandlerFactory.cc
  873. * src/OptionHandlerImpl.h
  874. * src/Util.cc
  875. * src/Util.h
  876. * src/download_helper.cc
  877. * src/prefs.cc
  878. * src/prefs.h
  879. * src/usage_text.h
  880. * test/DefaultBtContextTest.cc
  881. * test/MultiDiskAdaptorTest.cc
  882. * test/MultiFileAllocationIteratorTest.cc
  883. * test/UtilTest.cc
  884. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  885. Use Util::pathJoin()
  886. * src/MetalinkParserController.cc
  887. * test/test.xml
  888. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Use Util::pathJoin()
  890. * src/DefaultBtContext.cc
  891. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Added Util::pathJoin()
  893. * src/Util.h
  894. * test/UtilTest.cc
  895. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  896. Applied basename function to remove directory element in
  897. content-disposition value.
  898. Return empty string if content-disposition value is ".." or ".".
  899. * src/Util.cc
  900. * test/UtilTest.cc
  901. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Added --max-overall-download-limit in man page.
  903. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  904. * doc/aria2c.1.txt
  905. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Added --max-overall-download-limit option. Now --max-upload-limit
  907. option is not ignored when --max-overall-upload-limit option has
  908. non-zero value. aria2 checks download(upload) speed in the order:
  909. first checks overall speed limit and if it is not exceeded, then
  910. checks speed limit per download. Thus you can specify both
  911. value. For example, set --max-overall-download-limit=1M and
  912. --max-download-limit=500K to prevent from one download from eating
  913. all overall speed limit.
  914. * src/DefaultBtInteractive.cc
  915. * src/DefaultBtInteractive.h
  916. * src/DefaultBtMessageDispatcher.cc
  917. * src/DefaultBtMessageDispatcher.h
  918. * src/DownloadCommand.cc
  919. * src/DownloadCommand.h
  920. * src/FtpNegotiationCommand.cc
  921. * src/HttpResponseCommand.cc
  922. * src/OptionHandlerFactory.cc
  923. * src/PeerInteractionCommand.cc
  924. * src/RequestGroup.cc
  925. * src/RequestGroup.h
  926. * src/RequestGroupMan.cc
  927. * src/RequestGroupMan.h
  928. * src/prefs.cc
  929. * src/prefs.h
  930. * src/usage_text.h
  931. * test/DefaultBtMessageDispatcherTest.cc
  932. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Documented select-file option in Input File section.
  934. Documented --http-auth-challenge option.
  935. * doc/aria2c.1.txt
  936. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  937. Now select-file can be specified in the uri list(-i list).
  938. * src/BtContext.cc
  939. * src/BtContext.h
  940. * src/RequestGroup.cc
  941. * src/Sequence.h
  942. * src/download_helper.cc
  943. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Made the upper value of --max-concurrent-downloads options unlimited.
  945. * src/OptionHandlerFactory.cc
  946. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Fixed the bug that disk writer is not created even if it shares
  948. same piece with the preceding file if the length of previous file
  949. is 0.
  950. * src/MultiDiskAdaptor.cc
  951. * test/MultiDiskAdaptorTest.cc
  952. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. In BitTorrent, Open files in read-only mode for hash check. After
  954. that, re-open file in read/write mode only when the download is
  955. not finished.
  956. * src/AbstractDiskWriter.cc
  957. * src/AbstractDiskWriter.h
  958. * src/AbstractSingleDiskAdaptor.cc
  959. * src/AbstractSingleDiskAdaptor.h
  960. * src/BtCheckIntegrityEntry.cc
  961. * src/DiskAdaptor.h
  962. * src/DiskWriter.h
  963. * src/MultiDiskAdaptor.cc
  964. * src/MultiDiskAdaptor.h
  965. * src/RequestGroup.cc
  966. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Added --http-auth-challenge option. If it is set to true(by
  968. default), aria2 sends HTTP authorization header only when it is
  969. requested by the server. If false is set, then authorization
  970. header is always sent to the server. This is useful for servers
  971. that don't respond 401 code when authentication is required.
  972. There is an exception: if username and password are embedded in
  973. URI, authorization header is always sent to the server regardless
  974. of this option.
  975. * src/AuthConfigFactory.cc
  976. * src/HttpSkipResponseCommand.cc
  977. * src/OptionHandlerFactory.cc
  978. * src/prefs.cc
  979. * src/prefs.h
  980. * src/usage_text.h
  981. * test/AuthConfigFactoryTest.cc
  982. * test/HttpRequestTest.cc
  983. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. * Release 1.2.0
  985. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  986. Updated Spanish, Ukrainian, Russian and Japanese translations.
  987. Thanks to all translators.
  988. * po/es.po
  989. * po/ja.po
  990. * po/ru.po
  991. * po/uk.po
  992. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Call deleteSocketForReadCheck() before socket is closed.
  994. * src/HttpListenCommand.cc
  995. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Defined virtual destructor for BObject.
  997. * src/bencode.h
  998. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Rewritten BDE to make it efficient.
  1000. * src/bencode.cc
  1001. * src/bencode.h
  1002. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Removed function throw list.
  1004. * src/bencode.cc
  1005. * src/bencode.h
  1006. * test/BencodeTest.cc
  1007. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Enclosed all URLs in double quotes in command-line examples.
  1009. * doc/aria2c.1.txt
  1010. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Updated reference/see also section.
  1012. * README
  1013. * doc/aria2c.1.txt
  1014. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Reorganized man page based on man man-pages.
  1016. * doc/aria2c.1.txt
  1017. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1019. because same documents are available in man page. Added
  1020. References section.
  1021. * README
  1022. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1024. PERFORMANCE PROFILE section.
  1025. * doc/aria2c.1.txt
  1026. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1027. Rewritten the section for configuration file.
  1028. * README
  1029. * doc/aria2c.1.txt
  1030. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1031. Fixed the segmentation fault during execution of choking algorithm
  1032. in leecher state because of broken compare operator
  1033. implementation.
  1034. * src/BtLeecherStateChoke.cc
  1035. * src/BtLeecherStateChoke.h
  1036. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Open file in binary mode.
  1038. * src/CookieStorage.cc
  1039. * src/DHTSetup.cc
  1040. * src/DHTUtil.cc
  1041. * src/Netrc.cc
  1042. * src/NsCookieParser.cc
  1043. * src/ProtocolDetector.cc
  1044. * src/RequestGroupMan.cc
  1045. * src/Signature.cc
  1046. * src/bencode.cc
  1047. * src/download_helper.cc
  1048. * src/option_processing.cc
  1049. * test/CookieParserTest.cc
  1050. * test/DefaultBtProgressInfoFileTest.cc
  1051. * test/FileTest.cc
  1052. * test/GZipDecoderTest.cc
  1053. * test/RequestGroupManTest.cc
  1054. * test/SignatureTest.cc
  1055. * test/SingleFileAllocationIteratorTest.cc
  1056. * test/UriListParserTest.cc
  1057. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Removed operator[] because it is ambiguous with built-in []
  1059. operator.
  1060. * src/array_fun.h
  1061. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Fixed compile error
  1063. * src/OptionParser.cc
  1064. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Added missing call to arrayWrapperConst
  1066. * test/array_funTest.cc
  1067. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Use array_wrapper instead of array_ptr.
  1069. * src/DHTRoutingTableDeserializer.cc
  1070. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1072. * src/array_fun.h
  1073. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Added array_wrapper template.
  1075. * src/array_fun.h
  1076. * test/array_funTest.cc
  1077. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1078. Use operator T* of array_ptr.
  1079. * src/OptionParser.cc
  1080. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1081. Use localhost instead of 127.0.0.1
  1082. * test/FtpConnectionTest.cc
  1083. * test/MSEHandshakeTest.cc
  1084. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Added operator T*
  1086. * src/array_fun.h
  1087. * test/array_funTest.cc
  1088. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Use dynamically allocated char array to detect memory access
  1090. violation.
  1091. * src/DHTRoutingTableDeserializer.cc
  1092. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1094. defined.
  1095. * src/PeerMessageUtil.cc
  1096. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1098. * configure.ac
  1099. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Added a check to see struct sockaddr_in has sin_len member.
  1101. * configure.ac
  1102. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Fixed buffer overrun.
  1104. * src/DHTRoutingTableDeserializer.cc
  1105. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1106. Added LL for long long int constant.
  1107. * test/FtpConnectionTest.cc
  1108. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1109. Casted to unsigned int to suppress compiler warning on netbsd.
  1110. * src/BtRuntime.h
  1111. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1113. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1114. type time_t.
  1115. * src/SimpleLogger.cc
  1116. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Added test for FtpConnection::receiveSizeResponse().
  1118. * test/FtpConnectionTest.cc
  1119. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Fix epoll error on the old kernel 2.6.8 or ealier.
  1121. * src/EpollEventPoll.cc
  1122. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Use Util::parseLLInt instead of sscanf for portability. The
  1124. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1125. * src/FtpConnection.cc
  1126. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1128. block. It should not filter anything.
  1129. * src/BitfieldMan.cc
  1130. * src/ConsoleStatCalc.cc
  1131. * test/BitfieldManTest.cc
  1132. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Fixed the bug that the boolean options that don't take arguments
  1134. don't work.
  1135. * src/OptionHandlerImpl.h
  1136. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Fixed broken selected file BitTorrent download.
  1138. * src/MultiDiskAdaptor.cc
  1139. * test/MultiDiskAdaptorTest.cc
  1140. * test/MultiFileAllocationIteratorTest.cc
  1141. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Fixed #define guard for EpollEventPoll
  1143. * src/EpollEventPoll.h
  1144. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1145. Wait 2 seconds. 1 second is sometimes not enough.
  1146. * test/TimeSeedCriteriaTest.cc
  1147. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1148. Use localhost instead of 127.0.0.1.
  1149. * test/DHTConnectionImplTest.cc
  1150. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1151. Suppressed compiler warning.
  1152. * src/AdaptiveURISelector.cc
  1153. * src/DefaultPieceStorage.cc
  1154. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1155. Defined virtual destructor.
  1156. * src/MetalinkParserState.h
  1157. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Give NULL for second argument of getaddrinfo instead of "0".
  1159. * src/NameResolver.cc
  1160. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1162. included strptime doesn't parse data for this format.
  1163. * src/FtpConnection.cc
  1164. * test/FtpConnectionTest.cc
  1165. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Removed tests giving -1 for unsigned argument.
  1167. * test/SingleFileDownloadContextTest.cc
  1168. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Don't use sha256 in tests because it might not be supported by the
  1170. SSL library.
  1171. * test/MetalinkProcessorTest.cc
  1172. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Removed tests giving -1 for unsigned argument.
  1174. * test/AlphaNumberDecoratorTest
  1175. * test/BitfieldManTest.cc
  1176. * test/DefaultBtContextTest.cc
  1177. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1178. Fixed compile error without libcares when epoll is available.
  1179. * src/EpollEventPoll.cc
  1180. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Included fstream instead of iostream.
  1182. * test/SignatureTest.cc
  1183. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Removed #include <algorithm>
  1185. * test/RequestGroupTest.cc
  1186. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1188. using RequestGroup::extractURIResult().
  1189. * src/AdaptiveURISelector.cc
  1190. * src/RequestGroup.cc
  1191. * src/RequestGroup.h
  1192. * test/RequestGroupTest.cc
  1193. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Added tests for array_ptr.
  1195. * test/array_funTest.cc
  1196. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Don't send ip parameter to a tracker if ip parameter is empty
  1198. string.
  1199. * src/DefaultBtAnnounce.cc
  1200. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Adjusted line feed.
  1202. * src/version_usage.cc
  1203. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Print tags, possible values when OptionHandlerException is caught.
  1205. * src/option_processing.cc
  1206. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Changed the message for FatalException.
  1208. * src/OptionParser.cc
  1209. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1210. Documented --bt-external-ip option in man page. Updated man pages
  1211. for --proxy-method option.
  1212. * doc/aria2c.1.txt
  1213. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1214. Use GET method for FTP via HTTP proxy.
  1215. * src/FtpInitiateConnectionCommand.cc
  1216. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Changed the default value of --proxy-method option from 'tunnel'
  1218. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1219. option.
  1220. * src/AbstractCommand.cc
  1221. * src/AbstractCommand.h
  1222. * src/FtpInitiateConnectionCommand.cc
  1223. * src/HttpDownloadCommand.cc
  1224. * src/HttpInitiateConnectionCommand.cc
  1225. * src/HttpInitiateConnectionCommand.h
  1226. * src/OptionHandlerFactory.cc
  1227. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. Initialized _logger
  1229. * src/SelectEventPoll.cc
  1230. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Defined a copy constructor for the same type.
  1232. * src/SharedHandle.h
  1233. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Added OptionParser::parseArg() which internally uses getopt_long
  1235. to parse command-line options. All command-line options are now
  1236. configured by OptionHandler. No manual editing of struct option*
  1237. is required any more.
  1238. * src/NameMatchOptionHandler.h
  1239. * src/OptionHandler.h
  1240. * src/OptionHandlerFactory.cc
  1241. * src/OptionHandlerImpl.h
  1242. * src/OptionParser.cc
  1243. * src/OptionParser.h
  1244. * src/array_fun.h
  1245. * src/main.cc
  1246. * src/option_processing.cc
  1247. * test/OptionHandlerTest.cc
  1248. * test/OptionParserTest.cc
  1249. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1250. Fixed configure error with --disable-epoll
  1251. * configure.ac
  1252. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Fixed compile error when HAVE_EPOLL is not defined.
  1254. Fixed linker error on bigendian systems.
  1255. * src/SocketCore.cc
  1256. * src/SocketCore.h
  1257. * test/DefaultBtProgressInfoFileTest.cc
  1258. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1259. Added --bt-external-ip option. You can specify the external IP
  1260. address to report to a BitTorrent tracker. Although this function
  1261. is named 'external', it can accept any kind of IP addresses.
  1262. * src/DefaultBtAnnounce.cc
  1263. * src/OptionHandlerFactory.cc
  1264. * src/option_processing.cc
  1265. * src/prefs.cc
  1266. * src/prefs.h
  1267. * src/usage_text.h
  1268. * test/DefaultBtAnnounceTest.cc
  1269. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Extracted the algorithm to find the longest incremental sequence
  1271. as max_sequence template.
  1272. * src/LongestSequencePieceSelector.cc
  1273. * src/a2algo.h
  1274. * test/Makefile.am
  1275. * test/a2algoTest.cc
  1276. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1277. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1278. * src/usage_text.h
  1279. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Updated doc for --uri-selector, --http-server-listen-port and
  1281. --enable-http-server option. Documented --event-poll option.
  1282. * doc/aria2c.1.txt
  1283. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Updated doc for --enable-http-server.
  1285. * src/usage_text.h
  1286. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1287. Documented --http-server-listen-port and --enable-http-server in
  1288. man page.
  1289. * doc/aria2c.1.txt
  1290. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1291. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1292. translations. Thanks to all translators.
  1293. * po/es.po
  1294. * po/id.po
  1295. * po/it.po
  1296. * po/ru.po
  1297. * po/uk.po
  1298. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1299. Bump up version number to 1.2.0
  1300. * configure.ac
  1301. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1302. BtContext::getAnnounceTiers() now returns const reference.
  1303. * src/BtContext.h
  1304. * src/DefaultBtContext.cc
  1305. * src/DefaultBtContext.h
  1306. * test/MockBtContext.h
  1307. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1308. Change the number of retries for tracker request based on the
  1309. number of available tracker in a torrent file.
  1310. * src/TrackerWatcherCommand.cc
  1311. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Added _maxTries property to RequestGroup and assign the option
  1313. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1314. RequestGroup::getMaxTries() instead of
  1315. Option::getAsInt(PREF_MAX_TRIES).
  1316. * src/AbstractCommand.cc
  1317. * src/RequestGroup.cc
  1318. * src/RequestGroup.h
  1319. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1320. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1321. Mandriva. I modified the patch: make RequestGroup have the
  1322. timeout value and AdaptiveURISelector directly modifies that
  1323. value.
  1324. * src/AbstractCommand.cc
  1325. * src/AdaptiveURISelector.cc
  1326. * src/AdaptiveURISelector.h
  1327. * src/FtpNegotiationCommand.cc
  1328. * src/RequestGroup.cc
  1329. * src/RequestGroup.h
  1330. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Fixed compiler warning
  1332. * test/IteratableChecksumValidatorTest.cc
  1333. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1335. integrated downloads. This PieceSelector subclass finds the
  1336. longest continuous sequence in the available missing pieces and
  1337. selects the last index of such sequence. This makes HTTP/FTP
  1338. connections less interrupted by the pieces obtained by BitTorrent
  1339. peers.
  1340. * src/DefaultPieceStorage.cc
  1341. * src/DefaultPieceStorage.h
  1342. * src/LongestSequencePieceSelector.cc
  1343. * src/LongestSequencePieceSelector.h
  1344. * src/Makefile.am
  1345. * src/PieceSelector.h
  1346. * src/RarestPieceSelector.h
  1347. * src/RequestGroup.cc
  1348. * test/BtDependencyTest.cc
  1349. * test/DefaultPieceStorageTest.cc
  1350. * test/IteratableChecksumValidatorTest.cc
  1351. * test/LongestSequencePieceSelectorTest.cc
  1352. * test/Makefile.am
  1353. * test/SegmentManTest.cc
  1354. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1355. Fixed the bug that the average speed is wrong in
  1356. http/ftp/BitTorrent integrated download. Only the download bytes
  1357. in BitTorrent were considered.
  1358. * src/RequestGroup.cc
  1359. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Choose port for BitTorrent/DHT randomly from the specified range.
  1361. * src/DHTConnectionImpl.cc
  1362. * src/PeerListenCommand.cc
  1363. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Send HTTP Authorization header only if it is requested by the
  1365. server(response 401). There are some exceptions. The authorization
  1366. header for proxy is always sent if it is available without request
  1367. by the server. If username/password is specified in the URI, it
  1368. is immediately sent to the server without request by the server.
  1369. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1370. SharedHandle<AuthConfig>().
  1371. NetrcAuthResolver::resolveAuthConfig() returns
  1372. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1373. * src/AbstractAuthResolver.cc
  1374. * src/AbstractProxyRequestCommand.cc
  1375. * src/AuthConfigFactory.cc
  1376. * src/AuthConfigFactory.h
  1377. * src/HttpConnection.cc
  1378. * src/HttpRequest.cc
  1379. * src/HttpRequest.h
  1380. * src/HttpResponse.cc
  1381. * src/HttpResponseCommand.cc
  1382. * src/HttpSkipResponseCommand.cc
  1383. * test/AuthConfigFactoryTest.cc
  1384. * test/HttpRequestTest.cc
  1385. * test/HttpResponseTest.cc
  1386. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Remove leading "--" from help keyword and a substring after "="
  1388. from help keyword, so that one can query options by '-h--max-' or
  1389. '-hmax-peers=10'.
  1390. * src/option_processing.cc
  1391. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1392. Rewritten PStringVisitor and its implementation.
  1393. * src/PStringBuildVisitor.cc
  1394. * src/PStringBuildVisitor.h
  1395. * src/PStringDatum.h
  1396. * src/PStringNumLoop.h
  1397. * src/PStringSegment.cc
  1398. * src/PStringSegment.h
  1399. * src/PStringSelect.h
  1400. * src/PStringVisitor.h
  1401. * src/download_helper.cc
  1402. * test/PStringBuildVisitorTest.cc
  1403. * test/ParameterizedStringParserTest.cc
  1404. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Persist connection between the built-in HTTP server and a client
  1406. if a client supports keep-alive. Fixed the bug that aria2 exits
  1407. when the HTTP server receives EOF from a client.
  1408. * src/HttpServer.cc
  1409. * src/HttpServer.h
  1410. * src/HttpServerCommand.cc
  1411. * src/HttpServerCommand.h
  1412. * src/HttpServerResponseCommand.cc
  1413. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1414. Added experimental built-in HTTP server. Currently, when a client
  1415. accesses to the server, it responds with the current download
  1416. progress. By default, it is disabled. To enable the server, give
  1417. --enable-http-server option. To change the default port number
  1418. for the server to listen to, use --http-server-listen-port option.
  1419. The response HTML is very simple and refreshes it self each 1
  1420. second. Because of this refresh, you see flicker in normal web
  1421. browser such as Firefox. I recommend to use console-based browser
  1422. such as elinks, w3m. To connect to the server, run 'elinks
  1423. http://localhost:6800/' while running aria2. Please replace port
  1424. number '6800'(which is default) with your preference.
  1425. * src/DownloadEngineFactory.cc
  1426. * src/HttpHeader.cc
  1427. * src/HttpHeader.h
  1428. * src/HttpHeaderProcessor.cc
  1429. * src/HttpHeaderProcessor.h
  1430. * src/HttpListenCommand.cc
  1431. * src/HttpListenCommand.h
  1432. * src/HttpServer.cc
  1433. * src/HttpServer.h
  1434. * src/HttpServerCommand.cc
  1435. * src/HttpServerCommand.h
  1436. * src/HttpServerResponseCommand.cc
  1437. * src/HttpServerResponseCommand.h
  1438. * src/Makefile.am
  1439. * src/OptionHandlerFactory.cc
  1440. * src/Util.cc
  1441. * src/Util.h
  1442. * src/help_tags.h
  1443. * src/option_processing.cc
  1444. * src/prefs.cc
  1445. * src/prefs.h
  1446. * src/usage_text.h
  1447. * test/HttpHeaderProcessorTest.cc
  1448. * test/UtilTest.cc
  1449. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Removed.
  1451. * src/CheckIntegrityMan.cc
  1452. * src/FileAllocationMan.cc
  1453. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Made (piece) hash check sequential for each RequestGroup because
  1455. simultaneous hash check is slower than sequential execution.
  1456. * src/CheckIntegrityCommand.cc
  1457. * src/CheckIntegrityDispatcherCommand.cc
  1458. * src/CheckIntegrityDispatcherCommand.h
  1459. * src/CheckIntegrityMan.h
  1460. * src/ConsoleStatCalc.cc
  1461. * src/DownloadCommand.cc
  1462. * src/DownloadEngine.cc
  1463. * src/DownloadEngine.h
  1464. * src/DownloadEngineFactory.cc
  1465. * src/Makefile.am
  1466. * src/Makefile.in
  1467. * src/RequestGroup.cc
  1468. * src/StatCalc.h
  1469. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1471. SequentialDispatcherCommand.
  1472. * src/FileAllocationDispatcherCommand.cc
  1473. * src/SequentialDispatcherCommand.h
  1474. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. Rewritten FileAllocationDispatcherCommand using brand new
  1476. SequentialDispatcherCommand.
  1477. * src/DownloadEngineFactory.cc
  1478. * src/FileAllocationCommand.cc
  1479. * src/FileAllocationDispatcherCommand.cc
  1480. * src/FileAllocationDispatcherCommand.h
  1481. * src/Makefile.am
  1482. * src/SequentialDispatcherCommand.h
  1483. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Replaced FileAllocationMan with
  1485. SequentialPicker<FileAllocationEntry>.
  1486. * src/BtCheckIntegrityEntry.cc
  1487. * src/ConsoleStatCalc.cc
  1488. * src/DownloadEngine.cc
  1489. * src/DownloadEngine.h
  1490. * src/DownloadEngineFactory.cc
  1491. * src/FileAllocationCommand.cc
  1492. * src/FileAllocationDispatcherCommand.cc
  1493. * src/FileAllocationMan.h
  1494. * src/Makefile.am
  1495. * src/SequentialPicker.h
  1496. * src/StatCalc.h
  1497. * src/StreamCheckIntegrityEntry.cc
  1498. * test/Makefile.am
  1499. * test/SequentialPickerTest.cc
  1500. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1501. Added doc for adaptive URI selector.
  1502. * doc/aria2c.1.txt
  1503. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1504. Added doc for adaptive URI selector.
  1505. * src/usage_text.h
  1506. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1507. Added doc for --bt-max-peers option.
  1508. * doc/aria2c.1.txt
  1509. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1510. Added doc for --bt-hash-check-seed option.
  1511. * doc/aria2c.1.txt
  1512. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1513. Documented exit codes.
  1514. * doc/aria2c.1.txt
  1515. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1516. Added --bt-max-peers option to specify the maximum number of peers
  1517. per torrent. 0 means unlimited number of peers.
  1518. * src/ActivePeerConnectionCommand.cc
  1519. * src/BtRuntime.h
  1520. * src/DefaultPeerStorage.cc
  1521. * src/DefaultPeerStorage.h
  1522. * src/OptionHandlerFactory.cc
  1523. * src/RequestGroup.cc
  1524. * src/option_processing.cc
  1525. * src/prefs.cc
  1526. * src/prefs.h
  1527. * src/usage_text.h
  1528. * test/DefaultPeerStorageTest.cc
  1529. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Added --bt-hash-check-seed option. If true is given to this
  1531. option, after hash check using --check-integrity option and file
  1532. is complete, continue to seed file. If you want to check file and
  1533. download it only when it is damaged or incomplete, set this option
  1534. to false. This option has effect only on BitTorrent download.
  1535. The default value is true(This is the same behavior with the
  1536. previous release).
  1537. * src/BtCheckIntegrityEntry.cc
  1538. * src/OptionHandlerFactory.cc
  1539. * src/option_processing.cc
  1540. * src/prefs.cc
  1541. * src/prefs.h
  1542. * src/usage_text.h
  1543. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1544. Updated copyright year.
  1545. * src/version_usage.cc
  1546. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1548. * doc/aria2c.1.txt
  1549. * src/usage_text.h
  1550. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Made the max value of split option unlimited.
  1552. * doc/aria2c.1.txt
  1553. * src/OptionHandlerFactory.cc
  1554. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1555. Fixed compile warning/error.
  1556. * src/DownloadResult.h
  1557. * src/HttpDownloadCommand.cc
  1558. * src/ServerStat.cc
  1559. * test/RequestGroupTest.cc
  1560. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Added --event-poll option to select the method for polling events.
  1562. The available methods are "select" and "epoll". "epoll" is
  1563. available on Linux only. The earlier release has the compile
  1564. option to choose from these methods.
  1565. * configure.ac
  1566. * src/RequestGroupMan.cc
  1567. * src/OptionHandlerFactory.cc
  1568. * src/EpollEventPoll.h
  1569. * src/StreamFileAllocationEntry.cc
  1570. * src/a2io.h
  1571. * src/SelectEventPoll.h
  1572. * src/option_processing.cc
  1573. * src/prefs.h
  1574. * src/EpollEventPoll.cc
  1575. * src/EventPoll.h
  1576. * src/SocketCore.h
  1577. * src/Makefile.am
  1578. * src/main.cc
  1579. * src/DownloadEngine.h
  1580. * src/SelectEventPoll.cc
  1581. * src/DownloadEngine.cc
  1582. * src/SocketCore.cc
  1583. * src/DownloadEngineFactory.cc
  1584. * src/Makefile.in
  1585. * src/prefs.cc
  1586. * src/usage_text.h
  1587. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Included RecoverableException.h from main.cc
  1589. * src/main.cc
  1590. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1592. now returns last error encountered in the HTTP/FTP downloads as a
  1593. exit status value. If all downloads finished successfully, aria2
  1594. returns 0. The error code is defined in src/DownloadResult.h.
  1595. The error occurred in the download currently in progress is not
  1596. reported as a last error. If no error has encountered but there
  1597. are in progress or waiting downloads, aria2 returns 7.
  1598. * src/AbstractCommand.cc
  1599. * src/DlAbortEx.h
  1600. * src/DlRetryEx.h
  1601. * src/DownloadCommand.cc
  1602. * src/DownloadFailureException.h
  1603. * src/DownloadResult.h
  1604. * src/FtpNegotiationCommand.cc
  1605. * src/HttpSkipResponseCommand.cc
  1606. * src/Makefile.am
  1607. * src/MultiUrlRequestInfo.cc
  1608. * src/MultiUrlRequestInfo.h
  1609. * src/RecoverableException.h
  1610. * src/RequestGroup.cc
  1611. * src/RequestGroup.h
  1612. * src/RequestGroupMan.cc
  1613. * src/RequestGroupMan.h
  1614. * src/URIResult.cc
  1615. * src/URIResult.h
  1616. * src/main.cc
  1617. * src/option_processing.cc
  1618. * test/RequestGroupTest.cc
  1619. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1621. patch adds AdaptiveURISelector, which selects one of the bests
  1622. mirrors for first and reserved connections. For supplementary
  1623. ones, it returns mirrors which has not been tested yet, and if
  1624. each of them already tested, returns mirrors which has to be
  1625. tested again. Otherwise, it doesn't return anymore mirrors.
  1626. * src/AdaptiveURISelector.cc
  1627. * src/AdaptiveURISelector.h
  1628. * src/FtpNegotiationCommand.cc
  1629. * src/HttpResponseCommand.cc
  1630. * src/Makefile.am
  1631. * src/Makefile.in
  1632. * src/OptionHandlerFactory.cc
  1633. * src/RequestGroup.cc
  1634. * src/RequestGroup.h
  1635. * src/RequestGroupMan.cc
  1636. * src/ServerStat.cc
  1637. * src/ServerStat.h
  1638. * src/ServerStatMan.cc
  1639. * src/SpeedCalc.cc
  1640. * src/URISelector.h
  1641. * src/prefs.cc
  1642. * src/prefs.h
  1643. * test/RequestGroupManTest.cc
  1644. * test/ServerStatManTest.cc
  1645. * test/ServerStatTest.cc
  1646. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Fixed unit test error.
  1648. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1649. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. * Release 1.1.2
  1651. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Updated Russian translation. Thanks to the translators.
  1653. * po/ru.po
  1654. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Added the description of --use-head option to man page.
  1656. * doc/aria2c.1.txt
  1657. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Bump up version number to 1.1.2
  1659. * configure.ac
  1660. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Added --use-head option to toggle whether HEAD method should be
  1662. used in the first HTTP request. By default aria2 uses HEAD method
  1663. as the first request. When the server doesn't recognize HEAD, then
  1664. give aria2 --use-head=false to force aria2 to use GET method
  1665. instead.
  1666. * src/OptionHandlerFactory.cc
  1667. * src/RequestGroupMan.cc
  1668. * src/option_processing.cc
  1669. * src/prefs.cc
  1670. * src/prefs.h
  1671. * src/usage_text.h
  1672. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1674. message is received before CHOKE message. The old implementation
  1675. doen't clear the use-bit of the piece when recieved REJECT
  1676. message.
  1677. * src/DefaultBtMessageDispatcher.cc
  1678. * test/DefaultBtMessageDispatcherTest.cc
  1679. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. * Release 1.1.1
  1681. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Bump up version number to 1.1.1.
  1683. * configure.ac
  1684. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1686. is printed repeatedly.
  1687. * src/ConsoleStatCalc.cc
  1688. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1689. * Release 1.1.0
  1690. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1691. Added ifdef clause for conditional compilation.
  1692. * src/main.cc
  1693. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1695. translations. Thanks to all translators.
  1696. * po/ja.po
  1697. * po/ru.po
  1698. * po/uk.po
  1699. * po/zh_CN.po
  1700. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Added the preceding ">>> " before the message "Printing the
  1702. contents of file..." to make the output more readable.
  1703. * src/main.cc
  1704. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Added try-catch block in the loop in showFiles() to continue the
  1706. operation even if the exception occurred in one file.
  1707. * src/main.cc (showFiles)
  1708. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Made messages in showFiles() translatable.
  1710. * po/aria2.pot
  1711. * src/main.cc
  1712. * src/message.h
  1713. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Print the contents of Torrent/Metalink files are printed without
  1715. -T/-M options.
  1716. * src/main.cc
  1717. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Escaped '--' with '\--'
  1719. * README
  1720. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1721. Updated "How to build" section in README. Mentioned about
  1722. --with-ca-bundle compile option.
  1723. * README
  1724. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Bump up version number to 1.1.0.
  1726. * configure.ac
  1727. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Added a note for --dht-listen-port option.
  1729. * doc/aria2c.1.txt
  1730. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Update doc for --realtime-chunk-checksum option.
  1732. * doc/aria2c.1.txt
  1733. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Update doc for --realtime-chunk-checksum option.
  1735. * src/usage_text.h
  1736. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1737. Updated French, Japanese, Russian and Ukrainian translations.
  1738. Thanks to all translators.
  1739. * po/fr.po
  1740. * po/ja.po
  1741. * po/ru.po
  1742. * po/uk.po
  1743. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Renamed aria2c.pot to aria2.pot
  1745. * po/aria2.pot
  1746. * po/aria2c.pot: Removed.
  1747. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. Removed MetaEntry.h
  1749. * src/Makefile.am
  1750. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1751. Rename file by appending digits if a local file exists and its
  1752. file size is larger than that of remote file with --continue
  1753. option. The old implementation just throws exception in such case.
  1754. * src/RequestGroup.cc
  1755. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Fixed the bug that download progress summary is not printed in the
  1757. interval specified by the option.
  1758. * src/ConsoleStatCalc.cc
  1759. * src/ConsoleStatCalc.h
  1760. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. Fixed compiler warning
  1762. * src/Cookie.cc
  1763. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1764. Fixed the cookie implementation based on RFC2965.
  1765. Now if a value in domain field is not started with dot, then
  1766. prepend dot. That means a cookie with domain=sf.net is sent to
  1767. wiki.sf.net.
  1768. * src/Cookie.cc
  1769. * test/CookieParserTest.cc
  1770. * test/CookieStorageTest.cc
  1771. * test/CookieTest.cc
  1772. * test/NsCookieParserTest.cc
  1773. * test/Sqlite3MozCookieParserTest.cc
  1774. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1775. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1776. is enabled and the server doesn't support keep-alive.
  1777. * src/AbstractCommand.cc
  1778. * src/DownloadCommand.cc
  1779. * src/HttpDownloadCommand.cc
  1780. * src/HttpDownloadCommand.h
  1781. * src/HttpResponseCommand.cc
  1782. * src/Request.cc
  1783. * src/Request.h
  1784. * test/RequestTest.cc
  1785. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Removed Dictionary/List/Data and its related classes.
  1787. * src/BencodeVisitor.cc: Removed.
  1788. * src/BencodeVisitor.h: Removed.
  1789. * src/Data.cc: Removed.
  1790. * src/Data.h: Removed.
  1791. * src/Dictionary.cc: Removed.
  1792. * src/Dictionary.h: Removed.
  1793. * src/List.cc: Removed.
  1794. * src/List.h: Removed.
  1795. * src/Makefile.am
  1796. * src/MetaEntry.h: Removed.
  1797. * src/MetaEntryVisitor.h: Removed.
  1798. * src/MetaFileUtil.cc: Removed.
  1799. * src/MetaFileUtil.h: Removed.
  1800. * test/BencodeVisitorTest.cc: Removed.
  1801. * test/DataTest.cc: Removed.
  1802. * test/DictionaryTest.cc: Removed.
  1803. * test/ListTest.cc: Removed.
  1804. * test/Makefile.am
  1805. * test/MetaFileUtilTest.cc: Removed.
  1806. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Removed include of MetaEntry.h
  1808. * test/DHTMessageTrackerEntryTest.cc
  1809. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Use BDE instead of Dictionary/List/Data.
  1811. * src/AnnounceList.cc
  1812. * src/AnnounceList.h
  1813. * test/AnnounceListTest.cc
  1814. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Use BDE instead of Dictionary/List/Data.
  1816. * src/DHTAbstractMessage.cc
  1817. * src/DHTAbstractMessage.h
  1818. * src/DHTAnnouncePeerMessage.cc
  1819. * src/DHTAnnouncePeerMessage.h
  1820. * src/DHTAnnouncePeerReplyMessage.cc
  1821. * src/DHTAnnouncePeerReplyMessage.h
  1822. * src/DHTFindNodeMessage.cc
  1823. * src/DHTFindNodeMessage.h
  1824. * src/DHTFindNodeReplyMessage.cc
  1825. * src/DHTFindNodeReplyMessage.h
  1826. * src/DHTGetPeersMessage.cc
  1827. * src/DHTGetPeersMessage.h
  1828. * src/DHTGetPeersReplyMessage.cc
  1829. * src/DHTGetPeersReplyMessage.h
  1830. * src/DHTMessageFactory.h
  1831. * src/DHTMessageFactoryImpl.cc
  1832. * src/DHTMessageFactoryImpl.h
  1833. * src/DHTMessageReceiver.cc
  1834. * src/DHTMessageTracker.cc
  1835. * src/DHTMessageTracker.h
  1836. * src/DHTPingMessage.cc
  1837. * src/DHTPingMessage.h
  1838. * src/DHTPingReplyMessage.cc
  1839. * src/DHTPingReplyMessage.h
  1840. * src/DHTQueryMessage.cc
  1841. * src/DHTQueryMessage.h
  1842. * src/DHTResponseMessage.cc
  1843. * src/DHTResponseMessage.h
  1844. * test/DHTAnnouncePeerMessageTest.cc
  1845. * test/DHTAnnouncePeerReplyMessageTest.cc
  1846. * test/DHTFindNodeMessageTest.cc
  1847. * test/DHTFindNodeReplyMessageTest.cc
  1848. * test/DHTGetPeersMessageTest.cc
  1849. * test/DHTGetPeersReplyMessageTest.cc
  1850. * test/DHTMessageFactoryImplTest.cc
  1851. * test/DHTMessageTrackerTest.cc
  1852. * test/DHTPingMessageTest.cc
  1853. * test/DHTPingReplyMessageTest.cc
  1854. * test/MockDHTMessageFactory.h
  1855. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Added tests the case where length < 0 is specified.
  1857. * test/BencodeTest.cc
  1858. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1859. Fixed memory leak in decoderawstring()
  1860. * src/bencode.cc
  1861. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. Added missing #ifdef guard. Added uc() function for String and
  1863. removeKey() for Dict.
  1864. * src/bencode.cc
  1865. * src/bencode.h
  1866. * test/BencodeTest.cc
  1867. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1868. Use BDE instead of Dictionary/List/Data.
  1869. * src/HandshakeExtensionMessage.cc
  1870. * src/HandshakeExtensionMessage.h
  1871. * test/HandshakeExtensionMessageTest.cc
  1872. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1873. Added --max-overall-upload-limit option. This option limits the
  1874. overall upload speed. Stated in help message that the existing
  1875. --max-upload-limit option limits the upload speed per each
  1876. torrent. Man page is also updated.
  1877. * doc/aria2c.1.txt
  1878. * src/DefaultBtMessageDispatcher.cc
  1879. * src/DefaultBtMessageDispatcher.h
  1880. * src/OptionHandlerFactory.cc
  1881. * src/PeerInteractionCommand.cc
  1882. * src/option_processing.cc
  1883. * src/prefs.cc
  1884. * src/prefs.h
  1885. * src/usage_text.h
  1886. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Use BDE instead of Dictionary/List/Data classes.
  1888. * src/CompactPeerListProcessor.cc
  1889. * src/CompactPeerListProcessor.h
  1890. * src/DefaultBtAnnounce.cc
  1891. * src/DefaultBtContext.cc
  1892. * src/DefaultBtContext.h
  1893. * src/DefaultPeerListProcessor.cc
  1894. * src/DefaultPeerListProcessor.h
  1895. * src/DelegatingPeerListProcessor.cc
  1896. * src/DelegatingPeerListProcessor.h
  1897. * src/PeerListProcessor.h
  1898. * src/UTPexExtensionMessage.cc
  1899. * src/Util.h
  1900. * src/message.h
  1901. * test/DefaultBtContextTest.cc
  1902. * test/DefaultPeerListProcessorTest.cc
  1903. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Added bencode helper functions and BDE class.
  1905. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1906. * src/Makefile.am
  1907. * src/bencode.cc
  1908. * src/bencode.h
  1909. * test/BencodeTest.cc
  1910. * test/Makefile.am
  1911. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Fixed the bug that bad URI is sent to the tracker when the announe
  1913. URI in torrent file includes query.
  1914. * src/DefaultBtAnnounce.cc
  1915. * test/DefaultBtAnnounceTest.cc
  1916. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Added Option::blank().
  1918. Use !Option::blank(name) instead of Option::defined(name) for
  1919. the options that take filename.
  1920. * src/MultiUrlRequestInfo.cc
  1921. * src/Option.cc
  1922. * src/Option.h
  1923. * src/main.cc
  1924. * src/option_processing.cc
  1925. * test/OptionTest.cc
  1926. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1927. Documented the default value of --check-certificate option in man
  1928. page.
  1929. * doc/aria2c.1.txt
  1930. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1931. Enabled --check-certificate by default. Added compile
  1932. time(configure) option --with-ca-bundle to specify CA bundle.
  1933. Warn if --check-certificate=true and --ca-certificate is not
  1934. specified or loading CA certificate is failed.
  1935. * configure.ac
  1936. * src/MultiUrlRequestInfo.cc
  1937. * src/OptionHandlerFactory.cc
  1938. * src/message.h
  1939. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Mentioned https tag in help option.
  1941. * doc/aria2c.1.txt
  1942. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1943. Added `https' tag to help option category. Added https tag to
  1944. --ca-certificate, --certificate, --check-certificate and
  1945. --private-key option.
  1946. * src/OptionHandlerFactory.cc
  1947. * src/help_tags.h
  1948. * src/option_processing.cc
  1949. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1950. Changed the package name from `aria2c' to `aria2' in order to fix
  1951. the packaging issue in Debian and Fedora. The name of the
  1952. executable is not changed.
  1953. * configure.ac
  1954. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Fixed typos
  1956. * src/usage_text.h
  1957. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. Fixed typos and updated doc.
  1959. * README
  1960. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Fixed typos
  1962. * doc/aria2c.1.txt
  1963. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1964. Fixed typos
  1965. * src/usage_text.h
  1966. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Print a message when no files to download.
  1968. * src/download_helper.cc
  1969. * src/main.cc
  1970. * src/message.h
  1971. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1972. RFC3986 complied Percent-Encoding(urlencode).
  1973. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1974. ones.
  1975. * src/Request.cc
  1976. * src/Util.cc
  1977. * src/Util.h
  1978. * test/BtHandshakeMessageTest.cc
  1979. * test/DefaultBtAnnounceTest.cc
  1980. * test/DefaultBtContextTest.cc
  1981. * test/RequestTest.cc
  1982. * test/UtilTest.cc
  1983. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Fixed the bug that prevents aria2 from downloading 0-length files
  1985. via HTTP/FTP.
  1986. * src/DefaultBtContext.cc
  1987. * src/DefaultBtContext.h
  1988. * src/DownloadContext.h
  1989. * src/FtpNegotiationCommand.cc
  1990. * src/HttpResponseCommand.cc
  1991. * src/HttpResponseCommand.h
  1992. * src/RequestGroup.cc
  1993. * src/SingleFileDownloadContext.cc
  1994. * src/SingleFileDownloadContext.h
  1995. * test/BtPostDownloadHandlerTest.cc
  1996. * test/MetalinkPostDownloadHandlerTest.cc
  1997. * test/MockBtContext.h
  1998. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2000. * src/option_processing.cc
  2001. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Applied aria2-1.0.1-mingw.patch.
  2003. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2004. mingw.
  2005. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2006. * src/SocketCore.cc
  2007. * src/a2netcompat.h
  2008. * test/SocketCoreTest.cc
  2009. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. * Release 1.0.1
  2011. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2012. Updated Ukrainian and Norwegian Nynorsk translations.
  2013. Thanks to all translators.
  2014. * po/nn.po
  2015. * po/uk.po
  2016. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2017. Don't show download result when -S option is used.
  2018. * src/main.cc
  2019. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Bump up version number to 1.0.1
  2021. * configure.ac
  2022. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Closed files after the test cases in MultiDiskWriterTest::
  2024. testResetDiskWriterEntries(). This will fix the unit test error
  2025. in mingw32 build.
  2026. * test/MultiDiskWriterTest.cc
  2027. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2028. Use HEAD method to get file size from HTTP server for segmented
  2029. downloading.
  2030. The request to the BitTorrent Tracker always uses GET method because
  2031. the response of the tracker is small and it doesn't need segmented
  2032. download.
  2033. * src/FtpNegotiationCommand.cc
  2034. * src/HttpRequest.cc
  2035. * src/HttpResponseCommand.cc
  2036. * src/HttpSkipResponseCommand.cc
  2037. * src/RequestGroup.cc
  2038. * src/RequestGroup.h
  2039. * src/TrackerWatcherCommand.cc
  2040. * test/HttpRequestTest.cc
  2041. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2042. Fixed the bug that causes floating exception when -T option is used and
  2043. no URIs are given.
  2044. * src/download_helper.cc
  2045. * test/DownloadHelperTest.cc
  2046. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2047. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2048. errors in MinGW:
  2049. Closed file after saving server stats (RequestGroupMan.cc)
  2050. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2051. Ignored case & handled 2-digit years (strptime.c)
  2052. Added missing suseconds_t definition (a2time.h)
  2053. Fixed socket CLOSE() define (SocketCore.cc)
  2054. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2055. Changed utime() test values from x000 to x00000 as MinGW failed on
  2056. values less than timezone offset from Unix epoch
  2057. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2058. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2059. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2060. handle negative dates (CookieParserTest.cc)
  2061. * src/a2time.h
  2062. * src/FtpConnection.cc
  2063. * src/RequestGroupMan.cc
  2064. * src/SocketCore.cc
  2065. * src/strptime.c
  2066. * test/CookieParserTest.cc
  2067. * test/CopyDiskAdaptorTest.cc
  2068. * test/FileTest.cc
  2069. * test/FtpConnectionTest.cc
  2070. * test/MultiDiskAdaptorTest.cc
  2071. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2073. * doc/aria2c.1.txt
  2074. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2075. * Release 1.0.0
  2076. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2077. Added '~' to reserved characters.
  2078. * src/Util.cc
  2079. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. Do not urlencode Request::url in setUrl() because we want unmodified
  2081. URL using Request::getUrl()
  2082. * src/Request.cc
  2083. * src/Request.h
  2084. * test/RequestTest.cc
  2085. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2086. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2087. Thanks to all translators.
  2088. * po/bg.po
  2089. * po/fr.po
  2090. * po/ja.po
  2091. * po/ru.po
  2092. * po/uk.po
  2093. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2094. Bump up version number to 1.0.0
  2095. * configure.ac
  2096. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Added nosqlite3 build to build_test.sh.
  2098. Renamed noxml as expat.
  2099. * build_test.sh
  2100. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Updated INPUT FILE section.
  2102. * doc/aria2c.1.txt
  2103. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2105. on big endian systems because test .aria2 files are made for little
  2106. endian systems.
  2107. * test/DefaultBtProgressInfoFileTest.cc
  2108. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. Dropped ares support.
  2110. * README
  2111. * configure.ac
  2112. * m4/libares.m4: Removed.
  2113. * src/AsyncNameResolver.cc
  2114. * src/Makefile.am
  2115. * test/Makefile.am
  2116. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2118. Removed const qualifier from DiskWriter::size().
  2119. * src/AbstractDiskWriter.cc
  2120. * src/AbstractDiskWriter.h
  2121. * src/ByteArrayDiskWriter.cc
  2122. * src/ByteArrayDiskWriter.h
  2123. * src/DiskWriter.h
  2124. * test/ByteArrayDiskWriterTest.cc
  2125. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Fixed the bug that causes segmentation fault/bus error during executing
  2127. choking algorithm while seeding. This is caused by improper
  2128. implementation of compare function which returns inconsistent results
  2129. depending on the timing of last unchoke.
  2130. * src/BtSeederStateChoke.cc
  2131. * src/BtSeederStateChoke.h
  2132. * src/DefaultPeerStorage.cc
  2133. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Removed TODO
  2135. * TODO
  2136. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Added a section that explains how to pass argument to options that
  2138. takes optional arguments with its short form.
  2139. * doc/aria2c.1.txt
  2140. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2141. Added -u for the short form of --max-upload-limit option.
  2142. * doc/aria2c.1.txt
  2143. * src/option_processing.cc
  2144. * src/usage_text.h
  2145. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Added -V for the short form of --check-integrity option.
  2147. Now the argument of --check-integrity option is optional:
  2148. if it is omitted, it is evaluated as true.
  2149. * doc/aria2c.1.txt
  2150. * src/option_processing.cc
  2151. * src/usage_text.h
  2152. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. Made the default value of --ftp-pasv option set to true and it can take
  2154. true/false values.
  2155. * src/OptionHandlerFactory.cc
  2156. * src/option_processing.cc
  2157. * src/usage_text.h
  2158. * doc/aria2c.1.txt
  2159. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Given custom random number generator to std::random_shuffle.
  2161. * src/AnnounceList.cc
  2162. * src/BtLeecherStateChoke.cc
  2163. * src/BtSeederStateChoke.cc
  2164. * src/DefaultBtRequestFactory.cc
  2165. * src/MetalinkEntry.cc
  2166. * src/RarestPieceSelector.cc
  2167. * src/SimpleRandomizer.cc
  2168. * src/SimpleRandomizer.h
  2169. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Now the default value of --enable-direct-io is true.
  2171. * src/OptionHandlerFactory.cc
  2172. * doc/aria2c.1.txt
  2173. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Erase peer before executing onReturningPeer and onErasingPeer
  2175. because choking algorithm called from onReturningPeer doesn't
  2176. like erasing peer in the active peer list.
  2177. * src/DefaultPeerStorage.cc
  2178. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Instead of creating special filename in createDownloadResult() if
  2180. inMemoryDownload() is true, now it is done in getFilePath().
  2181. * src/RequestGroup.cc
  2182. * test/RequestGroupTest.cc
  2183. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2185. processed in memory. This is the fix for previous comment out.
  2186. * src/MemoryBufferPreDownloadHandler.cc
  2187. * src/RequestGroup.cc
  2188. * src/RequestGroup.h
  2189. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2190. Commented out the code which sets virtual directory path "[MEMORY]"
  2191. propagate directory to store to following RequestGroup.
  2192. * src/MemoryBufferPreDownloadHandler.cc
  2193. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Bump up version number to 1.0.0b
  2195. * configure.ac
  2196. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Added input_uris.txt to EXTRA_DIST
  2198. * test/Makefile.am
  2199. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Removed PeerObject.h from Makefile.am
  2201. * src/Makefile.am
  2202. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Avoid slow seeding
  2204. * src/PeerInteractionCommand.cc
  2205. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2206. Updated usage for -i option.
  2207. * src/usage_text.h (TEXT_INPUT_FILE)
  2208. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. Added INPUT FILE section to man page.
  2210. Escaped fake URLs.
  2211. * doc/aria2c.1.txt
  2212. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2213. Fixed wrong note position for -o option.
  2214. * doc/aria2c.1.txt
  2215. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2216. Fixed compile error without SSL/XML library.
  2217. * src/DefaultBtProgressInfoFile.cc
  2218. * src/DefaultBtProgressInfoFile.h
  2219. * src/FileMetalinkParserState.cc
  2220. * src/RequestGroup.h
  2221. * src/SocketCore.cc
  2222. * src/SocketCore.h
  2223. * src/VerificationMetalinkParserState.cc
  2224. * src/download_helper.h
  2225. * src/main.cc
  2226. * test/DefaultBtProgressInfoFileTest.cc
  2227. * test/DownloadHelperTest.cc
  2228. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Rewritten URI handling functions. They are now provided as a testable
  2230. functions.
  2231. * src/Makefile.am
  2232. * src/RequestGroup.cc
  2233. * src/RequestGroup.h
  2234. * src/download_helper.cc
  2235. * src/download_helper.h
  2236. * src/main.cc
  2237. * test/DownloadHelperTest.cc
  2238. * test/Makefile.am
  2239. * test/input_uris.txt
  2240. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Quickly terminate commands when ctrl-c is pressed.
  2242. * src/DownloadEngine.cc
  2243. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Quickly terminate idle commands when download finished.
  2245. * src/AbstractCommand.cc
  2246. * src/DownloadCommand.cc
  2247. * src/DownloadEngine.cc
  2248. * src/DownloadEngine.h
  2249. * src/SleepCommand.cc
  2250. * src/SleepCommand.h
  2251. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Added the ability to specify output filename and directory in input
  2253. file.
  2254. Additional parameters are added in the following line of URIs
  2255. with proceeding white space(s), 1 parameter in 1 line.
  2256. The parameter names are the same with the command-line option name
  2257. without proceeding "--". Not all the options are available here:
  2258. at the moment, 'dir' and 'out' options are avialable.
  2259. Please note that out option has no effect against Metalink or BitTorrent
  2260. downloads.
  2261. Example input file:
  2262. http://host/foo-1.1.tar.bz2
  2263. out=foo.tar.bz2
  2264. dir=/tmp/downloads
  2265. http://host/thundermonkey-2.0.tar.bz2
  2266. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2267. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2268. thundermonkey-2.0.tar.bz2 is saved as
  2269. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2270. * src/BtPostDownloadHandler.cc
  2271. * src/Metalink2RequestGroup.cc
  2272. * src/Metalink2RequestGroup.h
  2273. * src/MetalinkPostDownloadHandler.cc
  2274. * src/UriListParser.cc
  2275. * src/UriListParser.h
  2276. * src/main.cc
  2277. * test/Metalink2RequestGroupTest.cc
  2278. * test/UriListParserTest.cc
  2279. * test/filelist1.txt
  2280. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2281. Fixed error when SSL library is not found.
  2282. * configure.ac
  2283. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Cross referenced among -s, -C and -j options.
  2285. Updated usage of -C and -s options.
  2286. * src/usage_text.h
  2287. * doc/aria2c.1.txt
  2288. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Fixed bad cast in 32bit platforms.
  2290. * test/DefaultPieceStorageTest.cc
  2291. (DefaultPieceStorageTest::testGetCompletedLength)
  2292. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Fixed unit test fails on 32bit platforms.
  2294. * test/CookieParserTest.cc
  2295. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Show an average download speed in Download results.
  2297. * src/BtFileAllocationEntry.cc
  2298. * src/DefaultPieceStorage.cc
  2299. * src/DownloadContext.cc
  2300. * src/DownloadContext.h
  2301. * src/DownloadResult.h
  2302. * src/RequestGroup.cc
  2303. * src/RequestGroupMan.cc
  2304. * src/StreamFileAllocationEntry.cc
  2305. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2306. Fixed the bug that metalink file is not processed if Content-Type
  2307. field has a paramter.
  2308. * src/HttpResponse.cc
  2309. * src/HttpResponse.h
  2310. * test/HttpResponseTest.cc
  2311. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2312. Removed unused code.
  2313. * src/DefaultBtAnnounce.cc
  2314. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2315. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2316. the value larger than DefaultPieceStorage::getTotalLength() when
  2317. in flight pieces are involved.
  2318. * src/DefaultPieceStorage.cc
  2319. * test/DefaultPieceStorageTest.cc
  2320. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2321. Bump up version number to 1.0.0a.
  2322. * configure.ac
  2323. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2324. Updated configure.ac
  2325. * configure.ac
  2326. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2327. Added usege for proxy.
  2328. * doc/aria2c.1.txt
  2329. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. Added usage for --ca-certificate, --certificate, --private-key and
  2331. --check-certificate options.
  2332. * doc/aria2c.1.txt
  2333. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Updated man page
  2335. * doc/aria2c.1.txt
  2336. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Added --no-proxy option. It receives comman separated hostname or
  2338. domains to which proxy should not be used.
  2339. aria2 honors the environment variable no_proxy to override no-proxy
  2340. value in configuration file. The user can override the environment
  2341. variable no_proxy with --no-proxy command-line option.
  2342. * src/AbstractCommand.cc
  2343. * src/OptionHandlerFactory.cc
  2344. * src/option_processing.cc
  2345. * src/prefs.cc
  2346. * src/prefs.h
  2347. * src/usage_text.h
  2348. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2349. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2350. The CA certificates are specified in --ca-certificate option.
  2351. By default, the verification is disabled. Use --check-certificate
  2352. option to enable it.
  2353. * src/HttpRequestCommand.cc
  2354. * src/LibgnutlsTLSContext.cc
  2355. * src/LibgnutlsTLSContext.h
  2356. * src/LibsslTLSContext.cc
  2357. * src/LibsslTLSContext.h
  2358. * src/MultiUrlRequestInfo.cc
  2359. * src/OptionHandlerFactory.cc
  2360. * src/SocketCore.cc
  2361. * src/SocketCore.h
  2362. * src/a2functional.h
  2363. * src/message.h
  2364. * src/option_processing.cc
  2365. * src/prefs.cc
  2366. * src/prefs.h
  2367. * src/usage_text.h
  2368. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Added client certificate authentication for SSL/TLS.
  2370. Currently a private key must be decrypted for use with aria2.
  2371. If a user accidentally gives encrypted file to aria2 then following
  2372. thing happens:
  2373. If encrypted private key is given to aria2, it behaves differently
  2374. depending on the ssl library it uses. If aria2 built with openssl then
  2375. openssl prompts the user for password. If aria2 build with gnutls then
  2376. aria2 exists with error at start up.
  2377. * src/DownloadEngineFactory.cc
  2378. * src/MultiUrlRequestInfo.cc
  2379. * src/OptionHandlerFactory.cc
  2380. * src/option_processing.cc
  2381. * src/prefs.cc
  2382. * src/prefs.h
  2383. * src/usage_text.h
  2384. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. Introduced TLSContext that holds TLS related data that can be shared
  2386. with multiple SSL connections.
  2387. * src/DownloadEngineFactory.cc
  2388. * src/LibgnutlsTLSContext.cc
  2389. * src/LibgnutlsTLSContext.h
  2390. * src/LibsslTLSContext.cc
  2391. * src/LibsslTLSContext.h
  2392. * src/Makefile.am
  2393. * src/SocketCore.cc
  2394. * src/SocketCore.h
  2395. * src/TLSContext.h
  2396. * src/message.h
  2397. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2398. Fixed the bug that the DiskWriter of the first FileEntry whose
  2399. `needsFileAllocation' property is false is not created
  2400. even if it shares a piece with next FileEntry which `requested' property
  2401. is true.
  2402. Fixed the bug that zero-length file is not created if pre file
  2403. allocation is not done.
  2404. * src/MultiDiskAdaptor.cc
  2405. * src/MultiDiskAdaptor.h
  2406. * test/MultiDiskAdaptorTest.cc
  2407. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2408. Added the ability to pool proxy connection.
  2409. The conneciton in FTP with proxy-method=GET is not pooled.
  2410. Proxy-Connection header will not be sent when sending CONNECT method.
  2411. * src/DownloadEngine.cc
  2412. * src/DownloadEngine.h
  2413. * src/FtpFinishDownloadCommand.cc
  2414. * src/FtpInitiateConnectionCommand.cc
  2415. * src/FtpNegotiationCommand.cc
  2416. * src/HttpDownloadCommand.cc
  2417. * src/HttpInitiateConnectionCommand.cc
  2418. * src/HttpRequest.cc
  2419. * src/HttpRequest.h
  2420. * src/HttpResponse.cc
  2421. * src/HttpSkipResponseCommand.cc
  2422. * test/HttpRequestTest.cc
  2423. * test/HttpResponseTest.cc
  2424. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2425. Handle date before epoch.
  2426. To create *bad* Time object, call Time::null().
  2427. * src/CookieParser.cc
  2428. * src/FtpConnection.cc
  2429. * src/FtpConnection.h
  2430. * src/FtpNegotiationCommand.cc
  2431. * src/RequestGroup.cc
  2432. * src/TimeA2.cc
  2433. * src/TimeA2.h
  2434. * test/CookieParserTest.cc
  2435. * test/FtpConnectionTest.cc
  2436. * test/TimeTest.cc
  2437. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2438. Added support for following envrionment variables: http_proxy,
  2439. https_proxy, ftp_proxy and all_proxy.
  2440. Each variable is equivalent to the aria2 option whose name is the
  2441. variable name with '_' replaced with '-'.
  2442. They overrides options specified in aria2.conf file.
  2443. The envrionment variables can be overrode using command-line option.
  2444. * src/option_processing.cc
  2445. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2446. Renamed --http-proxy-method as --proxy-method.
  2447. * src/AbstractCommand.cc
  2448. * src/FtpInitiateConnectionCommand.cc
  2449. * src/HttpInitiateConnectionCommand.cc
  2450. * src/OptionHandlerFactory.cc
  2451. * src/option_processing.cc
  2452. * src/prefs.cc
  2453. * src/prefs.h
  2454. * src/usage_text.h
  2455. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2456. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2457. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2458. Above 3 options and --http-proxy option can handle proxy in URL format
  2459. like: http://user:passwd@host:port.
  2460. If a proxy requires user/password, they must be specified in a URL.
  2461. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2462. instead.
  2463. * src/AbstractCommand.cc
  2464. * src/AbstractCommand.h
  2465. * src/AbstractProxyRequestCommand.cc
  2466. * src/AbstractProxyRequestCommand.h
  2467. * src/AuthConfigFactory.cc
  2468. * src/AuthConfigFactory.h
  2469. * src/FtpFinishDownloadCommand.cc
  2470. * src/FtpInitiateConnectionCommand.cc
  2471. * src/FtpInitiateConnectionCommand.h
  2472. * src/FtpNegotiationCommand.cc
  2473. * src/FtpTunnelRequestCommand.cc
  2474. * src/FtpTunnelRequestCommand.h
  2475. * src/HttpDownloadCommand.cc
  2476. * src/HttpInitiateConnectionCommand.cc
  2477. * src/HttpInitiateConnectionCommand.h
  2478. * src/HttpProxyRequestCommand.cc
  2479. * src/HttpProxyRequestCommand.h
  2480. * src/HttpRequest.cc
  2481. * src/HttpRequest.h
  2482. * src/HttpRequestCommand.cc
  2483. * src/HttpRequestCommand.h
  2484. * src/HttpSkipResponseCommand.cc
  2485. * src/InitiateConnectionCommand.cc
  2486. * src/InitiateConnectionCommand.h
  2487. * src/OptionHandlerFactory.cc
  2488. * src/OptionHandlerImpl.h
  2489. * src/Request.cc
  2490. * src/option_processing.cc
  2491. * src/prefs.cc
  2492. * src/prefs.h
  2493. * src/usage_text.h
  2494. * test/AuthConfigFactoryTest.cc
  2495. * test/HttpRequestTest.cc
  2496. * test/OptionHandlerTest.cc
  2497. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2498. Execute choking algorithm when unchoked and interested peer is
  2499. disconected.
  2500. * src/DefaultPeerStorage.cc
  2501. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2502. Added testcase for BtNotInterestedMessage from unchoked peer.
  2503. * test/BtNotInterestedMessageTest.cc
  2504. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2505. Execute choking algorithm when BtInterestedMessage arrives from
  2506. unchoked peer.
  2507. * src/BtInterestedMessage.cc
  2508. * src/BtInterestedMessage.h
  2509. * src/DefaultBtMessageFactory.cc
  2510. * test/BtInterestedMessageTest.cc
  2511. * test/MockPeerStorage.h
  2512. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2513. AuthConfigFactory is now part of DownloadEngine.
  2514. * src/AbstractProxyRequestCommand.cc
  2515. * src/AuthConfigFactory.h
  2516. * src/DownloadEngine.cc
  2517. * src/DownloadEngine.h
  2518. * src/FtpConnection.cc
  2519. * src/FtpConnection.h
  2520. * src/FtpNegotiationCommand.cc
  2521. * src/HttpConnection.cc
  2522. * src/HttpRequest.cc
  2523. * src/HttpRequest.h
  2524. * src/HttpRequestCommand.cc
  2525. * src/HttpResponse.cc
  2526. * src/HttpResponseCommand.cc
  2527. * src/HttpSkipResponseCommand.cc
  2528. * src/MultiUrlRequestInfo.cc
  2529. * src/main.cc
  2530. * test/FtpConnectionTest.cc
  2531. * test/HttpRequestTest.cc
  2532. * test/HttpResponseTest.cc
  2533. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2534. Corrected catched exception type.
  2535. * src/ServerStatMan.cc
  2536. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2537. DNSCache is now part of DownloadEngine.
  2538. * src/DNSCache.h
  2539. * src/DownloadEngine.cc
  2540. * src/DownloadEngine.h
  2541. * src/InitiateConnectionCommand.cc
  2542. * src/MultiUrlRequestInfo.cc
  2543. * test/Makefile.am
  2544. * test/Makefile.in
  2545. * test/SimpleDNSCacheTest.cc
  2546. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2547. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2548. DownloadEngine.
  2549. * src/ActivePeerConnectionCommand.cc
  2550. * src/BtSetup.cc
  2551. * src/CUIDCounter.h
  2552. * src/DHTSetup.cc
  2553. * src/DownloadCommand.cc
  2554. * src/DownloadEngine.cc
  2555. * src/DownloadEngine.h
  2556. * src/DownloadEngineFactory.cc
  2557. * src/FileAllocationDispatcherCommand.cc
  2558. * src/InitiatorMSEHandshakeCommand.cc
  2559. * src/PeerInitiateConnectionCommand.cc
  2560. * src/PeerInteractionCommand.cc
  2561. * src/PeerListenCommand.cc
  2562. * src/RequestGroup.cc
  2563. * src/StreamFileAllocationEntry.cc
  2564. * src/TrackerWatcherCommand.cc
  2565. * src/main.cc
  2566. * test/RequestGroupManTest.cc
  2567. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2568. Implemented commented code in BtSeederStateChoke
  2569. * src/BtSeederStateChoke.cc
  2570. * src/Peer.cc
  2571. * src/Peer.h
  2572. * src/PeerInteractionCommand.cc
  2573. * src/PeerSessionResource.cc
  2574. * src/PeerSessionResource.h
  2575. * test/MockBtMessageDispatcher.h
  2576. * test/PeerSessionResourceTest.cc
  2577. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2578. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2579. its object.
  2580. * src/AbstractBtMessage.cc
  2581. * src/ActivePeerConnectionCommand.cc
  2582. * src/ActivePeerConnectionCommand.h
  2583. * src/BtContextAwareCommand.cc
  2584. * src/BtContextAwareCommand.h
  2585. * src/BtExtendedMessage.cc
  2586. * src/BtExtendedMessage.h
  2587. * src/BtInterestedMessage.cc
  2588. * src/BtInterestedMessage.h
  2589. * src/BtNotInterestedMessage.cc
  2590. * src/BtNotInterestedMessage.h
  2591. * src/BtRegistry.cc
  2592. * src/BtRegistry.h
  2593. * src/BtSeederStateChoke.cc
  2594. * src/BtSetup.cc
  2595. * src/DHTGetPeersCommand.cc
  2596. * src/DHTGetPeersCommand.h
  2597. * src/DHTPeerAnnounceEntry.cc
  2598. * src/DHTPeerAnnounceEntry.h
  2599. * src/DHTPeerAnnounceStorage.cc
  2600. * src/DHTPeerAnnounceStorage.h
  2601. * src/DHTPeerLookupTask.cc
  2602. * src/DHTPeerLookupTask.h
  2603. * src/DHTSetup.cc
  2604. * src/DHTSetup.h
  2605. * src/DHTTaskFactory.h
  2606. * src/DHTTaskFactoryImpl.cc
  2607. * src/DHTTaskFactoryImpl.h
  2608. * src/DefaultBtAnnounce.cc
  2609. * src/DefaultBtInteractive.cc
  2610. * src/DefaultBtInteractive.h
  2611. * src/DefaultBtMessageDispatcher.cc
  2612. * src/DefaultBtMessageDispatcher.h
  2613. * src/DefaultBtMessageFactory.cc
  2614. * src/DefaultBtMessageFactory.h
  2615. * src/DefaultBtMessageReceiver.cc
  2616. * src/DefaultBtProgressInfoFile.cc
  2617. * src/DefaultBtProgressInfoFile.h
  2618. * src/DefaultBtRequestFactory.cc
  2619. * src/DefaultBtRequestFactory.h
  2620. * src/DefaultExtensionMessageFactory.cc
  2621. * src/DefaultExtensionMessageFactory.h
  2622. * src/DefaultPeerStorage.cc
  2623. * src/DefaultPeerStorage.h
  2624. * src/DownloadEngine.cc
  2625. * src/DownloadEngine.h
  2626. * src/InitiatorMSEHandshakeCommand.cc
  2627. * src/InitiatorMSEHandshakeCommand.h
  2628. * src/MSEHandshake.cc
  2629. * src/MSEHandshake.h
  2630. * src/Makefile.am
  2631. * src/Makefile.in
  2632. * src/PeerChokeCommand.cc
  2633. * src/PeerChokeCommand.h
  2634. * src/PeerInitiateConnectionCommand.cc
  2635. * src/PeerInitiateConnectionCommand.h
  2636. * src/PeerInteractionCommand.cc
  2637. * src/PeerInteractionCommand.h
  2638. * src/PeerObject.h
  2639. * src/PeerReceiveHandshakeCommand.cc
  2640. * src/PeerReceiveHandshakeCommand.h
  2641. * src/ReceiverMSEHandshakeCommand.cc
  2642. * src/RequestGroup.cc
  2643. * src/RequestGroup.h
  2644. * src/RequestGroupMan.cc
  2645. * src/RequestGroupMan.h
  2646. * src/SeedCheckCommand.cc
  2647. * src/SeedCheckCommand.h
  2648. * src/ShareRatioSeedCriteria.h
  2649. * src/SimpleBtMessage.cc
  2650. * src/TrackerWatcherCommand.cc
  2651. * src/TrackerWatcherCommand.h
  2652. * src/UTPexExtensionMessage.cc
  2653. * src/UTPexExtensionMessage.h
  2654. * test/BtCancelMessageTest.cc
  2655. * test/BtChokeMessageTest.cc
  2656. * test/BtExtendedMessageTest.cc
  2657. * test/BtInterestedMessageTest.cc
  2658. * test/BtNotInterestedMessageTest.cc
  2659. * test/BtPieceMessageTest.cc
  2660. * test/BtPortMessageTest.cc
  2661. * test/BtRegistryTest.cc
  2662. * test/BtRejectMessageTest.cc
  2663. * test/BtRequestMessageTest.cc
  2664. * test/DHTPeerAnnounceEntryTest.cc
  2665. * test/DHTPeerAnnounceStorageTest.cc
  2666. * test/DefaultBtMessageDispatcherTest.cc
  2667. * test/DefaultBtMessageFactoryTest.cc
  2668. * test/DefaultBtProgressInfoFileTest.cc
  2669. * test/DefaultBtRequestFactoryTest.cc
  2670. * test/DefaultExtensionMessageFactoryTest.cc
  2671. * test/MSEHandshakeTest.cc
  2672. * test/MockDHTTaskFactory.h
  2673. * test/ShareRatioSeedCriteriaTest.cc
  2674. * test/UTPexExtensionMessageTest.cc
  2675. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2676. Fixed compiler warning.
  2677. * test/UtilTest.cc
  2678. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2679. Treat Cookie object as session cookie if expiry = 0 is given.
  2680. With this change, you can specify session scoped cookies in an external
  2681. file setting expiry value to 0.
  2682. * src/Cookie.cc
  2683. * src/Cookie.h
  2684. * test/CookieParserTest.cc
  2685. * test/CookieStorageTest.cc
  2686. * test/CookieTest.cc
  2687. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2688. Changed signature of DHTMessageFactory::createResponseMessage().
  2689. Removed unused validateIDMatch.
  2690. * src/DHTMessageFactory.h
  2691. * src/DHTMessageFactoryImpl.cc
  2692. * src/DHTMessageFactoryImpl.h
  2693. * src/DHTMessageTracker.cc
  2694. * test/DHTMessageFactoryImplTest.cc
  2695. * test/MockDHTMessageFactory.h
  2696. Dropped DHT message coming from same ID of localhost.
  2697. * src/DHTMessageReceiver.cc
  2698. Rejected adding node whose ID is the same as localhost's.
  2699. * src/DHTRoutingTable.cc
  2700. * test/BtPortMessageTest.cc
  2701. * test/DHTRoutingTableTest.cc
  2702. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2703. Pool connection when redirection occurs with Content-Length = 0.
  2704. * src/HttpSkipResponseCommand.cc
  2705. * src/HttpSkipResponseCommand.h
  2706. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2707. Fixed the bug that causes time out when redirection occurs with
  2708. content-length 0.
  2709. * src/HttpResponseCommand.cc
  2710. * src/HttpSkipResponseCommand.cc
  2711. * src/HttpSkipResponseCommand.h
  2712. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2713. Now each status legends is shown only when it appears in Download
  2714. Result. If Download Result has no item, then status legend will not
  2715. be printed.
  2716. * src/RequestGroupMan.cc
  2717. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2718. Removed duplicate creation of OptionHandlers.
  2719. * src/option_processing.cc
  2720. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2721. Fixed the bug that causes segmentation fault when accessing files which
  2722. don't exist or are not included in --select-file option while
  2723. validating chunk checksum.
  2724. * src/MultiDiskAdaptor.cc
  2725. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2726. Fixed compiler warning.
  2727. * test/UtilTest.cc
  2728. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2729. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2730. * src/IteratableChecksumValidator.cc
  2731. * src/IteratableChunkChecksumValidator.cc
  2732. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2733. * Release 0.16.2
  2734. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2735. Added Serbian translation. Updated Ukrainian translation.
  2736. Thanks to all translators.
  2737. * po/sr.po
  2738. * po/uk.po
  2739. * po/LINGUAS
  2740. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2741. Bump up version number to 0.16.2
  2742. * configure.ac
  2743. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2744. Added length equality test to operator== to drop a piece message
  2745. whose length does not match to the requested one.
  2746. * src/RequestSlot.cc
  2747. * test/DefaultBtMessageDispatcherTest.cc
  2748. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2749. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2750. recieved.
  2751. In this fix, if a request larger than 16KiB length is received, aria2
  2752. disconnects the peer.
  2753. * src/BtConstants.h
  2754. * src/PeerMessageUtil.cc
  2755. * src/PeerMessageUtil.h
  2756. * test/BtRequestMessageTest.cc
  2757. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2758. * Release 0.16.1
  2759. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2760. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2761. * doc/aria2c.1.txt
  2762. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2763. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2764. Updated French, Simplified Chinese and Japanese translations.
  2765. Thanks to all translators.
  2766. en@quot and en@boldquot are also added.
  2767. * po/LINGUAS
  2768. * po/fr.po
  2769. * po/ja.po
  2770. * po/uk.po
  2771. * po/vi.po
  2772. * po/zh_CN.po
  2773. * po/zh_TW.po
  2774. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2775. Bump up version number to 0.16.1.
  2776. * configure.ac
  2777. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2778. Updated README.
  2779. * README
  2780. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2781. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2782. not to replace '--' with em dash character.
  2783. * doc/aria2c.1.txt
  2784. * doc/makeman
  2785. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2786. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2787. every SEC seconds.
  2788. * src/DownloadEngineFactory.cc
  2789. * src/OptionHandlerFactory.cc
  2790. * src/option_processing.cc
  2791. * src/usage_text.h
  2792. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2793. Fixed compile warning on linux-amd64
  2794. * src/FtpConnection.cc
  2795. * src/IteratableChunkChecksumValidator.cc
  2796. * src/MultiDiskAdaptor.cc
  2797. Fixed the bug that unit test fails on linux-amd64
  2798. * test/UtilTest.cc
  2799. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2800. Added --dht-file-path option to change the path to dht.dat, which is a
  2801. serialized DHT routing table.
  2802. * src/OptionHandlerFactory.cc
  2803. * src/option_processing.cc
  2804. * src/usage_text.h
  2805. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2806. Fixed possible underflow.
  2807. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2808. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2809. Fixed the bug that last character in URI is not encoded.
  2810. * src/Request.cc
  2811. * test/RequestTest.cc
  2812. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2813. Fixed the bug that referer header field contains fragment.
  2814. Now Request class removes fragment part of URI and encodes it
  2815. in Request::setUri() and setReferer().
  2816. * src/Request.h
  2817. * src/Request.cc
  2818. * test/RequestTest.cc
  2819. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2820. Added missing m4 macros.
  2821. * m4/cppunit.m4
  2822. * m4/libgcrypt.m4
  2823. * m4/libgnutls-extra.m4
  2824. * m4/libgnutls.m4
  2825. * m4/libxml2.m4
  2826. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2827. Fixed compile error with gcc-4.4(snapshot)
  2828. * src/File.cc
  2829. * src/FtpConnection.cc
  2830. * src/OptionHandlerImpl.h
  2831. * src/Util.cc
  2832. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2833. Removed assert()
  2834. * src/SocketBuffer.cc (SocketBuffer::send)
  2835. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2836. Changed the type of _numNewConnection to unsigned int.
  2837. * src/ActivePeerConnectionCommand.cc
  2838. * src/ActivePeerConnectionCommand.h
  2839. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2840. * Release 0.16.0
  2841. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2842. Updated doc
  2843. * README
  2844. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2845. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  2846. translations. Thanks to all translators.
  2847. * po/bg.po
  2848. * po/de.po
  2849. * po/fr.po
  2850. * po/ja.po
  2851. * po/zh_CN.po
  2852. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2853. Bump up version number to 0.16.0.
  2854. * configure.ac
  2855. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2856. Casted entry->maxConnections to int32_t for std::min<T> with T =
  2857. int32_t.
  2858. Changed the type of count to int32_t.
  2859. * src/Metalink2RequestGroup.cc
  2860. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2861. Added test for Time::elapsed(time_t).
  2862. * test/TimeTest.cc
  2863. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2864. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  2865. Util::difftv() should be used instead.
  2866. * src/TimeA2.cc
  2867. * src/TimeA2.h
  2868. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2869. Made socket for dht connections non-blocking
  2870. * src/DHTAbstractMessage.cc
  2871. * src/DHTAbstractMessage.h
  2872. * src/DHTConnection.h
  2873. * src/DHTConnectionImpl.cc
  2874. * src/DHTConnectionImpl.h
  2875. * src/DHTMessage.h
  2876. * src/DHTMessageDispatcherImpl.cc
  2877. * src/DHTMessageDispatcherImpl.h
  2878. * src/DHTUnknownMessage.cc
  2879. * src/DHTUnknownMessage.h
  2880. * src/SocketCore.cc
  2881. * src/SocketCore.h
  2882. * test/MockDHTMessage.h
  2883. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2884. Changed the type of offset to int.
  2885. * src/ParameterizedStringParser.cc
  2886. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2887. Made getAsInt() return int32_t
  2888. * src/Option.h
  2889. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2890. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  2891. build.
  2892. * configure.ac
  2893. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2894. Use sqlite3_open if sqlite3_open_v2 is not available.
  2895. * src/Sqlite3MozCookieParser.cc
  2896. * src/Sqlite3MozCookieParser.h
  2897. * m4/sqlite3.m4
  2898. * test/Sqlite3MozCookieParserTest.cc
  2899. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2900. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  2901. * src/BtPieceMessage.cc
  2902. * src/DHTPeerAnnounceStorage.cc
  2903. * src/DefaultPieceStorage.cc
  2904. * src/DownloadCommand.cc
  2905. * src/DownloadEngine.cc
  2906. * src/FtpConnection.cc
  2907. * src/PeerConnection.cc
  2908. * src/PeerMessageUtil.cc
  2909. * src/RequestGroup.cc
  2910. * src/RequestGroupMan.cc
  2911. * src/SimpleBtMessage.cc
  2912. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2913. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2914. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2915. * src/AbstractDiskWriter.cc
  2916. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2917. Don't set Request::supportsPersistentConnection() in HttpConnection
  2918. since this code is also used in AbstractProxyResponseCommand.
  2919. Moved those code to HttpResponse.
  2920. * src/HttpResponse.cc
  2921. * src/HttpResponse.h
  2922. * src/HttpConnection.cc
  2923. * src/HttpConnection.h
  2924. * src/HttpResponseCommand.cc
  2925. * test/HttpResponseTest.cc
  2926. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2927. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2928. The configuration is minimum: no torrent, no metalink, so there may be
  2929. other compile error on their code.
  2930. * src/a2netcompat.h
  2931. * src/File.cc
  2932. * src/File.h
  2933. * src/SocketCore.cc
  2934. * src/SocketCore.h
  2935. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2936. Made a socket of incoming peer non-blocking.
  2937. * src/PeerListenCommand.cc
  2938. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2939. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2940. whole message data is not sent in one send() call.
  2941. * src/BtPieceMessage.cc
  2942. * src/BtPieceMessage.h
  2943. * src/PeerConnection.cc
  2944. * src/PeerConnection.h
  2945. * src/SimpleBtMessage.cc
  2946. * src/SimpleBtMessage.h
  2947. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2948. Fixed the bug that aria2 downloads faster than max-download-limit when
  2949. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2950. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2951. , instead of sum of them.
  2952. * src/ActivePeerConnectionCommand.cc
  2953. * src/DefaultBtInteractive.cc
  2954. * src/DownloadCommand.cc
  2955. * src/PeerInteractionCommand.cc
  2956. * src/PeerReceiveHandshakeCommand.cc
  2957. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2958. Fixed the bug that HTTPS download fails.
  2959. * src/AbstractCommand.cc
  2960. * src/AbstractCommand.h
  2961. * src/DownloadCommand.cc
  2962. * src/FtpConnection.cc
  2963. * src/HttpConnection.cc
  2964. * src/HttpRequestCommand.cc
  2965. * src/HttpResponseCommand.cc
  2966. * src/HttpSkipResponseCommand.cc
  2967. * src/MSEHandshake.cc
  2968. * src/PeerConnection.cc
  2969. * src/SocketCore.cc
  2970. * src/SocketCore.h
  2971. Fixed the bug that aria2 doesn't download whole content body and cannot
  2972. reuse connection if chunked transfer encoding and gzip content encoding
  2973. are set.
  2974. * src/DownloadCommand.cc
  2975. * src/HttpSkipResponseCommand.cc
  2976. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2977. Updated man page.
  2978. * doc/aria2c.1.txt
  2979. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2980. When error occurred while aria2 was parsing an .aria2.conf file, print
  2981. the usage of the option that caused error.
  2982. * src/option_processing.cc
  2983. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2984. Fixed compile error on OptionHandlerException
  2985. * src/Makefile.am
  2986. * src/OptionHandlerException.cc
  2987. * src/OptionHandlerException.h
  2988. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2989. Moved message of the error to OptionHandlerException.h
  2990. * src/NameMatchOptionHandler.h
  2991. * src/OptionHandlerException.h
  2992. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2993. When error occurs while aria2 is parsing an command-line option, print
  2994. the usage of the option.
  2995. * src/Makefile.am
  2996. * src/NameMatchOptionHandler.h
  2997. * src/OptionHandlerException.h
  2998. * src/option_processing.cc
  2999. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3000. Reverted previous change.
  3001. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3002. username is not in URI.
  3003. * src/HttpRequest.cc
  3004. * src/Request.cc
  3005. * test/HttpRequestTest.cc
  3006. * test/RequestTest.cc
  3007. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3008. Now colon is required for username and password in FTP URL, like:
  3009. ftp://username:password@host.
  3010. If colon is not there, aria2 don't parse it as a username. For example,
  3011. aria2 don't retrieve username from ftp://username@host.
  3012. This fix was made in order to login FTP server via non-transparent ftp
  3013. proxy.
  3014. * src/Request.cc
  3015. * test/RequestTest.cc
  3016. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3017. Use netrc for HTTP.
  3018. Now FTP user/password is sent in Authorization header when
  3019. --ftp-via-http-proxy=get is given.
  3020. * src/AuthConfigFactory.cc
  3021. * src/HttpRequest.cc
  3022. * src/HttpRequest.h
  3023. * src/NetrcAuthResolver.cc
  3024. * src/NetrcAuthResolver.h
  3025. * src/OptionHandlerFactory.cc
  3026. * src/option_processing.cc
  3027. * src/prefs.cc
  3028. * src/prefs.h
  3029. * test/AuthConfigFactoryTest.cc
  3030. * test/HttpRequestTest.cc
  3031. * test/NetrcAuthResolverTest.cc
  3032. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3033. Issue PWD command first and get working directory and use it as a prefix
  3034. for CWD command.
  3035. * src/DownloadEngine.cc
  3036. * src/DownloadEngine.h
  3037. * src/FtpConnection.cc
  3038. * src/FtpConnection.h
  3039. * src/FtpFinishDownloadCommand.cc
  3040. * src/FtpInitiateConnectionCommand.cc
  3041. * src/FtpNegotiationCommand.cc
  3042. * src/FtpNegotiationCommand.h
  3043. * test/FtpConnectionTest.cc
  3044. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3045. Removed default user/pass for FTP user/pass, since it should not have
  3046. precedence over netrc configuration by default.
  3047. * src/OptionHandlerFactory.cc
  3048. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3049. Added debug log for socket event.
  3050. * src/AbstractCommand.cc
  3051. * src/PeerAbstractCommand.cc
  3052. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3053. Log microseconds.
  3054. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3055. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3056. Replaced HelpItem.cc with OptionHandler.cc.
  3057. * po/POTFILES.in
  3058. Updated po files with 'make update-po'
  3059. * po/aria2c.pot
  3060. * po/*.po
  3061. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3062. Removed possible values from the text.
  3063. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3064. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3065. Removed unused preferences:
  3066. PREF_NO_PREALLOCATION
  3067. PREF_STDOUT_LOG
  3068. PREF_TRACKER_MAX_TRIES
  3069. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3070. PREF_MIN_SEGMENT_SIZE
  3071. * src/option_processing.cc
  3072. * src/prefs.cc
  3073. * src/prefs.h
  3074. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3075. Integrated HelpItem into OptionParser to ease the workload for adding
  3076. new options. Removed default value from usage text.
  3077. * src/HelpItem.cc: Removed.
  3078. * src/HelpItem.h: Removed.
  3079. * src/HelpItemFactory.cc: Removed.
  3080. * src/HelpItemFactory.h: Removed.
  3081. * src/Makefile.am
  3082. * src/Makefile.in
  3083. * src/NameMatchOptionHandler.h
  3084. * src/OptionHandler.cc
  3085. * src/OptionHandler.h
  3086. * src/OptionHandlerFactory.cc
  3087. * src/OptionHandlerImpl.h
  3088. * src/OptionParser.cc
  3089. * src/OptionParser.h
  3090. * src/TagContainer.cc: Removed.
  3091. * src/TagContainer.h: Removed.
  3092. * src/TaggedItem.cc: Removed.
  3093. * src/TaggedItem.h: Removed.
  3094. * src/main.cc
  3095. * src/option_processing.cc
  3096. * src/usage_text.h
  3097. * src/version_usage.cc
  3098. * test/HelpItemTest.cc: Removed.
  3099. * test/Makefile.am
  3100. * test/Makefile.in
  3101. * test/OptionHandlerTest.cc
  3102. * test/OptionParserTest.cc
  3103. * test/TagContainerTest.cc: Removed.
  3104. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3105. Moved `TransferStat stat = ...' to inside the `if' clause.
  3106. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3107. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3108. Fixed the bug that a block in a piece is requested when same block is
  3109. already requested to the same peer in end game mode.
  3110. * src/BtRequestFactory.h
  3111. * src/DefaultBtInteractive.cc
  3112. * src/DefaultBtRequestFactory.cc
  3113. * src/DefaultBtRequestFactory.h
  3114. * src/DefaultPieceStorage.cc
  3115. * src/DefaultPieceStorage.h
  3116. * src/PieceStorage.h
  3117. * src/UnknownLengthPieceStorage.cc
  3118. * src/UnknownLengthPieceStorage.h
  3119. * test/DefaultBtRequestFactoryTest.cc
  3120. * test/DefaultPieceStorageTest.cc
  3121. * test/MockBtRequestFactory.h
  3122. * test/MockPieceStorage.h
  3123. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3124. Removed _uploadLength and _downloadLength from PeerSessionResource
  3125. and use PeerStat::_sessionUploadLength and
  3126. PeerStat::_sessionDownloadLength.
  3127. * src/PeerSessionResource.cc
  3128. * src/PeerSessionResource.h
  3129. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3130. Fixed the bug that prefixLength of split bucket which doesn't include
  3131. local node ID is incremented.
  3132. * src/DHTBucket.cc
  3133. * src/DHTBucket.h
  3134. * test/DHTBucketTest.cc
  3135. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3136. Added cookies.sqlite to EXTRA_DIST
  3137. * test/Makefile.am
  3138. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3139. Added Turkish translation. Updated French, German, Russian and
  3140. Simplified Chinese translations. Thanks to all translators.
  3141. * po/LINGUAS
  3142. * po/de.po
  3143. * po/fr.po
  3144. * po/ru.po
  3145. * po/tr.po
  3146. * po/zh_CN.po
  3147. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3148. Added deliminating text to the beginning of the log so that one can find
  3149. where the log starts easily.
  3150. * src/main.cc
  3151. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3152. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3153. to fix compile error when async DNS is not enabled by configuration.
  3154. * src/AbstractCommand.cc
  3155. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3156. If establishing conneciton to a server is failed, then mark error on
  3157. its ServerStat.
  3158. Added the cause of error to log when error event occurred.
  3159. Moved message string to message.h for translation.
  3160. * src/AbstractCommand.cc
  3161. * src/AbstractCommand.h
  3162. * src/FtpNegotiationCommand.cc
  3163. * src/HttpRequestCommand.cc
  3164. * src/PeerAbstractCommand.cc
  3165. * src/message.h
  3166. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3167. Added the function to get error message from socket.
  3168. * src/SocketCore.cc
  3169. * src/SocketCore.h
  3170. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3171. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3172. * src/RequestGroupMan.cc
  3173. * src/RequestGroupMan.h
  3174. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3175. If error event is received in epoll, then abort download immediately.
  3176. * src/AbstractCommand.cc
  3177. * src/Command.cc
  3178. * src/Command.h
  3179. * src/DownloadEngine.cc
  3180. * src/PeerAbstractCommand.cc
  3181. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3182. Added usage message for --uri-selector, --server-stat-of,
  3183. --server-stat-in, --server-stat-timeout options.
  3184. * src/HelpItemFactory.cc
  3185. * src/usage_text.h
  3186. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3187. Added upper limit of FTP response buffer. The current implementation
  3188. uses 4096bytes as a limit.
  3189. * src/FtpConnection.cc
  3190. * src/FtpConnection.h
  3191. * test/FtpConnectionTest.cc
  3192. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3193. Use non-blocking socket for TCP communication to avoid possible
  3194. blocking due to buffer full.
  3195. * src/AbstractProxyRequestCommand.cc
  3196. * src/FtpConnection.cc
  3197. * src/FtpConnection.h
  3198. * src/FtpNegotiationCommand.cc
  3199. * src/FtpNegotiationCommand.h
  3200. * src/HttpConnection.cc
  3201. * src/HttpConnection.h
  3202. * src/HttpRequestCommand.cc
  3203. * src/InitiatorMSEHandshakeCommand.cc
  3204. * src/InitiatorMSEHandshakeCommand.h
  3205. * src/MSEHandshake.cc
  3206. * src/MSEHandshake.h
  3207. * src/Makefile.am
  3208. * src/PeerConnection.cc
  3209. * src/PeerConnection.h
  3210. * src/PeerInteractionCommand.cc
  3211. * src/PeerListenCommand.cc
  3212. * src/ReceiverMSEHandshakeCommand.cc
  3213. * src/ReceiverMSEHandshakeCommand.h
  3214. * src/SocketBuffer.cc
  3215. * src/SocketBuffer.h
  3216. * src/SocketCore.cc
  3217. * src/SocketCore.h
  3218. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3219. Call setStatusRealtime() in constructor.
  3220. * src/RealtimeCommand.cc
  3221. * src/RealtimeCommand.h
  3222. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3223. Call Download::setNoWait(true) to execute newly created command without
  3224. a pause.
  3225. * src/AbstractCommand.cc
  3226. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3227. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3228. found' error from HTTP/FTP server NUM times without getting single
  3229. bytes of data, then force the download to fail.
  3230. Basically aria2 tris all URIs available. So if long list of URIs are
  3231. specified in Metalink, then aria2 will take a long time to fail
  3232. eventually if all URIs are outdated. This option eases this situation
  3233. to limit the number of servers to try.
  3234. * src/FtpNegotiationCommand.cc
  3235. * src/HelpItemFactory.cc
  3236. * src/HttpResponseCommand.cc
  3237. * src/OptionHandlerFactory.cc
  3238. * src/PeerStat.h
  3239. * src/RequestGroup.cc
  3240. * src/RequestGroup.h
  3241. * src/SegmentMan.cc
  3242. * src/SegmentMan.h
  3243. * src/option_processing.cc
  3244. * src/prefs.cc
  3245. * src/prefs.h
  3246. * src/usage_text.h
  3247. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3248. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3249. response even if more than one response is in it.
  3250. * src/FtpConnection.cc
  3251. * src/FtpConnection.h
  3252. * test/FtpConnectionTest.cc
  3253. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3254. Merged from stable-0.15
  3255. * m4/libcares.m4
  3256. Use pkg-config
  3257. * m4/sqlite3.m4
  3258. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3259. Removed unnecessary if statement.
  3260. * src/DefaultPieceStorage.cc (initPieceStorage)
  3261. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3262. Added --connect-timeout option to specify connect timeout in seconds.
  3263. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3264. connecting to BitTorrent peer is not controlled by this option.
  3265. * src/AbstractProxyRequestCommand.cc
  3266. * src/FtpNegotiationCommand.cc
  3267. * src/HelpItemFactory.cc
  3268. * src/HttpRequestCommand.cc
  3269. * src/OptionHandlerFactory.cc
  3270. * src/option_processing.cc
  3271. * src/prefs.cc
  3272. * src/prefs.h
  3273. * src/usage_text.h
  3274. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3275. Added help message for -R option.
  3276. * src/HelpItemFactory.cc
  3277. * src/usage_text.h
  3278. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3279. Added the message that the time is in local time zone.
  3280. * src/RequestGroup.cc
  3281. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3282. Implemented the ability to get timestamp from remote FTP server using
  3283. MDTM command described in RFC3659.
  3284. * src/FtpConnection.cc
  3285. * src/FtpConnection.h
  3286. * src/FtpNegotiationCommand.cc
  3287. * src/FtpNegotiationCommand.h
  3288. * test/FtpConnectionTest.cc
  3289. * test/Makefile.am
  3290. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3291. Implemented the ability to get timestamp from remote HTTP server and
  3292. apply it to local file. To enable this feature, --remote-time option
  3293. is added. No usage text has been written yet.
  3294. If several servers returns difference timestamp, then aria2 uses latest
  3295. one.
  3296. * src/CopyDiskAdaptor.cc
  3297. * src/CopyDiskAdaptor.h
  3298. * src/DirectDiskAdaptor.cc
  3299. * src/DirectDiskAdaptor.h
  3300. * src/DiskAdaptor.h
  3301. * src/File.cc
  3302. * src/File.h
  3303. * src/HttpHeader.cc
  3304. * src/HttpHeader.h
  3305. * src/HttpResponse.cc
  3306. * src/HttpResponse.h
  3307. * src/HttpResponseCommand.cc
  3308. * src/HttpResponseCommand.h
  3309. * src/MultiDiskAdaptor.cc
  3310. * src/MultiDiskAdaptor.h
  3311. * src/OptionHandlerFactory.cc
  3312. * src/RequestGroup.cc
  3313. * src/RequestGroup.h
  3314. * src/RequestGroupMan.cc
  3315. * src/option_processing.cc
  3316. * src/prefs.cc
  3317. * src/prefs.h
  3318. * test/CopyDiskAdaptorTest.cc
  3319. * test/FileTest.cc
  3320. * test/Makefile.am
  3321. * test/Makefile.in
  3322. * test/MultiDiskAdaptorTest.cc
  3323. * test/TestUtil.cc
  3324. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3325. Fixed the bug that DiskWriterEntry is not created when its
  3326. FileEntry.isRequested() is false and it doesn't share a piece with
  3327. other FileEntries that are requested. This bug causes segmentation fault
  3328. in the end.
  3329. * src/MultiDiskAdaptor.cc
  3330. * src/MultiDiskAdaptor.h
  3331. * src/MultiFileAllocationIterator.cc
  3332. * test/MultiDiskAdaptorTest.cc
  3333. * test/MultiFileAllocationIteratorTest.cc
  3334. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3335. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3336. called if the number of file entries are greater than max open files.
  3337. * src/AbstractSingleDiskAdaptor.cc
  3338. * src/AbstractSingleDiskAdaptor.h
  3339. * src/DiskAdaptor.h
  3340. * src/MultiDiskAdaptor.cc
  3341. * src/MultiDiskAdaptor.h
  3342. * test/MultiDiskAdaptorTest.cc
  3343. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3344. Added a constuctor that receives struct timeval.
  3345. Added operator<.
  3346. * src/TimeA2.cc
  3347. * src/TimeA2.h
  3348. * test/TimeTest.cc
  3349. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3350. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3351. * src/CookieParser.cc
  3352. * test/CookieParserTest.cc
  3353. * test/HttpResponseTest.cc
  3354. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. Implmented the functions to parse date.
  3356. * src/TimeA2.cc
  3357. * src/TimeA2.h
  3358. * test/TimeTest.cc
  3359. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3360. Added "Firefox3 Cookie" feature to FeatureConfig
  3361. * src/FeatureConfig.cc
  3362. * src/FeatureConfig.h
  3363. * test/FeatureConfigTest.cc
  3364. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3365. Bump up version number to 0.16.0b
  3366. * configure.ac
  3367. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3368. Use pkg-config if is is available.
  3369. * m4/openssl.m4
  3370. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3371. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3372. * src/BtAnnounce.h
  3373. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3374. If an error occurred with a URI, remove identical URI from remaining
  3375. URI list because it is likely that same error occurred in the end and it
  3376. is waste of time.
  3377. * src/AbstractCommand.cc
  3378. * src/RequestGroup.cc
  3379. * src/RequestGroup.h
  3380. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3381. Removed wrong comment.
  3382. * src/DefaultPeerStorage.cc
  3383. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3384. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3385. Added return value of getpid() to argument of srand() to achieve more
  3386. randomized value.
  3387. * src/SimpleRandomizer.cc
  3388. * src/SimpleRandomizer.h
  3389. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3390. Contact tracker frequently when the number of connections are 0 and
  3391. download is not finished yet.
  3392. * src/ActivePeerConnectionCommand.cc
  3393. * src/BtAnnounce.h
  3394. * src/DefaultBtAnnounce.cc
  3395. * src/DefaultBtAnnounce.h
  3396. * test/MockBtAnnounce.h
  3397. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3398. Moved threshold values to UTPexExtensionMessage.
  3399. * src/DefaultBtInteractive.cc
  3400. * src/Peer.cc
  3401. * src/Peer.h
  3402. * src/UTPexExtensionMessage.cc
  3403. * src/UTPexExtensionMessage.h
  3404. * test/UTPexExtensionMessageTest.cc
  3405. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3406. Added _incoming member to Peer class and made it true if the peer
  3407. initiated connection. Don't add those peer to UTPex message.
  3408. If extended handshake is received, assign _incoming to false.
  3409. * src/DefaultBtInteractive.cc
  3410. * src/HandshakeExtensionMessage.cc
  3411. * src/Peer.cc
  3412. * src/Peer.h
  3413. * src/PeerListenCommand.cc
  3414. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3415. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3416. Encoding Decoder. Removed size threshold for turning off on the fly
  3417. inflation because resulting file may or may not be inflated depending
  3418. on the file size and I think it is not expected by users.
  3419. This change fixes segmentation fault when Metalink file contains gzipped
  3420. file and its filesize is provided.
  3421. * src/HttpResponseCommand.cc
  3422. * src/HttpResponseCommand.h
  3423. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3424. Made Cookie immutable.
  3425. * src/Cookie.cc
  3426. * src/Cookie.h
  3427. * src/CookieParser.cc
  3428. * src/CookieParser.h
  3429. * src/CookieStorage.cc
  3430. * test/CookieParserTest.cc
  3431. * test/CookieStorageTest.cc
  3432. * test/NsCookieParserTest.cc
  3433. * test/Sqlite3MozCookieParserTest.cc
  3434. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3435. Removed CookieBox, CookieBoxFactory.
  3436. * src/CookieBox.cc
  3437. * src/CookieBox.h
  3438. * src/CookieBoxFactory.cc
  3439. * src/CookieBoxFactory.h
  3440. * src/Makefile.am
  3441. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3442. Use CookieStorage class instead of CookieBox class.
  3443. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3444. * src/AbstractProxyRequestCommand.cc
  3445. * src/CookieStorage.cc
  3446. * src/DownloadEngine.cc
  3447. * src/DownloadEngine.h
  3448. * src/HttpConnection.cc
  3449. * src/HttpConnection.h
  3450. * src/HttpRequest.cc
  3451. * src/HttpRequest.h
  3452. * src/HttpRequestCommand.cc
  3453. * src/HttpResponse.cc
  3454. * src/HttpResponseCommand.cc
  3455. * src/HttpSkipResponseCommand.cc
  3456. * src/Makefile.am
  3457. * src/MultiUrlRequestInfo.cc
  3458. * src/Request.cc
  3459. * src/Request.h
  3460. * src/main.cc
  3461. * test/AllTest.cc
  3462. * test/CookieStorageTest.cc
  3463. * test/CookieTest.cc
  3464. * test/HttpRequestTest.cc
  3465. * test/HttpResponseTest.cc
  3466. * test/Makefile.am
  3467. * test/NsCookieParserTest.cc
  3468. * test/Sqlite3MozCookieParserTest.cc
  3469. * test/nscookietest.txt
  3470. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3471. Updated
  3472. * test/Cookies.sqlite
  3473. * test/nscookietest.txt
  3474. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3475. Added tests for CookieStorage::load()
  3476. * test/CookieStorageTest.cc
  3477. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3478. Added CookieStorage class which is based on RFC2109 and manages cookies
  3479. more strictly than CookieBox and CookieBoxFactory class.
  3480. * src/CookieStorage.cc
  3481. * src/CookieStorage.h
  3482. * src/Cookie.cc
  3483. * src/Cookie.h
  3484. * test/CookieStorageTest.cc
  3485. * test/CookieTest.cc
  3486. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Fixed the bug that commands are created more than the number of pieces.
  3488. * src/RequestGroup.cc
  3489. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3490. Fixed infinite loop bug in FTP when SIZE command failed.
  3491. * src/FtpNegotiationCommand.cc
  3492. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3493. Removed DirectDiskAdaptorTest.h
  3494. * test/Makefile.am
  3495. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. Fixed chunk checksum validation cannot detect trailing garbage data.
  3497. BUG#2074141
  3498. * src/AbstractSingleDiskAdaptor.cc
  3499. * src/AbstractSingleDiskAdaptor.h
  3500. * src/CheckIntegrityEntry.cc
  3501. * src/CheckIntegrityEntry.h
  3502. * src/DiskAdaptor.h
  3503. * src/MultiDiskAdaptor.cc
  3504. * src/MultiDiskAdaptor.h
  3505. * src/RequestGroup.cc
  3506. * test/DirectDiskAdaptorTest.cc
  3507. * test/MultiDiskAdaptorTest.cc
  3508. * test/TestUtil.cc
  3509. * test/TestUtil.h
  3510. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3511. Bump up version number of dht.dat file to 3. In version 3 format, time
  3512. is stored in 64bit, network byte order.
  3513. New build can load old format(version 2) but it saves the file in new
  3514. format. It means once you used new build, your dht.dat becomes
  3515. incompatible with older build.
  3516. * src/DHTRoutingTableDeserializer.cc
  3517. * src/DHTRoutingTableSerializer.cc
  3518. * test/DHTRoutingTableSerializerTest.cc
  3519. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3520. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3521. * test/Makefile.am
  3522. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3523. Bump up version number of .aria2 control file to 0001.
  3524. New aria2 can still load version 0000 file but it saves the file in
  3525. version 0001 format. It means that new aria2 can resume download
  3526. started by old aria2 but the opposite is not true.
  3527. * src/DefaultBtProgressInfoFile.cc
  3528. * src/DefaultBtProgressInfoFile.h
  3529. * test/DefaultBtProgressInfoFileTest.cc
  3530. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3531. Added ntoh64 and hton64 as inline functions.
  3532. * src/Util.cc
  3533. * test/UtilTest.cc
  3534. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3535. Added sqlite3 depenency and Firefox3 cookie support.
  3536. * README
  3537. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3538. State that firefox3 cookie is supported explicitly in the usage.
  3539. * src/usage_text.h
  3540. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3541. Externalized message.
  3542. * src/RequestGroupMan.cc
  3543. * src/message.h
  3544. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3545. Save temporary file first and rename to the destination on success.
  3546. Added test cases.
  3547. * src/RequestGroupMan.cc
  3548. * test/RequestGroupManTest.cc
  3549. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3550. Fixed the bug that the number of connected peer is exceeding the limit
  3551. (55 by default) in seeding mode.
  3552. Multiplied 0.8 to _maxUploadSpeedLimit.
  3553. * src/ActivePeerConnectionCommand.cc
  3554. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3555. Clear table item.
  3556. * src/Dictionary.cc
  3557. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3558. Fixed error handling of lseek.
  3559. * src/AbstractDiskWriter.cc
  3560. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3561. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3562. style cookie file.
  3563. * src/usage_text.h
  3564. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3565. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3566. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3567. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3568. * src/Util.cc
  3569. * src/Util.h
  3570. * src/CookieParser.cc
  3571. * test/UtilTest.cc
  3572. * test/CookieParserTest.cc
  3573. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3574. Separate the implementation to load old mozilla format of cookie to
  3575. NsCookieParser class.
  3576. * src/CookieBoxFactory.cc
  3577. * src/CookieBoxFactory.h
  3578. * src/NsCookieParser.cc
  3579. * src/NsCookieParser.h
  3580. * test/NsCookieParserTest.cc
  3581. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3582. Made parse() const
  3583. * src/Sqlite3MozCookieParser.cc
  3584. * src/Sqlite3MozCookieParser.h
  3585. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3586. Added firefox3 cookie support based on the patch submitted by
  3587. tizianomueller.
  3588. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3589. this functionality.
  3590. * configure.ac
  3591. * m4/sqlite3.m4
  3592. * src/CookieBoxFactory.cc
  3593. * src/CookieBoxFactory.h
  3594. * src/Makefile.am
  3595. * src/Makefile.in
  3596. * src/Sqlite3MozCookieParser.cc
  3597. * src/Sqlite3MozCookieParser.h
  3598. * src/main.cc
  3599. * test/CookieBoxFactoryTest.cc
  3600. * test/Makefile.am
  3601. * test/Makefile.in
  3602. * test/Sqlite3MozCookieParserTest.cc
  3603. * test/badcookies.sqlite
  3604. * test/cookies.sqlite
  3605. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3606. Added Danish and Greek translations.
  3607. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3608. Great thanks to all translators.
  3609. * po/LINGUAS
  3610. * po/el.po
  3611. * po/da.po
  3612. * po/es.po
  3613. * po/ca.po
  3614. * po/nn.po
  3615. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3616. Fixed man page: --follow-bittorrent should be --follow-torrent
  3617. * doc/aria2c.1.txt
  3618. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3619. Fixed: numCommand is less than the value specified in -C option.
  3620. * src/RequestGroup.cc
  3621. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3622. Fixed occasional assertion failure in PieceSegment.
  3623. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3624. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3625. creation of duplicate segments and one of the segment was finished then
  3626. assertion failure was caused.
  3627. * src/SegmentMan.cc
  3628. * test/SegmentManTest.cc
  3629. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3630. Added options to load/save the server's performance/status to a file
  3631. and the timeout to drop their data.
  3632. --server-stat-of=FILE specifies the file to which performance data
  3633. is saved.
  3634. --server-stat-if=FILE specifies the file to read previously saved
  3635. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3636. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3637. TIMEOUT is specified in seconds and the default value is 24hours.
  3638. * src/MultiUrlRequestInfo.cc
  3639. * src/OptionHandlerFactory.cc
  3640. * src/RequestGroupMan.cc
  3641. * src/RequestGroupMan.h
  3642. * src/ServerStatMan.cc
  3643. * src/ServerStatMan.h
  3644. * src/option_processing.cc
  3645. * src/prefs.cc
  3646. * src/prefs.h
  3647. * test/ServerStatManTest.cc
  3648. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3649. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3650. * src/ServerStatMan.cc
  3651. * src/ServerStatMan.h
  3652. * test/ServerStatManTest.cc
  3653. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3654. Implemented ServerStatMan::load(...) function and its test case.
  3655. * src/ServerStat.cc
  3656. * src/ServerStat.h
  3657. * src/ServerStatMan.cc
  3658. * test/ServerStatManTest.cc
  3659. * test/ServerStatTest.cc
  3660. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3661. Use time_t instead of int32_t. Use int64_t where milli second is
  3662. expected.
  3663. * src/TimeA2.cc
  3664. * src/TimeA2.h
  3665. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3666. Implemented ServerStatMan::save(...) function and its test case.
  3667. * src/ServerStat.cc
  3668. * src/ServerStat.h
  3669. * src/ServerStatMan.cc
  3670. * src/ServerStatMan.h
  3671. * test/ServerStatManTest.cc
  3672. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3673. Now aria2 uses name attribute in Metalink as local filename in
  3674. BitTorrent downloads. BUG#2033999
  3675. * src/BtContext.h
  3676. * src/BtDependency.cc
  3677. * src/DefaultBtContext.cc
  3678. * src/DefaultBtContext.h
  3679. * src/SingleFileDownloadContext.cc
  3680. * src/SingleFileDownloadContext.h
  3681. * test/BtDependencyTest.cc
  3682. * test/DefaultBtContextTest.cc
  3683. * test/MockBtContext.h
  3684. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3685. Added AC_C_BIGENDIAN
  3686. * src/configure.ac
  3687. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3688. Limited numCommand less than or equal to the number of piece.
  3689. * src/RequestGroup.cc
  3690. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3691. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3692. directive.
  3693. * test/DefaultPieceStorageTest.cc
  3694. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3695. Fixed memory leak in test code
  3696. * test/AnnounceListTest.cc
  3697. * test/DefaultPeerListProcessorTest.cc
  3698. * test/DefaultPeerStorageTest.cc
  3699. * test/MetaFileUtilTest.cc
  3700. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3701. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3702. * src/DefaultPieceStorage.cc
  3703. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3704. Initialized _directIOAllowed
  3705. * src/MultiDiskAdaptor.cc
  3706. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3707. Fixed memory leak
  3708. * src/GZipDecoder.cc
  3709. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3710. Fixed memory leak
  3711. * src/MetalinkParserStateMachine.cc
  3712. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3713. Fixed memory leak
  3714. * src/Dictionary.cc
  3715. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3716. Fixed memory leak
  3717. * src/IteratableChunkChecksumValidator.h
  3718. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3719. Fixed unmatched malloc/free.
  3720. * src/IteratableChunkChecksumValidator.cc
  3721. * src/IteratableChecksumValidator.cc
  3722. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3723. Removed max chunk size check. This change fixes BUG#2040169
  3724. * src/ChunkedDecoder.cc
  3725. * src/ChunkedDecoder.h
  3726. * test/ChunkedDecoderTest.cc
  3727. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3728. Implemented download speed based URI selection algorithm.
  3729. Introduced new option --uri-selector.
  3730. If --uri-selector=feedback is given, aria2 uses download speed observed
  3731. in the previous downloads and chooses fastest server in the URI list.
  3732. Currently at most 10 URIs are considered to introduce randomeness for
  3733. finding better servers. The speed is average download speed in the
  3734. downloads.
  3735. On the other hand, if --uri-selector=inorder is given, which is default,
  3736. URI is tried in order in URI list.
  3737. The usage text for the new option has not been written yet.
  3738. * src/AbstractCommand.cc
  3739. * src/DownloadCommand.cc
  3740. * src/DownloadEngine.cc
  3741. * src/DownloadEngineFactory.cc
  3742. * src/InOrderURISelector.cc
  3743. * src/InOrderURISelector.h
  3744. * src/OptionHandlerFactory.cc
  3745. * src/PeerStat.h
  3746. * src/RequestGroup.cc
  3747. * src/RequestGroup.h
  3748. * src/RequestGroupMan.cc
  3749. * src/RequestGroupMan.h
  3750. * src/SegmentMan.cc
  3751. * src/SegmentMan.h
  3752. * src/ServerStat.cc
  3753. * src/ServerStat.h
  3754. * src/ServerStatMan.cc
  3755. * src/ServerStatMan.h
  3756. * src/ServerStatURISelector.cc
  3757. * src/ServerStatURISelector.h
  3758. * src/URISelector.h
  3759. * src/option_processing.cc
  3760. * src/prefs.cc
  3761. * src/prefs.h
  3762. * test/InOrderURISelectorTest.cc
  3763. * test/RequestGroupManTest.cc
  3764. * test/ServerStatManTest.cc
  3765. * test/ServerStatURISelectorTest.cc
  3766. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3767. * Release 0.15.1+2
  3768. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3769. Bump up version number to 0.15.1+2
  3770. * configure.ac
  3771. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3772. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3773. * m4/aria2_arg.m4
  3774. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3775. * Release 0.15.1+1
  3776. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3777. Bump up version number to 0.15.1+1
  3778. * configure.ac
  3779. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3780. Fixed the bug that causes segmentaion fault when resuming download
  3781. using metalink without size tag. Reproducible only using HTTP URI.
  3782. * src/HttpResponseCommand.cc
  3783. * src/FtpNegotiationCommand.cc
  3784. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3785. * Release 0.15.1
  3786. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3787. Updated Bulgarian and French translations, thanks to all translators.
  3788. * po/bg.po
  3789. * po/fr.po
  3790. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3791. Bump up version number to 0.15.1
  3792. * configure.ac
  3793. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3794. Avoid repeated call of gettimeofday() when calculating speed.
  3795. * src/SpeedCalc.cc
  3796. * src/SpeedCalc.h
  3797. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3798. Removed writable check when socket's send buffer is full in BitTorrent
  3799. downloads to lower CPU usage.
  3800. * src/PeerInteractionCommand.cc
  3801. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3802. Fixed broken gzip inflation.
  3803. Turn off segmented downloading if gzip content is smaller than or equal
  3804. to 1MiB and inflate the data on the fly, because HTTP response header
  3805. doesn't contain the length of inflated file we can't determin where
  3806. the chunk of data should be written.
  3807. On the other hand, if gzip content is larger than 1MB, then turn off
  3808. on the fly inflation, because some servers returns "content-type: gzip"
  3809. for *.tgz, *.gz files.
  3810. * src/DownloadCommand.cc
  3811. * src/HttpResponseCommand.cc
  3812. * src/HttpResponseCommand.h
  3813. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3814. Applied tizianomueller's patch to fix compile error.
  3815. * test/BitfieldManTest.cc
  3816. * test/BtRequestMessageTest.cc
  3817. * test/DefaultBtContextTest.cc
  3818. * test/DefaultDiskWriterTest.cc
  3819. * test/DefaultPieceStorageTest.cc
  3820. * test/HttpHeaderProcessorTest.cc
  3821. * test/HttpResponseTest.cc
  3822. * test/Metalink2RequestGroupTest.cc
  3823. * test/MetalinkParserControllerTest.cc
  3824. * test/MetalinkProcessorTest.cc
  3825. * test/PeerSessionResourceTest.cc
  3826. * test/UtilTest.cc
  3827. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3828. * Release 0.15.0
  3829. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3830. Reordered src files in POTFILES.in so that usage text appears first.
  3831. * po/POTFILES.in
  3832. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3833. Bump up version number to 0.15.0
  3834. * configure.ac
  3835. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3836. Added Bulgarian translation.
  3837. Updated Catalan, Spanish, French and Japanese translations.
  3838. Thanks to all translators.
  3839. * po/LINGUAS
  3840. * po/bg.po
  3841. * po/ca.po
  3842. * po/es.po
  3843. * po/fr.po
  3844. * po/ja.po
  3845. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3846. Updated feature list. Added libz for dependency section.
  3847. Added a description about unit testing using CppUnit.
  3848. * README
  3849. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3850. Added a test for libz. Quoted where it is necessary.
  3851. * build_test.sh
  3852. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3853. Added GZip to `Enabled Features' list.
  3854. * src/FeatureConfig.cc
  3855. * src/FeatureConfig.h
  3856. * test/FeatureConfigTest.cc
  3857. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3858. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  3859. the transfer has not yet started.
  3860. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  3861. * src/SegmentMan.cc
  3862. * src/SegmentMan.h
  3863. * test/SegmentManTest.cc
  3864. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3865. Cache last calculated average download/upload speed.
  3866. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  3867. cached value.
  3868. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  3869. * src/PeerStat.h
  3870. * src/SpeedCalc.cc
  3871. * src/SpeedCalc.h
  3872. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3873. Call parseUrl directly.
  3874. * src/Request.cc (resetUrl)
  3875. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3876. Supported absolute/relative path in Location header field.
  3877. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  3878. * src/HttpHeader.cc
  3879. * src/HttpHeader.h
  3880. * src/HttpResponse.cc
  3881. * src/HttpSkipResponseCommand.cc
  3882. * src/Request.cc
  3883. * test/HttpHeaderTest.cc
  3884. * test/HttpResponseTest.cc
  3885. * test/RequestTest.cc
  3886. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3887. Changed help text for --load-cookie option.
  3888. * doc/aria2c.1.txt
  3889. * src/usage_text.h
  3890. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3891. Regenerated test/Makefile.in to remove stale ChangeLog.
  3892. * test/Makefile.in
  3893. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3894. Updated po files.
  3895. * po/aria2c.pot
  3896. * po/*.po
  3897. * po/*.gmo
  3898. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3899. Bump up version number to 0.15.0b
  3900. * configure.ac
  3901. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3902. Externalize messages.
  3903. * src/RequestGroupMan.cc
  3904. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3905. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3906. Use File::exists() instead of File::isFile() to allow non-regular file
  3907. such as block special files.
  3908. * src/AbstractDiskWriter.cc
  3909. * src/MultiDiskWriter.cc
  3910. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3911. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3912. * src/gai_strerror.h
  3913. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3914. Fixed compile error. Thanks gknauf for the patch.
  3915. * src/asctime_r.c
  3916. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3917. Included asctime_r.h from a2time.h.
  3918. * src/a2time.h
  3919. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3920. Added a message "aria2 doesn't verify signature" to log message when
  3921. signature file is saved.
  3922. * src/RequestGroupMan.cc
  3923. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3924. Added the ability to save signature when download is completed if
  3925. signature is available. The filename of signature file is the path to
  3926. download file followed by ".sig". If it already exists, then signature
  3927. will not be saved.
  3928. * src/RequestGroupMan.cc
  3929. * src/Signature.cc
  3930. * test/SignatureTest.cc
  3931. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3932. Updated the descriptions for --bt-seed-unverified.
  3933. * doc/aria2c.1
  3934. * doc/aria2c.1.html
  3935. * doc/aria2c.1.txt
  3936. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3937. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3938. that this is not going to verify files using piece hashes.
  3939. * src/HelpItemFactory.cc
  3940. * src/OptionHandlerFactory.cc
  3941. * src/RequestGroup.cc
  3942. * src/option_processing.cc
  3943. * src/prefs.cc
  3944. * src/prefs.h
  3945. * src/usage_text.h
  3946. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3947. Added the ability to retrieve signature from Metalink file.
  3948. A retrieved signature is stored in Signature class and it is held by
  3949. DownloadContext class. Note that aria2 doesn't verify signature.
  3950. * src/DownloadContext.cc
  3951. * src/DownloadContext.h
  3952. * src/Makefile.am
  3953. * src/Makefile.in
  3954. * src/Metalink2RequestGroup.cc
  3955. * src/MetalinkEntry.cc
  3956. * src/MetalinkEntry.h
  3957. * src/MetalinkParserController.cc
  3958. * src/MetalinkParserController.h
  3959. * src/MetalinkParserStateMachine.cc
  3960. * src/MetalinkParserStateMachine.h
  3961. * src/Signature.cc
  3962. * src/Signature.h
  3963. * src/SignatureMetalinkParserState.cc
  3964. * src/SignatureMetalinkParserState.h
  3965. * src/VerificationMetalinkParserState.cc
  3966. * src/VerificationMetalinkParserState.h
  3967. * test/Metalink2RequestGroupTest.cc
  3968. * test/MetalinkParserControllerTest.cc
  3969. * test/MetalinkProcessorTest.cc
  3970. * test/test.xml
  3971. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3972. Close DiskAdaptor after renaming file.
  3973. * src/RequestGroup.cc
  3974. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3975. Corrected indentation
  3976. * src/DefaultBtProgressInfoFile.cc
  3977. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3978. Moved the calls of std::ios::exceptions() inside of try-catch block
  3979. because if an error occurred in constructor of std::fstream, then
  3980. exception is thrown immediately when std::ios::exceptions() is called
  3981. which results unhandled exception and aria2c aborts.
  3982. * src/DefaultBtProgressInfoFile.cc
  3983. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3984. Added the test for the previous change in DefaultBtContext.cc
  3985. * test/DefaultBtContextTest.cc
  3986. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3987. Fixed the bug that causes infinite loop when the number of pieces are
  3988. fewer than allowed fast set size which is 10 by default.
  3989. * src/DefaultBtContext.cc
  3990. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Updated the descriptions for -j, -s. Added --bt-seed.
  3992. * doc/aria2c.1
  3993. * doc/aria2c.1.html
  3994. * doc/aria2c.1.txt
  3995. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3996. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3997. aria2 seeds previously downloaded files without validating piece hashs.
  3998. * src/HelpItemFactory.cc
  3999. * src/OptionHandlerFactory.cc
  4000. * src/RequestGroup.cc
  4001. * src/option_processing.cc
  4002. * src/prefs.cc
  4003. * src/prefs.h
  4004. * src/usage_text.h
  4005. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4006. Updated DESCRIPTION of man page.
  4007. * doc/aria2c.1
  4008. * doc/aria2c.1.html
  4009. * doc/aria2c.1.txt
  4010. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4011. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4012. Don't define `struct addrinfo' when __sun is defined.
  4013. * src/getaddrinfo.h
  4014. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4015. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4016. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4017. second argument is of type `struct _stati64'. Otherwise it is defined as
  4018. `struct stat'.
  4019. * src/AbstractDiskWriter.cc
  4020. * src/File.cc
  4021. * src/File.h
  4022. * src/a2io.h
  4023. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4024. Fixed the compile error in hurd-i386
  4025. See the original bug report:
  4026. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4027. * src/a2io.h
  4028. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4029. Code cleanup.
  4030. * src/PeerAbstractCommand.cc
  4031. * src/PeerAbstractCommand.h
  4032. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4033. Removed TransferEncoding.
  4034. * src/DownloadCommand.cc
  4035. * src/DownloadCommand.h
  4036. * src/HttpResponseCommand.cc
  4037. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4038. Updated po files.
  4039. * po/aria2c.pot
  4040. * po/*.po
  4041. * po/*.gmo
  4042. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4043. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4044. * src/A2STR.cc
  4045. * src/A2STR.h
  4046. * src/ChunkedDecoder.cc
  4047. * src/ChunkedDecoder.h
  4048. * src/ChunkedEncoding.cc: Removed
  4049. * src/ChunkedEncoding.h: Removed
  4050. * src/DownloadCommand.cc
  4051. * src/DownloadCommand.h
  4052. * src/HttpDownloadCommand.cc
  4053. * src/HttpResponse.cc
  4054. * src/HttpResponse.h
  4055. * src/HttpResponseCommand.cc
  4056. * src/HttpSkipResponseCommand.cc
  4057. * src/HttpSkipResponseCommand.h
  4058. * src/Makefile.am
  4059. * src/TransferEncoding.h: Removed
  4060. * test/ChunkedDecoderTest.cc
  4061. * test/ChunkedEncodingTest.cc: Removed
  4062. * test/HttpResponseTest.cc
  4063. * test/Makefile.am
  4064. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4065. Use append instead of insert.
  4066. * src/GZipDecoder.cc
  4067. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4068. Updated doc
  4069. * src/Decoder.h
  4070. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4071. Updated usage text for -s option.
  4072. * src/usage_text.h
  4073. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4074. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4075. * src/Request.cc
  4076. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. Cleaned up configure.ac.
  4078. * configure.ac
  4079. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4080. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4081. AC_ARG_ENABLE.
  4082. * configure.ac
  4083. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4084. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4085. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4086. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4087. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4088. fly and writes decoded data to a local disk.
  4089. * README
  4090. * README.html
  4091. * configure.ac
  4092. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4093. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4094. * m4/libz.m4
  4095. * src/Decoder.h
  4096. * src/DownloadCommand.cc
  4097. * src/DownloadCommand.h
  4098. * src/Exception.h
  4099. * src/GZipDecoder.cc
  4100. * src/GZipDecoder.h
  4101. * src/HttpHeader.cc
  4102. * src/HttpHeader.h
  4103. * src/HttpRequest.cc
  4104. * src/HttpRequest.h
  4105. * src/HttpResponse.cc
  4106. * src/HttpResponse.h
  4107. * src/HttpResponseCommand.cc
  4108. * src/Makefile.am
  4109. * test/GZipDecoderTest.cc
  4110. * test/HttpRequestTest.cc
  4111. * test/HttpResponseTest.cc
  4112. * test/Makefile.am
  4113. * test/Makefile.in
  4114. * test/gzip_decode_test.gz
  4115. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4116. Clarified usage of -j option.
  4117. * src/usage_text.h
  4118. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4119. Disabled getting size from the response of RETR.
  4120. If SIZE command failed, then disable resuming and segmented downloading.
  4121. * src/FtpConnection.cc
  4122. * src/FtpConnection.h
  4123. * src/FtpNegotiationCommand.cc
  4124. * src/FtpNegotiationCommand.h
  4125. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4126. Use digits to find first byte of file size, which makes the intention
  4127. of the code clearer.
  4128. * src/FtpConnection.cc
  4129. Don't call validateTotalLength() when size is 0.
  4130. * src/FtpNegotiationCommand.cc
  4131. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4132. Updated po files.
  4133. * po/aria2c.pot
  4134. * po/*.gmo
  4135. * po/*.po
  4136. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4137. Clarified usage text for --split option.
  4138. * src/usage_text.h
  4139. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4140. Bump up version number to 0.15.0dev. "dev" means "development"
  4141. version, which means I started the development of the next release!
  4142. * src/configure.ac
  4143. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. If FTP server returns negative response with REST raw command and
  4145. requested range is not 0, throw exception. If requested range is 0,
  4146. continue download a file from 0 byte.
  4147. * src/FtpNegotiationCommand.cc
  4148. * src/FtpNegotiationCommand.h
  4149. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4150. Supported FTP server which don't recognize SIZE raw command.
  4151. If SIZE raw command is failed, aria2 will try to get file size
  4152. from the response of RETR raw command. If both attempts are failed,
  4153. then resuming and segmented downloading are disabled.
  4154. * src/FtpConnection.cc
  4155. * src/FtpConnection.h
  4156. * src/FtpNegotiationCommand.cc
  4157. * src/FtpNegotiationCommand.h
  4158. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4159. * Release 0.14.0+1
  4160. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4161. Bump up version number to 0.14.0+1
  4162. * src/configure.ac
  4163. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4164. Fixed the code that refers static member variable from non-static
  4165. context.
  4166. * src/DefaultPeerStorage.cc
  4167. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4168. * Release 0.14.0
  4169. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4170. Added build test script
  4171. * build_test.sh
  4172. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4173. Updated ja.po
  4174. * src/ja.po
  4175. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4176. Bump up version number to 0.14.0
  4177. * src/configure.ac
  4178. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. Updated ja.po and fr.po. Great thanks for french translators and
  4180. Sebastien WILLEMIJNS.
  4181. * po/fr.po
  4182. * po/ja.po
  4183. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4184. Added configure option to enable/disable epoll support.
  4185. * configure.ac
  4186. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4187. Updated man page.
  4188. * doc/aria2c.1.txt
  4189. * doc/aria2c.1
  4190. * doc/aria2c.1.html
  4191. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Added missing default value '5' to the usage of --split option.
  4193. * src/HelpItemFactory.cc
  4194. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. Filled up pieces based on the number of missing blocks, rather than
  4196. simplay the number of piece * block length.
  4197. * src/BtRequestFactory.h
  4198. * src/DefaultBtInteractive.cc
  4199. * src/DefaultBtInteractive.h
  4200. * src/DefaultBtRequestFactory.cc
  4201. * src/DefaultBtRequestFactory.h
  4202. * src/Piece.cc
  4203. * src/Piece.h
  4204. * test/BitfieldManTest.cc
  4205. * test/DefaultBtRequestFactoryTest.cc
  4206. * test/MockBtRequestFactory.h
  4207. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4208. Made _epEvents a member variable.
  4209. * src/DownloadEngine.cc
  4210. * src/DownloadEngine.h
  4211. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4212. Cancel download if http redirect is bounded more than 20 times.
  4213. * src/AbstractCommand.cc
  4214. * src/HttpSkipResponseCommand.cc
  4215. * src/Request.cc
  4216. * src/Request.h
  4217. * test/RequestTest.cc
  4218. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4219. Fixed unhandled exception(removed keyword `new').
  4220. * src/SocketCore.cc (initEPOLL)
  4221. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4222. Removed visit(const MetaEntry*)
  4223. * src/MetaEntryVisitor.h:
  4224. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4225. and made them virtual.
  4226. * src/BencodeVisitor.h
  4227. * src/BencodeVisitor.cc
  4228. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4229. Updated po files.
  4230. * po/aria2c.pot
  4231. * po/*.po
  4232. * po/*.gmo
  4233. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4234. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4235. the number of socket to watch out.
  4236. * src/PeerInteractionCommand.cc
  4237. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4238. When there is not enough space in disk when writing a chunk of data,
  4239. aria2 now prints the message to the console to warn user and aborts
  4240. its download. Not all downloads are canceled because some downloads
  4241. may use another disk or partition. BUG#1640332
  4242. * src/AbstractDiskWriter.cc
  4243. * src/PeerAbstractCommand.cc
  4244. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4245. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4246. setHaltRequested(true) to cancel download.
  4247. * src/PeerInteractionCommand.h
  4248. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4249. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4250. socket from int to sock_t as sockets are unsigned in Windows.
  4251. For AsyncNameResolver, DownloadEngine, I did additional modification
  4252. for the portion of the code changed according to epoll support.
  4253. I defined sock_t in a2netcompat.h to use sock_t without including
  4254. SocketCore.h.
  4255. * src/AsyncNameResolver.cc
  4256. * src/AsyncNameResolver.h
  4257. * src/DownloadEngine.cc
  4258. * src/DownloadEngine.h
  4259. * src/SocketCore.cc
  4260. * src/SocketCore.h
  4261. * src/a2netcompat.h
  4262. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4264. changes in the patch were applied.
  4265. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4266. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4267. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4268. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4269. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4270. a2io.h and common.h were modified.
  4271. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4272. MinGW.
  4273. * src/common.h: Changed off_t to 64 bit in MinGW.
  4274. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4275. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4276. only a2netcompat.h is modified.
  4277. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4278. directives.
  4279. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4280. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4281. only gai_strerror.h is modified.
  4282. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4283. winsock errors in MinGW.
  4284. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4285. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4286. follow sources are applied.
  4287. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4288. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4289. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4290. I included locale.h from Platform.cc.
  4291. * src/main.cc: Moved common setup/teardown code to Platform class.
  4292. * test/AllTest.cc: Use Platform class.
  4293. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4294. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4295. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4296. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4297. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4298. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4299. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4300. aria2-0.13.2+1-mingw-2.patch.
  4301. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4302. systems which don't have termious.h. I moved the directive inside of
  4303. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4304. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4305. anyway.
  4306. * src/asctime_r.h
  4307. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4308. I added 2nd argument to the prototype declaration.
  4309. * src/StringFormat.cc: Get rid of vasprintf.
  4310. * src/getaddrinfo.h: Fixed constants.
  4311. * configure.ac: Added the check for asctime_r function.
  4312. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4313. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4314. Added writable test for Socket when the sending message is in progress.
  4315. Usually the sending message is piece message. Without wriable check,
  4316. upload latency is dropped to more than 1sec.
  4317. * src/PeerInteractionCommand.cc
  4318. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4319. Create only requested files and files which shares a piece with
  4320. requested file in multi-torrent downloads. Directory structures are
  4321. also created in the same rule.
  4322. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4323. DiskWriterEntry as in the previous implementation.
  4324. * src/MultiDiskWriter.cc
  4325. * src/MultiFileAllocationIterator.cc
  4326. * src/MultiFileAllocationIterator.h
  4327. * test/MultiFileAllocationIteratorTest.cc
  4328. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4329. Commented out -lprofiler
  4330. * src/Makefile.am
  4331. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4332. Bump up version number to 0.14.0b.
  4333. * src/configure.ac
  4334. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Actively establish connection to peers in seeding, when peer cache
  4336. is not full and max upload speed limit is not reached.
  4337. * src/ActivePeerConnectionCommand.cc
  4338. * src/ActivePeerConnectionCommand.h
  4339. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4340. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4341. to make room more fleshy, recently found peers.
  4342. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4343. it.
  4344. * src/DefaultPeerStorage.cc
  4345. * test/DefaultPeerStorageTest.cc
  4346. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4347. Returns cached data only when the previous receiveHandshake() is called
  4348. with peek = true.
  4349. * src/PeerConnection.cc (receiveHandshake)
  4350. * src/PeerConnection.h (receiveHandshake)
  4351. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4352. Changed default value of -s option from 1 to 5.
  4353. Also max value of -s option is changed from 5 to 16.
  4354. * src/HelpItemFactory.cc
  4355. * src/OptionHandlerFactory.cc
  4356. * src/option_processing.cc
  4357. * src/usage_text.h
  4358. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4359. Changed -s options behavior. Now it means the number of connections
  4360. made simultaneously in each http/ftp download.
  4361. If 1 URL is specified, the behavior is the same with old implementation.
  4362. If -s N is given and more than N URLs are specified, first N URLs are
  4363. used and remaining URLs are used for backup. If less than N URLs are
  4364. specified, some of URLs are used more than once so that totally N
  4365. connections are made simultaneously.
  4366. * src/main.cc
  4367. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4368. Included missing iosfwd or ostream header.
  4369. * src/RequestGroupMan.cc
  4370. * src/TaggedItem.cc
  4371. * src/TaggedItem.h
  4372. * src/Util.cc
  4373. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4374. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4375. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4376. * src/HttpConnection.cc: Included missing sstream.
  4377. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4378. Added --bt-max-open-files option.
  4379. * src/DefaultPieceStorage.cc
  4380. * src/HelpItemFactory.cc
  4381. * src/MultiDiskAdaptor.cc
  4382. * src/MultiDiskAdaptor.h
  4383. * src/OptionHandlerFactory.cc
  4384. * src/option_processing.cc
  4385. * src/prefs.cc
  4386. * src/prefs.h
  4387. * src/usage_text.h
  4388. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4389. Fixed the bug that aria2 aborts when a path to a directory is given
  4390. in command-line.
  4391. * src/ProtocolDetector.cc
  4392. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4393. Limited the number files opened in each BitTorrent download. The default
  4394. value is 100. The option to change this value will be added.
  4395. * src/MultiDiskAdaptor.cc
  4396. * src/MultiDiskAdaptor.h
  4397. * src/MultiFileAllocationIterator.cc
  4398. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4399. Fixed the bug that HTTP downloads don't start with old libraries.
  4400. * src/HttpHeaderProcessor.cc
  4401. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4402. Use empty() instead of size() > 0.
  4403. * src/HttpConnection.cc
  4404. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4405. Drop connection if the incoming peer ID is the same with localhost's
  4406. one. The previous implementation drops connection when incoming peer's
  4407. IP address is the same with localhost's one.
  4408. * src/PeerListenCommand.cc
  4409. * src/DefaultBtInteractive.cc
  4410. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. Returns cached data without checking whether socket is readable
  4412. if the cache is available.
  4413. * src/PeerConnection.cc (receiveHandshake)
  4414. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4415. Included stdint.h
  4416. * src/common.h
  4417. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4418. Removed duplicate HAVE_GETTIMEOFDAY
  4419. * src/Makefile.am
  4420. * src/Makefile.in
  4421. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4422. Use interval as a minInterval when minInterval is not supplied.
  4423. * src/DefaultBtAnnounce.cc
  4424. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4425. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4426. attempt is failed, then 2nd attempt get kicked out more quickly.
  4427. And it is now static const member of DefaultBtAnnounce.
  4428. * src/DefaultBtAnnounce.h
  4429. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4430. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4431. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4432. * src/ActivePeerConnectionCommand.cc
  4433. * src/BtConstants.h
  4434. * src/BtRuntime.h
  4435. * src/DHTGetPeersCommand.cc
  4436. * src/DefaultBtAnnounce.cc
  4437. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4438. BtRuntime::MAX_PEERS.
  4439. * src/DefaultPeerStorage.h
  4440. * src/InitiatorMSEHandshakeCommand.cc
  4441. * src/PeerInitiateConnectionCommand.cc
  4442. * src/PeerInteractionCommand.cc
  4443. * src/PeerReceiveHandshakeCommand.cc
  4444. * src/TrackerWatcherCommand.cc
  4445. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Always Connect to _numNewConnection
  4447. * src/ActivePeerConnectionCommand.cc
  4448. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4449. Made `begin' unsigned int.
  4450. * src/GrowSegment.h
  4451. * src/Piece.cc
  4452. * src/Piece.h
  4453. * src/PiecedSegment.cc
  4454. * src/PiecedSegment.h
  4455. * src/Segment.h
  4456. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4457. Calculate piece hash when data is arrived if the data is arrived in
  4458. order. This removes additional read operation for hash calculation.
  4459. If the data is arrived in out of order, the hash is calucated when the
  4460. piece is completed. This is the same behavior as the old implementation.
  4461. * src/BtPieceMessage.cc
  4462. * src/DefaultBtProgressInfoFile.cc
  4463. * src/DefaultPieceStorage.cc
  4464. * src/DownloadCommand.cc
  4465. * src/DownloadCommand.h
  4466. * src/DownloadEngine.cc
  4467. * src/GrowSegment.cc
  4468. * src/GrowSegment.h
  4469. * src/Piece.cc
  4470. * src/Piece.h
  4471. * src/PiecedSegment.cc
  4472. * src/PiecedSegment.h
  4473. * src/Segment.h
  4474. * test/PieceTest.cc
  4475. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4476. Try to keep the ordering of outgoing piece message.
  4477. * src/DefaultBtMessageDispatcher.cc
  4478. (DefaultBtMessageDispatcher::sendMessages)
  4479. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4480. Fixed busy loop when error/hup epoll events occur.
  4481. * src/AbstractCommand.cc
  4482. * src/PeerAbstractCommand.cc
  4483. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4484. Added --bt-request-peer-speed-limit option, which was a constant
  4485. SLOW_SPEED_THRESHOLD.
  4486. * src/ActivePeerConnectionCommand.cc
  4487. * src/ActivePeerConnectionCommand.h
  4488. * src/BtConstants.h
  4489. * src/HelpItemFactory.cc
  4490. * src/OptionHandlerFactory.cc
  4491. * src/PeerReceiveHandshakeCommand.cc
  4492. * src/option_processing.cc
  4493. * src/prefs.cc
  4494. * src/prefs.h
  4495. * src/usage_text.h
  4496. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4497. Removed repeated call of getTopDirPath(). Instead, call it once and
  4498. cache the result.
  4499. * src/MultiDiskAdaptor.cc
  4500. * src/MultiDiskAdaptor.h
  4501. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4502. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4503. Fixed compile error on debian etch.
  4504. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4505. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4506. it is undefined.
  4507. * src/Util.cc (ULLONG_MAX)
  4508. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4509. Added epoll support. Use epoll if it is available. If not, use select.
  4510. When async dns is enabled in compile time, epoll support is enabled
  4511. only when aria2 is built with c-ares. This condition statement is
  4512. defined in a2io.h.
  4513. Currently aria2 supports both c-ares and ares, but ares is maintained
  4514. for quite a while and debian already has c-ares package, ares support
  4515. will be dropped in the future version.
  4516. * configure.ac
  4517. * src/AbstractCommand.cc
  4518. * src/AsyncNameResolver.cc
  4519. * src/AsyncNameResolver.h
  4520. * src/Command.cc
  4521. * src/Command.h
  4522. * src/DownloadEngine.cc
  4523. * src/DownloadEngine.h
  4524. * src/PeerAbstractCommand.cc
  4525. * src/SocketCore.cc
  4526. * src/SocketCore.h
  4527. * src/a2io.h
  4528. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4529. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4530. directive.
  4531. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4532. Do not do write operation to /dev/null file.
  4533. * src/LogFactory.cc
  4534. * src/SimpleLogger.cc
  4535. Replaced vasprintf with vsnprintf
  4536. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4537. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4538. * src/BtRequestMessage.cc
  4539. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4540. for segmentation fault caused by previous commit.
  4541. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4542. Reduced the usage of gettimeofday().
  4543. * src/DefaultBtMessageDispatcher.cc
  4544. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4545. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4546. * src/RequestSlot.cc
  4547. * src/RequestSlot.h
  4548. (RequestSlot::isTimeout)
  4549. Made RequestSlot have a reference to Piece object to avoid find
  4550. Piece repeatedly.
  4551. * src/DefaultBtMessageDispatcher.cc
  4552. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4553. * src/RequestSlot.cc
  4554. * src/RequestSlot.h
  4555. (RequestSlot::getPiece)
  4556. * test/DefaultBtMessageDispatcherTest.cc
  4557. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4558. * src/TimeA2.cc
  4559. * src/TimeA2.h
  4560. (Time::difference): New function.
  4561. (Time::elapsed): Done optimization.
  4562. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4563. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4564. directive.
  4565. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4566. * src/option_processing.cc: Added missing `defined' keyword to #if
  4567. directive.
  4568. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4569. Bump up version number to 0.13.2+1
  4570. * src/configure.ac
  4571. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4572. Refactored broken outstanding piece handling.
  4573. * src/DefaultPieceStorage.cc
  4574. * src/DefaultPieceStorage.h
  4575. * src/Piece.cc
  4576. * src/Piece.h
  4577. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4578. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4579. name collision of static variable and predefined macro.
  4580. * src/BtContext.cc
  4581. * src/BtContext.h
  4582. * src/CookieBoxFactory.cc
  4583. * src/CookieBoxFactory.h
  4584. * src/CookieParser.cc
  4585. * src/CookieParser.h
  4586. * src/DefaultBtContext.cc
  4587. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4588. * src/RequestGroup.cc
  4589. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4590. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4591. * Release 0.13.2
  4592. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4593. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4594. * po/fr.po
  4595. * po/ja.po
  4596. * po/aria2c.pot
  4597. * po/*.po
  4598. * po/*.gmo
  4599. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4600. Bump up version number to 0.13.2
  4601. * src/configure.ac
  4602. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4603. Refactord.
  4604. * src/RequestGroupMan.cc
  4605. (removeStoppedGroup)
  4606. (fillRequestGroupFromReserver)
  4607. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4608. Fixed compile error on Ubuntu.
  4609. * src/BtPieceMessage.cc
  4610. * src/MessageDigestHelper.cc
  4611. * src/Util.cc
  4612. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4613. Fixed compile error when configured with --disable-bittorrent
  4614. * test/DownloadHandlerFactoryTest.cc
  4615. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4616. Done make update-po
  4617. * po/aria2c.pot
  4618. * po/*.po
  4619. * po/*.gmo
  4620. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4621. Bump up version number to 0.13.2rc.
  4622. * src/configure.ac
  4623. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4624. Made option name bold. Updated SYNOPSIS to make it more readable.
  4625. * doc/aria2c.1.txt
  4626. * doc/aria2c.1
  4627. * doc/aria2c.1.html
  4628. * src/version_usage.cc
  4629. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Refactored. Use std::string instead of size and char*.
  4631. * Data.cc
  4632. * Data.h
  4633. * test/Data.cc
  4634. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. Added trimSelf(). Rewritten trim() to use trimSelf().
  4636. * Util.cc
  4637. * Util.h
  4638. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4639. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4640. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Fixed compile error when configured with --disable-metalink.
  4642. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4643. * test/FeatureConfigTest.cc
  4644. * test/DownloadHandlerFactoryTest.cc
  4645. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4646. Fixed compile error when configured with --without-gnutls
  4647. --without-openssl
  4648. * src/main.cc
  4649. * test/DefaultBtProgressInfoFileTest.cc
  4650. * test/SegmentManTest.cc
  4651. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. Fixed compile error with OpenSSL.
  4653. * src/IteratableChunkChecksumValidator.cc
  4654. * src/LibsslDHKeyExchange.h
  4655. * src/MessageDigestHelper.cc
  4656. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4657. Revert the default value of --max-concurrent-downloads to 5.
  4658. Revert the default value of --metalink-servers to 5.
  4659. Man pages was also updated.
  4660. * src/option_processing.cc
  4661. * doc/aria2c.1.txt
  4662. * doc/aria2c.1.html
  4663. * doc/aria2c.1
  4664. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4665. Returns const reference:
  4666. DownloadContext::getPieceHash, DownloadContext::getName,
  4667. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4668. BtContext::getInfoHashAsString,
  4669. * src/BtContext.h
  4670. * src/DefaultBtContext.cc
  4671. * src/DefaultBtContext.h
  4672. * src/DownloadContext.h
  4673. * src/SingleFileDownloadContext.h
  4674. * test/MockBtContext.h
  4675. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4676. * src/RequestGroup.h (getDir): Removed.
  4677. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4678. Returns const reference. The internal urlencode function was optimized
  4679. a little bit.
  4680. * src/Request.cc
  4681. * src/Request.h
  4682. * src/HttpRequest.cc
  4683. * src/HttpRequest.h
  4684. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4685. Defined option name and possible values as std::string to reduce
  4686. temporary string object creation in runtime.
  4687. * src/HelpItemFactory.cc
  4688. * src/LogFactory.cc
  4689. * src/Option.cc
  4690. * src/OptionHandlerFactory.cc
  4691. * src/option_processing.cc
  4692. * src/prefs.cc
  4693. * src/prefs.h
  4694. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4695. Return const reference.
  4696. * src/DownloadHandlerConstants.cc
  4697. * src/DownloadHandlerConstants.h
  4698. (getMetalinkExtensions)
  4699. (getMetalinkContentTypes)
  4700. (getBtExtensions)
  4701. (getBtContentTypes)
  4702. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4703. * src/HttpHeader.cc (get): Rewritten.
  4704. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4705. Make HttpHeader::getFirst(...) return const reference.
  4706. * src/HttpHeader.cc
  4707. * src/HttpHeader.h
  4708. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4710. it with V_TRUE.
  4711. * src/DefaultPieceStorage.cc
  4712. * src/DownloadCommand.cc
  4713. * src/FtpNegotiationCommand.cc
  4714. * src/HttpRequest.cc
  4715. * src/InitiateConnectionCommand.cc
  4716. * src/RequestGroup.cc
  4717. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4718. Made Option::get(...) return const reference of std::string.
  4719. * src/Option.cc
  4720. * src/Option.h
  4721. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4722. Replaced std:copy with insert.
  4723. * src/DefaultBtMessageDispatcher.cc
  4724. * src/DefaultPieceStorage.cc
  4725. * src/DownloadEngineFactory.cc
  4726. * src/RequestGroup.cc
  4727. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4728. Included SocketCore.h to fix compiler warning.
  4729. * src/InitiateConnectionCommand.cc
  4730. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4731. Put piece selection strategy algorithm to RarestPieceSelector class,
  4732. Added a switch to choose whether randomized selection so that unit
  4733. tests emit same results in, possibly, win32.
  4734. * src/DefaultPieceStorage.cc
  4735. * src/DefaultPieceStorage.h
  4736. * src/RarestPieceSelector.cc
  4737. * src/RarestPieceSelector.h
  4738. * test/DefaultPieceStorageTest.cc
  4739. * test/RarestPieceSelectorTest.cc
  4740. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4741. Don't pool connection if HTTP proxy is enabled.
  4742. * src/FtpFinishDownloadCommand.cc
  4743. * src/FtpNegotiationCommand.cc
  4744. * src/HttpSkipResponseCommand.cc
  4745. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4746. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4747. * src/AbstractCommand.cc
  4748. * src/AbstractCommand.h
  4749. * src/ActivePeerConnectionCommand.cc
  4750. * src/FtpInitiateConnectionCommand.cc
  4751. * src/HttpInitiateConnectionCommand.cc
  4752. * src/InitiateConnectionCommandFactory.cc
  4753. * src/PeerAbstractCommand.cc
  4754. * src/PeerAbstractCommand.h
  4755. * src/PeerInitiateConnectionCommand.cc
  4756. * src/TrackerWatcherCommand.cc
  4757. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4758. Sort RequestSlot in ascending order and manipulate them using
  4759. lower_bound.
  4760. * src/DefaultBtMessageDispatcher.cc
  4761. * src/DefaultBtMessageDispatcher.h
  4762. (getMessageQueue): Added const qualifier.
  4763. (getRequestSlots): Added const qualifier.
  4764. (sendMessages): Use empty() instead of size().
  4765. (doCancelSendingPieceAction): Use HandleEvent object.
  4766. (doAbortOutstandingRequestAction): Rewritten.
  4767. (doChokedAction): Rewritten.
  4768. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4769. (isOutstandingRequest): Rewritten.
  4770. (getOutstandingRequest): Rewritten.
  4771. (removeOutstandingRequest): Rewritten.
  4772. (addOutstandingRequest): Rewritten.
  4773. * src/RequestSlot.cc
  4774. * src/RequestSlot.h
  4775. (operator=): Rewritten.
  4776. (operator!=): New function.
  4777. (operator<): New function.
  4778. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4779. * src/DefaultBtRequestFactory.cc
  4780. (doChokedAction): Rewritten.
  4781. (removeCompletedPiece): Rewritten.
  4782. (removeTargetPiece): Rewritten.
  4783. (createRequestMessages): Added the debug log.
  4784. (createRequestMessagesOnEndGame: Added the debug log.
  4785. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4786. Added the debug log message.
  4787. * src/BtPieceMessage.cc (doReceivedAction)
  4788. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4790. used lower_bound to process them rather than linear search.
  4791. * src/DHTPeerAnnounceStorage.cc
  4792. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4793. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4794. peer has at least one completed piece.
  4795. * src/Peer.cc
  4796. * src/Peer.h
  4797. * src/PeerInteractionCommand.cc
  4798. * src/PeerSessionResource.cc
  4799. * src/PeerSessionResource.h
  4800. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4801. Removed unnecessary sorting
  4802. * src/DefaultPieceStorage (DefaultPieceStorage)
  4803. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4804. Rewritten the portion of the code that mangaes allowed fast indexes.
  4805. * src/PeerSessionResource.cc
  4806. * src/PeerSessionResource.h
  4807. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4808. Removed the invalid string including '\r' from ru.po and
  4809. did make update-po.
  4810. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4811. Added --log-level and --summary-interval to man page.
  4812. * doc/aria2c.1.txt
  4813. * doc/aria2c.1.html
  4814. * doc/aria2c.1
  4815. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4816. Added --log-level option to specify log level. Log messages under
  4817. the specified level are not output. Default value is `debug'.
  4818. * src/HelpItemFactory.cc
  4819. * src/LogFactory.cc
  4820. * src/LogFactory.h
  4821. * src/Logger.h
  4822. * src/OptionHandlerFactory.cc
  4823. * src/SimpleLogger.cc
  4824. * src/SimpleLogger.h
  4825. * src/main.cc
  4826. * src/option_processing.cc
  4827. * src/prefs.h
  4828. * src/usage_text.h
  4829. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4830. Print download progress summary of all parallel downloads in specified
  4831. interval, default 60 secs. While aria2 could download several files
  4832. in parallel (see -j option), it displayed just first download progress,
  4833. and the other downloads are hidden from the users. This new feature
  4834. prints all downloads currently in-progress to the console so that you
  4835. can check the status of all downloads. The interval can be adjusted
  4836. by --summary-interval option.
  4837. The progress readout is now cut so that all fits in the one line of
  4838. console.
  4839. * src/ConsoleStatCalc.cc
  4840. * src/ConsoleStatCalc.h
  4841. * src/HelpItemFactory.cc
  4842. * src/OptionHandlerFactory.cc
  4843. * src/RequestGroupMan.cc
  4844. * src/RequestGroupMan.h
  4845. * src/main.cc
  4846. * src/option_processing.cc
  4847. * src/prefs.h
  4848. * src/usage_text.h
  4849. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4850. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  4851. * src/DownloadEngine.cc (DownloadEngine)
  4852. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4853. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  4854. defined.
  4855. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  4856. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4857. Use erase+lower_bound+insert instead of sort.
  4858. * src/DefaultPieceStorage.cc (addPieceStats)
  4859. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  4861. * src/A2STR.cc
  4862. * src/A2STR.h
  4863. * src/OptionParser.cc (parse)
  4864. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4865. Defined fake filename `[tracker.announce]' as static const std::string.
  4866. * src/TrackerWatcherCommand.cc (createRequestGroup)
  4867. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4868. Defined default filename `index.html' as static const std::string
  4869. * src/SingleFileDownloadContext.cc
  4870. * src/SingleFileDownloadContext.h
  4871. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Defined "[MEMORY]" as static const std::string.
  4873. * src/MemoryBufferPreDownloadHandler.cc (execute)
  4874. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4875. Defined control file's version number as static const std::string.
  4876. * src/DefaultBtProgressInfoFile.cc
  4877. * src/DefaultBtProgressInfoFile.h
  4878. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4879. Use Request::METHOD_GET
  4880. * src/RequestGroup.cc (createNextCommandWithAdj)
  4881. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4882. Defined "OK", "ERR", "INPR" as static const std::string
  4883. * src/RequestGroupMan.cc (showDownloadResults)
  4884. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4885. Defined default client used in extended handshake as static const
  4886. std::string
  4887. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  4888. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4889. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  4890. * src/HttpConnection.cc (eraseConfidentialInfo)
  4891. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4892. Defined default ftp user and password as static const std::string
  4893. * src/AuthConfigFactory.cc
  4894. * src/AuthConfigFactory.h
  4895. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Defined strings used in netrc as static const std::string
  4897. * src/Netrc.cc
  4898. * src/Netrc.h
  4899. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Defined HTTP status as static const std::string
  4901. * src/AbstractProxyResponseCommand.cc
  4902. * src/HttpHeader.cc
  4903. * src/HttpHeader.h
  4904. * src/HttpResponse.cc
  4905. * src/HttpResponseCommand.cc
  4906. * src/HttpSkipResponseCommand.cc
  4907. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Defined "\r\n", "A", "I" as static const std::string
  4909. * src/A2STR.cc
  4910. * src/A2STR.h
  4911. * src/FtpConnection.cc
  4912. * src/FtpConnection.h
  4913. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4914. Added COLON_C(".") and used it in Request::parseUrl()
  4915. * src/A2STR.cc
  4916. * src/A2STR.h
  4917. * src/Request.cc (parseUrl)
  4918. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. Changed the type of padName from `const std::string&' to `const char*'.
  4920. * src/MSEHandshake.cc (verifyPadLength)
  4921. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4922. Defined "sha1" as static const std::string.
  4923. * src/MetalinkParserController.cc
  4924. * src/MetalinkParserController.h
  4925. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4926. Defined message digest algorithm name as static const std::string
  4927. * src/DHTTokenTracker.cc
  4928. * src/DHTUtil.cc
  4929. * src/DefaultBtContext.cc
  4930. * src/MSEHandshake.cc
  4931. * src/MessageDigestHelper.cc
  4932. * src/Peer.cc
  4933. * src/messageDigest.cc
  4934. * src/messageDigest.h
  4935. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4936. Made string literals used in SAX parser static const std::string.
  4937. * src/FileMetalinkParserState.cc
  4938. * src/FileMetalinkParserState.h
  4939. * src/FilesMetalinkParserState.cc
  4940. * src/FilesMetalinkParserState.h
  4941. * src/InitialMetalinkParserState.cc
  4942. * src/InitialMetalinkParserState.h
  4943. * src/MetalinkMetalinkParserState.cc
  4944. * src/MetalinkMetalinkParserState.h
  4945. * src/PiecesMetalinkParserState.cc
  4946. * src/PiecesMetalinkParserState.h
  4947. * src/ResourcesMetalinkParserState.cc
  4948. * src/ResourcesMetalinkParserState.h
  4949. * src/VerificationMetalinkParserState.cc
  4950. * src/VerificationMetalinkParserState.h
  4951. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4952. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4953. * src/A2STR.cc
  4954. * src/A2STR.h
  4955. * src/File.cc
  4956. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. Defined static const std::string IP("ip"), PORT("port") and use them
  4958. instead of string literals.
  4959. * src/DefaultPeerListProcessor.cc
  4960. * src/DefaultPeerListProcessor.h
  4961. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4962. Made string literals for torrent file processing static const
  4963. std::string.
  4964. * src/BtContext.cc
  4965. * src/BtContext.h
  4966. * src/DefaultBtContext.cc
  4967. * src/DefaultBtContext.h
  4968. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4969. Made string literal for tracker response static const std::string
  4970. * src/BtAnnounce.cc
  4971. * src/BtAnnounce.h
  4972. * src/DefaultBtAnnounce.cc
  4973. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4974. Use DHTMessage::T instead of "t".
  4975. * src/DHTMessageTracker.cc (messageArrived)
  4976. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4977. Made keyName static const. Made trimmed charset static const
  4978. std::string.
  4979. * src/Util.cc (getContentDispositionFilename)
  4980. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4981. Made USER_AGENT const. Made "/" static const std::string.
  4982. * src/A2STR.cc
  4983. * src/A2STR.h
  4984. * src/HttpRequest.cc
  4985. * src/HttpRequest.h
  4986. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4987. Made string listeral to static const std::string:
  4988. "Content-Range", "Content-Length"
  4989. * src/HttpHeader.cc
  4990. * src/HttpHeader.h
  4991. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4992. Made string listeral to static const std::string.
  4993. * src/HttpConnection.cc
  4994. * src/HttpHeader.cc
  4995. * src/HttpHeader.h
  4996. * src/HttpResponse.cc
  4997. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. Made string listeral to static const std::string.
  4999. * src/A2STR.cc
  5000. * src/A2STR.h
  5001. * src/SimpleLogger.cc
  5002. * src/SimpleLogger.h
  5003. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5004. Made string literal to static const std::string.
  5005. Rewritten CookieParser::setField.
  5006. * src/A2STR.cc
  5007. * src/A2STR.h
  5008. * src/CookieBoxFactory.cc
  5009. * src/CookieBoxFactory.h
  5010. * src/CookieParser.cc
  5011. * src/CookieParser.h
  5012. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5013. Made string literal to static const std::string
  5014. * src/DHTAbstractMessage.cc
  5015. * src/DHTAnnouncePeerMessage.cc
  5016. * src/DHTAnnouncePeerMessage.h
  5017. * src/DHTAnnouncePeerReplyMessage.cc
  5018. * src/DHTAnnouncePeerReplyMessage.h
  5019. * src/DHTFindNodeMessage.cc
  5020. * src/DHTFindNodeMessage.h
  5021. * src/DHTFindNodeReplyMessage.cc
  5022. * src/DHTFindNodeReplyMessage.h
  5023. * src/DHTGetPeersMessage.cc
  5024. * src/DHTGetPeersMessage.h
  5025. * src/DHTGetPeersReplyMessage.cc
  5026. * src/DHTGetPeersReplyMessage.h
  5027. * src/DHTMessage.cc
  5028. * src/DHTMessage.h
  5029. * src/DHTMessageFactoryImpl.cc
  5030. * src/DHTMessageReceiver.cc
  5031. * src/DHTPingMessage.cc
  5032. * src/DHTPingMessage.h
  5033. * src/DHTPingReplyMessage.cc
  5034. * src/DHTPingReplyMessage.h
  5035. * src/DHTQueryMessage.cc
  5036. * src/DHTQueryMessage.h
  5037. * src/DHTResponseMessage.cc
  5038. * src/DHTResponseMessage.h
  5039. * src/DHTUnknownMessage.cc
  5040. * src/DHTUnknownMessage.h
  5041. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5042. Made string literal to static const std::string
  5043. * src/BtChokeMessage.cc (toString)
  5044. * src/BtHaveAllMessage.cc (toString)
  5045. * src/BtHaveNoneMessage.cc (toString)
  5046. * src/BtInterestedMessage.cc (toString)
  5047. * src/BtNotInterestedMessage.cc (toString)
  5048. * src/BtUnchokeMessage.cc (toString)
  5049. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5050. Replaced "" with static const variable A2STR::NIL.
  5051. Replaced string comparison against "" with std::string::empty().
  5052. Added PROTO_* to Request class and use them as a protocol string
  5053. constant.
  5054. Made "started", "stopped", "completed" static const variable in
  5055. AnnounceList class.
  5056. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. Updated translations. Great thanks to translators.
  5058. * po/ca.po
  5059. * po/de.po
  5060. * po/fr.po
  5061. * po/it.po
  5062. * po/ja.po
  5063. * po/ru.po
  5064. * po/zh_CN.po
  5065. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5066. Updated man page; categorized options and fixed typo.
  5067. * doc/aria2c.1.txt
  5068. * doc/aria2c.1.html
  5069. * doc/aria2c.1
  5070. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5071. Removed const ref
  5072. * src/MetalinkEntry.cc (AddProtocolPreference)
  5073. * src/RequestGroup.cc (FindServerHostByHostname)
  5074. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5075. Rewritten Accept-Features handling.
  5076. * src/HttpRequestCommand.cc (createHttpRequest)
  5077. * src/a2functional.h
  5078. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5079. Changed method signature:
  5080. DHTAbstractNodeLookupTask::toEntries
  5081. * src/DHTAbstractNodeLookupTask.cc
  5082. * src/DHTAbstractNodeLookupTask.h
  5083. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5084. Changed method signature:
  5085. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5086. * src/BtContext.h
  5087. * src/DefaultBtContext.cc
  5088. * src/DefaultBtContext.h
  5089. * src/DefaultBtInteractive.cc
  5090. * test/DefaultBtContextTest.cc
  5091. * test/MockBtContext.h
  5092. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5093. Changed method signature:
  5094. MultiFileAllocationIterator::makeDiskWriterEntries
  5095. * src/MultiFileAllocationIterator.cc
  5096. * src/MultiFileAllocationIterator.h
  5097. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5098. Changed method sinature:
  5099. MetalinkEntry::toFileEntry,
  5100. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5101. Metalinker::queryEntry
  5102. * src/Metalink2RequestGroup.cc
  5103. * src/MetalinkEntry.cc
  5104. * src/MetalinkEntry.h
  5105. * src/MetalinkHelper.cc
  5106. * src/MetalinkHelper.h
  5107. * src/Metalinker.cc
  5108. * src/Metalinker.h
  5109. * src/main.cc
  5110. * test/MetalinkHelperTest.cc
  5111. * test/MetalinkerTest.cc
  5112. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5113. Changed method sinature:
  5114. RequestGroup::getURIs
  5115. * src/RequestGroup.cc
  5116. * src/RequestGroup.h
  5117. * test/Metalink2RequestGroupTest.cc
  5118. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5119. Changed method signature:
  5120. PeerListProcessor::extractPeer
  5121. * src/CompactPeerListProcessor.cc
  5122. * src/CompactPeerListProcessor.h
  5123. * src/DefaultBtAnnounce.cc
  5124. * src/DefaultPeerListProcessor.cc
  5125. * src/DefaultPeerListProcessor.h
  5126. * src/DelegatingPeerListProcessor.cc
  5127. * src/DelegatingPeerListProcessor.h
  5128. * src/PeerListProcessor.h
  5129. * src/UTPexExtensionMessage.cc
  5130. * test/DefaultPeerListProcessorTest.cc
  5131. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Changed method signature:
  5133. BtRequestFactory::createRequestMessages,
  5134. BtRequestFactory::createRequestMessagesOnEndGame
  5135. * src/BtRequestFactory.h
  5136. * src/DefaultBtInteractive.cc
  5137. * src/DefaultBtRequestFactory.cc
  5138. * src/DefaultBtRequestFactory.h
  5139. * test/DefaultBtRequestFactoryTest.cc
  5140. * test/MockBtRequestFactory.h
  5141. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5142. Changed method signature:
  5143. PieceStorage::getInFlightPieces
  5144. * src/DefaultBtProgressInfoFile.cc
  5145. * src/DefaultPieceStorage.cc
  5146. * src/DefaultPieceStorage.h
  5147. * src/PieceStorage.h
  5148. * src/UnknownLengthPieceStorage.cc
  5149. * src/UnknownLengthPieceStorage.h
  5150. * test/DefaultBtProgressInfoFileTest.cc
  5151. * test/MockPieceStorage.h
  5152. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5153. Changed method signature:
  5154. PostDownloadHandler::getNextRequestGroups
  5155. Metalink2RequestGroup::generate
  5156. RequestGroup::postDownloadProcessing
  5157. * src/BtPostDownloadHandler.cc
  5158. * src/BtPostDownloadHandler.h
  5159. * src/Metalink2RequestGroup.cc
  5160. * src/Metalink2RequestGroup.h
  5161. * src/MetalinkPostDownloadHandler.cc
  5162. * src/MetalinkPostDownloadHandler.h
  5163. * src/PostDownloadHandler.h
  5164. * src/RequestGroup.cc
  5165. * src/RequestGroup.h
  5166. * src/RequestGroupMan.cc
  5167. * src/main.cc
  5168. * test/BtPostDownloadHandlerTest.cc
  5169. * test/Metalink2RequestGroupTest.cc
  5170. * test/MetalinkPostDownloadHandlerTest.cc
  5171. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5172. Rewritten AccRequestGroup
  5173. * src/main.cc
  5174. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. Rewritten.
  5176. * src/TaggedItem.cc (toTagString)
  5177. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5178. Rewritten Accept-Features handling.
  5179. * src/HttpRequestCommand.cc (createHttpRequest)
  5180. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5181. Rewritten accept types handling.
  5182. * HttpRequest.cc (createRequest)
  5183. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5184. Rewritten
  5185. * src/FeatureConfig.cc (featureSummary)
  5186. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5187. Changed method signature:
  5188. PeerStorage::getActivePeers
  5189. * src/DHTPeerAnnounceEntry.cc
  5190. * src/DefaultPeerStorage.cc
  5191. * src/DefaultPeerStorage.h
  5192. * src/PeerStorage.h
  5193. * test/DefaultPeerStorageTest.cc
  5194. * test/MockPeerStorage.h
  5195. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5196. Changed method signature:
  5197. DHTPeerAnnounceStorage::getPeers,
  5198. DHTPeerAnnounceEntry::getPeers
  5199. * src/DHTGetPeersMessage.cc
  5200. * src/DHTPeerAnnounceEntry.cc
  5201. * src/DHTPeerAnnounceEntry.h
  5202. * src/DHTPeerAnnounceStorage.cc
  5203. * src/DHTPeerAnnounceStorage.h
  5204. * test/DHTAnnouncePeerMessageTest.cc
  5205. * test/DHTPeerAnnounceEntryTest.cc
  5206. * test/DHTPeerAnnounceStorageTest.cc
  5207. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5208. Changed method signature:
  5209. NameResolver::resolve
  5210. * src/DHTEntryPointNameResolveCommand.cc
  5211. * src/InitiateConnectionCommand.cc
  5212. * src/NameResolver.cc
  5213. * src/NameResolver.h
  5214. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5215. Changed method signature:
  5216. PieceStorage::getAdvertisedPieceIndexes
  5217. * src/DefaultBtInteractive.cc
  5218. * src/DefaultPieceStorage.cc
  5219. * src/DefaultPieceStorage.h
  5220. * src/PieceStorage.h
  5221. * src/UnknownLengthPieceStorage.h
  5222. * test/MockPieceStorage.h
  5223. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5224. Changed method signature:
  5225. SegmentMan::getInFlightSegment
  5226. * src/AbstractCommand.cc
  5227. * src/SegmentMan.cc
  5228. * src/SegmentMan.h
  5229. * test/SegmentManTest.cc
  5230. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5231. Changed method signature:
  5232. DHTAbstractNodeLookupTask::getNodesFromMessage
  5233. * src/DHTAbstractNodeLookupTask.cc
  5234. * src/DHTAbstractNodeLookupTask.h
  5235. * src/DHTNodeLookupTask.cc
  5236. * src/DHTNodeLookupTask.h
  5237. * src/DHTPeerLookupTask.cc
  5238. * src/DHTPeerLookupTask.h
  5239. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5241. * src/AbstractCommand.cc
  5242. * src/BtCheckIntegrityEntry.cc
  5243. * src/BtCheckIntegrityEntry.h
  5244. * src/BtFileAllocationEntry.cc
  5245. * src/BtFileAllocationEntry.h
  5246. * src/BtSetup.cc
  5247. * src/BtSetup.h
  5248. * src/CheckIntegrityCommand.cc
  5249. * src/CheckIntegrityEntry.h
  5250. * src/ChecksumCheckIntegrityEntry.cc
  5251. * src/ChecksumCheckIntegrityEntry.h
  5252. * src/DHTSetup.cc
  5253. * src/DHTSetup.h
  5254. * src/DownloadEngine.cc
  5255. * src/FileAllocationCommand.cc
  5256. * src/FileAllocationEntry.h
  5257. * src/RequestGroup.cc
  5258. * src/RequestGroup.h
  5259. * src/RequestGroupMan.cc
  5260. * src/RequestGroupMan.h
  5261. * src/StreamCheckIntegrityEntry.cc
  5262. * src/StreamCheckIntegrityEntry.h
  5263. * src/StreamFileAllocationEntry.cc
  5264. * src/StreamFileAllocationEntry.h
  5265. * src/TrackerWatcherCommand.cc
  5266. * src/a2functional.h
  5267. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5268. Changed method signature:
  5269. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5270. DHTBucket::getGoodNodes,
  5271. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5272. * src/BNode.cc
  5273. * src/BNode.h
  5274. * src/DHTAbstractNodeLookupTask.cc
  5275. * src/DHTAutoSaveCommand.cc
  5276. * src/DHTBucket.cc
  5277. * src/DHTBucket.h
  5278. * src/DHTBucketRefreshTask.cc
  5279. * src/DHTFindNodeMessage.cc
  5280. * src/DHTGetPeersMessage.cc
  5281. * src/DHTRoutingTable.cc
  5282. * src/DHTRoutingTable.h
  5283. * test/BNodeTest.cc
  5284. * test/DHTBucketTest.cc
  5285. * test/DHTRoutingTableTest.cc
  5286. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5287. In piece selection functions, Pass std::deque<...> by reference rather
  5288. than returning it.
  5289. * src/BitfieldMan.cc
  5290. * src/BitfieldMan.h
  5291. * src/DefaultBtRequestFactory.cc
  5292. * src/DefaultPieceStorage.cc
  5293. * src/Piece.cc
  5294. * src/Piece.h
  5295. * test/BitfieldManTest.cc
  5296. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Implemented rarest piece first piece selection strategy.
  5298. * src/AbstractBtMessage.cc
  5299. * src/AbstractBtMessage.h
  5300. * src/BitfieldMan.cc
  5301. * src/BitfieldMan.h
  5302. * src/BtBitfieldMessage.cc
  5303. * src/BtHaveAllMessage.cc
  5304. * src/BtHaveMessage.cc
  5305. * src/DefaultPieceStorage.cc
  5306. * src/DefaultPieceStorage.h
  5307. * src/PeerInteractionCommand.cc
  5308. * src/PieceStorage.h
  5309. * src/UnknownLengthPieceStorage.h
  5310. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5311. Rewritten readData and writeData.
  5312. * src/MultiDiskAdaptor.cc
  5313. * src/MultiDiskAdaptor.h
  5314. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5315. Move \n out of the message "Usage: ...".
  5316. * src/version_usage.cc
  5317. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. Bump up version number to 0.13.2b.
  5319. * configure.ac
  5320. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5321. Added const qualifier to argument Exception& e.
  5322. * src/Logger.h
  5323. * src/SimpleLogger.cc
  5324. * src/SimpleLogger.h
  5325. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Pool connection when CWD, SIZE command fails.
  5327. * src/FtpNegotiationCommand.cc
  5328. * src/FtpNegotiationCommand.h
  5329. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5331. * src/HttpResponseCommand.cc
  5332. * src/HttpSkipResponseCommand.cc
  5333. * src/HttpSkipResponseCommand.h
  5334. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5335. Pool connection when a server returns 4xx, 5xx responses.
  5336. * src/HttpNullDownloadCommand.cc
  5337. * src/HttpNullDownloadCommand.h
  5338. * src/HttpResponse.cc
  5339. * src/HttpResponse.h
  5340. * src/HttpResponseCommand.cc
  5341. * src/HttpResponseCommand.h
  5342. * test/HttpResponseTest.cc
  5343. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5344. Print usage when no URL is specifed or bad command-line option is
  5345. specified.
  5346. * src/HelpItemFactory.cc
  5347. * src/help_tags.h
  5348. * src/option_processing.cc
  5349. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5350. Removed duplicate log message.
  5351. * src/AbstractCommand.cc (asyncResolveHostname)
  5352. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5353. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5354. Changed -j option's default value from 5 to 1.
  5355. Added new examples using protocol auto detection feature.
  5356. Removed -T, -M usage where it can be omitted.
  5357. * doc/aria2c.1.txt
  5358. * doc/aria2c.1.html
  5359. * doc/aria2c.1.txt
  5360. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5361. Updated command-line usage text, so that it tells users that they
  5362. can specify any number of torrent files and metalink files in
  5363. command-line.
  5364. * src/version_usage.cc
  5365. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5366. Changed the default value of -j option to 1.
  5367. * src/HelpItemFactory.cc
  5368. * src/option_processing.cc
  5369. * src/usage_text.h
  5370. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5371. Added the ability to reuse connection in FTP and it is enabled by
  5372. default. It can be disabled by --ftp-reuse-connection=false option.
  5373. * src/Command.cc
  5374. * src/DownloadCommand.cc
  5375. * src/FtpDownloadCommand.cc
  5376. * src/FtpDownloadCommand.h
  5377. * src/FtpFinishDownloadCommand.cc
  5378. * src/FtpFinishDownloadCommand.h
  5379. * src/FtpInitiateConnectionCommand.cc
  5380. * src/FtpNegotiationCommand.cc
  5381. * src/FtpNegotiationCommand.h
  5382. * src/HelpItemFactory.cc
  5383. * src/Makefile.am
  5384. * src/Makefile.in
  5385. * src/OptionHandlerFactory.cc
  5386. * src/option_processing.cc
  5387. * src/prefs.h
  5388. * src/usage_text.h
  5389. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Call Command::transitStatus() before calling Command::execute(),
  5391. so that the status change made in execute() is not cleared.
  5392. * src/DownloadEngine.cc
  5393. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5394. Removed forward declaration of SocketCore class.
  5395. * src/HttpDownloadCommand.h
  5396. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5397. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5398. in InitiateConnectionCommandFactory. They should be set only when
  5399. the protocol is HTTP or HTTPS.
  5400. * src/InitiateConnectionCommandFactory.cc
  5401. * src/RequestGroup.cc
  5402. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5403. Fixed infinite loop in checksum checking.
  5404. * src/IteratableChecksumValidator.cc
  5405. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5406. Set _supportsPersistentConnection to true by default.
  5407. * src/Request.cc
  5408. * src/RequestGroup.cc
  5409. * test/HttpRequestTest.cc
  5410. * test/RequestTest.cc
  5411. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5412. Added timeout to socket pool. The default timeout is 15 seconds,
  5413. which is the same value Apache uses.
  5414. * src/DownloadEngine.cc
  5415. * src/DownloadEngine.h
  5416. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Fixed misuse of multimap::find()
  5418. * src/HttpHeader.cc
  5419. * test/HttpHeaderTest.cc
  5420. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5421. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5422. option.
  5423. The asynchronous DNS is not capable of IPv6 yet.
  5424. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5425. least for HTTP download.
  5426. * src/AbstractCommand.cc
  5427. * src/AbstractCommand.h
  5428. * src/AsyncNameResolver.cc
  5429. * src/AsyncNameResolver.h
  5430. * src/DHTEntryPointNameResolveCommand.cc
  5431. * src/DHTEntryPointNameResolveCommand.h
  5432. * src/DownloadEngine.cc
  5433. * src/DownloadEngine.h
  5434. * src/FtpInitiateConnectionCommand.cc
  5435. * src/FtpInitiateConnectionCommand.h
  5436. * src/HelpItemFactory.cc
  5437. * src/HttpInitiateConnectionCommand.cc
  5438. * src/HttpInitiateConnectionCommand.h
  5439. * src/InitiateConnectionCommand.cc
  5440. * src/InitiateConnectionCommand.h
  5441. * src/Makefile.am
  5442. * src/Makefile.in
  5443. * src/NameResolver.cc
  5444. * src/NameResolver.h
  5445. * src/OptionHandlerFactory.cc
  5446. * src/SocketCore.cc
  5447. * src/SocketCore.h
  5448. * src/Util.cc
  5449. * src/Util.h
  5450. * src/option_processing.cc
  5451. * src/prefs.h
  5452. * src/usage_text.h
  5453. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5454. Updated man page: --quiet, --header were added.
  5455. --metalink-servers and --enable-http-keep-alive option were updated.
  5456. * doc/aria2c.1
  5457. * doc/aria2c.1.html
  5458. * doc/aria2c.1.txt
  5459. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5460. Enable HTTP keep-alive by default.
  5461. * src/HelpItemFactory.cc
  5462. * src/option_processing.cc
  5463. * src/usage_text.h
  5464. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5465. Disable http keep-alive if the remote server is not HTTP/1.1.
  5466. * src/HttpConnection.cc
  5467. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5468. Receive content body of 302 response so that the connection can be
  5469. reused later when http keep-alive is enabled.
  5470. * src/HttpNullDownloadCommand.cc
  5471. * src/HttpNullDownloadCommand.h
  5472. * src/HttpResponseCommand.cc
  5473. * src/HttpResponseCommand.h
  5474. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5475. const SharedHandle<Request> -> const SharedHandle<Request>&
  5476. * src/FtpDowndloadCommand.cc
  5477. * src/FtpDowndloadCommand.h
  5478. * src/HttpDownloadCommand.cc
  5479. * src/HttpDownloadCommand.h
  5480. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5481. Fixed the bug that the control file(.aria2 file) is not renamed
  5482. according to tryAutoFileRenaming().
  5483. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5484. its control file exist, use them and continue download.
  5485. The old implementation didn't take into account of control file's
  5486. existence, so basically you couldn't continue download of renamed file.
  5487. * src/BtProgressInfoFile.h
  5488. * src/DefaultBtProgressInfoFile.cc
  5489. * src/DefaultBtProgressInfoFile.h
  5490. * src/NullProgressInfoFile.h
  5491. * src/RequestGroup.cc
  5492. * test/DefaultBtProgressInfoFileTest.cc
  5493. * test/MockBtProgressInfoFile.h
  5494. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5495. Change the default value of --metalink-servers option from `5' to `1'.
  5496. * src/HelpItemFactory.cc
  5497. * src/option_processing.cc
  5498. * src/usage_text.h
  5499. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. Reimplemented transparent metalink using Accept request header.
  5501. * src/HttpRequest.cc
  5502. * src/HttpRequest.h
  5503. * src/HttpRequestCommand.cc
  5504. * src/Metalink2RequestGroup.cc
  5505. * src/RequestGroup.cc
  5506. * src/RequestGroup.h
  5507. * test/HttpRequestTest.cc
  5508. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5509. Bump up version number to 0.13.2a
  5510. * configure.ac
  5511. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5512. Updated configure.ac using the result of autoscan.
  5513. * configure.ac
  5514. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5515. Fixed compilation error without gcrypt/openssl.
  5516. * src/DownloadCommand.cc
  5517. * src/DownloadCommand.h
  5518. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. Reorganized version information so that it can be displayed in a
  5520. standard terminal screen without scrolling.
  5521. Removed http, ftp from Configuration section, because they are always
  5522. enabled.
  5523. * src/FeatureConfig.cc
  5524. * src/FeatureConfig.h
  5525. * src/main.cc
  5526. * src/messageDigest.cc
  5527. * src/messageDigest.h
  5528. * src/version_usage.cc
  5529. * test/FeatureConfigTest.cc
  5530. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. Masked user ID in log.
  5532. * src/FtpConnection.cc (sendUser)
  5533. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Removed query part from filename in HTTP download. The query part means
  5535. the substring after "?" in URL. Firefox seems do the same thing.
  5536. A query part is sometimes very long and not suitable to filename,
  5537. so I think it is better to remove it from filename.
  5538. * src/HttpRequest.cc
  5539. * src/HttpRequest.h
  5540. * src/Request.cc
  5541. * src/Request.h
  5542. * test/HttpRequestTest.cc
  5543. * test/RequestTest.cc
  5544. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5545. Rewritten Exception class. Throw exception object, not its pointer and
  5546. catch by reference, so that remove problematic delete operator for
  5547. catched exception.
  5548. * src/Exception.cc
  5549. * src/Exception.h
  5550. * test/ExceptionTest.cc
  5551. * src/*: All files throwing/catching exception.
  5552. * test/*: All files throwing/catching exception.
  5553. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5554. Now auto protocol detection is enabled without -Z option.
  5555. But there is a important difference between with/without -Z optoin.
  5556. For example, if you type:
  5557. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5558. then, aria2 interprets there are 3 request groups:
  5559. (1) http://host/file, http://mirror/file <-- multi-source download
  5560. (2) file1.torrent
  5561. (3) file2.metalink
  5562. On the other hand, if you invoke above command with -Z option, it is
  5563. interpreted as 4 request groups:
  5564. (1) http://host/file
  5565. (2) file1.torrent
  5566. (3) file2.metalink
  5567. (4) http://mirror/file
  5568. I think usually user don't mix multi-source URLs and torrent files, so
  5569. there is no big problem here.
  5570. * src/main.cc
  5571. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5572. Fixed the bug that causes segmentaion fault when reading XML containing
  5573. unescapsed character like '&'.
  5574. Also a modification was made which avoids adding unnecessary
  5575. characters stack and appending unused string.
  5576. * src/ExpatMetalinkProcessor.cc
  5577. * src/FileMetalinkParserState.h
  5578. * src/FilesMetalinkParserState.h
  5579. * src/FinMetalinkParserState.h
  5580. * src/HashMetalinkParserState.h
  5581. * src/InitialMetalinkParserState.h
  5582. * src/LanguageMetalinkParserState.h
  5583. * src/MetalinkMetalinkParserState.h
  5584. * src/MetalinkParserState.h
  5585. * src/MetalinkParserStateMachine.cc
  5586. * src/MetalinkParserStateMachine.h
  5587. * src/OSMetalinkParserState.h
  5588. * src/PieceHashMetalinkParserState.h
  5589. * src/PiecesMetalinkParserState.h
  5590. * src/ResourcesMetalinkParserState.h
  5591. * src/SizeMetalinkParserState.h
  5592. * src/SkipTagMetalinkParserState.h
  5593. * src/URLMetalinkParserState.h
  5594. * src/VerificationMetalinkParserState.h
  5595. * src/VersionMetalinkParserState.h
  5596. * src/XML2SAXMetalinkProcessor.cc
  5597. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5598. Added StringFormat class, which internally calls vasprintf.
  5599. operator<< is defined for this class, so it can be used with iostream
  5600. classes nicely. SimpleLogger and following functions are rewritten
  5601. using StringFormat class.
  5602. Besides, now Logger class's methods are non-const, many classes
  5603. that has a const Logger* as a member variable are modified to remove
  5604. const qualifier from the variable declaration.
  5605. * src/HelpItemFactory.cc
  5606. * src/Request.cc
  5607. * src/SimpleLogger.cc
  5608. * src/StringFormat.cc
  5609. * src/StringFormat.h
  5610. * src/Util.cc
  5611. * src/option_processing.cc
  5612. * src/version_usage.cc
  5613. * test/StringFormatTest.cc
  5614. * src/*.h: The classes that has const Logger* as a member variable.
  5615. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5616. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5617. failed. Also fixed memory link when exception is thrown there.
  5618. * src/main.cc (AccRequestGroup)
  5619. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. Added build-in "Accept-Features" support. For now only "metalink" is
  5621. used in this header field.
  5622. This "metalink" value is removed from the list when connecting URLs
  5623. fed by metalink file to avoid loop in "transparent" metlaink.
  5624. * src/HttpRequest.cc
  5625. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5626. header is also held in this variable. Also renamed setUserHeaders as
  5627. addHeader and it was rewritten to add header not just to clear the old
  5628. value.
  5629. * src/HttpRequestCommand.cc
  5630. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5631. from "Accept-Features" list.
  5632. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5633. default.
  5634. * src/RequestGroup.h
  5635. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5636. * src/a2functional.h: Included <string> because Concat class depends on
  5637. it.
  5638. * test/HttpRequestTest.cc
  5639. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5640. Added comment
  5641. * src/RequestGroup.cc (createNextCommand)
  5642. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5643. Capitalized METHOD_GET and METHOD_HEAD
  5644. * src/Request.cc
  5645. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5646. Added getDownloadResults() method
  5647. * src/RequestGroupMan.cc
  5648. * src/RequestGroupMan.h
  5649. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5650. Fixed the bug that aria2 exits when commands is empty() but
  5651. _routineCommands are not.
  5652. * src/DownloadEngine.cc
  5653. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Use the default value pulled from Option object in HelpItemFactory.
  5655. except options whose defualt value is embedded in a usage text.
  5656. * src/HelpItemFactory.cc
  5657. * src/HelpItemFactory.h
  5658. * src/option_processing.cc
  5659. * src/version_usage.cc
  5660. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5661. Added --quiet option to make aria2 quiet (no console output).
  5662. --quiet option is tagged with ADVANCED.
  5663. * src/HelpItemFactory.cc
  5664. * src/LogFactory.cc
  5665. * src/LogFactory.h
  5666. * src/MultiUrlRequestInfo.cc
  5667. * src/MultiUrlRequestInfo.h
  5668. * src/NullStatCalc.h: New class. This class prints nothing.
  5669. * src/OptionHandlerFactory.cc
  5670. * src/main.cc
  5671. * src/option_processing.cc
  5672. * src/prefs.h
  5673. * src/usage_text.h
  5674. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5675. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5676. * src/HelpItemFactory.cc (createHelpItems):
  5677. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Fixed compilation error in ExpatMetalinkProcessor.cc
  5679. * src/ExpatMetalinkProcessor.cc
  5680. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5681. Reuse socket if the origin server supports HTTP keep-alive and
  5682. --enable-http-keep-alive or --enable-http-pipelining is given.
  5683. The current implementation doesn't reuse the connections established
  5684. against proxy server.
  5685. * src/AbstractCommand.cc
  5686. * src/DownloadEngine.cc
  5687. * src/DownloadEngine.h
  5688. * src/HttpDownloadCommand.cc
  5689. * src/HttpInitiateConnectionCommand.cc
  5690. * src/HttpResponseCommand.cc
  5691. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5692. Rewritten HTTP keep-alive and pipelining routine.
  5693. * src/AbstractCommand.cc
  5694. * src/HttpConnection.cc
  5695. * src/HttpDownloadCommand.cc
  5696. * src/HttpRequest.cc
  5697. * src/HttpRequestCommand.cc
  5698. * src/HttpResponseCommand.cc
  5699. * src/Request.cc
  5700. * src/Request.h
  5701. * src/RequestGroup.cc
  5702. * test/HttpRequestTest.cc
  5703. * test/HttpResponseTest.cc
  5704. * test/RequestTest.cc
  5705. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5706. Added missing setUserHeaders call
  5707. * src/HttpRequestCommand.cc
  5708. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5709. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5710. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5711. waste of time because it is more likey false.
  5712. * src/FileAllocationDispatcherCommand.cc (execute)
  5713. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5714. Now HTTP status and version are a member variable of HttpHeader.
  5715. HTTP status is processed as a string, not integer.
  5716. * src/AbstractProxyResponseCommand.cc
  5717. * src/HttpConnection.cc
  5718. * src/HttpHeader.cc
  5719. * src/HttpHeader.h
  5720. * src/HttpHeaderProcessor.cc
  5721. * src/HttpHeaderProcessor.h
  5722. * src/HttpResponse.cc
  5723. * src/HttpResponse.h
  5724. * test/HttpHeaderProcessorTest.cc
  5725. * test/HttpResponseTest.cc
  5726. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5727. Added --header option. You can specify any number of additional HTTP headers
  5728. like:
  5729. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5730. Unlike other commad-line option, you can use --header option multiple times.
  5731. * src/HelpItemFactory.cc
  5732. * src/HttpRequest.{cc, h}
  5733. * src/HttpRequestCommand.cc
  5734. * src/OptionHandlerFactory.cc
  5735. * src/OptionHandlerImpl.h
  5736. * src/option_processing.cc
  5737. * src/prefs.h
  5738. * src/usage_text.h
  5739. * test/HttpRequestTest.cc (testUserHeaders)
  5740. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5741. Eliminates the time lag between sequential downloads and commands in
  5742. the same RequestGroup.
  5743. In old implementation, aria2 occasionally waits 1 seconds before
  5744. executing next command or RequestGroup.
  5745. This is really a waste of time, and new implementation eliminates
  5746. this unnecessary time lag.
  5747. * src/AbstractCommand.cc
  5748. * src/AutoSaveCommand.cc
  5749. * src/CheckIntegrityCommand.cc
  5750. * src/Command.{cc, h}
  5751. * src/DownloadEngine.{cc, h}
  5752. * src/DownloadEngineFactory.cc
  5753. * src/FileAllocationCommand.cc
  5754. * src/FileAllocationDispatcherCommand.cc
  5755. * src/FillRequestGroupCommand.cc
  5756. * src/FtpInitiateConnectionCommand.cc
  5757. * src/HaveEraseCommand.cc
  5758. * src/HttpInitiateConnectionCommand.cc
  5759. * src/HttpResponseCommand.cc
  5760. * src/RealtimeCommand.cc
  5761. * src/RequestGroup.cc
  5762. * src/RequestGroupMan.cc
  5763. * src/StreamFileAllocationEntry.cc
  5764. * src/TimeBasedCommand.{cc, h}
  5765. * src/TimedHaltCommand.cc
  5766. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5767. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5768. keyword explicit and SharedHandle's default constructor initializes
  5769. its internal obj to null, old implementation initializes it using
  5770. obj's default constructor.
  5771. To assign null, write SharedHandle<T> x(...); x.reset();
  5772. TODO: test/SharedHandleTest.cc needs more tests.
  5773. * src/SharedHandle.h
  5774. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5775. Fixed type in man page.
  5776. * doc/aria2c.1.txt
  5777. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5778. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5779. * src/SimpleLogger.{cc, h}
  5780. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. Implemented auto protocol detection.
  5782. Now you can do:
  5783. aria2c -Z http://host/file file1.torrent file2.metalink
  5784. (Note: -Z option is required for auto protcol detection.)
  5785. Then aria2c downloads 3 files simultaneously:
  5786. 1. http://host/file
  5787. 2. file1.torrent <-- read local torrent file
  5788. 3. file2.metalink <-- read local Metalink file.
  5789. Same thing goes with -i option. Assume your uris.txt contans:
  5790. http://host/file
  5791. file1.torrent
  5792. file2.metalink
  5793. Then you can do: aria2c -i uris.txt
  5794. (Note: -Z option is not needed if -i option is given.)
  5795. * src/main.cc
  5796. * src/ProtocolDetector.{cc, h}
  5797. * test/ProtocolDetectorTest.cc
  5798. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5800. installed
  5801. * src/ARC4Encryptor.h
  5802. * src/ARC4Decryptor.h
  5803. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5804. Renamed argument from 'errno' to 'err', since errno is confused with
  5805. errno defined in errno.h.
  5806. * src/LibgcryptARC4Decryptor.h
  5807. * src/LibgcryptARC4Context.h
  5808. * src/LibgcryptDHKeyExchange.h
  5809. * src/LibgcryptARC4Encryptor.h
  5810. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5811. Rewritten choking algorithm.
  5812. * src/PeerChokeCommand.{cc, h}
  5813. * src/BtInterestedMessage.cc
  5814. * src/PeerSessionResource.{cc, h}
  5815. * src/DefaultPeerStorage.{cc, h}
  5816. * src/BtNotInterestedMessage.cc
  5817. * src/DefaultBtMessageDispatcher.{cc, h}
  5818. * src/BtMessageDispatcher.h
  5819. * src/Peer.{cc, h}
  5820. * src/BtLeecherStateChoke.{cc, h}
  5821. * src/BtSetup.cc
  5822. * src/BtSeederStateChoke.{cc, h}
  5823. * src/PeerStorage.h
  5824. * test/MockPeerStorage.h
  5825. * test/MockBtMessageDispatcher.h
  5826. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Fixed compilation error on x84-64 platform.
  5828. * src/AuthConfig.cc: Included ostream.
  5829. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Rewritten getBasename() and getDirname(), without standard library
  5831. basename(), dirname().
  5832. * src/File.cc
  5833. * test/FileTest.cc
  5834. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Added Simplified Chinese translation. Also updated the following
  5836. translations: Polish, Dutch, German. Great thanks to all translators.
  5837. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5838. Suppress content-range error when 'Content-Range' response header
  5839. doesn't contains bytes-unit specifier 'bytes'
  5840. * src/HttpHeader.cc (getRange)
  5841. * test/HttpHeaderTest.cc
  5842. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5843. Fixed compilation error with g++-4.3
  5844. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5845. Added missing include files for MinGW
  5846. * test/HttpHeaderProcessorTest.cc
  5847. * test/DHTRoutingTableSerializerTest.cc
  5848. * test/DHTRoutingTableDeserializerTest.cc
  5849. * test/UriListParserTest.cc
  5850. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Now download line is printed nicely with no garbage at the end of
  5852. line. I use ioctl to get the columns of terminal.
  5853. If stdout is redirected to another device, instead of carriage return,
  5854. end of line '\n' character is used. This is feature request#1909659
  5855. * src/ConsoleStatCalc.cc (calculateStat)
  5856. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5857. Included a2time.h
  5858. * src/DHTMessageDispatcher.h
  5859. * src/DHTMessageEntry.h
  5860. * src/DHTReplaceNodeTask.h
  5861. * src/DHTMessageTracker.h
  5862. * src/Util.h
  5863. * src/CookieBox.h
  5864. * src/SocketCore.h
  5865. * src/DefaultBtMessageDispatcher.h
  5866. * src/SocketCore.cc
  5867. * src/Util.cc
  5868. * src/DHTPingTask.h
  5869. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Fixed high memory footprint when DHT is enabled.
  5871. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  5872. queued than it is processed and the queue is getting longer. As a
  5873. consequence, momory usage is increased.
  5874. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  5875. replacement cache in DHTBucket which is described in Kademlia paper.
  5876. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  5877. DHTReplaceNodeTask.
  5878. * src/DHTBucket.{h, cc}
  5879. (cacheNode): New function.
  5880. (getCachedNodes): New function.
  5881. (dropNode): Push back cached node to _nodes.
  5882. * test/DHTBucketTest.cc
  5883. (testCacheNode): New test
  5884. (testDropNode): New test
  5885. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  5887. the unused 4KB memory when ssl is not used.
  5888. * src/SocketCore.cc
  5889. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Added summary log for peer announce storage.
  5891. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  5892. Removed cast
  5893. * src/DefaultPeerStorage.cc (addPeer)
  5894. Log exception message
  5895. * src/DHTMessageTracker.cc (handleTimeout)
  5896. Fixed casting
  5897. * test/HttpRequestTest.cc
  5898. * test/MetalinkProcessorTest.cc
  5899. * test/PieceTest.cc
  5900. * test/MetalinkEntryTest.cc
  5901. * test/SequenceTest.cc
  5902. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5903. * src/ParameterizedStringParser.cc (createLoop):
  5904. Removed unused variable sstep.
  5905. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5906. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5907. * src/Util.{h, cc}
  5908. (parseUInt): New function.
  5909. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5910. The actual range is uint32_t.
  5911. * test/UtilTest.cc
  5912. * src/ParameterizedStringParser.cc:
  5913. Use Util::parseUInt() for loop variables.
  5914. * test/ParameterizedStringParserTest.cc
  5915. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5916. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. Rewritten the functions for binding port.
  5918. * src/DHTConnectionImpl.{h, cc}
  5919. * src/PeerListenCommand.{h, cc}
  5920. * src/DHTSetup.cc
  5921. * src/BtSetup.cc
  5922. * test/DHTConnectionImplTest.cc
  5923. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5924. type cleanup for allmost all remaining files.
  5925. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. Type clarification
  5927. * src/PeerSessionResource.{h, cc}
  5928. * src/DefaultPieceStorage.{h, cc}
  5929. * src/Peer.{h, cc}
  5930. * test/PeerSessionResourceTest.cc
  5931. Use div function
  5932. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5933. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5934. Type clarification
  5935. * src/DefaultPeerStorage.{h, cc}
  5936. * test/DefaultPeerStorageTest.cc
  5937. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Type clarification: size_t for length or size, uint64_t for file
  5939. length, off_t for file offset.
  5940. * src/DefaultBtProgressInfoFile.cc
  5941. * src/DefaultBtContext.{h, cc}
  5942. * src/DefaultBtInteractive.cc
  5943. * src/DownloadCommand.{h, cc}
  5944. * src/IteratableChunkChecksumValidator.{h, cc}
  5945. * src/SegmentMan.{h, cc}
  5946. * src/SingleFileDownloadContext.{h, cc}
  5947. * src/IteratableChecksumValidator.{h, cc}
  5948. * src/BtContext.h
  5949. * src/IteratableValidator.h
  5950. * src/DownloadContext.h
  5951. * test/SingleFileDownloadContextTest.cc
  5952. * test/DefaultBtContextTest.cc
  5953. * test/MockBtContext.h
  5954. * test/Metalink2RequestGroupTest.cc
  5955. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5956. Type clarification: size_t for length or size, uint64_t for file
  5957. length, off_t for file offset.
  5958. * src/PiecedSegment.cc
  5959. * src/GrowSegment.h
  5960. * src/DefaultBtRequestFactory.h
  5961. * src/DefaultBtProgressInfoFile.cc
  5962. * src/UnknownLengthPieceStorage.h
  5963. * src/DefaultPieceStorage.cc
  5964. * src/UnknownLengthPieceStorage.cc
  5965. * src/DefaultBtInteractive.cc
  5966. * src/GrowSegment.cc
  5967. * src/BitfieldMan.h
  5968. * src/DownloadCommand.cc
  5969. * src/BtRequestFactory.h
  5970. * src/PiecedSegment.h
  5971. * src/DefaultPieceStorage.h
  5972. * src/Piece.cc
  5973. * src/DefaultBtRequestFactory.cc
  5974. * src/PieceStorage.h
  5975. * src/Segment.h
  5976. * src/Piece.h
  5977. * src/BitfieldMan.cc
  5978. * src/Util.cc
  5979. * test/DefaultBtProgressInfoFileTest.cc
  5980. * test/DefaultPieceStorageTest.cc
  5981. * test/MockPieceStorage.h
  5982. * test/BtRequestMessageTest.cc
  5983. * test/DefaultBtMessageDispatcherTest.cc
  5984. * test/BitfieldManTest.cc
  5985. * test/GrowSegmentTest.cc
  5986. * test/PieceTest.cc
  5987. * test/SegmentTest.cc
  5988. * test/SegmentManTest.cc
  5989. * test/DefaultBtRequestFactoryTest.cc
  5990. * test/MockBtRequestFactory.h
  5991. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5992. Fixed compilation error with --disable-nls
  5993. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5994. in gettext.h causes the problem.
  5995. * src/common.h
  5996. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5997. Removed subPiece related functions.
  5998. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5999. * src/DefaultPieceStorage.{h, cc}
  6000. * test/PieceTest.cc
  6001. * test/DefaultPieceStorageTest.cc
  6002. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6003. Use unsigned char for data store.
  6004. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. Bump up version number to 0.13.0+1
  6006. * configure.ac
  6007. * Release 0.13.0+1
  6008. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6009. Changed inactive connection timeout to 120.
  6010. To accept more mulually interested peers, disconnect peer when there
  6011. is no interest between us after certain time passed.
  6012. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6013. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6015. when compiled with async DNS support.
  6016. * src/DownloadEngine.cc
  6017. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6018. value '10' will be a little bit short when some DNS servers are
  6019. offline and several DNS servers are tried. It should be configured
  6020. by command-line option.
  6021. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6022. Merged Ross's mingw patch.
  6023. * src/DHTRoutingTableDeserializer.cc
  6024. * src/DHTRoutingTableSerializer.cc
  6025. * src/Platform.{h, cc}
  6026. * src/timegm.h
  6027. * src/gettimeofday.h
  6028. * src/getaddrinfo.h
  6029. * src/SocketCore.h
  6030. * src/common.h
  6031. * src/inet_aton.h
  6032. * src/DownloadEngine.h
  6033. * src/gai_strerror.h
  6034. * src/a2netcompat.h
  6035. * configure.ac
  6036. * configure
  6037. * aclocal.m4
  6038. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Included missing iostream.
  6040. * test/AllTest.cc
  6041. * test/BtDependencyTest.cc
  6042. * test/BtExtendedMessageTest.cc
  6043. * test/DHTConnectionImplTest.cc
  6044. * test/DHTMessageFactoryImplTest.cc
  6045. * test/DHTMessageTrackerEntryTest.cc
  6046. * test/DHTNodeTest.cc
  6047. * test/DHTRoutingTableSerializerTest.cc
  6048. * test/DefaultBtAnnounceTest.cc
  6049. * test/DefaultBtContextTest.cc
  6050. * test/DefaultBtMessageFactoryTest.cc
  6051. * test/DefaultExtensionMessageFactoryTest.cc
  6052. * test/HandshakeExtensionMessageTest.cc
  6053. * test/HttpResponseTest.cc
  6054. * test/MetalinkProcessorTest.cc
  6055. * test/MultiFileAllocationIteratorTest.cc
  6056. * test/SocketCoreTest.cc
  6057. * test/UTPexExtensionMessageTest.cc
  6058. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6059. Reorganized includes.
  6060. * src/NameResolver.cc
  6061. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. Fixed compilation error without ares/c-ares
  6063. * src/NameResolver.h:
  6064. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6065. Added a test for large file.
  6066. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6067. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6068. Fixed the bug that file size is ignored if size > INT32_MAX
  6069. * src/SizeMetalinkParserState.cc (endElement):
  6070. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Bump up version number to 0.13.0
  6072. * configure.ac
  6073. * Release 0.13.0
  6074. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6075. Updated Makfefile.am to make 'make dist' work.
  6076. Now packaged filename is aria2c-VERSION.tar.bz2.
  6077. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6078. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6079. Large file support is now configured by configure script.
  6080. * configure.ac
  6081. Removed unsused source files
  6082. * src/
  6083. * test/
  6084. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6085. Peer.h and BtContext.h respectively.
  6086. * src/Peer.h
  6087. * src/BtContext.h
  6088. Updated translations.
  6089. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6090. translations. Great thanks to all translators!;)
  6091. * po/*.{po, gmo}
  6092. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6093. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6094. statically declared sha1 MessageDigestContext.
  6095. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6096. initialization of short-lived MessageDigestContext.
  6097. * src/MessageDigestHelper.{h, cc}
  6098. * src/main.cc
  6099. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6100. the initialization of MessageDigestContext every time in validating
  6101. chunk checksum.
  6102. * src/DownloadCommand.{h, cc}
  6103. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6104. Add a file descriptor which connected to fast peer(latency<1500) to
  6105. select(). This change reduced CPU load.
  6106. * src/PeerInteractionCommand.cc
  6107. * src/DefaultBtInteractive.{h, cc}
  6108. * src/BtInteractive.h
  6109. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6110. Fixed the previous insufficient fix for possible busy loop.
  6111. * src/MSEHandshake.cc (identifyHandshakeType)
  6112. Removed unused functions.
  6113. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6114. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. Fixed possible busy loop if first 20 bytes are not received for a few
  6116. minutes.
  6117. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6118. * src/ReceiverMSEHandshakeCommand.cc
  6119. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Fixed compilation error
  6121. * src/ExpatMetalinkProcessor.cc
  6122. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6124. * src/DHTBucket.cc
  6125. Removed unnecessary cast.
  6126. * src/HandshakeExtensionMessage.cc
  6127. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6129. is missing.
  6130. * src/OptionHandlerFactory.cc
  6131. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6132. Fixed the bug that HAVE message is not sent for a piece they are
  6133. downloaded fom http/ftp server before any BitTorrent handshake is done
  6134. with peers.
  6135. * src/DefaultBtInteractive.cc
  6136. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6137. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6138. * src/Makefile.am
  6139. * src/Makefile.in
  6140. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. Updated README. Added html version of README and man page.
  6142. * README
  6143. * README.html
  6144. * readme2html: Shell script to generate README.html from README using
  6145. asciidoc.
  6146. * doc/aria2c.1.html
  6147. * doc/makeman: Added the line to generate aria2c.1.html
  6148. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6149. Fixed offset calculation.
  6150. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6151. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6152. Rewritten itos and uitos using template. llitos and ullitos are
  6153. replaced with itos and uitos respectively.
  6154. * src/Util.{h, cc}
  6155. * test/UtilTest.cc
  6156. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6158. of the number of bytes required for storing public key and shared
  6159. secret.
  6160. * src/LibgcryptDHKeyExchange.h
  6161. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6162. * src/MSEHandshake.cc
  6163. * test/DHKeyExchangeTest.cc
  6164. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Removed since they are not used.
  6166. * src/Xml2MetalinkProcessor.{h, cc}
  6167. * src/Socket.cc
  6168. * src/SegmentSplitter.{h, cc}
  6169. * test/Xml2MetalinkProcessorTest.cc
  6170. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6171. Fixed the bug that prevents aria2 from stopping other than by pressing
  6172. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6173. option. aria2 doesn't stop even after --seed-time is satisfied and
  6174. continues to output blank lines in the console.
  6175. * src/ReceiverMSEHandshakeCommand.cc
  6176. * src/PeerReceiveHandshakeCommand.cc
  6177. * src/PeerListenCommand.cc
  6178. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6179. Bump up version number to 0.13.0rc
  6180. * configure.ac
  6181. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Updated man page and some usage text.
  6183. * doc/aria2c.1.txt
  6184. * src/usage_text.h
  6185. * po/*.{po, gmo}
  6186. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6187. Updated translations. Added Finnish and Hebrew translations.
  6188. Great thanks to all translators!
  6189. * po/*.{po, gmo}
  6190. * po/LINGUAS
  6191. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Log more detailed information about each message.
  6193. * src/DHTQueryMessage.{h, cc}
  6194. * src/DHTGetPeersMessage.{h, cc}
  6195. * src/DHTFindNodeReplyMessage.{h, cc}
  6196. * src/DHTGetPeersReplyMessage.{h, cc}
  6197. * src/DHTAnnouncePeerMessage.{h, cc}
  6198. * src/DHTResponseMessage.{h, cc}
  6199. * src/DHTFindNodeMessage.{h, cc}
  6200. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6201. Use constants defined in prefs.h
  6202. * src/option_processing.cc
  6203. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6204. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6205. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6206. Make room for future enchancements for IPv6 addresses.
  6207. Bump up version number of dht.dat file format to 2.
  6208. Not compatible with previous version.
  6209. * src/DHTRoutingTableSerializer.cc
  6210. * src/DHTRoutingTableDeserializer.cc
  6211. * test/DHTRoutingTableSerializerTest.cc
  6212. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Added handling for the return values from
  6214. PeerMessageUtil::createcompact().
  6215. * src/DefaultBtContext.cc (computeFastSet):
  6216. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6217. Fixed abort when peer's ip address is IPv4-mapped address.
  6218. * src/DefaultBtContext.cc (computeFastSet)
  6219. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6220. cannot handle IPv4-mapped addresses.
  6221. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6222. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6223. Proper return value handling for OpenSSL functions.
  6224. * src/LibsslDHKeyExchange.h
  6225. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Random bytes generation using libgcrypt and OpenSSL.
  6227. * src/DHTUtil.{h, cc}
  6228. * test/DHTUtilTest.cc
  6229. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6230. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6231. received.
  6232. * src/DHTMessageReceiver.cc (receiveMessage)
  6233. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Fixed the bug that a return code is always 0. BUG#1897704
  6235. If error occurred during the download or there exist unfinished
  6236. downloads, aria2 returns with code 1.
  6237. * src/RequestGroupMan.{h, cc}
  6238. * src/MultiUrlRequestInfo.{h, cc}
  6239. * src/main.cc
  6240. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6241. IPv6 support for SocketCore class.
  6242. TODO: In SocketCore::establishConnection(), this is insufficient to
  6243. determin the failure of connect() here because the socket is
  6244. non-blocking state. The next addresses should be tried after select().
  6245. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6246. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6247. instead which address family independent.
  6248. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6249. information in a compact peer format which is for IPv4 only.
  6250. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6251. this is a spec of BitTorrent protocol.
  6252. * src/SocketCore.{h, cc}
  6253. * src/PeerMessageUtil.cc
  6254. * test/SocketCoreTest.cc
  6255. * test/PeerMessageUtilTest.cc
  6256. * test/DHTConnectionImplTest.cc
  6257. Handle IPv4-mapped addresses.
  6258. * src/DHTNode.cc: Now identity is determined by node id.
  6259. * src/DHTMessageTrackerEntry.cc
  6260. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6261. should handle it.
  6262. * src/DHTRoutingTableDeserializer.cc
  6263. * src/DHTMessageFactoryImpl.cc
  6264. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. Change the unit of --stop option from a minute to a second.
  6266. * src/usage_text.h
  6267. * src/DownloadEngineFactory.cc
  6268. * src/OptionHandlerFactory.cc
  6269. * src/message.h
  6270. * src/TimedHaltCommand.cc
  6271. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6272. Make listening socket non-block mode.
  6273. * src/FtpConnection.cc
  6274. * src/FtpNegotiationCommand.{h, cc}
  6275. * src/PeerListenCommand.cc
  6276. Fixed the bug that cause slow ftp negotiation.
  6277. * src/FtpNegotiationCommand.{h, cc}
  6278. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6279. Added basic tag to --enable-dht, --dht-listen-port option.
  6280. * src/HelpItemFactory.cc (createHelpItems)
  6281. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6282. Updated text.
  6283. * src/usage_text.h
  6284. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6285. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6286. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6287. Determin _threadtholdSpeed in each constructor for
  6288. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6289. * src/ActivePeerConnectionCommand.{h, cc}
  6290. * src/PeerReceiveHandshakeCommand.{h, cc}
  6291. * src/BtSetup.cc
  6292. * src/BtConstants.h
  6293. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Added --bt-min-crypto-level and --bt-require-crypto options.
  6295. * src/OptionHandlerFactory.cc
  6296. * src/MSEHandshake.cc
  6297. * src/HelpItemFactory.cc
  6298. * src/option_processing.cc
  6299. * src/ReceiverMSEHandshakeCommand.cc
  6300. * src/prefs.h
  6301. * src/DefaultBtAnnounce.cc
  6302. * src/InitiatorMSEHandshakeCommand.cc
  6303. * src/usage_text.h
  6304. * test/MSEHandshakeTest.cc
  6305. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6306. Bump version number to 0.13.0b
  6307. * configure.ac
  6308. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Updated doc.
  6310. * src/MessageDigestHelper.h:
  6311. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. Use raw message digest as a token instead of its hexadecimal
  6313. representation.
  6314. * src/DHTTokenTracker.cc (generateToken)
  6315. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6316. Added Message Stream Encryption(MSE) support.
  6317. Currently, aria2 accepts incoming connections with Obfuscation Header
  6318. and legacy BitTorrent Header and establishes connections with
  6319. Obfuscation Header first and if failed then retry with legacy
  6320. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6321. choose ARC4. The new option to change the default behavior is planned.
  6322. For tracker extension, "supportcrypto=1" is added statically.
  6323. * src/PeerInitiateConnectionCommand.{h, cc}
  6324. * src/PeerConnection.{h, cc}
  6325. * src/HandleRegistry.h
  6326. * src/SocketCore.h
  6327. * src/PeerReceiveHandshakeCommand.{h, cc}
  6328. * src/BtRegistry.{h, cc}
  6329. * src/PeerListenCommand.cc
  6330. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6331. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6332. * src/MSEHandshake.{h, cc}
  6333. * src/ARC4Encryptor.h
  6334. * src/ARC4Decryptor.h
  6335. * src/LibgcryptARC4Encryptor.h
  6336. * src/LibgcryptARC4Decryptor.h
  6337. * src/LibgcryptARC4Context.h
  6338. * src/LibsslARC4Encryptor.h
  6339. * src/LibsslARC4Decryptor.h
  6340. * src/LibsslARC4Context.h
  6341. * src/DHKeyExchange.h
  6342. * src/LibgcryptDHKeyExchange.h
  6343. * src/LibsslDHKeyExchange.h
  6344. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6345. * test/DefaultBtAnnounceTest.cc
  6346. * test/ARC4Test.cc
  6347. * test/DHKeyExchangeTest.cc
  6348. Removed prepareForRetry() because it is not used.
  6349. * src/PeerAbstractCommand.{h, cc}
  6350. * src/PeerInteractionCommand.{h, cc}
  6351. * src/PeerInitiateConnectionCommand.{h, cc}
  6352. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Added the ability to load nodes from torrent file. These nodes are
  6354. added to the routing table when downloading that torrent.
  6355. * src/BtContext.h
  6356. * src/DefaultBtContext.{h, cc}
  6357. * src/DHTSetup.cc
  6358. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6359. hostname and port pair, and resolves all of them.
  6360. * src/NameResolver.{h, cc}: Added reset().
  6361. * src/RequestGroup.cc
  6362. * test/DefaultBtContextTest.cc
  6363. * test/MockBtContext.h
  6364. Removed assert() from DefaultBtContext and throw exception instead.
  6365. * src/DefaultBtContext.cc
  6366. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6367. Fixed segmentation fault bug when exiting if dht is disabled.
  6368. * src/RequestGroup.cc
  6369. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6370. Fixed typo in log message and define the message in message.h
  6371. * src/TimedHaltCommand.cc
  6372. * src/message.h
  6373. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6374. Included RecoverableException.h to fix compilation error.
  6375. * test/DHTMessageFactoryImplTest.cc
  6376. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6378. * test/DHTPingMessageTest.cc
  6379. * test/DHTGetPeersMessageTest.cc
  6380. * test/DHTFindNodeMessageTest.cc
  6381. * test/DHTAnnouncePeerMessageTest.cc
  6382. * test/MockDHTMessage.h
  6383. * test/MockDHTMessageFactory.h
  6384. * test/MockDHTMessageDispatcher.h: New class.
  6385. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6386. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6387. virtual.
  6388. * src/DHTMessageDispatcher.h
  6389. * src/DHTMessageDispatcherImpl.{h, cc}
  6390. * src/DHTSetup.cc
  6391. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6392. Adding handling of DHT error message. Just log error message and
  6393. throw exception.
  6394. * src/DHTMessageFactoryImpl.cc
  6395. * test/DHTMessageFactoryImplTest.cc
  6396. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6397. Added handling of dynamic cast failure.
  6398. * src/DHTNodeLookupTask.cc
  6399. * src/DHTPeerLookupTask.cc
  6400. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. Added the ability to stop aria2 itself when given time has passed
  6402. from start. Use --stop option to specify time in minutes.
  6403. When 0 is given, this feature is disabled.
  6404. * src/OptionHandlerFactory.cc
  6405. * src/TimeBasedCommand.h: Make _interval protected scope.
  6406. * src/HelpItemFactory.cc
  6407. * src/option_processing.cc
  6408. * src/prefs.h
  6409. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6410. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6411. Without this modification, the result list shows "ERR" when aria2 is
  6412. stopped by --stop option. It should be "INPR".
  6413. * src/DownloadEngine.{h, cc}
  6414. * src/DownloadEngineFactory.cc
  6415. * src/usage_text.h
  6416. * src/TimedHaltCommand.{h, cc}: New class.
  6417. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6418. Bootstrap through node added by port message.
  6419. Currently bootstrap is executed if the number of buckets in routing
  6420. table is 1.
  6421. * src/BtPortMessage.{h, cc}
  6422. * src/DefaultBtMessageFactory.{h, cc}
  6423. * src/PeerInteractionCommand.cc
  6424. * test/BtPortMessageTest.cc
  6425. * test/MockDHTTask.h
  6426. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6427. Extract the Peer class's member variables, which are only needed after
  6428. PeerInteractionCommand, into PeerSessionResource class.
  6429. This class is instantiated in PeerInteractionCommand class's ctor and
  6430. released in its dtor.
  6431. This will make Peer class lightweight and uses less memory for peers
  6432. which are not connected and wait in the queue.
  6433. * src/PeerChokeCommand.cc
  6434. * src/PeerSessionResource.{h, cc}
  6435. * src/PeerInteractionCommand.cc
  6436. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6437. * src/DefaultBtInteractive.cc
  6438. * src/BtPieceMessage.cc
  6439. * src/BtInterestedMessage.cc
  6440. * src/BtUnchokeMessage.cc
  6441. * src/DefaultPeerStorage.{h, cc}
  6442. * src/PeerInitiateConnectionCommand.cc
  6443. * src/ActivePeerConnectionCommand.cc
  6444. * src/BtNotInterestedMessage.cc
  6445. * src/DefaultBtMessageDispatcher.cc
  6446. * src/BtChokeMessage.cc
  6447. * src/BtRequestMessage.cc
  6448. * src/Peer.{h, cc}
  6449. * src/BtRegistry.h
  6450. * src/TrackerWatcherCommand.cc
  6451. * src/PeerReceiveHandshakeCommand.cc
  6452. * test/BtExtendedMessageTest.cc
  6453. * test/BtAllowedFastMessageTest.cc
  6454. * test/BtCancelMessageTest.cc
  6455. * test/DefaultPieceStorageTest.cc
  6456. * test/BtBitfieldMessageTest.cc
  6457. * test/BtHaveMessageTest.cc
  6458. * test/BtNotInterestedMessageTest.cc
  6459. * test/BtRequestMessageTest.cc
  6460. * test/PeerSessionResourceTest.cc
  6461. * test/DefaultBtMessageDispatcherTest.cc
  6462. * test/PeerTest.cc
  6463. * test/BtInterestedMessageTest.cc
  6464. * test/BtRejectMessageTest.cc
  6465. * test/BtChokeMessageTest.cc
  6466. * test/DefaultPeerStorageTest.cc
  6467. * test/BtHaveNoneMessageTest.cc
  6468. * test/BtHaveAllMessageTest.cc
  6469. * test/DefaultExtensionMessageFactoryTest.cc
  6470. * test/BtUnchokeMessageTest.cc
  6471. * test/DefaultBtMessageFactoryTest.cc
  6472. * test/HandshakeExtensionMessageTest.cc
  6473. * test/UTPexExtensionMessageTest.cc
  6474. * test/DefaultBtRequestFactoryTest.cc
  6475. * test/BtPieceMessageTest.cc
  6476. Removed typedef PeerStats.
  6477. * src/PeerStat.h
  6478. * src/SegmentMan.cc
  6479. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6480. Added std namespace to copy, remove_copy, back_inserter,
  6481. front_inserter.
  6482. * src/RequestGroupMan.cc
  6483. * src/DefaultPieceStorage.cc
  6484. * src/StreamFileAllocationEntry.cc
  6485. * src/BtFileAllocationEntry.cc
  6486. * src/RequestGroup.cc
  6487. * src/MetalinkEntry.cc
  6488. * src/DelegatingPeerListProcessor.cc
  6489. * src/DefaultBtRequestFactory.cc
  6490. * src/DefaultBtMessageDispatcher.cc
  6491. * src/version_usage.cc: Included <algorithm>
  6492. * src/main.cc
  6493. * src/MetalinkParserController.cc
  6494. * src/DefaultBtContext.cc
  6495. * src/DownloadEngineFactory.cc
  6496. * src/a2algo.h
  6497. Removed.
  6498. * test/StreamUriListParserTest.cc
  6499. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6500. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6501. ActivePeerConnectionCommand when it is given and
  6502. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6503. * src/ActivePeerConnectionCommand.{h, cc}
  6504. * src/BtSetup.cc
  6505. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Only add socket to DownloadEngine's select routine when peer or
  6507. localhost is unchoked and interested. This lowers CPU usage a
  6508. little bit.
  6509. * src/PeerInteractionCommand.cc
  6510. * src/PeerAbstractCommand.{h, cc}
  6511. * src/BtInteractive.h
  6512. * src/DefaultBtInteractive.{h, cc}
  6513. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6514. Revert previous change because get_peers message is needed for
  6515. announce_peer anyway.
  6516. * src/DHTGetPeersCommand.cc
  6517. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6518. Request peers thought DHT only when download hasn't finished.
  6519. * src/DHTGetPeersCommand.cc
  6520. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6521. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6522. * src/DHTBucketRefreshTask.{h, cc}
  6523. * src/DHTSetup.cc
  6524. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6525. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6526. standard classes.
  6527. Included string.h where mem* function are used.
  6528. Added namespace aria2.
  6529. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Create directory before saving DHT routing table.
  6531. Now ios::failure is now handled properly.
  6532. * src/DHTAutoSaveCommand.cc
  6533. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6534. Removed unnecessary cerr.
  6535. * src/DownloadEngine.cc
  6536. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6537. Catch exception inside DHTMessageReceiver::receiveMessage().
  6538. Log unknown message.
  6539. * src/DHTMessageReceiver.{h, cc}
  6540. * src/DHTMessageFactory.h
  6541. * src/DHTMessageFactoryImpl.{h, cc}
  6542. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6543. * src/DHTInteractionCommand.cc
  6544. * src/DHTUnknownMessage.{h, cc}
  6545. * test/DHTUnknownMessageTest.cc
  6546. * test/MockDHTMessageFactory.h
  6547. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6548. Commented out ip address comparison because a host can have multiple
  6549. ip addresses and it is hard to predict the hostname is resolved into
  6550. which one.
  6551. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6552. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6553. * po/Makefile.in: Removed since this is generated by configure.
  6554. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6555. Fixed compiler warning about redefinition of SIZE_MAX.
  6556. Use common.h instead of config.h directly here.
  6557. * src/Platform.{h, cc}
  6558. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6559. here.
  6560. * common.h
  6561. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6562. Updated gettext related files.
  6563. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6564. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6565. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6566. Added DHT functionality, compatible with mainline.
  6567. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6568. You may need to specify entry point to DHT network using
  6569. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6570. Use --dht-listen-port to specify port number. Make sure that your
  6571. firewall configuration can pass through UDP traffic to the port.
  6572. The routing table is saved in $HOME/.aria2/dht.dat.
  6573. * src/DHT*
  6574. * src/BNode.{h, cc}
  6575. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6576. particular torrent.
  6577. * src/Data.cc: Rewritten ctor.
  6578. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6579. --dht-entry-point.
  6580. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6581. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6582. ends, remove BtContext from DHTPeerAnnounceStorage.
  6583. * src/BtPortMessage.{h, cc}: Rewritten.
  6584. * src/message.h
  6585. * src/OptionHandlerImpl.cc
  6586. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6587. --dht-entry-point.
  6588. * src/Dictionary.{h, cc} (remove): New function.
  6589. * src/prefs.h
  6590. * src/DefaultBtMessageFactory.h
  6591. * src/BtHandshakeMessage.cc
  6592. * src/ActivePeerConnectionCommand.cc
  6593. * src/SocketCore.{h, cc}: Added datagram socket support.
  6594. * src/DefaultBtMessageFactory.cc
  6595. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6596. Create DHT commands.
  6597. * src/BtMessageFactory.h
  6598. * src/PeerMessageUtil.{h, cc}
  6599. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. Fixed the bug that log file is not written when configuration file doesn't exist.
  6601. This is caused by using Logger class before LogFactory is not configured.
  6602. BUG #1875079
  6603. * src/option_processing.cc
  6604. Warning message "configuration doesn't exist" is only printed when --conf is
  6605. given.
  6606. * src/option_processing.cc
  6607. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6608. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6609. ShaVisitor is now deprecated and slated to be removed.
  6610. * src/DefaultBtContext.cc
  6611. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Externalize message to message.h
  6613. * src/Platform.cc
  6614. * src/message.h
  6615. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Set default domain and default path to cookie.
  6617. * src/HttpResponse.cc
  6618. * src/CookieBox.{h, cc}
  6619. * src/CookieParser.{h, cc}
  6620. * test/CookieParserTest.cc
  6621. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6622. Added --no-conf and --conf-path command-line option.
  6623. --no-conf option disables loading aria2.conf file.
  6624. --conf-path option changes the configuration file path. The default
  6625. file path is $HOME/.aria2/aria2.conf
  6626. Added a warning message when the configuration file is not found.
  6627. * src/HelpItemFactory.cc
  6628. * src/option_processing.cc
  6629. * src/prefs.h
  6630. * src/usage_text.h
  6631. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6632. Added the message to inform users that other help categories are
  6633. available in -h option.
  6634. * src/version_usage.cc
  6635. * src/TagContainer.{h, cc}
  6636. * test/TagContainerTest.cc
  6637. * src/TaggedItem.{h, cc}
  6638. * test/TaggedItemTest.cc
  6639. * src/HelpItem.h
  6640. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6641. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6642. from PiecedSegment's ctor.
  6643. Previously Piece::getAllMissingBlockIndexes() is called from
  6644. PiecedSegment() but it is rather expensive since only first element is
  6645. used.
  6646. * src/PiecedSegment.cc
  6647. * src/Piece.{h, cc}
  6648. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6650. each time these functions are called.
  6651. * src/BitfieldMan.{h, cc}
  6652. * test/BitfieldManTest.cc
  6653. * src/array_fun.h
  6654. * test/array_funTest.cc
  6655. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6656. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6657. filtered. Removed unnecessary cast to int32_t.
  6658. * src/BitfieldMan.{h, cc}
  6659. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6661. payload length(4bytes) are received. This happens because lenbufLength
  6662. is not updated in this particular case and successive call of
  6663. receiveMessage() overwrites payload length with bytes recieved which
  6664. are payload body.
  6665. * src/PeerConnection.{h, cc}
  6666. * src/message.h
  6667. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6668. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6669. peer if there are peers that have same ipaddr and port.
  6670. I've experiened segmentation fault and "pure virtual function was
  6671. called" error.
  6672. * src/Peer.h
  6673. * test/PeerTest.cc
  6674. * src/DefaultPeerStorage.cc
  6675. * test/DefaultPeerStorageTest.cc
  6676. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6677. Removed a call to isPowerOf() because it is no longer necessary here
  6678. and a request block is not always power of 2.
  6679. BUG#1866924
  6680. * src/PeerMessageUtil.cc (checkLength)
  6681. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Fixed the bug that always first found Segment is removed from
  6683. usedSegmentEntries. Removed unused functions.
  6684. * src/SegmentMan.{h, cc}
  6685. * test/SegmentManTest.cc
  6686. Fixed the bug that ServerHost is not removed.
  6687. * src/RequestGroup.cc
  6688. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6689. Fixed the bug that SegmentMan::completeSegment() is not called
  6690. even if Segment is complete when --lowest-speed-limit is enabled.
  6691. BUG#1864525
  6692. * src/DownloadCommand.{h, cc}
  6693. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. Fixed: hash algorithm 'sha1' is always used.
  6695. * src/DownloadCommand.cc (validatePieceHash)
  6696. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. Added --enable-peer-exchange command-line option.
  6698. * src/OptionHandlerFactory.cc
  6699. * src/HelpItemFactory.cc
  6700. * src/option_processing.cc
  6701. * src/usage_text.h
  6702. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6703. Move extension from BtRuntime to ExtensionMessageFactory, because
  6704. extension can be specified per peer, not per torrent.
  6705. * src/DefaultBtInteractive.cc
  6706. * src/BtRuntime.h
  6707. * src/ExtendedMessagingAware.h
  6708. * src/ExtensionMessageFactory.h
  6709. * src/DefaultExtensionMessageFactory.cc
  6710. * test/DefaultExtensionMessageFactoryTest.cc
  6711. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6712. Added categorized option help. Specify category using --help option.
  6713. Also added the ability to search options in forward match.
  6714. * src/HelpItem.{h, cc}
  6715. * test/HelpItemTest.cc
  6716. * src/HelpItemFactory.{h, cc}
  6717. * src/TagContainer.{h, cc}
  6718. * test/TagContainerTest.cc
  6719. * src/option_processing.cc
  6720. * src/prefs.h
  6721. * src/TaggedItem.{h, cc}
  6722. * test/TaggedItemTest.cc
  6723. * src/version_usage.cc
  6724. * src/help_tags.h
  6725. * src/usage_text.h
  6726. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6727. Fixed segmentation fault when bad torrent metainfo is parsed.
  6728. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6729. and then throw exception or skip it.
  6730. * src/DefaultBtContext.{h, cc}
  6731. * test/DefaultBtContextTest.cc
  6732. * src/AnnounceList.cc
  6733. * src/CompactPeerListProcessor.cc
  6734. * src/message.h
  6735. * src/DefaultBtAnnounce.{h, cc}
  6736. * test/DefaultBtAnnounceTest.cc
  6737. * src/BencodeVisitor.cc
  6738. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6739. Added missing "B"(=Byte). So now the message looks like this:
  6740. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6741. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6742. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6743. Show the seed ratio after torrent downloads.
  6744. For example, after torrent download completed and --seed-time and
  6745. --seed-ratio conditions are fulfilled, following message is printed
  6746. right after "Download complete: .....":
  6747. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6748. * src/RequestGroupMan.cc
  6749. * src/RequestGroup.{h, cc}
  6750. * src/message.h
  6751. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Remove a defunct control file. A defunct control file means that while
  6753. it exists, but the corresponding download file is missing.
  6754. After its removal, a download restarts from the beginning.
  6755. * src/RequestGroup.cc
  6756. * src/message.h
  6757. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6758. Allocate bitfield in Peer when it is really used. More specifically,
  6759. bitfield in Peer is allocated after the connection is established and
  6760. deallocated when the connection is dropped.
  6761. Since 2 parameters(piece length and total length) was removed from the
  6762. constructor of Peer class, many test classes were modified accordingly.
  6763. See svn log for more detailed information.
  6764. * src/PeerInteractionCommand.cc
  6765. * src/CompactPeerListProcessor.cc
  6766. * src/Peer.cc
  6767. * src/DefaultPeerListProcessor.cc
  6768. * src/PeerListenCommand.cc
  6769. * src/PeerReceiveHandshakeCommand.cc
  6770. Fixed memory leak
  6771. * src/Piece.cc
  6772. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6773. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6774. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6775. command-line options.
  6776. * src/option_processing.cc
  6777. * src/ActivePeerConnectionCommand.cc
  6778. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6779. Send have message to peer if it already has the piece.
  6780. * src/BtHaveMessage.{h, cc}
  6781. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6782. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6783. port.
  6784. * src/DefaultPeerStorage.{h, cc}
  6785. * test/DefaultPeerStorageTest.cc
  6786. * src/HandshakeExtensionMessage.cc
  6787. * test/HandshakeExtensionMessageTest.cc
  6788. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6789. * src/PeerStorage.h
  6790. * test/MockPeerStorage.h
  6791. * src/PeerListenCommand.cc
  6792. * src/PeerReceiveHandshakeCommand.cc
  6793. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6794. Added --metalink-enable-unique-protocol option.
  6795. * src/Metalink2RequestGroup.cc
  6796. * src/option_processing.cc
  6797. * src/prefs.h
  6798. * src/version_usage.cc
  6799. * doc/aria2c.1.txt
  6800. * doc/aria2c.1
  6801. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6802. Allow a peer in incomingPeer to be added peers.
  6803. * src/DefaultPeerStorage.cc
  6804. * test/DefaultPeerStorageTest.cc
  6805. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6807. I could reproduce this bug in following procedure:
  6808. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6809. 2. Restart aria2.
  6810. 3. You see the download stopped around 99%.
  6811. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6812. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6813. If timeout is reached, then _nextCommand is unused and it may contains
  6814. segments and they won't be canceled. Actually, timeout is not needed
  6815. here because if the server dropped connection, then retry is made.
  6816. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Added uTorrent compatible Peer Exchange.
  6818. * src/BencodeVisitor.{h, cc}
  6819. * test/BencodeVisitorTest.cc
  6820. * src/BtConstants.h
  6821. * src/BtContext.h: Added 'private' flag.
  6822. * src/BtExtendedMessage.{h, cc}
  6823. * test/BtExtendedMessageTest.cc
  6824. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  6825. reserved field.
  6826. * test/BtHandshakeMessageTest.cc
  6827. * src/BtMessageFactory.h
  6828. * src/BtRegistry.h
  6829. * src/BtRuntime.h: This class holds default extension message IDs for
  6830. aria2. By default, aria2 uses ID 8 for ut_pex.
  6831. * src/DefaultBtContext.cc
  6832. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  6833. When it is true, aria2 enables ut_pex. This value is set by
  6834. PeerInteractionCommand.
  6835. * src/DefaultBtMessageFactory.{h, cc}
  6836. * test/DefaultBtMessageFactoryTest.cc
  6837. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  6838. handling to DefaultBtInteractive class.
  6839. * src/DefaultExtensionMessageFactory.{h, cc}
  6840. * test/DefaultExtensionMessageFactoryTest.cc
  6841. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  6842. the container(peers and incomingPeers. The equality is determined by
  6843. Peer::id).
  6844. * test/DefaultPeerStorageTest.cc
  6845. * src/ExtensionMessage.h
  6846. * test/MockExtensionMessage.h
  6847. * src/ExtensionMessageFactory.h
  6848. * test/MockExtensionMessageFactory.h
  6849. * src/HandshakeExtensionMessage.{h, cc}
  6850. * test/HandshakeExtensionMessageTest.cc
  6851. * src/MetaEntry.h
  6852. * src/Peer.{h, cc}
  6853. * src/PeerInteractionCommand.cc
  6854. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  6855. addIncomingPeer.
  6856. * src/PeerMessageUtil.{h, cc}
  6857. * src/PeerObject.h
  6858. * src/UTPexExtensionMessage.{h, cc}
  6859. * test/UTPexExtensionMessageTest.cc
  6860. * src/message.h
  6861. * src/prefs.h
  6862. Fixed the bug that returns incomplete data when it contains null
  6863. character. A convenient constructor was also added.
  6864. * src/Data.{h, cc}
  6865. Rewritten.
  6866. * src/CompactPeerListProcessor.cc
  6867. Fixed typos.
  6868. * src/message.h
  6869. * src/MetaFileUtil.cc
  6870. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6871. Added "Status Legend" label to the explanation text of 'stat' in
  6872. download result and moved it to the last. BUG#1848214
  6873. * src/RequestGroupMan.cc
  6874. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6875. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  6876. * src/Makefie.am
  6877. * test/Makefile.am
  6878. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6879. Fixed the bug that prevents aria2 from loading cookie file when expire
  6880. value is greater than 2^31-1. BUG#1851066
  6881. * src/CookieBoxFactory.cc
  6882. * test/CookieBoxFactoryTest.cc
  6883. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6884. Fixed possible memory leak when an exception is thrown.
  6885. * src/XML2SAXMetalinkProcessor.cc
  6886. Added Expat support. If both libxml2 and Expat are installed, then
  6887. libxml2 is used by default.
  6888. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  6889. ExpatMetalinkProcessor according to the configuration.
  6890. * src/ExpatMetalinkProcessor.{h, cc}
  6891. * src/main.cc: Removed libxml2 specific header and init/free function.
  6892. * src/MetalinkProcessorFactory.{h, cc}
  6893. * src/MetalinkHelper.cc
  6894. * src/Metalinker.h: Removed unnecessary libxml2 header.
  6895. * src/MetalinkProcessor.h
  6896. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  6897. MetalinkProcessorTest is used instead.
  6898. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  6899. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  6900. MetalinkProcessorFactory::newInstance().
  6901. * m4/libexpat.m4
  6902. * configure.ac: Added configuration options for libexpat.
  6903. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6904. Disabled -s option in metalink download.
  6905. * src/Metalink2RequestGroup.cc
  6906. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. If several protocols are available for a mirror in metalink file,
  6908. aria2 now use one of them. --metalink-preferred-protocol option was
  6909. added to specify the preference of protocol.
  6910. * src/AbstractCommand.cc
  6911. * src/OptionHandlerFactory.cc
  6912. * src/ServerHost.{h, cc}
  6913. * src/Metalink2RequestGroup.cc
  6914. * src/RequestGroup.{h, cc}
  6915. * test/RequestGroupTest.cc
  6916. * src/option_processing.cc
  6917. * src/prefs.h
  6918. * src/HttpResponseCommand.cc
  6919. * src/MetalinkResource.{h, cc}
  6920. * src/FtpNegotiationCommand.cc
  6921. * src/MetalinkEntry.{h, cc}
  6922. * src/MetalinkEntryTest.cc
  6923. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Code cleanup and added debug log.
  6925. * src/PeerConnection.cc
  6926. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6927. Compiler error fix: applied the patch by Tiziano Mueller
  6928. * src/RequestGroup.cc
  6929. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6930. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6931. in stopped and completed event.
  6932. * src/AnnounceList.{h, cc}
  6933. * test/AnnounceListTest.cc
  6934. * src/DefaultBtAnnounce.cc
  6935. * test/DefaultBtAnnounceTest.cc
  6936. Sorted URLs.
  6937. * test/Metalink2RequestGroupTest.cc
  6938. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6939. Removed unnecessary string copy. Updated doc and corrected indentation.
  6940. * src/Base64.cc
  6941. Fixed compilation warnings
  6942. * test/DataTest.cc
  6943. * test/HttpRequestTest.cc
  6944. * test/MetaFileUtilTest.cc
  6945. * test/RequestTest.cc
  6946. * Release 0.12.0
  6947. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6948. Updated translations
  6949. * po/{de,fr,ja,nl,ru}.po
  6950. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6951. translations. Many thanks to translators.
  6952. * po/{ca,es,it,pt_BR,sv}.po
  6953. * po/LINGUAS
  6954. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6955. Added a notice about URL
  6956. * src/version_usage.cc
  6957. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6958. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6959. aria2 repeatedly sends stopped request when tracker returns error code.
  6960. * src/AnnounceList.cc
  6961. * test/AnnounceListTest.cc
  6962. * src/AnnounceTier.h
  6963. Added a message when ctrl-c is hit.
  6964. Now second ctrl-c is also handled in signal handler.
  6965. * src/RequestGroupMan.{h, cc}
  6966. * src/RequestGroup.{h, cc}
  6967. * src/MultiUrlRequestInfo.cc
  6968. * src/DownloadEngine.cc
  6969. * src/TrackerWatcherCommand.cc
  6970. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Code cleanup
  6972. * src/Base64.cc (encode)
  6973. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6974. Changed Direct/IO enable/disable procesure in file allocation routine.
  6975. * src/SingleFileAllocationIterator.cc
  6976. (SingleFileAllocationIterator):
  6977. Disable directIO if offset is not multiple of 512.
  6978. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6979. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6980. Enable created SingleFileAllocationIterator's directIO.
  6981. * src/FileAllocationEntry.cc
  6982. (FileAllocationEntry): Enable directIO here.
  6983. (~FileAllocationEntry): Disable directIO here.
  6984. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6985. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6986. * src/Peer.{h, cc}
  6987. * src/DefaultPieceStorage.cc
  6988. * test/DefaultPieceStorageTest.cc
  6989. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6990. Rewritten direct I/O support routine
  6991. * src/SingleFileAllocationIterator.cc
  6992. * src/MultiDiskAdaptor.{h, cc}
  6993. * src/ByteArrayDiskWriter.h
  6994. * src/AbstractSingleDiskAdaptor.h
  6995. * src/AbstractDiskWriter.cc
  6996. * src/DefaultPieceStorage.cc
  6997. * src/DiskWriter.h
  6998. * src/BinaryStream.h
  6999. * src/IteratableChunkChecksumValidator.cc
  7000. * src/IteratableChecksumValidator.cc
  7001. * src/CheckIntegrityEntry.cc
  7002. * src/FileAllocationEntry.cc
  7003. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. Fixed typo
  7005. * src/version_usage.cc
  7006. Updated doc
  7007. * doc/aria2c.1.txt
  7008. * doc/aria2c.1
  7009. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Fixed compile error without message digest support.
  7011. * src/FileMetalinkParserState.cc
  7012. * src/MetalinkParserController.{h, cc}
  7013. * test/XML2SAXMetalinkProcessorTest.cc
  7014. * test/MetalinkParserControllerTest.cc
  7015. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Enable direct I/O support in checksum checking.
  7017. * src/IteratableChunkChecksumValidator.{h, cc}
  7018. * test/IteratableChunkChecksumValidatorTest.cc
  7019. * src/CheckIntegrityEntry.cc
  7020. * src/PieceHashCheckIntegrityEntry.cc
  7021. * src/IteratableChecksumValidator.{h, cc}
  7022. * src/BtCheckIntegrityEntry.cc: Added doc.
  7023. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Added --allow-piece-length-change option.
  7025. * src/DefaultBtProgressInfoFile.cc
  7026. * test/DefaultBtProgressInfoFileTest.cc
  7027. * src/OptionHandlerFactory.cc
  7028. * src/option_processing.cc
  7029. * src/prefs.h
  7030. * src/version_usage.cc
  7031. * doc/aria2c.1.txt
  7032. * doc/aria2c.1
  7033. Fixed: duplicated result entry appears when exception is thrown in
  7034. RequestGroup::createInitiateConnectionCommand().
  7035. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7036. Add RequestGroup to _requestGroup after RequetGroup::
  7037. createInitiateConnectionCommand() succeeds.
  7038. Externalized message
  7039. * src/XML2SAXMetalinkProcessor.cc
  7040. * src/message.h
  7041. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Forced download abort when received negative response from http/ftp
  7043. server.
  7044. * src/HttpResponseCommand.cc
  7045. * src/FtpNegotiationCommand.cc
  7046. * src/HttpResponse.cc
  7047. * src/FtpConnection.cc
  7048. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7049. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7050. the predecessor, Xml2MetalinkParser class.
  7051. I tested them against 94KB metalink file with 1234 chunk checksums.
  7052. The new one parsed it in 22msec, while it took 6000msec with old one.
  7053. * src/XML2SAXMetalinkProcessor.{h, cc}
  7054. * test/XML2SAXMetalinkProcessorTest.cc
  7055. * src/MetalinkParserController.{h, cc}
  7056. * test/MetalinkParserControllerTest.cc
  7057. * src/MetalinkParserState.h: Also added 16 subclasses.
  7058. * src/main.cc
  7059. * src/Metalink2RequestGroup.cc
  7060. * src/MetalinkHelper.cc
  7061. * src/MetalinkEntry.cc
  7062. * src/ChunkChecksum.h
  7063. Rewritten Base64 class for better performance.
  7064. * src/Base64.{h, cc}
  7065. * test/Base64Test.cc
  7066. * src/HttpRequest.cc
  7067. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7068. Fixed the bug#1841757: aria2 will connect to server to only get
  7069. file size.
  7070. * src/StreamFileAllocationEntry.cc
  7071. * src/option_processing.cc
  7072. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7073. downloads.
  7074. * src/FtpNegotiationCommand.cc
  7075. Suppressed wrong message when finding PreDownloadHandler
  7076. * src/RequestGroup.cc
  7077. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Updated usage
  7079. * src/version_usage.cc
  7080. Updated man page
  7081. * doc/aria2c.1.txt
  7082. * doc/aria2c.1
  7083. Updated po files
  7084. * po/aria2c.pot
  7085. * po/*.po
  7086. * po/*.gmo
  7087. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Eliminated g++-4.2 warning
  7089. * src/DownloadHandlerConstants.{h, cc}
  7090. * src/Util.cc
  7091. * test/MetaFileUtilTest.cc
  7092. * test/PStringBuildVisitorTest.cc
  7093. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7094. * src/RequestGroup.cc
  7095. * src/BtCheckIntegrityEntry.cc
  7096. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7097. Fixed a2io.h
  7098. * src/a2io.h
  7099. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7100. Added direct I/O support. The current implementation uses O_DIRECT,
  7101. which is not posix standard and is tested on linux 2.6.21.
  7102. Currently only file allocation uses direct I/O.
  7103. * src/SingleFileAllocationIterator.{h, cc}
  7104. * test/SingleFileAllocationIteratorTest.cc
  7105. * src/MultiFileAllocationIterator.{h, cc}
  7106. * test/MultiFileAllocationIteratorTest.cc
  7107. * src/BinaryStream.h
  7108. * src/DiskWriter.h
  7109. * src/AbstractDiskWriter.{h, cc}
  7110. * src/ByteArrayDiskWriter.h
  7111. * src/DiskAdaptor.h
  7112. * src/AbstractSingleDiskAdaptor.{h, cc}
  7113. * src/MultiDiskAdaptor.{h, cc}
  7114. * src/FileAllocationEntry.cc
  7115. * src/Util.{h, cc}
  7116. * src/OptionHandlerFactory.cc
  7117. * src/prefs.h
  7118. * src/version_usage.cc
  7119. * src/option_processing.cc
  7120. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7121. handleException.
  7122. * src/MultiFileAllocationIterator.cc
  7123. Added EINTR handling
  7124. * src/SocketCore.cc
  7125. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7126. Updated usage
  7127. * src/version_usage.cc
  7128. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. Applied Ross's patch for MinGW port.
  7130. * src/DownloadEngine.h
  7131. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. Set Content-Type to SingleFileDownloadContext when http response is
  7133. received.
  7134. * src/HttpResponseCommand.cc
  7135. * src/HttpResponse.{h, cc}
  7136. * test/HttpResponseTest.cc
  7137. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7138. Rewritten to add content-type support.
  7139. * src/DownloadHandler.{h, cc}
  7140. * src/BtPostDownloadHandler.{h, cc}
  7141. * test/BtPostDownloadHandlerTest.cc
  7142. * src/MetalinkPostDownloadHandler.{h, cc}
  7143. * test/MetalinkPostDownloadHandlerTest.cc
  7144. * src/PostDownloadHandler.{h, cc}
  7145. * src/DownloadHandlerConstants.{h, cc}
  7146. * src/RequestGroup.cc
  7147. * src/HttpResponseCommand.cc
  7148. * src/FtpNegotiationCommand.cc
  7149. * src/SingleFileDownloadContext.{h, cc}
  7150. * src/RequestGroup.h
  7151. * src/RequestGroupCriteria.h
  7152. * src/ContentTypeRequestGroupCriteria.h
  7153. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7154. If it is give, metalink/torrent file is not written to the disk, but
  7155. just is kept in memory. Parsing is occurred on memory.
  7156. * src/MetalinkHelper.{h, cc}
  7157. * src/MetalinkProcessor.h
  7158. * src/Xml2MetalinkProcessor.{h, cc}
  7159. * test/Xml2MetalinkProcessorTest.cc
  7160. * src/DownloadHandlerFactory.{h, cc}
  7161. * test/DownloadHandlerFactoryTest.cc
  7162. * src/PreDownloadHandler.{h, cc}
  7163. * src/OptionHandlerFactory.cc
  7164. * src/DefaultBtContext.{h, cc}
  7165. * test/DefaultBtContextTest.cc
  7166. * src/version_usage.cc
  7167. * src/Metalink2RequestGroup.{h, cc}
  7168. * src/RequestGroup.{h, cc}
  7169. * src/a2functional.h
  7170. * test/a2functionalTest.cc
  7171. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7172. * src/OptionHandlerImpl.h
  7173. * src/prefs.h
  7174. * src/Util.{h, cc}
  7175. * test/UtilTest.cc
  7176. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7177. memory usage.
  7178. * src/RequestGroupMan.{h, cc}
  7179. * src/DownloadEngine.cc
  7180. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7181. WeakHandle to SharedHandle because WeakHandle could be null.
  7182. * src/RequestGroup.{h, cc}
  7183. * src/DownloadEngineFactory.cc
  7184. * src/DownloadResult.h
  7185. Set totalLength after download finished
  7186. * src/UnknownLengthPieceStorage.{h, cc}
  7187. Keep torrent file specified in metalink in memory.
  7188. * src/Metalink2RequestGroup.cc
  7189. * src/BtDependency.cc
  7190. * src/TrueRequestGroupCriteria.h
  7191. Fixed the bug: seekg is used where seekp should be used.
  7192. * src/ByteArrayDiskWriter.cc
  7193. * test/ByteArraydiskWriterTest.cc
  7194. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. Fixed syntax error
  7196. * test/SequenceTest.cc
  7197. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7199. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7200. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7201. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7202. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7203. Added the check to see whether ares_host_callback accepts timeouts
  7204. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7205. * src/NameResolver.{h, cc}
  7206. * m4/libcares.m4
  7207. * configure.ac: Set C++ for language choice.
  7208. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. Fixed: compilation fails without c-ares/ares
  7210. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7211. Generate http/ftp commands only when download is incomplete.
  7212. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7213. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7214. Corrected typo. Examples are removed since they are available in man
  7215. page.
  7216. * src/version_usage.cc
  7217. Updated man page.
  7218. * doc/aria2c.1
  7219. * doc/aria2c.1.txt
  7220. * doc/makeman: Commented out sed command.
  7221. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Throw DlAbortEx when a remote file is not found.
  7223. * src/HttpResponse.cc
  7224. * src/FtpNegotiationCommand.cc
  7225. * src/message.h
  7226. Overwrite an existing file if --allow-overwrite=true is given.
  7227. * src/RequestGroup.cc
  7228. Removed unused functions
  7229. * src/AbstractCommand.h
  7230. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Removed 'extern' from 'extern typedef ...' in src/*.h
  7232. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7233. Updated usage
  7234. * src/version_usage.cc
  7235. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7236. Trim announce URL
  7237. * src/DefaultBtContext.cc
  7238. * test/ShaVisitorTest.cc
  7239. Trim argument s. Give trimed s to exception constructor.
  7240. * src/Util.cc (parseInt)(parseLLInt)
  7241. * test/UtilTest.cc
  7242. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7243. Set precision back to 1.
  7244. * src/ConsoleStatCalc.cc (calculateStat)
  7245. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Replaced strtol with Util::parseInt
  7247. * src/ChunkedEncoding.cc
  7248. * src/HttpConnection.cc
  7249. * src/CookieBoxFactory.cc
  7250. * src/ParameterizedStringParser.cc
  7251. * src/Util.cc
  7252. * test/UtilTest.cc
  7253. * test/OptionHandlerTest.cc
  7254. * src/Request.cc
  7255. Throw exception when empty string is given. The message for exception
  7256. changed.
  7257. * src/Util.cc (parseInt)(parseLLInt)
  7258. * src/message.h
  7259. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7260. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7261. set to 1.
  7262. * src/ConsoleStatCalc.cc (calculateStat)
  7263. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Preallocate non-requested file which is adjacent forward to requested
  7265. file('requested' files means the files given in --select-file option)
  7266. if they share a same piece.
  7267. This fixes long pause in the file system which doesn't support sparse
  7268. files like FAT32 while downloading.
  7269. * src/MultiFileAllocationIterator.{h, cc}
  7270. * test/MultiFileAllocationIteratorTest.cc
  7271. * src/FileEntry.{h, cc}
  7272. Removed unused _option.
  7273. * src/MultiDiskAdaptor.h
  7274. * test/MultiDiskAdaptorTest.cc
  7275. * src/DefaultPieceStorage.cc
  7276. Set the default value of --seed-ratio to 1.0.
  7277. If 0.0 is given, then seeding continues regardless of share ratio.
  7278. * src/version_usage.cc
  7279. * src/option_processing.cc
  7280. * src/BtSetup.cc
  7281. * doc/aria2c.1.txt
  7282. * doc/aria2c.1
  7283. Fixed: Selective download is not working in BitTorrent
  7284. * src/RequestGroup.cc
  7285. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7286. * src/PieceStorage.h
  7287. * test/MockPieceStorage.h
  7288. * src/UnknownLengthPieceStorage.h
  7289. * src/DefaultPieceStorage.{h, cc}
  7290. * src/Metalink2RequestGroup.cc
  7291. * src/RequestGroup.cc
  7292. * src/Sequence.h
  7293. * test/SequenceTest.cc
  7294. * src/IntSequence.h
  7295. * src/message.h
  7296. * src/Util.{h, cc}
  7297. * test/UtilTest.cc
  7298. Added new function 'parse' to catch exception thrown by subclass's
  7299. parseArg
  7300. * src/OptionHandler.h
  7301. * src/OptionParser.cc
  7302. * src/NameMatchOptionHandler.h
  7303. * src/OptionHandlerImpl.h
  7304. * test/OptionHandlerTest.cc
  7305. Added IntegerRangeOptionHandler. Used for --listen-port and
  7306. --select-file. Now --listen-port accepts range of port.
  7307. * src/OptionHandlerFactory.cc
  7308. * src/version_usage.cc
  7309. * src/OptionHandlerImpl.h
  7310. * src/option_processing.cc
  7311. * src/BtSetup.cc
  7312. * src/PeerListenCommand.{h, cc}
  7313. * doc/aria2c.1.txt
  7314. * doc/aria2c.1
  7315. Implemented operator< for Exception class to provide easy way to print
  7316. exception stack trace.
  7317. * src/Exception.{h, cc}
  7318. * src/main.cc
  7319. * src/option_processing.cc
  7320. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. * src/version_usage.cc
  7322. (showVersion): Reworked.
  7323. (showUsage): Added examples.
  7324. Removed Hint for total length and file name.
  7325. * src/Metalink2RequestGroup.cc
  7326. * src/RequestGroup.{h, cc}
  7327. * src/HttpResponseCommand.cc
  7328. * src/FtpNegotiationCommand.cc
  7329. Now --follow-torrent and --follow-metalink option work properly.
  7330. * src/RequestGroup.cc
  7331. Updated man page
  7332. * doc/aria2c.1.txt
  7333. * doc/aria2c.1
  7334. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Removed.
  7336. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7337. Use Segment::operator==()
  7338. * src/HttpConnection.cc
  7339. * src/Segment.h
  7340. Updated usage
  7341. * src/version_usage.cc
  7342. Added EINTR treatment.
  7343. * src/SocketCore.cc
  7344. * src/AbstractDiskWriter.cc
  7345. Rewritten.
  7346. * src/Util.cc (rangedFileCopy)
  7347. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Fixed typo.
  7349. * src/version_usage.cc
  7350. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Implemented. Now -c option works fine.
  7352. * src/DefaultPieceStorage.cc (markPiecesDone)
  7353. * test/DefaultPieceStorageTest.cc
  7354. Removed.
  7355. * src/SegmentMan.{h, cc}
  7356. (markAllPiecesDone)
  7357. (markPieceDone)
  7358. Synchronized po files with
  7359. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7360. * src/fr.po
  7361. * src/ru.po
  7362. * src/de.po
  7363. * src/ja.po
  7364. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Added ifdef and some modifications to compile without BitTorrent,
  7366. Metalink, MessageDigest
  7367. support.
  7368. * src/PieceHashCheckIntegrityEntry.cc
  7369. * src/MetalinkEntry.h
  7370. * src/version_usage.cc
  7371. * src/main.cc
  7372. * src/DownloadEngine.{h, cc}
  7373. * src/Metalink2RequestGroup.cc
  7374. * src/Peer.cc
  7375. * src/RequestGroup.cc
  7376. * src/MetalinkHelper.cc
  7377. * test/DefaultPieceStorageTest.cc
  7378. * test/MetalinkPostDownloadHandlerTest.cc
  7379. * test/Metalink2RequestGroupTest.cc
  7380. Hide TOTAL SPD when all downloads complete.
  7381. * src/ConsoleStatCalc.cc
  7382. Log target system information.
  7383. * src/main.cc
  7384. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Now --metalink-location accepts a comma-deliminated list of locations.
  7386. * src/MetalinkEntry.{h, cc}
  7387. * test/MetalinkEntryTest.cc
  7388. * src/version_usage.cc
  7389. * src/Metalink2RequestGroup.cc
  7390. * src/Xml2MetalinkProcessor.cc
  7391. * test/Xml2MetalinkProcessorTest.cc
  7392. * doc/aria2c.1.txt
  7393. * doc/aria2c.1
  7394. * src/Util.cc (toUpper)(toLower): Rewritten.
  7395. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7396. Added the ability to detect duplicate download entry which is about to
  7397. download the same file other RequestGroup is downloading.
  7398. * src/RequestGroup.cc
  7399. * src/HttpResponseCommand.cc
  7400. * src/FtpNegotiationCommand.cc
  7401. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Recalculates download progress when loading a control file,
  7403. if the piece length of DownloadContext is different from the one saved
  7404. in the control file. Currently in-flight pieces are ignored.
  7405. * src/DefaultBtProgressInfoFile.cc
  7406. * test/DefaultBtProgressInfoFileTest.cc
  7407. * src/Util.{h, cc}
  7408. * test/UtilTest.cc
  7409. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7410. Do not rotate tiers in announce-list.
  7411. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7412. AnnounceList::allTiersFailed() used instead to detect whether all
  7413. tiers are tried and failed.
  7414. * test/DefaultBtAnnounceTest.cc
  7415. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7416. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7417. * test/AnnounceListTest.cc
  7418. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7419. clause. Catch RecoverableException instead of DlRetryEx instead.
  7420. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Implemented checksum validation feature(1 checksum for each file)
  7422. The validation takes place after the download.
  7423. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7424. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7425. * src/CheckIntegrityCommand.cc: Changed log message.
  7426. * src/Metalink2RequestGroup.cc: Set checksum to
  7427. SingleFileDownloadContext.
  7428. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7429. PieceHashCheckIntegrity class.
  7430. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7431. PieceHashCheckIntegrity class.
  7432. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7433. * src/IteratableValidator.h: New class.
  7434. * src/message.h
  7435. * src/CheckIntegrityEntry.{h, cc}
  7436. * src/IteratableChunkChecksumValidator.{h, cc}
  7437. * src/SingleFileDownloadContext.h
  7438. * src/DownloadCommand.cc
  7439. --allow-overwrite=true is no longer needed to check file integrity
  7440. before download in BitTorrent download.
  7441. * src/RequestGroup.cc (getInitialCommand)
  7442. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7443. throws exception.
  7444. * src/RequestGroupMan.cc (getInitialCommands)
  7445. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7446. urlencode the given url inside Request::parseUrl(...)
  7447. * src/Request.{h, cc}
  7448. * src/Util.{h, cc}
  7449. * test/RequestTest.cc
  7450. Removed #!metalink3! notation support because it is deleted from
  7451. the metalink specification.
  7452. * src/Request.{h, cc}
  7453. * test/RequestTest.cc
  7454. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. Don't connect server before checking file integrity at startup, if
  7456. filesize and output file path are known.
  7457. * src/AbstractCommand.cc
  7458. * src/StreamFileAllocationEntry.cc
  7459. * src/Metalink2RequestGroup.cc
  7460. * src/RequestGroup.{h, cc}
  7461. * src/HttpResponseCommand.cc
  7462. * src/FtpNegotiationCommand.cc
  7463. Added DownloadFailureException. If it is thrown, RequestGroup should
  7464. halt.
  7465. * src/AbstractCommand.cc
  7466. * src/DownloadFailureException.h
  7467. * src/RequestGroup.cc
  7468. Catch RecoverableException, instead of DlAbortEx.
  7469. * src/RequestGroupMan.cc
  7470. * src/FillRequestGroupCommand.cc
  7471. * src/MetaFileUtil.cc
  7472. * src/IteratableChunkChecksumValidator.cc
  7473. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7474. getGID())
  7475. * src/CheckIntegrityCommand.cc
  7476. * src/message.h
  7477. Print gid instead of idx.
  7478. * src/RequestGroupMan.cc
  7479. Removed exception throwers declaration.
  7480. * src/DirectDiskAdaptor.{h, cc}
  7481. * src/SocketCore.{h, cc}
  7482. * src/MultiDiskAdaptor.{h, cc}
  7483. * src/HttpConnection.{h, cc}
  7484. * src/HttpResponse.{h, cc}
  7485. * src/DiskAdaptor.{h, cc}
  7486. * src/CopyDiskAdaptor.{h, cc}
  7487. * src/MultiDiskAdaptor.{h, cc}
  7488. * src/HttpHeaderProcessor.{h, cc}
  7489. * src/AbstractSingleDiskAdaptor.{h, cc}
  7490. * src/Util.{h, cc}
  7491. * test/UtilTest.cc
  7492. * src/DefaultDiskWriter.{h, cc}
  7493. * src/FtpConnection.{h, cc}
  7494. * src/AbstractDiskWriter.{h, cc}
  7495. Removed duplicate code.
  7496. * src/StreamCheckIntegrityEntry.cc
  7497. Removed unnecessary include.
  7498. * src/DiskWriter.h
  7499. Included Exception.h
  7500. * src/option_processing.cc
  7501. Included 2 files and added doc
  7502. * src/TrackerWatcherCommand.cc
  7503. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7504. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7505. Changed CheckIntegrityEntry interface so that it can define
  7506. the action when all the chunk checksums are valid.
  7507. * src/CheckIntegrityEntry.h
  7508. * src/StreamCheckIntegrityEntry.{h, cc}
  7509. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7510. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7511. to exit rather than doing seeding. So, it would be good to toggle this
  7512. behavior.
  7513. * src/CheckIntegrityCommand.cc
  7514. * src/AbstractCommand.cc
  7515. * src/RequestGroup.cc
  7516. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. Reflect the download length of in-flight pieces.
  7518. It makes the download length readout more precise.
  7519. * src/DefaultPieceStorage.{h, cc}
  7520. * test/DefaultPieceStorageTest.cc
  7521. * src/a2functional.h
  7522. * test/a2functionalTest.cc
  7523. Lower CPU load when --max-download-limit is used.
  7524. There is up and down in speed indicator when enabling
  7525. http-pipelining but a download goes well. I think the problem is that
  7526. because http-pipelining is enabled, DownloadCommand is created for
  7527. each segment and in its constructor, PeerStat::downloadStart() is
  7528. called. In PeerStat::downloadStart(), speed calculation object is
  7529. reseted, which makes download speed zero.
  7530. * src/DownloadCommand.cc
  7531. Rewritten using accumulate.
  7532. * src/RequestGroupMan.cc (calculateStat)
  7533. Code clearnup.
  7534. * src/FtpNegotiationCommand.cc
  7535. * src/HttpResponseCommand.cc
  7536. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. Fixed: Can not resume: aria2 reports download already finished.
  7538. * src/AbstractCommand.{h, cc}
  7539. * src/HttpResponseCommand.cc
  7540. * src/FtpNegotiateCommand.cc
  7541. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Now a file is stored in the directory specified in .metalnk file
  7543. (file[@name]).
  7544. * src/Metalink2RequestGroup.cc
  7545. Create the directory structure when opening the file if it doesn't
  7546. exist.
  7547. * src/AbstractDiskWriter.cc
  7548. * src/Util.{h, cc}
  7549. * src/File.h
  7550. * test/UtilTest.cc
  7551. Removed file name comparison
  7552. * src/Metalink2RequestGroup.cc
  7553. * src/HttpResponseCommand.cc
  7554. Rewritten using Util::mkdirs()
  7555. * src/FileEntry.cc (setupDir)
  7556. * test/FileEntryTest.cc
  7557. Updated doc
  7558. * src/SingleFileDownloadContext.h
  7559. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. Now SleepCommand dispatches nextCommand when halt is requested.
  7561. It avoids a possible long wait after hitting CTRL-C.
  7562. * src/SleepCommand.{h, cc}
  7563. * src/RequestGroupAware.{h, cc}
  7564. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7566. to open listen port, then remove the port number from the tracker
  7567. request.
  7568. * src/DefaultBtAnnounce.cc
  7569. * test/DefaultBtAnnounceTest.cc
  7570. * test/MockPieceStorage.h
  7571. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7572. them more testable.
  7573. * src/DefaultBtAnnounce.{h, cc}
  7574. * src/DefaultBtContext.{h, cc}
  7575. * src/Util.{h, cc}
  7576. * test/DefaultBtAnnounceTest.cc
  7577. * test/DefaultBtContextTest.cc
  7578. * test/UtilTest.cc
  7579. Added 'B' to upload bytes readout.
  7580. * src/ConsoleStatCalc.cc
  7581. Now the listen port for BitTorrent download is opened when it is
  7582. needed.
  7583. * src/DownloadEngineFactory.cc
  7584. * src/BtSetup.{h, cc}
  7585. * src/PeerListenCommand.{h, cc}
  7586. Now an exception thrown while parsing tracker response is now logged.
  7587. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7588. called, which means no retry is made in this case, assuming a tracker
  7589. has a problem.
  7590. * src/TrackerWatcherCommand.cc
  7591. Fixed: downloading a file whose length is unkown fails.
  7592. * src/DownloadCommand.cc
  7593. Simplified prepareForNextSegment()
  7594. * src/DownloadCommand.cc
  7595. Updated
  7596. * po/POTFILES.in
  7597. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Re-implemented a file listing for Metalink, which was dropped while
  7599. http/ftp/torrent integration was being implemented.
  7600. * src/MetalinkHelper.{h, cc}: New class.
  7601. * test/MetalinkHelperTest.cc
  7602. * src/main.cc
  7603. * src/Metalink2RequestGroup.cc
  7604. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Added the ability to display the detailed torrent file information.
  7606. Now -S option gives not only a file listing, but also total download
  7607. length, info hash, announce URI, piece length, the number of pieces,
  7608. and mode(single or multi-torrent).
  7609. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7610. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7611. KiB)
  7612. * test/UtilTest.cc
  7613. * src/main.cc
  7614. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Added ftp://USER:PASSWD@Servername automatic parsing.
  7616. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7617. _password. Recognize username and password in URI.
  7618. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7619. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7620. * src/RequestFactory.{h, cc}: Removed.
  7621. * src/AuthConfigFactory.{h, cc}: New class.
  7622. * src/FtpConnection.cc: Use AuthConfigFactory.
  7623. * src/HttpRequest.cc: Use AuthConfigFactory.
  7624. * test/HttpRequestTest.cc: Updated.
  7625. * test/RequestTest.cc: Updated.
  7626. * test/AuthConfigFactoryTest.cc: New class.
  7627. * test/RequestFactoryTest.cc: Removed.
  7628. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Use RequestGroup::allDownloadFinished() to decide whether the control
  7630. file should be removed or saved.
  7631. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7632. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7633. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7634. Use File::renameTo()
  7635. * src/DefaultBtProgressInfoFile.cc
  7636. Added --no-file-allocation-limit command-line option.
  7637. * src/version_usage.cc
  7638. * src/option_processing.cc
  7639. * src/OptionHandlerFactory.cc
  7640. * src/RequestGroup.{h, cc}
  7641. * src/BtCheckIntegrityEntry.cc
  7642. * src/StreamCheckIntegrityEntry.cc
  7643. * src/prefs.h
  7644. * doc/aria2c.1.txt
  7645. * doc/aria2c.1
  7646. Now prealloc is the default value for --file-allocation option.
  7647. * src/version_usage.cc
  7648. * src/option_processing.cc
  7649. * doc/aria2c.1.txt
  7650. * doc/aria2c.1
  7651. Don't URL-encode user-agent.
  7652. * src/HttpRequest.cc
  7653. Updated translations
  7654. * po/LINGUAS: Added nl for Dutch translation.
  7655. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7656. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7657. * po/POTFILES.in: Updated.
  7658. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7659. Added the ability to recognize url-list in a torrent file.
  7660. The retrieved URLs are attached to the corresponding FileEntry.
  7661. * src/DefaultBtContext.{h, cc}
  7662. * src/FileEntry.{h, cc}
  7663. * test/DefaultBtContextTest.cc
  7664. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7665. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7666. after the download finishes.
  7667. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7668. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7669. the data smaller than block length.
  7670. A block length can be specified by constructor's argument.
  7671. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7672. Get a missing piece in the range of given FileEntry. This function is
  7673. not used in the program yet.
  7674. * src/Util.h: Added some macros.
  7675. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Added HTTP/1.1 keep alive and pipelining support.
  7677. See --enable-http-keep-alive and --enable-http-pipelining option.
  7678. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7679. Segment.
  7680. * src/HttpDownloadCommand.{h, cc}
  7681. * src/OptionHandlerFactory.cc
  7682. * src/HttpConnection.{h, cc}
  7683. * src/version_usage.cc
  7684. * src/HttpInitiateConnectionCommand.cc
  7685. * src/FtpInitiateConnectionCommand.cc
  7686. * src/Segment.h
  7687. * src/HttpRequestCommand.{h, cc}
  7688. * src/option_processing.cc
  7689. * src/prefs.h
  7690. * src/HttpResponseCommand.cc
  7691. * src/SegmentMan.{h, cc}
  7692. * src/FtpNegotiateCommand.cc
  7693. * src/HttpProxyResponseCommand.cc
  7694. * src/Request.cc
  7695. * src/HttpRequest.cc
  7696. * src/DownloadCommand.cc
  7697. * test/HttpRequestTest.cc
  7698. * test/RequestTest.cc
  7699. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7701. finished.
  7702. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7704. catching it inside the method.
  7705. When no file entry is found in a metalink without querying user
  7706. preferences, throw the exception with the error message that suggests
  7707. metalink file is probably broken.
  7708. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7709. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7710. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7711. processed.
  7712. * src/RequestGroupMan.cc (removeStoppedGroup)
  7713. Added debug message.
  7714. * src/BtPostDownloadHandler.cc
  7715. * src/MetalinkPostDownloadHandler.cc
  7716. * src/PostDownloadHandler.{h, cc}
  7717. * src/RequestGroup.cc
  7718. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7719. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7720. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7722. stops and there are any unfinished or in-progress downloads.
  7723. Added the legend of "stat".
  7724. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. Throw exception when chunck checksum verification fails.
  7726. * src/DownloadCommand.cc (validatePieceHash): New function.
  7727. * src/PiecedSegment.{h, cc} (clear): New function.
  7728. * src/GrowSegment.{h, cc} (clear): New function.
  7729. * src/Segment.h (clear): New function.
  7730. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7731. * test/SegmentTest.cc
  7732. * test/GrowSegmentTest.cc
  7733. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Do not send referer when redirected.
  7735. * src/Request.cc (redirectUrl)
  7736. * test/RequestTest.cc
  7737. * test/HttpRequestTest.cc
  7738. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7739. Implemented BitTorrent/http/ftp integrated download.
  7740. I've rewritten lots of files and now some headers have forward
  7741. class declarations to reduce compile time.
  7742. The implementation is extremely alpha stage, I recommend to use this
  7743. for testing purpose only.
  7744. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7745. Fixed the compilation error on 64bit platform.
  7746. * test/HttpHeaderProcessorTest.cc
  7747. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7748. Merged Ross's patch that fixes compilation problem in MinGW
  7749. * test/DefaultBtProgressInfoFileTest.cc
  7750. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7751. Updated fr.po by sebone
  7752. * po/fr.po
  7753. Updated man page.
  7754. * doc/aria2c.1.txt
  7755. * Release 0.11.3
  7756. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7758. failure in Metalink.
  7759. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Automatically save *.aria2 control file of http/ftp download in every
  7761. 60 seconds.
  7762. * src/AutoSaveCommand.{h, cc}: New class.
  7763. * src/TimeBasedCommand.{h, cc}: New class.
  7764. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7765. Disable parameterized URI support by default. Added -P option to
  7766. enable the feature.
  7767. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7768. * src/OptionHandlerFactory.cc
  7769. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7770. Updated Japanese translation.
  7771. * po/ja.po
  7772. Updated man page.
  7773. * doc/aria2c.1.txt
  7774. * Release 0.11.3-rc
  7775. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7777. it is successful, then renamed to *.aria2.
  7778. This prevents *.aria2 file from being truncated or corrupted when
  7779. file system becomes out of space.
  7780. * src/DefaultBtProgressInfoFile.cc (save)
  7781. * src/SegmentMan.cc (save)
  7782. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7783. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7784. Reduced the fragmentation of bitfield in http/ftp download.
  7785. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7786. * test/BitfieldManTest.cc
  7787. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7788. Added the ability to disable segmented download in .metalink.
  7789. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7790. 'url' tag.
  7791. * src/MetalinkEntry.{h, cc}
  7792. * src/RequestResource.{h, cc}
  7793. * src/MetalinkRequestInfo.cc
  7794. * src/Xml2MetalinkProcessor.cc
  7795. * test/Xml2MetalinkProcessorTest.cc
  7796. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7797. Added parameterized URI support.
  7798. * src/main.cc: -Z option added.
  7799. * src/OptionHandlerFactory.cc
  7800. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7801. * src/PStringDatum.h: New class.
  7802. * src/PStringSegment.{h,cc}: New class.
  7803. * src/PStringNumLoop.h: New class.
  7804. * src/PStringSelect.h: New class.
  7805. * src/NumberDecorator.h: New class.
  7806. * src/FixedWidthNumberDecorator.h: New class.
  7807. * src/AlphaNumberDecorator.h: New class.
  7808. * src/PStringVisitor.h: New class.
  7809. * src/PStringBuildVisitor.{h,cc}: New class.
  7810. * src/ParameterizedStringParser.{h,cc}: New class.
  7811. * src/Util.{h,cc}
  7812. (isNumber): New function.
  7813. (isLowercase): New function.
  7814. (isUppercase): New function.
  7815. (alphaToNum): New function.
  7816. * test/ParameterizedStringParserTest.cc: New class.
  7817. * test/AlphaNumberDecoratorTest.cc: New class.
  7818. * test/PStringBuildVisitorTest.cc: New class.
  7819. * test/UtilTest.cc
  7820. (testIsNumber): New function.
  7821. (testIsLowercase): New function.
  7822. (testIsUppercase): New function.
  7823. (testAlphaToNum): New function.
  7824. Added '\n' after the error message
  7825. * src/RequestInfo.h (printDownloadAbortMessage)
  7826. Added auto file renaming feature in http(s)/ftp download.
  7827. * src/main.cc: Added --auto-file-renaming command-line option.
  7828. * src/OptionHandlerFactory.cc
  7829. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  7830. * src/RequestGroup.{h, cc}
  7831. (shouldCancelDownloadForSafety): Rewritten
  7832. (tryAutoFileRenaming): New function.
  7833. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  7834. * src/HttpResponseCommand.cc
  7835. (executeInternal): Removed the call to RequestGroupMan::
  7836. isSameFileBeingDownloaded()
  7837. * src/FtpNegotiateCommand.cc
  7838. (recvSize): Removed the call to RequestGroupMan::
  7839. isSameFileBeingDownloaded()
  7840. * test/RequestGroupTest.cc: New class.
  7841. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  7843. IO.
  7844. * src/DefaultBtProgressInfoFile.cc
  7845. * src/MetaFileUtil.cc
  7846. * src/SimpleLogger.cc
  7847. * src/SegmentMan.cc
  7848. * src/Util.cc
  7849. * src/Platform.cc
  7850. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7851. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  7852. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Avoid sparse files if possible, because VFAT32 doesn't support it.
  7854. * src/DefaultDiskWriter.cc (initAndOpenFile)
  7855. Fixed the bug that prevents file allocation is not done when
  7856. dowloading multi-torrent file.
  7857. * src/AbstractDiskWriter.cc (openFile)
  7858. Increase the maximum number of -j option from 15 to 45.
  7859. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7860. Added fr.po, thanks to Charles Landemaine.
  7861. * po/fr.po
  7862. * po/LINGUAS
  7863. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7864. gcc 3.4.4 support:
  7865. * src/DefaultBtContext.cc: int32_t -> int
  7866. * src/main.cc: int -> int32_t, int32_t -> int
  7867. * src/messageDigest.h: uint32_t -> unsigned int
  7868. * src/NameResolver.h: int32_t -> int
  7869. * src/PeerConnection.cc: int -> int32_t
  7870. * src/SpeedCalc.cc: int32_t -> int
  7871. * src/TrackerUpdateCommand.h: int -> int32_t
  7872. * src/Util.cc: int32_t -> int
  7873. * src/Util.h: int32_t -> int
  7874. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  7875. * test/AnnounceListTest.cc: int -> int32_t
  7876. * test/ChunkedEncodingTest.cc: int -> int32_t
  7877. * test/DataTest.cc: int -> int32_t
  7878. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  7879. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  7880. * test/DefaultPieceStorageTest.cc: int -> int32_t
  7881. * test/FeatureConfigTest.cc: int -> int32_t
  7882. * test/MetalinkEntryTest.cc: int -> int32_t
  7883. * test/MockBtRequestFactory.h: int -> int32_t
  7884. * test/MockPieceStorage.h: int -> int32_t
  7885. * test/OptionTest.cc: int -> int32_t
  7886. * test/RequestTest.cc: int -> int32_t
  7887. * test/SegmentManTest.cc: int -> int32_t
  7888. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  7889. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7890. Move sleep functions to Util class:
  7891. * src/Util.cc
  7892. (sleep): New function.
  7893. (usleep): New function.
  7894. * src/DownloadCommand.cc: sleep -> Util::sleep
  7895. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  7896. MinGW build enhancements. The following files are added:
  7897. * src/timegm.{c,h}
  7898. Changes to support the above new files:
  7899. * configure.ac
  7900. * src/Makefile.am
  7901. * src/a2time.h
  7902. * src/Util.cc:
  7903. * src/strptime.c: Added support for %Z option.
  7904. Fixed MinGW non-blocking bug.
  7905. * src/SocketCore.cc
  7906. * src/HttpRequestCommand.cc
  7907. Miscellenous build fixes/enhancements.
  7908. * configure.ac: Added summary report.
  7909. * src/Platform.h: Tweaked #include's.
  7910. * src/a2netcompat.h: Tweaked #include's.
  7911. * src/strptime.h: Tweaked #include's.
  7912. * src/gai_strerror.c: Tweaked #include's.
  7913. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7914. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7915. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7916. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. Increased the initial connection size in BitTorrent download to 40.
  7918. * src/BtRuntime.h
  7919. Added the usage message of --peer-id-prefix option.
  7920. * src/main.cc
  7921. * Release 0.11.2
  7922. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7923. MessageDigestHelper is introduced in order to simplify the use
  7924. of message digest. Removed repeated code.
  7925. The message digest algorithm is now specified by string, like "sha1",
  7926. "md5".
  7927. * src/messageDigest.{h, cc}
  7928. * src/MessageDigestHelper.{h, cc}: New class.
  7929. * src/DefaultPieceStorage.cc
  7930. * src/DefaultBtContext.{h, cc}
  7931. (computeFastSet): New function.
  7932. (setInfoHash): Added for unit testing.
  7933. (setNumPieces): Added for unit testing.
  7934. * src/DefaultBtInteractive.cc
  7935. * src/BtPieceMessage.cc
  7936. * src/Peer.cc
  7937. * src/Checksum.h
  7938. * src/message.h
  7939. * src/IteratableChecksumValidator.h
  7940. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7941. inside it.
  7942. * src/SegmentMan.{h, cc}
  7943. (checkIntegrity): Removed.
  7944. * src/IteratableChunkChecksumValidator.{h, cc}
  7945. * src/Util.h
  7946. (sha1Sum): Removed.
  7947. (simpleMessageDigest): Removed.
  7948. (fileChecksum): Removed.
  7949. (computeFastSet): Removed.
  7950. * src/ShaVisitor.cc
  7951. * src/ChunkChecksum.h
  7952. * src/DownloadCommand.cc
  7953. Removed messageDigest virtual functions.
  7954. * src/MultiDiskAdaptor.{h, cc}
  7955. * src/DiskAdaptor.h
  7956. * src/ByteArrayDiskWriter.h
  7957. * src/DiskWriter.h
  7958. * src/DiskAdaptorWriter.h
  7959. * src/AbstractSingleDiskAdaptor.{h, cc}
  7960. * src/AbstractDiskWriter.{h, cc}
  7961. Fixed comilation error when message digest is disabled.
  7962. * src/MetalinkEntry.{h, cc}
  7963. * src/MetalinkRequestInfo.cc
  7964. Removed srandom and random.
  7965. * src/SimpleRandomizer.h
  7966. Added size() virtual function to DiskAdaptor
  7967. * src/MultiDiskAdaptor.h
  7968. Fixed the bug that causes that files are not opened correctly in
  7969. multi-file torrent.
  7970. * src/TorrentRequestInfo.cc
  7971. * src/MultiDiskAdaptor.cc
  7972. Added SHA256 support
  7973. * src/messageDigest.cc
  7974. * src/Xml2MetalinkProcessor.cc
  7975. Show supported message digest algorithms
  7976. * src/main.cc
  7977. Updated contact info.
  7978. * src/main.cc
  7979. Applied Ross's patch
  7980. * src/a2netcompat.h
  7981. * src/main.cc
  7982. Fixed the bug that prevents a remote metalink from not being processed
  7983. even if '-o foo.metalink' is specified.
  7984. * src/MetalinkRequestInfo.cc
  7985. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7986. Merged Dan's patch:
  7987. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7988. Use va_copy to avoid core dump on amd64:
  7989. * src/SimpleLogger.cc
  7990. Updated contact info.
  7991. * src/main.cc
  7992. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7993. digest is not available.
  7994. * src/MetalinkEntry.h
  7995. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Make a2netcompat.h include a2io.h to fix compilation error:
  7997. * src/a2netcompat.h
  7998. * src/SocketCore.cc: Removed include of a2io.h
  7999. * src/Util.cc: Removed include of a2io.h
  8000. Gather time related functions to a2time.h:
  8001. * src/a2time.h: New file.
  8002. * src/DefaultPeerStorage.cc
  8003. * src/SimpleLogger.cc
  8004. * src/Util.{h, cc}
  8005. * src/SimpleRandomizer.h
  8006. * src/TimeA2.{h,cc}
  8007. * src/DownloadCommand.cc
  8008. * src/main.cc
  8009. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8010. a2netcompat.h:
  8011. * src/NameResolver.cc
  8012. Fixed compilation error without openssl:
  8013. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8014. Added default block to suppress compiler warnings:
  8015. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8016. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8017. MinGW build enhancements. The following files are added:
  8018. * src/gai_strerror.{c,h}
  8019. * src/gettimeofday.{c,h}
  8020. Changes to support the above new files:
  8021. * configure.ac
  8022. * src/Makefile.am
  8023. * src/a2netcompat.h
  8024. * src/TimeA2.cc
  8025. * src/DefaultPeerStorage.cc
  8026. * src/NameResolver.cc: removed mingw_strerror() function.
  8027. * src/SocketCore.cc: removed mingw_strerror() function.
  8028. Miscellaneous MinGW build fixes.
  8029. * src/a2io.h: Use _lseeki64() instead of lseek()
  8030. * src/common.h
  8031. * src/DefaultFileAllocator.cc
  8032. * src/GlowFileAllocator.cc
  8033. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8034. * src/NameResolver.cc
  8035. (callback): Changed int32_t to int.
  8036. (resolve): Changed int32_t to int.
  8037. * src/Platform.cc
  8038. * src/Platform.h
  8039. * test/MultiDiskWriterTest.cc
  8040. * test/PeerMessageUtilTest.cc
  8041. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8042. Other enhancements and fixes.
  8043. * src/HttpRequestCommand.cc
  8044. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8045. * src/SocketCore.cc:
  8046. (error): New function to abstract errno/WSAGetLastError().
  8047. (errorMsg): New function to abstract errno/WSAGetLastError().
  8048. (initiateSecureConnection): Added more detailed error reporting.
  8049. * src/SocketCore.h: Added private variable blocking, to allow
  8050. proper handling of OpenSSL psuedo-errors.
  8051. * src/message.h
  8052. (EX_SSL_INIT_FAILURE)
  8053. (EX_SSL_IO_ERROR)
  8054. (EX_SSL_PROTOCOL_ERROR)
  8055. (EX_SSL_UNKNOWN_ERROR)
  8056. (EX_SSL_CONNECT_ERROR)
  8057. (EX_SOCKET_BLOCKING)
  8058. (EX_SOCKET_NONBLOCKING)
  8059. (EX_SOCKET_UNKNOWN_ERROR)
  8060. * src/Util.cc
  8061. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8062. reserved name.
  8063. (httpGMT): Fixed typo.
  8064. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8065. Merged Ross's win32 patch(manually)
  8066. In the course of merging, following files are added.
  8067. * src/strptime.{h,c}
  8068. * src/libgen.{h,c}
  8069. * src/inet_aton.{h,c}
  8070. * src/Platform.{h,cc}
  8071. * src/localtime_r.{h,c}
  8072. * src/getaddrinfo.{h,c}
  8073. I've gethered network related things, and put them to following file:
  8074. * src/a2netcompat.h
  8075. Also io related things are put to following file:
  8076. * src/a2io.h
  8077. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8078. * src/message.h
  8079. (MSG_ALLOCATION_COMPLETED)
  8080. (EX_TOO_LARGE_FILE)
  8081. (EX_SIZE_MISMATCH)
  8082. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8083. (EX_INVALID_CHUNK_CHECKSUM)
  8084. (EX_INVALID_RANGE_HEADER)
  8085. * src/FileAllocationCommand.cc
  8086. * src/HttpResponse.cc
  8087. * src/RequestGroup.cc
  8088. * src/MultiDiskAdaptor.cc
  8089. * src/OptionHandlerImpl.h
  8090. * src/HttpResponseCommand.cc
  8091. * src/FtpNegotiateCommand.cc
  8092. * src/IteratableChecksumValidator.cc
  8093. * src/SegmentMan.cc
  8094. * src/ChunkChecksumValidator.cc
  8095. Added Randomizer::getRandomNumber(long int)
  8096. * src/Randomizer.h (getRandomNumber)
  8097. * src/SimpleRandomizer.h (getRandomNumber)
  8098. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8099. * src/Util.cc (randomAlpha): Use this new function.
  8100. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. Converted int's to in32_t. long long int's are also converted to
  8102. int64_t
  8103. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Fixed the bug that prevents cookies from being sent to the server
  8105. if the domain of cookie is FQDN and starts with ".".
  8106. * src/Cookie.cc (match)
  8107. To add the ability to change peer id.
  8108. * src/DefaultBtContext.h
  8109. (_peerIdPrefix): New variable
  8110. (setPeerIdPrefix): New function.
  8111. * src/torrentRequestInfo.cc
  8112. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8113. DefaultBtContext.
  8114. * src/main.cc (main): Added peer-id-prefix command-line option.
  8115. The usage message is not added yet.
  8116. * src/DefaultBtContext.cc
  8117. (generatePeerId): Use _peerIdPrefix.
  8118. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8119. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. Fixed the bug that prevents filename in content-disposition from
  8121. being retrieved when filename is not quoted.
  8122. * src/Util.cc (getContentDispositionFilename)
  8123. Fixed the bug that causes infinate loop and memory leak when file open
  8124. operation failed.
  8125. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8126. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Fixed the bug that causes segfault when all URIs specified are
  8128. unsupported.
  8129. * src/RequestGroupMan.cc (getInitialCommands)
  8130. Check if RequestGroup::createNextCommand() returns empty list of
  8131. commands.
  8132. * src/RequestGroup.cc (createNextCommand)
  8133. Change log level from info to error so that users can notice that
  8134. an error occurred.
  8135. Fixed the bug that causes segfault when a zero-sized file is
  8136. downloaded.
  8137. * src/BitfieldMan.cc (isAllBitSet)
  8138. Return true if bitfieldLength is 0.
  8139. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8140. * src/main.cc
  8141. (showUsage): Added 3 usage examples for metalink download.
  8142. Replace MetalinkChunkChecksum with ChunkChecksum.
  8143. * src/MetalinkChunkChecksum.h: Removed.
  8144. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8145. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8146. * src/Xml2MetalinkProcessor.cc
  8147. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8148. * src/MetalinkRequestInfo.cc (execute)
  8149. * Release 0.11.1
  8150. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8151. Reads URIs from stdin when "-i -" is specified.
  8152. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8153. * src/UriListParser.h, src/UriListParser.cc: New class.
  8154. * src/StreamUriListParser.h: New class.
  8155. * src/FileUriListParser.h: New class.
  8156. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8157. instead of UriFileListParser.
  8158. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Made console readout more readable.
  8160. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8161. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. Fix the bug that causes -s option not to work.
  8163. * src/main.cc (main)
  8164. * src/a2algo.h: New file.
  8165. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8166. Create directory structure specified in metalink file.
  8167. * src/RequestGroup.h, src/RequestGroup.cc
  8168. (initAndOpenFile): Create a directory to store files if it does not
  8169. exist.
  8170. (getDir): New function.
  8171. Added ETA and download speed for an individual file to readout.
  8172. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8173. * src/RequestGroup.h
  8174. (calculateDownloadSpeed): New function.
  8175. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Made -S option work with metalink file and provided selective download
  8177. to metalink.
  8178. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8179. (filename): Removed.
  8180. (file): New variable.
  8181. (size): Removed.
  8182. (operator=): Updated.
  8183. (getPath): New function.
  8184. (getLength): New function.
  8185. (toFileEntry): New function.
  8186. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8187. (execute): Use toStream.
  8188. (showFileEntry): Removed.
  8189. * src/MetalinkRequestInfo.h
  8190. (targetFiles): New variable.
  8191. (setTargetFiles): New variable.
  8192. * src/MetalinkRequestInfo.cc
  8193. (execute): Added the ability to print file information included in
  8194. a metalink file.
  8195. Added selective download mode to metalink.
  8196. * src/main.cc
  8197. (showUsage): Updated to denote that -S and --select-file options are
  8198. applicable to metalink.
  8199. * src/FileEntry.h
  8200. (operator=): New function.
  8201. (getBasename): New function.
  8202. (getDirname): New function.
  8203. * src/Util.h, src/Util.cc
  8204. (toStream): New function.
  8205. * src/Xml2MetalinkProcessor.cc: Updated.
  8206. Made aria2 work with metalink with directory structure.
  8207. * src/File.h, src/File.cc
  8208. (getBasename): New function.
  8209. (getDirname): New function.
  8210. * src/RequestGroup.h, src/RequestGroup.cc
  8211. (_topDir): New variable.
  8212. (setTopDir): New function.
  8213. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8214. Rewrote HTTP header parsing with stringstream.
  8215. * src/HttpConnection.h, src/HttpConnection.cc
  8216. (HttpRequestEntry): New class.
  8217. (headerBuf): Removed.
  8218. (headerBufLength): Removed.
  8219. (outstandingHttpRequests): Now its element type is
  8220. HttpRequestEntryHandle.
  8221. (findEndOfHeader): Removed.
  8222. (receiveResponse): Rewritten.
  8223. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8224. Updated doc for -j option to notice that it should be used with -i
  8225. option.
  8226. * src/main.cc (showUsage)
  8227. Removed unused classes.
  8228. * src/RequestInfo.h
  8229. (FileInfo): Removed.
  8230. (checksum): Removed.
  8231. (fileInfo): Removed.
  8232. (setChecksum): Removed.
  8233. (getChecksum): Removed.
  8234. (getFileInfo): Removed.
  8235. Use ISO units.
  8236. * src/ConsoleDownloadEngine.cc
  8237. * src/TorrentConsoleDownloadEngine.cc
  8238. * src/Util.cc (abbrevSize)
  8239. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8240. Added the default listening ports to the help message.
  8241. * src/main.cc (showUsage)
  8242. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8243. Reduce the number of calls to gettimeofday to lower CPU load.
  8244. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8245. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8246. * src/Peer.h (calculateUploadSpeed): New function.
  8247. (calculateDownloadSpeed): New function.
  8248. * src/DefaultPeerStorage.cc
  8249. (CalculateStat): Added _now variable.
  8250. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8251. and Peer::calculateUploadSpeed(const struct timeval&)
  8252. Drop connection if no request or piece message is exchanged in
  8253. a certain interval.
  8254. * src/DefaultBtInteractive.h
  8255. (btRuntime): New variable.
  8256. (inactiveCheckPoint): New variable.
  8257. (checkActiveInteraction): New function.
  8258. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8259. request or piece message is received.
  8260. (checkActiveInteraction): New function.
  8261. (doInteractionProcessing): Call checkActiveInteraction.
  8262. Fixed the bug that causes remote Metalink and Torrent files are not
  8263. processed.
  8264. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8265. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Changed format of log file.
  8267. * src/SimpleLogger.cc
  8268. * Release 0.11.0
  8269. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. * src/AbstractCommand.cc
  8271. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8272. MSG_MAX_TRY from error to info.
  8273. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8274. * src/message.h
  8275. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8276. (MSG_DOWNLOAD_ABORTED): Added %s.
  8277. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8278. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8279. * src/PeerAbstractCommand.cc
  8280. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8281. * src/Request.h
  8282. (cookieBox): Made ShardHandle.
  8283. * src/RequestGroup.h, src/RequestGroup.cc
  8284. (createNextCommandWithAdj): New function.
  8285. * src/FileAllocationCommand.cc
  8286. (executeInternal): Use createNextCommandWithAdj().
  8287. * src/CheckIntegrityCommand.cc
  8288. (executeInternal): Use createNextCommandWithAdj().
  8289. Added --load-cookies command-option.
  8290. * src/OptionHandlerFactory.cc
  8291. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8292. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8293. Now aria2 can handle cookie's expiration date.
  8294. * src/Cookie.h (expires): Changed its type to time_t.
  8295. * src/main.cc: Added --load-cookies command-line option.
  8296. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8297. * src/Util.h, src/Util.cc (httpGMT): New function.
  8298. * src/Request.cc (Request): Initialize cookieBox using
  8299. CookieBoxFactory.
  8300. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8301. * src/CookieParser.h, src/CookieParser.cc: New class.
  8302. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8303. * src/HttpResponseCommand.cc
  8304. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8305. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8306. download.
  8307. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. Added -j command-line option.
  8309. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8310. * src/main.cc
  8311. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8312. Rewritten using stringstream.
  8313. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8314. Rewritten using stringstream.
  8315. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. Make download size shown in MB, KB.
  8317. * src/ConsoleDownloadEngine.h (sendStatistics)
  8318. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8319. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. Accept incoming connections if download rate is low.
  8321. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8322. (_lowestSpeedLimit): New variable.
  8323. (setLowestSpeedLimit): New function.
  8324. (execute): Accept incoming connections if download rate is low.
  8325. MAX_PEERS is ignored in this case.
  8326. Disable PREF_OUT in multiple concurrent download:
  8327. * src/RequestGroup.h, src/RequestGroup.cc
  8328. (setUserDefinedFilename): New function.
  8329. * src/DownloadEngineFactory.cc
  8330. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8331. concurrent download.
  8332. * src/DefaultSegmentManFactory.cc
  8333. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8334. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8335. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8336. Added its overloaded method.
  8337. * src/RequestGroup.h
  8338. (_numConcurrentCommand): New variable.
  8339. (setNumConcurrentCommand): New function.
  8340. * src/RequestGroup.cc
  8341. Abort download if same file is being downloaded concurrently.
  8342. * src/RequestGroup.h, src/RequestGroupMan.cc
  8343. (isSameFileBeingDownloaded): New function.
  8344. * src/HttpResponseCommand.cc (executeInternal)
  8345. * src/FtpNegotiateCommand.cc (recvSize)
  8346. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8347. * main.cc: Added help message for -i option.
  8348. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8350. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8351. * src/MetalinkEntry.h
  8352. (checksum): Changed to ChecksumHandle
  8353. * src/MetalinkRequestInfo.cc
  8354. (checksum): Changed to ChecksumHandle
  8355. * src/File.cc
  8356. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8357. * src/common.h
  8358. (DIR_OPEN_MODE): New definition
  8359. * src/RequestGroup.cc
  8360. (prepareForNextAction): Added an argument.
  8361. * src/message.h
  8362. (MSG_GOOD_CHECKSUM): New definition
  8363. (MSG_BAD_CHECKSUM): New definition
  8364. * src/HttpResponseCommand.cc
  8365. (handleDefaultEncoding): Continue download sequence in new
  8366. non-segmented download.
  8367. * src/FileAllocationEntry.h
  8368. (_nextDownloadCommand): New variable.
  8369. * src/DownloadCommand.cc
  8370. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8371. available.
  8372. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8373. * src/IteratableChecksumValidator.h,
  8374. src/IteratableChecksumValidator.cc: New class.
  8375. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8376. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. Change file mode to 666:
  8378. * src/common.h (OPEN_MODE): New definition.
  8379. * src/File.cc
  8380. * src/Util.cc
  8381. * src/Directry.cc
  8382. * src/AbstractDiskWriter.cc
  8383. Change the level of log message "download aborted" to debug:
  8384. * src/PeerAbstractCommand.cc (execute)
  8385. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8386. * src/TrackerWatcherCommand.cc
  8387. (createCommand): Sleep some seconds after request failed.
  8388. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8389. then abort tracker request.
  8390. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8391. * Added the simultaneous download feature.
  8392. * src/main.cc: Print "Exception caught: " when exception is caught.
  8393. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8394. * src/ActivePeerConnectionCommand.cc
  8395. * src/PeerInteractionCommand.cc
  8396. * src/BtRuntime.h
  8397. (cuidCounter): Removed.
  8398. (getNewCuid): Removed.
  8399. * src/DownloadEngineFactory.cc
  8400. * src/PeerListenCommand.cc
  8401. * src/TrackerUpdateCommand.cc
  8402. * src/PeerInitiateConnectionCommand.cc
  8403. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. * src/PeerAbstractCommand.cc
  8405. (onAbort): Call PeerStorage::returnPeer()
  8406. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8407. (incomingPeers): New variable.
  8408. (addIncomingPeer): New function.
  8409. (returnPeer): New function.
  8410. (onErasingPeer): New function.
  8411. (addPeer): push_back -> push_front
  8412. (getActivePeers): Rewritten.
  8413. (calculateStat): Rewritten.
  8414. * src/PeerStorage.h
  8415. (TransferStat::copy): New function.
  8416. (TransferStat::TransferStat): New function.
  8417. (TransferStat::operator=): New function.
  8418. (addIncomingPeer): New function.
  8419. (returnPeer): New function.
  8420. * src/PeerListenCommand.cc
  8421. (execute): Use PeerStorage::addIncomingPeer() instead of
  8422. Peer::addPeer().
  8423. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. Connect to a peer actively when download speed is lower than specified
  8425. speed in torrent download:
  8426. * src/ActivePeerConnectionCommand.h: New class.
  8427. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8428. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8429. * src/main.cc: Fixed the bug that prevents download if .netrc
  8430. doesn't exist.
  8431. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. To cache resolved hostname:
  8433. * src/AbstractCommand.h, src/AbstractCommand.cc
  8434. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8435. Added dns cache.
  8436. * src/FtpInitiateConnectionCommand.cc
  8437. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8438. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8439. NameResolver working without ares.
  8440. * src/TorrentRequestInfo.cc
  8441. (execute): Don't cache dns in torrent download.
  8442. * src/HttpInitiateConnectionCommand.cc
  8443. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8444. * src/DNSCache.h: New class.
  8445. * src/UrlRequestInfo.cc
  8446. (execute): Use dns cache.
  8447. In http request, suppress port number in http request header if port
  8448. is 80 or 443:
  8449. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8450. request header if port is 80 or 443.
  8451. (createProxyRequest): Allways send port number.
  8452. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8453. To add the command-line option which disables netrc support:
  8454. * src/OptionHandlerFactory.cc
  8455. (createOptionHandlers): Added PREF_NO_NETRC.
  8456. * src/main.cc: Added -n option.
  8457. * src/prefs.h (PREF_NO_NETRC): New definition.
  8458. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8459. V_TRUE.
  8460. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8461. is V_FALSE. This may get configurable in the future release.
  8462. To clear peer's error status by time basis:
  8463. * src/PeerAbstractCommand.cc
  8464. (onAbort): Call Peer::startBadCondition().
  8465. * src/Peer.h, src/Peer.cc
  8466. (error): Removed.
  8467. (_badConditionStartTime): New variable.
  8468. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8469. (startBadCondition): New function.
  8470. (isGood): New function.
  8471. * src/DefaultPeerStorage.cc
  8472. (addPeer): Use Peer::isGood().
  8473. (FindFinePeer): Use Peer::isGood().
  8474. Always include port number in http request header:
  8475. * src/HttpRequest.cc (getHostText): Always include port number in
  8476. http request header.
  8477. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. To the ability to read options from a config file:
  8479. * src/main.cc: Command-line parameter validation is delegated to
  8480. OptionHandler class.
  8481. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8482. * src/Option.h, src/Option.cc (clear): New function.
  8483. * src/OptionParser.h, src/OptionParser.cc: New class.
  8484. * src/OptionHandler.h: New class.
  8485. * src/NameMatchOptionHandler.h: New class.
  8486. * src/OptionHandlerImpl.h: New classes.
  8487. * src/prefs.h: '_' -> '-'
  8488. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8489. (FTP_PASV): New definition.
  8490. * src/Util.h, src/Util.cc (getRealSize): New function.
  8491. To disable netrc support if .netrc file does not have correct
  8492. permissions:
  8493. * src/File.h, src/File.cc (mode): New function.
  8494. To prevent confidential information to be logged:
  8495. * src/HttpConnection.h, src/HttpConnection.cc
  8496. (eraseConfidentialInfo): New function.
  8497. (sendRequest): Call eraseConfidentialInfo().
  8498. (sendProxyRequest): Call eraseConfidentialInfo().
  8499. * src/main.cc: Validate permissions of .netrc file.
  8500. To add --user-agent command-line option:
  8501. * src/main.cc: Added new command line option: --user-agent
  8502. * src/prefs.h (PREF_USER_AGENT): New definition.
  8503. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8504. parameter to HttpRequest object.
  8505. * src/AbstractProxyRequestCommand.cc
  8506. (executeInternal): Set user-agent option parameter to HttpRequest
  8507. object.
  8508. Marged the patches from Dan Fandrich.
  8509. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8510. Use filename and size from Metalink file instead of sending HEAD
  8511. request:
  8512. * src/UrlRequestInfo.h
  8513. (_filename): New variable.
  8514. (_totalLength): New variable.
  8515. (setTotalLength): New variable.
  8516. (setFilename): New variable.
  8517. * src/MetalinkRequestInfo.cc
  8518. (execute): Set filename and size to UrlRequestInfo
  8519. * src/UrlRequestInfo.cc
  8520. (execute): Use filename and size from Metalink instead of seding
  8521. HEAD request to servers.
  8522. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. To add the ability to resume downloading a partially downloaded file
  8524. which is downloaded from the beginning:
  8525. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8526. takes this role.
  8527. * src/main.cc: Added -c option.
  8528. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8529. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8530. * src/prefs.h (PREF_CONTINUE): New definition.
  8531. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8532. * src/DefaultDiskWriter.cc
  8533. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8534. * src/AbstractDiskWriter.h
  8535. (glowFileAllocator): New variable.
  8536. * src/AbstractDiskWriter.cc
  8537. (openExistingFile): Now preallocate file space from the end of the
  8538. existing file if totalLength argument is specified and grater than 0.
  8539. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8540. to download exists in local, continue the download of the file.
  8541. --allow-overwrite=true is assumed in this context.
  8542. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8543. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8544. Throw exception if --check-integrity=true is specified but chunk
  8545. checksums are not provided:
  8546. * src/UrlRequestInfo.cc
  8547. Do not print URLs to stdout:
  8548. * src/UrlRequestInfo.cc
  8549. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. * src/Request.h: Use AuthResolver to get authentication information.
  8551. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8552. set to RequestFactory object.
  8553. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8554. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8555. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8556. create Request object.
  8557. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8558. To integrate Netrc into exsiting classes:
  8559. * src/Request.h
  8560. (_userDefinedAuthConfig): New variable.
  8561. (findNetrcAuthenticator): New function.
  8562. (segment): Removed.
  8563. (setUserDefinedAuthConfig): New function.
  8564. (resolveHttpAuthConfigItem): New function.
  8565. (resolveFtpAuthConfigItem): New function.
  8566. (resolveHttpProxyAuthConfigItem): New function.
  8567. * src/HttpRequest.h
  8568. (authConfig): Removed.
  8569. (proxyAuthConfig): Removed.
  8570. (setAuthConfig): Removed.
  8571. (setProxyAuthConfig): Removed.
  8572. * src/UrlRequest.h
  8573. (getHeadResult): Added a parameter: authConfigHandle
  8574. * src/common.h
  8575. (SingletonHolder.h): New include.
  8576. * src/main.cc
  8577. (Netrc.h): New include.
  8578. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8579. Added initial value of PREF_NETRC_PATH.
  8580. Added the initialization of netrc.
  8581. * src/AuthConfig.h: New class.
  8582. * src/prefs.h
  8583. (PREF_NETRC_PATH): New definition.
  8584. * src/HttpAuthConfig.h: Removed.
  8585. * src/Netrc.cc
  8586. (getRequiredNextToken): New function.
  8587. (skipMacdef): New function.
  8588. (parse): Rewritten.
  8589. * src/Netrc.h
  8590. (getRequiredNextToken): New function.
  8591. (skipMacdef): New function.
  8592. * src/Util.h, src/Util.cc
  8593. (getHomeDir): New function.
  8594. * src/TrackerWatcherComand.cc
  8595. (createRequestCommand): Use AuthConfig.
  8596. * src/FtpConnection.cc
  8597. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8598. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8599. * src/Request.cc
  8600. (findNetrcAuthenticator): New function.
  8601. (resolveHttpAuthConfigItem): New function.
  8602. (resolveFtpAuthConfigItem): New function.
  8603. (resolveHttpProxyAuthConfigItem): New function.
  8604. * src/UrlRequestInfo.cc: Use AuthConfig.
  8605. * src/HttpRequest.cc
  8606. (createRequest): Use authConfig.
  8607. (getProxyAuthString): Use authConfig.
  8608. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8609. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8610. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. To reduce overhead to find commands whose socket is either
  8612. readable or writable in the download engine loop:
  8613. * src/Command.h, src/Command.cc
  8614. (STATUS): New enum.
  8615. (status): New variable.
  8616. (statusMatch): New function.
  8617. (setStatusActive): New function.
  8618. (setStatusInactive): New function.
  8619. * src/DownloadEngine.h, src/DownloadEngine.cc
  8620. (executeCommand): New function.
  8621. (run): Simplified.
  8622. (waitData): Call Command::setStatusActive() when command's socket is
  8623. readable or writable.
  8624. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8625. To handle Segment as SegmentHandle:
  8626. * src/AbstractCommand.cc (execute): Rewritten.
  8627. * src/SegmentMan.h: Segment -> SegmentHandle
  8628. Introducded HttpResponse class, HttpRequest class to improve code
  8629. extensiveness and make it clear:
  8630. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8631. HttpResponse class.
  8632. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8633. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8634. * src/HttpConnection.cc: Contruction of http request were moved to
  8635. HttpRequest class.
  8636. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8637. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8638. * src/HttpAuthConfig.h: New class.
  8639. * src/Range.h: New class.
  8640. To make FtpTunnel{Request, Response}Command and
  8641. HttpProxy{Request, Response}Command derived from
  8642. AbstractProxy{Request, Response}Command:
  8643. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8644. Derived from AbstractProxyRequestCommand class.
  8645. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8646. Derived from AbstractProxyResponseCommand class.
  8647. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8648. Derived from AbstractProxyRequestCommand class.
  8649. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8650. Derived from AbstractProxyResponseCommand class.
  8651. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8652. : New class.
  8653. * src/AbstractProxyResponseCommand.h,
  8654. src/AbstractProxyResponseCommand.cc: New class.
  8655. To add netrc support:
  8656. * src/Netrc.h, src/Netrc.cc: New class.
  8657. * src/Util.h, src/Util.cc (split): New function.
  8658. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8659. "Content-Range" header instead of "Range" header.
  8660. * src/HttpHeader.h
  8661. (getStatus): Removed.
  8662. (setStatus): Removed.
  8663. * src/Segment.h
  8664. (getPositionToWrite): New function.
  8665. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. * src/HttpHeader.h
  8667. (Range.h): New include.
  8668. (status): New variable.
  8669. (HttpHeader): Initialized status with 0.
  8670. (getStatus): New function.
  8671. (setStatus): New function.
  8672. (getRange): New function.
  8673. (HttpHeaderHandle): New function.
  8674. * src/HttpHeader.cc
  8675. (getRange): New function.
  8676. * src/Request.h
  8677. (RequestWeakHandle): New definition.
  8678. * src/HttpConnection.h
  8679. (HttpConnectionHandle): New type definition.
  8680. * src/HttpConnection.cc
  8681. (receiveResponse): Set HTTP status to headers.
  8682. * src/main.cc
  8683. (showUsage): Fixed typo.
  8684. * src/Segment.h
  8685. (SegmentHandle): New type definition.
  8686. * src/BitfieldMan.h
  8687. (getMissingUnusedLength): New function.
  8688. * src/BitfieldMan.cc
  8689. (getMissingUnusedLength): New function.
  8690. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. To fix static initialization order problem:
  8692. * src/BitfieldManFactory.h
  8693. (defaultRandomizer): Removed.
  8694. (factory): New variable.
  8695. (getNewFactory): Removed.
  8696. (getFactoryInstance): New function.
  8697. (setDefaultRandomizer): Rewritten.
  8698. (getDefaultRandomizer): Rewritten.
  8699. * src/BitfieldManFactory.cc
  8700. (defaultRandomizer): Removed.
  8701. (factory): Initialized to 0.
  8702. (BitfieldManFactory): Initialized randomizer to 0.
  8703. * src/DefaultPieceStorage.cc
  8704. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8705. * src/Peer.cc
  8706. (Peer): getNewFactory() -> getFactoryInstance()
  8707. * src/SegmentMan.cc
  8708. (initBitfield): getNewFactory() -> getFactoryInstance()
  8709. * src/Piece.cc
  8710. (Piece): getNewFactory() -> getFactoryInstance()
  8711. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8712. To fix the bug that causes crash on Max OS X:
  8713. * src/SimpleRandomizer.h
  8714. (getInstance): Create new instance if the static variable is null.
  8715. * src/SimpleRandomizer.cc
  8716. (randomizer): Initialized to 0.
  8717. * src/BitfieldManFactory.h
  8718. (getNewFactory): Removed the call to setRandomizer().
  8719. To fix the miscalculation of the range of checksum:
  8720. * src/BitfieldMan.h
  8721. (isBitSetOffsetRange): New function.
  8722. * src/BitfieldMan.cc
  8723. (isBitSetOffsetRange): New function.
  8724. * src/SegmentMan.cc
  8725. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8726. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8727. * Release 0.10.1
  8728. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. To lower CPU usage in BitTorrent download when --max-upload-limit
  8730. command-line option specified:
  8731. * src/DefaultBtMessageDispatcher.cc
  8732. (sendMessages): Calculate uploading speed only when current message
  8733. is uploading data and is not sent yet.
  8734. * src/DefaultPeerStorage.h
  8735. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8736. * src/HttpResponseCommand.cc
  8737. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8738. This fixes compile error in Soralis 10.
  8739. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8740. To fix segfault in Metalink download:
  8741. * src/UrlRequestInfo.h
  8742. (filename): Removed.
  8743. (totalLength): Removed.
  8744. (setTotalLength): Removed.
  8745. (setFilename): Removed.
  8746. * src/MetalinkRequestInfo.cc
  8747. (execute): Do not set filename and totalLength to reqInfo.
  8748. Set chunk checksum to reqInfo if it is not null.
  8749. * src/HttpResponseCommand.cc
  8750. (executeInternal): Fixed filename in log.
  8751. (handleDefaultEncoding): Removed the call to initBitfield() and
  8752. markAllPiecesDone().
  8753. (handleOtherEncoding): Added HEAD method handling.
  8754. * src/FtpNegotiateCommand.cc
  8755. (executeInternal): Added SEQ_HEAD_OK handling.
  8756. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8757. return false.
  8758. * src/FtpNegotiateCommand.h
  8759. (SEQ_HEAD_OK): New definition.
  8760. * src/SegmentMan.cc
  8761. (initBitfield): Delete bitfield.
  8762. (isChunkChecksumValidationReady): Fixed the condition.
  8763. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8764. works fine.
  8765. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8766. * src/Xml2MetalinkProcessor.h
  8767. (xpathExists): New function.
  8768. * src/Xml2MetalinkProcessor.cc
  8769. (xpathExists): New function.
  8770. Not to send HEAD request if filename and size are available in Metalink
  8771. file:
  8772. * src/UrlRequestInfo.h
  8773. (filename): New variable.
  8774. (totalLength): New variable.
  8775. (setTotalLength): New function.
  8776. (setFilename): New function.
  8777. * src/MetalinkRequestInfo.cc
  8778. (execute): Set filename and size to UrlRequestInfo.
  8779. * src/MetalinkEntry.cc
  8780. (MetalinkEntry): Initialize size with 0.
  8781. * src/UrlRequestInfo.cc
  8782. (execute): Set filename and size to SegmentMan.
  8783. Not to download rest of the files after selected files are downloaded
  8784. in BitTorrent:
  8785. * src/PieceStorage.h
  8786. (allDownloadFinished): New function.
  8787. * src/DefaultBtAnnounce.cc
  8788. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8789. downloadFinished.
  8790. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8791. * src/DefaultPieceStorage.cc
  8792. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8793. Commented out the call to finishSelectiveDownloadingMode().
  8794. (downloadFinished): Call isFilteredAllBitSet() instead of
  8795. isAllBitSet().
  8796. (allDownloadFinished): New function.
  8797. * src/DefaultBtInteractive.cc
  8798. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8799. downloadFinished().
  8800. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8801. * src/TorrentDownloadEngine.cc
  8802. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8803. * src/BitfieldMan.h
  8804. (isFilteredAllBitSet): New function.
  8805. * src/ShareRatioSeedCriteria.h
  8806. (PieceStorage.h): New include.
  8807. (pieceStorage): New variable.
  8808. (evaluate):
  8809. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8810. * src/BitfieldMan.cc
  8811. (isFilteredAllBitSet): New function.
  8812. (isAllBitSet): Filter is not took into account.
  8813. Rename --force-truncate as --allow-overwrite:
  8814. * src/TorrentRequestInfo.cc
  8815. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8816. * src/main.cc
  8817. (showUsage): --force-truncate -> --allow-overwrite
  8818. * src/message.h
  8819. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8820. * src/prefs.h
  8821. (PREF_FORCE_TRUNCATE): Removed.
  8822. (PREF_ALLOW_OVERWRITE): New definition.
  8823. * src/SegmentMan.cc
  8824. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  8825. * src/MetalinkRequestInfo.cc
  8826. (execute): Queueing message are now logged in info level.
  8827. * src/common.h
  8828. (LONG_LONG_MAX): Removed.
  8829. (LONG_LONG_MIN): Removed.
  8830. * src/HttpResponseCommand.cc
  8831. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  8832. * src/FtpNegotiateCommand.cc
  8833. (recvSize): LONG_LONG_MAX -> INT64_MAX
  8834. * src/main.cc
  8835. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  8836. command-line option.
  8837. (main): Added --check-integriy and --realtime-chunk-checksum
  8838. command-line option.
  8839. --force-truncate -> --allow-overwrite
  8840. Set initial value of --check-integrity option to false.
  8841. Don't show usage when error occurs while persing command-line options.
  8842. Removed deprecated --upload-limit option.
  8843. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  8845. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  8846. * src/BtAllowedFastMessage.cc:
  8847. * src/BtBitfieldMessage.cc
  8848. * src/BtCancelMessage.cc
  8849. * src/BtChokeMessage.cc
  8850. * src/BtHaveAllMessage.cc
  8851. * src/BtHaveMessage.cc
  8852. * src/BtHaveNoneMessage.cc
  8853. * src/BtInterestedMessage.cc
  8854. * src/BtNotInterestedMessage.cc
  8855. * src/BtPieceMessage.cc
  8856. * src/BtPortMessage.cc
  8857. * src/BtRejectMessage.cc
  8858. * src/BtRequestMessage.cc
  8859. * src/BtSuggestPieceMessage.cc
  8860. * src/BtUnchokeMessage.cc
  8861. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  8862. files are affected.
  8863. * src/ChunkChecksumValidator.cc
  8864. * src/SegmentMan.cc
  8865. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. To add chunk checksum validation:
  8867. * src/MetalinkEntry.h
  8868. (MetalinkChunkChecksum.h): New include.
  8869. (chunkChecksum): New variable.
  8870. * src/Request.h
  8871. (method): New variable.
  8872. (setMethod): New function.
  8873. (getMethod): New function.
  8874. (METHOD_GET): New static constant.
  8875. (METHOD_HEAD): New static constant.
  8876. * src/Xml2MetalinkProcessor.h
  8877. (getPieceHash): New function.
  8878. * src/PieceStorage.h
  8879. (markAllPiecesDone): New function.
  8880. (checkIntegrity): New function.
  8881. * src/FileAllocator.h
  8882. (NullFileAllocationMonitor.h): New include.
  8883. (FileAllocator): Initialize fileAllocationMonitor with new
  8884. NullFileAllocationMonitor().
  8885. * src/MultiDiskAdaptor.h
  8886. (messageDigest.h): Remove include.
  8887. (ctx): Removed.
  8888. (hashUpdate): Added ctx.
  8889. (MultiDiskAdaptor): Removed ctx.
  8890. (sha1Sum): Renamed as messageDigest.
  8891. (messageDigest): New function.
  8892. * src/UrlRequestInfo.h
  8893. (HeadResult): New class.
  8894. (digestAlgo): New variable.
  8895. (chunkChecksumLength): New variable.
  8896. (chunkChecksums): New variable.
  8897. (getHeadResult): New function.
  8898. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  8899. (setDigestAlgo): New function.
  8900. (setChunkChecksumLength): New function.
  8901. (setChunkChecksums): New function.
  8902. * src/DefaultPieceStorage.cc
  8903. (DiskAdaptorWriter.h): New include.
  8904. (ChunkChecksumValidator.h): New include.
  8905. (markAllPiecesDone): New function.
  8906. (checkIntegrity): New function.
  8907. * src/DefaultBtContext.h
  8908. (getPieceHashes): New function.
  8909. * src/TorrentRequestInfo.cc
  8910. (execute): Try to validate chunk checksum if file already exists and
  8911. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8912. * src/messageDigest.h
  8913. (~MessageDigestContext): Added digestFree().
  8914. * src/MetalinkRequestInfo.cc
  8915. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8916. * src/DiskAdaptor.h
  8917. (messageDigest.h): New include.
  8918. (sha1Sum): Renamed as messageDigest.
  8919. (messageDigest): New function.
  8920. * src/DownloadCommand.h
  8921. (PeerStat.h): New include.
  8922. (maxDownloadSpeedLimit): New variable.
  8923. (startupIdleTime): New variable.
  8924. (lowestDownloadSpeedLimit): New variable.
  8925. (peerStat): New variable.
  8926. (setMaxDownloadSpeedLimit): New function.
  8927. (setStartupIdleTime): New function.
  8928. (setLowestDownloadSPeedLimit): New function.
  8929. * src/BtContext.h
  8930. (getPieceHashes): New function.
  8931. * src/main.cc
  8932. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8933. option to true for testing purpose.
  8934. * src/BtPieceMessage.cc
  8935. (checkPieceHash): Use messageDigest
  8936. * src/DownloadEngine.cc
  8937. (SetDescriptor): Removed.
  8938. (AccumulateActiveCommand): Removed.
  8939. (waitData): Rewritten.
  8940. (updateFdSet): Rewritten.
  8941. * src/MultiDiskAdaptor.cc
  8942. (hashUpdate): Added ctx.
  8943. (sha1Sum): Renamed as messageDigest.
  8944. (messageDigest): New function.
  8945. * src/BitfieldMan.h
  8946. (isBitRangeSet): New function.
  8947. (unsetBitRange): New function.
  8948. * src/ByteArrayDiskWriter.h
  8949. (sha1Sum): Renamed as messageDigest.
  8950. (messageDigest): New function.
  8951. * src/ConsoleDownloadEngine.cc
  8952. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8953. * src/DiskWriter.h
  8954. (messageDigest.h): New include.
  8955. (sha1Sum): Renamed as messageDigest.
  8956. (messageDigest): New function.
  8957. * src/ChunkChecksumValidator.h: New class.
  8958. * src/DiskAdaptorWriter.h: New class.
  8959. * src/prefs.h
  8960. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8961. (PREF_CHECK_INTEGRITY): New definition.
  8962. * src/HttpResponseCommand.cc
  8963. (handleDefaultEncoding): Added method "HEAD" handling.
  8964. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8965. (handleOtherEncoding):
  8966. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8967. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8968. startupIdleTime, lowestDownloadSpeedLimit to command.
  8969. * src/SegmentMan.h
  8970. (getSegmentEntryByIndex): New function.
  8971. (getSegmentEntryByCuid): New function.
  8972. (getSegmentEntryIteratorByCuid): New function.
  8973. (diskWriter): DiskWriter -> DiskWriterHandle
  8974. (pieceHashes): New variable.
  8975. (chunkHashLength): New variable.
  8976. (digestAlgo): New variable.
  8977. (FindPeerStat): Removed.
  8978. (getPeerStat): Rewritten.
  8979. (markAllPiecesDone): New function.
  8980. (checkIntegrity): New function.
  8981. (tryChunkChecksumValidation): New function.
  8982. (isChunkChecksumValidationReady): New function.
  8983. * src/BitfieldMan.cc
  8984. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8985. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8986. blocks to 0.
  8987. (isBitRangeSet): New function.
  8988. (unsetBitRange): New function.
  8989. * src/FtpNegotiateCommand.cc
  8990. (executeInternal): Set maxDownloadSpeedLimit,
  8991. startupIdleTime, lowestDownloadSpeedLimit to command.
  8992. (recvSize): Added method "HEAD" handling.
  8993. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8994. * src/AbstractSingleDiskAdaptor.cc
  8995. (sha1Sum): Renamed as messageDigest.
  8996. (messageDigest): New function.
  8997. * src/AbstractSingleDiskAdaptor.h
  8998. (sha1Sum): Renamed as messageDigest.
  8999. (messageDigest): New function.
  9000. * src/Util.h
  9001. (indexRange): New function.
  9002. * src/MetalinkEntry.cc
  9003. (MetalinkEntry): Initialized chunkChecksum to 0.
  9004. * src/ShaVisitor.cc
  9005. (~ShaVisitor): Removed the call to ctx.digestFree().
  9006. * src/SegmentMan.cc
  9007. (ChunkChecksumValidator.h): New include.
  9008. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9009. to DIGEST_ALGO_SHA1.
  9010. (~SegmentMan): Removed diskWriter.
  9011. (FindSegmentEntryByIndex): Removed.
  9012. (FindSegmentEntryByCuid): Removed.
  9013. (checkoutSegment): Rewritten.
  9014. (findSlowerSegmentEntry): Rewritten.
  9015. (getSegment): Rewritten.
  9016. (updateSegment): Rewritten.
  9017. (completeSegment): Rewritten.
  9018. (markAllPiecesDone): New function.
  9019. (checkIntegrity): New function.
  9020. (isChunkChecksumValidationReady): New function.
  9021. (tryChunkChecksumValidation): New function.
  9022. * src/Xml2MetalinkProcessor.cc
  9023. (getEntry): Get size and set it to entry.
  9024. Get chunk checksum and set it to entry.
  9025. (getPieceHash): New function.
  9026. * src/Util.cc
  9027. (sha1Sum): Removed ctx.digestFree()
  9028. (fileChecksum): Removed ctx.digestFree()
  9029. (indexRange): New function.
  9030. * src/Request.cc
  9031. (METHOD_GET): New variable.
  9032. (METHOD_HEAD): New variable.
  9033. (Request): Added method.
  9034. * src/UrlRequestInfo.cc
  9035. (FatalException.h): New include.
  9036. (message.h): New include.
  9037. (operator<<): Added operator<< for class HeadResult.
  9038. (getHeadResult): New function.
  9039. (execute): Get filename and size in separate download engine.
  9040. * src/ChunkChecksumValidator.cc: New class.
  9041. * src/DownloadCommand.cc:
  9042. (DownloadCommand): Added peerStat.
  9043. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9044. the value from Option.
  9045. The buffer size is now 16KB.
  9046. Use peerStat member instead of getting it from SegmentMan.
  9047. Use startupIdleTime member instead of gettingit from Option.
  9048. Added chunk checksum validation.
  9049. * src/AbstractDiskWriter.cc
  9050. (AbstractDiskWriter): Removed ctx.
  9051. (~AbstractDiskWriter): Removed ctx.digestFree()
  9052. (writeDataInternal): Returns the return value of write.
  9053. (readDataInternal): Returns the return value of read.
  9054. (sha1Sum): Renamed as messageDigest
  9055. (messageDigest): New function.
  9056. * src/AbstractDiwkWriter.h
  9057. (messageDigest.h): Removed include.
  9058. (ctx): Removed.
  9059. (sha1Sum): Renamed as messageDigest
  9060. (messageDigest): New function.
  9061. * src/DefaultPieceStorage.h
  9062. (markAllPiecesDone): New function.
  9063. (checkIntegrity): New function.
  9064. * src/NullFileAllocationMonitor.h: New class.
  9065. * src/MetalinkChunkChecksum.h: New class.
  9066. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. To decrease CPU usage in bittorrent download, calculation results in
  9068. BitfieldMan were cached and realtime fetching PeerObject was removed
  9069. with WeakHandle introduced. Option values are set to the objects
  9070. by setter before download begins.
  9071. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9072. * src/DefaultBtRequestFactory.h
  9073. (dispatcher): BtMessageDispatcherHandle ->
  9074. BtMessageDispatcherWeakHandle.
  9075. (messageFactory): New variable.
  9076. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9077. BtMessageDispatcherWeakHandle.
  9078. (setBtMessageFactory): New function.
  9079. * src/DefaultBtMessageDispatcher.cc:
  9080. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9081. from Option.
  9082. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9083. feating the value from Option.
  9084. Use messageFactory member.
  9085. * src/PeerInteractionCommand.cc
  9086. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9087. Add reverse dependencies to factory object.
  9088. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9089. dispatcher.
  9090. Set messageFactory to receiver.
  9091. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9092. btInteractive.
  9093. Set receiver to peerObject.
  9094. Set maxDownloadSpeedLimit to this.
  9095. (executeInternal): Use maxDownloadSpeedLimit member.
  9096. * src/BtChokeMessage.cc
  9097. (doReceivedAction): Use dispatcher, requestFactory member.
  9098. (onSendComplete): Use dispatcher member.
  9099. * src/PeerInteractionCommand.h
  9100. (maxDownloadSpeedLimit): New variable.
  9101. * src/DefaultBtMessageReceiver.h
  9102. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9103. (dispatcher):
  9104. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9105. (messageFactory): New variable.
  9106. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9107. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9108. (setDispatcher):
  9109. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9110. (setBtMessageFactory): New function.
  9111. * src/DefaultBtInteractive.cc
  9112. (initiateHandshake): Use messageFactory member.
  9113. (addBitfieldMessageToQueue): Use messageFactory member.
  9114. (addAllowedFastMessageToQueue): Use messageFactory member.
  9115. (decideChoking): Use messageFactory member.
  9116. (checkHave): Use messageFactory member.
  9117. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9118. (receiveMessages): Use maxDownloadSpeedLimit member.
  9119. (decideInterest): Use messageFactory member.
  9120. * src/BtRequestMessage.cc
  9121. (doReceivedAction): Use messageFactory, dispatcher member.
  9122. (onQueued): Use dispatcher member.
  9123. * src/BtPieceMessage.cc
  9124. (doReceivedAction): Use dispatcher member.
  9125. (send): Use peerConnection member.
  9126. (onWrongPiece): Use requestFactory member.
  9127. (handleChokingEvent): Use messageFactory, dispatcher member.
  9128. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9129. * src/BtMessageDispatcher.h
  9130. (BtMessageDispatcherWeakHandle): New type definition.
  9131. * src/SimpleBtMessage.cc
  9132. (send): Use peerConnection member.
  9133. * src/BtRejectMessage.cc
  9134. (doReceivedAction): Use dispatcher member.
  9135. * src/DefaultBtMessageDispatcher.h
  9136. (Option.h): Removed include.
  9137. (messageFactory): New variable.
  9138. (option): Removed.
  9139. (maxUploadSpeedLimit): New variable.
  9140. (requestTimeout): New variable.
  9141. (DefaultBtMessageDispatcher): Removed option.
  9142. Added maxUploadSpeedLimit, requestTimeout.
  9143. (setOption): Removed.
  9144. (getOption): Removed.
  9145. (setMaxUploadSpeedLimit): New function.
  9146. (setRequestTimeout): New function.
  9147. (setBtMessageFactory): New function.
  9148. * src/DefaultBtInteractive.h
  9149. (btMessageReceiver):
  9150. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9151. (dispatcher):
  9152. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9153. (btRequestFactory):
  9154. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9155. (peerConnection):
  9156. PeerConnectionHandle -> PeerConnectionWeakHandle
  9157. (messageFactory): New variable.
  9158. (option): Removed.
  9159. (keepAliveInterval): New variable.
  9160. (maxDownloadSpeedLimit): New variable.
  9161. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9162. (setBtMessageReceiver):
  9163. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9164. (setDispatcher):
  9165. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9166. (setBtRequestFactory):
  9167. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9168. (setPeerConnection):
  9169. PeerConnectionHandle -> PeerConnectionWeakHandle
  9170. (setOption): Removed.
  9171. (setKeepAliveInterval): New function.
  9172. (setMaxDownloadSpeedLimit): New function.
  9173. (setBtMessageFactory): New function.
  9174. * src/BitfieldMan.h
  9175. (cachedNumMissingBlock): New variable.
  9176. (cachedNumFilteredBlock): New variable.
  9177. (cachedCompletedLength): New variable.
  9178. (cachedFilteredComletedLength): New variable.
  9179. (cachedFilteredTotalLength): New variable.
  9180. (countMissingBlockNow): New function.
  9181. (countFilteredBlockNow): New function.
  9182. (getFilteredTotalLengthNow): New function.
  9183. (getCompletedLengthNow): New function.
  9184. (getFilteredCompletedLengthNow): New function.
  9185. (updateCache): New function.
  9186. * src/AbstractBtMessage.h
  9187. (BtMessageDispatcher.h): New include.
  9188. (PeerConnection.h): New include.
  9189. (BtRequestFactory.h): New include
  9190. (BtMessageFactory.h): New include.
  9191. (dispatcher): New variable.
  9192. (messageFactory): New variable.
  9193. (peerConnection: New variable.
  9194. (setBtMessageDispatcher): New function.
  9195. (setPeerConnection): New function.
  9196. (setBtMessageFactory): New function.
  9197. (setBtRequestFactory): New function.
  9198. * src/DefaultBtMessageFactory.cc
  9199. (setCommonProperty): Set dispatcher, requestFactory, this,
  9200. peerConnection to msg.
  9201. * src/BtRegistry.h
  9202. (BT_MESSAGE_RECEIVER): New macro.
  9203. * src/PeerConnection.h
  9204. (PeerConnectionWeakHandle): New type definition.
  9205. * src/BtMessageFactory.h
  9206. (BtMessageFactoryWeakHandle): New type definition.
  9207. * src/BitfieldMan.cc
  9208. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9209. cachedCompletedLength, cachedFilteredComletedLength,
  9210. cachedFilteredTotalLength.
  9211. Call updateCache().
  9212. (countMissingBlock): Return cachedNumMissingBlock.
  9213. (countMissingBlockNow): New function.
  9214. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9215. (countFilteredBlockNow): New function.
  9216. (setBit): Call updateCache().
  9217. (unsetBit): Call updateCache().
  9218. (setBitfield): Call updateCache().
  9219. (clearAllBit): Call updateCache().
  9220. (setAllBit): Use setBitInternal instead of setBit.
  9221. Call updateCache().
  9222. (addFilter): Call updateCache().
  9223. (enableFilter): Call updateCache().
  9224. (disableFilter): Call updateCache().
  9225. (clearFilter): Call updateCache().
  9226. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9227. (getFilteredTotalLengthNow): New function.
  9228. (getCompletedLength): Return cachedCompletedLength.
  9229. (getCompletedLengthNow): New function.
  9230. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9231. (getFilteredCompletedLengthNow): New function.
  9232. (updateCache): New function.
  9233. * src/BtMessageReceiver.h
  9234. (BtMessageReceiverWeakHandle): New type definition.
  9235. * src/DefaultBtMessageReceiver.cc
  9236. (receiveHandshake): Use messageFactory member.
  9237. (sendHandshake): Use messageFactory member.
  9238. (receiveMessage): Use messageFactory member.
  9239. * src/DefaultBtMessageFactory.h
  9240. (dispatcher): New variable.
  9241. (requestFactory): New variable.
  9242. (peerConnection): New variablle.
  9243. (setBtMessageDispatcher): New function.
  9244. (setBtRequestFactory): New function.
  9245. (setPeerConnection): New function.
  9246. * src/SharedHandle.h
  9247. (RefCount): New class.
  9248. (WeakHandle): New class.
  9249. * src/PeerObject.h
  9250. (BtMessageReceiver.h): New include.
  9251. (PeerObject): Added btMessageReceiver.
  9252. (btMessageReceiver): New variable.
  9253. * src/Util.cc
  9254. (countBit): Simplified.
  9255. * src/BtCancelMessage.cc
  9256. (doReceivedAction): Use dispatcher member.
  9257. * src/BtRequestFactory.h
  9258. (BtRequestFactoryWeakHandle): New type definition.
  9259. * src/PeerStorage.h
  9260. (downloadSpeed): int -> uint32_t
  9261. (uploadSpeed): int -> uint32_t
  9262. (sessionDownloadLength): long long int -> uint64_t
  9263. (sessionUploadLength): long long int -> uint64_t
  9264. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9265. To add RecoverableException, FatalException:
  9266. * src/AbstractCommand.cc
  9267. (onAbort): Exception -> RecoverableException
  9268. * src/PeerAbstractCommand.h
  9269. (RecoverableException.h): New include.
  9270. (onAbort): Exception -> RecoverableException.
  9271. * src/PeerInteractionCommand.cc
  9272. (onAbort): Exception -> RecoverableException.
  9273. * src/PeerAbstractCommand.cc
  9274. (execute): Exception -> RecoverableException.
  9275. (onAbort): Exception -> RecoverableException.
  9276. * src/TorrentRequestInfo.cc
  9277. (execute): Exception -> RecoverableException.
  9278. * src/MetalinkRequestInfo.cc
  9279. (execute): Exception -> RecoverableException.
  9280. * src/MetaFileUtil.cc: RecoverableException.
  9281. * src/AbstractCommand.h
  9282. (onAbort): Exception -> RecoverableException.
  9283. * src/DlRetryEx.h: Exception -> RecoverableException.
  9284. * src/DlAbortEx.h: Exception -> RecoverableException.
  9285. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9286. * src/Util.cc: Exception -> RecoverableException.
  9287. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9288. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9289. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9290. To make ID static const int
  9291. * src/BtInterestedMessage.h
  9292. (ID_t): Removed.
  9293. (ID): New variable.
  9294. (getId): Made non-const.
  9295. * src/BtPieceMessage.h
  9296. (ID_t): Removed.
  9297. (ID): New variable.
  9298. (getId): Made non-const.
  9299. * src/BtChokeMessage.h
  9300. (ID_t): Removed.
  9301. (ID): New variable.
  9302. (getId): Made non-const.
  9303. * src/BtHaveAllMessage.h
  9304. (ID_t): Removed.
  9305. (ID): New variable.
  9306. (getId): Made non-const.
  9307. * src/BtKeepAliveMessage.h
  9308. (ID_t): Removed.
  9309. (ID): New variable.
  9310. (getId): Made non-const.
  9311. * src/BtHandshakeMessage.h
  9312. (ID): New variable.
  9313. (getId): Made non-const.
  9314. * src/BtSuggestPieceMessage.h
  9315. (ID_t): Removed.
  9316. (ID): New variable.
  9317. (getId): Made non-const.
  9318. * src/BtPortMessage.h
  9319. (ID_t): Removed.
  9320. (ID): New variable.
  9321. (getId): Made non-const.
  9322. * src/AbstractBtMessage.h
  9323. (id): Removed.
  9324. (AbstractBtMessage): Removed id.
  9325. (getId): Removed.
  9326. * src/BtHaveMessage.h
  9327. (ID_t): Removed.
  9328. (ID): New variable.
  9329. (getId): Made non-const.
  9330. * src/BtAllowedFastMessage.h
  9331. (ID_t): Removed.
  9332. (ID): New variable.
  9333. (getId): Made non-const.
  9334. * src/BtCancelMessage.h
  9335. (ID_t): Removed.
  9336. (ID): New variable.
  9337. (getId): Made non-const.
  9338. * src/BtNotInterestedMessage.h
  9339. (ID_t): Removed.
  9340. (ID): New variable.
  9341. (getId): Made non-const.
  9342. * src/BtChokeMessage.h
  9343. (ID_t): Removed.
  9344. (ID): New variable.
  9345. (getId): Made non-const.
  9346. * src/BtRejectMessage.h
  9347. (ID_t): Removed.
  9348. (ID): New variable.
  9349. (getId): Made non-const.
  9350. * src/BtBitfieldMessage.h
  9351. (ID_t): Removed.
  9352. (ID): New variable.
  9353. (getId): Made non-const.
  9354. * src/BtUnchokeMessage.h
  9355. (ID_t): Removed.
  9356. (ID): New variable.
  9357. (getId): Made non-const.
  9358. * src/BtRequestMessage.h
  9359. (ID_t): Removed.
  9360. (ID): New variable.
  9361. (getId): Made non-const.
  9362. * src/BtHaveMessage.h
  9363. (ID_t): Removed.
  9364. (ID): New variable.
  9365. (getId): Made non-const.
  9366. To add --force-truncate command-line option and a check whether
  9367. the file already exists:
  9368. * src/DirectDiskAdaptor.h
  9369. (getFilePath): Made virtual public.
  9370. * src/MultiDiskAdaptor.h
  9371. (File.h): New include.
  9372. (DiskWriterEntry::fileEntry): Made private.
  9373. (DiskWriterEntry::fileExists): New function.
  9374. (DiskWriterEntry::getFileEntry): New function.
  9375. (fileExists): New function.
  9376. (getFilePath): New function.
  9377. * src/TorrentRequestInfo.cc
  9378. (FatalException.h): New include.
  9379. (message.h): New include.
  9380. (RecoverableException.h): New include.
  9381. (execute): Added a check whether file is already exists or not.
  9382. * src/DiskAdaptor.h
  9383. (fileExists): New function.
  9384. (getFilePath): New function.
  9385. * src/main.cc
  9386. (showUsage): Added an explanation of --force-truncate command-line
  9387. option.
  9388. (main): Added --force-truncate command-line option.
  9389. * src/Exception.h
  9390. (setMsg): buf[256] -> buf[1024]
  9391. * src/CopyDiskWriter.h
  9392. (getFilePath): Made public virtual.
  9393. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9394. (fileExists): New function.
  9395. * src/DownloadEngineFactory.cc
  9396. (newTorrentConsoleEngine): Don't open file here.
  9397. * src/message.h
  9398. (EX_FILE_ALREADY_EXISTS): New definition.
  9399. * src/prefs.h
  9400. (PREF_FOECE_TRUNCATE): New definition.
  9401. * src/HttpResponseCommand.cc
  9402. (handleDefaultEncoding): Added a check whether the file already exists.
  9403. * src/SegmentMan.h
  9404. (fileExists): New function.
  9405. (shouldCancelDownloadForSafety): New function.
  9406. * src/FtpNegotiateCommand.cc
  9407. (recvSize): Added a check whether the file already exists.
  9408. * src/AbstractSingleDiskAdaptor.cc
  9409. (File.h): New include.
  9410. (fileExists): New function.
  9411. * src/AbstractSingleDiskAdaptor.h
  9412. (getFilePath): Removed.
  9413. (fileExists): New function.
  9414. * src/SegmentMan.cc
  9415. (fileExists): New function.
  9416. (shouldCancelDownloadForSafety): New function.
  9417. To fix regression bug in torrent downloading:
  9418. * src/DefaultBtRequestFactory.cc
  9419. (doChokedAction): New function.
  9420. * src/DefaultBtRequestFactory.h
  9421. (doChokedAction): New function.
  9422. * src/DefaultBtMessageDispatcher.cc
  9423. (doChokedAction): Do not delete request if its target is in allowed
  9424. fast set.
  9425. * src/DefaultBtInteractive.cc
  9426. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9427. (sendKeepAlive): Send keep alive message even if the outgoing message
  9428. queue is not empty.
  9429. (decideInterest): Simplified the code.
  9430. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9431. it is already called when BtChokeMessage is received from a peer.
  9432. * src/BtRequestFactory.h
  9433. (doChokedAction): New function.
  9434. To clean up code:
  9435. * src/PeerInteractionCommand.h
  9436. (executeInternal): Added virtual keyword explicitly.
  9437. (prepareForRetry): Added virtual keyword explicitly.
  9438. (prepareForNextPeer): Added virtual keyword explicitly.
  9439. (onAbort): Added virtual keyword explicitly.
  9440. * src/RequestSlot.cc
  9441. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9442. * src/BtPieceMessage.cc
  9443. (doReceivedAction): Added a debug log of piece's bitfield.
  9444. * src/Piece.h
  9445. (getBitfieldLength): New function.
  9446. * src/ByteArrayDiskWriter.cc
  9447. (clear): Added buf = 0 to avoid double free corruption.
  9448. * src/FileAllocator.cc
  9449. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9450. Added cp.reset().
  9451. * src/BitfieldMan.h
  9452. (operator=): Rewritten.
  9453. * src/BitfieldMan.cc
  9454. (BitfieldMan): Initialized bitfield, useBitfield.
  9455. * src/PeerConnection.cc
  9456. (receiveMessage): Added a call to socket->readable() after getting
  9457. message length to avoid possible EOF.
  9458. * src/Util.cc
  9459. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9460. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. To add an ability to pre-allocate file space:
  9462. * src/DirectDiskAdaptor.h: Rewritten.
  9463. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9464. * src/MultiDiskAdaptor.h: Rewritten.
  9465. * src/DefaultPieceStorage.cc
  9466. (MultiDiskWriter.h): Removed include.
  9467. (PreAllocationDiskWriter.h): Removed include.
  9468. (FileAllocationMonitor.h): New include.
  9469. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9470. (initStorage): Rewritten.
  9471. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9472. * src/FileAllocator.h: New class.
  9473. * src/FileAllocator.cc: New class.
  9474. * src/FileAllocationMonitor.h: New class.
  9475. * src/FileAllocationMonitor.cc: New class.
  9476. * src/ConsoleFileAllocationMonitor.h: New class.
  9477. * src/ConsoleFileAllocationMonitor.cc: New class.
  9478. * src/AbstractSingleDiskAdaptor.h: New class.
  9479. * src/AbstractSingleDiskAdaptor.cc: New class.
  9480. * src/DiskAdaptor.h
  9481. (Directory.h): Removed include.
  9482. (DiskWriter.h): Removed include.
  9483. (FileEntry.h): Removed include.
  9484. (diskWriter): Removed.
  9485. (DiskAdaptor): Removed diskWriter.
  9486. (openFile): Made pure virtual.
  9487. (closeFile): Made pure virtual.
  9488. (openExistingFile): Made pure virtual.
  9489. (initAndOpenFile): Made pure virtual.
  9490. (writeData): Made pure virtual.
  9491. (readData): Made pure virtual.
  9492. (sha1Sum): Made pure virtual.
  9493. (getStoreDir): Returns const reference of storeDir.
  9494. (DiskAdaptorHandle): New type definition.
  9495. * src/main.cc
  9496. (ConsoleFileAllocationMonitor.h): New include.
  9497. (showUsage): Added default value description of -s option.
  9498. Added the description of --file-allocation option.
  9499. (main): Set default value of --file-allocation option to 'none'.
  9500. Added --file-allocation command-line option.
  9501. Setup FileAllocationMonitorFactory.
  9502. * src/FtpInitiateConnectionCommand.cc
  9503. (executeInternal): Removed diskWriter related processing, which was
  9504. moved to FtpNegotiationCommand.cc.
  9505. * src/DirectDiskAdaptor.cc
  9506. (getFilePath): Made non-const.
  9507. * src/CopyDiskAdaptor.h
  9508. (DiskAdaptor.h): Removed include.
  9509. (DiskWriter.h): Removed include.
  9510. (AbstractSingleDiskAdaptor.h): New include.
  9511. (getFilePath): Made non-const. Added virtual keyword.
  9512. (CopyDiskAdaptor): Removed diskWriter.
  9513. (getTempFile): Returns const reference.
  9514. (CopyDiskAdaptorHandle): New type definition.
  9515. * src/ByteArrayDiskWriter.cc
  9516. (clear): Simplified.
  9517. (initAndOpenFile): Rewritten.
  9518. (openFile): Call initAndOpenFile()
  9519. * src/MultiDiskAdaptor.cc: Rewritten.
  9520. * src/DownloadEngineFactory.cc
  9521. (FileAllocator.h): New include.
  9522. (FileAllocationMonitor.h): New include.
  9523. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9524. create DefaultDiskWriter with file allocator.
  9525. * src/DiskWriter.h
  9526. (initAndOpenFile): Added totalLength argument.
  9527. (openFile): Added totalLength argument.
  9528. * src/prefs.h
  9529. (PREF_FILE_ALLOCATION): New definition.
  9530. (V_PREALLOC): New definition.
  9531. (V_NONE): New definition.
  9532. * src/HttpResponseCommand.cc
  9533. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9534. size.
  9535. * src/FtpNegotiateCommand.cc
  9536. (Util.h): New include.
  9537. (recvSize): Open file here.
  9538. * src/Util.h
  9539. (ullitos): New function.
  9540. * src/CopyDiskWriter.h
  9541. (getFilePath): Made non-const.
  9542. * src/DefaultDiskWriter.h
  9543. (Option.h): New include.
  9544. (totalLength): Removed.
  9545. (DefaultDiskWriter): Removed totalLength.
  9546. (initAndOpenFile): Added totalLength argument.
  9547. (DefaultDiskWriterHandle): New type definition.
  9548. (createNewDiskWriter): New function.
  9549. * src/Util.cc
  9550. (ullitos): New function.
  9551. * src/DefaultDiskWriter.cc
  9552. (message.h): New include.
  9553. (FileAllocator.h): New include.
  9554. (prefs.h): New include.
  9555. (Util.h): New include.
  9556. (DefaultDiskWriter): Removed totalLength.
  9557. (initAndOpenFile): Added file allocation.
  9558. (createNewDiskWriter): New function. Just for temporary solution.
  9559. It will be rewritten later.
  9560. * src/DiskAdaptor.cc
  9561. (DiskAdaptor): Removed diskWriter.
  9562. * src/AbstractDiskWriter.cc
  9563. (LogFactory.h): New include.
  9564. (AbstractDiskWriter): Added fileAllocator, logger.
  9565. (openFile): Added totalLength argument.
  9566. * src/AbstractDiskWriter.h
  9567. (FileAllocator.h): New include.
  9568. (Logger.h): New include.
  9569. (fileAllocator): New variable.
  9570. (logger): New variable.
  9571. (openFile): Added totalLength argument. Added virtual keyword
  9572. explicitly.
  9573. (openExistingFile): Added totalLength argument. Added virtual keyword
  9574. explicitly.
  9575. (closeFile): Added virtual keyword explicitly.
  9576. (sha1Sum): Added virtual keyword explicitly.
  9577. (writeData): Added virtual keyword explicitly.
  9578. (readData): Added virtual keyword explicitly.
  9579. (setFileAllocator): New function.
  9580. * src/DefaultPieceStorage.h
  9581. (FileAllocator.h): New include.
  9582. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9583. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9584. * src/FileProgressMonitor.h: New class.
  9585. To compile aria2 on PC-BSD:
  9586. * src/DefaultBtContext.cc
  9587. (libgen.h): New include.
  9588. To fix memory leak:
  9589. * src/Exception.h
  9590. (~Exception): Delete cause. Fixed memory leak.
  9591. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9592. Rewritten a portion of bittorrent implementation:
  9593. * src/BtMessageValidator.h: New class.
  9594. * src/BtBitfieldMessageValidator.h: New class.
  9595. * src/BtHandshakeMessageValidator.h: New class.
  9596. * src/BtRequestMessageValidator.h: New class.
  9597. * src/BtSuggestPieceMessageValidator.h: New class.
  9598. * src/BtAllowedFastMessageValidator.h: New class.
  9599. * src/BtRejectMessageValidator.h: New class.
  9600. * src/BtCancelMessageValidator.h: New class.
  9601. * src/BtPieceMessageValidator.h: New class.
  9602. * src/BtHaveMessageValidator.h: New class.
  9603. * src/BtEventListener.h: New class.
  9604. * src/AbstractBtEventListener.h: New class.
  9605. * src/BtEvent.h: New class.
  9606. * src/BtChokingEvent.h: New class.
  9607. * src/BtChokedEvent.h: New class.
  9608. * src/BtCancelSendingPieceEvent.h: New class.
  9609. * src/BtAbortOutstandingRequestEvent.h: New class.
  9610. * src/Randomizer.h: New class.
  9611. * src/SimpleRandomizer.h: New class.
  9612. * src/BtMessage.h: New class.
  9613. * src/AbstractBtMessage.h: New class.
  9614. * src/SimpleBtMessage.h: New class.
  9615. * src/BtHaveMessage.h: New class.
  9616. * src/BtInterestedMessage.h: New class.
  9617. * src/BtAllowedFastMessage.h: New class.
  9618. * src/BtUnchokeMessage.h: New class.
  9619. * src/BtCancelMessage.h: New class.
  9620. * src/BtNotInterestedMessage.h: New class.
  9621. * src/BtChokeMessage.h: New class.
  9622. * src/BtHaveNoneMessage.h: New class.
  9623. * src/BtHandshakeMessage.h: New class.
  9624. * src/BtSuggestPieceMessage.h: New class.
  9625. * src/BtHaveMessage.h: New class.
  9626. * src/BtPieceMessage.h: New class.
  9627. * src/BtHaveAllMessage.h: New class.
  9628. * src/BtKeepAliveMessage.h: New class.
  9629. * src/BtPortMessage.h: New class.
  9630. * src/BtRejectMessage.h: New class.
  9631. * src/BtBitfieldMessage.h: New class.
  9632. * src/BtRequestMessage.h: New class.
  9633. * src/DefaultBtRequestFactory.h: New class.
  9634. * src/DefaultBtMessageReceiver.h: New class.
  9635. * src/BtInteractive.h: New class.
  9636. * src/BtMessageDispatcher.h: New class.
  9637. * src/DefaultBtMessageDispatcher.h: New class.
  9638. * src/DefaultBtInteractive.h: New class.
  9639. * src/BitfieldManFactory.h: New class.
  9640. * src/HandleRegistry.h: New class.
  9641. * src/BtMessageFactory.h: New class.
  9642. * src/BtMessageReceiver.h: New class.
  9643. * src/DefaultBtMessageFactory.h: New class.
  9644. * src/PeerObject.h: New class.
  9645. * src/BtRequestFactory.h: New class.
  9646. * src/SuggestPieceMessage.h: Removed.
  9647. * src/PortMessage.h: Removed.
  9648. * src/SuggestPieceMessage.h: Removed.
  9649. * src/KeepAliveMessage.h: Removed.
  9650. * src/HandshakeMessage.h: Removed.
  9651. * src/PeerInteraction.h: Removed.
  9652. * src/UnchokeMessage.h: Removed.
  9653. * src/PieceMessage.h: Removed.
  9654. * src/RequestMessage.h: Removed.
  9655. * src/InterestedMessage.h: Removed.
  9656. * src/HaveMessage.h: Removed.
  9657. * src/CancelMessage.h: Removed.
  9658. * src/RejectMessage.h: Removed.
  9659. * src/AllowedFastMessage.h: Removed.
  9660. * src/HaveNoneMessage.h: Removed.
  9661. * src/SimplePeerMessage.h: Removed.
  9662. * src/HaveAllMessage.h: Removed.
  9663. * src/BitfieldMessage.h: Removed.
  9664. * src/PeerMessageFactory.h: Removed.
  9665. * src/NotInterestedMessage.h: Removed.
  9666. * src/ChokeMessage.h: Removed.
  9667. * src/PeerMessage.h: Removed.
  9668. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9669. To know root cause of exception:
  9670. * src/Exception.h
  9671. (cause): New variable.
  9672. (Exception): Added a parameter.
  9673. (getMsg): Return const reference to msg.
  9674. (getCause): New function.
  9675. * src/DlRetryEx.h
  9676. (DlRetryEx): Added a parameter 'cause'.
  9677. Added an overloaded constructor.
  9678. (DlAbortEx): Added a parameter 'cause'.
  9679. Added an overloaded constructor.
  9680. * src/SimpleLogger.cc
  9681. (writeLog): Log nested exception messages recursively.
  9682. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. * src/DefaultBtProgressInfoFile.cc
  9684. (load): Fixed memory leak when the infohash doesn't match.
  9685. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. * src/DefaultPeerStorage.cc
  9687. (calculateStat): Simplified the code by combining 2 loops into 1.
  9688. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9690. for BitTorrent download:
  9691. * src/PeerAbstractCommand.cc
  9692. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9693. * src/main.cc:
  9694. (timeoutSpecified): Removed.
  9695. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9696. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9697. * src/TorrentRequestInfo.cc
  9698. (timeoutSpecified): Removed.
  9699. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9700. timeout value.
  9701. * src/prefs.h
  9702. (PREF_BT_TIMEOUT): New definition.
  9703. Delete unused variables:
  9704. * src/TorrentRequestInfo.cc
  9705. (requestInfo): Removed.
  9706. Move setSignalHander to Util::setGlobalSignalHandler:
  9707. * src/TorrentRequestInfo.cc:
  9708. setSignalHander -> Util::setGlobalSignalHandler
  9709. * src/main.cc
  9710. (setSignalHander): Removed.
  9711. (main): setSignalHander -> Util::setGlobalSignalHandler
  9712. * src/Util.h
  9713. (setGlobalSignalHandler): New function.
  9714. * src/Util.cc
  9715. (setGlobalSignalHandler): New function.
  9716. * src/UrlRequestInfo.cc:
  9717. setSignalHander -> Util::setGlobalSignalHandler
  9718. Reset peer status in order to exit gracefully:
  9719. * src/PeerAbstractCommand.cc
  9720. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9721. To fix the bug that causes the number of bytes uploaded is not saved
  9722. to .aria2 file:
  9723. * src/DefaultPeerStorage.h
  9724. (removedPeerSessionDownloadLength): New variable.
  9725. (removedPeerSessionUploadLength): New variable.
  9726. * src/DefaultPeerStorage.cc
  9727. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9728. removedPeerSessionUploadLength(0).
  9729. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9730. through all peers, and then add removedPeerSessionDownloadLength(
  9731. removedPeerSessionUploadLength) to it.
  9732. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9733. (to) the peer to removedPeerSessionDownloadLength
  9734. (removedPeerSessionUploadLength).
  9735. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9736. To add Metalink location option:
  9737. * src/MetalinkRequestInfo.cc
  9738. (execute): Call MetalinkEntry::setLocationPreference()
  9739. * src/main.cc
  9740. (showUsage): Added the help message for --metalink-location option.
  9741. (main): Added --metalink-location option.
  9742. * src/prefs.h
  9743. (PREF_METALINK_LOCATION): New definition.
  9744. * src/MetalinkEntry.cc
  9745. (AddLocationPreference): New function object.
  9746. (setLocationPreference): New function.
  9747. * src/Xml2MetalinkProcessor.cc
  9748. (getResource): Set location attribute to MetalinkResource
  9749. To show URLs to download
  9750. * src/UrlRequestInfo.h
  9751. (printUrls): New function.
  9752. To add multiple <file> Metalink support:
  9753. * src/MetalinkEntry.h
  9754. (MetalinkResources): Removed.
  9755. (setLocationPreference): New function.
  9756. (MetalinkEntryHandle): New type definition.
  9757. (MetalinkEntries): New type definition.
  9758. * src/Xml2MetalinkProcessor.h
  9759. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9760. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9761. (parseFile): Metalinker* -> MetalinkerHandle
  9762. * src/UrlRequestInfo.h
  9763. (execute): RequestInfo* -> RequestInfos
  9764. * src/MetalinkRequestInfo.cc
  9765. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9766. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9767. (execute): RequestInfo* -> RequestInfos
  9768. Added multiple <file> support. Print filename when it is queued.
  9769. * src/MetalinkRequestInfo.h
  9770. (execute): RequestInfo* -> RequestInfos
  9771. (getDownloadEngine): Removed.
  9772. * src/RequestInfo.h
  9773. (RequestInfoHandle): New type definition.
  9774. (RequestInfos): New type definition.
  9775. (execute): RequestInfo* -> RequestInfos
  9776. (getDownloadEngine): Removed.
  9777. * src/MetalinkResource.h
  9778. (MetalinkResourceHandle): New type definition.
  9779. (MetalinkResources): New type definition.
  9780. * src/MetalinkEntry.cc
  9781. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9782. because the element is now of type MetalinkResourceHandle.
  9783. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9784. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9785. (dropUnsupportedResource): Removed the deletion of the elements of
  9786. resources because the element is now of type MetalinkResourceHandle.
  9787. * src/Xml2MetalinkProcessor.cc
  9788. (parseFile): Metalinker* -> MetalinkerHandle
  9789. MetalinkEntry* -> MetalinkEntryHandle
  9790. Removed try-catch block.
  9791. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9792. MetalinkResource* -> MetalinkResourceHandle
  9793. Removed try-catch block.
  9794. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9795. Free result by using xmlXPathFreeObject()
  9796. * src/Metalinker.cc
  9797. (~Metalinker): Removed the deletion of entries.
  9798. MetalinkEntry* -> MetalinkEntryHandle
  9799. (queryEntry): Add multiple <file> Metalink support.
  9800. * src/Metalinker.h
  9801. (MetalinkEntries): Removed.
  9802. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9803. * src/MetalinkProcessor.h
  9804. (parseFile): Metalinker* -> MetalinkerHandle
  9805. Bug fixes:
  9806. * src/PeerChokeCommand.cc
  9807. (execute): cat01->cat02
  9808. * src/DefaultPieceStorage.cc
  9809. (DefaultPieceStorage): Added diskAdaptor(0)
  9810. * src/TrackerWatcherComand.cc:
  9811. (execute): Use btAnnounce->noMoreAnnounce()
  9812. to determin whether the function returns true or not.
  9813. * src/TrackerUpdateCommand.cc:
  9814. (execute): Use btAnnounce->noMoreAnnounce()
  9815. to determin whether the function returns true or not.
  9816. * src/FtpConnection.cc
  9817. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9818. This is the fix of the busy loop bug.
  9819. * src/DownloadCommand.cc
  9820. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9821. cached PeerStat.
  9822. The value of "name" entry in torrent file is now set by
  9823. *DiskAdaptor::setTopDir(...) methods.
  9824. * src/MultiDiskAdaptor.h
  9825. (topDir): New variable.
  9826. (setTopDir): New function.
  9827. (getTopDir): New function.
  9828. * src/MultiDiskAdaptor.cc
  9829. (getFilePath): Concat storDir, "/" and topDir.
  9830. (mkdir): Use getFilePath() to get the directory path for output.
  9831. * src/DefaultPieceStorage.cc
  9832. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  9833. CopyDiskAdaptor.
  9834. * src/CopyDiskAdaptor.h
  9835. (topDir): New variable.
  9836. (setTopDir): New function.
  9837. (getTopDir): New function.
  9838. * src/CopyDiskAdaptor.cc
  9839. (fixFilename): Updated.
  9840. Misc
  9841. * src/UrlRequestInfo.h
  9842. (e): Removed.
  9843. (UrlRequestInfo): Removed e.
  9844. (getDownloadEngine): Removed.
  9845. * src/UrlRequestInfo.cc
  9846. (handler): Rewritten.
  9847. (printUrls): New function.
  9848. (execute): Call printUrls().
  9849. * src/HandshakeMessage.cc
  9850. (check): peerinteraction->getBtContext() -> btContext
  9851. * src/PeerInteraction.h
  9852. (getBtContext): Removed.
  9853. * src/TorrentRequestInfo.h
  9854. (execute): RequestInfo* -> RequestInfos
  9855. (getDownloadEngine): Removed.
  9856. * src/TorrentRequestInfo.cc
  9857. (haltRequested): Removed.
  9858. (btHaltRequested): New variable.
  9859. (torrentHandler): haltRequested -> btHaltRequested
  9860. (execute): RequestInfo* -> RequestInfos
  9861. * src/TorrentConsoleDownloadEngine.cc
  9862. (afterEachIteration): haltRequested -> btHaltRequested.
  9863. * src/ConsoleDownloadEngine.h
  9864. (initStatistics): Added virtual.
  9865. (calculateStatistics): Added virtual.
  9866. (onEndOfRun): Added virtual.
  9867. (afterEachIteration): Added virtual.
  9868. * src/ConsoleDownloadEngine.cc
  9869. (haltRequested): New variable.
  9870. (afterEachIteration): New function.
  9871. * src/main.cc
  9872. (requestInfo): Removed.
  9873. * src/SegmentMan.cc
  9874. (findSlowerSegmentEntry): Refactored.
  9875. * Release 0.9.0
  9876. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9877. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  9878. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  9879. * src/TorrentMan.h: Removed.
  9880. * src/TorrentMan.cc: Removed.
  9881. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  9882. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  9883. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  9884. * src/PeerAbstractCommand.cc: Use btRuntime.
  9885. * src/BtContextAwareCommand.h: New class.
  9886. * src/FileEntry.h: Added accessor methods for following variables.
  9887. (path): Made private.
  9888. (length): Made private.
  9889. (offset): Made private.
  9890. (extracted): Made private.
  9891. (requested): Made private.
  9892. (FileEntries): New definition.
  9893. (FileEntryHandle): New definition.
  9894. * src/FileEntry.cc: New file.
  9895. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  9896. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  9897. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  9898. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  9899. * src/PieceStorage.h: New file.
  9900. * src/PeerInteractionCommand.h: Use btContext.
  9901. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  9902. btRuntime.
  9903. * src/DefaultBtProgressInfoFile.h: New file.
  9904. * src/DefaultBtProgressInfoFile.cc: New file.
  9905. * src/File.cc
  9906. (Util.h): New include.
  9907. (mkdirs): New function.
  9908. * src/MultiDiskAdaptor.h
  9909. (mkdir): New function.
  9910. * src/PeerListProcessor.h
  9911. (Peers): Removed.
  9912. * src/PeerInteraction.h
  9913. (torrentMan): Removed.
  9914. (btContext): New variable.
  9915. (peerStorage): New variable.
  9916. (pieceStorage): New variable.
  9917. (btAnnounce): New variable.
  9918. (getTorrentMan): Removed.
  9919. (getBtContext): New function.
  9920. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9921. btAnnounce.
  9922. * src/HandshakeMessage.h
  9923. (TorrentMan.h): Removed.
  9924. * src/HandshakeMessage.cc: Use btContext.
  9925. * src/DefaultBtAnnounce.cc: New file.
  9926. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9927. * src/DefaultPieceStorage.cc: New file.
  9928. * src/DefaultBtContext.h: New file.
  9929. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9930. Use the accessor methods of FileEntry.
  9931. * src/CookieBox.cc: Updated to use Util::slice().
  9932. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9933. * src/common.h (SharedHandle.h): New include.
  9934. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9935. pieceStorage.
  9936. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9937. * src/DiskAdaptor.h
  9938. (topDir): Removed.
  9939. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9940. (setTopDir): Removed.
  9941. (getTopDir): Removed.
  9942. * src/BtContext.h: New file.
  9943. * src/DefaultPeerStorage.h: New file.
  9944. * src/PieceMessage.h (TorrentMan.h): Removed.
  9945. * src/RequestMessage.h (TorrentMan.h): Removed.
  9946. * src/TorrentDownloadEngine.h
  9947. (uploadLength): New variable.
  9948. (btContext): New variable.
  9949. (btRuntime): New variable.
  9950. (pieceStorage): New variable.
  9951. (peerStorage): New variable.
  9952. (btAnnounce): New variable.
  9953. (btProgressInfoFile): New variable.
  9954. (torrentMan): Removed.
  9955. (setBtContext): New function.
  9956. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9957. peerStorage, btAnnounce, btProgressInfoFile.
  9958. * src/Piece.h
  9959. (toString): New function.
  9960. (Pieces): New type definition.
  9961. * src/Peer.h
  9962. (active): New variable.
  9963. (Peer): Added active.
  9964. (activate): Set active to true.
  9965. (deactivate): Set active to false.
  9966. (isActive): New function.
  9967. (Peers): New type definition.
  9968. * src/DirectDiskAdaptor.cc
  9969. (getFilePath): Use the accessor methods of FileEntry.
  9970. * src/TorrentConsoleDownloadEngine.h
  9971. (afterEachIteration): New function.
  9972. * src/TorrentConsoleDownloadEngine.cc
  9973. (haltRequested): New variable.
  9974. (sendStatistics): Use pieceStorage, btRuntime.
  9975. (afterEachIteration): New function.
  9976. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9977. * src/Directry.h
  9978. (Directory): New function.
  9979. (DirectoryHandle): New type definition.
  9980. * src/BtProgressInfoFile.h: New file.
  9981. * src/RequestMessage.cc: Use pieceStorage.
  9982. * src/BtRuntime.h: New file.
  9983. * src/DefaultBtContext.cc: New file.
  9984. * src/BitfieldMan.h
  9985. (getCompletedLength): New function(private).
  9986. (getCompletedLength): New function.
  9987. (getFilteredCompletedLength): New function.
  9988. * src/BitfieldMan.h
  9989. (getCompletedLength): New function(private).
  9990. (getCompletedLength): New function.
  9991. (getFilteredCompletedLength): New function.
  9992. * src/MultiDiskAdaptor.cc
  9993. (mkdir): New function.
  9994. (openFile): Call mkdir().
  9995. (initAndOpenFile): Call mkdir().
  9996. * src/CancelMessage.h
  9997. (TorrentMan.h): Removed.
  9998. * src/RejectMessage.h
  9999. (TorrentMan.h): Removed.
  10000. * src/DownloadEngineFactory.cc
  10001. (DefaultPieceStorage.h): New include.
  10002. (DefaultPeerStorage.h): New include.
  10003. (DefaultBtAnnounce.h): New include.
  10004. (DefaultBtProgressInfoFile.h): New include.
  10005. (newTorrentConsoleEngine): Rewritten.
  10006. * src/ShareRatioSeedCriteria.h
  10007. (torrentMan): Removed.
  10008. (btContext): New variable.
  10009. (peerStorage): New variable.
  10010. (btRuntime): New variable.
  10011. (evaluate): Use btContext, btRuntime, peerStorage.
  10012. * src/AnnounceTier.h: New file.
  10013. * src/BtAnnounce.h: New file.
  10014. * src/BtRegistry.h: New file.
  10015. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10016. * src/PeerConnection.h (TorrentMan.h): Removed.
  10017. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10018. * src/Util.h
  10019. (slice): Added an argument.
  10020. * src/Util.cc
  10021. (slice): Added an argument to control whether trim is made or not.
  10022. * src/PeerStorage.h: New file.
  10023. * src/BtRegistry.cc: New file.
  10024. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10025. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10026. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10027. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10028. * src/TorrentRequestInfo.h
  10029. (e): Removed.
  10030. (showFileEntry): Added an argument.
  10031. (getDownloadEngine): Return 0.
  10032. * src/DefaultBtAnnounce.h: New file.
  10033. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10034. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10035. * src/PeerMessageFactory.h
  10036. (btContext): New variable.
  10037. (pieceStorage): New variable.
  10038. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10039. btAnnounce.
  10040. * src/DiskAdaptor.cc
  10041. (DiskAdaptor): Removed topDir.
  10042. (~DiskAdaptor): Removed topDir.
  10043. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10044. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10045. * src/File.h (mkdirs): New function.
  10046. * src/DefaultPeerStorage): New file.
  10047. * src/DownloadEngineFactory.h
  10048. (newTorrentConsoleEngine): Use btContext.
  10049. * src/BtContextAwareCommand.cc: New file.
  10050. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10051. * src/PeerMessage.h
  10052. (btContext): New variable.
  10053. (peerStorage): New variable.
  10054. (pieceStorage): New variable.
  10055. (setBtContext): New function.
  10056. * src/Directry.cc
  10057. (Directory): New function.
  10058. (createDir): Do nothing if name.size() == 0.
  10059. * src/AnnounceList.h
  10060. (AnnounceTier): Removed.
  10061. (AnnounceTiers): Removed.
  10062. * src/DefaultPieceStorage.h: New file.
  10063. * src/Piece.cc (toString): New function.
  10064. To fix typo:
  10065. * src/main.cc (showVersion): Fixed typo.
  10066. To fix compile warning:
  10067. * src/DelegatingPeerListProcessor.cc
  10068. (canHandle): Added "return false".
  10069. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10070. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10071. make the process of announce request testable.
  10072. * src/TrackerWatcherCommand.h
  10073. (TimeA2.h): Removed.
  10074. (interval): Removed.
  10075. (checkPoint): Removed.
  10076. (createRequestCommand): Added an argument 'url'.
  10077. (TrackerWatherCommand): Removed interval.
  10078. (createCommand): New function.
  10079. * src/DownloadEngineFactory.cc
  10080. (newTorrentConsoleEngine): Updated according to the changes in
  10081. TrackerWatherCommand.
  10082. * src/TorrentMan.cc
  10083. (DelegatingPeerListProcessor.h): New includes.
  10084. (TorrentMan): Added the initialization of announceInterval.
  10085. (isStoppedAnnounceReady): New function.
  10086. (isCompletedAnnounceReady): New function.
  10087. (isDefaultAnnounceReady): New function.
  10088. (isAnnounceReady): New function.
  10089. (getAnnounceUrl): New function.
  10090. (announceStart): New function.
  10091. (announceFailure): New function.
  10092. (announceSuccess): New function.
  10093. (isAllAnnounceFailed): New function.
  10094. (resetAnnounce): New function.
  10095. (processAnnounceResponse): New function.
  10096. (needMorePeerConnection): New function.
  10097. (noMoreAnnounce): New function.
  10098. * src/TrackerUpdateCommand.h
  10099. (getTrackerResponse): int->size_t
  10100. * src/TorrentMan.h
  10101. (isStoppedAnnounceReady): New function.
  10102. (isCompletedAnnounceReady): New function.
  10103. (isDefaultAnnounceReady): New function.
  10104. (announceInterval): New variable.
  10105. (isAnnounceReady): New function.
  10106. (getAnnounceUrl): New function.
  10107. (announceStart): New function.
  10108. (announceFailure): New function.
  10109. (announceSuccess): New function.
  10110. (isAllAnnounceFailed): New function.
  10111. (resetAnnounce): New function.
  10112. (processAnnounceResponse): New function.
  10113. (needMorePeerConnection): New function.
  10114. (noMoreAnnounce): New function.
  10115. * src/TrackerWatcherCommand.cc
  10116. (TrackerWatherCommand): Removed interval and checkPoint.
  10117. (execute): Rewritten.
  10118. (createCommand): New function.
  10119. (createRequestCommand): Rewritten.
  10120. * src/TrackerUpdateCommand.cc
  10121. (MetaFileUtil.h): Removed.
  10122. (DelegatingPeerListProcessor.h): Removed.
  10123. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10124. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10125. Request -> RequestHandle:
  10126. * src/HttpResponseCommand.h: Request->RequestHandle
  10127. * src/AbstractCommand.cc: Request->RequestHandle
  10128. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10129. * src/HttpRequestCommand.cc: Request->RequestHandle
  10130. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10131. * src/AbstractCommand.h: Request->RequestHandle
  10132. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10133. * src/HttpResponseCommand.cc: Request->RequestHandle
  10134. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10135. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10136. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10137. * src/HttpConnection.h: Request->RequestHandle
  10138. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10139. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10140. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10141. * src/DownloadCommand.h: Request->RequestHandle
  10142. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10143. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10144. * src/HttpRequestCommand.h: Request->RequestHandle
  10145. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10146. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10147. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10148. * src/HttpDownloadCommand.h: Request->RequestHandle
  10149. * src/FtpConnection.cc: Request->RequestHandle
  10150. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10151. * src/UrlRequestInfo.cc: Request->RequestHandle
  10152. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10153. * src/HttpConnection.h: Request->RequestHandle
  10154. * src/DownloadCommand.cc: Request->RequestHandle
  10155. * src/FtpConnection.h: Request->RequestHandle
  10156. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10157. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10158. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10159. * src/Request.h
  10160. (SharedHandle.h): New include.
  10161. (RequestHandle): New type definition.
  10162. (Requests): Redefined.
  10163. To add MULTITRACKER support:
  10164. * src/TrackerWatcherCommand.h
  10165. (createRequestCommand): New function.
  10166. * src/DownloadEngineFactory.cc
  10167. (newTorrentConsoleEngine): Removed req.
  10168. * src/prefs.h
  10169. (PREF_TRACKER_MAX_TRIES): New definition.
  10170. * src/TorrentMan.cc
  10171. (TorrentMan): Removed req. Added trackerNumTry.
  10172. (~TorrentMan): Removed req.
  10173. (setupInternal1): Added announceList.
  10174. * src/TorrentRequestInfo.cc
  10175. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10176. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10177. * src/main.cc
  10178. (main): Added PREF_TRACKER_MAX_TRIES.
  10179. * src/TorrentMan.h
  10180. (Request.h): Removed.
  10181. (AnnounceList.h): New include.
  10182. (trackerNumTry): New variable.
  10183. (req): Removed.
  10184. (announceList): New variable.
  10185. * src/TrackerWatcherCommand.cc
  10186. (execute): Rewritten.
  10187. (createRequestCommand): New function.
  10188. * src/TrackerUpdateCommand.cc
  10189. (execute): Updated with the use of AnnounceList.
  10190. * src/AnnounceList.cc: New class.
  10191. * src/AnnounceList.h: New class.
  10192. To fix typo:
  10193. * src/prefs.h
  10194. (PREF_MAX_TRIES): max_try->max_tries
  10195. To not to decode "+" as space in URL decode:
  10196. * src/Util.cc
  10197. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10198. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10199. To add timeout to async name resolution:
  10200. * src/AbstractCommand.h
  10201. (nameResolveFinished): New function. This is not elegant way. It needs
  10202. to be more refined.
  10203. (nameResolverCheck): New variable.
  10204. * src/AbstractCommand.cc
  10205. (AbstractCommand): Added nameResolverCheck.
  10206. (execute): Added the check whether the name resolution has finished.
  10207. (setNameResolverCheck): Set nameResolverCheck to true.
  10208. (disableNameResolverCheck): Set nameResolverCheck to false.
  10209. (nameResolverFinished): New function.
  10210. * src/FtpInitiateConnectionCommand.h
  10211. (nameResolverFinished): New function.
  10212. * src/FtpInitiateConnectionCommand.cc
  10213. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10214. * src/HttpInitiateConnectionCommand.h
  10215. (nameResolverFinished): New function.
  10216. * src/HttpInitiateConnectionCommand.cc
  10217. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10218. * src/prefs.h
  10219. (PREF_DNS_TIMEOUT): New definition.
  10220. * src/main.cc
  10221. (main): Added PREF_DNS_TIMEOUT.
  10222. To add the support for a non-compact response from a tracker:
  10223. * src/PeerListProcessor.h: New class.
  10224. * src/DefaultPeerListProcessor.h: New class.
  10225. * src/DefaultPeerListProcessor.cc: New class.
  10226. * src/CompactPeerListProcessor.h: New class.
  10227. * src/CompactPeerListProcessor.cc: New class.
  10228. * src/DelegatingPeerListProcessor.h: New class.
  10229. * src/DelegatingPeerListProcessor.cc: New class.
  10230. * src/TorrentMan.cc
  10231. (addPeer): New function(overload).
  10232. (addPeer): Delete unused peers only when new peer is added.
  10233. * src/TorrentMan.h
  10234. (PeerListProcessor.h): Included.
  10235. (Peers): Removed.
  10236. (addPeer): New function(overload).
  10237. * src/TrackerUpdateCommand.cc
  10238. (netinet/in.h): Removed.
  10239. (DelegatingPeerListProcessor.h): Included.
  10240. (execute): Updated to use DelegatingPeerListProcessor.
  10241. To fix the memory leak in TorrentMan::peers:
  10242. * src/PeerAbstractCommand.cc
  10243. (onAbort): Added peer->resetStatus().
  10244. * src/Peer.h
  10245. (resetStatus): Made public.
  10246. To improve the precision of the speed calculation:
  10247. * src/SpeedCalc.h
  10248. (nextInterval): New variable.
  10249. * src/SpeedCalc.cc
  10250. (reset): Added nextInterval.
  10251. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10252. (changeSw): Set nextInterval to 15 seconds relative to the current
  10253. instant time.
  10254. * src/main.cc
  10255. (showVersion): Updated.
  10256. (showUsage): Updated.
  10257. * Release 0.8.1
  10258. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. * src/main.cc
  10260. (showUsage): Commented out --min-segment-size option.
  10261. (main): Commented out --min-segment-size option.
  10262. * Release 0.8.0
  10263. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10264. * src/*.{h,cc}:
  10265. Added an exception to the license which allows linking with OpenSSL.
  10266. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. * src/AbstractCommand.cc
  10268. (execute): Check whether the download has finished before checking
  10269. socket status.
  10270. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10271. Do not exit even if no segment is available.
  10272. * src/prefs.h
  10273. (PREF_STARTUP_IDLE_TIME): New definition.
  10274. * src/PeerInteractionCommand.cc
  10275. (executeInternal): Removed max speed limit. Because it performs bad.
  10276. (receiveMessages): Added max speed limit. This was better than above,
  10277. but still a little bit to be desired. Sometimes the download speed
  10278. became much faster than I specified.
  10279. * src/SpeedCalc.h
  10280. (start): New variable.
  10281. (accumulatedLength): New variable.
  10282. (getAvgSpeed): New function.
  10283. * src/SpeedCalc.cc
  10284. (reset): Added start, accumulatedLength.
  10285. (update): Added calculation of an average speed.
  10286. (getAvgSpeed): New function.
  10287. * src/DownloadCommand.h
  10288. (sw): Removed.
  10289. * src/main.cc
  10290. (main): Added PREF_STARTUP_IDLE_TIME.
  10291. * src/PeerStat.h
  10292. (STATUS): Added REQUEST_IDLE.
  10293. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10294. (getAvgDownloadSpeed): New function
  10295. (requestIdle): New function.
  10296. * src/SegmentMan.h
  10297. (SegmentEntryHandle): New type definition.
  10298. (SegmentEntries): Now holds SegmentEntryHandle.
  10299. (findSlowerSegmentEntry): New funtion.
  10300. * src/SegmentMan.cc
  10301. (save): Updated according to the changes in SegmentEntries.
  10302. (read): Updated according to the changes in SegmentEntries.
  10303. (FindSegmentEntryByIndex): Updated according to the changes in
  10304. SegmentEntries.
  10305. (FindSegmentEntryByCuid): Updated according to the changes in
  10306. SegmentEntries.
  10307. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10308. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10309. Renamed uitr as itr.
  10310. (findSlowerSegmentEntry): New function.
  10311. (getSegment): Updated according to the changes in SegmentEntries.
  10312. Added the feature that cancels the segment with slow server and fast
  10313. one takes it over.
  10314. (cancelSegment): Updated according to the changes in SegmentEntries.
  10315. (getDownloadLength): Updated according to the changes in
  10316. SegmentEntries.
  10317. (init): Assigned 0 to bitfield after deleting it.
  10318. * src/DownloadCommand.cc
  10319. (STARTUP_IDLE_TIME): Removed.
  10320. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10321. * src/PeerChokeCommand.cc
  10322. (optUnchokingPeer): Updated according to the changes in Peer.
  10323. (ResetDelta): Removed.
  10324. (UploadFaster): Updated according to the changes in Peer.
  10325. (DownloadFaster): Updated according to the changes in Peer.
  10326. (execute): I clarify the meaning of "upload" and "download" here.
  10327. "upload" means the transfer from localhost to remote host.
  10328. "download" means the transfer from remote host to localhost.
  10329. Based on this rule, I swapped orderByUploadRate and
  10330. orderByDownloadRate.
  10331. * src/PeerInteractionCommand.cc
  10332. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10333. (executeInternal): Removed the argument of
  10334. peerInteraction->sendMessages().
  10335. (receiveMessages): Rewritten download speed limit.
  10336. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10337. * src/HttpResponseCommand.cc
  10338. (handleDefaultEncoding): If file size is unknown in torrent request,
  10339. do not call segmentMan->initBitfield() here.
  10340. Disabled persistent connection feature in torrent request.
  10341. * src/UrlRequestInfo.h
  10342. (UrlRequestInfo): Removed const qualifier from option.
  10343. * src/TorrentMan.h
  10344. (TransferStat): New class.
  10345. (deltaDownloadLength): Removed.
  10346. (deltaUploadLength): Removed.
  10347. (addDeltaDownloadLength): Removed.
  10348. (getDeltaDownloadLength): Removed.
  10349. (resetDeltaDownloadLength): Removed.
  10350. (addDeltaUploadLength): Removed.
  10351. (getDeltaUploadLength): Removed.
  10352. (resetDeltaUploadLength): Removed.
  10353. (addActivePeer): Added peer->activate().
  10354. (deleteActivePeer): Added peer->deactivate().
  10355. (calculateStat): New function.
  10356. * src/TorrentMan.cc
  10357. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10358. (calculateStat): New function.
  10359. * src/PeerInteraction.h
  10360. (uploadLimit): Removed.
  10361. (option): New variable.
  10362. (setUploadLimit): Removed.
  10363. (getUploadSpeed): Removed.
  10364. (sendMessages): Removed the argument "currentUploadSpeed".
  10365. * src/PeerInteraction.cc
  10366. (prefs.h): Included.
  10367. (PeerInteraction): Removed uploadLimit. Added option.
  10368. (sendMessages): Rewritten upload speed limit.
  10369. (sendHandshake): Removed the argument from sendMessages().
  10370. (sendBitfield): Removed the argument from sendMessages().
  10371. * src/PeerAbstractCommand.cc
  10372. (execute): Commented out the portion of upload limit.
  10373. (onAbort): Removed peer->resetStatus().
  10374. * src/TorrentRequestInfo.cc
  10375. (timeoutSpecified): Declared extern.
  10376. (execute): Set timeout to 180 if timeout is not specified by.
  10377. command-line.
  10378. * src/PieceMessage.cc
  10379. (receivedAction): Added peer->updateDownloadLength().
  10380. Removed peer->addPeerUpload().
  10381. Removed torrentMan->addDeltaDownloadLength().
  10382. (send): Added peer->updateUploadLength().
  10383. Removed peer->addPeerDownload().
  10384. Removed torrentMan->addDeltaUploadLength().
  10385. * src/main.cc
  10386. (timeoutSpecified): New variable.
  10387. (main): Set timeoutSpecified to false.
  10388. If the command-line option "--upload-limit" is specified, then
  10389. timeoutSpecified is set to true. This option will remain in the next
  10390. release, but be deprecated in the future release.
  10391. * src/TorrentRequestInfo.h
  10392. (TorrentRequestInfo): Removed const qualifier from op.
  10393. * src/PeerStat.h
  10394. (uploadSpeed): New variable.
  10395. (PeerStat): Added default value to cuid.
  10396. (calculateUploadSpeed): New function.
  10397. (updateUploadLength): New function.
  10398. (getMaxUploadSpeed): New function.
  10399. (getAvgUploadSpeed): New function.
  10400. (reset): Added uploadSpeed. Set status to IDLE.
  10401. * src/TorrentDownloadEngine.h
  10402. (cp): Declared as Time.
  10403. (sessionDownloadLengthArray): Removed.
  10404. (sessionUploadLengthArray): Removed.
  10405. (currentCp): Removed.
  10406. (lastCalcStat): New variable
  10407. (lastElapsed): Removed.
  10408. (sessionDownloadLength): Removed.
  10409. (calculateStat): New function.
  10410. * src/TorrentDownloadEngine.cc
  10411. (initStatistics): Removed lastElapsed, cp[],
  10412. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10413. currentCp, sessionDownloadLength.
  10414. Added cp.reset() and lastCalcStat.reset().
  10415. (calculateSpeed): Changed the name of the argument.
  10416. (calculateStatistics): Rewritten.
  10417. (calculateStat): New function.
  10418. * src/Peer.h
  10419. (PeerStat.h): Included.
  10420. (peerUpload): Removed.
  10421. (peerDownload): Removed.
  10422. (peerStat): New variable.
  10423. (sessionUploadLength): New variable.
  10424. (sessionDownloadLength): New variable.
  10425. (deltaUpload): Removed.
  10426. (deltaDownload): Removed.
  10427. (resetStatus): Made private.
  10428. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10429. Removed peerUpload, peerDownload.
  10430. (updateUploadLength): New function.
  10431. (addDeltaUpload): Removed.
  10432. (updateDownloadLength): New function.
  10433. (resetDeltaUpload): Removed.
  10434. (getDeltaUpload): Removed.
  10435. (addDeltaDownload): Removed.
  10436. (calculateUploadSpeed): New function.
  10437. (resetDeltaDownload): Removed.
  10438. (getDeltaDownload): Removed.
  10439. (calculateDownloadSpeed): New function.
  10440. (getSessionUploadLength): New function.
  10441. (getSessionDownloadLength): New function.
  10442. (activate): New function.
  10443. (deactivate): New function.
  10444. (addPeerUpload): Removed.
  10445. (setPeerUpload): Removed.
  10446. (getPeerUpload): Removed.
  10447. (addPeerDownload): Removed.
  10448. (setPeerDownload): Removed.
  10449. (getPeerDownload): Removed.
  10450. * src/Peer.cc
  10451. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10452. * src/MetalinkRequestInfo.h
  10453. (MetalinkRequestInfo): Removed const qualifier from op.
  10454. * src/RequestInfo.h
  10455. (op): Removed const qualifier.
  10456. (RequestInfo): Removed const qualifier from op.
  10457. * src/prefs.h
  10458. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10459. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10460. * src/PeerInteractionCommand.cc
  10461. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10462. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10463. * src/PeerInteraction.cc
  10464. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10465. * src/main.cc
  10466. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10467. Added the description of "--max-download-limit" option.
  10468. Removed the description of "--upload-limit" option.
  10469. Added the description of "--max-upload-limit" option.
  10470. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10471. Added "--max-download-limit" option and "--max-upload-limit" option.
  10472. Added the warning message if "--upload-limit" option is used.
  10473. * src/DownloadCommand.cc
  10474. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10475. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. To rewrite segment download mechanism for HTTP/FTP download.
  10477. Use BitfieldMan to manage segment download.
  10478. * src/HttpResponseCommand.h
  10479. (executeInternal): Pass the reference of segment.
  10480. * src/AbstractCommand.cc
  10481. (prepareForRetry): Call segmentMan->cancelSegment here.
  10482. (onAbort): Call segmentMan->cancelSegment here.
  10483. * src/HttpDownloadCommand.cc
  10484. (prepareForNextSegment): New function.
  10485. * src/DownloadEngineFactory.cc
  10486. (newConsoleEngine): Removed splitter.
  10487. (newTorrentConsoleEngine): Removed splitter.
  10488. * src/Request.h
  10489. (segment): Renamed from seg.
  10490. * src/FtpInitiateConnectionCommand.h
  10491. (executeInternal): Pass the reference of segment.
  10492. * src/AbstractCommand.h
  10493. (executeInternal): Pass the reference of segment.
  10494. * src/pref.h
  10495. (PREF_SEGMENT_SIZE): New definition.
  10496. * src/HttpProxyRequestCommand.h
  10497. (executeInternal): Pass the reference of segment.
  10498. * src/HttpResponseCommand.cc
  10499. (checkResponse): Allowed status 206 when a request range starts 0.
  10500. (handleDefaultEncoding): Rewritten the code related to Segment.
  10501. (handleOtherEncoding): Rewritten the code related to Segment.
  10502. * src/SegmentMan.h
  10503. (SegmentEntry): New class.
  10504. (SegmentEntries): New type definition.
  10505. (bitfield): New variable.
  10506. (usedSegmentEntries): New variable.
  10507. (onNullBitfield): New function.
  10508. (checkoutSegment): New function.
  10509. (segments): Removed.
  10510. (splitter): Removed.
  10511. (unregisterId): Removed.
  10512. (getSegment): New function(overload)
  10513. (getDownloadedSize): Removed.
  10514. (cancelSegment): New function.
  10515. (completeSegment): New function.
  10516. (initBitfield): New function.
  10517. (hasSegment): New function.
  10518. (getDownloadLength): New function.
  10519. * src/BitfieldMan.h
  10520. (getStartIndex): New function.
  10521. (getEndIndex): New function.
  10522. (getMissingUnusedIndex): New function(overload).
  10523. (getSparseMissingUnusedIndex): New function.
  10524. * src/BitfieldMan.cc
  10525. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10526. (getMissingUnusedIndex): New function(overload).
  10527. (Range): New class.
  10528. (getStartIndex): New function.
  10529. (getEndIndex): New function.
  10530. (getSparseMissingUnusedIndex): New function.
  10531. (isBitSetInternal): Return false if the given index is less than 0.
  10532. * src/HttpInitiateConnectionCommand.h
  10533. (executeInternal): Pass the reference of segment.
  10534. * src/FtpNegotiateCommand.h
  10535. (executeInternal): Pass the reference of segment.
  10536. * src/FtpNegotiateCommand.cc
  10537. (recvSize): Initialize bitfield here.
  10538. * src/FtpTunnelResponseCommand.h
  10539. (executeInternal): Pass the reference of segment.
  10540. * src/HttpConnection.cc
  10541. (createRequest): Rewritten range header processing.
  10542. * src/DownloadCommand.h
  10543. (executeInternal): Pass the reference of segment.
  10544. (prepareForRetry): Removed.
  10545. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10546. function.
  10547. * src/main.cc
  10548. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10549. * src/SegmentMan.cc
  10550. (SegmentMan): Added bitfield. Removed splitter.
  10551. (~SegmentMan): Added bitfield. Removed splitter.
  10552. (unregisterId): Removed.
  10553. (getSegment): Rewritten.
  10554. (updateSegment): Rewritten.
  10555. (save): Rewritten.
  10556. (read): Rewritten.
  10557. (finished): Rewritten.
  10558. (getDownloadedSize): Removed.
  10559. (initBitfield): New function.
  10560. (FindSegmentEntryByIndex): New function object.
  10561. (FindSegmentEntryByCuid): New function object.
  10562. (checkoutSegment): New function.
  10563. (onNullBitfield): New function.
  10564. (getSegment): New function(overload).
  10565. (CancelSegment): New function object.
  10566. (cancelSegment): New function.
  10567. (completeSegment): New function.
  10568. (hasSegment): New function.
  10569. (getDownloadLength): New function.
  10570. * src/FtpInitiateConnectionCommand.cc
  10571. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10572. * src/Segment.h: Rewritten.
  10573. * src/Segment.cc (operator<<): New function.
  10574. * src/HttpDownloadCommand.h
  10575. (prepareForNextSegment): New function.
  10576. * src/Request.cc
  10577. (resetUrl): Made segment null.
  10578. * src/DownloadEngine.cc
  10579. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10580. * src/HttpProxyRequestCommand.h
  10581. (executeInternal): Pass the reference of segment.
  10582. * src/DownloadCommand.cc
  10583. (executeInternal): Rewritten the code related to Segment.
  10584. (prepareForRetry): Removed.
  10585. (prepareForNextSegment): Rewritten.
  10586. * src/FtpTunnelResponseCommand.h
  10587. (executeInternal): Pass the reference of segment.
  10588. To add HTTP 1.1 persistent connection support(experimental)
  10589. * src/HttpRequestCommand.cc
  10590. (executeInternal): Disable keep alive if it is disabled by
  10591. configuration.
  10592. * src/Request.h
  10593. (keepAlive): New variable.
  10594. (isKeepAlive): New function.
  10595. (setKeepAlive): New function.
  10596. * src/pref.h
  10597. (PREF_HTTP_KEEP_ALIVE): New definition.
  10598. * src/HttpResponseCommand.cc
  10599. (executeInternal): Check the remote server supports keep alive.
  10600. * src/HttpConnection.cc
  10601. (createRequest): Send "Connection: close" only if keep alive is
  10602. disabled.
  10603. * src/main.cc
  10604. (main):
  10605. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10606. To add max download speed limit:
  10607. * src/pref.h
  10608. (PREF_MAX_SPEED_LIMIT): New definition.
  10609. * src/PeerInteractionCommand.cc
  10610. (executeInternal): Added max download speed limit. Not tested yet.
  10611. * src/SegmentMan.h
  10612. (PeerStats): New type definition.
  10613. (peerStats): New variable.
  10614. (registerPeerStat): New function.
  10615. (FindPeerStat): New function object.
  10616. (getPeerStat): New function.
  10617. (calculateDownloadSpeed): New function.
  10618. * src/SpeedCalc.h: New class.
  10619. * src/SpeedCalc.cc: New class.
  10620. * src/main.cc
  10621. (main):
  10622. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10623. download speed is not restricted).
  10624. * src/PeerStat.h: New class.
  10625. * src/SegmentMan.cc
  10626. (registerPeerStat): New function.
  10627. (calculateDownloadSpeed): New function.
  10628. * src/DownloadCommand.cc
  10629. (STARTUP_IDLE_TIME): New definition.
  10630. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10631. downloadStart.
  10632. (~DownloadCommand): Call peerStat->downloadStop.
  10633. (executeInternal): Added download speed limitter. Rewritten lowest
  10634. speed limitter.
  10635. * src/HttpConnection.cc
  10636. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10637. * src/AbstractCommand.cc
  10638. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10639. Added hostname to the error message.
  10640. * src/ConsoleDownloadEngine.cc
  10641. (calculateStatistics): Initialize psize with dlSize.
  10642. * src/PieceMessage.cc
  10643. (receivedAction): Do not call peerInteraction->abortPiece here.
  10644. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10645. * src/BitfieldMan.h
  10646. (clearAllUseBit): New function.
  10647. (setAllUseBit): New function.
  10648. * src/BitfieldMan.cc
  10649. (clearAllBit): Do not clear useBitfield here.
  10650. (clearAllUseBit): New function.
  10651. (setAllUseBit): New function.
  10652. * src/Piece.cc
  10653. (clearAllBlock): Call bitfield->clearAllUseBit().
  10654. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10655. To make filename URL-decoded:
  10656. * src/HttpResponseCommand.h: Updated doc.
  10657. * src/HttpResponseCommand.cc
  10658. (determinFilename): Made filename URL-decoded.
  10659. * src/FtpInitiateConnectionCommand.cc
  10660. (executeInternal): Made filename URL-decoded.
  10661. * src/Util.h (urldecode): New function.
  10662. * src/Util.cc (urldecode): New function.
  10663. To fix a bug that caused assertion failure in ares_strerror:
  10664. * src/NameResolver.cc (callback): Fixed the bug.
  10665. * Release 0.7.3
  10666. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10667. To add --seed-time and --seed-ratio command-line option:
  10668. * src/Option.h (getAsDouble): New function.
  10669. * src/Option.cc (getAsDouble): New function.
  10670. * src/SeedCheckCommand.h: New class.
  10671. * src/SeedCheckCommand.cc: New class.
  10672. * src/DownloadEngineFactory.cc
  10673. (SeedCheckCommand.h): Included.
  10674. (UnionSeedCriteria.h): Included.
  10675. (TimeSeedCriteria.h): Included.
  10676. (ShareRatioSeedCriteria.h): Included.
  10677. (newTorrentConsoleEngine): Added the processing of seed option.
  10678. * src/SeedCriteria.h: New class.
  10679. * src/ShareRatioSeedCriteria.h: New class.
  10680. * src/TimeSeedCriteria.h: New class.
  10681. * src/UnionSeedCriteria.h: New class.
  10682. * src/prefs.h
  10683. (PREF_SEED_TIME): New definition.
  10684. (PREF_SEED_RATIO): New definition.
  10685. * src/main.cc
  10686. (showUsage): Added --seed-time and --seed-ratio option.
  10687. (main): Added --seed-time and --seed-ratio option.
  10688. Made default log file name "/dev/null".
  10689. * src/SharedHandle.h
  10690. (SharedHandle): Copy constructor. Made it assignable from the
  10691. SharedHandle of the subclasses.
  10692. (operator=): Made it assignable from the SharedHandle of the
  10693. subclasses.
  10694. (getRefCount): New function.
  10695. To add notice log level and the switch to write log to stdout. This
  10696. switch is configurable per log level.
  10697. * src/Logger.h
  10698. (notice): New function.
  10699. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10700. constant.
  10701. * src/LogFactory.cc
  10702. (getInstance): The use of NullLogger was removed. A log message with
  10703. notice log level was made written to stdout along with log file.
  10704. * src/NullLogger.h
  10705. (notice): New function.
  10706. * src/SimpleLogger.h
  10707. (writeHeader): Added the 'file' argument.
  10708. (writeLog): Added the 'file' argument.
  10709. (writeFile): New function.
  10710. (stdoutField): New variable.
  10711. (SimpleLogger): Removed the default constructor.
  10712. (SimpleLogger): Made the default value of logfile 0.
  10713. (debug): Added 'virtual' keyword.
  10714. (info): Added 'virtual' keyword.
  10715. (warn): Added 'virtual' keyword.
  10716. (error): Added 'virtual' keyword.
  10717. (notice): New function.
  10718. (setStdout): New function.
  10719. * src/SimpleLogger.cc
  10720. (WRITE_LOG): Replaced writeLog with writeFile.
  10721. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10722. (SimpleLogger): Removed the default constructor.
  10723. (setStdout): New function.
  10724. (writeLog): Added the handling of NOTICE log level.
  10725. (writeFile): New function.
  10726. (notice): New function.
  10727. * src/TorrentMan.h: Updated doc.
  10728. * src/BitfieldMan.h: Updated doc.
  10729. * src/TrackerWatcherCommand.cc
  10730. (execute): Return true if error occurred in the request to the tracker
  10731. and halt is requested.
  10732. * src/TrackerUpdateCommand.cc
  10733. (execute): Return true if error occurred in the request to the tracker
  10734. and halt is requested.
  10735. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10736. DownloadEngine:
  10737. * src/TorrentConsoleDownloadEngine.h
  10738. (onSelectiveDownloadingCompletes): Removed.
  10739. * src/TorrentConsoleDownloadEngine.cc
  10740. (onSelectiveDownloadingCompletes): Removed.
  10741. * src/TorrentDownloadEngine.h
  10742. (onEndOfRun): Added 'virtual' keyword.
  10743. (afterEachIteration): Removed.
  10744. (onSelectiveDownloadingCompletes): Removed.
  10745. * src/TorrentDownloadEngine.cc
  10746. (onEndOfRun): Removed filenameFixed.
  10747. (afterEachIteration): Removed.
  10748. * src/TorrentMan.cc
  10749. (completePiece): Call onDownloadComplete here.
  10750. (onDownloadComplete): Added 2 log messages.
  10751. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10752. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10753. * src/NameResolver.h: Added the prototype declaration of callback().
  10754. To support c-ares library:
  10755. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10756. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10757. * src/FtpInitiateConnectionCommand.h:
  10758. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10759. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10760. * src/HttpInitiateConnectionCommand.h:
  10761. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10762. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10763. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10764. #1542285 by tizianomueller)
  10765. * src/HttpInitiateConnectionCommand.cc:
  10766. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10767. * src/FtpInitiateConnectionCommand.cc:
  10768. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10769. * src/DownloadEngine.h:
  10770. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10771. * src/DownloadEngine.cc:
  10772. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10773. To fix the bug that causes compilation failure with metalink-support
  10774. disabled(bug#1543587):
  10775. * src/main.cc: Fixed with the patch by tizianomueller.
  10776. * Release 0.7.2
  10777. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10778. * src/main.cc
  10779. (main): Added a message to inform users that aria2 is starting to
  10780. verify checksum.
  10781. * src/RequestInfo.cc
  10782. (printDownloadAbortMessage): Added a message to inform users that
  10783. transfer can be resumed.
  10784. * src/FeatureConfig.cc
  10785. (FEATURE_ASYNC_DNS): New definition.
  10786. (FeatureConfig): Added aysnc DNS entry.
  10787. To replace CommandUuid with Command* in SocketEntry and
  10788. NameResolverEntry:
  10789. * src/DownloadEngine.h
  10790. (CommandUuids): Removed.
  10791. (SocketEntry::commandUuid): Removed.
  10792. (SocketEntry::command): New variable.
  10793. (SocketEntry::SocketEntry): Updated.
  10794. (SocketEntry::operator==): Updated.
  10795. (NameResolverEntry::commandUuid): Removed.
  10796. (NameResolverEntry::command): New variable.
  10797. (NameResolverEntry::NameResolverEntry): Updated.
  10798. (NameResolverEntry::operator==): Updated.
  10799. (waitData): Changed the argument type.
  10800. (addSocketForReadCheck): Changed the argument type.
  10801. (deleteSocketForReadCheck): Changed the argument type.
  10802. (addSocketForWriteCheck): Changed the argument type.
  10803. (deleteSocketForWriteCheck): Changed the argument type.
  10804. (addNameResolverCheck): Changed the argument type.
  10805. (deleteNameResolverCheck): Changed the argument type.
  10806. * src/DownloadEngine.cc
  10807. (FindCommand): Removed.
  10808. (run): Removed activeUuid. Added activeCommands instead.
  10809. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10810. (AccumulateActiveCommand): New function object.
  10811. (waitData): Use AccumulateActiveCommand.
  10812. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10813. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10814. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10815. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10816. (addNameResolverCheck): Use Command instead of CommandUuid.
  10817. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10818. * src/AbstractCommand.cc
  10819. (disableReadCheckSocket): Updated according to the changes in
  10820. DownloadEngine.
  10821. (setReadCheckSocket): Updated according to the changes in
  10822. DownloadEngine.
  10823. (disableWriteCheckSocket): Updated according to the changes in
  10824. DownloadEngine.
  10825. (setWriteCheckSocket): Updated according to the changes in
  10826. DownloadEngine.
  10827. (setNameResolverCheck): Updated according to the changes in
  10828. DownloadEngine.
  10829. (disableNameResolverCheck): Updated according to the changes in
  10830. DownloadEngine.
  10831. * src/AbstractCommand.cc
  10832. (disableReadCheckSocket): Updated according to the changes in
  10833. DownloadEngine.
  10834. (setReadCheckSocket): Updated according to the changes in
  10835. DownloadEngine.
  10836. (disableWriteCheckSocket): Updated according to the changes in
  10837. DownloadEngine.
  10838. (setWriteCheckSocket): Updated according to the changes in
  10839. DownloadEngine.
  10840. * release 0.7.1
  10841. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10842. To handle the case where some BitTorrent tracker requires all letters
  10843. except for [A-Za-z0-9] is URL encoded.
  10844. * src/Util.h
  10845. (torrentUrlencode): New function.
  10846. * src/Util.cc
  10847. (ctype.h): Included.
  10848. (torrentUrlencode): New function.
  10849. * src/TrackerWatcherCommand.cc
  10850. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  10851. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10852. To add asynchronous DNS support(libares):
  10853. * src/AbstractCommand.h
  10854. (setNameResolverCheck): New function.
  10855. (disableNameResolverCheck): New function
  10856. (resolveHostname): New function.
  10857. * src/AbstractCommand.cc
  10858. (setNameResolverCheck): New function.
  10859. (disableNameResolverCheck): New function
  10860. (resolveHostname): New function.
  10861. * src/FtpInitiateConnectionCommand.h
  10862. (nameResolver): New function.
  10863. * src/FtpInitiateConnectionCommand.cc
  10864. (Util.h): Included.
  10865. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  10866. disableWriteCheckSocket.
  10867. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  10868. (executeInternal): Added async DNS support.
  10869. * src/HttpInitiateConnectionCommand.h
  10870. (nameResolver): New function.
  10871. * src/HttpInitiateConnectionCommand.cc
  10872. (DlRetryEx.h): Included.
  10873. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  10874. disableWriteCheckSocket.
  10875. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  10876. (executeInternal): Added async DNS support.
  10877. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  10878. by extern "C" declaration.
  10879. * src/NameResolver.cc: New class.
  10880. * src/Util.h:
  10881. (isNumberAndDotsNotation): New function
  10882. * src/Util.cc
  10883. (isNumberAndDotsNotation): New function.
  10884. * src/DownloadEngine.h
  10885. (NameResolver.h): Included.
  10886. (NameResolverEntry): New class.
  10887. (NameResolverEntries): New type definition.
  10888. (addNameResolverCheck): New function.
  10889. (deleteNameResolverCheck): New function.
  10890. * src/DownloadEngine.cc
  10891. (run): Initialize cp with 0.
  10892. (SetDescriptor::operator()): Added for NameResolverEntry.
  10893. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  10894. (waitData): Check nameResolver entries.
  10895. (updateFdSet): Update fds in nameResolver entries.
  10896. (addNameResolverCheck): New function.
  10897. (deleteNameResolverCheck): new function.
  10898. * src/PeerInteractionCommand.cc
  10899. (executeInternal): Fixed wrong socket handling.
  10900. * src/main.cc
  10901. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  10902. * src/Util.cc
  10903. (fileChecksum): Removed the call to ctx.digestReset().
  10904. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. * po/ru.po: Azamat sent me Russian translation.
  10906. * src/FtpNegotiateCommand.cc
  10907. (recvGreeting): Call disableWriteCheckSocket just after
  10908. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10909. (recvRetr): Recognized status code 125 as a acceptable response code.
  10910. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10911. case-insesitive filesystem(BUG#1531057).
  10912. * src/Time.h: Renamed as TimeA2.h.
  10913. * src/Time.cc: Renamed as TimeA2.cc.
  10914. * src/TimeA2.h: New class.
  10915. * src/TimeA2.cc: New class.
  10916. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10917. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10918. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10919. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10920. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10921. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10922. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10923. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10924. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10925. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10926. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10927. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10928. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10929. * release 0.7.0
  10930. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10931. * src/PeerChokeCommand.h
  10932. (PeerChokeCommand): Rearranged the arguments.
  10933. * src/PeerChokeCommand.cc
  10934. (PeerChokeCommand): Rearranged the arguments.
  10935. * src/MetalinkEntry.h
  10936. (Checksum.h): Included.
  10937. (md5): Removed.
  10938. (sha1): Removed.
  10939. (checksum): New variable.
  10940. (operator=): Updated.
  10941. (check): Removed.
  10942. * src/prefs.h
  10943. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10944. (PREF_FOLLOW_TORRENT): New definition.
  10945. (PREF_SELECT_FILE): New definition.
  10946. (PREF_FOLLOW_METALINK): New definition.
  10947. * src/MetalinkResource.h
  10948. (TYPE_HTTPS): Added to enum TYPE.
  10949. * src/TorrentMan.cc
  10950. (~TorrentMan): Rewritten.
  10951. * src/MultiDiskWriter.cc
  10952. (MultiDiskAdaptor): Updated according to the changes in
  10953. MessageDigestContext.
  10954. (~MultiDiskAdaptor): Updated according to the changes in
  10955. MessageDigestContext.
  10956. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10957. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10958. * src/Util.h
  10959. (fileChecksum): Updated according to the changes in
  10960. MessageDigestContext.
  10961. * src/Util.cc
  10962. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10963. (fileChecksum): Updated according to the changes in
  10964. MessageDigestContext.
  10965. * src/messageDigest.h: Rewritten.
  10966. * src/MetalinkEntry.cc
  10967. (check): Removed.
  10968. (Supported): Updated.
  10969. (dropUnsupportedResource): Fixed a memory leak.
  10970. * src/ShaVisitor.cc
  10971. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10972. (~ShaVisitor): Updated according to the changes in
  10973. MessageDigestContext.
  10974. (visit): Updated according to the changes in MessageDigestContext.
  10975. * src/main.cc
  10976. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10977. command-line option added.
  10978. * src/DownloadEngine.h
  10979. (SocketEntry): New class.
  10980. (SocketEntries): New definition.
  10981. (PairFind): Removed.
  10982. (SockCmdMap): Removed.
  10983. * src/DownloadEngine.cc
  10984. (DownloadEngine): Rewritten.
  10985. (~DownloadEngine): Rewritten.
  10986. (run): Renamed activeCommandUuids as activeUuids.
  10987. (SetDescriptor): Rewritten.
  10988. (AccumulateActiveCommandUuid): Removed.
  10989. (AccumulateActiveUuid): New function object.
  10990. (waitData): Rewritten.
  10991. (updateFdSet): Rewritten.
  10992. (addSocket): Rewritten.
  10993. (deleteSocket): Rewritten.
  10994. (addSocketForReadCheck): Rewritten.
  10995. (deleteSocketForReadCheck): Rewritten.
  10996. (addSocketForWriteCheck): Rewritten.
  10997. (deleteSocketForWriteCheck): Rewritten.
  10998. * src/Xml2MetalinkProcessor.cc
  10999. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11000. * src/DownloadCommand.cc
  11001. (executeInternal): Added the check routine for lowest speed limit.
  11002. * src/AbstractDiskWriter.cc
  11003. (AbstractDiskWriter): Updated according to the changes in
  11004. MessageDigestContext.
  11005. (~AbstractDiskWriter): Updated according to the changes in
  11006. MessageDigestContext.
  11007. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11008. * src/RequestInfo.h: New class.
  11009. * src/UrlRequestInfo.h: New class.
  11010. * src/UrlRequestInfo.cc: New class.
  11011. * src/TorrentRequestInfo.h: New class.
  11012. * src/TorrentRequestInfo.cc: New class.
  11013. * src/MetalinkRequestInfo.h: New class.
  11014. * src/MetalinkRequestInfo.cc: New class.
  11015. * src/Checksum.h: New class.
  11016. * src/DownloadEngineFactory.h: New class.
  11017. * src/DownloadEngineFactory.cc: New class.
  11018. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11019. * src/Option.h
  11020. (getAsBool): New function.
  11021. * src/Option.cc
  11022. (prefs.h): Included.
  11023. (defined): 0-length value is now recognized as undefined.
  11024. (getAsInt): Rewritten.
  11025. (getAsLLInt): Rewritten.
  11026. (getAsBool): New function.
  11027. * src/FeatureConfig.h: Rewritten.
  11028. * src/FeatureConfig.cc: Rewritten.
  11029. * src/prefs.h
  11030. (PREF_STDOUT_LOG): New definition.
  11031. (PREF_LOG): New definition.
  11032. (PREF_DIR): New definition.
  11033. (PREF_OUT): New definition.
  11034. (PREF_SPLIT): New definition.
  11035. (PREF_DAEMON): New definition.
  11036. (PREF_REFERER): New definition.
  11037. (PREF_TORRENT_FILE): New definition.
  11038. (PREF_LISTEN_PORT): New definition.
  11039. (PREF_METALINK_FILE): New definition.
  11040. (PREF_METALINK_VERSION): New definition.
  11041. (PREF_METALINK_LANGUAGE): New definition.
  11042. (PREF_METALINK_OS): New definition.
  11043. (PREF_METALINK_SERVERS): New definition.
  11044. * src/main.cc
  11045. (main): Following command-line parameters are now put into Option
  11046. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11047. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11048. metalinkLanguage, metalinkOs, metalinkServers
  11049. To fix the bug that aria2 can not handle http response header properly.
  11050. * src/HttpHeader.cc
  11051. (put): Made name lowercased.
  11052. (defined): Made name lowercased.
  11053. (getFirst): Made name lowercased.
  11054. (get): Made name lowercased.
  11055. (getFirstAsInt): Rewritten.
  11056. (getFirstAsLLInt): Rewritten.
  11057. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11058. * src/TorrentMan.h:
  11059. (advertisePiece): Updated doc.
  11060. (getAdvertisedPieceIndexes): Updated doc.
  11061. (removeAdvertisedPiece); New function.
  11062. * src/TorrentMan.cc
  11063. (FindElapsedHave): New function object.
  11064. (removeAdvertisedPiece): New function.
  11065. * src/HaveEraseCommand.h: New class.
  11066. * src/HaveEraseCommand.cc: New class.
  11067. * src/FeatureConfig.h: New class.
  11068. * src/FeatureConfig.cc: New class.
  11069. * src/Request.h
  11070. (defaultPorts): Removed.
  11071. * src/Request.cc
  11072. (FeatureConfig.h): Included.
  11073. (Request): Removed the statements related to defaultPorts.
  11074. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11075. A default port number is now retrieved from FeatureConfig.
  11076. * src/main.cc
  11077. (HaveEraseCommand.h): Included.
  11078. (showVersion): Added the output of feature list.
  11079. (main): Added HaveEraseCommand to command queue in BitTorrent
  11080. downloading.
  11081. * src/PeerInteractionCommand.h
  11082. (chokeCheckPoint): Commented out.
  11083. (periodicExecPoint): New variable.
  11084. * src/PeerInteractionCommand.cc
  11085. (executeInternal): Following methods are now called in at least every
  11086. 0.5 seconds to reduce CPU usage:
  11087. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11088. checkHave(), sendKeepAlive().
  11089. (checkLongTimePeerChoking): Commented out.
  11090. * src/BitfieldMan.h
  11091. (getNthBitIndex): Changed the method signature.
  11092. (getMissingIndexRandomly): Changed the method signature.
  11093. * src/BitfieldMan.cc
  11094. (getNthBitIndex): Rewritten
  11095. (getMissingIndexRandomly): Rewritten.
  11096. (hasMissingPiece): Rewritten.
  11097. (getMissingIndex): Refactored.
  11098. (getMissingUnusedIndex); Refactored.
  11099. (getMissingIndex): Refactored.
  11100. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11101. * src/PeerMessage.h
  11102. (Piece.h): Included.
  11103. (SharedHandle.h): Included.
  11104. (invalidate): New variable.
  11105. (uploading): New variable.
  11106. (isInvalidate): New function.
  11107. (isUploading): New function.
  11108. (onPush): New function.
  11109. (onChoked): New function.
  11110. (onCanceled): New function.
  11111. (onAbortPiece): New function.
  11112. (PeerMessageHandle): New type definition.
  11113. * src/PeerMessage.cc
  11114. (PeerMessage): Added the initialization for invalidate and uploading.
  11115. * src/CancelMessage.h
  11116. (CancelMessage): Rewritten.
  11117. * src/RejectMessage.h
  11118. (RejectMessage): Rewritten.
  11119. * src/Metalinker.h
  11120. (operator=): Defined.
  11121. * src/MetaEntry.h
  11122. (operator=): Defined.
  11123. * src/MetalinkResource.h
  11124. (operator=): Defined.
  11125. * src/AllowedFastMessage.h
  11126. (AllowedFastMessage): Rewritten.
  11127. * src/HandshakeMessage.h
  11128. (HandshakeMessage): New function(overload).
  11129. * src/HandshakeMessage.cc
  11130. (HandshakeMessage): Rewritten.
  11131. (init): New function.
  11132. * src/HaveMessage.h
  11133. (HaveMessage): Rewritten.
  11134. * src/Time.h
  11135. (operator=): Defined the function body here.
  11136. * src/Time.cc
  11137. (operator=): Removed.
  11138. * src/SocketCore.h
  11139. (operator==): Defined here.
  11140. (operator!=): Defined here.
  11141. (operator<): Defined here.
  11142. * src/SocketCore.cc
  11143. (operator==): Removed.
  11144. (operator<): Removed.
  11145. * src/BitfieldMan.h
  11146. (operator=): Defined the function body here.
  11147. * src/BitfieldMan.cc
  11148. (operator=): Removed.
  11149. * src/TorrentMan.h
  11150. (deleteErrorPeer): Removed.
  11151. (deleteUnusedPeer); New function.
  11152. * src/TorrentMan.cc
  11153. (addPeer): Call deleteUnusedPeer.
  11154. (deleteErrorPeer): Removed.
  11155. (deleteUnusedPeer): New function.
  11156. * src/PeerAbstractCommand.h
  11157. (setNoCheck): New function.
  11158. (noCheck): New variable.
  11159. * src/PeerAbstractCommand.cc
  11160. (PeerAbstractCommand): Added the initialization of noCheck.
  11161. (execute): Added a check for noCheck.
  11162. (setNoCheck): New function.
  11163. * src/Util.h
  11164. (stdio.h): Included.
  11165. * src/Util.cc
  11166. (unistd.h): Included.
  11167. * src/DefaultDiskWriter.cc
  11168. (unistd.h): Included.
  11169. * src/Peer.h
  11170. (operator==): Defined the function body here.
  11171. (operator!=): Defined the function body here.
  11172. * src/Peer.cc
  11173. (operator==): Removed.
  11174. (operator!=): Removed.
  11175. * src/Piece.h
  11176. (Piece): Defined the function body here(copy constructor).
  11177. (operator=): Defined the function body here.
  11178. (operator==): Defined the function body here.
  11179. * src/Piece.cc
  11180. (Piece): Removed(copy constructor).
  11181. (operator=): Removed.
  11182. (operator==): Removed.
  11183. * src/PeerMessageUtil.h
  11184. (ChokeMessage.h): Removed.
  11185. (UnchokeMessage.h): Removed.
  11186. (InterestedMessage.h): Removed.
  11187. (NotInterestedMessage.h): Removed.
  11188. (HaveMessage.h): Removed.
  11189. (BitfieldMessage.h): Removed.
  11190. (RequestMessage.h): Removed.
  11191. (CancelMessage.h): Removed.
  11192. (PieceMessage.h): Removed.
  11193. (HandshakeMessage.h): Removed.
  11194. (KeepAliveMessage.h): Removed.
  11195. (PortMessage.h): Removed.
  11196. (HaveAllMessage.h): Removed.
  11197. (HaveNoneMessage.h): Removed.
  11198. (PeerConnection.h): Removed.
  11199. (HandshakeMessage.h): Included.
  11200. * src/BitfieldMessage.h
  11201. (init): New function.
  11202. (BitfieldMessage): Rewritten.
  11203. (BitfieldMessage): New function(overload).
  11204. * src/RequestSlot.h
  11205. (operator=): Defined the function body here.
  11206. (operator==): Defined the function body here.
  11207. * src/RequestSlot.cc
  11208. (operator=): Removed.
  11209. (operator==): Removed.
  11210. To remove the dependency on the PeerMessage subclass from
  11211. PeerInteraction:
  11212. * src/PeerMessageFactory.h: New class.
  11213. * src/PeerMessageFactory.cc: New class.
  11214. * src/SimplePeerMessage.cc
  11215. (send): If invalidate is true then do nothing.
  11216. * src/PeerInteractionCommand.cc
  11217. (HandshakeMessage.h): Included.
  11218. (KeepAliveMessage.h): Included.
  11219. (ChokeMessage.h): Included.
  11220. (UnchokeMessage.h): Included.
  11221. (HaveMessage.h): Included.
  11222. (executeInternal): Call setNoCheck().
  11223. Removed setWriteCheckSocket(socket).
  11224. * src/PeerInteraction.h
  11225. (ChokeMessage.h): Removed.
  11226. (UnchokeMessage.h): Removed.
  11227. (InterestedMessage.h): Removed.
  11228. (NotInterestedMessage.h): Removed.
  11229. (HaveMessage.h): Removed.
  11230. (BitfieldMessage.h): Removed.
  11231. (RequestMessage.h): Removed.
  11232. (CancelMessage.h): Removed.
  11233. (PieceMessage.h): Removed.
  11234. (HandshakeMessage.h): Removed.
  11235. (KeepAliveMessage.h): Removed.
  11236. (PortMessage.h): Removed.
  11237. (HaveAllMessage.h): Removed.
  11238. (HaveNoneMessage.h): Removed.
  11239. (RejectMessage.h): Removed.
  11240. (AllowedFastMessage.h): Removed.
  11241. (SuggestPieceMessage.h): Removed.
  11242. (PeerMessageFactory.h): Included.
  11243. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11244. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11245. (PeerMessageFactory): New variable.
  11246. (createPeerMessage): Removed.
  11247. (createHandshakeMessage): Removed.
  11248. (setPeerMessageCommonProperty): Removed.
  11249. (addRequestSlot): New function.
  11250. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11251. (getPeerMessageFactory): New function.
  11252. (createRequestMessage): Removed.
  11253. (createCancelMessage): Removed.
  11254. (createPieceMessage): Removed.
  11255. (createHaveMessage): Removed.
  11256. (createChokeMessage): Removed.
  11257. (createUnchokeMessage): Removed.
  11258. (createInterestedMessage): Removed.
  11259. (createNotInterestedMessage): Removed.
  11260. (createBitfieldMessage): Removed.
  11261. (createKeepAliveMessage): Removed.
  11262. (createHaveAllMessage): Removed.
  11263. (createHaveNoneMessage): Removed.
  11264. (createRejectMessage): Removed.
  11265. (createAllowedFastMessage): Removed.
  11266. * src/PeerInteraction.cc
  11267. (PeerInteraction): Allocate PeerMessageFactory here.
  11268. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11269. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11270. PieceMessage::ID.
  11271. (addMessage): Simplified by using PeerMessage::onPush().
  11272. (addRequestSlot): New function.
  11273. (rejectAllPieceMessageInQueue): Simplified by using
  11274. PeerMessage::onChoked().
  11275. (rejectPieceMessageInQueue): Simplified by using
  11276. PeerMessage::onCanceled().
  11277. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11278. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11279. (createHandshakeMessage): Removed.
  11280. (createPeerMessage): Removed.
  11281. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11282. (setPeerMessageCommonProperty): Removed.
  11283. (createRequestMessage): Removed.
  11284. (createCancelMessage): Removed.
  11285. (createPieceMessage): Removed.
  11286. (createHaveMessage): Removed.
  11287. (createChokeMessage): Removed.
  11288. (createUnchokeMessage): Removed.
  11289. (createInterestedMessage): Removed.
  11290. (createNotInterestedMessage): Removed.
  11291. (createBitfieldMessage): Removed.
  11292. (createKeepAliveMessage): Removed.
  11293. (createHaveAllMessage): Removed.
  11294. (createHaveNoneMessage): Removed.
  11295. (createRejectMessage): Removed.
  11296. (createAllowedFastMessage): Removed.
  11297. * src/PieceMessage.h
  11298. (createRejectMessage): New function.
  11299. (PieceMessage): Rewritten.
  11300. (onChoked): New function.
  11301. (onCanceled): New function.
  11302. * src/PieceMessage.cc
  11303. (send): If invalidate is true then do nothing, just return.
  11304. (createRejectMessage): New function.
  11305. (onChoked): New function.
  11306. (onCanceled): New function.
  11307. * src/RequestMessage.h
  11308. (RequestMessage): Rewritten.
  11309. (onPush): New function.
  11310. (onAbortPiece): New function.
  11311. * src/RequestMessage.cc
  11312. (onPush): New function.
  11313. (onAbortPiece): New function.
  11314. Update fd_set when a socket is added or deleted in order to improve
  11315. performance:
  11316. * src/DownloadEngine.h
  11317. (rfdset): New variable.
  11318. (wfdset): New variable.
  11319. (updateFdSet): New function.
  11320. * src/DownloadEngine.cc
  11321. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11322. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11323. (waitData): Copy rfdset and wfdset.
  11324. (updateFdSet): New function.
  11325. (addSocket): Call updateFdSet.
  11326. (deleteSocket): Call updateFdSet.
  11327. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11328. To add the support for Metalink3.0 backward compatible links:
  11329. * src/Request.h
  11330. (SAFE_CHARS): Added '#'.
  11331. (METALINK_MARK): New definition.
  11332. * src/Request.cc
  11333. (parseUrl): Added the support for Metalink3.0 backward compatible
  11334. links.
  11335. etc
  11336. * src/PeerInteraction.cc
  11337. (MsgPushBack): Removed.
  11338. (sendMessages): Use STL copy and back_inserter.
  11339. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11340. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11341. * src/TorrentMan.h
  11342. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11343. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. * src/SharedHandle.h: New class.
  11345. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11346. * src/HttpResponseCommand.h
  11347. (HttpResponseCommand): Wrapped Socket.
  11348. * src/SocketCore.h
  11349. (operator==): New function.
  11350. (operator!=): New function.
  11351. (operator<): New function.
  11352. (getSockfd): New function.
  11353. (isOpen): New function.
  11354. (writeData): New function.
  11355. * src/SocketCore.cc
  11356. (operator==): New function.
  11357. (operator!=): New function.
  11358. (operator<): New function.
  11359. * src/AbstractCommand.h
  11360. (socket): Changed its type to SocketHandle.
  11361. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11362. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11363. (disableReadCheckSocket): New function.
  11364. (disableWriteCheckSocket): New function.
  11365. (readCheckTarget): Changed its type to SocketHandle.
  11366. (writeCheckTarget): Changed its type to SocketHandle.
  11367. (AbstractCommand): Replaced Socket with SocketHandle.
  11368. * src/AbstractCommand.cc
  11369. (AbstractCommand): Replaced Socket with SocketHandle.
  11370. (~AbstractCommand): Removed the deallocation for Socket object.
  11371. (disableReadCheckSocket): New function.
  11372. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11373. (disableWriteCheckSocket): New function.
  11374. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11375. * src/HttpDownloadCommand.cc
  11376. (DownloadCommand): Replaced Socket with SocketHandle.
  11377. * src/PeerAbstractCommand.h
  11378. (socket): Changed its type to SocketHandle.
  11379. (peer): Changed its type to PeerHandle.
  11380. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11381. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11382. (disableReadCheckSocket): New function.
  11383. (disableWriteCheckSocket): New function.
  11384. (readCheckTarget): Changed its type to SocketHandle.
  11385. (writeCheckTarget): Changed its type to SocketHandle.
  11386. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11387. Replaced Peer with PeerHandle.
  11388. * src/HttpRequestCommand.cc
  11389. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11390. Use disableReadCheckSocket.
  11391. * src/PeerInitiateConnectionCommand.h
  11392. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11393. * src/PeerChokeCommand.cc
  11394. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11395. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11396. (execute): Use PeerHandle.
  11397. * src/PeerConnection.h
  11398. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11399. (socket): Changed its type to SocketHandle.
  11400. (PeerConnection): Replaced Socket with SocketHandle.
  11401. * src/PeerConnection.cc
  11402. (PeerConnection): Replaced Socket with SocketHandle.
  11403. * src/PeerInteractionCommand.h
  11404. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11405. Replaced Peer with PeerHandle.
  11406. * src/PeerInteractionCommand.cc
  11407. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11408. Replaced Peer with PeerHandle.
  11409. (executeInternal): Use disableWriteCheckSocket.
  11410. Use HandshakeMessageHandle.
  11411. (receiveMessages): Use PeerMessageHandle.
  11412. (prepareForNextPeer): Use PeerHandle.
  11413. * src/HttpProxyRequestCommand.h
  11414. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11415. * src/HttpResponseCommand.cc
  11416. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11417. * src/TorrentMan.cc
  11418. (nullPeer): Added external reference.
  11419. (~TorrentMan): Removed the deallocation of the elements of peers.
  11420. (addPeer): Rewritten.
  11421. (isPeerAvailable): Use nullPeer.
  11422. (deleteOldpeers): Replaced with deleteErrorPeer.
  11423. (deleteErrorPeer): New function.
  11424. (getPeer): Use PeerHandle and nullPeer.
  11425. (hasMissingPiece): Replaced Peer with PeerHandle.
  11426. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11427. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11428. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11429. (getMissingPiece): Replaced Peer with PeerHandle.
  11430. * src/FtpNegotiateCommand.cc
  11431. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11432. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11433. (recvGreeting): Use disableWriteCheckSocket.
  11434. (recvPasv): Removed the allocation of Socket.
  11435. Use disableReadCheckSocket.
  11436. (sendRestPasv): Use disableWriteCheckSocket.
  11437. (recvRetr): Changed assertion.
  11438. * src/PeerInteraction.h
  11439. (SharedHandle.h): Included SharedHandle.h.
  11440. (PeerMessageHandle): New type definition.
  11441. (HandshakeMessageHandle): New type definition.
  11442. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11443. (peer): Changed its type to PeerHandle.
  11444. (createHandshakeMessage): Replaced HandshakeMessage with
  11445. HandshakeMessageHandle.
  11446. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11447. (PeerInteraction): Replaced Peer with PeerHandle.
  11448. Replaced Socket with SocketHandle.
  11449. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11450. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11451. (receiveHandshake): Replaced HandshakeMessage with
  11452. HandshakeMessageHandle.
  11453. * src/PeerInteraction.cc
  11454. (PeerInteraction): Replaced Peer with PeerHandle.
  11455. Replaced Socket with SocketHandle.
  11456. (~PeerInteraction): Removed the deallocation of the elements of
  11457. messageQueue.
  11458. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11459. (isSendingMessageInProgress): Replaced PeerMessage with
  11460. PeerMessageHandle.
  11461. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11462. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11463. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11464. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11465. (abortPiece): Use PeerMessageHandle.
  11466. (receiveHandshake): Replaced HandshakeMessage with
  11467. HandshakeMessageHandle. Removed try-catch block.
  11468. (createHandshakeMessage): Replaced HandshakeMessage with
  11469. HandshakeMessageHandle.
  11470. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11471. Removed try-catch block.
  11472. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11473. * src/HttpProxyResponseCommand.cc
  11474. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11475. * src/FtpTunnelResponseCommand.h
  11476. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11477. * src/HttpConnection.cc
  11478. (HttpConnection): Replaced Socket with SocketHandle.
  11479. * src/PeerAbstractCommand.cc
  11480. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11481. (~PeerAbstractCommand): Removed the deallocation of socket.
  11482. Use disableReadCheckSocket, disableWriteCheckSocket.
  11483. (disableReadCheckSocket): New function.
  11484. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11485. (disableWriteCheckSocket): New function.
  11486. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11487. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11488. * src/FtpTunnelRequestCommand.cc
  11489. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11490. (~FtpTunnelRequestCommand): Corrected indentation.
  11491. * src/DownloadCommand.h
  11492. (DownloadCommand): Replaced Socket with SocketHandle.
  11493. * src/PeerListenCommand.cc
  11494. (PeerListenCommand): Removed the initialization of socket.
  11495. (~PeerListenCommand): Removed the deallocation of socket.
  11496. (bindPort): Use SocketHandle.
  11497. (execute): Use SocketHandle and PeerHandle.
  11498. * src/FtpDowndloadCommand.cc
  11499. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11500. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11501. * src/main.cc
  11502. (main): Corrected indentation.
  11503. * src/HttpInitiateConnectionCommand.cc
  11504. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11505. (executeInternal): Removed the allocation of socket.
  11506. * src/HttpRequestCommand.h
  11507. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11508. * src/FtpNegotiationCommand.h
  11509. (dataSocket): Changed its type to SocketHandle.
  11510. (serverSocket): Changed its type to SocketHandle.
  11511. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11512. * src/TorrentMan.h
  11513. (MAX_PEER_UPDATE): Removed.
  11514. (MAX_PEERS): New definition.
  11515. (Peers): The element is now of type PeerHandle.
  11516. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11517. (getPeer): Replaced Peer with PeerHandle.
  11518. (deleteOldErrorPeers): Removed.
  11519. (deleteErrorPeer): New function.
  11520. (hasMissingPiece): Replaced Peer with PeerHandle.
  11521. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11522. (getMissingPiece): Replaced Peer with PeerHandle.
  11523. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11524. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11525. (addActivePeer): Replaced Peer with PeerHandle.
  11526. (deleteActivePeer): Replaced Peer with PeerHandle.
  11527. Added a check for the return value of find.
  11528. * src/FtpTunnelResponseCommand.cc
  11529. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11530. * src/FtpInitiateConnectionCommand.cc
  11531. (executeInternal): Removed the allocation of socket.
  11532. * src/DownloadEngine.h
  11533. (Sockets): An element is now of type SocketHandle.
  11534. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11535. (CommandUuids): New type definition.
  11536. (rsockets): Changed its type to SockCmdMap.
  11537. (wsockets): Changed its type to SockCmdMap.
  11538. (addSocket): Rewritten.
  11539. (deleteSocket): Rewritten.
  11540. (addSocketForReadCheck): Rewritten.
  11541. (deleteSocketForReadCheck): Rewritten.
  11542. (addSocketForWriteCheck): Rewritten.
  11543. (deleteSocketForWriteCheck): Rewritten.
  11544. (PairFind): New template class.
  11545. * src/HttpDownloadCommand.h
  11546. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11547. * src/FtpConnection.cc
  11548. (FtpConnection): Replaced Socket with SocketHandle.
  11549. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11550. block.
  11551. * src/InitiateConnectionCommandFactory.cc
  11552. (DlAbortEx.h): Included DlAbortEx.h.
  11553. (createInitiateConnectionCommand): Throw exception if the protocol of
  11554. requested URI is not supported.
  11555. * src/Peer.cc
  11556. (nullPeer): Changed its type to PeerHandle.
  11557. (operator==): New function.
  11558. (operator!=): New function.
  11559. * src/Peer.h
  11560. (SharedHandle.h): Included SharedHandle.h.
  11561. (operator==): New function.
  11562. (operator!=): New function.
  11563. (Peer): Added the default constructor.
  11564. Use resetStatus() to initialize member variables.
  11565. (nullPeer): Removed.
  11566. * src/TrackerUpdateCommand.cc
  11567. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11568. with MIN_PEERS.
  11569. * src/PeerListenCommand.h
  11570. (socket): Changed its type to SocketHandle.
  11571. * src/Command.h
  11572. (CommandUuid): New type definition.
  11573. (uuid): New variable.
  11574. (uuidGen): New variable.
  11575. (Command): Added the initialization of uuid.
  11576. (getUuid): New function.
  11577. * src/Socket.h
  11578. (Socket): Removed.
  11579. (SocketHandle): New type definition.
  11580. * src/DownloadEngine.h
  11581. (FindCommand): New function object.
  11582. (run): The portion of socket check was rewritten.
  11583. (SetDescriptor): New function object.
  11584. (AccumulateActiveCommandUuid): New function object.
  11585. (waitData): Rewritten.
  11586. (addSocket): Rewritten.
  11587. (deleteSocket): Rewritten.
  11588. (addSocketForReadCheck): Rewritten.
  11589. (addSocketForWriteCheck): Rewritten.
  11590. (deleteSocketForReadCheck): Rewritten.
  11591. (deleteSocketForWriteCheck): Rewritten.
  11592. * src/HttpProxyResponseCommand.h
  11593. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11594. * src/HttpConnection.h
  11595. (socket): Changed its type to SocketHandle.
  11596. (HttpConnection): Replaced Socket with SocketHandle.
  11597. * src/PeerInitiateConnectionCommand.cc
  11598. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11599. (executeInternal): Removed the allocation of socket.
  11600. (prepareForNextPeer): Use PeerHandle.
  11601. * src/PeerMessage.h
  11602. (peer): Changed its type to PeerHandle.
  11603. (getPeer): Replaced Peer with PeerHandle.
  11604. (setPeer): Replaced Peer with PeerHandle.
  11605. * src/DownloadCommand.cc
  11606. (DownloadCommand): Replaced Socket with SocketHandle.
  11607. * src/FtpConnection.h
  11608. (socket): Changed its type to SocketHandle.
  11609. (FtpConnection): Replaced Socket with SocketHandle.
  11610. (sendPort); Replaced Socket with SocketHandle.
  11611. * src/FtpDowndloadCommand.h
  11612. (ctrlSocket): Changed its type to SocketHandle.
  11613. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11614. * src/HttpProxyRequestCommand.cc
  11615. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11616. * src/FtpTunnelRequestCommand.h
  11617. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11618. etc
  11619. * src/PeerChokeCommand.h
  11620. (setAllPeerChoked): Removed.
  11621. (setAllPeerResetDelta): Removed.
  11622. * src/PeerChokeCommand.cc
  11623. (setAllPeerChoked): Removed.
  11624. (ChokePeer): New function object.
  11625. (setAllPeerResetDelta): Removed.
  11626. (ResetDelta): New function object.
  11627. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11628. (execute): Show download speed when the local node is a seeder.
  11629. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11630. using STL.
  11631. * src/TrackerWatcherCommand.h
  11632. (MIN_PEERS): Removed.
  11633. * src/TorrentMan.cc
  11634. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11635. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11636. To fix the bug that .aria2 file is not saved if downloading is stopped
  11637. by the errors:it results that aria2 can not resume downloading:
  11638. * src/main.cc
  11639. (normalDownload): Added the call to save().
  11640. (main): Added the deletion of the elements in 'reserved'.
  11641. To fix log:
  11642. * src/PeerInteraction.cc
  11643. (receiveHandshake): Fixed log.
  11644. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11645. To improve download performance in BitTorrent:
  11646. * src/TorrentMan.cc
  11647. (getPeer): Check the number of connections. Return nullPeer if
  11648. it is greater than MAX_PEER_UPDATE.
  11649. This code was originally here, but was removed in 0.5.1.
  11650. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11651. To improve the conditional compilation:
  11652. * src/MultiDiskWriter.h:
  11653. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11654. * src/MultiDiskWriter.cc:
  11655. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11656. * src/Util.h:
  11657. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11658. Added ENABLE_BITTORRENT around computeFastSet().
  11659. * src/Util.cc:
  11660. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11661. Added ENABLE_BITTORRENT around computeFastSet().
  11662. * src/messageDigest.h:
  11663. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11664. * src/ShaVisitor.h:
  11665. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11666. * src/ShaVisitor.cc:
  11667. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11668. * src/main.cc:
  11669. Added ENABLE_BITTORRENT around includes and blocks related to
  11670. BitTorrent.
  11671. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11672. digest support is not available.
  11673. * src/AbstractDiskWriter.h:
  11674. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11675. * src/AbstractDiskWriter.cc:
  11676. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11677. * src/MetalinkEntry.cc
  11678. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11679. support is not available.
  11680. To add command-line options for Metalink:
  11681. * src/main.cc:
  11682. Added metalink-version, metalink-language, metalink-os,
  11683. follow-metalink.
  11684. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11685. * src/main.cc: Use these definition.
  11686. * Release 0.6.0
  11687. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11688. To add Metalink support(http/ftp only):
  11689. * src/AbstractCommand.h
  11690. (tryReserved): New function.
  11691. * src/AbstractCommand.cc
  11692. (execute): Call tryReserved().
  11693. (tryReserved): New function.
  11694. * src/Request.h
  11695. (Requests): New type definition.
  11696. * src/SegmentMan.h
  11697. (reserved): New variable.
  11698. * src/Util.h
  11699. (fileChecksum): New function.
  11700. (toUpper): New function.
  11701. (toLower): New function.
  11702. * src/Util.cc
  11703. (messageDigest.h): Included.
  11704. (trim): Trim \r\n\t.
  11705. (fileChecksum): New function.
  11706. (toUpper): New function.
  11707. (toLower): New function.
  11708. * src/main.cc
  11709. (normalDownload): New function.
  11710. (main): Added 2 command-line options: metalink-file,
  11711. metalink-connection. Their usage has not been written yet.
  11712. * src/MetalinkProcessor.h: New class.
  11713. * src/Xml2MetalinkProcessor.h: New class.
  11714. * src/Xml2MetalinkProcessor.cc: New class.
  11715. * src/MetalinkEntry.h: New class.
  11716. * src/MetalinkEntry.cc: New class.
  11717. * src/MetalinkResource.h: New class.
  11718. * src/MetalinkResource.cc: New class.
  11719. To add md5 message digest checking:
  11720. * src/messageDigest.h: Rewritten.
  11721. * src/MultiDiskWriter.cc: Updated according to the changes in
  11722. messageDigest.h.
  11723. * src/ShaVisitor.cc: Updated according to the changes in
  11724. messageDigest.h.
  11725. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11726. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11727. messageDigest.h.
  11728. To fix a bug that causes segfault when the payload length in peer
  11729. message is less than 0:
  11730. * src/PeerConnection.cc:
  11731. (receiveMessage): Fixed the bug.
  11732. * src/PeerMessageUtil.cc
  11733. (checkLength): Throw an exception if length is less than or equals to
  11734. 0.
  11735. To add new interfaces to Base64 encoding/decoding:
  11736. * src/Base64.h
  11737. (part_encode): Changed the method signature.
  11738. (encode): New function(overload).
  11739. (decode): New function(overload).
  11740. * src/Base64.cc
  11741. (part_encode): Rewritten.
  11742. (encode): Rewritten.
  11743. (encode): New function(overload).
  11744. To prevent a peer to download same piece if there is an error in
  11745. checksum:
  11746. * src/PieceMessage.cc
  11747. (receivedAction): Call peerInteraction->abortPiece().
  11748. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11749. To fix the bug that causes same have message is sent many times to
  11750. a single peer.
  11751. * src/Time.cc
  11752. (isNewer): Use Util::difftv().
  11753. * src/Util.cc
  11754. (difftv): Added a cast to (long long int).
  11755. * src/TorrentMan.cc
  11756. (advertisePiece): Use push_front.
  11757. (getAdvertisedPieceIndexes): A performance improvement was made.
  11758. To fix the bug that sends tracker requests without a sleep interval
  11759. when the number of connections is less than 15.
  11760. * src/TrackerWatcherCommand.cc
  11761. (execute): Now the number of connections is not a factor to decide
  11762. whether or not a tracker request should be sent or not.
  11763. * src/Time.h
  11764. (setTimeInSec): New function.
  11765. * src/Time.cc
  11766. (setTimeInSec): New function.
  11767. etc.
  11768. * src/ChokeMessage.cc
  11769. (receivedAction): Removed peer->snubbing = false
  11770. * src/PeerConnection.h
  11771. (receiveHandshake): Updated doc.
  11772. * src/TorrentMan.h
  11773. (getAdvertisedPieceIndexes): Updated the method signature.
  11774. * src/TorrentMan.cc
  11775. (getAdvertisedPieceIndexes): Updated the method signature.
  11776. * src/Time.h
  11777. (getTimeInMicros): Added a cast to (long long int).
  11778. (getTimeInMillis): Added a cast to (long long int).
  11779. * Release 0.5.2
  11780. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11781. To make a listening socket non-block:
  11782. * src/SocketCore.h
  11783. (setNonBlockingMode): New function.
  11784. * src/SocketCore.cc
  11785. (setNonBlockingMode): New function.
  11786. (beginListen): Added a call to setNonBlockingMode().
  11787. (acceptConnection): Call setNonBlockingMode().
  11788. (setBlockingMode): Updated.
  11789. To handle tracker's NAT-checking:
  11790. * src/PeerConnection.cc
  11791. (receiveHandshake): 'msg' param is filled with received data and
  11792. its length is assigned to 'length' param, even if all handshake
  11793. message is not yet received.
  11794. * src/PeerInteractionCommand.cc
  11795. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11796. a new peer connects to localhost.
  11797. A call to peerInteraction->sendHandshake() was removed because
  11798. it is called from peerInteraction->receiveHandshake(true).
  11799. * src/PeerInteraction.h
  11800. (quickReplied): New variable.
  11801. (receiveHandshake): Added an argument.
  11802. * src/PeerInteraction.cc
  11803. (PeerInteraction): Added the initialization of quickReplied.
  11804. (receiveHandshake): Send handshake message as soon as the info hash
  11805. in a handshake message from a peer is correct.
  11806. To change the random part of peer id and key parameter:
  11807. * src/TorrentMan.h
  11808. (key): New variable.
  11809. * src/TorrentMan.cc
  11810. (setupInternal1): Use Util::randomAlpha() to generate random part
  11811. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11812. key is also generated by Util::randomAlpha() and it is now 8 character
  11813. long.
  11814. * src/Util.h
  11815. (randomAlpha): New function.
  11816. * src/Util.cc
  11817. (randomAlpha): New function.
  11818. * src/TrackerWatcherCommand.cc
  11819. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11820. Added no_peer_id=1.
  11821. Set snubbing flag to false when a choke message is received from a
  11822. snubbed peer.
  11823. * src/ChokeMessage.cc
  11824. (receivedAction): Set snubbing flag to false.
  11825. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11826. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  11827. * src/SimpleLogger.h (writeHeader): New function.
  11828. * src/SimpleLogger.cc (writeHeader): New function.
  11829. (writeLog): Fixed the bug that causes segfaults if exception message
  11830. contains an unescaped "%" character.
  11831. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  11832. when a tracker request fails.
  11833. * src/Request.cc (parseUrl): Query string is now handled properly.
  11834. * Release 0.5.1
  11835. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11836. To add Time class which represents a specific instant in time and
  11837. its precision is microseconds. Time checking procedures were rewritten
  11838. using this object.
  11839. * src/Time.h: New class.
  11840. * src/Time.cc: New class.
  11841. * src/AbstractCommand.h
  11842. (updateCheckPoint): Removed.
  11843. (isTimeoutDetected): Removed.
  11844. (checkPoint): Changed the type to Time.
  11845. (timeout): New variable.
  11846. (setTimeout): New function.
  11847. * src/AbstractCommand.cc
  11848. (AbstractCommand): Removed the initialization of checkPoint.
  11849. Added the initialization of timeout.
  11850. (updateCheckPoint): Removed.
  11851. (isTimeoutDetected): Removed.
  11852. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11853. * src/PeerChokeCommand.h
  11854. (checkPoint): Changed the type to Time.
  11855. * src/PeerChokeCommand.cc
  11856. (PeerChokeCommand): Removed the initialization of checkPoint.
  11857. (execute): Rewritten using Time object.
  11858. * src/TrackerWatcherCommand.h
  11859. (checkPoint): Changed the type to Time.
  11860. * src/TrackerWatcherCommand.cc
  11861. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  11862. (execute): Rewritten.
  11863. * src/ConsoleDownloadEngine.h
  11864. (cp): Changed the type to Time.
  11865. (startup): Changed the type to Time.
  11866. * src/ConsoleDownloadEngine.cc
  11867. (initStatistics): Use cp.reset(), startup.reset().
  11868. (calculateStatistics): Rewritten using Time object.
  11869. * src/PeerAbstractCommand.h
  11870. (updateCheckPoint): Removed.
  11871. (isTimeoutDetected): Removed.
  11872. (checkPoint): Changed the type to Time.
  11873. * src/PeerAbstractCommand.cc
  11874. (PeerAbstractCommand): Removed the initialization of checkPoint.
  11875. (updateCheckPoint): Removed.
  11876. (isTimeoutDetected): Removed.
  11877. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11878. * src/PeerInteractionCommand.cc
  11879. (PeerInteractionCommand): Removed the initializations of struct
  11880. timeval variables.
  11881. * src/PeerInteractionCommand.h
  11882. (keepAliveCheckPoint): Changed the type to Time.
  11883. (chokeCheckPoint): Changed the type to Time.
  11884. (freqCheckPoint): Changed the type to Time.
  11885. (haveCheckTime): Changed the type to Time.
  11886. * src/PeerInteractionCommand.cc
  11887. (executeInternal): Rewritten using Time object.
  11888. (detectMessageFlooding): Rewritten using Time object.
  11889. (checkLongTimePeerChoking): Rewritten using Time object.
  11890. (sendKeepAlive): Rewritten using Time object.
  11891. (checkHave): Rewritten using Time object.
  11892. * src/SleepCommand.h
  11893. (checkPoint): Changed the type to Time.
  11894. * src/SleepCommand.cc
  11895. (SleepCommand): Removed the initialization of checkPoint.
  11896. (execute): Rewritten using Time object.
  11897. * src/TorrentAutoSaveCommand.h
  11898. (checkPoint): Changed the type to Time.
  11899. * src/TorrentAutoSaveCommand.cc
  11900. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  11901. (execute): Rewritten.
  11902. * src/DownloadCommand.h
  11903. (sw): Changed the type to Time.
  11904. * src/DownloadCommand.cc
  11905. (DownloadCommand): Removed the initialization of sw.
  11906. (executeInternal): Rewritten.
  11907. * src/RequestSlot.h
  11908. (dispatchedTime): Changed the type to Time.
  11909. * src/RequestSlot.cc
  11910. (RequestSlot): Removed the call to setDispatchedTime().
  11911. (setDispatchedTime): Rewirtten.
  11912. (isTimeout): Rewritten.
  11913. (getLatencyInMillis): Rewritten.
  11914. * src/TorrentDownloadEngine.h
  11915. (cp): Changed the type to Time[2].
  11916. (startup): Changed the type to Time.
  11917. * src/TorrentDownloadEngine.cc
  11918. (initStatistics): Rewritten.
  11919. (calculateStatistics): Rewritten.
  11920. * src/DownloadEngine.cc
  11921. (run): Rewritten.
  11922. To detect all attempts to connect to the tracker are failed:
  11923. * src/AbstractCommand.cc
  11924. (execute): Increment e->segmentMan->errors if a command aborted.
  11925. * src/SegmentMan.h
  11926. (errors): New variable.
  11927. * src/SegmentMan.cc
  11928. (SegmentMan): Added the initialization of errors.
  11929. (init): Added the initialization of errors.
  11930. * src/TrackerWatcherCommand.cc
  11931. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11932. request was failed.
  11933. To handle snubbed peers:
  11934. * src/PeerChokeCommand.cc
  11935. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11936. (execute): Snubbed peers don't get unchoked.
  11937. * src/PeerInteraction.h
  11938. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11939. * src/PeerInteraction.cc
  11940. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11941. back the requested 16k block in 60 seconds.
  11942. * src/PieceMessage.cc
  11943. (receivedAction): A peer's snubbed state is cleard if it sends
  11944. the requested 16k block in 60 seconds.
  11945. * src/Peer.h
  11946. (snubbing): New variable.
  11947. * src/Peer.cc
  11948. (resetStatus): Added snubbed = false.
  11949. To fix the bug that causes have message is not sent:
  11950. * src/PeerInteractionCommand.cc
  11951. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11952. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11953. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11954. * src/TorrentMan.h
  11955. (HaveEntry): New class.
  11956. (advertisePiece): Rewritten.
  11957. (getAdvertisedPieceIndexes): Rewritten.
  11958. (Haves): Changed the type.
  11959. (getAdvertisedPieceIndexes): Added an argument.
  11960. Others:
  11961. * src/TorrentMan.h
  11962. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11963. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11964. * src/TorrentMan.cc
  11965. (getPeer): Don't check the number of connections here.
  11966. (setupInternal1): Changed peerId.
  11967. * src/PeerInteractionCommand.h
  11968. (KEEP_ALIVE_INTERVAL): New definition.
  11969. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11970. * src/main.cc
  11971. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11972. * src/DownloadEngine.h: Removed unnecessary header includes.
  11973. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11974. To fix the bug that causes segfaults if a tracker returns a zero-length
  11975. list as "peers":
  11976. * src/TrackerUpdateCommand.cc
  11977. (execute): Added a check to see wether the type of peers is Data*.
  11978. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11979. * Release 0.5.0
  11980. To fix compile issue with gcc3:
  11981. * src/CancelMessage.h
  11982. (ID): Renamed as ID_t
  11983. (ID_t): New enum.
  11984. * src/RejectMessage.h
  11985. (ID): Renamed as ID_t
  11986. (ID_t): New enum.
  11987. * src/SuggestPieceMessage.h
  11988. (ID): Renamed as ID_t
  11989. (ID_t): New enum.
  11990. * src/AllowedFastMessage.h
  11991. (ID): Renamed as ID_t
  11992. (ID_t): New enum.
  11993. * src/PortMessage.h
  11994. (ID): Renamed as ID_t
  11995. (ID_t): New enum.
  11996. * src/HaveNoneMessage.h
  11997. (ID): Renamed as ID_t
  11998. (ID_t): New enum.
  11999. * src/KeepAliveMessage.h
  12000. (ID): Renamed as ID_t
  12001. (ID_t): New enum.
  12002. * src/HaveAllMessage.h
  12003. (ID): Renamed as ID_t
  12004. (ID_t): New enum.
  12005. * src/UnchokeMessage.h
  12006. (ID): Renamed as ID_t
  12007. (ID_t): New enum.
  12008. * src/BitfieldMessage.h
  12009. (ID): Renamed as ID_t
  12010. (ID_t): New enum.
  12011. * src/PieceMessage.h
  12012. (ID): Renamed as ID_t
  12013. (ID_t): New enum.
  12014. * src/RequestMessage.h
  12015. (ID): Renamed as ID_t
  12016. (ID_t): New enum.
  12017. * src/NotInterestedMessage.h
  12018. (ID): Renamed as ID_t
  12019. (ID_t): New enum.
  12020. * src/ChokeMessage.h
  12021. (ID): Renamed as ID_t
  12022. (ID_t): New enum.
  12023. * src/InterestedMessage.h
  12024. (ID): Renamed as ID_t
  12025. (ID_t): New enum.
  12026. * src/HaveMessage.h
  12027. (ID): Renamed as ID_t
  12028. (ID_t): New enum.
  12029. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12030. * src/PeerAbstractCommand.h
  12031. (beforeSocketCheck): Removed.
  12032. * src/PeerAbstractCommand.cc
  12033. Modified in order to call executeInternal() even if socket check
  12034. and upload limit check fail.
  12035. * src/PeerInteractionCommand.h
  12036. (keepAlive): Removed.
  12037. (sendKeepAlive): New function.
  12038. (checkHave): New function.
  12039. (beforeSocketCheck): Removed.
  12040. * src/PeerInteractionCommand.cc
  12041. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12042. calls to checkHave() and sendKeepAlive().
  12043. (keepAlive): Renamed to sendKeepAlive().
  12044. (sendKeepAlive): New function.
  12045. (beforeSocketCheck): Removed.
  12046. (checkHave): New function.
  12047. * src/BitfieldMan.cc
  12048. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12049. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12050. 0.
  12051. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12052. * src/TorrentMan.h
  12053. (UsedPieces): Removed.
  12054. (Pieces): New type definition.
  12055. * src/Piece.h: Updated doc.
  12056. * src/Peer.h
  12057. (totalLength): Removed.
  12058. * src/Peer.cc
  12059. (updateLatency): Fixed the latency calculation.
  12060. * src/TorrentMan.cc
  12061. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12062. than or equal to MAX_PEER_LIST_SIZE.
  12063. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12064. then return false.
  12065. (deleteOldErrorPeers): Rewritten.
  12066. (deleteUsedPiece): Fixed the miss use of STL remove.
  12067. * src/PeerInteraction.h
  12068. (Pieces): Removed.
  12069. (deleteTimeoutRequestSlot): Removed.
  12070. (deleteCompletedRequestSlot): Removed.
  12071. (checkRequestSlot): New function.
  12072. * src/PeerInteraction.cc
  12073. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12074. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12075. (checkRequestSlot): New function.
  12076. * src/DownloadEngine.cc
  12077. (run): Clear activeSockets before calling waitData().
  12078. (waitData): Removed a call to activeSockets.clear().
  12079. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12080. To attempt to handle EINTR:
  12081. * src/SocketCore.cc
  12082. (isReadable): Added EINTR handling.
  12083. (isWritable): Added EINTR handling.
  12084. To improve the performance:
  12085. * src/AbstractCommand.cc
  12086. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12087. * src/PeerInteractionCommand.h
  12088. (receiveMessage): Renamed as receiveMessages().
  12089. (receiveMessages): New function.
  12090. * src/PeerInteractionCommand.cc
  12091. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12092. () function. detectMessageFlooding() is moved here.
  12093. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12094. (). The flooding detection for have message is comment out.
  12095. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12096. Util::difftv().
  12097. (receiveMessage): Renamed as receiveMessages().
  12098. (receiveMessages): New function.
  12099. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12100. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12101. * src/SleepCommand.cc
  12102. (execute): Use Util::difftvsec() instead of Util::difftv().
  12103. * src/BitfieldMan.h
  12104. (getNthBitIndex): New function.
  12105. (hasMissingPiece): New function.
  12106. (getAllMissingIndexes): New function.
  12107. * src/BitfieldMan.cc
  12108. (countSetBit): Rewritten.
  12109. (getNthBitIndex): New function.
  12110. (getMissingIndexRandomly): Rewritten.
  12111. (hasMissingPiece): New function.
  12112. (getAllMissingIndexes): New function.
  12113. * src/TorrentMan.cc
  12114. (hasMissingPiece): New function.
  12115. (deleteUsedPiece): Rewritten using STL.
  12116. * src/PeerInteraction.cc
  12117. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12118. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12119. (addRequests): Updated the number of pending requests.
  12120. * src/PeerAbstractCommand.cc
  12121. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12122. (execute): Returns true if TorrentMan::isHalt() is true.
  12123. Corrected the condition of upload limit checking.
  12124. * src/Util.h
  12125. (countBit): New function.
  12126. * src/Util.cc
  12127. (nbits): New variable.
  12128. (countBit): New function.
  12129. * src/DownloadEngine.h
  12130. (SockCmdMap): New type definition.
  12131. (waitData): Added an argument.
  12132. (addSocket): Added an argument.
  12133. (addSocketForReadCheck): Added an argument.
  12134. (addSocketForWriteCheck): Added an argument.
  12135. * src/DownloadEngine.cc
  12136. (run): Executes only commands whose sockets are ready to read or write.
  12137. All commands are executed in every 1 second.
  12138. (waitData): Calls select() again if it returned
  12139. EINTR.
  12140. (addSocket): Saves socket and command object pair to the map.
  12141. (deleteSocket): Deletes socket and command object pair from the map.
  12142. (addSocketForReadCheck): Added an argument.
  12143. (addSocketForWriteCheck): Added an argument.
  12144. * src/DownloadCommand.cc
  12145. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12146. To send "event=stopped" to the tracker when the application finishes:
  12147. * src/PeerChokeCommand.h
  12148. (checkPoint): New variable.
  12149. * src/PeerChokeCommand.cc
  12150. (PeerChokeCommand): Added the initialization of checkPoint.
  12151. (execute): The interval check is now done by checkPoint, not
  12152. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12153. * src/TorrentMan.h
  12154. (halt): New function.
  12155. (hasMissingPiece): New function.
  12156. (isHalt): New function.
  12157. (setHalt): New function.
  12158. * src/TorrentMan.cc
  12159. (TorrentMan): Added the initialization of halt.
  12160. * src/TorrentAutoSaveCommand.h
  12161. (checkPoint): New variable.
  12162. * src/PeerListenCommand.cc
  12163. (execute): Returns true if TorrentMan::isHalt() is true.
  12164. * src/main.cc
  12165. (setSignalHander): Added flags argument.
  12166. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12167. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12168. Removed printDownloadAbortMessage() after torrent downloading loop.
  12169. * src/TorrentAutoSaveCommand.cc
  12170. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12171. (execute): Returns true if TorrentMan::isHalt() is true.
  12172. The interval check is now done by checkPoint, not SleepCommand.
  12173. * src/TrackerWatcherCommand.cc
  12174. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12175. event=stopped.
  12176. * src/TrackerUpdateCommand.cc
  12177. (prepareForRetry): Do not use SleepCommand here.
  12178. (execute): Returns true if TorrentMan::isHalt() is true.
  12179. Others:
  12180. * src/TorrentMan.cc
  12181. (getMissingPieceIndex): Updated log message.
  12182. * src/PeerInteraction.cc
  12183. (createPeerMessag): Updated log message.
  12184. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12185. To add the ability to download several pieces in mix in a command and
  12186. increase the number of request slots according to request-cancel
  12187. latency:
  12188. * src/PeerInteractionCommand.cc
  12189. (executeInternal): The number of messages to be received at a time
  12190. is increased from 10 to 50.
  12191. * src/LogFactory
  12192. (getInstance): Added NullLogger.
  12193. * src/NullLogger.h: New class.
  12194. * src/BitfieldMan.h
  12195. (getMissingIndex): New function.
  12196. * src/BitfieldMan.cc
  12197. (getMissingIndex): New function.
  12198. * src/TorrentMan.h
  12199. (checkOutPiece): New function.
  12200. (getMissingPieceIndex): New function.
  12201. (getMissingFastPieceIndex): New function.
  12202. (getMissingFastPiece): New function.
  12203. * src/TorrentMan.cc
  12204. (updatePiece): Rewritten using STL.
  12205. (syncPiece): Rewritten using STL.
  12206. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12207. checkOutPiece().
  12208. (getMissingPieceIndex): New function.
  12209. (getMissingFastPieceIndex): New function.
  12210. (getMissingFastPiece): New function.
  12211. (checkOutPiece): New function.
  12212. * src/PeerInteraction.h
  12213. (Pieces): New type definition.
  12214. (piece): Removed.
  12215. (pieces): New variable.
  12216. (getNewPieceAndSendInterest): Added the "piece" argument.
  12217. (abortPiece): Added the "piece" argument.
  12218. (abortAllPieces): New function.
  12219. (isInRequestSlot): New function.
  12220. (hasDownloadPiece): Added the "index" argument.
  12221. (setDownloadPiece): Removed.
  12222. (getDownloadPiece): Added the "index" argument.
  12223. (updatePiece): New function.
  12224. (createRequestMessage): Added the "index" argument.
  12225. * src/PeerInteraction.cc
  12226. (onChoked): Rewritten.
  12227. (abortPiece): Rewirtten.
  12228. (abortAllPieces): New function.
  12229. (deleteTimeoutRequestSlot): Rewritten.
  12230. Clarified code a little bit.
  12231. (deleteCompletedRequestSlot): Rewritten.
  12232. (isInRequestSlot): New function.
  12233. (syncPiece): Rewritten.
  12234. (updatePiece): New function.
  12235. (getNewPieceAndSendInterest): Rewritten.
  12236. (addRequests): Rewritten.
  12237. (getDownloadPiece): Rewritten.
  12238. (hasDownloadPiece): Rewritten.
  12239. (createRequestMessage): Added the "index" argument.
  12240. * src/common.h
  12241. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12242. (DIV_FLOOR): New definition.
  12243. * src/PieceMessage.cc
  12244. (receivedAction): Update request-piece latency here.
  12245. * src/RequestSlot.h
  12246. (getLatencyInMillis): New function.
  12247. * src/RequestSlot.cc
  12248. (isTimeout): Rewritten using getLatencyInMillis.
  12249. (getLatencyInMillis): New function.
  12250. * src/Piece.h
  12251. (operator==): New function.
  12252. (getMissingBlockIndex): New function.
  12253. * src/Piece.cc
  12254. (operator==): New function.
  12255. (getMissingBlockIndex): New function.
  12256. * src/Peer.h
  12257. (DEFAULT_LATENCY): New definition.
  12258. (latency): New variable.
  12259. (updateLatency): New function.
  12260. (getLatency): New function.
  12261. * src/Peer.cc
  12262. (resetStatus): Reset latecy.
  12263. (updateLatency): New function.
  12264. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12265. * src/SocketCore.cc
  12266. (isReadable): Added secure to the condition.
  12267. * src/HttpConnection.cc
  12268. (receiveResponse): Fixed a bug that causes no response header
  12269. exception.
  12270. * src/Peer.h
  12271. (getFastSet): Fixed the return value type.
  12272. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12273. To remove a wait from download loop:
  12274. * src/DownloadEngine.cc
  12275. (run): Comment out shortSleep.
  12276. To rewrite the message handling:
  12277. * src/SimplePeerMessage.h: New class.
  12278. * src/SimplePeerMessage.cc: New class.
  12279. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12280. (msg): New variable.
  12281. (create): New function.
  12282. (send): Removed.
  12283. (getMessage): New function.
  12284. (getMessageLength): New function.
  12285. * src/CancelMessage.cc
  12286. (create): New function.
  12287. (receivedAction): Replaced deleteRequestMessageInQueue with
  12288. rejectPieceMessageInQueue.
  12289. (send): Removed.
  12290. (getMessage): New function.
  12291. (getMessageLength): New function.
  12292. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12293. (msg): New variable.
  12294. (msgLength): New variable.
  12295. (~BitfieldMessage): Deleted msg.
  12296. (send): Removed.
  12297. (getMessage): New function.
  12298. (getMessageLength): New function.
  12299. * src/BitfieldMessage.cc
  12300. (create): New function.
  12301. (send): Removed.
  12302. (getMessage): New function.
  12303. (getMessageLength): New function.
  12304. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12305. (msg): New variable.
  12306. (sendPredicate): New function.
  12307. (onSendComplete): New function.
  12308. (send): Removed.
  12309. (getMessage): New function.
  12310. (getMessageLength): New function.
  12311. (create): New function.
  12312. * src/ChokeMessage.cc
  12313. (create): New function.
  12314. (send): Removed.
  12315. (sendPredicate): New function.
  12316. (getMessage): New function.
  12317. (getMessageLength): New function.
  12318. (onSendComplete): New function.
  12319. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12320. (msg): New variable.
  12321. (send): Removed.
  12322. (getMessage): New function.
  12323. (getMessageLength): New function.
  12324. * src/KeepAliveMessage.cc
  12325. (send): Removed.
  12326. (getMessage): New function.
  12327. (getMessageLength): New function.
  12328. * src/PortMessage.h
  12329. (create): New function.
  12330. (receivedAction): Updated log message.
  12331. * src/PortMessage.cc: New file.
  12332. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12333. (msg): New variable.
  12334. (sendPredicate): New function.
  12335. (onSendComplete): New function.
  12336. (create): New function.
  12337. (send): Removed.
  12338. (getMessage): New function.
  12339. (getMessageLength): New function.
  12340. * src/UnchokeMessage.cc
  12341. (create): New function.
  12342. (send): Removed.
  12343. (sendPredicate): New function.
  12344. (getMessage): New function.
  12345. (getMessageLength): New function.
  12346. (onSendComplete): New function.
  12347. * src/PieceMessage.h
  12348. (leftPieceDataLength): Removed.
  12349. (leftDataLength): New variable.
  12350. (headerSend): New variable.
  12351. (pendingCount): New variable.
  12352. (msgHeader): New variable.
  12353. (sendPieceData): New function.
  12354. (incrementPendingCount): New function.
  12355. (isPendingCountMax): New function.
  12356. (create): New function.
  12357. (getMessageHeader): New function.
  12358. (getMessageHeaderLength): New function.
  12359. * src/PieceMessage.cc
  12360. (create): New function.
  12361. (getMessageHeader): New function.
  12362. (getMessageHeaderLength): New function.
  12363. (send): Rewritten.
  12364. (sendPieceData): New function.
  12365. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12366. (msg): New variable.
  12367. (create): New function.
  12368. (getMessage): New function.
  12369. (getMessageLength): New function.
  12370. * src/HaveMessage.cc
  12371. (create): New function.
  12372. (send): Removed.
  12373. (sendPieceData): New function.
  12374. (getMessage): New function.
  12375. (getMessageLength): New function.
  12376. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12377. (msg): New variable.
  12378. (create): New function.
  12379. (send): Removed.
  12380. (getMessage): New function.
  12381. (getMessageLength): New function.
  12382. * src/RequestMessage.cc
  12383. (create): New function.
  12384. (receivedAction): Added the handling of fast extension.
  12385. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12386. (send): Removed.
  12387. (getMessage): New function.
  12388. (getMessageLength): New function.
  12389. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12390. (msg): New variable.
  12391. (sendPredicate): New function.
  12392. (onSendComplete): New function.
  12393. (create): New function.
  12394. (getMessage): New function.
  12395. (getMessageLength): New function.
  12396. * src/InterestedMessage.cc
  12397. (create): New function.
  12398. (send): Removed.
  12399. (sendPieceData): New function.
  12400. (getMessage): New function.
  12401. (getMessageLength): New function.
  12402. (onSendComplete): New function.
  12403. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12404. (msg): New variable.
  12405. (sendPieceData): New function.
  12406. (onSendComplete): New function.
  12407. (create): New function.
  12408. (send): Removed.
  12409. (getMessage): New function.
  12410. (getMessageLength): New function.
  12411. * src/NotInterestedMessage.cc
  12412. (create): New function.
  12413. (send): Removed.
  12414. (sendPredicate): New function.
  12415. (getMessage): New function.
  12416. (getMessageLength): New function.
  12417. (onSendComplete): New function.
  12418. * src/AllowedFastMessage.h: New class.
  12419. * src/AllowedFastMessage.cc: New class.
  12420. * src/RejectMessage.h: New class.
  12421. * src/RejectMessage.cc: New class.
  12422. * src/SuggestPieceMessage.h: New class.
  12423. * src/SuggestPieceMessage.cc: New class.
  12424. * src/HaveAllMessage.h: New class.
  12425. * src/HaveAllMessage.cc: New class.
  12426. * src/HaveNoneMessage.h: New class.
  12427. * src/HaveNoneMessage.cc: New class.
  12428. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12429. (msg): New variable.
  12430. (reserved): New variable.
  12431. (create): New function.
  12432. (getId): New function.
  12433. (receivedAction): New function.
  12434. (getMessage): New function.
  12435. (getMessageLength): New function.
  12436. (isFastExtensionSupported): New function.
  12437. * src/HandshakeMessage.cc
  12438. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12439. (create): New function.
  12440. (getMessage): New function.
  12441. (getMessageLength): New function.
  12442. (toString): Added the output of reserved field.
  12443. (check): Added const qualifier.
  12444. (isFastExtensionSupported): New function.
  12445. * src/PeerMessageUtil.h
  12446. (createChokeMessage): Removed.
  12447. (createUnchokeMessage): Removed.
  12448. (createInterestedMessage): Removed.
  12449. (createNotInterestedMessage): Removed.
  12450. (createHaveMessage): Removed.
  12451. (createBitfieldMessage): Removed.
  12452. (createRequestMessage): Removed.
  12453. (createCancelMessage): Removed.
  12454. (createPieceMessage): Removed.
  12455. (createPortMessage): Removed.
  12456. (createChokeMessage): Removed.
  12457. (createUnchokeMessage): Removed.
  12458. (createInterestedMessage): Removed.
  12459. (createNotInterestedMessage): Removed.
  12460. (createHaveMessage): Removed.
  12461. (createBitfieldMessage): Removed.
  12462. (createRequestMessage): Removed.
  12463. (createCancelMessage): Removed.
  12464. (createPieceMessage): Removed.
  12465. (createKeepAliveMessage): Removed.
  12466. (createHandshakeMessage): Removed.
  12467. (setIntParam): New function.
  12468. (createPeerMessageString): New function.
  12469. * src/PeerMessageUtil.cc
  12470. (createChokeMessage): Removed.
  12471. (createUnchokeMessage): Removed.
  12472. (createInterestedMessage): Removed.
  12473. (createNotInterestedMessage): Removed.
  12474. (createHaveMessage): Removed.
  12475. (createBitfieldMessage): Removed.
  12476. (createRequestMessage): Removed.
  12477. (createCancelMessage): Removed.
  12478. (createPieceMessage): Removed.
  12479. (createPortMessage): Removed.
  12480. (createRequestMessage): Removed.
  12481. (createCancelMessage): Removed.
  12482. (createPieceMessage): Removed.
  12483. (createHaveMessage): Removed.
  12484. (createChokeMessage): Removed.
  12485. (createUnchokeMessage): Removed.
  12486. (createInterestedMessage): Removed.
  12487. (createNotInterestedMessage): Removed.
  12488. (createBitfieldMessage): Removed.
  12489. (createKeepAliveMessage): Removed.
  12490. (createHandshakeMessage): Removed.
  12491. (setIntParam): New function.
  12492. (createPeerMessageString): New function.
  12493. * src/PeerConnection.h
  12494. (peer): Removed.
  12495. (torrentMan): Removed.
  12496. (createNLengthMessage): Removed.
  12497. (setIntParam): Removed.
  12498. (writeOutgoingMessageLog): Removed all overloaded functions.
  12499. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12500. (sendMessage): New function.
  12501. (sendHandshake): Removed.
  12502. (sendKeepAlive): Removed.
  12503. (sendChoke): Removed.
  12504. (sendUnchoke): Removed.
  12505. (sendInterested): Removed.
  12506. (sendNotInterested): Removed.
  12507. (sendHave): Removed.
  12508. (sendBitfield): Removed.
  12509. (sendRequest): Removed.
  12510. (sendPiece): Removed.
  12511. (sendPieceHeader): Removed.
  12512. (sendPieceData): Removed.
  12513. (sendCancel): Removed.
  12514. (getPeer): Removed.
  12515. * src/PeerConnection.cc
  12516. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12517. (sendHandshake): Removed.
  12518. (sendKeepAlive): Removed.
  12519. (createNLengthMessage): Removed.
  12520. (setIntParam): Removed.
  12521. (writeOutgoingMessageLog): Removed all overloaded functions.
  12522. (sendChoke): Removed.
  12523. (sendUnchoke): Removed.
  12524. (sendInterested): Removed.
  12525. (sendNotInterested): Removed.
  12526. (sendHave): Removed.
  12527. (sendBitfield): Removed.
  12528. (sendRequest): Removed.
  12529. (sendPiece): Removed.
  12530. (sendPieceHeader): Removed.
  12531. (sendPieceData): Removed.
  12532. (sendMessage): New function.
  12533. (sendCancel): Removed.
  12534. * src/PeerInteractionCommand.cc
  12535. (PeerInteractionCommand): Call setUploadLimit.
  12536. (executeInternal): Call setUploadLimit.
  12537. Added the handling of "inProgress" state of handshake message.
  12538. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12539. sendNow().
  12540. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12541. sendNow().
  12542. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12543. * src/TorrentMan.h
  12544. (PEER_ID_LENGTH): New definition.
  12545. (hasAllPieces): New function.
  12546. * src/TorrentMan.cc
  12547. (getMissingPiece): Added the handling of fast extension.
  12548. (cancelPiece): Call updatePiece().
  12549. (hasAllPieces): New function.
  12550. * src/PeerInteraction.h
  12551. (fastSet): New variable.
  12552. (getNewPieceAndSendInterest): Changed the return type to void.
  12553. (send): Renamed as sendMessages.
  12554. (deleteAllRequestSlot): Removed.
  12555. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12556. (cancelAllRequest): Removed all overloaded functions.
  12557. (deleteAllRequestSlot): Removed.
  12558. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12559. (rejectPieceMessageInQueue): New function.
  12560. (rejectAllPieceMessageInQueue): New function.
  12561. (onChoked): New function.
  12562. (isSendingMessageInProgress): New function.
  12563. (getCorrespondingRequestSlot): Changed its arguments.
  12564. (isInFastSet): New function.
  12565. (addFastSetIndex): New function.
  12566. (addRequests): New function.
  12567. (sendNow): Removed.
  12568. (trySendNow): Removed.
  12569. (sendBitfield): New function.
  12570. (sendAllowdFast): New function.
  12571. (createHaveAllMessage): New function.
  12572. (createHaveNoneMessage): New function.
  12573. (createRejectMessage): New function.
  12574. (createAllowedFastMessage): New function.
  12575. * src/PeerInteraction.cc
  12576. (send): Renamed as sendMessages.
  12577. (sendMessages): New function.
  12578. (MsgPushBack): New class.
  12579. (isSendingMessageInProgress): New function.
  12580. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12581. (rejectAllPieceMessageInQueue): New function.
  12582. Added the handling of fast extension.
  12583. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12584. (rejectPieceMessageInQueue): New function.
  12585. Added the handling of fast extension.
  12586. (deleteRequestSlot): Replaced for loop with std::find.
  12587. (onChoked): New function.
  12588. (deleteAllRequestSlot): Removed.
  12589. (abortPiece): Rewirtten.
  12590. (deleteTimeoutRequestSlot): Updated log messages.
  12591. (getCorrespondingRequestSlot): Changed its arguments.
  12592. (cancelAllRequest): Removed all overloaded functions.
  12593. (receiveHandshake): Added the check to see whether an incoming peer
  12594. supports fast extension.
  12595. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12596. PeerMessageUtil.
  12597. (createPeerMessage): Use create() of each message class instead of
  12598. PeerMessageUtil.
  12599. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12600. AllowedFastMessage were added.
  12601. (getNewPieceAndSendInterest): Changed its return value type to void.
  12602. Added the handling of fast extension.
  12603. (addRequests): New function.
  12604. (sendNow): Removed.
  12605. (sendHandshake): Rewritten.
  12606. (trySendNow): Removed.
  12607. (sendBitfield): New function.
  12608. (sendAllowdFast): New function.
  12609. (isInFastSet): New function.
  12610. (addFastSetIndex): New function.
  12611. (createRequestMessage): Use RequestMessage::create instead of
  12612. PeerMessageUtil.
  12613. (createCancelMessage): Use CancelMessage::create instead of
  12614. PeerMessageUtil.
  12615. (createPieceMessage): Use PieceMessage::create instead of
  12616. PeerMessageUtil.
  12617. (createHaveMessage): Use HaveMessage::create instead of
  12618. PeerMessageUtil.
  12619. (createChokeMessage): Use ChokeMessage::create instead of
  12620. PeerMessageUtil.
  12621. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12622. PeerMessageUtil.
  12623. (createInterestedMessage): Use InterestedMessage::create instead of
  12624. PeerMessageUtil.
  12625. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12626. of PeerMessageUtil.
  12627. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12628. PeerMessageUtil.
  12629. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12630. PeerMessageUtil.
  12631. (createHaveAllMessage): New function.
  12632. (createHaveNoneMessage): New function.
  12633. (createRejectMessage): New function.
  12634. (createAllowedFastMessage: New function.
  12635. * src/Util.h
  12636. (sha1Sum): New function.
  12637. (computeFastSet): New function.
  12638. * src/Util.cc
  12639. (sha1Sum): New function.
  12640. (computeFastSet): New function.
  12641. * src/Peer.h
  12642. (fastExtensionEnabled): New variable.
  12643. (fastSet): New variable.
  12644. (setAllBitfield): New function.
  12645. (setFastExtensionEnabled): New function.
  12646. (isFastExtensionEnabled): New function.
  12647. (addFastSetIndex): New function.
  12648. (getFastSet): New function.
  12649. (isInFastSet): New function.
  12650. (countFastSet): New function.
  12651. * src/Peer.cc
  12652. (isInFastSet): New function.
  12653. (addFastSetIndex): New function.
  12654. (setAllBitfield): New function.
  12655. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12656. sockets.
  12657. * src/PeerAbstractCommand.cc
  12658. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12659. and uploadLimit.
  12660. (execute): Changed the procedure of checking sockets. The upload speed
  12661. checking were added.
  12662. (setUploadLimit): New function.
  12663. (setUploadLimitCheck): New function.
  12664. * src/PeerAbstractCommand.h
  12665. (setUploadLimit): New function.
  12666. (setUploadLimitCheck): New function.
  12667. (uploadLimit): New variable.
  12668. (uploadLimitCheck): New variable.
  12669. To contact a tracker regularly:
  12670. * src/TrackerWatcherCommand.h (interval): New variable.
  12671. (checkPoint): New variable.
  12672. (TrackerWatcherCommand): Added interval argument.
  12673. * src/TrackerWatcherCommand.cc
  12674. (TrackerWatcherCommand): Initialized checkPoint.
  12675. (execute): Now a tracker is contacted in every specified period.
  12676. If peer list is not needed, send request with numwant=0.
  12677. * src/TrackerUpdateCommand.cc
  12678. (execute): Updated log messages.
  12679. * src/DownloadEngine.cc
  12680. (~DownloadEngine): Removed two asserts.
  12681. (waitData): Uncommented wfds. May be a bug fix.
  12682. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12683. * src/PeerInteractionCommand.h
  12684. (checkInactiveConnection): Removed.
  12685. * src/PeerInteractionCommand.cc
  12686. (executeInternal): Removed following function calls:
  12687. detectMessageFlooding(), checkLongTimePeerChoking and
  12688. checkInactiveConnection().
  12689. (checkInactiveConnection): Removed.
  12690. (detectMessageFlooding): Removed function call to
  12691. checkInactiveConnection().
  12692. * src/PeerMessageUtil.h
  12693. (createChokeMessage): New function. Overload.
  12694. (createUnchokeMessage): New function. Overload.
  12695. (createInterestedMessage): New function. Overload.
  12696. (createNotInterestedMessage): New function. Overload.
  12697. (createHaveMessage): New function. Overload.
  12698. (createBitfieldMessage): New function. Overload.
  12699. (createRequestMessage): New function. Overload.
  12700. (createCancelMessage): New function. Overload.
  12701. (createPieceMessage): New function. Overload.
  12702. (createKeepAliveMessage): New function. Overload.
  12703. * src/PeerMessageUtil.cc
  12704. (createChokeMessage): New function. Overload.
  12705. (createUnchokeMessage): New function. Overload.
  12706. (createInterestedMessage): New function. Overload.
  12707. (createNotInterestedMessage): New function. Overload.
  12708. (createHaveMessage): New function. Overload.
  12709. (createBitfieldMessage): New function. Overload.
  12710. (createRequestMessage): New function. Overload.
  12711. (createCancelMessage): New function. Overload.
  12712. (createPieceMessage): New function. Overload.
  12713. (createKeepAliveMessage): New function. Overload.
  12714. * src/SendMessageQueue.cc
  12715. (createRequestMessage): Use PeerMessageUtil.
  12716. (createCancelMessage): Use PeerMessageUtil.
  12717. (createPieceMessage): Use PeerMessageUtil.
  12718. (createHaveMessage): Use PeerMessageUtil.
  12719. (createChokeMessage): Use PeerMessageUtil.
  12720. (createUnchokeMessage): Use PeerMessageUtil.
  12721. (createInterestedMessage): Use PeerMessageUtil.
  12722. (createNotInterestedMessage): Use PeerMessageUtil.
  12723. (createBitfieldMessage): Use PeerMessageUtil.
  12724. (createKeepAliveMessage): Use PeerMessageUtil.
  12725. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12726. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12727. * src/PeerInteraction.h: New class.
  12728. * src/PeerInteraction.cc: New class.
  12729. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12730. Each peer message has its own class.
  12731. * src/PendingMessages.h: Removed.
  12732. * src/PendingMessages.cc: Removed. The sending process was moved to
  12733. each message class.
  12734. * src/RequestSlotMan.h: Removed.
  12735. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12736. SendMessageQueue.
  12737. * src/RequestMessage.h: New class.
  12738. * src/RequestMessage.cc: New class.
  12739. * src/CancelMessage.h: New class.
  12740. * src/CancelMessage.cc: New class.
  12741. * src/BitfieldMessage.h: New class.
  12742. * src/BitfieldMessage.cc: New class.
  12743. * src/ChokeMessage.h: New class.
  12744. * src/ChokeMessage.cc: New class.
  12745. * src/KeepAliveMessage.h: New class.
  12746. * src/KeepAliveMessage.cc: New class.
  12747. * src/PortMessage.h: New class.
  12748. * src/UnchokeMessage.h: New class.
  12749. * src/UnchokeMessage.cc: New class.
  12750. * src/PieceMessage.h: New class.
  12751. * src/PieceMessage.cc: New class.
  12752. * src/HaveMessage.h: New class.
  12753. * src/HaveMessage.cc: New class.
  12754. * src/BitfieldMessage.h: New class.
  12755. * src/BitfieldMessage.cc: New class.
  12756. * src/NotInterestedMessage.h: New class.
  12757. * src/NotInterestedMessage.cc: New class.
  12758. * src/InterestedMessage.h: New class.
  12759. * src/InterestedMessage.cc: New class.
  12760. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12761. (getSendMessageQueue): New function.
  12762. (setSendMessageQueue): New function.
  12763. * src/HandshakeMessage.cc: New class.
  12764. * src/PeerConnection.h (receiveMessage): Changed return value and
  12765. arguments.
  12766. (receiveHandshake): Changed return value and arguments.
  12767. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12768. here.
  12769. (receiveHandshake): Do not create handshake class here.
  12770. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12771. (piece): Removed.
  12772. (syncPiece): Removed.
  12773. (sendInterest): Removed.
  12774. (sendMessages): Removed.
  12775. (createRequestPendingMessage): Removed.
  12776. (checkPieceHash): Removed.
  12777. (erasePieceOnDisk): Removed.
  12778. (getNewPieceAndSendInterest): Removed.
  12779. (onGotNewPice): Removed.
  12780. (onGotWrongPiece): Removed.
  12781. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12782. Removed peerConnection, piece.
  12783. (~PeerInteractionCommand): Removed peerConnection.
  12784. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12785. (syncPiece): Moved to SendMessageQueue.
  12786. (decideChoking): Removed PendingMessage.
  12787. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12788. The action after receiving peer message was moved to each message
  12789. class.
  12790. (onGotNewPice): Moved to SendMessageQueue.
  12791. (onGotWrongPiece): Moved to SendMessageQueue.
  12792. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12793. (sendInterest): Moved to SendMessageQueue.
  12794. (createRequestPendingMessage): Removed.
  12795. (sendMessages): Moved to SendMessageQueue.
  12796. (onAbort): Use SendMessageQueue::abortPiece()
  12797. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12798. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12799. (checkPieceHash): Moved to SendMessageQueue.
  12800. (erasePieceOnDisk): Moved to SendMessageQueue.
  12801. * src/PeerMessageUtil.h
  12802. (createBitfieldMessage): Removed.
  12803. (createHaveMessage): Changed return value and arguments.
  12804. (createBitfieldMessage): Changed return value and arguments.
  12805. (createRequestCancelMessage): Removed.
  12806. (createPieceMessage): Changed return value and arguments.
  12807. (getShortIntParam): New function.
  12808. (checkIndex): Changed arguments.
  12809. (checkBegin): Changed arguments.
  12810. (checkLength): Changed arguments.
  12811. (checkPieceOffset): Removed.
  12812. (checkRange): New function.
  12813. (checkBitfield): Changed arguments.
  12814. (createPeerMessage): Removed.
  12815. (checkIntegrity): Removed.
  12816. (createHandshakeMessage): Changed arguments.
  12817. (createChokeMessage): New function.
  12818. (createUnchokeMessage): New function.
  12819. (createInterestedMessage): New function.
  12820. (createNotInterestedMessage): New function.
  12821. (createRequestMessage): New function.
  12822. (createCancelMessage): New function.
  12823. (createPortMessage): New function.
  12824. * src/PeerMessageUtil.cc
  12825. (createBitfieldMessage): Removed.
  12826. (createHaveMessage): Changed return value and arguments.
  12827. (createBitfieldMessage): Changed return value and arguments.
  12828. (createRequestCancelMessage): Removed.
  12829. (createPieceMessage): Changed return value and arguments.
  12830. (getShortIntParam): New function.
  12831. (checkIndex): Changed arguments.
  12832. (checkBegin): Changed arguments.
  12833. (checkLength): Changed arguments.
  12834. (checkPieceOffset): Removed.
  12835. (checkRange): New function.
  12836. (checkBitfield): Changed arguments.
  12837. (createPeerMessage): Removed.
  12838. (checkIntegrity): Removed.
  12839. (createHandshakeMessage): Changed arguments.
  12840. (createChokeMessage): New function.
  12841. (createUnchokeMessage): New function.
  12842. (createInterestedMessage): New function.
  12843. (createNotInterestedMessage): New function.
  12844. (createRequestMessage): New function.
  12845. (createCancelMessage): New function.
  12846. (createPortMessage): New function.
  12847. * src/PeerMessage.h
  12848. (id): Removed.
  12849. (index): Removed.
  12850. (begin): Removed.
  12851. (length): Removed.
  12852. (bitfield): Removed.
  12853. (bitfieldLength): Removed.
  12854. (block): Removed.
  12855. (blockLength): Removed.
  12856. (inProgress): New variable.
  12857. (cuid): New variable.
  12858. (peer): New variable.
  12859. (sendMessageQueue): New variable.
  12860. (logger): New variable.
  12861. (setBitfield): Removed.
  12862. (getBitfield): Removed.
  12863. (setBlock): Removed.
  12864. (getBlock): Removed.
  12865. (getBitfieldLength): Removed.
  12866. (getBlockLength): Removed.
  12867. (isInProgress): New function.
  12868. (toString): Made pure virtual.
  12869. (check): New function.
  12870. (send): New function.
  12871. (receivedAction): New function.
  12872. (getId): Made pure virtual.
  12873. (setId): Removed.
  12874. (getIndex): Removed.
  12875. (setIndex): Removed.
  12876. (getBegin): Removed.
  12877. (setBegin): Removed.
  12878. (getLength): Removed.
  12879. (setLength): Removed.
  12880. (getCuid): New function.
  12881. (setCuid): New function.
  12882. (getPeer): New function.
  12883. (setPeer): New function.
  12884. (getSendMessageQueue): New function.
  12885. (setSendMessageQueue): New function.
  12886. (ID): Removed.
  12887. * src/PeerMessage.cc
  12888. (setBitfield): Removed.
  12889. (setBlock): Removed.
  12890. (toString): Removed.
  12891. * src/TorrentMan.h
  12892. (getPieceLength): New function.
  12893. (getPieceLength): New function.
  12894. * src/SendMessageQueue.h
  12895. (REQUEST_TIME_OUT): New definition.
  12896. (RequestSlots): New definition.
  12897. (MessageQueue): New definition.
  12898. (requestSlotMan): Removed.
  12899. (pendingMessages): Removed.
  12900. (requestSlots): New variable.
  12901. (messageQueue): New variable.
  12902. (torrentMan): New variable.
  12903. (peerConnection): New variable.
  12904. (peer): New variable.
  12905. (piece): New variable.
  12906. (getNewPieceAndSendInterest): New function.
  12907. (createPeerMessage): New function.
  12908. (createHandshakeMessage): New function.
  12909. (send): Made private.
  12910. (setPeerMessageCommonProperty): New function.
  12911. (deleteAllRequestSlot): New function.
  12912. (deleteRequestMessageInQueue): New function.
  12913. (cancelAllRequest): Made private.
  12914. (cancelAllRequest): Made private.
  12915. (countRequestSlot): Made private.
  12916. (addPendingMessage): Removed.
  12917. (deletePendingPieceMessage): Removed.
  12918. (deletePendingRequestMessage): Removed.
  12919. (addMessage): New function.
  12920. (deletePieceMessageInQueue): New function.
  12921. (deleteTimeoutRequestSlot): Changed argument.
  12922. (deleteCompletedRequestSlot): Changed argument.
  12923. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12924. (getCorrespondingRequestSlot): New function.
  12925. (countPendingMessage): Removed.
  12926. (countMessageInQueue): New function.
  12927. (getTorrentMan): New function.
  12928. (getPeerConnection): New function.
  12929. (hasDownloadPiece): New function.
  12930. (getDownloadPiece): New function.
  12931. (setDownloadPiece): New function.
  12932. (syncPiece): New function.
  12933. (sendMessages): New function.
  12934. (sendNow): New function.
  12935. (trySendNow): New function.
  12936. (abortPiece): New function.
  12937. (sendHandshake): New function.
  12938. (receiveMessage): New function.
  12939. (receiveHandshake): New function.
  12940. (createRequestMessage): New function.
  12941. (createCancelMessage): New function.
  12942. (createPieceMessage): New function.
  12943. (createHaveMessage): New function.
  12944. (createChokeMessage): New function.
  12945. (createUnchokeMessage): New function.
  12946. (createInterestedMessage): New function.
  12947. (createNotInterestedMessage): New function.
  12948. (createBitfieldMessage): New function.
  12949. (createKeepAliveMessage): New function.
  12950. * src/SendMessageQueue.cc
  12951. (SendMessageQueue): Removed requestSlotMan.
  12952. Instantiated peerConnection here.
  12953. (~SendMessageQueue): Removed requestSlotMan.
  12954. Added deletion of peerConnection and the contents of messageQueue.
  12955. (send): Updated according to the change of messageQueue.
  12956. (addPendingMessage): Renamed to addMessage.
  12957. (addMessage): New function.
  12958. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12959. (deletePieceMessageInQueue): New function.
  12960. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12961. (deleteRequestMessageInQueue): New function.
  12962. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12963. here.
  12964. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12965. (...) was moved here.
  12966. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12967. moved here.
  12968. (deleteCompletedRequestSlot):
  12969. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12970. (getCorrespondingRequestSlot):
  12971. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12972. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12973. (countPendingMessage): Renamed to countMessageInQueue.
  12974. (countMessageInQueue): New function.
  12975. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12976. (receiveHandshake): New function.
  12977. (createHandshakeMessage): New function.
  12978. (receiveMessage): New function.
  12979. (createPeerMessage): New function.
  12980. (syncPiece): New function.
  12981. (getNewPieceAndSendInterest): New function.
  12982. (sendMessages): New function.
  12983. (sendNow): New function.
  12984. (trySendNow): New function.
  12985. (sendHandshake): New function.
  12986. (abortPiece): New function.
  12987. (getDownloadPiece): New function.
  12988. (getPeerMessageCommonProperty): New function.
  12989. (createRequestMessage): New function.
  12990. (createCancelMessage): New function.
  12991. (createPieceMessage): New function.
  12992. (createHaveMessage): New function.
  12993. (createChokeMessage): New function.
  12994. (createUnchokeMessage): New function.
  12995. (createInterestedMessage): New function.
  12996. (createNotInterestedMessage): New function.
  12997. (createBitfieldMessage): New function.
  12998. (createKeepAliveMessage): New function.
  12999. To add simple Content-Disposition support:
  13000. * src/HttpResponseCommand.h (determinFilename): New function.
  13001. * src/HttpResponseCommand.cc (executeInternal):
  13002. Use determinFilename(headers) instead of req->getFile() when comparing
  13003. filename.
  13004. (determinFilename): New function.
  13005. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13006. req->getFile().
  13007. (handleOtherEncoding): Use determinFilename(headers) instead of
  13008. req->getFile().
  13009. * src/Util.h (getContentDispositionFilename): New function.
  13010. * src/Util.cc (getContentDispositionFilename): New function.
  13011. * src/LogFactory.h (release): New function.
  13012. * src/LogFactory.cc (release): New function.
  13013. To fix a bug that causes out-of-bound exception when HTTP status
  13014. line is wrong:
  13015. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13016. size.
  13017. * src/common.h (Deleter): New class.
  13018. * src/SegmentMan.cc
  13019. (~SegmentMan): Added deletion of splitter and diskWriter.
  13020. * src/DownloadEngine.h
  13021. (Commands): Use deque.
  13022. (clearQueue): New function.
  13023. * src/DownloadEngine.cc
  13024. (~DownloadEngine): Added deletion of segmentMan.
  13025. (cleanQueue): New function.
  13026. * src/TorrentDownloadEngine.h
  13027. (TorrentDownloadEngine): The implementation was moved to
  13028. TorrentDownloadEngine.cc.
  13029. (~TorrentDownloadEngine): The implementation was moved to
  13030. TorrentDownloadEngine.cc.
  13031. * src/TorrentDownloadEngine.cc
  13032. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13033. * src/main.cc
  13034. (clearRequest): Removed.
  13035. (handler): Added deletion of e.
  13036. (torrentHandler): Added deletion of te.
  13037. (main): Do not share splitter.
  13038. Use Deleter instead of clearRequest.
  13039. Deletion of classes were updated.
  13040. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13041. * src/main.cc (main): Fixed typo.
  13042. * src/message.h: Fixed typo.
  13043. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13044. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13045. To add --select-file command-line option:
  13046. * src/Util.cc
  13047. (unfoldRange): New function.
  13048. (getNum): New function.
  13049. (unfoldSubRange): New function
  13050. * src/main.cc
  13051. (showUsage): Added help message.
  13052. (main): Added --select-file command-line option. Updated the layout of
  13053. file listing.
  13054. * src/common.h
  13055. (Integers): New definition.
  13056. * src/SocketCore.cc
  13057. (writeData): Removed timeout argument.
  13058. (readData): Removed timeout argument.
  13059. (peekData): Removed timeout argument.
  13060. * src/Socket.cc
  13061. (writeData): Removed timeout argument.
  13062. (readData): Removed timeout argument.
  13063. (peekData): Removed timeout argument.
  13064. * Release 0.4.1
  13065. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13066. To deploy upload rate based choking algorithm:
  13067. * src/PeerInteractionCommand.cc
  13068. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13069. peer currently used.
  13070. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13071. download completes. Simplified.
  13072. (receiveMessage): Updated.
  13073. * src/TorrentMan.h
  13074. (activePeers): New variable.
  13075. (addActivePeer): New function.
  13076. (getActivePeers): New function.
  13077. (deleteActivePeer): New function.
  13078. * src/TorrentMan.cc
  13079. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13080. * src/PeerAbstractCommand.cc
  13081. (onAbort): Use peer->resetStatus().
  13082. * src/main.cc
  13083. (PeerChokeCommand.h): Included.
  13084. (main): Added the instance of ChokingCommand to the command queue.
  13085. * src/Peer.h
  13086. (amChoking): Renamed from amChocking
  13087. (chokingRequired): New variable.
  13088. (optUnchoking): New variable.
  13089. (deltaUpload): New variable.
  13090. (deltaDownload): New variable.
  13091. (addDeltaUpload): New function.
  13092. (resetDeltaUpload): New function.
  13093. (addDeltaDownload): New function.
  13094. (resetDeltaDownload): New function.
  13095. (addPeerUpload): Added a call to addDeltaUpload.
  13096. (addPeerDownload): Added a call to addDeltaDownload.
  13097. * src/Peer.cc
  13098. (shouldBeChoking): Renamed from shouldChoke.
  13099. (resetStatus): New function.
  13100. * src/PeerChokeCommand.h: New class.
  13101. * src/PeerChokeCommand.cc: New class.
  13102. To add lazy upload speed limiter:
  13103. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13104. statistics calculation to TorrentDownloadEngine.
  13105. * src/TorrentConsoleDownloadEngine.cc
  13106. (sendStatistics): Renamed from printStatistics.
  13107. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13108. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13109. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13110. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13111. calculation.
  13112. (sendStatistics): New function as pure virtual function.
  13113. (getUploadSpeed): New function.
  13114. * src/TorrentDownloadEngine.cc
  13115. (initStatistics): New function.
  13116. (calculateSpeed): New function.
  13117. (calculateStatistics): New function.
  13118. * src/SendMessageQueue.h
  13119. (uploadLength): New variable.
  13120. (send): Added an argument.
  13121. (setUploadLimit): New function.
  13122. (getUploadLimit): New function.
  13123. * src/SendMessageQueue.cc
  13124. (send): Added upload speed limiter.
  13125. * src/prefs.h
  13126. (PREF_UPLOAD_LIMIT): New definition.
  13127. * src/PeerInteractionCommand.cc
  13128. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13129. * src/main.cc
  13130. (main): Added --upload-limit option
  13131. For bug fixes:
  13132. * src/main.cc
  13133. (showUsage): Corrected --listen-port help
  13134. Other changes:
  13135. * src/TorrentMan.cc
  13136. (getPeer): Return nullPeer if connection is grather than
  13137. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13138. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13139. To add some useful information to the exception message:
  13140. * src/SocketCore.cc : Updated messages.
  13141. * src/SegmentMan.cc :
  13142. * src/TorrentMan.cc : Updated messages.
  13143. * src/MultiDiskWriter.cc : Updated messages.
  13144. * src/Util.cc : Updated messages.
  13145. * src/AbstractDiskWriter.cc : Updated messages.
  13146. * src/PreAllocationDiskWriter.cc : Updated messages.
  13147. * src/message.cc : Added new messages. Updated some messages.
  13148. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13149. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13150. Updated threshold from 30 to 15.
  13151. * src/AbstractDiskWriter.h (filename): New variable.
  13152. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13153. (createFile): Assigned filename.
  13154. * src/main.cc: Updated the help message for http-auth-scheme.
  13155. * Release 0.4.0
  13156. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13157. To add TrackerUpdateCommand with which replaces
  13158. CompactTrackerResponseProcessor:
  13159. * src/TrackerWatcherCommand.h (req): Removed.
  13160. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13161. if the number of peer connections are less than 30.
  13162. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13163. * src/SegmentMan.h (diskWriter): New function.
  13164. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13165. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13166. (main): Use TrackerUpdateCommand.
  13167. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13168. (req): New variable.
  13169. (setTrackerResponseProcessor): Removed.
  13170. (getTrackerResponseProcessor): Removed.
  13171. (processTrackerResponse): Removed.
  13172. * src/DownloadEngine.h (diskWriter): Removed.
  13173. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13174. to torrentMan->processTrackerResponse().
  13175. To add Util::expandBuffer:
  13176. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13177. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13178. * src/Util.h (expandBuffer): New function.
  13179. To fix the bug that causes segmentation fault when "-l ." is specified
  13180. in command-line option:
  13181. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13182. (openFile): New function.
  13183. (closeFile): New function.
  13184. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13185. (~SimpleLogger): Call closeFile();
  13186. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13187. * src/main.cc (main): Added a check to see logger is configured
  13188. properly.
  13189. To enable HTTP authentication without specifying "--http-auth-scheme"
  13190. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13191. * src/HttpConnection.cc (createRequest): Send Authorization header
  13192. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13193. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13194. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13195. * src/Peer.cc (shouldChoke): Updated algorithm.
  13196. * src/message.h (EX_AUTH_FAILED): New definition.
  13197. (EX_FILE_OPEN): New definition.
  13198. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13199. if status == 401.
  13200. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13201. if req->isTorrent == true.
  13202. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13203. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13204. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13205. (createFile): Updated message.
  13206. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13207. To add a readout of estimated remaining time to normal HTTP/FTP
  13208. downloads:
  13209. * src/ConsoleDownloadEngine.h (startup): New variable.
  13210. (startupLength): New variable.
  13211. (isStartupLengthSet): New variable.
  13212. (avgSpeed): New variable.
  13213. (eta): New variable.
  13214. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13215. estimated remaining time.
  13216. (initStatistics): Initialized newly added variables.
  13217. (calculateStatistics): Calculate average speed and estimated remaining
  13218. time.
  13219. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13220. * src/TrackerDownloadCommand.h: Removed.
  13221. * src/TrackerDownloadCommand.cc: Removed.
  13222. * src/TrackerInitCommand.h: Removed.
  13223. * src/TrackerInitCommand.cc: Removed.
  13224. * src/TrackerUpdateCommand.h: Removed.
  13225. * src/TrackerUpdateCommand.cc: Removed.
  13226. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13227. url written in TrackerInitCommand was moved here. Do not create
  13228. tracker request command if torrentMan->trackers != 0.
  13229. * src/CompactTrackerResponseProcessor.h: New class.
  13230. * src/CompactTrackerResponseProcessor.cc: New class.
  13231. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13232. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13233. Decoupled TorrentDownloadEngine from this.
  13234. * src/SegmentMan.h (init): New function.
  13235. * src/SegmentMan.cc (init): New function.
  13236. * src/TorrentMan.h (responseProcessor): New variable.
  13237. (trackers): New variable.
  13238. (setTrackerResponseProcessor): New function.
  13239. (getTrackerResponseProcessor): New function.
  13240. (processTrackerResponse): New function.
  13241. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13242. (processTrackerResponse): New function.
  13243. * src/main.cc (main): Use ByteArrayDiskWriter and
  13244. CompactTrackerResponseProcessor.
  13245. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13246. processTrackerResponse().
  13247. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13248. readout.
  13249. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13250. which indicates download has completed.
  13251. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13252. (closeFile): fd >= 0, not fd > 0
  13253. * src/main.cc (main): Added short cut for show-files.
  13254. Added short cut for torrent-file.
  13255. Added new command-line option listen-port.
  13256. Updated i18n messages.
  13257. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13258. To add LogFactory which creates singleton logger:
  13259. * src/LogFactory.h: New class.
  13260. * src/LogFactory.cc: New class.
  13261. * src/Command.h (logger): New variable.
  13262. (Constructor): Use LogFactory.
  13263. * src/AbstractCommand.cc: Use Command::logger
  13264. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13265. Use LogFactory.
  13266. * src/SegmentSplitter.h : Made logger protected.
  13267. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13268. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13269. * src/DownloadEngine.h : Made logger protected.
  13270. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13271. * src/PeerInteractionCommand.cc : Use Command::logger.
  13272. * src/HttpResponseCommand.cc : Use Command::logger.
  13273. * src/SegmentMan.h : Made logger private.
  13274. * src/TorrentMan.h : Made logger private.
  13275. * src/TorrentMan.cc : Use LogFactory.
  13276. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13277. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13278. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13279. Use LogFactory.
  13280. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13281. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13282. Use LogFactory.
  13283. * src/DownloadCommand.cc : Use Command::logger.
  13284. * src/PeerAbstractCommand.cc : Use Command::logger.
  13285. * src/PeerListenCommand.cc : Use Command::logger.
  13286. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13287. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13288. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13289. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13290. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13291. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13292. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13293. Use LogFactory.
  13294. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13295. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13296. Use LogFactory.
  13297. * src/main.cc (main): Use LogFactory.
  13298. * src/DiskAdaptor.h (logger): New variable.
  13299. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13300. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13301. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13302. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13303. parameter to a tracker request.
  13304. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13305. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13306. * src/main.cc (setSignalHander): New function.
  13307. (main): Added a handler for SIGTERM.
  13308. (handler): Updated message.
  13309. (torrentHandler): Updated message.
  13310. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13311. * src/TorrentConsoleDownloadEngine.cc
  13312. (onPartialDownloadingCompletes): Renamed as
  13313. onSelectiveDownloadingCompletes.
  13314. (onSelectiveDownloadingCompletes): Updated message.
  13315. To add DiskAdaptor which abstract DiskWriter family:
  13316. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13317. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13318. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13319. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13320. MultiDiskAdaptor.h.
  13321. (readFileEntry): Changed its arguments.
  13322. (setup): setupDiskWriter is merged into this function.
  13323. (setupDiskWriter): Removed.
  13324. (setFileFilter): New function.
  13325. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13326. made in readFileEntry.
  13327. (getFilePath): Removed.
  13328. (getTempFilePath): Removed.
  13329. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13330. (fixFilename): Removed.
  13331. (copySingleFile): Removed.
  13332. (splitMultiFile): Removed.
  13333. (deleteTempFile): Removed.
  13334. (setFileEntriesToDownload): Removed.
  13335. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13336. (isSelectiveDownloadingMode): New function.
  13337. (setAllMultiFileRequestedState): Removed.
  13338. (finishPartialDownloadingMode): Renamed as
  13339. finishSelectiveDownloadingMode.
  13340. (finishSelectiveDownloadingMode): New function.
  13341. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13342. (getSelectedTotalLength): New function.
  13343. (onDownloadComplete): Use diskAdaptor.
  13344. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13345. (Range): Removed.
  13346. (setMultiFileEntries): Renamed as setFileEntries.
  13347. (setFileEntries): New function.
  13348. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13349. (pieceLength): New variable.
  13350. * src/main.cc (printDownloadCompeleteMessage): New function.
  13351. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13352. (main): Renamed torrent-show-files to show-files.
  13353. Rewritten file contents listing.
  13354. * src/TorrentMan.h (FileEntry): Removed.
  13355. (multiFileTopDir): Removed.
  13356. (multiFileEntries): Removed.
  13357. (diskWriter): Removed.
  13358. (diskAdaptor): New variable.
  13359. * src/DefaultDiskWriter.h (totalLength): New variable.
  13360. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13361. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13362. diskWriter.
  13363. * src/TorrentConsoleDownloadEngine.h
  13364. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13365. (partialTotalLength): Renamed as selectedTotalLength.
  13366. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13367. openExistingFile, otherwise call initAndOpenFile.
  13368. (closeFile): fd > 0, not fd != 0.
  13369. * src/DirectDiskAdaptor.h: New class.
  13370. * src/DirectDiskAdaptor.cc: New class.
  13371. * src/MultiDiskAdaptor.h: New class.
  13372. * src/MultiDiskAdaptor.cc: New class.
  13373. * src/CopyDiskAdaptor.h: New class.
  13374. * src/CopyDiskAdaptor.cc: New class.
  13375. * src/DiskAdaptor.h: New class.
  13376. * src/DiskAdaptor.cc: New class.
  13377. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13378. (PREF_SHOW_FILES): New definition.
  13379. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13380. To add the ability to download multi torrent into respective files
  13381. directly:
  13382. * src/DiskWriter.h (openFile): New function.
  13383. (seek): Removed.
  13384. * src/MultiDiskWriter.h: New class.
  13385. * src/MultiDiskWriter.cc: New class.
  13386. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13387. protected.
  13388. (openFile): New function.
  13389. * src/AbstractDiskWriter.cc (openFile): New function.
  13390. * src/prefs.h (V_FALSE): New definition.
  13391. (PREF_DIRECT_FILE_MAPPING): New definition.
  13392. * src/TorrentMan.h (setupDiskWriter): New function.
  13393. (setAllMultiFileRequestedState): New function.
  13394. (onDownloadComplete): New function.
  13395. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13396. (setupDiskWriter): New function.
  13397. (getFilePath): Updated.
  13398. (getTempFilePath): Updated.
  13399. (getSegmentFilePath): Updated.
  13400. (fixFilename): Updated.
  13401. (deleteTempFile): Updated.
  13402. (setAllMultiFileRequestedState): New function.
  13403. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13404. (finishPartialDownloadingMode): Reset requested flags.
  13405. (onDownloadComplete): New function.
  13406. * src/main.cc: Added --direct-file-mapping option.
  13407. Use TorrentMan::setupDiskWriter().
  13408. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13409. onDownloadComplete().
  13410. To fix ETA bug:
  13411. * src/Util.h (difftvsec): New function.
  13412. * src/Util.cc (difftvsec): New function.
  13413. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13414. type of "elapsed" instead of long long int.
  13415. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13416. The updates of statistics takes place every 1 seconds.
  13417. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13418. (calculateSpeed): Changed its argument signature.
  13419. * src/PeerMessage.cc (toString): Fixed message.
  13420. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13421. To print ETA:
  13422. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13423. completion handling when dealing with
  13424. TorrentMan::isPartialDownloadingMode() == true.
  13425. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13426. New function.
  13427. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13428. (sessionDownloadLength): New variable.
  13429. (avgSpeed): New variable.
  13430. (eta): New variable.
  13431. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13432. new variables: eta, avgSpeed, startup.
  13433. (calculateSpeed): Calculate average speed and ETA.
  13434. (printStatistics): Added ETA.
  13435. * src/Util.h (secfmt): New function.
  13436. * src/Util.cc (secfmt): New function.
  13437. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13438. To detect "keep alive" flooding:
  13439. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13440. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13441. variable: keepAliveCount.
  13442. (detectMessageFlooding): Added "keep alive" flooding detection.
  13443. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13444. received.
  13445. To add the ability to download only specified files in multi-file
  13446. torrent:
  13447. * src/BitfieldMan.h (filterBitfield): New variable.
  13448. (filterEnabled): New variable.
  13449. (setFilterBit): New function.
  13450. (enableFilter): New function.
  13451. (disableFilter): New function.
  13452. (isFilterEnabled): New function.
  13453. (getFilteredTotalLength): New function.
  13454. (getCompletedLength): New function.
  13455. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13456. filterBitfield, filterEnabled.
  13457. (CopyConstructor): Added filterBitfield and filterEnabled.
  13458. (operator==): Added filterBitfield and filterEnabled.
  13459. (Destructor): Added filterBitfield.
  13460. (getMissingIndex): Use filterBitfield.
  13461. (getMissingUnusedIndex): Use filterBitfield.
  13462. (getFirstMissingUnusedIndex): Use filterBitfield.
  13463. (getFirstMissingUnusedIndex): Use filterBitfield.
  13464. (getAllMissingIndexes): Use filterBitfield.
  13465. (countMissingBlock): Use filterBitfield.
  13466. (countBlock): Use filterBitfield.
  13467. (setBitInternal): Added new argument on.
  13468. (setUseBit): Use setBitInternal.
  13469. (unsetUseBit): Use setBitInternal.
  13470. (setBit): Use setBitInternal.
  13471. (unsetBit): Use setBitInternal.
  13472. (isAllBitSet): Use filterBitfield.
  13473. (setFilterBit): New function.
  13474. (addFilter): New function.
  13475. (enableFilter): New function.
  13476. (disableFilter): New function.
  13477. (clearFilter): New function.
  13478. (isFilterEnabled): New function.
  13479. (getFilteredTotalLength): New function.
  13480. (getCompletedLength): New function.
  13481. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13482. Initalized newly added variables.
  13483. [FileEntry](offset): New variable.
  13484. [FileEntry](extracted): New variable.
  13485. [FileEntry](requested): New variable.
  13486. (readFileEntry): New function.
  13487. (option): New variable.
  13488. (splitMultiFile): Removed const qualifier.
  13489. (fixFilename): Removed const qualifier.
  13490. (readFileEntryFromMetaInfoFile): New function.
  13491. (finishPartialDownloadingMode): New function.
  13492. (isPartialDownloadingMode): New function.
  13493. (setFileEntriesToDownload): New function.
  13494. (getCompletedLength): New function.
  13495. (getPartialTotalLength): New function.
  13496. * src/TorrentMan.cc (readFileEntry): New function.
  13497. (setup): Use readFileEntry. If no-preallocation option is specified,
  13498. use DefaultDiskWriter.
  13499. (readFileEntryFromMetaInfoFile): New function.
  13500. (fixFilename): Removed const qualifier.
  13501. (splitMultiFile): Removed const qualifier.
  13502. (setFileEntriesToDownload): New function.
  13503. (isPartialDownloadingMode): New function.
  13504. (finishPartialDownloadingMode): New function.
  13505. (getCompletedLength): New function.
  13506. (getPartialTotalLength): New function.
  13507. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13508. New variable.
  13509. (partialTotalLength): New variable.
  13510. (downloadLength): New variable.
  13511. (totalLength): New variable.
  13512. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13513. Added log.
  13514. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13515. partialTotalLength, downloadLength, totalLength.
  13516. (calculate): Calculate downloadLength and totalLength.
  13517. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13518. * src/main.cc (addCommand): Changed argument signature.
  13519. (main): Added new variable: args. Added new option "torrent-show-files"
  13520. "no-preallocation". Usage is not updated yet.
  13521. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13522. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13523. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13524. Attempt to add the ability to listing file entries in a .torrent file.
  13525. This feature is not yet complete.
  13526. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13527. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13528. (getName): New function.
  13529. * src/TorrentMan.h (getMultiFileEntries): New function.
  13530. (getName): New function.
  13531. * src/main.cc (main): Use above 2 funtion.
  13532. * Release 0.3.2
  13533. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13534. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13535. (detectMessageFlooding): Updated threshold value.
  13536. (checkLongTimePeerChoking): Updated timeout value.
  13537. (getNewPieceAndSendInterest): Added debug log.
  13538. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13539. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13540. (getPeer): Updated.
  13541. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13542. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13543. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13544. is localhost.
  13545. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13546. * src/PendingMessage.cc (processMessage): Not to send piece message
  13547. if peer is not interested in the pieces localhost has.
  13548. * src/Peer.cc (shouldChoke): Updated.
  13549. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13550. * src/Util.cc (isPowerOf): New function.
  13551. * src/Util.h (isPowerOf): New function.
  13552. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13553. whether or not it is power of 2.
  13554. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13555. Added new class SendMessageQueue that includes PendingMessages and
  13556. RequestSlotMan.
  13557. * src/SendMessageQueue.h: New class.
  13558. * src/SendMessageQueue.cc: New class.
  13559. * src/PendingMessage.h: Added new member variable blockIndex and its
  13560. accessors.
  13561. (createRequestMessage): Updated.
  13562. * src/PendingMessage.cc (createRequestMessage): Updated.
  13563. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13564. SendMessageQueue.
  13565. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13566. (receiveMessage): Updated with SendMessageQueue.
  13567. (deletePendingPieceMessage): Removed.
  13568. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13569. (sendInterest): Updated with SendMessageQueue.
  13570. (createRequestPendingMessage): Updated with SendMessageQueue.
  13571. (sendMessages): Updated with SendMessageQueue.
  13572. (onAbort): Updated with SendMessageQueue.
  13573. (keepAlive): Updated with SendMessageQueue.
  13574. (beforeSocketCheck): Updated SendMessageQueue.
  13575. * src/PeerInteractionCommand (sendMessages): Shuffle
  13576. missingBLockIndexes before using it.
  13577. Added its own timeout for peer connection.
  13578. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13579. setter.
  13580. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13581. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13582. Added setTimeout() call.
  13583. (executeInternal): Added setTimeout() call.
  13584. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13585. Added timeout.
  13586. (isTimeoutDetected): Updated.
  13587. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13588. option.
  13589. Added *simple* message flooding checker.
  13590. * src/PeerInteractionCommand.cc (executeInternal):
  13591. Added detectMessageFlooding() call.
  13592. (detectMessageFlooding): New function.
  13593. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13594. (beforeSocketCheck): Added detectMessageFlooding() call.
  13595. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13596. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13597. Removed deletePendingPieceMessage(), getRequestSlot(),
  13598. deleteRequestSlot(), deleteAllRequestSlot().
  13599. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13600. Added checkLongTimePeerChoking() call.
  13601. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13602. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13603. if duplicate == false.
  13604. The parameter "uploaded" and "downloaded" in the tracker request are
  13605. the size since the client sent the "started" event to the tracker.
  13606. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13607. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13608. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13609. getSessionDownloadedSize(), getSessionUploadedSize().
  13610. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13611. getSessionUploadedSize() instead of getDownloadedSize(),
  13612. getUploadedSize().
  13613. * src/PendingMessage.cc (processMessage): Do not send request message
  13614. if the peer is choking the client.
  13615. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13616. less than interval.
  13617. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13618. * configure.in: Added gnutls support. Added several CPP macros.
  13619. * m4/openssl.m4: Added.
  13620. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13621. readData(), peekData(). Added gnutls support.
  13622. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13623. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13624. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13625. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13626. Instead, added a check for whether setup method has executed
  13627. successfully.
  13628. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13629. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13630. * src/Makefile.am: Updated.
  13631. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13632. using whether OpenSSL or gcrypt, depending on the result of configure
  13633. script.
  13634. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13635. messageDigest.h.
  13636. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13637. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13638. Fixed memory leak.
  13639. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13640. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13641. Removed instantiation of TrackerInitCommand. Instead,
  13642. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13643. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13644. ENABLE_SSL.
  13645. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13646. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13647. If a piece is already acquired by another command, delete the request
  13648. slots for the piece.
  13649. * src/TrackerUpdateCommand.cc (execute):
  13650. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13651. Added a check whether peer list is null.
  13652. Fixed the bug that causes sending completed event to the tracker
  13653. several times.
  13654. * src/TrackerInitCommand.cc (execute):
  13655. Fixed the bug that causes sending completed event to the tracker
  13656. several times.
  13657. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13658. by using messageDigest.h.
  13659. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13660. * PeerConnection.cc: Replaced log message "keep-alive" with
  13661. "keep alive".
  13662. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13663. localhost long time.
  13664. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13665. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13666. at most 100 failure entry from the list. If with duplicate = false,
  13667. MAX_PEER_LIST is not checked.
  13668. * PeerListenCommand.cc: Fixed the argument order of log message.
  13669. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13670. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13671. Added warn().
  13672. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13673. Implemented warn().
  13674. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13675. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13676. * Request.h: Added AFTER_COMPLETED event.
  13677. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13678. instead of downloaded size and progress(%) after download completes.
  13679. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13680. message to the peer if it is interested in what localhost has
  13681. downloaded.
  13682. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13683. destination instead of just renaming it.
  13684. * TorrentMan.cc: Added deleteTempFile().
  13685. * PeerAbstractCommand.cc: do not stop execution after download
  13686. completes. This makes localhost a seeder.
  13687. * Util.{h,cc}: Added fileCopy().
  13688. * PeerListenCommand.cc: do not stop execution after download completes.
  13689. This makes localhost a seeder.
  13690. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13691. Added TorrentMan::deleteTempFile() to torrentHandler.
  13692. Initialized the variable dir as ".".
  13693. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13694. Deleted renameSingleFile().
  13695. Added copySingleFile(), deleteTempFile().
  13696. * DownloadEngine.h: Added virtual function afterEachIteration().
  13697. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13698. in onEndOfRun() to afterEachIteration().
  13699. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13700. true.
  13701. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13702. In rangedFileCopy(), added try-catch block to properly close file
  13703. descriptors.
  13704. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13705. Added afterEachIteration(), isFilenameFixed().
  13706. * Peer.cc: Changed choking strategy.
  13707. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13708. * TrackerInitCommand.cc: Send completed event only once.
  13709. * DownloadEngine.cc: Added a call to afterEachIteration().
  13710. * TrackerUpdateCommand.cc: Do not stop execution after download
  13711. completes.
  13712. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13713. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13714. received from a tracker.
  13715. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13716. Decreased the number of failure peers to delete to 0(just comment out
  13717. the line).
  13718. * Release 0.3.1
  13719. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13720. * PeerInteractionCommand.cc: added a call to
  13721. TorrentMan::unadvertisePiece in Destructor.
  13722. * PeerInteractionCommand.cc: make have message sent immediately
  13723. if the size of pending message queue is zero.
  13724. * TorrentMan.cc: set the maximum size of peer list to 250.
  13725. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13726. to deque.
  13727. * Util.cc: fixed rangedFileCopy.
  13728. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13729. to Constructor. Also, moved digest cleanup to Destructor.
  13730. * MetaFileUtil.cc: fixed memory leak
  13731. * replaced std::vector with std::deque.
  13732. * AbstractCommand.cc: casted timeout value to long long int.
  13733. * ChunkedEncoding.cc: fixed memory leak.
  13734. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13735. * SleepCommand.cc: casted timeout value to long long int.
  13736. * Data.cc: fixed memory leak.
  13737. * Data.cc: fixed toLLInt().
  13738. * BitfieldMan.cc: fixed memory leak.
  13739. * TorrentMan.cc: initialized storeDir to ".".
  13740. * TorrentMan.cc: fixed memory leak.
  13741. * TorrentMan.cc: corrected file paths of splitted files.
  13742. * PeerAbstractCommand.cc: casted timeout to long long int.
  13743. * main.cc: added delete(req) and delete(te->diskWriter).
  13744. * RequestSlot.cc: casted timeout value to long long int.
  13745. * Request.cc: fixed memory leak.
  13746. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13747. have the piece.
  13748. * Peer.{h,cc}: added hasPiece(int index).
  13749. * main.cc: corrected addCommand.
  13750. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13751. * BitTorrent protocol support added.
  13752. * Release 0.3.0
  13753. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13754. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13755. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13756. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13757. decoding did not work properly.
  13758. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13759. * DownloadEngine.h: included sys/time.h
  13760. * DownloadEngine.cc: remove sys/time.h
  13761. * Makefile.am (SUBDIRS): Add intl.
  13762. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13763. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13764. * main.cc: correct help message for --http-auth-scheme.
  13765. * main.cc: changed e-mail address for bug reports.
  13766. * ja.po: added japanese translation.
  13767. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13768. * SimpleLogger.cc: flush log file instead of stdout.
  13769. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13770. * main.cc: Fixed command-line option: max-tries
  13771. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13772. does not equal to seg.sp.
  13773. * DownloadCommand.cc: If EOF is got from the server and the total size
  13774. of file is not zero, then throw DlRetryEx.
  13775. * main.cc: Set the minium value of min-segment-size to 1024.
  13776. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13777. fails because of a regression since 0.2.0 release.
  13778. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13779. * HttpConnection.cc:
  13780. * common.h: defined the user agent name as macro
  13781. * DownloadEngine.{h, cc}:
  13782. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13783. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13784. * main.cc: Download complete/abort message is now generated by main.
  13785. * Makefile.am (SUBDIRS): Add m4.
  13786. (ACLOCAL_AMFLAGS): New variable.
  13787. (EXTRA_DIST): New variable.
  13788. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13789. * gettext: added gettext functionality
  13790. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13791. * AbstractCommand.cc:
  13792. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13793. unregister its cuid from SegmentMan.
  13794. * DownloadEngine.cc: .aria2 file was written when a downloading
  13795. failed with errors.
  13796. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13797. Added "User-Agent" header to CONNECT proxy request.
  13798. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13799. properly.
  13800. * Logger.h:
  13801. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13802. * ChunkedEncoding.cc: Added #include directive for strings.h
  13803. * Release 0.2.1
  13804. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13805. * Util.{h,cc}: added startsWith().
  13806. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13807. Util::endsWith().
  13808. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13809. * common.h: added #include directive of limit.h.
  13810. * DownloadEngine.cc: added #include directive of sys/time.h and
  13811. algorithm.
  13812. * Exception.h: added #include directive of stdio.h.
  13813. * AbstractCommand.h: added #include directive of sys/time.h.
  13814. * DownloadCommand.h: added #include directive of sys/time.h.
  13815. * *.h: added #include directive of common.h to all base classes.
  13816. subclasses' one was removed.
  13817. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13818. does not define these macros.
  13819. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13820. * Release 0.2.0
  13821. * main.cc:
  13822. * HttpInitiateConnectionCommand.{h,cc}:
  13823. * prefs.h:
  13824. * HttpConnection.{h,cc}: added --http-proxy-method option.
  13825. We can now use GET command in http proxy.
  13826. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13827. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  13828. that splits slowest segment of SegmentMan::commands vector.
  13829. This is the default split algorithm of aria2.
  13830. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  13831. that splits first segment of SegmentMan::commands vector.
  13832. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  13833. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  13834. * Segment.h:
  13835. * SegmentMan.cc: Added speed field to Segment.h
  13836. * main.cc: -s option now affects all URLs in command-line arguemtns.
  13837. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  13838. * message.h: Change file size related %d to %lld.
  13839. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13840. * FtpInitiateConnectionCommand.{h,cc}:
  13841. * FtpNegotiationCommand.{h,cc}:
  13842. * FtpDownloadCommand.{h,cc}:
  13843. * FtpConnection.{h,cc}: Added FTP support
  13844. * SimpleLogger.cc: Log message now includes time information.
  13845. * main.cc: The value of --http-auth-scheme option is chagned from
  13846. 'BASIC' to 'basic'
  13847. * main.cc: Added --timeout command-line option.
  13848. * main.cc: Added --min-segment-size command-line option.
  13849. * main.cc: Added --max-retries command-line option.
  13850. * prefs.h: option string constants are now defined in prefs.h
  13851. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13852. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  13853. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  13854. with version 0.1.0's one.
  13855. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13856. * configure.in: Added --enable-ssl option to configure script.
  13857. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  13858. cannot permit absoluteURI as Request-URI.
  13859. * HttpConnection.cc: Added Referer support.
  13860. * main.cc: Added referer command-line option.
  13861. * main.cc: Added rety-wait command-line option.
  13862. * Exception.h: Fixed formating bug in Exception::setMsg()
  13863. * SocketCore.{h,cc}:
  13864. * Socket.{h, cc}:
  13865. * Request.cc:
  13866. * InitiateConnectionCommandFactory.cc:
  13867. * HttpRequestCommand.cc: Added HTTPS support.
  13868. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  13869. for SocketCore.
  13870. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  13871. size is wrong
  13872. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  13873. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  13874. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  13875. * Release 0.1.0