ChangeLog 549 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385
  1. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Removed garbage "\" character before '
  3. * doc/aria2c.1.txt
  4. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Removed garbage "\" character before http.
  6. * doc/aria2c.1.txt
  7. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Documented additional options that can be specified in -i list.
  9. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  10. and --xml-rpc-passwd. Removed --enable-http-server and
  11. --http-server-listen-port.
  12. * doc/aria2c.1.txt
  13. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  15. * src/DefaultPeerStorage.cc
  16. * src/DefaultPeerStorage.h
  17. * src/PeerStorage.h
  18. * src/XmlRpcMethodImpl.cc
  19. * test/MockPeerStorage.h
  20. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Put a call to Socket::isReadable() in try block.
  22. * src/HttpServerBodyCommand.cc
  23. * src/HttpServerCommand.cc
  24. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  26. exception , so it is now in try block.
  27. * src/HttpServerResponseCommand.cc
  28. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Added "amChoking" and "peerChoking" key in getPeers response.
  30. * src/XmlRpcMethodImpl.cc
  31. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Added test case for zero-length filter.
  33. * test/BitfieldManTest.cc
  34. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. getFiles command now returns file data for finished/stopped
  36. downloads.
  37. * src/XmlRpcMethodImpl.cc
  38. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  39. DownloadResult now has the list of FileEntry. The download
  40. summary displays the path of first selected file and the number of
  41. remaining files for multi-file torrent.
  42. * src/DownloadResult.h
  43. * src/RequestGroup.cc
  44. * src/RequestGroupMan.cc
  45. * test/RequestGroupTest.cc
  46. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. Fixed segmentation fault error when no file is selected in
  48. multi-file torrent.
  49. * src/BitfieldMan.cc
  50. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Escaped <,>,& character in XML-RPC response.
  52. * src/XmlRpcMethod.cc
  53. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Throw DlAbortEx instead of FatalException during parsing options
  55. because we don't want for aria2 to quit when bad option is passed
  56. via XML-RPC.
  57. * src/OptionHandlerException.cc
  58. * src/OptionHandlerException.h
  59. * src/OptionHandlerImpl.h
  60. * src/OptionParser.cc
  61. * src/OptionParser.h
  62. * src/PStringSegment.cc
  63. * src/ParameterizedStringParser.cc
  64. * src/download_helper.cc
  65. * test/ParameterizedStringParserTest.cc
  66. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Selecting files are now done in
  68. DefaultBtContext::setFileFileter().
  69. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  70. functions are removed because they are no longer used. Creating
  71. filter in BitfieldMan is done in new funtion
  72. PieceStorage::setupFileFilter()
  73. * src/BtContext.cc
  74. * src/BtContext.h
  75. * src/DefaultBtContext.cc
  76. * src/DefaultBtContext.h
  77. * src/DefaultPieceStorage.cc
  78. * src/DefaultPieceStorage.h
  79. * src/DiskAdaptor.cc
  80. * src/DiskAdaptor.h
  81. * src/PieceStorage.h
  82. * src/RequestGroup.cc
  83. * src/UnknownLengthPieceStorage.h
  84. * src/XmlRpcMethodImpl.cc
  85. * test/DefaultBtContextTest.cc
  86. * test/MockBtContext.h
  87. * test/MockPieceStorage.h
  88. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Fixed compile error on Mac OS X
  90. * src/HttpServer.cc
  91. * src/XmlRpcMethod.h
  92. * src/XmlRpcMethodImpl.cc
  93. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Use std::binary_search instead of std::find
  95. * src/DefaultPieceStorage.cc
  96. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Removed unnecessary BDE() call; leave them to implicit conversion.
  98. * src/XmlRpcMethodImpl.cc
  99. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Return connections and gid in string
  101. * src/XmlRpcMethodImpl.cc
  102. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Renamed addURI as addUri
  104. * src/XmlRpcMethodFactory.cc
  105. * src/XmlRpcMethodImpl.cc
  106. * src/XmlRpcMethodImpl.h
  107. * test/XmlRpcMethodTest.cc
  108. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Renamed addTorrentFile as addTorrent
  110. * src/XmlRpcMethodFactory.cc
  111. * src/XmlRpcMethodImpl.cc
  112. * src/XmlRpcMethodImpl.h
  113. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. The information for files, URIs, peers are removed from the
  115. reponse of TellaActive, TellStatus command because they tend to be
  116. large. Instead they can be retrieved by the dedicated commands:
  117. getFiles, getUris and getPeers respectively.
  118. * src/XmlRpcMethodFactory.cc
  119. * src/XmlRpcMethodImpl.cc
  120. * src/XmlRpcMethodImpl.h
  121. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. Removed --max-overall-upload-limit and
  123. --max-overall-download-limit option from listRequestOptions.
  124. * src/download_helper.cc
  125. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  126. Log incoming host in HttpListenCommand.
  127. * src/HttpListenCommand.cc
  128. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  129. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  130. --xml-rpc-passwd option.
  131. * src/HttpServer.cc
  132. * src/HttpServer.h
  133. * src/HttpServerCommand.cc
  134. * src/OptionHandlerFactory.cc
  135. * src/prefs.cc
  136. * src/prefs.h
  137. * src/usage_text.h
  138. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  140. processing 0 length request.
  141. * src/HttpServerBodyCommand.cc
  142. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Removed --enable-http-server and --http-server-listen-port
  144. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  145. instead. The original feature for --enable-http-server that
  146. reports download progress in HTML was officially removed. Persist
  147. XML-RPC connection if client supports keep-alive.
  148. * src/DownloadEngineFactory.cc
  149. * src/HttpServerCommand.cc
  150. * src/HttpServerResponseCommand.cc
  151. * src/Makefile.am
  152. * src/Makefile.in
  153. * src/OptionHandlerFactory.cc
  154. * src/RequestGroupMan.cc
  155. * src/main.cc
  156. * src/option_processing.cc
  157. * src/prefs.cc
  158. * src/prefs.h
  159. * src/usage_text.h
  160. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Added "uris" key to the response of tellStatus command. Added
  162. "connections" key to the response of tellStatus and tellActive
  163. command.
  164. * src/XmlRpcMethodImpl.cc
  165. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  167. Added TellStatusXmlRpcMethod. Remove command can now remove
  168. waiting RequestGroup.
  169. * src/RequestGroupMan.cc
  170. * src/RequestGroupMan.h
  171. * src/XmlRpcMethodFactory.cc
  172. * src/XmlRpcMethodImpl.cc
  173. * src/XmlRpcMethodImpl.h
  174. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  175. Initialized _peerId
  176. * src/Peer.cc
  177. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Return fault structure for error. FailXmlRpcMethod is renamed as
  179. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  180. in non-torrent download. Return single param value.
  181. * src/XmlRpcMethod.cc
  182. * src/XmlRpcMethodFactory.cc
  183. * src/XmlRpcMethodImpl.cc
  184. * src/XmlRpcMethodImpl.h
  185. * test/XmlRpcMethodTest.cc
  186. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  187. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  188. command.
  189. * src/RequestGroup.cc
  190. * src/RequestGroup.h
  191. * src/RequestGroupMan.cc
  192. * src/XmlRpcMethodImpl.cc
  193. * test/RequestGroupTest.cc
  194. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Added more options that can be specified in -i list and xml-rpc
  196. add* command.
  197. * src/download_helper.h
  198. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. The available options in -i list should be listed in
  200. listRequestOptions().
  201. * src/download_helper.cc
  202. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  204. command.
  205. * src/XmlRpcMethodImpl.cc
  206. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  207. Now RequestGroup has its own copy of Option object. This will help
  208. to give custom option for each RequestGroup.
  209. addTorrentFile command now takes options.
  210. * src/AbstractCommand.cc
  211. * src/AbstractCommand.h
  212. * src/AbstractProxyRequestCommand.cc
  213. * src/ActivePeerConnectionCommand.cc
  214. * src/ActivePeerConnectionCommand.h
  215. * src/AdaptiveURISelector.cc
  216. * src/BtCheckIntegrityEntry.cc
  217. * src/BtDependency.cc
  218. * src/BtDependency.h
  219. * src/BtFileAllocationEntry.cc
  220. * src/BtPostDownloadHandler.cc
  221. * src/CheckIntegrityEntry.cc
  222. * src/DownloadCommand.cc
  223. * src/FtpDownloadCommand.cc
  224. * src/FtpFinishDownloadCommand.cc
  225. * src/FtpInitiateConnectionCommand.cc
  226. * src/FtpNegotiationCommand.cc
  227. * src/HttpInitiateConnectionCommand.cc
  228. * src/HttpRequestCommand.cc
  229. * src/HttpResponseCommand.cc
  230. * src/HttpSkipResponseCommand.cc
  231. * src/InitiateConnectionCommand.cc
  232. * src/InitiateConnectionCommandFactory.cc
  233. * src/InitiatorMSEHandshakeCommand.cc
  234. * src/InitiatorMSEHandshakeCommand.h
  235. * src/Metalink2RequestGroup.cc
  236. * src/Metalink2RequestGroup.h
  237. * src/MetalinkPostDownloadHandler.cc
  238. * src/MultiUrlRequestInfo.cc
  239. * src/MultiUrlRequestInfo.h
  240. * src/PeerAbstractCommand.cc
  241. * src/PeerInteractionCommand.cc
  242. * src/PeerInteractionCommand.h
  243. * src/PeerReceiveHandshakeCommand.cc
  244. * src/PeerReceiveHandshakeCommand.h
  245. * src/RequestGroup.cc
  246. * src/RequestGroup.h
  247. * src/TrackerWatcherCommand.cc
  248. * src/TrackerWatcherCommand.h
  249. * src/XmlRpcMethod.cc
  250. * src/XmlRpcMethod.h
  251. * src/XmlRpcMethodImpl.cc
  252. * src/download_helper.cc
  253. * src/download_helper.h
  254. * src/main.cc
  255. * test/BtDependencyTest.cc
  256. * test/BtPostDownloadHandlerTest.cc
  257. * test/DefaultBtMessageDispatcherTest.cc
  258. * test/DownloadHandlerFactoryTest.cc
  259. * test/DownloadHelperTest.cc
  260. * test/Metalink2RequestGroupTest.cc
  261. * test/MetalinkPostDownloadHandlerTest.cc
  262. * test/RequestGroupManTest.cc
  263. * test/RequestGroupTest.cc
  264. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Added tellActiveStatus xml-rpc command which reports download
  266. status of active downloads.
  267. * src/XmlRpcMethodFactory.cc
  268. * src/XmlRpcMethodImpl.cc
  269. * src/XmlRpcMethodImpl.h
  270. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  271. Added addTorrentFile xml-rpc command which receives uploaded
  272. torrent file and add download for it.
  273. * src/RequestGroupMan.cc
  274. * src/XmlRpcMethodFactory.cc
  275. * src/XmlRpcMethodImpl.cc
  276. * src/XmlRpcMethodImpl.h
  277. * src/download_helper.cc
  278. * src/download_helper.h
  279. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. Added remove xml-rpc command which removes specified download.
  281. There is a known issue: the removed unfinished downloads are
  282. reported ERR when aria2 exits. They should be reported as INPR.
  283. * src/RequestGroupMan.cc
  284. * src/RequestGroupMan.h
  285. * src/XmlRpcMethodFactory.cc
  286. * src/XmlRpcMethodImpl.cc
  287. * src/XmlRpcMethodImpl.h
  288. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  289. If --enable-http-server is enabled, don't stop aria2 when all
  290. download finished and don't quit when no files to download at
  291. start up.
  292. * src/RequestGroupMan.cc
  293. * src/main.cc
  294. * src/option_processing.cc
  295. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  296. Added missing AM_CONDITIONAL
  297. * configure.ac
  298. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  299. Added xml-rpc functionality. Currently only addURI commad is
  300. supported. To enable xml-rpc, run aria2 with
  301. --enable-http-server. This option name is temporal and will be
  302. changed. The feature that reports download progress in html format
  303. is temporarily disabled.
  304. * src/HttpServer.cc
  305. * src/HttpServer.h
  306. * src/HttpServerBodyCommand.cc
  307. * src/HttpServerBodyCommand.h
  308. * src/HttpServerCommand.cc
  309. * src/HttpServerResponseCommand.cc
  310. * src/Makefile.am
  311. * src/OptionParser.cc
  312. * src/OptionParser.h
  313. * src/RequestGroupMan.cc
  314. * src/RequestGroupMan.h
  315. * src/XmlRpcMethod.cc
  316. * src/XmlRpcMethod.h
  317. * src/XmlRpcMethodFactory.cc
  318. * src/XmlRpcMethodFactory.h
  319. * src/XmlRpcMethodImpl.cc
  320. * src/XmlRpcMethodImpl.h
  321. * src/download_helper.cc
  322. * src/download_helper.h
  323. * test/Makefile.am
  324. * test/XmlRpcMethodTest.cc
  325. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Added xml-rpc request parser. The supported value types are:
  327. i4/int, string, double, struct, array, base64. Currently only
  328. libxml2 version is provided.
  329. * src/Xml2XmlRpcRequestProcessor.cc
  330. * src/Xml2XmlRpcRequestProcessor.h
  331. * src/XmlRpcElements.cc
  332. * src/XmlRpcElements.h
  333. * src/XmlRpcRequest.h
  334. * src/XmlRpcRequestParserController.cc
  335. * src/XmlRpcRequestParserController.h
  336. * src/XmlRpcRequestParserState.h
  337. * src/XmlRpcRequestParserStateImpl.cc
  338. * src/XmlRpcRequestParserStateImpl.h
  339. * src/XmlRpcRequestParserStateMachine.cc
  340. * src/XmlRpcRequestParserStateMachine.h
  341. * src/XmlRpcRequestProcessor.h
  342. * test/XmlRpcRequestParserControllerTest.cc
  343. * test/XmlRpcRequestProcessorTest.cc
  344. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  345. * Release 1.3.3
  346. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Fixed compile error since r1202.
  348. * src/ExpatMetalinkProcessor.cc
  349. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  350. Updated Ukrainian, Russian and Simplified Chinese
  351. translations. Thanks to all translators.
  352. * po/ru.po
  353. * po/uk.po
  354. * po/zh_CN.po
  355. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Pass reference of Option object instead of pointer.
  357. * src/download_helper.cc
  358. * src/download_helper.h
  359. * src/main.cc
  360. * test/DownloadHelperTest.cc
  361. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  363. from option directly. Instead, get them from RequestGroup.
  364. * src/ActivePeerConnectionCommand.cc
  365. * src/ActivePeerConnectionCommand.h
  366. * src/PeerReceiveHandshakeCommand.cc
  367. * src/RequestGroup.h
  368. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  369. Removed unused uploadLimitCheck and uploadLimit from
  370. PeerAbstractCommand. Removed unused maxDownloadLimit from
  371. PeerInteractionCommand.
  372. * src/PeerAbstractCommand.cc
  373. * src/PeerAbstractCommand.h
  374. * src/PeerInteractionCommand.cc
  375. * src/PeerInteractionCommand.h
  376. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Fixed broken file renaming feature since r1202.
  378. * src/FtpNegotiationCommand.cc
  379. * src/FtpNegotiationCommand.h
  380. * src/HttpResponseCommand.cc
  381. * src/RequestGroup.cc
  382. * src/RequestGroup.h
  383. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Removed unused debug log
  385. * src/SocketCore.cc
  386. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Generated configure and Makefile.in using autoconf 2.63 and
  388. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  389. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  390. * configure.ac
  391. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Moved piece statistics stuff to new PieceStatMan class.
  393. Refactored PieceSelector interface.
  394. * src/DefaultPieceStorage.cc
  395. * src/DefaultPieceStorage.h
  396. * src/LongestSequencePieceSelector.cc
  397. * src/LongestSequencePieceSelector.h
  398. * src/Makefile.am
  399. * src/PieceSelector.h
  400. * src/PieceStatMan.cc
  401. * src/PieceStatMan.h
  402. * src/RarestPieceSelector.cc
  403. * src/RarestPieceSelector.h
  404. * src/RequestGroup.cc
  405. * test/DefaultPieceStorageTest.cc
  406. * test/InOrderPieceSelector.h
  407. * test/Makefile.am
  408. * test/PieceStatManTest.cc
  409. * test/RarestPieceSelectorTest.cc
  410. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. Added static member _protocolFamily to SocketCore. By default,
  412. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  413. address. Sometime SocketCore::bind() and
  414. SocketCore::establishConnection() use difference protocl family
  415. and latter cannot connect to former. To avoid this situation, we
  416. limit protocol family to AF_INET for unit tests.
  417. * src/SocketCore.cc
  418. * src/SocketCore.h
  419. * test/AllTest.cc
  420. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Avoid std::bad_alloc for negative bencode string length.
  422. * src/bencode.cc
  423. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Supported segmented downloading with chunked transfer encoding and
  425. content-length.
  426. * src/DownloadCommand.cc
  427. * src/HttpResponseCommand.cc
  428. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Bump up version number to 1.3.3
  430. * configure.ac
  431. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  433. from 4096 to 65536 (for insanely large ftp login banners)
  434. * src/FtpConnection.h
  435. * test/FtpConnectionTest.cc
  436. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. In DefaultBtContext::getActualBasePath(), return first
  438. FileEntry::getPath() for single file torrent.
  439. * src/DefaultBtContext.cc
  440. * test/DefaultBtContextTest.cc
  441. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. Removed directIOAllowed() from BinaryStream, DiskWriter,
  443. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  444. Removed _directIOAllowed member from DiskWriter.
  445. * src/AbstractDiskWriter.cc
  446. * src/AbstractDiskWriter.h
  447. * src/AbstractSingleDiskAdaptor.cc
  448. * src/AbstractSingleDiskAdaptor.h
  449. * src/BinaryStream.h
  450. * src/ByteArrayDiskWriter.h
  451. * src/DefaultPieceStorage.cc
  452. * src/DiskWriter.h
  453. * src/MultiDiskAdaptor.cc
  454. * src/MultiDiskAdaptor.h
  455. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Now the constructor of AbstractDiskWriter takes filename as an
  457. argument and filename argument is removed from openFile(),
  458. initAndOpenFile(), openExistingFile() interface. storeDir member
  459. and its accessor functions are removed from DiskAdaptor because it
  460. is not used anymore. size() member function of DefaultDiskWriter,
  461. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  462. opening file.
  463. * src/AbstractDiskWriter.cc
  464. * src/AbstractDiskWriter.h
  465. * src/AbstractSingleDiskAdaptor.cc
  466. * src/AbstractSingleDiskAdaptor.h
  467. * src/ByteArrayDiskWriter.cc
  468. * src/ByteArrayDiskWriter.h
  469. * src/ByteArrayDiskWriterFactory.cc
  470. * src/ByteArrayDiskWriterFactory.h
  471. * src/DefaultDiskWriter.cc
  472. * src/DefaultDiskWriter.h
  473. * src/DefaultDiskWriterFactory.cc
  474. * src/DefaultDiskWriterFactory.h
  475. * src/DefaultPieceStorage.cc
  476. * src/DirectDiskAdaptor.cc
  477. * src/DirectDiskAdaptor.h
  478. * src/DiskAdaptor.h
  479. * src/DiskWriter.h
  480. * src/DiskWriterFactory.h
  481. * src/MessageDigestHelper.cc
  482. * src/MultiDiskAdaptor.cc
  483. * src/RequestGroup.cc
  484. * src/UnknownLengthPieceStorage.cc
  485. * src/Util.cc
  486. * test/DefaultDiskWriterTest.cc
  487. * test/DirectDiskAdaptorTest.cc
  488. * test/FallocFileAllocationIteratorTest.cc
  489. * test/MessageDigestHelperTest.cc
  490. * test/MetalinkProcessorTest.cc
  491. * test/MultiDiskAdaptorTest.cc
  492. * test/MultiFileAllocationIteratorTest.cc
  493. * test/SingleFileAllocationIteratorTest.cc
  494. * test/UtilTest.cc
  495. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Fixed the bug that aria2 aborts when --select-file is used. This
  497. bug was introduced in r1199.
  498. * src/MultiDiskAdaptor.cc
  499. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Code cleanup
  501. * test/MockPieceStorage.cc
  502. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Fixed the bug that read-only file with wrong file size will cause
  504. error because it cannot be truncated to the correct size. Now if
  505. file size is different than the expected one, re-open file in
  506. writable mode.
  507. * src/AbstractSingleDiskAdaptor.cc
  508. * src/AbstractSingleDiskAdaptor.h
  509. * src/BtCheckIntegrityEntry.cc
  510. * src/DiskAdaptor.h
  511. * src/MultiDiskAdaptor.h
  512. * src/RequestGroup.cc
  513. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Fixed the bug that with --check-integrity option aria2 reports
  515. downloaded file size is 0 even if some parts of file is correctly
  516. downloaded. This bug is reproducible for the download that a file
  517. includes last piece is missing. This bug doesn't reveal for
  518. single-torrent with file allocation on.
  519. * src/IteratableChecksumValidator.cc
  520. * test/IteratableChecksumValidatorTest.cc
  521. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Avoid circular reference between RequestGroup and AdaptiveURISelector
  523. * src/RequestGroupMan.cc
  524. * src/AdaptiveURISelector.cc
  525. * src/AdaptiveURISelector.h
  526. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. * Release 1.3.2
  528. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Updated README
  530. * README
  531. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  532. Updated Ukrainian translations. Thanks to Alexander10.
  533. * po/uk.po
  534. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Code cleanup
  536. * src/MetalinkParserStateMachine.cc
  537. * src/MetalinkParserStateMachine.h
  538. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  540. and expat simultaneously, MetalinkProcessor is now not base class
  541. and it is directly implemented in XML2SAXMetalinkProcessor and
  542. ExpatMetalinkProcessor.
  543. * src/ExpatMetalinkProcessor.cc
  544. * src/ExpatMetalinkProcessor.h
  545. * src/Makefile.am
  546. * src/MetalinkHelper.cc
  547. * src/MetalinkProcessor.h
  548. * src/MetalinkProcessorFactory.cc: Removed.
  549. * src/MetalinkProcessorFactory.h: Removed
  550. * src/XML2SAXMetalinkProcessor.cc
  551. * src/XML2SAXMetalinkProcessor.h
  552. * test/MetalinkProcessorTest.cc
  553. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Bump up version number to 1.3.2
  555. * configure.ac
  556. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  557. Added missing file.
  558. * test/Makefile.am
  559. * test/url-list-singleFileEndsWithSlash.torrent
  560. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  561. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  562. request.
  563. * src/AnnounceList.cc
  564. * src/AnnounceList.h
  565. * src/BDE.cc: Added
  566. * src/BDE.h: Added
  567. * src/DHTAbstractMessage.cc
  568. * src/DHTAbstractMessage.h
  569. * src/DHTAnnouncePeerMessage.cc
  570. * src/DHTAnnouncePeerMessage.h
  571. * src/DHTAnnouncePeerReplyMessage.cc
  572. * src/DHTAnnouncePeerReplyMessage.h
  573. * src/DHTFindNodeMessage.cc
  574. * src/DHTFindNodeMessage.h
  575. * src/DHTFindNodeReplyMessage.cc
  576. * src/DHTFindNodeReplyMessage.h
  577. * src/DHTGetPeersMessage.cc
  578. * src/DHTGetPeersMessage.h
  579. * src/DHTGetPeersReplyMessage.cc
  580. * src/DHTGetPeersReplyMessage.h
  581. * src/DHTMessageFactory.h
  582. * src/DHTMessageFactoryImpl.cc
  583. * src/DHTMessageFactoryImpl.h
  584. * src/DHTMessageReceiver.cc
  585. * src/DHTMessageTracker.cc
  586. * src/DHTMessageTracker.h
  587. * src/DHTPingMessage.cc
  588. * src/DHTPingMessage.h
  589. * src/DHTPingReplyMessage.cc
  590. * src/DHTPingReplyMessage.h
  591. * src/DHTQueryMessage.cc
  592. * src/DHTQueryMessage.h
  593. * src/DHTResponseMessage.cc
  594. * src/DHTResponseMessage.h
  595. * src/DefaultBtAnnounce.cc
  596. * src/DefaultBtContext.cc
  597. * src/DefaultBtContext.h
  598. * src/HandshakeExtensionMessage.cc
  599. * src/Makefile.am
  600. * src/PeerListProcessor.h
  601. * src/UTPexExtensionMessage.cc
  602. * src/bencode.cc
  603. * src/bencode.h
  604. * test/AnnounceListTest.cc
  605. * test/BDETest.cc: Added
  606. * test/BencodeTest.cc
  607. * test/DHTAnnouncePeerMessageTest.cc
  608. * test/DHTAnnouncePeerReplyMessageTest.cc
  609. * test/DHTFindNodeMessageTest.cc
  610. * test/DHTFindNodeReplyMessageTest.cc
  611. * test/DHTGetPeersMessageTest.cc
  612. * test/DHTGetPeersReplyMessageTest.cc
  613. * test/DHTMessageFactoryImplTest.cc
  614. * test/DHTMessageTrackerTest.cc
  615. * test/DHTPingMessageTest.cc
  616. * test/DHTPingReplyMessageTest.cc
  617. * test/Makefile.am
  618. * test/MockDHTMessageFactory.h
  619. * test/PeerListProcessorTest.cc
  620. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Use url-list (web-seeding) only for single-file torrent. This is
  622. basically the same behavior with Metalink file with torrent and
  623. URIs.
  624. * src/RequestGroup.cc
  625. * src/DefaultBtContext.cc
  626. * test/DefaultBtContextTest.cc
  627. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  628. Rewritten expr
  629. * src/array_fun.h
  630. * test/array_funTest.cc
  631. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  633. * src/DefaultBtMessageDispatcher.cc
  634. * src/a2algo.h
  635. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Removed ExtendedMessagingAware. Instead of using inheritance,
  637. added ExtensionMessageRegistry and it is passed to
  638. DefaultExtensionMessageFactory.
  639. * src/DefaultBtInteractive.cc
  640. * src/DefaultBtInteractive.h
  641. * src/DefaultExtensionMessageFactory.cc
  642. * src/DefaultExtensionMessageFactory.h
  643. * src/ExtendedMessagingAware.h: Removed.
  644. * src/ExtensionMessageFactory.h
  645. * src/ExtensionMessageRegistry.h: Added.
  646. * src/Makefile.am
  647. * src/PeerInteractionCommand.cc
  648. * test/DefaultExtensionMessageFactoryTest.cc
  649. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Fixed typo in log messages
  651. * src/MSEHandshake.cc
  652. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Fixed the bug that prevents torrent download from finishing. The
  654. bug doesn't reveal for all torrents. The torrents affected this
  655. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  656. of pieces.
  657. * src/bitfield.h
  658. * test/bitfieldTest.cc
  659. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Code cleanup
  661. * src/PeerListProcessor.h
  662. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Removed RequestGroupAware
  664. * src/AbstractCommand.cc
  665. * src/AbstractCommand.h
  666. * src/ActivePeerConnectionCommand.cc
  667. * src/ActivePeerConnectionCommand.h
  668. * src/DHTGetPeersCommand.cc
  669. * src/DHTGetPeersCommand.h
  670. * src/InitiatorMSEHandshakeCommand.cc
  671. * src/InitiatorMSEHandshakeCommand.h
  672. * src/Makefile.am
  673. * src/PeerInitiateConnectionCommand.cc
  674. * src/PeerInitiateConnectionCommand.h
  675. * src/PeerInteractionCommand.cc
  676. * src/PeerInteractionCommand.h
  677. * src/RealtimeCommand.cc
  678. * src/RealtimeCommand.h
  679. * src/RequestGroupAware.cc: Removed
  680. * src/RequestGroupAware.h: Removed
  681. * src/SeedCheckCommand.cc
  682. * src/SeedCheckCommand.h
  683. * src/SleepCommand.cc
  684. * src/TrackerWatcherCommand.cc
  685. * src/TrackerWatcherCommand.h
  686. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Rewritten PeerListProcessor
  688. * src/PeerListProcessor.h
  689. * src/CompactPeerListProcessor.h: Removed
  690. * src/CompactPeerListProcessor.cc: Removed
  691. * src/DelegatingPeerListProcessor.cc: Removed.
  692. * src/DefaultBtAnnounce.cc
  693. * src/Makefile.am
  694. * src/UTPexExtensionMessage.cc
  695. * src/DefaultPeerListProcessor.h: Removed.
  696. * src/DefaultPeerListProcessor.cc: Removed.
  697. * src/DelegatingPeerListProcessor.h: Removed.
  698. * test/Makefile.am
  699. * test/PeerListProcessorTest.cc
  700. * test/DefaultPeerListProcessorTest.cc: Removed.
  701. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  702. Rewritten RequestGroupMan::calculateStat()
  703. * src/RequestGroupMan.cc
  704. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  705. Removed unnecessary virtual destructor for Request class.
  706. * src/Request.cc
  707. * src/Request.h
  708. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. Avoid dynamic_pointer_cast.
  710. * src/DHTGetPeersCommand.cc
  711. * src/DHTGetPeersCommand.h
  712. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  714. BtEvent.
  715. * src/AbstractBtEventListener.h: Removed.
  716. * src/AbstractBtMessage.cc
  717. * src/AbstractBtMessage.h
  718. * src/BtAbortOutstandingRequestEvent.h
  719. * src/BtCancelSendingPieceEvent.h
  720. * src/BtChokedEvent.h: Removed.
  721. * src/BtChokingEvent.h
  722. * src/BtEvent.h: Removed
  723. * src/BtEventListener.h: Removed.
  724. * src/BtMessage.h
  725. * src/BtPieceMessage.cc
  726. * src/BtPieceMessage.h
  727. * src/BtRequestMessage.cc
  728. * src/BtRequestMessage.h
  729. * src/DefaultBtMessageDispatcher.cc
  730. * src/Makefile.am
  731. * src/a2functional.h
  732. * test/BtPieceMessageTest.cc
  733. * test/BtRequestMessageTest.cc
  734. * test/DefaultBtMessageDispatcherTest.cc
  735. * test/MockBtMessage.h
  736. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Code cleanup
  738. * src/RequestGroupMan.cc
  739. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Code cleanup
  741. * src/DownloadCommand.cc
  742. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Fixed segmentation fault when GZipDecoder::decode() returns 0
  744. byte.
  745. * src/DownloadCommand.cc
  746. * src/bitfield.h
  747. * test/bitfieldTest.cc
  748. Fixed the bug that causes infinite loop if broken web server
  749. returns chunked response without last "0" chunk-size marker and
  750. closes connection.
  751. * src/DownloadCommand.cc
  752. Instantiate properly configured HttpDownloadCommand for
  753. non-resumable downlaods.
  754. * src/HttpResponseCommand.cc
  755. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Rewritten array operation functions.
  757. * src/BitfieldMan.cc
  758. * src/array_fun.h
  759. * test/array_funTest.cc
  760. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Removed unused variable 'query'
  762. * src/Request.cc
  763. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  765. accidentally set to false in r1162.
  766. * configure.ac
  767. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  768. Code cleanup
  769. * src/BNode.cc
  770. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  771. Increase prefixLength for the bucket which doesn't own local node
  772. ID when splitting bucket.
  773. * src/DHTBucket.cc
  774. * test/DHTBucketTest.cc
  775. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. * Release 1.3.1
  777. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Bump up version number to 1.3.1
  779. * configure.ac
  780. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Removed unused variable checkPoint. Also removed include directive
  782. for TimeA2.h.
  783. * src/SeedCheckCommand.h
  784. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  785. Fixed the bug that upload limit exceeds the value specified in
  786. --seed-ratio option depending on the timing of the execution of
  787. SeedCheckCommand.
  788. * src/SeedCheckCommand.cc
  789. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Fixed the bug that removed peer's session upload/download length
  791. are counted twice in _cachedTransferStat before it is
  792. re-calculated. This affected the calculation of shara ratio,
  793. resulting aria2 wrongly determines that specified share ratio is
  794. reached. Also fixed the typo in calculateStatFor function name.
  795. * src/BtSetup.cc
  796. * src/DefaultPeerStorage.cc
  797. * src/ShareRatioSeedCriteria.h
  798. * test/ShareRatioSeedCriteriaTest.cc
  799. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. * Release 1.3.0
  801. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  803. Nynorsk translations. Thanks to all translators.
  804. * po/es.po
  805. * po/ja.po
  806. * po/nn.po
  807. * po/ru.po
  808. * po/uk.po
  809. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  810. Rewritten isInRange()
  811. * src/DHTBucket.cc
  812. * test/DHTBucketTest.cc
  813. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Fixed typo
  815. * doc/aria2c.1.txt
  816. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  818. malloc/realloc is not used.
  819. * src/configure.ac
  820. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. BitfieldMan::getMissingIndexes family functions now takes unsigned
  822. char* bitfield instead of stl container for efficiency.
  823. PieceSelector::select now takes this
  824. bitfield. RarestPieceSelector::select now also performs
  825. efficiently for this change. bitfield namespace is introduced and
  826. it has several helper functions to handle basic bitfield
  827. operations such as test, count set bits, etc.
  828. * src/BitfieldMan.cc
  829. * src/BitfieldMan.h
  830. * src/DefaultBtRequestFactory.cc
  831. * src/DefaultPieceStorage.cc
  832. * src/DefaultPieceStorage.h
  833. * src/LongestSequencePieceSelector.cc
  834. * src/LongestSequencePieceSelector.h
  835. * src/Makefile.am
  836. * src/Piece.cc
  837. * src/Piece.h
  838. * src/PieceSelector.h
  839. * src/RarestPieceSelector.cc
  840. * src/RarestPieceSelector.h
  841. * src/Util.cc
  842. * src/Util.h
  843. * src/bitfield.h
  844. * test/BitfieldManTest.cc
  845. * test/LongestSequencePieceSelectorTest.cc
  846. * test/Makefile.am
  847. * test/RarestPieceSelectorTest.cc
  848. * test/UtilTest.cc
  849. * test/bitfieldTest.cc
  850. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Made accepted socket non-block.
  852. * src/FtpNegotiationCommand.cc
  853. * src/HttpListenCommand.cc
  854. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Guarded #ifdef HAVE_POSIX_FALLOCATE
  856. * src/AbstractSingleDiskAdaptor.cc
  857. * src/DefaultPieceStorage.cc
  858. * src/DiskAdaptor.h
  859. * src/DiskAdaptor.h
  860. * src/MultiFileAllocationIterator.cc
  861. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  862. Run
  863. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  864. in every 1 sec. The timeout of RequestSlot is 60s by default and
  865. it doesn't need to be called every time when
  866. DefaultBtInteractive::doInteractionProcessing() is called.
  867. * src/DefaultBtInteractive.cc
  868. * src/DefaultBtInteractive.h
  869. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  870. Documented 'falloc' in man page.
  871. * doc/aria2c.1.txt
  872. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. Updated doc
  874. * src/usage_text.h
  875. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  876. Added 'falloc' parameter for --file-allocation option. 'falloc'
  877. allocation mode uses posix_fallocate() system call to allocate
  878. file on disk. If you are using newer file systems such as ext4
  879. (with extents support), btrfs or xfs, 'falloc' is your best
  880. choice. It allocates large(few GiB) files almost instantly. Don't
  881. use 'falloc' with legacy file systems such as ext3 because it
  882. takes almost same time as 'prealloc' and it blocks aria2 entirely
  883. until allocation finishes. 'falloc' may not be available if your
  884. system doesn't have posix_fallocate() system call.
  885. * configure.ac
  886. * src/AbstractDiskWriter.cc
  887. * src/AbstractDiskWriter.h
  888. * src/AbstractSingleDiskAdaptor.cc
  889. * src/BinaryStream.h
  890. * src/BtCheckIntegrityEntry.cc
  891. * src/ByteArrayDiskWriter.h
  892. * src/CheckIntegrityEntry.cc
  893. * src/CheckIntegrityEntry.h
  894. * src/DefaultPieceStorage.cc
  895. * src/DiskAdaptor.cc
  896. * src/DiskAdaptor.h
  897. * src/DiskWriter.h
  898. * src/FallocFileAllocationIterator.cc
  899. * src/FallocFileAllocationIterator.h
  900. * src/FileAllocationEntry.cc
  901. * src/FileAllocationEntry.h
  902. * src/Makefile.am
  903. * src/MultiFileAllocationIterator.cc
  904. * src/MultiFileAllocationIterator.h
  905. * src/OptionHandlerFactory.cc
  906. * src/RequestGroup.cc
  907. * src/StreamCheckIntegrityEntry.cc
  908. * src/prefs.cc
  909. * src/prefs.h
  910. * src/usage_text.h
  911. * test/FallocFileAllocationIteratorTest.cc
  912. * test/Makefile.am
  913. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Removed duplicate enableDirectIO() call.
  915. * src/MultiFileAllocationIterator.cc
  916. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  918. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  919. cost of std::rotate().
  920. * src/RarestPieceSelector.cc
  921. * src/RarestPieceSelector.h
  922. * test/RarestPieceSelectorTest.cc
  923. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Updated usage doc for --bt-tracker-interval option.
  925. * src/usage_text.h
  926. * doc/aria2c.1.txt
  927. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Documented --bt-tracker-interval option in man page.
  929. * doc/aria2c.1.txt
  930. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  931. Added an option to specify the interval between tracker requests.
  932. If non-zero value is specified, aria2 uses it and ignores the
  933. interval value in the response of tracker. If zero is specified,
  934. aria2 determines the inteval value based on the tarcker response
  935. and download progress.
  936. * src/DefaultBtAnnounce.cc
  937. * src/DefaultBtAnnounce.h
  938. * src/OptionHandlerFactory.cc
  939. * src/RequestGroup.cc
  940. * src/prefs.cc
  941. * src/prefs.h
  942. * src/usage_text.h
  943. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Added operator+=, operator-=, operator-
  945. * src/TransferStat.cc
  946. * src/TransferStat.h
  947. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Refactored RarestPieceSelector to reduce CPU load, especially for
  949. addPieceStats.
  950. * src/RarestPieceSelector.cc
  951. * src/RarestPieceSelector.h
  952. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  954. getAllMissingBlockIndexes to reduce a call to
  955. array_function_base::operator[].
  956. * src/BitfieldMan.cc
  957. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Cached TransferStat/download speed to avoid to sum them up in each
  959. call.
  960. * src/DefaultPeerStorage.cc
  961. * src/DefaultPeerStorage.h
  962. * src/SegmentMan.cc
  963. * src/SegmentMan.h
  964. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Typedefed cuid_t as int32_t in Command.h
  966. * src/CUIDCounter.h
  967. * src/Command.cc
  968. * src/Command.h
  969. * src/DownloadEngine.cc
  970. * src/DownloadEngine.h
  971. * src/PeerStat.h
  972. * src/SegmentMan.cc
  973. * src/SegmentMan.h
  974. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. Reduced the number of calls to PeerStorage::calculateStat() and
  976. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  977. transfer rate.
  978. * src/DefaultBtInteractive.cc
  979. * src/DefaultBtMessageDispatcher.cc
  980. * src/DefaultPeerStorage.cc
  981. * src/DefaultPeerStorage.h
  982. * src/DownloadCommand.cc
  983. * src/DownloadEngine.cc
  984. * src/PeerStorage.h
  985. * src/SegmentMan.cc
  986. * src/SegmentMan.h
  987. * test/MockPeerStorage.h
  988. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  989. Prepended _dir+"/" after joining path elements in torrent file.
  990. * src/DefaultBtContext.cc
  991. * test/DefaultBtContextTest.cc
  992. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Added missing IndexBtMessageValidator.h
  994. * src/Makefile.am
  995. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  997. Chinese translations. Thank you for contributing our project.
  998. * po/id.po
  999. * po/it.po
  1000. * po/ru.po
  1001. * po/uk.po
  1002. * po/zh_CN.po
  1003. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Updated README
  1005. * README
  1006. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Bump up version number to 1.3.0
  1008. * configure.ac
  1009. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Updated doc
  1011. * src/DefaultBtContext.h
  1012. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Slice/joinPath for name of single torrent.
  1014. * src/DefaultBtContext.cc
  1015. * test/DefaultBtContextTest.cc
  1016. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. Updated man page: Documented --dry-run and --index-out
  1018. options. Changed the default value of --uri-selector and
  1019. --http-auth-challenge options. Removed --direct-file-mapping
  1020. option. Added example for --index-out
  1021. * doc/aria2c.1.txt
  1022. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Updated TEXT_DRY_RUN
  1024. * src/usage_text.h
  1025. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Changed the default value of --uri-selector option from 'inorder'
  1027. to 'feedback'
  1028. * src/OptionHandlerFactory.cc
  1029. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1030. Included current URI in exception message.
  1031. * src/AbstractCommand.cc
  1032. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Renamed ServerStatURISelector as FeedbackURISelector.
  1034. * src/FeedbackURISelector.cc
  1035. * src/FeedbackURISelector.h
  1036. * src/Makefile.am
  1037. * src/RequestGroupMan.cc
  1038. * src/ServerStatURISelector.cc
  1039. * src/ServerStatURISelector.h
  1040. * test/FeedbackURISelectorTest.cc
  1041. * test/Makefile.am
  1042. * test/ServerStatURISelectorTest.cc
  1043. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1045. all URIs are tested and their timeout is not reached.
  1046. * src/AdaptiveURISelector.cc
  1047. * src/AdaptiveURISelector.h
  1048. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Changed the default value of --http-auth-challenge option to false.
  1050. * src/OptionHandlerFactory.cc
  1051. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Reuse URIs when all unused URIs run out.
  1053. * src/OptionHandlerFactory.cc
  1054. * src/RequestGroup.cc
  1055. * src/prefs.cc
  1056. * src/prefs.h
  1057. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1059. and BtRejectMessage are derived from RangeBtMessage class.
  1060. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1061. derived from IndexBtMessage class. BtChokeMessage,
  1062. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1063. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1064. ZeroBtMessage class.
  1065. * src/AbstractBtMessage.cc
  1066. * src/AbstractBtMessage.h
  1067. * src/BtAllowedFastMessage.cc
  1068. * src/BtAllowedFastMessage.h
  1069. * src/BtAllowedFastMessageValidator.h: Removed
  1070. * src/BtBitfieldMessage.cc
  1071. * src/BtBitfieldMessage.h
  1072. * src/BtCancelMessage.cc
  1073. * src/BtCancelMessage.h
  1074. * src/BtCancelMessageValidator.h: Removed
  1075. * src/BtChokeMessage.cc
  1076. * src/BtChokeMessage.h
  1077. * src/BtExtendedMessage.cc
  1078. * src/BtExtendedMessage.h
  1079. * src/BtHandshakeMessage.cc
  1080. * src/BtHandshakeMessage.h
  1081. * src/BtHaveAllMessage.cc
  1082. * src/BtHaveAllMessage.h
  1083. * src/BtHaveMessage.cc
  1084. * src/BtHaveMessage.h
  1085. * src/BtHaveMessageValidator.h: Removed
  1086. * src/BtHaveNoneMessage.cc
  1087. * src/BtHaveNoneMessage.h
  1088. * src/BtInterestedMessage.cc
  1089. * src/BtInterestedMessage.h
  1090. * src/BtKeepAliveMessage.cc
  1091. * src/BtKeepAliveMessage.h
  1092. * src/BtNotInterestedMessage.cc
  1093. * src/BtNotInterestedMessage.h
  1094. * src/BtPieceMessage.cc
  1095. * src/BtPieceMessage.h
  1096. * src/BtPortMessage.cc
  1097. * src/BtPortMessage.h
  1098. * src/BtRejectMessage.cc
  1099. * src/BtRejectMessage.h
  1100. * src/BtRejectMessageValidator.h: Removed
  1101. * src/BtRequestMessage.cc
  1102. * src/BtRequestMessage.h
  1103. * src/BtRequestMessageValidator.h: Removed
  1104. * src/BtSuggestPieceMessage.cc
  1105. * src/BtSuggestPieceMessage.h
  1106. * src/BtSuggestPieceMessageValidator.h: Removed
  1107. * src/BtUnchokeMessage.cc
  1108. * src/BtUnchokeMessage.h
  1109. * src/DefaultBtMessageFactory.cc
  1110. * src/IndexBtMessage.cc
  1111. * src/IndexBtMessage.h
  1112. * src/IndexBtMessageValidator.h
  1113. * src/Makefile.am
  1114. * src/PeerMessageUtil.cc
  1115. * src/PeerMessageUtil.h
  1116. * src/RangeBtMessage.cc
  1117. * src/RangeBtMessage.h
  1118. * src/RangeBtMessageValidator.h
  1119. * src/SimpleBtMessage.cc
  1120. * src/SimpleBtMessage.h
  1121. * src/ZeroBtMessage.cc
  1122. * src/ZeroBtMessage.h
  1123. * test/BtRequestMessageTest.cc
  1124. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Reverted usage_text.h to r1093 to avoid to lose translated
  1126. messages.
  1127. * src/usage_text.h
  1128. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1129. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1130. declared as non-const previously is now const and defined in class
  1131. definition.
  1132. * src/AbstractBtMessage.cc
  1133. * src/AbstractBtMessage.h
  1134. * src/BtAllowedFastMessage.cc
  1135. * src/BtAllowedFastMessage.h
  1136. * src/BtBitfieldMessage.h
  1137. * src/BtCancelMessage.cc
  1138. * src/BtCancelMessage.h
  1139. * src/BtChokeMessage.cc
  1140. * src/BtChokeMessage.h
  1141. * src/BtExtendedMessage.cc
  1142. * src/BtExtendedMessage.h
  1143. * src/BtHandshakeMessage.cc
  1144. * src/BtHandshakeMessage.h
  1145. * src/BtHaveAllMessage.cc
  1146. * src/BtHaveAllMessage.h
  1147. * src/BtHaveMessage.cc
  1148. * src/BtHaveMessage.h
  1149. * src/BtHaveNoneMessage.cc
  1150. * src/BtHaveNoneMessage.h
  1151. * src/BtInterestedMessage.cc
  1152. * src/BtInterestedMessage.h
  1153. * src/BtKeepAliveMessage.cc
  1154. * src/BtKeepAliveMessage.h
  1155. * src/BtMessage.h
  1156. * src/BtNotInterestedMessage.cc
  1157. * src/BtNotInterestedMessage.h
  1158. * src/BtPieceMessage.h
  1159. * src/BtPortMessage.cc
  1160. * src/BtPortMessage.h
  1161. * src/BtRejectMessage.cc
  1162. * src/BtRejectMessage.h
  1163. * src/BtRequestMessage.cc
  1164. * src/BtRequestMessage.h
  1165. * src/BtSuggestPieceMessage.cc
  1166. * src/BtSuggestPieceMessage.h
  1167. * src/BtUnchokeMessage.cc
  1168. * src/BtUnchokeMessage.h
  1169. * src/SimpleBtMessage.cc
  1170. * src/SimpleBtMessage.h
  1171. * test/MockBtMessage.h
  1172. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Use FileEntry::exists()
  1174. * src/MultiDiskAdaptor.cc
  1175. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Added exists()
  1177. * src/FileEntry.cc
  1178. * src/FileEntry.h
  1179. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Added missing prefix dir.
  1181. * src/download_helper.cc
  1182. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1184. * src/CopyDiskAdaptor.cc: Removed
  1185. * src/CopyDiskAdaptor.h: Removed
  1186. * src/DefaultPieceStorage.cc
  1187. * src/Makefile.am
  1188. * src/OptionHandlerFactory.cc
  1189. * src/prefs.cc
  1190. * src/prefs.h
  1191. * src/usage_text.h
  1192. * test/CopyDiskAdaptorTest.cc: Removed
  1193. * test/Makefile.am
  1194. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1195. Rewritten isSameFileBeingDownloaded()
  1196. * src/RequestGroupMan.cc
  1197. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Removed getName() from DownloadContext. getName() is declared in
  1199. BtContext.
  1200. * src/BtContext.h
  1201. * src/DownloadContext.h
  1202. * src/SingleFileDownloadContext.cc
  1203. * src/SingleFileDownloadContext.h
  1204. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1205. in AbstractSingleDiskAdaptor.
  1206. * src/AbstractSingleDiskAdaptor.h
  1207. * src/DiskAdaptor.h
  1208. * src/MultiDiskAdaptor.h
  1209. * src/RequestGroup.cc
  1210. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1211. MultiDiskAdaptor.
  1212. * src/DefaultPieceStorage.cc
  1213. * src/MultiDiskAdaptor.cc
  1214. * src/MultiDiskAdaptor.h
  1215. * test/MultiDiskAdaptorTest.cc
  1216. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. FileEntry::getPath() contains store(top level) directory to
  1218. simplify path handling operation. In the previous implementation,
  1219. store directory is concatenated to FileEntry::getPath() in
  1220. DownloadContext.
  1221. * src/BtDependency.cc
  1222. * src/BtPostDownloadHandler.cc
  1223. * src/CopyDiskAdaptor.cc
  1224. * src/DefaultBtContext.cc
  1225. * src/DirectDiskAdaptor.cc
  1226. * src/FileEntry.cc
  1227. * src/FileEntry.h
  1228. * src/FtpNegotiationCommand.cc
  1229. * src/HttpResponse.cc
  1230. * src/HttpResponseCommand.cc
  1231. * src/Metalink2RequestGroup.cc
  1232. * src/MultiDiskAdaptor.cc
  1233. * src/MultiDiskAdaptor.h
  1234. * src/MultiFileAllocationIterator.cc
  1235. * src/RequestGroup.cc
  1236. * src/SingleFileDownloadContext.cc
  1237. * src/SingleFileDownloadContext.h
  1238. * src/download_helper.cc
  1239. * test/BtDependencyTest.cc
  1240. * test/CopyDiskAdaptorTest.cc
  1241. * test/DefaultBtContextTest.cc
  1242. * test/DefaultBtProgressInfoFileTest.cc
  1243. * test/DirectDiskAdaptorTest.cc
  1244. * test/DownloadHelperTest.cc
  1245. * test/FileEntryTest.cc
  1246. * test/MultiDiskAdaptorTest.cc
  1247. * test/MultiFileAllocationIteratorTest.cc
  1248. * test/RequestGroupTest.cc
  1249. * test/SingleFileDownloadContextTest.cc
  1250. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. Fixed compiler warning
  1252. * src/download_helper.cc
  1253. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1254. Throw exception if same infohash torrent is now downloading.
  1255. * src/RequestGroup.cc
  1256. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1257. Added --dry-run option. In this mode, aria2 just checks whether
  1258. the remote file is available and doesn't download data. This
  1259. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1260. are canceled in this mode.
  1261. * src/FtpNegotiationCommand.cc
  1262. * src/HttpResponseCommand.cc
  1263. * src/HttpResponseCommand.h
  1264. * src/OptionHandlerFactory.cc
  1265. * src/RequestGroup.cc
  1266. * src/RequestGroupMan.cc
  1267. * src/prefs.cc
  1268. * src/prefs.h
  1269. * src/usage_text.h
  1270. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Fixed compiler waring
  1272. * test/UriListParserTest.cc
  1273. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Parse options in -i list using OptionParser.
  1275. * src/UriListParser.cc
  1276. * src/UriListParser.h
  1277. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Don't reset URI in retry to avoid additional round trips because
  1279. of redirects.
  1280. * src/AbstractCommand.cc
  1281. * src/OptionHandlerFactory.cc
  1282. * src/prefs.cc
  1283. * src/prefs.h
  1284. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Declared hide() in OptionHandler.
  1286. * src/NameMatchOptionHandler.h
  1287. * src/OptionHandler.h
  1288. * src/OptionHandlerImpl.h
  1289. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Updated doc
  1291. * src/Peer.h
  1292. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Added log message in setStatusInternal()
  1294. * src/ServerStat.cc
  1295. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1297. effectively exclude failed server.
  1298. * src/AbstractCommand.cc
  1299. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Added --index-out option to specify each file path for torrent.
  1301. Here index shown in --show-files option is used to specify which
  1302. file path should be altered. For example, to change the file path
  1303. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1304. option multiple times: --index-out=1=aria2.tar.bz2
  1305. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1306. available. This option can be specified in -i list.
  1307. * src/DefaultBtContext.cc
  1308. * src/DefaultBtContext.h
  1309. * src/MultiDiskAdaptor.cc
  1310. * src/MultiDiskAdaptor.h
  1311. * src/MultiFileAllocationIterator.cc
  1312. * src/OptionHandlerFactory.cc
  1313. * src/OptionHandlerImpl.h
  1314. * src/Util.cc
  1315. * src/Util.h
  1316. * src/download_helper.cc
  1317. * src/prefs.cc
  1318. * src/prefs.h
  1319. * src/usage_text.h
  1320. * test/DefaultBtContextTest.cc
  1321. * test/MultiDiskAdaptorTest.cc
  1322. * test/MultiFileAllocationIteratorTest.cc
  1323. * test/UtilTest.cc
  1324. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Use Util::pathJoin()
  1326. * src/MetalinkParserController.cc
  1327. * test/test.xml
  1328. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Use Util::pathJoin()
  1330. * src/DefaultBtContext.cc
  1331. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1332. Added Util::pathJoin()
  1333. * src/Util.h
  1334. * test/UtilTest.cc
  1335. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Applied basename function to remove directory element in
  1337. content-disposition value.
  1338. Return empty string if content-disposition value is ".." or ".".
  1339. * src/Util.cc
  1340. * test/UtilTest.cc
  1341. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Added --max-overall-download-limit in man page.
  1343. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1344. * doc/aria2c.1.txt
  1345. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1346. Added --max-overall-download-limit option. Now --max-upload-limit
  1347. option is not ignored when --max-overall-upload-limit option has
  1348. non-zero value. aria2 checks download(upload) speed in the order:
  1349. first checks overall speed limit and if it is not exceeded, then
  1350. checks speed limit per download. Thus you can specify both
  1351. value. For example, set --max-overall-download-limit=1M and
  1352. --max-download-limit=500K to prevent from one download from eating
  1353. all overall speed limit.
  1354. * src/DefaultBtInteractive.cc
  1355. * src/DefaultBtInteractive.h
  1356. * src/DefaultBtMessageDispatcher.cc
  1357. * src/DefaultBtMessageDispatcher.h
  1358. * src/DownloadCommand.cc
  1359. * src/DownloadCommand.h
  1360. * src/FtpNegotiationCommand.cc
  1361. * src/HttpResponseCommand.cc
  1362. * src/OptionHandlerFactory.cc
  1363. * src/PeerInteractionCommand.cc
  1364. * src/RequestGroup.cc
  1365. * src/RequestGroup.h
  1366. * src/RequestGroupMan.cc
  1367. * src/RequestGroupMan.h
  1368. * src/prefs.cc
  1369. * src/prefs.h
  1370. * src/usage_text.h
  1371. * test/DefaultBtMessageDispatcherTest.cc
  1372. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Documented select-file option in Input File section.
  1374. Documented --http-auth-challenge option.
  1375. * doc/aria2c.1.txt
  1376. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Now select-file can be specified in the uri list(-i list).
  1378. * src/BtContext.cc
  1379. * src/BtContext.h
  1380. * src/RequestGroup.cc
  1381. * src/Sequence.h
  1382. * src/download_helper.cc
  1383. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Made the upper value of --max-concurrent-downloads options unlimited.
  1385. * src/OptionHandlerFactory.cc
  1386. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Fixed the bug that disk writer is not created even if it shares
  1388. same piece with the preceding file if the length of previous file
  1389. is 0.
  1390. * src/MultiDiskAdaptor.cc
  1391. * test/MultiDiskAdaptorTest.cc
  1392. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. In BitTorrent, Open files in read-only mode for hash check. After
  1394. that, re-open file in read/write mode only when the download is
  1395. not finished.
  1396. * src/AbstractDiskWriter.cc
  1397. * src/AbstractDiskWriter.h
  1398. * src/AbstractSingleDiskAdaptor.cc
  1399. * src/AbstractSingleDiskAdaptor.h
  1400. * src/BtCheckIntegrityEntry.cc
  1401. * src/DiskAdaptor.h
  1402. * src/DiskWriter.h
  1403. * src/MultiDiskAdaptor.cc
  1404. * src/MultiDiskAdaptor.h
  1405. * src/RequestGroup.cc
  1406. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Added --http-auth-challenge option. If it is set to true(by
  1408. default), aria2 sends HTTP authorization header only when it is
  1409. requested by the server. If false is set, then authorization
  1410. header is always sent to the server. This is useful for servers
  1411. that don't respond 401 code when authentication is required.
  1412. There is an exception: if username and password are embedded in
  1413. URI, authorization header is always sent to the server regardless
  1414. of this option.
  1415. * src/AuthConfigFactory.cc
  1416. * src/HttpSkipResponseCommand.cc
  1417. * src/OptionHandlerFactory.cc
  1418. * src/prefs.cc
  1419. * src/prefs.h
  1420. * src/usage_text.h
  1421. * test/AuthConfigFactoryTest.cc
  1422. * test/HttpRequestTest.cc
  1423. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. * Release 1.2.0
  1425. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1427. Thanks to all translators.
  1428. * po/es.po
  1429. * po/ja.po
  1430. * po/ru.po
  1431. * po/uk.po
  1432. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Call deleteSocketForReadCheck() before socket is closed.
  1434. * src/HttpListenCommand.cc
  1435. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Defined virtual destructor for BObject.
  1437. * src/bencode.h
  1438. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Rewritten BDE to make it efficient.
  1440. * src/bencode.cc
  1441. * src/bencode.h
  1442. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Removed function throw list.
  1444. * src/bencode.cc
  1445. * src/bencode.h
  1446. * test/BencodeTest.cc
  1447. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. Enclosed all URLs in double quotes in command-line examples.
  1449. * doc/aria2c.1.txt
  1450. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1451. Updated reference/see also section.
  1452. * README
  1453. * doc/aria2c.1.txt
  1454. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1455. Reorganized man page based on man man-pages.
  1456. * doc/aria2c.1.txt
  1457. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1459. because same documents are available in man page. Added
  1460. References section.
  1461. * README
  1462. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1464. PERFORMANCE PROFILE section.
  1465. * doc/aria2c.1.txt
  1466. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Rewritten the section for configuration file.
  1468. * README
  1469. * doc/aria2c.1.txt
  1470. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. Fixed the segmentation fault during execution of choking algorithm
  1472. in leecher state because of broken compare operator
  1473. implementation.
  1474. * src/BtLeecherStateChoke.cc
  1475. * src/BtLeecherStateChoke.h
  1476. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Open file in binary mode.
  1478. * src/CookieStorage.cc
  1479. * src/DHTSetup.cc
  1480. * src/DHTUtil.cc
  1481. * src/Netrc.cc
  1482. * src/NsCookieParser.cc
  1483. * src/ProtocolDetector.cc
  1484. * src/RequestGroupMan.cc
  1485. * src/Signature.cc
  1486. * src/bencode.cc
  1487. * src/download_helper.cc
  1488. * src/option_processing.cc
  1489. * test/CookieParserTest.cc
  1490. * test/DefaultBtProgressInfoFileTest.cc
  1491. * test/FileTest.cc
  1492. * test/GZipDecoderTest.cc
  1493. * test/RequestGroupManTest.cc
  1494. * test/SignatureTest.cc
  1495. * test/SingleFileAllocationIteratorTest.cc
  1496. * test/UriListParserTest.cc
  1497. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Removed operator[] because it is ambiguous with built-in []
  1499. operator.
  1500. * src/array_fun.h
  1501. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Fixed compile error
  1503. * src/OptionParser.cc
  1504. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Added missing call to arrayWrapperConst
  1506. * test/array_funTest.cc
  1507. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Use array_wrapper instead of array_ptr.
  1509. * src/DHTRoutingTableDeserializer.cc
  1510. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1512. * src/array_fun.h
  1513. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1514. Added array_wrapper template.
  1515. * src/array_fun.h
  1516. * test/array_funTest.cc
  1517. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Use operator T* of array_ptr.
  1519. * src/OptionParser.cc
  1520. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1521. Use localhost instead of 127.0.0.1
  1522. * test/FtpConnectionTest.cc
  1523. * test/MSEHandshakeTest.cc
  1524. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1525. Added operator T*
  1526. * src/array_fun.h
  1527. * test/array_funTest.cc
  1528. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Use dynamically allocated char array to detect memory access
  1530. violation.
  1531. * src/DHTRoutingTableDeserializer.cc
  1532. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1534. defined.
  1535. * src/PeerMessageUtil.cc
  1536. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1538. * configure.ac
  1539. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Added a check to see struct sockaddr_in has sin_len member.
  1541. * configure.ac
  1542. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1543. Fixed buffer overrun.
  1544. * src/DHTRoutingTableDeserializer.cc
  1545. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Added LL for long long int constant.
  1547. * test/FtpConnectionTest.cc
  1548. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Casted to unsigned int to suppress compiler warning on netbsd.
  1550. * src/BtRuntime.h
  1551. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1552. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1553. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1554. type time_t.
  1555. * src/SimpleLogger.cc
  1556. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Added test for FtpConnection::receiveSizeResponse().
  1558. * test/FtpConnectionTest.cc
  1559. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. Fix epoll error on the old kernel 2.6.8 or ealier.
  1561. * src/EpollEventPoll.cc
  1562. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1563. Use Util::parseLLInt instead of sscanf for portability. The
  1564. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1565. * src/FtpConnection.cc
  1566. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1567. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1568. block. It should not filter anything.
  1569. * src/BitfieldMan.cc
  1570. * src/ConsoleStatCalc.cc
  1571. * test/BitfieldManTest.cc
  1572. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1573. Fixed the bug that the boolean options that don't take arguments
  1574. don't work.
  1575. * src/OptionHandlerImpl.h
  1576. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Fixed broken selected file BitTorrent download.
  1578. * src/MultiDiskAdaptor.cc
  1579. * test/MultiDiskAdaptorTest.cc
  1580. * test/MultiFileAllocationIteratorTest.cc
  1581. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1582. Fixed #define guard for EpollEventPoll
  1583. * src/EpollEventPoll.h
  1584. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1585. Wait 2 seconds. 1 second is sometimes not enough.
  1586. * test/TimeSeedCriteriaTest.cc
  1587. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Use localhost instead of 127.0.0.1.
  1589. * test/DHTConnectionImplTest.cc
  1590. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Suppressed compiler warning.
  1592. * src/AdaptiveURISelector.cc
  1593. * src/DefaultPieceStorage.cc
  1594. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Defined virtual destructor.
  1596. * src/MetalinkParserState.h
  1597. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Give NULL for second argument of getaddrinfo instead of "0".
  1599. * src/NameResolver.cc
  1600. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1601. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1602. included strptime doesn't parse data for this format.
  1603. * src/FtpConnection.cc
  1604. * test/FtpConnectionTest.cc
  1605. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Removed tests giving -1 for unsigned argument.
  1607. * test/SingleFileDownloadContextTest.cc
  1608. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Don't use sha256 in tests because it might not be supported by the
  1610. SSL library.
  1611. * test/MetalinkProcessorTest.cc
  1612. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1613. Removed tests giving -1 for unsigned argument.
  1614. * test/AlphaNumberDecoratorTest
  1615. * test/BitfieldManTest.cc
  1616. * test/DefaultBtContextTest.cc
  1617. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1618. Fixed compile error without libcares when epoll is available.
  1619. * src/EpollEventPoll.cc
  1620. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1621. Included fstream instead of iostream.
  1622. * test/SignatureTest.cc
  1623. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Removed #include <algorithm>
  1625. * test/RequestGroupTest.cc
  1626. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1627. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1628. using RequestGroup::extractURIResult().
  1629. * src/AdaptiveURISelector.cc
  1630. * src/RequestGroup.cc
  1631. * src/RequestGroup.h
  1632. * test/RequestGroupTest.cc
  1633. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Added tests for array_ptr.
  1635. * test/array_funTest.cc
  1636. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Don't send ip parameter to a tracker if ip parameter is empty
  1638. string.
  1639. * src/DefaultBtAnnounce.cc
  1640. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Adjusted line feed.
  1642. * src/version_usage.cc
  1643. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Print tags, possible values when OptionHandlerException is caught.
  1645. * src/option_processing.cc
  1646. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Changed the message for FatalException.
  1648. * src/OptionParser.cc
  1649. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Documented --bt-external-ip option in man page. Updated man pages
  1651. for --proxy-method option.
  1652. * doc/aria2c.1.txt
  1653. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Use GET method for FTP via HTTP proxy.
  1655. * src/FtpInitiateConnectionCommand.cc
  1656. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1657. Changed the default value of --proxy-method option from 'tunnel'
  1658. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1659. option.
  1660. * src/AbstractCommand.cc
  1661. * src/AbstractCommand.h
  1662. * src/FtpInitiateConnectionCommand.cc
  1663. * src/HttpDownloadCommand.cc
  1664. * src/HttpInitiateConnectionCommand.cc
  1665. * src/HttpInitiateConnectionCommand.h
  1666. * src/OptionHandlerFactory.cc
  1667. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1668. Initialized _logger
  1669. * src/SelectEventPoll.cc
  1670. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. Defined a copy constructor for the same type.
  1672. * src/SharedHandle.h
  1673. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Added OptionParser::parseArg() which internally uses getopt_long
  1675. to parse command-line options. All command-line options are now
  1676. configured by OptionHandler. No manual editing of struct option*
  1677. is required any more.
  1678. * src/NameMatchOptionHandler.h
  1679. * src/OptionHandler.h
  1680. * src/OptionHandlerFactory.cc
  1681. * src/OptionHandlerImpl.h
  1682. * src/OptionParser.cc
  1683. * src/OptionParser.h
  1684. * src/array_fun.h
  1685. * src/main.cc
  1686. * src/option_processing.cc
  1687. * test/OptionHandlerTest.cc
  1688. * test/OptionParserTest.cc
  1689. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Fixed configure error with --disable-epoll
  1691. * configure.ac
  1692. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Fixed compile error when HAVE_EPOLL is not defined.
  1694. Fixed linker error on bigendian systems.
  1695. * src/SocketCore.cc
  1696. * src/SocketCore.h
  1697. * test/DefaultBtProgressInfoFileTest.cc
  1698. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Added --bt-external-ip option. You can specify the external IP
  1700. address to report to a BitTorrent tracker. Although this function
  1701. is named 'external', it can accept any kind of IP addresses.
  1702. * src/DefaultBtAnnounce.cc
  1703. * src/OptionHandlerFactory.cc
  1704. * src/option_processing.cc
  1705. * src/prefs.cc
  1706. * src/prefs.h
  1707. * src/usage_text.h
  1708. * test/DefaultBtAnnounceTest.cc
  1709. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1710. Extracted the algorithm to find the longest incremental sequence
  1711. as max_sequence template.
  1712. * src/LongestSequencePieceSelector.cc
  1713. * src/a2algo.h
  1714. * test/Makefile.am
  1715. * test/a2algoTest.cc
  1716. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1718. * src/usage_text.h
  1719. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1720. Updated doc for --uri-selector, --http-server-listen-port and
  1721. --enable-http-server option. Documented --event-poll option.
  1722. * doc/aria2c.1.txt
  1723. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Updated doc for --enable-http-server.
  1725. * src/usage_text.h
  1726. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Documented --http-server-listen-port and --enable-http-server in
  1728. man page.
  1729. * doc/aria2c.1.txt
  1730. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1732. translations. Thanks to all translators.
  1733. * po/es.po
  1734. * po/id.po
  1735. * po/it.po
  1736. * po/ru.po
  1737. * po/uk.po
  1738. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1739. Bump up version number to 1.2.0
  1740. * configure.ac
  1741. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1742. BtContext::getAnnounceTiers() now returns const reference.
  1743. * src/BtContext.h
  1744. * src/DefaultBtContext.cc
  1745. * src/DefaultBtContext.h
  1746. * test/MockBtContext.h
  1747. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. Change the number of retries for tracker request based on the
  1749. number of available tracker in a torrent file.
  1750. * src/TrackerWatcherCommand.cc
  1751. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1752. Added _maxTries property to RequestGroup and assign the option
  1753. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1754. RequestGroup::getMaxTries() instead of
  1755. Option::getAsInt(PREF_MAX_TRIES).
  1756. * src/AbstractCommand.cc
  1757. * src/RequestGroup.cc
  1758. * src/RequestGroup.h
  1759. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1760. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1761. Mandriva. I modified the patch: make RequestGroup have the
  1762. timeout value and AdaptiveURISelector directly modifies that
  1763. value.
  1764. * src/AbstractCommand.cc
  1765. * src/AdaptiveURISelector.cc
  1766. * src/AdaptiveURISelector.h
  1767. * src/FtpNegotiationCommand.cc
  1768. * src/RequestGroup.cc
  1769. * src/RequestGroup.h
  1770. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1771. Fixed compiler warning
  1772. * test/IteratableChecksumValidatorTest.cc
  1773. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1775. integrated downloads. This PieceSelector subclass finds the
  1776. longest continuous sequence in the available missing pieces and
  1777. selects the last index of such sequence. This makes HTTP/FTP
  1778. connections less interrupted by the pieces obtained by BitTorrent
  1779. peers.
  1780. * src/DefaultPieceStorage.cc
  1781. * src/DefaultPieceStorage.h
  1782. * src/LongestSequencePieceSelector.cc
  1783. * src/LongestSequencePieceSelector.h
  1784. * src/Makefile.am
  1785. * src/PieceSelector.h
  1786. * src/RarestPieceSelector.h
  1787. * src/RequestGroup.cc
  1788. * test/BtDependencyTest.cc
  1789. * test/DefaultPieceStorageTest.cc
  1790. * test/IteratableChecksumValidatorTest.cc
  1791. * test/LongestSequencePieceSelectorTest.cc
  1792. * test/Makefile.am
  1793. * test/SegmentManTest.cc
  1794. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Fixed the bug that the average speed is wrong in
  1796. http/ftp/BitTorrent integrated download. Only the download bytes
  1797. in BitTorrent were considered.
  1798. * src/RequestGroup.cc
  1799. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Choose port for BitTorrent/DHT randomly from the specified range.
  1801. * src/DHTConnectionImpl.cc
  1802. * src/PeerListenCommand.cc
  1803. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Send HTTP Authorization header only if it is requested by the
  1805. server(response 401). There are some exceptions. The authorization
  1806. header for proxy is always sent if it is available without request
  1807. by the server. If username/password is specified in the URI, it
  1808. is immediately sent to the server without request by the server.
  1809. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1810. SharedHandle<AuthConfig>().
  1811. NetrcAuthResolver::resolveAuthConfig() returns
  1812. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1813. * src/AbstractAuthResolver.cc
  1814. * src/AbstractProxyRequestCommand.cc
  1815. * src/AuthConfigFactory.cc
  1816. * src/AuthConfigFactory.h
  1817. * src/HttpConnection.cc
  1818. * src/HttpRequest.cc
  1819. * src/HttpRequest.h
  1820. * src/HttpResponse.cc
  1821. * src/HttpResponseCommand.cc
  1822. * src/HttpSkipResponseCommand.cc
  1823. * test/AuthConfigFactoryTest.cc
  1824. * test/HttpRequestTest.cc
  1825. * test/HttpResponseTest.cc
  1826. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1827. Remove leading "--" from help keyword and a substring after "="
  1828. from help keyword, so that one can query options by '-h--max-' or
  1829. '-hmax-peers=10'.
  1830. * src/option_processing.cc
  1831. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Rewritten PStringVisitor and its implementation.
  1833. * src/PStringBuildVisitor.cc
  1834. * src/PStringBuildVisitor.h
  1835. * src/PStringDatum.h
  1836. * src/PStringNumLoop.h
  1837. * src/PStringSegment.cc
  1838. * src/PStringSegment.h
  1839. * src/PStringSelect.h
  1840. * src/PStringVisitor.h
  1841. * src/download_helper.cc
  1842. * test/PStringBuildVisitorTest.cc
  1843. * test/ParameterizedStringParserTest.cc
  1844. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Persist connection between the built-in HTTP server and a client
  1846. if a client supports keep-alive. Fixed the bug that aria2 exits
  1847. when the HTTP server receives EOF from a client.
  1848. * src/HttpServer.cc
  1849. * src/HttpServer.h
  1850. * src/HttpServerCommand.cc
  1851. * src/HttpServerCommand.h
  1852. * src/HttpServerResponseCommand.cc
  1853. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1854. Added experimental built-in HTTP server. Currently, when a client
  1855. accesses to the server, it responds with the current download
  1856. progress. By default, it is disabled. To enable the server, give
  1857. --enable-http-server option. To change the default port number
  1858. for the server to listen to, use --http-server-listen-port option.
  1859. The response HTML is very simple and refreshes it self each 1
  1860. second. Because of this refresh, you see flicker in normal web
  1861. browser such as Firefox. I recommend to use console-based browser
  1862. such as elinks, w3m. To connect to the server, run 'elinks
  1863. http://localhost:6800/' while running aria2. Please replace port
  1864. number '6800'(which is default) with your preference.
  1865. * src/DownloadEngineFactory.cc
  1866. * src/HttpHeader.cc
  1867. * src/HttpHeader.h
  1868. * src/HttpHeaderProcessor.cc
  1869. * src/HttpHeaderProcessor.h
  1870. * src/HttpListenCommand.cc
  1871. * src/HttpListenCommand.h
  1872. * src/HttpServer.cc
  1873. * src/HttpServer.h
  1874. * src/HttpServerCommand.cc
  1875. * src/HttpServerCommand.h
  1876. * src/HttpServerResponseCommand.cc
  1877. * src/HttpServerResponseCommand.h
  1878. * src/Makefile.am
  1879. * src/OptionHandlerFactory.cc
  1880. * src/Util.cc
  1881. * src/Util.h
  1882. * src/help_tags.h
  1883. * src/option_processing.cc
  1884. * src/prefs.cc
  1885. * src/prefs.h
  1886. * src/usage_text.h
  1887. * test/HttpHeaderProcessorTest.cc
  1888. * test/UtilTest.cc
  1889. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1890. Removed.
  1891. * src/CheckIntegrityMan.cc
  1892. * src/FileAllocationMan.cc
  1893. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Made (piece) hash check sequential for each RequestGroup because
  1895. simultaneous hash check is slower than sequential execution.
  1896. * src/CheckIntegrityCommand.cc
  1897. * src/CheckIntegrityDispatcherCommand.cc
  1898. * src/CheckIntegrityDispatcherCommand.h
  1899. * src/CheckIntegrityMan.h
  1900. * src/ConsoleStatCalc.cc
  1901. * src/DownloadCommand.cc
  1902. * src/DownloadEngine.cc
  1903. * src/DownloadEngine.h
  1904. * src/DownloadEngineFactory.cc
  1905. * src/Makefile.am
  1906. * src/Makefile.in
  1907. * src/RequestGroup.cc
  1908. * src/StatCalc.h
  1909. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1910. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1911. SequentialDispatcherCommand.
  1912. * src/FileAllocationDispatcherCommand.cc
  1913. * src/SequentialDispatcherCommand.h
  1914. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Rewritten FileAllocationDispatcherCommand using brand new
  1916. SequentialDispatcherCommand.
  1917. * src/DownloadEngineFactory.cc
  1918. * src/FileAllocationCommand.cc
  1919. * src/FileAllocationDispatcherCommand.cc
  1920. * src/FileAllocationDispatcherCommand.h
  1921. * src/Makefile.am
  1922. * src/SequentialDispatcherCommand.h
  1923. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1924. Replaced FileAllocationMan with
  1925. SequentialPicker<FileAllocationEntry>.
  1926. * src/BtCheckIntegrityEntry.cc
  1927. * src/ConsoleStatCalc.cc
  1928. * src/DownloadEngine.cc
  1929. * src/DownloadEngine.h
  1930. * src/DownloadEngineFactory.cc
  1931. * src/FileAllocationCommand.cc
  1932. * src/FileAllocationDispatcherCommand.cc
  1933. * src/FileAllocationMan.h
  1934. * src/Makefile.am
  1935. * src/SequentialPicker.h
  1936. * src/StatCalc.h
  1937. * src/StreamCheckIntegrityEntry.cc
  1938. * test/Makefile.am
  1939. * test/SequentialPickerTest.cc
  1940. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. Added doc for adaptive URI selector.
  1942. * doc/aria2c.1.txt
  1943. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1944. Added doc for adaptive URI selector.
  1945. * src/usage_text.h
  1946. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Added doc for --bt-max-peers option.
  1948. * doc/aria2c.1.txt
  1949. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1950. Added doc for --bt-hash-check-seed option.
  1951. * doc/aria2c.1.txt
  1952. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. Documented exit codes.
  1954. * doc/aria2c.1.txt
  1955. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1956. Added --bt-max-peers option to specify the maximum number of peers
  1957. per torrent. 0 means unlimited number of peers.
  1958. * src/ActivePeerConnectionCommand.cc
  1959. * src/BtRuntime.h
  1960. * src/DefaultPeerStorage.cc
  1961. * src/DefaultPeerStorage.h
  1962. * src/OptionHandlerFactory.cc
  1963. * src/RequestGroup.cc
  1964. * src/option_processing.cc
  1965. * src/prefs.cc
  1966. * src/prefs.h
  1967. * src/usage_text.h
  1968. * test/DefaultPeerStorageTest.cc
  1969. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Added --bt-hash-check-seed option. If true is given to this
  1971. option, after hash check using --check-integrity option and file
  1972. is complete, continue to seed file. If you want to check file and
  1973. download it only when it is damaged or incomplete, set this option
  1974. to false. This option has effect only on BitTorrent download.
  1975. The default value is true(This is the same behavior with the
  1976. previous release).
  1977. * src/BtCheckIntegrityEntry.cc
  1978. * src/OptionHandlerFactory.cc
  1979. * src/option_processing.cc
  1980. * src/prefs.cc
  1981. * src/prefs.h
  1982. * src/usage_text.h
  1983. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Updated copyright year.
  1985. * src/version_usage.cc
  1986. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1987. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1988. * doc/aria2c.1.txt
  1989. * src/usage_text.h
  1990. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. Made the max value of split option unlimited.
  1992. * doc/aria2c.1.txt
  1993. * src/OptionHandlerFactory.cc
  1994. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Fixed compile warning/error.
  1996. * src/DownloadResult.h
  1997. * src/HttpDownloadCommand.cc
  1998. * src/ServerStat.cc
  1999. * test/RequestGroupTest.cc
  2000. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Added --event-poll option to select the method for polling events.
  2002. The available methods are "select" and "epoll". "epoll" is
  2003. available on Linux only. The earlier release has the compile
  2004. option to choose from these methods.
  2005. * configure.ac
  2006. * src/RequestGroupMan.cc
  2007. * src/OptionHandlerFactory.cc
  2008. * src/EpollEventPoll.h
  2009. * src/StreamFileAllocationEntry.cc
  2010. * src/a2io.h
  2011. * src/SelectEventPoll.h
  2012. * src/option_processing.cc
  2013. * src/prefs.h
  2014. * src/EpollEventPoll.cc
  2015. * src/EventPoll.h
  2016. * src/SocketCore.h
  2017. * src/Makefile.am
  2018. * src/main.cc
  2019. * src/DownloadEngine.h
  2020. * src/SelectEventPoll.cc
  2021. * src/DownloadEngine.cc
  2022. * src/SocketCore.cc
  2023. * src/DownloadEngineFactory.cc
  2024. * src/Makefile.in
  2025. * src/prefs.cc
  2026. * src/usage_text.h
  2027. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2028. Included RecoverableException.h from main.cc
  2029. * src/main.cc
  2030. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2031. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2032. now returns last error encountered in the HTTP/FTP downloads as a
  2033. exit status value. If all downloads finished successfully, aria2
  2034. returns 0. The error code is defined in src/DownloadResult.h.
  2035. The error occurred in the download currently in progress is not
  2036. reported as a last error. If no error has encountered but there
  2037. are in progress or waiting downloads, aria2 returns 7.
  2038. * src/AbstractCommand.cc
  2039. * src/DlAbortEx.h
  2040. * src/DlRetryEx.h
  2041. * src/DownloadCommand.cc
  2042. * src/DownloadFailureException.h
  2043. * src/DownloadResult.h
  2044. * src/FtpNegotiationCommand.cc
  2045. * src/HttpSkipResponseCommand.cc
  2046. * src/Makefile.am
  2047. * src/MultiUrlRequestInfo.cc
  2048. * src/MultiUrlRequestInfo.h
  2049. * src/RecoverableException.h
  2050. * src/RequestGroup.cc
  2051. * src/RequestGroup.h
  2052. * src/RequestGroupMan.cc
  2053. * src/RequestGroupMan.h
  2054. * src/URIResult.cc
  2055. * src/URIResult.h
  2056. * src/main.cc
  2057. * src/option_processing.cc
  2058. * test/RequestGroupTest.cc
  2059. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2060. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2061. patch adds AdaptiveURISelector, which selects one of the bests
  2062. mirrors for first and reserved connections. For supplementary
  2063. ones, it returns mirrors which has not been tested yet, and if
  2064. each of them already tested, returns mirrors which has to be
  2065. tested again. Otherwise, it doesn't return anymore mirrors.
  2066. * src/AdaptiveURISelector.cc
  2067. * src/AdaptiveURISelector.h
  2068. * src/FtpNegotiationCommand.cc
  2069. * src/HttpResponseCommand.cc
  2070. * src/Makefile.am
  2071. * src/Makefile.in
  2072. * src/OptionHandlerFactory.cc
  2073. * src/RequestGroup.cc
  2074. * src/RequestGroup.h
  2075. * src/RequestGroupMan.cc
  2076. * src/ServerStat.cc
  2077. * src/ServerStat.h
  2078. * src/ServerStatMan.cc
  2079. * src/SpeedCalc.cc
  2080. * src/URISelector.h
  2081. * src/prefs.cc
  2082. * src/prefs.h
  2083. * test/RequestGroupManTest.cc
  2084. * test/ServerStatManTest.cc
  2085. * test/ServerStatTest.cc
  2086. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Fixed unit test error.
  2088. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2089. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2090. * Release 1.1.2
  2091. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Updated Russian translation. Thanks to the translators.
  2093. * po/ru.po
  2094. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Added the description of --use-head option to man page.
  2096. * doc/aria2c.1.txt
  2097. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Bump up version number to 1.1.2
  2099. * configure.ac
  2100. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Added --use-head option to toggle whether HEAD method should be
  2102. used in the first HTTP request. By default aria2 uses HEAD method
  2103. as the first request. When the server doesn't recognize HEAD, then
  2104. give aria2 --use-head=false to force aria2 to use GET method
  2105. instead.
  2106. * src/OptionHandlerFactory.cc
  2107. * src/RequestGroupMan.cc
  2108. * src/option_processing.cc
  2109. * src/prefs.cc
  2110. * src/prefs.h
  2111. * src/usage_text.h
  2112. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2114. message is received before CHOKE message. The old implementation
  2115. doen't clear the use-bit of the piece when recieved REJECT
  2116. message.
  2117. * src/DefaultBtMessageDispatcher.cc
  2118. * test/DefaultBtMessageDispatcherTest.cc
  2119. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2120. * Release 1.1.1
  2121. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Bump up version number to 1.1.1.
  2123. * configure.ac
  2124. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2125. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2126. is printed repeatedly.
  2127. * src/ConsoleStatCalc.cc
  2128. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2129. * Release 1.1.0
  2130. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Added ifdef clause for conditional compilation.
  2132. * src/main.cc
  2133. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2135. translations. Thanks to all translators.
  2136. * po/ja.po
  2137. * po/ru.po
  2138. * po/uk.po
  2139. * po/zh_CN.po
  2140. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2141. Added the preceding ">>> " before the message "Printing the
  2142. contents of file..." to make the output more readable.
  2143. * src/main.cc
  2144. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Added try-catch block in the loop in showFiles() to continue the
  2146. operation even if the exception occurred in one file.
  2147. * src/main.cc (showFiles)
  2148. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Made messages in showFiles() translatable.
  2150. * po/aria2.pot
  2151. * src/main.cc
  2152. * src/message.h
  2153. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Print the contents of Torrent/Metalink files are printed without
  2155. -T/-M options.
  2156. * src/main.cc
  2157. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Escaped '--' with '\--'
  2159. * README
  2160. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Updated "How to build" section in README. Mentioned about
  2162. --with-ca-bundle compile option.
  2163. * README
  2164. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Bump up version number to 1.1.0.
  2166. * configure.ac
  2167. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2168. Added a note for --dht-listen-port option.
  2169. * doc/aria2c.1.txt
  2170. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Update doc for --realtime-chunk-checksum option.
  2172. * doc/aria2c.1.txt
  2173. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Update doc for --realtime-chunk-checksum option.
  2175. * src/usage_text.h
  2176. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2177. Updated French, Japanese, Russian and Ukrainian translations.
  2178. Thanks to all translators.
  2179. * po/fr.po
  2180. * po/ja.po
  2181. * po/ru.po
  2182. * po/uk.po
  2183. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Renamed aria2c.pot to aria2.pot
  2185. * po/aria2.pot
  2186. * po/aria2c.pot: Removed.
  2187. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2188. Removed MetaEntry.h
  2189. * src/Makefile.am
  2190. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. Rename file by appending digits if a local file exists and its
  2192. file size is larger than that of remote file with --continue
  2193. option. The old implementation just throws exception in such case.
  2194. * src/RequestGroup.cc
  2195. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Fixed the bug that download progress summary is not printed in the
  2197. interval specified by the option.
  2198. * src/ConsoleStatCalc.cc
  2199. * src/ConsoleStatCalc.h
  2200. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2201. Fixed compiler warning
  2202. * src/Cookie.cc
  2203. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2204. Fixed the cookie implementation based on RFC2965.
  2205. Now if a value in domain field is not started with dot, then
  2206. prepend dot. That means a cookie with domain=sf.net is sent to
  2207. wiki.sf.net.
  2208. * src/Cookie.cc
  2209. * test/CookieParserTest.cc
  2210. * test/CookieStorageTest.cc
  2211. * test/CookieTest.cc
  2212. * test/NsCookieParserTest.cc
  2213. * test/Sqlite3MozCookieParserTest.cc
  2214. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2216. is enabled and the server doesn't support keep-alive.
  2217. * src/AbstractCommand.cc
  2218. * src/DownloadCommand.cc
  2219. * src/HttpDownloadCommand.cc
  2220. * src/HttpDownloadCommand.h
  2221. * src/HttpResponseCommand.cc
  2222. * src/Request.cc
  2223. * src/Request.h
  2224. * test/RequestTest.cc
  2225. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Removed Dictionary/List/Data and its related classes.
  2227. * src/BencodeVisitor.cc: Removed.
  2228. * src/BencodeVisitor.h: Removed.
  2229. * src/Data.cc: Removed.
  2230. * src/Data.h: Removed.
  2231. * src/Dictionary.cc: Removed.
  2232. * src/Dictionary.h: Removed.
  2233. * src/List.cc: Removed.
  2234. * src/List.h: Removed.
  2235. * src/Makefile.am
  2236. * src/MetaEntry.h: Removed.
  2237. * src/MetaEntryVisitor.h: Removed.
  2238. * src/MetaFileUtil.cc: Removed.
  2239. * src/MetaFileUtil.h: Removed.
  2240. * test/BencodeVisitorTest.cc: Removed.
  2241. * test/DataTest.cc: Removed.
  2242. * test/DictionaryTest.cc: Removed.
  2243. * test/ListTest.cc: Removed.
  2244. * test/Makefile.am
  2245. * test/MetaFileUtilTest.cc: Removed.
  2246. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Removed include of MetaEntry.h
  2248. * test/DHTMessageTrackerEntryTest.cc
  2249. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Use BDE instead of Dictionary/List/Data.
  2251. * src/AnnounceList.cc
  2252. * src/AnnounceList.h
  2253. * test/AnnounceListTest.cc
  2254. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Use BDE instead of Dictionary/List/Data.
  2256. * src/DHTAbstractMessage.cc
  2257. * src/DHTAbstractMessage.h
  2258. * src/DHTAnnouncePeerMessage.cc
  2259. * src/DHTAnnouncePeerMessage.h
  2260. * src/DHTAnnouncePeerReplyMessage.cc
  2261. * src/DHTAnnouncePeerReplyMessage.h
  2262. * src/DHTFindNodeMessage.cc
  2263. * src/DHTFindNodeMessage.h
  2264. * src/DHTFindNodeReplyMessage.cc
  2265. * src/DHTFindNodeReplyMessage.h
  2266. * src/DHTGetPeersMessage.cc
  2267. * src/DHTGetPeersMessage.h
  2268. * src/DHTGetPeersReplyMessage.cc
  2269. * src/DHTGetPeersReplyMessage.h
  2270. * src/DHTMessageFactory.h
  2271. * src/DHTMessageFactoryImpl.cc
  2272. * src/DHTMessageFactoryImpl.h
  2273. * src/DHTMessageReceiver.cc
  2274. * src/DHTMessageTracker.cc
  2275. * src/DHTMessageTracker.h
  2276. * src/DHTPingMessage.cc
  2277. * src/DHTPingMessage.h
  2278. * src/DHTPingReplyMessage.cc
  2279. * src/DHTPingReplyMessage.h
  2280. * src/DHTQueryMessage.cc
  2281. * src/DHTQueryMessage.h
  2282. * src/DHTResponseMessage.cc
  2283. * src/DHTResponseMessage.h
  2284. * test/DHTAnnouncePeerMessageTest.cc
  2285. * test/DHTAnnouncePeerReplyMessageTest.cc
  2286. * test/DHTFindNodeMessageTest.cc
  2287. * test/DHTFindNodeReplyMessageTest.cc
  2288. * test/DHTGetPeersMessageTest.cc
  2289. * test/DHTGetPeersReplyMessageTest.cc
  2290. * test/DHTMessageFactoryImplTest.cc
  2291. * test/DHTMessageTrackerTest.cc
  2292. * test/DHTPingMessageTest.cc
  2293. * test/DHTPingReplyMessageTest.cc
  2294. * test/MockDHTMessageFactory.h
  2295. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Added tests the case where length < 0 is specified.
  2297. * test/BencodeTest.cc
  2298. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. Fixed memory leak in decoderawstring()
  2300. * src/bencode.cc
  2301. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2302. Added missing #ifdef guard. Added uc() function for String and
  2303. removeKey() for Dict.
  2304. * src/bencode.cc
  2305. * src/bencode.h
  2306. * test/BencodeTest.cc
  2307. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Use BDE instead of Dictionary/List/Data.
  2309. * src/HandshakeExtensionMessage.cc
  2310. * src/HandshakeExtensionMessage.h
  2311. * test/HandshakeExtensionMessageTest.cc
  2312. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2313. Added --max-overall-upload-limit option. This option limits the
  2314. overall upload speed. Stated in help message that the existing
  2315. --max-upload-limit option limits the upload speed per each
  2316. torrent. Man page is also updated.
  2317. * doc/aria2c.1.txt
  2318. * src/DefaultBtMessageDispatcher.cc
  2319. * src/DefaultBtMessageDispatcher.h
  2320. * src/OptionHandlerFactory.cc
  2321. * src/PeerInteractionCommand.cc
  2322. * src/option_processing.cc
  2323. * src/prefs.cc
  2324. * src/prefs.h
  2325. * src/usage_text.h
  2326. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2327. Use BDE instead of Dictionary/List/Data classes.
  2328. * src/CompactPeerListProcessor.cc
  2329. * src/CompactPeerListProcessor.h
  2330. * src/DefaultBtAnnounce.cc
  2331. * src/DefaultBtContext.cc
  2332. * src/DefaultBtContext.h
  2333. * src/DefaultPeerListProcessor.cc
  2334. * src/DefaultPeerListProcessor.h
  2335. * src/DelegatingPeerListProcessor.cc
  2336. * src/DelegatingPeerListProcessor.h
  2337. * src/PeerListProcessor.h
  2338. * src/UTPexExtensionMessage.cc
  2339. * src/Util.h
  2340. * src/message.h
  2341. * test/DefaultBtContextTest.cc
  2342. * test/DefaultPeerListProcessorTest.cc
  2343. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2344. Added bencode helper functions and BDE class.
  2345. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2346. * src/Makefile.am
  2347. * src/bencode.cc
  2348. * src/bencode.h
  2349. * test/BencodeTest.cc
  2350. * test/Makefile.am
  2351. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2352. Fixed the bug that bad URI is sent to the tracker when the announe
  2353. URI in torrent file includes query.
  2354. * src/DefaultBtAnnounce.cc
  2355. * test/DefaultBtAnnounceTest.cc
  2356. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Added Option::blank().
  2358. Use !Option::blank(name) instead of Option::defined(name) for
  2359. the options that take filename.
  2360. * src/MultiUrlRequestInfo.cc
  2361. * src/Option.cc
  2362. * src/Option.h
  2363. * src/main.cc
  2364. * src/option_processing.cc
  2365. * test/OptionTest.cc
  2366. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2367. Documented the default value of --check-certificate option in man
  2368. page.
  2369. * doc/aria2c.1.txt
  2370. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Enabled --check-certificate by default. Added compile
  2372. time(configure) option --with-ca-bundle to specify CA bundle.
  2373. Warn if --check-certificate=true and --ca-certificate is not
  2374. specified or loading CA certificate is failed.
  2375. * configure.ac
  2376. * src/MultiUrlRequestInfo.cc
  2377. * src/OptionHandlerFactory.cc
  2378. * src/message.h
  2379. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2380. Mentioned https tag in help option.
  2381. * doc/aria2c.1.txt
  2382. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2383. Added `https' tag to help option category. Added https tag to
  2384. --ca-certificate, --certificate, --check-certificate and
  2385. --private-key option.
  2386. * src/OptionHandlerFactory.cc
  2387. * src/help_tags.h
  2388. * src/option_processing.cc
  2389. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Changed the package name from `aria2c' to `aria2' in order to fix
  2391. the packaging issue in Debian and Fedora. The name of the
  2392. executable is not changed.
  2393. * configure.ac
  2394. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Fixed typos
  2396. * src/usage_text.h
  2397. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2398. Fixed typos and updated doc.
  2399. * README
  2400. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Fixed typos
  2402. * doc/aria2c.1.txt
  2403. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2404. Fixed typos
  2405. * src/usage_text.h
  2406. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2407. Print a message when no files to download.
  2408. * src/download_helper.cc
  2409. * src/main.cc
  2410. * src/message.h
  2411. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2412. RFC3986 complied Percent-Encoding(urlencode).
  2413. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2414. ones.
  2415. * src/Request.cc
  2416. * src/Util.cc
  2417. * src/Util.h
  2418. * test/BtHandshakeMessageTest.cc
  2419. * test/DefaultBtAnnounceTest.cc
  2420. * test/DefaultBtContextTest.cc
  2421. * test/RequestTest.cc
  2422. * test/UtilTest.cc
  2423. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Fixed the bug that prevents aria2 from downloading 0-length files
  2425. via HTTP/FTP.
  2426. * src/DefaultBtContext.cc
  2427. * src/DefaultBtContext.h
  2428. * src/DownloadContext.h
  2429. * src/FtpNegotiationCommand.cc
  2430. * src/HttpResponseCommand.cc
  2431. * src/HttpResponseCommand.h
  2432. * src/RequestGroup.cc
  2433. * src/SingleFileDownloadContext.cc
  2434. * src/SingleFileDownloadContext.h
  2435. * test/BtPostDownloadHandlerTest.cc
  2436. * test/MetalinkPostDownloadHandlerTest.cc
  2437. * test/MockBtContext.h
  2438. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2440. * src/option_processing.cc
  2441. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. Applied aria2-1.0.1-mingw.patch.
  2443. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2444. mingw.
  2445. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2446. * src/SocketCore.cc
  2447. * src/a2netcompat.h
  2448. * test/SocketCoreTest.cc
  2449. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. * Release 1.0.1
  2451. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Updated Ukrainian and Norwegian Nynorsk translations.
  2453. Thanks to all translators.
  2454. * po/nn.po
  2455. * po/uk.po
  2456. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Don't show download result when -S option is used.
  2458. * src/main.cc
  2459. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2460. Bump up version number to 1.0.1
  2461. * configure.ac
  2462. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Closed files after the test cases in MultiDiskWriterTest::
  2464. testResetDiskWriterEntries(). This will fix the unit test error
  2465. in mingw32 build.
  2466. * test/MultiDiskWriterTest.cc
  2467. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2468. Use HEAD method to get file size from HTTP server for segmented
  2469. downloading.
  2470. The request to the BitTorrent Tracker always uses GET method because
  2471. the response of the tracker is small and it doesn't need segmented
  2472. download.
  2473. * src/FtpNegotiationCommand.cc
  2474. * src/HttpRequest.cc
  2475. * src/HttpResponseCommand.cc
  2476. * src/HttpSkipResponseCommand.cc
  2477. * src/RequestGroup.cc
  2478. * src/RequestGroup.h
  2479. * src/TrackerWatcherCommand.cc
  2480. * test/HttpRequestTest.cc
  2481. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Fixed the bug that causes floating exception when -T option is used and
  2483. no URIs are given.
  2484. * src/download_helper.cc
  2485. * test/DownloadHelperTest.cc
  2486. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2487. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2488. errors in MinGW:
  2489. Closed file after saving server stats (RequestGroupMan.cc)
  2490. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2491. Ignored case & handled 2-digit years (strptime.c)
  2492. Added missing suseconds_t definition (a2time.h)
  2493. Fixed socket CLOSE() define (SocketCore.cc)
  2494. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2495. Changed utime() test values from x000 to x00000 as MinGW failed on
  2496. values less than timezone offset from Unix epoch
  2497. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2498. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2499. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2500. handle negative dates (CookieParserTest.cc)
  2501. * src/a2time.h
  2502. * src/FtpConnection.cc
  2503. * src/RequestGroupMan.cc
  2504. * src/SocketCore.cc
  2505. * src/strptime.c
  2506. * test/CookieParserTest.cc
  2507. * test/CopyDiskAdaptorTest.cc
  2508. * test/FileTest.cc
  2509. * test/FtpConnectionTest.cc
  2510. * test/MultiDiskAdaptorTest.cc
  2511. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2513. * doc/aria2c.1.txt
  2514. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2515. * Release 1.0.0
  2516. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2517. Added '~' to reserved characters.
  2518. * src/Util.cc
  2519. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Do not urlencode Request::url in setUrl() because we want unmodified
  2521. URL using Request::getUrl()
  2522. * src/Request.cc
  2523. * src/Request.h
  2524. * test/RequestTest.cc
  2525. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2527. Thanks to all translators.
  2528. * po/bg.po
  2529. * po/fr.po
  2530. * po/ja.po
  2531. * po/ru.po
  2532. * po/uk.po
  2533. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2534. Bump up version number to 1.0.0
  2535. * configure.ac
  2536. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Added nosqlite3 build to build_test.sh.
  2538. Renamed noxml as expat.
  2539. * build_test.sh
  2540. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2541. Updated INPUT FILE section.
  2542. * doc/aria2c.1.txt
  2543. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2545. on big endian systems because test .aria2 files are made for little
  2546. endian systems.
  2547. * test/DefaultBtProgressInfoFileTest.cc
  2548. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2549. Dropped ares support.
  2550. * README
  2551. * configure.ac
  2552. * m4/libares.m4: Removed.
  2553. * src/AsyncNameResolver.cc
  2554. * src/Makefile.am
  2555. * test/Makefile.am
  2556. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2558. Removed const qualifier from DiskWriter::size().
  2559. * src/AbstractDiskWriter.cc
  2560. * src/AbstractDiskWriter.h
  2561. * src/ByteArrayDiskWriter.cc
  2562. * src/ByteArrayDiskWriter.h
  2563. * src/DiskWriter.h
  2564. * test/ByteArrayDiskWriterTest.cc
  2565. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2566. Fixed the bug that causes segmentation fault/bus error during executing
  2567. choking algorithm while seeding. This is caused by improper
  2568. implementation of compare function which returns inconsistent results
  2569. depending on the timing of last unchoke.
  2570. * src/BtSeederStateChoke.cc
  2571. * src/BtSeederStateChoke.h
  2572. * src/DefaultPeerStorage.cc
  2573. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2574. Removed TODO
  2575. * TODO
  2576. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Added a section that explains how to pass argument to options that
  2578. takes optional arguments with its short form.
  2579. * doc/aria2c.1.txt
  2580. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Added -u for the short form of --max-upload-limit option.
  2582. * doc/aria2c.1.txt
  2583. * src/option_processing.cc
  2584. * src/usage_text.h
  2585. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Added -V for the short form of --check-integrity option.
  2587. Now the argument of --check-integrity option is optional:
  2588. if it is omitted, it is evaluated as true.
  2589. * doc/aria2c.1.txt
  2590. * src/option_processing.cc
  2591. * src/usage_text.h
  2592. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2593. Made the default value of --ftp-pasv option set to true and it can take
  2594. true/false values.
  2595. * src/OptionHandlerFactory.cc
  2596. * src/option_processing.cc
  2597. * src/usage_text.h
  2598. * doc/aria2c.1.txt
  2599. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Given custom random number generator to std::random_shuffle.
  2601. * src/AnnounceList.cc
  2602. * src/BtLeecherStateChoke.cc
  2603. * src/BtSeederStateChoke.cc
  2604. * src/DefaultBtRequestFactory.cc
  2605. * src/MetalinkEntry.cc
  2606. * src/RarestPieceSelector.cc
  2607. * src/SimpleRandomizer.cc
  2608. * src/SimpleRandomizer.h
  2609. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Now the default value of --enable-direct-io is true.
  2611. * src/OptionHandlerFactory.cc
  2612. * doc/aria2c.1.txt
  2613. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2614. Erase peer before executing onReturningPeer and onErasingPeer
  2615. because choking algorithm called from onReturningPeer doesn't
  2616. like erasing peer in the active peer list.
  2617. * src/DefaultPeerStorage.cc
  2618. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2619. Instead of creating special filename in createDownloadResult() if
  2620. inMemoryDownload() is true, now it is done in getFilePath().
  2621. * src/RequestGroup.cc
  2622. * test/RequestGroupTest.cc
  2623. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2624. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2625. processed in memory. This is the fix for previous comment out.
  2626. * src/MemoryBufferPreDownloadHandler.cc
  2627. * src/RequestGroup.cc
  2628. * src/RequestGroup.h
  2629. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2630. Commented out the code which sets virtual directory path "[MEMORY]"
  2631. propagate directory to store to following RequestGroup.
  2632. * src/MemoryBufferPreDownloadHandler.cc
  2633. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2634. Bump up version number to 1.0.0b
  2635. * configure.ac
  2636. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Added input_uris.txt to EXTRA_DIST
  2638. * test/Makefile.am
  2639. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Removed PeerObject.h from Makefile.am
  2641. * src/Makefile.am
  2642. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Avoid slow seeding
  2644. * src/PeerInteractionCommand.cc
  2645. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Updated usage for -i option.
  2647. * src/usage_text.h (TEXT_INPUT_FILE)
  2648. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. Added INPUT FILE section to man page.
  2650. Escaped fake URLs.
  2651. * doc/aria2c.1.txt
  2652. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2653. Fixed wrong note position for -o option.
  2654. * doc/aria2c.1.txt
  2655. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2656. Fixed compile error without SSL/XML library.
  2657. * src/DefaultBtProgressInfoFile.cc
  2658. * src/DefaultBtProgressInfoFile.h
  2659. * src/FileMetalinkParserState.cc
  2660. * src/RequestGroup.h
  2661. * src/SocketCore.cc
  2662. * src/SocketCore.h
  2663. * src/VerificationMetalinkParserState.cc
  2664. * src/download_helper.h
  2665. * src/main.cc
  2666. * test/DefaultBtProgressInfoFileTest.cc
  2667. * test/DownloadHelperTest.cc
  2668. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2669. Rewritten URI handling functions. They are now provided as a testable
  2670. functions.
  2671. * src/Makefile.am
  2672. * src/RequestGroup.cc
  2673. * src/RequestGroup.h
  2674. * src/download_helper.cc
  2675. * src/download_helper.h
  2676. * src/main.cc
  2677. * test/DownloadHelperTest.cc
  2678. * test/Makefile.am
  2679. * test/input_uris.txt
  2680. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2681. Quickly terminate commands when ctrl-c is pressed.
  2682. * src/DownloadEngine.cc
  2683. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2684. Quickly terminate idle commands when download finished.
  2685. * src/AbstractCommand.cc
  2686. * src/DownloadCommand.cc
  2687. * src/DownloadEngine.cc
  2688. * src/DownloadEngine.h
  2689. * src/SleepCommand.cc
  2690. * src/SleepCommand.h
  2691. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Added the ability to specify output filename and directory in input
  2693. file.
  2694. Additional parameters are added in the following line of URIs
  2695. with proceeding white space(s), 1 parameter in 1 line.
  2696. The parameter names are the same with the command-line option name
  2697. without proceeding "--". Not all the options are available here:
  2698. at the moment, 'dir' and 'out' options are avialable.
  2699. Please note that out option has no effect against Metalink or BitTorrent
  2700. downloads.
  2701. Example input file:
  2702. http://host/foo-1.1.tar.bz2
  2703. out=foo.tar.bz2
  2704. dir=/tmp/downloads
  2705. http://host/thundermonkey-2.0.tar.bz2
  2706. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2707. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2708. thundermonkey-2.0.tar.bz2 is saved as
  2709. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2710. * src/BtPostDownloadHandler.cc
  2711. * src/Metalink2RequestGroup.cc
  2712. * src/Metalink2RequestGroup.h
  2713. * src/MetalinkPostDownloadHandler.cc
  2714. * src/UriListParser.cc
  2715. * src/UriListParser.h
  2716. * src/main.cc
  2717. * test/Metalink2RequestGroupTest.cc
  2718. * test/UriListParserTest.cc
  2719. * test/filelist1.txt
  2720. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2721. Fixed error when SSL library is not found.
  2722. * configure.ac
  2723. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2724. Cross referenced among -s, -C and -j options.
  2725. Updated usage of -C and -s options.
  2726. * src/usage_text.h
  2727. * doc/aria2c.1.txt
  2728. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. Fixed bad cast in 32bit platforms.
  2730. * test/DefaultPieceStorageTest.cc
  2731. (DefaultPieceStorageTest::testGetCompletedLength)
  2732. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Fixed unit test fails on 32bit platforms.
  2734. * test/CookieParserTest.cc
  2735. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2736. Show an average download speed in Download results.
  2737. * src/BtFileAllocationEntry.cc
  2738. * src/DefaultPieceStorage.cc
  2739. * src/DownloadContext.cc
  2740. * src/DownloadContext.h
  2741. * src/DownloadResult.h
  2742. * src/RequestGroup.cc
  2743. * src/RequestGroupMan.cc
  2744. * src/StreamFileAllocationEntry.cc
  2745. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2746. Fixed the bug that metalink file is not processed if Content-Type
  2747. field has a paramter.
  2748. * src/HttpResponse.cc
  2749. * src/HttpResponse.h
  2750. * test/HttpResponseTest.cc
  2751. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Removed unused code.
  2753. * src/DefaultBtAnnounce.cc
  2754. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2756. the value larger than DefaultPieceStorage::getTotalLength() when
  2757. in flight pieces are involved.
  2758. * src/DefaultPieceStorage.cc
  2759. * test/DefaultPieceStorageTest.cc
  2760. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Bump up version number to 1.0.0a.
  2762. * configure.ac
  2763. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Updated configure.ac
  2765. * configure.ac
  2766. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Added usege for proxy.
  2768. * doc/aria2c.1.txt
  2769. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2770. Added usage for --ca-certificate, --certificate, --private-key and
  2771. --check-certificate options.
  2772. * doc/aria2c.1.txt
  2773. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2774. Updated man page
  2775. * doc/aria2c.1.txt
  2776. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2777. Added --no-proxy option. It receives comman separated hostname or
  2778. domains to which proxy should not be used.
  2779. aria2 honors the environment variable no_proxy to override no-proxy
  2780. value in configuration file. The user can override the environment
  2781. variable no_proxy with --no-proxy command-line option.
  2782. * src/AbstractCommand.cc
  2783. * src/OptionHandlerFactory.cc
  2784. * src/option_processing.cc
  2785. * src/prefs.cc
  2786. * src/prefs.h
  2787. * src/usage_text.h
  2788. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2789. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2790. The CA certificates are specified in --ca-certificate option.
  2791. By default, the verification is disabled. Use --check-certificate
  2792. option to enable it.
  2793. * src/HttpRequestCommand.cc
  2794. * src/LibgnutlsTLSContext.cc
  2795. * src/LibgnutlsTLSContext.h
  2796. * src/LibsslTLSContext.cc
  2797. * src/LibsslTLSContext.h
  2798. * src/MultiUrlRequestInfo.cc
  2799. * src/OptionHandlerFactory.cc
  2800. * src/SocketCore.cc
  2801. * src/SocketCore.h
  2802. * src/a2functional.h
  2803. * src/message.h
  2804. * src/option_processing.cc
  2805. * src/prefs.cc
  2806. * src/prefs.h
  2807. * src/usage_text.h
  2808. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2809. Added client certificate authentication for SSL/TLS.
  2810. Currently a private key must be decrypted for use with aria2.
  2811. If a user accidentally gives encrypted file to aria2 then following
  2812. thing happens:
  2813. If encrypted private key is given to aria2, it behaves differently
  2814. depending on the ssl library it uses. If aria2 built with openssl then
  2815. openssl prompts the user for password. If aria2 build with gnutls then
  2816. aria2 exists with error at start up.
  2817. * src/DownloadEngineFactory.cc
  2818. * src/MultiUrlRequestInfo.cc
  2819. * src/OptionHandlerFactory.cc
  2820. * src/option_processing.cc
  2821. * src/prefs.cc
  2822. * src/prefs.h
  2823. * src/usage_text.h
  2824. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Introduced TLSContext that holds TLS related data that can be shared
  2826. with multiple SSL connections.
  2827. * src/DownloadEngineFactory.cc
  2828. * src/LibgnutlsTLSContext.cc
  2829. * src/LibgnutlsTLSContext.h
  2830. * src/LibsslTLSContext.cc
  2831. * src/LibsslTLSContext.h
  2832. * src/Makefile.am
  2833. * src/SocketCore.cc
  2834. * src/SocketCore.h
  2835. * src/TLSContext.h
  2836. * src/message.h
  2837. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2838. Fixed the bug that the DiskWriter of the first FileEntry whose
  2839. `needsFileAllocation' property is false is not created
  2840. even if it shares a piece with next FileEntry which `requested' property
  2841. is true.
  2842. Fixed the bug that zero-length file is not created if pre file
  2843. allocation is not done.
  2844. * src/MultiDiskAdaptor.cc
  2845. * src/MultiDiskAdaptor.h
  2846. * test/MultiDiskAdaptorTest.cc
  2847. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2848. Added the ability to pool proxy connection.
  2849. The conneciton in FTP with proxy-method=GET is not pooled.
  2850. Proxy-Connection header will not be sent when sending CONNECT method.
  2851. * src/DownloadEngine.cc
  2852. * src/DownloadEngine.h
  2853. * src/FtpFinishDownloadCommand.cc
  2854. * src/FtpInitiateConnectionCommand.cc
  2855. * src/FtpNegotiationCommand.cc
  2856. * src/HttpDownloadCommand.cc
  2857. * src/HttpInitiateConnectionCommand.cc
  2858. * src/HttpRequest.cc
  2859. * src/HttpRequest.h
  2860. * src/HttpResponse.cc
  2861. * src/HttpSkipResponseCommand.cc
  2862. * test/HttpRequestTest.cc
  2863. * test/HttpResponseTest.cc
  2864. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2865. Handle date before epoch.
  2866. To create *bad* Time object, call Time::null().
  2867. * src/CookieParser.cc
  2868. * src/FtpConnection.cc
  2869. * src/FtpConnection.h
  2870. * src/FtpNegotiationCommand.cc
  2871. * src/RequestGroup.cc
  2872. * src/TimeA2.cc
  2873. * src/TimeA2.h
  2874. * test/CookieParserTest.cc
  2875. * test/FtpConnectionTest.cc
  2876. * test/TimeTest.cc
  2877. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2878. Added support for following envrionment variables: http_proxy,
  2879. https_proxy, ftp_proxy and all_proxy.
  2880. Each variable is equivalent to the aria2 option whose name is the
  2881. variable name with '_' replaced with '-'.
  2882. They overrides options specified in aria2.conf file.
  2883. The envrionment variables can be overrode using command-line option.
  2884. * src/option_processing.cc
  2885. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2886. Renamed --http-proxy-method as --proxy-method.
  2887. * src/AbstractCommand.cc
  2888. * src/FtpInitiateConnectionCommand.cc
  2889. * src/HttpInitiateConnectionCommand.cc
  2890. * src/OptionHandlerFactory.cc
  2891. * src/option_processing.cc
  2892. * src/prefs.cc
  2893. * src/prefs.h
  2894. * src/usage_text.h
  2895. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2896. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2897. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2898. Above 3 options and --http-proxy option can handle proxy in URL format
  2899. like: http://user:passwd@host:port.
  2900. If a proxy requires user/password, they must be specified in a URL.
  2901. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2902. instead.
  2903. * src/AbstractCommand.cc
  2904. * src/AbstractCommand.h
  2905. * src/AbstractProxyRequestCommand.cc
  2906. * src/AbstractProxyRequestCommand.h
  2907. * src/AuthConfigFactory.cc
  2908. * src/AuthConfigFactory.h
  2909. * src/FtpFinishDownloadCommand.cc
  2910. * src/FtpInitiateConnectionCommand.cc
  2911. * src/FtpInitiateConnectionCommand.h
  2912. * src/FtpNegotiationCommand.cc
  2913. * src/FtpTunnelRequestCommand.cc
  2914. * src/FtpTunnelRequestCommand.h
  2915. * src/HttpDownloadCommand.cc
  2916. * src/HttpInitiateConnectionCommand.cc
  2917. * src/HttpInitiateConnectionCommand.h
  2918. * src/HttpProxyRequestCommand.cc
  2919. * src/HttpProxyRequestCommand.h
  2920. * src/HttpRequest.cc
  2921. * src/HttpRequest.h
  2922. * src/HttpRequestCommand.cc
  2923. * src/HttpRequestCommand.h
  2924. * src/HttpSkipResponseCommand.cc
  2925. * src/InitiateConnectionCommand.cc
  2926. * src/InitiateConnectionCommand.h
  2927. * src/OptionHandlerFactory.cc
  2928. * src/OptionHandlerImpl.h
  2929. * src/Request.cc
  2930. * src/option_processing.cc
  2931. * src/prefs.cc
  2932. * src/prefs.h
  2933. * src/usage_text.h
  2934. * test/AuthConfigFactoryTest.cc
  2935. * test/HttpRequestTest.cc
  2936. * test/OptionHandlerTest.cc
  2937. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2938. Execute choking algorithm when unchoked and interested peer is
  2939. disconected.
  2940. * src/DefaultPeerStorage.cc
  2941. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2942. Added testcase for BtNotInterestedMessage from unchoked peer.
  2943. * test/BtNotInterestedMessageTest.cc
  2944. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2945. Execute choking algorithm when BtInterestedMessage arrives from
  2946. unchoked peer.
  2947. * src/BtInterestedMessage.cc
  2948. * src/BtInterestedMessage.h
  2949. * src/DefaultBtMessageFactory.cc
  2950. * test/BtInterestedMessageTest.cc
  2951. * test/MockPeerStorage.h
  2952. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2953. AuthConfigFactory is now part of DownloadEngine.
  2954. * src/AbstractProxyRequestCommand.cc
  2955. * src/AuthConfigFactory.h
  2956. * src/DownloadEngine.cc
  2957. * src/DownloadEngine.h
  2958. * src/FtpConnection.cc
  2959. * src/FtpConnection.h
  2960. * src/FtpNegotiationCommand.cc
  2961. * src/HttpConnection.cc
  2962. * src/HttpRequest.cc
  2963. * src/HttpRequest.h
  2964. * src/HttpRequestCommand.cc
  2965. * src/HttpResponse.cc
  2966. * src/HttpResponseCommand.cc
  2967. * src/HttpSkipResponseCommand.cc
  2968. * src/MultiUrlRequestInfo.cc
  2969. * src/main.cc
  2970. * test/FtpConnectionTest.cc
  2971. * test/HttpRequestTest.cc
  2972. * test/HttpResponseTest.cc
  2973. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2974. Corrected catched exception type.
  2975. * src/ServerStatMan.cc
  2976. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2977. DNSCache is now part of DownloadEngine.
  2978. * src/DNSCache.h
  2979. * src/DownloadEngine.cc
  2980. * src/DownloadEngine.h
  2981. * src/InitiateConnectionCommand.cc
  2982. * src/MultiUrlRequestInfo.cc
  2983. * test/Makefile.am
  2984. * test/Makefile.in
  2985. * test/SimpleDNSCacheTest.cc
  2986. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2987. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2988. DownloadEngine.
  2989. * src/ActivePeerConnectionCommand.cc
  2990. * src/BtSetup.cc
  2991. * src/CUIDCounter.h
  2992. * src/DHTSetup.cc
  2993. * src/DownloadCommand.cc
  2994. * src/DownloadEngine.cc
  2995. * src/DownloadEngine.h
  2996. * src/DownloadEngineFactory.cc
  2997. * src/FileAllocationDispatcherCommand.cc
  2998. * src/InitiatorMSEHandshakeCommand.cc
  2999. * src/PeerInitiateConnectionCommand.cc
  3000. * src/PeerInteractionCommand.cc
  3001. * src/PeerListenCommand.cc
  3002. * src/RequestGroup.cc
  3003. * src/StreamFileAllocationEntry.cc
  3004. * src/TrackerWatcherCommand.cc
  3005. * src/main.cc
  3006. * test/RequestGroupManTest.cc
  3007. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3008. Implemented commented code in BtSeederStateChoke
  3009. * src/BtSeederStateChoke.cc
  3010. * src/Peer.cc
  3011. * src/Peer.h
  3012. * src/PeerInteractionCommand.cc
  3013. * src/PeerSessionResource.cc
  3014. * src/PeerSessionResource.h
  3015. * test/MockBtMessageDispatcher.h
  3016. * test/PeerSessionResourceTest.cc
  3017. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3018. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  3019. its object.
  3020. * src/AbstractBtMessage.cc
  3021. * src/ActivePeerConnectionCommand.cc
  3022. * src/ActivePeerConnectionCommand.h
  3023. * src/BtContextAwareCommand.cc
  3024. * src/BtContextAwareCommand.h
  3025. * src/BtExtendedMessage.cc
  3026. * src/BtExtendedMessage.h
  3027. * src/BtInterestedMessage.cc
  3028. * src/BtInterestedMessage.h
  3029. * src/BtNotInterestedMessage.cc
  3030. * src/BtNotInterestedMessage.h
  3031. * src/BtRegistry.cc
  3032. * src/BtRegistry.h
  3033. * src/BtSeederStateChoke.cc
  3034. * src/BtSetup.cc
  3035. * src/DHTGetPeersCommand.cc
  3036. * src/DHTGetPeersCommand.h
  3037. * src/DHTPeerAnnounceEntry.cc
  3038. * src/DHTPeerAnnounceEntry.h
  3039. * src/DHTPeerAnnounceStorage.cc
  3040. * src/DHTPeerAnnounceStorage.h
  3041. * src/DHTPeerLookupTask.cc
  3042. * src/DHTPeerLookupTask.h
  3043. * src/DHTSetup.cc
  3044. * src/DHTSetup.h
  3045. * src/DHTTaskFactory.h
  3046. * src/DHTTaskFactoryImpl.cc
  3047. * src/DHTTaskFactoryImpl.h
  3048. * src/DefaultBtAnnounce.cc
  3049. * src/DefaultBtInteractive.cc
  3050. * src/DefaultBtInteractive.h
  3051. * src/DefaultBtMessageDispatcher.cc
  3052. * src/DefaultBtMessageDispatcher.h
  3053. * src/DefaultBtMessageFactory.cc
  3054. * src/DefaultBtMessageFactory.h
  3055. * src/DefaultBtMessageReceiver.cc
  3056. * src/DefaultBtProgressInfoFile.cc
  3057. * src/DefaultBtProgressInfoFile.h
  3058. * src/DefaultBtRequestFactory.cc
  3059. * src/DefaultBtRequestFactory.h
  3060. * src/DefaultExtensionMessageFactory.cc
  3061. * src/DefaultExtensionMessageFactory.h
  3062. * src/DefaultPeerStorage.cc
  3063. * src/DefaultPeerStorage.h
  3064. * src/DownloadEngine.cc
  3065. * src/DownloadEngine.h
  3066. * src/InitiatorMSEHandshakeCommand.cc
  3067. * src/InitiatorMSEHandshakeCommand.h
  3068. * src/MSEHandshake.cc
  3069. * src/MSEHandshake.h
  3070. * src/Makefile.am
  3071. * src/Makefile.in
  3072. * src/PeerChokeCommand.cc
  3073. * src/PeerChokeCommand.h
  3074. * src/PeerInitiateConnectionCommand.cc
  3075. * src/PeerInitiateConnectionCommand.h
  3076. * src/PeerInteractionCommand.cc
  3077. * src/PeerInteractionCommand.h
  3078. * src/PeerObject.h
  3079. * src/PeerReceiveHandshakeCommand.cc
  3080. * src/PeerReceiveHandshakeCommand.h
  3081. * src/ReceiverMSEHandshakeCommand.cc
  3082. * src/RequestGroup.cc
  3083. * src/RequestGroup.h
  3084. * src/RequestGroupMan.cc
  3085. * src/RequestGroupMan.h
  3086. * src/SeedCheckCommand.cc
  3087. * src/SeedCheckCommand.h
  3088. * src/ShareRatioSeedCriteria.h
  3089. * src/SimpleBtMessage.cc
  3090. * src/TrackerWatcherCommand.cc
  3091. * src/TrackerWatcherCommand.h
  3092. * src/UTPexExtensionMessage.cc
  3093. * src/UTPexExtensionMessage.h
  3094. * test/BtCancelMessageTest.cc
  3095. * test/BtChokeMessageTest.cc
  3096. * test/BtExtendedMessageTest.cc
  3097. * test/BtInterestedMessageTest.cc
  3098. * test/BtNotInterestedMessageTest.cc
  3099. * test/BtPieceMessageTest.cc
  3100. * test/BtPortMessageTest.cc
  3101. * test/BtRegistryTest.cc
  3102. * test/BtRejectMessageTest.cc
  3103. * test/BtRequestMessageTest.cc
  3104. * test/DHTPeerAnnounceEntryTest.cc
  3105. * test/DHTPeerAnnounceStorageTest.cc
  3106. * test/DefaultBtMessageDispatcherTest.cc
  3107. * test/DefaultBtMessageFactoryTest.cc
  3108. * test/DefaultBtProgressInfoFileTest.cc
  3109. * test/DefaultBtRequestFactoryTest.cc
  3110. * test/DefaultExtensionMessageFactoryTest.cc
  3111. * test/MSEHandshakeTest.cc
  3112. * test/MockDHTTaskFactory.h
  3113. * test/ShareRatioSeedCriteriaTest.cc
  3114. * test/UTPexExtensionMessageTest.cc
  3115. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3116. Fixed compiler warning.
  3117. * test/UtilTest.cc
  3118. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3119. Treat Cookie object as session cookie if expiry = 0 is given.
  3120. With this change, you can specify session scoped cookies in an external
  3121. file setting expiry value to 0.
  3122. * src/Cookie.cc
  3123. * src/Cookie.h
  3124. * test/CookieParserTest.cc
  3125. * test/CookieStorageTest.cc
  3126. * test/CookieTest.cc
  3127. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3128. Changed signature of DHTMessageFactory::createResponseMessage().
  3129. Removed unused validateIDMatch.
  3130. * src/DHTMessageFactory.h
  3131. * src/DHTMessageFactoryImpl.cc
  3132. * src/DHTMessageFactoryImpl.h
  3133. * src/DHTMessageTracker.cc
  3134. * test/DHTMessageFactoryImplTest.cc
  3135. * test/MockDHTMessageFactory.h
  3136. Dropped DHT message coming from same ID of localhost.
  3137. * src/DHTMessageReceiver.cc
  3138. Rejected adding node whose ID is the same as localhost's.
  3139. * src/DHTRoutingTable.cc
  3140. * test/BtPortMessageTest.cc
  3141. * test/DHTRoutingTableTest.cc
  3142. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3143. Pool connection when redirection occurs with Content-Length = 0.
  3144. * src/HttpSkipResponseCommand.cc
  3145. * src/HttpSkipResponseCommand.h
  3146. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3147. Fixed the bug that causes time out when redirection occurs with
  3148. content-length 0.
  3149. * src/HttpResponseCommand.cc
  3150. * src/HttpSkipResponseCommand.cc
  3151. * src/HttpSkipResponseCommand.h
  3152. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3153. Now each status legends is shown only when it appears in Download
  3154. Result. If Download Result has no item, then status legend will not
  3155. be printed.
  3156. * src/RequestGroupMan.cc
  3157. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3158. Removed duplicate creation of OptionHandlers.
  3159. * src/option_processing.cc
  3160. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3161. Fixed the bug that causes segmentation fault when accessing files which
  3162. don't exist or are not included in --select-file option while
  3163. validating chunk checksum.
  3164. * src/MultiDiskAdaptor.cc
  3165. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3166. Fixed compiler warning.
  3167. * test/UtilTest.cc
  3168. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3169. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3170. * src/IteratableChecksumValidator.cc
  3171. * src/IteratableChunkChecksumValidator.cc
  3172. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3173. * Release 0.16.2
  3174. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3175. Added Serbian translation. Updated Ukrainian translation.
  3176. Thanks to all translators.
  3177. * po/sr.po
  3178. * po/uk.po
  3179. * po/LINGUAS
  3180. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3181. Bump up version number to 0.16.2
  3182. * configure.ac
  3183. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3184. Added length equality test to operator== to drop a piece message
  3185. whose length does not match to the requested one.
  3186. * src/RequestSlot.cc
  3187. * test/DefaultBtMessageDispatcherTest.cc
  3188. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3189. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3190. recieved.
  3191. In this fix, if a request larger than 16KiB length is received, aria2
  3192. disconnects the peer.
  3193. * src/BtConstants.h
  3194. * src/PeerMessageUtil.cc
  3195. * src/PeerMessageUtil.h
  3196. * test/BtRequestMessageTest.cc
  3197. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3198. * Release 0.16.1
  3199. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3200. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3201. * doc/aria2c.1.txt
  3202. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3203. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3204. Updated French, Simplified Chinese and Japanese translations.
  3205. Thanks to all translators.
  3206. en@quot and en@boldquot are also added.
  3207. * po/LINGUAS
  3208. * po/fr.po
  3209. * po/ja.po
  3210. * po/uk.po
  3211. * po/vi.po
  3212. * po/zh_CN.po
  3213. * po/zh_TW.po
  3214. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3215. Bump up version number to 0.16.1.
  3216. * configure.ac
  3217. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3218. Updated README.
  3219. * README
  3220. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3221. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3222. not to replace '--' with em dash character.
  3223. * doc/aria2c.1.txt
  3224. * doc/makeman
  3225. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3226. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3227. every SEC seconds.
  3228. * src/DownloadEngineFactory.cc
  3229. * src/OptionHandlerFactory.cc
  3230. * src/option_processing.cc
  3231. * src/usage_text.h
  3232. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Fixed compile warning on linux-amd64
  3234. * src/FtpConnection.cc
  3235. * src/IteratableChunkChecksumValidator.cc
  3236. * src/MultiDiskAdaptor.cc
  3237. Fixed the bug that unit test fails on linux-amd64
  3238. * test/UtilTest.cc
  3239. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3240. Added --dht-file-path option to change the path to dht.dat, which is a
  3241. serialized DHT routing table.
  3242. * src/OptionHandlerFactory.cc
  3243. * src/option_processing.cc
  3244. * src/usage_text.h
  3245. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3246. Fixed possible underflow.
  3247. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3248. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3249. Fixed the bug that last character in URI is not encoded.
  3250. * src/Request.cc
  3251. * test/RequestTest.cc
  3252. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3253. Fixed the bug that referer header field contains fragment.
  3254. Now Request class removes fragment part of URI and encodes it
  3255. in Request::setUri() and setReferer().
  3256. * src/Request.h
  3257. * src/Request.cc
  3258. * test/RequestTest.cc
  3259. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3260. Added missing m4 macros.
  3261. * m4/cppunit.m4
  3262. * m4/libgcrypt.m4
  3263. * m4/libgnutls-extra.m4
  3264. * m4/libgnutls.m4
  3265. * m4/libxml2.m4
  3266. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3267. Fixed compile error with gcc-4.4(snapshot)
  3268. * src/File.cc
  3269. * src/FtpConnection.cc
  3270. * src/OptionHandlerImpl.h
  3271. * src/Util.cc
  3272. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3273. Removed assert()
  3274. * src/SocketBuffer.cc (SocketBuffer::send)
  3275. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3276. Changed the type of _numNewConnection to unsigned int.
  3277. * src/ActivePeerConnectionCommand.cc
  3278. * src/ActivePeerConnectionCommand.h
  3279. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3280. * Release 0.16.0
  3281. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3282. Updated doc
  3283. * README
  3284. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3285. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3286. translations. Thanks to all translators.
  3287. * po/bg.po
  3288. * po/de.po
  3289. * po/fr.po
  3290. * po/ja.po
  3291. * po/zh_CN.po
  3292. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3293. Bump up version number to 0.16.0.
  3294. * configure.ac
  3295. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3296. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3297. int32_t.
  3298. Changed the type of count to int32_t.
  3299. * src/Metalink2RequestGroup.cc
  3300. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3301. Added test for Time::elapsed(time_t).
  3302. * test/TimeTest.cc
  3303. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3304. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3305. Util::difftv() should be used instead.
  3306. * src/TimeA2.cc
  3307. * src/TimeA2.h
  3308. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3309. Made socket for dht connections non-blocking
  3310. * src/DHTAbstractMessage.cc
  3311. * src/DHTAbstractMessage.h
  3312. * src/DHTConnection.h
  3313. * src/DHTConnectionImpl.cc
  3314. * src/DHTConnectionImpl.h
  3315. * src/DHTMessage.h
  3316. * src/DHTMessageDispatcherImpl.cc
  3317. * src/DHTMessageDispatcherImpl.h
  3318. * src/DHTUnknownMessage.cc
  3319. * src/DHTUnknownMessage.h
  3320. * src/SocketCore.cc
  3321. * src/SocketCore.h
  3322. * test/MockDHTMessage.h
  3323. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3324. Changed the type of offset to int.
  3325. * src/ParameterizedStringParser.cc
  3326. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3327. Made getAsInt() return int32_t
  3328. * src/Option.h
  3329. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3330. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3331. build.
  3332. * configure.ac
  3333. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3334. Use sqlite3_open if sqlite3_open_v2 is not available.
  3335. * src/Sqlite3MozCookieParser.cc
  3336. * src/Sqlite3MozCookieParser.h
  3337. * m4/sqlite3.m4
  3338. * test/Sqlite3MozCookieParserTest.cc
  3339. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3340. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3341. * src/BtPieceMessage.cc
  3342. * src/DHTPeerAnnounceStorage.cc
  3343. * src/DefaultPieceStorage.cc
  3344. * src/DownloadCommand.cc
  3345. * src/DownloadEngine.cc
  3346. * src/FtpConnection.cc
  3347. * src/PeerConnection.cc
  3348. * src/PeerMessageUtil.cc
  3349. * src/RequestGroup.cc
  3350. * src/RequestGroupMan.cc
  3351. * src/SimpleBtMessage.cc
  3352. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3353. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3354. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3355. * src/AbstractDiskWriter.cc
  3356. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3357. Don't set Request::supportsPersistentConnection() in HttpConnection
  3358. since this code is also used in AbstractProxyResponseCommand.
  3359. Moved those code to HttpResponse.
  3360. * src/HttpResponse.cc
  3361. * src/HttpResponse.h
  3362. * src/HttpConnection.cc
  3363. * src/HttpConnection.h
  3364. * src/HttpResponseCommand.cc
  3365. * test/HttpResponseTest.cc
  3366. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3367. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3368. The configuration is minimum: no torrent, no metalink, so there may be
  3369. other compile error on their code.
  3370. * src/a2netcompat.h
  3371. * src/File.cc
  3372. * src/File.h
  3373. * src/SocketCore.cc
  3374. * src/SocketCore.h
  3375. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3376. Made a socket of incoming peer non-blocking.
  3377. * src/PeerListenCommand.cc
  3378. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3379. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3380. whole message data is not sent in one send() call.
  3381. * src/BtPieceMessage.cc
  3382. * src/BtPieceMessage.h
  3383. * src/PeerConnection.cc
  3384. * src/PeerConnection.h
  3385. * src/SimpleBtMessage.cc
  3386. * src/SimpleBtMessage.h
  3387. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3388. Fixed the bug that aria2 downloads faster than max-download-limit when
  3389. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3390. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3391. , instead of sum of them.
  3392. * src/ActivePeerConnectionCommand.cc
  3393. * src/DefaultBtInteractive.cc
  3394. * src/DownloadCommand.cc
  3395. * src/PeerInteractionCommand.cc
  3396. * src/PeerReceiveHandshakeCommand.cc
  3397. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3398. Fixed the bug that HTTPS download fails.
  3399. * src/AbstractCommand.cc
  3400. * src/AbstractCommand.h
  3401. * src/DownloadCommand.cc
  3402. * src/FtpConnection.cc
  3403. * src/HttpConnection.cc
  3404. * src/HttpRequestCommand.cc
  3405. * src/HttpResponseCommand.cc
  3406. * src/HttpSkipResponseCommand.cc
  3407. * src/MSEHandshake.cc
  3408. * src/PeerConnection.cc
  3409. * src/SocketCore.cc
  3410. * src/SocketCore.h
  3411. Fixed the bug that aria2 doesn't download whole content body and cannot
  3412. reuse connection if chunked transfer encoding and gzip content encoding
  3413. are set.
  3414. * src/DownloadCommand.cc
  3415. * src/HttpSkipResponseCommand.cc
  3416. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3417. Updated man page.
  3418. * doc/aria2c.1.txt
  3419. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3420. When error occurred while aria2 was parsing an .aria2.conf file, print
  3421. the usage of the option that caused error.
  3422. * src/option_processing.cc
  3423. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3424. Fixed compile error on OptionHandlerException
  3425. * src/Makefile.am
  3426. * src/OptionHandlerException.cc
  3427. * src/OptionHandlerException.h
  3428. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3429. Moved message of the error to OptionHandlerException.h
  3430. * src/NameMatchOptionHandler.h
  3431. * src/OptionHandlerException.h
  3432. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3433. When error occurs while aria2 is parsing an command-line option, print
  3434. the usage of the option.
  3435. * src/Makefile.am
  3436. * src/NameMatchOptionHandler.h
  3437. * src/OptionHandlerException.h
  3438. * src/option_processing.cc
  3439. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3440. Reverted previous change.
  3441. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3442. username is not in URI.
  3443. * src/HttpRequest.cc
  3444. * src/Request.cc
  3445. * test/HttpRequestTest.cc
  3446. * test/RequestTest.cc
  3447. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3448. Now colon is required for username and password in FTP URL, like:
  3449. ftp://username:password@host.
  3450. If colon is not there, aria2 don't parse it as a username. For example,
  3451. aria2 don't retrieve username from ftp://username@host.
  3452. This fix was made in order to login FTP server via non-transparent ftp
  3453. proxy.
  3454. * src/Request.cc
  3455. * test/RequestTest.cc
  3456. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3457. Use netrc for HTTP.
  3458. Now FTP user/password is sent in Authorization header when
  3459. --ftp-via-http-proxy=get is given.
  3460. * src/AuthConfigFactory.cc
  3461. * src/HttpRequest.cc
  3462. * src/HttpRequest.h
  3463. * src/NetrcAuthResolver.cc
  3464. * src/NetrcAuthResolver.h
  3465. * src/OptionHandlerFactory.cc
  3466. * src/option_processing.cc
  3467. * src/prefs.cc
  3468. * src/prefs.h
  3469. * test/AuthConfigFactoryTest.cc
  3470. * test/HttpRequestTest.cc
  3471. * test/NetrcAuthResolverTest.cc
  3472. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3473. Issue PWD command first and get working directory and use it as a prefix
  3474. for CWD command.
  3475. * src/DownloadEngine.cc
  3476. * src/DownloadEngine.h
  3477. * src/FtpConnection.cc
  3478. * src/FtpConnection.h
  3479. * src/FtpFinishDownloadCommand.cc
  3480. * src/FtpInitiateConnectionCommand.cc
  3481. * src/FtpNegotiationCommand.cc
  3482. * src/FtpNegotiationCommand.h
  3483. * test/FtpConnectionTest.cc
  3484. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3485. Removed default user/pass for FTP user/pass, since it should not have
  3486. precedence over netrc configuration by default.
  3487. * src/OptionHandlerFactory.cc
  3488. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3489. Added debug log for socket event.
  3490. * src/AbstractCommand.cc
  3491. * src/PeerAbstractCommand.cc
  3492. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3493. Log microseconds.
  3494. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3495. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. Replaced HelpItem.cc with OptionHandler.cc.
  3497. * po/POTFILES.in
  3498. Updated po files with 'make update-po'
  3499. * po/aria2c.pot
  3500. * po/*.po
  3501. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3502. Removed possible values from the text.
  3503. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3504. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3505. Removed unused preferences:
  3506. PREF_NO_PREALLOCATION
  3507. PREF_STDOUT_LOG
  3508. PREF_TRACKER_MAX_TRIES
  3509. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3510. PREF_MIN_SEGMENT_SIZE
  3511. * src/option_processing.cc
  3512. * src/prefs.cc
  3513. * src/prefs.h
  3514. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3515. Integrated HelpItem into OptionParser to ease the workload for adding
  3516. new options. Removed default value from usage text.
  3517. * src/HelpItem.cc: Removed.
  3518. * src/HelpItem.h: Removed.
  3519. * src/HelpItemFactory.cc: Removed.
  3520. * src/HelpItemFactory.h: Removed.
  3521. * src/Makefile.am
  3522. * src/Makefile.in
  3523. * src/NameMatchOptionHandler.h
  3524. * src/OptionHandler.cc
  3525. * src/OptionHandler.h
  3526. * src/OptionHandlerFactory.cc
  3527. * src/OptionHandlerImpl.h
  3528. * src/OptionParser.cc
  3529. * src/OptionParser.h
  3530. * src/TagContainer.cc: Removed.
  3531. * src/TagContainer.h: Removed.
  3532. * src/TaggedItem.cc: Removed.
  3533. * src/TaggedItem.h: Removed.
  3534. * src/main.cc
  3535. * src/option_processing.cc
  3536. * src/usage_text.h
  3537. * src/version_usage.cc
  3538. * test/HelpItemTest.cc: Removed.
  3539. * test/Makefile.am
  3540. * test/Makefile.in
  3541. * test/OptionHandlerTest.cc
  3542. * test/OptionParserTest.cc
  3543. * test/TagContainerTest.cc: Removed.
  3544. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3545. Moved `TransferStat stat = ...' to inside the `if' clause.
  3546. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3547. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3548. Fixed the bug that a block in a piece is requested when same block is
  3549. already requested to the same peer in end game mode.
  3550. * src/BtRequestFactory.h
  3551. * src/DefaultBtInteractive.cc
  3552. * src/DefaultBtRequestFactory.cc
  3553. * src/DefaultBtRequestFactory.h
  3554. * src/DefaultPieceStorage.cc
  3555. * src/DefaultPieceStorage.h
  3556. * src/PieceStorage.h
  3557. * src/UnknownLengthPieceStorage.cc
  3558. * src/UnknownLengthPieceStorage.h
  3559. * test/DefaultBtRequestFactoryTest.cc
  3560. * test/DefaultPieceStorageTest.cc
  3561. * test/MockBtRequestFactory.h
  3562. * test/MockPieceStorage.h
  3563. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3564. Removed _uploadLength and _downloadLength from PeerSessionResource
  3565. and use PeerStat::_sessionUploadLength and
  3566. PeerStat::_sessionDownloadLength.
  3567. * src/PeerSessionResource.cc
  3568. * src/PeerSessionResource.h
  3569. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3570. Fixed the bug that prefixLength of split bucket which doesn't include
  3571. local node ID is incremented.
  3572. * src/DHTBucket.cc
  3573. * src/DHTBucket.h
  3574. * test/DHTBucketTest.cc
  3575. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3576. Added cookies.sqlite to EXTRA_DIST
  3577. * test/Makefile.am
  3578. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Added Turkish translation. Updated French, German, Russian and
  3580. Simplified Chinese translations. Thanks to all translators.
  3581. * po/LINGUAS
  3582. * po/de.po
  3583. * po/fr.po
  3584. * po/ru.po
  3585. * po/tr.po
  3586. * po/zh_CN.po
  3587. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3588. Added deliminating text to the beginning of the log so that one can find
  3589. where the log starts easily.
  3590. * src/main.cc
  3591. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3592. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3593. to fix compile error when async DNS is not enabled by configuration.
  3594. * src/AbstractCommand.cc
  3595. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3596. If establishing conneciton to a server is failed, then mark error on
  3597. its ServerStat.
  3598. Added the cause of error to log when error event occurred.
  3599. Moved message string to message.h for translation.
  3600. * src/AbstractCommand.cc
  3601. * src/AbstractCommand.h
  3602. * src/FtpNegotiationCommand.cc
  3603. * src/HttpRequestCommand.cc
  3604. * src/PeerAbstractCommand.cc
  3605. * src/message.h
  3606. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3607. Added the function to get error message from socket.
  3608. * src/SocketCore.cc
  3609. * src/SocketCore.h
  3610. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3611. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3612. * src/RequestGroupMan.cc
  3613. * src/RequestGroupMan.h
  3614. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3615. If error event is received in epoll, then abort download immediately.
  3616. * src/AbstractCommand.cc
  3617. * src/Command.cc
  3618. * src/Command.h
  3619. * src/DownloadEngine.cc
  3620. * src/PeerAbstractCommand.cc
  3621. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3622. Added usage message for --uri-selector, --server-stat-of,
  3623. --server-stat-in, --server-stat-timeout options.
  3624. * src/HelpItemFactory.cc
  3625. * src/usage_text.h
  3626. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3627. Added upper limit of FTP response buffer. The current implementation
  3628. uses 4096bytes as a limit.
  3629. * src/FtpConnection.cc
  3630. * src/FtpConnection.h
  3631. * test/FtpConnectionTest.cc
  3632. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3633. Use non-blocking socket for TCP communication to avoid possible
  3634. blocking due to buffer full.
  3635. * src/AbstractProxyRequestCommand.cc
  3636. * src/FtpConnection.cc
  3637. * src/FtpConnection.h
  3638. * src/FtpNegotiationCommand.cc
  3639. * src/FtpNegotiationCommand.h
  3640. * src/HttpConnection.cc
  3641. * src/HttpConnection.h
  3642. * src/HttpRequestCommand.cc
  3643. * src/InitiatorMSEHandshakeCommand.cc
  3644. * src/InitiatorMSEHandshakeCommand.h
  3645. * src/MSEHandshake.cc
  3646. * src/MSEHandshake.h
  3647. * src/Makefile.am
  3648. * src/PeerConnection.cc
  3649. * src/PeerConnection.h
  3650. * src/PeerInteractionCommand.cc
  3651. * src/PeerListenCommand.cc
  3652. * src/ReceiverMSEHandshakeCommand.cc
  3653. * src/ReceiverMSEHandshakeCommand.h
  3654. * src/SocketBuffer.cc
  3655. * src/SocketBuffer.h
  3656. * src/SocketCore.cc
  3657. * src/SocketCore.h
  3658. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3659. Call setStatusRealtime() in constructor.
  3660. * src/RealtimeCommand.cc
  3661. * src/RealtimeCommand.h
  3662. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3663. Call Download::setNoWait(true) to execute newly created command without
  3664. a pause.
  3665. * src/AbstractCommand.cc
  3666. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3667. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3668. found' error from HTTP/FTP server NUM times without getting single
  3669. bytes of data, then force the download to fail.
  3670. Basically aria2 tris all URIs available. So if long list of URIs are
  3671. specified in Metalink, then aria2 will take a long time to fail
  3672. eventually if all URIs are outdated. This option eases this situation
  3673. to limit the number of servers to try.
  3674. * src/FtpNegotiationCommand.cc
  3675. * src/HelpItemFactory.cc
  3676. * src/HttpResponseCommand.cc
  3677. * src/OptionHandlerFactory.cc
  3678. * src/PeerStat.h
  3679. * src/RequestGroup.cc
  3680. * src/RequestGroup.h
  3681. * src/SegmentMan.cc
  3682. * src/SegmentMan.h
  3683. * src/option_processing.cc
  3684. * src/prefs.cc
  3685. * src/prefs.h
  3686. * src/usage_text.h
  3687. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3688. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3689. response even if more than one response is in it.
  3690. * src/FtpConnection.cc
  3691. * src/FtpConnection.h
  3692. * test/FtpConnectionTest.cc
  3693. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3694. Merged from stable-0.15
  3695. * m4/libcares.m4
  3696. Use pkg-config
  3697. * m4/sqlite3.m4
  3698. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3699. Removed unnecessary if statement.
  3700. * src/DefaultPieceStorage.cc (initPieceStorage)
  3701. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3702. Added --connect-timeout option to specify connect timeout in seconds.
  3703. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3704. connecting to BitTorrent peer is not controlled by this option.
  3705. * src/AbstractProxyRequestCommand.cc
  3706. * src/FtpNegotiationCommand.cc
  3707. * src/HelpItemFactory.cc
  3708. * src/HttpRequestCommand.cc
  3709. * src/OptionHandlerFactory.cc
  3710. * src/option_processing.cc
  3711. * src/prefs.cc
  3712. * src/prefs.h
  3713. * src/usage_text.h
  3714. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3715. Added help message for -R option.
  3716. * src/HelpItemFactory.cc
  3717. * src/usage_text.h
  3718. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3719. Added the message that the time is in local time zone.
  3720. * src/RequestGroup.cc
  3721. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3722. Implemented the ability to get timestamp from remote FTP server using
  3723. MDTM command described in RFC3659.
  3724. * src/FtpConnection.cc
  3725. * src/FtpConnection.h
  3726. * src/FtpNegotiationCommand.cc
  3727. * src/FtpNegotiationCommand.h
  3728. * test/FtpConnectionTest.cc
  3729. * test/Makefile.am
  3730. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3731. Implemented the ability to get timestamp from remote HTTP server and
  3732. apply it to local file. To enable this feature, --remote-time option
  3733. is added. No usage text has been written yet.
  3734. If several servers returns difference timestamp, then aria2 uses latest
  3735. one.
  3736. * src/CopyDiskAdaptor.cc
  3737. * src/CopyDiskAdaptor.h
  3738. * src/DirectDiskAdaptor.cc
  3739. * src/DirectDiskAdaptor.h
  3740. * src/DiskAdaptor.h
  3741. * src/File.cc
  3742. * src/File.h
  3743. * src/HttpHeader.cc
  3744. * src/HttpHeader.h
  3745. * src/HttpResponse.cc
  3746. * src/HttpResponse.h
  3747. * src/HttpResponseCommand.cc
  3748. * src/HttpResponseCommand.h
  3749. * src/MultiDiskAdaptor.cc
  3750. * src/MultiDiskAdaptor.h
  3751. * src/OptionHandlerFactory.cc
  3752. * src/RequestGroup.cc
  3753. * src/RequestGroup.h
  3754. * src/RequestGroupMan.cc
  3755. * src/option_processing.cc
  3756. * src/prefs.cc
  3757. * src/prefs.h
  3758. * test/CopyDiskAdaptorTest.cc
  3759. * test/FileTest.cc
  3760. * test/Makefile.am
  3761. * test/Makefile.in
  3762. * test/MultiDiskAdaptorTest.cc
  3763. * test/TestUtil.cc
  3764. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3765. Fixed the bug that DiskWriterEntry is not created when its
  3766. FileEntry.isRequested() is false and it doesn't share a piece with
  3767. other FileEntries that are requested. This bug causes segmentation fault
  3768. in the end.
  3769. * src/MultiDiskAdaptor.cc
  3770. * src/MultiDiskAdaptor.h
  3771. * src/MultiFileAllocationIterator.cc
  3772. * test/MultiDiskAdaptorTest.cc
  3773. * test/MultiFileAllocationIteratorTest.cc
  3774. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3775. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3776. called if the number of file entries are greater than max open files.
  3777. * src/AbstractSingleDiskAdaptor.cc
  3778. * src/AbstractSingleDiskAdaptor.h
  3779. * src/DiskAdaptor.h
  3780. * src/MultiDiskAdaptor.cc
  3781. * src/MultiDiskAdaptor.h
  3782. * test/MultiDiskAdaptorTest.cc
  3783. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3784. Added a constuctor that receives struct timeval.
  3785. Added operator<.
  3786. * src/TimeA2.cc
  3787. * src/TimeA2.h
  3788. * test/TimeTest.cc
  3789. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3790. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3791. * src/CookieParser.cc
  3792. * test/CookieParserTest.cc
  3793. * test/HttpResponseTest.cc
  3794. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3795. Implmented the functions to parse date.
  3796. * src/TimeA2.cc
  3797. * src/TimeA2.h
  3798. * test/TimeTest.cc
  3799. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3800. Added "Firefox3 Cookie" feature to FeatureConfig
  3801. * src/FeatureConfig.cc
  3802. * src/FeatureConfig.h
  3803. * test/FeatureConfigTest.cc
  3804. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. Bump up version number to 0.16.0b
  3806. * configure.ac
  3807. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3808. Use pkg-config if is is available.
  3809. * m4/openssl.m4
  3810. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3811. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3812. * src/BtAnnounce.h
  3813. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3814. If an error occurred with a URI, remove identical URI from remaining
  3815. URI list because it is likely that same error occurred in the end and it
  3816. is waste of time.
  3817. * src/AbstractCommand.cc
  3818. * src/RequestGroup.cc
  3819. * src/RequestGroup.h
  3820. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3821. Removed wrong comment.
  3822. * src/DefaultPeerStorage.cc
  3823. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3824. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3825. Added return value of getpid() to argument of srand() to achieve more
  3826. randomized value.
  3827. * src/SimpleRandomizer.cc
  3828. * src/SimpleRandomizer.h
  3829. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3830. Contact tracker frequently when the number of connections are 0 and
  3831. download is not finished yet.
  3832. * src/ActivePeerConnectionCommand.cc
  3833. * src/BtAnnounce.h
  3834. * src/DefaultBtAnnounce.cc
  3835. * src/DefaultBtAnnounce.h
  3836. * test/MockBtAnnounce.h
  3837. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3838. Moved threshold values to UTPexExtensionMessage.
  3839. * src/DefaultBtInteractive.cc
  3840. * src/Peer.cc
  3841. * src/Peer.h
  3842. * src/UTPexExtensionMessage.cc
  3843. * src/UTPexExtensionMessage.h
  3844. * test/UTPexExtensionMessageTest.cc
  3845. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3846. Added _incoming member to Peer class and made it true if the peer
  3847. initiated connection. Don't add those peer to UTPex message.
  3848. If extended handshake is received, assign _incoming to false.
  3849. * src/DefaultBtInteractive.cc
  3850. * src/HandshakeExtensionMessage.cc
  3851. * src/Peer.cc
  3852. * src/Peer.h
  3853. * src/PeerListenCommand.cc
  3854. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3855. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3856. Encoding Decoder. Removed size threshold for turning off on the fly
  3857. inflation because resulting file may or may not be inflated depending
  3858. on the file size and I think it is not expected by users.
  3859. This change fixes segmentation fault when Metalink file contains gzipped
  3860. file and its filesize is provided.
  3861. * src/HttpResponseCommand.cc
  3862. * src/HttpResponseCommand.h
  3863. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3864. Made Cookie immutable.
  3865. * src/Cookie.cc
  3866. * src/Cookie.h
  3867. * src/CookieParser.cc
  3868. * src/CookieParser.h
  3869. * src/CookieStorage.cc
  3870. * test/CookieParserTest.cc
  3871. * test/CookieStorageTest.cc
  3872. * test/NsCookieParserTest.cc
  3873. * test/Sqlite3MozCookieParserTest.cc
  3874. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3875. Removed CookieBox, CookieBoxFactory.
  3876. * src/CookieBox.cc
  3877. * src/CookieBox.h
  3878. * src/CookieBoxFactory.cc
  3879. * src/CookieBoxFactory.h
  3880. * src/Makefile.am
  3881. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3882. Use CookieStorage class instead of CookieBox class.
  3883. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3884. * src/AbstractProxyRequestCommand.cc
  3885. * src/CookieStorage.cc
  3886. * src/DownloadEngine.cc
  3887. * src/DownloadEngine.h
  3888. * src/HttpConnection.cc
  3889. * src/HttpConnection.h
  3890. * src/HttpRequest.cc
  3891. * src/HttpRequest.h
  3892. * src/HttpRequestCommand.cc
  3893. * src/HttpResponse.cc
  3894. * src/HttpResponseCommand.cc
  3895. * src/HttpSkipResponseCommand.cc
  3896. * src/Makefile.am
  3897. * src/MultiUrlRequestInfo.cc
  3898. * src/Request.cc
  3899. * src/Request.h
  3900. * src/main.cc
  3901. * test/AllTest.cc
  3902. * test/CookieStorageTest.cc
  3903. * test/CookieTest.cc
  3904. * test/HttpRequestTest.cc
  3905. * test/HttpResponseTest.cc
  3906. * test/Makefile.am
  3907. * test/NsCookieParserTest.cc
  3908. * test/Sqlite3MozCookieParserTest.cc
  3909. * test/nscookietest.txt
  3910. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3911. Updated
  3912. * test/Cookies.sqlite
  3913. * test/nscookietest.txt
  3914. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3915. Added tests for CookieStorage::load()
  3916. * test/CookieStorageTest.cc
  3917. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3918. Added CookieStorage class which is based on RFC2109 and manages cookies
  3919. more strictly than CookieBox and CookieBoxFactory class.
  3920. * src/CookieStorage.cc
  3921. * src/CookieStorage.h
  3922. * src/Cookie.cc
  3923. * src/Cookie.h
  3924. * test/CookieStorageTest.cc
  3925. * test/CookieTest.cc
  3926. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3927. Fixed the bug that commands are created more than the number of pieces.
  3928. * src/RequestGroup.cc
  3929. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3930. Fixed infinite loop bug in FTP when SIZE command failed.
  3931. * src/FtpNegotiationCommand.cc
  3932. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3933. Removed DirectDiskAdaptorTest.h
  3934. * test/Makefile.am
  3935. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3936. Fixed chunk checksum validation cannot detect trailing garbage data.
  3937. BUG#2074141
  3938. * src/AbstractSingleDiskAdaptor.cc
  3939. * src/AbstractSingleDiskAdaptor.h
  3940. * src/CheckIntegrityEntry.cc
  3941. * src/CheckIntegrityEntry.h
  3942. * src/DiskAdaptor.h
  3943. * src/MultiDiskAdaptor.cc
  3944. * src/MultiDiskAdaptor.h
  3945. * src/RequestGroup.cc
  3946. * test/DirectDiskAdaptorTest.cc
  3947. * test/MultiDiskAdaptorTest.cc
  3948. * test/TestUtil.cc
  3949. * test/TestUtil.h
  3950. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3951. Bump up version number of dht.dat file to 3. In version 3 format, time
  3952. is stored in 64bit, network byte order.
  3953. New build can load old format(version 2) but it saves the file in new
  3954. format. It means once you used new build, your dht.dat becomes
  3955. incompatible with older build.
  3956. * src/DHTRoutingTableDeserializer.cc
  3957. * src/DHTRoutingTableSerializer.cc
  3958. * test/DHTRoutingTableSerializerTest.cc
  3959. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3960. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3961. * test/Makefile.am
  3962. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3963. Bump up version number of .aria2 control file to 0001.
  3964. New aria2 can still load version 0000 file but it saves the file in
  3965. version 0001 format. It means that new aria2 can resume download
  3966. started by old aria2 but the opposite is not true.
  3967. * src/DefaultBtProgressInfoFile.cc
  3968. * src/DefaultBtProgressInfoFile.h
  3969. * test/DefaultBtProgressInfoFileTest.cc
  3970. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3971. Added ntoh64 and hton64 as inline functions.
  3972. * src/Util.cc
  3973. * test/UtilTest.cc
  3974. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3975. Added sqlite3 depenency and Firefox3 cookie support.
  3976. * README
  3977. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3978. State that firefox3 cookie is supported explicitly in the usage.
  3979. * src/usage_text.h
  3980. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3981. Externalized message.
  3982. * src/RequestGroupMan.cc
  3983. * src/message.h
  3984. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3985. Save temporary file first and rename to the destination on success.
  3986. Added test cases.
  3987. * src/RequestGroupMan.cc
  3988. * test/RequestGroupManTest.cc
  3989. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3990. Fixed the bug that the number of connected peer is exceeding the limit
  3991. (55 by default) in seeding mode.
  3992. Multiplied 0.8 to _maxUploadSpeedLimit.
  3993. * src/ActivePeerConnectionCommand.cc
  3994. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3995. Clear table item.
  3996. * src/Dictionary.cc
  3997. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3998. Fixed error handling of lseek.
  3999. * src/AbstractDiskWriter.cc
  4000. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4001. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  4002. style cookie file.
  4003. * src/usage_text.h
  4004. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4005. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  4006. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  4007. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  4008. * src/Util.cc
  4009. * src/Util.h
  4010. * src/CookieParser.cc
  4011. * test/UtilTest.cc
  4012. * test/CookieParserTest.cc
  4013. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4014. Separate the implementation to load old mozilla format of cookie to
  4015. NsCookieParser class.
  4016. * src/CookieBoxFactory.cc
  4017. * src/CookieBoxFactory.h
  4018. * src/NsCookieParser.cc
  4019. * src/NsCookieParser.h
  4020. * test/NsCookieParserTest.cc
  4021. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4022. Made parse() const
  4023. * src/Sqlite3MozCookieParser.cc
  4024. * src/Sqlite3MozCookieParser.h
  4025. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Added firefox3 cookie support based on the patch submitted by
  4027. tizianomueller.
  4028. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  4029. this functionality.
  4030. * configure.ac
  4031. * m4/sqlite3.m4
  4032. * src/CookieBoxFactory.cc
  4033. * src/CookieBoxFactory.h
  4034. * src/Makefile.am
  4035. * src/Makefile.in
  4036. * src/Sqlite3MozCookieParser.cc
  4037. * src/Sqlite3MozCookieParser.h
  4038. * src/main.cc
  4039. * test/CookieBoxFactoryTest.cc
  4040. * test/Makefile.am
  4041. * test/Makefile.in
  4042. * test/Sqlite3MozCookieParserTest.cc
  4043. * test/badcookies.sqlite
  4044. * test/cookies.sqlite
  4045. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4046. Added Danish and Greek translations.
  4047. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4048. Great thanks to all translators.
  4049. * po/LINGUAS
  4050. * po/el.po
  4051. * po/da.po
  4052. * po/es.po
  4053. * po/ca.po
  4054. * po/nn.po
  4055. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4056. Fixed man page: --follow-bittorrent should be --follow-torrent
  4057. * doc/aria2c.1.txt
  4058. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4059. Fixed: numCommand is less than the value specified in -C option.
  4060. * src/RequestGroup.cc
  4061. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4062. Fixed occasional assertion failure in PieceSegment.
  4063. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4064. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4065. creation of duplicate segments and one of the segment was finished then
  4066. assertion failure was caused.
  4067. * src/SegmentMan.cc
  4068. * test/SegmentManTest.cc
  4069. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4070. Added options to load/save the server's performance/status to a file
  4071. and the timeout to drop their data.
  4072. --server-stat-of=FILE specifies the file to which performance data
  4073. is saved.
  4074. --server-stat-if=FILE specifies the file to read previously saved
  4075. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4076. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4077. TIMEOUT is specified in seconds and the default value is 24hours.
  4078. * src/MultiUrlRequestInfo.cc
  4079. * src/OptionHandlerFactory.cc
  4080. * src/RequestGroupMan.cc
  4081. * src/RequestGroupMan.h
  4082. * src/ServerStatMan.cc
  4083. * src/ServerStatMan.h
  4084. * src/option_processing.cc
  4085. * src/prefs.cc
  4086. * src/prefs.h
  4087. * test/ServerStatManTest.cc
  4088. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4089. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4090. * src/ServerStatMan.cc
  4091. * src/ServerStatMan.h
  4092. * test/ServerStatManTest.cc
  4093. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4094. Implemented ServerStatMan::load(...) function and its test case.
  4095. * src/ServerStat.cc
  4096. * src/ServerStat.h
  4097. * src/ServerStatMan.cc
  4098. * test/ServerStatManTest.cc
  4099. * test/ServerStatTest.cc
  4100. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4101. Use time_t instead of int32_t. Use int64_t where milli second is
  4102. expected.
  4103. * src/TimeA2.cc
  4104. * src/TimeA2.h
  4105. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4106. Implemented ServerStatMan::save(...) function and its test case.
  4107. * src/ServerStat.cc
  4108. * src/ServerStat.h
  4109. * src/ServerStatMan.cc
  4110. * src/ServerStatMan.h
  4111. * test/ServerStatManTest.cc
  4112. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4113. Now aria2 uses name attribute in Metalink as local filename in
  4114. BitTorrent downloads. BUG#2033999
  4115. * src/BtContext.h
  4116. * src/BtDependency.cc
  4117. * src/DefaultBtContext.cc
  4118. * src/DefaultBtContext.h
  4119. * src/SingleFileDownloadContext.cc
  4120. * src/SingleFileDownloadContext.h
  4121. * test/BtDependencyTest.cc
  4122. * test/DefaultBtContextTest.cc
  4123. * test/MockBtContext.h
  4124. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4125. Added AC_C_BIGENDIAN
  4126. * src/configure.ac
  4127. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4128. Limited numCommand less than or equal to the number of piece.
  4129. * src/RequestGroup.cc
  4130. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4131. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4132. directive.
  4133. * test/DefaultPieceStorageTest.cc
  4134. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4135. Fixed memory leak in test code
  4136. * test/AnnounceListTest.cc
  4137. * test/DefaultPeerListProcessorTest.cc
  4138. * test/DefaultPeerStorageTest.cc
  4139. * test/MetaFileUtilTest.cc
  4140. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4141. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4142. * src/DefaultPieceStorage.cc
  4143. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. Initialized _directIOAllowed
  4145. * src/MultiDiskAdaptor.cc
  4146. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4147. Fixed memory leak
  4148. * src/GZipDecoder.cc
  4149. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4150. Fixed memory leak
  4151. * src/MetalinkParserStateMachine.cc
  4152. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4153. Fixed memory leak
  4154. * src/Dictionary.cc
  4155. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4156. Fixed memory leak
  4157. * src/IteratableChunkChecksumValidator.h
  4158. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4159. Fixed unmatched malloc/free.
  4160. * src/IteratableChunkChecksumValidator.cc
  4161. * src/IteratableChecksumValidator.cc
  4162. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4163. Removed max chunk size check. This change fixes BUG#2040169
  4164. * src/ChunkedDecoder.cc
  4165. * src/ChunkedDecoder.h
  4166. * test/ChunkedDecoderTest.cc
  4167. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4168. Implemented download speed based URI selection algorithm.
  4169. Introduced new option --uri-selector.
  4170. If --uri-selector=feedback is given, aria2 uses download speed observed
  4171. in the previous downloads and chooses fastest server in the URI list.
  4172. Currently at most 10 URIs are considered to introduce randomeness for
  4173. finding better servers. The speed is average download speed in the
  4174. downloads.
  4175. On the other hand, if --uri-selector=inorder is given, which is default,
  4176. URI is tried in order in URI list.
  4177. The usage text for the new option has not been written yet.
  4178. * src/AbstractCommand.cc
  4179. * src/DownloadCommand.cc
  4180. * src/DownloadEngine.cc
  4181. * src/DownloadEngineFactory.cc
  4182. * src/InOrderURISelector.cc
  4183. * src/InOrderURISelector.h
  4184. * src/OptionHandlerFactory.cc
  4185. * src/PeerStat.h
  4186. * src/RequestGroup.cc
  4187. * src/RequestGroup.h
  4188. * src/RequestGroupMan.cc
  4189. * src/RequestGroupMan.h
  4190. * src/SegmentMan.cc
  4191. * src/SegmentMan.h
  4192. * src/ServerStat.cc
  4193. * src/ServerStat.h
  4194. * src/ServerStatMan.cc
  4195. * src/ServerStatMan.h
  4196. * src/ServerStatURISelector.cc
  4197. * src/ServerStatURISelector.h
  4198. * src/URISelector.h
  4199. * src/option_processing.cc
  4200. * src/prefs.cc
  4201. * src/prefs.h
  4202. * test/InOrderURISelectorTest.cc
  4203. * test/RequestGroupManTest.cc
  4204. * test/ServerStatManTest.cc
  4205. * test/ServerStatURISelectorTest.cc
  4206. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4207. * Release 0.15.1+2
  4208. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Bump up version number to 0.15.1+2
  4210. * configure.ac
  4211. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4212. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4213. * m4/aria2_arg.m4
  4214. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. * Release 0.15.1+1
  4216. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4217. Bump up version number to 0.15.1+1
  4218. * configure.ac
  4219. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4220. Fixed the bug that causes segmentaion fault when resuming download
  4221. using metalink without size tag. Reproducible only using HTTP URI.
  4222. * src/HttpResponseCommand.cc
  4223. * src/FtpNegotiationCommand.cc
  4224. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4225. * Release 0.15.1
  4226. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4227. Updated Bulgarian and French translations, thanks to all translators.
  4228. * po/bg.po
  4229. * po/fr.po
  4230. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4231. Bump up version number to 0.15.1
  4232. * configure.ac
  4233. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4234. Avoid repeated call of gettimeofday() when calculating speed.
  4235. * src/SpeedCalc.cc
  4236. * src/SpeedCalc.h
  4237. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4238. Removed writable check when socket's send buffer is full in BitTorrent
  4239. downloads to lower CPU usage.
  4240. * src/PeerInteractionCommand.cc
  4241. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4242. Fixed broken gzip inflation.
  4243. Turn off segmented downloading if gzip content is smaller than or equal
  4244. to 1MiB and inflate the data on the fly, because HTTP response header
  4245. doesn't contain the length of inflated file we can't determin where
  4246. the chunk of data should be written.
  4247. On the other hand, if gzip content is larger than 1MB, then turn off
  4248. on the fly inflation, because some servers returns "content-type: gzip"
  4249. for *.tgz, *.gz files.
  4250. * src/DownloadCommand.cc
  4251. * src/HttpResponseCommand.cc
  4252. * src/HttpResponseCommand.h
  4253. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4254. Applied tizianomueller's patch to fix compile error.
  4255. * test/BitfieldManTest.cc
  4256. * test/BtRequestMessageTest.cc
  4257. * test/DefaultBtContextTest.cc
  4258. * test/DefaultDiskWriterTest.cc
  4259. * test/DefaultPieceStorageTest.cc
  4260. * test/HttpHeaderProcessorTest.cc
  4261. * test/HttpResponseTest.cc
  4262. * test/Metalink2RequestGroupTest.cc
  4263. * test/MetalinkParserControllerTest.cc
  4264. * test/MetalinkProcessorTest.cc
  4265. * test/PeerSessionResourceTest.cc
  4266. * test/UtilTest.cc
  4267. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4268. * Release 0.15.0
  4269. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4270. Reordered src files in POTFILES.in so that usage text appears first.
  4271. * po/POTFILES.in
  4272. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4273. Bump up version number to 0.15.0
  4274. * configure.ac
  4275. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4276. Added Bulgarian translation.
  4277. Updated Catalan, Spanish, French and Japanese translations.
  4278. Thanks to all translators.
  4279. * po/LINGUAS
  4280. * po/bg.po
  4281. * po/ca.po
  4282. * po/es.po
  4283. * po/fr.po
  4284. * po/ja.po
  4285. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4286. Updated feature list. Added libz for dependency section.
  4287. Added a description about unit testing using CppUnit.
  4288. * README
  4289. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4290. Added a test for libz. Quoted where it is necessary.
  4291. * build_test.sh
  4292. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4293. Added GZip to `Enabled Features' list.
  4294. * src/FeatureConfig.cc
  4295. * src/FeatureConfig.h
  4296. * test/FeatureConfigTest.cc
  4297. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4298. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4299. the transfer has not yet started.
  4300. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4301. * src/SegmentMan.cc
  4302. * src/SegmentMan.h
  4303. * test/SegmentManTest.cc
  4304. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4305. Cache last calculated average download/upload speed.
  4306. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4307. cached value.
  4308. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4309. * src/PeerStat.h
  4310. * src/SpeedCalc.cc
  4311. * src/SpeedCalc.h
  4312. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4313. Call parseUrl directly.
  4314. * src/Request.cc (resetUrl)
  4315. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4316. Supported absolute/relative path in Location header field.
  4317. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4318. * src/HttpHeader.cc
  4319. * src/HttpHeader.h
  4320. * src/HttpResponse.cc
  4321. * src/HttpSkipResponseCommand.cc
  4322. * src/Request.cc
  4323. * test/HttpHeaderTest.cc
  4324. * test/HttpResponseTest.cc
  4325. * test/RequestTest.cc
  4326. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Changed help text for --load-cookie option.
  4328. * doc/aria2c.1.txt
  4329. * src/usage_text.h
  4330. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4331. Regenerated test/Makefile.in to remove stale ChangeLog.
  4332. * test/Makefile.in
  4333. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4334. Updated po files.
  4335. * po/aria2c.pot
  4336. * po/*.po
  4337. * po/*.gmo
  4338. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4339. Bump up version number to 0.15.0b
  4340. * configure.ac
  4341. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4342. Externalize messages.
  4343. * src/RequestGroupMan.cc
  4344. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4345. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4346. Use File::exists() instead of File::isFile() to allow non-regular file
  4347. such as block special files.
  4348. * src/AbstractDiskWriter.cc
  4349. * src/MultiDiskWriter.cc
  4350. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4351. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4352. * src/gai_strerror.h
  4353. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4354. Fixed compile error. Thanks gknauf for the patch.
  4355. * src/asctime_r.c
  4356. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4357. Included asctime_r.h from a2time.h.
  4358. * src/a2time.h
  4359. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4360. Added a message "aria2 doesn't verify signature" to log message when
  4361. signature file is saved.
  4362. * src/RequestGroupMan.cc
  4363. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4364. Added the ability to save signature when download is completed if
  4365. signature is available. The filename of signature file is the path to
  4366. download file followed by ".sig". If it already exists, then signature
  4367. will not be saved.
  4368. * src/RequestGroupMan.cc
  4369. * src/Signature.cc
  4370. * test/SignatureTest.cc
  4371. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4372. Updated the descriptions for --bt-seed-unverified.
  4373. * doc/aria2c.1
  4374. * doc/aria2c.1.html
  4375. * doc/aria2c.1.txt
  4376. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4377. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4378. that this is not going to verify files using piece hashes.
  4379. * src/HelpItemFactory.cc
  4380. * src/OptionHandlerFactory.cc
  4381. * src/RequestGroup.cc
  4382. * src/option_processing.cc
  4383. * src/prefs.cc
  4384. * src/prefs.h
  4385. * src/usage_text.h
  4386. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4387. Added the ability to retrieve signature from Metalink file.
  4388. A retrieved signature is stored in Signature class and it is held by
  4389. DownloadContext class. Note that aria2 doesn't verify signature.
  4390. * src/DownloadContext.cc
  4391. * src/DownloadContext.h
  4392. * src/Makefile.am
  4393. * src/Makefile.in
  4394. * src/Metalink2RequestGroup.cc
  4395. * src/MetalinkEntry.cc
  4396. * src/MetalinkEntry.h
  4397. * src/MetalinkParserController.cc
  4398. * src/MetalinkParserController.h
  4399. * src/MetalinkParserStateMachine.cc
  4400. * src/MetalinkParserStateMachine.h
  4401. * src/Signature.cc
  4402. * src/Signature.h
  4403. * src/SignatureMetalinkParserState.cc
  4404. * src/SignatureMetalinkParserState.h
  4405. * src/VerificationMetalinkParserState.cc
  4406. * src/VerificationMetalinkParserState.h
  4407. * test/Metalink2RequestGroupTest.cc
  4408. * test/MetalinkParserControllerTest.cc
  4409. * test/MetalinkProcessorTest.cc
  4410. * test/test.xml
  4411. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4412. Close DiskAdaptor after renaming file.
  4413. * src/RequestGroup.cc
  4414. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4415. Corrected indentation
  4416. * src/DefaultBtProgressInfoFile.cc
  4417. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4418. Moved the calls of std::ios::exceptions() inside of try-catch block
  4419. because if an error occurred in constructor of std::fstream, then
  4420. exception is thrown immediately when std::ios::exceptions() is called
  4421. which results unhandled exception and aria2c aborts.
  4422. * src/DefaultBtProgressInfoFile.cc
  4423. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4424. Added the test for the previous change in DefaultBtContext.cc
  4425. * test/DefaultBtContextTest.cc
  4426. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4427. Fixed the bug that causes infinite loop when the number of pieces are
  4428. fewer than allowed fast set size which is 10 by default.
  4429. * src/DefaultBtContext.cc
  4430. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4431. Updated the descriptions for -j, -s. Added --bt-seed.
  4432. * doc/aria2c.1
  4433. * doc/aria2c.1.html
  4434. * doc/aria2c.1.txt
  4435. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4436. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4437. aria2 seeds previously downloaded files without validating piece hashs.
  4438. * src/HelpItemFactory.cc
  4439. * src/OptionHandlerFactory.cc
  4440. * src/RequestGroup.cc
  4441. * src/option_processing.cc
  4442. * src/prefs.cc
  4443. * src/prefs.h
  4444. * src/usage_text.h
  4445. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Updated DESCRIPTION of man page.
  4447. * doc/aria2c.1
  4448. * doc/aria2c.1.html
  4449. * doc/aria2c.1.txt
  4450. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4452. Don't define `struct addrinfo' when __sun is defined.
  4453. * src/getaddrinfo.h
  4454. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4456. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4457. second argument is of type `struct _stati64'. Otherwise it is defined as
  4458. `struct stat'.
  4459. * src/AbstractDiskWriter.cc
  4460. * src/File.cc
  4461. * src/File.h
  4462. * src/a2io.h
  4463. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4464. Fixed the compile error in hurd-i386
  4465. See the original bug report:
  4466. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4467. * src/a2io.h
  4468. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4469. Code cleanup.
  4470. * src/PeerAbstractCommand.cc
  4471. * src/PeerAbstractCommand.h
  4472. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4473. Removed TransferEncoding.
  4474. * src/DownloadCommand.cc
  4475. * src/DownloadCommand.h
  4476. * src/HttpResponseCommand.cc
  4477. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4478. Updated po files.
  4479. * po/aria2c.pot
  4480. * po/*.po
  4481. * po/*.gmo
  4482. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4483. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4484. * src/A2STR.cc
  4485. * src/A2STR.h
  4486. * src/ChunkedDecoder.cc
  4487. * src/ChunkedDecoder.h
  4488. * src/ChunkedEncoding.cc: Removed
  4489. * src/ChunkedEncoding.h: Removed
  4490. * src/DownloadCommand.cc
  4491. * src/DownloadCommand.h
  4492. * src/HttpDownloadCommand.cc
  4493. * src/HttpResponse.cc
  4494. * src/HttpResponse.h
  4495. * src/HttpResponseCommand.cc
  4496. * src/HttpSkipResponseCommand.cc
  4497. * src/HttpSkipResponseCommand.h
  4498. * src/Makefile.am
  4499. * src/TransferEncoding.h: Removed
  4500. * test/ChunkedDecoderTest.cc
  4501. * test/ChunkedEncodingTest.cc: Removed
  4502. * test/HttpResponseTest.cc
  4503. * test/Makefile.am
  4504. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4505. Use append instead of insert.
  4506. * src/GZipDecoder.cc
  4507. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4508. Updated doc
  4509. * src/Decoder.h
  4510. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4511. Updated usage text for -s option.
  4512. * src/usage_text.h
  4513. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4514. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4515. * src/Request.cc
  4516. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4517. Cleaned up configure.ac.
  4518. * configure.ac
  4519. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4520. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4521. AC_ARG_ENABLE.
  4522. * configure.ac
  4523. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4524. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4525. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4526. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4527. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4528. fly and writes decoded data to a local disk.
  4529. * README
  4530. * README.html
  4531. * configure.ac
  4532. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4533. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4534. * m4/libz.m4
  4535. * src/Decoder.h
  4536. * src/DownloadCommand.cc
  4537. * src/DownloadCommand.h
  4538. * src/Exception.h
  4539. * src/GZipDecoder.cc
  4540. * src/GZipDecoder.h
  4541. * src/HttpHeader.cc
  4542. * src/HttpHeader.h
  4543. * src/HttpRequest.cc
  4544. * src/HttpRequest.h
  4545. * src/HttpResponse.cc
  4546. * src/HttpResponse.h
  4547. * src/HttpResponseCommand.cc
  4548. * src/Makefile.am
  4549. * test/GZipDecoderTest.cc
  4550. * test/HttpRequestTest.cc
  4551. * test/HttpResponseTest.cc
  4552. * test/Makefile.am
  4553. * test/Makefile.in
  4554. * test/gzip_decode_test.gz
  4555. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4556. Clarified usage of -j option.
  4557. * src/usage_text.h
  4558. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4559. Disabled getting size from the response of RETR.
  4560. If SIZE command failed, then disable resuming and segmented downloading.
  4561. * src/FtpConnection.cc
  4562. * src/FtpConnection.h
  4563. * src/FtpNegotiationCommand.cc
  4564. * src/FtpNegotiationCommand.h
  4565. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4566. Use digits to find first byte of file size, which makes the intention
  4567. of the code clearer.
  4568. * src/FtpConnection.cc
  4569. Don't call validateTotalLength() when size is 0.
  4570. * src/FtpNegotiationCommand.cc
  4571. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4572. Updated po files.
  4573. * po/aria2c.pot
  4574. * po/*.gmo
  4575. * po/*.po
  4576. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4577. Clarified usage text for --split option.
  4578. * src/usage_text.h
  4579. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4580. Bump up version number to 0.15.0dev. "dev" means "development"
  4581. version, which means I started the development of the next release!
  4582. * src/configure.ac
  4583. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4584. If FTP server returns negative response with REST raw command and
  4585. requested range is not 0, throw exception. If requested range is 0,
  4586. continue download a file from 0 byte.
  4587. * src/FtpNegotiationCommand.cc
  4588. * src/FtpNegotiationCommand.h
  4589. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4590. Supported FTP server which don't recognize SIZE raw command.
  4591. If SIZE raw command is failed, aria2 will try to get file size
  4592. from the response of RETR raw command. If both attempts are failed,
  4593. then resuming and segmented downloading are disabled.
  4594. * src/FtpConnection.cc
  4595. * src/FtpConnection.h
  4596. * src/FtpNegotiationCommand.cc
  4597. * src/FtpNegotiationCommand.h
  4598. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4599. * Release 0.14.0+1
  4600. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Bump up version number to 0.14.0+1
  4602. * src/configure.ac
  4603. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4604. Fixed the code that refers static member variable from non-static
  4605. context.
  4606. * src/DefaultPeerStorage.cc
  4607. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4608. * Release 0.14.0
  4609. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4610. Added build test script
  4611. * build_test.sh
  4612. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4613. Updated ja.po
  4614. * src/ja.po
  4615. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4616. Bump up version number to 0.14.0
  4617. * src/configure.ac
  4618. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. Updated ja.po and fr.po. Great thanks for french translators and
  4620. Sebastien WILLEMIJNS.
  4621. * po/fr.po
  4622. * po/ja.po
  4623. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4624. Added configure option to enable/disable epoll support.
  4625. * configure.ac
  4626. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4627. Updated man page.
  4628. * doc/aria2c.1.txt
  4629. * doc/aria2c.1
  4630. * doc/aria2c.1.html
  4631. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4632. Added missing default value '5' to the usage of --split option.
  4633. * src/HelpItemFactory.cc
  4634. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. Filled up pieces based on the number of missing blocks, rather than
  4636. simplay the number of piece * block length.
  4637. * src/BtRequestFactory.h
  4638. * src/DefaultBtInteractive.cc
  4639. * src/DefaultBtInteractive.h
  4640. * src/DefaultBtRequestFactory.cc
  4641. * src/DefaultBtRequestFactory.h
  4642. * src/Piece.cc
  4643. * src/Piece.h
  4644. * test/BitfieldManTest.cc
  4645. * test/DefaultBtRequestFactoryTest.cc
  4646. * test/MockBtRequestFactory.h
  4647. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4648. Made _epEvents a member variable.
  4649. * src/DownloadEngine.cc
  4650. * src/DownloadEngine.h
  4651. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. Cancel download if http redirect is bounded more than 20 times.
  4653. * src/AbstractCommand.cc
  4654. * src/HttpSkipResponseCommand.cc
  4655. * src/Request.cc
  4656. * src/Request.h
  4657. * test/RequestTest.cc
  4658. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4659. Fixed unhandled exception(removed keyword `new').
  4660. * src/SocketCore.cc (initEPOLL)
  4661. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4662. Removed visit(const MetaEntry*)
  4663. * src/MetaEntryVisitor.h:
  4664. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4665. and made them virtual.
  4666. * src/BencodeVisitor.h
  4667. * src/BencodeVisitor.cc
  4668. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4669. Updated po files.
  4670. * po/aria2c.pot
  4671. * po/*.po
  4672. * po/*.gmo
  4673. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4674. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4675. the number of socket to watch out.
  4676. * src/PeerInteractionCommand.cc
  4677. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4678. When there is not enough space in disk when writing a chunk of data,
  4679. aria2 now prints the message to the console to warn user and aborts
  4680. its download. Not all downloads are canceled because some downloads
  4681. may use another disk or partition. BUG#1640332
  4682. * src/AbstractDiskWriter.cc
  4683. * src/PeerAbstractCommand.cc
  4684. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4685. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4686. setHaltRequested(true) to cancel download.
  4687. * src/PeerInteractionCommand.h
  4688. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4689. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4690. socket from int to sock_t as sockets are unsigned in Windows.
  4691. For AsyncNameResolver, DownloadEngine, I did additional modification
  4692. for the portion of the code changed according to epoll support.
  4693. I defined sock_t in a2netcompat.h to use sock_t without including
  4694. SocketCore.h.
  4695. * src/AsyncNameResolver.cc
  4696. * src/AsyncNameResolver.h
  4697. * src/DownloadEngine.cc
  4698. * src/DownloadEngine.h
  4699. * src/SocketCore.cc
  4700. * src/SocketCore.h
  4701. * src/a2netcompat.h
  4702. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4703. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4704. changes in the patch were applied.
  4705. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4706. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4707. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4708. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4710. a2io.h and common.h were modified.
  4711. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4712. MinGW.
  4713. * src/common.h: Changed off_t to 64 bit in MinGW.
  4714. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4715. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4716. only a2netcompat.h is modified.
  4717. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4718. directives.
  4719. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4720. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4721. only gai_strerror.h is modified.
  4722. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4723. winsock errors in MinGW.
  4724. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4725. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4726. follow sources are applied.
  4727. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4728. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4729. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4730. I included locale.h from Platform.cc.
  4731. * src/main.cc: Moved common setup/teardown code to Platform class.
  4732. * test/AllTest.cc: Use Platform class.
  4733. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4734. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4735. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4736. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4737. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4738. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4740. aria2-0.13.2+1-mingw-2.patch.
  4741. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4742. systems which don't have termious.h. I moved the directive inside of
  4743. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4744. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4745. anyway.
  4746. * src/asctime_r.h
  4747. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4748. I added 2nd argument to the prototype declaration.
  4749. * src/StringFormat.cc: Get rid of vasprintf.
  4750. * src/getaddrinfo.h: Fixed constants.
  4751. * configure.ac: Added the check for asctime_r function.
  4752. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4753. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4754. Added writable test for Socket when the sending message is in progress.
  4755. Usually the sending message is piece message. Without wriable check,
  4756. upload latency is dropped to more than 1sec.
  4757. * src/PeerInteractionCommand.cc
  4758. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4759. Create only requested files and files which shares a piece with
  4760. requested file in multi-torrent downloads. Directory structures are
  4761. also created in the same rule.
  4762. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4763. DiskWriterEntry as in the previous implementation.
  4764. * src/MultiDiskWriter.cc
  4765. * src/MultiFileAllocationIterator.cc
  4766. * src/MultiFileAllocationIterator.h
  4767. * test/MultiFileAllocationIteratorTest.cc
  4768. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4769. Commented out -lprofiler
  4770. * src/Makefile.am
  4771. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4772. Bump up version number to 0.14.0b.
  4773. * src/configure.ac
  4774. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4775. Actively establish connection to peers in seeding, when peer cache
  4776. is not full and max upload speed limit is not reached.
  4777. * src/ActivePeerConnectionCommand.cc
  4778. * src/ActivePeerConnectionCommand.h
  4779. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4780. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4781. to make room more fleshy, recently found peers.
  4782. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4783. it.
  4784. * src/DefaultPeerStorage.cc
  4785. * test/DefaultPeerStorageTest.cc
  4786. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4787. Returns cached data only when the previous receiveHandshake() is called
  4788. with peek = true.
  4789. * src/PeerConnection.cc (receiveHandshake)
  4790. * src/PeerConnection.h (receiveHandshake)
  4791. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4792. Changed default value of -s option from 1 to 5.
  4793. Also max value of -s option is changed from 5 to 16.
  4794. * src/HelpItemFactory.cc
  4795. * src/OptionHandlerFactory.cc
  4796. * src/option_processing.cc
  4797. * src/usage_text.h
  4798. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Changed -s options behavior. Now it means the number of connections
  4800. made simultaneously in each http/ftp download.
  4801. If 1 URL is specified, the behavior is the same with old implementation.
  4802. If -s N is given and more than N URLs are specified, first N URLs are
  4803. used and remaining URLs are used for backup. If less than N URLs are
  4804. specified, some of URLs are used more than once so that totally N
  4805. connections are made simultaneously.
  4806. * src/main.cc
  4807. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4808. Included missing iosfwd or ostream header.
  4809. * src/RequestGroupMan.cc
  4810. * src/TaggedItem.cc
  4811. * src/TaggedItem.h
  4812. * src/Util.cc
  4813. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4815. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4816. * src/HttpConnection.cc: Included missing sstream.
  4817. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4818. Added --bt-max-open-files option.
  4819. * src/DefaultPieceStorage.cc
  4820. * src/HelpItemFactory.cc
  4821. * src/MultiDiskAdaptor.cc
  4822. * src/MultiDiskAdaptor.h
  4823. * src/OptionHandlerFactory.cc
  4824. * src/option_processing.cc
  4825. * src/prefs.cc
  4826. * src/prefs.h
  4827. * src/usage_text.h
  4828. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4829. Fixed the bug that aria2 aborts when a path to a directory is given
  4830. in command-line.
  4831. * src/ProtocolDetector.cc
  4832. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4833. Limited the number files opened in each BitTorrent download. The default
  4834. value is 100. The option to change this value will be added.
  4835. * src/MultiDiskAdaptor.cc
  4836. * src/MultiDiskAdaptor.h
  4837. * src/MultiFileAllocationIterator.cc
  4838. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4839. Fixed the bug that HTTP downloads don't start with old libraries.
  4840. * src/HttpHeaderProcessor.cc
  4841. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4842. Use empty() instead of size() > 0.
  4843. * src/HttpConnection.cc
  4844. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4845. Drop connection if the incoming peer ID is the same with localhost's
  4846. one. The previous implementation drops connection when incoming peer's
  4847. IP address is the same with localhost's one.
  4848. * src/PeerListenCommand.cc
  4849. * src/DefaultBtInteractive.cc
  4850. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4851. Returns cached data without checking whether socket is readable
  4852. if the cache is available.
  4853. * src/PeerConnection.cc (receiveHandshake)
  4854. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4855. Included stdint.h
  4856. * src/common.h
  4857. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4858. Removed duplicate HAVE_GETTIMEOFDAY
  4859. * src/Makefile.am
  4860. * src/Makefile.in
  4861. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4862. Use interval as a minInterval when minInterval is not supplied.
  4863. * src/DefaultBtAnnounce.cc
  4864. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4865. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4866. attempt is failed, then 2nd attempt get kicked out more quickly.
  4867. And it is now static const member of DefaultBtAnnounce.
  4868. * src/DefaultBtAnnounce.h
  4869. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4870. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4871. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4872. * src/ActivePeerConnectionCommand.cc
  4873. * src/BtConstants.h
  4874. * src/BtRuntime.h
  4875. * src/DHTGetPeersCommand.cc
  4876. * src/DefaultBtAnnounce.cc
  4877. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4878. BtRuntime::MAX_PEERS.
  4879. * src/DefaultPeerStorage.h
  4880. * src/InitiatorMSEHandshakeCommand.cc
  4881. * src/PeerInitiateConnectionCommand.cc
  4882. * src/PeerInteractionCommand.cc
  4883. * src/PeerReceiveHandshakeCommand.cc
  4884. * src/TrackerWatcherCommand.cc
  4885. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4886. Always Connect to _numNewConnection
  4887. * src/ActivePeerConnectionCommand.cc
  4888. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4889. Made `begin' unsigned int.
  4890. * src/GrowSegment.h
  4891. * src/Piece.cc
  4892. * src/Piece.h
  4893. * src/PiecedSegment.cc
  4894. * src/PiecedSegment.h
  4895. * src/Segment.h
  4896. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4897. Calculate piece hash when data is arrived if the data is arrived in
  4898. order. This removes additional read operation for hash calculation.
  4899. If the data is arrived in out of order, the hash is calucated when the
  4900. piece is completed. This is the same behavior as the old implementation.
  4901. * src/BtPieceMessage.cc
  4902. * src/DefaultBtProgressInfoFile.cc
  4903. * src/DefaultPieceStorage.cc
  4904. * src/DownloadCommand.cc
  4905. * src/DownloadCommand.h
  4906. * src/DownloadEngine.cc
  4907. * src/GrowSegment.cc
  4908. * src/GrowSegment.h
  4909. * src/Piece.cc
  4910. * src/Piece.h
  4911. * src/PiecedSegment.cc
  4912. * src/PiecedSegment.h
  4913. * src/Segment.h
  4914. * test/PieceTest.cc
  4915. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4916. Try to keep the ordering of outgoing piece message.
  4917. * src/DefaultBtMessageDispatcher.cc
  4918. (DefaultBtMessageDispatcher::sendMessages)
  4919. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4920. Fixed busy loop when error/hup epoll events occur.
  4921. * src/AbstractCommand.cc
  4922. * src/PeerAbstractCommand.cc
  4923. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4924. Added --bt-request-peer-speed-limit option, which was a constant
  4925. SLOW_SPEED_THRESHOLD.
  4926. * src/ActivePeerConnectionCommand.cc
  4927. * src/ActivePeerConnectionCommand.h
  4928. * src/BtConstants.h
  4929. * src/HelpItemFactory.cc
  4930. * src/OptionHandlerFactory.cc
  4931. * src/PeerReceiveHandshakeCommand.cc
  4932. * src/option_processing.cc
  4933. * src/prefs.cc
  4934. * src/prefs.h
  4935. * src/usage_text.h
  4936. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4937. Removed repeated call of getTopDirPath(). Instead, call it once and
  4938. cache the result.
  4939. * src/MultiDiskAdaptor.cc
  4940. * src/MultiDiskAdaptor.h
  4941. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4942. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4943. Fixed compile error on debian etch.
  4944. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4945. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4946. it is undefined.
  4947. * src/Util.cc (ULLONG_MAX)
  4948. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. Added epoll support. Use epoll if it is available. If not, use select.
  4950. When async dns is enabled in compile time, epoll support is enabled
  4951. only when aria2 is built with c-ares. This condition statement is
  4952. defined in a2io.h.
  4953. Currently aria2 supports both c-ares and ares, but ares is maintained
  4954. for quite a while and debian already has c-ares package, ares support
  4955. will be dropped in the future version.
  4956. * configure.ac
  4957. * src/AbstractCommand.cc
  4958. * src/AsyncNameResolver.cc
  4959. * src/AsyncNameResolver.h
  4960. * src/Command.cc
  4961. * src/Command.h
  4962. * src/DownloadEngine.cc
  4963. * src/DownloadEngine.h
  4964. * src/PeerAbstractCommand.cc
  4965. * src/SocketCore.cc
  4966. * src/SocketCore.h
  4967. * src/a2io.h
  4968. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4969. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4970. directive.
  4971. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Do not do write operation to /dev/null file.
  4973. * src/LogFactory.cc
  4974. * src/SimpleLogger.cc
  4975. Replaced vasprintf with vsnprintf
  4976. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4977. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4978. * src/BtRequestMessage.cc
  4979. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4980. for segmentation fault caused by previous commit.
  4981. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. Reduced the usage of gettimeofday().
  4983. * src/DefaultBtMessageDispatcher.cc
  4984. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4985. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4986. * src/RequestSlot.cc
  4987. * src/RequestSlot.h
  4988. (RequestSlot::isTimeout)
  4989. Made RequestSlot have a reference to Piece object to avoid find
  4990. Piece repeatedly.
  4991. * src/DefaultBtMessageDispatcher.cc
  4992. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4993. * src/RequestSlot.cc
  4994. * src/RequestSlot.h
  4995. (RequestSlot::getPiece)
  4996. * test/DefaultBtMessageDispatcherTest.cc
  4997. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. * src/TimeA2.cc
  4999. * src/TimeA2.h
  5000. (Time::difference): New function.
  5001. (Time::elapsed): Done optimization.
  5002. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  5004. directive.
  5005. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5006. * src/option_processing.cc: Added missing `defined' keyword to #if
  5007. directive.
  5008. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5009. Bump up version number to 0.13.2+1
  5010. * src/configure.ac
  5011. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5012. Refactored broken outstanding piece handling.
  5013. * src/DefaultPieceStorage.cc
  5014. * src/DefaultPieceStorage.h
  5015. * src/Piece.cc
  5016. * src/Piece.h
  5017. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  5019. name collision of static variable and predefined macro.
  5020. * src/BtContext.cc
  5021. * src/BtContext.h
  5022. * src/CookieBoxFactory.cc
  5023. * src/CookieBoxFactory.h
  5024. * src/CookieParser.cc
  5025. * src/CookieParser.h
  5026. * src/DefaultBtContext.cc
  5027. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5028. * src/RequestGroup.cc
  5029. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5030. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5031. * Release 0.13.2
  5032. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5033. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5034. * po/fr.po
  5035. * po/ja.po
  5036. * po/aria2c.pot
  5037. * po/*.po
  5038. * po/*.gmo
  5039. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5040. Bump up version number to 0.13.2
  5041. * src/configure.ac
  5042. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5043. Refactord.
  5044. * src/RequestGroupMan.cc
  5045. (removeStoppedGroup)
  5046. (fillRequestGroupFromReserver)
  5047. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5048. Fixed compile error on Ubuntu.
  5049. * src/BtPieceMessage.cc
  5050. * src/MessageDigestHelper.cc
  5051. * src/Util.cc
  5052. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5053. Fixed compile error when configured with --disable-bittorrent
  5054. * test/DownloadHandlerFactoryTest.cc
  5055. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5056. Done make update-po
  5057. * po/aria2c.pot
  5058. * po/*.po
  5059. * po/*.gmo
  5060. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. Bump up version number to 0.13.2rc.
  5062. * src/configure.ac
  5063. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5064. Made option name bold. Updated SYNOPSIS to make it more readable.
  5065. * doc/aria2c.1.txt
  5066. * doc/aria2c.1
  5067. * doc/aria2c.1.html
  5068. * src/version_usage.cc
  5069. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5070. Refactored. Use std::string instead of size and char*.
  5071. * Data.cc
  5072. * Data.h
  5073. * test/Data.cc
  5074. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5075. Added trimSelf(). Rewritten trim() to use trimSelf().
  5076. * Util.cc
  5077. * Util.h
  5078. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5079. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5080. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5081. Fixed compile error when configured with --disable-metalink.
  5082. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5083. * test/FeatureConfigTest.cc
  5084. * test/DownloadHandlerFactoryTest.cc
  5085. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5086. Fixed compile error when configured with --without-gnutls
  5087. --without-openssl
  5088. * src/main.cc
  5089. * test/DefaultBtProgressInfoFileTest.cc
  5090. * test/SegmentManTest.cc
  5091. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5092. Fixed compile error with OpenSSL.
  5093. * src/IteratableChunkChecksumValidator.cc
  5094. * src/LibsslDHKeyExchange.h
  5095. * src/MessageDigestHelper.cc
  5096. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5097. Revert the default value of --max-concurrent-downloads to 5.
  5098. Revert the default value of --metalink-servers to 5.
  5099. Man pages was also updated.
  5100. * src/option_processing.cc
  5101. * doc/aria2c.1.txt
  5102. * doc/aria2c.1.html
  5103. * doc/aria2c.1
  5104. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5105. Returns const reference:
  5106. DownloadContext::getPieceHash, DownloadContext::getName,
  5107. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5108. BtContext::getInfoHashAsString,
  5109. * src/BtContext.h
  5110. * src/DefaultBtContext.cc
  5111. * src/DefaultBtContext.h
  5112. * src/DownloadContext.h
  5113. * src/SingleFileDownloadContext.h
  5114. * test/MockBtContext.h
  5115. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5116. * src/RequestGroup.h (getDir): Removed.
  5117. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5118. Returns const reference. The internal urlencode function was optimized
  5119. a little bit.
  5120. * src/Request.cc
  5121. * src/Request.h
  5122. * src/HttpRequest.cc
  5123. * src/HttpRequest.h
  5124. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5125. Defined option name and possible values as std::string to reduce
  5126. temporary string object creation in runtime.
  5127. * src/HelpItemFactory.cc
  5128. * src/LogFactory.cc
  5129. * src/Option.cc
  5130. * src/OptionHandlerFactory.cc
  5131. * src/option_processing.cc
  5132. * src/prefs.cc
  5133. * src/prefs.h
  5134. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5135. Return const reference.
  5136. * src/DownloadHandlerConstants.cc
  5137. * src/DownloadHandlerConstants.h
  5138. (getMetalinkExtensions)
  5139. (getMetalinkContentTypes)
  5140. (getBtExtensions)
  5141. (getBtContentTypes)
  5142. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5143. * src/HttpHeader.cc (get): Rewritten.
  5144. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5145. Make HttpHeader::getFirst(...) return const reference.
  5146. * src/HttpHeader.cc
  5147. * src/HttpHeader.h
  5148. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5149. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5150. it with V_TRUE.
  5151. * src/DefaultPieceStorage.cc
  5152. * src/DownloadCommand.cc
  5153. * src/FtpNegotiationCommand.cc
  5154. * src/HttpRequest.cc
  5155. * src/InitiateConnectionCommand.cc
  5156. * src/RequestGroup.cc
  5157. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5158. Made Option::get(...) return const reference of std::string.
  5159. * src/Option.cc
  5160. * src/Option.h
  5161. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5162. Replaced std:copy with insert.
  5163. * src/DefaultBtMessageDispatcher.cc
  5164. * src/DefaultPieceStorage.cc
  5165. * src/DownloadEngineFactory.cc
  5166. * src/RequestGroup.cc
  5167. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5168. Included SocketCore.h to fix compiler warning.
  5169. * src/InitiateConnectionCommand.cc
  5170. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5171. Put piece selection strategy algorithm to RarestPieceSelector class,
  5172. Added a switch to choose whether randomized selection so that unit
  5173. tests emit same results in, possibly, win32.
  5174. * src/DefaultPieceStorage.cc
  5175. * src/DefaultPieceStorage.h
  5176. * src/RarestPieceSelector.cc
  5177. * src/RarestPieceSelector.h
  5178. * test/DefaultPieceStorageTest.cc
  5179. * test/RarestPieceSelectorTest.cc
  5180. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5181. Don't pool connection if HTTP proxy is enabled.
  5182. * src/FtpFinishDownloadCommand.cc
  5183. * src/FtpNegotiationCommand.cc
  5184. * src/HttpSkipResponseCommand.cc
  5185. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5186. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5187. * src/AbstractCommand.cc
  5188. * src/AbstractCommand.h
  5189. * src/ActivePeerConnectionCommand.cc
  5190. * src/FtpInitiateConnectionCommand.cc
  5191. * src/HttpInitiateConnectionCommand.cc
  5192. * src/InitiateConnectionCommandFactory.cc
  5193. * src/PeerAbstractCommand.cc
  5194. * src/PeerAbstractCommand.h
  5195. * src/PeerInitiateConnectionCommand.cc
  5196. * src/TrackerWatcherCommand.cc
  5197. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5198. Sort RequestSlot in ascending order and manipulate them using
  5199. lower_bound.
  5200. * src/DefaultBtMessageDispatcher.cc
  5201. * src/DefaultBtMessageDispatcher.h
  5202. (getMessageQueue): Added const qualifier.
  5203. (getRequestSlots): Added const qualifier.
  5204. (sendMessages): Use empty() instead of size().
  5205. (doCancelSendingPieceAction): Use HandleEvent object.
  5206. (doAbortOutstandingRequestAction): Rewritten.
  5207. (doChokedAction): Rewritten.
  5208. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5209. (isOutstandingRequest): Rewritten.
  5210. (getOutstandingRequest): Rewritten.
  5211. (removeOutstandingRequest): Rewritten.
  5212. (addOutstandingRequest): Rewritten.
  5213. * src/RequestSlot.cc
  5214. * src/RequestSlot.h
  5215. (operator=): Rewritten.
  5216. (operator!=): New function.
  5217. (operator<): New function.
  5218. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5219. * src/DefaultBtRequestFactory.cc
  5220. (doChokedAction): Rewritten.
  5221. (removeCompletedPiece): Rewritten.
  5222. (removeTargetPiece): Rewritten.
  5223. (createRequestMessages): Added the debug log.
  5224. (createRequestMessagesOnEndGame: Added the debug log.
  5225. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5226. Added the debug log message.
  5227. * src/BtPieceMessage.cc (doReceivedAction)
  5228. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5230. used lower_bound to process them rather than linear search.
  5231. * src/DHTPeerAnnounceStorage.cc
  5232. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5233. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5234. peer has at least one completed piece.
  5235. * src/Peer.cc
  5236. * src/Peer.h
  5237. * src/PeerInteractionCommand.cc
  5238. * src/PeerSessionResource.cc
  5239. * src/PeerSessionResource.h
  5240. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. Removed unnecessary sorting
  5242. * src/DefaultPieceStorage (DefaultPieceStorage)
  5243. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5244. Rewritten the portion of the code that mangaes allowed fast indexes.
  5245. * src/PeerSessionResource.cc
  5246. * src/PeerSessionResource.h
  5247. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5248. Removed the invalid string including '\r' from ru.po and
  5249. did make update-po.
  5250. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5251. Added --log-level and --summary-interval to man page.
  5252. * doc/aria2c.1.txt
  5253. * doc/aria2c.1.html
  5254. * doc/aria2c.1
  5255. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5256. Added --log-level option to specify log level. Log messages under
  5257. the specified level are not output. Default value is `debug'.
  5258. * src/HelpItemFactory.cc
  5259. * src/LogFactory.cc
  5260. * src/LogFactory.h
  5261. * src/Logger.h
  5262. * src/OptionHandlerFactory.cc
  5263. * src/SimpleLogger.cc
  5264. * src/SimpleLogger.h
  5265. * src/main.cc
  5266. * src/option_processing.cc
  5267. * src/prefs.h
  5268. * src/usage_text.h
  5269. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5270. Print download progress summary of all parallel downloads in specified
  5271. interval, default 60 secs. While aria2 could download several files
  5272. in parallel (see -j option), it displayed just first download progress,
  5273. and the other downloads are hidden from the users. This new feature
  5274. prints all downloads currently in-progress to the console so that you
  5275. can check the status of all downloads. The interval can be adjusted
  5276. by --summary-interval option.
  5277. The progress readout is now cut so that all fits in the one line of
  5278. console.
  5279. * src/ConsoleStatCalc.cc
  5280. * src/ConsoleStatCalc.h
  5281. * src/HelpItemFactory.cc
  5282. * src/OptionHandlerFactory.cc
  5283. * src/RequestGroupMan.cc
  5284. * src/RequestGroupMan.h
  5285. * src/main.cc
  5286. * src/option_processing.cc
  5287. * src/prefs.h
  5288. * src/usage_text.h
  5289. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5290. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5291. * src/DownloadEngine.cc (DownloadEngine)
  5292. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5293. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5294. defined.
  5295. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5296. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Use erase+lower_bound+insert instead of sort.
  5298. * src/DefaultPieceStorage.cc (addPieceStats)
  5299. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5300. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5301. * src/A2STR.cc
  5302. * src/A2STR.h
  5303. * src/OptionParser.cc (parse)
  5304. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5305. Defined fake filename `[tracker.announce]' as static const std::string.
  5306. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5307. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5308. Defined default filename `index.html' as static const std::string
  5309. * src/SingleFileDownloadContext.cc
  5310. * src/SingleFileDownloadContext.h
  5311. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5312. Defined "[MEMORY]" as static const std::string.
  5313. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5314. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5315. Defined control file's version number as static const std::string.
  5316. * src/DefaultBtProgressInfoFile.cc
  5317. * src/DefaultBtProgressInfoFile.h
  5318. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Use Request::METHOD_GET
  5320. * src/RequestGroup.cc (createNextCommandWithAdj)
  5321. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5322. Defined "OK", "ERR", "INPR" as static const std::string
  5323. * src/RequestGroupMan.cc (showDownloadResults)
  5324. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5325. Defined default client used in extended handshake as static const
  5326. std::string
  5327. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5328. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5330. * src/HttpConnection.cc (eraseConfidentialInfo)
  5331. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5332. Defined default ftp user and password as static const std::string
  5333. * src/AuthConfigFactory.cc
  5334. * src/AuthConfigFactory.h
  5335. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5336. Defined strings used in netrc as static const std::string
  5337. * src/Netrc.cc
  5338. * src/Netrc.h
  5339. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5340. Defined HTTP status as static const std::string
  5341. * src/AbstractProxyResponseCommand.cc
  5342. * src/HttpHeader.cc
  5343. * src/HttpHeader.h
  5344. * src/HttpResponse.cc
  5345. * src/HttpResponseCommand.cc
  5346. * src/HttpSkipResponseCommand.cc
  5347. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5348. Defined "\r\n", "A", "I" as static const std::string
  5349. * src/A2STR.cc
  5350. * src/A2STR.h
  5351. * src/FtpConnection.cc
  5352. * src/FtpConnection.h
  5353. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5354. Added COLON_C(".") and used it in Request::parseUrl()
  5355. * src/A2STR.cc
  5356. * src/A2STR.h
  5357. * src/Request.cc (parseUrl)
  5358. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. Changed the type of padName from `const std::string&' to `const char*'.
  5360. * src/MSEHandshake.cc (verifyPadLength)
  5361. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Defined "sha1" as static const std::string.
  5363. * src/MetalinkParserController.cc
  5364. * src/MetalinkParserController.h
  5365. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5366. Defined message digest algorithm name as static const std::string
  5367. * src/DHTTokenTracker.cc
  5368. * src/DHTUtil.cc
  5369. * src/DefaultBtContext.cc
  5370. * src/MSEHandshake.cc
  5371. * src/MessageDigestHelper.cc
  5372. * src/Peer.cc
  5373. * src/messageDigest.cc
  5374. * src/messageDigest.h
  5375. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5376. Made string literals used in SAX parser static const std::string.
  5377. * src/FileMetalinkParserState.cc
  5378. * src/FileMetalinkParserState.h
  5379. * src/FilesMetalinkParserState.cc
  5380. * src/FilesMetalinkParserState.h
  5381. * src/InitialMetalinkParserState.cc
  5382. * src/InitialMetalinkParserState.h
  5383. * src/MetalinkMetalinkParserState.cc
  5384. * src/MetalinkMetalinkParserState.h
  5385. * src/PiecesMetalinkParserState.cc
  5386. * src/PiecesMetalinkParserState.h
  5387. * src/ResourcesMetalinkParserState.cc
  5388. * src/ResourcesMetalinkParserState.h
  5389. * src/VerificationMetalinkParserState.cc
  5390. * src/VerificationMetalinkParserState.h
  5391. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5392. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5393. * src/A2STR.cc
  5394. * src/A2STR.h
  5395. * src/File.cc
  5396. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5397. Defined static const std::string IP("ip"), PORT("port") and use them
  5398. instead of string literals.
  5399. * src/DefaultPeerListProcessor.cc
  5400. * src/DefaultPeerListProcessor.h
  5401. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. Made string literals for torrent file processing static const
  5403. std::string.
  5404. * src/BtContext.cc
  5405. * src/BtContext.h
  5406. * src/DefaultBtContext.cc
  5407. * src/DefaultBtContext.h
  5408. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5409. Made string literal for tracker response static const std::string
  5410. * src/BtAnnounce.cc
  5411. * src/BtAnnounce.h
  5412. * src/DefaultBtAnnounce.cc
  5413. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5414. Use DHTMessage::T instead of "t".
  5415. * src/DHTMessageTracker.cc (messageArrived)
  5416. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Made keyName static const. Made trimmed charset static const
  5418. std::string.
  5419. * src/Util.cc (getContentDispositionFilename)
  5420. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5421. Made USER_AGENT const. Made "/" static const std::string.
  5422. * src/A2STR.cc
  5423. * src/A2STR.h
  5424. * src/HttpRequest.cc
  5425. * src/HttpRequest.h
  5426. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. Made string listeral to static const std::string:
  5428. "Content-Range", "Content-Length"
  5429. * src/HttpHeader.cc
  5430. * src/HttpHeader.h
  5431. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5432. Made string listeral to static const std::string.
  5433. * src/HttpConnection.cc
  5434. * src/HttpHeader.cc
  5435. * src/HttpHeader.h
  5436. * src/HttpResponse.cc
  5437. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5438. Made string listeral to static const std::string.
  5439. * src/A2STR.cc
  5440. * src/A2STR.h
  5441. * src/SimpleLogger.cc
  5442. * src/SimpleLogger.h
  5443. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5444. Made string literal to static const std::string.
  5445. Rewritten CookieParser::setField.
  5446. * src/A2STR.cc
  5447. * src/A2STR.h
  5448. * src/CookieBoxFactory.cc
  5449. * src/CookieBoxFactory.h
  5450. * src/CookieParser.cc
  5451. * src/CookieParser.h
  5452. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Made string literal to static const std::string
  5454. * src/DHTAbstractMessage.cc
  5455. * src/DHTAnnouncePeerMessage.cc
  5456. * src/DHTAnnouncePeerMessage.h
  5457. * src/DHTAnnouncePeerReplyMessage.cc
  5458. * src/DHTAnnouncePeerReplyMessage.h
  5459. * src/DHTFindNodeMessage.cc
  5460. * src/DHTFindNodeMessage.h
  5461. * src/DHTFindNodeReplyMessage.cc
  5462. * src/DHTFindNodeReplyMessage.h
  5463. * src/DHTGetPeersMessage.cc
  5464. * src/DHTGetPeersMessage.h
  5465. * src/DHTGetPeersReplyMessage.cc
  5466. * src/DHTGetPeersReplyMessage.h
  5467. * src/DHTMessage.cc
  5468. * src/DHTMessage.h
  5469. * src/DHTMessageFactoryImpl.cc
  5470. * src/DHTMessageReceiver.cc
  5471. * src/DHTPingMessage.cc
  5472. * src/DHTPingMessage.h
  5473. * src/DHTPingReplyMessage.cc
  5474. * src/DHTPingReplyMessage.h
  5475. * src/DHTQueryMessage.cc
  5476. * src/DHTQueryMessage.h
  5477. * src/DHTResponseMessage.cc
  5478. * src/DHTResponseMessage.h
  5479. * src/DHTUnknownMessage.cc
  5480. * src/DHTUnknownMessage.h
  5481. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5482. Made string literal to static const std::string
  5483. * src/BtChokeMessage.cc (toString)
  5484. * src/BtHaveAllMessage.cc (toString)
  5485. * src/BtHaveNoneMessage.cc (toString)
  5486. * src/BtInterestedMessage.cc (toString)
  5487. * src/BtNotInterestedMessage.cc (toString)
  5488. * src/BtUnchokeMessage.cc (toString)
  5489. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5490. Replaced "" with static const variable A2STR::NIL.
  5491. Replaced string comparison against "" with std::string::empty().
  5492. Added PROTO_* to Request class and use them as a protocol string
  5493. constant.
  5494. Made "started", "stopped", "completed" static const variable in
  5495. AnnounceList class.
  5496. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Updated translations. Great thanks to translators.
  5498. * po/ca.po
  5499. * po/de.po
  5500. * po/fr.po
  5501. * po/it.po
  5502. * po/ja.po
  5503. * po/ru.po
  5504. * po/zh_CN.po
  5505. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5506. Updated man page; categorized options and fixed typo.
  5507. * doc/aria2c.1.txt
  5508. * doc/aria2c.1.html
  5509. * doc/aria2c.1
  5510. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. Removed const ref
  5512. * src/MetalinkEntry.cc (AddProtocolPreference)
  5513. * src/RequestGroup.cc (FindServerHostByHostname)
  5514. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5515. Rewritten Accept-Features handling.
  5516. * src/HttpRequestCommand.cc (createHttpRequest)
  5517. * src/a2functional.h
  5518. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. Changed method signature:
  5520. DHTAbstractNodeLookupTask::toEntries
  5521. * src/DHTAbstractNodeLookupTask.cc
  5522. * src/DHTAbstractNodeLookupTask.h
  5523. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5524. Changed method signature:
  5525. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5526. * src/BtContext.h
  5527. * src/DefaultBtContext.cc
  5528. * src/DefaultBtContext.h
  5529. * src/DefaultBtInteractive.cc
  5530. * test/DefaultBtContextTest.cc
  5531. * test/MockBtContext.h
  5532. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5533. Changed method signature:
  5534. MultiFileAllocationIterator::makeDiskWriterEntries
  5535. * src/MultiFileAllocationIterator.cc
  5536. * src/MultiFileAllocationIterator.h
  5537. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. Changed method sinature:
  5539. MetalinkEntry::toFileEntry,
  5540. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5541. Metalinker::queryEntry
  5542. * src/Metalink2RequestGroup.cc
  5543. * src/MetalinkEntry.cc
  5544. * src/MetalinkEntry.h
  5545. * src/MetalinkHelper.cc
  5546. * src/MetalinkHelper.h
  5547. * src/Metalinker.cc
  5548. * src/Metalinker.h
  5549. * src/main.cc
  5550. * test/MetalinkHelperTest.cc
  5551. * test/MetalinkerTest.cc
  5552. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5553. Changed method sinature:
  5554. RequestGroup::getURIs
  5555. * src/RequestGroup.cc
  5556. * src/RequestGroup.h
  5557. * test/Metalink2RequestGroupTest.cc
  5558. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5559. Changed method signature:
  5560. PeerListProcessor::extractPeer
  5561. * src/CompactPeerListProcessor.cc
  5562. * src/CompactPeerListProcessor.h
  5563. * src/DefaultBtAnnounce.cc
  5564. * src/DefaultPeerListProcessor.cc
  5565. * src/DefaultPeerListProcessor.h
  5566. * src/DelegatingPeerListProcessor.cc
  5567. * src/DelegatingPeerListProcessor.h
  5568. * src/PeerListProcessor.h
  5569. * src/UTPexExtensionMessage.cc
  5570. * test/DefaultPeerListProcessorTest.cc
  5571. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5572. Changed method signature:
  5573. BtRequestFactory::createRequestMessages,
  5574. BtRequestFactory::createRequestMessagesOnEndGame
  5575. * src/BtRequestFactory.h
  5576. * src/DefaultBtInteractive.cc
  5577. * src/DefaultBtRequestFactory.cc
  5578. * src/DefaultBtRequestFactory.h
  5579. * test/DefaultBtRequestFactoryTest.cc
  5580. * test/MockBtRequestFactory.h
  5581. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5582. Changed method signature:
  5583. PieceStorage::getInFlightPieces
  5584. * src/DefaultBtProgressInfoFile.cc
  5585. * src/DefaultPieceStorage.cc
  5586. * src/DefaultPieceStorage.h
  5587. * src/PieceStorage.h
  5588. * src/UnknownLengthPieceStorage.cc
  5589. * src/UnknownLengthPieceStorage.h
  5590. * test/DefaultBtProgressInfoFileTest.cc
  5591. * test/MockPieceStorage.h
  5592. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5593. Changed method signature:
  5594. PostDownloadHandler::getNextRequestGroups
  5595. Metalink2RequestGroup::generate
  5596. RequestGroup::postDownloadProcessing
  5597. * src/BtPostDownloadHandler.cc
  5598. * src/BtPostDownloadHandler.h
  5599. * src/Metalink2RequestGroup.cc
  5600. * src/Metalink2RequestGroup.h
  5601. * src/MetalinkPostDownloadHandler.cc
  5602. * src/MetalinkPostDownloadHandler.h
  5603. * src/PostDownloadHandler.h
  5604. * src/RequestGroup.cc
  5605. * src/RequestGroup.h
  5606. * src/RequestGroupMan.cc
  5607. * src/main.cc
  5608. * test/BtPostDownloadHandlerTest.cc
  5609. * test/Metalink2RequestGroupTest.cc
  5610. * test/MetalinkPostDownloadHandlerTest.cc
  5611. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5612. Rewritten AccRequestGroup
  5613. * src/main.cc
  5614. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5615. Rewritten.
  5616. * src/TaggedItem.cc (toTagString)
  5617. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. Rewritten Accept-Features handling.
  5619. * src/HttpRequestCommand.cc (createHttpRequest)
  5620. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5621. Rewritten accept types handling.
  5622. * HttpRequest.cc (createRequest)
  5623. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. Rewritten
  5625. * src/FeatureConfig.cc (featureSummary)
  5626. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5627. Changed method signature:
  5628. PeerStorage::getActivePeers
  5629. * src/DHTPeerAnnounceEntry.cc
  5630. * src/DefaultPeerStorage.cc
  5631. * src/DefaultPeerStorage.h
  5632. * src/PeerStorage.h
  5633. * test/DefaultPeerStorageTest.cc
  5634. * test/MockPeerStorage.h
  5635. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5636. Changed method signature:
  5637. DHTPeerAnnounceStorage::getPeers,
  5638. DHTPeerAnnounceEntry::getPeers
  5639. * src/DHTGetPeersMessage.cc
  5640. * src/DHTPeerAnnounceEntry.cc
  5641. * src/DHTPeerAnnounceEntry.h
  5642. * src/DHTPeerAnnounceStorage.cc
  5643. * src/DHTPeerAnnounceStorage.h
  5644. * test/DHTAnnouncePeerMessageTest.cc
  5645. * test/DHTPeerAnnounceEntryTest.cc
  5646. * test/DHTPeerAnnounceStorageTest.cc
  5647. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Changed method signature:
  5649. NameResolver::resolve
  5650. * src/DHTEntryPointNameResolveCommand.cc
  5651. * src/InitiateConnectionCommand.cc
  5652. * src/NameResolver.cc
  5653. * src/NameResolver.h
  5654. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5655. Changed method signature:
  5656. PieceStorage::getAdvertisedPieceIndexes
  5657. * src/DefaultBtInteractive.cc
  5658. * src/DefaultPieceStorage.cc
  5659. * src/DefaultPieceStorage.h
  5660. * src/PieceStorage.h
  5661. * src/UnknownLengthPieceStorage.h
  5662. * test/MockPieceStorage.h
  5663. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5664. Changed method signature:
  5665. SegmentMan::getInFlightSegment
  5666. * src/AbstractCommand.cc
  5667. * src/SegmentMan.cc
  5668. * src/SegmentMan.h
  5669. * test/SegmentManTest.cc
  5670. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5671. Changed method signature:
  5672. DHTAbstractNodeLookupTask::getNodesFromMessage
  5673. * src/DHTAbstractNodeLookupTask.cc
  5674. * src/DHTAbstractNodeLookupTask.h
  5675. * src/DHTNodeLookupTask.cc
  5676. * src/DHTNodeLookupTask.h
  5677. * src/DHTPeerLookupTask.cc
  5678. * src/DHTPeerLookupTask.h
  5679. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5680. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5681. * src/AbstractCommand.cc
  5682. * src/BtCheckIntegrityEntry.cc
  5683. * src/BtCheckIntegrityEntry.h
  5684. * src/BtFileAllocationEntry.cc
  5685. * src/BtFileAllocationEntry.h
  5686. * src/BtSetup.cc
  5687. * src/BtSetup.h
  5688. * src/CheckIntegrityCommand.cc
  5689. * src/CheckIntegrityEntry.h
  5690. * src/ChecksumCheckIntegrityEntry.cc
  5691. * src/ChecksumCheckIntegrityEntry.h
  5692. * src/DHTSetup.cc
  5693. * src/DHTSetup.h
  5694. * src/DownloadEngine.cc
  5695. * src/FileAllocationCommand.cc
  5696. * src/FileAllocationEntry.h
  5697. * src/RequestGroup.cc
  5698. * src/RequestGroup.h
  5699. * src/RequestGroupMan.cc
  5700. * src/RequestGroupMan.h
  5701. * src/StreamCheckIntegrityEntry.cc
  5702. * src/StreamCheckIntegrityEntry.h
  5703. * src/StreamFileAllocationEntry.cc
  5704. * src/StreamFileAllocationEntry.h
  5705. * src/TrackerWatcherCommand.cc
  5706. * src/a2functional.h
  5707. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Changed method signature:
  5709. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5710. DHTBucket::getGoodNodes,
  5711. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5712. * src/BNode.cc
  5713. * src/BNode.h
  5714. * src/DHTAbstractNodeLookupTask.cc
  5715. * src/DHTAutoSaveCommand.cc
  5716. * src/DHTBucket.cc
  5717. * src/DHTBucket.h
  5718. * src/DHTBucketRefreshTask.cc
  5719. * src/DHTFindNodeMessage.cc
  5720. * src/DHTGetPeersMessage.cc
  5721. * src/DHTRoutingTable.cc
  5722. * src/DHTRoutingTable.h
  5723. * test/BNodeTest.cc
  5724. * test/DHTBucketTest.cc
  5725. * test/DHTRoutingTableTest.cc
  5726. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5727. In piece selection functions, Pass std::deque<...> by reference rather
  5728. than returning it.
  5729. * src/BitfieldMan.cc
  5730. * src/BitfieldMan.h
  5731. * src/DefaultBtRequestFactory.cc
  5732. * src/DefaultPieceStorage.cc
  5733. * src/Piece.cc
  5734. * src/Piece.h
  5735. * test/BitfieldManTest.cc
  5736. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5737. Implemented rarest piece first piece selection strategy.
  5738. * src/AbstractBtMessage.cc
  5739. * src/AbstractBtMessage.h
  5740. * src/BitfieldMan.cc
  5741. * src/BitfieldMan.h
  5742. * src/BtBitfieldMessage.cc
  5743. * src/BtHaveAllMessage.cc
  5744. * src/BtHaveMessage.cc
  5745. * src/DefaultPieceStorage.cc
  5746. * src/DefaultPieceStorage.h
  5747. * src/PeerInteractionCommand.cc
  5748. * src/PieceStorage.h
  5749. * src/UnknownLengthPieceStorage.h
  5750. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5751. Rewritten readData and writeData.
  5752. * src/MultiDiskAdaptor.cc
  5753. * src/MultiDiskAdaptor.h
  5754. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5755. Move \n out of the message "Usage: ...".
  5756. * src/version_usage.cc
  5757. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5758. Bump up version number to 0.13.2b.
  5759. * configure.ac
  5760. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5761. Added const qualifier to argument Exception& e.
  5762. * src/Logger.h
  5763. * src/SimpleLogger.cc
  5764. * src/SimpleLogger.h
  5765. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5766. Pool connection when CWD, SIZE command fails.
  5767. * src/FtpNegotiationCommand.cc
  5768. * src/FtpNegotiationCommand.h
  5769. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5770. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5771. * src/HttpResponseCommand.cc
  5772. * src/HttpSkipResponseCommand.cc
  5773. * src/HttpSkipResponseCommand.h
  5774. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5775. Pool connection when a server returns 4xx, 5xx responses.
  5776. * src/HttpNullDownloadCommand.cc
  5777. * src/HttpNullDownloadCommand.h
  5778. * src/HttpResponse.cc
  5779. * src/HttpResponse.h
  5780. * src/HttpResponseCommand.cc
  5781. * src/HttpResponseCommand.h
  5782. * test/HttpResponseTest.cc
  5783. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Print usage when no URL is specifed or bad command-line option is
  5785. specified.
  5786. * src/HelpItemFactory.cc
  5787. * src/help_tags.h
  5788. * src/option_processing.cc
  5789. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5790. Removed duplicate log message.
  5791. * src/AbstractCommand.cc (asyncResolveHostname)
  5792. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5793. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5794. Changed -j option's default value from 5 to 1.
  5795. Added new examples using protocol auto detection feature.
  5796. Removed -T, -M usage where it can be omitted.
  5797. * doc/aria2c.1.txt
  5798. * doc/aria2c.1.html
  5799. * doc/aria2c.1.txt
  5800. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. Updated command-line usage text, so that it tells users that they
  5802. can specify any number of torrent files and metalink files in
  5803. command-line.
  5804. * src/version_usage.cc
  5805. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5806. Changed the default value of -j option to 1.
  5807. * src/HelpItemFactory.cc
  5808. * src/option_processing.cc
  5809. * src/usage_text.h
  5810. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5811. Added the ability to reuse connection in FTP and it is enabled by
  5812. default. It can be disabled by --ftp-reuse-connection=false option.
  5813. * src/Command.cc
  5814. * src/DownloadCommand.cc
  5815. * src/FtpDownloadCommand.cc
  5816. * src/FtpDownloadCommand.h
  5817. * src/FtpFinishDownloadCommand.cc
  5818. * src/FtpFinishDownloadCommand.h
  5819. * src/FtpInitiateConnectionCommand.cc
  5820. * src/FtpNegotiationCommand.cc
  5821. * src/FtpNegotiationCommand.h
  5822. * src/HelpItemFactory.cc
  5823. * src/Makefile.am
  5824. * src/Makefile.in
  5825. * src/OptionHandlerFactory.cc
  5826. * src/option_processing.cc
  5827. * src/prefs.h
  5828. * src/usage_text.h
  5829. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Call Command::transitStatus() before calling Command::execute(),
  5831. so that the status change made in execute() is not cleared.
  5832. * src/DownloadEngine.cc
  5833. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5834. Removed forward declaration of SocketCore class.
  5835. * src/HttpDownloadCommand.h
  5836. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5837. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5838. in InitiateConnectionCommandFactory. They should be set only when
  5839. the protocol is HTTP or HTTPS.
  5840. * src/InitiateConnectionCommandFactory.cc
  5841. * src/RequestGroup.cc
  5842. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5843. Fixed infinite loop in checksum checking.
  5844. * src/IteratableChecksumValidator.cc
  5845. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5846. Set _supportsPersistentConnection to true by default.
  5847. * src/Request.cc
  5848. * src/RequestGroup.cc
  5849. * test/HttpRequestTest.cc
  5850. * test/RequestTest.cc
  5851. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. Added timeout to socket pool. The default timeout is 15 seconds,
  5853. which is the same value Apache uses.
  5854. * src/DownloadEngine.cc
  5855. * src/DownloadEngine.h
  5856. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5857. Fixed misuse of multimap::find()
  5858. * src/HttpHeader.cc
  5859. * test/HttpHeaderTest.cc
  5860. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5861. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5862. option.
  5863. The asynchronous DNS is not capable of IPv6 yet.
  5864. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5865. least for HTTP download.
  5866. * src/AbstractCommand.cc
  5867. * src/AbstractCommand.h
  5868. * src/AsyncNameResolver.cc
  5869. * src/AsyncNameResolver.h
  5870. * src/DHTEntryPointNameResolveCommand.cc
  5871. * src/DHTEntryPointNameResolveCommand.h
  5872. * src/DownloadEngine.cc
  5873. * src/DownloadEngine.h
  5874. * src/FtpInitiateConnectionCommand.cc
  5875. * src/FtpInitiateConnectionCommand.h
  5876. * src/HelpItemFactory.cc
  5877. * src/HttpInitiateConnectionCommand.cc
  5878. * src/HttpInitiateConnectionCommand.h
  5879. * src/InitiateConnectionCommand.cc
  5880. * src/InitiateConnectionCommand.h
  5881. * src/Makefile.am
  5882. * src/Makefile.in
  5883. * src/NameResolver.cc
  5884. * src/NameResolver.h
  5885. * src/OptionHandlerFactory.cc
  5886. * src/SocketCore.cc
  5887. * src/SocketCore.h
  5888. * src/Util.cc
  5889. * src/Util.h
  5890. * src/option_processing.cc
  5891. * src/prefs.h
  5892. * src/usage_text.h
  5893. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5894. Updated man page: --quiet, --header were added.
  5895. --metalink-servers and --enable-http-keep-alive option were updated.
  5896. * doc/aria2c.1
  5897. * doc/aria2c.1.html
  5898. * doc/aria2c.1.txt
  5899. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5900. Enable HTTP keep-alive by default.
  5901. * src/HelpItemFactory.cc
  5902. * src/option_processing.cc
  5903. * src/usage_text.h
  5904. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5905. Disable http keep-alive if the remote server is not HTTP/1.1.
  5906. * src/HttpConnection.cc
  5907. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5908. Receive content body of 302 response so that the connection can be
  5909. reused later when http keep-alive is enabled.
  5910. * src/HttpNullDownloadCommand.cc
  5911. * src/HttpNullDownloadCommand.h
  5912. * src/HttpResponseCommand.cc
  5913. * src/HttpResponseCommand.h
  5914. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5915. const SharedHandle<Request> -> const SharedHandle<Request>&
  5916. * src/FtpDowndloadCommand.cc
  5917. * src/FtpDowndloadCommand.h
  5918. * src/HttpDownloadCommand.cc
  5919. * src/HttpDownloadCommand.h
  5920. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. Fixed the bug that the control file(.aria2 file) is not renamed
  5922. according to tryAutoFileRenaming().
  5923. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5924. its control file exist, use them and continue download.
  5925. The old implementation didn't take into account of control file's
  5926. existence, so basically you couldn't continue download of renamed file.
  5927. * src/BtProgressInfoFile.h
  5928. * src/DefaultBtProgressInfoFile.cc
  5929. * src/DefaultBtProgressInfoFile.h
  5930. * src/NullProgressInfoFile.h
  5931. * src/RequestGroup.cc
  5932. * test/DefaultBtProgressInfoFileTest.cc
  5933. * test/MockBtProgressInfoFile.h
  5934. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5935. Change the default value of --metalink-servers option from `5' to `1'.
  5936. * src/HelpItemFactory.cc
  5937. * src/option_processing.cc
  5938. * src/usage_text.h
  5939. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5940. Reimplemented transparent metalink using Accept request header.
  5941. * src/HttpRequest.cc
  5942. * src/HttpRequest.h
  5943. * src/HttpRequestCommand.cc
  5944. * src/Metalink2RequestGroup.cc
  5945. * src/RequestGroup.cc
  5946. * src/RequestGroup.h
  5947. * test/HttpRequestTest.cc
  5948. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5949. Bump up version number to 0.13.2a
  5950. * configure.ac
  5951. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5952. Updated configure.ac using the result of autoscan.
  5953. * configure.ac
  5954. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Fixed compilation error without gcrypt/openssl.
  5956. * src/DownloadCommand.cc
  5957. * src/DownloadCommand.h
  5958. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5959. Reorganized version information so that it can be displayed in a
  5960. standard terminal screen without scrolling.
  5961. Removed http, ftp from Configuration section, because they are always
  5962. enabled.
  5963. * src/FeatureConfig.cc
  5964. * src/FeatureConfig.h
  5965. * src/main.cc
  5966. * src/messageDigest.cc
  5967. * src/messageDigest.h
  5968. * src/version_usage.cc
  5969. * test/FeatureConfigTest.cc
  5970. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5971. Masked user ID in log.
  5972. * src/FtpConnection.cc (sendUser)
  5973. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. Removed query part from filename in HTTP download. The query part means
  5975. the substring after "?" in URL. Firefox seems do the same thing.
  5976. A query part is sometimes very long and not suitable to filename,
  5977. so I think it is better to remove it from filename.
  5978. * src/HttpRequest.cc
  5979. * src/HttpRequest.h
  5980. * src/Request.cc
  5981. * src/Request.h
  5982. * test/HttpRequestTest.cc
  5983. * test/RequestTest.cc
  5984. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Rewritten Exception class. Throw exception object, not its pointer and
  5986. catch by reference, so that remove problematic delete operator for
  5987. catched exception.
  5988. * src/Exception.cc
  5989. * src/Exception.h
  5990. * test/ExceptionTest.cc
  5991. * src/*: All files throwing/catching exception.
  5992. * test/*: All files throwing/catching exception.
  5993. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5994. Now auto protocol detection is enabled without -Z option.
  5995. But there is a important difference between with/without -Z optoin.
  5996. For example, if you type:
  5997. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5998. then, aria2 interprets there are 3 request groups:
  5999. (1) http://host/file, http://mirror/file <-- multi-source download
  6000. (2) file1.torrent
  6001. (3) file2.metalink
  6002. On the other hand, if you invoke above command with -Z option, it is
  6003. interpreted as 4 request groups:
  6004. (1) http://host/file
  6005. (2) file1.torrent
  6006. (3) file2.metalink
  6007. (4) http://mirror/file
  6008. I think usually user don't mix multi-source URLs and torrent files, so
  6009. there is no big problem here.
  6010. * src/main.cc
  6011. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6012. Fixed the bug that causes segmentaion fault when reading XML containing
  6013. unescapsed character like '&'.
  6014. Also a modification was made which avoids adding unnecessary
  6015. characters stack and appending unused string.
  6016. * src/ExpatMetalinkProcessor.cc
  6017. * src/FileMetalinkParserState.h
  6018. * src/FilesMetalinkParserState.h
  6019. * src/FinMetalinkParserState.h
  6020. * src/HashMetalinkParserState.h
  6021. * src/InitialMetalinkParserState.h
  6022. * src/LanguageMetalinkParserState.h
  6023. * src/MetalinkMetalinkParserState.h
  6024. * src/MetalinkParserState.h
  6025. * src/MetalinkParserStateMachine.cc
  6026. * src/MetalinkParserStateMachine.h
  6027. * src/OSMetalinkParserState.h
  6028. * src/PieceHashMetalinkParserState.h
  6029. * src/PiecesMetalinkParserState.h
  6030. * src/ResourcesMetalinkParserState.h
  6031. * src/SizeMetalinkParserState.h
  6032. * src/SkipTagMetalinkParserState.h
  6033. * src/URLMetalinkParserState.h
  6034. * src/VerificationMetalinkParserState.h
  6035. * src/VersionMetalinkParserState.h
  6036. * src/XML2SAXMetalinkProcessor.cc
  6037. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6038. Added StringFormat class, which internally calls vasprintf.
  6039. operator<< is defined for this class, so it can be used with iostream
  6040. classes nicely. SimpleLogger and following functions are rewritten
  6041. using StringFormat class.
  6042. Besides, now Logger class's methods are non-const, many classes
  6043. that has a const Logger* as a member variable are modified to remove
  6044. const qualifier from the variable declaration.
  6045. * src/HelpItemFactory.cc
  6046. * src/Request.cc
  6047. * src/SimpleLogger.cc
  6048. * src/StringFormat.cc
  6049. * src/StringFormat.h
  6050. * src/Util.cc
  6051. * src/option_processing.cc
  6052. * src/version_usage.cc
  6053. * test/StringFormatTest.cc
  6054. * src/*.h: The classes that has const Logger* as a member variable.
  6055. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6057. failed. Also fixed memory link when exception is thrown there.
  6058. * src/main.cc (AccRequestGroup)
  6059. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Added build-in "Accept-Features" support. For now only "metalink" is
  6061. used in this header field.
  6062. This "metalink" value is removed from the list when connecting URLs
  6063. fed by metalink file to avoid loop in "transparent" metlaink.
  6064. * src/HttpRequest.cc
  6065. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6066. header is also held in this variable. Also renamed setUserHeaders as
  6067. addHeader and it was rewritten to add header not just to clear the old
  6068. value.
  6069. * src/HttpRequestCommand.cc
  6070. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6071. from "Accept-Features" list.
  6072. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6073. default.
  6074. * src/RequestGroup.h
  6075. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6076. * src/a2functional.h: Included <string> because Concat class depends on
  6077. it.
  6078. * test/HttpRequestTest.cc
  6079. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6080. Added comment
  6081. * src/RequestGroup.cc (createNextCommand)
  6082. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Capitalized METHOD_GET and METHOD_HEAD
  6084. * src/Request.cc
  6085. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Added getDownloadResults() method
  6087. * src/RequestGroupMan.cc
  6088. * src/RequestGroupMan.h
  6089. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6090. Fixed the bug that aria2 exits when commands is empty() but
  6091. _routineCommands are not.
  6092. * src/DownloadEngine.cc
  6093. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6094. Use the default value pulled from Option object in HelpItemFactory.
  6095. except options whose defualt value is embedded in a usage text.
  6096. * src/HelpItemFactory.cc
  6097. * src/HelpItemFactory.h
  6098. * src/option_processing.cc
  6099. * src/version_usage.cc
  6100. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6101. Added --quiet option to make aria2 quiet (no console output).
  6102. --quiet option is tagged with ADVANCED.
  6103. * src/HelpItemFactory.cc
  6104. * src/LogFactory.cc
  6105. * src/LogFactory.h
  6106. * src/MultiUrlRequestInfo.cc
  6107. * src/MultiUrlRequestInfo.h
  6108. * src/NullStatCalc.h: New class. This class prints nothing.
  6109. * src/OptionHandlerFactory.cc
  6110. * src/main.cc
  6111. * src/option_processing.cc
  6112. * src/prefs.h
  6113. * src/usage_text.h
  6114. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6116. * src/HelpItemFactory.cc (createHelpItems):
  6117. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6118. Fixed compilation error in ExpatMetalinkProcessor.cc
  6119. * src/ExpatMetalinkProcessor.cc
  6120. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6121. Reuse socket if the origin server supports HTTP keep-alive and
  6122. --enable-http-keep-alive or --enable-http-pipelining is given.
  6123. The current implementation doesn't reuse the connections established
  6124. against proxy server.
  6125. * src/AbstractCommand.cc
  6126. * src/DownloadEngine.cc
  6127. * src/DownloadEngine.h
  6128. * src/HttpDownloadCommand.cc
  6129. * src/HttpInitiateConnectionCommand.cc
  6130. * src/HttpResponseCommand.cc
  6131. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6132. Rewritten HTTP keep-alive and pipelining routine.
  6133. * src/AbstractCommand.cc
  6134. * src/HttpConnection.cc
  6135. * src/HttpDownloadCommand.cc
  6136. * src/HttpRequest.cc
  6137. * src/HttpRequestCommand.cc
  6138. * src/HttpResponseCommand.cc
  6139. * src/Request.cc
  6140. * src/Request.h
  6141. * src/RequestGroup.cc
  6142. * test/HttpRequestTest.cc
  6143. * test/HttpResponseTest.cc
  6144. * test/RequestTest.cc
  6145. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6146. Added missing setUserHeaders call
  6147. * src/HttpRequestCommand.cc
  6148. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6149. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6150. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6151. waste of time because it is more likey false.
  6152. * src/FileAllocationDispatcherCommand.cc (execute)
  6153. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6154. Now HTTP status and version are a member variable of HttpHeader.
  6155. HTTP status is processed as a string, not integer.
  6156. * src/AbstractProxyResponseCommand.cc
  6157. * src/HttpConnection.cc
  6158. * src/HttpHeader.cc
  6159. * src/HttpHeader.h
  6160. * src/HttpHeaderProcessor.cc
  6161. * src/HttpHeaderProcessor.h
  6162. * src/HttpResponse.cc
  6163. * src/HttpResponse.h
  6164. * test/HttpHeaderProcessorTest.cc
  6165. * test/HttpResponseTest.cc
  6166. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6167. Added --header option. You can specify any number of additional HTTP headers
  6168. like:
  6169. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6170. Unlike other commad-line option, you can use --header option multiple times.
  6171. * src/HelpItemFactory.cc
  6172. * src/HttpRequest.{cc, h}
  6173. * src/HttpRequestCommand.cc
  6174. * src/OptionHandlerFactory.cc
  6175. * src/OptionHandlerImpl.h
  6176. * src/option_processing.cc
  6177. * src/prefs.h
  6178. * src/usage_text.h
  6179. * test/HttpRequestTest.cc (testUserHeaders)
  6180. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6181. Eliminates the time lag between sequential downloads and commands in
  6182. the same RequestGroup.
  6183. In old implementation, aria2 occasionally waits 1 seconds before
  6184. executing next command or RequestGroup.
  6185. This is really a waste of time, and new implementation eliminates
  6186. this unnecessary time lag.
  6187. * src/AbstractCommand.cc
  6188. * src/AutoSaveCommand.cc
  6189. * src/CheckIntegrityCommand.cc
  6190. * src/Command.{cc, h}
  6191. * src/DownloadEngine.{cc, h}
  6192. * src/DownloadEngineFactory.cc
  6193. * src/FileAllocationCommand.cc
  6194. * src/FileAllocationDispatcherCommand.cc
  6195. * src/FillRequestGroupCommand.cc
  6196. * src/FtpInitiateConnectionCommand.cc
  6197. * src/HaveEraseCommand.cc
  6198. * src/HttpInitiateConnectionCommand.cc
  6199. * src/HttpResponseCommand.cc
  6200. * src/RealtimeCommand.cc
  6201. * src/RequestGroup.cc
  6202. * src/RequestGroupMan.cc
  6203. * src/StreamFileAllocationEntry.cc
  6204. * src/TimeBasedCommand.{cc, h}
  6205. * src/TimedHaltCommand.cc
  6206. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6208. keyword explicit and SharedHandle's default constructor initializes
  6209. its internal obj to null, old implementation initializes it using
  6210. obj's default constructor.
  6211. To assign null, write SharedHandle<T> x(...); x.reset();
  6212. TODO: test/SharedHandleTest.cc needs more tests.
  6213. * src/SharedHandle.h
  6214. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6215. Fixed type in man page.
  6216. * doc/aria2c.1.txt
  6217. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6219. * src/SimpleLogger.{cc, h}
  6220. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6221. Implemented auto protocol detection.
  6222. Now you can do:
  6223. aria2c -Z http://host/file file1.torrent file2.metalink
  6224. (Note: -Z option is required for auto protcol detection.)
  6225. Then aria2c downloads 3 files simultaneously:
  6226. 1. http://host/file
  6227. 2. file1.torrent <-- read local torrent file
  6228. 3. file2.metalink <-- read local Metalink file.
  6229. Same thing goes with -i option. Assume your uris.txt contans:
  6230. http://host/file
  6231. file1.torrent
  6232. file2.metalink
  6233. Then you can do: aria2c -i uris.txt
  6234. (Note: -Z option is not needed if -i option is given.)
  6235. * src/main.cc
  6236. * src/ProtocolDetector.{cc, h}
  6237. * test/ProtocolDetectorTest.cc
  6238. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6239. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6240. installed
  6241. * src/ARC4Encryptor.h
  6242. * src/ARC4Decryptor.h
  6243. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6244. Renamed argument from 'errno' to 'err', since errno is confused with
  6245. errno defined in errno.h.
  6246. * src/LibgcryptARC4Decryptor.h
  6247. * src/LibgcryptARC4Context.h
  6248. * src/LibgcryptDHKeyExchange.h
  6249. * src/LibgcryptARC4Encryptor.h
  6250. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6251. Rewritten choking algorithm.
  6252. * src/PeerChokeCommand.{cc, h}
  6253. * src/BtInterestedMessage.cc
  6254. * src/PeerSessionResource.{cc, h}
  6255. * src/DefaultPeerStorage.{cc, h}
  6256. * src/BtNotInterestedMessage.cc
  6257. * src/DefaultBtMessageDispatcher.{cc, h}
  6258. * src/BtMessageDispatcher.h
  6259. * src/Peer.{cc, h}
  6260. * src/BtLeecherStateChoke.{cc, h}
  6261. * src/BtSetup.cc
  6262. * src/BtSeederStateChoke.{cc, h}
  6263. * src/PeerStorage.h
  6264. * test/MockPeerStorage.h
  6265. * test/MockBtMessageDispatcher.h
  6266. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6267. Fixed compilation error on x84-64 platform.
  6268. * src/AuthConfig.cc: Included ostream.
  6269. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. Rewritten getBasename() and getDirname(), without standard library
  6271. basename(), dirname().
  6272. * src/File.cc
  6273. * test/FileTest.cc
  6274. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6275. Added Simplified Chinese translation. Also updated the following
  6276. translations: Polish, Dutch, German. Great thanks to all translators.
  6277. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6278. Suppress content-range error when 'Content-Range' response header
  6279. doesn't contains bytes-unit specifier 'bytes'
  6280. * src/HttpHeader.cc (getRange)
  6281. * test/HttpHeaderTest.cc
  6282. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6283. Fixed compilation error with g++-4.3
  6284. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6285. Added missing include files for MinGW
  6286. * test/HttpHeaderProcessorTest.cc
  6287. * test/DHTRoutingTableSerializerTest.cc
  6288. * test/DHTRoutingTableDeserializerTest.cc
  6289. * test/UriListParserTest.cc
  6290. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. Now download line is printed nicely with no garbage at the end of
  6292. line. I use ioctl to get the columns of terminal.
  6293. If stdout is redirected to another device, instead of carriage return,
  6294. end of line '\n' character is used. This is feature request#1909659
  6295. * src/ConsoleStatCalc.cc (calculateStat)
  6296. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Included a2time.h
  6298. * src/DHTMessageDispatcher.h
  6299. * src/DHTMessageEntry.h
  6300. * src/DHTReplaceNodeTask.h
  6301. * src/DHTMessageTracker.h
  6302. * src/Util.h
  6303. * src/CookieBox.h
  6304. * src/SocketCore.h
  6305. * src/DefaultBtMessageDispatcher.h
  6306. * src/SocketCore.cc
  6307. * src/Util.cc
  6308. * src/DHTPingTask.h
  6309. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6310. Fixed high memory footprint when DHT is enabled.
  6311. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6312. queued than it is processed and the queue is getting longer. As a
  6313. consequence, momory usage is increased.
  6314. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6315. replacement cache in DHTBucket which is described in Kademlia paper.
  6316. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6317. DHTReplaceNodeTask.
  6318. * src/DHTBucket.{h, cc}
  6319. (cacheNode): New function.
  6320. (getCachedNodes): New function.
  6321. (dropNode): Push back cached node to _nodes.
  6322. * test/DHTBucketTest.cc
  6323. (testCacheNode): New test
  6324. (testDropNode): New test
  6325. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6326. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6327. the unused 4KB memory when ssl is not used.
  6328. * src/SocketCore.cc
  6329. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6330. Added summary log for peer announce storage.
  6331. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6332. Removed cast
  6333. * src/DefaultPeerStorage.cc (addPeer)
  6334. Log exception message
  6335. * src/DHTMessageTracker.cc (handleTimeout)
  6336. Fixed casting
  6337. * test/HttpRequestTest.cc
  6338. * test/MetalinkProcessorTest.cc
  6339. * test/PieceTest.cc
  6340. * test/MetalinkEntryTest.cc
  6341. * test/SequenceTest.cc
  6342. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6343. * src/ParameterizedStringParser.cc (createLoop):
  6344. Removed unused variable sstep.
  6345. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6346. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. * src/Util.{h, cc}
  6348. (parseUInt): New function.
  6349. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6350. The actual range is uint32_t.
  6351. * test/UtilTest.cc
  6352. * src/ParameterizedStringParser.cc:
  6353. Use Util::parseUInt() for loop variables.
  6354. * test/ParameterizedStringParserTest.cc
  6355. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6356. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6357. Rewritten the functions for binding port.
  6358. * src/DHTConnectionImpl.{h, cc}
  6359. * src/PeerListenCommand.{h, cc}
  6360. * src/DHTSetup.cc
  6361. * src/BtSetup.cc
  6362. * test/DHTConnectionImplTest.cc
  6363. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. type cleanup for allmost all remaining files.
  6365. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6366. Type clarification
  6367. * src/PeerSessionResource.{h, cc}
  6368. * src/DefaultPieceStorage.{h, cc}
  6369. * src/Peer.{h, cc}
  6370. * test/PeerSessionResourceTest.cc
  6371. Use div function
  6372. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6373. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6374. Type clarification
  6375. * src/DefaultPeerStorage.{h, cc}
  6376. * test/DefaultPeerStorageTest.cc
  6377. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Type clarification: size_t for length or size, uint64_t for file
  6379. length, off_t for file offset.
  6380. * src/DefaultBtProgressInfoFile.cc
  6381. * src/DefaultBtContext.{h, cc}
  6382. * src/DefaultBtInteractive.cc
  6383. * src/DownloadCommand.{h, cc}
  6384. * src/IteratableChunkChecksumValidator.{h, cc}
  6385. * src/SegmentMan.{h, cc}
  6386. * src/SingleFileDownloadContext.{h, cc}
  6387. * src/IteratableChecksumValidator.{h, cc}
  6388. * src/BtContext.h
  6389. * src/IteratableValidator.h
  6390. * src/DownloadContext.h
  6391. * test/SingleFileDownloadContextTest.cc
  6392. * test/DefaultBtContextTest.cc
  6393. * test/MockBtContext.h
  6394. * test/Metalink2RequestGroupTest.cc
  6395. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6396. Type clarification: size_t for length or size, uint64_t for file
  6397. length, off_t for file offset.
  6398. * src/PiecedSegment.cc
  6399. * src/GrowSegment.h
  6400. * src/DefaultBtRequestFactory.h
  6401. * src/DefaultBtProgressInfoFile.cc
  6402. * src/UnknownLengthPieceStorage.h
  6403. * src/DefaultPieceStorage.cc
  6404. * src/UnknownLengthPieceStorage.cc
  6405. * src/DefaultBtInteractive.cc
  6406. * src/GrowSegment.cc
  6407. * src/BitfieldMan.h
  6408. * src/DownloadCommand.cc
  6409. * src/BtRequestFactory.h
  6410. * src/PiecedSegment.h
  6411. * src/DefaultPieceStorage.h
  6412. * src/Piece.cc
  6413. * src/DefaultBtRequestFactory.cc
  6414. * src/PieceStorage.h
  6415. * src/Segment.h
  6416. * src/Piece.h
  6417. * src/BitfieldMan.cc
  6418. * src/Util.cc
  6419. * test/DefaultBtProgressInfoFileTest.cc
  6420. * test/DefaultPieceStorageTest.cc
  6421. * test/MockPieceStorage.h
  6422. * test/BtRequestMessageTest.cc
  6423. * test/DefaultBtMessageDispatcherTest.cc
  6424. * test/BitfieldManTest.cc
  6425. * test/GrowSegmentTest.cc
  6426. * test/PieceTest.cc
  6427. * test/SegmentTest.cc
  6428. * test/SegmentManTest.cc
  6429. * test/DefaultBtRequestFactoryTest.cc
  6430. * test/MockBtRequestFactory.h
  6431. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Fixed compilation error with --disable-nls
  6433. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6434. in gettext.h causes the problem.
  6435. * src/common.h
  6436. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. Removed subPiece related functions.
  6438. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6439. * src/DefaultPieceStorage.{h, cc}
  6440. * test/PieceTest.cc
  6441. * test/DefaultPieceStorageTest.cc
  6442. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Use unsigned char for data store.
  6444. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6445. Bump up version number to 0.13.0+1
  6446. * configure.ac
  6447. * Release 0.13.0+1
  6448. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6449. Changed inactive connection timeout to 120.
  6450. To accept more mulually interested peers, disconnect peer when there
  6451. is no interest between us after certain time passed.
  6452. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6453. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6454. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6455. when compiled with async DNS support.
  6456. * src/DownloadEngine.cc
  6457. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6458. value '10' will be a little bit short when some DNS servers are
  6459. offline and several DNS servers are tried. It should be configured
  6460. by command-line option.
  6461. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Merged Ross's mingw patch.
  6463. * src/DHTRoutingTableDeserializer.cc
  6464. * src/DHTRoutingTableSerializer.cc
  6465. * src/Platform.{h, cc}
  6466. * src/timegm.h
  6467. * src/gettimeofday.h
  6468. * src/getaddrinfo.h
  6469. * src/SocketCore.h
  6470. * src/common.h
  6471. * src/inet_aton.h
  6472. * src/DownloadEngine.h
  6473. * src/gai_strerror.h
  6474. * src/a2netcompat.h
  6475. * configure.ac
  6476. * configure
  6477. * aclocal.m4
  6478. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6479. Included missing iostream.
  6480. * test/AllTest.cc
  6481. * test/BtDependencyTest.cc
  6482. * test/BtExtendedMessageTest.cc
  6483. * test/DHTConnectionImplTest.cc
  6484. * test/DHTMessageFactoryImplTest.cc
  6485. * test/DHTMessageTrackerEntryTest.cc
  6486. * test/DHTNodeTest.cc
  6487. * test/DHTRoutingTableSerializerTest.cc
  6488. * test/DefaultBtAnnounceTest.cc
  6489. * test/DefaultBtContextTest.cc
  6490. * test/DefaultBtMessageFactoryTest.cc
  6491. * test/DefaultExtensionMessageFactoryTest.cc
  6492. * test/HandshakeExtensionMessageTest.cc
  6493. * test/HttpResponseTest.cc
  6494. * test/MetalinkProcessorTest.cc
  6495. * test/MultiFileAllocationIteratorTest.cc
  6496. * test/SocketCoreTest.cc
  6497. * test/UTPexExtensionMessageTest.cc
  6498. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6499. Reorganized includes.
  6500. * src/NameResolver.cc
  6501. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Fixed compilation error without ares/c-ares
  6503. * src/NameResolver.h:
  6504. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6505. Added a test for large file.
  6506. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6507. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6508. Fixed the bug that file size is ignored if size > INT32_MAX
  6509. * src/SizeMetalinkParserState.cc (endElement):
  6510. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6511. Bump up version number to 0.13.0
  6512. * configure.ac
  6513. * Release 0.13.0
  6514. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6515. Updated Makfefile.am to make 'make dist' work.
  6516. Now packaged filename is aria2c-VERSION.tar.bz2.
  6517. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6518. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6519. Large file support is now configured by configure script.
  6520. * configure.ac
  6521. Removed unsused source files
  6522. * src/
  6523. * test/
  6524. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6525. Peer.h and BtContext.h respectively.
  6526. * src/Peer.h
  6527. * src/BtContext.h
  6528. Updated translations.
  6529. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6530. translations. Great thanks to all translators!;)
  6531. * po/*.{po, gmo}
  6532. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6534. statically declared sha1 MessageDigestContext.
  6535. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6536. initialization of short-lived MessageDigestContext.
  6537. * src/MessageDigestHelper.{h, cc}
  6538. * src/main.cc
  6539. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6540. the initialization of MessageDigestContext every time in validating
  6541. chunk checksum.
  6542. * src/DownloadCommand.{h, cc}
  6543. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6544. Add a file descriptor which connected to fast peer(latency<1500) to
  6545. select(). This change reduced CPU load.
  6546. * src/PeerInteractionCommand.cc
  6547. * src/DefaultBtInteractive.{h, cc}
  6548. * src/BtInteractive.h
  6549. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6550. Fixed the previous insufficient fix for possible busy loop.
  6551. * src/MSEHandshake.cc (identifyHandshakeType)
  6552. Removed unused functions.
  6553. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6554. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6555. Fixed possible busy loop if first 20 bytes are not received for a few
  6556. minutes.
  6557. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6558. * src/ReceiverMSEHandshakeCommand.cc
  6559. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6560. Fixed compilation error
  6561. * src/ExpatMetalinkProcessor.cc
  6562. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6563. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6564. * src/DHTBucket.cc
  6565. Removed unnecessary cast.
  6566. * src/HandshakeExtensionMessage.cc
  6567. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6568. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6569. is missing.
  6570. * src/OptionHandlerFactory.cc
  6571. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6572. Fixed the bug that HAVE message is not sent for a piece they are
  6573. downloaded fom http/ftp server before any BitTorrent handshake is done
  6574. with peers.
  6575. * src/DefaultBtInteractive.cc
  6576. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6577. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6578. * src/Makefile.am
  6579. * src/Makefile.in
  6580. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. Updated README. Added html version of README and man page.
  6582. * README
  6583. * README.html
  6584. * readme2html: Shell script to generate README.html from README using
  6585. asciidoc.
  6586. * doc/aria2c.1.html
  6587. * doc/makeman: Added the line to generate aria2c.1.html
  6588. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Fixed offset calculation.
  6590. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6591. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6592. Rewritten itos and uitos using template. llitos and ullitos are
  6593. replaced with itos and uitos respectively.
  6594. * src/Util.{h, cc}
  6595. * test/UtilTest.cc
  6596. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6598. of the number of bytes required for storing public key and shared
  6599. secret.
  6600. * src/LibgcryptDHKeyExchange.h
  6601. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6602. * src/MSEHandshake.cc
  6603. * test/DHKeyExchangeTest.cc
  6604. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6605. Removed since they are not used.
  6606. * src/Xml2MetalinkProcessor.{h, cc}
  6607. * src/Socket.cc
  6608. * src/SegmentSplitter.{h, cc}
  6609. * test/Xml2MetalinkProcessorTest.cc
  6610. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. Fixed the bug that prevents aria2 from stopping other than by pressing
  6612. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6613. option. aria2 doesn't stop even after --seed-time is satisfied and
  6614. continues to output blank lines in the console.
  6615. * src/ReceiverMSEHandshakeCommand.cc
  6616. * src/PeerReceiveHandshakeCommand.cc
  6617. * src/PeerListenCommand.cc
  6618. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Bump up version number to 0.13.0rc
  6620. * configure.ac
  6621. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6622. Updated man page and some usage text.
  6623. * doc/aria2c.1.txt
  6624. * src/usage_text.h
  6625. * po/*.{po, gmo}
  6626. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6627. Updated translations. Added Finnish and Hebrew translations.
  6628. Great thanks to all translators!
  6629. * po/*.{po, gmo}
  6630. * po/LINGUAS
  6631. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6632. Log more detailed information about each message.
  6633. * src/DHTQueryMessage.{h, cc}
  6634. * src/DHTGetPeersMessage.{h, cc}
  6635. * src/DHTFindNodeReplyMessage.{h, cc}
  6636. * src/DHTGetPeersReplyMessage.{h, cc}
  6637. * src/DHTAnnouncePeerMessage.{h, cc}
  6638. * src/DHTResponseMessage.{h, cc}
  6639. * src/DHTFindNodeMessage.{h, cc}
  6640. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6641. Use constants defined in prefs.h
  6642. * src/option_processing.cc
  6643. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6644. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6645. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6646. Make room for future enchancements for IPv6 addresses.
  6647. Bump up version number of dht.dat file format to 2.
  6648. Not compatible with previous version.
  6649. * src/DHTRoutingTableSerializer.cc
  6650. * src/DHTRoutingTableDeserializer.cc
  6651. * test/DHTRoutingTableSerializerTest.cc
  6652. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6653. Added handling for the return values from
  6654. PeerMessageUtil::createcompact().
  6655. * src/DefaultBtContext.cc (computeFastSet):
  6656. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Fixed abort when peer's ip address is IPv4-mapped address.
  6658. * src/DefaultBtContext.cc (computeFastSet)
  6659. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6660. cannot handle IPv4-mapped addresses.
  6661. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6662. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6663. Proper return value handling for OpenSSL functions.
  6664. * src/LibsslDHKeyExchange.h
  6665. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6666. Random bytes generation using libgcrypt and OpenSSL.
  6667. * src/DHTUtil.{h, cc}
  6668. * test/DHTUtilTest.cc
  6669. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6670. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6671. received.
  6672. * src/DHTMessageReceiver.cc (receiveMessage)
  6673. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Fixed the bug that a return code is always 0. BUG#1897704
  6675. If error occurred during the download or there exist unfinished
  6676. downloads, aria2 returns with code 1.
  6677. * src/RequestGroupMan.{h, cc}
  6678. * src/MultiUrlRequestInfo.{h, cc}
  6679. * src/main.cc
  6680. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6681. IPv6 support for SocketCore class.
  6682. TODO: In SocketCore::establishConnection(), this is insufficient to
  6683. determin the failure of connect() here because the socket is
  6684. non-blocking state. The next addresses should be tried after select().
  6685. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6686. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6687. instead which address family independent.
  6688. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6689. information in a compact peer format which is for IPv4 only.
  6690. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6691. this is a spec of BitTorrent protocol.
  6692. * src/SocketCore.{h, cc}
  6693. * src/PeerMessageUtil.cc
  6694. * test/SocketCoreTest.cc
  6695. * test/PeerMessageUtilTest.cc
  6696. * test/DHTConnectionImplTest.cc
  6697. Handle IPv4-mapped addresses.
  6698. * src/DHTNode.cc: Now identity is determined by node id.
  6699. * src/DHTMessageTrackerEntry.cc
  6700. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6701. should handle it.
  6702. * src/DHTRoutingTableDeserializer.cc
  6703. * src/DHTMessageFactoryImpl.cc
  6704. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Change the unit of --stop option from a minute to a second.
  6706. * src/usage_text.h
  6707. * src/DownloadEngineFactory.cc
  6708. * src/OptionHandlerFactory.cc
  6709. * src/message.h
  6710. * src/TimedHaltCommand.cc
  6711. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6712. Make listening socket non-block mode.
  6713. * src/FtpConnection.cc
  6714. * src/FtpNegotiationCommand.{h, cc}
  6715. * src/PeerListenCommand.cc
  6716. Fixed the bug that cause slow ftp negotiation.
  6717. * src/FtpNegotiationCommand.{h, cc}
  6718. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6719. Added basic tag to --enable-dht, --dht-listen-port option.
  6720. * src/HelpItemFactory.cc (createHelpItems)
  6721. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6722. Updated text.
  6723. * src/usage_text.h
  6724. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6726. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6727. Determin _threadtholdSpeed in each constructor for
  6728. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6729. * src/ActivePeerConnectionCommand.{h, cc}
  6730. * src/PeerReceiveHandshakeCommand.{h, cc}
  6731. * src/BtSetup.cc
  6732. * src/BtConstants.h
  6733. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6734. Added --bt-min-crypto-level and --bt-require-crypto options.
  6735. * src/OptionHandlerFactory.cc
  6736. * src/MSEHandshake.cc
  6737. * src/HelpItemFactory.cc
  6738. * src/option_processing.cc
  6739. * src/ReceiverMSEHandshakeCommand.cc
  6740. * src/prefs.h
  6741. * src/DefaultBtAnnounce.cc
  6742. * src/InitiatorMSEHandshakeCommand.cc
  6743. * src/usage_text.h
  6744. * test/MSEHandshakeTest.cc
  6745. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6746. Bump version number to 0.13.0b
  6747. * configure.ac
  6748. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6749. Updated doc.
  6750. * src/MessageDigestHelper.h:
  6751. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Use raw message digest as a token instead of its hexadecimal
  6753. representation.
  6754. * src/DHTTokenTracker.cc (generateToken)
  6755. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6756. Added Message Stream Encryption(MSE) support.
  6757. Currently, aria2 accepts incoming connections with Obfuscation Header
  6758. and legacy BitTorrent Header and establishes connections with
  6759. Obfuscation Header first and if failed then retry with legacy
  6760. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6761. choose ARC4. The new option to change the default behavior is planned.
  6762. For tracker extension, "supportcrypto=1" is added statically.
  6763. * src/PeerInitiateConnectionCommand.{h, cc}
  6764. * src/PeerConnection.{h, cc}
  6765. * src/HandleRegistry.h
  6766. * src/SocketCore.h
  6767. * src/PeerReceiveHandshakeCommand.{h, cc}
  6768. * src/BtRegistry.{h, cc}
  6769. * src/PeerListenCommand.cc
  6770. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6771. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6772. * src/MSEHandshake.{h, cc}
  6773. * src/ARC4Encryptor.h
  6774. * src/ARC4Decryptor.h
  6775. * src/LibgcryptARC4Encryptor.h
  6776. * src/LibgcryptARC4Decryptor.h
  6777. * src/LibgcryptARC4Context.h
  6778. * src/LibsslARC4Encryptor.h
  6779. * src/LibsslARC4Decryptor.h
  6780. * src/LibsslARC4Context.h
  6781. * src/DHKeyExchange.h
  6782. * src/LibgcryptDHKeyExchange.h
  6783. * src/LibsslDHKeyExchange.h
  6784. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6785. * test/DefaultBtAnnounceTest.cc
  6786. * test/ARC4Test.cc
  6787. * test/DHKeyExchangeTest.cc
  6788. Removed prepareForRetry() because it is not used.
  6789. * src/PeerAbstractCommand.{h, cc}
  6790. * src/PeerInteractionCommand.{h, cc}
  6791. * src/PeerInitiateConnectionCommand.{h, cc}
  6792. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Added the ability to load nodes from torrent file. These nodes are
  6794. added to the routing table when downloading that torrent.
  6795. * src/BtContext.h
  6796. * src/DefaultBtContext.{h, cc}
  6797. * src/DHTSetup.cc
  6798. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6799. hostname and port pair, and resolves all of them.
  6800. * src/NameResolver.{h, cc}: Added reset().
  6801. * src/RequestGroup.cc
  6802. * test/DefaultBtContextTest.cc
  6803. * test/MockBtContext.h
  6804. Removed assert() from DefaultBtContext and throw exception instead.
  6805. * src/DefaultBtContext.cc
  6806. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6807. Fixed segmentation fault bug when exiting if dht is disabled.
  6808. * src/RequestGroup.cc
  6809. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6810. Fixed typo in log message and define the message in message.h
  6811. * src/TimedHaltCommand.cc
  6812. * src/message.h
  6813. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Included RecoverableException.h to fix compilation error.
  6815. * test/DHTMessageFactoryImplTest.cc
  6816. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6818. * test/DHTPingMessageTest.cc
  6819. * test/DHTGetPeersMessageTest.cc
  6820. * test/DHTFindNodeMessageTest.cc
  6821. * test/DHTAnnouncePeerMessageTest.cc
  6822. * test/MockDHTMessage.h
  6823. * test/MockDHTMessageFactory.h
  6824. * test/MockDHTMessageDispatcher.h: New class.
  6825. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6826. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6827. virtual.
  6828. * src/DHTMessageDispatcher.h
  6829. * src/DHTMessageDispatcherImpl.{h, cc}
  6830. * src/DHTSetup.cc
  6831. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6832. Adding handling of DHT error message. Just log error message and
  6833. throw exception.
  6834. * src/DHTMessageFactoryImpl.cc
  6835. * test/DHTMessageFactoryImplTest.cc
  6836. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Added handling of dynamic cast failure.
  6838. * src/DHTNodeLookupTask.cc
  6839. * src/DHTPeerLookupTask.cc
  6840. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Added the ability to stop aria2 itself when given time has passed
  6842. from start. Use --stop option to specify time in minutes.
  6843. When 0 is given, this feature is disabled.
  6844. * src/OptionHandlerFactory.cc
  6845. * src/TimeBasedCommand.h: Make _interval protected scope.
  6846. * src/HelpItemFactory.cc
  6847. * src/option_processing.cc
  6848. * src/prefs.h
  6849. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6850. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6851. Without this modification, the result list shows "ERR" when aria2 is
  6852. stopped by --stop option. It should be "INPR".
  6853. * src/DownloadEngine.{h, cc}
  6854. * src/DownloadEngineFactory.cc
  6855. * src/usage_text.h
  6856. * src/TimedHaltCommand.{h, cc}: New class.
  6857. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6858. Bootstrap through node added by port message.
  6859. Currently bootstrap is executed if the number of buckets in routing
  6860. table is 1.
  6861. * src/BtPortMessage.{h, cc}
  6862. * src/DefaultBtMessageFactory.{h, cc}
  6863. * src/PeerInteractionCommand.cc
  6864. * test/BtPortMessageTest.cc
  6865. * test/MockDHTTask.h
  6866. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. Extract the Peer class's member variables, which are only needed after
  6868. PeerInteractionCommand, into PeerSessionResource class.
  6869. This class is instantiated in PeerInteractionCommand class's ctor and
  6870. released in its dtor.
  6871. This will make Peer class lightweight and uses less memory for peers
  6872. which are not connected and wait in the queue.
  6873. * src/PeerChokeCommand.cc
  6874. * src/PeerSessionResource.{h, cc}
  6875. * src/PeerInteractionCommand.cc
  6876. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6877. * src/DefaultBtInteractive.cc
  6878. * src/BtPieceMessage.cc
  6879. * src/BtInterestedMessage.cc
  6880. * src/BtUnchokeMessage.cc
  6881. * src/DefaultPeerStorage.{h, cc}
  6882. * src/PeerInitiateConnectionCommand.cc
  6883. * src/ActivePeerConnectionCommand.cc
  6884. * src/BtNotInterestedMessage.cc
  6885. * src/DefaultBtMessageDispatcher.cc
  6886. * src/BtChokeMessage.cc
  6887. * src/BtRequestMessage.cc
  6888. * src/Peer.{h, cc}
  6889. * src/BtRegistry.h
  6890. * src/TrackerWatcherCommand.cc
  6891. * src/PeerReceiveHandshakeCommand.cc
  6892. * test/BtExtendedMessageTest.cc
  6893. * test/BtAllowedFastMessageTest.cc
  6894. * test/BtCancelMessageTest.cc
  6895. * test/DefaultPieceStorageTest.cc
  6896. * test/BtBitfieldMessageTest.cc
  6897. * test/BtHaveMessageTest.cc
  6898. * test/BtNotInterestedMessageTest.cc
  6899. * test/BtRequestMessageTest.cc
  6900. * test/PeerSessionResourceTest.cc
  6901. * test/DefaultBtMessageDispatcherTest.cc
  6902. * test/PeerTest.cc
  6903. * test/BtInterestedMessageTest.cc
  6904. * test/BtRejectMessageTest.cc
  6905. * test/BtChokeMessageTest.cc
  6906. * test/DefaultPeerStorageTest.cc
  6907. * test/BtHaveNoneMessageTest.cc
  6908. * test/BtHaveAllMessageTest.cc
  6909. * test/DefaultExtensionMessageFactoryTest.cc
  6910. * test/BtUnchokeMessageTest.cc
  6911. * test/DefaultBtMessageFactoryTest.cc
  6912. * test/HandshakeExtensionMessageTest.cc
  6913. * test/UTPexExtensionMessageTest.cc
  6914. * test/DefaultBtRequestFactoryTest.cc
  6915. * test/BtPieceMessageTest.cc
  6916. Removed typedef PeerStats.
  6917. * src/PeerStat.h
  6918. * src/SegmentMan.cc
  6919. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Added std namespace to copy, remove_copy, back_inserter,
  6921. front_inserter.
  6922. * src/RequestGroupMan.cc
  6923. * src/DefaultPieceStorage.cc
  6924. * src/StreamFileAllocationEntry.cc
  6925. * src/BtFileAllocationEntry.cc
  6926. * src/RequestGroup.cc
  6927. * src/MetalinkEntry.cc
  6928. * src/DelegatingPeerListProcessor.cc
  6929. * src/DefaultBtRequestFactory.cc
  6930. * src/DefaultBtMessageDispatcher.cc
  6931. * src/version_usage.cc: Included <algorithm>
  6932. * src/main.cc
  6933. * src/MetalinkParserController.cc
  6934. * src/DefaultBtContext.cc
  6935. * src/DownloadEngineFactory.cc
  6936. * src/a2algo.h
  6937. Removed.
  6938. * test/StreamUriListParserTest.cc
  6939. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6940. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6941. ActivePeerConnectionCommand when it is given and
  6942. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6943. * src/ActivePeerConnectionCommand.{h, cc}
  6944. * src/BtSetup.cc
  6945. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6946. Only add socket to DownloadEngine's select routine when peer or
  6947. localhost is unchoked and interested. This lowers CPU usage a
  6948. little bit.
  6949. * src/PeerInteractionCommand.cc
  6950. * src/PeerAbstractCommand.{h, cc}
  6951. * src/BtInteractive.h
  6952. * src/DefaultBtInteractive.{h, cc}
  6953. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6954. Revert previous change because get_peers message is needed for
  6955. announce_peer anyway.
  6956. * src/DHTGetPeersCommand.cc
  6957. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6958. Request peers thought DHT only when download hasn't finished.
  6959. * src/DHTGetPeersCommand.cc
  6960. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6961. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6962. * src/DHTBucketRefreshTask.{h, cc}
  6963. * src/DHTSetup.cc
  6964. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6966. standard classes.
  6967. Included string.h where mem* function are used.
  6968. Added namespace aria2.
  6969. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6970. Create directory before saving DHT routing table.
  6971. Now ios::failure is now handled properly.
  6972. * src/DHTAutoSaveCommand.cc
  6973. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6974. Removed unnecessary cerr.
  6975. * src/DownloadEngine.cc
  6976. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6977. Catch exception inside DHTMessageReceiver::receiveMessage().
  6978. Log unknown message.
  6979. * src/DHTMessageReceiver.{h, cc}
  6980. * src/DHTMessageFactory.h
  6981. * src/DHTMessageFactoryImpl.{h, cc}
  6982. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6983. * src/DHTInteractionCommand.cc
  6984. * src/DHTUnknownMessage.{h, cc}
  6985. * test/DHTUnknownMessageTest.cc
  6986. * test/MockDHTMessageFactory.h
  6987. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. Commented out ip address comparison because a host can have multiple
  6989. ip addresses and it is hard to predict the hostname is resolved into
  6990. which one.
  6991. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6992. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6993. * po/Makefile.in: Removed since this is generated by configure.
  6994. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6995. Fixed compiler warning about redefinition of SIZE_MAX.
  6996. Use common.h instead of config.h directly here.
  6997. * src/Platform.{h, cc}
  6998. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6999. here.
  7000. * common.h
  7001. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  7002. Updated gettext related files.
  7003. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  7004. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  7005. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Added DHT functionality, compatible with mainline.
  7007. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  7008. You may need to specify entry point to DHT network using
  7009. --dht-entry-point. DHT uses UDP port to listen incoming message.
  7010. Use --dht-listen-port to specify port number. Make sure that your
  7011. firewall configuration can pass through UDP traffic to the port.
  7012. The routing table is saved in $HOME/.aria2/dht.dat.
  7013. * src/DHT*
  7014. * src/BNode.{h, cc}
  7015. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  7016. particular torrent.
  7017. * src/Data.cc: Rewritten ctor.
  7018. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  7019. --dht-entry-point.
  7020. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  7021. * src/RequestGroup.cc: Initialize DHT functionality. When download
  7022. ends, remove BtContext from DHTPeerAnnounceStorage.
  7023. * src/BtPortMessage.{h, cc}: Rewritten.
  7024. * src/message.h
  7025. * src/OptionHandlerImpl.cc
  7026. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  7027. --dht-entry-point.
  7028. * src/Dictionary.{h, cc} (remove): New function.
  7029. * src/prefs.h
  7030. * src/DefaultBtMessageFactory.h
  7031. * src/BtHandshakeMessage.cc
  7032. * src/ActivePeerConnectionCommand.cc
  7033. * src/SocketCore.{h, cc}: Added datagram socket support.
  7034. * src/DefaultBtMessageFactory.cc
  7035. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7036. Create DHT commands.
  7037. * src/BtMessageFactory.h
  7038. * src/PeerMessageUtil.{h, cc}
  7039. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7040. Fixed the bug that log file is not written when configuration file doesn't exist.
  7041. This is caused by using Logger class before LogFactory is not configured.
  7042. BUG #1875079
  7043. * src/option_processing.cc
  7044. Warning message "configuration doesn't exist" is only printed when --conf is
  7045. given.
  7046. * src/option_processing.cc
  7047. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7048. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7049. ShaVisitor is now deprecated and slated to be removed.
  7050. * src/DefaultBtContext.cc
  7051. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7052. Externalize message to message.h
  7053. * src/Platform.cc
  7054. * src/message.h
  7055. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7056. Set default domain and default path to cookie.
  7057. * src/HttpResponse.cc
  7058. * src/CookieBox.{h, cc}
  7059. * src/CookieParser.{h, cc}
  7060. * test/CookieParserTest.cc
  7061. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7062. Added --no-conf and --conf-path command-line option.
  7063. --no-conf option disables loading aria2.conf file.
  7064. --conf-path option changes the configuration file path. The default
  7065. file path is $HOME/.aria2/aria2.conf
  7066. Added a warning message when the configuration file is not found.
  7067. * src/HelpItemFactory.cc
  7068. * src/option_processing.cc
  7069. * src/prefs.h
  7070. * src/usage_text.h
  7071. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7072. Added the message to inform users that other help categories are
  7073. available in -h option.
  7074. * src/version_usage.cc
  7075. * src/TagContainer.{h, cc}
  7076. * test/TagContainerTest.cc
  7077. * src/TaggedItem.{h, cc}
  7078. * test/TaggedItemTest.cc
  7079. * src/HelpItem.h
  7080. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7081. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7082. from PiecedSegment's ctor.
  7083. Previously Piece::getAllMissingBlockIndexes() is called from
  7084. PiecedSegment() but it is rather expensive since only first element is
  7085. used.
  7086. * src/PiecedSegment.cc
  7087. * src/Piece.{h, cc}
  7088. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7090. each time these functions are called.
  7091. * src/BitfieldMan.{h, cc}
  7092. * test/BitfieldManTest.cc
  7093. * src/array_fun.h
  7094. * test/array_funTest.cc
  7095. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7096. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7097. filtered. Removed unnecessary cast to int32_t.
  7098. * src/BitfieldMan.{h, cc}
  7099. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7100. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7101. payload length(4bytes) are received. This happens because lenbufLength
  7102. is not updated in this particular case and successive call of
  7103. receiveMessage() overwrites payload length with bytes recieved which
  7104. are payload body.
  7105. * src/PeerConnection.{h, cc}
  7106. * src/message.h
  7107. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7108. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7109. peer if there are peers that have same ipaddr and port.
  7110. I've experiened segmentation fault and "pure virtual function was
  7111. called" error.
  7112. * src/Peer.h
  7113. * test/PeerTest.cc
  7114. * src/DefaultPeerStorage.cc
  7115. * test/DefaultPeerStorageTest.cc
  7116. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7117. Removed a call to isPowerOf() because it is no longer necessary here
  7118. and a request block is not always power of 2.
  7119. BUG#1866924
  7120. * src/PeerMessageUtil.cc (checkLength)
  7121. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Fixed the bug that always first found Segment is removed from
  7123. usedSegmentEntries. Removed unused functions.
  7124. * src/SegmentMan.{h, cc}
  7125. * test/SegmentManTest.cc
  7126. Fixed the bug that ServerHost is not removed.
  7127. * src/RequestGroup.cc
  7128. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. Fixed the bug that SegmentMan::completeSegment() is not called
  7130. even if Segment is complete when --lowest-speed-limit is enabled.
  7131. BUG#1864525
  7132. * src/DownloadCommand.{h, cc}
  7133. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7134. Fixed: hash algorithm 'sha1' is always used.
  7135. * src/DownloadCommand.cc (validatePieceHash)
  7136. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. Added --enable-peer-exchange command-line option.
  7138. * src/OptionHandlerFactory.cc
  7139. * src/HelpItemFactory.cc
  7140. * src/option_processing.cc
  7141. * src/usage_text.h
  7142. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. Move extension from BtRuntime to ExtensionMessageFactory, because
  7144. extension can be specified per peer, not per torrent.
  7145. * src/DefaultBtInteractive.cc
  7146. * src/BtRuntime.h
  7147. * src/ExtendedMessagingAware.h
  7148. * src/ExtensionMessageFactory.h
  7149. * src/DefaultExtensionMessageFactory.cc
  7150. * test/DefaultExtensionMessageFactoryTest.cc
  7151. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7152. Added categorized option help. Specify category using --help option.
  7153. Also added the ability to search options in forward match.
  7154. * src/HelpItem.{h, cc}
  7155. * test/HelpItemTest.cc
  7156. * src/HelpItemFactory.{h, cc}
  7157. * src/TagContainer.{h, cc}
  7158. * test/TagContainerTest.cc
  7159. * src/option_processing.cc
  7160. * src/prefs.h
  7161. * src/TaggedItem.{h, cc}
  7162. * test/TaggedItemTest.cc
  7163. * src/version_usage.cc
  7164. * src/help_tags.h
  7165. * src/usage_text.h
  7166. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Fixed segmentation fault when bad torrent metainfo is parsed.
  7168. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7169. and then throw exception or skip it.
  7170. * src/DefaultBtContext.{h, cc}
  7171. * test/DefaultBtContextTest.cc
  7172. * src/AnnounceList.cc
  7173. * src/CompactPeerListProcessor.cc
  7174. * src/message.h
  7175. * src/DefaultBtAnnounce.{h, cc}
  7176. * test/DefaultBtAnnounceTest.cc
  7177. * src/BencodeVisitor.cc
  7178. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Added missing "B"(=Byte). So now the message looks like this:
  7180. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7181. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7182. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7183. Show the seed ratio after torrent downloads.
  7184. For example, after torrent download completed and --seed-time and
  7185. --seed-ratio conditions are fulfilled, following message is printed
  7186. right after "Download complete: .....":
  7187. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7188. * src/RequestGroupMan.cc
  7189. * src/RequestGroup.{h, cc}
  7190. * src/message.h
  7191. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7192. Remove a defunct control file. A defunct control file means that while
  7193. it exists, but the corresponding download file is missing.
  7194. After its removal, a download restarts from the beginning.
  7195. * src/RequestGroup.cc
  7196. * src/message.h
  7197. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Allocate bitfield in Peer when it is really used. More specifically,
  7199. bitfield in Peer is allocated after the connection is established and
  7200. deallocated when the connection is dropped.
  7201. Since 2 parameters(piece length and total length) was removed from the
  7202. constructor of Peer class, many test classes were modified accordingly.
  7203. See svn log for more detailed information.
  7204. * src/PeerInteractionCommand.cc
  7205. * src/CompactPeerListProcessor.cc
  7206. * src/Peer.cc
  7207. * src/DefaultPeerListProcessor.cc
  7208. * src/PeerListenCommand.cc
  7209. * src/PeerReceiveHandshakeCommand.cc
  7210. Fixed memory leak
  7211. * src/Piece.cc
  7212. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7214. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7215. command-line options.
  7216. * src/option_processing.cc
  7217. * src/ActivePeerConnectionCommand.cc
  7218. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7219. Send have message to peer if it already has the piece.
  7220. * src/BtHaveMessage.{h, cc}
  7221. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7223. port.
  7224. * src/DefaultPeerStorage.{h, cc}
  7225. * test/DefaultPeerStorageTest.cc
  7226. * src/HandshakeExtensionMessage.cc
  7227. * test/HandshakeExtensionMessageTest.cc
  7228. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7229. * src/PeerStorage.h
  7230. * test/MockPeerStorage.h
  7231. * src/PeerListenCommand.cc
  7232. * src/PeerReceiveHandshakeCommand.cc
  7233. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Added --metalink-enable-unique-protocol option.
  7235. * src/Metalink2RequestGroup.cc
  7236. * src/option_processing.cc
  7237. * src/prefs.h
  7238. * src/version_usage.cc
  7239. * doc/aria2c.1.txt
  7240. * doc/aria2c.1
  7241. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7242. Allow a peer in incomingPeer to be added peers.
  7243. * src/DefaultPeerStorage.cc
  7244. * test/DefaultPeerStorageTest.cc
  7245. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7247. I could reproduce this bug in following procedure:
  7248. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7249. 2. Restart aria2.
  7250. 3. You see the download stopped around 99%.
  7251. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7252. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7253. If timeout is reached, then _nextCommand is unused and it may contains
  7254. segments and they won't be canceled. Actually, timeout is not needed
  7255. here because if the server dropped connection, then retry is made.
  7256. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Added uTorrent compatible Peer Exchange.
  7258. * src/BencodeVisitor.{h, cc}
  7259. * test/BencodeVisitorTest.cc
  7260. * src/BtConstants.h
  7261. * src/BtContext.h: Added 'private' flag.
  7262. * src/BtExtendedMessage.{h, cc}
  7263. * test/BtExtendedMessageTest.cc
  7264. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7265. reserved field.
  7266. * test/BtHandshakeMessageTest.cc
  7267. * src/BtMessageFactory.h
  7268. * src/BtRegistry.h
  7269. * src/BtRuntime.h: This class holds default extension message IDs for
  7270. aria2. By default, aria2 uses ID 8 for ut_pex.
  7271. * src/DefaultBtContext.cc
  7272. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7273. When it is true, aria2 enables ut_pex. This value is set by
  7274. PeerInteractionCommand.
  7275. * src/DefaultBtMessageFactory.{h, cc}
  7276. * test/DefaultBtMessageFactoryTest.cc
  7277. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7278. handling to DefaultBtInteractive class.
  7279. * src/DefaultExtensionMessageFactory.{h, cc}
  7280. * test/DefaultExtensionMessageFactoryTest.cc
  7281. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7282. the container(peers and incomingPeers. The equality is determined by
  7283. Peer::id).
  7284. * test/DefaultPeerStorageTest.cc
  7285. * src/ExtensionMessage.h
  7286. * test/MockExtensionMessage.h
  7287. * src/ExtensionMessageFactory.h
  7288. * test/MockExtensionMessageFactory.h
  7289. * src/HandshakeExtensionMessage.{h, cc}
  7290. * test/HandshakeExtensionMessageTest.cc
  7291. * src/MetaEntry.h
  7292. * src/Peer.{h, cc}
  7293. * src/PeerInteractionCommand.cc
  7294. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7295. addIncomingPeer.
  7296. * src/PeerMessageUtil.{h, cc}
  7297. * src/PeerObject.h
  7298. * src/UTPexExtensionMessage.{h, cc}
  7299. * test/UTPexExtensionMessageTest.cc
  7300. * src/message.h
  7301. * src/prefs.h
  7302. Fixed the bug that returns incomplete data when it contains null
  7303. character. A convenient constructor was also added.
  7304. * src/Data.{h, cc}
  7305. Rewritten.
  7306. * src/CompactPeerListProcessor.cc
  7307. Fixed typos.
  7308. * src/message.h
  7309. * src/MetaFileUtil.cc
  7310. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7311. Added "Status Legend" label to the explanation text of 'stat' in
  7312. download result and moved it to the last. BUG#1848214
  7313. * src/RequestGroupMan.cc
  7314. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7316. * src/Makefie.am
  7317. * test/Makefile.am
  7318. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Fixed the bug that prevents aria2 from loading cookie file when expire
  7320. value is greater than 2^31-1. BUG#1851066
  7321. * src/CookieBoxFactory.cc
  7322. * test/CookieBoxFactoryTest.cc
  7323. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7324. Fixed possible memory leak when an exception is thrown.
  7325. * src/XML2SAXMetalinkProcessor.cc
  7326. Added Expat support. If both libxml2 and Expat are installed, then
  7327. libxml2 is used by default.
  7328. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7329. ExpatMetalinkProcessor according to the configuration.
  7330. * src/ExpatMetalinkProcessor.{h, cc}
  7331. * src/main.cc: Removed libxml2 specific header and init/free function.
  7332. * src/MetalinkProcessorFactory.{h, cc}
  7333. * src/MetalinkHelper.cc
  7334. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7335. * src/MetalinkProcessor.h
  7336. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7337. MetalinkProcessorTest is used instead.
  7338. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7339. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7340. MetalinkProcessorFactory::newInstance().
  7341. * m4/libexpat.m4
  7342. * configure.ac: Added configuration options for libexpat.
  7343. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7344. Disabled -s option in metalink download.
  7345. * src/Metalink2RequestGroup.cc
  7346. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7347. If several protocols are available for a mirror in metalink file,
  7348. aria2 now use one of them. --metalink-preferred-protocol option was
  7349. added to specify the preference of protocol.
  7350. * src/AbstractCommand.cc
  7351. * src/OptionHandlerFactory.cc
  7352. * src/ServerHost.{h, cc}
  7353. * src/Metalink2RequestGroup.cc
  7354. * src/RequestGroup.{h, cc}
  7355. * test/RequestGroupTest.cc
  7356. * src/option_processing.cc
  7357. * src/prefs.h
  7358. * src/HttpResponseCommand.cc
  7359. * src/MetalinkResource.{h, cc}
  7360. * src/FtpNegotiationCommand.cc
  7361. * src/MetalinkEntry.{h, cc}
  7362. * src/MetalinkEntryTest.cc
  7363. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7364. Code cleanup and added debug log.
  7365. * src/PeerConnection.cc
  7366. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Compiler error fix: applied the patch by Tiziano Mueller
  7368. * src/RequestGroup.cc
  7369. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7370. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7371. in stopped and completed event.
  7372. * src/AnnounceList.{h, cc}
  7373. * test/AnnounceListTest.cc
  7374. * src/DefaultBtAnnounce.cc
  7375. * test/DefaultBtAnnounceTest.cc
  7376. Sorted URLs.
  7377. * test/Metalink2RequestGroupTest.cc
  7378. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Removed unnecessary string copy. Updated doc and corrected indentation.
  7380. * src/Base64.cc
  7381. Fixed compilation warnings
  7382. * test/DataTest.cc
  7383. * test/HttpRequestTest.cc
  7384. * test/MetaFileUtilTest.cc
  7385. * test/RequestTest.cc
  7386. * Release 0.12.0
  7387. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7388. Updated translations
  7389. * po/{de,fr,ja,nl,ru}.po
  7390. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7391. translations. Many thanks to translators.
  7392. * po/{ca,es,it,pt_BR,sv}.po
  7393. * po/LINGUAS
  7394. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7395. Added a notice about URL
  7396. * src/version_usage.cc
  7397. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7398. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7399. aria2 repeatedly sends stopped request when tracker returns error code.
  7400. * src/AnnounceList.cc
  7401. * test/AnnounceListTest.cc
  7402. * src/AnnounceTier.h
  7403. Added a message when ctrl-c is hit.
  7404. Now second ctrl-c is also handled in signal handler.
  7405. * src/RequestGroupMan.{h, cc}
  7406. * src/RequestGroup.{h, cc}
  7407. * src/MultiUrlRequestInfo.cc
  7408. * src/DownloadEngine.cc
  7409. * src/TrackerWatcherCommand.cc
  7410. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Code cleanup
  7412. * src/Base64.cc (encode)
  7413. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Changed Direct/IO enable/disable procesure in file allocation routine.
  7415. * src/SingleFileAllocationIterator.cc
  7416. (SingleFileAllocationIterator):
  7417. Disable directIO if offset is not multiple of 512.
  7418. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7419. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7420. Enable created SingleFileAllocationIterator's directIO.
  7421. * src/FileAllocationEntry.cc
  7422. (FileAllocationEntry): Enable directIO here.
  7423. (~FileAllocationEntry): Disable directIO here.
  7424. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7425. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7426. * src/Peer.{h, cc}
  7427. * src/DefaultPieceStorage.cc
  7428. * test/DefaultPieceStorageTest.cc
  7429. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7430. Rewritten direct I/O support routine
  7431. * src/SingleFileAllocationIterator.cc
  7432. * src/MultiDiskAdaptor.{h, cc}
  7433. * src/ByteArrayDiskWriter.h
  7434. * src/AbstractSingleDiskAdaptor.h
  7435. * src/AbstractDiskWriter.cc
  7436. * src/DefaultPieceStorage.cc
  7437. * src/DiskWriter.h
  7438. * src/BinaryStream.h
  7439. * src/IteratableChunkChecksumValidator.cc
  7440. * src/IteratableChecksumValidator.cc
  7441. * src/CheckIntegrityEntry.cc
  7442. * src/FileAllocationEntry.cc
  7443. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Fixed typo
  7445. * src/version_usage.cc
  7446. Updated doc
  7447. * doc/aria2c.1.txt
  7448. * doc/aria2c.1
  7449. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Fixed compile error without message digest support.
  7451. * src/FileMetalinkParserState.cc
  7452. * src/MetalinkParserController.{h, cc}
  7453. * test/XML2SAXMetalinkProcessorTest.cc
  7454. * test/MetalinkParserControllerTest.cc
  7455. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7456. Enable direct I/O support in checksum checking.
  7457. * src/IteratableChunkChecksumValidator.{h, cc}
  7458. * test/IteratableChunkChecksumValidatorTest.cc
  7459. * src/CheckIntegrityEntry.cc
  7460. * src/PieceHashCheckIntegrityEntry.cc
  7461. * src/IteratableChecksumValidator.{h, cc}
  7462. * src/BtCheckIntegrityEntry.cc: Added doc.
  7463. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7464. Added --allow-piece-length-change option.
  7465. * src/DefaultBtProgressInfoFile.cc
  7466. * test/DefaultBtProgressInfoFileTest.cc
  7467. * src/OptionHandlerFactory.cc
  7468. * src/option_processing.cc
  7469. * src/prefs.h
  7470. * src/version_usage.cc
  7471. * doc/aria2c.1.txt
  7472. * doc/aria2c.1
  7473. Fixed: duplicated result entry appears when exception is thrown in
  7474. RequestGroup::createInitiateConnectionCommand().
  7475. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7476. Add RequestGroup to _requestGroup after RequetGroup::
  7477. createInitiateConnectionCommand() succeeds.
  7478. Externalized message
  7479. * src/XML2SAXMetalinkProcessor.cc
  7480. * src/message.h
  7481. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7482. Forced download abort when received negative response from http/ftp
  7483. server.
  7484. * src/HttpResponseCommand.cc
  7485. * src/FtpNegotiationCommand.cc
  7486. * src/HttpResponse.cc
  7487. * src/FtpConnection.cc
  7488. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7489. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7490. the predecessor, Xml2MetalinkParser class.
  7491. I tested them against 94KB metalink file with 1234 chunk checksums.
  7492. The new one parsed it in 22msec, while it took 6000msec with old one.
  7493. * src/XML2SAXMetalinkProcessor.{h, cc}
  7494. * test/XML2SAXMetalinkProcessorTest.cc
  7495. * src/MetalinkParserController.{h, cc}
  7496. * test/MetalinkParserControllerTest.cc
  7497. * src/MetalinkParserState.h: Also added 16 subclasses.
  7498. * src/main.cc
  7499. * src/Metalink2RequestGroup.cc
  7500. * src/MetalinkHelper.cc
  7501. * src/MetalinkEntry.cc
  7502. * src/ChunkChecksum.h
  7503. Rewritten Base64 class for better performance.
  7504. * src/Base64.{h, cc}
  7505. * test/Base64Test.cc
  7506. * src/HttpRequest.cc
  7507. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Fixed the bug#1841757: aria2 will connect to server to only get
  7509. file size.
  7510. * src/StreamFileAllocationEntry.cc
  7511. * src/option_processing.cc
  7512. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7513. downloads.
  7514. * src/FtpNegotiationCommand.cc
  7515. Suppressed wrong message when finding PreDownloadHandler
  7516. * src/RequestGroup.cc
  7517. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7518. Updated usage
  7519. * src/version_usage.cc
  7520. Updated man page
  7521. * doc/aria2c.1.txt
  7522. * doc/aria2c.1
  7523. Updated po files
  7524. * po/aria2c.pot
  7525. * po/*.po
  7526. * po/*.gmo
  7527. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Eliminated g++-4.2 warning
  7529. * src/DownloadHandlerConstants.{h, cc}
  7530. * src/Util.cc
  7531. * test/MetaFileUtilTest.cc
  7532. * test/PStringBuildVisitorTest.cc
  7533. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7534. * src/RequestGroup.cc
  7535. * src/BtCheckIntegrityEntry.cc
  7536. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. Fixed a2io.h
  7538. * src/a2io.h
  7539. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Added direct I/O support. The current implementation uses O_DIRECT,
  7541. which is not posix standard and is tested on linux 2.6.21.
  7542. Currently only file allocation uses direct I/O.
  7543. * src/SingleFileAllocationIterator.{h, cc}
  7544. * test/SingleFileAllocationIteratorTest.cc
  7545. * src/MultiFileAllocationIterator.{h, cc}
  7546. * test/MultiFileAllocationIteratorTest.cc
  7547. * src/BinaryStream.h
  7548. * src/DiskWriter.h
  7549. * src/AbstractDiskWriter.{h, cc}
  7550. * src/ByteArrayDiskWriter.h
  7551. * src/DiskAdaptor.h
  7552. * src/AbstractSingleDiskAdaptor.{h, cc}
  7553. * src/MultiDiskAdaptor.{h, cc}
  7554. * src/FileAllocationEntry.cc
  7555. * src/Util.{h, cc}
  7556. * src/OptionHandlerFactory.cc
  7557. * src/prefs.h
  7558. * src/version_usage.cc
  7559. * src/option_processing.cc
  7560. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7561. handleException.
  7562. * src/MultiFileAllocationIterator.cc
  7563. Added EINTR handling
  7564. * src/SocketCore.cc
  7565. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. Updated usage
  7567. * src/version_usage.cc
  7568. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. Applied Ross's patch for MinGW port.
  7570. * src/DownloadEngine.h
  7571. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Set Content-Type to SingleFileDownloadContext when http response is
  7573. received.
  7574. * src/HttpResponseCommand.cc
  7575. * src/HttpResponse.{h, cc}
  7576. * test/HttpResponseTest.cc
  7577. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. Rewritten to add content-type support.
  7579. * src/DownloadHandler.{h, cc}
  7580. * src/BtPostDownloadHandler.{h, cc}
  7581. * test/BtPostDownloadHandlerTest.cc
  7582. * src/MetalinkPostDownloadHandler.{h, cc}
  7583. * test/MetalinkPostDownloadHandlerTest.cc
  7584. * src/PostDownloadHandler.{h, cc}
  7585. * src/DownloadHandlerConstants.{h, cc}
  7586. * src/RequestGroup.cc
  7587. * src/HttpResponseCommand.cc
  7588. * src/FtpNegotiationCommand.cc
  7589. * src/SingleFileDownloadContext.{h, cc}
  7590. * src/RequestGroup.h
  7591. * src/RequestGroupCriteria.h
  7592. * src/ContentTypeRequestGroupCriteria.h
  7593. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7594. If it is give, metalink/torrent file is not written to the disk, but
  7595. just is kept in memory. Parsing is occurred on memory.
  7596. * src/MetalinkHelper.{h, cc}
  7597. * src/MetalinkProcessor.h
  7598. * src/Xml2MetalinkProcessor.{h, cc}
  7599. * test/Xml2MetalinkProcessorTest.cc
  7600. * src/DownloadHandlerFactory.{h, cc}
  7601. * test/DownloadHandlerFactoryTest.cc
  7602. * src/PreDownloadHandler.{h, cc}
  7603. * src/OptionHandlerFactory.cc
  7604. * src/DefaultBtContext.{h, cc}
  7605. * test/DefaultBtContextTest.cc
  7606. * src/version_usage.cc
  7607. * src/Metalink2RequestGroup.{h, cc}
  7608. * src/RequestGroup.{h, cc}
  7609. * src/a2functional.h
  7610. * test/a2functionalTest.cc
  7611. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7612. * src/OptionHandlerImpl.h
  7613. * src/prefs.h
  7614. * src/Util.{h, cc}
  7615. * test/UtilTest.cc
  7616. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7617. memory usage.
  7618. * src/RequestGroupMan.{h, cc}
  7619. * src/DownloadEngine.cc
  7620. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7621. WeakHandle to SharedHandle because WeakHandle could be null.
  7622. * src/RequestGroup.{h, cc}
  7623. * src/DownloadEngineFactory.cc
  7624. * src/DownloadResult.h
  7625. Set totalLength after download finished
  7626. * src/UnknownLengthPieceStorage.{h, cc}
  7627. Keep torrent file specified in metalink in memory.
  7628. * src/Metalink2RequestGroup.cc
  7629. * src/BtDependency.cc
  7630. * src/TrueRequestGroupCriteria.h
  7631. Fixed the bug: seekg is used where seekp should be used.
  7632. * src/ByteArrayDiskWriter.cc
  7633. * test/ByteArraydiskWriterTest.cc
  7634. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7635. Fixed syntax error
  7636. * test/SequenceTest.cc
  7637. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7638. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7639. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7640. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7641. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7642. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Added the check to see whether ares_host_callback accepts timeouts
  7644. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7645. * src/NameResolver.{h, cc}
  7646. * m4/libcares.m4
  7647. * configure.ac: Set C++ for language choice.
  7648. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7649. Fixed: compilation fails without c-ares/ares
  7650. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7651. Generate http/ftp commands only when download is incomplete.
  7652. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7653. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7654. Corrected typo. Examples are removed since they are available in man
  7655. page.
  7656. * src/version_usage.cc
  7657. Updated man page.
  7658. * doc/aria2c.1
  7659. * doc/aria2c.1.txt
  7660. * doc/makeman: Commented out sed command.
  7661. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7662. Throw DlAbortEx when a remote file is not found.
  7663. * src/HttpResponse.cc
  7664. * src/FtpNegotiationCommand.cc
  7665. * src/message.h
  7666. Overwrite an existing file if --allow-overwrite=true is given.
  7667. * src/RequestGroup.cc
  7668. Removed unused functions
  7669. * src/AbstractCommand.h
  7670. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Removed 'extern' from 'extern typedef ...' in src/*.h
  7672. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7673. Updated usage
  7674. * src/version_usage.cc
  7675. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Trim announce URL
  7677. * src/DefaultBtContext.cc
  7678. * test/ShaVisitorTest.cc
  7679. Trim argument s. Give trimed s to exception constructor.
  7680. * src/Util.cc (parseInt)(parseLLInt)
  7681. * test/UtilTest.cc
  7682. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7683. Set precision back to 1.
  7684. * src/ConsoleStatCalc.cc (calculateStat)
  7685. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Replaced strtol with Util::parseInt
  7687. * src/ChunkedEncoding.cc
  7688. * src/HttpConnection.cc
  7689. * src/CookieBoxFactory.cc
  7690. * src/ParameterizedStringParser.cc
  7691. * src/Util.cc
  7692. * test/UtilTest.cc
  7693. * test/OptionHandlerTest.cc
  7694. * src/Request.cc
  7695. Throw exception when empty string is given. The message for exception
  7696. changed.
  7697. * src/Util.cc (parseInt)(parseLLInt)
  7698. * src/message.h
  7699. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7701. set to 1.
  7702. * src/ConsoleStatCalc.cc (calculateStat)
  7703. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. Preallocate non-requested file which is adjacent forward to requested
  7705. file('requested' files means the files given in --select-file option)
  7706. if they share a same piece.
  7707. This fixes long pause in the file system which doesn't support sparse
  7708. files like FAT32 while downloading.
  7709. * src/MultiFileAllocationIterator.{h, cc}
  7710. * test/MultiFileAllocationIteratorTest.cc
  7711. * src/FileEntry.{h, cc}
  7712. Removed unused _option.
  7713. * src/MultiDiskAdaptor.h
  7714. * test/MultiDiskAdaptorTest.cc
  7715. * src/DefaultPieceStorage.cc
  7716. Set the default value of --seed-ratio to 1.0.
  7717. If 0.0 is given, then seeding continues regardless of share ratio.
  7718. * src/version_usage.cc
  7719. * src/option_processing.cc
  7720. * src/BtSetup.cc
  7721. * doc/aria2c.1.txt
  7722. * doc/aria2c.1
  7723. Fixed: Selective download is not working in BitTorrent
  7724. * src/RequestGroup.cc
  7725. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7726. * src/PieceStorage.h
  7727. * test/MockPieceStorage.h
  7728. * src/UnknownLengthPieceStorage.h
  7729. * src/DefaultPieceStorage.{h, cc}
  7730. * src/Metalink2RequestGroup.cc
  7731. * src/RequestGroup.cc
  7732. * src/Sequence.h
  7733. * test/SequenceTest.cc
  7734. * src/IntSequence.h
  7735. * src/message.h
  7736. * src/Util.{h, cc}
  7737. * test/UtilTest.cc
  7738. Added new function 'parse' to catch exception thrown by subclass's
  7739. parseArg
  7740. * src/OptionHandler.h
  7741. * src/OptionParser.cc
  7742. * src/NameMatchOptionHandler.h
  7743. * src/OptionHandlerImpl.h
  7744. * test/OptionHandlerTest.cc
  7745. Added IntegerRangeOptionHandler. Used for --listen-port and
  7746. --select-file. Now --listen-port accepts range of port.
  7747. * src/OptionHandlerFactory.cc
  7748. * src/version_usage.cc
  7749. * src/OptionHandlerImpl.h
  7750. * src/option_processing.cc
  7751. * src/BtSetup.cc
  7752. * src/PeerListenCommand.{h, cc}
  7753. * doc/aria2c.1.txt
  7754. * doc/aria2c.1
  7755. Implemented operator< for Exception class to provide easy way to print
  7756. exception stack trace.
  7757. * src/Exception.{h, cc}
  7758. * src/main.cc
  7759. * src/option_processing.cc
  7760. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7761. * src/version_usage.cc
  7762. (showVersion): Reworked.
  7763. (showUsage): Added examples.
  7764. Removed Hint for total length and file name.
  7765. * src/Metalink2RequestGroup.cc
  7766. * src/RequestGroup.{h, cc}
  7767. * src/HttpResponseCommand.cc
  7768. * src/FtpNegotiationCommand.cc
  7769. Now --follow-torrent and --follow-metalink option work properly.
  7770. * src/RequestGroup.cc
  7771. Updated man page
  7772. * doc/aria2c.1.txt
  7773. * doc/aria2c.1
  7774. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Removed.
  7776. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7777. Use Segment::operator==()
  7778. * src/HttpConnection.cc
  7779. * src/Segment.h
  7780. Updated usage
  7781. * src/version_usage.cc
  7782. Added EINTR treatment.
  7783. * src/SocketCore.cc
  7784. * src/AbstractDiskWriter.cc
  7785. Rewritten.
  7786. * src/Util.cc (rangedFileCopy)
  7787. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7788. Fixed typo.
  7789. * src/version_usage.cc
  7790. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Implemented. Now -c option works fine.
  7792. * src/DefaultPieceStorage.cc (markPiecesDone)
  7793. * test/DefaultPieceStorageTest.cc
  7794. Removed.
  7795. * src/SegmentMan.{h, cc}
  7796. (markAllPiecesDone)
  7797. (markPieceDone)
  7798. Synchronized po files with
  7799. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7800. * src/fr.po
  7801. * src/ru.po
  7802. * src/de.po
  7803. * src/ja.po
  7804. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7805. Added ifdef and some modifications to compile without BitTorrent,
  7806. Metalink, MessageDigest
  7807. support.
  7808. * src/PieceHashCheckIntegrityEntry.cc
  7809. * src/MetalinkEntry.h
  7810. * src/version_usage.cc
  7811. * src/main.cc
  7812. * src/DownloadEngine.{h, cc}
  7813. * src/Metalink2RequestGroup.cc
  7814. * src/Peer.cc
  7815. * src/RequestGroup.cc
  7816. * src/MetalinkHelper.cc
  7817. * test/DefaultPieceStorageTest.cc
  7818. * test/MetalinkPostDownloadHandlerTest.cc
  7819. * test/Metalink2RequestGroupTest.cc
  7820. Hide TOTAL SPD when all downloads complete.
  7821. * src/ConsoleStatCalc.cc
  7822. Log target system information.
  7823. * src/main.cc
  7824. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7825. Now --metalink-location accepts a comma-deliminated list of locations.
  7826. * src/MetalinkEntry.{h, cc}
  7827. * test/MetalinkEntryTest.cc
  7828. * src/version_usage.cc
  7829. * src/Metalink2RequestGroup.cc
  7830. * src/Xml2MetalinkProcessor.cc
  7831. * test/Xml2MetalinkProcessorTest.cc
  7832. * doc/aria2c.1.txt
  7833. * doc/aria2c.1
  7834. * src/Util.cc (toUpper)(toLower): Rewritten.
  7835. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7836. Added the ability to detect duplicate download entry which is about to
  7837. download the same file other RequestGroup is downloading.
  7838. * src/RequestGroup.cc
  7839. * src/HttpResponseCommand.cc
  7840. * src/FtpNegotiationCommand.cc
  7841. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. Recalculates download progress when loading a control file,
  7843. if the piece length of DownloadContext is different from the one saved
  7844. in the control file. Currently in-flight pieces are ignored.
  7845. * src/DefaultBtProgressInfoFile.cc
  7846. * test/DefaultBtProgressInfoFileTest.cc
  7847. * src/Util.{h, cc}
  7848. * test/UtilTest.cc
  7849. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7850. Do not rotate tiers in announce-list.
  7851. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7852. AnnounceList::allTiersFailed() used instead to detect whether all
  7853. tiers are tried and failed.
  7854. * test/DefaultBtAnnounceTest.cc
  7855. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7856. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7857. * test/AnnounceListTest.cc
  7858. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7859. clause. Catch RecoverableException instead of DlRetryEx instead.
  7860. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7861. Implemented checksum validation feature(1 checksum for each file)
  7862. The validation takes place after the download.
  7863. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7864. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7865. * src/CheckIntegrityCommand.cc: Changed log message.
  7866. * src/Metalink2RequestGroup.cc: Set checksum to
  7867. SingleFileDownloadContext.
  7868. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7869. PieceHashCheckIntegrity class.
  7870. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7871. PieceHashCheckIntegrity class.
  7872. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7873. * src/IteratableValidator.h: New class.
  7874. * src/message.h
  7875. * src/CheckIntegrityEntry.{h, cc}
  7876. * src/IteratableChunkChecksumValidator.{h, cc}
  7877. * src/SingleFileDownloadContext.h
  7878. * src/DownloadCommand.cc
  7879. --allow-overwrite=true is no longer needed to check file integrity
  7880. before download in BitTorrent download.
  7881. * src/RequestGroup.cc (getInitialCommand)
  7882. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7883. throws exception.
  7884. * src/RequestGroupMan.cc (getInitialCommands)
  7885. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7886. urlencode the given url inside Request::parseUrl(...)
  7887. * src/Request.{h, cc}
  7888. * src/Util.{h, cc}
  7889. * test/RequestTest.cc
  7890. Removed #!metalink3! notation support because it is deleted from
  7891. the metalink specification.
  7892. * src/Request.{h, cc}
  7893. * test/RequestTest.cc
  7894. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7895. Don't connect server before checking file integrity at startup, if
  7896. filesize and output file path are known.
  7897. * src/AbstractCommand.cc
  7898. * src/StreamFileAllocationEntry.cc
  7899. * src/Metalink2RequestGroup.cc
  7900. * src/RequestGroup.{h, cc}
  7901. * src/HttpResponseCommand.cc
  7902. * src/FtpNegotiationCommand.cc
  7903. Added DownloadFailureException. If it is thrown, RequestGroup should
  7904. halt.
  7905. * src/AbstractCommand.cc
  7906. * src/DownloadFailureException.h
  7907. * src/RequestGroup.cc
  7908. Catch RecoverableException, instead of DlAbortEx.
  7909. * src/RequestGroupMan.cc
  7910. * src/FillRequestGroupCommand.cc
  7911. * src/MetaFileUtil.cc
  7912. * src/IteratableChunkChecksumValidator.cc
  7913. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7914. getGID())
  7915. * src/CheckIntegrityCommand.cc
  7916. * src/message.h
  7917. Print gid instead of idx.
  7918. * src/RequestGroupMan.cc
  7919. Removed exception throwers declaration.
  7920. * src/DirectDiskAdaptor.{h, cc}
  7921. * src/SocketCore.{h, cc}
  7922. * src/MultiDiskAdaptor.{h, cc}
  7923. * src/HttpConnection.{h, cc}
  7924. * src/HttpResponse.{h, cc}
  7925. * src/DiskAdaptor.{h, cc}
  7926. * src/CopyDiskAdaptor.{h, cc}
  7927. * src/MultiDiskAdaptor.{h, cc}
  7928. * src/HttpHeaderProcessor.{h, cc}
  7929. * src/AbstractSingleDiskAdaptor.{h, cc}
  7930. * src/Util.{h, cc}
  7931. * test/UtilTest.cc
  7932. * src/DefaultDiskWriter.{h, cc}
  7933. * src/FtpConnection.{h, cc}
  7934. * src/AbstractDiskWriter.{h, cc}
  7935. Removed duplicate code.
  7936. * src/StreamCheckIntegrityEntry.cc
  7937. Removed unnecessary include.
  7938. * src/DiskWriter.h
  7939. Included Exception.h
  7940. * src/option_processing.cc
  7941. Included 2 files and added doc
  7942. * src/TrackerWatcherCommand.cc
  7943. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7944. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7945. Changed CheckIntegrityEntry interface so that it can define
  7946. the action when all the chunk checksums are valid.
  7947. * src/CheckIntegrityEntry.h
  7948. * src/StreamCheckIntegrityEntry.{h, cc}
  7949. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7950. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7951. to exit rather than doing seeding. So, it would be good to toggle this
  7952. behavior.
  7953. * src/CheckIntegrityCommand.cc
  7954. * src/AbstractCommand.cc
  7955. * src/RequestGroup.cc
  7956. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7957. Reflect the download length of in-flight pieces.
  7958. It makes the download length readout more precise.
  7959. * src/DefaultPieceStorage.{h, cc}
  7960. * test/DefaultPieceStorageTest.cc
  7961. * src/a2functional.h
  7962. * test/a2functionalTest.cc
  7963. Lower CPU load when --max-download-limit is used.
  7964. There is up and down in speed indicator when enabling
  7965. http-pipelining but a download goes well. I think the problem is that
  7966. because http-pipelining is enabled, DownloadCommand is created for
  7967. each segment and in its constructor, PeerStat::downloadStart() is
  7968. called. In PeerStat::downloadStart(), speed calculation object is
  7969. reseted, which makes download speed zero.
  7970. * src/DownloadCommand.cc
  7971. Rewritten using accumulate.
  7972. * src/RequestGroupMan.cc (calculateStat)
  7973. Code clearnup.
  7974. * src/FtpNegotiationCommand.cc
  7975. * src/HttpResponseCommand.cc
  7976. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7977. Fixed: Can not resume: aria2 reports download already finished.
  7978. * src/AbstractCommand.{h, cc}
  7979. * src/HttpResponseCommand.cc
  7980. * src/FtpNegotiateCommand.cc
  7981. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7982. Now a file is stored in the directory specified in .metalnk file
  7983. (file[@name]).
  7984. * src/Metalink2RequestGroup.cc
  7985. Create the directory structure when opening the file if it doesn't
  7986. exist.
  7987. * src/AbstractDiskWriter.cc
  7988. * src/Util.{h, cc}
  7989. * src/File.h
  7990. * test/UtilTest.cc
  7991. Removed file name comparison
  7992. * src/Metalink2RequestGroup.cc
  7993. * src/HttpResponseCommand.cc
  7994. Rewritten using Util::mkdirs()
  7995. * src/FileEntry.cc (setupDir)
  7996. * test/FileEntryTest.cc
  7997. Updated doc
  7998. * src/SingleFileDownloadContext.h
  7999. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. Now SleepCommand dispatches nextCommand when halt is requested.
  8001. It avoids a possible long wait after hitting CTRL-C.
  8002. * src/SleepCommand.{h, cc}
  8003. * src/RequestGroupAware.{h, cc}
  8004. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8005. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  8006. to open listen port, then remove the port number from the tracker
  8007. request.
  8008. * src/DefaultBtAnnounce.cc
  8009. * test/DefaultBtAnnounceTest.cc
  8010. * test/MockPieceStorage.h
  8011. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  8012. them more testable.
  8013. * src/DefaultBtAnnounce.{h, cc}
  8014. * src/DefaultBtContext.{h, cc}
  8015. * src/Util.{h, cc}
  8016. * test/DefaultBtAnnounceTest.cc
  8017. * test/DefaultBtContextTest.cc
  8018. * test/UtilTest.cc
  8019. Added 'B' to upload bytes readout.
  8020. * src/ConsoleStatCalc.cc
  8021. Now the listen port for BitTorrent download is opened when it is
  8022. needed.
  8023. * src/DownloadEngineFactory.cc
  8024. * src/BtSetup.{h, cc}
  8025. * src/PeerListenCommand.{h, cc}
  8026. Now an exception thrown while parsing tracker response is now logged.
  8027. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  8028. called, which means no retry is made in this case, assuming a tracker
  8029. has a problem.
  8030. * src/TrackerWatcherCommand.cc
  8031. Fixed: downloading a file whose length is unkown fails.
  8032. * src/DownloadCommand.cc
  8033. Simplified prepareForNextSegment()
  8034. * src/DownloadCommand.cc
  8035. Updated
  8036. * po/POTFILES.in
  8037. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Re-implemented a file listing for Metalink, which was dropped while
  8039. http/ftp/torrent integration was being implemented.
  8040. * src/MetalinkHelper.{h, cc}: New class.
  8041. * test/MetalinkHelperTest.cc
  8042. * src/main.cc
  8043. * src/Metalink2RequestGroup.cc
  8044. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8045. Added the ability to display the detailed torrent file information.
  8046. Now -S option gives not only a file listing, but also total download
  8047. length, info hash, announce URI, piece length, the number of pieces,
  8048. and mode(single or multi-torrent).
  8049. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8050. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8051. KiB)
  8052. * test/UtilTest.cc
  8053. * src/main.cc
  8054. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Added ftp://USER:PASSWD@Servername automatic parsing.
  8056. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8057. _password. Recognize username and password in URI.
  8058. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8059. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8060. * src/RequestFactory.{h, cc}: Removed.
  8061. * src/AuthConfigFactory.{h, cc}: New class.
  8062. * src/FtpConnection.cc: Use AuthConfigFactory.
  8063. * src/HttpRequest.cc: Use AuthConfigFactory.
  8064. * test/HttpRequestTest.cc: Updated.
  8065. * test/RequestTest.cc: Updated.
  8066. * test/AuthConfigFactoryTest.cc: New class.
  8067. * test/RequestFactoryTest.cc: Removed.
  8068. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8069. Use RequestGroup::allDownloadFinished() to decide whether the control
  8070. file should be removed or saved.
  8071. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8072. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8073. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8074. Use File::renameTo()
  8075. * src/DefaultBtProgressInfoFile.cc
  8076. Added --no-file-allocation-limit command-line option.
  8077. * src/version_usage.cc
  8078. * src/option_processing.cc
  8079. * src/OptionHandlerFactory.cc
  8080. * src/RequestGroup.{h, cc}
  8081. * src/BtCheckIntegrityEntry.cc
  8082. * src/StreamCheckIntegrityEntry.cc
  8083. * src/prefs.h
  8084. * doc/aria2c.1.txt
  8085. * doc/aria2c.1
  8086. Now prealloc is the default value for --file-allocation option.
  8087. * src/version_usage.cc
  8088. * src/option_processing.cc
  8089. * doc/aria2c.1.txt
  8090. * doc/aria2c.1
  8091. Don't URL-encode user-agent.
  8092. * src/HttpRequest.cc
  8093. Updated translations
  8094. * po/LINGUAS: Added nl for Dutch translation.
  8095. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8096. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8097. * po/POTFILES.in: Updated.
  8098. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8099. Added the ability to recognize url-list in a torrent file.
  8100. The retrieved URLs are attached to the corresponding FileEntry.
  8101. * src/DefaultBtContext.{h, cc}
  8102. * src/FileEntry.{h, cc}
  8103. * test/DefaultBtContextTest.cc
  8104. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8106. after the download finishes.
  8107. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8109. the data smaller than block length.
  8110. A block length can be specified by constructor's argument.
  8111. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8112. Get a missing piece in the range of given FileEntry. This function is
  8113. not used in the program yet.
  8114. * src/Util.h: Added some macros.
  8115. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Added HTTP/1.1 keep alive and pipelining support.
  8117. See --enable-http-keep-alive and --enable-http-pipelining option.
  8118. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8119. Segment.
  8120. * src/HttpDownloadCommand.{h, cc}
  8121. * src/OptionHandlerFactory.cc
  8122. * src/HttpConnection.{h, cc}
  8123. * src/version_usage.cc
  8124. * src/HttpInitiateConnectionCommand.cc
  8125. * src/FtpInitiateConnectionCommand.cc
  8126. * src/Segment.h
  8127. * src/HttpRequestCommand.{h, cc}
  8128. * src/option_processing.cc
  8129. * src/prefs.h
  8130. * src/HttpResponseCommand.cc
  8131. * src/SegmentMan.{h, cc}
  8132. * src/FtpNegotiateCommand.cc
  8133. * src/HttpProxyResponseCommand.cc
  8134. * src/Request.cc
  8135. * src/HttpRequest.cc
  8136. * src/DownloadCommand.cc
  8137. * test/HttpRequestTest.cc
  8138. * test/RequestTest.cc
  8139. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8140. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8141. finished.
  8142. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8143. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8144. catching it inside the method.
  8145. When no file entry is found in a metalink without querying user
  8146. preferences, throw the exception with the error message that suggests
  8147. metalink file is probably broken.
  8148. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8149. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8151. processed.
  8152. * src/RequestGroupMan.cc (removeStoppedGroup)
  8153. Added debug message.
  8154. * src/BtPostDownloadHandler.cc
  8155. * src/MetalinkPostDownloadHandler.cc
  8156. * src/PostDownloadHandler.{h, cc}
  8157. * src/RequestGroup.cc
  8158. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8160. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8162. stops and there are any unfinished or in-progress downloads.
  8163. Added the legend of "stat".
  8164. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. Throw exception when chunck checksum verification fails.
  8166. * src/DownloadCommand.cc (validatePieceHash): New function.
  8167. * src/PiecedSegment.{h, cc} (clear): New function.
  8168. * src/GrowSegment.{h, cc} (clear): New function.
  8169. * src/Segment.h (clear): New function.
  8170. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8171. * test/SegmentTest.cc
  8172. * test/GrowSegmentTest.cc
  8173. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8174. Do not send referer when redirected.
  8175. * src/Request.cc (redirectUrl)
  8176. * test/RequestTest.cc
  8177. * test/HttpRequestTest.cc
  8178. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8179. Implemented BitTorrent/http/ftp integrated download.
  8180. I've rewritten lots of files and now some headers have forward
  8181. class declarations to reduce compile time.
  8182. The implementation is extremely alpha stage, I recommend to use this
  8183. for testing purpose only.
  8184. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8185. Fixed the compilation error on 64bit platform.
  8186. * test/HttpHeaderProcessorTest.cc
  8187. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8188. Merged Ross's patch that fixes compilation problem in MinGW
  8189. * test/DefaultBtProgressInfoFileTest.cc
  8190. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Updated fr.po by sebone
  8192. * po/fr.po
  8193. Updated man page.
  8194. * doc/aria2c.1.txt
  8195. * Release 0.11.3
  8196. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8197. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8198. failure in Metalink.
  8199. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8200. Automatically save *.aria2 control file of http/ftp download in every
  8201. 60 seconds.
  8202. * src/AutoSaveCommand.{h, cc}: New class.
  8203. * src/TimeBasedCommand.{h, cc}: New class.
  8204. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8205. Disable parameterized URI support by default. Added -P option to
  8206. enable the feature.
  8207. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8208. * src/OptionHandlerFactory.cc
  8209. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8210. Updated Japanese translation.
  8211. * po/ja.po
  8212. Updated man page.
  8213. * doc/aria2c.1.txt
  8214. * Release 0.11.3-rc
  8215. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8217. it is successful, then renamed to *.aria2.
  8218. This prevents *.aria2 file from being truncated or corrupted when
  8219. file system becomes out of space.
  8220. * src/DefaultBtProgressInfoFile.cc (save)
  8221. * src/SegmentMan.cc (save)
  8222. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8223. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. Reduced the fragmentation of bitfield in http/ftp download.
  8225. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8226. * test/BitfieldManTest.cc
  8227. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8228. Added the ability to disable segmented download in .metalink.
  8229. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8230. 'url' tag.
  8231. * src/MetalinkEntry.{h, cc}
  8232. * src/RequestResource.{h, cc}
  8233. * src/MetalinkRequestInfo.cc
  8234. * src/Xml2MetalinkProcessor.cc
  8235. * test/Xml2MetalinkProcessorTest.cc
  8236. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8237. Added parameterized URI support.
  8238. * src/main.cc: -Z option added.
  8239. * src/OptionHandlerFactory.cc
  8240. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8241. * src/PStringDatum.h: New class.
  8242. * src/PStringSegment.{h,cc}: New class.
  8243. * src/PStringNumLoop.h: New class.
  8244. * src/PStringSelect.h: New class.
  8245. * src/NumberDecorator.h: New class.
  8246. * src/FixedWidthNumberDecorator.h: New class.
  8247. * src/AlphaNumberDecorator.h: New class.
  8248. * src/PStringVisitor.h: New class.
  8249. * src/PStringBuildVisitor.{h,cc}: New class.
  8250. * src/ParameterizedStringParser.{h,cc}: New class.
  8251. * src/Util.{h,cc}
  8252. (isNumber): New function.
  8253. (isLowercase): New function.
  8254. (isUppercase): New function.
  8255. (alphaToNum): New function.
  8256. * test/ParameterizedStringParserTest.cc: New class.
  8257. * test/AlphaNumberDecoratorTest.cc: New class.
  8258. * test/PStringBuildVisitorTest.cc: New class.
  8259. * test/UtilTest.cc
  8260. (testIsNumber): New function.
  8261. (testIsLowercase): New function.
  8262. (testIsUppercase): New function.
  8263. (testAlphaToNum): New function.
  8264. Added '\n' after the error message
  8265. * src/RequestInfo.h (printDownloadAbortMessage)
  8266. Added auto file renaming feature in http(s)/ftp download.
  8267. * src/main.cc: Added --auto-file-renaming command-line option.
  8268. * src/OptionHandlerFactory.cc
  8269. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8270. * src/RequestGroup.{h, cc}
  8271. (shouldCancelDownloadForSafety): Rewritten
  8272. (tryAutoFileRenaming): New function.
  8273. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8274. * src/HttpResponseCommand.cc
  8275. (executeInternal): Removed the call to RequestGroupMan::
  8276. isSameFileBeingDownloaded()
  8277. * src/FtpNegotiateCommand.cc
  8278. (recvSize): Removed the call to RequestGroupMan::
  8279. isSameFileBeingDownloaded()
  8280. * test/RequestGroupTest.cc: New class.
  8281. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8283. IO.
  8284. * src/DefaultBtProgressInfoFile.cc
  8285. * src/MetaFileUtil.cc
  8286. * src/SimpleLogger.cc
  8287. * src/SegmentMan.cc
  8288. * src/Util.cc
  8289. * src/Platform.cc
  8290. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8291. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8292. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8293. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8294. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8295. Fixed the bug that prevents file allocation is not done when
  8296. dowloading multi-torrent file.
  8297. * src/AbstractDiskWriter.cc (openFile)
  8298. Increase the maximum number of -j option from 15 to 45.
  8299. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8300. Added fr.po, thanks to Charles Landemaine.
  8301. * po/fr.po
  8302. * po/LINGUAS
  8303. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8304. gcc 3.4.4 support:
  8305. * src/DefaultBtContext.cc: int32_t -> int
  8306. * src/main.cc: int -> int32_t, int32_t -> int
  8307. * src/messageDigest.h: uint32_t -> unsigned int
  8308. * src/NameResolver.h: int32_t -> int
  8309. * src/PeerConnection.cc: int -> int32_t
  8310. * src/SpeedCalc.cc: int32_t -> int
  8311. * src/TrackerUpdateCommand.h: int -> int32_t
  8312. * src/Util.cc: int32_t -> int
  8313. * src/Util.h: int32_t -> int
  8314. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8315. * test/AnnounceListTest.cc: int -> int32_t
  8316. * test/ChunkedEncodingTest.cc: int -> int32_t
  8317. * test/DataTest.cc: int -> int32_t
  8318. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8319. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8320. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8321. * test/FeatureConfigTest.cc: int -> int32_t
  8322. * test/MetalinkEntryTest.cc: int -> int32_t
  8323. * test/MockBtRequestFactory.h: int -> int32_t
  8324. * test/MockPieceStorage.h: int -> int32_t
  8325. * test/OptionTest.cc: int -> int32_t
  8326. * test/RequestTest.cc: int -> int32_t
  8327. * test/SegmentManTest.cc: int -> int32_t
  8328. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8329. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8330. Move sleep functions to Util class:
  8331. * src/Util.cc
  8332. (sleep): New function.
  8333. (usleep): New function.
  8334. * src/DownloadCommand.cc: sleep -> Util::sleep
  8335. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8336. MinGW build enhancements. The following files are added:
  8337. * src/timegm.{c,h}
  8338. Changes to support the above new files:
  8339. * configure.ac
  8340. * src/Makefile.am
  8341. * src/a2time.h
  8342. * src/Util.cc:
  8343. * src/strptime.c: Added support for %Z option.
  8344. Fixed MinGW non-blocking bug.
  8345. * src/SocketCore.cc
  8346. * src/HttpRequestCommand.cc
  8347. Miscellenous build fixes/enhancements.
  8348. * configure.ac: Added summary report.
  8349. * src/Platform.h: Tweaked #include's.
  8350. * src/a2netcompat.h: Tweaked #include's.
  8351. * src/strptime.h: Tweaked #include's.
  8352. * src/gai_strerror.c: Tweaked #include's.
  8353. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8354. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8355. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8356. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Increased the initial connection size in BitTorrent download to 40.
  8358. * src/BtRuntime.h
  8359. Added the usage message of --peer-id-prefix option.
  8360. * src/main.cc
  8361. * Release 0.11.2
  8362. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8363. MessageDigestHelper is introduced in order to simplify the use
  8364. of message digest. Removed repeated code.
  8365. The message digest algorithm is now specified by string, like "sha1",
  8366. "md5".
  8367. * src/messageDigest.{h, cc}
  8368. * src/MessageDigestHelper.{h, cc}: New class.
  8369. * src/DefaultPieceStorage.cc
  8370. * src/DefaultBtContext.{h, cc}
  8371. (computeFastSet): New function.
  8372. (setInfoHash): Added for unit testing.
  8373. (setNumPieces): Added for unit testing.
  8374. * src/DefaultBtInteractive.cc
  8375. * src/BtPieceMessage.cc
  8376. * src/Peer.cc
  8377. * src/Checksum.h
  8378. * src/message.h
  8379. * src/IteratableChecksumValidator.h
  8380. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8381. inside it.
  8382. * src/SegmentMan.{h, cc}
  8383. (checkIntegrity): Removed.
  8384. * src/IteratableChunkChecksumValidator.{h, cc}
  8385. * src/Util.h
  8386. (sha1Sum): Removed.
  8387. (simpleMessageDigest): Removed.
  8388. (fileChecksum): Removed.
  8389. (computeFastSet): Removed.
  8390. * src/ShaVisitor.cc
  8391. * src/ChunkChecksum.h
  8392. * src/DownloadCommand.cc
  8393. Removed messageDigest virtual functions.
  8394. * src/MultiDiskAdaptor.{h, cc}
  8395. * src/DiskAdaptor.h
  8396. * src/ByteArrayDiskWriter.h
  8397. * src/DiskWriter.h
  8398. * src/DiskAdaptorWriter.h
  8399. * src/AbstractSingleDiskAdaptor.{h, cc}
  8400. * src/AbstractDiskWriter.{h, cc}
  8401. Fixed comilation error when message digest is disabled.
  8402. * src/MetalinkEntry.{h, cc}
  8403. * src/MetalinkRequestInfo.cc
  8404. Removed srandom and random.
  8405. * src/SimpleRandomizer.h
  8406. Added size() virtual function to DiskAdaptor
  8407. * src/MultiDiskAdaptor.h
  8408. Fixed the bug that causes that files are not opened correctly in
  8409. multi-file torrent.
  8410. * src/TorrentRequestInfo.cc
  8411. * src/MultiDiskAdaptor.cc
  8412. Added SHA256 support
  8413. * src/messageDigest.cc
  8414. * src/Xml2MetalinkProcessor.cc
  8415. Show supported message digest algorithms
  8416. * src/main.cc
  8417. Updated contact info.
  8418. * src/main.cc
  8419. Applied Ross's patch
  8420. * src/a2netcompat.h
  8421. * src/main.cc
  8422. Fixed the bug that prevents a remote metalink from not being processed
  8423. even if '-o foo.metalink' is specified.
  8424. * src/MetalinkRequestInfo.cc
  8425. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8426. Merged Dan's patch:
  8427. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8428. Use va_copy to avoid core dump on amd64:
  8429. * src/SimpleLogger.cc
  8430. Updated contact info.
  8431. * src/main.cc
  8432. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8433. digest is not available.
  8434. * src/MetalinkEntry.h
  8435. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8436. Make a2netcompat.h include a2io.h to fix compilation error:
  8437. * src/a2netcompat.h
  8438. * src/SocketCore.cc: Removed include of a2io.h
  8439. * src/Util.cc: Removed include of a2io.h
  8440. Gather time related functions to a2time.h:
  8441. * src/a2time.h: New file.
  8442. * src/DefaultPeerStorage.cc
  8443. * src/SimpleLogger.cc
  8444. * src/Util.{h, cc}
  8445. * src/SimpleRandomizer.h
  8446. * src/TimeA2.{h,cc}
  8447. * src/DownloadCommand.cc
  8448. * src/main.cc
  8449. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8450. a2netcompat.h:
  8451. * src/NameResolver.cc
  8452. Fixed compilation error without openssl:
  8453. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8454. Added default block to suppress compiler warnings:
  8455. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8456. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8457. MinGW build enhancements. The following files are added:
  8458. * src/gai_strerror.{c,h}
  8459. * src/gettimeofday.{c,h}
  8460. Changes to support the above new files:
  8461. * configure.ac
  8462. * src/Makefile.am
  8463. * src/a2netcompat.h
  8464. * src/TimeA2.cc
  8465. * src/DefaultPeerStorage.cc
  8466. * src/NameResolver.cc: removed mingw_strerror() function.
  8467. * src/SocketCore.cc: removed mingw_strerror() function.
  8468. Miscellaneous MinGW build fixes.
  8469. * src/a2io.h: Use _lseeki64() instead of lseek()
  8470. * src/common.h
  8471. * src/DefaultFileAllocator.cc
  8472. * src/GlowFileAllocator.cc
  8473. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8474. * src/NameResolver.cc
  8475. (callback): Changed int32_t to int.
  8476. (resolve): Changed int32_t to int.
  8477. * src/Platform.cc
  8478. * src/Platform.h
  8479. * test/MultiDiskWriterTest.cc
  8480. * test/PeerMessageUtilTest.cc
  8481. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8482. Other enhancements and fixes.
  8483. * src/HttpRequestCommand.cc
  8484. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8485. * src/SocketCore.cc:
  8486. (error): New function to abstract errno/WSAGetLastError().
  8487. (errorMsg): New function to abstract errno/WSAGetLastError().
  8488. (initiateSecureConnection): Added more detailed error reporting.
  8489. * src/SocketCore.h: Added private variable blocking, to allow
  8490. proper handling of OpenSSL psuedo-errors.
  8491. * src/message.h
  8492. (EX_SSL_INIT_FAILURE)
  8493. (EX_SSL_IO_ERROR)
  8494. (EX_SSL_PROTOCOL_ERROR)
  8495. (EX_SSL_UNKNOWN_ERROR)
  8496. (EX_SSL_CONNECT_ERROR)
  8497. (EX_SOCKET_BLOCKING)
  8498. (EX_SOCKET_NONBLOCKING)
  8499. (EX_SOCKET_UNKNOWN_ERROR)
  8500. * src/Util.cc
  8501. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8502. reserved name.
  8503. (httpGMT): Fixed typo.
  8504. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Merged Ross's win32 patch(manually)
  8506. In the course of merging, following files are added.
  8507. * src/strptime.{h,c}
  8508. * src/libgen.{h,c}
  8509. * src/inet_aton.{h,c}
  8510. * src/Platform.{h,cc}
  8511. * src/localtime_r.{h,c}
  8512. * src/getaddrinfo.{h,c}
  8513. I've gethered network related things, and put them to following file:
  8514. * src/a2netcompat.h
  8515. Also io related things are put to following file:
  8516. * src/a2io.h
  8517. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8518. * src/message.h
  8519. (MSG_ALLOCATION_COMPLETED)
  8520. (EX_TOO_LARGE_FILE)
  8521. (EX_SIZE_MISMATCH)
  8522. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8523. (EX_INVALID_CHUNK_CHECKSUM)
  8524. (EX_INVALID_RANGE_HEADER)
  8525. * src/FileAllocationCommand.cc
  8526. * src/HttpResponse.cc
  8527. * src/RequestGroup.cc
  8528. * src/MultiDiskAdaptor.cc
  8529. * src/OptionHandlerImpl.h
  8530. * src/HttpResponseCommand.cc
  8531. * src/FtpNegotiateCommand.cc
  8532. * src/IteratableChecksumValidator.cc
  8533. * src/SegmentMan.cc
  8534. * src/ChunkChecksumValidator.cc
  8535. Added Randomizer::getRandomNumber(long int)
  8536. * src/Randomizer.h (getRandomNumber)
  8537. * src/SimpleRandomizer.h (getRandomNumber)
  8538. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8539. * src/Util.cc (randomAlpha): Use this new function.
  8540. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8541. Converted int's to in32_t. long long int's are also converted to
  8542. int64_t
  8543. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Fixed the bug that prevents cookies from being sent to the server
  8545. if the domain of cookie is FQDN and starts with ".".
  8546. * src/Cookie.cc (match)
  8547. To add the ability to change peer id.
  8548. * src/DefaultBtContext.h
  8549. (_peerIdPrefix): New variable
  8550. (setPeerIdPrefix): New function.
  8551. * src/torrentRequestInfo.cc
  8552. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8553. DefaultBtContext.
  8554. * src/main.cc (main): Added peer-id-prefix command-line option.
  8555. The usage message is not added yet.
  8556. * src/DefaultBtContext.cc
  8557. (generatePeerId): Use _peerIdPrefix.
  8558. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8559. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8560. Fixed the bug that prevents filename in content-disposition from
  8561. being retrieved when filename is not quoted.
  8562. * src/Util.cc (getContentDispositionFilename)
  8563. Fixed the bug that causes infinate loop and memory leak when file open
  8564. operation failed.
  8565. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8566. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8567. Fixed the bug that causes segfault when all URIs specified are
  8568. unsupported.
  8569. * src/RequestGroupMan.cc (getInitialCommands)
  8570. Check if RequestGroup::createNextCommand() returns empty list of
  8571. commands.
  8572. * src/RequestGroup.cc (createNextCommand)
  8573. Change log level from info to error so that users can notice that
  8574. an error occurred.
  8575. Fixed the bug that causes segfault when a zero-sized file is
  8576. downloaded.
  8577. * src/BitfieldMan.cc (isAllBitSet)
  8578. Return true if bitfieldLength is 0.
  8579. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8580. * src/main.cc
  8581. (showUsage): Added 3 usage examples for metalink download.
  8582. Replace MetalinkChunkChecksum with ChunkChecksum.
  8583. * src/MetalinkChunkChecksum.h: Removed.
  8584. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8585. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8586. * src/Xml2MetalinkProcessor.cc
  8587. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8588. * src/MetalinkRequestInfo.cc (execute)
  8589. * Release 0.11.1
  8590. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Reads URIs from stdin when "-i -" is specified.
  8592. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8593. * src/UriListParser.h, src/UriListParser.cc: New class.
  8594. * src/StreamUriListParser.h: New class.
  8595. * src/FileUriListParser.h: New class.
  8596. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8597. instead of UriFileListParser.
  8598. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. Made console readout more readable.
  8600. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8601. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Fix the bug that causes -s option not to work.
  8603. * src/main.cc (main)
  8604. * src/a2algo.h: New file.
  8605. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8606. Create directory structure specified in metalink file.
  8607. * src/RequestGroup.h, src/RequestGroup.cc
  8608. (initAndOpenFile): Create a directory to store files if it does not
  8609. exist.
  8610. (getDir): New function.
  8611. Added ETA and download speed for an individual file to readout.
  8612. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8613. * src/RequestGroup.h
  8614. (calculateDownloadSpeed): New function.
  8615. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Made -S option work with metalink file and provided selective download
  8617. to metalink.
  8618. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8619. (filename): Removed.
  8620. (file): New variable.
  8621. (size): Removed.
  8622. (operator=): Updated.
  8623. (getPath): New function.
  8624. (getLength): New function.
  8625. (toFileEntry): New function.
  8626. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8627. (execute): Use toStream.
  8628. (showFileEntry): Removed.
  8629. * src/MetalinkRequestInfo.h
  8630. (targetFiles): New variable.
  8631. (setTargetFiles): New variable.
  8632. * src/MetalinkRequestInfo.cc
  8633. (execute): Added the ability to print file information included in
  8634. a metalink file.
  8635. Added selective download mode to metalink.
  8636. * src/main.cc
  8637. (showUsage): Updated to denote that -S and --select-file options are
  8638. applicable to metalink.
  8639. * src/FileEntry.h
  8640. (operator=): New function.
  8641. (getBasename): New function.
  8642. (getDirname): New function.
  8643. * src/Util.h, src/Util.cc
  8644. (toStream): New function.
  8645. * src/Xml2MetalinkProcessor.cc: Updated.
  8646. Made aria2 work with metalink with directory structure.
  8647. * src/File.h, src/File.cc
  8648. (getBasename): New function.
  8649. (getDirname): New function.
  8650. * src/RequestGroup.h, src/RequestGroup.cc
  8651. (_topDir): New variable.
  8652. (setTopDir): New function.
  8653. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8654. Rewrote HTTP header parsing with stringstream.
  8655. * src/HttpConnection.h, src/HttpConnection.cc
  8656. (HttpRequestEntry): New class.
  8657. (headerBuf): Removed.
  8658. (headerBufLength): Removed.
  8659. (outstandingHttpRequests): Now its element type is
  8660. HttpRequestEntryHandle.
  8661. (findEndOfHeader): Removed.
  8662. (receiveResponse): Rewritten.
  8663. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8664. Updated doc for -j option to notice that it should be used with -i
  8665. option.
  8666. * src/main.cc (showUsage)
  8667. Removed unused classes.
  8668. * src/RequestInfo.h
  8669. (FileInfo): Removed.
  8670. (checksum): Removed.
  8671. (fileInfo): Removed.
  8672. (setChecksum): Removed.
  8673. (getChecksum): Removed.
  8674. (getFileInfo): Removed.
  8675. Use ISO units.
  8676. * src/ConsoleDownloadEngine.cc
  8677. * src/TorrentConsoleDownloadEngine.cc
  8678. * src/Util.cc (abbrevSize)
  8679. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. Added the default listening ports to the help message.
  8681. * src/main.cc (showUsage)
  8682. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Reduce the number of calls to gettimeofday to lower CPU load.
  8684. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8685. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8686. * src/Peer.h (calculateUploadSpeed): New function.
  8687. (calculateDownloadSpeed): New function.
  8688. * src/DefaultPeerStorage.cc
  8689. (CalculateStat): Added _now variable.
  8690. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8691. and Peer::calculateUploadSpeed(const struct timeval&)
  8692. Drop connection if no request or piece message is exchanged in
  8693. a certain interval.
  8694. * src/DefaultBtInteractive.h
  8695. (btRuntime): New variable.
  8696. (inactiveCheckPoint): New variable.
  8697. (checkActiveInteraction): New function.
  8698. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8699. request or piece message is received.
  8700. (checkActiveInteraction): New function.
  8701. (doInteractionProcessing): Call checkActiveInteraction.
  8702. Fixed the bug that causes remote Metalink and Torrent files are not
  8703. processed.
  8704. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8705. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8706. Changed format of log file.
  8707. * src/SimpleLogger.cc
  8708. * Release 0.11.0
  8709. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8710. * src/AbstractCommand.cc
  8711. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8712. MSG_MAX_TRY from error to info.
  8713. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8714. * src/message.h
  8715. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8716. (MSG_DOWNLOAD_ABORTED): Added %s.
  8717. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8718. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8719. * src/PeerAbstractCommand.cc
  8720. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8721. * src/Request.h
  8722. (cookieBox): Made ShardHandle.
  8723. * src/RequestGroup.h, src/RequestGroup.cc
  8724. (createNextCommandWithAdj): New function.
  8725. * src/FileAllocationCommand.cc
  8726. (executeInternal): Use createNextCommandWithAdj().
  8727. * src/CheckIntegrityCommand.cc
  8728. (executeInternal): Use createNextCommandWithAdj().
  8729. Added --load-cookies command-option.
  8730. * src/OptionHandlerFactory.cc
  8731. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8732. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8733. Now aria2 can handle cookie's expiration date.
  8734. * src/Cookie.h (expires): Changed its type to time_t.
  8735. * src/main.cc: Added --load-cookies command-line option.
  8736. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8737. * src/Util.h, src/Util.cc (httpGMT): New function.
  8738. * src/Request.cc (Request): Initialize cookieBox using
  8739. CookieBoxFactory.
  8740. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8741. * src/CookieParser.h, src/CookieParser.cc: New class.
  8742. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8743. * src/HttpResponseCommand.cc
  8744. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8745. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8746. download.
  8747. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. Added -j command-line option.
  8749. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8750. * src/main.cc
  8751. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8752. Rewritten using stringstream.
  8753. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8754. Rewritten using stringstream.
  8755. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8756. Make download size shown in MB, KB.
  8757. * src/ConsoleDownloadEngine.h (sendStatistics)
  8758. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8759. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Accept incoming connections if download rate is low.
  8761. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8762. (_lowestSpeedLimit): New variable.
  8763. (setLowestSpeedLimit): New function.
  8764. (execute): Accept incoming connections if download rate is low.
  8765. MAX_PEERS is ignored in this case.
  8766. Disable PREF_OUT in multiple concurrent download:
  8767. * src/RequestGroup.h, src/RequestGroup.cc
  8768. (setUserDefinedFilename): New function.
  8769. * src/DownloadEngineFactory.cc
  8770. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8771. concurrent download.
  8772. * src/DefaultSegmentManFactory.cc
  8773. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8774. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8775. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8776. Added its overloaded method.
  8777. * src/RequestGroup.h
  8778. (_numConcurrentCommand): New variable.
  8779. (setNumConcurrentCommand): New function.
  8780. * src/RequestGroup.cc
  8781. Abort download if same file is being downloaded concurrently.
  8782. * src/RequestGroup.h, src/RequestGroupMan.cc
  8783. (isSameFileBeingDownloaded): New function.
  8784. * src/HttpResponseCommand.cc (executeInternal)
  8785. * src/FtpNegotiateCommand.cc (recvSize)
  8786. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8787. * main.cc: Added help message for -i option.
  8788. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8789. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8790. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8791. * src/MetalinkEntry.h
  8792. (checksum): Changed to ChecksumHandle
  8793. * src/MetalinkRequestInfo.cc
  8794. (checksum): Changed to ChecksumHandle
  8795. * src/File.cc
  8796. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8797. * src/common.h
  8798. (DIR_OPEN_MODE): New definition
  8799. * src/RequestGroup.cc
  8800. (prepareForNextAction): Added an argument.
  8801. * src/message.h
  8802. (MSG_GOOD_CHECKSUM): New definition
  8803. (MSG_BAD_CHECKSUM): New definition
  8804. * src/HttpResponseCommand.cc
  8805. (handleDefaultEncoding): Continue download sequence in new
  8806. non-segmented download.
  8807. * src/FileAllocationEntry.h
  8808. (_nextDownloadCommand): New variable.
  8809. * src/DownloadCommand.cc
  8810. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8811. available.
  8812. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8813. * src/IteratableChecksumValidator.h,
  8814. src/IteratableChecksumValidator.cc: New class.
  8815. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8816. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8817. Change file mode to 666:
  8818. * src/common.h (OPEN_MODE): New definition.
  8819. * src/File.cc
  8820. * src/Util.cc
  8821. * src/Directry.cc
  8822. * src/AbstractDiskWriter.cc
  8823. Change the level of log message "download aborted" to debug:
  8824. * src/PeerAbstractCommand.cc (execute)
  8825. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8826. * src/TrackerWatcherCommand.cc
  8827. (createCommand): Sleep some seconds after request failed.
  8828. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8829. then abort tracker request.
  8830. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. * Added the simultaneous download feature.
  8832. * src/main.cc: Print "Exception caught: " when exception is caught.
  8833. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8834. * src/ActivePeerConnectionCommand.cc
  8835. * src/PeerInteractionCommand.cc
  8836. * src/BtRuntime.h
  8837. (cuidCounter): Removed.
  8838. (getNewCuid): Removed.
  8839. * src/DownloadEngineFactory.cc
  8840. * src/PeerListenCommand.cc
  8841. * src/TrackerUpdateCommand.cc
  8842. * src/PeerInitiateConnectionCommand.cc
  8843. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. * src/PeerAbstractCommand.cc
  8845. (onAbort): Call PeerStorage::returnPeer()
  8846. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8847. (incomingPeers): New variable.
  8848. (addIncomingPeer): New function.
  8849. (returnPeer): New function.
  8850. (onErasingPeer): New function.
  8851. (addPeer): push_back -> push_front
  8852. (getActivePeers): Rewritten.
  8853. (calculateStat): Rewritten.
  8854. * src/PeerStorage.h
  8855. (TransferStat::copy): New function.
  8856. (TransferStat::TransferStat): New function.
  8857. (TransferStat::operator=): New function.
  8858. (addIncomingPeer): New function.
  8859. (returnPeer): New function.
  8860. * src/PeerListenCommand.cc
  8861. (execute): Use PeerStorage::addIncomingPeer() instead of
  8862. Peer::addPeer().
  8863. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. Connect to a peer actively when download speed is lower than specified
  8865. speed in torrent download:
  8866. * src/ActivePeerConnectionCommand.h: New class.
  8867. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8869. * src/main.cc: Fixed the bug that prevents download if .netrc
  8870. doesn't exist.
  8871. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8872. To cache resolved hostname:
  8873. * src/AbstractCommand.h, src/AbstractCommand.cc
  8874. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8875. Added dns cache.
  8876. * src/FtpInitiateConnectionCommand.cc
  8877. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8878. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8879. NameResolver working without ares.
  8880. * src/TorrentRequestInfo.cc
  8881. (execute): Don't cache dns in torrent download.
  8882. * src/HttpInitiateConnectionCommand.cc
  8883. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8884. * src/DNSCache.h: New class.
  8885. * src/UrlRequestInfo.cc
  8886. (execute): Use dns cache.
  8887. In http request, suppress port number in http request header if port
  8888. is 80 or 443:
  8889. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8890. request header if port is 80 or 443.
  8891. (createProxyRequest): Allways send port number.
  8892. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8893. To add the command-line option which disables netrc support:
  8894. * src/OptionHandlerFactory.cc
  8895. (createOptionHandlers): Added PREF_NO_NETRC.
  8896. * src/main.cc: Added -n option.
  8897. * src/prefs.h (PREF_NO_NETRC): New definition.
  8898. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8899. V_TRUE.
  8900. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8901. is V_FALSE. This may get configurable in the future release.
  8902. To clear peer's error status by time basis:
  8903. * src/PeerAbstractCommand.cc
  8904. (onAbort): Call Peer::startBadCondition().
  8905. * src/Peer.h, src/Peer.cc
  8906. (error): Removed.
  8907. (_badConditionStartTime): New variable.
  8908. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8909. (startBadCondition): New function.
  8910. (isGood): New function.
  8911. * src/DefaultPeerStorage.cc
  8912. (addPeer): Use Peer::isGood().
  8913. (FindFinePeer): Use Peer::isGood().
  8914. Always include port number in http request header:
  8915. * src/HttpRequest.cc (getHostText): Always include port number in
  8916. http request header.
  8917. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8918. To the ability to read options from a config file:
  8919. * src/main.cc: Command-line parameter validation is delegated to
  8920. OptionHandler class.
  8921. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8922. * src/Option.h, src/Option.cc (clear): New function.
  8923. * src/OptionParser.h, src/OptionParser.cc: New class.
  8924. * src/OptionHandler.h: New class.
  8925. * src/NameMatchOptionHandler.h: New class.
  8926. * src/OptionHandlerImpl.h: New classes.
  8927. * src/prefs.h: '_' -> '-'
  8928. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8929. (FTP_PASV): New definition.
  8930. * src/Util.h, src/Util.cc (getRealSize): New function.
  8931. To disable netrc support if .netrc file does not have correct
  8932. permissions:
  8933. * src/File.h, src/File.cc (mode): New function.
  8934. To prevent confidential information to be logged:
  8935. * src/HttpConnection.h, src/HttpConnection.cc
  8936. (eraseConfidentialInfo): New function.
  8937. (sendRequest): Call eraseConfidentialInfo().
  8938. (sendProxyRequest): Call eraseConfidentialInfo().
  8939. * src/main.cc: Validate permissions of .netrc file.
  8940. To add --user-agent command-line option:
  8941. * src/main.cc: Added new command line option: --user-agent
  8942. * src/prefs.h (PREF_USER_AGENT): New definition.
  8943. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8944. parameter to HttpRequest object.
  8945. * src/AbstractProxyRequestCommand.cc
  8946. (executeInternal): Set user-agent option parameter to HttpRequest
  8947. object.
  8948. Marged the patches from Dan Fandrich.
  8949. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8950. Use filename and size from Metalink file instead of sending HEAD
  8951. request:
  8952. * src/UrlRequestInfo.h
  8953. (_filename): New variable.
  8954. (_totalLength): New variable.
  8955. (setTotalLength): New variable.
  8956. (setFilename): New variable.
  8957. * src/MetalinkRequestInfo.cc
  8958. (execute): Set filename and size to UrlRequestInfo
  8959. * src/UrlRequestInfo.cc
  8960. (execute): Use filename and size from Metalink instead of seding
  8961. HEAD request to servers.
  8962. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8963. To add the ability to resume downloading a partially downloaded file
  8964. which is downloaded from the beginning:
  8965. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8966. takes this role.
  8967. * src/main.cc: Added -c option.
  8968. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8969. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8970. * src/prefs.h (PREF_CONTINUE): New definition.
  8971. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8972. * src/DefaultDiskWriter.cc
  8973. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8974. * src/AbstractDiskWriter.h
  8975. (glowFileAllocator): New variable.
  8976. * src/AbstractDiskWriter.cc
  8977. (openExistingFile): Now preallocate file space from the end of the
  8978. existing file if totalLength argument is specified and grater than 0.
  8979. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8980. to download exists in local, continue the download of the file.
  8981. --allow-overwrite=true is assumed in this context.
  8982. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8983. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8984. Throw exception if --check-integrity=true is specified but chunk
  8985. checksums are not provided:
  8986. * src/UrlRequestInfo.cc
  8987. Do not print URLs to stdout:
  8988. * src/UrlRequestInfo.cc
  8989. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8990. * src/Request.h: Use AuthResolver to get authentication information.
  8991. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8992. set to RequestFactory object.
  8993. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8994. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8995. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8996. create Request object.
  8997. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8998. To integrate Netrc into exsiting classes:
  8999. * src/Request.h
  9000. (_userDefinedAuthConfig): New variable.
  9001. (findNetrcAuthenticator): New function.
  9002. (segment): Removed.
  9003. (setUserDefinedAuthConfig): New function.
  9004. (resolveHttpAuthConfigItem): New function.
  9005. (resolveFtpAuthConfigItem): New function.
  9006. (resolveHttpProxyAuthConfigItem): New function.
  9007. * src/HttpRequest.h
  9008. (authConfig): Removed.
  9009. (proxyAuthConfig): Removed.
  9010. (setAuthConfig): Removed.
  9011. (setProxyAuthConfig): Removed.
  9012. * src/UrlRequest.h
  9013. (getHeadResult): Added a parameter: authConfigHandle
  9014. * src/common.h
  9015. (SingletonHolder.h): New include.
  9016. * src/main.cc
  9017. (Netrc.h): New include.
  9018. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  9019. Added initial value of PREF_NETRC_PATH.
  9020. Added the initialization of netrc.
  9021. * src/AuthConfig.h: New class.
  9022. * src/prefs.h
  9023. (PREF_NETRC_PATH): New definition.
  9024. * src/HttpAuthConfig.h: Removed.
  9025. * src/Netrc.cc
  9026. (getRequiredNextToken): New function.
  9027. (skipMacdef): New function.
  9028. (parse): Rewritten.
  9029. * src/Netrc.h
  9030. (getRequiredNextToken): New function.
  9031. (skipMacdef): New function.
  9032. * src/Util.h, src/Util.cc
  9033. (getHomeDir): New function.
  9034. * src/TrackerWatcherComand.cc
  9035. (createRequestCommand): Use AuthConfig.
  9036. * src/FtpConnection.cc
  9037. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9038. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9039. * src/Request.cc
  9040. (findNetrcAuthenticator): New function.
  9041. (resolveHttpAuthConfigItem): New function.
  9042. (resolveFtpAuthConfigItem): New function.
  9043. (resolveHttpProxyAuthConfigItem): New function.
  9044. * src/UrlRequestInfo.cc: Use AuthConfig.
  9045. * src/HttpRequest.cc
  9046. (createRequest): Use authConfig.
  9047. (getProxyAuthString): Use authConfig.
  9048. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9049. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9050. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. To reduce overhead to find commands whose socket is either
  9052. readable or writable in the download engine loop:
  9053. * src/Command.h, src/Command.cc
  9054. (STATUS): New enum.
  9055. (status): New variable.
  9056. (statusMatch): New function.
  9057. (setStatusActive): New function.
  9058. (setStatusInactive): New function.
  9059. * src/DownloadEngine.h, src/DownloadEngine.cc
  9060. (executeCommand): New function.
  9061. (run): Simplified.
  9062. (waitData): Call Command::setStatusActive() when command's socket is
  9063. readable or writable.
  9064. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9065. To handle Segment as SegmentHandle:
  9066. * src/AbstractCommand.cc (execute): Rewritten.
  9067. * src/SegmentMan.h: Segment -> SegmentHandle
  9068. Introducded HttpResponse class, HttpRequest class to improve code
  9069. extensiveness and make it clear:
  9070. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9071. HttpResponse class.
  9072. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9073. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9074. * src/HttpConnection.cc: Contruction of http request were moved to
  9075. HttpRequest class.
  9076. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9077. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9078. * src/HttpAuthConfig.h: New class.
  9079. * src/Range.h: New class.
  9080. To make FtpTunnel{Request, Response}Command and
  9081. HttpProxy{Request, Response}Command derived from
  9082. AbstractProxy{Request, Response}Command:
  9083. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9084. Derived from AbstractProxyRequestCommand class.
  9085. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9086. Derived from AbstractProxyResponseCommand class.
  9087. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9088. Derived from AbstractProxyRequestCommand class.
  9089. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9090. Derived from AbstractProxyResponseCommand class.
  9091. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9092. : New class.
  9093. * src/AbstractProxyResponseCommand.h,
  9094. src/AbstractProxyResponseCommand.cc: New class.
  9095. To add netrc support:
  9096. * src/Netrc.h, src/Netrc.cc: New class.
  9097. * src/Util.h, src/Util.cc (split): New function.
  9098. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9099. "Content-Range" header instead of "Range" header.
  9100. * src/HttpHeader.h
  9101. (getStatus): Removed.
  9102. (setStatus): Removed.
  9103. * src/Segment.h
  9104. (getPositionToWrite): New function.
  9105. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. * src/HttpHeader.h
  9107. (Range.h): New include.
  9108. (status): New variable.
  9109. (HttpHeader): Initialized status with 0.
  9110. (getStatus): New function.
  9111. (setStatus): New function.
  9112. (getRange): New function.
  9113. (HttpHeaderHandle): New function.
  9114. * src/HttpHeader.cc
  9115. (getRange): New function.
  9116. * src/Request.h
  9117. (RequestWeakHandle): New definition.
  9118. * src/HttpConnection.h
  9119. (HttpConnectionHandle): New type definition.
  9120. * src/HttpConnection.cc
  9121. (receiveResponse): Set HTTP status to headers.
  9122. * src/main.cc
  9123. (showUsage): Fixed typo.
  9124. * src/Segment.h
  9125. (SegmentHandle): New type definition.
  9126. * src/BitfieldMan.h
  9127. (getMissingUnusedLength): New function.
  9128. * src/BitfieldMan.cc
  9129. (getMissingUnusedLength): New function.
  9130. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. To fix static initialization order problem:
  9132. * src/BitfieldManFactory.h
  9133. (defaultRandomizer): Removed.
  9134. (factory): New variable.
  9135. (getNewFactory): Removed.
  9136. (getFactoryInstance): New function.
  9137. (setDefaultRandomizer): Rewritten.
  9138. (getDefaultRandomizer): Rewritten.
  9139. * src/BitfieldManFactory.cc
  9140. (defaultRandomizer): Removed.
  9141. (factory): Initialized to 0.
  9142. (BitfieldManFactory): Initialized randomizer to 0.
  9143. * src/DefaultPieceStorage.cc
  9144. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9145. * src/Peer.cc
  9146. (Peer): getNewFactory() -> getFactoryInstance()
  9147. * src/SegmentMan.cc
  9148. (initBitfield): getNewFactory() -> getFactoryInstance()
  9149. * src/Piece.cc
  9150. (Piece): getNewFactory() -> getFactoryInstance()
  9151. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. To fix the bug that causes crash on Max OS X:
  9153. * src/SimpleRandomizer.h
  9154. (getInstance): Create new instance if the static variable is null.
  9155. * src/SimpleRandomizer.cc
  9156. (randomizer): Initialized to 0.
  9157. * src/BitfieldManFactory.h
  9158. (getNewFactory): Removed the call to setRandomizer().
  9159. To fix the miscalculation of the range of checksum:
  9160. * src/BitfieldMan.h
  9161. (isBitSetOffsetRange): New function.
  9162. * src/BitfieldMan.cc
  9163. (isBitSetOffsetRange): New function.
  9164. * src/SegmentMan.cc
  9165. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9166. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9167. * Release 0.10.1
  9168. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9169. To lower CPU usage in BitTorrent download when --max-upload-limit
  9170. command-line option specified:
  9171. * src/DefaultBtMessageDispatcher.cc
  9172. (sendMessages): Calculate uploading speed only when current message
  9173. is uploading data and is not sent yet.
  9174. * src/DefaultPeerStorage.h
  9175. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9176. * src/HttpResponseCommand.cc
  9177. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9178. This fixes compile error in Soralis 10.
  9179. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9180. To fix segfault in Metalink download:
  9181. * src/UrlRequestInfo.h
  9182. (filename): Removed.
  9183. (totalLength): Removed.
  9184. (setTotalLength): Removed.
  9185. (setFilename): Removed.
  9186. * src/MetalinkRequestInfo.cc
  9187. (execute): Do not set filename and totalLength to reqInfo.
  9188. Set chunk checksum to reqInfo if it is not null.
  9189. * src/HttpResponseCommand.cc
  9190. (executeInternal): Fixed filename in log.
  9191. (handleDefaultEncoding): Removed the call to initBitfield() and
  9192. markAllPiecesDone().
  9193. (handleOtherEncoding): Added HEAD method handling.
  9194. * src/FtpNegotiateCommand.cc
  9195. (executeInternal): Added SEQ_HEAD_OK handling.
  9196. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9197. return false.
  9198. * src/FtpNegotiateCommand.h
  9199. (SEQ_HEAD_OK): New definition.
  9200. * src/SegmentMan.cc
  9201. (initBitfield): Delete bitfield.
  9202. (isChunkChecksumValidationReady): Fixed the condition.
  9203. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9204. works fine.
  9205. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9206. * src/Xml2MetalinkProcessor.h
  9207. (xpathExists): New function.
  9208. * src/Xml2MetalinkProcessor.cc
  9209. (xpathExists): New function.
  9210. Not to send HEAD request if filename and size are available in Metalink
  9211. file:
  9212. * src/UrlRequestInfo.h
  9213. (filename): New variable.
  9214. (totalLength): New variable.
  9215. (setTotalLength): New function.
  9216. (setFilename): New function.
  9217. * src/MetalinkRequestInfo.cc
  9218. (execute): Set filename and size to UrlRequestInfo.
  9219. * src/MetalinkEntry.cc
  9220. (MetalinkEntry): Initialize size with 0.
  9221. * src/UrlRequestInfo.cc
  9222. (execute): Set filename and size to SegmentMan.
  9223. Not to download rest of the files after selected files are downloaded
  9224. in BitTorrent:
  9225. * src/PieceStorage.h
  9226. (allDownloadFinished): New function.
  9227. * src/DefaultBtAnnounce.cc
  9228. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9229. downloadFinished.
  9230. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9231. * src/DefaultPieceStorage.cc
  9232. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9233. Commented out the call to finishSelectiveDownloadingMode().
  9234. (downloadFinished): Call isFilteredAllBitSet() instead of
  9235. isAllBitSet().
  9236. (allDownloadFinished): New function.
  9237. * src/DefaultBtInteractive.cc
  9238. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9239. downloadFinished().
  9240. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9241. * src/TorrentDownloadEngine.cc
  9242. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9243. * src/BitfieldMan.h
  9244. (isFilteredAllBitSet): New function.
  9245. * src/ShareRatioSeedCriteria.h
  9246. (PieceStorage.h): New include.
  9247. (pieceStorage): New variable.
  9248. (evaluate):
  9249. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9250. * src/BitfieldMan.cc
  9251. (isFilteredAllBitSet): New function.
  9252. (isAllBitSet): Filter is not took into account.
  9253. Rename --force-truncate as --allow-overwrite:
  9254. * src/TorrentRequestInfo.cc
  9255. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9256. * src/main.cc
  9257. (showUsage): --force-truncate -> --allow-overwrite
  9258. * src/message.h
  9259. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9260. * src/prefs.h
  9261. (PREF_FORCE_TRUNCATE): Removed.
  9262. (PREF_ALLOW_OVERWRITE): New definition.
  9263. * src/SegmentMan.cc
  9264. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9265. * src/MetalinkRequestInfo.cc
  9266. (execute): Queueing message are now logged in info level.
  9267. * src/common.h
  9268. (LONG_LONG_MAX): Removed.
  9269. (LONG_LONG_MIN): Removed.
  9270. * src/HttpResponseCommand.cc
  9271. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9272. * src/FtpNegotiateCommand.cc
  9273. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9274. * src/main.cc
  9275. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9276. command-line option.
  9277. (main): Added --check-integriy and --realtime-chunk-checksum
  9278. command-line option.
  9279. --force-truncate -> --allow-overwrite
  9280. Set initial value of --check-integrity option to false.
  9281. Don't show usage when error occurs while persing command-line options.
  9282. Removed deprecated --upload-limit option.
  9283. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9285. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9286. * src/BtAllowedFastMessage.cc:
  9287. * src/BtBitfieldMessage.cc
  9288. * src/BtCancelMessage.cc
  9289. * src/BtChokeMessage.cc
  9290. * src/BtHaveAllMessage.cc
  9291. * src/BtHaveMessage.cc
  9292. * src/BtHaveNoneMessage.cc
  9293. * src/BtInterestedMessage.cc
  9294. * src/BtNotInterestedMessage.cc
  9295. * src/BtPieceMessage.cc
  9296. * src/BtPortMessage.cc
  9297. * src/BtRejectMessage.cc
  9298. * src/BtRequestMessage.cc
  9299. * src/BtSuggestPieceMessage.cc
  9300. * src/BtUnchokeMessage.cc
  9301. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9302. files are affected.
  9303. * src/ChunkChecksumValidator.cc
  9304. * src/SegmentMan.cc
  9305. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9306. To add chunk checksum validation:
  9307. * src/MetalinkEntry.h
  9308. (MetalinkChunkChecksum.h): New include.
  9309. (chunkChecksum): New variable.
  9310. * src/Request.h
  9311. (method): New variable.
  9312. (setMethod): New function.
  9313. (getMethod): New function.
  9314. (METHOD_GET): New static constant.
  9315. (METHOD_HEAD): New static constant.
  9316. * src/Xml2MetalinkProcessor.h
  9317. (getPieceHash): New function.
  9318. * src/PieceStorage.h
  9319. (markAllPiecesDone): New function.
  9320. (checkIntegrity): New function.
  9321. * src/FileAllocator.h
  9322. (NullFileAllocationMonitor.h): New include.
  9323. (FileAllocator): Initialize fileAllocationMonitor with new
  9324. NullFileAllocationMonitor().
  9325. * src/MultiDiskAdaptor.h
  9326. (messageDigest.h): Remove include.
  9327. (ctx): Removed.
  9328. (hashUpdate): Added ctx.
  9329. (MultiDiskAdaptor): Removed ctx.
  9330. (sha1Sum): Renamed as messageDigest.
  9331. (messageDigest): New function.
  9332. * src/UrlRequestInfo.h
  9333. (HeadResult): New class.
  9334. (digestAlgo): New variable.
  9335. (chunkChecksumLength): New variable.
  9336. (chunkChecksums): New variable.
  9337. (getHeadResult): New function.
  9338. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9339. (setDigestAlgo): New function.
  9340. (setChunkChecksumLength): New function.
  9341. (setChunkChecksums): New function.
  9342. * src/DefaultPieceStorage.cc
  9343. (DiskAdaptorWriter.h): New include.
  9344. (ChunkChecksumValidator.h): New include.
  9345. (markAllPiecesDone): New function.
  9346. (checkIntegrity): New function.
  9347. * src/DefaultBtContext.h
  9348. (getPieceHashes): New function.
  9349. * src/TorrentRequestInfo.cc
  9350. (execute): Try to validate chunk checksum if file already exists and
  9351. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9352. * src/messageDigest.h
  9353. (~MessageDigestContext): Added digestFree().
  9354. * src/MetalinkRequestInfo.cc
  9355. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9356. * src/DiskAdaptor.h
  9357. (messageDigest.h): New include.
  9358. (sha1Sum): Renamed as messageDigest.
  9359. (messageDigest): New function.
  9360. * src/DownloadCommand.h
  9361. (PeerStat.h): New include.
  9362. (maxDownloadSpeedLimit): New variable.
  9363. (startupIdleTime): New variable.
  9364. (lowestDownloadSpeedLimit): New variable.
  9365. (peerStat): New variable.
  9366. (setMaxDownloadSpeedLimit): New function.
  9367. (setStartupIdleTime): New function.
  9368. (setLowestDownloadSPeedLimit): New function.
  9369. * src/BtContext.h
  9370. (getPieceHashes): New function.
  9371. * src/main.cc
  9372. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9373. option to true for testing purpose.
  9374. * src/BtPieceMessage.cc
  9375. (checkPieceHash): Use messageDigest
  9376. * src/DownloadEngine.cc
  9377. (SetDescriptor): Removed.
  9378. (AccumulateActiveCommand): Removed.
  9379. (waitData): Rewritten.
  9380. (updateFdSet): Rewritten.
  9381. * src/MultiDiskAdaptor.cc
  9382. (hashUpdate): Added ctx.
  9383. (sha1Sum): Renamed as messageDigest.
  9384. (messageDigest): New function.
  9385. * src/BitfieldMan.h
  9386. (isBitRangeSet): New function.
  9387. (unsetBitRange): New function.
  9388. * src/ByteArrayDiskWriter.h
  9389. (sha1Sum): Renamed as messageDigest.
  9390. (messageDigest): New function.
  9391. * src/ConsoleDownloadEngine.cc
  9392. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9393. * src/DiskWriter.h
  9394. (messageDigest.h): New include.
  9395. (sha1Sum): Renamed as messageDigest.
  9396. (messageDigest): New function.
  9397. * src/ChunkChecksumValidator.h: New class.
  9398. * src/DiskAdaptorWriter.h: New class.
  9399. * src/prefs.h
  9400. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9401. (PREF_CHECK_INTEGRITY): New definition.
  9402. * src/HttpResponseCommand.cc
  9403. (handleDefaultEncoding): Added method "HEAD" handling.
  9404. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9405. (handleOtherEncoding):
  9406. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9407. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9408. startupIdleTime, lowestDownloadSpeedLimit to command.
  9409. * src/SegmentMan.h
  9410. (getSegmentEntryByIndex): New function.
  9411. (getSegmentEntryByCuid): New function.
  9412. (getSegmentEntryIteratorByCuid): New function.
  9413. (diskWriter): DiskWriter -> DiskWriterHandle
  9414. (pieceHashes): New variable.
  9415. (chunkHashLength): New variable.
  9416. (digestAlgo): New variable.
  9417. (FindPeerStat): Removed.
  9418. (getPeerStat): Rewritten.
  9419. (markAllPiecesDone): New function.
  9420. (checkIntegrity): New function.
  9421. (tryChunkChecksumValidation): New function.
  9422. (isChunkChecksumValidationReady): New function.
  9423. * src/BitfieldMan.cc
  9424. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9425. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9426. blocks to 0.
  9427. (isBitRangeSet): New function.
  9428. (unsetBitRange): New function.
  9429. * src/FtpNegotiateCommand.cc
  9430. (executeInternal): Set maxDownloadSpeedLimit,
  9431. startupIdleTime, lowestDownloadSpeedLimit to command.
  9432. (recvSize): Added method "HEAD" handling.
  9433. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9434. * src/AbstractSingleDiskAdaptor.cc
  9435. (sha1Sum): Renamed as messageDigest.
  9436. (messageDigest): New function.
  9437. * src/AbstractSingleDiskAdaptor.h
  9438. (sha1Sum): Renamed as messageDigest.
  9439. (messageDigest): New function.
  9440. * src/Util.h
  9441. (indexRange): New function.
  9442. * src/MetalinkEntry.cc
  9443. (MetalinkEntry): Initialized chunkChecksum to 0.
  9444. * src/ShaVisitor.cc
  9445. (~ShaVisitor): Removed the call to ctx.digestFree().
  9446. * src/SegmentMan.cc
  9447. (ChunkChecksumValidator.h): New include.
  9448. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9449. to DIGEST_ALGO_SHA1.
  9450. (~SegmentMan): Removed diskWriter.
  9451. (FindSegmentEntryByIndex): Removed.
  9452. (FindSegmentEntryByCuid): Removed.
  9453. (checkoutSegment): Rewritten.
  9454. (findSlowerSegmentEntry): Rewritten.
  9455. (getSegment): Rewritten.
  9456. (updateSegment): Rewritten.
  9457. (completeSegment): Rewritten.
  9458. (markAllPiecesDone): New function.
  9459. (checkIntegrity): New function.
  9460. (isChunkChecksumValidationReady): New function.
  9461. (tryChunkChecksumValidation): New function.
  9462. * src/Xml2MetalinkProcessor.cc
  9463. (getEntry): Get size and set it to entry.
  9464. Get chunk checksum and set it to entry.
  9465. (getPieceHash): New function.
  9466. * src/Util.cc
  9467. (sha1Sum): Removed ctx.digestFree()
  9468. (fileChecksum): Removed ctx.digestFree()
  9469. (indexRange): New function.
  9470. * src/Request.cc
  9471. (METHOD_GET): New variable.
  9472. (METHOD_HEAD): New variable.
  9473. (Request): Added method.
  9474. * src/UrlRequestInfo.cc
  9475. (FatalException.h): New include.
  9476. (message.h): New include.
  9477. (operator<<): Added operator<< for class HeadResult.
  9478. (getHeadResult): New function.
  9479. (execute): Get filename and size in separate download engine.
  9480. * src/ChunkChecksumValidator.cc: New class.
  9481. * src/DownloadCommand.cc:
  9482. (DownloadCommand): Added peerStat.
  9483. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9484. the value from Option.
  9485. The buffer size is now 16KB.
  9486. Use peerStat member instead of getting it from SegmentMan.
  9487. Use startupIdleTime member instead of gettingit from Option.
  9488. Added chunk checksum validation.
  9489. * src/AbstractDiskWriter.cc
  9490. (AbstractDiskWriter): Removed ctx.
  9491. (~AbstractDiskWriter): Removed ctx.digestFree()
  9492. (writeDataInternal): Returns the return value of write.
  9493. (readDataInternal): Returns the return value of read.
  9494. (sha1Sum): Renamed as messageDigest
  9495. (messageDigest): New function.
  9496. * src/AbstractDiwkWriter.h
  9497. (messageDigest.h): Removed include.
  9498. (ctx): Removed.
  9499. (sha1Sum): Renamed as messageDigest
  9500. (messageDigest): New function.
  9501. * src/DefaultPieceStorage.h
  9502. (markAllPiecesDone): New function.
  9503. (checkIntegrity): New function.
  9504. * src/NullFileAllocationMonitor.h: New class.
  9505. * src/MetalinkChunkChecksum.h: New class.
  9506. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9507. To decrease CPU usage in bittorrent download, calculation results in
  9508. BitfieldMan were cached and realtime fetching PeerObject was removed
  9509. with WeakHandle introduced. Option values are set to the objects
  9510. by setter before download begins.
  9511. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9512. * src/DefaultBtRequestFactory.h
  9513. (dispatcher): BtMessageDispatcherHandle ->
  9514. BtMessageDispatcherWeakHandle.
  9515. (messageFactory): New variable.
  9516. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9517. BtMessageDispatcherWeakHandle.
  9518. (setBtMessageFactory): New function.
  9519. * src/DefaultBtMessageDispatcher.cc:
  9520. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9521. from Option.
  9522. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9523. feating the value from Option.
  9524. Use messageFactory member.
  9525. * src/PeerInteractionCommand.cc
  9526. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9527. Add reverse dependencies to factory object.
  9528. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9529. dispatcher.
  9530. Set messageFactory to receiver.
  9531. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9532. btInteractive.
  9533. Set receiver to peerObject.
  9534. Set maxDownloadSpeedLimit to this.
  9535. (executeInternal): Use maxDownloadSpeedLimit member.
  9536. * src/BtChokeMessage.cc
  9537. (doReceivedAction): Use dispatcher, requestFactory member.
  9538. (onSendComplete): Use dispatcher member.
  9539. * src/PeerInteractionCommand.h
  9540. (maxDownloadSpeedLimit): New variable.
  9541. * src/DefaultBtMessageReceiver.h
  9542. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9543. (dispatcher):
  9544. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9545. (messageFactory): New variable.
  9546. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9547. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9548. (setDispatcher):
  9549. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9550. (setBtMessageFactory): New function.
  9551. * src/DefaultBtInteractive.cc
  9552. (initiateHandshake): Use messageFactory member.
  9553. (addBitfieldMessageToQueue): Use messageFactory member.
  9554. (addAllowedFastMessageToQueue): Use messageFactory member.
  9555. (decideChoking): Use messageFactory member.
  9556. (checkHave): Use messageFactory member.
  9557. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9558. (receiveMessages): Use maxDownloadSpeedLimit member.
  9559. (decideInterest): Use messageFactory member.
  9560. * src/BtRequestMessage.cc
  9561. (doReceivedAction): Use messageFactory, dispatcher member.
  9562. (onQueued): Use dispatcher member.
  9563. * src/BtPieceMessage.cc
  9564. (doReceivedAction): Use dispatcher member.
  9565. (send): Use peerConnection member.
  9566. (onWrongPiece): Use requestFactory member.
  9567. (handleChokingEvent): Use messageFactory, dispatcher member.
  9568. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9569. * src/BtMessageDispatcher.h
  9570. (BtMessageDispatcherWeakHandle): New type definition.
  9571. * src/SimpleBtMessage.cc
  9572. (send): Use peerConnection member.
  9573. * src/BtRejectMessage.cc
  9574. (doReceivedAction): Use dispatcher member.
  9575. * src/DefaultBtMessageDispatcher.h
  9576. (Option.h): Removed include.
  9577. (messageFactory): New variable.
  9578. (option): Removed.
  9579. (maxUploadSpeedLimit): New variable.
  9580. (requestTimeout): New variable.
  9581. (DefaultBtMessageDispatcher): Removed option.
  9582. Added maxUploadSpeedLimit, requestTimeout.
  9583. (setOption): Removed.
  9584. (getOption): Removed.
  9585. (setMaxUploadSpeedLimit): New function.
  9586. (setRequestTimeout): New function.
  9587. (setBtMessageFactory): New function.
  9588. * src/DefaultBtInteractive.h
  9589. (btMessageReceiver):
  9590. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9591. (dispatcher):
  9592. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9593. (btRequestFactory):
  9594. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9595. (peerConnection):
  9596. PeerConnectionHandle -> PeerConnectionWeakHandle
  9597. (messageFactory): New variable.
  9598. (option): Removed.
  9599. (keepAliveInterval): New variable.
  9600. (maxDownloadSpeedLimit): New variable.
  9601. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9602. (setBtMessageReceiver):
  9603. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9604. (setDispatcher):
  9605. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9606. (setBtRequestFactory):
  9607. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9608. (setPeerConnection):
  9609. PeerConnectionHandle -> PeerConnectionWeakHandle
  9610. (setOption): Removed.
  9611. (setKeepAliveInterval): New function.
  9612. (setMaxDownloadSpeedLimit): New function.
  9613. (setBtMessageFactory): New function.
  9614. * src/BitfieldMan.h
  9615. (cachedNumMissingBlock): New variable.
  9616. (cachedNumFilteredBlock): New variable.
  9617. (cachedCompletedLength): New variable.
  9618. (cachedFilteredComletedLength): New variable.
  9619. (cachedFilteredTotalLength): New variable.
  9620. (countMissingBlockNow): New function.
  9621. (countFilteredBlockNow): New function.
  9622. (getFilteredTotalLengthNow): New function.
  9623. (getCompletedLengthNow): New function.
  9624. (getFilteredCompletedLengthNow): New function.
  9625. (updateCache): New function.
  9626. * src/AbstractBtMessage.h
  9627. (BtMessageDispatcher.h): New include.
  9628. (PeerConnection.h): New include.
  9629. (BtRequestFactory.h): New include
  9630. (BtMessageFactory.h): New include.
  9631. (dispatcher): New variable.
  9632. (messageFactory): New variable.
  9633. (peerConnection: New variable.
  9634. (setBtMessageDispatcher): New function.
  9635. (setPeerConnection): New function.
  9636. (setBtMessageFactory): New function.
  9637. (setBtRequestFactory): New function.
  9638. * src/DefaultBtMessageFactory.cc
  9639. (setCommonProperty): Set dispatcher, requestFactory, this,
  9640. peerConnection to msg.
  9641. * src/BtRegistry.h
  9642. (BT_MESSAGE_RECEIVER): New macro.
  9643. * src/PeerConnection.h
  9644. (PeerConnectionWeakHandle): New type definition.
  9645. * src/BtMessageFactory.h
  9646. (BtMessageFactoryWeakHandle): New type definition.
  9647. * src/BitfieldMan.cc
  9648. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9649. cachedCompletedLength, cachedFilteredComletedLength,
  9650. cachedFilteredTotalLength.
  9651. Call updateCache().
  9652. (countMissingBlock): Return cachedNumMissingBlock.
  9653. (countMissingBlockNow): New function.
  9654. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9655. (countFilteredBlockNow): New function.
  9656. (setBit): Call updateCache().
  9657. (unsetBit): Call updateCache().
  9658. (setBitfield): Call updateCache().
  9659. (clearAllBit): Call updateCache().
  9660. (setAllBit): Use setBitInternal instead of setBit.
  9661. Call updateCache().
  9662. (addFilter): Call updateCache().
  9663. (enableFilter): Call updateCache().
  9664. (disableFilter): Call updateCache().
  9665. (clearFilter): Call updateCache().
  9666. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9667. (getFilteredTotalLengthNow): New function.
  9668. (getCompletedLength): Return cachedCompletedLength.
  9669. (getCompletedLengthNow): New function.
  9670. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9671. (getFilteredCompletedLengthNow): New function.
  9672. (updateCache): New function.
  9673. * src/BtMessageReceiver.h
  9674. (BtMessageReceiverWeakHandle): New type definition.
  9675. * src/DefaultBtMessageReceiver.cc
  9676. (receiveHandshake): Use messageFactory member.
  9677. (sendHandshake): Use messageFactory member.
  9678. (receiveMessage): Use messageFactory member.
  9679. * src/DefaultBtMessageFactory.h
  9680. (dispatcher): New variable.
  9681. (requestFactory): New variable.
  9682. (peerConnection): New variablle.
  9683. (setBtMessageDispatcher): New function.
  9684. (setBtRequestFactory): New function.
  9685. (setPeerConnection): New function.
  9686. * src/SharedHandle.h
  9687. (RefCount): New class.
  9688. (WeakHandle): New class.
  9689. * src/PeerObject.h
  9690. (BtMessageReceiver.h): New include.
  9691. (PeerObject): Added btMessageReceiver.
  9692. (btMessageReceiver): New variable.
  9693. * src/Util.cc
  9694. (countBit): Simplified.
  9695. * src/BtCancelMessage.cc
  9696. (doReceivedAction): Use dispatcher member.
  9697. * src/BtRequestFactory.h
  9698. (BtRequestFactoryWeakHandle): New type definition.
  9699. * src/PeerStorage.h
  9700. (downloadSpeed): int -> uint32_t
  9701. (uploadSpeed): int -> uint32_t
  9702. (sessionDownloadLength): long long int -> uint64_t
  9703. (sessionUploadLength): long long int -> uint64_t
  9704. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. To add RecoverableException, FatalException:
  9706. * src/AbstractCommand.cc
  9707. (onAbort): Exception -> RecoverableException
  9708. * src/PeerAbstractCommand.h
  9709. (RecoverableException.h): New include.
  9710. (onAbort): Exception -> RecoverableException.
  9711. * src/PeerInteractionCommand.cc
  9712. (onAbort): Exception -> RecoverableException.
  9713. * src/PeerAbstractCommand.cc
  9714. (execute): Exception -> RecoverableException.
  9715. (onAbort): Exception -> RecoverableException.
  9716. * src/TorrentRequestInfo.cc
  9717. (execute): Exception -> RecoverableException.
  9718. * src/MetalinkRequestInfo.cc
  9719. (execute): Exception -> RecoverableException.
  9720. * src/MetaFileUtil.cc: RecoverableException.
  9721. * src/AbstractCommand.h
  9722. (onAbort): Exception -> RecoverableException.
  9723. * src/DlRetryEx.h: Exception -> RecoverableException.
  9724. * src/DlAbortEx.h: Exception -> RecoverableException.
  9725. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9726. * src/Util.cc: Exception -> RecoverableException.
  9727. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9728. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9729. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9730. To make ID static const int
  9731. * src/BtInterestedMessage.h
  9732. (ID_t): Removed.
  9733. (ID): New variable.
  9734. (getId): Made non-const.
  9735. * src/BtPieceMessage.h
  9736. (ID_t): Removed.
  9737. (ID): New variable.
  9738. (getId): Made non-const.
  9739. * src/BtChokeMessage.h
  9740. (ID_t): Removed.
  9741. (ID): New variable.
  9742. (getId): Made non-const.
  9743. * src/BtHaveAllMessage.h
  9744. (ID_t): Removed.
  9745. (ID): New variable.
  9746. (getId): Made non-const.
  9747. * src/BtKeepAliveMessage.h
  9748. (ID_t): Removed.
  9749. (ID): New variable.
  9750. (getId): Made non-const.
  9751. * src/BtHandshakeMessage.h
  9752. (ID): New variable.
  9753. (getId): Made non-const.
  9754. * src/BtSuggestPieceMessage.h
  9755. (ID_t): Removed.
  9756. (ID): New variable.
  9757. (getId): Made non-const.
  9758. * src/BtPortMessage.h
  9759. (ID_t): Removed.
  9760. (ID): New variable.
  9761. (getId): Made non-const.
  9762. * src/AbstractBtMessage.h
  9763. (id): Removed.
  9764. (AbstractBtMessage): Removed id.
  9765. (getId): Removed.
  9766. * src/BtHaveMessage.h
  9767. (ID_t): Removed.
  9768. (ID): New variable.
  9769. (getId): Made non-const.
  9770. * src/BtAllowedFastMessage.h
  9771. (ID_t): Removed.
  9772. (ID): New variable.
  9773. (getId): Made non-const.
  9774. * src/BtCancelMessage.h
  9775. (ID_t): Removed.
  9776. (ID): New variable.
  9777. (getId): Made non-const.
  9778. * src/BtNotInterestedMessage.h
  9779. (ID_t): Removed.
  9780. (ID): New variable.
  9781. (getId): Made non-const.
  9782. * src/BtChokeMessage.h
  9783. (ID_t): Removed.
  9784. (ID): New variable.
  9785. (getId): Made non-const.
  9786. * src/BtRejectMessage.h
  9787. (ID_t): Removed.
  9788. (ID): New variable.
  9789. (getId): Made non-const.
  9790. * src/BtBitfieldMessage.h
  9791. (ID_t): Removed.
  9792. (ID): New variable.
  9793. (getId): Made non-const.
  9794. * src/BtUnchokeMessage.h
  9795. (ID_t): Removed.
  9796. (ID): New variable.
  9797. (getId): Made non-const.
  9798. * src/BtRequestMessage.h
  9799. (ID_t): Removed.
  9800. (ID): New variable.
  9801. (getId): Made non-const.
  9802. * src/BtHaveMessage.h
  9803. (ID_t): Removed.
  9804. (ID): New variable.
  9805. (getId): Made non-const.
  9806. To add --force-truncate command-line option and a check whether
  9807. the file already exists:
  9808. * src/DirectDiskAdaptor.h
  9809. (getFilePath): Made virtual public.
  9810. * src/MultiDiskAdaptor.h
  9811. (File.h): New include.
  9812. (DiskWriterEntry::fileEntry): Made private.
  9813. (DiskWriterEntry::fileExists): New function.
  9814. (DiskWriterEntry::getFileEntry): New function.
  9815. (fileExists): New function.
  9816. (getFilePath): New function.
  9817. * src/TorrentRequestInfo.cc
  9818. (FatalException.h): New include.
  9819. (message.h): New include.
  9820. (RecoverableException.h): New include.
  9821. (execute): Added a check whether file is already exists or not.
  9822. * src/DiskAdaptor.h
  9823. (fileExists): New function.
  9824. (getFilePath): New function.
  9825. * src/main.cc
  9826. (showUsage): Added an explanation of --force-truncate command-line
  9827. option.
  9828. (main): Added --force-truncate command-line option.
  9829. * src/Exception.h
  9830. (setMsg): buf[256] -> buf[1024]
  9831. * src/CopyDiskWriter.h
  9832. (getFilePath): Made public virtual.
  9833. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9834. (fileExists): New function.
  9835. * src/DownloadEngineFactory.cc
  9836. (newTorrentConsoleEngine): Don't open file here.
  9837. * src/message.h
  9838. (EX_FILE_ALREADY_EXISTS): New definition.
  9839. * src/prefs.h
  9840. (PREF_FOECE_TRUNCATE): New definition.
  9841. * src/HttpResponseCommand.cc
  9842. (handleDefaultEncoding): Added a check whether the file already exists.
  9843. * src/SegmentMan.h
  9844. (fileExists): New function.
  9845. (shouldCancelDownloadForSafety): New function.
  9846. * src/FtpNegotiateCommand.cc
  9847. (recvSize): Added a check whether the file already exists.
  9848. * src/AbstractSingleDiskAdaptor.cc
  9849. (File.h): New include.
  9850. (fileExists): New function.
  9851. * src/AbstractSingleDiskAdaptor.h
  9852. (getFilePath): Removed.
  9853. (fileExists): New function.
  9854. * src/SegmentMan.cc
  9855. (fileExists): New function.
  9856. (shouldCancelDownloadForSafety): New function.
  9857. To fix regression bug in torrent downloading:
  9858. * src/DefaultBtRequestFactory.cc
  9859. (doChokedAction): New function.
  9860. * src/DefaultBtRequestFactory.h
  9861. (doChokedAction): New function.
  9862. * src/DefaultBtMessageDispatcher.cc
  9863. (doChokedAction): Do not delete request if its target is in allowed
  9864. fast set.
  9865. * src/DefaultBtInteractive.cc
  9866. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9867. (sendKeepAlive): Send keep alive message even if the outgoing message
  9868. queue is not empty.
  9869. (decideInterest): Simplified the code.
  9870. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9871. it is already called when BtChokeMessage is received from a peer.
  9872. * src/BtRequestFactory.h
  9873. (doChokedAction): New function.
  9874. To clean up code:
  9875. * src/PeerInteractionCommand.h
  9876. (executeInternal): Added virtual keyword explicitly.
  9877. (prepareForRetry): Added virtual keyword explicitly.
  9878. (prepareForNextPeer): Added virtual keyword explicitly.
  9879. (onAbort): Added virtual keyword explicitly.
  9880. * src/RequestSlot.cc
  9881. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9882. * src/BtPieceMessage.cc
  9883. (doReceivedAction): Added a debug log of piece's bitfield.
  9884. * src/Piece.h
  9885. (getBitfieldLength): New function.
  9886. * src/ByteArrayDiskWriter.cc
  9887. (clear): Added buf = 0 to avoid double free corruption.
  9888. * src/FileAllocator.cc
  9889. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9890. Added cp.reset().
  9891. * src/BitfieldMan.h
  9892. (operator=): Rewritten.
  9893. * src/BitfieldMan.cc
  9894. (BitfieldMan): Initialized bitfield, useBitfield.
  9895. * src/PeerConnection.cc
  9896. (receiveMessage): Added a call to socket->readable() after getting
  9897. message length to avoid possible EOF.
  9898. * src/Util.cc
  9899. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9900. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. To add an ability to pre-allocate file space:
  9902. * src/DirectDiskAdaptor.h: Rewritten.
  9903. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9904. * src/MultiDiskAdaptor.h: Rewritten.
  9905. * src/DefaultPieceStorage.cc
  9906. (MultiDiskWriter.h): Removed include.
  9907. (PreAllocationDiskWriter.h): Removed include.
  9908. (FileAllocationMonitor.h): New include.
  9909. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9910. (initStorage): Rewritten.
  9911. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9912. * src/FileAllocator.h: New class.
  9913. * src/FileAllocator.cc: New class.
  9914. * src/FileAllocationMonitor.h: New class.
  9915. * src/FileAllocationMonitor.cc: New class.
  9916. * src/ConsoleFileAllocationMonitor.h: New class.
  9917. * src/ConsoleFileAllocationMonitor.cc: New class.
  9918. * src/AbstractSingleDiskAdaptor.h: New class.
  9919. * src/AbstractSingleDiskAdaptor.cc: New class.
  9920. * src/DiskAdaptor.h
  9921. (Directory.h): Removed include.
  9922. (DiskWriter.h): Removed include.
  9923. (FileEntry.h): Removed include.
  9924. (diskWriter): Removed.
  9925. (DiskAdaptor): Removed diskWriter.
  9926. (openFile): Made pure virtual.
  9927. (closeFile): Made pure virtual.
  9928. (openExistingFile): Made pure virtual.
  9929. (initAndOpenFile): Made pure virtual.
  9930. (writeData): Made pure virtual.
  9931. (readData): Made pure virtual.
  9932. (sha1Sum): Made pure virtual.
  9933. (getStoreDir): Returns const reference of storeDir.
  9934. (DiskAdaptorHandle): New type definition.
  9935. * src/main.cc
  9936. (ConsoleFileAllocationMonitor.h): New include.
  9937. (showUsage): Added default value description of -s option.
  9938. Added the description of --file-allocation option.
  9939. (main): Set default value of --file-allocation option to 'none'.
  9940. Added --file-allocation command-line option.
  9941. Setup FileAllocationMonitorFactory.
  9942. * src/FtpInitiateConnectionCommand.cc
  9943. (executeInternal): Removed diskWriter related processing, which was
  9944. moved to FtpNegotiationCommand.cc.
  9945. * src/DirectDiskAdaptor.cc
  9946. (getFilePath): Made non-const.
  9947. * src/CopyDiskAdaptor.h
  9948. (DiskAdaptor.h): Removed include.
  9949. (DiskWriter.h): Removed include.
  9950. (AbstractSingleDiskAdaptor.h): New include.
  9951. (getFilePath): Made non-const. Added virtual keyword.
  9952. (CopyDiskAdaptor): Removed diskWriter.
  9953. (getTempFile): Returns const reference.
  9954. (CopyDiskAdaptorHandle): New type definition.
  9955. * src/ByteArrayDiskWriter.cc
  9956. (clear): Simplified.
  9957. (initAndOpenFile): Rewritten.
  9958. (openFile): Call initAndOpenFile()
  9959. * src/MultiDiskAdaptor.cc: Rewritten.
  9960. * src/DownloadEngineFactory.cc
  9961. (FileAllocator.h): New include.
  9962. (FileAllocationMonitor.h): New include.
  9963. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9964. create DefaultDiskWriter with file allocator.
  9965. * src/DiskWriter.h
  9966. (initAndOpenFile): Added totalLength argument.
  9967. (openFile): Added totalLength argument.
  9968. * src/prefs.h
  9969. (PREF_FILE_ALLOCATION): New definition.
  9970. (V_PREALLOC): New definition.
  9971. (V_NONE): New definition.
  9972. * src/HttpResponseCommand.cc
  9973. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9974. size.
  9975. * src/FtpNegotiateCommand.cc
  9976. (Util.h): New include.
  9977. (recvSize): Open file here.
  9978. * src/Util.h
  9979. (ullitos): New function.
  9980. * src/CopyDiskWriter.h
  9981. (getFilePath): Made non-const.
  9982. * src/DefaultDiskWriter.h
  9983. (Option.h): New include.
  9984. (totalLength): Removed.
  9985. (DefaultDiskWriter): Removed totalLength.
  9986. (initAndOpenFile): Added totalLength argument.
  9987. (DefaultDiskWriterHandle): New type definition.
  9988. (createNewDiskWriter): New function.
  9989. * src/Util.cc
  9990. (ullitos): New function.
  9991. * src/DefaultDiskWriter.cc
  9992. (message.h): New include.
  9993. (FileAllocator.h): New include.
  9994. (prefs.h): New include.
  9995. (Util.h): New include.
  9996. (DefaultDiskWriter): Removed totalLength.
  9997. (initAndOpenFile): Added file allocation.
  9998. (createNewDiskWriter): New function. Just for temporary solution.
  9999. It will be rewritten later.
  10000. * src/DiskAdaptor.cc
  10001. (DiskAdaptor): Removed diskWriter.
  10002. * src/AbstractDiskWriter.cc
  10003. (LogFactory.h): New include.
  10004. (AbstractDiskWriter): Added fileAllocator, logger.
  10005. (openFile): Added totalLength argument.
  10006. * src/AbstractDiskWriter.h
  10007. (FileAllocator.h): New include.
  10008. (Logger.h): New include.
  10009. (fileAllocator): New variable.
  10010. (logger): New variable.
  10011. (openFile): Added totalLength argument. Added virtual keyword
  10012. explicitly.
  10013. (openExistingFile): Added totalLength argument. Added virtual keyword
  10014. explicitly.
  10015. (closeFile): Added virtual keyword explicitly.
  10016. (sha1Sum): Added virtual keyword explicitly.
  10017. (writeData): Added virtual keyword explicitly.
  10018. (readData): Added virtual keyword explicitly.
  10019. (setFileAllocator): New function.
  10020. * src/DefaultPieceStorage.h
  10021. (FileAllocator.h): New include.
  10022. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10023. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10024. * src/FileProgressMonitor.h: New class.
  10025. To compile aria2 on PC-BSD:
  10026. * src/DefaultBtContext.cc
  10027. (libgen.h): New include.
  10028. To fix memory leak:
  10029. * src/Exception.h
  10030. (~Exception): Delete cause. Fixed memory leak.
  10031. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10032. Rewritten a portion of bittorrent implementation:
  10033. * src/BtMessageValidator.h: New class.
  10034. * src/BtBitfieldMessageValidator.h: New class.
  10035. * src/BtHandshakeMessageValidator.h: New class.
  10036. * src/BtRequestMessageValidator.h: New class.
  10037. * src/BtSuggestPieceMessageValidator.h: New class.
  10038. * src/BtAllowedFastMessageValidator.h: New class.
  10039. * src/BtRejectMessageValidator.h: New class.
  10040. * src/BtCancelMessageValidator.h: New class.
  10041. * src/BtPieceMessageValidator.h: New class.
  10042. * src/BtHaveMessageValidator.h: New class.
  10043. * src/BtEventListener.h: New class.
  10044. * src/AbstractBtEventListener.h: New class.
  10045. * src/BtEvent.h: New class.
  10046. * src/BtChokingEvent.h: New class.
  10047. * src/BtChokedEvent.h: New class.
  10048. * src/BtCancelSendingPieceEvent.h: New class.
  10049. * src/BtAbortOutstandingRequestEvent.h: New class.
  10050. * src/Randomizer.h: New class.
  10051. * src/SimpleRandomizer.h: New class.
  10052. * src/BtMessage.h: New class.
  10053. * src/AbstractBtMessage.h: New class.
  10054. * src/SimpleBtMessage.h: New class.
  10055. * src/BtHaveMessage.h: New class.
  10056. * src/BtInterestedMessage.h: New class.
  10057. * src/BtAllowedFastMessage.h: New class.
  10058. * src/BtUnchokeMessage.h: New class.
  10059. * src/BtCancelMessage.h: New class.
  10060. * src/BtNotInterestedMessage.h: New class.
  10061. * src/BtChokeMessage.h: New class.
  10062. * src/BtHaveNoneMessage.h: New class.
  10063. * src/BtHandshakeMessage.h: New class.
  10064. * src/BtSuggestPieceMessage.h: New class.
  10065. * src/BtHaveMessage.h: New class.
  10066. * src/BtPieceMessage.h: New class.
  10067. * src/BtHaveAllMessage.h: New class.
  10068. * src/BtKeepAliveMessage.h: New class.
  10069. * src/BtPortMessage.h: New class.
  10070. * src/BtRejectMessage.h: New class.
  10071. * src/BtBitfieldMessage.h: New class.
  10072. * src/BtRequestMessage.h: New class.
  10073. * src/DefaultBtRequestFactory.h: New class.
  10074. * src/DefaultBtMessageReceiver.h: New class.
  10075. * src/BtInteractive.h: New class.
  10076. * src/BtMessageDispatcher.h: New class.
  10077. * src/DefaultBtMessageDispatcher.h: New class.
  10078. * src/DefaultBtInteractive.h: New class.
  10079. * src/BitfieldManFactory.h: New class.
  10080. * src/HandleRegistry.h: New class.
  10081. * src/BtMessageFactory.h: New class.
  10082. * src/BtMessageReceiver.h: New class.
  10083. * src/DefaultBtMessageFactory.h: New class.
  10084. * src/PeerObject.h: New class.
  10085. * src/BtRequestFactory.h: New class.
  10086. * src/SuggestPieceMessage.h: Removed.
  10087. * src/PortMessage.h: Removed.
  10088. * src/SuggestPieceMessage.h: Removed.
  10089. * src/KeepAliveMessage.h: Removed.
  10090. * src/HandshakeMessage.h: Removed.
  10091. * src/PeerInteraction.h: Removed.
  10092. * src/UnchokeMessage.h: Removed.
  10093. * src/PieceMessage.h: Removed.
  10094. * src/RequestMessage.h: Removed.
  10095. * src/InterestedMessage.h: Removed.
  10096. * src/HaveMessage.h: Removed.
  10097. * src/CancelMessage.h: Removed.
  10098. * src/RejectMessage.h: Removed.
  10099. * src/AllowedFastMessage.h: Removed.
  10100. * src/HaveNoneMessage.h: Removed.
  10101. * src/SimplePeerMessage.h: Removed.
  10102. * src/HaveAllMessage.h: Removed.
  10103. * src/BitfieldMessage.h: Removed.
  10104. * src/PeerMessageFactory.h: Removed.
  10105. * src/NotInterestedMessage.h: Removed.
  10106. * src/ChokeMessage.h: Removed.
  10107. * src/PeerMessage.h: Removed.
  10108. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10109. To know root cause of exception:
  10110. * src/Exception.h
  10111. (cause): New variable.
  10112. (Exception): Added a parameter.
  10113. (getMsg): Return const reference to msg.
  10114. (getCause): New function.
  10115. * src/DlRetryEx.h
  10116. (DlRetryEx): Added a parameter 'cause'.
  10117. Added an overloaded constructor.
  10118. (DlAbortEx): Added a parameter 'cause'.
  10119. Added an overloaded constructor.
  10120. * src/SimpleLogger.cc
  10121. (writeLog): Log nested exception messages recursively.
  10122. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10123. * src/DefaultBtProgressInfoFile.cc
  10124. (load): Fixed memory leak when the infohash doesn't match.
  10125. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10126. * src/DefaultPeerStorage.cc
  10127. (calculateStat): Simplified the code by combining 2 loops into 1.
  10128. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10129. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10130. for BitTorrent download:
  10131. * src/PeerAbstractCommand.cc
  10132. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10133. * src/main.cc:
  10134. (timeoutSpecified): Removed.
  10135. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10136. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10137. * src/TorrentRequestInfo.cc
  10138. (timeoutSpecified): Removed.
  10139. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10140. timeout value.
  10141. * src/prefs.h
  10142. (PREF_BT_TIMEOUT): New definition.
  10143. Delete unused variables:
  10144. * src/TorrentRequestInfo.cc
  10145. (requestInfo): Removed.
  10146. Move setSignalHander to Util::setGlobalSignalHandler:
  10147. * src/TorrentRequestInfo.cc:
  10148. setSignalHander -> Util::setGlobalSignalHandler
  10149. * src/main.cc
  10150. (setSignalHander): Removed.
  10151. (main): setSignalHander -> Util::setGlobalSignalHandler
  10152. * src/Util.h
  10153. (setGlobalSignalHandler): New function.
  10154. * src/Util.cc
  10155. (setGlobalSignalHandler): New function.
  10156. * src/UrlRequestInfo.cc:
  10157. setSignalHander -> Util::setGlobalSignalHandler
  10158. Reset peer status in order to exit gracefully:
  10159. * src/PeerAbstractCommand.cc
  10160. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10161. To fix the bug that causes the number of bytes uploaded is not saved
  10162. to .aria2 file:
  10163. * src/DefaultPeerStorage.h
  10164. (removedPeerSessionDownloadLength): New variable.
  10165. (removedPeerSessionUploadLength): New variable.
  10166. * src/DefaultPeerStorage.cc
  10167. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10168. removedPeerSessionUploadLength(0).
  10169. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10170. through all peers, and then add removedPeerSessionDownloadLength(
  10171. removedPeerSessionUploadLength) to it.
  10172. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10173. (to) the peer to removedPeerSessionDownloadLength
  10174. (removedPeerSessionUploadLength).
  10175. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10176. To add Metalink location option:
  10177. * src/MetalinkRequestInfo.cc
  10178. (execute): Call MetalinkEntry::setLocationPreference()
  10179. * src/main.cc
  10180. (showUsage): Added the help message for --metalink-location option.
  10181. (main): Added --metalink-location option.
  10182. * src/prefs.h
  10183. (PREF_METALINK_LOCATION): New definition.
  10184. * src/MetalinkEntry.cc
  10185. (AddLocationPreference): New function object.
  10186. (setLocationPreference): New function.
  10187. * src/Xml2MetalinkProcessor.cc
  10188. (getResource): Set location attribute to MetalinkResource
  10189. To show URLs to download
  10190. * src/UrlRequestInfo.h
  10191. (printUrls): New function.
  10192. To add multiple <file> Metalink support:
  10193. * src/MetalinkEntry.h
  10194. (MetalinkResources): Removed.
  10195. (setLocationPreference): New function.
  10196. (MetalinkEntryHandle): New type definition.
  10197. (MetalinkEntries): New type definition.
  10198. * src/Xml2MetalinkProcessor.h
  10199. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10200. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10201. (parseFile): Metalinker* -> MetalinkerHandle
  10202. * src/UrlRequestInfo.h
  10203. (execute): RequestInfo* -> RequestInfos
  10204. * src/MetalinkRequestInfo.cc
  10205. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10206. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10207. (execute): RequestInfo* -> RequestInfos
  10208. Added multiple <file> support. Print filename when it is queued.
  10209. * src/MetalinkRequestInfo.h
  10210. (execute): RequestInfo* -> RequestInfos
  10211. (getDownloadEngine): Removed.
  10212. * src/RequestInfo.h
  10213. (RequestInfoHandle): New type definition.
  10214. (RequestInfos): New type definition.
  10215. (execute): RequestInfo* -> RequestInfos
  10216. (getDownloadEngine): Removed.
  10217. * src/MetalinkResource.h
  10218. (MetalinkResourceHandle): New type definition.
  10219. (MetalinkResources): New type definition.
  10220. * src/MetalinkEntry.cc
  10221. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10222. because the element is now of type MetalinkResourceHandle.
  10223. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10224. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10225. (dropUnsupportedResource): Removed the deletion of the elements of
  10226. resources because the element is now of type MetalinkResourceHandle.
  10227. * src/Xml2MetalinkProcessor.cc
  10228. (parseFile): Metalinker* -> MetalinkerHandle
  10229. MetalinkEntry* -> MetalinkEntryHandle
  10230. Removed try-catch block.
  10231. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10232. MetalinkResource* -> MetalinkResourceHandle
  10233. Removed try-catch block.
  10234. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10235. Free result by using xmlXPathFreeObject()
  10236. * src/Metalinker.cc
  10237. (~Metalinker): Removed the deletion of entries.
  10238. MetalinkEntry* -> MetalinkEntryHandle
  10239. (queryEntry): Add multiple <file> Metalink support.
  10240. * src/Metalinker.h
  10241. (MetalinkEntries): Removed.
  10242. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10243. * src/MetalinkProcessor.h
  10244. (parseFile): Metalinker* -> MetalinkerHandle
  10245. Bug fixes:
  10246. * src/PeerChokeCommand.cc
  10247. (execute): cat01->cat02
  10248. * src/DefaultPieceStorage.cc
  10249. (DefaultPieceStorage): Added diskAdaptor(0)
  10250. * src/TrackerWatcherComand.cc:
  10251. (execute): Use btAnnounce->noMoreAnnounce()
  10252. to determin whether the function returns true or not.
  10253. * src/TrackerUpdateCommand.cc:
  10254. (execute): Use btAnnounce->noMoreAnnounce()
  10255. to determin whether the function returns true or not.
  10256. * src/FtpConnection.cc
  10257. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10258. This is the fix of the busy loop bug.
  10259. * src/DownloadCommand.cc
  10260. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10261. cached PeerStat.
  10262. The value of "name" entry in torrent file is now set by
  10263. *DiskAdaptor::setTopDir(...) methods.
  10264. * src/MultiDiskAdaptor.h
  10265. (topDir): New variable.
  10266. (setTopDir): New function.
  10267. (getTopDir): New function.
  10268. * src/MultiDiskAdaptor.cc
  10269. (getFilePath): Concat storDir, "/" and topDir.
  10270. (mkdir): Use getFilePath() to get the directory path for output.
  10271. * src/DefaultPieceStorage.cc
  10272. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10273. CopyDiskAdaptor.
  10274. * src/CopyDiskAdaptor.h
  10275. (topDir): New variable.
  10276. (setTopDir): New function.
  10277. (getTopDir): New function.
  10278. * src/CopyDiskAdaptor.cc
  10279. (fixFilename): Updated.
  10280. Misc
  10281. * src/UrlRequestInfo.h
  10282. (e): Removed.
  10283. (UrlRequestInfo): Removed e.
  10284. (getDownloadEngine): Removed.
  10285. * src/UrlRequestInfo.cc
  10286. (handler): Rewritten.
  10287. (printUrls): New function.
  10288. (execute): Call printUrls().
  10289. * src/HandshakeMessage.cc
  10290. (check): peerinteraction->getBtContext() -> btContext
  10291. * src/PeerInteraction.h
  10292. (getBtContext): Removed.
  10293. * src/TorrentRequestInfo.h
  10294. (execute): RequestInfo* -> RequestInfos
  10295. (getDownloadEngine): Removed.
  10296. * src/TorrentRequestInfo.cc
  10297. (haltRequested): Removed.
  10298. (btHaltRequested): New variable.
  10299. (torrentHandler): haltRequested -> btHaltRequested
  10300. (execute): RequestInfo* -> RequestInfos
  10301. * src/TorrentConsoleDownloadEngine.cc
  10302. (afterEachIteration): haltRequested -> btHaltRequested.
  10303. * src/ConsoleDownloadEngine.h
  10304. (initStatistics): Added virtual.
  10305. (calculateStatistics): Added virtual.
  10306. (onEndOfRun): Added virtual.
  10307. (afterEachIteration): Added virtual.
  10308. * src/ConsoleDownloadEngine.cc
  10309. (haltRequested): New variable.
  10310. (afterEachIteration): New function.
  10311. * src/main.cc
  10312. (requestInfo): Removed.
  10313. * src/SegmentMan.cc
  10314. (findSlowerSegmentEntry): Refactored.
  10315. * Release 0.9.0
  10316. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10317. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10318. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10319. * src/TorrentMan.h: Removed.
  10320. * src/TorrentMan.cc: Removed.
  10321. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10322. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10323. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10324. * src/PeerAbstractCommand.cc: Use btRuntime.
  10325. * src/BtContextAwareCommand.h: New class.
  10326. * src/FileEntry.h: Added accessor methods for following variables.
  10327. (path): Made private.
  10328. (length): Made private.
  10329. (offset): Made private.
  10330. (extracted): Made private.
  10331. (requested): Made private.
  10332. (FileEntries): New definition.
  10333. (FileEntryHandle): New definition.
  10334. * src/FileEntry.cc: New file.
  10335. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10336. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10337. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10338. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10339. * src/PieceStorage.h: New file.
  10340. * src/PeerInteractionCommand.h: Use btContext.
  10341. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10342. btRuntime.
  10343. * src/DefaultBtProgressInfoFile.h: New file.
  10344. * src/DefaultBtProgressInfoFile.cc: New file.
  10345. * src/File.cc
  10346. (Util.h): New include.
  10347. (mkdirs): New function.
  10348. * src/MultiDiskAdaptor.h
  10349. (mkdir): New function.
  10350. * src/PeerListProcessor.h
  10351. (Peers): Removed.
  10352. * src/PeerInteraction.h
  10353. (torrentMan): Removed.
  10354. (btContext): New variable.
  10355. (peerStorage): New variable.
  10356. (pieceStorage): New variable.
  10357. (btAnnounce): New variable.
  10358. (getTorrentMan): Removed.
  10359. (getBtContext): New function.
  10360. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10361. btAnnounce.
  10362. * src/HandshakeMessage.h
  10363. (TorrentMan.h): Removed.
  10364. * src/HandshakeMessage.cc: Use btContext.
  10365. * src/DefaultBtAnnounce.cc: New file.
  10366. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10367. * src/DefaultPieceStorage.cc: New file.
  10368. * src/DefaultBtContext.h: New file.
  10369. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10370. Use the accessor methods of FileEntry.
  10371. * src/CookieBox.cc: Updated to use Util::slice().
  10372. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10373. * src/common.h (SharedHandle.h): New include.
  10374. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10375. pieceStorage.
  10376. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10377. * src/DiskAdaptor.h
  10378. (topDir): Removed.
  10379. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10380. (setTopDir): Removed.
  10381. (getTopDir): Removed.
  10382. * src/BtContext.h: New file.
  10383. * src/DefaultPeerStorage.h: New file.
  10384. * src/PieceMessage.h (TorrentMan.h): Removed.
  10385. * src/RequestMessage.h (TorrentMan.h): Removed.
  10386. * src/TorrentDownloadEngine.h
  10387. (uploadLength): New variable.
  10388. (btContext): New variable.
  10389. (btRuntime): New variable.
  10390. (pieceStorage): New variable.
  10391. (peerStorage): New variable.
  10392. (btAnnounce): New variable.
  10393. (btProgressInfoFile): New variable.
  10394. (torrentMan): Removed.
  10395. (setBtContext): New function.
  10396. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10397. peerStorage, btAnnounce, btProgressInfoFile.
  10398. * src/Piece.h
  10399. (toString): New function.
  10400. (Pieces): New type definition.
  10401. * src/Peer.h
  10402. (active): New variable.
  10403. (Peer): Added active.
  10404. (activate): Set active to true.
  10405. (deactivate): Set active to false.
  10406. (isActive): New function.
  10407. (Peers): New type definition.
  10408. * src/DirectDiskAdaptor.cc
  10409. (getFilePath): Use the accessor methods of FileEntry.
  10410. * src/TorrentConsoleDownloadEngine.h
  10411. (afterEachIteration): New function.
  10412. * src/TorrentConsoleDownloadEngine.cc
  10413. (haltRequested): New variable.
  10414. (sendStatistics): Use pieceStorage, btRuntime.
  10415. (afterEachIteration): New function.
  10416. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10417. * src/Directry.h
  10418. (Directory): New function.
  10419. (DirectoryHandle): New type definition.
  10420. * src/BtProgressInfoFile.h: New file.
  10421. * src/RequestMessage.cc: Use pieceStorage.
  10422. * src/BtRuntime.h: New file.
  10423. * src/DefaultBtContext.cc: New file.
  10424. * src/BitfieldMan.h
  10425. (getCompletedLength): New function(private).
  10426. (getCompletedLength): New function.
  10427. (getFilteredCompletedLength): New function.
  10428. * src/BitfieldMan.h
  10429. (getCompletedLength): New function(private).
  10430. (getCompletedLength): New function.
  10431. (getFilteredCompletedLength): New function.
  10432. * src/MultiDiskAdaptor.cc
  10433. (mkdir): New function.
  10434. (openFile): Call mkdir().
  10435. (initAndOpenFile): Call mkdir().
  10436. * src/CancelMessage.h
  10437. (TorrentMan.h): Removed.
  10438. * src/RejectMessage.h
  10439. (TorrentMan.h): Removed.
  10440. * src/DownloadEngineFactory.cc
  10441. (DefaultPieceStorage.h): New include.
  10442. (DefaultPeerStorage.h): New include.
  10443. (DefaultBtAnnounce.h): New include.
  10444. (DefaultBtProgressInfoFile.h): New include.
  10445. (newTorrentConsoleEngine): Rewritten.
  10446. * src/ShareRatioSeedCriteria.h
  10447. (torrentMan): Removed.
  10448. (btContext): New variable.
  10449. (peerStorage): New variable.
  10450. (btRuntime): New variable.
  10451. (evaluate): Use btContext, btRuntime, peerStorage.
  10452. * src/AnnounceTier.h: New file.
  10453. * src/BtAnnounce.h: New file.
  10454. * src/BtRegistry.h: New file.
  10455. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10456. * src/PeerConnection.h (TorrentMan.h): Removed.
  10457. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10458. * src/Util.h
  10459. (slice): Added an argument.
  10460. * src/Util.cc
  10461. (slice): Added an argument to control whether trim is made or not.
  10462. * src/PeerStorage.h: New file.
  10463. * src/BtRegistry.cc: New file.
  10464. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10465. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10466. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10467. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10468. * src/TorrentRequestInfo.h
  10469. (e): Removed.
  10470. (showFileEntry): Added an argument.
  10471. (getDownloadEngine): Return 0.
  10472. * src/DefaultBtAnnounce.h: New file.
  10473. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10474. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10475. * src/PeerMessageFactory.h
  10476. (btContext): New variable.
  10477. (pieceStorage): New variable.
  10478. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10479. btAnnounce.
  10480. * src/DiskAdaptor.cc
  10481. (DiskAdaptor): Removed topDir.
  10482. (~DiskAdaptor): Removed topDir.
  10483. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10484. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10485. * src/File.h (mkdirs): New function.
  10486. * src/DefaultPeerStorage): New file.
  10487. * src/DownloadEngineFactory.h
  10488. (newTorrentConsoleEngine): Use btContext.
  10489. * src/BtContextAwareCommand.cc: New file.
  10490. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10491. * src/PeerMessage.h
  10492. (btContext): New variable.
  10493. (peerStorage): New variable.
  10494. (pieceStorage): New variable.
  10495. (setBtContext): New function.
  10496. * src/Directry.cc
  10497. (Directory): New function.
  10498. (createDir): Do nothing if name.size() == 0.
  10499. * src/AnnounceList.h
  10500. (AnnounceTier): Removed.
  10501. (AnnounceTiers): Removed.
  10502. * src/DefaultPieceStorage.h: New file.
  10503. * src/Piece.cc (toString): New function.
  10504. To fix typo:
  10505. * src/main.cc (showVersion): Fixed typo.
  10506. To fix compile warning:
  10507. * src/DelegatingPeerListProcessor.cc
  10508. (canHandle): Added "return false".
  10509. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10510. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10511. make the process of announce request testable.
  10512. * src/TrackerWatcherCommand.h
  10513. (TimeA2.h): Removed.
  10514. (interval): Removed.
  10515. (checkPoint): Removed.
  10516. (createRequestCommand): Added an argument 'url'.
  10517. (TrackerWatherCommand): Removed interval.
  10518. (createCommand): New function.
  10519. * src/DownloadEngineFactory.cc
  10520. (newTorrentConsoleEngine): Updated according to the changes in
  10521. TrackerWatherCommand.
  10522. * src/TorrentMan.cc
  10523. (DelegatingPeerListProcessor.h): New includes.
  10524. (TorrentMan): Added the initialization of announceInterval.
  10525. (isStoppedAnnounceReady): New function.
  10526. (isCompletedAnnounceReady): New function.
  10527. (isDefaultAnnounceReady): New function.
  10528. (isAnnounceReady): New function.
  10529. (getAnnounceUrl): New function.
  10530. (announceStart): New function.
  10531. (announceFailure): New function.
  10532. (announceSuccess): New function.
  10533. (isAllAnnounceFailed): New function.
  10534. (resetAnnounce): New function.
  10535. (processAnnounceResponse): New function.
  10536. (needMorePeerConnection): New function.
  10537. (noMoreAnnounce): New function.
  10538. * src/TrackerUpdateCommand.h
  10539. (getTrackerResponse): int->size_t
  10540. * src/TorrentMan.h
  10541. (isStoppedAnnounceReady): New function.
  10542. (isCompletedAnnounceReady): New function.
  10543. (isDefaultAnnounceReady): New function.
  10544. (announceInterval): New variable.
  10545. (isAnnounceReady): New function.
  10546. (getAnnounceUrl): New function.
  10547. (announceStart): New function.
  10548. (announceFailure): New function.
  10549. (announceSuccess): New function.
  10550. (isAllAnnounceFailed): New function.
  10551. (resetAnnounce): New function.
  10552. (processAnnounceResponse): New function.
  10553. (needMorePeerConnection): New function.
  10554. (noMoreAnnounce): New function.
  10555. * src/TrackerWatcherCommand.cc
  10556. (TrackerWatherCommand): Removed interval and checkPoint.
  10557. (execute): Rewritten.
  10558. (createCommand): New function.
  10559. (createRequestCommand): Rewritten.
  10560. * src/TrackerUpdateCommand.cc
  10561. (MetaFileUtil.h): Removed.
  10562. (DelegatingPeerListProcessor.h): Removed.
  10563. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10564. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10565. Request -> RequestHandle:
  10566. * src/HttpResponseCommand.h: Request->RequestHandle
  10567. * src/AbstractCommand.cc: Request->RequestHandle
  10568. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10569. * src/HttpRequestCommand.cc: Request->RequestHandle
  10570. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10571. * src/AbstractCommand.h: Request->RequestHandle
  10572. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10573. * src/HttpResponseCommand.cc: Request->RequestHandle
  10574. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10575. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10576. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10577. * src/HttpConnection.h: Request->RequestHandle
  10578. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10579. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10580. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10581. * src/DownloadCommand.h: Request->RequestHandle
  10582. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10583. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10584. * src/HttpRequestCommand.h: Request->RequestHandle
  10585. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10586. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10587. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10588. * src/HttpDownloadCommand.h: Request->RequestHandle
  10589. * src/FtpConnection.cc: Request->RequestHandle
  10590. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10591. * src/UrlRequestInfo.cc: Request->RequestHandle
  10592. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10593. * src/HttpConnection.h: Request->RequestHandle
  10594. * src/DownloadCommand.cc: Request->RequestHandle
  10595. * src/FtpConnection.h: Request->RequestHandle
  10596. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10597. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10598. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10599. * src/Request.h
  10600. (SharedHandle.h): New include.
  10601. (RequestHandle): New type definition.
  10602. (Requests): Redefined.
  10603. To add MULTITRACKER support:
  10604. * src/TrackerWatcherCommand.h
  10605. (createRequestCommand): New function.
  10606. * src/DownloadEngineFactory.cc
  10607. (newTorrentConsoleEngine): Removed req.
  10608. * src/prefs.h
  10609. (PREF_TRACKER_MAX_TRIES): New definition.
  10610. * src/TorrentMan.cc
  10611. (TorrentMan): Removed req. Added trackerNumTry.
  10612. (~TorrentMan): Removed req.
  10613. (setupInternal1): Added announceList.
  10614. * src/TorrentRequestInfo.cc
  10615. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10616. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10617. * src/main.cc
  10618. (main): Added PREF_TRACKER_MAX_TRIES.
  10619. * src/TorrentMan.h
  10620. (Request.h): Removed.
  10621. (AnnounceList.h): New include.
  10622. (trackerNumTry): New variable.
  10623. (req): Removed.
  10624. (announceList): New variable.
  10625. * src/TrackerWatcherCommand.cc
  10626. (execute): Rewritten.
  10627. (createRequestCommand): New function.
  10628. * src/TrackerUpdateCommand.cc
  10629. (execute): Updated with the use of AnnounceList.
  10630. * src/AnnounceList.cc: New class.
  10631. * src/AnnounceList.h: New class.
  10632. To fix typo:
  10633. * src/prefs.h
  10634. (PREF_MAX_TRIES): max_try->max_tries
  10635. To not to decode "+" as space in URL decode:
  10636. * src/Util.cc
  10637. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10638. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10639. To add timeout to async name resolution:
  10640. * src/AbstractCommand.h
  10641. (nameResolveFinished): New function. This is not elegant way. It needs
  10642. to be more refined.
  10643. (nameResolverCheck): New variable.
  10644. * src/AbstractCommand.cc
  10645. (AbstractCommand): Added nameResolverCheck.
  10646. (execute): Added the check whether the name resolution has finished.
  10647. (setNameResolverCheck): Set nameResolverCheck to true.
  10648. (disableNameResolverCheck): Set nameResolverCheck to false.
  10649. (nameResolverFinished): New function.
  10650. * src/FtpInitiateConnectionCommand.h
  10651. (nameResolverFinished): New function.
  10652. * src/FtpInitiateConnectionCommand.cc
  10653. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10654. * src/HttpInitiateConnectionCommand.h
  10655. (nameResolverFinished): New function.
  10656. * src/HttpInitiateConnectionCommand.cc
  10657. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10658. * src/prefs.h
  10659. (PREF_DNS_TIMEOUT): New definition.
  10660. * src/main.cc
  10661. (main): Added PREF_DNS_TIMEOUT.
  10662. To add the support for a non-compact response from a tracker:
  10663. * src/PeerListProcessor.h: New class.
  10664. * src/DefaultPeerListProcessor.h: New class.
  10665. * src/DefaultPeerListProcessor.cc: New class.
  10666. * src/CompactPeerListProcessor.h: New class.
  10667. * src/CompactPeerListProcessor.cc: New class.
  10668. * src/DelegatingPeerListProcessor.h: New class.
  10669. * src/DelegatingPeerListProcessor.cc: New class.
  10670. * src/TorrentMan.cc
  10671. (addPeer): New function(overload).
  10672. (addPeer): Delete unused peers only when new peer is added.
  10673. * src/TorrentMan.h
  10674. (PeerListProcessor.h): Included.
  10675. (Peers): Removed.
  10676. (addPeer): New function(overload).
  10677. * src/TrackerUpdateCommand.cc
  10678. (netinet/in.h): Removed.
  10679. (DelegatingPeerListProcessor.h): Included.
  10680. (execute): Updated to use DelegatingPeerListProcessor.
  10681. To fix the memory leak in TorrentMan::peers:
  10682. * src/PeerAbstractCommand.cc
  10683. (onAbort): Added peer->resetStatus().
  10684. * src/Peer.h
  10685. (resetStatus): Made public.
  10686. To improve the precision of the speed calculation:
  10687. * src/SpeedCalc.h
  10688. (nextInterval): New variable.
  10689. * src/SpeedCalc.cc
  10690. (reset): Added nextInterval.
  10691. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10692. (changeSw): Set nextInterval to 15 seconds relative to the current
  10693. instant time.
  10694. * src/main.cc
  10695. (showVersion): Updated.
  10696. (showUsage): Updated.
  10697. * Release 0.8.1
  10698. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10699. * src/main.cc
  10700. (showUsage): Commented out --min-segment-size option.
  10701. (main): Commented out --min-segment-size option.
  10702. * Release 0.8.0
  10703. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10704. * src/*.{h,cc}:
  10705. Added an exception to the license which allows linking with OpenSSL.
  10706. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10707. * src/AbstractCommand.cc
  10708. (execute): Check whether the download has finished before checking
  10709. socket status.
  10710. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10711. Do not exit even if no segment is available.
  10712. * src/prefs.h
  10713. (PREF_STARTUP_IDLE_TIME): New definition.
  10714. * src/PeerInteractionCommand.cc
  10715. (executeInternal): Removed max speed limit. Because it performs bad.
  10716. (receiveMessages): Added max speed limit. This was better than above,
  10717. but still a little bit to be desired. Sometimes the download speed
  10718. became much faster than I specified.
  10719. * src/SpeedCalc.h
  10720. (start): New variable.
  10721. (accumulatedLength): New variable.
  10722. (getAvgSpeed): New function.
  10723. * src/SpeedCalc.cc
  10724. (reset): Added start, accumulatedLength.
  10725. (update): Added calculation of an average speed.
  10726. (getAvgSpeed): New function.
  10727. * src/DownloadCommand.h
  10728. (sw): Removed.
  10729. * src/main.cc
  10730. (main): Added PREF_STARTUP_IDLE_TIME.
  10731. * src/PeerStat.h
  10732. (STATUS): Added REQUEST_IDLE.
  10733. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10734. (getAvgDownloadSpeed): New function
  10735. (requestIdle): New function.
  10736. * src/SegmentMan.h
  10737. (SegmentEntryHandle): New type definition.
  10738. (SegmentEntries): Now holds SegmentEntryHandle.
  10739. (findSlowerSegmentEntry): New funtion.
  10740. * src/SegmentMan.cc
  10741. (save): Updated according to the changes in SegmentEntries.
  10742. (read): Updated according to the changes in SegmentEntries.
  10743. (FindSegmentEntryByIndex): Updated according to the changes in
  10744. SegmentEntries.
  10745. (FindSegmentEntryByCuid): Updated according to the changes in
  10746. SegmentEntries.
  10747. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10748. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10749. Renamed uitr as itr.
  10750. (findSlowerSegmentEntry): New function.
  10751. (getSegment): Updated according to the changes in SegmentEntries.
  10752. Added the feature that cancels the segment with slow server and fast
  10753. one takes it over.
  10754. (cancelSegment): Updated according to the changes in SegmentEntries.
  10755. (getDownloadLength): Updated according to the changes in
  10756. SegmentEntries.
  10757. (init): Assigned 0 to bitfield after deleting it.
  10758. * src/DownloadCommand.cc
  10759. (STARTUP_IDLE_TIME): Removed.
  10760. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10761. * src/PeerChokeCommand.cc
  10762. (optUnchokingPeer): Updated according to the changes in Peer.
  10763. (ResetDelta): Removed.
  10764. (UploadFaster): Updated according to the changes in Peer.
  10765. (DownloadFaster): Updated according to the changes in Peer.
  10766. (execute): I clarify the meaning of "upload" and "download" here.
  10767. "upload" means the transfer from localhost to remote host.
  10768. "download" means the transfer from remote host to localhost.
  10769. Based on this rule, I swapped orderByUploadRate and
  10770. orderByDownloadRate.
  10771. * src/PeerInteractionCommand.cc
  10772. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10773. (executeInternal): Removed the argument of
  10774. peerInteraction->sendMessages().
  10775. (receiveMessages): Rewritten download speed limit.
  10776. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10777. * src/HttpResponseCommand.cc
  10778. (handleDefaultEncoding): If file size is unknown in torrent request,
  10779. do not call segmentMan->initBitfield() here.
  10780. Disabled persistent connection feature in torrent request.
  10781. * src/UrlRequestInfo.h
  10782. (UrlRequestInfo): Removed const qualifier from option.
  10783. * src/TorrentMan.h
  10784. (TransferStat): New class.
  10785. (deltaDownloadLength): Removed.
  10786. (deltaUploadLength): Removed.
  10787. (addDeltaDownloadLength): Removed.
  10788. (getDeltaDownloadLength): Removed.
  10789. (resetDeltaDownloadLength): Removed.
  10790. (addDeltaUploadLength): Removed.
  10791. (getDeltaUploadLength): Removed.
  10792. (resetDeltaUploadLength): Removed.
  10793. (addActivePeer): Added peer->activate().
  10794. (deleteActivePeer): Added peer->deactivate().
  10795. (calculateStat): New function.
  10796. * src/TorrentMan.cc
  10797. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10798. (calculateStat): New function.
  10799. * src/PeerInteraction.h
  10800. (uploadLimit): Removed.
  10801. (option): New variable.
  10802. (setUploadLimit): Removed.
  10803. (getUploadSpeed): Removed.
  10804. (sendMessages): Removed the argument "currentUploadSpeed".
  10805. * src/PeerInteraction.cc
  10806. (prefs.h): Included.
  10807. (PeerInteraction): Removed uploadLimit. Added option.
  10808. (sendMessages): Rewritten upload speed limit.
  10809. (sendHandshake): Removed the argument from sendMessages().
  10810. (sendBitfield): Removed the argument from sendMessages().
  10811. * src/PeerAbstractCommand.cc
  10812. (execute): Commented out the portion of upload limit.
  10813. (onAbort): Removed peer->resetStatus().
  10814. * src/TorrentRequestInfo.cc
  10815. (timeoutSpecified): Declared extern.
  10816. (execute): Set timeout to 180 if timeout is not specified by.
  10817. command-line.
  10818. * src/PieceMessage.cc
  10819. (receivedAction): Added peer->updateDownloadLength().
  10820. Removed peer->addPeerUpload().
  10821. Removed torrentMan->addDeltaDownloadLength().
  10822. (send): Added peer->updateUploadLength().
  10823. Removed peer->addPeerDownload().
  10824. Removed torrentMan->addDeltaUploadLength().
  10825. * src/main.cc
  10826. (timeoutSpecified): New variable.
  10827. (main): Set timeoutSpecified to false.
  10828. If the command-line option "--upload-limit" is specified, then
  10829. timeoutSpecified is set to true. This option will remain in the next
  10830. release, but be deprecated in the future release.
  10831. * src/TorrentRequestInfo.h
  10832. (TorrentRequestInfo): Removed const qualifier from op.
  10833. * src/PeerStat.h
  10834. (uploadSpeed): New variable.
  10835. (PeerStat): Added default value to cuid.
  10836. (calculateUploadSpeed): New function.
  10837. (updateUploadLength): New function.
  10838. (getMaxUploadSpeed): New function.
  10839. (getAvgUploadSpeed): New function.
  10840. (reset): Added uploadSpeed. Set status to IDLE.
  10841. * src/TorrentDownloadEngine.h
  10842. (cp): Declared as Time.
  10843. (sessionDownloadLengthArray): Removed.
  10844. (sessionUploadLengthArray): Removed.
  10845. (currentCp): Removed.
  10846. (lastCalcStat): New variable
  10847. (lastElapsed): Removed.
  10848. (sessionDownloadLength): Removed.
  10849. (calculateStat): New function.
  10850. * src/TorrentDownloadEngine.cc
  10851. (initStatistics): Removed lastElapsed, cp[],
  10852. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10853. currentCp, sessionDownloadLength.
  10854. Added cp.reset() and lastCalcStat.reset().
  10855. (calculateSpeed): Changed the name of the argument.
  10856. (calculateStatistics): Rewritten.
  10857. (calculateStat): New function.
  10858. * src/Peer.h
  10859. (PeerStat.h): Included.
  10860. (peerUpload): Removed.
  10861. (peerDownload): Removed.
  10862. (peerStat): New variable.
  10863. (sessionUploadLength): New variable.
  10864. (sessionDownloadLength): New variable.
  10865. (deltaUpload): Removed.
  10866. (deltaDownload): Removed.
  10867. (resetStatus): Made private.
  10868. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10869. Removed peerUpload, peerDownload.
  10870. (updateUploadLength): New function.
  10871. (addDeltaUpload): Removed.
  10872. (updateDownloadLength): New function.
  10873. (resetDeltaUpload): Removed.
  10874. (getDeltaUpload): Removed.
  10875. (addDeltaDownload): Removed.
  10876. (calculateUploadSpeed): New function.
  10877. (resetDeltaDownload): Removed.
  10878. (getDeltaDownload): Removed.
  10879. (calculateDownloadSpeed): New function.
  10880. (getSessionUploadLength): New function.
  10881. (getSessionDownloadLength): New function.
  10882. (activate): New function.
  10883. (deactivate): New function.
  10884. (addPeerUpload): Removed.
  10885. (setPeerUpload): Removed.
  10886. (getPeerUpload): Removed.
  10887. (addPeerDownload): Removed.
  10888. (setPeerDownload): Removed.
  10889. (getPeerDownload): Removed.
  10890. * src/Peer.cc
  10891. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10892. * src/MetalinkRequestInfo.h
  10893. (MetalinkRequestInfo): Removed const qualifier from op.
  10894. * src/RequestInfo.h
  10895. (op): Removed const qualifier.
  10896. (RequestInfo): Removed const qualifier from op.
  10897. * src/prefs.h
  10898. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10899. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10900. * src/PeerInteractionCommand.cc
  10901. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10902. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10903. * src/PeerInteraction.cc
  10904. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10905. * src/main.cc
  10906. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10907. Added the description of "--max-download-limit" option.
  10908. Removed the description of "--upload-limit" option.
  10909. Added the description of "--max-upload-limit" option.
  10910. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10911. Added "--max-download-limit" option and "--max-upload-limit" option.
  10912. Added the warning message if "--upload-limit" option is used.
  10913. * src/DownloadCommand.cc
  10914. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10915. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10916. To rewrite segment download mechanism for HTTP/FTP download.
  10917. Use BitfieldMan to manage segment download.
  10918. * src/HttpResponseCommand.h
  10919. (executeInternal): Pass the reference of segment.
  10920. * src/AbstractCommand.cc
  10921. (prepareForRetry): Call segmentMan->cancelSegment here.
  10922. (onAbort): Call segmentMan->cancelSegment here.
  10923. * src/HttpDownloadCommand.cc
  10924. (prepareForNextSegment): New function.
  10925. * src/DownloadEngineFactory.cc
  10926. (newConsoleEngine): Removed splitter.
  10927. (newTorrentConsoleEngine): Removed splitter.
  10928. * src/Request.h
  10929. (segment): Renamed from seg.
  10930. * src/FtpInitiateConnectionCommand.h
  10931. (executeInternal): Pass the reference of segment.
  10932. * src/AbstractCommand.h
  10933. (executeInternal): Pass the reference of segment.
  10934. * src/pref.h
  10935. (PREF_SEGMENT_SIZE): New definition.
  10936. * src/HttpProxyRequestCommand.h
  10937. (executeInternal): Pass the reference of segment.
  10938. * src/HttpResponseCommand.cc
  10939. (checkResponse): Allowed status 206 when a request range starts 0.
  10940. (handleDefaultEncoding): Rewritten the code related to Segment.
  10941. (handleOtherEncoding): Rewritten the code related to Segment.
  10942. * src/SegmentMan.h
  10943. (SegmentEntry): New class.
  10944. (SegmentEntries): New type definition.
  10945. (bitfield): New variable.
  10946. (usedSegmentEntries): New variable.
  10947. (onNullBitfield): New function.
  10948. (checkoutSegment): New function.
  10949. (segments): Removed.
  10950. (splitter): Removed.
  10951. (unregisterId): Removed.
  10952. (getSegment): New function(overload)
  10953. (getDownloadedSize): Removed.
  10954. (cancelSegment): New function.
  10955. (completeSegment): New function.
  10956. (initBitfield): New function.
  10957. (hasSegment): New function.
  10958. (getDownloadLength): New function.
  10959. * src/BitfieldMan.h
  10960. (getStartIndex): New function.
  10961. (getEndIndex): New function.
  10962. (getMissingUnusedIndex): New function(overload).
  10963. (getSparseMissingUnusedIndex): New function.
  10964. * src/BitfieldMan.cc
  10965. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10966. (getMissingUnusedIndex): New function(overload).
  10967. (Range): New class.
  10968. (getStartIndex): New function.
  10969. (getEndIndex): New function.
  10970. (getSparseMissingUnusedIndex): New function.
  10971. (isBitSetInternal): Return false if the given index is less than 0.
  10972. * src/HttpInitiateConnectionCommand.h
  10973. (executeInternal): Pass the reference of segment.
  10974. * src/FtpNegotiateCommand.h
  10975. (executeInternal): Pass the reference of segment.
  10976. * src/FtpNegotiateCommand.cc
  10977. (recvSize): Initialize bitfield here.
  10978. * src/FtpTunnelResponseCommand.h
  10979. (executeInternal): Pass the reference of segment.
  10980. * src/HttpConnection.cc
  10981. (createRequest): Rewritten range header processing.
  10982. * src/DownloadCommand.h
  10983. (executeInternal): Pass the reference of segment.
  10984. (prepareForRetry): Removed.
  10985. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10986. function.
  10987. * src/main.cc
  10988. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10989. * src/SegmentMan.cc
  10990. (SegmentMan): Added bitfield. Removed splitter.
  10991. (~SegmentMan): Added bitfield. Removed splitter.
  10992. (unregisterId): Removed.
  10993. (getSegment): Rewritten.
  10994. (updateSegment): Rewritten.
  10995. (save): Rewritten.
  10996. (read): Rewritten.
  10997. (finished): Rewritten.
  10998. (getDownloadedSize): Removed.
  10999. (initBitfield): New function.
  11000. (FindSegmentEntryByIndex): New function object.
  11001. (FindSegmentEntryByCuid): New function object.
  11002. (checkoutSegment): New function.
  11003. (onNullBitfield): New function.
  11004. (getSegment): New function(overload).
  11005. (CancelSegment): New function object.
  11006. (cancelSegment): New function.
  11007. (completeSegment): New function.
  11008. (hasSegment): New function.
  11009. (getDownloadLength): New function.
  11010. * src/FtpInitiateConnectionCommand.cc
  11011. (executeInternal): Load .aria2 file after hostname resolution finishes.
  11012. * src/Segment.h: Rewritten.
  11013. * src/Segment.cc (operator<<): New function.
  11014. * src/HttpDownloadCommand.h
  11015. (prepareForNextSegment): New function.
  11016. * src/Request.cc
  11017. (resetUrl): Made segment null.
  11018. * src/DownloadEngine.cc
  11019. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  11020. * src/HttpProxyRequestCommand.h
  11021. (executeInternal): Pass the reference of segment.
  11022. * src/DownloadCommand.cc
  11023. (executeInternal): Rewritten the code related to Segment.
  11024. (prepareForRetry): Removed.
  11025. (prepareForNextSegment): Rewritten.
  11026. * src/FtpTunnelResponseCommand.h
  11027. (executeInternal): Pass the reference of segment.
  11028. To add HTTP 1.1 persistent connection support(experimental)
  11029. * src/HttpRequestCommand.cc
  11030. (executeInternal): Disable keep alive if it is disabled by
  11031. configuration.
  11032. * src/Request.h
  11033. (keepAlive): New variable.
  11034. (isKeepAlive): New function.
  11035. (setKeepAlive): New function.
  11036. * src/pref.h
  11037. (PREF_HTTP_KEEP_ALIVE): New definition.
  11038. * src/HttpResponseCommand.cc
  11039. (executeInternal): Check the remote server supports keep alive.
  11040. * src/HttpConnection.cc
  11041. (createRequest): Send "Connection: close" only if keep alive is
  11042. disabled.
  11043. * src/main.cc
  11044. (main):
  11045. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11046. To add max download speed limit:
  11047. * src/pref.h
  11048. (PREF_MAX_SPEED_LIMIT): New definition.
  11049. * src/PeerInteractionCommand.cc
  11050. (executeInternal): Added max download speed limit. Not tested yet.
  11051. * src/SegmentMan.h
  11052. (PeerStats): New type definition.
  11053. (peerStats): New variable.
  11054. (registerPeerStat): New function.
  11055. (FindPeerStat): New function object.
  11056. (getPeerStat): New function.
  11057. (calculateDownloadSpeed): New function.
  11058. * src/SpeedCalc.h: New class.
  11059. * src/SpeedCalc.cc: New class.
  11060. * src/main.cc
  11061. (main):
  11062. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11063. download speed is not restricted).
  11064. * src/PeerStat.h: New class.
  11065. * src/SegmentMan.cc
  11066. (registerPeerStat): New function.
  11067. (calculateDownloadSpeed): New function.
  11068. * src/DownloadCommand.cc
  11069. (STARTUP_IDLE_TIME): New definition.
  11070. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11071. downloadStart.
  11072. (~DownloadCommand): Call peerStat->downloadStop.
  11073. (executeInternal): Added download speed limitter. Rewritten lowest
  11074. speed limitter.
  11075. * src/HttpConnection.cc
  11076. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11077. * src/AbstractCommand.cc
  11078. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11079. Added hostname to the error message.
  11080. * src/ConsoleDownloadEngine.cc
  11081. (calculateStatistics): Initialize psize with dlSize.
  11082. * src/PieceMessage.cc
  11083. (receivedAction): Do not call peerInteraction->abortPiece here.
  11084. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11085. * src/BitfieldMan.h
  11086. (clearAllUseBit): New function.
  11087. (setAllUseBit): New function.
  11088. * src/BitfieldMan.cc
  11089. (clearAllBit): Do not clear useBitfield here.
  11090. (clearAllUseBit): New function.
  11091. (setAllUseBit): New function.
  11092. * src/Piece.cc
  11093. (clearAllBlock): Call bitfield->clearAllUseBit().
  11094. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11095. To make filename URL-decoded:
  11096. * src/HttpResponseCommand.h: Updated doc.
  11097. * src/HttpResponseCommand.cc
  11098. (determinFilename): Made filename URL-decoded.
  11099. * src/FtpInitiateConnectionCommand.cc
  11100. (executeInternal): Made filename URL-decoded.
  11101. * src/Util.h (urldecode): New function.
  11102. * src/Util.cc (urldecode): New function.
  11103. To fix a bug that caused assertion failure in ares_strerror:
  11104. * src/NameResolver.cc (callback): Fixed the bug.
  11105. * Release 0.7.3
  11106. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11107. To add --seed-time and --seed-ratio command-line option:
  11108. * src/Option.h (getAsDouble): New function.
  11109. * src/Option.cc (getAsDouble): New function.
  11110. * src/SeedCheckCommand.h: New class.
  11111. * src/SeedCheckCommand.cc: New class.
  11112. * src/DownloadEngineFactory.cc
  11113. (SeedCheckCommand.h): Included.
  11114. (UnionSeedCriteria.h): Included.
  11115. (TimeSeedCriteria.h): Included.
  11116. (ShareRatioSeedCriteria.h): Included.
  11117. (newTorrentConsoleEngine): Added the processing of seed option.
  11118. * src/SeedCriteria.h: New class.
  11119. * src/ShareRatioSeedCriteria.h: New class.
  11120. * src/TimeSeedCriteria.h: New class.
  11121. * src/UnionSeedCriteria.h: New class.
  11122. * src/prefs.h
  11123. (PREF_SEED_TIME): New definition.
  11124. (PREF_SEED_RATIO): New definition.
  11125. * src/main.cc
  11126. (showUsage): Added --seed-time and --seed-ratio option.
  11127. (main): Added --seed-time and --seed-ratio option.
  11128. Made default log file name "/dev/null".
  11129. * src/SharedHandle.h
  11130. (SharedHandle): Copy constructor. Made it assignable from the
  11131. SharedHandle of the subclasses.
  11132. (operator=): Made it assignable from the SharedHandle of the
  11133. subclasses.
  11134. (getRefCount): New function.
  11135. To add notice log level and the switch to write log to stdout. This
  11136. switch is configurable per log level.
  11137. * src/Logger.h
  11138. (notice): New function.
  11139. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11140. constant.
  11141. * src/LogFactory.cc
  11142. (getInstance): The use of NullLogger was removed. A log message with
  11143. notice log level was made written to stdout along with log file.
  11144. * src/NullLogger.h
  11145. (notice): New function.
  11146. * src/SimpleLogger.h
  11147. (writeHeader): Added the 'file' argument.
  11148. (writeLog): Added the 'file' argument.
  11149. (writeFile): New function.
  11150. (stdoutField): New variable.
  11151. (SimpleLogger): Removed the default constructor.
  11152. (SimpleLogger): Made the default value of logfile 0.
  11153. (debug): Added 'virtual' keyword.
  11154. (info): Added 'virtual' keyword.
  11155. (warn): Added 'virtual' keyword.
  11156. (error): Added 'virtual' keyword.
  11157. (notice): New function.
  11158. (setStdout): New function.
  11159. * src/SimpleLogger.cc
  11160. (WRITE_LOG): Replaced writeLog with writeFile.
  11161. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11162. (SimpleLogger): Removed the default constructor.
  11163. (setStdout): New function.
  11164. (writeLog): Added the handling of NOTICE log level.
  11165. (writeFile): New function.
  11166. (notice): New function.
  11167. * src/TorrentMan.h: Updated doc.
  11168. * src/BitfieldMan.h: Updated doc.
  11169. * src/TrackerWatcherCommand.cc
  11170. (execute): Return true if error occurred in the request to the tracker
  11171. and halt is requested.
  11172. * src/TrackerUpdateCommand.cc
  11173. (execute): Return true if error occurred in the request to the tracker
  11174. and halt is requested.
  11175. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11176. DownloadEngine:
  11177. * src/TorrentConsoleDownloadEngine.h
  11178. (onSelectiveDownloadingCompletes): Removed.
  11179. * src/TorrentConsoleDownloadEngine.cc
  11180. (onSelectiveDownloadingCompletes): Removed.
  11181. * src/TorrentDownloadEngine.h
  11182. (onEndOfRun): Added 'virtual' keyword.
  11183. (afterEachIteration): Removed.
  11184. (onSelectiveDownloadingCompletes): Removed.
  11185. * src/TorrentDownloadEngine.cc
  11186. (onEndOfRun): Removed filenameFixed.
  11187. (afterEachIteration): Removed.
  11188. * src/TorrentMan.cc
  11189. (completePiece): Call onDownloadComplete here.
  11190. (onDownloadComplete): Added 2 log messages.
  11191. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11192. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11193. * src/NameResolver.h: Added the prototype declaration of callback().
  11194. To support c-ares library:
  11195. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11196. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11197. * src/FtpInitiateConnectionCommand.h:
  11198. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11199. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11200. * src/HttpInitiateConnectionCommand.h:
  11201. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11202. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11203. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11204. #1542285 by tizianomueller)
  11205. * src/HttpInitiateConnectionCommand.cc:
  11206. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11207. * src/FtpInitiateConnectionCommand.cc:
  11208. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11209. * src/DownloadEngine.h:
  11210. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11211. * src/DownloadEngine.cc:
  11212. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11213. To fix the bug that causes compilation failure with metalink-support
  11214. disabled(bug#1543587):
  11215. * src/main.cc: Fixed with the patch by tizianomueller.
  11216. * Release 0.7.2
  11217. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11218. * src/main.cc
  11219. (main): Added a message to inform users that aria2 is starting to
  11220. verify checksum.
  11221. * src/RequestInfo.cc
  11222. (printDownloadAbortMessage): Added a message to inform users that
  11223. transfer can be resumed.
  11224. * src/FeatureConfig.cc
  11225. (FEATURE_ASYNC_DNS): New definition.
  11226. (FeatureConfig): Added aysnc DNS entry.
  11227. To replace CommandUuid with Command* in SocketEntry and
  11228. NameResolverEntry:
  11229. * src/DownloadEngine.h
  11230. (CommandUuids): Removed.
  11231. (SocketEntry::commandUuid): Removed.
  11232. (SocketEntry::command): New variable.
  11233. (SocketEntry::SocketEntry): Updated.
  11234. (SocketEntry::operator==): Updated.
  11235. (NameResolverEntry::commandUuid): Removed.
  11236. (NameResolverEntry::command): New variable.
  11237. (NameResolverEntry::NameResolverEntry): Updated.
  11238. (NameResolverEntry::operator==): Updated.
  11239. (waitData): Changed the argument type.
  11240. (addSocketForReadCheck): Changed the argument type.
  11241. (deleteSocketForReadCheck): Changed the argument type.
  11242. (addSocketForWriteCheck): Changed the argument type.
  11243. (deleteSocketForWriteCheck): Changed the argument type.
  11244. (addNameResolverCheck): Changed the argument type.
  11245. (deleteNameResolverCheck): Changed the argument type.
  11246. * src/DownloadEngine.cc
  11247. (FindCommand): Removed.
  11248. (run): Removed activeUuid. Added activeCommands instead.
  11249. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11250. (AccumulateActiveCommand): New function object.
  11251. (waitData): Use AccumulateActiveCommand.
  11252. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11253. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11254. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11255. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11256. (addNameResolverCheck): Use Command instead of CommandUuid.
  11257. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11258. * src/AbstractCommand.cc
  11259. (disableReadCheckSocket): Updated according to the changes in
  11260. DownloadEngine.
  11261. (setReadCheckSocket): Updated according to the changes in
  11262. DownloadEngine.
  11263. (disableWriteCheckSocket): Updated according to the changes in
  11264. DownloadEngine.
  11265. (setWriteCheckSocket): Updated according to the changes in
  11266. DownloadEngine.
  11267. (setNameResolverCheck): Updated according to the changes in
  11268. DownloadEngine.
  11269. (disableNameResolverCheck): Updated according to the changes in
  11270. DownloadEngine.
  11271. * src/AbstractCommand.cc
  11272. (disableReadCheckSocket): Updated according to the changes in
  11273. DownloadEngine.
  11274. (setReadCheckSocket): Updated according to the changes in
  11275. DownloadEngine.
  11276. (disableWriteCheckSocket): Updated according to the changes in
  11277. DownloadEngine.
  11278. (setWriteCheckSocket): Updated according to the changes in
  11279. DownloadEngine.
  11280. * release 0.7.1
  11281. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11282. To handle the case where some BitTorrent tracker requires all letters
  11283. except for [A-Za-z0-9] is URL encoded.
  11284. * src/Util.h
  11285. (torrentUrlencode): New function.
  11286. * src/Util.cc
  11287. (ctype.h): Included.
  11288. (torrentUrlencode): New function.
  11289. * src/TrackerWatcherCommand.cc
  11290. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11291. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11292. To add asynchronous DNS support(libares):
  11293. * src/AbstractCommand.h
  11294. (setNameResolverCheck): New function.
  11295. (disableNameResolverCheck): New function
  11296. (resolveHostname): New function.
  11297. * src/AbstractCommand.cc
  11298. (setNameResolverCheck): New function.
  11299. (disableNameResolverCheck): New function
  11300. (resolveHostname): New function.
  11301. * src/FtpInitiateConnectionCommand.h
  11302. (nameResolver): New function.
  11303. * src/FtpInitiateConnectionCommand.cc
  11304. (Util.h): Included.
  11305. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11306. disableWriteCheckSocket.
  11307. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11308. (executeInternal): Added async DNS support.
  11309. * src/HttpInitiateConnectionCommand.h
  11310. (nameResolver): New function.
  11311. * src/HttpInitiateConnectionCommand.cc
  11312. (DlRetryEx.h): Included.
  11313. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11314. disableWriteCheckSocket.
  11315. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11316. (executeInternal): Added async DNS support.
  11317. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11318. by extern "C" declaration.
  11319. * src/NameResolver.cc: New class.
  11320. * src/Util.h:
  11321. (isNumberAndDotsNotation): New function
  11322. * src/Util.cc
  11323. (isNumberAndDotsNotation): New function.
  11324. * src/DownloadEngine.h
  11325. (NameResolver.h): Included.
  11326. (NameResolverEntry): New class.
  11327. (NameResolverEntries): New type definition.
  11328. (addNameResolverCheck): New function.
  11329. (deleteNameResolverCheck): New function.
  11330. * src/DownloadEngine.cc
  11331. (run): Initialize cp with 0.
  11332. (SetDescriptor::operator()): Added for NameResolverEntry.
  11333. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11334. (waitData): Check nameResolver entries.
  11335. (updateFdSet): Update fds in nameResolver entries.
  11336. (addNameResolverCheck): New function.
  11337. (deleteNameResolverCheck): new function.
  11338. * src/PeerInteractionCommand.cc
  11339. (executeInternal): Fixed wrong socket handling.
  11340. * src/main.cc
  11341. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11342. * src/Util.cc
  11343. (fileChecksum): Removed the call to ctx.digestReset().
  11344. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11345. * po/ru.po: Azamat sent me Russian translation.
  11346. * src/FtpNegotiateCommand.cc
  11347. (recvGreeting): Call disableWriteCheckSocket just after
  11348. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11349. (recvRetr): Recognized status code 125 as a acceptable response code.
  11350. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11351. case-insesitive filesystem(BUG#1531057).
  11352. * src/Time.h: Renamed as TimeA2.h.
  11353. * src/Time.cc: Renamed as TimeA2.cc.
  11354. * src/TimeA2.h: New class.
  11355. * src/TimeA2.cc: New class.
  11356. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11357. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11358. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11359. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11360. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11361. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11362. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11363. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11364. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11365. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11366. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11367. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11368. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11369. * release 0.7.0
  11370. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11371. * src/PeerChokeCommand.h
  11372. (PeerChokeCommand): Rearranged the arguments.
  11373. * src/PeerChokeCommand.cc
  11374. (PeerChokeCommand): Rearranged the arguments.
  11375. * src/MetalinkEntry.h
  11376. (Checksum.h): Included.
  11377. (md5): Removed.
  11378. (sha1): Removed.
  11379. (checksum): New variable.
  11380. (operator=): Updated.
  11381. (check): Removed.
  11382. * src/prefs.h
  11383. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11384. (PREF_FOLLOW_TORRENT): New definition.
  11385. (PREF_SELECT_FILE): New definition.
  11386. (PREF_FOLLOW_METALINK): New definition.
  11387. * src/MetalinkResource.h
  11388. (TYPE_HTTPS): Added to enum TYPE.
  11389. * src/TorrentMan.cc
  11390. (~TorrentMan): Rewritten.
  11391. * src/MultiDiskWriter.cc
  11392. (MultiDiskAdaptor): Updated according to the changes in
  11393. MessageDigestContext.
  11394. (~MultiDiskAdaptor): Updated according to the changes in
  11395. MessageDigestContext.
  11396. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11397. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11398. * src/Util.h
  11399. (fileChecksum): Updated according to the changes in
  11400. MessageDigestContext.
  11401. * src/Util.cc
  11402. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11403. (fileChecksum): Updated according to the changes in
  11404. MessageDigestContext.
  11405. * src/messageDigest.h: Rewritten.
  11406. * src/MetalinkEntry.cc
  11407. (check): Removed.
  11408. (Supported): Updated.
  11409. (dropUnsupportedResource): Fixed a memory leak.
  11410. * src/ShaVisitor.cc
  11411. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11412. (~ShaVisitor): Updated according to the changes in
  11413. MessageDigestContext.
  11414. (visit): Updated according to the changes in MessageDigestContext.
  11415. * src/main.cc
  11416. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11417. command-line option added.
  11418. * src/DownloadEngine.h
  11419. (SocketEntry): New class.
  11420. (SocketEntries): New definition.
  11421. (PairFind): Removed.
  11422. (SockCmdMap): Removed.
  11423. * src/DownloadEngine.cc
  11424. (DownloadEngine): Rewritten.
  11425. (~DownloadEngine): Rewritten.
  11426. (run): Renamed activeCommandUuids as activeUuids.
  11427. (SetDescriptor): Rewritten.
  11428. (AccumulateActiveCommandUuid): Removed.
  11429. (AccumulateActiveUuid): New function object.
  11430. (waitData): Rewritten.
  11431. (updateFdSet): Rewritten.
  11432. (addSocket): Rewritten.
  11433. (deleteSocket): Rewritten.
  11434. (addSocketForReadCheck): Rewritten.
  11435. (deleteSocketForReadCheck): Rewritten.
  11436. (addSocketForWriteCheck): Rewritten.
  11437. (deleteSocketForWriteCheck): Rewritten.
  11438. * src/Xml2MetalinkProcessor.cc
  11439. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11440. * src/DownloadCommand.cc
  11441. (executeInternal): Added the check routine for lowest speed limit.
  11442. * src/AbstractDiskWriter.cc
  11443. (AbstractDiskWriter): Updated according to the changes in
  11444. MessageDigestContext.
  11445. (~AbstractDiskWriter): Updated according to the changes in
  11446. MessageDigestContext.
  11447. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11448. * src/RequestInfo.h: New class.
  11449. * src/UrlRequestInfo.h: New class.
  11450. * src/UrlRequestInfo.cc: New class.
  11451. * src/TorrentRequestInfo.h: New class.
  11452. * src/TorrentRequestInfo.cc: New class.
  11453. * src/MetalinkRequestInfo.h: New class.
  11454. * src/MetalinkRequestInfo.cc: New class.
  11455. * src/Checksum.h: New class.
  11456. * src/DownloadEngineFactory.h: New class.
  11457. * src/DownloadEngineFactory.cc: New class.
  11458. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11459. * src/Option.h
  11460. (getAsBool): New function.
  11461. * src/Option.cc
  11462. (prefs.h): Included.
  11463. (defined): 0-length value is now recognized as undefined.
  11464. (getAsInt): Rewritten.
  11465. (getAsLLInt): Rewritten.
  11466. (getAsBool): New function.
  11467. * src/FeatureConfig.h: Rewritten.
  11468. * src/FeatureConfig.cc: Rewritten.
  11469. * src/prefs.h
  11470. (PREF_STDOUT_LOG): New definition.
  11471. (PREF_LOG): New definition.
  11472. (PREF_DIR): New definition.
  11473. (PREF_OUT): New definition.
  11474. (PREF_SPLIT): New definition.
  11475. (PREF_DAEMON): New definition.
  11476. (PREF_REFERER): New definition.
  11477. (PREF_TORRENT_FILE): New definition.
  11478. (PREF_LISTEN_PORT): New definition.
  11479. (PREF_METALINK_FILE): New definition.
  11480. (PREF_METALINK_VERSION): New definition.
  11481. (PREF_METALINK_LANGUAGE): New definition.
  11482. (PREF_METALINK_OS): New definition.
  11483. (PREF_METALINK_SERVERS): New definition.
  11484. * src/main.cc
  11485. (main): Following command-line parameters are now put into Option
  11486. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11487. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11488. metalinkLanguage, metalinkOs, metalinkServers
  11489. To fix the bug that aria2 can not handle http response header properly.
  11490. * src/HttpHeader.cc
  11491. (put): Made name lowercased.
  11492. (defined): Made name lowercased.
  11493. (getFirst): Made name lowercased.
  11494. (get): Made name lowercased.
  11495. (getFirstAsInt): Rewritten.
  11496. (getFirstAsLLInt): Rewritten.
  11497. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11498. * src/TorrentMan.h:
  11499. (advertisePiece): Updated doc.
  11500. (getAdvertisedPieceIndexes): Updated doc.
  11501. (removeAdvertisedPiece); New function.
  11502. * src/TorrentMan.cc
  11503. (FindElapsedHave): New function object.
  11504. (removeAdvertisedPiece): New function.
  11505. * src/HaveEraseCommand.h: New class.
  11506. * src/HaveEraseCommand.cc: New class.
  11507. * src/FeatureConfig.h: New class.
  11508. * src/FeatureConfig.cc: New class.
  11509. * src/Request.h
  11510. (defaultPorts): Removed.
  11511. * src/Request.cc
  11512. (FeatureConfig.h): Included.
  11513. (Request): Removed the statements related to defaultPorts.
  11514. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11515. A default port number is now retrieved from FeatureConfig.
  11516. * src/main.cc
  11517. (HaveEraseCommand.h): Included.
  11518. (showVersion): Added the output of feature list.
  11519. (main): Added HaveEraseCommand to command queue in BitTorrent
  11520. downloading.
  11521. * src/PeerInteractionCommand.h
  11522. (chokeCheckPoint): Commented out.
  11523. (periodicExecPoint): New variable.
  11524. * src/PeerInteractionCommand.cc
  11525. (executeInternal): Following methods are now called in at least every
  11526. 0.5 seconds to reduce CPU usage:
  11527. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11528. checkHave(), sendKeepAlive().
  11529. (checkLongTimePeerChoking): Commented out.
  11530. * src/BitfieldMan.h
  11531. (getNthBitIndex): Changed the method signature.
  11532. (getMissingIndexRandomly): Changed the method signature.
  11533. * src/BitfieldMan.cc
  11534. (getNthBitIndex): Rewritten
  11535. (getMissingIndexRandomly): Rewritten.
  11536. (hasMissingPiece): Rewritten.
  11537. (getMissingIndex): Refactored.
  11538. (getMissingUnusedIndex); Refactored.
  11539. (getMissingIndex): Refactored.
  11540. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11541. * src/PeerMessage.h
  11542. (Piece.h): Included.
  11543. (SharedHandle.h): Included.
  11544. (invalidate): New variable.
  11545. (uploading): New variable.
  11546. (isInvalidate): New function.
  11547. (isUploading): New function.
  11548. (onPush): New function.
  11549. (onChoked): New function.
  11550. (onCanceled): New function.
  11551. (onAbortPiece): New function.
  11552. (PeerMessageHandle): New type definition.
  11553. * src/PeerMessage.cc
  11554. (PeerMessage): Added the initialization for invalidate and uploading.
  11555. * src/CancelMessage.h
  11556. (CancelMessage): Rewritten.
  11557. * src/RejectMessage.h
  11558. (RejectMessage): Rewritten.
  11559. * src/Metalinker.h
  11560. (operator=): Defined.
  11561. * src/MetaEntry.h
  11562. (operator=): Defined.
  11563. * src/MetalinkResource.h
  11564. (operator=): Defined.
  11565. * src/AllowedFastMessage.h
  11566. (AllowedFastMessage): Rewritten.
  11567. * src/HandshakeMessage.h
  11568. (HandshakeMessage): New function(overload).
  11569. * src/HandshakeMessage.cc
  11570. (HandshakeMessage): Rewritten.
  11571. (init): New function.
  11572. * src/HaveMessage.h
  11573. (HaveMessage): Rewritten.
  11574. * src/Time.h
  11575. (operator=): Defined the function body here.
  11576. * src/Time.cc
  11577. (operator=): Removed.
  11578. * src/SocketCore.h
  11579. (operator==): Defined here.
  11580. (operator!=): Defined here.
  11581. (operator<): Defined here.
  11582. * src/SocketCore.cc
  11583. (operator==): Removed.
  11584. (operator<): Removed.
  11585. * src/BitfieldMan.h
  11586. (operator=): Defined the function body here.
  11587. * src/BitfieldMan.cc
  11588. (operator=): Removed.
  11589. * src/TorrentMan.h
  11590. (deleteErrorPeer): Removed.
  11591. (deleteUnusedPeer); New function.
  11592. * src/TorrentMan.cc
  11593. (addPeer): Call deleteUnusedPeer.
  11594. (deleteErrorPeer): Removed.
  11595. (deleteUnusedPeer): New function.
  11596. * src/PeerAbstractCommand.h
  11597. (setNoCheck): New function.
  11598. (noCheck): New variable.
  11599. * src/PeerAbstractCommand.cc
  11600. (PeerAbstractCommand): Added the initialization of noCheck.
  11601. (execute): Added a check for noCheck.
  11602. (setNoCheck): New function.
  11603. * src/Util.h
  11604. (stdio.h): Included.
  11605. * src/Util.cc
  11606. (unistd.h): Included.
  11607. * src/DefaultDiskWriter.cc
  11608. (unistd.h): Included.
  11609. * src/Peer.h
  11610. (operator==): Defined the function body here.
  11611. (operator!=): Defined the function body here.
  11612. * src/Peer.cc
  11613. (operator==): Removed.
  11614. (operator!=): Removed.
  11615. * src/Piece.h
  11616. (Piece): Defined the function body here(copy constructor).
  11617. (operator=): Defined the function body here.
  11618. (operator==): Defined the function body here.
  11619. * src/Piece.cc
  11620. (Piece): Removed(copy constructor).
  11621. (operator=): Removed.
  11622. (operator==): Removed.
  11623. * src/PeerMessageUtil.h
  11624. (ChokeMessage.h): Removed.
  11625. (UnchokeMessage.h): Removed.
  11626. (InterestedMessage.h): Removed.
  11627. (NotInterestedMessage.h): Removed.
  11628. (HaveMessage.h): Removed.
  11629. (BitfieldMessage.h): Removed.
  11630. (RequestMessage.h): Removed.
  11631. (CancelMessage.h): Removed.
  11632. (PieceMessage.h): Removed.
  11633. (HandshakeMessage.h): Removed.
  11634. (KeepAliveMessage.h): Removed.
  11635. (PortMessage.h): Removed.
  11636. (HaveAllMessage.h): Removed.
  11637. (HaveNoneMessage.h): Removed.
  11638. (PeerConnection.h): Removed.
  11639. (HandshakeMessage.h): Included.
  11640. * src/BitfieldMessage.h
  11641. (init): New function.
  11642. (BitfieldMessage): Rewritten.
  11643. (BitfieldMessage): New function(overload).
  11644. * src/RequestSlot.h
  11645. (operator=): Defined the function body here.
  11646. (operator==): Defined the function body here.
  11647. * src/RequestSlot.cc
  11648. (operator=): Removed.
  11649. (operator==): Removed.
  11650. To remove the dependency on the PeerMessage subclass from
  11651. PeerInteraction:
  11652. * src/PeerMessageFactory.h: New class.
  11653. * src/PeerMessageFactory.cc: New class.
  11654. * src/SimplePeerMessage.cc
  11655. (send): If invalidate is true then do nothing.
  11656. * src/PeerInteractionCommand.cc
  11657. (HandshakeMessage.h): Included.
  11658. (KeepAliveMessage.h): Included.
  11659. (ChokeMessage.h): Included.
  11660. (UnchokeMessage.h): Included.
  11661. (HaveMessage.h): Included.
  11662. (executeInternal): Call setNoCheck().
  11663. Removed setWriteCheckSocket(socket).
  11664. * src/PeerInteraction.h
  11665. (ChokeMessage.h): Removed.
  11666. (UnchokeMessage.h): Removed.
  11667. (InterestedMessage.h): Removed.
  11668. (NotInterestedMessage.h): Removed.
  11669. (HaveMessage.h): Removed.
  11670. (BitfieldMessage.h): Removed.
  11671. (RequestMessage.h): Removed.
  11672. (CancelMessage.h): Removed.
  11673. (PieceMessage.h): Removed.
  11674. (HandshakeMessage.h): Removed.
  11675. (KeepAliveMessage.h): Removed.
  11676. (PortMessage.h): Removed.
  11677. (HaveAllMessage.h): Removed.
  11678. (HaveNoneMessage.h): Removed.
  11679. (RejectMessage.h): Removed.
  11680. (AllowedFastMessage.h): Removed.
  11681. (SuggestPieceMessage.h): Removed.
  11682. (PeerMessageFactory.h): Included.
  11683. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11684. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11685. (PeerMessageFactory): New variable.
  11686. (createPeerMessage): Removed.
  11687. (createHandshakeMessage): Removed.
  11688. (setPeerMessageCommonProperty): Removed.
  11689. (addRequestSlot): New function.
  11690. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11691. (getPeerMessageFactory): New function.
  11692. (createRequestMessage): Removed.
  11693. (createCancelMessage): Removed.
  11694. (createPieceMessage): Removed.
  11695. (createHaveMessage): Removed.
  11696. (createChokeMessage): Removed.
  11697. (createUnchokeMessage): Removed.
  11698. (createInterestedMessage): Removed.
  11699. (createNotInterestedMessage): Removed.
  11700. (createBitfieldMessage): Removed.
  11701. (createKeepAliveMessage): Removed.
  11702. (createHaveAllMessage): Removed.
  11703. (createHaveNoneMessage): Removed.
  11704. (createRejectMessage): Removed.
  11705. (createAllowedFastMessage): Removed.
  11706. * src/PeerInteraction.cc
  11707. (PeerInteraction): Allocate PeerMessageFactory here.
  11708. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11709. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11710. PieceMessage::ID.
  11711. (addMessage): Simplified by using PeerMessage::onPush().
  11712. (addRequestSlot): New function.
  11713. (rejectAllPieceMessageInQueue): Simplified by using
  11714. PeerMessage::onChoked().
  11715. (rejectPieceMessageInQueue): Simplified by using
  11716. PeerMessage::onCanceled().
  11717. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11718. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11719. (createHandshakeMessage): Removed.
  11720. (createPeerMessage): Removed.
  11721. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11722. (setPeerMessageCommonProperty): Removed.
  11723. (createRequestMessage): Removed.
  11724. (createCancelMessage): Removed.
  11725. (createPieceMessage): Removed.
  11726. (createHaveMessage): Removed.
  11727. (createChokeMessage): Removed.
  11728. (createUnchokeMessage): Removed.
  11729. (createInterestedMessage): Removed.
  11730. (createNotInterestedMessage): Removed.
  11731. (createBitfieldMessage): Removed.
  11732. (createKeepAliveMessage): Removed.
  11733. (createHaveAllMessage): Removed.
  11734. (createHaveNoneMessage): Removed.
  11735. (createRejectMessage): Removed.
  11736. (createAllowedFastMessage): Removed.
  11737. * src/PieceMessage.h
  11738. (createRejectMessage): New function.
  11739. (PieceMessage): Rewritten.
  11740. (onChoked): New function.
  11741. (onCanceled): New function.
  11742. * src/PieceMessage.cc
  11743. (send): If invalidate is true then do nothing, just return.
  11744. (createRejectMessage): New function.
  11745. (onChoked): New function.
  11746. (onCanceled): New function.
  11747. * src/RequestMessage.h
  11748. (RequestMessage): Rewritten.
  11749. (onPush): New function.
  11750. (onAbortPiece): New function.
  11751. * src/RequestMessage.cc
  11752. (onPush): New function.
  11753. (onAbortPiece): New function.
  11754. Update fd_set when a socket is added or deleted in order to improve
  11755. performance:
  11756. * src/DownloadEngine.h
  11757. (rfdset): New variable.
  11758. (wfdset): New variable.
  11759. (updateFdSet): New function.
  11760. * src/DownloadEngine.cc
  11761. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11762. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11763. (waitData): Copy rfdset and wfdset.
  11764. (updateFdSet): New function.
  11765. (addSocket): Call updateFdSet.
  11766. (deleteSocket): Call updateFdSet.
  11767. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11768. To add the support for Metalink3.0 backward compatible links:
  11769. * src/Request.h
  11770. (SAFE_CHARS): Added '#'.
  11771. (METALINK_MARK): New definition.
  11772. * src/Request.cc
  11773. (parseUrl): Added the support for Metalink3.0 backward compatible
  11774. links.
  11775. etc
  11776. * src/PeerInteraction.cc
  11777. (MsgPushBack): Removed.
  11778. (sendMessages): Use STL copy and back_inserter.
  11779. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11780. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11781. * src/TorrentMan.h
  11782. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11783. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11784. * src/SharedHandle.h: New class.
  11785. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11786. * src/HttpResponseCommand.h
  11787. (HttpResponseCommand): Wrapped Socket.
  11788. * src/SocketCore.h
  11789. (operator==): New function.
  11790. (operator!=): New function.
  11791. (operator<): New function.
  11792. (getSockfd): New function.
  11793. (isOpen): New function.
  11794. (writeData): New function.
  11795. * src/SocketCore.cc
  11796. (operator==): New function.
  11797. (operator!=): New function.
  11798. (operator<): New function.
  11799. * src/AbstractCommand.h
  11800. (socket): Changed its type to SocketHandle.
  11801. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11802. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11803. (disableReadCheckSocket): New function.
  11804. (disableWriteCheckSocket): New function.
  11805. (readCheckTarget): Changed its type to SocketHandle.
  11806. (writeCheckTarget): Changed its type to SocketHandle.
  11807. (AbstractCommand): Replaced Socket with SocketHandle.
  11808. * src/AbstractCommand.cc
  11809. (AbstractCommand): Replaced Socket with SocketHandle.
  11810. (~AbstractCommand): Removed the deallocation for Socket object.
  11811. (disableReadCheckSocket): New function.
  11812. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11813. (disableWriteCheckSocket): New function.
  11814. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11815. * src/HttpDownloadCommand.cc
  11816. (DownloadCommand): Replaced Socket with SocketHandle.
  11817. * src/PeerAbstractCommand.h
  11818. (socket): Changed its type to SocketHandle.
  11819. (peer): Changed its type to PeerHandle.
  11820. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11821. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11822. (disableReadCheckSocket): New function.
  11823. (disableWriteCheckSocket): New function.
  11824. (readCheckTarget): Changed its type to SocketHandle.
  11825. (writeCheckTarget): Changed its type to SocketHandle.
  11826. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11827. Replaced Peer with PeerHandle.
  11828. * src/HttpRequestCommand.cc
  11829. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11830. Use disableReadCheckSocket.
  11831. * src/PeerInitiateConnectionCommand.h
  11832. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11833. * src/PeerChokeCommand.cc
  11834. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11835. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11836. (execute): Use PeerHandle.
  11837. * src/PeerConnection.h
  11838. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11839. (socket): Changed its type to SocketHandle.
  11840. (PeerConnection): Replaced Socket with SocketHandle.
  11841. * src/PeerConnection.cc
  11842. (PeerConnection): Replaced Socket with SocketHandle.
  11843. * src/PeerInteractionCommand.h
  11844. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11845. Replaced Peer with PeerHandle.
  11846. * src/PeerInteractionCommand.cc
  11847. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11848. Replaced Peer with PeerHandle.
  11849. (executeInternal): Use disableWriteCheckSocket.
  11850. Use HandshakeMessageHandle.
  11851. (receiveMessages): Use PeerMessageHandle.
  11852. (prepareForNextPeer): Use PeerHandle.
  11853. * src/HttpProxyRequestCommand.h
  11854. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11855. * src/HttpResponseCommand.cc
  11856. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11857. * src/TorrentMan.cc
  11858. (nullPeer): Added external reference.
  11859. (~TorrentMan): Removed the deallocation of the elements of peers.
  11860. (addPeer): Rewritten.
  11861. (isPeerAvailable): Use nullPeer.
  11862. (deleteOldpeers): Replaced with deleteErrorPeer.
  11863. (deleteErrorPeer): New function.
  11864. (getPeer): Use PeerHandle and nullPeer.
  11865. (hasMissingPiece): Replaced Peer with PeerHandle.
  11866. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11867. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11868. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11869. (getMissingPiece): Replaced Peer with PeerHandle.
  11870. * src/FtpNegotiateCommand.cc
  11871. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11872. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11873. (recvGreeting): Use disableWriteCheckSocket.
  11874. (recvPasv): Removed the allocation of Socket.
  11875. Use disableReadCheckSocket.
  11876. (sendRestPasv): Use disableWriteCheckSocket.
  11877. (recvRetr): Changed assertion.
  11878. * src/PeerInteraction.h
  11879. (SharedHandle.h): Included SharedHandle.h.
  11880. (PeerMessageHandle): New type definition.
  11881. (HandshakeMessageHandle): New type definition.
  11882. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11883. (peer): Changed its type to PeerHandle.
  11884. (createHandshakeMessage): Replaced HandshakeMessage with
  11885. HandshakeMessageHandle.
  11886. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11887. (PeerInteraction): Replaced Peer with PeerHandle.
  11888. Replaced Socket with SocketHandle.
  11889. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11890. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11891. (receiveHandshake): Replaced HandshakeMessage with
  11892. HandshakeMessageHandle.
  11893. * src/PeerInteraction.cc
  11894. (PeerInteraction): Replaced Peer with PeerHandle.
  11895. Replaced Socket with SocketHandle.
  11896. (~PeerInteraction): Removed the deallocation of the elements of
  11897. messageQueue.
  11898. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11899. (isSendingMessageInProgress): Replaced PeerMessage with
  11900. PeerMessageHandle.
  11901. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11902. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11903. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11904. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11905. (abortPiece): Use PeerMessageHandle.
  11906. (receiveHandshake): Replaced HandshakeMessage with
  11907. HandshakeMessageHandle. Removed try-catch block.
  11908. (createHandshakeMessage): Replaced HandshakeMessage with
  11909. HandshakeMessageHandle.
  11910. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11911. Removed try-catch block.
  11912. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11913. * src/HttpProxyResponseCommand.cc
  11914. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11915. * src/FtpTunnelResponseCommand.h
  11916. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11917. * src/HttpConnection.cc
  11918. (HttpConnection): Replaced Socket with SocketHandle.
  11919. * src/PeerAbstractCommand.cc
  11920. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11921. (~PeerAbstractCommand): Removed the deallocation of socket.
  11922. Use disableReadCheckSocket, disableWriteCheckSocket.
  11923. (disableReadCheckSocket): New function.
  11924. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11925. (disableWriteCheckSocket): New function.
  11926. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11927. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11928. * src/FtpTunnelRequestCommand.cc
  11929. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11930. (~FtpTunnelRequestCommand): Corrected indentation.
  11931. * src/DownloadCommand.h
  11932. (DownloadCommand): Replaced Socket with SocketHandle.
  11933. * src/PeerListenCommand.cc
  11934. (PeerListenCommand): Removed the initialization of socket.
  11935. (~PeerListenCommand): Removed the deallocation of socket.
  11936. (bindPort): Use SocketHandle.
  11937. (execute): Use SocketHandle and PeerHandle.
  11938. * src/FtpDowndloadCommand.cc
  11939. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11940. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11941. * src/main.cc
  11942. (main): Corrected indentation.
  11943. * src/HttpInitiateConnectionCommand.cc
  11944. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11945. (executeInternal): Removed the allocation of socket.
  11946. * src/HttpRequestCommand.h
  11947. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11948. * src/FtpNegotiationCommand.h
  11949. (dataSocket): Changed its type to SocketHandle.
  11950. (serverSocket): Changed its type to SocketHandle.
  11951. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11952. * src/TorrentMan.h
  11953. (MAX_PEER_UPDATE): Removed.
  11954. (MAX_PEERS): New definition.
  11955. (Peers): The element is now of type PeerHandle.
  11956. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11957. (getPeer): Replaced Peer with PeerHandle.
  11958. (deleteOldErrorPeers): Removed.
  11959. (deleteErrorPeer): New function.
  11960. (hasMissingPiece): Replaced Peer with PeerHandle.
  11961. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11962. (getMissingPiece): Replaced Peer with PeerHandle.
  11963. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11964. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11965. (addActivePeer): Replaced Peer with PeerHandle.
  11966. (deleteActivePeer): Replaced Peer with PeerHandle.
  11967. Added a check for the return value of find.
  11968. * src/FtpTunnelResponseCommand.cc
  11969. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11970. * src/FtpInitiateConnectionCommand.cc
  11971. (executeInternal): Removed the allocation of socket.
  11972. * src/DownloadEngine.h
  11973. (Sockets): An element is now of type SocketHandle.
  11974. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11975. (CommandUuids): New type definition.
  11976. (rsockets): Changed its type to SockCmdMap.
  11977. (wsockets): Changed its type to SockCmdMap.
  11978. (addSocket): Rewritten.
  11979. (deleteSocket): Rewritten.
  11980. (addSocketForReadCheck): Rewritten.
  11981. (deleteSocketForReadCheck): Rewritten.
  11982. (addSocketForWriteCheck): Rewritten.
  11983. (deleteSocketForWriteCheck): Rewritten.
  11984. (PairFind): New template class.
  11985. * src/HttpDownloadCommand.h
  11986. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11987. * src/FtpConnection.cc
  11988. (FtpConnection): Replaced Socket with SocketHandle.
  11989. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11990. block.
  11991. * src/InitiateConnectionCommandFactory.cc
  11992. (DlAbortEx.h): Included DlAbortEx.h.
  11993. (createInitiateConnectionCommand): Throw exception if the protocol of
  11994. requested URI is not supported.
  11995. * src/Peer.cc
  11996. (nullPeer): Changed its type to PeerHandle.
  11997. (operator==): New function.
  11998. (operator!=): New function.
  11999. * src/Peer.h
  12000. (SharedHandle.h): Included SharedHandle.h.
  12001. (operator==): New function.
  12002. (operator!=): New function.
  12003. (Peer): Added the default constructor.
  12004. Use resetStatus() to initialize member variables.
  12005. (nullPeer): Removed.
  12006. * src/TrackerUpdateCommand.cc
  12007. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  12008. with MIN_PEERS.
  12009. * src/PeerListenCommand.h
  12010. (socket): Changed its type to SocketHandle.
  12011. * src/Command.h
  12012. (CommandUuid): New type definition.
  12013. (uuid): New variable.
  12014. (uuidGen): New variable.
  12015. (Command): Added the initialization of uuid.
  12016. (getUuid): New function.
  12017. * src/Socket.h
  12018. (Socket): Removed.
  12019. (SocketHandle): New type definition.
  12020. * src/DownloadEngine.h
  12021. (FindCommand): New function object.
  12022. (run): The portion of socket check was rewritten.
  12023. (SetDescriptor): New function object.
  12024. (AccumulateActiveCommandUuid): New function object.
  12025. (waitData): Rewritten.
  12026. (addSocket): Rewritten.
  12027. (deleteSocket): Rewritten.
  12028. (addSocketForReadCheck): Rewritten.
  12029. (addSocketForWriteCheck): Rewritten.
  12030. (deleteSocketForReadCheck): Rewritten.
  12031. (deleteSocketForWriteCheck): Rewritten.
  12032. * src/HttpProxyResponseCommand.h
  12033. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12034. * src/HttpConnection.h
  12035. (socket): Changed its type to SocketHandle.
  12036. (HttpConnection): Replaced Socket with SocketHandle.
  12037. * src/PeerInitiateConnectionCommand.cc
  12038. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12039. (executeInternal): Removed the allocation of socket.
  12040. (prepareForNextPeer): Use PeerHandle.
  12041. * src/PeerMessage.h
  12042. (peer): Changed its type to PeerHandle.
  12043. (getPeer): Replaced Peer with PeerHandle.
  12044. (setPeer): Replaced Peer with PeerHandle.
  12045. * src/DownloadCommand.cc
  12046. (DownloadCommand): Replaced Socket with SocketHandle.
  12047. * src/FtpConnection.h
  12048. (socket): Changed its type to SocketHandle.
  12049. (FtpConnection): Replaced Socket with SocketHandle.
  12050. (sendPort); Replaced Socket with SocketHandle.
  12051. * src/FtpDowndloadCommand.h
  12052. (ctrlSocket): Changed its type to SocketHandle.
  12053. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12054. * src/HttpProxyRequestCommand.cc
  12055. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12056. * src/FtpTunnelRequestCommand.h
  12057. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12058. etc
  12059. * src/PeerChokeCommand.h
  12060. (setAllPeerChoked): Removed.
  12061. (setAllPeerResetDelta): Removed.
  12062. * src/PeerChokeCommand.cc
  12063. (setAllPeerChoked): Removed.
  12064. (ChokePeer): New function object.
  12065. (setAllPeerResetDelta): Removed.
  12066. (ResetDelta): New function object.
  12067. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12068. (execute): Show download speed when the local node is a seeder.
  12069. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12070. using STL.
  12071. * src/TrackerWatcherCommand.h
  12072. (MIN_PEERS): Removed.
  12073. * src/TorrentMan.cc
  12074. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12075. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12076. To fix the bug that .aria2 file is not saved if downloading is stopped
  12077. by the errors:it results that aria2 can not resume downloading:
  12078. * src/main.cc
  12079. (normalDownload): Added the call to save().
  12080. (main): Added the deletion of the elements in 'reserved'.
  12081. To fix log:
  12082. * src/PeerInteraction.cc
  12083. (receiveHandshake): Fixed log.
  12084. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12085. To improve download performance in BitTorrent:
  12086. * src/TorrentMan.cc
  12087. (getPeer): Check the number of connections. Return nullPeer if
  12088. it is greater than MAX_PEER_UPDATE.
  12089. This code was originally here, but was removed in 0.5.1.
  12090. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12091. To improve the conditional compilation:
  12092. * src/MultiDiskWriter.h:
  12093. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12094. * src/MultiDiskWriter.cc:
  12095. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12096. * src/Util.h:
  12097. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12098. Added ENABLE_BITTORRENT around computeFastSet().
  12099. * src/Util.cc:
  12100. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12101. Added ENABLE_BITTORRENT around computeFastSet().
  12102. * src/messageDigest.h:
  12103. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12104. * src/ShaVisitor.h:
  12105. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12106. * src/ShaVisitor.cc:
  12107. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12108. * src/main.cc:
  12109. Added ENABLE_BITTORRENT around includes and blocks related to
  12110. BitTorrent.
  12111. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12112. digest support is not available.
  12113. * src/AbstractDiskWriter.h:
  12114. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12115. * src/AbstractDiskWriter.cc:
  12116. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12117. * src/MetalinkEntry.cc
  12118. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12119. support is not available.
  12120. To add command-line options for Metalink:
  12121. * src/main.cc:
  12122. Added metalink-version, metalink-language, metalink-os,
  12123. follow-metalink.
  12124. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12125. * src/main.cc: Use these definition.
  12126. * Release 0.6.0
  12127. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12128. To add Metalink support(http/ftp only):
  12129. * src/AbstractCommand.h
  12130. (tryReserved): New function.
  12131. * src/AbstractCommand.cc
  12132. (execute): Call tryReserved().
  12133. (tryReserved): New function.
  12134. * src/Request.h
  12135. (Requests): New type definition.
  12136. * src/SegmentMan.h
  12137. (reserved): New variable.
  12138. * src/Util.h
  12139. (fileChecksum): New function.
  12140. (toUpper): New function.
  12141. (toLower): New function.
  12142. * src/Util.cc
  12143. (messageDigest.h): Included.
  12144. (trim): Trim \r\n\t.
  12145. (fileChecksum): New function.
  12146. (toUpper): New function.
  12147. (toLower): New function.
  12148. * src/main.cc
  12149. (normalDownload): New function.
  12150. (main): Added 2 command-line options: metalink-file,
  12151. metalink-connection. Their usage has not been written yet.
  12152. * src/MetalinkProcessor.h: New class.
  12153. * src/Xml2MetalinkProcessor.h: New class.
  12154. * src/Xml2MetalinkProcessor.cc: New class.
  12155. * src/MetalinkEntry.h: New class.
  12156. * src/MetalinkEntry.cc: New class.
  12157. * src/MetalinkResource.h: New class.
  12158. * src/MetalinkResource.cc: New class.
  12159. To add md5 message digest checking:
  12160. * src/messageDigest.h: Rewritten.
  12161. * src/MultiDiskWriter.cc: Updated according to the changes in
  12162. messageDigest.h.
  12163. * src/ShaVisitor.cc: Updated according to the changes in
  12164. messageDigest.h.
  12165. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12166. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12167. messageDigest.h.
  12168. To fix a bug that causes segfault when the payload length in peer
  12169. message is less than 0:
  12170. * src/PeerConnection.cc:
  12171. (receiveMessage): Fixed the bug.
  12172. * src/PeerMessageUtil.cc
  12173. (checkLength): Throw an exception if length is less than or equals to
  12174. 0.
  12175. To add new interfaces to Base64 encoding/decoding:
  12176. * src/Base64.h
  12177. (part_encode): Changed the method signature.
  12178. (encode): New function(overload).
  12179. (decode): New function(overload).
  12180. * src/Base64.cc
  12181. (part_encode): Rewritten.
  12182. (encode): Rewritten.
  12183. (encode): New function(overload).
  12184. To prevent a peer to download same piece if there is an error in
  12185. checksum:
  12186. * src/PieceMessage.cc
  12187. (receivedAction): Call peerInteraction->abortPiece().
  12188. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12189. To fix the bug that causes same have message is sent many times to
  12190. a single peer.
  12191. * src/Time.cc
  12192. (isNewer): Use Util::difftv().
  12193. * src/Util.cc
  12194. (difftv): Added a cast to (long long int).
  12195. * src/TorrentMan.cc
  12196. (advertisePiece): Use push_front.
  12197. (getAdvertisedPieceIndexes): A performance improvement was made.
  12198. To fix the bug that sends tracker requests without a sleep interval
  12199. when the number of connections is less than 15.
  12200. * src/TrackerWatcherCommand.cc
  12201. (execute): Now the number of connections is not a factor to decide
  12202. whether or not a tracker request should be sent or not.
  12203. * src/Time.h
  12204. (setTimeInSec): New function.
  12205. * src/Time.cc
  12206. (setTimeInSec): New function.
  12207. etc.
  12208. * src/ChokeMessage.cc
  12209. (receivedAction): Removed peer->snubbing = false
  12210. * src/PeerConnection.h
  12211. (receiveHandshake): Updated doc.
  12212. * src/TorrentMan.h
  12213. (getAdvertisedPieceIndexes): Updated the method signature.
  12214. * src/TorrentMan.cc
  12215. (getAdvertisedPieceIndexes): Updated the method signature.
  12216. * src/Time.h
  12217. (getTimeInMicros): Added a cast to (long long int).
  12218. (getTimeInMillis): Added a cast to (long long int).
  12219. * Release 0.5.2
  12220. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12221. To make a listening socket non-block:
  12222. * src/SocketCore.h
  12223. (setNonBlockingMode): New function.
  12224. * src/SocketCore.cc
  12225. (setNonBlockingMode): New function.
  12226. (beginListen): Added a call to setNonBlockingMode().
  12227. (acceptConnection): Call setNonBlockingMode().
  12228. (setBlockingMode): Updated.
  12229. To handle tracker's NAT-checking:
  12230. * src/PeerConnection.cc
  12231. (receiveHandshake): 'msg' param is filled with received data and
  12232. its length is assigned to 'length' param, even if all handshake
  12233. message is not yet received.
  12234. * src/PeerInteractionCommand.cc
  12235. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12236. a new peer connects to localhost.
  12237. A call to peerInteraction->sendHandshake() was removed because
  12238. it is called from peerInteraction->receiveHandshake(true).
  12239. * src/PeerInteraction.h
  12240. (quickReplied): New variable.
  12241. (receiveHandshake): Added an argument.
  12242. * src/PeerInteraction.cc
  12243. (PeerInteraction): Added the initialization of quickReplied.
  12244. (receiveHandshake): Send handshake message as soon as the info hash
  12245. in a handshake message from a peer is correct.
  12246. To change the random part of peer id and key parameter:
  12247. * src/TorrentMan.h
  12248. (key): New variable.
  12249. * src/TorrentMan.cc
  12250. (setupInternal1): Use Util::randomAlpha() to generate random part
  12251. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12252. key is also generated by Util::randomAlpha() and it is now 8 character
  12253. long.
  12254. * src/Util.h
  12255. (randomAlpha): New function.
  12256. * src/Util.cc
  12257. (randomAlpha): New function.
  12258. * src/TrackerWatcherCommand.cc
  12259. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12260. Added no_peer_id=1.
  12261. Set snubbing flag to false when a choke message is received from a
  12262. snubbed peer.
  12263. * src/ChokeMessage.cc
  12264. (receivedAction): Set snubbing flag to false.
  12265. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12266. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12267. * src/SimpleLogger.h (writeHeader): New function.
  12268. * src/SimpleLogger.cc (writeHeader): New function.
  12269. (writeLog): Fixed the bug that causes segfaults if exception message
  12270. contains an unescaped "%" character.
  12271. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12272. when a tracker request fails.
  12273. * src/Request.cc (parseUrl): Query string is now handled properly.
  12274. * Release 0.5.1
  12275. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12276. To add Time class which represents a specific instant in time and
  12277. its precision is microseconds. Time checking procedures were rewritten
  12278. using this object.
  12279. * src/Time.h: New class.
  12280. * src/Time.cc: New class.
  12281. * src/AbstractCommand.h
  12282. (updateCheckPoint): Removed.
  12283. (isTimeoutDetected): Removed.
  12284. (checkPoint): Changed the type to Time.
  12285. (timeout): New variable.
  12286. (setTimeout): New function.
  12287. * src/AbstractCommand.cc
  12288. (AbstractCommand): Removed the initialization of checkPoint.
  12289. Added the initialization of timeout.
  12290. (updateCheckPoint): Removed.
  12291. (isTimeoutDetected): Removed.
  12292. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12293. * src/PeerChokeCommand.h
  12294. (checkPoint): Changed the type to Time.
  12295. * src/PeerChokeCommand.cc
  12296. (PeerChokeCommand): Removed the initialization of checkPoint.
  12297. (execute): Rewritten using Time object.
  12298. * src/TrackerWatcherCommand.h
  12299. (checkPoint): Changed the type to Time.
  12300. * src/TrackerWatcherCommand.cc
  12301. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12302. (execute): Rewritten.
  12303. * src/ConsoleDownloadEngine.h
  12304. (cp): Changed the type to Time.
  12305. (startup): Changed the type to Time.
  12306. * src/ConsoleDownloadEngine.cc
  12307. (initStatistics): Use cp.reset(), startup.reset().
  12308. (calculateStatistics): Rewritten using Time object.
  12309. * src/PeerAbstractCommand.h
  12310. (updateCheckPoint): Removed.
  12311. (isTimeoutDetected): Removed.
  12312. (checkPoint): Changed the type to Time.
  12313. * src/PeerAbstractCommand.cc
  12314. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12315. (updateCheckPoint): Removed.
  12316. (isTimeoutDetected): Removed.
  12317. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12318. * src/PeerInteractionCommand.cc
  12319. (PeerInteractionCommand): Removed the initializations of struct
  12320. timeval variables.
  12321. * src/PeerInteractionCommand.h
  12322. (keepAliveCheckPoint): Changed the type to Time.
  12323. (chokeCheckPoint): Changed the type to Time.
  12324. (freqCheckPoint): Changed the type to Time.
  12325. (haveCheckTime): Changed the type to Time.
  12326. * src/PeerInteractionCommand.cc
  12327. (executeInternal): Rewritten using Time object.
  12328. (detectMessageFlooding): Rewritten using Time object.
  12329. (checkLongTimePeerChoking): Rewritten using Time object.
  12330. (sendKeepAlive): Rewritten using Time object.
  12331. (checkHave): Rewritten using Time object.
  12332. * src/SleepCommand.h
  12333. (checkPoint): Changed the type to Time.
  12334. * src/SleepCommand.cc
  12335. (SleepCommand): Removed the initialization of checkPoint.
  12336. (execute): Rewritten using Time object.
  12337. * src/TorrentAutoSaveCommand.h
  12338. (checkPoint): Changed the type to Time.
  12339. * src/TorrentAutoSaveCommand.cc
  12340. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12341. (execute): Rewritten.
  12342. * src/DownloadCommand.h
  12343. (sw): Changed the type to Time.
  12344. * src/DownloadCommand.cc
  12345. (DownloadCommand): Removed the initialization of sw.
  12346. (executeInternal): Rewritten.
  12347. * src/RequestSlot.h
  12348. (dispatchedTime): Changed the type to Time.
  12349. * src/RequestSlot.cc
  12350. (RequestSlot): Removed the call to setDispatchedTime().
  12351. (setDispatchedTime): Rewirtten.
  12352. (isTimeout): Rewritten.
  12353. (getLatencyInMillis): Rewritten.
  12354. * src/TorrentDownloadEngine.h
  12355. (cp): Changed the type to Time[2].
  12356. (startup): Changed the type to Time.
  12357. * src/TorrentDownloadEngine.cc
  12358. (initStatistics): Rewritten.
  12359. (calculateStatistics): Rewritten.
  12360. * src/DownloadEngine.cc
  12361. (run): Rewritten.
  12362. To detect all attempts to connect to the tracker are failed:
  12363. * src/AbstractCommand.cc
  12364. (execute): Increment e->segmentMan->errors if a command aborted.
  12365. * src/SegmentMan.h
  12366. (errors): New variable.
  12367. * src/SegmentMan.cc
  12368. (SegmentMan): Added the initialization of errors.
  12369. (init): Added the initialization of errors.
  12370. * src/TrackerWatcherCommand.cc
  12371. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12372. request was failed.
  12373. To handle snubbed peers:
  12374. * src/PeerChokeCommand.cc
  12375. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12376. (execute): Snubbed peers don't get unchoked.
  12377. * src/PeerInteraction.h
  12378. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12379. * src/PeerInteraction.cc
  12380. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12381. back the requested 16k block in 60 seconds.
  12382. * src/PieceMessage.cc
  12383. (receivedAction): A peer's snubbed state is cleard if it sends
  12384. the requested 16k block in 60 seconds.
  12385. * src/Peer.h
  12386. (snubbing): New variable.
  12387. * src/Peer.cc
  12388. (resetStatus): Added snubbed = false.
  12389. To fix the bug that causes have message is not sent:
  12390. * src/PeerInteractionCommand.cc
  12391. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12392. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12393. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12394. * src/TorrentMan.h
  12395. (HaveEntry): New class.
  12396. (advertisePiece): Rewritten.
  12397. (getAdvertisedPieceIndexes): Rewritten.
  12398. (Haves): Changed the type.
  12399. (getAdvertisedPieceIndexes): Added an argument.
  12400. Others:
  12401. * src/TorrentMan.h
  12402. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12403. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12404. * src/TorrentMan.cc
  12405. (getPeer): Don't check the number of connections here.
  12406. (setupInternal1): Changed peerId.
  12407. * src/PeerInteractionCommand.h
  12408. (KEEP_ALIVE_INTERVAL): New definition.
  12409. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12410. * src/main.cc
  12411. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12412. * src/DownloadEngine.h: Removed unnecessary header includes.
  12413. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12414. To fix the bug that causes segfaults if a tracker returns a zero-length
  12415. list as "peers":
  12416. * src/TrackerUpdateCommand.cc
  12417. (execute): Added a check to see wether the type of peers is Data*.
  12418. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12419. * Release 0.5.0
  12420. To fix compile issue with gcc3:
  12421. * src/CancelMessage.h
  12422. (ID): Renamed as ID_t
  12423. (ID_t): New enum.
  12424. * src/RejectMessage.h
  12425. (ID): Renamed as ID_t
  12426. (ID_t): New enum.
  12427. * src/SuggestPieceMessage.h
  12428. (ID): Renamed as ID_t
  12429. (ID_t): New enum.
  12430. * src/AllowedFastMessage.h
  12431. (ID): Renamed as ID_t
  12432. (ID_t): New enum.
  12433. * src/PortMessage.h
  12434. (ID): Renamed as ID_t
  12435. (ID_t): New enum.
  12436. * src/HaveNoneMessage.h
  12437. (ID): Renamed as ID_t
  12438. (ID_t): New enum.
  12439. * src/KeepAliveMessage.h
  12440. (ID): Renamed as ID_t
  12441. (ID_t): New enum.
  12442. * src/HaveAllMessage.h
  12443. (ID): Renamed as ID_t
  12444. (ID_t): New enum.
  12445. * src/UnchokeMessage.h
  12446. (ID): Renamed as ID_t
  12447. (ID_t): New enum.
  12448. * src/BitfieldMessage.h
  12449. (ID): Renamed as ID_t
  12450. (ID_t): New enum.
  12451. * src/PieceMessage.h
  12452. (ID): Renamed as ID_t
  12453. (ID_t): New enum.
  12454. * src/RequestMessage.h
  12455. (ID): Renamed as ID_t
  12456. (ID_t): New enum.
  12457. * src/NotInterestedMessage.h
  12458. (ID): Renamed as ID_t
  12459. (ID_t): New enum.
  12460. * src/ChokeMessage.h
  12461. (ID): Renamed as ID_t
  12462. (ID_t): New enum.
  12463. * src/InterestedMessage.h
  12464. (ID): Renamed as ID_t
  12465. (ID_t): New enum.
  12466. * src/HaveMessage.h
  12467. (ID): Renamed as ID_t
  12468. (ID_t): New enum.
  12469. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12470. * src/PeerAbstractCommand.h
  12471. (beforeSocketCheck): Removed.
  12472. * src/PeerAbstractCommand.cc
  12473. Modified in order to call executeInternal() even if socket check
  12474. and upload limit check fail.
  12475. * src/PeerInteractionCommand.h
  12476. (keepAlive): Removed.
  12477. (sendKeepAlive): New function.
  12478. (checkHave): New function.
  12479. (beforeSocketCheck): Removed.
  12480. * src/PeerInteractionCommand.cc
  12481. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12482. calls to checkHave() and sendKeepAlive().
  12483. (keepAlive): Renamed to sendKeepAlive().
  12484. (sendKeepAlive): New function.
  12485. (beforeSocketCheck): Removed.
  12486. (checkHave): New function.
  12487. * src/BitfieldMan.cc
  12488. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12489. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12490. 0.
  12491. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12492. * src/TorrentMan.h
  12493. (UsedPieces): Removed.
  12494. (Pieces): New type definition.
  12495. * src/Piece.h: Updated doc.
  12496. * src/Peer.h
  12497. (totalLength): Removed.
  12498. * src/Peer.cc
  12499. (updateLatency): Fixed the latency calculation.
  12500. * src/TorrentMan.cc
  12501. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12502. than or equal to MAX_PEER_LIST_SIZE.
  12503. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12504. then return false.
  12505. (deleteOldErrorPeers): Rewritten.
  12506. (deleteUsedPiece): Fixed the miss use of STL remove.
  12507. * src/PeerInteraction.h
  12508. (Pieces): Removed.
  12509. (deleteTimeoutRequestSlot): Removed.
  12510. (deleteCompletedRequestSlot): Removed.
  12511. (checkRequestSlot): New function.
  12512. * src/PeerInteraction.cc
  12513. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12514. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12515. (checkRequestSlot): New function.
  12516. * src/DownloadEngine.cc
  12517. (run): Clear activeSockets before calling waitData().
  12518. (waitData): Removed a call to activeSockets.clear().
  12519. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12520. To attempt to handle EINTR:
  12521. * src/SocketCore.cc
  12522. (isReadable): Added EINTR handling.
  12523. (isWritable): Added EINTR handling.
  12524. To improve the performance:
  12525. * src/AbstractCommand.cc
  12526. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12527. * src/PeerInteractionCommand.h
  12528. (receiveMessage): Renamed as receiveMessages().
  12529. (receiveMessages): New function.
  12530. * src/PeerInteractionCommand.cc
  12531. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12532. () function. detectMessageFlooding() is moved here.
  12533. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12534. (). The flooding detection for have message is comment out.
  12535. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12536. Util::difftv().
  12537. (receiveMessage): Renamed as receiveMessages().
  12538. (receiveMessages): New function.
  12539. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12540. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12541. * src/SleepCommand.cc
  12542. (execute): Use Util::difftvsec() instead of Util::difftv().
  12543. * src/BitfieldMan.h
  12544. (getNthBitIndex): New function.
  12545. (hasMissingPiece): New function.
  12546. (getAllMissingIndexes): New function.
  12547. * src/BitfieldMan.cc
  12548. (countSetBit): Rewritten.
  12549. (getNthBitIndex): New function.
  12550. (getMissingIndexRandomly): Rewritten.
  12551. (hasMissingPiece): New function.
  12552. (getAllMissingIndexes): New function.
  12553. * src/TorrentMan.cc
  12554. (hasMissingPiece): New function.
  12555. (deleteUsedPiece): Rewritten using STL.
  12556. * src/PeerInteraction.cc
  12557. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12558. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12559. (addRequests): Updated the number of pending requests.
  12560. * src/PeerAbstractCommand.cc
  12561. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12562. (execute): Returns true if TorrentMan::isHalt() is true.
  12563. Corrected the condition of upload limit checking.
  12564. * src/Util.h
  12565. (countBit): New function.
  12566. * src/Util.cc
  12567. (nbits): New variable.
  12568. (countBit): New function.
  12569. * src/DownloadEngine.h
  12570. (SockCmdMap): New type definition.
  12571. (waitData): Added an argument.
  12572. (addSocket): Added an argument.
  12573. (addSocketForReadCheck): Added an argument.
  12574. (addSocketForWriteCheck): Added an argument.
  12575. * src/DownloadEngine.cc
  12576. (run): Executes only commands whose sockets are ready to read or write.
  12577. All commands are executed in every 1 second.
  12578. (waitData): Calls select() again if it returned
  12579. EINTR.
  12580. (addSocket): Saves socket and command object pair to the map.
  12581. (deleteSocket): Deletes socket and command object pair from the map.
  12582. (addSocketForReadCheck): Added an argument.
  12583. (addSocketForWriteCheck): Added an argument.
  12584. * src/DownloadCommand.cc
  12585. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12586. To send "event=stopped" to the tracker when the application finishes:
  12587. * src/PeerChokeCommand.h
  12588. (checkPoint): New variable.
  12589. * src/PeerChokeCommand.cc
  12590. (PeerChokeCommand): Added the initialization of checkPoint.
  12591. (execute): The interval check is now done by checkPoint, not
  12592. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12593. * src/TorrentMan.h
  12594. (halt): New function.
  12595. (hasMissingPiece): New function.
  12596. (isHalt): New function.
  12597. (setHalt): New function.
  12598. * src/TorrentMan.cc
  12599. (TorrentMan): Added the initialization of halt.
  12600. * src/TorrentAutoSaveCommand.h
  12601. (checkPoint): New variable.
  12602. * src/PeerListenCommand.cc
  12603. (execute): Returns true if TorrentMan::isHalt() is true.
  12604. * src/main.cc
  12605. (setSignalHander): Added flags argument.
  12606. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12607. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12608. Removed printDownloadAbortMessage() after torrent downloading loop.
  12609. * src/TorrentAutoSaveCommand.cc
  12610. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12611. (execute): Returns true if TorrentMan::isHalt() is true.
  12612. The interval check is now done by checkPoint, not SleepCommand.
  12613. * src/TrackerWatcherCommand.cc
  12614. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12615. event=stopped.
  12616. * src/TrackerUpdateCommand.cc
  12617. (prepareForRetry): Do not use SleepCommand here.
  12618. (execute): Returns true if TorrentMan::isHalt() is true.
  12619. Others:
  12620. * src/TorrentMan.cc
  12621. (getMissingPieceIndex): Updated log message.
  12622. * src/PeerInteraction.cc
  12623. (createPeerMessag): Updated log message.
  12624. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12625. To add the ability to download several pieces in mix in a command and
  12626. increase the number of request slots according to request-cancel
  12627. latency:
  12628. * src/PeerInteractionCommand.cc
  12629. (executeInternal): The number of messages to be received at a time
  12630. is increased from 10 to 50.
  12631. * src/LogFactory
  12632. (getInstance): Added NullLogger.
  12633. * src/NullLogger.h: New class.
  12634. * src/BitfieldMan.h
  12635. (getMissingIndex): New function.
  12636. * src/BitfieldMan.cc
  12637. (getMissingIndex): New function.
  12638. * src/TorrentMan.h
  12639. (checkOutPiece): New function.
  12640. (getMissingPieceIndex): New function.
  12641. (getMissingFastPieceIndex): New function.
  12642. (getMissingFastPiece): New function.
  12643. * src/TorrentMan.cc
  12644. (updatePiece): Rewritten using STL.
  12645. (syncPiece): Rewritten using STL.
  12646. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12647. checkOutPiece().
  12648. (getMissingPieceIndex): New function.
  12649. (getMissingFastPieceIndex): New function.
  12650. (getMissingFastPiece): New function.
  12651. (checkOutPiece): New function.
  12652. * src/PeerInteraction.h
  12653. (Pieces): New type definition.
  12654. (piece): Removed.
  12655. (pieces): New variable.
  12656. (getNewPieceAndSendInterest): Added the "piece" argument.
  12657. (abortPiece): Added the "piece" argument.
  12658. (abortAllPieces): New function.
  12659. (isInRequestSlot): New function.
  12660. (hasDownloadPiece): Added the "index" argument.
  12661. (setDownloadPiece): Removed.
  12662. (getDownloadPiece): Added the "index" argument.
  12663. (updatePiece): New function.
  12664. (createRequestMessage): Added the "index" argument.
  12665. * src/PeerInteraction.cc
  12666. (onChoked): Rewritten.
  12667. (abortPiece): Rewirtten.
  12668. (abortAllPieces): New function.
  12669. (deleteTimeoutRequestSlot): Rewritten.
  12670. Clarified code a little bit.
  12671. (deleteCompletedRequestSlot): Rewritten.
  12672. (isInRequestSlot): New function.
  12673. (syncPiece): Rewritten.
  12674. (updatePiece): New function.
  12675. (getNewPieceAndSendInterest): Rewritten.
  12676. (addRequests): Rewritten.
  12677. (getDownloadPiece): Rewritten.
  12678. (hasDownloadPiece): Rewritten.
  12679. (createRequestMessage): Added the "index" argument.
  12680. * src/common.h
  12681. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12682. (DIV_FLOOR): New definition.
  12683. * src/PieceMessage.cc
  12684. (receivedAction): Update request-piece latency here.
  12685. * src/RequestSlot.h
  12686. (getLatencyInMillis): New function.
  12687. * src/RequestSlot.cc
  12688. (isTimeout): Rewritten using getLatencyInMillis.
  12689. (getLatencyInMillis): New function.
  12690. * src/Piece.h
  12691. (operator==): New function.
  12692. (getMissingBlockIndex): New function.
  12693. * src/Piece.cc
  12694. (operator==): New function.
  12695. (getMissingBlockIndex): New function.
  12696. * src/Peer.h
  12697. (DEFAULT_LATENCY): New definition.
  12698. (latency): New variable.
  12699. (updateLatency): New function.
  12700. (getLatency): New function.
  12701. * src/Peer.cc
  12702. (resetStatus): Reset latecy.
  12703. (updateLatency): New function.
  12704. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12705. * src/SocketCore.cc
  12706. (isReadable): Added secure to the condition.
  12707. * src/HttpConnection.cc
  12708. (receiveResponse): Fixed a bug that causes no response header
  12709. exception.
  12710. * src/Peer.h
  12711. (getFastSet): Fixed the return value type.
  12712. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12713. To remove a wait from download loop:
  12714. * src/DownloadEngine.cc
  12715. (run): Comment out shortSleep.
  12716. To rewrite the message handling:
  12717. * src/SimplePeerMessage.h: New class.
  12718. * src/SimplePeerMessage.cc: New class.
  12719. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12720. (msg): New variable.
  12721. (create): New function.
  12722. (send): Removed.
  12723. (getMessage): New function.
  12724. (getMessageLength): New function.
  12725. * src/CancelMessage.cc
  12726. (create): New function.
  12727. (receivedAction): Replaced deleteRequestMessageInQueue with
  12728. rejectPieceMessageInQueue.
  12729. (send): Removed.
  12730. (getMessage): New function.
  12731. (getMessageLength): New function.
  12732. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12733. (msg): New variable.
  12734. (msgLength): New variable.
  12735. (~BitfieldMessage): Deleted msg.
  12736. (send): Removed.
  12737. (getMessage): New function.
  12738. (getMessageLength): New function.
  12739. * src/BitfieldMessage.cc
  12740. (create): New function.
  12741. (send): Removed.
  12742. (getMessage): New function.
  12743. (getMessageLength): New function.
  12744. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12745. (msg): New variable.
  12746. (sendPredicate): New function.
  12747. (onSendComplete): New function.
  12748. (send): Removed.
  12749. (getMessage): New function.
  12750. (getMessageLength): New function.
  12751. (create): New function.
  12752. * src/ChokeMessage.cc
  12753. (create): New function.
  12754. (send): Removed.
  12755. (sendPredicate): New function.
  12756. (getMessage): New function.
  12757. (getMessageLength): New function.
  12758. (onSendComplete): New function.
  12759. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12760. (msg): New variable.
  12761. (send): Removed.
  12762. (getMessage): New function.
  12763. (getMessageLength): New function.
  12764. * src/KeepAliveMessage.cc
  12765. (send): Removed.
  12766. (getMessage): New function.
  12767. (getMessageLength): New function.
  12768. * src/PortMessage.h
  12769. (create): New function.
  12770. (receivedAction): Updated log message.
  12771. * src/PortMessage.cc: New file.
  12772. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12773. (msg): New variable.
  12774. (sendPredicate): New function.
  12775. (onSendComplete): New function.
  12776. (create): New function.
  12777. (send): Removed.
  12778. (getMessage): New function.
  12779. (getMessageLength): New function.
  12780. * src/UnchokeMessage.cc
  12781. (create): New function.
  12782. (send): Removed.
  12783. (sendPredicate): New function.
  12784. (getMessage): New function.
  12785. (getMessageLength): New function.
  12786. (onSendComplete): New function.
  12787. * src/PieceMessage.h
  12788. (leftPieceDataLength): Removed.
  12789. (leftDataLength): New variable.
  12790. (headerSend): New variable.
  12791. (pendingCount): New variable.
  12792. (msgHeader): New variable.
  12793. (sendPieceData): New function.
  12794. (incrementPendingCount): New function.
  12795. (isPendingCountMax): New function.
  12796. (create): New function.
  12797. (getMessageHeader): New function.
  12798. (getMessageHeaderLength): New function.
  12799. * src/PieceMessage.cc
  12800. (create): New function.
  12801. (getMessageHeader): New function.
  12802. (getMessageHeaderLength): New function.
  12803. (send): Rewritten.
  12804. (sendPieceData): New function.
  12805. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12806. (msg): New variable.
  12807. (create): New function.
  12808. (getMessage): New function.
  12809. (getMessageLength): New function.
  12810. * src/HaveMessage.cc
  12811. (create): New function.
  12812. (send): Removed.
  12813. (sendPieceData): New function.
  12814. (getMessage): New function.
  12815. (getMessageLength): New function.
  12816. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12817. (msg): New variable.
  12818. (create): New function.
  12819. (send): Removed.
  12820. (getMessage): New function.
  12821. (getMessageLength): New function.
  12822. * src/RequestMessage.cc
  12823. (create): New function.
  12824. (receivedAction): Added the handling of fast extension.
  12825. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12826. (send): Removed.
  12827. (getMessage): New function.
  12828. (getMessageLength): New function.
  12829. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12830. (msg): New variable.
  12831. (sendPredicate): New function.
  12832. (onSendComplete): New function.
  12833. (create): New function.
  12834. (getMessage): New function.
  12835. (getMessageLength): New function.
  12836. * src/InterestedMessage.cc
  12837. (create): New function.
  12838. (send): Removed.
  12839. (sendPieceData): New function.
  12840. (getMessage): New function.
  12841. (getMessageLength): New function.
  12842. (onSendComplete): New function.
  12843. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12844. (msg): New variable.
  12845. (sendPieceData): New function.
  12846. (onSendComplete): New function.
  12847. (create): New function.
  12848. (send): Removed.
  12849. (getMessage): New function.
  12850. (getMessageLength): New function.
  12851. * src/NotInterestedMessage.cc
  12852. (create): New function.
  12853. (send): Removed.
  12854. (sendPredicate): New function.
  12855. (getMessage): New function.
  12856. (getMessageLength): New function.
  12857. (onSendComplete): New function.
  12858. * src/AllowedFastMessage.h: New class.
  12859. * src/AllowedFastMessage.cc: New class.
  12860. * src/RejectMessage.h: New class.
  12861. * src/RejectMessage.cc: New class.
  12862. * src/SuggestPieceMessage.h: New class.
  12863. * src/SuggestPieceMessage.cc: New class.
  12864. * src/HaveAllMessage.h: New class.
  12865. * src/HaveAllMessage.cc: New class.
  12866. * src/HaveNoneMessage.h: New class.
  12867. * src/HaveNoneMessage.cc: New class.
  12868. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12869. (msg): New variable.
  12870. (reserved): New variable.
  12871. (create): New function.
  12872. (getId): New function.
  12873. (receivedAction): New function.
  12874. (getMessage): New function.
  12875. (getMessageLength): New function.
  12876. (isFastExtensionSupported): New function.
  12877. * src/HandshakeMessage.cc
  12878. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12879. (create): New function.
  12880. (getMessage): New function.
  12881. (getMessageLength): New function.
  12882. (toString): Added the output of reserved field.
  12883. (check): Added const qualifier.
  12884. (isFastExtensionSupported): New function.
  12885. * src/PeerMessageUtil.h
  12886. (createChokeMessage): Removed.
  12887. (createUnchokeMessage): Removed.
  12888. (createInterestedMessage): Removed.
  12889. (createNotInterestedMessage): Removed.
  12890. (createHaveMessage): Removed.
  12891. (createBitfieldMessage): Removed.
  12892. (createRequestMessage): Removed.
  12893. (createCancelMessage): Removed.
  12894. (createPieceMessage): Removed.
  12895. (createPortMessage): Removed.
  12896. (createChokeMessage): Removed.
  12897. (createUnchokeMessage): Removed.
  12898. (createInterestedMessage): Removed.
  12899. (createNotInterestedMessage): Removed.
  12900. (createHaveMessage): Removed.
  12901. (createBitfieldMessage): Removed.
  12902. (createRequestMessage): Removed.
  12903. (createCancelMessage): Removed.
  12904. (createPieceMessage): Removed.
  12905. (createKeepAliveMessage): Removed.
  12906. (createHandshakeMessage): Removed.
  12907. (setIntParam): New function.
  12908. (createPeerMessageString): New function.
  12909. * src/PeerMessageUtil.cc
  12910. (createChokeMessage): Removed.
  12911. (createUnchokeMessage): Removed.
  12912. (createInterestedMessage): Removed.
  12913. (createNotInterestedMessage): Removed.
  12914. (createHaveMessage): Removed.
  12915. (createBitfieldMessage): Removed.
  12916. (createRequestMessage): Removed.
  12917. (createCancelMessage): Removed.
  12918. (createPieceMessage): Removed.
  12919. (createPortMessage): Removed.
  12920. (createRequestMessage): Removed.
  12921. (createCancelMessage): Removed.
  12922. (createPieceMessage): Removed.
  12923. (createHaveMessage): Removed.
  12924. (createChokeMessage): Removed.
  12925. (createUnchokeMessage): Removed.
  12926. (createInterestedMessage): Removed.
  12927. (createNotInterestedMessage): Removed.
  12928. (createBitfieldMessage): Removed.
  12929. (createKeepAliveMessage): Removed.
  12930. (createHandshakeMessage): Removed.
  12931. (setIntParam): New function.
  12932. (createPeerMessageString): New function.
  12933. * src/PeerConnection.h
  12934. (peer): Removed.
  12935. (torrentMan): Removed.
  12936. (createNLengthMessage): Removed.
  12937. (setIntParam): Removed.
  12938. (writeOutgoingMessageLog): Removed all overloaded functions.
  12939. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12940. (sendMessage): New function.
  12941. (sendHandshake): Removed.
  12942. (sendKeepAlive): Removed.
  12943. (sendChoke): Removed.
  12944. (sendUnchoke): Removed.
  12945. (sendInterested): Removed.
  12946. (sendNotInterested): Removed.
  12947. (sendHave): Removed.
  12948. (sendBitfield): Removed.
  12949. (sendRequest): Removed.
  12950. (sendPiece): Removed.
  12951. (sendPieceHeader): Removed.
  12952. (sendPieceData): Removed.
  12953. (sendCancel): Removed.
  12954. (getPeer): Removed.
  12955. * src/PeerConnection.cc
  12956. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12957. (sendHandshake): Removed.
  12958. (sendKeepAlive): Removed.
  12959. (createNLengthMessage): Removed.
  12960. (setIntParam): Removed.
  12961. (writeOutgoingMessageLog): Removed all overloaded functions.
  12962. (sendChoke): Removed.
  12963. (sendUnchoke): Removed.
  12964. (sendInterested): Removed.
  12965. (sendNotInterested): Removed.
  12966. (sendHave): Removed.
  12967. (sendBitfield): Removed.
  12968. (sendRequest): Removed.
  12969. (sendPiece): Removed.
  12970. (sendPieceHeader): Removed.
  12971. (sendPieceData): Removed.
  12972. (sendMessage): New function.
  12973. (sendCancel): Removed.
  12974. * src/PeerInteractionCommand.cc
  12975. (PeerInteractionCommand): Call setUploadLimit.
  12976. (executeInternal): Call setUploadLimit.
  12977. Added the handling of "inProgress" state of handshake message.
  12978. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12979. sendNow().
  12980. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12981. sendNow().
  12982. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12983. * src/TorrentMan.h
  12984. (PEER_ID_LENGTH): New definition.
  12985. (hasAllPieces): New function.
  12986. * src/TorrentMan.cc
  12987. (getMissingPiece): Added the handling of fast extension.
  12988. (cancelPiece): Call updatePiece().
  12989. (hasAllPieces): New function.
  12990. * src/PeerInteraction.h
  12991. (fastSet): New variable.
  12992. (getNewPieceAndSendInterest): Changed the return type to void.
  12993. (send): Renamed as sendMessages.
  12994. (deleteAllRequestSlot): Removed.
  12995. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12996. (cancelAllRequest): Removed all overloaded functions.
  12997. (deleteAllRequestSlot): Removed.
  12998. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12999. (rejectPieceMessageInQueue): New function.
  13000. (rejectAllPieceMessageInQueue): New function.
  13001. (onChoked): New function.
  13002. (isSendingMessageInProgress): New function.
  13003. (getCorrespondingRequestSlot): Changed its arguments.
  13004. (isInFastSet): New function.
  13005. (addFastSetIndex): New function.
  13006. (addRequests): New function.
  13007. (sendNow): Removed.
  13008. (trySendNow): Removed.
  13009. (sendBitfield): New function.
  13010. (sendAllowdFast): New function.
  13011. (createHaveAllMessage): New function.
  13012. (createHaveNoneMessage): New function.
  13013. (createRejectMessage): New function.
  13014. (createAllowedFastMessage): New function.
  13015. * src/PeerInteraction.cc
  13016. (send): Renamed as sendMessages.
  13017. (sendMessages): New function.
  13018. (MsgPushBack): New class.
  13019. (isSendingMessageInProgress): New function.
  13020. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13021. (rejectAllPieceMessageInQueue): New function.
  13022. Added the handling of fast extension.
  13023. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13024. (rejectPieceMessageInQueue): New function.
  13025. Added the handling of fast extension.
  13026. (deleteRequestSlot): Replaced for loop with std::find.
  13027. (onChoked): New function.
  13028. (deleteAllRequestSlot): Removed.
  13029. (abortPiece): Rewirtten.
  13030. (deleteTimeoutRequestSlot): Updated log messages.
  13031. (getCorrespondingRequestSlot): Changed its arguments.
  13032. (cancelAllRequest): Removed all overloaded functions.
  13033. (receiveHandshake): Added the check to see whether an incoming peer
  13034. supports fast extension.
  13035. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13036. PeerMessageUtil.
  13037. (createPeerMessage): Use create() of each message class instead of
  13038. PeerMessageUtil.
  13039. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13040. AllowedFastMessage were added.
  13041. (getNewPieceAndSendInterest): Changed its return value type to void.
  13042. Added the handling of fast extension.
  13043. (addRequests): New function.
  13044. (sendNow): Removed.
  13045. (sendHandshake): Rewritten.
  13046. (trySendNow): Removed.
  13047. (sendBitfield): New function.
  13048. (sendAllowdFast): New function.
  13049. (isInFastSet): New function.
  13050. (addFastSetIndex): New function.
  13051. (createRequestMessage): Use RequestMessage::create instead of
  13052. PeerMessageUtil.
  13053. (createCancelMessage): Use CancelMessage::create instead of
  13054. PeerMessageUtil.
  13055. (createPieceMessage): Use PieceMessage::create instead of
  13056. PeerMessageUtil.
  13057. (createHaveMessage): Use HaveMessage::create instead of
  13058. PeerMessageUtil.
  13059. (createChokeMessage): Use ChokeMessage::create instead of
  13060. PeerMessageUtil.
  13061. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13062. PeerMessageUtil.
  13063. (createInterestedMessage): Use InterestedMessage::create instead of
  13064. PeerMessageUtil.
  13065. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13066. of PeerMessageUtil.
  13067. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13068. PeerMessageUtil.
  13069. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13070. PeerMessageUtil.
  13071. (createHaveAllMessage): New function.
  13072. (createHaveNoneMessage): New function.
  13073. (createRejectMessage): New function.
  13074. (createAllowedFastMessage: New function.
  13075. * src/Util.h
  13076. (sha1Sum): New function.
  13077. (computeFastSet): New function.
  13078. * src/Util.cc
  13079. (sha1Sum): New function.
  13080. (computeFastSet): New function.
  13081. * src/Peer.h
  13082. (fastExtensionEnabled): New variable.
  13083. (fastSet): New variable.
  13084. (setAllBitfield): New function.
  13085. (setFastExtensionEnabled): New function.
  13086. (isFastExtensionEnabled): New function.
  13087. (addFastSetIndex): New function.
  13088. (getFastSet): New function.
  13089. (isInFastSet): New function.
  13090. (countFastSet): New function.
  13091. * src/Peer.cc
  13092. (isInFastSet): New function.
  13093. (addFastSetIndex): New function.
  13094. (setAllBitfield): New function.
  13095. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13096. sockets.
  13097. * src/PeerAbstractCommand.cc
  13098. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13099. and uploadLimit.
  13100. (execute): Changed the procedure of checking sockets. The upload speed
  13101. checking were added.
  13102. (setUploadLimit): New function.
  13103. (setUploadLimitCheck): New function.
  13104. * src/PeerAbstractCommand.h
  13105. (setUploadLimit): New function.
  13106. (setUploadLimitCheck): New function.
  13107. (uploadLimit): New variable.
  13108. (uploadLimitCheck): New variable.
  13109. To contact a tracker regularly:
  13110. * src/TrackerWatcherCommand.h (interval): New variable.
  13111. (checkPoint): New variable.
  13112. (TrackerWatcherCommand): Added interval argument.
  13113. * src/TrackerWatcherCommand.cc
  13114. (TrackerWatcherCommand): Initialized checkPoint.
  13115. (execute): Now a tracker is contacted in every specified period.
  13116. If peer list is not needed, send request with numwant=0.
  13117. * src/TrackerUpdateCommand.cc
  13118. (execute): Updated log messages.
  13119. * src/DownloadEngine.cc
  13120. (~DownloadEngine): Removed two asserts.
  13121. (waitData): Uncommented wfds. May be a bug fix.
  13122. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13123. * src/PeerInteractionCommand.h
  13124. (checkInactiveConnection): Removed.
  13125. * src/PeerInteractionCommand.cc
  13126. (executeInternal): Removed following function calls:
  13127. detectMessageFlooding(), checkLongTimePeerChoking and
  13128. checkInactiveConnection().
  13129. (checkInactiveConnection): Removed.
  13130. (detectMessageFlooding): Removed function call to
  13131. checkInactiveConnection().
  13132. * src/PeerMessageUtil.h
  13133. (createChokeMessage): New function. Overload.
  13134. (createUnchokeMessage): New function. Overload.
  13135. (createInterestedMessage): New function. Overload.
  13136. (createNotInterestedMessage): New function. Overload.
  13137. (createHaveMessage): New function. Overload.
  13138. (createBitfieldMessage): New function. Overload.
  13139. (createRequestMessage): New function. Overload.
  13140. (createCancelMessage): New function. Overload.
  13141. (createPieceMessage): New function. Overload.
  13142. (createKeepAliveMessage): New function. Overload.
  13143. * src/PeerMessageUtil.cc
  13144. (createChokeMessage): New function. Overload.
  13145. (createUnchokeMessage): New function. Overload.
  13146. (createInterestedMessage): New function. Overload.
  13147. (createNotInterestedMessage): New function. Overload.
  13148. (createHaveMessage): New function. Overload.
  13149. (createBitfieldMessage): New function. Overload.
  13150. (createRequestMessage): New function. Overload.
  13151. (createCancelMessage): New function. Overload.
  13152. (createPieceMessage): New function. Overload.
  13153. (createKeepAliveMessage): New function. Overload.
  13154. * src/SendMessageQueue.cc
  13155. (createRequestMessage): Use PeerMessageUtil.
  13156. (createCancelMessage): Use PeerMessageUtil.
  13157. (createPieceMessage): Use PeerMessageUtil.
  13158. (createHaveMessage): Use PeerMessageUtil.
  13159. (createChokeMessage): Use PeerMessageUtil.
  13160. (createUnchokeMessage): Use PeerMessageUtil.
  13161. (createInterestedMessage): Use PeerMessageUtil.
  13162. (createNotInterestedMessage): Use PeerMessageUtil.
  13163. (createBitfieldMessage): Use PeerMessageUtil.
  13164. (createKeepAliveMessage): Use PeerMessageUtil.
  13165. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13166. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13167. * src/PeerInteraction.h: New class.
  13168. * src/PeerInteraction.cc: New class.
  13169. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13170. Each peer message has its own class.
  13171. * src/PendingMessages.h: Removed.
  13172. * src/PendingMessages.cc: Removed. The sending process was moved to
  13173. each message class.
  13174. * src/RequestSlotMan.h: Removed.
  13175. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13176. SendMessageQueue.
  13177. * src/RequestMessage.h: New class.
  13178. * src/RequestMessage.cc: New class.
  13179. * src/CancelMessage.h: New class.
  13180. * src/CancelMessage.cc: New class.
  13181. * src/BitfieldMessage.h: New class.
  13182. * src/BitfieldMessage.cc: New class.
  13183. * src/ChokeMessage.h: New class.
  13184. * src/ChokeMessage.cc: New class.
  13185. * src/KeepAliveMessage.h: New class.
  13186. * src/KeepAliveMessage.cc: New class.
  13187. * src/PortMessage.h: New class.
  13188. * src/UnchokeMessage.h: New class.
  13189. * src/UnchokeMessage.cc: New class.
  13190. * src/PieceMessage.h: New class.
  13191. * src/PieceMessage.cc: New class.
  13192. * src/HaveMessage.h: New class.
  13193. * src/HaveMessage.cc: New class.
  13194. * src/BitfieldMessage.h: New class.
  13195. * src/BitfieldMessage.cc: New class.
  13196. * src/NotInterestedMessage.h: New class.
  13197. * src/NotInterestedMessage.cc: New class.
  13198. * src/InterestedMessage.h: New class.
  13199. * src/InterestedMessage.cc: New class.
  13200. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13201. (getSendMessageQueue): New function.
  13202. (setSendMessageQueue): New function.
  13203. * src/HandshakeMessage.cc: New class.
  13204. * src/PeerConnection.h (receiveMessage): Changed return value and
  13205. arguments.
  13206. (receiveHandshake): Changed return value and arguments.
  13207. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13208. here.
  13209. (receiveHandshake): Do not create handshake class here.
  13210. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13211. (piece): Removed.
  13212. (syncPiece): Removed.
  13213. (sendInterest): Removed.
  13214. (sendMessages): Removed.
  13215. (createRequestPendingMessage): Removed.
  13216. (checkPieceHash): Removed.
  13217. (erasePieceOnDisk): Removed.
  13218. (getNewPieceAndSendInterest): Removed.
  13219. (onGotNewPice): Removed.
  13220. (onGotWrongPiece): Removed.
  13221. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13222. Removed peerConnection, piece.
  13223. (~PeerInteractionCommand): Removed peerConnection.
  13224. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13225. (syncPiece): Moved to SendMessageQueue.
  13226. (decideChoking): Removed PendingMessage.
  13227. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13228. The action after receiving peer message was moved to each message
  13229. class.
  13230. (onGotNewPice): Moved to SendMessageQueue.
  13231. (onGotWrongPiece): Moved to SendMessageQueue.
  13232. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13233. (sendInterest): Moved to SendMessageQueue.
  13234. (createRequestPendingMessage): Removed.
  13235. (sendMessages): Moved to SendMessageQueue.
  13236. (onAbort): Use SendMessageQueue::abortPiece()
  13237. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13238. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13239. (checkPieceHash): Moved to SendMessageQueue.
  13240. (erasePieceOnDisk): Moved to SendMessageQueue.
  13241. * src/PeerMessageUtil.h
  13242. (createBitfieldMessage): Removed.
  13243. (createHaveMessage): Changed return value and arguments.
  13244. (createBitfieldMessage): Changed return value and arguments.
  13245. (createRequestCancelMessage): Removed.
  13246. (createPieceMessage): Changed return value and arguments.
  13247. (getShortIntParam): New function.
  13248. (checkIndex): Changed arguments.
  13249. (checkBegin): Changed arguments.
  13250. (checkLength): Changed arguments.
  13251. (checkPieceOffset): Removed.
  13252. (checkRange): New function.
  13253. (checkBitfield): Changed arguments.
  13254. (createPeerMessage): Removed.
  13255. (checkIntegrity): Removed.
  13256. (createHandshakeMessage): Changed arguments.
  13257. (createChokeMessage): New function.
  13258. (createUnchokeMessage): New function.
  13259. (createInterestedMessage): New function.
  13260. (createNotInterestedMessage): New function.
  13261. (createRequestMessage): New function.
  13262. (createCancelMessage): New function.
  13263. (createPortMessage): New function.
  13264. * src/PeerMessageUtil.cc
  13265. (createBitfieldMessage): Removed.
  13266. (createHaveMessage): Changed return value and arguments.
  13267. (createBitfieldMessage): Changed return value and arguments.
  13268. (createRequestCancelMessage): Removed.
  13269. (createPieceMessage): Changed return value and arguments.
  13270. (getShortIntParam): New function.
  13271. (checkIndex): Changed arguments.
  13272. (checkBegin): Changed arguments.
  13273. (checkLength): Changed arguments.
  13274. (checkPieceOffset): Removed.
  13275. (checkRange): New function.
  13276. (checkBitfield): Changed arguments.
  13277. (createPeerMessage): Removed.
  13278. (checkIntegrity): Removed.
  13279. (createHandshakeMessage): Changed arguments.
  13280. (createChokeMessage): New function.
  13281. (createUnchokeMessage): New function.
  13282. (createInterestedMessage): New function.
  13283. (createNotInterestedMessage): New function.
  13284. (createRequestMessage): New function.
  13285. (createCancelMessage): New function.
  13286. (createPortMessage): New function.
  13287. * src/PeerMessage.h
  13288. (id): Removed.
  13289. (index): Removed.
  13290. (begin): Removed.
  13291. (length): Removed.
  13292. (bitfield): Removed.
  13293. (bitfieldLength): Removed.
  13294. (block): Removed.
  13295. (blockLength): Removed.
  13296. (inProgress): New variable.
  13297. (cuid): New variable.
  13298. (peer): New variable.
  13299. (sendMessageQueue): New variable.
  13300. (logger): New variable.
  13301. (setBitfield): Removed.
  13302. (getBitfield): Removed.
  13303. (setBlock): Removed.
  13304. (getBlock): Removed.
  13305. (getBitfieldLength): Removed.
  13306. (getBlockLength): Removed.
  13307. (isInProgress): New function.
  13308. (toString): Made pure virtual.
  13309. (check): New function.
  13310. (send): New function.
  13311. (receivedAction): New function.
  13312. (getId): Made pure virtual.
  13313. (setId): Removed.
  13314. (getIndex): Removed.
  13315. (setIndex): Removed.
  13316. (getBegin): Removed.
  13317. (setBegin): Removed.
  13318. (getLength): Removed.
  13319. (setLength): Removed.
  13320. (getCuid): New function.
  13321. (setCuid): New function.
  13322. (getPeer): New function.
  13323. (setPeer): New function.
  13324. (getSendMessageQueue): New function.
  13325. (setSendMessageQueue): New function.
  13326. (ID): Removed.
  13327. * src/PeerMessage.cc
  13328. (setBitfield): Removed.
  13329. (setBlock): Removed.
  13330. (toString): Removed.
  13331. * src/TorrentMan.h
  13332. (getPieceLength): New function.
  13333. (getPieceLength): New function.
  13334. * src/SendMessageQueue.h
  13335. (REQUEST_TIME_OUT): New definition.
  13336. (RequestSlots): New definition.
  13337. (MessageQueue): New definition.
  13338. (requestSlotMan): Removed.
  13339. (pendingMessages): Removed.
  13340. (requestSlots): New variable.
  13341. (messageQueue): New variable.
  13342. (torrentMan): New variable.
  13343. (peerConnection): New variable.
  13344. (peer): New variable.
  13345. (piece): New variable.
  13346. (getNewPieceAndSendInterest): New function.
  13347. (createPeerMessage): New function.
  13348. (createHandshakeMessage): New function.
  13349. (send): Made private.
  13350. (setPeerMessageCommonProperty): New function.
  13351. (deleteAllRequestSlot): New function.
  13352. (deleteRequestMessageInQueue): New function.
  13353. (cancelAllRequest): Made private.
  13354. (cancelAllRequest): Made private.
  13355. (countRequestSlot): Made private.
  13356. (addPendingMessage): Removed.
  13357. (deletePendingPieceMessage): Removed.
  13358. (deletePendingRequestMessage): Removed.
  13359. (addMessage): New function.
  13360. (deletePieceMessageInQueue): New function.
  13361. (deleteTimeoutRequestSlot): Changed argument.
  13362. (deleteCompletedRequestSlot): Changed argument.
  13363. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13364. (getCorrespondingRequestSlot): New function.
  13365. (countPendingMessage): Removed.
  13366. (countMessageInQueue): New function.
  13367. (getTorrentMan): New function.
  13368. (getPeerConnection): New function.
  13369. (hasDownloadPiece): New function.
  13370. (getDownloadPiece): New function.
  13371. (setDownloadPiece): New function.
  13372. (syncPiece): New function.
  13373. (sendMessages): New function.
  13374. (sendNow): New function.
  13375. (trySendNow): New function.
  13376. (abortPiece): New function.
  13377. (sendHandshake): New function.
  13378. (receiveMessage): New function.
  13379. (receiveHandshake): New function.
  13380. (createRequestMessage): New function.
  13381. (createCancelMessage): New function.
  13382. (createPieceMessage): New function.
  13383. (createHaveMessage): New function.
  13384. (createChokeMessage): New function.
  13385. (createUnchokeMessage): New function.
  13386. (createInterestedMessage): New function.
  13387. (createNotInterestedMessage): New function.
  13388. (createBitfieldMessage): New function.
  13389. (createKeepAliveMessage): New function.
  13390. * src/SendMessageQueue.cc
  13391. (SendMessageQueue): Removed requestSlotMan.
  13392. Instantiated peerConnection here.
  13393. (~SendMessageQueue): Removed requestSlotMan.
  13394. Added deletion of peerConnection and the contents of messageQueue.
  13395. (send): Updated according to the change of messageQueue.
  13396. (addPendingMessage): Renamed to addMessage.
  13397. (addMessage): New function.
  13398. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13399. (deletePieceMessageInQueue): New function.
  13400. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13401. (deleteRequestMessageInQueue): New function.
  13402. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13403. here.
  13404. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13405. (...) was moved here.
  13406. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13407. moved here.
  13408. (deleteCompletedRequestSlot):
  13409. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13410. (getCorrespondingRequestSlot):
  13411. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13412. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13413. (countPendingMessage): Renamed to countMessageInQueue.
  13414. (countMessageInQueue): New function.
  13415. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13416. (receiveHandshake): New function.
  13417. (createHandshakeMessage): New function.
  13418. (receiveMessage): New function.
  13419. (createPeerMessage): New function.
  13420. (syncPiece): New function.
  13421. (getNewPieceAndSendInterest): New function.
  13422. (sendMessages): New function.
  13423. (sendNow): New function.
  13424. (trySendNow): New function.
  13425. (sendHandshake): New function.
  13426. (abortPiece): New function.
  13427. (getDownloadPiece): New function.
  13428. (getPeerMessageCommonProperty): New function.
  13429. (createRequestMessage): New function.
  13430. (createCancelMessage): New function.
  13431. (createPieceMessage): New function.
  13432. (createHaveMessage): New function.
  13433. (createChokeMessage): New function.
  13434. (createUnchokeMessage): New function.
  13435. (createInterestedMessage): New function.
  13436. (createNotInterestedMessage): New function.
  13437. (createBitfieldMessage): New function.
  13438. (createKeepAliveMessage): New function.
  13439. To add simple Content-Disposition support:
  13440. * src/HttpResponseCommand.h (determinFilename): New function.
  13441. * src/HttpResponseCommand.cc (executeInternal):
  13442. Use determinFilename(headers) instead of req->getFile() when comparing
  13443. filename.
  13444. (determinFilename): New function.
  13445. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13446. req->getFile().
  13447. (handleOtherEncoding): Use determinFilename(headers) instead of
  13448. req->getFile().
  13449. * src/Util.h (getContentDispositionFilename): New function.
  13450. * src/Util.cc (getContentDispositionFilename): New function.
  13451. * src/LogFactory.h (release): New function.
  13452. * src/LogFactory.cc (release): New function.
  13453. To fix a bug that causes out-of-bound exception when HTTP status
  13454. line is wrong:
  13455. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13456. size.
  13457. * src/common.h (Deleter): New class.
  13458. * src/SegmentMan.cc
  13459. (~SegmentMan): Added deletion of splitter and diskWriter.
  13460. * src/DownloadEngine.h
  13461. (Commands): Use deque.
  13462. (clearQueue): New function.
  13463. * src/DownloadEngine.cc
  13464. (~DownloadEngine): Added deletion of segmentMan.
  13465. (cleanQueue): New function.
  13466. * src/TorrentDownloadEngine.h
  13467. (TorrentDownloadEngine): The implementation was moved to
  13468. TorrentDownloadEngine.cc.
  13469. (~TorrentDownloadEngine): The implementation was moved to
  13470. TorrentDownloadEngine.cc.
  13471. * src/TorrentDownloadEngine.cc
  13472. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13473. * src/main.cc
  13474. (clearRequest): Removed.
  13475. (handler): Added deletion of e.
  13476. (torrentHandler): Added deletion of te.
  13477. (main): Do not share splitter.
  13478. Use Deleter instead of clearRequest.
  13479. Deletion of classes were updated.
  13480. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13481. * src/main.cc (main): Fixed typo.
  13482. * src/message.h: Fixed typo.
  13483. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13484. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13485. To add --select-file command-line option:
  13486. * src/Util.cc
  13487. (unfoldRange): New function.
  13488. (getNum): New function.
  13489. (unfoldSubRange): New function
  13490. * src/main.cc
  13491. (showUsage): Added help message.
  13492. (main): Added --select-file command-line option. Updated the layout of
  13493. file listing.
  13494. * src/common.h
  13495. (Integers): New definition.
  13496. * src/SocketCore.cc
  13497. (writeData): Removed timeout argument.
  13498. (readData): Removed timeout argument.
  13499. (peekData): Removed timeout argument.
  13500. * src/Socket.cc
  13501. (writeData): Removed timeout argument.
  13502. (readData): Removed timeout argument.
  13503. (peekData): Removed timeout argument.
  13504. * Release 0.4.1
  13505. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13506. To deploy upload rate based choking algorithm:
  13507. * src/PeerInteractionCommand.cc
  13508. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13509. peer currently used.
  13510. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13511. download completes. Simplified.
  13512. (receiveMessage): Updated.
  13513. * src/TorrentMan.h
  13514. (activePeers): New variable.
  13515. (addActivePeer): New function.
  13516. (getActivePeers): New function.
  13517. (deleteActivePeer): New function.
  13518. * src/TorrentMan.cc
  13519. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13520. * src/PeerAbstractCommand.cc
  13521. (onAbort): Use peer->resetStatus().
  13522. * src/main.cc
  13523. (PeerChokeCommand.h): Included.
  13524. (main): Added the instance of ChokingCommand to the command queue.
  13525. * src/Peer.h
  13526. (amChoking): Renamed from amChocking
  13527. (chokingRequired): New variable.
  13528. (optUnchoking): New variable.
  13529. (deltaUpload): New variable.
  13530. (deltaDownload): New variable.
  13531. (addDeltaUpload): New function.
  13532. (resetDeltaUpload): New function.
  13533. (addDeltaDownload): New function.
  13534. (resetDeltaDownload): New function.
  13535. (addPeerUpload): Added a call to addDeltaUpload.
  13536. (addPeerDownload): Added a call to addDeltaDownload.
  13537. * src/Peer.cc
  13538. (shouldBeChoking): Renamed from shouldChoke.
  13539. (resetStatus): New function.
  13540. * src/PeerChokeCommand.h: New class.
  13541. * src/PeerChokeCommand.cc: New class.
  13542. To add lazy upload speed limiter:
  13543. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13544. statistics calculation to TorrentDownloadEngine.
  13545. * src/TorrentConsoleDownloadEngine.cc
  13546. (sendStatistics): Renamed from printStatistics.
  13547. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13548. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13549. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13550. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13551. calculation.
  13552. (sendStatistics): New function as pure virtual function.
  13553. (getUploadSpeed): New function.
  13554. * src/TorrentDownloadEngine.cc
  13555. (initStatistics): New function.
  13556. (calculateSpeed): New function.
  13557. (calculateStatistics): New function.
  13558. * src/SendMessageQueue.h
  13559. (uploadLength): New variable.
  13560. (send): Added an argument.
  13561. (setUploadLimit): New function.
  13562. (getUploadLimit): New function.
  13563. * src/SendMessageQueue.cc
  13564. (send): Added upload speed limiter.
  13565. * src/prefs.h
  13566. (PREF_UPLOAD_LIMIT): New definition.
  13567. * src/PeerInteractionCommand.cc
  13568. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13569. * src/main.cc
  13570. (main): Added --upload-limit option
  13571. For bug fixes:
  13572. * src/main.cc
  13573. (showUsage): Corrected --listen-port help
  13574. Other changes:
  13575. * src/TorrentMan.cc
  13576. (getPeer): Return nullPeer if connection is grather than
  13577. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13578. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13579. To add some useful information to the exception message:
  13580. * src/SocketCore.cc : Updated messages.
  13581. * src/SegmentMan.cc :
  13582. * src/TorrentMan.cc : Updated messages.
  13583. * src/MultiDiskWriter.cc : Updated messages.
  13584. * src/Util.cc : Updated messages.
  13585. * src/AbstractDiskWriter.cc : Updated messages.
  13586. * src/PreAllocationDiskWriter.cc : Updated messages.
  13587. * src/message.cc : Added new messages. Updated some messages.
  13588. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13589. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13590. Updated threshold from 30 to 15.
  13591. * src/AbstractDiskWriter.h (filename): New variable.
  13592. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13593. (createFile): Assigned filename.
  13594. * src/main.cc: Updated the help message for http-auth-scheme.
  13595. * Release 0.4.0
  13596. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13597. To add TrackerUpdateCommand with which replaces
  13598. CompactTrackerResponseProcessor:
  13599. * src/TrackerWatcherCommand.h (req): Removed.
  13600. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13601. if the number of peer connections are less than 30.
  13602. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13603. * src/SegmentMan.h (diskWriter): New function.
  13604. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13605. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13606. (main): Use TrackerUpdateCommand.
  13607. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13608. (req): New variable.
  13609. (setTrackerResponseProcessor): Removed.
  13610. (getTrackerResponseProcessor): Removed.
  13611. (processTrackerResponse): Removed.
  13612. * src/DownloadEngine.h (diskWriter): Removed.
  13613. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13614. to torrentMan->processTrackerResponse().
  13615. To add Util::expandBuffer:
  13616. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13617. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13618. * src/Util.h (expandBuffer): New function.
  13619. To fix the bug that causes segmentation fault when "-l ." is specified
  13620. in command-line option:
  13621. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13622. (openFile): New function.
  13623. (closeFile): New function.
  13624. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13625. (~SimpleLogger): Call closeFile();
  13626. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13627. * src/main.cc (main): Added a check to see logger is configured
  13628. properly.
  13629. To enable HTTP authentication without specifying "--http-auth-scheme"
  13630. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13631. * src/HttpConnection.cc (createRequest): Send Authorization header
  13632. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13633. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13634. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13635. * src/Peer.cc (shouldChoke): Updated algorithm.
  13636. * src/message.h (EX_AUTH_FAILED): New definition.
  13637. (EX_FILE_OPEN): New definition.
  13638. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13639. if status == 401.
  13640. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13641. if req->isTorrent == true.
  13642. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13643. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13644. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13645. (createFile): Updated message.
  13646. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13647. To add a readout of estimated remaining time to normal HTTP/FTP
  13648. downloads:
  13649. * src/ConsoleDownloadEngine.h (startup): New variable.
  13650. (startupLength): New variable.
  13651. (isStartupLengthSet): New variable.
  13652. (avgSpeed): New variable.
  13653. (eta): New variable.
  13654. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13655. estimated remaining time.
  13656. (initStatistics): Initialized newly added variables.
  13657. (calculateStatistics): Calculate average speed and estimated remaining
  13658. time.
  13659. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13660. * src/TrackerDownloadCommand.h: Removed.
  13661. * src/TrackerDownloadCommand.cc: Removed.
  13662. * src/TrackerInitCommand.h: Removed.
  13663. * src/TrackerInitCommand.cc: Removed.
  13664. * src/TrackerUpdateCommand.h: Removed.
  13665. * src/TrackerUpdateCommand.cc: Removed.
  13666. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13667. url written in TrackerInitCommand was moved here. Do not create
  13668. tracker request command if torrentMan->trackers != 0.
  13669. * src/CompactTrackerResponseProcessor.h: New class.
  13670. * src/CompactTrackerResponseProcessor.cc: New class.
  13671. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13672. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13673. Decoupled TorrentDownloadEngine from this.
  13674. * src/SegmentMan.h (init): New function.
  13675. * src/SegmentMan.cc (init): New function.
  13676. * src/TorrentMan.h (responseProcessor): New variable.
  13677. (trackers): New variable.
  13678. (setTrackerResponseProcessor): New function.
  13679. (getTrackerResponseProcessor): New function.
  13680. (processTrackerResponse): New function.
  13681. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13682. (processTrackerResponse): New function.
  13683. * src/main.cc (main): Use ByteArrayDiskWriter and
  13684. CompactTrackerResponseProcessor.
  13685. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13686. processTrackerResponse().
  13687. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13688. readout.
  13689. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13690. which indicates download has completed.
  13691. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13692. (closeFile): fd >= 0, not fd > 0
  13693. * src/main.cc (main): Added short cut for show-files.
  13694. Added short cut for torrent-file.
  13695. Added new command-line option listen-port.
  13696. Updated i18n messages.
  13697. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13698. To add LogFactory which creates singleton logger:
  13699. * src/LogFactory.h: New class.
  13700. * src/LogFactory.cc: New class.
  13701. * src/Command.h (logger): New variable.
  13702. (Constructor): Use LogFactory.
  13703. * src/AbstractCommand.cc: Use Command::logger
  13704. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13705. Use LogFactory.
  13706. * src/SegmentSplitter.h : Made logger protected.
  13707. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13708. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13709. * src/DownloadEngine.h : Made logger protected.
  13710. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13711. * src/PeerInteractionCommand.cc : Use Command::logger.
  13712. * src/HttpResponseCommand.cc : Use Command::logger.
  13713. * src/SegmentMan.h : Made logger private.
  13714. * src/TorrentMan.h : Made logger private.
  13715. * src/TorrentMan.cc : Use LogFactory.
  13716. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13717. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13718. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13719. Use LogFactory.
  13720. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13721. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13722. Use LogFactory.
  13723. * src/DownloadCommand.cc : Use Command::logger.
  13724. * src/PeerAbstractCommand.cc : Use Command::logger.
  13725. * src/PeerListenCommand.cc : Use Command::logger.
  13726. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13727. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13728. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13729. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13730. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13731. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13732. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13733. Use LogFactory.
  13734. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13735. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13736. Use LogFactory.
  13737. * src/main.cc (main): Use LogFactory.
  13738. * src/DiskAdaptor.h (logger): New variable.
  13739. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13740. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13741. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13742. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13743. parameter to a tracker request.
  13744. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13745. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13746. * src/main.cc (setSignalHander): New function.
  13747. (main): Added a handler for SIGTERM.
  13748. (handler): Updated message.
  13749. (torrentHandler): Updated message.
  13750. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13751. * src/TorrentConsoleDownloadEngine.cc
  13752. (onPartialDownloadingCompletes): Renamed as
  13753. onSelectiveDownloadingCompletes.
  13754. (onSelectiveDownloadingCompletes): Updated message.
  13755. To add DiskAdaptor which abstract DiskWriter family:
  13756. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13757. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13758. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13759. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13760. MultiDiskAdaptor.h.
  13761. (readFileEntry): Changed its arguments.
  13762. (setup): setupDiskWriter is merged into this function.
  13763. (setupDiskWriter): Removed.
  13764. (setFileFilter): New function.
  13765. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13766. made in readFileEntry.
  13767. (getFilePath): Removed.
  13768. (getTempFilePath): Removed.
  13769. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13770. (fixFilename): Removed.
  13771. (copySingleFile): Removed.
  13772. (splitMultiFile): Removed.
  13773. (deleteTempFile): Removed.
  13774. (setFileEntriesToDownload): Removed.
  13775. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13776. (isSelectiveDownloadingMode): New function.
  13777. (setAllMultiFileRequestedState): Removed.
  13778. (finishPartialDownloadingMode): Renamed as
  13779. finishSelectiveDownloadingMode.
  13780. (finishSelectiveDownloadingMode): New function.
  13781. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13782. (getSelectedTotalLength): New function.
  13783. (onDownloadComplete): Use diskAdaptor.
  13784. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13785. (Range): Removed.
  13786. (setMultiFileEntries): Renamed as setFileEntries.
  13787. (setFileEntries): New function.
  13788. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13789. (pieceLength): New variable.
  13790. * src/main.cc (printDownloadCompeleteMessage): New function.
  13791. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13792. (main): Renamed torrent-show-files to show-files.
  13793. Rewritten file contents listing.
  13794. * src/TorrentMan.h (FileEntry): Removed.
  13795. (multiFileTopDir): Removed.
  13796. (multiFileEntries): Removed.
  13797. (diskWriter): Removed.
  13798. (diskAdaptor): New variable.
  13799. * src/DefaultDiskWriter.h (totalLength): New variable.
  13800. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13801. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13802. diskWriter.
  13803. * src/TorrentConsoleDownloadEngine.h
  13804. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13805. (partialTotalLength): Renamed as selectedTotalLength.
  13806. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13807. openExistingFile, otherwise call initAndOpenFile.
  13808. (closeFile): fd > 0, not fd != 0.
  13809. * src/DirectDiskAdaptor.h: New class.
  13810. * src/DirectDiskAdaptor.cc: New class.
  13811. * src/MultiDiskAdaptor.h: New class.
  13812. * src/MultiDiskAdaptor.cc: New class.
  13813. * src/CopyDiskAdaptor.h: New class.
  13814. * src/CopyDiskAdaptor.cc: New class.
  13815. * src/DiskAdaptor.h: New class.
  13816. * src/DiskAdaptor.cc: New class.
  13817. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13818. (PREF_SHOW_FILES): New definition.
  13819. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13820. To add the ability to download multi torrent into respective files
  13821. directly:
  13822. * src/DiskWriter.h (openFile): New function.
  13823. (seek): Removed.
  13824. * src/MultiDiskWriter.h: New class.
  13825. * src/MultiDiskWriter.cc: New class.
  13826. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13827. protected.
  13828. (openFile): New function.
  13829. * src/AbstractDiskWriter.cc (openFile): New function.
  13830. * src/prefs.h (V_FALSE): New definition.
  13831. (PREF_DIRECT_FILE_MAPPING): New definition.
  13832. * src/TorrentMan.h (setupDiskWriter): New function.
  13833. (setAllMultiFileRequestedState): New function.
  13834. (onDownloadComplete): New function.
  13835. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13836. (setupDiskWriter): New function.
  13837. (getFilePath): Updated.
  13838. (getTempFilePath): Updated.
  13839. (getSegmentFilePath): Updated.
  13840. (fixFilename): Updated.
  13841. (deleteTempFile): Updated.
  13842. (setAllMultiFileRequestedState): New function.
  13843. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13844. (finishPartialDownloadingMode): Reset requested flags.
  13845. (onDownloadComplete): New function.
  13846. * src/main.cc: Added --direct-file-mapping option.
  13847. Use TorrentMan::setupDiskWriter().
  13848. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13849. onDownloadComplete().
  13850. To fix ETA bug:
  13851. * src/Util.h (difftvsec): New function.
  13852. * src/Util.cc (difftvsec): New function.
  13853. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13854. type of "elapsed" instead of long long int.
  13855. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13856. The updates of statistics takes place every 1 seconds.
  13857. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13858. (calculateSpeed): Changed its argument signature.
  13859. * src/PeerMessage.cc (toString): Fixed message.
  13860. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13861. To print ETA:
  13862. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13863. completion handling when dealing with
  13864. TorrentMan::isPartialDownloadingMode() == true.
  13865. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13866. New function.
  13867. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13868. (sessionDownloadLength): New variable.
  13869. (avgSpeed): New variable.
  13870. (eta): New variable.
  13871. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13872. new variables: eta, avgSpeed, startup.
  13873. (calculateSpeed): Calculate average speed and ETA.
  13874. (printStatistics): Added ETA.
  13875. * src/Util.h (secfmt): New function.
  13876. * src/Util.cc (secfmt): New function.
  13877. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13878. To detect "keep alive" flooding:
  13879. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13880. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13881. variable: keepAliveCount.
  13882. (detectMessageFlooding): Added "keep alive" flooding detection.
  13883. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13884. received.
  13885. To add the ability to download only specified files in multi-file
  13886. torrent:
  13887. * src/BitfieldMan.h (filterBitfield): New variable.
  13888. (filterEnabled): New variable.
  13889. (setFilterBit): New function.
  13890. (enableFilter): New function.
  13891. (disableFilter): New function.
  13892. (isFilterEnabled): New function.
  13893. (getFilteredTotalLength): New function.
  13894. (getCompletedLength): New function.
  13895. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13896. filterBitfield, filterEnabled.
  13897. (CopyConstructor): Added filterBitfield and filterEnabled.
  13898. (operator==): Added filterBitfield and filterEnabled.
  13899. (Destructor): Added filterBitfield.
  13900. (getMissingIndex): Use filterBitfield.
  13901. (getMissingUnusedIndex): Use filterBitfield.
  13902. (getFirstMissingUnusedIndex): Use filterBitfield.
  13903. (getFirstMissingUnusedIndex): Use filterBitfield.
  13904. (getAllMissingIndexes): Use filterBitfield.
  13905. (countMissingBlock): Use filterBitfield.
  13906. (countBlock): Use filterBitfield.
  13907. (setBitInternal): Added new argument on.
  13908. (setUseBit): Use setBitInternal.
  13909. (unsetUseBit): Use setBitInternal.
  13910. (setBit): Use setBitInternal.
  13911. (unsetBit): Use setBitInternal.
  13912. (isAllBitSet): Use filterBitfield.
  13913. (setFilterBit): New function.
  13914. (addFilter): New function.
  13915. (enableFilter): New function.
  13916. (disableFilter): New function.
  13917. (clearFilter): New function.
  13918. (isFilterEnabled): New function.
  13919. (getFilteredTotalLength): New function.
  13920. (getCompletedLength): New function.
  13921. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13922. Initalized newly added variables.
  13923. [FileEntry](offset): New variable.
  13924. [FileEntry](extracted): New variable.
  13925. [FileEntry](requested): New variable.
  13926. (readFileEntry): New function.
  13927. (option): New variable.
  13928. (splitMultiFile): Removed const qualifier.
  13929. (fixFilename): Removed const qualifier.
  13930. (readFileEntryFromMetaInfoFile): New function.
  13931. (finishPartialDownloadingMode): New function.
  13932. (isPartialDownloadingMode): New function.
  13933. (setFileEntriesToDownload): New function.
  13934. (getCompletedLength): New function.
  13935. (getPartialTotalLength): New function.
  13936. * src/TorrentMan.cc (readFileEntry): New function.
  13937. (setup): Use readFileEntry. If no-preallocation option is specified,
  13938. use DefaultDiskWriter.
  13939. (readFileEntryFromMetaInfoFile): New function.
  13940. (fixFilename): Removed const qualifier.
  13941. (splitMultiFile): Removed const qualifier.
  13942. (setFileEntriesToDownload): New function.
  13943. (isPartialDownloadingMode): New function.
  13944. (finishPartialDownloadingMode): New function.
  13945. (getCompletedLength): New function.
  13946. (getPartialTotalLength): New function.
  13947. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13948. New variable.
  13949. (partialTotalLength): New variable.
  13950. (downloadLength): New variable.
  13951. (totalLength): New variable.
  13952. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13953. Added log.
  13954. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13955. partialTotalLength, downloadLength, totalLength.
  13956. (calculate): Calculate downloadLength and totalLength.
  13957. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13958. * src/main.cc (addCommand): Changed argument signature.
  13959. (main): Added new variable: args. Added new option "torrent-show-files"
  13960. "no-preallocation". Usage is not updated yet.
  13961. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13962. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13963. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13964. Attempt to add the ability to listing file entries in a .torrent file.
  13965. This feature is not yet complete.
  13966. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13967. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13968. (getName): New function.
  13969. * src/TorrentMan.h (getMultiFileEntries): New function.
  13970. (getName): New function.
  13971. * src/main.cc (main): Use above 2 funtion.
  13972. * Release 0.3.2
  13973. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13974. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13975. (detectMessageFlooding): Updated threshold value.
  13976. (checkLongTimePeerChoking): Updated timeout value.
  13977. (getNewPieceAndSendInterest): Added debug log.
  13978. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13979. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13980. (getPeer): Updated.
  13981. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13982. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13983. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13984. is localhost.
  13985. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13986. * src/PendingMessage.cc (processMessage): Not to send piece message
  13987. if peer is not interested in the pieces localhost has.
  13988. * src/Peer.cc (shouldChoke): Updated.
  13989. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13990. * src/Util.cc (isPowerOf): New function.
  13991. * src/Util.h (isPowerOf): New function.
  13992. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13993. whether or not it is power of 2.
  13994. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13995. Added new class SendMessageQueue that includes PendingMessages and
  13996. RequestSlotMan.
  13997. * src/SendMessageQueue.h: New class.
  13998. * src/SendMessageQueue.cc: New class.
  13999. * src/PendingMessage.h: Added new member variable blockIndex and its
  14000. accessors.
  14001. (createRequestMessage): Updated.
  14002. * src/PendingMessage.cc (createRequestMessage): Updated.
  14003. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  14004. SendMessageQueue.
  14005. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  14006. (receiveMessage): Updated with SendMessageQueue.
  14007. (deletePendingPieceMessage): Removed.
  14008. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  14009. (sendInterest): Updated with SendMessageQueue.
  14010. (createRequestPendingMessage): Updated with SendMessageQueue.
  14011. (sendMessages): Updated with SendMessageQueue.
  14012. (onAbort): Updated with SendMessageQueue.
  14013. (keepAlive): Updated with SendMessageQueue.
  14014. (beforeSocketCheck): Updated SendMessageQueue.
  14015. * src/PeerInteractionCommand (sendMessages): Shuffle
  14016. missingBLockIndexes before using it.
  14017. Added its own timeout for peer connection.
  14018. * src/PeerAbstractCommand.h: Added member variable timeout and its
  14019. setter.
  14020. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  14021. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14022. Added setTimeout() call.
  14023. (executeInternal): Added setTimeout() call.
  14024. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  14025. Added timeout.
  14026. (isTimeoutDetected): Updated.
  14027. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  14028. option.
  14029. Added *simple* message flooding checker.
  14030. * src/PeerInteractionCommand.cc (executeInternal):
  14031. Added detectMessageFlooding() call.
  14032. (detectMessageFlooding): New function.
  14033. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14034. (beforeSocketCheck): Added detectMessageFlooding() call.
  14035. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14036. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14037. Removed deletePendingPieceMessage(), getRequestSlot(),
  14038. deleteRequestSlot(), deleteAllRequestSlot().
  14039. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14040. Added checkLongTimePeerChoking() call.
  14041. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14042. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14043. if duplicate == false.
  14044. The parameter "uploaded" and "downloaded" in the tracker request are
  14045. the size since the client sent the "started" event to the tracker.
  14046. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14047. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14048. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14049. getSessionDownloadedSize(), getSessionUploadedSize().
  14050. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14051. getSessionUploadedSize() instead of getDownloadedSize(),
  14052. getUploadedSize().
  14053. * src/PendingMessage.cc (processMessage): Do not send request message
  14054. if the peer is choking the client.
  14055. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14056. less than interval.
  14057. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14058. * configure.in: Added gnutls support. Added several CPP macros.
  14059. * m4/openssl.m4: Added.
  14060. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14061. readData(), peekData(). Added gnutls support.
  14062. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14063. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14064. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14065. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14066. Instead, added a check for whether setup method has executed
  14067. successfully.
  14068. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14069. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14070. * src/Makefile.am: Updated.
  14071. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14072. using whether OpenSSL or gcrypt, depending on the result of configure
  14073. script.
  14074. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14075. messageDigest.h.
  14076. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14077. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14078. Fixed memory leak.
  14079. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14080. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14081. Removed instantiation of TrackerInitCommand. Instead,
  14082. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14083. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14084. ENABLE_SSL.
  14085. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14086. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14087. If a piece is already acquired by another command, delete the request
  14088. slots for the piece.
  14089. * src/TrackerUpdateCommand.cc (execute):
  14090. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14091. Added a check whether peer list is null.
  14092. Fixed the bug that causes sending completed event to the tracker
  14093. several times.
  14094. * src/TrackerInitCommand.cc (execute):
  14095. Fixed the bug that causes sending completed event to the tracker
  14096. several times.
  14097. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14098. by using messageDigest.h.
  14099. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14100. * PeerConnection.cc: Replaced log message "keep-alive" with
  14101. "keep alive".
  14102. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14103. localhost long time.
  14104. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14105. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14106. at most 100 failure entry from the list. If with duplicate = false,
  14107. MAX_PEER_LIST is not checked.
  14108. * PeerListenCommand.cc: Fixed the argument order of log message.
  14109. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14110. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14111. Added warn().
  14112. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14113. Implemented warn().
  14114. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14115. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14116. * Request.h: Added AFTER_COMPLETED event.
  14117. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14118. instead of downloaded size and progress(%) after download completes.
  14119. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14120. message to the peer if it is interested in what localhost has
  14121. downloaded.
  14122. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14123. destination instead of just renaming it.
  14124. * TorrentMan.cc: Added deleteTempFile().
  14125. * PeerAbstractCommand.cc: do not stop execution after download
  14126. completes. This makes localhost a seeder.
  14127. * Util.{h,cc}: Added fileCopy().
  14128. * PeerListenCommand.cc: do not stop execution after download completes.
  14129. This makes localhost a seeder.
  14130. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14131. Added TorrentMan::deleteTempFile() to torrentHandler.
  14132. Initialized the variable dir as ".".
  14133. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14134. Deleted renameSingleFile().
  14135. Added copySingleFile(), deleteTempFile().
  14136. * DownloadEngine.h: Added virtual function afterEachIteration().
  14137. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14138. in onEndOfRun() to afterEachIteration().
  14139. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14140. true.
  14141. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14142. In rangedFileCopy(), added try-catch block to properly close file
  14143. descriptors.
  14144. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14145. Added afterEachIteration(), isFilenameFixed().
  14146. * Peer.cc: Changed choking strategy.
  14147. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14148. * TrackerInitCommand.cc: Send completed event only once.
  14149. * DownloadEngine.cc: Added a call to afterEachIteration().
  14150. * TrackerUpdateCommand.cc: Do not stop execution after download
  14151. completes.
  14152. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14153. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14154. received from a tracker.
  14155. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14156. Decreased the number of failure peers to delete to 0(just comment out
  14157. the line).
  14158. * Release 0.3.1
  14159. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14160. * PeerInteractionCommand.cc: added a call to
  14161. TorrentMan::unadvertisePiece in Destructor.
  14162. * PeerInteractionCommand.cc: make have message sent immediately
  14163. if the size of pending message queue is zero.
  14164. * TorrentMan.cc: set the maximum size of peer list to 250.
  14165. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14166. to deque.
  14167. * Util.cc: fixed rangedFileCopy.
  14168. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14169. to Constructor. Also, moved digest cleanup to Destructor.
  14170. * MetaFileUtil.cc: fixed memory leak
  14171. * replaced std::vector with std::deque.
  14172. * AbstractCommand.cc: casted timeout value to long long int.
  14173. * ChunkedEncoding.cc: fixed memory leak.
  14174. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14175. * SleepCommand.cc: casted timeout value to long long int.
  14176. * Data.cc: fixed memory leak.
  14177. * Data.cc: fixed toLLInt().
  14178. * BitfieldMan.cc: fixed memory leak.
  14179. * TorrentMan.cc: initialized storeDir to ".".
  14180. * TorrentMan.cc: fixed memory leak.
  14181. * TorrentMan.cc: corrected file paths of splitted files.
  14182. * PeerAbstractCommand.cc: casted timeout to long long int.
  14183. * main.cc: added delete(req) and delete(te->diskWriter).
  14184. * RequestSlot.cc: casted timeout value to long long int.
  14185. * Request.cc: fixed memory leak.
  14186. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14187. have the piece.
  14188. * Peer.{h,cc}: added hasPiece(int index).
  14189. * main.cc: corrected addCommand.
  14190. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14191. * BitTorrent protocol support added.
  14192. * Release 0.3.0
  14193. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14194. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14195. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14196. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14197. decoding did not work properly.
  14198. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14199. * DownloadEngine.h: included sys/time.h
  14200. * DownloadEngine.cc: remove sys/time.h
  14201. * Makefile.am (SUBDIRS): Add intl.
  14202. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14203. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14204. * main.cc: correct help message for --http-auth-scheme.
  14205. * main.cc: changed e-mail address for bug reports.
  14206. * ja.po: added japanese translation.
  14207. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14208. * SimpleLogger.cc: flush log file instead of stdout.
  14209. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14210. * main.cc: Fixed command-line option: max-tries
  14211. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14212. does not equal to seg.sp.
  14213. * DownloadCommand.cc: If EOF is got from the server and the total size
  14214. of file is not zero, then throw DlRetryEx.
  14215. * main.cc: Set the minium value of min-segment-size to 1024.
  14216. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14217. fails because of a regression since 0.2.0 release.
  14218. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14219. * HttpConnection.cc:
  14220. * common.h: defined the user agent name as macro
  14221. * DownloadEngine.{h, cc}:
  14222. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14223. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14224. * main.cc: Download complete/abort message is now generated by main.
  14225. * Makefile.am (SUBDIRS): Add m4.
  14226. (ACLOCAL_AMFLAGS): New variable.
  14227. (EXTRA_DIST): New variable.
  14228. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14229. * gettext: added gettext functionality
  14230. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14231. * AbstractCommand.cc:
  14232. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14233. unregister its cuid from SegmentMan.
  14234. * DownloadEngine.cc: .aria2 file was written when a downloading
  14235. failed with errors.
  14236. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14237. Added "User-Agent" header to CONNECT proxy request.
  14238. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14239. properly.
  14240. * Logger.h:
  14241. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14242. * ChunkedEncoding.cc: Added #include directive for strings.h
  14243. * Release 0.2.1
  14244. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14245. * Util.{h,cc}: added startsWith().
  14246. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14247. Util::endsWith().
  14248. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14249. * common.h: added #include directive of limit.h.
  14250. * DownloadEngine.cc: added #include directive of sys/time.h and
  14251. algorithm.
  14252. * Exception.h: added #include directive of stdio.h.
  14253. * AbstractCommand.h: added #include directive of sys/time.h.
  14254. * DownloadCommand.h: added #include directive of sys/time.h.
  14255. * *.h: added #include directive of common.h to all base classes.
  14256. subclasses' one was removed.
  14257. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14258. does not define these macros.
  14259. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14260. * Release 0.2.0
  14261. * main.cc:
  14262. * HttpInitiateConnectionCommand.{h,cc}:
  14263. * prefs.h:
  14264. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14265. We can now use GET command in http proxy.
  14266. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14267. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14268. that splits slowest segment of SegmentMan::commands vector.
  14269. This is the default split algorithm of aria2.
  14270. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14271. that splits first segment of SegmentMan::commands vector.
  14272. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14273. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14274. * Segment.h:
  14275. * SegmentMan.cc: Added speed field to Segment.h
  14276. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14277. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14278. * message.h: Change file size related %d to %lld.
  14279. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14280. * FtpInitiateConnectionCommand.{h,cc}:
  14281. * FtpNegotiationCommand.{h,cc}:
  14282. * FtpDownloadCommand.{h,cc}:
  14283. * FtpConnection.{h,cc}: Added FTP support
  14284. * SimpleLogger.cc: Log message now includes time information.
  14285. * main.cc: The value of --http-auth-scheme option is chagned from
  14286. 'BASIC' to 'basic'
  14287. * main.cc: Added --timeout command-line option.
  14288. * main.cc: Added --min-segment-size command-line option.
  14289. * main.cc: Added --max-retries command-line option.
  14290. * prefs.h: option string constants are now defined in prefs.h
  14291. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14292. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14293. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14294. with version 0.1.0's one.
  14295. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14296. * configure.in: Added --enable-ssl option to configure script.
  14297. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14298. cannot permit absoluteURI as Request-URI.
  14299. * HttpConnection.cc: Added Referer support.
  14300. * main.cc: Added referer command-line option.
  14301. * main.cc: Added rety-wait command-line option.
  14302. * Exception.h: Fixed formating bug in Exception::setMsg()
  14303. * SocketCore.{h,cc}:
  14304. * Socket.{h, cc}:
  14305. * Request.cc:
  14306. * InitiateConnectionCommandFactory.cc:
  14307. * HttpRequestCommand.cc: Added HTTPS support.
  14308. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14309. for SocketCore.
  14310. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14311. size is wrong
  14312. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14313. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14314. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14315. * Release 0.1.0