ChangeLog 622 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912
  1. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed the bug that the option values changed by XML-RPC
  3. method(changeOption and changeGlobalOption) are overwritten to the
  4. previous value by the next these request which doesn't contain
  5. that option value. Supporse max-download-limit is initially 0. You
  6. changed this value to 100K by changeOption. Then you issue
  7. changeOption request to change max-upload-limit to 50K. This
  8. second request doesn't contain xml-download-limit, so it is back
  9. to initial value, 0. Another improvement is that exception is
  10. thrown when changeOption and changeGlobalOption request contains
  11. option name which doesn't allowed in each request.
  12. * src/DownloadEngine.h
  13. * src/XmlRpcMethod.cc
  14. * src/XmlRpcMethod.h
  15. * src/XmlRpcMethodImpl.cc
  16. * src/download_helper.cc
  17. * src/download_helper.h
  18. * test/XmlRpcMethodTest.cc
  19. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Added missing MetalinkParserStateImpl.{cc,h}
  21. * src/MetalinkParserStateImpl.cc
  22. * src/MetalinkParserStateImpl.h
  23. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Put all MetalinkParserState subclasses into
  25. MetalinkParserStateImpl.cc. Use stack to track element structure.
  26. * src/FileMetalinkParserState.cc: Removed
  27. * src/FileMetalinkParserState.h: Removed
  28. * src/FilesMetalinkParserState.cc: Removed
  29. * src/FilesMetalinkParserState.h: Removed
  30. * src/FinMetalinkParserState.cc: Removed
  31. * src/FinMetalinkParserState.h: Removed
  32. * src/HashMetalinkParserState.cc: Removed
  33. * src/HashMetalinkParserState.h: Removed
  34. * src/InitialMetalinkParserState.cc: Removed
  35. * src/InitialMetalinkParserState.h: Removed
  36. * src/LanguageMetalinkParserState.cc: Removed
  37. * src/LanguageMetalinkParserState.h: Removed
  38. * src/Makefile.am
  39. * src/MetalinkMetalinkParserState.cc: Removed
  40. * src/MetalinkMetalinkParserState.h: Removed
  41. * src/MetalinkParserState.h
  42. * src/MetalinkParserStateMachine.cc
  43. * src/MetalinkParserStateMachine.h
  44. * src/OSMetalinkParserState.cc: Removed
  45. * src/OSMetalinkParserState.h: Removed
  46. * src/PieceHashMetalinkParserState.cc: Removed
  47. * src/PieceHashMetalinkParserState.h: Removed
  48. * src/PiecesMetalinkParserState.cc: Removed
  49. * src/PiecesMetalinkParserState.h: Removed
  50. * src/ResourcesMetalinkParserState.cc: Removed
  51. * src/ResourcesMetalinkParserState.h: Removed
  52. * src/SignatureMetalinkParserState.cc: Removed
  53. * src/SignatureMetalinkParserState.h: Removed
  54. * src/SizeMetalinkParserState.cc: Removed
  55. * src/SizeMetalinkParserState.h: Removed
  56. * src/SkipTagMetalinkParserState.cc: Removed
  57. * src/SkipTagMetalinkParserState.h: Removed
  58. * src/URLMetalinkParserState.cc: Removed
  59. * src/URLMetalinkParserState.h: Removed
  60. * src/VerificationMetalinkParserState.cc: Removed
  61. * src/VerificationMetalinkParserState.h: Removed
  62. * src/VersionMetalinkParserState.cc: Removed
  63. * src/VersionMetalinkParserState.h: Removed
  64. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Move all functions in PeerMessageUtil to bittorrent_helper.
  66. * src/BtBitfieldMessage.cc
  67. * src/BtBitfieldMessageValidator.h
  68. * src/BtExtendedMessage.cc
  69. * src/BtHandshakeMessage.cc
  70. * src/BtHandshakeMessageValidator.h
  71. * src/BtPieceMessage.cc
  72. * src/BtPieceMessageValidator.h
  73. * src/BtPortMessage.cc
  74. * src/DHTFindNodeReplyMessage.cc
  75. * src/DHTGetPeersReplyMessage.cc
  76. * src/DHTMessageFactoryImpl.cc
  77. * src/DHTRoutingTableDeserializer.cc
  78. * src/DHTRoutingTableSerializer.cc
  79. * src/DHTTokenTracker.cc
  80. * src/DefaultBtMessageFactory.cc
  81. * src/IndexBtMessage.cc
  82. * src/IndexBtMessage.h
  83. * src/IndexBtMessageValidator.h
  84. * src/Makefile.am
  85. * src/PeerMessageUtil.cc: Removed.
  86. * src/PeerMessageUtil.h: Removed.
  87. * src/RangeBtMessage.cc
  88. * src/RangeBtMessage.h
  89. * src/RangeBtMessageValidator.h
  90. * src/UTPexExtensionMessage.cc
  91. * src/ZeroBtMessage.cc
  92. * src/ZeroBtMessage.h
  93. * src/bittorrent_helper.cc
  94. * src/bittorrent_helper.h
  95. * test/BittorrentHelperTest.cc
  96. * test/BtAllowedFastMessageTest.cc
  97. * test/BtBitfieldMessageTest.cc
  98. * test/BtCancelMessageTest.cc
  99. * test/BtChokeMessageTest.cc
  100. * test/BtExtendedMessageTest.cc
  101. * test/BtHandshakeMessageTest.cc
  102. * test/BtHaveAllMessageTest.cc
  103. * test/BtHaveMessageTest.cc
  104. * test/BtHaveNoneMessageTest.cc
  105. * test/BtInterestedMessageTest.cc
  106. * test/BtNotInterestedMessageTest.cc
  107. * test/BtPieceMessageTest.cc
  108. * test/BtPortMessageTest.cc
  109. * test/BtRejectMessageTest.cc
  110. * test/BtRequestMessageTest.cc
  111. * test/BtSuggestPieceMessageTest.cc
  112. * test/BtUnchokeMessageTest.cc
  113. * test/DHTFindNodeReplyMessageTest.cc
  114. * test/DHTGetPeersReplyMessageTest.cc
  115. * test/DHTMessageFactoryImplTest.cc
  116. * test/DHTRoutingTableDeserializerTest.cc
  117. * test/DHTRoutingTableSerializerTest.cc
  118. * test/DefaultBtMessageFactoryTest.cc
  119. * test/DefaultExtensionMessageFactoryTest.cc
  120. * test/Makefile.am
  121. * test/PeerListProcessorTest.cc
  122. * test/PeerMessageUtilTest.cc: Removed.
  123. * test/UTPexExtensionMessageTest.cc
  124. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Limit the size of values list when sending get_peers reply.
  126. * src/DHTGetPeersReplyMessage.cc
  127. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Updated banner
  129. * doc/xmlrpc/aria2rpc
  130. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Added missing help message for remove command.
  132. * doc/xmlrpc/aria2rpc
  133. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Generated configure and config.h.in
  135. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  136. Add check for fork(), which is missing on MinGW
  137. * src/daemon.cc
  138. * configure.ac
  139. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  141. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  142. Util::httpGMT().
  143. * src/Util.cc
  144. * src/Util.h
  145. * test/UtilTest.cc
  146. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. * Release 1.6.0
  148. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. Fixed a path to xmlrpc/README.txt
  150. * doc/Makefile.am
  151. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Added XML-RPC in -v Configuration output.
  153. * src/FeatureConfig.cc
  154. * src/FeatureConfig.h
  155. * test/FeatureConfigTest.cc
  156. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  157. Updated Bulgarian, Russian, Slovak and Japanese
  158. translations. Thanks to all translators.
  159. * po/bg.po
  160. * po/ja.po
  161. * po/ru.po
  162. * po/sk.po
  163. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Removed --retry-wait option from aria2rpc
  165. * doc/xmlrpc/aria2rpc
  166. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Removed --retry-wait option from man page.
  168. * doc/aria2c.1.txt
  169. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Removed --retry-wait option since the current architecture doesn't
  171. allow sleep for particular URI.
  172. * src/AbstractCommand.cc
  173. * src/OptionHandlerFactory.cc
  174. * src/download_helper.cc
  175. * src/prefs.cc
  176. * src/prefs.h
  177. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Removed Retry-After header support. Since the current architecture
  179. doesn't allow sleep for particular URI.
  180. * src/HttpSkipResponseCommand.cc
  181. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  182. Updated the help message for --daemon option.
  183. * doc/aria2c.1.txt
  184. * src/usage_text.h
  185. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Added our own daemon() function for systems which desn't have
  187. daemon(3).
  188. * configure.ac
  189. * src/Makefile.am
  190. * src/daemon.cc
  191. * src/daemon.h
  192. * src/option_processing.cc
  193. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Simplified File::getCurrentDir()
  195. * src/File.cc
  196. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Use exit() instead of _exit
  198. * src/RequestGroupMan.cc
  199. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Replaced "CATEGORY" with "TAGS".
  201. * src/usage_text.h
  202. * doc/aria2c.1.txt
  203. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  204. Updated the help message for --help option.
  205. * src/usage_text.h
  206. * doc/aria2c.1.txt
  207. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Updated man page for added help tags.
  209. * doc/aria2c.1.txt
  210. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  211. Added help category #file. Added #file tag to the options related
  212. to downloaded file.
  213. * src/OptionHandlerFactory.cc
  214. * src/help_tags.h
  215. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Added help categories: #cookie and #hook. Added #https tag to
  217. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  218. * src/OptionHandlerFactory.cc
  219. * src/help_tags.h
  220. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Made MSG_NOT_FILE translatable.
  222. * src/message.h
  223. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. Updated man page for --help option.
  225. * doc/aria2c.1.txt
  226. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  227. Updated doc.
  228. * src/XmlRpcMethod.h
  229. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Help category now starts with "#" to distinguish a category from
  231. keyword search. For example, "http" categroy is now "#http". You
  232. can type "--help=#http" to get explanation of options related to
  233. http. If '#' is omitted, then the argument is treated as a keyword
  234. and aria2 searches options whose name includes the keyword and
  235. print matched ones. For example, "--help=http" will show options
  236. whose name includes "http".
  237. * src/OptionHandlerFactory.cc
  238. * src/help_tags.h
  239. * src/usage_text.h
  240. * src/version_usage.cc
  241. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Documented missing experimental tag and newly added xml-rpc tag in
  243. man page.
  244. * doc/aria2c.1.txt
  245. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Added xml-rpc help tag. Tagged xml-rpc related options with
  247. xml-rpc tag.
  248. * src/OptionHandlerFactory.cc
  249. * src/help_tags.h
  250. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Updated message when a path is not a file. Updated common message
  252. for wrong option.
  253. * src/OptionHandlerException.cc
  254. * src/message.h
  255. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Use File::isFile() instead of File::exists(). Updated message when
  257. a path is not a file.
  258. * src/OptionHandlerImpl.cc
  259. * src/message.h
  260. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Fixed the bug that server performence profile is not updated when
  262. aria2c was terminated by emergency shutdown.
  263. * src/TrackerWatcherCommand.cc
  264. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Use LocalFilePathOptionHandler for -T and -M option.
  266. Updated message of MSG_FILE_NOT_EXIST.
  267. * src/OptionHandlerFactory.cc
  268. * src/message.h
  269. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  270. Added LocalFilePathOptionHandler which check whether the specified
  271. file path does exist or not.
  272. * src/OptionHandlerImpl.cc
  273. * src/message.h
  274. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  275. Updated wiki page URI.
  276. * README
  277. * doc/aria2c.1.txt
  278. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Added README.txt for xmlrpc directory.
  280. * doc/Makefile.am
  281. * doc/xmlrpc/README.txt
  282. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Bump up version number to 1.6.0.
  284. * configure.ac
  285. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Added XML-RPC client scripts written in ruby.
  287. * doc/Makefile.am
  288. * doc/xmlrpc/aria2mon
  289. * doc/xmlrpc/aria2rpc
  290. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Added support for IPv6 literal address in URI. Now aria2 can
  292. handle URI such as http://[::1]/
  293. * src/HttpRequest.cc
  294. * src/HttpRequest.h
  295. * src/Request.cc
  296. * src/Request.h
  297. * test/HttpRequestTest.cc
  298. * test/OptionHandlerTest.cc
  299. * test/RequestTest.cc
  300. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Fixed the bug that HTTP request header for XML-RPC request is not
  302. parsed properly.
  303. * src/HttpHeader.cc
  304. * src/HttpHeaderProcessor.cc
  305. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Fixed the bug that XML-RPC authorization might be done before HTTP
  307. request header is fully received.
  308. * src/HttpServerCommand.cc
  309. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Documented --xml-rpc-listen-all option in man page.
  311. * doc/aria2c.1.txt
  312. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. Added --xml-rpc-listen-all option. If true is given to this
  314. option, aria2 listens incoming XML-RPC requests on all network
  315. interfaces. If false is given, listens only on local loopback
  316. interface. The default value is false.
  317. * src/HttpListenCommand.cc
  318. * src/OptionHandlerFactory.cc
  319. * src/SocketCore.cc
  320. * src/SocketCore.h
  321. * src/prefs.cc
  322. * src/prefs.h
  323. * src/usage_text.h
  324. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. * Release 1.5.2
  326. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  327. Updated Ukrainian and Russian translations. Thanks to all
  328. translators.
  329. * po/ru.po
  330. * po/uk.po
  331. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Bump up version number to 1.5.2
  333. * configure.ac
  334. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  335. Get comment, comment.utf-8, created by and creation date from
  336. .torrent file and print them in -S output.
  337. * src/bittorrent_helper.cc
  338. * src/bittorrent_helper.h
  339. * test/BittorrentHelperTest.cc
  340. * test/test.torrent
  341. * test/utf8.torrent
  342. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Show exact file size along in -S option output.
  344. * src/Util.h
  345. * src/bittorrent_helper.cc
  346. * test/UtilTest.cc
  347. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  348. Avoided unnecessary memory allocation in
  349. BitfieldMan::getCompletedLength().
  350. * src/BitfieldMan.cc
  351. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Fixed the bug that download fails if
  353. SocketCore::establishConnection() throws exception and aria2
  354. doesn't try another address.
  355. * src/AbstractCommand.cc
  356. * src/InitiateConnectionCommand.cc
  357. * src/message.h
  358. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  360. detected properly.
  361. * m4/sqlite3.m4
  362. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  363. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  364. because it causes compile error if PARAMS macro is defined.
  365. * src/XmlRpcElements.cc
  366. * src/XmlRpcElements.h
  367. * src/XmlRpcRequestParserStateImpl.cc
  368. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  369. * Release 1.5.1
  370. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Bump up version number to 1.5.1
  372. * configure.ac
  373. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Fixed compile error without BitTorrent support
  375. * src/DefaultBtProgressInfoFile.cc
  376. * src/DownloadEngine.cc
  377. * src/DownloadEngine.h
  378. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Added missing '=' in Download Results
  380. * src/RequestGroupMan.cc
  381. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Fixed compiler warning
  383. * src/DefaultBtProgressInfoFile.cc
  384. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Fixed compiler warning on 32bit systems.
  386. * src/DownloadCommand.cc
  387. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Call flush from ServerStatMan::save()
  389. * src/ServerStatMan.cc
  390. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Check stream status after file is opened.
  392. * src/CookieStorage.cc
  393. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  394. Rewritten Signature::save()
  395. * src/Signature.cc
  396. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  397. Rewritten RequestGroupMan::saveServerStat()
  398. * src/RequestGroupMan.cc
  399. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  400. Rewritten stream error handling
  401. * src/DHTAutoSaveCommand.cc
  402. * src/DHTRoutingTableDeserializer.cc
  403. * src/DHTRoutingTableSerializer.cc
  404. * src/DHTSetup.cc
  405. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Check stream status after file is opened.
  407. * src/DefaultBtProgressInfoFile.cc
  408. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  409. Rewritten stream error handling
  410. * src/DefaultBtProgressInfoFile.cc
  411. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Make sure that stream is closed before renaming file. Unit test
  413. fails on mingw32 in the previous implementation.
  414. * src/CookieStorage.cc
  415. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Fixed the unit test error without sqlite3
  417. * test/CookieStorageTest.cc
  418. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Fixed the undefined reference error
  420. * test/HttpResponseTest.cc
  421. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. * Release 1.5.0
  423. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  425. Ukrainian translations. Thanks to all translators.
  426. * po/ru.po
  427. * po/it.po
  428. * po/da.po
  429. * po/bg.po
  430. * po/ja.po
  431. * po/uk.po
  432. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Added missing src/Logger.cc
  434. * src/Logger.cc
  435. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  436. Rewritten Logger to avoiding constly virtual call.
  437. * src/LogFactory.cc
  438. * src/LogFactory.h
  439. * src/Logger.h
  440. * src/Makefile.am
  441. * src/Makefile.in
  442. * src/NullLogger.h: Removed.
  443. * src/SimpleLogger.cc
  444. * src/SimpleLogger.h
  445. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Updated doc
  447. * src/main.cc
  448. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Updated debug log message
  450. * src/AbstractCommand.cc
  451. * src/message.h
  452. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  453. Avoid to create zombie process when commands specified in
  454. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  455. X and NetBSD.
  456. * src/main.cc
  457. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  458. Fixed typo
  459. * src/usage_text.h
  460. * doc/aria2c.1.txt
  461. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  462. Documented 'errorCode' of tellStatus in man page.
  463. * doc/aria2c.1.txt
  464. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  465. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  466. This key is only available for stopped/completed downloads and its
  467. value is the error code defined in EXIT STATUS in man page.
  468. * src/XmlRpcMethodImpl.cc
  469. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Fixed the bug that session download length is not updated when
  471. PeerStat is not fastest one.
  472. * src/SegmentMan.cc
  473. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Updated doc.
  475. * doc/aria2c.1.txt
  476. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  477. Updated doc.
  478. * src/AbstractCommand.cc
  479. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  480. Handle the case when DownloadContext has no FileEntry.
  481. * src/XmlRpcMethodImpl.cc
  482. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Handle the situation where struct option.name is char *.
  484. * configure.ac
  485. * src/OptionParser.cc
  486. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  487. Code cleanup
  488. * src/AbstractCommand.cc
  489. * src/DownloadCommand.cc
  490. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Use option of each download to create AuthConfig instead of global
  492. option.
  493. * src/AuthConfigFactory.cc
  494. * src/AuthConfigFactory.h
  495. * src/FtpNegotiationCommand.cc
  496. * src/HttpRequest.cc
  497. * src/HttpRequest.h
  498. * src/HttpRequestCommand.cc
  499. * src/HttpSkipResponseCommand.cc
  500. * src/MultiUrlRequestInfo.cc
  501. * test/AuthConfigFactoryTest.cc
  502. * test/FtpConnectionTest.cc
  503. * test/HttpRequestTest.cc
  504. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Don't call prepareForRetry(1) if all segments are ignored in
  506. SegmentMan.
  507. * src/AbstractCommand.cc
  508. * src/BitfieldMan.cc
  509. * src/BitfieldMan.h
  510. * src/SegmentMan.cc
  511. * src/SegmentMan.h
  512. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Removed FileEntry::getAssociatedUris()
  514. * src/FileEntry.h
  515. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  516. Updated doc: TODO1.5 -> TODO
  517. * src/FileEntry.cc
  518. * src/HttpResponseCommand.cc
  519. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Added assertion fileEntries.size() == 1 if BitTorrent is not
  521. involved.
  522. * src/RequestGroup.cc
  523. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Eliminated duplicated filterBitfield initialization code.
  525. * src/BitfieldMan.cc
  526. * src/BitfieldMan.h
  527. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  528. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  529. relatively naive approach, though). For DownloadFailureException,
  530. we handle the case when req is null properly.
  531. * src/AbstractCommand.cc
  532. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Added function returning suffix of control file to
  534. DefaultBtProgressInfoFile.
  535. * src/DefaultBtProgressInfoFile.cc
  536. * src/DefaultBtProgressInfoFile.h
  537. * src/RequestGroup.cc
  538. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Documented getVersion in man page.
  540. * doc/aria2c.1.txt
  541. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Documented type of offset and num for tellWaiting xml-rpc method.
  543. * doc/aria2c.1.txt
  544. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  545. Implemented getVersion xml-rpc method. This method returns struct
  546. which has 2 key-value pairs: "version" key is associated to the
  547. version of aria2, such as "1.5.0". "enabledFeatures" key is
  548. associated to the list of enabled features, such as "Async DNS",
  549. "BitTorrent".
  550. * src/FeatureConfig.h
  551. * src/XmlRpcMethodFactory.cc
  552. * src/XmlRpcMethodImpl.cc
  553. * src/XmlRpcMethodImpl.h
  554. * test/XmlRpcMethodTest.cc
  555. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  556. Removed TLS1.1 protocol support when aria2 is built with gnutls
  557. for compatibility issue.
  558. * src/SocketCore.cc
  559. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Fixed compile error with openSSL
  561. * src/bittorrent_helper.cc
  562. * src/messageDigest.h
  563. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Removed bad code: setting certificate type priority to key
  565. exchange priority.
  566. * src/SocketCore.cc
  567. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Disconnect seeder if client is also in seed state.
  569. * src/BtBitfieldMessage.cc
  570. * src/BtHaveAllMessage.cc
  571. * src/BtHaveMessage.cc
  572. * src/message.h
  573. * test/BtBitfieldMessageTest.cc
  574. * test/BtHaveAllMessageTest.cc
  575. * test/BtHaveMessageTest.cc
  576. * test/MockPieceStorage.h
  577. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Keep CreateRequestCommand in queue when no segment is available so
  579. that they can pick up pieces which slow BitTorrent peers are
  580. downloading.
  581. * src/AbstractCommand.cc
  582. * src/CreateRequestCommand.cc
  583. * src/CreateRequestCommand.h
  584. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. --bt-stop-timeout now only checks download speed.
  586. * src/BtStopDownloadCommand.cc
  587. * src/BtStopDownloadCommand.h
  588. * src/BtSetup.cc
  589. * src/usage_text.h
  590. * doc/aria2c.1.txt
  591. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Fixed compile error regarding BUFSIZE.
  593. * src/DownloadCommand.cc
  594. * src/DownloadCommand.h
  595. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  596. Documented tellWaiting xml-rpc method in man page.
  597. * doc/aria2c.1.txt
  598. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Bump up version number to 1.5.0
  600. * configure.ac
  601. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. Removed resolved TODO1.5
  603. * src/AbstractCommand.cc
  604. * src/DownloadCommand.cc
  605. * src/RequestGroup.cc
  606. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Release pooled and in-flight Request objectsand URIResult objects
  608. in FileEntry after download completed.
  609. * src/DownloadContext.cc
  610. * src/DownloadContext.h
  611. * src/FileEntry.cc
  612. * src/FileEntry.h
  613. * src/RequestGroup.cc
  614. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  615. Set manual and source attribute in aria2c.1.txt
  616. * doc/aria2c.1.txt
  617. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Documented that the default value of --use-head is 'false' in man
  619. page.
  620. * doc/aria2c.1.txt
  621. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Added bt-stop-timeout option to -i list.
  623. * doc/aria2c.1.txt
  624. * src/download_helper.cc
  625. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Fixed typo
  627. * doc/aria2c.1.txt
  628. * src/usage_text.h
  629. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Removed peer-id-prefix option from -i list.
  631. * doc/aria2c.1.txt
  632. * src/download_helper.cc
  633. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Fixed typo
  635. * doc/aria2c.1.txt
  636. * src/usage_text.h
  637. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Documented --bt-stop-timeout option in man page.
  639. * doc/aria2c.1.txt
  640. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. Updated README regarding multi-file torrent web-seeding.
  642. * doc/README.txt
  643. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Updated man page regarding multi-file torrent web-seeding.
  645. * doc/aria2c.1.txt
  646. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Updated doc
  648. * src/version_usage.cc
  649. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Winsock select() doesn't work if no socket is in FD_SET. To
  651. overcome this problem, a dummy socket is added to FD_SET and it is
  652. given to select().
  653. * src/SelectEventPoll.cc
  654. * src/SelectEventPoll.h
  655. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Disabled --use-head option by default because --use-head=true
  657. causes problems on some web sites.
  658. * src/OptionHandlerFactory.cc
  659. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Print URL List in -S option for torrent.
  661. * src/bittorrent_helper.cc
  662. * src/bittorrent_helper.h
  663. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  664. Allocate buffer in ctor of DownloadCommand.
  665. * src/DownloadCommand.cc
  666. * src/DownloadCommand.h
  667. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Removed DiskAdaptor::onDownloadComplete()
  669. * src/DirectDiskAdaptor.cc
  670. * src/DirectDiskAdaptor.h
  671. * src/DiskAdaptor.h
  672. * src/MultiDiskAdaptor.cc
  673. * src/MultiDiskAdaptor.h
  674. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Committed missing BtStopDownloadCommand.{cc,h}
  676. * src/BtStopDownloadCommand.cc
  677. * src/BtStopDownloadCommand.h
  678. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  680. download if the download speed is 0 and the number of seeder is 0
  681. in consecutive SEC seconds. By default, this function is disabled.
  682. * src/BtSetup.cc
  683. * src/Makefile.am
  684. * src/OptionHandlerFactory.cc
  685. * src/prefs.cc
  686. * src/prefs.h
  687. * src/usage_text.h
  688. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Removed the call to DiskAdaptor::onDownloadComplete() from
  690. BtCheckIntegrityEntry and DefaultPieceStorage.
  691. * src/BtCheckIntegrityEntry.cc
  692. * src/DefaultPieceStorage.cc
  693. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Commented out throw statements when number of piece is 0 to
  695. download 0 length torrent.
  696. * src/bittorrent_helper.cc
  697. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Call RequestGroup::createNextCommandWithAdj() from
  699. BtFileAllocationEntry if at least one FileEntry has URI. The
  700. static function hasAssociatedUri in RequestGroup.cc is renamed as
  701. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  702. * src/BtFileAllocationEntry.cc
  703. * src/FileEntry.h
  704. * src/RequestGroup.cc
  705. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Generate peer ID after SimpleRandomizer is initialized.
  707. * src/main.cc
  708. * src/option_processing.cc
  709. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Removed unused method argument.
  711. * src/CreateRequestCommand.cc
  712. * src/RequestGroup.cc
  713. * src/RequestGroup.h
  714. * src/RequestGroupMan.cc
  715. * src/TrackerWatcherCommand.cc
  716. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Made URI reusing function work.
  718. * src/CreateRequestCommand.cc
  719. * src/FileEntry.cc
  720. * src/FileEntry.h
  721. * test/FileEntryTest.cc
  722. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Add formerly fastest PeerStat's sessionDownloadLength to new
  724. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  725. bytes in a session.
  726. * src/PeerStat.cc
  727. * src/SegmentMan.cc
  728. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. If pipelining is enabled, we can always pool socket.
  730. * src/HttpDownloadCommand.cc
  731. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. In a single file download, file size becomes known just after
  733. downloading, set total length to FileEntry object when download
  734. completed.
  735. * src/DownloadCommand.cc
  736. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Use std::vector::reserve() for fileEntries and pieceHashes in
  738. bittorrent_helper
  739. * src/bittorrent_helper.cc
  740. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  742. Removed hidden option PREF_RESET_URI.
  743. * src/AbstractCommand.cc
  744. * src/OptionHandlerFactory.cc
  745. * src/prefs.cc
  746. * src/prefs.h
  747. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Removed unused variable/function.
  749. * src/PeerStat.h
  750. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Show first URL in Download Results if file path is not available.
  752. * src/FileEntry.h
  753. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Throw exception if file path doesn't exist in FTP URL.
  755. * src/InitiateConnectionCommandFactory.cc
  756. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  758. * src/BitfieldMan.cc
  759. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  761. of PeerStat in SegmentMan. peerStats is used for calculating
  762. download speed. Therefore all active PeerStats should be in
  763. there. Another one is _fastestPeerStats and it only contains
  764. fastest PeerStat for each hostname/protocol pair. They are used
  765. for updating ServerStat.
  766. * src/DownloadCommand.cc
  767. * src/Request.h
  768. * src/RequestGroupMan.cc
  769. * src/SegmentMan.cc
  770. * src/SegmentMan.h
  771. * test/SegmentManTest.cc
  772. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Try all available addresses returned by DNS until it gets
  774. connected in HTTP(S)/FTP download
  775. * src/AbstractCommand.cc
  776. * src/AbstractCommand.h
  777. * src/AbstractProxyRequestCommand.cc
  778. * src/AbstractProxyRequestCommand.h
  779. * src/DNSCache.h
  780. * src/DownloadEngine.cc
  781. * src/DownloadEngine.h
  782. * src/FtpInitiateConnectionCommand.cc
  783. * src/FtpInitiateConnectionCommand.h
  784. * src/FtpNegotiationCommand.cc
  785. * src/FtpNegotiationCommand.h
  786. * src/HttpInitiateConnectionCommand.cc
  787. * src/HttpInitiateConnectionCommand.h
  788. * src/HttpRequestCommand.cc
  789. * src/HttpRequestCommand.h
  790. * src/InitiateConnectionCommand.cc
  791. * src/InitiateConnectionCommand.h
  792. * test/DNSCacheTest.cc
  793. * test/Makefile.am
  794. * test/SimpleDNSCacheTest.cc
  795. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Updated doc
  797. * src/download_helper.cc
  798. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Refactored fieldMan ctor.
  800. * src/BitfieldMan.cc
  801. * src/BitfieldMan.h
  802. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Don't print "No files to download." message if -S is given.
  804. * src/main.cc
  805. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Set referer and method to newly created Request object.
  807. * src/CreateRequestCommand.cc
  808. * src/FileEntry.cc
  809. * src/FileEntry.h
  810. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Removed ctor of AbstractCommand which doesn't take FileEntry.
  812. * src/AbstractCommand.cc
  813. * src/AbstractCommand.h
  814. * src/CreateRequestCommand.cc
  815. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. Get proxy download working
  817. * src/AbstractProxyRequestCommand.cc
  818. * src/AbstractProxyRequestCommand.h
  819. * src/AbstractProxyResponseCommand.cc
  820. * src/AbstractProxyResponseCommand.h
  821. * src/FtpInitiateConnectionCommand.cc
  822. * src/FtpTunnelRequestCommand.cc
  823. * src/FtpTunnelRequestCommand.h
  824. * src/FtpTunnelResponseCommand.cc
  825. * src/FtpTunnelResponseCommand.h
  826. * src/HttpInitiateConnectionCommand.cc
  827. * src/HttpProxyRequestCommand.cc
  828. * src/HttpProxyRequestCommand.h
  829. * src/HttpProxyResponseCommand.cc
  830. * src/HttpProxyResponseCommand.h
  831. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Use SegmentMan::getSegment(cuid) for single file download.
  833. * src/AbstractCommand.cc
  834. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Fixed bufSize calculation
  836. * src/DownloadCommand.cc
  837. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Don't append "/" if base URI ends with "/".
  839. * src/bittorrent_helper.cc
  840. * test/url-list-multiFile.torrent
  841. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. HTTP pipelining is now working. Fixed Segmention fault in
  843. BitfieldMan's copy ctor.
  844. * src/AbstractCommand.cc
  845. * src/BitfieldMan.cc
  846. * src/BitfieldMan.h
  847. * src/DownloadCommand.cc
  848. * src/HttpDownloadCommand.cc
  849. * src/HttpRequest.cc
  850. * src/SegmentMan.cc
  851. * src/SegmentMan.h
  852. * test/BitfieldManTest.cc
  853. * test/SegmentManTest.cc
  854. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Removed ServerHost. Same functionality is implemented using
  856. FileEntry's in-flight Request objects.
  857. * src/AbstractCommand.cc
  858. * src/BtDependency.cc
  859. * src/CreateRequestCommand.cc
  860. * src/FileEntry.cc
  861. * src/FileEntry.h
  862. * src/FtpNegotiationCommand.cc
  863. * src/HttpResponseCommand.cc
  864. * src/Makefile.am
  865. * src/Metalink2RequestGroup.cc
  866. * src/RequestGroup.cc
  867. * src/RequestGroup.h
  868. * src/ServerHost.cc: Removed
  869. * src/ServerHost.h: Removed
  870. * test/BtDependencyTest.cc
  871. * test/FileEntryTest.cc
  872. * test/RequestGroupTest.cc
  873. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Rewritten PeerStat handling. In the previous implementation,
  875. faster command tries to find slower command. In this new
  876. implementation, slower command tries to find faster command.
  877. PeerStat is now created in each HTTP/FTP request to get download
  878. rate correctly. If the download range is small, the download rate
  879. tends to small and this will occur at the later stage of download.
  880. * src/AbstractCommand.cc
  881. * src/DownloadCommand.cc
  882. * src/FileEntry.cc
  883. * src/FileEntry.h
  884. * src/Request.cc
  885. * src/Request.h
  886. * src/RequestGroup.h
  887. * src/RequestGroupMan.cc
  888. * src/SegmentMan.cc
  889. * src/SegmentMan.h
  890. * test/SegmentManTest.cc
  891. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Removed _uris from RequestGroup. All functions that refer to _uris
  893. were moved to FileEntry. Exit status code are now defined in
  894. DownloadResultCode.h.
  895. * src/AbstractCommand.cc
  896. * src/AdaptiveURISelector.cc
  897. * src/AdaptiveURISelector.h
  898. * src/AutoSaveCommand.cc
  899. * src/BtPostDownloadHandler.cc
  900. * src/CheckIntegrityDispatcherCommand.cc
  901. * src/CookieStorage.cc
  902. * src/DHTAutoSaveCommand.cc
  903. * src/DHTBucketRefreshCommand.cc
  904. * src/DHTEntryPointNameResolveCommand.cc
  905. * src/DHTInteractionCommand.cc
  906. * src/DHTPeerAnnounceCommand.cc
  907. * src/DHTTokenUpdateCommand.cc
  908. * src/DlAbortEx.h
  909. * src/DlRetryEx.h
  910. * src/DownloadCommand.cc
  911. * src/DownloadContext.h
  912. * src/DownloadFailureException.h
  913. * src/DownloadResult.h
  914. * src/DownloadResultCode.h
  915. * src/FeedbackURISelector.cc
  916. * src/FeedbackURISelector.h
  917. * src/FileEntry.cc
  918. * src/FileEntry.h
  919. * src/FtpNegotiationCommand.cc
  920. * src/HttpListenCommand.cc
  921. * src/HttpResponseCommand.cc
  922. * src/HttpServerResponseCommand.cc
  923. * src/HttpSkipResponseCommand.cc
  924. * src/InOrderURISelector.cc
  925. * src/InOrderURISelector.h
  926. * src/Makefile.am
  927. * src/Makefile.in
  928. * src/Metalink2RequestGroup.cc
  929. * src/MultiUrlRequestInfo.cc
  930. * src/MultiUrlRequestInfo.h
  931. * src/OptionHandlerFactory.cc
  932. * src/PeerListenCommand.cc
  933. * src/RecoverableException.h
  934. * src/RequestGroup.cc
  935. * src/RequestGroup.h
  936. * src/RequestGroupMan.cc
  937. * src/RequestGroupMan.h
  938. * src/TimedHaltCommand.cc
  939. * src/TrackerWatcherCommand.cc
  940. * src/URIResult.cc
  941. * src/URIResult.h
  942. * src/URISelector.h
  943. * src/XmlRpcMethodImpl.cc
  944. * src/bittorrent_helper.cc
  945. * src/bittorrent_helper.h
  946. * src/download_helper.cc
  947. * src/main.cc
  948. * src/option_processing.cc
  949. * test/BtDependencyTest.cc
  950. * test/BtPostDownloadHandlerTest.cc
  951. * test/CookieStorageTest.cc
  952. * test/DefaultBtMessageDispatcherTest.cc
  953. * test/DownloadHandlerFactoryTest.cc
  954. * test/DownloadHelperTest.cc
  955. * test/FeedbackURISelectorTest.cc
  956. * test/FileEntryTest.cc
  957. * test/InOrderURISelectorTest.cc
  958. * test/Metalink2RequestGroupTest.cc
  959. * test/MetalinkPostDownloadHandlerTest.cc
  960. * test/RequestGroupManTest.cc
  961. * test/RequestGroupTest.cc
  962. * test/XmlRpcMethodTest.cc
  963. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Removed MockBtContext.h
  965. * test/Makefile.am
  966. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Removed _currentRequest from StreamCheckIntegrityEntry and
  968. StreamFileAllocationEntry.
  969. * src/AbstractCommand.cc
  970. * src/HttpResponseCommand.cc
  971. * src/RequestGroup.cc
  972. * src/StreamCheckIntegrityEntry.cc
  973. * src/StreamCheckIntegrityEntry.h
  974. * src/StreamFileAllocationEntry.cc
  975. * src/StreamFileAllocationEntry.h
  976. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Rewritten DownloadContext and removed SingleFileDownloadContext
  978. and BtContext and its derived classes. BitTorrent specific
  979. attributes are now set by DownloadContext::setAttribute() with key
  980. bittorrent::BITTORRENT.
  981. * src/AbstractBtMessage.cc
  982. * src/AbstractBtMessage.h
  983. * src/AbstractCommand.cc
  984. * src/AbstractCommand.h
  985. * src/AbstractProxyRequestCommand.cc
  986. * src/AbstractProxyResponseCommand.cc
  987. * src/ActivePeerConnectionCommand.cc
  988. * src/ActivePeerConnectionCommand.h
  989. * src/AnnounceList.cc
  990. * src/BtCheckIntegrityEntry.cc
  991. * src/BtConstants.h
  992. * src/BtContext.h: Removed
  993. * src/BtDependency.cc
  994. * src/BtExtendedMessage.cc
  995. * src/BtPieceMessage.cc
  996. * src/BtPieceMessage.h
  997. * src/BtPostDownloadHandler.cc
  998. * src/BtRegistry.cc
  999. * src/BtRegistry.h
  1000. * src/BtSetup.cc
  1001. * src/CheckIntegrityCommand.cc
  1002. * src/CheckIntegrityEntry.cc
  1003. * src/ChecksumCheckIntegrityEntry.cc
  1004. * src/ConsoleStatCalc.cc
  1005. * src/ContentTypeRequestGroupCriteria.cc
  1006. * src/DHTGetPeersCommand.cc
  1007. * src/DHTGetPeersCommand.h
  1008. * src/DHTPeerLookupTask.cc
  1009. * src/DHTPeerLookupTask.h
  1010. * src/DHTTaskFactory.h
  1011. * src/DHTTaskFactoryImpl.cc
  1012. * src/DHTTaskFactoryImpl.h
  1013. * src/DefaultBtAnnounce.cc
  1014. * src/DefaultBtAnnounce.h
  1015. * src/DefaultBtContext.cc: Removed
  1016. * src/DefaultBtContext.h: Removed
  1017. * src/DefaultBtInteractive.cc
  1018. * src/DefaultBtInteractive.h
  1019. * src/DefaultBtMessageDispatcher.cc
  1020. * src/DefaultBtMessageDispatcher.h
  1021. * src/DefaultBtMessageFactory.cc
  1022. * src/DefaultBtMessageFactory.h
  1023. * src/DefaultBtMessageReceiver.cc
  1024. * src/DefaultBtMessageReceiver.h
  1025. * src/DefaultBtProgressInfoFile.cc
  1026. * src/DefaultBtRequestFactory.cc
  1027. * src/DefaultBtRequestFactory.h
  1028. * src/DefaultExtensionMessageFactory.cc
  1029. * src/DefaultExtensionMessageFactory.h
  1030. * src/DefaultPeerStorage.cc
  1031. * src/DefaultPeerStorage.h
  1032. * src/DefaultPieceStorage.cc
  1033. * src/DefaultSegmentManFactory.cc
  1034. * src/DiskAdaptor.cc
  1035. * src/DiskAdaptor.h
  1036. * src/DownloadContext.cc
  1037. * src/DownloadContext.h
  1038. * src/DownloadEngine.cc
  1039. * src/DownloadEngineFactory.cc
  1040. * src/DownloadHandler.cc
  1041. * src/DownloadResult.h
  1042. * src/FileAllocationCommand.cc
  1043. * src/FileAllocationDispatcherCommand.cc
  1044. * src/FileAllocationEntry.cc
  1045. * src/FileEntry.h
  1046. * src/FillRequestGroupCommand.cc
  1047. * src/FtpDownloadCommand.cc
  1048. * src/FtpFinishDownloadCommand.cc
  1049. * src/FtpInitiateConnectionCommand.cc
  1050. * src/FtpNegotiationCommand.cc
  1051. * src/FtpTunnelRequestCommand.cc
  1052. * src/FtpTunnelResponseCommand.cc
  1053. * src/HandshakeExtensionMessage.cc
  1054. * src/HandshakeExtensionMessage.h
  1055. * src/HaveEraseCommand.cc
  1056. * src/HttpDownloadCommand.cc
  1057. * src/HttpInitiateConnectionCommand.cc
  1058. * src/HttpProxyRequestCommand.cc
  1059. * src/HttpProxyResponseCommand.cc
  1060. * src/HttpRequest.cc
  1061. * src/HttpRequest.h
  1062. * src/HttpRequestCommand.cc
  1063. * src/HttpResponseCommand.cc
  1064. * src/HttpServerBodyCommand.cc
  1065. * src/HttpServerCommand.cc
  1066. * src/HttpSkipResponseCommand.cc
  1067. * src/InitiateConnectionCommandFactory.cc
  1068. * src/InitiatorMSEHandshakeCommand.cc
  1069. * src/InitiatorMSEHandshakeCommand.h
  1070. * src/IteratableChecksumValidator.cc
  1071. * src/IteratableChecksumValidator.h
  1072. * src/IteratableChunkChecksumValidator.cc
  1073. * src/MSEHandshake.cc
  1074. * src/MSEHandshake.h
  1075. * src/Makefile.am
  1076. * src/Makefile.in
  1077. * src/Metalink2RequestGroup.cc
  1078. * src/MetalinkPostDownloadHandler.cc
  1079. * src/MultiDiskAdaptor.cc
  1080. * src/MultiDiskAdaptor.h
  1081. * src/MultiFileAllocationIterator.cc
  1082. * src/MultiUrlRequestInfo.cc
  1083. * src/PeerChokeCommand.cc
  1084. * src/PeerChokeCommand.h
  1085. * src/PeerInitiateConnectionCommand.cc
  1086. * src/PeerInitiateConnectionCommand.h
  1087. * src/PeerInteractionCommand.cc
  1088. * src/PeerInteractionCommand.h
  1089. * src/PeerReceiveHandshakeCommand.cc
  1090. * src/PieceHashCheckIntegrityEntry.cc
  1091. * src/RealtimeCommand.cc
  1092. * src/ReceiverMSEHandshakeCommand.cc
  1093. * src/RequestGroup.cc
  1094. * src/RequestGroup.h
  1095. * src/RequestGroupEntry.cc
  1096. * src/RequestGroupMan.cc
  1097. * src/SeedCheckCommand.cc
  1098. * src/SeedCheckCommand.h
  1099. * src/SegmentMan.cc
  1100. * src/ShareRatioSeedCriteria.h
  1101. * src/SingleFileDownloadContext.cc: Removed
  1102. * src/SingleFileDownloadContext.h: Removed
  1103. * src/SleepCommand.cc
  1104. * src/StreamCheckIntegrityEntry.cc
  1105. * src/TrackerWatcherCommand.cc
  1106. * src/TrackerWatcherCommand.h
  1107. * src/UnknownLengthPieceStorage.cc
  1108. * src/Util.cc
  1109. * src/Util.h
  1110. * src/XmlRpcMethodImpl.cc
  1111. * src/bittorrent_helper.cc
  1112. * src/bittorrent_helper.h
  1113. * src/download_helper.cc
  1114. * src/main.cc
  1115. * src/option_processing.cc
  1116. * test/BitfieldManTest.cc
  1117. * test/BittorrentHelperTest.cc
  1118. * test/BtCancelMessageTest.cc
  1119. * test/BtChokeMessageTest.cc
  1120. * test/BtDependencyTest.cc
  1121. * test/BtPieceMessageTest.cc
  1122. * test/BtPostDownloadHandlerTest.cc
  1123. * test/BtRegistryTest.cc
  1124. * test/BtRejectMessageTest.cc
  1125. * test/BtRequestMessageTest.cc
  1126. * test/DHTPeerAnnounceStorageTest.cc
  1127. * test/DefaultBtAnnounceTest.cc
  1128. * test/DefaultBtContextTest.cc: Removed
  1129. * test/DefaultBtMessageDispatcherTest.cc
  1130. * test/DefaultBtMessageFactoryTest.cc
  1131. * test/DefaultBtProgressInfoFileTest.cc
  1132. * test/DefaultBtRequestFactoryTest.cc
  1133. * test/DefaultExtensionMessageFactoryTest.cc
  1134. * test/DefaultPeerStorageTest.cc
  1135. * test/DefaultPieceStorageTest.cc
  1136. * test/DirectDiskAdaptorTest.cc
  1137. * test/DownloadContextTest.cc
  1138. * test/DownloadHandlerFactoryTest.cc
  1139. * test/DownloadHelperTest.cc
  1140. * test/HandshakeExtensionMessageTest.cc
  1141. * test/HttpRequestTest.cc
  1142. * test/HttpResponseTest.cc
  1143. * test/IteratableChecksumValidatorTest.cc
  1144. * test/IteratableChunkChecksumValidatorTest.cc
  1145. * test/MSEHandshakeTest.cc
  1146. * test/Makefile.am
  1147. * test/Makefile.in
  1148. * test/Metalink2RequestGroupTest.cc
  1149. * test/MetalinkPostDownloadHandlerTest.cc
  1150. * test/MockBtContext.h: Removed
  1151. * test/MockDHTTaskFactory.h
  1152. * test/MockDownloadContext.h: Removed
  1153. * test/MockPieceStorage.h
  1154. * test/MultiDiskAdaptorTest.cc
  1155. * test/MultiFileAllocationIteratorTest.cc
  1156. * test/RequestGroupManTest.cc
  1157. * test/RequestGroupTest.cc
  1158. * test/SegmentManTest.cc
  1159. * test/ShareRatioSeedCriteriaTest.cc
  1160. * test/SingleFileDownloadContextTest.cc: Removed
  1161. * test/UtilTest.cc
  1162. * test/XmlRpcMethodTest.cc
  1163. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Added experimental support of WEB-Seeding for multi-file torrent.
  1165. Due to fundamental changes in file handling in HTTP/FTP code, many
  1166. functions are not working: PeerStat, ServerHost, proxy..etc
  1167. * src/AbstractCommand.cc
  1168. * src/AbstractCommand.h
  1169. * src/BitfieldMan.cc
  1170. * src/BitfieldMan.h
  1171. * src/CreateRequestCommand.cc
  1172. * src/CreateRequestCommand.h
  1173. * src/DefaultPieceStorage.cc
  1174. * src/DefaultPieceStorage.h
  1175. * src/DownloadCommand.cc
  1176. * src/DownloadCommand.h
  1177. * src/DownloadContext.cc
  1178. * src/DownloadContext.h
  1179. * src/FileEntry.cc
  1180. * src/FileEntry.h
  1181. * src/FtpDownloadCommand.cc
  1182. * src/FtpDownloadCommand.h
  1183. * src/FtpFinishDownloadCommand.cc
  1184. * src/FtpFinishDownloadCommand.h
  1185. * src/FtpInitiateConnectionCommand.cc
  1186. * src/FtpInitiateConnectionCommand.h
  1187. * src/FtpNegotiationCommand.cc
  1188. * src/FtpNegotiationCommand.h
  1189. * src/FtpTunnelResponseCommand.cc
  1190. * src/HttpDownloadCommand.cc
  1191. * src/HttpDownloadCommand.h
  1192. * src/HttpInitiateConnectionCommand.cc
  1193. * src/HttpInitiateConnectionCommand.h
  1194. * src/HttpProxyResponseCommand.cc
  1195. * src/HttpRequest.cc
  1196. * src/HttpRequest.h
  1197. * src/HttpRequestCommand.cc
  1198. * src/HttpRequestCommand.h
  1199. * src/HttpResponseCommand.cc
  1200. * src/HttpResponseCommand.h
  1201. * src/HttpSkipResponseCommand.cc
  1202. * src/HttpSkipResponseCommand.h
  1203. * src/InitiateConnectionCommand.cc
  1204. * src/InitiateConnectionCommand.h
  1205. * src/InitiateConnectionCommandFactory.cc
  1206. * src/InitiateConnectionCommandFactory.h
  1207. * src/Makefile.am
  1208. * src/PieceStorage.h
  1209. * src/RequestGroup.cc
  1210. * src/RequestGroup.h
  1211. * src/RequestGroupMan.cc
  1212. * src/SegmentMan.cc
  1213. * src/SegmentMan.h
  1214. * src/SingleFileDownloadContext.h
  1215. * src/StreamFileAllocationEntry.cc
  1216. * src/TrackerWatcherCommand.cc
  1217. * src/UnknownLengthPieceStorage.cc
  1218. * src/UnknownLengthPieceStorage.h
  1219. * src/array_fun.h
  1220. * src/bitfield.h
  1221. * src/download_helper.cc
  1222. * test/DownloadContextTest.cc
  1223. * test/Makefile.am
  1224. * test/MockDownloadContext.h
  1225. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1226. Added tellWaiting XML-RPC method.
  1227. * src/SingleFileDownloadContext.cc
  1228. * src/XmlRpcMethodFactory.cc
  1229. * src/XmlRpcMethodImpl.cc
  1230. * src/XmlRpcMethodImpl.h
  1231. * test/XmlRpcMethodTest.cc
  1232. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1233. Updated CookieStorageTest
  1234. * test/CookieStorageTest.cc
  1235. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1236. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1237. handle excepion inside these functions.
  1238. * src/LibgnutlsTLSContext.cc
  1239. * src/LibgnutlsTLSContext.h
  1240. * src/LibsslTLSContext.cc
  1241. * src/LibsslTLSContext.h
  1242. * src/MultiUrlRequestInfo.cc
  1243. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Added comment
  1245. * src/RequestGroup.cc
  1246. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. In CookieStorage::load() and saveNsFormat(), handle exception
  1248. inside the functions. When saving Cookies, first write temporary
  1249. file and after successful writes, then renames it to final
  1250. destination.
  1251. * src/CookieStorage.cc
  1252. * src/CookieStorage.h
  1253. * src/MultiUrlRequestInfo.cc
  1254. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. The default value of --dir option is the absolute path to the
  1256. current directory. If getcwd() is failed, then it is ".", which is
  1257. the same value with old implementation. This change is necessary
  1258. because after daemon() call, the current working directory is
  1259. changed to /.
  1260. * src/File.cc
  1261. * src/File.h
  1262. * src/OptionHandlerFactory.cc
  1263. * src/option_processing.cc
  1264. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Call daemon() with arguments(0,0), which means daemon() changes
  1266. current working directory to / and redirects stdin, stdout and
  1267. stderr to /dev/null.
  1268. * src/option_processing.cc
  1269. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Small performance optimizations.
  1271. * src/RequestGroupMan.cc
  1272. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1274. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1275. * src/RequestGroupMan.cc
  1276. * src/RequestGroupMan.h
  1277. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1279. setNoWiat(true) if newly created command calls
  1280. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1281. * src/HttpListenCommand.cc
  1282. * src/HttpServerBodyCommand.cc
  1283. * src/HttpServerCommand.cc
  1284. * src/HttpServerResponseCommand.cc
  1285. * src/InitiateConnectionCommand.cc
  1286. * src/RequestGroup.cc
  1287. * src/StreamFileAllocationEntry.cc
  1288. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Removed include vector
  1290. * src/BtRegistry.h
  1291. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1292. Rewritten BtRegistry
  1293. * src/BtRegistry.cc
  1294. * src/BtRegistry.h
  1295. * src/BtSetup.cc
  1296. * src/ConsoleStatCalc.cc
  1297. * src/PeerInteractionCommand.cc
  1298. * src/PeerReceiveHandshakeCommand.cc
  1299. * src/ReceiverMSEHandshakeCommand.cc
  1300. * src/RequestGroup.cc
  1301. * src/XmlRpcMethodImpl.cc
  1302. * test/BtRegistryTest.cc
  1303. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1305. * src/DefaultBtProgressInfoFile.cc
  1306. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Throw an exception if position is less than 0.
  1308. * src/XmlRpcMethodImpl.cc
  1309. * test/XmlRpcMethodTest.cc
  1310. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1311. Use writeFilePath() in ConsoleStatCalc.cc
  1312. * src/ConsoleStatCalc.cc
  1313. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1314. Receive the return value as const reference from
  1315. DownloadContext::getFileEntries().
  1316. * src/DefaultPieceStorage.cc
  1317. * src/RequestGroupMan.cc
  1318. * src/XmlRpcMethodImpl.cc
  1319. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1320. DownloadContext now has _fileEntries so that
  1321. DownloadContext::getFileEntries() can returns its const reference.
  1322. * src/DefaultBtContext.cc
  1323. * src/DefaultBtContext.h
  1324. * src/DownloadContext.cc
  1325. * src/DownloadContext.h
  1326. * src/SingleFileDownloadContext.cc
  1327. * src/SingleFileDownloadContext.h
  1328. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1330. writeFilePath() function template from RequestGroupMan.cc to
  1331. FileEntry.h
  1332. * src/FileEntry.h
  1333. * src/RequestGroupMan.cc
  1334. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Documented 'position' parameter is starting from 0 in man page.
  1336. * doc/aria2c.1.txt
  1337. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Updated doc.
  1339. * src/MSEHandshake.cc
  1340. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Removed _acceptFeatures and its accessor functions from
  1342. RequestGroup since they are not used practically.
  1343. * src/HttpRequestCommand.cc
  1344. * src/RequestGroup.cc
  1345. * src/RequestGroup.h
  1346. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Removed member _maxTries from RequestGroup class to avoid
  1348. duplicate option value. Those classes who refer this variable
  1349. should use option value of PREF_MAX_TRIES directly.
  1350. * src/AbstractCommand.cc
  1351. * src/RequestGroup.cc
  1352. * src/RequestGroup.h
  1353. * src/TrackerWatcherCommand.cc
  1354. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1355. * Release 1.4.1
  1356. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Fixed compiler warnings on netbsd
  1358. * src/DHTConnectionImpl.cc
  1359. * src/PeerListenCommand.cc
  1360. * src/PeerSessionResource.cc
  1361. * src/SegmentMan.cc
  1362. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Updated Ukrainian translation. Thanks to all translators.
  1364. * po/uk.po
  1365. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Bump up version number to 1.4.1.
  1367. * configure.ac
  1368. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Added unit tests for strjoin, strconcat and strappend.
  1370. * test/a2functionalTest.cc
  1371. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Rewritten strconcat and strappend using operator+ instead of
  1373. append().
  1374. * src/a2functional.h
  1375. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1377. is enabled.
  1378. * src/Makefile.am
  1379. * test/Makefile.am
  1380. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Added countSeeder() function which counts seeder in the given
  1382. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1383. * src/ConsoleStatCalc.cc
  1384. * src/Peer.h
  1385. * src/XmlRpcMethodImpl.cc
  1386. * test/PeerTest.cc
  1387. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Documented missing seeder in getPeers xml-rpc method.
  1389. Documented uploadLength and numSeeders.
  1390. * doc/aria2c.1.txt
  1391. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1392. Added uploadLength and numSeeders to the response of tellStatus
  1393. xml-rpc method. Assert that PeerStorage instance is not null
  1394. instead of checking if statement. It should be non-null in this
  1395. context.
  1396. * src/XmlRpcMethodImpl.cc
  1397. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1399. * src/XmlRpcResponse.cc
  1400. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Avoid intermediate object during string concatenation.
  1402. * src/HttpRequest.cc
  1403. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Added strjoin function template. Use it in pathJoin()
  1405. * src/Util.h
  1406. * src/a2functional.h
  1407. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Avoid intermediate object during string concatenation. Replaced
  1409. post-increment unary operator with pre-increment one in for loop.
  1410. * src/AdaptiveURISelector.cc
  1411. * src/AnnounceList.cc
  1412. * src/AuthConfig.h
  1413. * src/BtBitfieldMessage.cc
  1414. * src/BtExtendedMessage.cc
  1415. * src/BtHandshakeMessage.cc
  1416. * src/BtPieceMessage.cc
  1417. * src/BtPortMessage.cc
  1418. * src/Cookie.cc
  1419. * src/DHTAnnouncePeerMessage.cc
  1420. * src/DHTAutoSaveCommand.cc
  1421. * src/DHTGetPeersReplyMessage.cc
  1422. * src/DHTNode.cc
  1423. * src/DHTQueryMessage.cc
  1424. * src/DHTResponseMessage.cc
  1425. * src/DHTUnknownMessage.cc
  1426. * src/DefaultBtAnnounce.cc
  1427. * src/DefaultBtContext.cc
  1428. * src/DefaultBtInteractive.cc
  1429. * src/DefaultBtProgressInfoFile.cc
  1430. * src/DefaultPeerStorage.cc
  1431. * src/DownloadEngine.cc
  1432. * src/FeatureConfig.cc
  1433. * src/File.cc
  1434. * src/FtpConnection.cc
  1435. * src/FtpNegotiationCommand.cc
  1436. * src/HandshakeExtensionMessage.cc
  1437. * src/HttpConnection.cc
  1438. * src/HttpRequest.cc
  1439. * src/HttpResponseCommand.cc
  1440. * src/HttpServer.cc
  1441. * src/IndexBtMessage.cc
  1442. * src/Metalink2RequestGroup.cc
  1443. * src/OptionHandlerImpl.h
  1444. * src/PStringBuildVisitor.cc
  1445. * src/Peer.cc
  1446. * src/PeerListenCommand.cc
  1447. * src/Piece.cc
  1448. * src/RangeBtMessage.cc
  1449. * src/Request.cc
  1450. * src/Request.h
  1451. * src/RequestGroup.cc
  1452. * src/RequestGroupMan.cc
  1453. * src/ServerStat.cc
  1454. * src/ServerStatMan.cc
  1455. * src/UTPexExtensionMessage.cc
  1456. * src/Util.cc
  1457. * src/a2functional.h
  1458. * src/download_helper.cc
  1459. * src/messageDigest.cc
  1460. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1461. Unchoke a peer randomly at first and second choke round in seed
  1462. state.
  1463. * src/BtSeederStateChoke.cc
  1464. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1465. Added (sock_t) to quiet compiler warnings in MinGW
  1466. * src/SocketCore.cc
  1467. * src/SocketCore.h
  1468. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1470. * src/EpollEventPoll.h
  1471. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1472. Added fork() emulation using CreateProcess() in MinGW
  1473. * src/RequestGroupMan.cc
  1474. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. * Release 1.4.0
  1476. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Added utf8.torrent to EXTRA_DIST
  1478. * test/Makefile.am
  1479. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1480. Fixed docs of aria2.addMetalink xml-rpc method.
  1481. * doc/aria2c.1.txt
  1482. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1483. Added Slovak translation. Updated Ukrainian and Brazilian
  1484. Portuguese translation. Thanks to all translators.
  1485. * po/sk.po
  1486. * po/uk.po
  1487. * po/pt_BR.po
  1488. * po/LINGUAS
  1489. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1490. Added test case for XmlRpcProcessor to fail to parse malformed
  1491. document.
  1492. * test/XmlRpcRequestProcessorTest.cc
  1493. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Removed *.gmo files in po because they are generated on 'make
  1495. dist'
  1496. * po/*.gmo
  1497. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Documented max-concurrent-downloads of changeGlobalOption method
  1499. in man page.
  1500. * doc/aria2c.1.txt
  1501. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Added max-concurrent-downloads option to changeGlobalOption
  1503. xml-rpc method. Rewritten loop conditional in
  1504. RequestGroupMan::fillRequestGroupFromReserver().
  1505. * src/RequestGroupMan.cc
  1506. * src/RequestGroupMan.h
  1507. * src/XmlRpcMethod.cc
  1508. * src/XmlRpcMethodImpl.cc
  1509. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1510. Documented position parameter in man page.
  1511. * doc/aria2c.1.txt
  1512. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1513. Added 'position' parameter to addUri, addTorrent and addMetalink
  1514. xml-rpc method.
  1515. * src/RequestGroupMan.cc
  1516. * src/RequestGroupMan.h
  1517. * src/XmlRpcMethodImpl.cc
  1518. * test/XmlRpcMethodTest.cc
  1519. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Removed Peer.cc from compile source list when --disable-bittorrent
  1521. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1522. takes Peer.
  1523. * src/DefaultPieceStorage.cc
  1524. * src/DefaultPieceStorage.h
  1525. * src/Makefile.am
  1526. * src/PieceStorage.h
  1527. * src/UnknownLengthPieceStorage.cc
  1528. * src/UnknownLengthPieceStorage.h
  1529. * test/MockPieceStorage.h
  1530. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1531. Implemented getter methods in header files to give them more
  1532. chance of optimization.
  1533. Return const reference for SharadHandle if possible.
  1534. * src/AbstractAuthResolver.cc
  1535. * src/AbstractAuthResolver.h
  1536. * src/AbstractBtMessage.cc
  1537. * src/AbstractBtMessage.h
  1538. * src/AbstractSingleDiskAdaptor.cc
  1539. * src/AbstractSingleDiskAdaptor.h
  1540. * src/AsyncNameResolver.cc
  1541. * src/AsyncNameResolver.h
  1542. * src/BNode.cc
  1543. * src/BNode.h
  1544. * src/BitfieldMan.cc
  1545. * src/BitfieldMan.h
  1546. * src/BtAbortOutstandingRequestEvent.h
  1547. * src/BtExtendedMessage.cc
  1548. * src/BtExtendedMessage.h
  1549. * src/BtSeederStateChoke.cc
  1550. * src/BtSeederStateChoke.h
  1551. * src/Cookie.cc
  1552. * src/Cookie.h
  1553. * src/DHTBucket.cc
  1554. * src/DHTBucket.h
  1555. * src/DHTConnectionImpl.cc
  1556. * src/DHTConnectionImpl.h
  1557. * src/DHTFindNodeReplyMessage.cc
  1558. * src/DHTFindNodeReplyMessage.h
  1559. * src/DHTGetPeersReplyMessage.cc
  1560. * src/DHTGetPeersReplyMessage.h
  1561. * src/DHTInteractionCommand.cc
  1562. * src/DHTMessage.cc
  1563. * src/DHTMessage.h
  1564. * src/DHTMessageDispatcherImpl.cc
  1565. * src/DHTMessageEntry.cc
  1566. * src/DHTMessageReceiver.cc
  1567. * src/DHTMessageReceiver.h
  1568. * src/DHTMessageTrackerEntry.cc
  1569. * src/DHTMessageTrackerEntry.h
  1570. * src/DHTPeerAnnounceEntry.cc
  1571. * src/DHTPeerAnnounceEntry.h
  1572. * src/DHTPeerLookupTask.cc
  1573. * src/DHTPeerLookupTask.h
  1574. * src/DHTRoutingTableDeserializer.cc
  1575. * src/DHTRoutingTableDeserializer.h
  1576. * src/DefaultBtAnnounce.cc
  1577. * src/DefaultBtAnnounce.h
  1578. * src/DefaultBtMessageDispatcher.cc
  1579. * src/DefaultBtMessageDispatcher.h
  1580. * src/DefaultBtRequestFactory.cc
  1581. * src/DefaultBtRequestFactory.h
  1582. * src/DiskAdaptor.cc
  1583. * src/DiskAdaptor.h
  1584. * src/DownloadContext.cc
  1585. * src/DownloadContext.h
  1586. * src/DownloadEngine.cc
  1587. * src/DownloadEngine.h
  1588. * src/EpollEventPoll.cc
  1589. * src/EpollEventPoll.h
  1590. * src/FtpConnection.cc
  1591. * src/FtpConnection.h
  1592. * src/HttpConnection.cc
  1593. * src/HttpConnection.h
  1594. * src/HttpHeader.cc
  1595. * src/HttpHeader.h
  1596. * src/HttpRequest.cc
  1597. * src/HttpRequest.h
  1598. * src/HttpResponse.cc
  1599. * src/HttpResponse.h
  1600. * src/LibsslTLSContext.cc
  1601. * src/LibsslTLSContext.h
  1602. * src/MSEHandshake.cc
  1603. * src/MSEHandshake.h
  1604. * src/MetalinkEntry.cc
  1605. * src/MetalinkEntry.h
  1606. * src/MetalinkParserController.cc
  1607. * src/MetalinkParserController.h
  1608. * src/MetalinkParserStateMachine.cc
  1609. * src/MetalinkParserStateMachine.h
  1610. * src/MultiDiskAdaptor.cc
  1611. * src/MultiDiskAdaptor.h
  1612. * src/NetrcAuthResolver.cc
  1613. * src/NetrcAuthResolver.h
  1614. * src/Peer.cc
  1615. * src/Peer.h
  1616. * src/PeerSessionResource.cc
  1617. * src/PeerSessionResource.h
  1618. * src/Piece.cc
  1619. * src/Piece.h
  1620. * src/PieceStatMan.cc
  1621. * src/PieceStatMan.h
  1622. * src/Request.cc
  1623. * src/Request.h
  1624. * src/RequestGroup.cc
  1625. * src/RequestGroup.h
  1626. * src/RequestGroupMan.cc
  1627. * src/RequestGroupMan.h
  1628. * src/RequestSlot.cc
  1629. * src/RequestSlot.h
  1630. * src/SegmentMan.cc
  1631. * src/SegmentMan.h
  1632. * src/SelectEventPoll.cc
  1633. * src/SelectEventPoll.h
  1634. * src/ServerStat.cc
  1635. * src/ServerStat.h
  1636. * src/Signature.cc
  1637. * src/Signature.h
  1638. * src/URIResult.cc
  1639. * src/URIResult.h
  1640. * src/UTPexExtensionMessage.cc
  1641. * src/UTPexExtensionMessage.h
  1642. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Fixed compile error without BitTorrent and Metalink support.
  1644. * src/XmlRpcMethod.cc
  1645. * src/XmlRpcMethodFactory.cc
  1646. * src/XmlRpcMethodImpl.cc
  1647. * src/XmlRpcMethodImpl.h
  1648. * test/XmlRpcMethodTest.cc
  1649. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Rewritten the help message for --allow-overwrite option.
  1651. * doc/aria2c.1.txt
  1652. * src/usage_text.h
  1653. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Fixed typo
  1655. * doc/aria2c.1.txt
  1656. * src/usage_text.h
  1657. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Updated README for 1.4.0 release. Use new table syntax of
  1659. asciidoc.
  1660. * README
  1661. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1662. Documented --xml-rpc-max-request-size option in man page.
  1663. * doc/aria2c.1.txt
  1664. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1665. Moved C_* constants from BtContext to DefaultBtContext.
  1666. * src/BtContext.cc: Removed.
  1667. * src/BtContext.h
  1668. * src/DefaultBtContext.cc
  1669. * src/DefaultBtContext.h
  1670. * src/Makefile.am
  1671. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1673. path key respectively when persing .torrent file.
  1674. * src/BtContext.cc
  1675. * src/BtContext.h
  1676. * src/DefaultBtContext.cc
  1677. * test/DefaultBtContextTest.cc
  1678. * test/utf8.torrent
  1679. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Added --xml-rpc-max-request-size option to limit the size of
  1681. XML-RPC request.
  1682. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Documented XML-RPC API in man page.
  1684. * doc/aria2c.1.txt
  1685. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1686. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1687. will break strict-aliasing rules
  1688. * src/PeerConnection.cc
  1689. * test/DHTRoutingTableSerializerTest.cc
  1690. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1691. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1692. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1693. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1694. PKG_CHECK_MODULES macro uses latter name.
  1695. * m4/sqlite3.m4
  1696. * src/Makefile.am
  1697. * test/Makefile.am
  1698. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Fixed typo
  1700. * configure.ac
  1701. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1703. presence of libgnutls using pkg-config first. If it fails, fall
  1704. back to old macro libgnutls.m4.
  1705. * configure.ac
  1706. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1707. Use s itself instead of !s.bad()
  1708. * src/CookieStorage.cc
  1709. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1710. Documented --on-download-* option and --save-cookies option in man
  1711. page.
  1712. * doc/aria2c.1.txt
  1713. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Set possible values for --load-cookie option to "/path/to/file".
  1715. * src/OptionHandlerFactory.cc
  1716. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Added --save-cookies option.
  1718. * src/Cookie.cc
  1719. * src/Cookie.h
  1720. * src/CookieStorage.cc
  1721. * src/CookieStorage.h
  1722. * src/MultiUrlRequestInfo.cc
  1723. * src/OptionHandlerFactory.cc
  1724. * src/prefs.cc
  1725. * src/prefs.h
  1726. * src/usage_text.h
  1727. * test/CookieStorageTest.cc
  1728. * test/CookieTest.cc
  1729. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Removed tellAll XML-RPC command because its reponse tends to be
  1731. big if stopped/waiting downloads pile up.
  1732. * src/XmlRpcMethodFactory.cc
  1733. * src/XmlRpcMethodImpl.cc
  1734. * src/XmlRpcMethodImpl.h
  1735. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1736. Added the ability to execute command when download starts and
  1737. stops. You can also specify command for particular cases such as
  1738. complete/error download. Added --on-download-start,
  1739. --on-download-stop, --on-download-complete and --on-download-error
  1740. option.
  1741. * src/OptionHandlerFactory.cc
  1742. * src/RequestGroupMan.cc
  1743. * src/prefs.cc
  1744. * src/prefs.h
  1745. * src/usage_text.h
  1746. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1747. Fixed test error
  1748. * test/BencodeTest.cc
  1749. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Added unit tests.
  1751. * test/XmlRpcMethodTest.cc
  1752. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Made exception message more verbose.
  1754. * src/bencode.cc
  1755. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1757. space in console readout. Also they are now shown in MiB/s if
  1758. speed > 1024KiB/s.
  1759. * src/ConsoleStatCalc.cc
  1760. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. Added SEED to console output, which represents the number of
  1762. seeders currently the client is connecting to.
  1763. * src/ConsoleStatCalc.cc
  1764. * src/ConsoleStatCalc.h
  1765. * src/DownloadEngine.cc
  1766. * src/NullStatCalc.h
  1767. * src/StatCalc.h
  1768. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Added source filename(__FILE__) and line number(__LINE__) to
  1770. exception message.
  1771. * src/AbstractCommand.cc
  1772. * src/AbstractDiskWriter.cc
  1773. * src/AbstractProxyResponseCommand.cc
  1774. * src/BDE.h
  1775. * src/BtAllowedFastMessage.cc
  1776. * src/BtHandshakeMessageValidator.h
  1777. * src/BtHaveAllMessage.cc
  1778. * src/BtHaveNoneMessage.cc
  1779. * src/BtPieceMessage.cc
  1780. * src/BtRejectMessage.cc
  1781. * src/ChunkedDecoder.cc
  1782. * src/CookieStorage.cc
  1783. * src/DHTAnnouncePeerMessage.cc
  1784. * src/DHTEntryPointNameResolveCommand.cc
  1785. * src/DHTMessageFactoryImpl.cc
  1786. * src/DHTMessageTracker.cc
  1787. * src/DHTRoutingTableDeserializer.cc
  1788. * src/DHTRoutingTableSerializer.cc
  1789. * src/DHTSetup.cc
  1790. * src/DHTTokenTracker.cc
  1791. * src/DefaultBtAnnounce.cc
  1792. * src/DefaultBtContext.cc
  1793. * src/DefaultBtInteractive.cc
  1794. * src/DefaultBtMessageFactory.cc
  1795. * src/DefaultBtProgressInfoFile.cc
  1796. * src/DefaultExtensionMessageFactory.cc
  1797. * src/DlAbortEx.h
  1798. * src/DlRetryEx.h
  1799. * src/DownloadCommand.cc
  1800. * src/DownloadEngineFactory.cc
  1801. * src/DownloadFailureException.h
  1802. * src/Exception.cc
  1803. * src/Exception.h
  1804. * src/ExpatMetalinkProcessor.cc
  1805. * src/ExpatXmlRpcRequestProcessor.cc
  1806. * src/FallocFileAllocationIterator.cc
  1807. * src/FatalException.h
  1808. * src/FtpConnection.cc
  1809. * src/FtpFinishDownloadCommand.cc
  1810. * src/FtpInitiateConnectionCommand.cc
  1811. * src/FtpNegotiationCommand.cc
  1812. * src/GZipDecoder.cc
  1813. * src/HandshakeExtensionMessage.cc
  1814. * src/HttpConnection.cc
  1815. * src/HttpHeaderProcessor.cc
  1816. * src/HttpInitiateConnectionCommand.cc
  1817. * src/HttpResponse.cc
  1818. * src/HttpResponseCommand.cc
  1819. * src/HttpServer.cc
  1820. * src/HttpSkipResponseCommand.cc
  1821. * src/InitiateConnectionCommandFactory.cc
  1822. * src/IteratableChunkChecksumValidator.cc
  1823. * src/LibgcryptARC4Context.h
  1824. * src/LibgcryptARC4Decryptor.h
  1825. * src/LibgcryptARC4Encryptor.h
  1826. * src/LibgcryptDHKeyExchange.h
  1827. * src/LibgnutlsTLSContext.cc
  1828. * src/LibsslARC4Context.h
  1829. * src/LibsslARC4Decryptor.h
  1830. * src/LibsslARC4Encryptor.h
  1831. * src/LibsslDHKeyExchange.h
  1832. * src/LibsslTLSContext.cc
  1833. * src/MSEHandshake.cc
  1834. * src/MessageDigestHelper.cc
  1835. * src/MetalinkHelper.cc
  1836. * src/MultiDiskAdaptor.cc
  1837. * src/NameMatchOptionHandler.h
  1838. * src/NameResolver.cc
  1839. * src/Netrc.cc
  1840. * src/NsCookieParser.cc
  1841. * src/OptionHandlerException.cc
  1842. * src/OptionHandlerException.h
  1843. * src/OptionHandlerImpl.h
  1844. * src/OptionParser.cc
  1845. * src/ParameterizedStringParser.cc
  1846. * src/PeerAbstractCommand.cc
  1847. * src/PeerConnection.cc
  1848. * src/PeerMessageUtil.cc
  1849. * src/PeerReceiveHandshakeCommand.cc
  1850. * src/Platform.cc
  1851. * src/ReceiverMSEHandshakeCommand.cc
  1852. * src/RecoverableException.h
  1853. * src/RequestGroup.cc
  1854. * src/SimpleLogger.cc
  1855. * src/SocketCore.cc
  1856. * src/Sqlite3MozCookieParser.cc
  1857. * src/UTPexExtensionMessage.cc
  1858. * src/Util.cc
  1859. * src/XML2SAXMetalinkProcessor.cc
  1860. * src/Xml2XmlRpcRequestProcessor.cc
  1861. * src/XmlRpcMethodImpl.cc
  1862. * src/bencode.cc
  1863. * src/download_helper.cc
  1864. * src/messageDigest.h
  1865. * test/ExceptionTest.cc
  1866. * test/TestUtil.cc
  1867. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1868. Bump up version number to 1.4.0
  1869. * configure.ac
  1870. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Added 2files.metalink to EXTRA_DIST
  1872. * test/Makefile.am
  1873. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Added missing 2files.metalink
  1875. * test/2files.metalink
  1876. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Show "[MEMORY]" prefix before filename in download summary if it
  1878. is downloaded into memory.
  1879. * src/DownloadResult.h
  1880. * src/RequestGroup.cc
  1881. * src/RequestGroupMan.cc
  1882. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1884. * src/ExpatXmlRpcRequestProcessor.cc
  1885. * src/Xml2XmlRpcRequestProcessor.cc
  1886. * src/message.h
  1887. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Defined const BDEs to avoid duplicate instantiation.
  1889. Defined MSG_GID_NOT_PROVIDED.
  1890. * src/XmlRpcMethodImpl.cc
  1891. * src/message.h
  1892. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1893. Code cleanup
  1894. * src/Xml2XmlRpcRequestProcessor.cc
  1895. * src/Xml2XmlRpcRequestProcessor.h
  1896. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1897. Defined ENABLE_XML_RPC
  1898. * configure.ac
  1899. * configure
  1900. * config.h.in
  1901. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1902. Added ExpatXmlRpcRequestProcessor
  1903. * src/ExpatXmlRpcRequestProcessor.cc
  1904. * src/ExpatXmlRpcRequestProcessor.h
  1905. * src/Makefile.am
  1906. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Added tests for addTorrent and addMetalink command.
  1908. * test/TestUtil.cc
  1909. * test/TestUtil.h
  1910. * test/XmlRpcMethodTest.cc
  1911. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Corrected the description of --file-allocation option.
  1913. * doc/aria2c.1.txt
  1914. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Added tellAll command.
  1916. * src/XmlRpcMethodFactory.cc
  1917. * src/XmlRpcMethodImpl.cc
  1918. * src/XmlRpcMethodImpl.h
  1919. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1921. * src/XmlRpcMethodImpl.cc
  1922. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Added changeGlobalOption command. Currently,
  1924. max-overall-download-limit and max-overall-upload-limit option are
  1925. available.
  1926. * src/RequestGroupMan.h
  1927. * src/XmlRpcMethod.cc
  1928. * src/XmlRpcMethod.h
  1929. * src/XmlRpcMethodFactory.cc
  1930. * src/XmlRpcMethodImpl.cc
  1931. * src/XmlRpcMethodImpl.h
  1932. * test/XmlRpcMethodTest.cc
  1933. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. Added changeOption command. Currently, max-download-limit,
  1935. max-upload-limit option are available in this command.
  1936. * src/RequestGroup.h
  1937. * src/XmlRpcMethod.cc
  1938. * src/XmlRpcMethod.h
  1939. * src/XmlRpcMethodFactory.cc
  1940. * src/XmlRpcMethodImpl.cc
  1941. * src/XmlRpcMethodImpl.h
  1942. * test/XmlRpcMethodTest.cc
  1943. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1944. Added purgeDownloadResult command.
  1945. * src/RequestGroupMan.cc
  1946. * src/RequestGroupMan.h
  1947. * src/XmlRpcMethodFactory.cc
  1948. * src/XmlRpcMethodImpl.cc
  1949. * src/XmlRpcMethodImpl.h
  1950. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Refactored.
  1952. * src/XmlRpcMethod.cc
  1953. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1954. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1955. XmlRpcResponse.
  1956. * src/HttpServerBodyCommand.cc
  1957. * src/Makefile.am
  1958. * src/XmlRpcMethod.cc
  1959. * src/XmlRpcMethod.h
  1960. * src/XmlRpcMethodImpl.cc
  1961. * src/XmlRpcResponse.cc
  1962. * src/XmlRpcResponse.h
  1963. * test/XmlRpcMethodTest.cc
  1964. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1965. In XML-RPC option struct, header and index-out option can take
  1966. array as value.
  1967. * src/XmlRpcMethod.cc
  1968. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. Removed unused option member from PeerConnection.
  1970. * src/InitiatorMSEHandshakeCommand.cc
  1971. * src/PeerConnection.cc
  1972. * src/PeerConnection.h
  1973. * src/PeerInteractionCommand.cc
  1974. * src/PeerReceiveHandshakeCommand.cc
  1975. * src/ReceiverMSEHandshakeCommand.cc
  1976. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1977. Added "seeder" key to getPeers response.
  1978. * src/XmlRpcMethodImpl.cc
  1979. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1980. Added addMetalink XML-RPC command.
  1981. * src/XmlRpcMethodFactory.cc
  1982. * src/XmlRpcMethodImpl.cc
  1983. * src/XmlRpcMethodImpl.h
  1984. * src/download_helper.cc
  1985. * src/download_helper.h
  1986. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1987. Fixed the bug that POU peers are never choked in seeding.
  1988. * src/BtSeederStateChoke.cc
  1989. * src/BtSeederStateChoke.h
  1990. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. Added web-seeding URI handling in addTorrent command.
  1992. * src/XmlRpcMethodImpl.cc
  1993. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1994. Added "length" key to getFiles response.
  1995. * src/XmlRpcMethodImpl.cc
  1996. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1997. Moved --no-netrc option from ftp option section to http/ftp option
  1998. section.
  1999. * doc/aria2c.1.txt
  2000. * src/OptionHandlerFactory.cc
  2001. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Removed garbage "\" character before '
  2003. * doc/aria2c.1.txt
  2004. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2005. Removed garbage "\" character before http.
  2006. * doc/aria2c.1.txt
  2007. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2008. Documented additional options that can be specified in -i list.
  2009. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2010. and --xml-rpc-passwd. Removed --enable-http-server and
  2011. --http-server-listen-port.
  2012. * doc/aria2c.1.txt
  2013. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2015. * src/DefaultPeerStorage.cc
  2016. * src/DefaultPeerStorage.h
  2017. * src/PeerStorage.h
  2018. * src/XmlRpcMethodImpl.cc
  2019. * test/MockPeerStorage.h
  2020. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Put a call to Socket::isReadable() in try block.
  2022. * src/HttpServerBodyCommand.cc
  2023. * src/HttpServerCommand.cc
  2024. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2025. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2026. exception , so it is now in try block.
  2027. * src/HttpServerResponseCommand.cc
  2028. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Added "amChoking" and "peerChoking" key in getPeers response.
  2030. * src/XmlRpcMethodImpl.cc
  2031. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2032. Added test case for zero-length filter.
  2033. * test/BitfieldManTest.cc
  2034. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. getFiles command now returns file data for finished/stopped
  2036. downloads.
  2037. * src/XmlRpcMethodImpl.cc
  2038. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. DownloadResult now has the list of FileEntry. The download
  2040. summary displays the path of first selected file and the number of
  2041. remaining files for multi-file torrent.
  2042. * src/DownloadResult.h
  2043. * src/RequestGroup.cc
  2044. * src/RequestGroupMan.cc
  2045. * test/RequestGroupTest.cc
  2046. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2047. Fixed segmentation fault error when no file is selected in
  2048. multi-file torrent.
  2049. * src/BitfieldMan.cc
  2050. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2051. Escaped <,>,& character in XML-RPC response.
  2052. * src/XmlRpcMethod.cc
  2053. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Throw DlAbortEx instead of FatalException during parsing options
  2055. because we don't want for aria2 to quit when bad option is passed
  2056. via XML-RPC.
  2057. * src/OptionHandlerException.cc
  2058. * src/OptionHandlerException.h
  2059. * src/OptionHandlerImpl.h
  2060. * src/OptionParser.cc
  2061. * src/OptionParser.h
  2062. * src/PStringSegment.cc
  2063. * src/ParameterizedStringParser.cc
  2064. * src/download_helper.cc
  2065. * test/ParameterizedStringParserTest.cc
  2066. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Selecting files are now done in
  2068. DefaultBtContext::setFileFileter().
  2069. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2070. functions are removed because they are no longer used. Creating
  2071. filter in BitfieldMan is done in new funtion
  2072. PieceStorage::setupFileFilter()
  2073. * src/BtContext.cc
  2074. * src/BtContext.h
  2075. * src/DefaultBtContext.cc
  2076. * src/DefaultBtContext.h
  2077. * src/DefaultPieceStorage.cc
  2078. * src/DefaultPieceStorage.h
  2079. * src/DiskAdaptor.cc
  2080. * src/DiskAdaptor.h
  2081. * src/PieceStorage.h
  2082. * src/RequestGroup.cc
  2083. * src/UnknownLengthPieceStorage.h
  2084. * src/XmlRpcMethodImpl.cc
  2085. * test/DefaultBtContextTest.cc
  2086. * test/MockBtContext.h
  2087. * test/MockPieceStorage.h
  2088. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Fixed compile error on Mac OS X
  2090. * src/HttpServer.cc
  2091. * src/XmlRpcMethod.h
  2092. * src/XmlRpcMethodImpl.cc
  2093. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2094. Use std::binary_search instead of std::find
  2095. * src/DefaultPieceStorage.cc
  2096. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Removed unnecessary BDE() call; leave them to implicit conversion.
  2098. * src/XmlRpcMethodImpl.cc
  2099. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. Return connections and gid in string
  2101. * src/XmlRpcMethodImpl.cc
  2102. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Renamed addURI as addUri
  2104. * src/XmlRpcMethodFactory.cc
  2105. * src/XmlRpcMethodImpl.cc
  2106. * src/XmlRpcMethodImpl.h
  2107. * test/XmlRpcMethodTest.cc
  2108. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. Renamed addTorrentFile as addTorrent
  2110. * src/XmlRpcMethodFactory.cc
  2111. * src/XmlRpcMethodImpl.cc
  2112. * src/XmlRpcMethodImpl.h
  2113. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. The information for files, URIs, peers are removed from the
  2115. reponse of TellaActive, TellStatus command because they tend to be
  2116. large. Instead they can be retrieved by the dedicated commands:
  2117. getFiles, getUris and getPeers respectively.
  2118. * src/XmlRpcMethodFactory.cc
  2119. * src/XmlRpcMethodImpl.cc
  2120. * src/XmlRpcMethodImpl.h
  2121. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Removed --max-overall-upload-limit and
  2123. --max-overall-download-limit option from listRequestOptions.
  2124. * src/download_helper.cc
  2125. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Log incoming host in HttpListenCommand.
  2127. * src/HttpListenCommand.cc
  2128. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2129. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2130. --xml-rpc-passwd option.
  2131. * src/HttpServer.cc
  2132. * src/HttpServer.h
  2133. * src/HttpServerCommand.cc
  2134. * src/OptionHandlerFactory.cc
  2135. * src/prefs.cc
  2136. * src/prefs.h
  2137. * src/usage_text.h
  2138. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2139. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2140. processing 0 length request.
  2141. * src/HttpServerBodyCommand.cc
  2142. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Removed --enable-http-server and --http-server-listen-port
  2144. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2145. instead. The original feature for --enable-http-server that
  2146. reports download progress in HTML was officially removed. Persist
  2147. XML-RPC connection if client supports keep-alive.
  2148. * src/DownloadEngineFactory.cc
  2149. * src/HttpServerCommand.cc
  2150. * src/HttpServerResponseCommand.cc
  2151. * src/Makefile.am
  2152. * src/Makefile.in
  2153. * src/OptionHandlerFactory.cc
  2154. * src/RequestGroupMan.cc
  2155. * src/main.cc
  2156. * src/option_processing.cc
  2157. * src/prefs.cc
  2158. * src/prefs.h
  2159. * src/usage_text.h
  2160. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Added "uris" key to the response of tellStatus command. Added
  2162. "connections" key to the response of tellStatus and tellActive
  2163. command.
  2164. * src/XmlRpcMethodImpl.cc
  2165. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2167. Added TellStatusXmlRpcMethod. Remove command can now remove
  2168. waiting RequestGroup.
  2169. * src/RequestGroupMan.cc
  2170. * src/RequestGroupMan.h
  2171. * src/XmlRpcMethodFactory.cc
  2172. * src/XmlRpcMethodImpl.cc
  2173. * src/XmlRpcMethodImpl.h
  2174. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Initialized _peerId
  2176. * src/Peer.cc
  2177. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Return fault structure for error. FailXmlRpcMethod is renamed as
  2179. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2180. in non-torrent download. Return single param value.
  2181. * src/XmlRpcMethod.cc
  2182. * src/XmlRpcMethodFactory.cc
  2183. * src/XmlRpcMethodImpl.cc
  2184. * src/XmlRpcMethodImpl.h
  2185. * test/XmlRpcMethodTest.cc
  2186. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2187. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2188. command.
  2189. * src/RequestGroup.cc
  2190. * src/RequestGroup.h
  2191. * src/RequestGroupMan.cc
  2192. * src/XmlRpcMethodImpl.cc
  2193. * test/RequestGroupTest.cc
  2194. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Added more options that can be specified in -i list and xml-rpc
  2196. add* command.
  2197. * src/download_helper.h
  2198. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. The available options in -i list should be listed in
  2200. listRequestOptions().
  2201. * src/download_helper.cc
  2202. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2204. command.
  2205. * src/XmlRpcMethodImpl.cc
  2206. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2207. Now RequestGroup has its own copy of Option object. This will help
  2208. to give custom option for each RequestGroup.
  2209. addTorrentFile command now takes options.
  2210. * src/AbstractCommand.cc
  2211. * src/AbstractCommand.h
  2212. * src/AbstractProxyRequestCommand.cc
  2213. * src/ActivePeerConnectionCommand.cc
  2214. * src/ActivePeerConnectionCommand.h
  2215. * src/AdaptiveURISelector.cc
  2216. * src/BtCheckIntegrityEntry.cc
  2217. * src/BtDependency.cc
  2218. * src/BtDependency.h
  2219. * src/BtFileAllocationEntry.cc
  2220. * src/BtPostDownloadHandler.cc
  2221. * src/CheckIntegrityEntry.cc
  2222. * src/DownloadCommand.cc
  2223. * src/FtpDownloadCommand.cc
  2224. * src/FtpFinishDownloadCommand.cc
  2225. * src/FtpInitiateConnectionCommand.cc
  2226. * src/FtpNegotiationCommand.cc
  2227. * src/HttpInitiateConnectionCommand.cc
  2228. * src/HttpRequestCommand.cc
  2229. * src/HttpResponseCommand.cc
  2230. * src/HttpSkipResponseCommand.cc
  2231. * src/InitiateConnectionCommand.cc
  2232. * src/InitiateConnectionCommandFactory.cc
  2233. * src/InitiatorMSEHandshakeCommand.cc
  2234. * src/InitiatorMSEHandshakeCommand.h
  2235. * src/Metalink2RequestGroup.cc
  2236. * src/Metalink2RequestGroup.h
  2237. * src/MetalinkPostDownloadHandler.cc
  2238. * src/MultiUrlRequestInfo.cc
  2239. * src/MultiUrlRequestInfo.h
  2240. * src/PeerAbstractCommand.cc
  2241. * src/PeerInteractionCommand.cc
  2242. * src/PeerInteractionCommand.h
  2243. * src/PeerReceiveHandshakeCommand.cc
  2244. * src/PeerReceiveHandshakeCommand.h
  2245. * src/RequestGroup.cc
  2246. * src/RequestGroup.h
  2247. * src/TrackerWatcherCommand.cc
  2248. * src/TrackerWatcherCommand.h
  2249. * src/XmlRpcMethod.cc
  2250. * src/XmlRpcMethod.h
  2251. * src/XmlRpcMethodImpl.cc
  2252. * src/download_helper.cc
  2253. * src/download_helper.h
  2254. * src/main.cc
  2255. * test/BtDependencyTest.cc
  2256. * test/BtPostDownloadHandlerTest.cc
  2257. * test/DefaultBtMessageDispatcherTest.cc
  2258. * test/DownloadHandlerFactoryTest.cc
  2259. * test/DownloadHelperTest.cc
  2260. * test/Metalink2RequestGroupTest.cc
  2261. * test/MetalinkPostDownloadHandlerTest.cc
  2262. * test/RequestGroupManTest.cc
  2263. * test/RequestGroupTest.cc
  2264. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2265. Added tellActiveStatus xml-rpc command which reports download
  2266. status of active downloads.
  2267. * src/XmlRpcMethodFactory.cc
  2268. * src/XmlRpcMethodImpl.cc
  2269. * src/XmlRpcMethodImpl.h
  2270. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Added addTorrentFile xml-rpc command which receives uploaded
  2272. torrent file and add download for it.
  2273. * src/RequestGroupMan.cc
  2274. * src/XmlRpcMethodFactory.cc
  2275. * src/XmlRpcMethodImpl.cc
  2276. * src/XmlRpcMethodImpl.h
  2277. * src/download_helper.cc
  2278. * src/download_helper.h
  2279. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Added remove xml-rpc command which removes specified download.
  2281. There is a known issue: the removed unfinished downloads are
  2282. reported ERR when aria2 exits. They should be reported as INPR.
  2283. * src/RequestGroupMan.cc
  2284. * src/RequestGroupMan.h
  2285. * src/XmlRpcMethodFactory.cc
  2286. * src/XmlRpcMethodImpl.cc
  2287. * src/XmlRpcMethodImpl.h
  2288. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. If --enable-http-server is enabled, don't stop aria2 when all
  2290. download finished and don't quit when no files to download at
  2291. start up.
  2292. * src/RequestGroupMan.cc
  2293. * src/main.cc
  2294. * src/option_processing.cc
  2295. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Added missing AM_CONDITIONAL
  2297. * configure.ac
  2298. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. Added xml-rpc functionality. Currently only addURI commad is
  2300. supported. To enable xml-rpc, run aria2 with
  2301. --enable-http-server. This option name is temporal and will be
  2302. changed. The feature that reports download progress in html format
  2303. is temporarily disabled.
  2304. * src/HttpServer.cc
  2305. * src/HttpServer.h
  2306. * src/HttpServerBodyCommand.cc
  2307. * src/HttpServerBodyCommand.h
  2308. * src/HttpServerCommand.cc
  2309. * src/HttpServerResponseCommand.cc
  2310. * src/Makefile.am
  2311. * src/OptionParser.cc
  2312. * src/OptionParser.h
  2313. * src/RequestGroupMan.cc
  2314. * src/RequestGroupMan.h
  2315. * src/XmlRpcMethod.cc
  2316. * src/XmlRpcMethod.h
  2317. * src/XmlRpcMethodFactory.cc
  2318. * src/XmlRpcMethodFactory.h
  2319. * src/XmlRpcMethodImpl.cc
  2320. * src/XmlRpcMethodImpl.h
  2321. * src/download_helper.cc
  2322. * src/download_helper.h
  2323. * test/Makefile.am
  2324. * test/XmlRpcMethodTest.cc
  2325. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2326. Added xml-rpc request parser. The supported value types are:
  2327. i4/int, string, double, struct, array, base64. Currently only
  2328. libxml2 version is provided.
  2329. * src/Xml2XmlRpcRequestProcessor.cc
  2330. * src/Xml2XmlRpcRequestProcessor.h
  2331. * src/XmlRpcElements.cc
  2332. * src/XmlRpcElements.h
  2333. * src/XmlRpcRequest.h
  2334. * src/XmlRpcRequestParserController.cc
  2335. * src/XmlRpcRequestParserController.h
  2336. * src/XmlRpcRequestParserState.h
  2337. * src/XmlRpcRequestParserStateImpl.cc
  2338. * src/XmlRpcRequestParserStateImpl.h
  2339. * src/XmlRpcRequestParserStateMachine.cc
  2340. * src/XmlRpcRequestParserStateMachine.h
  2341. * src/XmlRpcRequestProcessor.h
  2342. * test/XmlRpcRequestParserControllerTest.cc
  2343. * test/XmlRpcRequestProcessorTest.cc
  2344. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2345. * Release 1.3.3
  2346. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2347. Fixed compile error since r1202.
  2348. * src/ExpatMetalinkProcessor.cc
  2349. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Updated Ukrainian, Russian and Simplified Chinese
  2351. translations. Thanks to all translators.
  2352. * po/ru.po
  2353. * po/uk.po
  2354. * po/zh_CN.po
  2355. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2356. Pass reference of Option object instead of pointer.
  2357. * src/download_helper.cc
  2358. * src/download_helper.h
  2359. * src/main.cc
  2360. * test/DownloadHelperTest.cc
  2361. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2362. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2363. from option directly. Instead, get them from RequestGroup.
  2364. * src/ActivePeerConnectionCommand.cc
  2365. * src/ActivePeerConnectionCommand.h
  2366. * src/PeerReceiveHandshakeCommand.cc
  2367. * src/RequestGroup.h
  2368. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Removed unused uploadLimitCheck and uploadLimit from
  2370. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2371. PeerInteractionCommand.
  2372. * src/PeerAbstractCommand.cc
  2373. * src/PeerAbstractCommand.h
  2374. * src/PeerInteractionCommand.cc
  2375. * src/PeerInteractionCommand.h
  2376. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2377. Fixed broken file renaming feature since r1202.
  2378. * src/FtpNegotiationCommand.cc
  2379. * src/FtpNegotiationCommand.h
  2380. * src/HttpResponseCommand.cc
  2381. * src/RequestGroup.cc
  2382. * src/RequestGroup.h
  2383. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Removed unused debug log
  2385. * src/SocketCore.cc
  2386. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Generated configure and Makefile.in using autoconf 2.63 and
  2388. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2389. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2390. * configure.ac
  2391. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2392. Moved piece statistics stuff to new PieceStatMan class.
  2393. Refactored PieceSelector interface.
  2394. * src/DefaultPieceStorage.cc
  2395. * src/DefaultPieceStorage.h
  2396. * src/LongestSequencePieceSelector.cc
  2397. * src/LongestSequencePieceSelector.h
  2398. * src/Makefile.am
  2399. * src/PieceSelector.h
  2400. * src/PieceStatMan.cc
  2401. * src/PieceStatMan.h
  2402. * src/RarestPieceSelector.cc
  2403. * src/RarestPieceSelector.h
  2404. * src/RequestGroup.cc
  2405. * test/DefaultPieceStorageTest.cc
  2406. * test/InOrderPieceSelector.h
  2407. * test/Makefile.am
  2408. * test/PieceStatManTest.cc
  2409. * test/RarestPieceSelectorTest.cc
  2410. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Added static member _protocolFamily to SocketCore. By default,
  2412. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2413. address. Sometime SocketCore::bind() and
  2414. SocketCore::establishConnection() use difference protocl family
  2415. and latter cannot connect to former. To avoid this situation, we
  2416. limit protocol family to AF_INET for unit tests.
  2417. * src/SocketCore.cc
  2418. * src/SocketCore.h
  2419. * test/AllTest.cc
  2420. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. Avoid std::bad_alloc for negative bencode string length.
  2422. * src/bencode.cc
  2423. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Supported segmented downloading with chunked transfer encoding and
  2425. content-length.
  2426. * src/DownloadCommand.cc
  2427. * src/HttpResponseCommand.cc
  2428. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2429. Bump up version number to 1.3.3
  2430. * configure.ac
  2431. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2433. from 4096 to 65536 (for insanely large ftp login banners)
  2434. * src/FtpConnection.h
  2435. * test/FtpConnectionTest.cc
  2436. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2437. In DefaultBtContext::getActualBasePath(), return first
  2438. FileEntry::getPath() for single file torrent.
  2439. * src/DefaultBtContext.cc
  2440. * test/DefaultBtContextTest.cc
  2441. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2443. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2444. Removed _directIOAllowed member from DiskWriter.
  2445. * src/AbstractDiskWriter.cc
  2446. * src/AbstractDiskWriter.h
  2447. * src/AbstractSingleDiskAdaptor.cc
  2448. * src/AbstractSingleDiskAdaptor.h
  2449. * src/BinaryStream.h
  2450. * src/ByteArrayDiskWriter.h
  2451. * src/DefaultPieceStorage.cc
  2452. * src/DiskWriter.h
  2453. * src/MultiDiskAdaptor.cc
  2454. * src/MultiDiskAdaptor.h
  2455. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. Now the constructor of AbstractDiskWriter takes filename as an
  2457. argument and filename argument is removed from openFile(),
  2458. initAndOpenFile(), openExistingFile() interface. storeDir member
  2459. and its accessor functions are removed from DiskAdaptor because it
  2460. is not used anymore. size() member function of DefaultDiskWriter,
  2461. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2462. opening file.
  2463. * src/AbstractDiskWriter.cc
  2464. * src/AbstractDiskWriter.h
  2465. * src/AbstractSingleDiskAdaptor.cc
  2466. * src/AbstractSingleDiskAdaptor.h
  2467. * src/ByteArrayDiskWriter.cc
  2468. * src/ByteArrayDiskWriter.h
  2469. * src/ByteArrayDiskWriterFactory.cc
  2470. * src/ByteArrayDiskWriterFactory.h
  2471. * src/DefaultDiskWriter.cc
  2472. * src/DefaultDiskWriter.h
  2473. * src/DefaultDiskWriterFactory.cc
  2474. * src/DefaultDiskWriterFactory.h
  2475. * src/DefaultPieceStorage.cc
  2476. * src/DirectDiskAdaptor.cc
  2477. * src/DirectDiskAdaptor.h
  2478. * src/DiskAdaptor.h
  2479. * src/DiskWriter.h
  2480. * src/DiskWriterFactory.h
  2481. * src/MessageDigestHelper.cc
  2482. * src/MultiDiskAdaptor.cc
  2483. * src/RequestGroup.cc
  2484. * src/UnknownLengthPieceStorage.cc
  2485. * src/Util.cc
  2486. * test/DefaultDiskWriterTest.cc
  2487. * test/DirectDiskAdaptorTest.cc
  2488. * test/FallocFileAllocationIteratorTest.cc
  2489. * test/MessageDigestHelperTest.cc
  2490. * test/MetalinkProcessorTest.cc
  2491. * test/MultiDiskAdaptorTest.cc
  2492. * test/MultiFileAllocationIteratorTest.cc
  2493. * test/SingleFileAllocationIteratorTest.cc
  2494. * test/UtilTest.cc
  2495. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2496. Fixed the bug that aria2 aborts when --select-file is used. This
  2497. bug was introduced in r1199.
  2498. * src/MultiDiskAdaptor.cc
  2499. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2500. Code cleanup
  2501. * test/MockPieceStorage.cc
  2502. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Fixed the bug that read-only file with wrong file size will cause
  2504. error because it cannot be truncated to the correct size. Now if
  2505. file size is different than the expected one, re-open file in
  2506. writable mode.
  2507. * src/AbstractSingleDiskAdaptor.cc
  2508. * src/AbstractSingleDiskAdaptor.h
  2509. * src/BtCheckIntegrityEntry.cc
  2510. * src/DiskAdaptor.h
  2511. * src/MultiDiskAdaptor.h
  2512. * src/RequestGroup.cc
  2513. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2514. Fixed the bug that with --check-integrity option aria2 reports
  2515. downloaded file size is 0 even if some parts of file is correctly
  2516. downloaded. This bug is reproducible for the download that a file
  2517. includes last piece is missing. This bug doesn't reveal for
  2518. single-torrent with file allocation on.
  2519. * src/IteratableChecksumValidator.cc
  2520. * test/IteratableChecksumValidatorTest.cc
  2521. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2522. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2523. * src/RequestGroupMan.cc
  2524. * src/AdaptiveURISelector.cc
  2525. * src/AdaptiveURISelector.h
  2526. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2527. * Release 1.3.2
  2528. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Updated README
  2530. * README
  2531. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2532. Updated Ukrainian translations. Thanks to Alexander10.
  2533. * po/uk.po
  2534. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2535. Code cleanup
  2536. * src/MetalinkParserStateMachine.cc
  2537. * src/MetalinkParserStateMachine.h
  2538. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2539. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2540. and expat simultaneously, MetalinkProcessor is now not base class
  2541. and it is directly implemented in XML2SAXMetalinkProcessor and
  2542. ExpatMetalinkProcessor.
  2543. * src/ExpatMetalinkProcessor.cc
  2544. * src/ExpatMetalinkProcessor.h
  2545. * src/Makefile.am
  2546. * src/MetalinkHelper.cc
  2547. * src/MetalinkProcessor.h
  2548. * src/MetalinkProcessorFactory.cc: Removed.
  2549. * src/MetalinkProcessorFactory.h: Removed
  2550. * src/XML2SAXMetalinkProcessor.cc
  2551. * src/XML2SAXMetalinkProcessor.h
  2552. * test/MetalinkProcessorTest.cc
  2553. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Bump up version number to 1.3.2
  2555. * configure.ac
  2556. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Added missing file.
  2558. * test/Makefile.am
  2559. * test/url-list-singleFileEndsWithSlash.torrent
  2560. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2562. request.
  2563. * src/AnnounceList.cc
  2564. * src/AnnounceList.h
  2565. * src/BDE.cc: Added
  2566. * src/BDE.h: Added
  2567. * src/DHTAbstractMessage.cc
  2568. * src/DHTAbstractMessage.h
  2569. * src/DHTAnnouncePeerMessage.cc
  2570. * src/DHTAnnouncePeerMessage.h
  2571. * src/DHTAnnouncePeerReplyMessage.cc
  2572. * src/DHTAnnouncePeerReplyMessage.h
  2573. * src/DHTFindNodeMessage.cc
  2574. * src/DHTFindNodeMessage.h
  2575. * src/DHTFindNodeReplyMessage.cc
  2576. * src/DHTFindNodeReplyMessage.h
  2577. * src/DHTGetPeersMessage.cc
  2578. * src/DHTGetPeersMessage.h
  2579. * src/DHTGetPeersReplyMessage.cc
  2580. * src/DHTGetPeersReplyMessage.h
  2581. * src/DHTMessageFactory.h
  2582. * src/DHTMessageFactoryImpl.cc
  2583. * src/DHTMessageFactoryImpl.h
  2584. * src/DHTMessageReceiver.cc
  2585. * src/DHTMessageTracker.cc
  2586. * src/DHTMessageTracker.h
  2587. * src/DHTPingMessage.cc
  2588. * src/DHTPingMessage.h
  2589. * src/DHTPingReplyMessage.cc
  2590. * src/DHTPingReplyMessage.h
  2591. * src/DHTQueryMessage.cc
  2592. * src/DHTQueryMessage.h
  2593. * src/DHTResponseMessage.cc
  2594. * src/DHTResponseMessage.h
  2595. * src/DefaultBtAnnounce.cc
  2596. * src/DefaultBtContext.cc
  2597. * src/DefaultBtContext.h
  2598. * src/HandshakeExtensionMessage.cc
  2599. * src/Makefile.am
  2600. * src/PeerListProcessor.h
  2601. * src/UTPexExtensionMessage.cc
  2602. * src/bencode.cc
  2603. * src/bencode.h
  2604. * test/AnnounceListTest.cc
  2605. * test/BDETest.cc: Added
  2606. * test/BencodeTest.cc
  2607. * test/DHTAnnouncePeerMessageTest.cc
  2608. * test/DHTAnnouncePeerReplyMessageTest.cc
  2609. * test/DHTFindNodeMessageTest.cc
  2610. * test/DHTFindNodeReplyMessageTest.cc
  2611. * test/DHTGetPeersMessageTest.cc
  2612. * test/DHTGetPeersReplyMessageTest.cc
  2613. * test/DHTMessageFactoryImplTest.cc
  2614. * test/DHTMessageTrackerTest.cc
  2615. * test/DHTPingMessageTest.cc
  2616. * test/DHTPingReplyMessageTest.cc
  2617. * test/Makefile.am
  2618. * test/MockDHTMessageFactory.h
  2619. * test/PeerListProcessorTest.cc
  2620. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Use url-list (web-seeding) only for single-file torrent. This is
  2622. basically the same behavior with Metalink file with torrent and
  2623. URIs.
  2624. * src/RequestGroup.cc
  2625. * src/DefaultBtContext.cc
  2626. * test/DefaultBtContextTest.cc
  2627. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Rewritten expr
  2629. * src/array_fun.h
  2630. * test/array_funTest.cc
  2631. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2633. * src/DefaultBtMessageDispatcher.cc
  2634. * src/a2algo.h
  2635. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Removed ExtendedMessagingAware. Instead of using inheritance,
  2637. added ExtensionMessageRegistry and it is passed to
  2638. DefaultExtensionMessageFactory.
  2639. * src/DefaultBtInteractive.cc
  2640. * src/DefaultBtInteractive.h
  2641. * src/DefaultExtensionMessageFactory.cc
  2642. * src/DefaultExtensionMessageFactory.h
  2643. * src/ExtendedMessagingAware.h: Removed.
  2644. * src/ExtensionMessageFactory.h
  2645. * src/ExtensionMessageRegistry.h: Added.
  2646. * src/Makefile.am
  2647. * src/PeerInteractionCommand.cc
  2648. * test/DefaultExtensionMessageFactoryTest.cc
  2649. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2650. Fixed typo in log messages
  2651. * src/MSEHandshake.cc
  2652. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2653. Fixed the bug that prevents torrent download from finishing. The
  2654. bug doesn't reveal for all torrents. The torrents affected this
  2655. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2656. of pieces.
  2657. * src/bitfield.h
  2658. * test/bitfieldTest.cc
  2659. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2660. Code cleanup
  2661. * src/PeerListProcessor.h
  2662. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2663. Removed RequestGroupAware
  2664. * src/AbstractCommand.cc
  2665. * src/AbstractCommand.h
  2666. * src/ActivePeerConnectionCommand.cc
  2667. * src/ActivePeerConnectionCommand.h
  2668. * src/DHTGetPeersCommand.cc
  2669. * src/DHTGetPeersCommand.h
  2670. * src/InitiatorMSEHandshakeCommand.cc
  2671. * src/InitiatorMSEHandshakeCommand.h
  2672. * src/Makefile.am
  2673. * src/PeerInitiateConnectionCommand.cc
  2674. * src/PeerInitiateConnectionCommand.h
  2675. * src/PeerInteractionCommand.cc
  2676. * src/PeerInteractionCommand.h
  2677. * src/RealtimeCommand.cc
  2678. * src/RealtimeCommand.h
  2679. * src/RequestGroupAware.cc: Removed
  2680. * src/RequestGroupAware.h: Removed
  2681. * src/SeedCheckCommand.cc
  2682. * src/SeedCheckCommand.h
  2683. * src/SleepCommand.cc
  2684. * src/TrackerWatcherCommand.cc
  2685. * src/TrackerWatcherCommand.h
  2686. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2687. Rewritten PeerListProcessor
  2688. * src/PeerListProcessor.h
  2689. * src/CompactPeerListProcessor.h: Removed
  2690. * src/CompactPeerListProcessor.cc: Removed
  2691. * src/DelegatingPeerListProcessor.cc: Removed.
  2692. * src/DefaultBtAnnounce.cc
  2693. * src/Makefile.am
  2694. * src/UTPexExtensionMessage.cc
  2695. * src/DefaultPeerListProcessor.h: Removed.
  2696. * src/DefaultPeerListProcessor.cc: Removed.
  2697. * src/DelegatingPeerListProcessor.h: Removed.
  2698. * test/Makefile.am
  2699. * test/PeerListProcessorTest.cc
  2700. * test/DefaultPeerListProcessorTest.cc: Removed.
  2701. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2702. Rewritten RequestGroupMan::calculateStat()
  2703. * src/RequestGroupMan.cc
  2704. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2705. Removed unnecessary virtual destructor for Request class.
  2706. * src/Request.cc
  2707. * src/Request.h
  2708. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. Avoid dynamic_pointer_cast.
  2710. * src/DHTGetPeersCommand.cc
  2711. * src/DHTGetPeersCommand.h
  2712. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2713. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2714. BtEvent.
  2715. * src/AbstractBtEventListener.h: Removed.
  2716. * src/AbstractBtMessage.cc
  2717. * src/AbstractBtMessage.h
  2718. * src/BtAbortOutstandingRequestEvent.h
  2719. * src/BtCancelSendingPieceEvent.h
  2720. * src/BtChokedEvent.h: Removed.
  2721. * src/BtChokingEvent.h
  2722. * src/BtEvent.h: Removed
  2723. * src/BtEventListener.h: Removed.
  2724. * src/BtMessage.h
  2725. * src/BtPieceMessage.cc
  2726. * src/BtPieceMessage.h
  2727. * src/BtRequestMessage.cc
  2728. * src/BtRequestMessage.h
  2729. * src/DefaultBtMessageDispatcher.cc
  2730. * src/Makefile.am
  2731. * src/a2functional.h
  2732. * test/BtPieceMessageTest.cc
  2733. * test/BtRequestMessageTest.cc
  2734. * test/DefaultBtMessageDispatcherTest.cc
  2735. * test/MockBtMessage.h
  2736. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Code cleanup
  2738. * src/RequestGroupMan.cc
  2739. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Code cleanup
  2741. * src/DownloadCommand.cc
  2742. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2744. byte.
  2745. * src/DownloadCommand.cc
  2746. * src/bitfield.h
  2747. * test/bitfieldTest.cc
  2748. Fixed the bug that causes infinite loop if broken web server
  2749. returns chunked response without last "0" chunk-size marker and
  2750. closes connection.
  2751. * src/DownloadCommand.cc
  2752. Instantiate properly configured HttpDownloadCommand for
  2753. non-resumable downlaods.
  2754. * src/HttpResponseCommand.cc
  2755. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2756. Rewritten array operation functions.
  2757. * src/BitfieldMan.cc
  2758. * src/array_fun.h
  2759. * test/array_funTest.cc
  2760. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Removed unused variable 'query'
  2762. * src/Request.cc
  2763. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2765. accidentally set to false in r1162.
  2766. * configure.ac
  2767. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2768. Code cleanup
  2769. * src/BNode.cc
  2770. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. Increase prefixLength for the bucket which doesn't own local node
  2772. ID when splitting bucket.
  2773. * src/DHTBucket.cc
  2774. * test/DHTBucketTest.cc
  2775. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. * Release 1.3.1
  2777. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2778. Bump up version number to 1.3.1
  2779. * configure.ac
  2780. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Removed unused variable checkPoint. Also removed include directive
  2782. for TimeA2.h.
  2783. * src/SeedCheckCommand.h
  2784. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2785. Fixed the bug that upload limit exceeds the value specified in
  2786. --seed-ratio option depending on the timing of the execution of
  2787. SeedCheckCommand.
  2788. * src/SeedCheckCommand.cc
  2789. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2790. Fixed the bug that removed peer's session upload/download length
  2791. are counted twice in _cachedTransferStat before it is
  2792. re-calculated. This affected the calculation of shara ratio,
  2793. resulting aria2 wrongly determines that specified share ratio is
  2794. reached. Also fixed the typo in calculateStatFor function name.
  2795. * src/BtSetup.cc
  2796. * src/DefaultPeerStorage.cc
  2797. * src/ShareRatioSeedCriteria.h
  2798. * test/ShareRatioSeedCriteriaTest.cc
  2799. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. * Release 1.3.0
  2801. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2803. Nynorsk translations. Thanks to all translators.
  2804. * po/es.po
  2805. * po/ja.po
  2806. * po/nn.po
  2807. * po/ru.po
  2808. * po/uk.po
  2809. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Rewritten isInRange()
  2811. * src/DHTBucket.cc
  2812. * test/DHTBucketTest.cc
  2813. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Fixed typo
  2815. * doc/aria2c.1.txt
  2816. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2817. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2818. malloc/realloc is not used.
  2819. * src/configure.ac
  2820. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2821. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2822. char* bitfield instead of stl container for efficiency.
  2823. PieceSelector::select now takes this
  2824. bitfield. RarestPieceSelector::select now also performs
  2825. efficiently for this change. bitfield namespace is introduced and
  2826. it has several helper functions to handle basic bitfield
  2827. operations such as test, count set bits, etc.
  2828. * src/BitfieldMan.cc
  2829. * src/BitfieldMan.h
  2830. * src/DefaultBtRequestFactory.cc
  2831. * src/DefaultPieceStorage.cc
  2832. * src/DefaultPieceStorage.h
  2833. * src/LongestSequencePieceSelector.cc
  2834. * src/LongestSequencePieceSelector.h
  2835. * src/Makefile.am
  2836. * src/Piece.cc
  2837. * src/Piece.h
  2838. * src/PieceSelector.h
  2839. * src/RarestPieceSelector.cc
  2840. * src/RarestPieceSelector.h
  2841. * src/Util.cc
  2842. * src/Util.h
  2843. * src/bitfield.h
  2844. * test/BitfieldManTest.cc
  2845. * test/LongestSequencePieceSelectorTest.cc
  2846. * test/Makefile.am
  2847. * test/RarestPieceSelectorTest.cc
  2848. * test/UtilTest.cc
  2849. * test/bitfieldTest.cc
  2850. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2851. Made accepted socket non-block.
  2852. * src/FtpNegotiationCommand.cc
  2853. * src/HttpListenCommand.cc
  2854. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2855. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2856. * src/AbstractSingleDiskAdaptor.cc
  2857. * src/DefaultPieceStorage.cc
  2858. * src/DiskAdaptor.h
  2859. * src/DiskAdaptor.h
  2860. * src/MultiFileAllocationIterator.cc
  2861. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. Run
  2863. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2864. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2865. it doesn't need to be called every time when
  2866. DefaultBtInteractive::doInteractionProcessing() is called.
  2867. * src/DefaultBtInteractive.cc
  2868. * src/DefaultBtInteractive.h
  2869. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Documented 'falloc' in man page.
  2871. * doc/aria2c.1.txt
  2872. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Updated doc
  2874. * src/usage_text.h
  2875. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2877. allocation mode uses posix_fallocate() system call to allocate
  2878. file on disk. If you are using newer file systems such as ext4
  2879. (with extents support), btrfs or xfs, 'falloc' is your best
  2880. choice. It allocates large(few GiB) files almost instantly. Don't
  2881. use 'falloc' with legacy file systems such as ext3 because it
  2882. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2883. until allocation finishes. 'falloc' may not be available if your
  2884. system doesn't have posix_fallocate() system call.
  2885. * configure.ac
  2886. * src/AbstractDiskWriter.cc
  2887. * src/AbstractDiskWriter.h
  2888. * src/AbstractSingleDiskAdaptor.cc
  2889. * src/BinaryStream.h
  2890. * src/BtCheckIntegrityEntry.cc
  2891. * src/ByteArrayDiskWriter.h
  2892. * src/CheckIntegrityEntry.cc
  2893. * src/CheckIntegrityEntry.h
  2894. * src/DefaultPieceStorage.cc
  2895. * src/DiskAdaptor.cc
  2896. * src/DiskAdaptor.h
  2897. * src/DiskWriter.h
  2898. * src/FallocFileAllocationIterator.cc
  2899. * src/FallocFileAllocationIterator.h
  2900. * src/FileAllocationEntry.cc
  2901. * src/FileAllocationEntry.h
  2902. * src/Makefile.am
  2903. * src/MultiFileAllocationIterator.cc
  2904. * src/MultiFileAllocationIterator.h
  2905. * src/OptionHandlerFactory.cc
  2906. * src/RequestGroup.cc
  2907. * src/StreamCheckIntegrityEntry.cc
  2908. * src/prefs.cc
  2909. * src/prefs.h
  2910. * src/usage_text.h
  2911. * test/FallocFileAllocationIteratorTest.cc
  2912. * test/Makefile.am
  2913. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2914. Removed duplicate enableDirectIO() call.
  2915. * src/MultiFileAllocationIterator.cc
  2916. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2917. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2918. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2919. cost of std::rotate().
  2920. * src/RarestPieceSelector.cc
  2921. * src/RarestPieceSelector.h
  2922. * test/RarestPieceSelectorTest.cc
  2923. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2924. Updated usage doc for --bt-tracker-interval option.
  2925. * src/usage_text.h
  2926. * doc/aria2c.1.txt
  2927. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Documented --bt-tracker-interval option in man page.
  2929. * doc/aria2c.1.txt
  2930. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2931. Added an option to specify the interval between tracker requests.
  2932. If non-zero value is specified, aria2 uses it and ignores the
  2933. interval value in the response of tracker. If zero is specified,
  2934. aria2 determines the inteval value based on the tarcker response
  2935. and download progress.
  2936. * src/DefaultBtAnnounce.cc
  2937. * src/DefaultBtAnnounce.h
  2938. * src/OptionHandlerFactory.cc
  2939. * src/RequestGroup.cc
  2940. * src/prefs.cc
  2941. * src/prefs.h
  2942. * src/usage_text.h
  2943. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2944. Added operator+=, operator-=, operator-
  2945. * src/TransferStat.cc
  2946. * src/TransferStat.h
  2947. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2948. Refactored RarestPieceSelector to reduce CPU load, especially for
  2949. addPieceStats.
  2950. * src/RarestPieceSelector.cc
  2951. * src/RarestPieceSelector.h
  2952. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2953. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2954. getAllMissingBlockIndexes to reduce a call to
  2955. array_function_base::operator[].
  2956. * src/BitfieldMan.cc
  2957. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2958. Cached TransferStat/download speed to avoid to sum them up in each
  2959. call.
  2960. * src/DefaultPeerStorage.cc
  2961. * src/DefaultPeerStorage.h
  2962. * src/SegmentMan.cc
  2963. * src/SegmentMan.h
  2964. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2965. Typedefed cuid_t as int32_t in Command.h
  2966. * src/CUIDCounter.h
  2967. * src/Command.cc
  2968. * src/Command.h
  2969. * src/DownloadEngine.cc
  2970. * src/DownloadEngine.h
  2971. * src/PeerStat.h
  2972. * src/SegmentMan.cc
  2973. * src/SegmentMan.h
  2974. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2975. Reduced the number of calls to PeerStorage::calculateStat() and
  2976. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2977. transfer rate.
  2978. * src/DefaultBtInteractive.cc
  2979. * src/DefaultBtMessageDispatcher.cc
  2980. * src/DefaultPeerStorage.cc
  2981. * src/DefaultPeerStorage.h
  2982. * src/DownloadCommand.cc
  2983. * src/DownloadEngine.cc
  2984. * src/PeerStorage.h
  2985. * src/SegmentMan.cc
  2986. * src/SegmentMan.h
  2987. * test/MockPeerStorage.h
  2988. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Prepended _dir+"/" after joining path elements in torrent file.
  2990. * src/DefaultBtContext.cc
  2991. * test/DefaultBtContextTest.cc
  2992. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2993. Added missing IndexBtMessageValidator.h
  2994. * src/Makefile.am
  2995. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2997. Chinese translations. Thank you for contributing our project.
  2998. * po/id.po
  2999. * po/it.po
  3000. * po/ru.po
  3001. * po/uk.po
  3002. * po/zh_CN.po
  3003. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3004. Updated README
  3005. * README
  3006. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3007. Bump up version number to 1.3.0
  3008. * configure.ac
  3009. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3010. Updated doc
  3011. * src/DefaultBtContext.h
  3012. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3013. Slice/joinPath for name of single torrent.
  3014. * src/DefaultBtContext.cc
  3015. * test/DefaultBtContextTest.cc
  3016. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Updated man page: Documented --dry-run and --index-out
  3018. options. Changed the default value of --uri-selector and
  3019. --http-auth-challenge options. Removed --direct-file-mapping
  3020. option. Added example for --index-out
  3021. * doc/aria2c.1.txt
  3022. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3023. Updated TEXT_DRY_RUN
  3024. * src/usage_text.h
  3025. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3026. Changed the default value of --uri-selector option from 'inorder'
  3027. to 'feedback'
  3028. * src/OptionHandlerFactory.cc
  3029. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Included current URI in exception message.
  3031. * src/AbstractCommand.cc
  3032. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3033. Renamed ServerStatURISelector as FeedbackURISelector.
  3034. * src/FeedbackURISelector.cc
  3035. * src/FeedbackURISelector.h
  3036. * src/Makefile.am
  3037. * src/RequestGroupMan.cc
  3038. * src/ServerStatURISelector.cc
  3039. * src/ServerStatURISelector.h
  3040. * test/FeedbackURISelectorTest.cc
  3041. * test/Makefile.am
  3042. * test/ServerStatURISelectorTest.cc
  3043. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3044. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3045. all URIs are tested and their timeout is not reached.
  3046. * src/AdaptiveURISelector.cc
  3047. * src/AdaptiveURISelector.h
  3048. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3049. Changed the default value of --http-auth-challenge option to false.
  3050. * src/OptionHandlerFactory.cc
  3051. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Reuse URIs when all unused URIs run out.
  3053. * src/OptionHandlerFactory.cc
  3054. * src/RequestGroup.cc
  3055. * src/prefs.cc
  3056. * src/prefs.h
  3057. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3059. and BtRejectMessage are derived from RangeBtMessage class.
  3060. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3061. derived from IndexBtMessage class. BtChokeMessage,
  3062. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3063. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3064. ZeroBtMessage class.
  3065. * src/AbstractBtMessage.cc
  3066. * src/AbstractBtMessage.h
  3067. * src/BtAllowedFastMessage.cc
  3068. * src/BtAllowedFastMessage.h
  3069. * src/BtAllowedFastMessageValidator.h: Removed
  3070. * src/BtBitfieldMessage.cc
  3071. * src/BtBitfieldMessage.h
  3072. * src/BtCancelMessage.cc
  3073. * src/BtCancelMessage.h
  3074. * src/BtCancelMessageValidator.h: Removed
  3075. * src/BtChokeMessage.cc
  3076. * src/BtChokeMessage.h
  3077. * src/BtExtendedMessage.cc
  3078. * src/BtExtendedMessage.h
  3079. * src/BtHandshakeMessage.cc
  3080. * src/BtHandshakeMessage.h
  3081. * src/BtHaveAllMessage.cc
  3082. * src/BtHaveAllMessage.h
  3083. * src/BtHaveMessage.cc
  3084. * src/BtHaveMessage.h
  3085. * src/BtHaveMessageValidator.h: Removed
  3086. * src/BtHaveNoneMessage.cc
  3087. * src/BtHaveNoneMessage.h
  3088. * src/BtInterestedMessage.cc
  3089. * src/BtInterestedMessage.h
  3090. * src/BtKeepAliveMessage.cc
  3091. * src/BtKeepAliveMessage.h
  3092. * src/BtNotInterestedMessage.cc
  3093. * src/BtNotInterestedMessage.h
  3094. * src/BtPieceMessage.cc
  3095. * src/BtPieceMessage.h
  3096. * src/BtPortMessage.cc
  3097. * src/BtPortMessage.h
  3098. * src/BtRejectMessage.cc
  3099. * src/BtRejectMessage.h
  3100. * src/BtRejectMessageValidator.h: Removed
  3101. * src/BtRequestMessage.cc
  3102. * src/BtRequestMessage.h
  3103. * src/BtRequestMessageValidator.h: Removed
  3104. * src/BtSuggestPieceMessage.cc
  3105. * src/BtSuggestPieceMessage.h
  3106. * src/BtSuggestPieceMessageValidator.h: Removed
  3107. * src/BtUnchokeMessage.cc
  3108. * src/BtUnchokeMessage.h
  3109. * src/DefaultBtMessageFactory.cc
  3110. * src/IndexBtMessage.cc
  3111. * src/IndexBtMessage.h
  3112. * src/IndexBtMessageValidator.h
  3113. * src/Makefile.am
  3114. * src/PeerMessageUtil.cc
  3115. * src/PeerMessageUtil.h
  3116. * src/RangeBtMessage.cc
  3117. * src/RangeBtMessage.h
  3118. * src/RangeBtMessageValidator.h
  3119. * src/SimpleBtMessage.cc
  3120. * src/SimpleBtMessage.h
  3121. * src/ZeroBtMessage.cc
  3122. * src/ZeroBtMessage.h
  3123. * test/BtRequestMessageTest.cc
  3124. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3125. Reverted usage_text.h to r1093 to avoid to lose translated
  3126. messages.
  3127. * src/usage_text.h
  3128. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3129. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3130. declared as non-const previously is now const and defined in class
  3131. definition.
  3132. * src/AbstractBtMessage.cc
  3133. * src/AbstractBtMessage.h
  3134. * src/BtAllowedFastMessage.cc
  3135. * src/BtAllowedFastMessage.h
  3136. * src/BtBitfieldMessage.h
  3137. * src/BtCancelMessage.cc
  3138. * src/BtCancelMessage.h
  3139. * src/BtChokeMessage.cc
  3140. * src/BtChokeMessage.h
  3141. * src/BtExtendedMessage.cc
  3142. * src/BtExtendedMessage.h
  3143. * src/BtHandshakeMessage.cc
  3144. * src/BtHandshakeMessage.h
  3145. * src/BtHaveAllMessage.cc
  3146. * src/BtHaveAllMessage.h
  3147. * src/BtHaveMessage.cc
  3148. * src/BtHaveMessage.h
  3149. * src/BtHaveNoneMessage.cc
  3150. * src/BtHaveNoneMessage.h
  3151. * src/BtInterestedMessage.cc
  3152. * src/BtInterestedMessage.h
  3153. * src/BtKeepAliveMessage.cc
  3154. * src/BtKeepAliveMessage.h
  3155. * src/BtMessage.h
  3156. * src/BtNotInterestedMessage.cc
  3157. * src/BtNotInterestedMessage.h
  3158. * src/BtPieceMessage.h
  3159. * src/BtPortMessage.cc
  3160. * src/BtPortMessage.h
  3161. * src/BtRejectMessage.cc
  3162. * src/BtRejectMessage.h
  3163. * src/BtRequestMessage.cc
  3164. * src/BtRequestMessage.h
  3165. * src/BtSuggestPieceMessage.cc
  3166. * src/BtSuggestPieceMessage.h
  3167. * src/BtUnchokeMessage.cc
  3168. * src/BtUnchokeMessage.h
  3169. * src/SimpleBtMessage.cc
  3170. * src/SimpleBtMessage.h
  3171. * test/MockBtMessage.h
  3172. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Use FileEntry::exists()
  3174. * src/MultiDiskAdaptor.cc
  3175. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3176. Added exists()
  3177. * src/FileEntry.cc
  3178. * src/FileEntry.h
  3179. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3180. Added missing prefix dir.
  3181. * src/download_helper.cc
  3182. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3184. * src/CopyDiskAdaptor.cc: Removed
  3185. * src/CopyDiskAdaptor.h: Removed
  3186. * src/DefaultPieceStorage.cc
  3187. * src/Makefile.am
  3188. * src/OptionHandlerFactory.cc
  3189. * src/prefs.cc
  3190. * src/prefs.h
  3191. * src/usage_text.h
  3192. * test/CopyDiskAdaptorTest.cc: Removed
  3193. * test/Makefile.am
  3194. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3195. Rewritten isSameFileBeingDownloaded()
  3196. * src/RequestGroupMan.cc
  3197. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3198. Removed getName() from DownloadContext. getName() is declared in
  3199. BtContext.
  3200. * src/BtContext.h
  3201. * src/DownloadContext.h
  3202. * src/SingleFileDownloadContext.cc
  3203. * src/SingleFileDownloadContext.h
  3204. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3205. in AbstractSingleDiskAdaptor.
  3206. * src/AbstractSingleDiskAdaptor.h
  3207. * src/DiskAdaptor.h
  3208. * src/MultiDiskAdaptor.h
  3209. * src/RequestGroup.cc
  3210. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3211. MultiDiskAdaptor.
  3212. * src/DefaultPieceStorage.cc
  3213. * src/MultiDiskAdaptor.cc
  3214. * src/MultiDiskAdaptor.h
  3215. * test/MultiDiskAdaptorTest.cc
  3216. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3217. FileEntry::getPath() contains store(top level) directory to
  3218. simplify path handling operation. In the previous implementation,
  3219. store directory is concatenated to FileEntry::getPath() in
  3220. DownloadContext.
  3221. * src/BtDependency.cc
  3222. * src/BtPostDownloadHandler.cc
  3223. * src/CopyDiskAdaptor.cc
  3224. * src/DefaultBtContext.cc
  3225. * src/DirectDiskAdaptor.cc
  3226. * src/FileEntry.cc
  3227. * src/FileEntry.h
  3228. * src/FtpNegotiationCommand.cc
  3229. * src/HttpResponse.cc
  3230. * src/HttpResponseCommand.cc
  3231. * src/Metalink2RequestGroup.cc
  3232. * src/MultiDiskAdaptor.cc
  3233. * src/MultiDiskAdaptor.h
  3234. * src/MultiFileAllocationIterator.cc
  3235. * src/RequestGroup.cc
  3236. * src/SingleFileDownloadContext.cc
  3237. * src/SingleFileDownloadContext.h
  3238. * src/download_helper.cc
  3239. * test/BtDependencyTest.cc
  3240. * test/CopyDiskAdaptorTest.cc
  3241. * test/DefaultBtContextTest.cc
  3242. * test/DefaultBtProgressInfoFileTest.cc
  3243. * test/DirectDiskAdaptorTest.cc
  3244. * test/DownloadHelperTest.cc
  3245. * test/FileEntryTest.cc
  3246. * test/MultiDiskAdaptorTest.cc
  3247. * test/MultiFileAllocationIteratorTest.cc
  3248. * test/RequestGroupTest.cc
  3249. * test/SingleFileDownloadContextTest.cc
  3250. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Fixed compiler warning
  3252. * src/download_helper.cc
  3253. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. Throw exception if same infohash torrent is now downloading.
  3255. * src/RequestGroup.cc
  3256. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3257. Added --dry-run option. In this mode, aria2 just checks whether
  3258. the remote file is available and doesn't download data. This
  3259. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3260. are canceled in this mode.
  3261. * src/FtpNegotiationCommand.cc
  3262. * src/HttpResponseCommand.cc
  3263. * src/HttpResponseCommand.h
  3264. * src/OptionHandlerFactory.cc
  3265. * src/RequestGroup.cc
  3266. * src/RequestGroupMan.cc
  3267. * src/prefs.cc
  3268. * src/prefs.h
  3269. * src/usage_text.h
  3270. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3271. Fixed compiler waring
  3272. * test/UriListParserTest.cc
  3273. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3274. Parse options in -i list using OptionParser.
  3275. * src/UriListParser.cc
  3276. * src/UriListParser.h
  3277. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3278. Don't reset URI in retry to avoid additional round trips because
  3279. of redirects.
  3280. * src/AbstractCommand.cc
  3281. * src/OptionHandlerFactory.cc
  3282. * src/prefs.cc
  3283. * src/prefs.h
  3284. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3285. Declared hide() in OptionHandler.
  3286. * src/NameMatchOptionHandler.h
  3287. * src/OptionHandler.h
  3288. * src/OptionHandlerImpl.h
  3289. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3290. Updated doc
  3291. * src/Peer.h
  3292. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3293. Added log message in setStatusInternal()
  3294. * src/ServerStat.cc
  3295. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3296. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3297. effectively exclude failed server.
  3298. * src/AbstractCommand.cc
  3299. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3300. Added --index-out option to specify each file path for torrent.
  3301. Here index shown in --show-files option is used to specify which
  3302. file path should be altered. For example, to change the file path
  3303. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3304. option multiple times: --index-out=1=aria2.tar.bz2
  3305. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3306. available. This option can be specified in -i list.
  3307. * src/DefaultBtContext.cc
  3308. * src/DefaultBtContext.h
  3309. * src/MultiDiskAdaptor.cc
  3310. * src/MultiDiskAdaptor.h
  3311. * src/MultiFileAllocationIterator.cc
  3312. * src/OptionHandlerFactory.cc
  3313. * src/OptionHandlerImpl.h
  3314. * src/Util.cc
  3315. * src/Util.h
  3316. * src/download_helper.cc
  3317. * src/prefs.cc
  3318. * src/prefs.h
  3319. * src/usage_text.h
  3320. * test/DefaultBtContextTest.cc
  3321. * test/MultiDiskAdaptorTest.cc
  3322. * test/MultiFileAllocationIteratorTest.cc
  3323. * test/UtilTest.cc
  3324. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3325. Use Util::pathJoin()
  3326. * src/MetalinkParserController.cc
  3327. * test/test.xml
  3328. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3329. Use Util::pathJoin()
  3330. * src/DefaultBtContext.cc
  3331. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3332. Added Util::pathJoin()
  3333. * src/Util.h
  3334. * test/UtilTest.cc
  3335. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3336. Applied basename function to remove directory element in
  3337. content-disposition value.
  3338. Return empty string if content-disposition value is ".." or ".".
  3339. * src/Util.cc
  3340. * test/UtilTest.cc
  3341. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3342. Added --max-overall-download-limit in man page.
  3343. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3344. * doc/aria2c.1.txt
  3345. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3346. Added --max-overall-download-limit option. Now --max-upload-limit
  3347. option is not ignored when --max-overall-upload-limit option has
  3348. non-zero value. aria2 checks download(upload) speed in the order:
  3349. first checks overall speed limit and if it is not exceeded, then
  3350. checks speed limit per download. Thus you can specify both
  3351. value. For example, set --max-overall-download-limit=1M and
  3352. --max-download-limit=500K to prevent from one download from eating
  3353. all overall speed limit.
  3354. * src/DefaultBtInteractive.cc
  3355. * src/DefaultBtInteractive.h
  3356. * src/DefaultBtMessageDispatcher.cc
  3357. * src/DefaultBtMessageDispatcher.h
  3358. * src/DownloadCommand.cc
  3359. * src/DownloadCommand.h
  3360. * src/FtpNegotiationCommand.cc
  3361. * src/HttpResponseCommand.cc
  3362. * src/OptionHandlerFactory.cc
  3363. * src/PeerInteractionCommand.cc
  3364. * src/RequestGroup.cc
  3365. * src/RequestGroup.h
  3366. * src/RequestGroupMan.cc
  3367. * src/RequestGroupMan.h
  3368. * src/prefs.cc
  3369. * src/prefs.h
  3370. * src/usage_text.h
  3371. * test/DefaultBtMessageDispatcherTest.cc
  3372. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3373. Documented select-file option in Input File section.
  3374. Documented --http-auth-challenge option.
  3375. * doc/aria2c.1.txt
  3376. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3377. Now select-file can be specified in the uri list(-i list).
  3378. * src/BtContext.cc
  3379. * src/BtContext.h
  3380. * src/RequestGroup.cc
  3381. * src/Sequence.h
  3382. * src/download_helper.cc
  3383. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3384. Made the upper value of --max-concurrent-downloads options unlimited.
  3385. * src/OptionHandlerFactory.cc
  3386. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3387. Fixed the bug that disk writer is not created even if it shares
  3388. same piece with the preceding file if the length of previous file
  3389. is 0.
  3390. * src/MultiDiskAdaptor.cc
  3391. * test/MultiDiskAdaptorTest.cc
  3392. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3393. In BitTorrent, Open files in read-only mode for hash check. After
  3394. that, re-open file in read/write mode only when the download is
  3395. not finished.
  3396. * src/AbstractDiskWriter.cc
  3397. * src/AbstractDiskWriter.h
  3398. * src/AbstractSingleDiskAdaptor.cc
  3399. * src/AbstractSingleDiskAdaptor.h
  3400. * src/BtCheckIntegrityEntry.cc
  3401. * src/DiskAdaptor.h
  3402. * src/DiskWriter.h
  3403. * src/MultiDiskAdaptor.cc
  3404. * src/MultiDiskAdaptor.h
  3405. * src/RequestGroup.cc
  3406. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3407. Added --http-auth-challenge option. If it is set to true(by
  3408. default), aria2 sends HTTP authorization header only when it is
  3409. requested by the server. If false is set, then authorization
  3410. header is always sent to the server. This is useful for servers
  3411. that don't respond 401 code when authentication is required.
  3412. There is an exception: if username and password are embedded in
  3413. URI, authorization header is always sent to the server regardless
  3414. of this option.
  3415. * src/AuthConfigFactory.cc
  3416. * src/HttpSkipResponseCommand.cc
  3417. * src/OptionHandlerFactory.cc
  3418. * src/prefs.cc
  3419. * src/prefs.h
  3420. * src/usage_text.h
  3421. * test/AuthConfigFactoryTest.cc
  3422. * test/HttpRequestTest.cc
  3423. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3424. * Release 1.2.0
  3425. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3426. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3427. Thanks to all translators.
  3428. * po/es.po
  3429. * po/ja.po
  3430. * po/ru.po
  3431. * po/uk.po
  3432. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3433. Call deleteSocketForReadCheck() before socket is closed.
  3434. * src/HttpListenCommand.cc
  3435. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3436. Defined virtual destructor for BObject.
  3437. * src/bencode.h
  3438. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3439. Rewritten BDE to make it efficient.
  3440. * src/bencode.cc
  3441. * src/bencode.h
  3442. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Removed function throw list.
  3444. * src/bencode.cc
  3445. * src/bencode.h
  3446. * test/BencodeTest.cc
  3447. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3448. Enclosed all URLs in double quotes in command-line examples.
  3449. * doc/aria2c.1.txt
  3450. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3451. Updated reference/see also section.
  3452. * README
  3453. * doc/aria2c.1.txt
  3454. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3455. Reorganized man page based on man man-pages.
  3456. * doc/aria2c.1.txt
  3457. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3458. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3459. because same documents are available in man page. Added
  3460. References section.
  3461. * README
  3462. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3463. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3464. PERFORMANCE PROFILE section.
  3465. * doc/aria2c.1.txt
  3466. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3467. Rewritten the section for configuration file.
  3468. * README
  3469. * doc/aria2c.1.txt
  3470. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3471. Fixed the segmentation fault during execution of choking algorithm
  3472. in leecher state because of broken compare operator
  3473. implementation.
  3474. * src/BtLeecherStateChoke.cc
  3475. * src/BtLeecherStateChoke.h
  3476. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3477. Open file in binary mode.
  3478. * src/CookieStorage.cc
  3479. * src/DHTSetup.cc
  3480. * src/DHTUtil.cc
  3481. * src/Netrc.cc
  3482. * src/NsCookieParser.cc
  3483. * src/ProtocolDetector.cc
  3484. * src/RequestGroupMan.cc
  3485. * src/Signature.cc
  3486. * src/bencode.cc
  3487. * src/download_helper.cc
  3488. * src/option_processing.cc
  3489. * test/CookieParserTest.cc
  3490. * test/DefaultBtProgressInfoFileTest.cc
  3491. * test/FileTest.cc
  3492. * test/GZipDecoderTest.cc
  3493. * test/RequestGroupManTest.cc
  3494. * test/SignatureTest.cc
  3495. * test/SingleFileAllocationIteratorTest.cc
  3496. * test/UriListParserTest.cc
  3497. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3498. Removed operator[] because it is ambiguous with built-in []
  3499. operator.
  3500. * src/array_fun.h
  3501. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3502. Fixed compile error
  3503. * src/OptionParser.cc
  3504. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3505. Added missing call to arrayWrapperConst
  3506. * test/array_funTest.cc
  3507. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Use array_wrapper instead of array_ptr.
  3509. * src/DHTRoutingTableDeserializer.cc
  3510. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3511. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3512. * src/array_fun.h
  3513. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3514. Added array_wrapper template.
  3515. * src/array_fun.h
  3516. * test/array_funTest.cc
  3517. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3518. Use operator T* of array_ptr.
  3519. * src/OptionParser.cc
  3520. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3521. Use localhost instead of 127.0.0.1
  3522. * test/FtpConnectionTest.cc
  3523. * test/MSEHandshakeTest.cc
  3524. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3525. Added operator T*
  3526. * src/array_fun.h
  3527. * test/array_funTest.cc
  3528. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Use dynamically allocated char array to detect memory access
  3530. violation.
  3531. * src/DHTRoutingTableDeserializer.cc
  3532. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3533. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3534. defined.
  3535. * src/PeerMessageUtil.cc
  3536. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3537. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3538. * configure.ac
  3539. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3540. Added a check to see struct sockaddr_in has sin_len member.
  3541. * configure.ac
  3542. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3543. Fixed buffer overrun.
  3544. * src/DHTRoutingTableDeserializer.cc
  3545. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3546. Added LL for long long int constant.
  3547. * test/FtpConnectionTest.cc
  3548. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Casted to unsigned int to suppress compiler warning on netbsd.
  3550. * src/BtRuntime.h
  3551. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3553. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3554. type time_t.
  3555. * src/SimpleLogger.cc
  3556. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3557. Added test for FtpConnection::receiveSizeResponse().
  3558. * test/FtpConnectionTest.cc
  3559. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3560. Fix epoll error on the old kernel 2.6.8 or ealier.
  3561. * src/EpollEventPoll.cc
  3562. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3563. Use Util::parseLLInt instead of sscanf for portability. The
  3564. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3565. * src/FtpConnection.cc
  3566. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3567. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3568. block. It should not filter anything.
  3569. * src/BitfieldMan.cc
  3570. * src/ConsoleStatCalc.cc
  3571. * test/BitfieldManTest.cc
  3572. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3573. Fixed the bug that the boolean options that don't take arguments
  3574. don't work.
  3575. * src/OptionHandlerImpl.h
  3576. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3577. Fixed broken selected file BitTorrent download.
  3578. * src/MultiDiskAdaptor.cc
  3579. * test/MultiDiskAdaptorTest.cc
  3580. * test/MultiFileAllocationIteratorTest.cc
  3581. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. Fixed #define guard for EpollEventPoll
  3583. * src/EpollEventPoll.h
  3584. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3585. Wait 2 seconds. 1 second is sometimes not enough.
  3586. * test/TimeSeedCriteriaTest.cc
  3587. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3588. Use localhost instead of 127.0.0.1.
  3589. * test/DHTConnectionImplTest.cc
  3590. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Suppressed compiler warning.
  3592. * src/AdaptiveURISelector.cc
  3593. * src/DefaultPieceStorage.cc
  3594. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3595. Defined virtual destructor.
  3596. * src/MetalinkParserState.h
  3597. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3598. Give NULL for second argument of getaddrinfo instead of "0".
  3599. * src/NameResolver.cc
  3600. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3601. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3602. included strptime doesn't parse data for this format.
  3603. * src/FtpConnection.cc
  3604. * test/FtpConnectionTest.cc
  3605. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3606. Removed tests giving -1 for unsigned argument.
  3607. * test/SingleFileDownloadContextTest.cc
  3608. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3609. Don't use sha256 in tests because it might not be supported by the
  3610. SSL library.
  3611. * test/MetalinkProcessorTest.cc
  3612. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3613. Removed tests giving -1 for unsigned argument.
  3614. * test/AlphaNumberDecoratorTest
  3615. * test/BitfieldManTest.cc
  3616. * test/DefaultBtContextTest.cc
  3617. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3618. Fixed compile error without libcares when epoll is available.
  3619. * src/EpollEventPoll.cc
  3620. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3621. Included fstream instead of iostream.
  3622. * test/SignatureTest.cc
  3623. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3624. Removed #include <algorithm>
  3625. * test/RequestGroupTest.cc
  3626. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3627. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3628. using RequestGroup::extractURIResult().
  3629. * src/AdaptiveURISelector.cc
  3630. * src/RequestGroup.cc
  3631. * src/RequestGroup.h
  3632. * test/RequestGroupTest.cc
  3633. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3634. Added tests for array_ptr.
  3635. * test/array_funTest.cc
  3636. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Don't send ip parameter to a tracker if ip parameter is empty
  3638. string.
  3639. * src/DefaultBtAnnounce.cc
  3640. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3641. Adjusted line feed.
  3642. * src/version_usage.cc
  3643. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3644. Print tags, possible values when OptionHandlerException is caught.
  3645. * src/option_processing.cc
  3646. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3647. Changed the message for FatalException.
  3648. * src/OptionParser.cc
  3649. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3650. Documented --bt-external-ip option in man page. Updated man pages
  3651. for --proxy-method option.
  3652. * doc/aria2c.1.txt
  3653. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3654. Use GET method for FTP via HTTP proxy.
  3655. * src/FtpInitiateConnectionCommand.cc
  3656. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3657. Changed the default value of --proxy-method option from 'tunnel'
  3658. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3659. option.
  3660. * src/AbstractCommand.cc
  3661. * src/AbstractCommand.h
  3662. * src/FtpInitiateConnectionCommand.cc
  3663. * src/HttpDownloadCommand.cc
  3664. * src/HttpInitiateConnectionCommand.cc
  3665. * src/HttpInitiateConnectionCommand.h
  3666. * src/OptionHandlerFactory.cc
  3667. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. Initialized _logger
  3669. * src/SelectEventPoll.cc
  3670. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Defined a copy constructor for the same type.
  3672. * src/SharedHandle.h
  3673. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Added OptionParser::parseArg() which internally uses getopt_long
  3675. to parse command-line options. All command-line options are now
  3676. configured by OptionHandler. No manual editing of struct option*
  3677. is required any more.
  3678. * src/NameMatchOptionHandler.h
  3679. * src/OptionHandler.h
  3680. * src/OptionHandlerFactory.cc
  3681. * src/OptionHandlerImpl.h
  3682. * src/OptionParser.cc
  3683. * src/OptionParser.h
  3684. * src/array_fun.h
  3685. * src/main.cc
  3686. * src/option_processing.cc
  3687. * test/OptionHandlerTest.cc
  3688. * test/OptionParserTest.cc
  3689. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3690. Fixed configure error with --disable-epoll
  3691. * configure.ac
  3692. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3693. Fixed compile error when HAVE_EPOLL is not defined.
  3694. Fixed linker error on bigendian systems.
  3695. * src/SocketCore.cc
  3696. * src/SocketCore.h
  3697. * test/DefaultBtProgressInfoFileTest.cc
  3698. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3699. Added --bt-external-ip option. You can specify the external IP
  3700. address to report to a BitTorrent tracker. Although this function
  3701. is named 'external', it can accept any kind of IP addresses.
  3702. * src/DefaultBtAnnounce.cc
  3703. * src/OptionHandlerFactory.cc
  3704. * src/option_processing.cc
  3705. * src/prefs.cc
  3706. * src/prefs.h
  3707. * src/usage_text.h
  3708. * test/DefaultBtAnnounceTest.cc
  3709. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Extracted the algorithm to find the longest incremental sequence
  3711. as max_sequence template.
  3712. * src/LongestSequencePieceSelector.cc
  3713. * src/a2algo.h
  3714. * test/Makefile.am
  3715. * test/a2algoTest.cc
  3716. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3717. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3718. * src/usage_text.h
  3719. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3720. Updated doc for --uri-selector, --http-server-listen-port and
  3721. --enable-http-server option. Documented --event-poll option.
  3722. * doc/aria2c.1.txt
  3723. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3724. Updated doc for --enable-http-server.
  3725. * src/usage_text.h
  3726. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3727. Documented --http-server-listen-port and --enable-http-server in
  3728. man page.
  3729. * doc/aria2c.1.txt
  3730. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3731. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3732. translations. Thanks to all translators.
  3733. * po/es.po
  3734. * po/id.po
  3735. * po/it.po
  3736. * po/ru.po
  3737. * po/uk.po
  3738. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3739. Bump up version number to 1.2.0
  3740. * configure.ac
  3741. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3742. BtContext::getAnnounceTiers() now returns const reference.
  3743. * src/BtContext.h
  3744. * src/DefaultBtContext.cc
  3745. * src/DefaultBtContext.h
  3746. * test/MockBtContext.h
  3747. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3748. Change the number of retries for tracker request based on the
  3749. number of available tracker in a torrent file.
  3750. * src/TrackerWatcherCommand.cc
  3751. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3752. Added _maxTries property to RequestGroup and assign the option
  3753. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3754. RequestGroup::getMaxTries() instead of
  3755. Option::getAsInt(PREF_MAX_TRIES).
  3756. * src/AbstractCommand.cc
  3757. * src/RequestGroup.cc
  3758. * src/RequestGroup.h
  3759. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3760. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3761. Mandriva. I modified the patch: make RequestGroup have the
  3762. timeout value and AdaptiveURISelector directly modifies that
  3763. value.
  3764. * src/AbstractCommand.cc
  3765. * src/AdaptiveURISelector.cc
  3766. * src/AdaptiveURISelector.h
  3767. * src/FtpNegotiationCommand.cc
  3768. * src/RequestGroup.cc
  3769. * src/RequestGroup.h
  3770. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3771. Fixed compiler warning
  3772. * test/IteratableChecksumValidatorTest.cc
  3773. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3774. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3775. integrated downloads. This PieceSelector subclass finds the
  3776. longest continuous sequence in the available missing pieces and
  3777. selects the last index of such sequence. This makes HTTP/FTP
  3778. connections less interrupted by the pieces obtained by BitTorrent
  3779. peers.
  3780. * src/DefaultPieceStorage.cc
  3781. * src/DefaultPieceStorage.h
  3782. * src/LongestSequencePieceSelector.cc
  3783. * src/LongestSequencePieceSelector.h
  3784. * src/Makefile.am
  3785. * src/PieceSelector.h
  3786. * src/RarestPieceSelector.h
  3787. * src/RequestGroup.cc
  3788. * test/BtDependencyTest.cc
  3789. * test/DefaultPieceStorageTest.cc
  3790. * test/IteratableChecksumValidatorTest.cc
  3791. * test/LongestSequencePieceSelectorTest.cc
  3792. * test/Makefile.am
  3793. * test/SegmentManTest.cc
  3794. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3795. Fixed the bug that the average speed is wrong in
  3796. http/ftp/BitTorrent integrated download. Only the download bytes
  3797. in BitTorrent were considered.
  3798. * src/RequestGroup.cc
  3799. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Choose port for BitTorrent/DHT randomly from the specified range.
  3801. * src/DHTConnectionImpl.cc
  3802. * src/PeerListenCommand.cc
  3803. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3804. Send HTTP Authorization header only if it is requested by the
  3805. server(response 401). There are some exceptions. The authorization
  3806. header for proxy is always sent if it is available without request
  3807. by the server. If username/password is specified in the URI, it
  3808. is immediately sent to the server without request by the server.
  3809. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3810. SharedHandle<AuthConfig>().
  3811. NetrcAuthResolver::resolveAuthConfig() returns
  3812. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3813. * src/AbstractAuthResolver.cc
  3814. * src/AbstractProxyRequestCommand.cc
  3815. * src/AuthConfigFactory.cc
  3816. * src/AuthConfigFactory.h
  3817. * src/HttpConnection.cc
  3818. * src/HttpRequest.cc
  3819. * src/HttpRequest.h
  3820. * src/HttpResponse.cc
  3821. * src/HttpResponseCommand.cc
  3822. * src/HttpSkipResponseCommand.cc
  3823. * test/AuthConfigFactoryTest.cc
  3824. * test/HttpRequestTest.cc
  3825. * test/HttpResponseTest.cc
  3826. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3827. Remove leading "--" from help keyword and a substring after "="
  3828. from help keyword, so that one can query options by '-h--max-' or
  3829. '-hmax-peers=10'.
  3830. * src/option_processing.cc
  3831. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Rewritten PStringVisitor and its implementation.
  3833. * src/PStringBuildVisitor.cc
  3834. * src/PStringBuildVisitor.h
  3835. * src/PStringDatum.h
  3836. * src/PStringNumLoop.h
  3837. * src/PStringSegment.cc
  3838. * src/PStringSegment.h
  3839. * src/PStringSelect.h
  3840. * src/PStringVisitor.h
  3841. * src/download_helper.cc
  3842. * test/PStringBuildVisitorTest.cc
  3843. * test/ParameterizedStringParserTest.cc
  3844. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3845. Persist connection between the built-in HTTP server and a client
  3846. if a client supports keep-alive. Fixed the bug that aria2 exits
  3847. when the HTTP server receives EOF from a client.
  3848. * src/HttpServer.cc
  3849. * src/HttpServer.h
  3850. * src/HttpServerCommand.cc
  3851. * src/HttpServerCommand.h
  3852. * src/HttpServerResponseCommand.cc
  3853. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3854. Added experimental built-in HTTP server. Currently, when a client
  3855. accesses to the server, it responds with the current download
  3856. progress. By default, it is disabled. To enable the server, give
  3857. --enable-http-server option. To change the default port number
  3858. for the server to listen to, use --http-server-listen-port option.
  3859. The response HTML is very simple and refreshes it self each 1
  3860. second. Because of this refresh, you see flicker in normal web
  3861. browser such as Firefox. I recommend to use console-based browser
  3862. such as elinks, w3m. To connect to the server, run 'elinks
  3863. http://localhost:6800/' while running aria2. Please replace port
  3864. number '6800'(which is default) with your preference.
  3865. * src/DownloadEngineFactory.cc
  3866. * src/HttpHeader.cc
  3867. * src/HttpHeader.h
  3868. * src/HttpHeaderProcessor.cc
  3869. * src/HttpHeaderProcessor.h
  3870. * src/HttpListenCommand.cc
  3871. * src/HttpListenCommand.h
  3872. * src/HttpServer.cc
  3873. * src/HttpServer.h
  3874. * src/HttpServerCommand.cc
  3875. * src/HttpServerCommand.h
  3876. * src/HttpServerResponseCommand.cc
  3877. * src/HttpServerResponseCommand.h
  3878. * src/Makefile.am
  3879. * src/OptionHandlerFactory.cc
  3880. * src/Util.cc
  3881. * src/Util.h
  3882. * src/help_tags.h
  3883. * src/option_processing.cc
  3884. * src/prefs.cc
  3885. * src/prefs.h
  3886. * src/usage_text.h
  3887. * test/HttpHeaderProcessorTest.cc
  3888. * test/UtilTest.cc
  3889. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3890. Removed.
  3891. * src/CheckIntegrityMan.cc
  3892. * src/FileAllocationMan.cc
  3893. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Made (piece) hash check sequential for each RequestGroup because
  3895. simultaneous hash check is slower than sequential execution.
  3896. * src/CheckIntegrityCommand.cc
  3897. * src/CheckIntegrityDispatcherCommand.cc
  3898. * src/CheckIntegrityDispatcherCommand.h
  3899. * src/CheckIntegrityMan.h
  3900. * src/ConsoleStatCalc.cc
  3901. * src/DownloadCommand.cc
  3902. * src/DownloadEngine.cc
  3903. * src/DownloadEngine.h
  3904. * src/DownloadEngineFactory.cc
  3905. * src/Makefile.am
  3906. * src/Makefile.in
  3907. * src/RequestGroup.cc
  3908. * src/StatCalc.h
  3909. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3910. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3911. SequentialDispatcherCommand.
  3912. * src/FileAllocationDispatcherCommand.cc
  3913. * src/SequentialDispatcherCommand.h
  3914. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Rewritten FileAllocationDispatcherCommand using brand new
  3916. SequentialDispatcherCommand.
  3917. * src/DownloadEngineFactory.cc
  3918. * src/FileAllocationCommand.cc
  3919. * src/FileAllocationDispatcherCommand.cc
  3920. * src/FileAllocationDispatcherCommand.h
  3921. * src/Makefile.am
  3922. * src/SequentialDispatcherCommand.h
  3923. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3924. Replaced FileAllocationMan with
  3925. SequentialPicker<FileAllocationEntry>.
  3926. * src/BtCheckIntegrityEntry.cc
  3927. * src/ConsoleStatCalc.cc
  3928. * src/DownloadEngine.cc
  3929. * src/DownloadEngine.h
  3930. * src/DownloadEngineFactory.cc
  3931. * src/FileAllocationCommand.cc
  3932. * src/FileAllocationDispatcherCommand.cc
  3933. * src/FileAllocationMan.h
  3934. * src/Makefile.am
  3935. * src/SequentialPicker.h
  3936. * src/StatCalc.h
  3937. * src/StreamCheckIntegrityEntry.cc
  3938. * test/Makefile.am
  3939. * test/SequentialPickerTest.cc
  3940. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Added doc for adaptive URI selector.
  3942. * doc/aria2c.1.txt
  3943. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3944. Added doc for adaptive URI selector.
  3945. * src/usage_text.h
  3946. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3947. Added doc for --bt-max-peers option.
  3948. * doc/aria2c.1.txt
  3949. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3950. Added doc for --bt-hash-check-seed option.
  3951. * doc/aria2c.1.txt
  3952. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3953. Documented exit codes.
  3954. * doc/aria2c.1.txt
  3955. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3956. Added --bt-max-peers option to specify the maximum number of peers
  3957. per torrent. 0 means unlimited number of peers.
  3958. * src/ActivePeerConnectionCommand.cc
  3959. * src/BtRuntime.h
  3960. * src/DefaultPeerStorage.cc
  3961. * src/DefaultPeerStorage.h
  3962. * src/OptionHandlerFactory.cc
  3963. * src/RequestGroup.cc
  3964. * src/option_processing.cc
  3965. * src/prefs.cc
  3966. * src/prefs.h
  3967. * src/usage_text.h
  3968. * test/DefaultPeerStorageTest.cc
  3969. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3970. Added --bt-hash-check-seed option. If true is given to this
  3971. option, after hash check using --check-integrity option and file
  3972. is complete, continue to seed file. If you want to check file and
  3973. download it only when it is damaged or incomplete, set this option
  3974. to false. This option has effect only on BitTorrent download.
  3975. The default value is true(This is the same behavior with the
  3976. previous release).
  3977. * src/BtCheckIntegrityEntry.cc
  3978. * src/OptionHandlerFactory.cc
  3979. * src/option_processing.cc
  3980. * src/prefs.cc
  3981. * src/prefs.h
  3982. * src/usage_text.h
  3983. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3984. Updated copyright year.
  3985. * src/version_usage.cc
  3986. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3987. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3988. * doc/aria2c.1.txt
  3989. * src/usage_text.h
  3990. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3991. Made the max value of split option unlimited.
  3992. * doc/aria2c.1.txt
  3993. * src/OptionHandlerFactory.cc
  3994. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3995. Fixed compile warning/error.
  3996. * src/DownloadResult.h
  3997. * src/HttpDownloadCommand.cc
  3998. * src/ServerStat.cc
  3999. * test/RequestGroupTest.cc
  4000. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4001. Added --event-poll option to select the method for polling events.
  4002. The available methods are "select" and "epoll". "epoll" is
  4003. available on Linux only. The earlier release has the compile
  4004. option to choose from these methods.
  4005. * configure.ac
  4006. * src/RequestGroupMan.cc
  4007. * src/OptionHandlerFactory.cc
  4008. * src/EpollEventPoll.h
  4009. * src/StreamFileAllocationEntry.cc
  4010. * src/a2io.h
  4011. * src/SelectEventPoll.h
  4012. * src/option_processing.cc
  4013. * src/prefs.h
  4014. * src/EpollEventPoll.cc
  4015. * src/EventPoll.h
  4016. * src/SocketCore.h
  4017. * src/Makefile.am
  4018. * src/main.cc
  4019. * src/DownloadEngine.h
  4020. * src/SelectEventPoll.cc
  4021. * src/DownloadEngine.cc
  4022. * src/SocketCore.cc
  4023. * src/DownloadEngineFactory.cc
  4024. * src/Makefile.in
  4025. * src/prefs.cc
  4026. * src/usage_text.h
  4027. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4028. Included RecoverableException.h from main.cc
  4029. * src/main.cc
  4030. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4032. now returns last error encountered in the HTTP/FTP downloads as a
  4033. exit status value. If all downloads finished successfully, aria2
  4034. returns 0. The error code is defined in src/DownloadResult.h.
  4035. The error occurred in the download currently in progress is not
  4036. reported as a last error. If no error has encountered but there
  4037. are in progress or waiting downloads, aria2 returns 7.
  4038. * src/AbstractCommand.cc
  4039. * src/DlAbortEx.h
  4040. * src/DlRetryEx.h
  4041. * src/DownloadCommand.cc
  4042. * src/DownloadFailureException.h
  4043. * src/DownloadResult.h
  4044. * src/FtpNegotiationCommand.cc
  4045. * src/HttpSkipResponseCommand.cc
  4046. * src/Makefile.am
  4047. * src/MultiUrlRequestInfo.cc
  4048. * src/MultiUrlRequestInfo.h
  4049. * src/RecoverableException.h
  4050. * src/RequestGroup.cc
  4051. * src/RequestGroup.h
  4052. * src/RequestGroupMan.cc
  4053. * src/RequestGroupMan.h
  4054. * src/URIResult.cc
  4055. * src/URIResult.h
  4056. * src/main.cc
  4057. * src/option_processing.cc
  4058. * test/RequestGroupTest.cc
  4059. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4060. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4061. patch adds AdaptiveURISelector, which selects one of the bests
  4062. mirrors for first and reserved connections. For supplementary
  4063. ones, it returns mirrors which has not been tested yet, and if
  4064. each of them already tested, returns mirrors which has to be
  4065. tested again. Otherwise, it doesn't return anymore mirrors.
  4066. * src/AdaptiveURISelector.cc
  4067. * src/AdaptiveURISelector.h
  4068. * src/FtpNegotiationCommand.cc
  4069. * src/HttpResponseCommand.cc
  4070. * src/Makefile.am
  4071. * src/Makefile.in
  4072. * src/OptionHandlerFactory.cc
  4073. * src/RequestGroup.cc
  4074. * src/RequestGroup.h
  4075. * src/RequestGroupMan.cc
  4076. * src/ServerStat.cc
  4077. * src/ServerStat.h
  4078. * src/ServerStatMan.cc
  4079. * src/SpeedCalc.cc
  4080. * src/URISelector.h
  4081. * src/prefs.cc
  4082. * src/prefs.h
  4083. * test/RequestGroupManTest.cc
  4084. * test/ServerStatManTest.cc
  4085. * test/ServerStatTest.cc
  4086. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4087. Fixed unit test error.
  4088. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4089. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4090. * Release 1.1.2
  4091. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4092. Updated Russian translation. Thanks to the translators.
  4093. * po/ru.po
  4094. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4095. Added the description of --use-head option to man page.
  4096. * doc/aria2c.1.txt
  4097. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4098. Bump up version number to 1.1.2
  4099. * configure.ac
  4100. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4101. Added --use-head option to toggle whether HEAD method should be
  4102. used in the first HTTP request. By default aria2 uses HEAD method
  4103. as the first request. When the server doesn't recognize HEAD, then
  4104. give aria2 --use-head=false to force aria2 to use GET method
  4105. instead.
  4106. * src/OptionHandlerFactory.cc
  4107. * src/RequestGroupMan.cc
  4108. * src/option_processing.cc
  4109. * src/prefs.cc
  4110. * src/prefs.h
  4111. * src/usage_text.h
  4112. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4113. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4114. message is received before CHOKE message. The old implementation
  4115. doen't clear the use-bit of the piece when recieved REJECT
  4116. message.
  4117. * src/DefaultBtMessageDispatcher.cc
  4118. * test/DefaultBtMessageDispatcherTest.cc
  4119. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4120. * Release 1.1.1
  4121. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4122. Bump up version number to 1.1.1.
  4123. * configure.ac
  4124. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4125. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4126. is printed repeatedly.
  4127. * src/ConsoleStatCalc.cc
  4128. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4129. * Release 1.1.0
  4130. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4131. Added ifdef clause for conditional compilation.
  4132. * src/main.cc
  4133. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4134. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4135. translations. Thanks to all translators.
  4136. * po/ja.po
  4137. * po/ru.po
  4138. * po/uk.po
  4139. * po/zh_CN.po
  4140. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4141. Added the preceding ">>> " before the message "Printing the
  4142. contents of file..." to make the output more readable.
  4143. * src/main.cc
  4144. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Added try-catch block in the loop in showFiles() to continue the
  4146. operation even if the exception occurred in one file.
  4147. * src/main.cc (showFiles)
  4148. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4149. Made messages in showFiles() translatable.
  4150. * po/aria2.pot
  4151. * src/main.cc
  4152. * src/message.h
  4153. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4154. Print the contents of Torrent/Metalink files are printed without
  4155. -T/-M options.
  4156. * src/main.cc
  4157. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4158. Escaped '--' with '\--'
  4159. * README
  4160. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4161. Updated "How to build" section in README. Mentioned about
  4162. --with-ca-bundle compile option.
  4163. * README
  4164. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4165. Bump up version number to 1.1.0.
  4166. * configure.ac
  4167. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4168. Added a note for --dht-listen-port option.
  4169. * doc/aria2c.1.txt
  4170. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4171. Update doc for --realtime-chunk-checksum option.
  4172. * doc/aria2c.1.txt
  4173. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4174. Update doc for --realtime-chunk-checksum option.
  4175. * src/usage_text.h
  4176. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4177. Updated French, Japanese, Russian and Ukrainian translations.
  4178. Thanks to all translators.
  4179. * po/fr.po
  4180. * po/ja.po
  4181. * po/ru.po
  4182. * po/uk.po
  4183. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4184. Renamed aria2c.pot to aria2.pot
  4185. * po/aria2.pot
  4186. * po/aria2c.pot: Removed.
  4187. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4188. Removed MetaEntry.h
  4189. * src/Makefile.am
  4190. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4191. Rename file by appending digits if a local file exists and its
  4192. file size is larger than that of remote file with --continue
  4193. option. The old implementation just throws exception in such case.
  4194. * src/RequestGroup.cc
  4195. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4196. Fixed the bug that download progress summary is not printed in the
  4197. interval specified by the option.
  4198. * src/ConsoleStatCalc.cc
  4199. * src/ConsoleStatCalc.h
  4200. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4201. Fixed compiler warning
  4202. * src/Cookie.cc
  4203. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4204. Fixed the cookie implementation based on RFC2965.
  4205. Now if a value in domain field is not started with dot, then
  4206. prepend dot. That means a cookie with domain=sf.net is sent to
  4207. wiki.sf.net.
  4208. * src/Cookie.cc
  4209. * test/CookieParserTest.cc
  4210. * test/CookieStorageTest.cc
  4211. * test/CookieTest.cc
  4212. * test/NsCookieParserTest.cc
  4213. * test/Sqlite3MozCookieParserTest.cc
  4214. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4215. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4216. is enabled and the server doesn't support keep-alive.
  4217. * src/AbstractCommand.cc
  4218. * src/DownloadCommand.cc
  4219. * src/HttpDownloadCommand.cc
  4220. * src/HttpDownloadCommand.h
  4221. * src/HttpResponseCommand.cc
  4222. * src/Request.cc
  4223. * src/Request.h
  4224. * test/RequestTest.cc
  4225. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4226. Removed Dictionary/List/Data and its related classes.
  4227. * src/BencodeVisitor.cc: Removed.
  4228. * src/BencodeVisitor.h: Removed.
  4229. * src/Data.cc: Removed.
  4230. * src/Data.h: Removed.
  4231. * src/Dictionary.cc: Removed.
  4232. * src/Dictionary.h: Removed.
  4233. * src/List.cc: Removed.
  4234. * src/List.h: Removed.
  4235. * src/Makefile.am
  4236. * src/MetaEntry.h: Removed.
  4237. * src/MetaEntryVisitor.h: Removed.
  4238. * src/MetaFileUtil.cc: Removed.
  4239. * src/MetaFileUtil.h: Removed.
  4240. * test/BencodeVisitorTest.cc: Removed.
  4241. * test/DataTest.cc: Removed.
  4242. * test/DictionaryTest.cc: Removed.
  4243. * test/ListTest.cc: Removed.
  4244. * test/Makefile.am
  4245. * test/MetaFileUtilTest.cc: Removed.
  4246. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4247. Removed include of MetaEntry.h
  4248. * test/DHTMessageTrackerEntryTest.cc
  4249. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4250. Use BDE instead of Dictionary/List/Data.
  4251. * src/AnnounceList.cc
  4252. * src/AnnounceList.h
  4253. * test/AnnounceListTest.cc
  4254. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4255. Use BDE instead of Dictionary/List/Data.
  4256. * src/DHTAbstractMessage.cc
  4257. * src/DHTAbstractMessage.h
  4258. * src/DHTAnnouncePeerMessage.cc
  4259. * src/DHTAnnouncePeerMessage.h
  4260. * src/DHTAnnouncePeerReplyMessage.cc
  4261. * src/DHTAnnouncePeerReplyMessage.h
  4262. * src/DHTFindNodeMessage.cc
  4263. * src/DHTFindNodeMessage.h
  4264. * src/DHTFindNodeReplyMessage.cc
  4265. * src/DHTFindNodeReplyMessage.h
  4266. * src/DHTGetPeersMessage.cc
  4267. * src/DHTGetPeersMessage.h
  4268. * src/DHTGetPeersReplyMessage.cc
  4269. * src/DHTGetPeersReplyMessage.h
  4270. * src/DHTMessageFactory.h
  4271. * src/DHTMessageFactoryImpl.cc
  4272. * src/DHTMessageFactoryImpl.h
  4273. * src/DHTMessageReceiver.cc
  4274. * src/DHTMessageTracker.cc
  4275. * src/DHTMessageTracker.h
  4276. * src/DHTPingMessage.cc
  4277. * src/DHTPingMessage.h
  4278. * src/DHTPingReplyMessage.cc
  4279. * src/DHTPingReplyMessage.h
  4280. * src/DHTQueryMessage.cc
  4281. * src/DHTQueryMessage.h
  4282. * src/DHTResponseMessage.cc
  4283. * src/DHTResponseMessage.h
  4284. * test/DHTAnnouncePeerMessageTest.cc
  4285. * test/DHTAnnouncePeerReplyMessageTest.cc
  4286. * test/DHTFindNodeMessageTest.cc
  4287. * test/DHTFindNodeReplyMessageTest.cc
  4288. * test/DHTGetPeersMessageTest.cc
  4289. * test/DHTGetPeersReplyMessageTest.cc
  4290. * test/DHTMessageFactoryImplTest.cc
  4291. * test/DHTMessageTrackerTest.cc
  4292. * test/DHTPingMessageTest.cc
  4293. * test/DHTPingReplyMessageTest.cc
  4294. * test/MockDHTMessageFactory.h
  4295. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Added tests the case where length < 0 is specified.
  4297. * test/BencodeTest.cc
  4298. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4299. Fixed memory leak in decoderawstring()
  4300. * src/bencode.cc
  4301. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4302. Added missing #ifdef guard. Added uc() function for String and
  4303. removeKey() for Dict.
  4304. * src/bencode.cc
  4305. * src/bencode.h
  4306. * test/BencodeTest.cc
  4307. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4308. Use BDE instead of Dictionary/List/Data.
  4309. * src/HandshakeExtensionMessage.cc
  4310. * src/HandshakeExtensionMessage.h
  4311. * test/HandshakeExtensionMessageTest.cc
  4312. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4313. Added --max-overall-upload-limit option. This option limits the
  4314. overall upload speed. Stated in help message that the existing
  4315. --max-upload-limit option limits the upload speed per each
  4316. torrent. Man page is also updated.
  4317. * doc/aria2c.1.txt
  4318. * src/DefaultBtMessageDispatcher.cc
  4319. * src/DefaultBtMessageDispatcher.h
  4320. * src/OptionHandlerFactory.cc
  4321. * src/PeerInteractionCommand.cc
  4322. * src/option_processing.cc
  4323. * src/prefs.cc
  4324. * src/prefs.h
  4325. * src/usage_text.h
  4326. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4327. Use BDE instead of Dictionary/List/Data classes.
  4328. * src/CompactPeerListProcessor.cc
  4329. * src/CompactPeerListProcessor.h
  4330. * src/DefaultBtAnnounce.cc
  4331. * src/DefaultBtContext.cc
  4332. * src/DefaultBtContext.h
  4333. * src/DefaultPeerListProcessor.cc
  4334. * src/DefaultPeerListProcessor.h
  4335. * src/DelegatingPeerListProcessor.cc
  4336. * src/DelegatingPeerListProcessor.h
  4337. * src/PeerListProcessor.h
  4338. * src/UTPexExtensionMessage.cc
  4339. * src/Util.h
  4340. * src/message.h
  4341. * test/DefaultBtContextTest.cc
  4342. * test/DefaultPeerListProcessorTest.cc
  4343. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4344. Added bencode helper functions and BDE class.
  4345. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4346. * src/Makefile.am
  4347. * src/bencode.cc
  4348. * src/bencode.h
  4349. * test/BencodeTest.cc
  4350. * test/Makefile.am
  4351. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4352. Fixed the bug that bad URI is sent to the tracker when the announe
  4353. URI in torrent file includes query.
  4354. * src/DefaultBtAnnounce.cc
  4355. * test/DefaultBtAnnounceTest.cc
  4356. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4357. Added Option::blank().
  4358. Use !Option::blank(name) instead of Option::defined(name) for
  4359. the options that take filename.
  4360. * src/MultiUrlRequestInfo.cc
  4361. * src/Option.cc
  4362. * src/Option.h
  4363. * src/main.cc
  4364. * src/option_processing.cc
  4365. * test/OptionTest.cc
  4366. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4367. Documented the default value of --check-certificate option in man
  4368. page.
  4369. * doc/aria2c.1.txt
  4370. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4371. Enabled --check-certificate by default. Added compile
  4372. time(configure) option --with-ca-bundle to specify CA bundle.
  4373. Warn if --check-certificate=true and --ca-certificate is not
  4374. specified or loading CA certificate is failed.
  4375. * configure.ac
  4376. * src/MultiUrlRequestInfo.cc
  4377. * src/OptionHandlerFactory.cc
  4378. * src/message.h
  4379. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4380. Mentioned https tag in help option.
  4381. * doc/aria2c.1.txt
  4382. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4383. Added `https' tag to help option category. Added https tag to
  4384. --ca-certificate, --certificate, --check-certificate and
  4385. --private-key option.
  4386. * src/OptionHandlerFactory.cc
  4387. * src/help_tags.h
  4388. * src/option_processing.cc
  4389. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4390. Changed the package name from `aria2c' to `aria2' in order to fix
  4391. the packaging issue in Debian and Fedora. The name of the
  4392. executable is not changed.
  4393. * configure.ac
  4394. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. Fixed typos
  4396. * src/usage_text.h
  4397. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4398. Fixed typos and updated doc.
  4399. * README
  4400. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4401. Fixed typos
  4402. * doc/aria2c.1.txt
  4403. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4404. Fixed typos
  4405. * src/usage_text.h
  4406. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4407. Print a message when no files to download.
  4408. * src/download_helper.cc
  4409. * src/main.cc
  4410. * src/message.h
  4411. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4412. RFC3986 complied Percent-Encoding(urlencode).
  4413. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4414. ones.
  4415. * src/Request.cc
  4416. * src/Util.cc
  4417. * src/Util.h
  4418. * test/BtHandshakeMessageTest.cc
  4419. * test/DefaultBtAnnounceTest.cc
  4420. * test/DefaultBtContextTest.cc
  4421. * test/RequestTest.cc
  4422. * test/UtilTest.cc
  4423. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4424. Fixed the bug that prevents aria2 from downloading 0-length files
  4425. via HTTP/FTP.
  4426. * src/DefaultBtContext.cc
  4427. * src/DefaultBtContext.h
  4428. * src/DownloadContext.h
  4429. * src/FtpNegotiationCommand.cc
  4430. * src/HttpResponseCommand.cc
  4431. * src/HttpResponseCommand.h
  4432. * src/RequestGroup.cc
  4433. * src/SingleFileDownloadContext.cc
  4434. * src/SingleFileDownloadContext.h
  4435. * test/BtPostDownloadHandlerTest.cc
  4436. * test/MetalinkPostDownloadHandlerTest.cc
  4437. * test/MockBtContext.h
  4438. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4439. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4440. * src/option_processing.cc
  4441. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4442. Applied aria2-1.0.1-mingw.patch.
  4443. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4444. mingw.
  4445. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4446. * src/SocketCore.cc
  4447. * src/a2netcompat.h
  4448. * test/SocketCoreTest.cc
  4449. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4450. * Release 1.0.1
  4451. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4452. Updated Ukrainian and Norwegian Nynorsk translations.
  4453. Thanks to all translators.
  4454. * po/nn.po
  4455. * po/uk.po
  4456. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4457. Don't show download result when -S option is used.
  4458. * src/main.cc
  4459. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4460. Bump up version number to 1.0.1
  4461. * configure.ac
  4462. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. Closed files after the test cases in MultiDiskWriterTest::
  4464. testResetDiskWriterEntries(). This will fix the unit test error
  4465. in mingw32 build.
  4466. * test/MultiDiskWriterTest.cc
  4467. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4468. Use HEAD method to get file size from HTTP server for segmented
  4469. downloading.
  4470. The request to the BitTorrent Tracker always uses GET method because
  4471. the response of the tracker is small and it doesn't need segmented
  4472. download.
  4473. * src/FtpNegotiationCommand.cc
  4474. * src/HttpRequest.cc
  4475. * src/HttpResponseCommand.cc
  4476. * src/HttpSkipResponseCommand.cc
  4477. * src/RequestGroup.cc
  4478. * src/RequestGroup.h
  4479. * src/TrackerWatcherCommand.cc
  4480. * test/HttpRequestTest.cc
  4481. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. Fixed the bug that causes floating exception when -T option is used and
  4483. no URIs are given.
  4484. * src/download_helper.cc
  4485. * test/DownloadHelperTest.cc
  4486. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4487. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4488. errors in MinGW:
  4489. Closed file after saving server stats (RequestGroupMan.cc)
  4490. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4491. Ignored case & handled 2-digit years (strptime.c)
  4492. Added missing suseconds_t definition (a2time.h)
  4493. Fixed socket CLOSE() define (SocketCore.cc)
  4494. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4495. Changed utime() test values from x000 to x00000 as MinGW failed on
  4496. values less than timezone offset from Unix epoch
  4497. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4498. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4499. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4500. handle negative dates (CookieParserTest.cc)
  4501. * src/a2time.h
  4502. * src/FtpConnection.cc
  4503. * src/RequestGroupMan.cc
  4504. * src/SocketCore.cc
  4505. * src/strptime.c
  4506. * test/CookieParserTest.cc
  4507. * test/CopyDiskAdaptorTest.cc
  4508. * test/FileTest.cc
  4509. * test/FtpConnectionTest.cc
  4510. * test/MultiDiskAdaptorTest.cc
  4511. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4513. * doc/aria2c.1.txt
  4514. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. * Release 1.0.0
  4516. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4517. Added '~' to reserved characters.
  4518. * src/Util.cc
  4519. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4520. Do not urlencode Request::url in setUrl() because we want unmodified
  4521. URL using Request::getUrl()
  4522. * src/Request.cc
  4523. * src/Request.h
  4524. * test/RequestTest.cc
  4525. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4526. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4527. Thanks to all translators.
  4528. * po/bg.po
  4529. * po/fr.po
  4530. * po/ja.po
  4531. * po/ru.po
  4532. * po/uk.po
  4533. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4534. Bump up version number to 1.0.0
  4535. * configure.ac
  4536. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4537. Added nosqlite3 build to build_test.sh.
  4538. Renamed noxml as expat.
  4539. * build_test.sh
  4540. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4541. Updated INPUT FILE section.
  4542. * doc/aria2c.1.txt
  4543. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4544. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4545. on big endian systems because test .aria2 files are made for little
  4546. endian systems.
  4547. * test/DefaultBtProgressInfoFileTest.cc
  4548. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4549. Dropped ares support.
  4550. * README
  4551. * configure.ac
  4552. * m4/libares.m4: Removed.
  4553. * src/AsyncNameResolver.cc
  4554. * src/Makefile.am
  4555. * test/Makefile.am
  4556. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4557. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4558. Removed const qualifier from DiskWriter::size().
  4559. * src/AbstractDiskWriter.cc
  4560. * src/AbstractDiskWriter.h
  4561. * src/ByteArrayDiskWriter.cc
  4562. * src/ByteArrayDiskWriter.h
  4563. * src/DiskWriter.h
  4564. * test/ByteArrayDiskWriterTest.cc
  4565. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4566. Fixed the bug that causes segmentation fault/bus error during executing
  4567. choking algorithm while seeding. This is caused by improper
  4568. implementation of compare function which returns inconsistent results
  4569. depending on the timing of last unchoke.
  4570. * src/BtSeederStateChoke.cc
  4571. * src/BtSeederStateChoke.h
  4572. * src/DefaultPeerStorage.cc
  4573. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4574. Removed TODO
  4575. * TODO
  4576. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4577. Added a section that explains how to pass argument to options that
  4578. takes optional arguments with its short form.
  4579. * doc/aria2c.1.txt
  4580. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4581. Added -u for the short form of --max-upload-limit option.
  4582. * doc/aria2c.1.txt
  4583. * src/option_processing.cc
  4584. * src/usage_text.h
  4585. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4586. Added -V for the short form of --check-integrity option.
  4587. Now the argument of --check-integrity option is optional:
  4588. if it is omitted, it is evaluated as true.
  4589. * doc/aria2c.1.txt
  4590. * src/option_processing.cc
  4591. * src/usage_text.h
  4592. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4593. Made the default value of --ftp-pasv option set to true and it can take
  4594. true/false values.
  4595. * src/OptionHandlerFactory.cc
  4596. * src/option_processing.cc
  4597. * src/usage_text.h
  4598. * doc/aria2c.1.txt
  4599. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4600. Given custom random number generator to std::random_shuffle.
  4601. * src/AnnounceList.cc
  4602. * src/BtLeecherStateChoke.cc
  4603. * src/BtSeederStateChoke.cc
  4604. * src/DefaultBtRequestFactory.cc
  4605. * src/MetalinkEntry.cc
  4606. * src/RarestPieceSelector.cc
  4607. * src/SimpleRandomizer.cc
  4608. * src/SimpleRandomizer.h
  4609. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4610. Now the default value of --enable-direct-io is true.
  4611. * src/OptionHandlerFactory.cc
  4612. * doc/aria2c.1.txt
  4613. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4614. Erase peer before executing onReturningPeer and onErasingPeer
  4615. because choking algorithm called from onReturningPeer doesn't
  4616. like erasing peer in the active peer list.
  4617. * src/DefaultPeerStorage.cc
  4618. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4619. Instead of creating special filename in createDownloadResult() if
  4620. inMemoryDownload() is true, now it is done in getFilePath().
  4621. * src/RequestGroup.cc
  4622. * test/RequestGroupTest.cc
  4623. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4624. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4625. processed in memory. This is the fix for previous comment out.
  4626. * src/MemoryBufferPreDownloadHandler.cc
  4627. * src/RequestGroup.cc
  4628. * src/RequestGroup.h
  4629. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. Commented out the code which sets virtual directory path "[MEMORY]"
  4631. propagate directory to store to following RequestGroup.
  4632. * src/MemoryBufferPreDownloadHandler.cc
  4633. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4634. Bump up version number to 1.0.0b
  4635. * configure.ac
  4636. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4637. Added input_uris.txt to EXTRA_DIST
  4638. * test/Makefile.am
  4639. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4640. Removed PeerObject.h from Makefile.am
  4641. * src/Makefile.am
  4642. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4643. Avoid slow seeding
  4644. * src/PeerInteractionCommand.cc
  4645. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4646. Updated usage for -i option.
  4647. * src/usage_text.h (TEXT_INPUT_FILE)
  4648. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4649. Added INPUT FILE section to man page.
  4650. Escaped fake URLs.
  4651. * doc/aria2c.1.txt
  4652. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4653. Fixed wrong note position for -o option.
  4654. * doc/aria2c.1.txt
  4655. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4656. Fixed compile error without SSL/XML library.
  4657. * src/DefaultBtProgressInfoFile.cc
  4658. * src/DefaultBtProgressInfoFile.h
  4659. * src/FileMetalinkParserState.cc
  4660. * src/RequestGroup.h
  4661. * src/SocketCore.cc
  4662. * src/SocketCore.h
  4663. * src/VerificationMetalinkParserState.cc
  4664. * src/download_helper.h
  4665. * src/main.cc
  4666. * test/DefaultBtProgressInfoFileTest.cc
  4667. * test/DownloadHelperTest.cc
  4668. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4669. Rewritten URI handling functions. They are now provided as a testable
  4670. functions.
  4671. * src/Makefile.am
  4672. * src/RequestGroup.cc
  4673. * src/RequestGroup.h
  4674. * src/download_helper.cc
  4675. * src/download_helper.h
  4676. * src/main.cc
  4677. * test/DownloadHelperTest.cc
  4678. * test/Makefile.am
  4679. * test/input_uris.txt
  4680. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4681. Quickly terminate commands when ctrl-c is pressed.
  4682. * src/DownloadEngine.cc
  4683. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4684. Quickly terminate idle commands when download finished.
  4685. * src/AbstractCommand.cc
  4686. * src/DownloadCommand.cc
  4687. * src/DownloadEngine.cc
  4688. * src/DownloadEngine.h
  4689. * src/SleepCommand.cc
  4690. * src/SleepCommand.h
  4691. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4692. Added the ability to specify output filename and directory in input
  4693. file.
  4694. Additional parameters are added in the following line of URIs
  4695. with proceeding white space(s), 1 parameter in 1 line.
  4696. The parameter names are the same with the command-line option name
  4697. without proceeding "--". Not all the options are available here:
  4698. at the moment, 'dir' and 'out' options are avialable.
  4699. Please note that out option has no effect against Metalink or BitTorrent
  4700. downloads.
  4701. Example input file:
  4702. http://host/foo-1.1.tar.bz2
  4703. out=foo.tar.bz2
  4704. dir=/tmp/downloads
  4705. http://host/thundermonkey-2.0.tar.bz2
  4706. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4707. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4708. thundermonkey-2.0.tar.bz2 is saved as
  4709. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4710. * src/BtPostDownloadHandler.cc
  4711. * src/Metalink2RequestGroup.cc
  4712. * src/Metalink2RequestGroup.h
  4713. * src/MetalinkPostDownloadHandler.cc
  4714. * src/UriListParser.cc
  4715. * src/UriListParser.h
  4716. * src/main.cc
  4717. * test/Metalink2RequestGroupTest.cc
  4718. * test/UriListParserTest.cc
  4719. * test/filelist1.txt
  4720. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4721. Fixed error when SSL library is not found.
  4722. * configure.ac
  4723. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4724. Cross referenced among -s, -C and -j options.
  4725. Updated usage of -C and -s options.
  4726. * src/usage_text.h
  4727. * doc/aria2c.1.txt
  4728. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4729. Fixed bad cast in 32bit platforms.
  4730. * test/DefaultPieceStorageTest.cc
  4731. (DefaultPieceStorageTest::testGetCompletedLength)
  4732. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4733. Fixed unit test fails on 32bit platforms.
  4734. * test/CookieParserTest.cc
  4735. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4736. Show an average download speed in Download results.
  4737. * src/BtFileAllocationEntry.cc
  4738. * src/DefaultPieceStorage.cc
  4739. * src/DownloadContext.cc
  4740. * src/DownloadContext.h
  4741. * src/DownloadResult.h
  4742. * src/RequestGroup.cc
  4743. * src/RequestGroupMan.cc
  4744. * src/StreamFileAllocationEntry.cc
  4745. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4746. Fixed the bug that metalink file is not processed if Content-Type
  4747. field has a paramter.
  4748. * src/HttpResponse.cc
  4749. * src/HttpResponse.h
  4750. * test/HttpResponseTest.cc
  4751. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4752. Removed unused code.
  4753. * src/DefaultBtAnnounce.cc
  4754. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4755. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4756. the value larger than DefaultPieceStorage::getTotalLength() when
  4757. in flight pieces are involved.
  4758. * src/DefaultPieceStorage.cc
  4759. * test/DefaultPieceStorageTest.cc
  4760. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4761. Bump up version number to 1.0.0a.
  4762. * configure.ac
  4763. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4764. Updated configure.ac
  4765. * configure.ac
  4766. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4767. Added usege for proxy.
  4768. * doc/aria2c.1.txt
  4769. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4770. Added usage for --ca-certificate, --certificate, --private-key and
  4771. --check-certificate options.
  4772. * doc/aria2c.1.txt
  4773. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4774. Updated man page
  4775. * doc/aria2c.1.txt
  4776. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4777. Added --no-proxy option. It receives comman separated hostname or
  4778. domains to which proxy should not be used.
  4779. aria2 honors the environment variable no_proxy to override no-proxy
  4780. value in configuration file. The user can override the environment
  4781. variable no_proxy with --no-proxy command-line option.
  4782. * src/AbstractCommand.cc
  4783. * src/OptionHandlerFactory.cc
  4784. * src/option_processing.cc
  4785. * src/prefs.cc
  4786. * src/prefs.h
  4787. * src/usage_text.h
  4788. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4789. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4790. The CA certificates are specified in --ca-certificate option.
  4791. By default, the verification is disabled. Use --check-certificate
  4792. option to enable it.
  4793. * src/HttpRequestCommand.cc
  4794. * src/LibgnutlsTLSContext.cc
  4795. * src/LibgnutlsTLSContext.h
  4796. * src/LibsslTLSContext.cc
  4797. * src/LibsslTLSContext.h
  4798. * src/MultiUrlRequestInfo.cc
  4799. * src/OptionHandlerFactory.cc
  4800. * src/SocketCore.cc
  4801. * src/SocketCore.h
  4802. * src/a2functional.h
  4803. * src/message.h
  4804. * src/option_processing.cc
  4805. * src/prefs.cc
  4806. * src/prefs.h
  4807. * src/usage_text.h
  4808. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4809. Added client certificate authentication for SSL/TLS.
  4810. Currently a private key must be decrypted for use with aria2.
  4811. If a user accidentally gives encrypted file to aria2 then following
  4812. thing happens:
  4813. If encrypted private key is given to aria2, it behaves differently
  4814. depending on the ssl library it uses. If aria2 built with openssl then
  4815. openssl prompts the user for password. If aria2 build with gnutls then
  4816. aria2 exists with error at start up.
  4817. * src/DownloadEngineFactory.cc
  4818. * src/MultiUrlRequestInfo.cc
  4819. * src/OptionHandlerFactory.cc
  4820. * src/option_processing.cc
  4821. * src/prefs.cc
  4822. * src/prefs.h
  4823. * src/usage_text.h
  4824. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4825. Introduced TLSContext that holds TLS related data that can be shared
  4826. with multiple SSL connections.
  4827. * src/DownloadEngineFactory.cc
  4828. * src/LibgnutlsTLSContext.cc
  4829. * src/LibgnutlsTLSContext.h
  4830. * src/LibsslTLSContext.cc
  4831. * src/LibsslTLSContext.h
  4832. * src/Makefile.am
  4833. * src/SocketCore.cc
  4834. * src/SocketCore.h
  4835. * src/TLSContext.h
  4836. * src/message.h
  4837. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4838. Fixed the bug that the DiskWriter of the first FileEntry whose
  4839. `needsFileAllocation' property is false is not created
  4840. even if it shares a piece with next FileEntry which `requested' property
  4841. is true.
  4842. Fixed the bug that zero-length file is not created if pre file
  4843. allocation is not done.
  4844. * src/MultiDiskAdaptor.cc
  4845. * src/MultiDiskAdaptor.h
  4846. * test/MultiDiskAdaptorTest.cc
  4847. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4848. Added the ability to pool proxy connection.
  4849. The conneciton in FTP with proxy-method=GET is not pooled.
  4850. Proxy-Connection header will not be sent when sending CONNECT method.
  4851. * src/DownloadEngine.cc
  4852. * src/DownloadEngine.h
  4853. * src/FtpFinishDownloadCommand.cc
  4854. * src/FtpInitiateConnectionCommand.cc
  4855. * src/FtpNegotiationCommand.cc
  4856. * src/HttpDownloadCommand.cc
  4857. * src/HttpInitiateConnectionCommand.cc
  4858. * src/HttpRequest.cc
  4859. * src/HttpRequest.h
  4860. * src/HttpResponse.cc
  4861. * src/HttpSkipResponseCommand.cc
  4862. * test/HttpRequestTest.cc
  4863. * test/HttpResponseTest.cc
  4864. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4865. Handle date before epoch.
  4866. To create *bad* Time object, call Time::null().
  4867. * src/CookieParser.cc
  4868. * src/FtpConnection.cc
  4869. * src/FtpConnection.h
  4870. * src/FtpNegotiationCommand.cc
  4871. * src/RequestGroup.cc
  4872. * src/TimeA2.cc
  4873. * src/TimeA2.h
  4874. * test/CookieParserTest.cc
  4875. * test/FtpConnectionTest.cc
  4876. * test/TimeTest.cc
  4877. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4878. Added support for following envrionment variables: http_proxy,
  4879. https_proxy, ftp_proxy and all_proxy.
  4880. Each variable is equivalent to the aria2 option whose name is the
  4881. variable name with '_' replaced with '-'.
  4882. They overrides options specified in aria2.conf file.
  4883. The envrionment variables can be overrode using command-line option.
  4884. * src/option_processing.cc
  4885. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4886. Renamed --http-proxy-method as --proxy-method.
  4887. * src/AbstractCommand.cc
  4888. * src/FtpInitiateConnectionCommand.cc
  4889. * src/HttpInitiateConnectionCommand.cc
  4890. * src/OptionHandlerFactory.cc
  4891. * src/option_processing.cc
  4892. * src/prefs.cc
  4893. * src/prefs.h
  4894. * src/usage_text.h
  4895. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4897. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4898. Above 3 options and --http-proxy option can handle proxy in URL format
  4899. like: http://user:passwd@host:port.
  4900. If a proxy requires user/password, they must be specified in a URL.
  4901. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4902. instead.
  4903. * src/AbstractCommand.cc
  4904. * src/AbstractCommand.h
  4905. * src/AbstractProxyRequestCommand.cc
  4906. * src/AbstractProxyRequestCommand.h
  4907. * src/AuthConfigFactory.cc
  4908. * src/AuthConfigFactory.h
  4909. * src/FtpFinishDownloadCommand.cc
  4910. * src/FtpInitiateConnectionCommand.cc
  4911. * src/FtpInitiateConnectionCommand.h
  4912. * src/FtpNegotiationCommand.cc
  4913. * src/FtpTunnelRequestCommand.cc
  4914. * src/FtpTunnelRequestCommand.h
  4915. * src/HttpDownloadCommand.cc
  4916. * src/HttpInitiateConnectionCommand.cc
  4917. * src/HttpInitiateConnectionCommand.h
  4918. * src/HttpProxyRequestCommand.cc
  4919. * src/HttpProxyRequestCommand.h
  4920. * src/HttpRequest.cc
  4921. * src/HttpRequest.h
  4922. * src/HttpRequestCommand.cc
  4923. * src/HttpRequestCommand.h
  4924. * src/HttpSkipResponseCommand.cc
  4925. * src/InitiateConnectionCommand.cc
  4926. * src/InitiateConnectionCommand.h
  4927. * src/OptionHandlerFactory.cc
  4928. * src/OptionHandlerImpl.h
  4929. * src/Request.cc
  4930. * src/option_processing.cc
  4931. * src/prefs.cc
  4932. * src/prefs.h
  4933. * src/usage_text.h
  4934. * test/AuthConfigFactoryTest.cc
  4935. * test/HttpRequestTest.cc
  4936. * test/OptionHandlerTest.cc
  4937. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4938. Execute choking algorithm when unchoked and interested peer is
  4939. disconected.
  4940. * src/DefaultPeerStorage.cc
  4941. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Added testcase for BtNotInterestedMessage from unchoked peer.
  4943. * test/BtNotInterestedMessageTest.cc
  4944. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4945. Execute choking algorithm when BtInterestedMessage arrives from
  4946. unchoked peer.
  4947. * src/BtInterestedMessage.cc
  4948. * src/BtInterestedMessage.h
  4949. * src/DefaultBtMessageFactory.cc
  4950. * test/BtInterestedMessageTest.cc
  4951. * test/MockPeerStorage.h
  4952. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. AuthConfigFactory is now part of DownloadEngine.
  4954. * src/AbstractProxyRequestCommand.cc
  4955. * src/AuthConfigFactory.h
  4956. * src/DownloadEngine.cc
  4957. * src/DownloadEngine.h
  4958. * src/FtpConnection.cc
  4959. * src/FtpConnection.h
  4960. * src/FtpNegotiationCommand.cc
  4961. * src/HttpConnection.cc
  4962. * src/HttpRequest.cc
  4963. * src/HttpRequest.h
  4964. * src/HttpRequestCommand.cc
  4965. * src/HttpResponse.cc
  4966. * src/HttpResponseCommand.cc
  4967. * src/HttpSkipResponseCommand.cc
  4968. * src/MultiUrlRequestInfo.cc
  4969. * src/main.cc
  4970. * test/FtpConnectionTest.cc
  4971. * test/HttpRequestTest.cc
  4972. * test/HttpResponseTest.cc
  4973. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4974. Corrected catched exception type.
  4975. * src/ServerStatMan.cc
  4976. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4977. DNSCache is now part of DownloadEngine.
  4978. * src/DNSCache.h
  4979. * src/DownloadEngine.cc
  4980. * src/DownloadEngine.h
  4981. * src/InitiateConnectionCommand.cc
  4982. * src/MultiUrlRequestInfo.cc
  4983. * test/Makefile.am
  4984. * test/Makefile.in
  4985. * test/SimpleDNSCacheTest.cc
  4986. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4987. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4988. DownloadEngine.
  4989. * src/ActivePeerConnectionCommand.cc
  4990. * src/BtSetup.cc
  4991. * src/CUIDCounter.h
  4992. * src/DHTSetup.cc
  4993. * src/DownloadCommand.cc
  4994. * src/DownloadEngine.cc
  4995. * src/DownloadEngine.h
  4996. * src/DownloadEngineFactory.cc
  4997. * src/FileAllocationDispatcherCommand.cc
  4998. * src/InitiatorMSEHandshakeCommand.cc
  4999. * src/PeerInitiateConnectionCommand.cc
  5000. * src/PeerInteractionCommand.cc
  5001. * src/PeerListenCommand.cc
  5002. * src/RequestGroup.cc
  5003. * src/StreamFileAllocationEntry.cc
  5004. * src/TrackerWatcherCommand.cc
  5005. * src/main.cc
  5006. * test/RequestGroupManTest.cc
  5007. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5008. Implemented commented code in BtSeederStateChoke
  5009. * src/BtSeederStateChoke.cc
  5010. * src/Peer.cc
  5011. * src/Peer.h
  5012. * src/PeerInteractionCommand.cc
  5013. * src/PeerSessionResource.cc
  5014. * src/PeerSessionResource.h
  5015. * test/MockBtMessageDispatcher.h
  5016. * test/PeerSessionResourceTest.cc
  5017. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5019. its object.
  5020. * src/AbstractBtMessage.cc
  5021. * src/ActivePeerConnectionCommand.cc
  5022. * src/ActivePeerConnectionCommand.h
  5023. * src/BtContextAwareCommand.cc
  5024. * src/BtContextAwareCommand.h
  5025. * src/BtExtendedMessage.cc
  5026. * src/BtExtendedMessage.h
  5027. * src/BtInterestedMessage.cc
  5028. * src/BtInterestedMessage.h
  5029. * src/BtNotInterestedMessage.cc
  5030. * src/BtNotInterestedMessage.h
  5031. * src/BtRegistry.cc
  5032. * src/BtRegistry.h
  5033. * src/BtSeederStateChoke.cc
  5034. * src/BtSetup.cc
  5035. * src/DHTGetPeersCommand.cc
  5036. * src/DHTGetPeersCommand.h
  5037. * src/DHTPeerAnnounceEntry.cc
  5038. * src/DHTPeerAnnounceEntry.h
  5039. * src/DHTPeerAnnounceStorage.cc
  5040. * src/DHTPeerAnnounceStorage.h
  5041. * src/DHTPeerLookupTask.cc
  5042. * src/DHTPeerLookupTask.h
  5043. * src/DHTSetup.cc
  5044. * src/DHTSetup.h
  5045. * src/DHTTaskFactory.h
  5046. * src/DHTTaskFactoryImpl.cc
  5047. * src/DHTTaskFactoryImpl.h
  5048. * src/DefaultBtAnnounce.cc
  5049. * src/DefaultBtInteractive.cc
  5050. * src/DefaultBtInteractive.h
  5051. * src/DefaultBtMessageDispatcher.cc
  5052. * src/DefaultBtMessageDispatcher.h
  5053. * src/DefaultBtMessageFactory.cc
  5054. * src/DefaultBtMessageFactory.h
  5055. * src/DefaultBtMessageReceiver.cc
  5056. * src/DefaultBtProgressInfoFile.cc
  5057. * src/DefaultBtProgressInfoFile.h
  5058. * src/DefaultBtRequestFactory.cc
  5059. * src/DefaultBtRequestFactory.h
  5060. * src/DefaultExtensionMessageFactory.cc
  5061. * src/DefaultExtensionMessageFactory.h
  5062. * src/DefaultPeerStorage.cc
  5063. * src/DefaultPeerStorage.h
  5064. * src/DownloadEngine.cc
  5065. * src/DownloadEngine.h
  5066. * src/InitiatorMSEHandshakeCommand.cc
  5067. * src/InitiatorMSEHandshakeCommand.h
  5068. * src/MSEHandshake.cc
  5069. * src/MSEHandshake.h
  5070. * src/Makefile.am
  5071. * src/Makefile.in
  5072. * src/PeerChokeCommand.cc
  5073. * src/PeerChokeCommand.h
  5074. * src/PeerInitiateConnectionCommand.cc
  5075. * src/PeerInitiateConnectionCommand.h
  5076. * src/PeerInteractionCommand.cc
  5077. * src/PeerInteractionCommand.h
  5078. * src/PeerObject.h
  5079. * src/PeerReceiveHandshakeCommand.cc
  5080. * src/PeerReceiveHandshakeCommand.h
  5081. * src/ReceiverMSEHandshakeCommand.cc
  5082. * src/RequestGroup.cc
  5083. * src/RequestGroup.h
  5084. * src/RequestGroupMan.cc
  5085. * src/RequestGroupMan.h
  5086. * src/SeedCheckCommand.cc
  5087. * src/SeedCheckCommand.h
  5088. * src/ShareRatioSeedCriteria.h
  5089. * src/SimpleBtMessage.cc
  5090. * src/TrackerWatcherCommand.cc
  5091. * src/TrackerWatcherCommand.h
  5092. * src/UTPexExtensionMessage.cc
  5093. * src/UTPexExtensionMessage.h
  5094. * test/BtCancelMessageTest.cc
  5095. * test/BtChokeMessageTest.cc
  5096. * test/BtExtendedMessageTest.cc
  5097. * test/BtInterestedMessageTest.cc
  5098. * test/BtNotInterestedMessageTest.cc
  5099. * test/BtPieceMessageTest.cc
  5100. * test/BtPortMessageTest.cc
  5101. * test/BtRegistryTest.cc
  5102. * test/BtRejectMessageTest.cc
  5103. * test/BtRequestMessageTest.cc
  5104. * test/DHTPeerAnnounceEntryTest.cc
  5105. * test/DHTPeerAnnounceStorageTest.cc
  5106. * test/DefaultBtMessageDispatcherTest.cc
  5107. * test/DefaultBtMessageFactoryTest.cc
  5108. * test/DefaultBtProgressInfoFileTest.cc
  5109. * test/DefaultBtRequestFactoryTest.cc
  5110. * test/DefaultExtensionMessageFactoryTest.cc
  5111. * test/MSEHandshakeTest.cc
  5112. * test/MockDHTTaskFactory.h
  5113. * test/ShareRatioSeedCriteriaTest.cc
  5114. * test/UTPexExtensionMessageTest.cc
  5115. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5116. Fixed compiler warning.
  5117. * test/UtilTest.cc
  5118. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5119. Treat Cookie object as session cookie if expiry = 0 is given.
  5120. With this change, you can specify session scoped cookies in an external
  5121. file setting expiry value to 0.
  5122. * src/Cookie.cc
  5123. * src/Cookie.h
  5124. * test/CookieParserTest.cc
  5125. * test/CookieStorageTest.cc
  5126. * test/CookieTest.cc
  5127. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5128. Changed signature of DHTMessageFactory::createResponseMessage().
  5129. Removed unused validateIDMatch.
  5130. * src/DHTMessageFactory.h
  5131. * src/DHTMessageFactoryImpl.cc
  5132. * src/DHTMessageFactoryImpl.h
  5133. * src/DHTMessageTracker.cc
  5134. * test/DHTMessageFactoryImplTest.cc
  5135. * test/MockDHTMessageFactory.h
  5136. Dropped DHT message coming from same ID of localhost.
  5137. * src/DHTMessageReceiver.cc
  5138. Rejected adding node whose ID is the same as localhost's.
  5139. * src/DHTRoutingTable.cc
  5140. * test/BtPortMessageTest.cc
  5141. * test/DHTRoutingTableTest.cc
  5142. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5143. Pool connection when redirection occurs with Content-Length = 0.
  5144. * src/HttpSkipResponseCommand.cc
  5145. * src/HttpSkipResponseCommand.h
  5146. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. Fixed the bug that causes time out when redirection occurs with
  5148. content-length 0.
  5149. * src/HttpResponseCommand.cc
  5150. * src/HttpSkipResponseCommand.cc
  5151. * src/HttpSkipResponseCommand.h
  5152. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5153. Now each status legends is shown only when it appears in Download
  5154. Result. If Download Result has no item, then status legend will not
  5155. be printed.
  5156. * src/RequestGroupMan.cc
  5157. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5158. Removed duplicate creation of OptionHandlers.
  5159. * src/option_processing.cc
  5160. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5161. Fixed the bug that causes segmentation fault when accessing files which
  5162. don't exist or are not included in --select-file option while
  5163. validating chunk checksum.
  5164. * src/MultiDiskAdaptor.cc
  5165. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. Fixed compiler warning.
  5167. * test/UtilTest.cc
  5168. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5170. * src/IteratableChecksumValidator.cc
  5171. * src/IteratableChunkChecksumValidator.cc
  5172. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. * Release 0.16.2
  5174. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. Added Serbian translation. Updated Ukrainian translation.
  5176. Thanks to all translators.
  5177. * po/sr.po
  5178. * po/uk.po
  5179. * po/LINGUAS
  5180. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5181. Bump up version number to 0.16.2
  5182. * configure.ac
  5183. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5184. Added length equality test to operator== to drop a piece message
  5185. whose length does not match to the requested one.
  5186. * src/RequestSlot.cc
  5187. * test/DefaultBtMessageDispatcherTest.cc
  5188. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5190. recieved.
  5191. In this fix, if a request larger than 16KiB length is received, aria2
  5192. disconnects the peer.
  5193. * src/BtConstants.h
  5194. * src/PeerMessageUtil.cc
  5195. * src/PeerMessageUtil.h
  5196. * test/BtRequestMessageTest.cc
  5197. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5198. * Release 0.16.1
  5199. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5200. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5201. * doc/aria2c.1.txt
  5202. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5203. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5204. Updated French, Simplified Chinese and Japanese translations.
  5205. Thanks to all translators.
  5206. en@quot and en@boldquot are also added.
  5207. * po/LINGUAS
  5208. * po/fr.po
  5209. * po/ja.po
  5210. * po/uk.po
  5211. * po/vi.po
  5212. * po/zh_CN.po
  5213. * po/zh_TW.po
  5214. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5215. Bump up version number to 0.16.1.
  5216. * configure.ac
  5217. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5218. Updated README.
  5219. * README
  5220. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5221. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5222. not to replace '--' with em dash character.
  5223. * doc/aria2c.1.txt
  5224. * doc/makeman
  5225. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5226. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5227. every SEC seconds.
  5228. * src/DownloadEngineFactory.cc
  5229. * src/OptionHandlerFactory.cc
  5230. * src/option_processing.cc
  5231. * src/usage_text.h
  5232. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5233. Fixed compile warning on linux-amd64
  5234. * src/FtpConnection.cc
  5235. * src/IteratableChunkChecksumValidator.cc
  5236. * src/MultiDiskAdaptor.cc
  5237. Fixed the bug that unit test fails on linux-amd64
  5238. * test/UtilTest.cc
  5239. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. Added --dht-file-path option to change the path to dht.dat, which is a
  5241. serialized DHT routing table.
  5242. * src/OptionHandlerFactory.cc
  5243. * src/option_processing.cc
  5244. * src/usage_text.h
  5245. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5246. Fixed possible underflow.
  5247. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5248. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Fixed the bug that last character in URI is not encoded.
  5250. * src/Request.cc
  5251. * test/RequestTest.cc
  5252. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5253. Fixed the bug that referer header field contains fragment.
  5254. Now Request class removes fragment part of URI and encodes it
  5255. in Request::setUri() and setReferer().
  5256. * src/Request.h
  5257. * src/Request.cc
  5258. * test/RequestTest.cc
  5259. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5260. Added missing m4 macros.
  5261. * m4/cppunit.m4
  5262. * m4/libgcrypt.m4
  5263. * m4/libgnutls-extra.m4
  5264. * m4/libgnutls.m4
  5265. * m4/libxml2.m4
  5266. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Fixed compile error with gcc-4.4(snapshot)
  5268. * src/File.cc
  5269. * src/FtpConnection.cc
  5270. * src/OptionHandlerImpl.h
  5271. * src/Util.cc
  5272. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5273. Removed assert()
  5274. * src/SocketBuffer.cc (SocketBuffer::send)
  5275. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5276. Changed the type of _numNewConnection to unsigned int.
  5277. * src/ActivePeerConnectionCommand.cc
  5278. * src/ActivePeerConnectionCommand.h
  5279. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5280. * Release 0.16.0
  5281. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. Updated doc
  5283. * README
  5284. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5285. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5286. translations. Thanks to all translators.
  5287. * po/bg.po
  5288. * po/de.po
  5289. * po/fr.po
  5290. * po/ja.po
  5291. * po/zh_CN.po
  5292. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5293. Bump up version number to 0.16.0.
  5294. * configure.ac
  5295. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5296. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5297. int32_t.
  5298. Changed the type of count to int32_t.
  5299. * src/Metalink2RequestGroup.cc
  5300. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5301. Added test for Time::elapsed(time_t).
  5302. * test/TimeTest.cc
  5303. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5304. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5305. Util::difftv() should be used instead.
  5306. * src/TimeA2.cc
  5307. * src/TimeA2.h
  5308. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5309. Made socket for dht connections non-blocking
  5310. * src/DHTAbstractMessage.cc
  5311. * src/DHTAbstractMessage.h
  5312. * src/DHTConnection.h
  5313. * src/DHTConnectionImpl.cc
  5314. * src/DHTConnectionImpl.h
  5315. * src/DHTMessage.h
  5316. * src/DHTMessageDispatcherImpl.cc
  5317. * src/DHTMessageDispatcherImpl.h
  5318. * src/DHTUnknownMessage.cc
  5319. * src/DHTUnknownMessage.h
  5320. * src/SocketCore.cc
  5321. * src/SocketCore.h
  5322. * test/MockDHTMessage.h
  5323. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5324. Changed the type of offset to int.
  5325. * src/ParameterizedStringParser.cc
  5326. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5327. Made getAsInt() return int32_t
  5328. * src/Option.h
  5329. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5331. build.
  5332. * configure.ac
  5333. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5334. Use sqlite3_open if sqlite3_open_v2 is not available.
  5335. * src/Sqlite3MozCookieParser.cc
  5336. * src/Sqlite3MozCookieParser.h
  5337. * m4/sqlite3.m4
  5338. * test/Sqlite3MozCookieParserTest.cc
  5339. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5340. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5341. * src/BtPieceMessage.cc
  5342. * src/DHTPeerAnnounceStorage.cc
  5343. * src/DefaultPieceStorage.cc
  5344. * src/DownloadCommand.cc
  5345. * src/DownloadEngine.cc
  5346. * src/FtpConnection.cc
  5347. * src/PeerConnection.cc
  5348. * src/PeerMessageUtil.cc
  5349. * src/RequestGroup.cc
  5350. * src/RequestGroupMan.cc
  5351. * src/SimpleBtMessage.cc
  5352. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5353. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5354. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5355. * src/AbstractDiskWriter.cc
  5356. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5357. Don't set Request::supportsPersistentConnection() in HttpConnection
  5358. since this code is also used in AbstractProxyResponseCommand.
  5359. Moved those code to HttpResponse.
  5360. * src/HttpResponse.cc
  5361. * src/HttpResponse.h
  5362. * src/HttpConnection.cc
  5363. * src/HttpConnection.h
  5364. * src/HttpResponseCommand.cc
  5365. * test/HttpResponseTest.cc
  5366. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5367. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5368. The configuration is minimum: no torrent, no metalink, so there may be
  5369. other compile error on their code.
  5370. * src/a2netcompat.h
  5371. * src/File.cc
  5372. * src/File.h
  5373. * src/SocketCore.cc
  5374. * src/SocketCore.h
  5375. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5376. Made a socket of incoming peer non-blocking.
  5377. * src/PeerListenCommand.cc
  5378. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5380. whole message data is not sent in one send() call.
  5381. * src/BtPieceMessage.cc
  5382. * src/BtPieceMessage.h
  5383. * src/PeerConnection.cc
  5384. * src/PeerConnection.h
  5385. * src/SimpleBtMessage.cc
  5386. * src/SimpleBtMessage.h
  5387. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5388. Fixed the bug that aria2 downloads faster than max-download-limit when
  5389. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5390. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5391. , instead of sum of them.
  5392. * src/ActivePeerConnectionCommand.cc
  5393. * src/DefaultBtInteractive.cc
  5394. * src/DownloadCommand.cc
  5395. * src/PeerInteractionCommand.cc
  5396. * src/PeerReceiveHandshakeCommand.cc
  5397. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5398. Fixed the bug that HTTPS download fails.
  5399. * src/AbstractCommand.cc
  5400. * src/AbstractCommand.h
  5401. * src/DownloadCommand.cc
  5402. * src/FtpConnection.cc
  5403. * src/HttpConnection.cc
  5404. * src/HttpRequestCommand.cc
  5405. * src/HttpResponseCommand.cc
  5406. * src/HttpSkipResponseCommand.cc
  5407. * src/MSEHandshake.cc
  5408. * src/PeerConnection.cc
  5409. * src/SocketCore.cc
  5410. * src/SocketCore.h
  5411. Fixed the bug that aria2 doesn't download whole content body and cannot
  5412. reuse connection if chunked transfer encoding and gzip content encoding
  5413. are set.
  5414. * src/DownloadCommand.cc
  5415. * src/HttpSkipResponseCommand.cc
  5416. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Updated man page.
  5418. * doc/aria2c.1.txt
  5419. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. When error occurred while aria2 was parsing an .aria2.conf file, print
  5421. the usage of the option that caused error.
  5422. * src/option_processing.cc
  5423. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5424. Fixed compile error on OptionHandlerException
  5425. * src/Makefile.am
  5426. * src/OptionHandlerException.cc
  5427. * src/OptionHandlerException.h
  5428. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5429. Moved message of the error to OptionHandlerException.h
  5430. * src/NameMatchOptionHandler.h
  5431. * src/OptionHandlerException.h
  5432. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5433. When error occurs while aria2 is parsing an command-line option, print
  5434. the usage of the option.
  5435. * src/Makefile.am
  5436. * src/NameMatchOptionHandler.h
  5437. * src/OptionHandlerException.h
  5438. * src/option_processing.cc
  5439. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5440. Reverted previous change.
  5441. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5442. username is not in URI.
  5443. * src/HttpRequest.cc
  5444. * src/Request.cc
  5445. * test/HttpRequestTest.cc
  5446. * test/RequestTest.cc
  5447. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5448. Now colon is required for username and password in FTP URL, like:
  5449. ftp://username:password@host.
  5450. If colon is not there, aria2 don't parse it as a username. For example,
  5451. aria2 don't retrieve username from ftp://username@host.
  5452. This fix was made in order to login FTP server via non-transparent ftp
  5453. proxy.
  5454. * src/Request.cc
  5455. * test/RequestTest.cc
  5456. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5457. Use netrc for HTTP.
  5458. Now FTP user/password is sent in Authorization header when
  5459. --ftp-via-http-proxy=get is given.
  5460. * src/AuthConfigFactory.cc
  5461. * src/HttpRequest.cc
  5462. * src/HttpRequest.h
  5463. * src/NetrcAuthResolver.cc
  5464. * src/NetrcAuthResolver.h
  5465. * src/OptionHandlerFactory.cc
  5466. * src/option_processing.cc
  5467. * src/prefs.cc
  5468. * src/prefs.h
  5469. * test/AuthConfigFactoryTest.cc
  5470. * test/HttpRequestTest.cc
  5471. * test/NetrcAuthResolverTest.cc
  5472. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5473. Issue PWD command first and get working directory and use it as a prefix
  5474. for CWD command.
  5475. * src/DownloadEngine.cc
  5476. * src/DownloadEngine.h
  5477. * src/FtpConnection.cc
  5478. * src/FtpConnection.h
  5479. * src/FtpFinishDownloadCommand.cc
  5480. * src/FtpInitiateConnectionCommand.cc
  5481. * src/FtpNegotiationCommand.cc
  5482. * src/FtpNegotiationCommand.h
  5483. * test/FtpConnectionTest.cc
  5484. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5485. Removed default user/pass for FTP user/pass, since it should not have
  5486. precedence over netrc configuration by default.
  5487. * src/OptionHandlerFactory.cc
  5488. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Added debug log for socket event.
  5490. * src/AbstractCommand.cc
  5491. * src/PeerAbstractCommand.cc
  5492. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5493. Log microseconds.
  5494. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5495. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Replaced HelpItem.cc with OptionHandler.cc.
  5497. * po/POTFILES.in
  5498. Updated po files with 'make update-po'
  5499. * po/aria2c.pot
  5500. * po/*.po
  5501. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5502. Removed possible values from the text.
  5503. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5504. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5505. Removed unused preferences:
  5506. PREF_NO_PREALLOCATION
  5507. PREF_STDOUT_LOG
  5508. PREF_TRACKER_MAX_TRIES
  5509. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5510. PREF_MIN_SEGMENT_SIZE
  5511. * src/option_processing.cc
  5512. * src/prefs.cc
  5513. * src/prefs.h
  5514. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5515. Integrated HelpItem into OptionParser to ease the workload for adding
  5516. new options. Removed default value from usage text.
  5517. * src/HelpItem.cc: Removed.
  5518. * src/HelpItem.h: Removed.
  5519. * src/HelpItemFactory.cc: Removed.
  5520. * src/HelpItemFactory.h: Removed.
  5521. * src/Makefile.am
  5522. * src/Makefile.in
  5523. * src/NameMatchOptionHandler.h
  5524. * src/OptionHandler.cc
  5525. * src/OptionHandler.h
  5526. * src/OptionHandlerFactory.cc
  5527. * src/OptionHandlerImpl.h
  5528. * src/OptionParser.cc
  5529. * src/OptionParser.h
  5530. * src/TagContainer.cc: Removed.
  5531. * src/TagContainer.h: Removed.
  5532. * src/TaggedItem.cc: Removed.
  5533. * src/TaggedItem.h: Removed.
  5534. * src/main.cc
  5535. * src/option_processing.cc
  5536. * src/usage_text.h
  5537. * src/version_usage.cc
  5538. * test/HelpItemTest.cc: Removed.
  5539. * test/Makefile.am
  5540. * test/Makefile.in
  5541. * test/OptionHandlerTest.cc
  5542. * test/OptionParserTest.cc
  5543. * test/TagContainerTest.cc: Removed.
  5544. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5545. Moved `TransferStat stat = ...' to inside the `if' clause.
  5546. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5547. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5548. Fixed the bug that a block in a piece is requested when same block is
  5549. already requested to the same peer in end game mode.
  5550. * src/BtRequestFactory.h
  5551. * src/DefaultBtInteractive.cc
  5552. * src/DefaultBtRequestFactory.cc
  5553. * src/DefaultBtRequestFactory.h
  5554. * src/DefaultPieceStorage.cc
  5555. * src/DefaultPieceStorage.h
  5556. * src/PieceStorage.h
  5557. * src/UnknownLengthPieceStorage.cc
  5558. * src/UnknownLengthPieceStorage.h
  5559. * test/DefaultBtRequestFactoryTest.cc
  5560. * test/DefaultPieceStorageTest.cc
  5561. * test/MockBtRequestFactory.h
  5562. * test/MockPieceStorage.h
  5563. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5564. Removed _uploadLength and _downloadLength from PeerSessionResource
  5565. and use PeerStat::_sessionUploadLength and
  5566. PeerStat::_sessionDownloadLength.
  5567. * src/PeerSessionResource.cc
  5568. * src/PeerSessionResource.h
  5569. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5570. Fixed the bug that prefixLength of split bucket which doesn't include
  5571. local node ID is incremented.
  5572. * src/DHTBucket.cc
  5573. * src/DHTBucket.h
  5574. * test/DHTBucketTest.cc
  5575. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5576. Added cookies.sqlite to EXTRA_DIST
  5577. * test/Makefile.am
  5578. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5579. Added Turkish translation. Updated French, German, Russian and
  5580. Simplified Chinese translations. Thanks to all translators.
  5581. * po/LINGUAS
  5582. * po/de.po
  5583. * po/fr.po
  5584. * po/ru.po
  5585. * po/tr.po
  5586. * po/zh_CN.po
  5587. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Added deliminating text to the beginning of the log so that one can find
  5589. where the log starts easily.
  5590. * src/main.cc
  5591. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5592. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5593. to fix compile error when async DNS is not enabled by configuration.
  5594. * src/AbstractCommand.cc
  5595. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5596. If establishing conneciton to a server is failed, then mark error on
  5597. its ServerStat.
  5598. Added the cause of error to log when error event occurred.
  5599. Moved message string to message.h for translation.
  5600. * src/AbstractCommand.cc
  5601. * src/AbstractCommand.h
  5602. * src/FtpNegotiationCommand.cc
  5603. * src/HttpRequestCommand.cc
  5604. * src/PeerAbstractCommand.cc
  5605. * src/message.h
  5606. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5607. Added the function to get error message from socket.
  5608. * src/SocketCore.cc
  5609. * src/SocketCore.h
  5610. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5611. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5612. * src/RequestGroupMan.cc
  5613. * src/RequestGroupMan.h
  5614. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5615. If error event is received in epoll, then abort download immediately.
  5616. * src/AbstractCommand.cc
  5617. * src/Command.cc
  5618. * src/Command.h
  5619. * src/DownloadEngine.cc
  5620. * src/PeerAbstractCommand.cc
  5621. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5622. Added usage message for --uri-selector, --server-stat-of,
  5623. --server-stat-in, --server-stat-timeout options.
  5624. * src/HelpItemFactory.cc
  5625. * src/usage_text.h
  5626. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5627. Added upper limit of FTP response buffer. The current implementation
  5628. uses 4096bytes as a limit.
  5629. * src/FtpConnection.cc
  5630. * src/FtpConnection.h
  5631. * test/FtpConnectionTest.cc
  5632. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5633. Use non-blocking socket for TCP communication to avoid possible
  5634. blocking due to buffer full.
  5635. * src/AbstractProxyRequestCommand.cc
  5636. * src/FtpConnection.cc
  5637. * src/FtpConnection.h
  5638. * src/FtpNegotiationCommand.cc
  5639. * src/FtpNegotiationCommand.h
  5640. * src/HttpConnection.cc
  5641. * src/HttpConnection.h
  5642. * src/HttpRequestCommand.cc
  5643. * src/InitiatorMSEHandshakeCommand.cc
  5644. * src/InitiatorMSEHandshakeCommand.h
  5645. * src/MSEHandshake.cc
  5646. * src/MSEHandshake.h
  5647. * src/Makefile.am
  5648. * src/PeerConnection.cc
  5649. * src/PeerConnection.h
  5650. * src/PeerInteractionCommand.cc
  5651. * src/PeerListenCommand.cc
  5652. * src/ReceiverMSEHandshakeCommand.cc
  5653. * src/ReceiverMSEHandshakeCommand.h
  5654. * src/SocketBuffer.cc
  5655. * src/SocketBuffer.h
  5656. * src/SocketCore.cc
  5657. * src/SocketCore.h
  5658. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Call setStatusRealtime() in constructor.
  5660. * src/RealtimeCommand.cc
  5661. * src/RealtimeCommand.h
  5662. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Call Download::setNoWait(true) to execute newly created command without
  5664. a pause.
  5665. * src/AbstractCommand.cc
  5666. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5667. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5668. found' error from HTTP/FTP server NUM times without getting single
  5669. bytes of data, then force the download to fail.
  5670. Basically aria2 tris all URIs available. So if long list of URIs are
  5671. specified in Metalink, then aria2 will take a long time to fail
  5672. eventually if all URIs are outdated. This option eases this situation
  5673. to limit the number of servers to try.
  5674. * src/FtpNegotiationCommand.cc
  5675. * src/HelpItemFactory.cc
  5676. * src/HttpResponseCommand.cc
  5677. * src/OptionHandlerFactory.cc
  5678. * src/PeerStat.h
  5679. * src/RequestGroup.cc
  5680. * src/RequestGroup.h
  5681. * src/SegmentMan.cc
  5682. * src/SegmentMan.h
  5683. * src/option_processing.cc
  5684. * src/prefs.cc
  5685. * src/prefs.h
  5686. * src/usage_text.h
  5687. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5688. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5689. response even if more than one response is in it.
  5690. * src/FtpConnection.cc
  5691. * src/FtpConnection.h
  5692. * test/FtpConnectionTest.cc
  5693. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5694. Merged from stable-0.15
  5695. * m4/libcares.m4
  5696. Use pkg-config
  5697. * m4/sqlite3.m4
  5698. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5699. Removed unnecessary if statement.
  5700. * src/DefaultPieceStorage.cc (initPieceStorage)
  5701. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5702. Added --connect-timeout option to specify connect timeout in seconds.
  5703. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5704. connecting to BitTorrent peer is not controlled by this option.
  5705. * src/AbstractProxyRequestCommand.cc
  5706. * src/FtpNegotiationCommand.cc
  5707. * src/HelpItemFactory.cc
  5708. * src/HttpRequestCommand.cc
  5709. * src/OptionHandlerFactory.cc
  5710. * src/option_processing.cc
  5711. * src/prefs.cc
  5712. * src/prefs.h
  5713. * src/usage_text.h
  5714. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5715. Added help message for -R option.
  5716. * src/HelpItemFactory.cc
  5717. * src/usage_text.h
  5718. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5719. Added the message that the time is in local time zone.
  5720. * src/RequestGroup.cc
  5721. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Implemented the ability to get timestamp from remote FTP server using
  5723. MDTM command described in RFC3659.
  5724. * src/FtpConnection.cc
  5725. * src/FtpConnection.h
  5726. * src/FtpNegotiationCommand.cc
  5727. * src/FtpNegotiationCommand.h
  5728. * test/FtpConnectionTest.cc
  5729. * test/Makefile.am
  5730. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Implemented the ability to get timestamp from remote HTTP server and
  5732. apply it to local file. To enable this feature, --remote-time option
  5733. is added. No usage text has been written yet.
  5734. If several servers returns difference timestamp, then aria2 uses latest
  5735. one.
  5736. * src/CopyDiskAdaptor.cc
  5737. * src/CopyDiskAdaptor.h
  5738. * src/DirectDiskAdaptor.cc
  5739. * src/DirectDiskAdaptor.h
  5740. * src/DiskAdaptor.h
  5741. * src/File.cc
  5742. * src/File.h
  5743. * src/HttpHeader.cc
  5744. * src/HttpHeader.h
  5745. * src/HttpResponse.cc
  5746. * src/HttpResponse.h
  5747. * src/HttpResponseCommand.cc
  5748. * src/HttpResponseCommand.h
  5749. * src/MultiDiskAdaptor.cc
  5750. * src/MultiDiskAdaptor.h
  5751. * src/OptionHandlerFactory.cc
  5752. * src/RequestGroup.cc
  5753. * src/RequestGroup.h
  5754. * src/RequestGroupMan.cc
  5755. * src/option_processing.cc
  5756. * src/prefs.cc
  5757. * src/prefs.h
  5758. * test/CopyDiskAdaptorTest.cc
  5759. * test/FileTest.cc
  5760. * test/Makefile.am
  5761. * test/Makefile.in
  5762. * test/MultiDiskAdaptorTest.cc
  5763. * test/TestUtil.cc
  5764. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5765. Fixed the bug that DiskWriterEntry is not created when its
  5766. FileEntry.isRequested() is false and it doesn't share a piece with
  5767. other FileEntries that are requested. This bug causes segmentation fault
  5768. in the end.
  5769. * src/MultiDiskAdaptor.cc
  5770. * src/MultiDiskAdaptor.h
  5771. * src/MultiFileAllocationIterator.cc
  5772. * test/MultiDiskAdaptorTest.cc
  5773. * test/MultiFileAllocationIteratorTest.cc
  5774. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5775. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5776. called if the number of file entries are greater than max open files.
  5777. * src/AbstractSingleDiskAdaptor.cc
  5778. * src/AbstractSingleDiskAdaptor.h
  5779. * src/DiskAdaptor.h
  5780. * src/MultiDiskAdaptor.cc
  5781. * src/MultiDiskAdaptor.h
  5782. * test/MultiDiskAdaptorTest.cc
  5783. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Added a constuctor that receives struct timeval.
  5785. Added operator<.
  5786. * src/TimeA2.cc
  5787. * src/TimeA2.h
  5788. * test/TimeTest.cc
  5789. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5790. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5791. * src/CookieParser.cc
  5792. * test/CookieParserTest.cc
  5793. * test/HttpResponseTest.cc
  5794. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5795. Implmented the functions to parse date.
  5796. * src/TimeA2.cc
  5797. * src/TimeA2.h
  5798. * test/TimeTest.cc
  5799. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5800. Added "Firefox3 Cookie" feature to FeatureConfig
  5801. * src/FeatureConfig.cc
  5802. * src/FeatureConfig.h
  5803. * test/FeatureConfigTest.cc
  5804. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Bump up version number to 0.16.0b
  5806. * configure.ac
  5807. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Use pkg-config if is is available.
  5809. * m4/openssl.m4
  5810. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5811. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5812. * src/BtAnnounce.h
  5813. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. If an error occurred with a URI, remove identical URI from remaining
  5815. URI list because it is likely that same error occurred in the end and it
  5816. is waste of time.
  5817. * src/AbstractCommand.cc
  5818. * src/RequestGroup.cc
  5819. * src/RequestGroup.h
  5820. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Removed wrong comment.
  5822. * src/DefaultPeerStorage.cc
  5823. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5825. Added return value of getpid() to argument of srand() to achieve more
  5826. randomized value.
  5827. * src/SimpleRandomizer.cc
  5828. * src/SimpleRandomizer.h
  5829. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Contact tracker frequently when the number of connections are 0 and
  5831. download is not finished yet.
  5832. * src/ActivePeerConnectionCommand.cc
  5833. * src/BtAnnounce.h
  5834. * src/DefaultBtAnnounce.cc
  5835. * src/DefaultBtAnnounce.h
  5836. * test/MockBtAnnounce.h
  5837. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5838. Moved threshold values to UTPexExtensionMessage.
  5839. * src/DefaultBtInteractive.cc
  5840. * src/Peer.cc
  5841. * src/Peer.h
  5842. * src/UTPexExtensionMessage.cc
  5843. * src/UTPexExtensionMessage.h
  5844. * test/UTPexExtensionMessageTest.cc
  5845. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5846. Added _incoming member to Peer class and made it true if the peer
  5847. initiated connection. Don't add those peer to UTPex message.
  5848. If extended handshake is received, assign _incoming to false.
  5849. * src/DefaultBtInteractive.cc
  5850. * src/HandshakeExtensionMessage.cc
  5851. * src/Peer.cc
  5852. * src/Peer.h
  5853. * src/PeerListenCommand.cc
  5854. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5855. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5856. Encoding Decoder. Removed size threshold for turning off on the fly
  5857. inflation because resulting file may or may not be inflated depending
  5858. on the file size and I think it is not expected by users.
  5859. This change fixes segmentation fault when Metalink file contains gzipped
  5860. file and its filesize is provided.
  5861. * src/HttpResponseCommand.cc
  5862. * src/HttpResponseCommand.h
  5863. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5864. Made Cookie immutable.
  5865. * src/Cookie.cc
  5866. * src/Cookie.h
  5867. * src/CookieParser.cc
  5868. * src/CookieParser.h
  5869. * src/CookieStorage.cc
  5870. * test/CookieParserTest.cc
  5871. * test/CookieStorageTest.cc
  5872. * test/NsCookieParserTest.cc
  5873. * test/Sqlite3MozCookieParserTest.cc
  5874. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5875. Removed CookieBox, CookieBoxFactory.
  5876. * src/CookieBox.cc
  5877. * src/CookieBox.h
  5878. * src/CookieBoxFactory.cc
  5879. * src/CookieBoxFactory.h
  5880. * src/Makefile.am
  5881. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5882. Use CookieStorage class instead of CookieBox class.
  5883. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5884. * src/AbstractProxyRequestCommand.cc
  5885. * src/CookieStorage.cc
  5886. * src/DownloadEngine.cc
  5887. * src/DownloadEngine.h
  5888. * src/HttpConnection.cc
  5889. * src/HttpConnection.h
  5890. * src/HttpRequest.cc
  5891. * src/HttpRequest.h
  5892. * src/HttpRequestCommand.cc
  5893. * src/HttpResponse.cc
  5894. * src/HttpResponseCommand.cc
  5895. * src/HttpSkipResponseCommand.cc
  5896. * src/Makefile.am
  5897. * src/MultiUrlRequestInfo.cc
  5898. * src/Request.cc
  5899. * src/Request.h
  5900. * src/main.cc
  5901. * test/AllTest.cc
  5902. * test/CookieStorageTest.cc
  5903. * test/CookieTest.cc
  5904. * test/HttpRequestTest.cc
  5905. * test/HttpResponseTest.cc
  5906. * test/Makefile.am
  5907. * test/NsCookieParserTest.cc
  5908. * test/Sqlite3MozCookieParserTest.cc
  5909. * test/nscookietest.txt
  5910. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5911. Updated
  5912. * test/Cookies.sqlite
  5913. * test/nscookietest.txt
  5914. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5915. Added tests for CookieStorage::load()
  5916. * test/CookieStorageTest.cc
  5917. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5918. Added CookieStorage class which is based on RFC2109 and manages cookies
  5919. more strictly than CookieBox and CookieBoxFactory class.
  5920. * src/CookieStorage.cc
  5921. * src/CookieStorage.h
  5922. * src/Cookie.cc
  5923. * src/Cookie.h
  5924. * test/CookieStorageTest.cc
  5925. * test/CookieTest.cc
  5926. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5927. Fixed the bug that commands are created more than the number of pieces.
  5928. * src/RequestGroup.cc
  5929. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Fixed infinite loop bug in FTP when SIZE command failed.
  5931. * src/FtpNegotiationCommand.cc
  5932. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5933. Removed DirectDiskAdaptorTest.h
  5934. * test/Makefile.am
  5935. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. Fixed chunk checksum validation cannot detect trailing garbage data.
  5937. BUG#2074141
  5938. * src/AbstractSingleDiskAdaptor.cc
  5939. * src/AbstractSingleDiskAdaptor.h
  5940. * src/CheckIntegrityEntry.cc
  5941. * src/CheckIntegrityEntry.h
  5942. * src/DiskAdaptor.h
  5943. * src/MultiDiskAdaptor.cc
  5944. * src/MultiDiskAdaptor.h
  5945. * src/RequestGroup.cc
  5946. * test/DirectDiskAdaptorTest.cc
  5947. * test/MultiDiskAdaptorTest.cc
  5948. * test/TestUtil.cc
  5949. * test/TestUtil.h
  5950. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Bump up version number of dht.dat file to 3. In version 3 format, time
  5952. is stored in 64bit, network byte order.
  5953. New build can load old format(version 2) but it saves the file in new
  5954. format. It means once you used new build, your dht.dat becomes
  5955. incompatible with older build.
  5956. * src/DHTRoutingTableDeserializer.cc
  5957. * src/DHTRoutingTableSerializer.cc
  5958. * test/DHTRoutingTableSerializerTest.cc
  5959. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5960. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5961. * test/Makefile.am
  5962. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5963. Bump up version number of .aria2 control file to 0001.
  5964. New aria2 can still load version 0000 file but it saves the file in
  5965. version 0001 format. It means that new aria2 can resume download
  5966. started by old aria2 but the opposite is not true.
  5967. * src/DefaultBtProgressInfoFile.cc
  5968. * src/DefaultBtProgressInfoFile.h
  5969. * test/DefaultBtProgressInfoFileTest.cc
  5970. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5971. Added ntoh64 and hton64 as inline functions.
  5972. * src/Util.cc
  5973. * test/UtilTest.cc
  5974. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5975. Added sqlite3 depenency and Firefox3 cookie support.
  5976. * README
  5977. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5978. State that firefox3 cookie is supported explicitly in the usage.
  5979. * src/usage_text.h
  5980. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5981. Externalized message.
  5982. * src/RequestGroupMan.cc
  5983. * src/message.h
  5984. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Save temporary file first and rename to the destination on success.
  5986. Added test cases.
  5987. * src/RequestGroupMan.cc
  5988. * test/RequestGroupManTest.cc
  5989. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5990. Fixed the bug that the number of connected peer is exceeding the limit
  5991. (55 by default) in seeding mode.
  5992. Multiplied 0.8 to _maxUploadSpeedLimit.
  5993. * src/ActivePeerConnectionCommand.cc
  5994. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. Clear table item.
  5996. * src/Dictionary.cc
  5997. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5998. Fixed error handling of lseek.
  5999. * src/AbstractDiskWriter.cc
  6000. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6001. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6002. style cookie file.
  6003. * src/usage_text.h
  6004. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6006. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6007. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6008. * src/Util.cc
  6009. * src/Util.h
  6010. * src/CookieParser.cc
  6011. * test/UtilTest.cc
  6012. * test/CookieParserTest.cc
  6013. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Separate the implementation to load old mozilla format of cookie to
  6015. NsCookieParser class.
  6016. * src/CookieBoxFactory.cc
  6017. * src/CookieBoxFactory.h
  6018. * src/NsCookieParser.cc
  6019. * src/NsCookieParser.h
  6020. * test/NsCookieParserTest.cc
  6021. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6022. Made parse() const
  6023. * src/Sqlite3MozCookieParser.cc
  6024. * src/Sqlite3MozCookieParser.h
  6025. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6026. Added firefox3 cookie support based on the patch submitted by
  6027. tizianomueller.
  6028. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6029. this functionality.
  6030. * configure.ac
  6031. * m4/sqlite3.m4
  6032. * src/CookieBoxFactory.cc
  6033. * src/CookieBoxFactory.h
  6034. * src/Makefile.am
  6035. * src/Makefile.in
  6036. * src/Sqlite3MozCookieParser.cc
  6037. * src/Sqlite3MozCookieParser.h
  6038. * src/main.cc
  6039. * test/CookieBoxFactoryTest.cc
  6040. * test/Makefile.am
  6041. * test/Makefile.in
  6042. * test/Sqlite3MozCookieParserTest.cc
  6043. * test/badcookies.sqlite
  6044. * test/cookies.sqlite
  6045. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6046. Added Danish and Greek translations.
  6047. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6048. Great thanks to all translators.
  6049. * po/LINGUAS
  6050. * po/el.po
  6051. * po/da.po
  6052. * po/es.po
  6053. * po/ca.po
  6054. * po/nn.po
  6055. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Fixed man page: --follow-bittorrent should be --follow-torrent
  6057. * doc/aria2c.1.txt
  6058. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6059. Fixed: numCommand is less than the value specified in -C option.
  6060. * src/RequestGroup.cc
  6061. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. Fixed occasional assertion failure in PieceSegment.
  6063. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6064. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6065. creation of duplicate segments and one of the segment was finished then
  6066. assertion failure was caused.
  6067. * src/SegmentMan.cc
  6068. * test/SegmentManTest.cc
  6069. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6070. Added options to load/save the server's performance/status to a file
  6071. and the timeout to drop their data.
  6072. --server-stat-of=FILE specifies the file to which performance data
  6073. is saved.
  6074. --server-stat-if=FILE specifies the file to read previously saved
  6075. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6076. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6077. TIMEOUT is specified in seconds and the default value is 24hours.
  6078. * src/MultiUrlRequestInfo.cc
  6079. * src/OptionHandlerFactory.cc
  6080. * src/RequestGroupMan.cc
  6081. * src/RequestGroupMan.h
  6082. * src/ServerStatMan.cc
  6083. * src/ServerStatMan.h
  6084. * src/option_processing.cc
  6085. * src/prefs.cc
  6086. * src/prefs.h
  6087. * test/ServerStatManTest.cc
  6088. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6090. * src/ServerStatMan.cc
  6091. * src/ServerStatMan.h
  6092. * test/ServerStatManTest.cc
  6093. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6094. Implemented ServerStatMan::load(...) function and its test case.
  6095. * src/ServerStat.cc
  6096. * src/ServerStat.h
  6097. * src/ServerStatMan.cc
  6098. * test/ServerStatManTest.cc
  6099. * test/ServerStatTest.cc
  6100. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6101. Use time_t instead of int32_t. Use int64_t where milli second is
  6102. expected.
  6103. * src/TimeA2.cc
  6104. * src/TimeA2.h
  6105. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6106. Implemented ServerStatMan::save(...) function and its test case.
  6107. * src/ServerStat.cc
  6108. * src/ServerStat.h
  6109. * src/ServerStatMan.cc
  6110. * src/ServerStatMan.h
  6111. * test/ServerStatManTest.cc
  6112. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6113. Now aria2 uses name attribute in Metalink as local filename in
  6114. BitTorrent downloads. BUG#2033999
  6115. * src/BtContext.h
  6116. * src/BtDependency.cc
  6117. * src/DefaultBtContext.cc
  6118. * src/DefaultBtContext.h
  6119. * src/SingleFileDownloadContext.cc
  6120. * src/SingleFileDownloadContext.h
  6121. * test/BtDependencyTest.cc
  6122. * test/DefaultBtContextTest.cc
  6123. * test/MockBtContext.h
  6124. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6125. Added AC_C_BIGENDIAN
  6126. * src/configure.ac
  6127. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. Limited numCommand less than or equal to the number of piece.
  6129. * src/RequestGroup.cc
  6130. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6131. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6132. directive.
  6133. * test/DefaultPieceStorageTest.cc
  6134. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Fixed memory leak in test code
  6136. * test/AnnounceListTest.cc
  6137. * test/DefaultPeerListProcessorTest.cc
  6138. * test/DefaultPeerStorageTest.cc
  6139. * test/MetaFileUtilTest.cc
  6140. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6142. * src/DefaultPieceStorage.cc
  6143. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6144. Initialized _directIOAllowed
  6145. * src/MultiDiskAdaptor.cc
  6146. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Fixed memory leak
  6148. * src/GZipDecoder.cc
  6149. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Fixed memory leak
  6151. * src/MetalinkParserStateMachine.cc
  6152. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Fixed memory leak
  6154. * src/Dictionary.cc
  6155. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6156. Fixed memory leak
  6157. * src/IteratableChunkChecksumValidator.h
  6158. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6159. Fixed unmatched malloc/free.
  6160. * src/IteratableChunkChecksumValidator.cc
  6161. * src/IteratableChecksumValidator.cc
  6162. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Removed max chunk size check. This change fixes BUG#2040169
  6164. * src/ChunkedDecoder.cc
  6165. * src/ChunkedDecoder.h
  6166. * test/ChunkedDecoderTest.cc
  6167. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. Implemented download speed based URI selection algorithm.
  6169. Introduced new option --uri-selector.
  6170. If --uri-selector=feedback is given, aria2 uses download speed observed
  6171. in the previous downloads and chooses fastest server in the URI list.
  6172. Currently at most 10 URIs are considered to introduce randomeness for
  6173. finding better servers. The speed is average download speed in the
  6174. downloads.
  6175. On the other hand, if --uri-selector=inorder is given, which is default,
  6176. URI is tried in order in URI list.
  6177. The usage text for the new option has not been written yet.
  6178. * src/AbstractCommand.cc
  6179. * src/DownloadCommand.cc
  6180. * src/DownloadEngine.cc
  6181. * src/DownloadEngineFactory.cc
  6182. * src/InOrderURISelector.cc
  6183. * src/InOrderURISelector.h
  6184. * src/OptionHandlerFactory.cc
  6185. * src/PeerStat.h
  6186. * src/RequestGroup.cc
  6187. * src/RequestGroup.h
  6188. * src/RequestGroupMan.cc
  6189. * src/RequestGroupMan.h
  6190. * src/SegmentMan.cc
  6191. * src/SegmentMan.h
  6192. * src/ServerStat.cc
  6193. * src/ServerStat.h
  6194. * src/ServerStatMan.cc
  6195. * src/ServerStatMan.h
  6196. * src/ServerStatURISelector.cc
  6197. * src/ServerStatURISelector.h
  6198. * src/URISelector.h
  6199. * src/option_processing.cc
  6200. * src/prefs.cc
  6201. * src/prefs.h
  6202. * test/InOrderURISelectorTest.cc
  6203. * test/RequestGroupManTest.cc
  6204. * test/ServerStatManTest.cc
  6205. * test/ServerStatURISelectorTest.cc
  6206. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. * Release 0.15.1+2
  6208. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6209. Bump up version number to 0.15.1+2
  6210. * configure.ac
  6211. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6213. * m4/aria2_arg.m4
  6214. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6215. * Release 0.15.1+1
  6216. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6217. Bump up version number to 0.15.1+1
  6218. * configure.ac
  6219. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6220. Fixed the bug that causes segmentaion fault when resuming download
  6221. using metalink without size tag. Reproducible only using HTTP URI.
  6222. * src/HttpResponseCommand.cc
  6223. * src/FtpNegotiationCommand.cc
  6224. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6225. * Release 0.15.1
  6226. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6227. Updated Bulgarian and French translations, thanks to all translators.
  6228. * po/bg.po
  6229. * po/fr.po
  6230. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6231. Bump up version number to 0.15.1
  6232. * configure.ac
  6233. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Avoid repeated call of gettimeofday() when calculating speed.
  6235. * src/SpeedCalc.cc
  6236. * src/SpeedCalc.h
  6237. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6238. Removed writable check when socket's send buffer is full in BitTorrent
  6239. downloads to lower CPU usage.
  6240. * src/PeerInteractionCommand.cc
  6241. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6242. Fixed broken gzip inflation.
  6243. Turn off segmented downloading if gzip content is smaller than or equal
  6244. to 1MiB and inflate the data on the fly, because HTTP response header
  6245. doesn't contain the length of inflated file we can't determin where
  6246. the chunk of data should be written.
  6247. On the other hand, if gzip content is larger than 1MB, then turn off
  6248. on the fly inflation, because some servers returns "content-type: gzip"
  6249. for *.tgz, *.gz files.
  6250. * src/DownloadCommand.cc
  6251. * src/HttpResponseCommand.cc
  6252. * src/HttpResponseCommand.h
  6253. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6254. Applied tizianomueller's patch to fix compile error.
  6255. * test/BitfieldManTest.cc
  6256. * test/BtRequestMessageTest.cc
  6257. * test/DefaultBtContextTest.cc
  6258. * test/DefaultDiskWriterTest.cc
  6259. * test/DefaultPieceStorageTest.cc
  6260. * test/HttpHeaderProcessorTest.cc
  6261. * test/HttpResponseTest.cc
  6262. * test/Metalink2RequestGroupTest.cc
  6263. * test/MetalinkParserControllerTest.cc
  6264. * test/MetalinkProcessorTest.cc
  6265. * test/PeerSessionResourceTest.cc
  6266. * test/UtilTest.cc
  6267. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6268. * Release 0.15.0
  6269. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. Reordered src files in POTFILES.in so that usage text appears first.
  6271. * po/POTFILES.in
  6272. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6273. Bump up version number to 0.15.0
  6274. * configure.ac
  6275. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. Added Bulgarian translation.
  6277. Updated Catalan, Spanish, French and Japanese translations.
  6278. Thanks to all translators.
  6279. * po/LINGUAS
  6280. * po/bg.po
  6281. * po/ca.po
  6282. * po/es.po
  6283. * po/fr.po
  6284. * po/ja.po
  6285. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. Updated feature list. Added libz for dependency section.
  6287. Added a description about unit testing using CppUnit.
  6288. * README
  6289. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6290. Added a test for libz. Quoted where it is necessary.
  6291. * build_test.sh
  6292. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6293. Added GZip to `Enabled Features' list.
  6294. * src/FeatureConfig.cc
  6295. * src/FeatureConfig.h
  6296. * test/FeatureConfigTest.cc
  6297. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6299. the transfer has not yet started.
  6300. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6301. * src/SegmentMan.cc
  6302. * src/SegmentMan.h
  6303. * test/SegmentManTest.cc
  6304. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Cache last calculated average download/upload speed.
  6306. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6307. cached value.
  6308. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6309. * src/PeerStat.h
  6310. * src/SpeedCalc.cc
  6311. * src/SpeedCalc.h
  6312. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Call parseUrl directly.
  6314. * src/Request.cc (resetUrl)
  6315. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6316. Supported absolute/relative path in Location header field.
  6317. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6318. * src/HttpHeader.cc
  6319. * src/HttpHeader.h
  6320. * src/HttpResponse.cc
  6321. * src/HttpSkipResponseCommand.cc
  6322. * src/Request.cc
  6323. * test/HttpHeaderTest.cc
  6324. * test/HttpResponseTest.cc
  6325. * test/RequestTest.cc
  6326. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6327. Changed help text for --load-cookie option.
  6328. * doc/aria2c.1.txt
  6329. * src/usage_text.h
  6330. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Regenerated test/Makefile.in to remove stale ChangeLog.
  6332. * test/Makefile.in
  6333. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6334. Updated po files.
  6335. * po/aria2c.pot
  6336. * po/*.po
  6337. * po/*.gmo
  6338. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Bump up version number to 0.15.0b
  6340. * configure.ac
  6341. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6342. Externalize messages.
  6343. * src/RequestGroupMan.cc
  6344. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6345. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Use File::exists() instead of File::isFile() to allow non-regular file
  6347. such as block special files.
  6348. * src/AbstractDiskWriter.cc
  6349. * src/MultiDiskWriter.cc
  6350. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6351. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6352. * src/gai_strerror.h
  6353. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. Fixed compile error. Thanks gknauf for the patch.
  6355. * src/asctime_r.c
  6356. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6357. Included asctime_r.h from a2time.h.
  6358. * src/a2time.h
  6359. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Added a message "aria2 doesn't verify signature" to log message when
  6361. signature file is saved.
  6362. * src/RequestGroupMan.cc
  6363. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. Added the ability to save signature when download is completed if
  6365. signature is available. The filename of signature file is the path to
  6366. download file followed by ".sig". If it already exists, then signature
  6367. will not be saved.
  6368. * src/RequestGroupMan.cc
  6369. * src/Signature.cc
  6370. * test/SignatureTest.cc
  6371. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6372. Updated the descriptions for --bt-seed-unverified.
  6373. * doc/aria2c.1
  6374. * doc/aria2c.1.html
  6375. * doc/aria2c.1.txt
  6376. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6378. that this is not going to verify files using piece hashes.
  6379. * src/HelpItemFactory.cc
  6380. * src/OptionHandlerFactory.cc
  6381. * src/RequestGroup.cc
  6382. * src/option_processing.cc
  6383. * src/prefs.cc
  6384. * src/prefs.h
  6385. * src/usage_text.h
  6386. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6387. Added the ability to retrieve signature from Metalink file.
  6388. A retrieved signature is stored in Signature class and it is held by
  6389. DownloadContext class. Note that aria2 doesn't verify signature.
  6390. * src/DownloadContext.cc
  6391. * src/DownloadContext.h
  6392. * src/Makefile.am
  6393. * src/Makefile.in
  6394. * src/Metalink2RequestGroup.cc
  6395. * src/MetalinkEntry.cc
  6396. * src/MetalinkEntry.h
  6397. * src/MetalinkParserController.cc
  6398. * src/MetalinkParserController.h
  6399. * src/MetalinkParserStateMachine.cc
  6400. * src/MetalinkParserStateMachine.h
  6401. * src/Signature.cc
  6402. * src/Signature.h
  6403. * src/SignatureMetalinkParserState.cc
  6404. * src/SignatureMetalinkParserState.h
  6405. * src/VerificationMetalinkParserState.cc
  6406. * src/VerificationMetalinkParserState.h
  6407. * test/Metalink2RequestGroupTest.cc
  6408. * test/MetalinkParserControllerTest.cc
  6409. * test/MetalinkProcessorTest.cc
  6410. * test/test.xml
  6411. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6412. Close DiskAdaptor after renaming file.
  6413. * src/RequestGroup.cc
  6414. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6415. Corrected indentation
  6416. * src/DefaultBtProgressInfoFile.cc
  6417. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6418. Moved the calls of std::ios::exceptions() inside of try-catch block
  6419. because if an error occurred in constructor of std::fstream, then
  6420. exception is thrown immediately when std::ios::exceptions() is called
  6421. which results unhandled exception and aria2c aborts.
  6422. * src/DefaultBtProgressInfoFile.cc
  6423. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6424. Added the test for the previous change in DefaultBtContext.cc
  6425. * test/DefaultBtContextTest.cc
  6426. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6427. Fixed the bug that causes infinite loop when the number of pieces are
  6428. fewer than allowed fast set size which is 10 by default.
  6429. * src/DefaultBtContext.cc
  6430. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Updated the descriptions for -j, -s. Added --bt-seed.
  6432. * doc/aria2c.1
  6433. * doc/aria2c.1.html
  6434. * doc/aria2c.1.txt
  6435. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6436. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6437. aria2 seeds previously downloaded files without validating piece hashs.
  6438. * src/HelpItemFactory.cc
  6439. * src/OptionHandlerFactory.cc
  6440. * src/RequestGroup.cc
  6441. * src/option_processing.cc
  6442. * src/prefs.cc
  6443. * src/prefs.h
  6444. * src/usage_text.h
  6445. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Updated DESCRIPTION of man page.
  6447. * doc/aria2c.1
  6448. * doc/aria2c.1.html
  6449. * doc/aria2c.1.txt
  6450. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6451. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6452. Don't define `struct addrinfo' when __sun is defined.
  6453. * src/getaddrinfo.h
  6454. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6455. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6456. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6457. second argument is of type `struct _stati64'. Otherwise it is defined as
  6458. `struct stat'.
  6459. * src/AbstractDiskWriter.cc
  6460. * src/File.cc
  6461. * src/File.h
  6462. * src/a2io.h
  6463. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6464. Fixed the compile error in hurd-i386
  6465. See the original bug report:
  6466. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6467. * src/a2io.h
  6468. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6469. Code cleanup.
  6470. * src/PeerAbstractCommand.cc
  6471. * src/PeerAbstractCommand.h
  6472. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6473. Removed TransferEncoding.
  6474. * src/DownloadCommand.cc
  6475. * src/DownloadCommand.h
  6476. * src/HttpResponseCommand.cc
  6477. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6478. Updated po files.
  6479. * po/aria2c.pot
  6480. * po/*.po
  6481. * po/*.gmo
  6482. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6483. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6484. * src/A2STR.cc
  6485. * src/A2STR.h
  6486. * src/ChunkedDecoder.cc
  6487. * src/ChunkedDecoder.h
  6488. * src/ChunkedEncoding.cc: Removed
  6489. * src/ChunkedEncoding.h: Removed
  6490. * src/DownloadCommand.cc
  6491. * src/DownloadCommand.h
  6492. * src/HttpDownloadCommand.cc
  6493. * src/HttpResponse.cc
  6494. * src/HttpResponse.h
  6495. * src/HttpResponseCommand.cc
  6496. * src/HttpSkipResponseCommand.cc
  6497. * src/HttpSkipResponseCommand.h
  6498. * src/Makefile.am
  6499. * src/TransferEncoding.h: Removed
  6500. * test/ChunkedDecoderTest.cc
  6501. * test/ChunkedEncodingTest.cc: Removed
  6502. * test/HttpResponseTest.cc
  6503. * test/Makefile.am
  6504. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6505. Use append instead of insert.
  6506. * src/GZipDecoder.cc
  6507. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6508. Updated doc
  6509. * src/Decoder.h
  6510. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6511. Updated usage text for -s option.
  6512. * src/usage_text.h
  6513. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6514. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6515. * src/Request.cc
  6516. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6517. Cleaned up configure.ac.
  6518. * configure.ac
  6519. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6520. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6521. AC_ARG_ENABLE.
  6522. * configure.ac
  6523. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6525. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6526. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6527. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6528. fly and writes decoded data to a local disk.
  6529. * README
  6530. * README.html
  6531. * configure.ac
  6532. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6533. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6534. * m4/libz.m4
  6535. * src/Decoder.h
  6536. * src/DownloadCommand.cc
  6537. * src/DownloadCommand.h
  6538. * src/Exception.h
  6539. * src/GZipDecoder.cc
  6540. * src/GZipDecoder.h
  6541. * src/HttpHeader.cc
  6542. * src/HttpHeader.h
  6543. * src/HttpRequest.cc
  6544. * src/HttpRequest.h
  6545. * src/HttpResponse.cc
  6546. * src/HttpResponse.h
  6547. * src/HttpResponseCommand.cc
  6548. * src/Makefile.am
  6549. * test/GZipDecoderTest.cc
  6550. * test/HttpRequestTest.cc
  6551. * test/HttpResponseTest.cc
  6552. * test/Makefile.am
  6553. * test/Makefile.in
  6554. * test/gzip_decode_test.gz
  6555. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Clarified usage of -j option.
  6557. * src/usage_text.h
  6558. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6559. Disabled getting size from the response of RETR.
  6560. If SIZE command failed, then disable resuming and segmented downloading.
  6561. * src/FtpConnection.cc
  6562. * src/FtpConnection.h
  6563. * src/FtpNegotiationCommand.cc
  6564. * src/FtpNegotiationCommand.h
  6565. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6566. Use digits to find first byte of file size, which makes the intention
  6567. of the code clearer.
  6568. * src/FtpConnection.cc
  6569. Don't call validateTotalLength() when size is 0.
  6570. * src/FtpNegotiationCommand.cc
  6571. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6572. Updated po files.
  6573. * po/aria2c.pot
  6574. * po/*.gmo
  6575. * po/*.po
  6576. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6577. Clarified usage text for --split option.
  6578. * src/usage_text.h
  6579. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6580. Bump up version number to 0.15.0dev. "dev" means "development"
  6581. version, which means I started the development of the next release!
  6582. * src/configure.ac
  6583. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6584. If FTP server returns negative response with REST raw command and
  6585. requested range is not 0, throw exception. If requested range is 0,
  6586. continue download a file from 0 byte.
  6587. * src/FtpNegotiationCommand.cc
  6588. * src/FtpNegotiationCommand.h
  6589. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Supported FTP server which don't recognize SIZE raw command.
  6591. If SIZE raw command is failed, aria2 will try to get file size
  6592. from the response of RETR raw command. If both attempts are failed,
  6593. then resuming and segmented downloading are disabled.
  6594. * src/FtpConnection.cc
  6595. * src/FtpConnection.h
  6596. * src/FtpNegotiationCommand.cc
  6597. * src/FtpNegotiationCommand.h
  6598. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6599. * Release 0.14.0+1
  6600. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Bump up version number to 0.14.0+1
  6602. * src/configure.ac
  6603. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Fixed the code that refers static member variable from non-static
  6605. context.
  6606. * src/DefaultPeerStorage.cc
  6607. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6608. * Release 0.14.0
  6609. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6610. Added build test script
  6611. * build_test.sh
  6612. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6613. Updated ja.po
  6614. * src/ja.po
  6615. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Bump up version number to 0.14.0
  6617. * src/configure.ac
  6618. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Updated ja.po and fr.po. Great thanks for french translators and
  6620. Sebastien WILLEMIJNS.
  6621. * po/fr.po
  6622. * po/ja.po
  6623. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6624. Added configure option to enable/disable epoll support.
  6625. * configure.ac
  6626. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6627. Updated man page.
  6628. * doc/aria2c.1.txt
  6629. * doc/aria2c.1
  6630. * doc/aria2c.1.html
  6631. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6632. Added missing default value '5' to the usage of --split option.
  6633. * src/HelpItemFactory.cc
  6634. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6635. Filled up pieces based on the number of missing blocks, rather than
  6636. simplay the number of piece * block length.
  6637. * src/BtRequestFactory.h
  6638. * src/DefaultBtInteractive.cc
  6639. * src/DefaultBtInteractive.h
  6640. * src/DefaultBtRequestFactory.cc
  6641. * src/DefaultBtRequestFactory.h
  6642. * src/Piece.cc
  6643. * src/Piece.h
  6644. * test/BitfieldManTest.cc
  6645. * test/DefaultBtRequestFactoryTest.cc
  6646. * test/MockBtRequestFactory.h
  6647. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6648. Made _epEvents a member variable.
  6649. * src/DownloadEngine.cc
  6650. * src/DownloadEngine.h
  6651. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Cancel download if http redirect is bounded more than 20 times.
  6653. * src/AbstractCommand.cc
  6654. * src/HttpSkipResponseCommand.cc
  6655. * src/Request.cc
  6656. * src/Request.h
  6657. * test/RequestTest.cc
  6658. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6659. Fixed unhandled exception(removed keyword `new').
  6660. * src/SocketCore.cc (initEPOLL)
  6661. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6662. Removed visit(const MetaEntry*)
  6663. * src/MetaEntryVisitor.h:
  6664. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6665. and made them virtual.
  6666. * src/BencodeVisitor.h
  6667. * src/BencodeVisitor.cc
  6668. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6669. Updated po files.
  6670. * po/aria2c.pot
  6671. * po/*.po
  6672. * po/*.gmo
  6673. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6675. the number of socket to watch out.
  6676. * src/PeerInteractionCommand.cc
  6677. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6678. When there is not enough space in disk when writing a chunk of data,
  6679. aria2 now prints the message to the console to warn user and aborts
  6680. its download. Not all downloads are canceled because some downloads
  6681. may use another disk or partition. BUG#1640332
  6682. * src/AbstractDiskWriter.cc
  6683. * src/PeerAbstractCommand.cc
  6684. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6685. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6686. setHaltRequested(true) to cancel download.
  6687. * src/PeerInteractionCommand.h
  6688. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6689. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6690. socket from int to sock_t as sockets are unsigned in Windows.
  6691. For AsyncNameResolver, DownloadEngine, I did additional modification
  6692. for the portion of the code changed according to epoll support.
  6693. I defined sock_t in a2netcompat.h to use sock_t without including
  6694. SocketCore.h.
  6695. * src/AsyncNameResolver.cc
  6696. * src/AsyncNameResolver.h
  6697. * src/DownloadEngine.cc
  6698. * src/DownloadEngine.h
  6699. * src/SocketCore.cc
  6700. * src/SocketCore.h
  6701. * src/a2netcompat.h
  6702. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6703. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6704. changes in the patch were applied.
  6705. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6706. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6707. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6708. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6710. a2io.h and common.h were modified.
  6711. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6712. MinGW.
  6713. * src/common.h: Changed off_t to 64 bit in MinGW.
  6714. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6715. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6716. only a2netcompat.h is modified.
  6717. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6718. directives.
  6719. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6721. only gai_strerror.h is modified.
  6722. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6723. winsock errors in MinGW.
  6724. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6726. follow sources are applied.
  6727. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6728. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6729. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6730. I included locale.h from Platform.cc.
  6731. * src/main.cc: Moved common setup/teardown code to Platform class.
  6732. * test/AllTest.cc: Use Platform class.
  6733. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6734. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6736. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6737. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6738. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6739. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6740. aria2-0.13.2+1-mingw-2.patch.
  6741. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6742. systems which don't have termious.h. I moved the directive inside of
  6743. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6744. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6745. anyway.
  6746. * src/asctime_r.h
  6747. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6748. I added 2nd argument to the prototype declaration.
  6749. * src/StringFormat.cc: Get rid of vasprintf.
  6750. * src/getaddrinfo.h: Fixed constants.
  6751. * configure.ac: Added the check for asctime_r function.
  6752. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6753. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6754. Added writable test for Socket when the sending message is in progress.
  6755. Usually the sending message is piece message. Without wriable check,
  6756. upload latency is dropped to more than 1sec.
  6757. * src/PeerInteractionCommand.cc
  6758. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6759. Create only requested files and files which shares a piece with
  6760. requested file in multi-torrent downloads. Directory structures are
  6761. also created in the same rule.
  6762. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6763. DiskWriterEntry as in the previous implementation.
  6764. * src/MultiDiskWriter.cc
  6765. * src/MultiFileAllocationIterator.cc
  6766. * src/MultiFileAllocationIterator.h
  6767. * test/MultiFileAllocationIteratorTest.cc
  6768. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6769. Commented out -lprofiler
  6770. * src/Makefile.am
  6771. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6772. Bump up version number to 0.14.0b.
  6773. * src/configure.ac
  6774. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Actively establish connection to peers in seeding, when peer cache
  6776. is not full and max upload speed limit is not reached.
  6777. * src/ActivePeerConnectionCommand.cc
  6778. * src/ActivePeerConnectionCommand.h
  6779. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6780. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6781. to make room more fleshy, recently found peers.
  6782. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6783. it.
  6784. * src/DefaultPeerStorage.cc
  6785. * test/DefaultPeerStorageTest.cc
  6786. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6787. Returns cached data only when the previous receiveHandshake() is called
  6788. with peek = true.
  6789. * src/PeerConnection.cc (receiveHandshake)
  6790. * src/PeerConnection.h (receiveHandshake)
  6791. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6792. Changed default value of -s option from 1 to 5.
  6793. Also max value of -s option is changed from 5 to 16.
  6794. * src/HelpItemFactory.cc
  6795. * src/OptionHandlerFactory.cc
  6796. * src/option_processing.cc
  6797. * src/usage_text.h
  6798. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6799. Changed -s options behavior. Now it means the number of connections
  6800. made simultaneously in each http/ftp download.
  6801. If 1 URL is specified, the behavior is the same with old implementation.
  6802. If -s N is given and more than N URLs are specified, first N URLs are
  6803. used and remaining URLs are used for backup. If less than N URLs are
  6804. specified, some of URLs are used more than once so that totally N
  6805. connections are made simultaneously.
  6806. * src/main.cc
  6807. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6808. Included missing iosfwd or ostream header.
  6809. * src/RequestGroupMan.cc
  6810. * src/TaggedItem.cc
  6811. * src/TaggedItem.h
  6812. * src/Util.cc
  6813. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6815. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6816. * src/HttpConnection.cc: Included missing sstream.
  6817. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. Added --bt-max-open-files option.
  6819. * src/DefaultPieceStorage.cc
  6820. * src/HelpItemFactory.cc
  6821. * src/MultiDiskAdaptor.cc
  6822. * src/MultiDiskAdaptor.h
  6823. * src/OptionHandlerFactory.cc
  6824. * src/option_processing.cc
  6825. * src/prefs.cc
  6826. * src/prefs.h
  6827. * src/usage_text.h
  6828. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6829. Fixed the bug that aria2 aborts when a path to a directory is given
  6830. in command-line.
  6831. * src/ProtocolDetector.cc
  6832. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6833. Limited the number files opened in each BitTorrent download. The default
  6834. value is 100. The option to change this value will be added.
  6835. * src/MultiDiskAdaptor.cc
  6836. * src/MultiDiskAdaptor.h
  6837. * src/MultiFileAllocationIterator.cc
  6838. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6839. Fixed the bug that HTTP downloads don't start with old libraries.
  6840. * src/HttpHeaderProcessor.cc
  6841. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6842. Use empty() instead of size() > 0.
  6843. * src/HttpConnection.cc
  6844. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Drop connection if the incoming peer ID is the same with localhost's
  6846. one. The previous implementation drops connection when incoming peer's
  6847. IP address is the same with localhost's one.
  6848. * src/PeerListenCommand.cc
  6849. * src/DefaultBtInteractive.cc
  6850. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6851. Returns cached data without checking whether socket is readable
  6852. if the cache is available.
  6853. * src/PeerConnection.cc (receiveHandshake)
  6854. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6855. Included stdint.h
  6856. * src/common.h
  6857. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6858. Removed duplicate HAVE_GETTIMEOFDAY
  6859. * src/Makefile.am
  6860. * src/Makefile.in
  6861. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6862. Use interval as a minInterval when minInterval is not supplied.
  6863. * src/DefaultBtAnnounce.cc
  6864. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6866. attempt is failed, then 2nd attempt get kicked out more quickly.
  6867. And it is now static const member of DefaultBtAnnounce.
  6868. * src/DefaultBtAnnounce.h
  6869. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6870. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6871. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6872. * src/ActivePeerConnectionCommand.cc
  6873. * src/BtConstants.h
  6874. * src/BtRuntime.h
  6875. * src/DHTGetPeersCommand.cc
  6876. * src/DefaultBtAnnounce.cc
  6877. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6878. BtRuntime::MAX_PEERS.
  6879. * src/DefaultPeerStorage.h
  6880. * src/InitiatorMSEHandshakeCommand.cc
  6881. * src/PeerInitiateConnectionCommand.cc
  6882. * src/PeerInteractionCommand.cc
  6883. * src/PeerReceiveHandshakeCommand.cc
  6884. * src/TrackerWatcherCommand.cc
  6885. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6886. Always Connect to _numNewConnection
  6887. * src/ActivePeerConnectionCommand.cc
  6888. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. Made `begin' unsigned int.
  6890. * src/GrowSegment.h
  6891. * src/Piece.cc
  6892. * src/Piece.h
  6893. * src/PiecedSegment.cc
  6894. * src/PiecedSegment.h
  6895. * src/Segment.h
  6896. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Calculate piece hash when data is arrived if the data is arrived in
  6898. order. This removes additional read operation for hash calculation.
  6899. If the data is arrived in out of order, the hash is calucated when the
  6900. piece is completed. This is the same behavior as the old implementation.
  6901. * src/BtPieceMessage.cc
  6902. * src/DefaultBtProgressInfoFile.cc
  6903. * src/DefaultPieceStorage.cc
  6904. * src/DownloadCommand.cc
  6905. * src/DownloadCommand.h
  6906. * src/DownloadEngine.cc
  6907. * src/GrowSegment.cc
  6908. * src/GrowSegment.h
  6909. * src/Piece.cc
  6910. * src/Piece.h
  6911. * src/PiecedSegment.cc
  6912. * src/PiecedSegment.h
  6913. * src/Segment.h
  6914. * test/PieceTest.cc
  6915. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Try to keep the ordering of outgoing piece message.
  6917. * src/DefaultBtMessageDispatcher.cc
  6918. (DefaultBtMessageDispatcher::sendMessages)
  6919. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Fixed busy loop when error/hup epoll events occur.
  6921. * src/AbstractCommand.cc
  6922. * src/PeerAbstractCommand.cc
  6923. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Added --bt-request-peer-speed-limit option, which was a constant
  6925. SLOW_SPEED_THRESHOLD.
  6926. * src/ActivePeerConnectionCommand.cc
  6927. * src/ActivePeerConnectionCommand.h
  6928. * src/BtConstants.h
  6929. * src/HelpItemFactory.cc
  6930. * src/OptionHandlerFactory.cc
  6931. * src/PeerReceiveHandshakeCommand.cc
  6932. * src/option_processing.cc
  6933. * src/prefs.cc
  6934. * src/prefs.h
  6935. * src/usage_text.h
  6936. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Removed repeated call of getTopDirPath(). Instead, call it once and
  6938. cache the result.
  6939. * src/MultiDiskAdaptor.cc
  6940. * src/MultiDiskAdaptor.h
  6941. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6942. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6943. Fixed compile error on debian etch.
  6944. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6945. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6946. it is undefined.
  6947. * src/Util.cc (ULLONG_MAX)
  6948. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6949. Added epoll support. Use epoll if it is available. If not, use select.
  6950. When async dns is enabled in compile time, epoll support is enabled
  6951. only when aria2 is built with c-ares. This condition statement is
  6952. defined in a2io.h.
  6953. Currently aria2 supports both c-ares and ares, but ares is maintained
  6954. for quite a while and debian already has c-ares package, ares support
  6955. will be dropped in the future version.
  6956. * configure.ac
  6957. * src/AbstractCommand.cc
  6958. * src/AsyncNameResolver.cc
  6959. * src/AsyncNameResolver.h
  6960. * src/Command.cc
  6961. * src/Command.h
  6962. * src/DownloadEngine.cc
  6963. * src/DownloadEngine.h
  6964. * src/PeerAbstractCommand.cc
  6965. * src/SocketCore.cc
  6966. * src/SocketCore.h
  6967. * src/a2io.h
  6968. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6969. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6970. directive.
  6971. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6972. Do not do write operation to /dev/null file.
  6973. * src/LogFactory.cc
  6974. * src/SimpleLogger.cc
  6975. Replaced vasprintf with vsnprintf
  6976. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6977. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6978. * src/BtRequestMessage.cc
  6979. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6980. for segmentation fault caused by previous commit.
  6981. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6982. Reduced the usage of gettimeofday().
  6983. * src/DefaultBtMessageDispatcher.cc
  6984. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6985. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6986. * src/RequestSlot.cc
  6987. * src/RequestSlot.h
  6988. (RequestSlot::isTimeout)
  6989. Made RequestSlot have a reference to Piece object to avoid find
  6990. Piece repeatedly.
  6991. * src/DefaultBtMessageDispatcher.cc
  6992. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6993. * src/RequestSlot.cc
  6994. * src/RequestSlot.h
  6995. (RequestSlot::getPiece)
  6996. * test/DefaultBtMessageDispatcherTest.cc
  6997. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. * src/TimeA2.cc
  6999. * src/TimeA2.h
  7000. (Time::difference): New function.
  7001. (Time::elapsed): Done optimization.
  7002. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7003. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7004. directive.
  7005. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. * src/option_processing.cc: Added missing `defined' keyword to #if
  7007. directive.
  7008. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. Bump up version number to 0.13.2+1
  7010. * src/configure.ac
  7011. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7012. Refactored broken outstanding piece handling.
  7013. * src/DefaultPieceStorage.cc
  7014. * src/DefaultPieceStorage.h
  7015. * src/Piece.cc
  7016. * src/Piece.h
  7017. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7019. name collision of static variable and predefined macro.
  7020. * src/BtContext.cc
  7021. * src/BtContext.h
  7022. * src/CookieBoxFactory.cc
  7023. * src/CookieBoxFactory.h
  7024. * src/CookieParser.cc
  7025. * src/CookieParser.h
  7026. * src/DefaultBtContext.cc
  7027. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7028. * src/RequestGroup.cc
  7029. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7030. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. * Release 0.13.2
  7032. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7034. * po/fr.po
  7035. * po/ja.po
  7036. * po/aria2c.pot
  7037. * po/*.po
  7038. * po/*.gmo
  7039. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7040. Bump up version number to 0.13.2
  7041. * src/configure.ac
  7042. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Refactord.
  7044. * src/RequestGroupMan.cc
  7045. (removeStoppedGroup)
  7046. (fillRequestGroupFromReserver)
  7047. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7048. Fixed compile error on Ubuntu.
  7049. * src/BtPieceMessage.cc
  7050. * src/MessageDigestHelper.cc
  7051. * src/Util.cc
  7052. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Fixed compile error when configured with --disable-bittorrent
  7054. * test/DownloadHandlerFactoryTest.cc
  7055. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7056. Done make update-po
  7057. * po/aria2c.pot
  7058. * po/*.po
  7059. * po/*.gmo
  7060. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7061. Bump up version number to 0.13.2rc.
  7062. * src/configure.ac
  7063. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7064. Made option name bold. Updated SYNOPSIS to make it more readable.
  7065. * doc/aria2c.1.txt
  7066. * doc/aria2c.1
  7067. * doc/aria2c.1.html
  7068. * src/version_usage.cc
  7069. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Refactored. Use std::string instead of size and char*.
  7071. * Data.cc
  7072. * Data.h
  7073. * test/Data.cc
  7074. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Added trimSelf(). Rewritten trim() to use trimSelf().
  7076. * Util.cc
  7077. * Util.h
  7078. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7080. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7081. Fixed compile error when configured with --disable-metalink.
  7082. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7083. * test/FeatureConfigTest.cc
  7084. * test/DownloadHandlerFactoryTest.cc
  7085. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. Fixed compile error when configured with --without-gnutls
  7087. --without-openssl
  7088. * src/main.cc
  7089. * test/DefaultBtProgressInfoFileTest.cc
  7090. * test/SegmentManTest.cc
  7091. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7092. Fixed compile error with OpenSSL.
  7093. * src/IteratableChunkChecksumValidator.cc
  7094. * src/LibsslDHKeyExchange.h
  7095. * src/MessageDigestHelper.cc
  7096. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7097. Revert the default value of --max-concurrent-downloads to 5.
  7098. Revert the default value of --metalink-servers to 5.
  7099. Man pages was also updated.
  7100. * src/option_processing.cc
  7101. * doc/aria2c.1.txt
  7102. * doc/aria2c.1.html
  7103. * doc/aria2c.1
  7104. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Returns const reference:
  7106. DownloadContext::getPieceHash, DownloadContext::getName,
  7107. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7108. BtContext::getInfoHashAsString,
  7109. * src/BtContext.h
  7110. * src/DefaultBtContext.cc
  7111. * src/DefaultBtContext.h
  7112. * src/DownloadContext.h
  7113. * src/SingleFileDownloadContext.h
  7114. * test/MockBtContext.h
  7115. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. * src/RequestGroup.h (getDir): Removed.
  7117. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7118. Returns const reference. The internal urlencode function was optimized
  7119. a little bit.
  7120. * src/Request.cc
  7121. * src/Request.h
  7122. * src/HttpRequest.cc
  7123. * src/HttpRequest.h
  7124. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7125. Defined option name and possible values as std::string to reduce
  7126. temporary string object creation in runtime.
  7127. * src/HelpItemFactory.cc
  7128. * src/LogFactory.cc
  7129. * src/Option.cc
  7130. * src/OptionHandlerFactory.cc
  7131. * src/option_processing.cc
  7132. * src/prefs.cc
  7133. * src/prefs.h
  7134. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Return const reference.
  7136. * src/DownloadHandlerConstants.cc
  7137. * src/DownloadHandlerConstants.h
  7138. (getMetalinkExtensions)
  7139. (getMetalinkContentTypes)
  7140. (getBtExtensions)
  7141. (getBtContentTypes)
  7142. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. * src/HttpHeader.cc (get): Rewritten.
  7144. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Make HttpHeader::getFirst(...) return const reference.
  7146. * src/HttpHeader.cc
  7147. * src/HttpHeader.h
  7148. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7150. it with V_TRUE.
  7151. * src/DefaultPieceStorage.cc
  7152. * src/DownloadCommand.cc
  7153. * src/FtpNegotiationCommand.cc
  7154. * src/HttpRequest.cc
  7155. * src/InitiateConnectionCommand.cc
  7156. * src/RequestGroup.cc
  7157. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7158. Made Option::get(...) return const reference of std::string.
  7159. * src/Option.cc
  7160. * src/Option.h
  7161. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7162. Replaced std:copy with insert.
  7163. * src/DefaultBtMessageDispatcher.cc
  7164. * src/DefaultPieceStorage.cc
  7165. * src/DownloadEngineFactory.cc
  7166. * src/RequestGroup.cc
  7167. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Included SocketCore.h to fix compiler warning.
  7169. * src/InitiateConnectionCommand.cc
  7170. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7171. Put piece selection strategy algorithm to RarestPieceSelector class,
  7172. Added a switch to choose whether randomized selection so that unit
  7173. tests emit same results in, possibly, win32.
  7174. * src/DefaultPieceStorage.cc
  7175. * src/DefaultPieceStorage.h
  7176. * src/RarestPieceSelector.cc
  7177. * src/RarestPieceSelector.h
  7178. * test/DefaultPieceStorageTest.cc
  7179. * test/RarestPieceSelectorTest.cc
  7180. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7181. Don't pool connection if HTTP proxy is enabled.
  7182. * src/FtpFinishDownloadCommand.cc
  7183. * src/FtpNegotiationCommand.cc
  7184. * src/HttpSkipResponseCommand.cc
  7185. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7187. * src/AbstractCommand.cc
  7188. * src/AbstractCommand.h
  7189. * src/ActivePeerConnectionCommand.cc
  7190. * src/FtpInitiateConnectionCommand.cc
  7191. * src/HttpInitiateConnectionCommand.cc
  7192. * src/InitiateConnectionCommandFactory.cc
  7193. * src/PeerAbstractCommand.cc
  7194. * src/PeerAbstractCommand.h
  7195. * src/PeerInitiateConnectionCommand.cc
  7196. * src/TrackerWatcherCommand.cc
  7197. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Sort RequestSlot in ascending order and manipulate them using
  7199. lower_bound.
  7200. * src/DefaultBtMessageDispatcher.cc
  7201. * src/DefaultBtMessageDispatcher.h
  7202. (getMessageQueue): Added const qualifier.
  7203. (getRequestSlots): Added const qualifier.
  7204. (sendMessages): Use empty() instead of size().
  7205. (doCancelSendingPieceAction): Use HandleEvent object.
  7206. (doAbortOutstandingRequestAction): Rewritten.
  7207. (doChokedAction): Rewritten.
  7208. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7209. (isOutstandingRequest): Rewritten.
  7210. (getOutstandingRequest): Rewritten.
  7211. (removeOutstandingRequest): Rewritten.
  7212. (addOutstandingRequest): Rewritten.
  7213. * src/RequestSlot.cc
  7214. * src/RequestSlot.h
  7215. (operator=): Rewritten.
  7216. (operator!=): New function.
  7217. (operator<): New function.
  7218. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7219. * src/DefaultBtRequestFactory.cc
  7220. (doChokedAction): Rewritten.
  7221. (removeCompletedPiece): Rewritten.
  7222. (removeTargetPiece): Rewritten.
  7223. (createRequestMessages): Added the debug log.
  7224. (createRequestMessagesOnEndGame: Added the debug log.
  7225. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Added the debug log message.
  7227. * src/BtPieceMessage.cc (doReceivedAction)
  7228. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7230. used lower_bound to process them rather than linear search.
  7231. * src/DHTPeerAnnounceStorage.cc
  7232. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7233. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7234. peer has at least one completed piece.
  7235. * src/Peer.cc
  7236. * src/Peer.h
  7237. * src/PeerInteractionCommand.cc
  7238. * src/PeerSessionResource.cc
  7239. * src/PeerSessionResource.h
  7240. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7241. Removed unnecessary sorting
  7242. * src/DefaultPieceStorage (DefaultPieceStorage)
  7243. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7244. Rewritten the portion of the code that mangaes allowed fast indexes.
  7245. * src/PeerSessionResource.cc
  7246. * src/PeerSessionResource.h
  7247. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Removed the invalid string including '\r' from ru.po and
  7249. did make update-po.
  7250. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7251. Added --log-level and --summary-interval to man page.
  7252. * doc/aria2c.1.txt
  7253. * doc/aria2c.1.html
  7254. * doc/aria2c.1
  7255. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7256. Added --log-level option to specify log level. Log messages under
  7257. the specified level are not output. Default value is `debug'.
  7258. * src/HelpItemFactory.cc
  7259. * src/LogFactory.cc
  7260. * src/LogFactory.h
  7261. * src/Logger.h
  7262. * src/OptionHandlerFactory.cc
  7263. * src/SimpleLogger.cc
  7264. * src/SimpleLogger.h
  7265. * src/main.cc
  7266. * src/option_processing.cc
  7267. * src/prefs.h
  7268. * src/usage_text.h
  7269. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Print download progress summary of all parallel downloads in specified
  7271. interval, default 60 secs. While aria2 could download several files
  7272. in parallel (see -j option), it displayed just first download progress,
  7273. and the other downloads are hidden from the users. This new feature
  7274. prints all downloads currently in-progress to the console so that you
  7275. can check the status of all downloads. The interval can be adjusted
  7276. by --summary-interval option.
  7277. The progress readout is now cut so that all fits in the one line of
  7278. console.
  7279. * src/ConsoleStatCalc.cc
  7280. * src/ConsoleStatCalc.h
  7281. * src/HelpItemFactory.cc
  7282. * src/OptionHandlerFactory.cc
  7283. * src/RequestGroupMan.cc
  7284. * src/RequestGroupMan.h
  7285. * src/main.cc
  7286. * src/option_processing.cc
  7287. * src/prefs.h
  7288. * src/usage_text.h
  7289. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7290. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7291. * src/DownloadEngine.cc (DownloadEngine)
  7292. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7294. defined.
  7295. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7296. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7297. Use erase+lower_bound+insert instead of sort.
  7298. * src/DefaultPieceStorage.cc (addPieceStats)
  7299. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7301. * src/A2STR.cc
  7302. * src/A2STR.h
  7303. * src/OptionParser.cc (parse)
  7304. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7305. Defined fake filename `[tracker.announce]' as static const std::string.
  7306. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7307. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Defined default filename `index.html' as static const std::string
  7309. * src/SingleFileDownloadContext.cc
  7310. * src/SingleFileDownloadContext.h
  7311. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. Defined "[MEMORY]" as static const std::string.
  7313. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7314. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. Defined control file's version number as static const std::string.
  7316. * src/DefaultBtProgressInfoFile.cc
  7317. * src/DefaultBtProgressInfoFile.h
  7318. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Use Request::METHOD_GET
  7320. * src/RequestGroup.cc (createNextCommandWithAdj)
  7321. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7322. Defined "OK", "ERR", "INPR" as static const std::string
  7323. * src/RequestGroupMan.cc (showDownloadResults)
  7324. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7325. Defined default client used in extended handshake as static const
  7326. std::string
  7327. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7328. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7330. * src/HttpConnection.cc (eraseConfidentialInfo)
  7331. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7332. Defined default ftp user and password as static const std::string
  7333. * src/AuthConfigFactory.cc
  7334. * src/AuthConfigFactory.h
  7335. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7336. Defined strings used in netrc as static const std::string
  7337. * src/Netrc.cc
  7338. * src/Netrc.h
  7339. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Defined HTTP status as static const std::string
  7341. * src/AbstractProxyResponseCommand.cc
  7342. * src/HttpHeader.cc
  7343. * src/HttpHeader.h
  7344. * src/HttpResponse.cc
  7345. * src/HttpResponseCommand.cc
  7346. * src/HttpSkipResponseCommand.cc
  7347. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Defined "\r\n", "A", "I" as static const std::string
  7349. * src/A2STR.cc
  7350. * src/A2STR.h
  7351. * src/FtpConnection.cc
  7352. * src/FtpConnection.h
  7353. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Added COLON_C(".") and used it in Request::parseUrl()
  7355. * src/A2STR.cc
  7356. * src/A2STR.h
  7357. * src/Request.cc (parseUrl)
  7358. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7359. Changed the type of padName from `const std::string&' to `const char*'.
  7360. * src/MSEHandshake.cc (verifyPadLength)
  7361. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Defined "sha1" as static const std::string.
  7363. * src/MetalinkParserController.cc
  7364. * src/MetalinkParserController.h
  7365. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Defined message digest algorithm name as static const std::string
  7367. * src/DHTTokenTracker.cc
  7368. * src/DHTUtil.cc
  7369. * src/DefaultBtContext.cc
  7370. * src/MSEHandshake.cc
  7371. * src/MessageDigestHelper.cc
  7372. * src/Peer.cc
  7373. * src/messageDigest.cc
  7374. * src/messageDigest.h
  7375. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. Made string literals used in SAX parser static const std::string.
  7377. * src/FileMetalinkParserState.cc
  7378. * src/FileMetalinkParserState.h
  7379. * src/FilesMetalinkParserState.cc
  7380. * src/FilesMetalinkParserState.h
  7381. * src/InitialMetalinkParserState.cc
  7382. * src/InitialMetalinkParserState.h
  7383. * src/MetalinkMetalinkParserState.cc
  7384. * src/MetalinkMetalinkParserState.h
  7385. * src/PiecesMetalinkParserState.cc
  7386. * src/PiecesMetalinkParserState.h
  7387. * src/ResourcesMetalinkParserState.cc
  7388. * src/ResourcesMetalinkParserState.h
  7389. * src/VerificationMetalinkParserState.cc
  7390. * src/VerificationMetalinkParserState.h
  7391. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7392. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7393. * src/A2STR.cc
  7394. * src/A2STR.h
  7395. * src/File.cc
  7396. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Defined static const std::string IP("ip"), PORT("port") and use them
  7398. instead of string literals.
  7399. * src/DefaultPeerListProcessor.cc
  7400. * src/DefaultPeerListProcessor.h
  7401. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Made string literals for torrent file processing static const
  7403. std::string.
  7404. * src/BtContext.cc
  7405. * src/BtContext.h
  7406. * src/DefaultBtContext.cc
  7407. * src/DefaultBtContext.h
  7408. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. Made string literal for tracker response static const std::string
  7410. * src/BtAnnounce.cc
  7411. * src/BtAnnounce.h
  7412. * src/DefaultBtAnnounce.cc
  7413. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Use DHTMessage::T instead of "t".
  7415. * src/DHTMessageTracker.cc (messageArrived)
  7416. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Made keyName static const. Made trimmed charset static const
  7418. std::string.
  7419. * src/Util.cc (getContentDispositionFilename)
  7420. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Made USER_AGENT const. Made "/" static const std::string.
  7422. * src/A2STR.cc
  7423. * src/A2STR.h
  7424. * src/HttpRequest.cc
  7425. * src/HttpRequest.h
  7426. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7427. Made string listeral to static const std::string:
  7428. "Content-Range", "Content-Length"
  7429. * src/HttpHeader.cc
  7430. * src/HttpHeader.h
  7431. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7432. Made string listeral to static const std::string.
  7433. * src/HttpConnection.cc
  7434. * src/HttpHeader.cc
  7435. * src/HttpHeader.h
  7436. * src/HttpResponse.cc
  7437. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7438. Made string listeral to static const std::string.
  7439. * src/A2STR.cc
  7440. * src/A2STR.h
  7441. * src/SimpleLogger.cc
  7442. * src/SimpleLogger.h
  7443. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Made string literal to static const std::string.
  7445. Rewritten CookieParser::setField.
  7446. * src/A2STR.cc
  7447. * src/A2STR.h
  7448. * src/CookieBoxFactory.cc
  7449. * src/CookieBoxFactory.h
  7450. * src/CookieParser.cc
  7451. * src/CookieParser.h
  7452. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7453. Made string literal to static const std::string
  7454. * src/DHTAbstractMessage.cc
  7455. * src/DHTAnnouncePeerMessage.cc
  7456. * src/DHTAnnouncePeerMessage.h
  7457. * src/DHTAnnouncePeerReplyMessage.cc
  7458. * src/DHTAnnouncePeerReplyMessage.h
  7459. * src/DHTFindNodeMessage.cc
  7460. * src/DHTFindNodeMessage.h
  7461. * src/DHTFindNodeReplyMessage.cc
  7462. * src/DHTFindNodeReplyMessage.h
  7463. * src/DHTGetPeersMessage.cc
  7464. * src/DHTGetPeersMessage.h
  7465. * src/DHTGetPeersReplyMessage.cc
  7466. * src/DHTGetPeersReplyMessage.h
  7467. * src/DHTMessage.cc
  7468. * src/DHTMessage.h
  7469. * src/DHTMessageFactoryImpl.cc
  7470. * src/DHTMessageReceiver.cc
  7471. * src/DHTPingMessage.cc
  7472. * src/DHTPingMessage.h
  7473. * src/DHTPingReplyMessage.cc
  7474. * src/DHTPingReplyMessage.h
  7475. * src/DHTQueryMessage.cc
  7476. * src/DHTQueryMessage.h
  7477. * src/DHTResponseMessage.cc
  7478. * src/DHTResponseMessage.h
  7479. * src/DHTUnknownMessage.cc
  7480. * src/DHTUnknownMessage.h
  7481. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7482. Made string literal to static const std::string
  7483. * src/BtChokeMessage.cc (toString)
  7484. * src/BtHaveAllMessage.cc (toString)
  7485. * src/BtHaveNoneMessage.cc (toString)
  7486. * src/BtInterestedMessage.cc (toString)
  7487. * src/BtNotInterestedMessage.cc (toString)
  7488. * src/BtUnchokeMessage.cc (toString)
  7489. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7490. Replaced "" with static const variable A2STR::NIL.
  7491. Replaced string comparison against "" with std::string::empty().
  7492. Added PROTO_* to Request class and use them as a protocol string
  7493. constant.
  7494. Made "started", "stopped", "completed" static const variable in
  7495. AnnounceList class.
  7496. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. Updated translations. Great thanks to translators.
  7498. * po/ca.po
  7499. * po/de.po
  7500. * po/fr.po
  7501. * po/it.po
  7502. * po/ja.po
  7503. * po/ru.po
  7504. * po/zh_CN.po
  7505. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Updated man page; categorized options and fixed typo.
  7507. * doc/aria2c.1.txt
  7508. * doc/aria2c.1.html
  7509. * doc/aria2c.1
  7510. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7511. Removed const ref
  7512. * src/MetalinkEntry.cc (AddProtocolPreference)
  7513. * src/RequestGroup.cc (FindServerHostByHostname)
  7514. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7515. Rewritten Accept-Features handling.
  7516. * src/HttpRequestCommand.cc (createHttpRequest)
  7517. * src/a2functional.h
  7518. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Changed method signature:
  7520. DHTAbstractNodeLookupTask::toEntries
  7521. * src/DHTAbstractNodeLookupTask.cc
  7522. * src/DHTAbstractNodeLookupTask.h
  7523. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. Changed method signature:
  7525. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7526. * src/BtContext.h
  7527. * src/DefaultBtContext.cc
  7528. * src/DefaultBtContext.h
  7529. * src/DefaultBtInteractive.cc
  7530. * test/DefaultBtContextTest.cc
  7531. * test/MockBtContext.h
  7532. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Changed method signature:
  7534. MultiFileAllocationIterator::makeDiskWriterEntries
  7535. * src/MultiFileAllocationIterator.cc
  7536. * src/MultiFileAllocationIterator.h
  7537. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7538. Changed method sinature:
  7539. MetalinkEntry::toFileEntry,
  7540. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7541. Metalinker::queryEntry
  7542. * src/Metalink2RequestGroup.cc
  7543. * src/MetalinkEntry.cc
  7544. * src/MetalinkEntry.h
  7545. * src/MetalinkHelper.cc
  7546. * src/MetalinkHelper.h
  7547. * src/Metalinker.cc
  7548. * src/Metalinker.h
  7549. * src/main.cc
  7550. * test/MetalinkHelperTest.cc
  7551. * test/MetalinkerTest.cc
  7552. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7553. Changed method sinature:
  7554. RequestGroup::getURIs
  7555. * src/RequestGroup.cc
  7556. * src/RequestGroup.h
  7557. * test/Metalink2RequestGroupTest.cc
  7558. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7559. Changed method signature:
  7560. PeerListProcessor::extractPeer
  7561. * src/CompactPeerListProcessor.cc
  7562. * src/CompactPeerListProcessor.h
  7563. * src/DefaultBtAnnounce.cc
  7564. * src/DefaultPeerListProcessor.cc
  7565. * src/DefaultPeerListProcessor.h
  7566. * src/DelegatingPeerListProcessor.cc
  7567. * src/DelegatingPeerListProcessor.h
  7568. * src/PeerListProcessor.h
  7569. * src/UTPexExtensionMessage.cc
  7570. * test/DefaultPeerListProcessorTest.cc
  7571. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Changed method signature:
  7573. BtRequestFactory::createRequestMessages,
  7574. BtRequestFactory::createRequestMessagesOnEndGame
  7575. * src/BtRequestFactory.h
  7576. * src/DefaultBtInteractive.cc
  7577. * src/DefaultBtRequestFactory.cc
  7578. * src/DefaultBtRequestFactory.h
  7579. * test/DefaultBtRequestFactoryTest.cc
  7580. * test/MockBtRequestFactory.h
  7581. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7582. Changed method signature:
  7583. PieceStorage::getInFlightPieces
  7584. * src/DefaultBtProgressInfoFile.cc
  7585. * src/DefaultPieceStorage.cc
  7586. * src/DefaultPieceStorage.h
  7587. * src/PieceStorage.h
  7588. * src/UnknownLengthPieceStorage.cc
  7589. * src/UnknownLengthPieceStorage.h
  7590. * test/DefaultBtProgressInfoFileTest.cc
  7591. * test/MockPieceStorage.h
  7592. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7593. Changed method signature:
  7594. PostDownloadHandler::getNextRequestGroups
  7595. Metalink2RequestGroup::generate
  7596. RequestGroup::postDownloadProcessing
  7597. * src/BtPostDownloadHandler.cc
  7598. * src/BtPostDownloadHandler.h
  7599. * src/Metalink2RequestGroup.cc
  7600. * src/Metalink2RequestGroup.h
  7601. * src/MetalinkPostDownloadHandler.cc
  7602. * src/MetalinkPostDownloadHandler.h
  7603. * src/PostDownloadHandler.h
  7604. * src/RequestGroup.cc
  7605. * src/RequestGroup.h
  7606. * src/RequestGroupMan.cc
  7607. * src/main.cc
  7608. * test/BtPostDownloadHandlerTest.cc
  7609. * test/Metalink2RequestGroupTest.cc
  7610. * test/MetalinkPostDownloadHandlerTest.cc
  7611. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7612. Rewritten AccRequestGroup
  7613. * src/main.cc
  7614. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Rewritten.
  7616. * src/TaggedItem.cc (toTagString)
  7617. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Rewritten Accept-Features handling.
  7619. * src/HttpRequestCommand.cc (createHttpRequest)
  7620. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Rewritten accept types handling.
  7622. * HttpRequest.cc (createRequest)
  7623. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Rewritten
  7625. * src/FeatureConfig.cc (featureSummary)
  7626. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7627. Changed method signature:
  7628. PeerStorage::getActivePeers
  7629. * src/DHTPeerAnnounceEntry.cc
  7630. * src/DefaultPeerStorage.cc
  7631. * src/DefaultPeerStorage.h
  7632. * src/PeerStorage.h
  7633. * test/DefaultPeerStorageTest.cc
  7634. * test/MockPeerStorage.h
  7635. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. Changed method signature:
  7637. DHTPeerAnnounceStorage::getPeers,
  7638. DHTPeerAnnounceEntry::getPeers
  7639. * src/DHTGetPeersMessage.cc
  7640. * src/DHTPeerAnnounceEntry.cc
  7641. * src/DHTPeerAnnounceEntry.h
  7642. * src/DHTPeerAnnounceStorage.cc
  7643. * src/DHTPeerAnnounceStorage.h
  7644. * test/DHTAnnouncePeerMessageTest.cc
  7645. * test/DHTPeerAnnounceEntryTest.cc
  7646. * test/DHTPeerAnnounceStorageTest.cc
  7647. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. Changed method signature:
  7649. NameResolver::resolve
  7650. * src/DHTEntryPointNameResolveCommand.cc
  7651. * src/InitiateConnectionCommand.cc
  7652. * src/NameResolver.cc
  7653. * src/NameResolver.h
  7654. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7655. Changed method signature:
  7656. PieceStorage::getAdvertisedPieceIndexes
  7657. * src/DefaultBtInteractive.cc
  7658. * src/DefaultPieceStorage.cc
  7659. * src/DefaultPieceStorage.h
  7660. * src/PieceStorage.h
  7661. * src/UnknownLengthPieceStorage.h
  7662. * test/MockPieceStorage.h
  7663. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7664. Changed method signature:
  7665. SegmentMan::getInFlightSegment
  7666. * src/AbstractCommand.cc
  7667. * src/SegmentMan.cc
  7668. * src/SegmentMan.h
  7669. * test/SegmentManTest.cc
  7670. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Changed method signature:
  7672. DHTAbstractNodeLookupTask::getNodesFromMessage
  7673. * src/DHTAbstractNodeLookupTask.cc
  7674. * src/DHTAbstractNodeLookupTask.h
  7675. * src/DHTNodeLookupTask.cc
  7676. * src/DHTNodeLookupTask.h
  7677. * src/DHTPeerLookupTask.cc
  7678. * src/DHTPeerLookupTask.h
  7679. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7680. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7681. * src/AbstractCommand.cc
  7682. * src/BtCheckIntegrityEntry.cc
  7683. * src/BtCheckIntegrityEntry.h
  7684. * src/BtFileAllocationEntry.cc
  7685. * src/BtFileAllocationEntry.h
  7686. * src/BtSetup.cc
  7687. * src/BtSetup.h
  7688. * src/CheckIntegrityCommand.cc
  7689. * src/CheckIntegrityEntry.h
  7690. * src/ChecksumCheckIntegrityEntry.cc
  7691. * src/ChecksumCheckIntegrityEntry.h
  7692. * src/DHTSetup.cc
  7693. * src/DHTSetup.h
  7694. * src/DownloadEngine.cc
  7695. * src/FileAllocationCommand.cc
  7696. * src/FileAllocationEntry.h
  7697. * src/RequestGroup.cc
  7698. * src/RequestGroup.h
  7699. * src/RequestGroupMan.cc
  7700. * src/RequestGroupMan.h
  7701. * src/StreamCheckIntegrityEntry.cc
  7702. * src/StreamCheckIntegrityEntry.h
  7703. * src/StreamFileAllocationEntry.cc
  7704. * src/StreamFileAllocationEntry.h
  7705. * src/TrackerWatcherCommand.cc
  7706. * src/a2functional.h
  7707. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Changed method signature:
  7709. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7710. DHTBucket::getGoodNodes,
  7711. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7712. * src/BNode.cc
  7713. * src/BNode.h
  7714. * src/DHTAbstractNodeLookupTask.cc
  7715. * src/DHTAutoSaveCommand.cc
  7716. * src/DHTBucket.cc
  7717. * src/DHTBucket.h
  7718. * src/DHTBucketRefreshTask.cc
  7719. * src/DHTFindNodeMessage.cc
  7720. * src/DHTGetPeersMessage.cc
  7721. * src/DHTRoutingTable.cc
  7722. * src/DHTRoutingTable.h
  7723. * test/BNodeTest.cc
  7724. * test/DHTBucketTest.cc
  7725. * test/DHTRoutingTableTest.cc
  7726. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. In piece selection functions, Pass std::deque<...> by reference rather
  7728. than returning it.
  7729. * src/BitfieldMan.cc
  7730. * src/BitfieldMan.h
  7731. * src/DefaultBtRequestFactory.cc
  7732. * src/DefaultPieceStorage.cc
  7733. * src/Piece.cc
  7734. * src/Piece.h
  7735. * test/BitfieldManTest.cc
  7736. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7737. Implemented rarest piece first piece selection strategy.
  7738. * src/AbstractBtMessage.cc
  7739. * src/AbstractBtMessage.h
  7740. * src/BitfieldMan.cc
  7741. * src/BitfieldMan.h
  7742. * src/BtBitfieldMessage.cc
  7743. * src/BtHaveAllMessage.cc
  7744. * src/BtHaveMessage.cc
  7745. * src/DefaultPieceStorage.cc
  7746. * src/DefaultPieceStorage.h
  7747. * src/PeerInteractionCommand.cc
  7748. * src/PieceStorage.h
  7749. * src/UnknownLengthPieceStorage.h
  7750. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7751. Rewritten readData and writeData.
  7752. * src/MultiDiskAdaptor.cc
  7753. * src/MultiDiskAdaptor.h
  7754. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Move \n out of the message "Usage: ...".
  7756. * src/version_usage.cc
  7757. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Bump up version number to 0.13.2b.
  7759. * configure.ac
  7760. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7761. Added const qualifier to argument Exception& e.
  7762. * src/Logger.h
  7763. * src/SimpleLogger.cc
  7764. * src/SimpleLogger.h
  7765. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7766. Pool connection when CWD, SIZE command fails.
  7767. * src/FtpNegotiationCommand.cc
  7768. * src/FtpNegotiationCommand.h
  7769. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7770. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7771. * src/HttpResponseCommand.cc
  7772. * src/HttpSkipResponseCommand.cc
  7773. * src/HttpSkipResponseCommand.h
  7774. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Pool connection when a server returns 4xx, 5xx responses.
  7776. * src/HttpNullDownloadCommand.cc
  7777. * src/HttpNullDownloadCommand.h
  7778. * src/HttpResponse.cc
  7779. * src/HttpResponse.h
  7780. * src/HttpResponseCommand.cc
  7781. * src/HttpResponseCommand.h
  7782. * test/HttpResponseTest.cc
  7783. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7784. Print usage when no URL is specifed or bad command-line option is
  7785. specified.
  7786. * src/HelpItemFactory.cc
  7787. * src/help_tags.h
  7788. * src/option_processing.cc
  7789. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7790. Removed duplicate log message.
  7791. * src/AbstractCommand.cc (asyncResolveHostname)
  7792. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7793. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7794. Changed -j option's default value from 5 to 1.
  7795. Added new examples using protocol auto detection feature.
  7796. Removed -T, -M usage where it can be omitted.
  7797. * doc/aria2c.1.txt
  7798. * doc/aria2c.1.html
  7799. * doc/aria2c.1.txt
  7800. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7801. Updated command-line usage text, so that it tells users that they
  7802. can specify any number of torrent files and metalink files in
  7803. command-line.
  7804. * src/version_usage.cc
  7805. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Changed the default value of -j option to 1.
  7807. * src/HelpItemFactory.cc
  7808. * src/option_processing.cc
  7809. * src/usage_text.h
  7810. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7811. Added the ability to reuse connection in FTP and it is enabled by
  7812. default. It can be disabled by --ftp-reuse-connection=false option.
  7813. * src/Command.cc
  7814. * src/DownloadCommand.cc
  7815. * src/FtpDownloadCommand.cc
  7816. * src/FtpDownloadCommand.h
  7817. * src/FtpFinishDownloadCommand.cc
  7818. * src/FtpFinishDownloadCommand.h
  7819. * src/FtpInitiateConnectionCommand.cc
  7820. * src/FtpNegotiationCommand.cc
  7821. * src/FtpNegotiationCommand.h
  7822. * src/HelpItemFactory.cc
  7823. * src/Makefile.am
  7824. * src/Makefile.in
  7825. * src/OptionHandlerFactory.cc
  7826. * src/option_processing.cc
  7827. * src/prefs.h
  7828. * src/usage_text.h
  7829. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. Call Command::transitStatus() before calling Command::execute(),
  7831. so that the status change made in execute() is not cleared.
  7832. * src/DownloadEngine.cc
  7833. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7834. Removed forward declaration of SocketCore class.
  7835. * src/HttpDownloadCommand.h
  7836. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7838. in InitiateConnectionCommandFactory. They should be set only when
  7839. the protocol is HTTP or HTTPS.
  7840. * src/InitiateConnectionCommandFactory.cc
  7841. * src/RequestGroup.cc
  7842. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7843. Fixed infinite loop in checksum checking.
  7844. * src/IteratableChecksumValidator.cc
  7845. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7846. Set _supportsPersistentConnection to true by default.
  7847. * src/Request.cc
  7848. * src/RequestGroup.cc
  7849. * test/HttpRequestTest.cc
  7850. * test/RequestTest.cc
  7851. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Added timeout to socket pool. The default timeout is 15 seconds,
  7853. which is the same value Apache uses.
  7854. * src/DownloadEngine.cc
  7855. * src/DownloadEngine.h
  7856. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7857. Fixed misuse of multimap::find()
  7858. * src/HttpHeader.cc
  7859. * test/HttpHeaderTest.cc
  7860. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7861. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7862. option.
  7863. The asynchronous DNS is not capable of IPv6 yet.
  7864. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7865. least for HTTP download.
  7866. * src/AbstractCommand.cc
  7867. * src/AbstractCommand.h
  7868. * src/AsyncNameResolver.cc
  7869. * src/AsyncNameResolver.h
  7870. * src/DHTEntryPointNameResolveCommand.cc
  7871. * src/DHTEntryPointNameResolveCommand.h
  7872. * src/DownloadEngine.cc
  7873. * src/DownloadEngine.h
  7874. * src/FtpInitiateConnectionCommand.cc
  7875. * src/FtpInitiateConnectionCommand.h
  7876. * src/HelpItemFactory.cc
  7877. * src/HttpInitiateConnectionCommand.cc
  7878. * src/HttpInitiateConnectionCommand.h
  7879. * src/InitiateConnectionCommand.cc
  7880. * src/InitiateConnectionCommand.h
  7881. * src/Makefile.am
  7882. * src/Makefile.in
  7883. * src/NameResolver.cc
  7884. * src/NameResolver.h
  7885. * src/OptionHandlerFactory.cc
  7886. * src/SocketCore.cc
  7887. * src/SocketCore.h
  7888. * src/Util.cc
  7889. * src/Util.h
  7890. * src/option_processing.cc
  7891. * src/prefs.h
  7892. * src/usage_text.h
  7893. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Updated man page: --quiet, --header were added.
  7895. --metalink-servers and --enable-http-keep-alive option were updated.
  7896. * doc/aria2c.1
  7897. * doc/aria2c.1.html
  7898. * doc/aria2c.1.txt
  7899. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. Enable HTTP keep-alive by default.
  7901. * src/HelpItemFactory.cc
  7902. * src/option_processing.cc
  7903. * src/usage_text.h
  7904. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7905. Disable http keep-alive if the remote server is not HTTP/1.1.
  7906. * src/HttpConnection.cc
  7907. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Receive content body of 302 response so that the connection can be
  7909. reused later when http keep-alive is enabled.
  7910. * src/HttpNullDownloadCommand.cc
  7911. * src/HttpNullDownloadCommand.h
  7912. * src/HttpResponseCommand.cc
  7913. * src/HttpResponseCommand.h
  7914. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. const SharedHandle<Request> -> const SharedHandle<Request>&
  7916. * src/FtpDowndloadCommand.cc
  7917. * src/FtpDowndloadCommand.h
  7918. * src/HttpDownloadCommand.cc
  7919. * src/HttpDownloadCommand.h
  7920. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7921. Fixed the bug that the control file(.aria2 file) is not renamed
  7922. according to tryAutoFileRenaming().
  7923. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7924. its control file exist, use them and continue download.
  7925. The old implementation didn't take into account of control file's
  7926. existence, so basically you couldn't continue download of renamed file.
  7927. * src/BtProgressInfoFile.h
  7928. * src/DefaultBtProgressInfoFile.cc
  7929. * src/DefaultBtProgressInfoFile.h
  7930. * src/NullProgressInfoFile.h
  7931. * src/RequestGroup.cc
  7932. * test/DefaultBtProgressInfoFileTest.cc
  7933. * test/MockBtProgressInfoFile.h
  7934. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Change the default value of --metalink-servers option from `5' to `1'.
  7936. * src/HelpItemFactory.cc
  7937. * src/option_processing.cc
  7938. * src/usage_text.h
  7939. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. Reimplemented transparent metalink using Accept request header.
  7941. * src/HttpRequest.cc
  7942. * src/HttpRequest.h
  7943. * src/HttpRequestCommand.cc
  7944. * src/Metalink2RequestGroup.cc
  7945. * src/RequestGroup.cc
  7946. * src/RequestGroup.h
  7947. * test/HttpRequestTest.cc
  7948. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7949. Bump up version number to 0.13.2a
  7950. * configure.ac
  7951. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7952. Updated configure.ac using the result of autoscan.
  7953. * configure.ac
  7954. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7955. Fixed compilation error without gcrypt/openssl.
  7956. * src/DownloadCommand.cc
  7957. * src/DownloadCommand.h
  7958. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Reorganized version information so that it can be displayed in a
  7960. standard terminal screen without scrolling.
  7961. Removed http, ftp from Configuration section, because they are always
  7962. enabled.
  7963. * src/FeatureConfig.cc
  7964. * src/FeatureConfig.h
  7965. * src/main.cc
  7966. * src/messageDigest.cc
  7967. * src/messageDigest.h
  7968. * src/version_usage.cc
  7969. * test/FeatureConfigTest.cc
  7970. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7971. Masked user ID in log.
  7972. * src/FtpConnection.cc (sendUser)
  7973. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Removed query part from filename in HTTP download. The query part means
  7975. the substring after "?" in URL. Firefox seems do the same thing.
  7976. A query part is sometimes very long and not suitable to filename,
  7977. so I think it is better to remove it from filename.
  7978. * src/HttpRequest.cc
  7979. * src/HttpRequest.h
  7980. * src/Request.cc
  7981. * src/Request.h
  7982. * test/HttpRequestTest.cc
  7983. * test/RequestTest.cc
  7984. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7985. Rewritten Exception class. Throw exception object, not its pointer and
  7986. catch by reference, so that remove problematic delete operator for
  7987. catched exception.
  7988. * src/Exception.cc
  7989. * src/Exception.h
  7990. * test/ExceptionTest.cc
  7991. * src/*: All files throwing/catching exception.
  7992. * test/*: All files throwing/catching exception.
  7993. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7994. Now auto protocol detection is enabled without -Z option.
  7995. But there is a important difference between with/without -Z optoin.
  7996. For example, if you type:
  7997. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7998. then, aria2 interprets there are 3 request groups:
  7999. (1) http://host/file, http://mirror/file <-- multi-source download
  8000. (2) file1.torrent
  8001. (3) file2.metalink
  8002. On the other hand, if you invoke above command with -Z option, it is
  8003. interpreted as 4 request groups:
  8004. (1) http://host/file
  8005. (2) file1.torrent
  8006. (3) file2.metalink
  8007. (4) http://mirror/file
  8008. I think usually user don't mix multi-source URLs and torrent files, so
  8009. there is no big problem here.
  8010. * src/main.cc
  8011. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8012. Fixed the bug that causes segmentaion fault when reading XML containing
  8013. unescapsed character like '&'.
  8014. Also a modification was made which avoids adding unnecessary
  8015. characters stack and appending unused string.
  8016. * src/ExpatMetalinkProcessor.cc
  8017. * src/FileMetalinkParserState.h
  8018. * src/FilesMetalinkParserState.h
  8019. * src/FinMetalinkParserState.h
  8020. * src/HashMetalinkParserState.h
  8021. * src/InitialMetalinkParserState.h
  8022. * src/LanguageMetalinkParserState.h
  8023. * src/MetalinkMetalinkParserState.h
  8024. * src/MetalinkParserState.h
  8025. * src/MetalinkParserStateMachine.cc
  8026. * src/MetalinkParserStateMachine.h
  8027. * src/OSMetalinkParserState.h
  8028. * src/PieceHashMetalinkParserState.h
  8029. * src/PiecesMetalinkParserState.h
  8030. * src/ResourcesMetalinkParserState.h
  8031. * src/SizeMetalinkParserState.h
  8032. * src/SkipTagMetalinkParserState.h
  8033. * src/URLMetalinkParserState.h
  8034. * src/VerificationMetalinkParserState.h
  8035. * src/VersionMetalinkParserState.h
  8036. * src/XML2SAXMetalinkProcessor.cc
  8037. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Added StringFormat class, which internally calls vasprintf.
  8039. operator<< is defined for this class, so it can be used with iostream
  8040. classes nicely. SimpleLogger and following functions are rewritten
  8041. using StringFormat class.
  8042. Besides, now Logger class's methods are non-const, many classes
  8043. that has a const Logger* as a member variable are modified to remove
  8044. const qualifier from the variable declaration.
  8045. * src/HelpItemFactory.cc
  8046. * src/Request.cc
  8047. * src/SimpleLogger.cc
  8048. * src/StringFormat.cc
  8049. * src/StringFormat.h
  8050. * src/Util.cc
  8051. * src/option_processing.cc
  8052. * src/version_usage.cc
  8053. * test/StringFormatTest.cc
  8054. * src/*.h: The classes that has const Logger* as a member variable.
  8055. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8057. failed. Also fixed memory link when exception is thrown there.
  8058. * src/main.cc (AccRequestGroup)
  8059. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Added build-in "Accept-Features" support. For now only "metalink" is
  8061. used in this header field.
  8062. This "metalink" value is removed from the list when connecting URLs
  8063. fed by metalink file to avoid loop in "transparent" metlaink.
  8064. * src/HttpRequest.cc
  8065. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8066. header is also held in this variable. Also renamed setUserHeaders as
  8067. addHeader and it was rewritten to add header not just to clear the old
  8068. value.
  8069. * src/HttpRequestCommand.cc
  8070. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8071. from "Accept-Features" list.
  8072. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8073. default.
  8074. * src/RequestGroup.h
  8075. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8076. * src/a2functional.h: Included <string> because Concat class depends on
  8077. it.
  8078. * test/HttpRequestTest.cc
  8079. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Added comment
  8081. * src/RequestGroup.cc (createNextCommand)
  8082. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. Capitalized METHOD_GET and METHOD_HEAD
  8084. * src/Request.cc
  8085. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8086. Added getDownloadResults() method
  8087. * src/RequestGroupMan.cc
  8088. * src/RequestGroupMan.h
  8089. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8090. Fixed the bug that aria2 exits when commands is empty() but
  8091. _routineCommands are not.
  8092. * src/DownloadEngine.cc
  8093. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. Use the default value pulled from Option object in HelpItemFactory.
  8095. except options whose defualt value is embedded in a usage text.
  8096. * src/HelpItemFactory.cc
  8097. * src/HelpItemFactory.h
  8098. * src/option_processing.cc
  8099. * src/version_usage.cc
  8100. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. Added --quiet option to make aria2 quiet (no console output).
  8102. --quiet option is tagged with ADVANCED.
  8103. * src/HelpItemFactory.cc
  8104. * src/LogFactory.cc
  8105. * src/LogFactory.h
  8106. * src/MultiUrlRequestInfo.cc
  8107. * src/MultiUrlRequestInfo.h
  8108. * src/NullStatCalc.h: New class. This class prints nothing.
  8109. * src/OptionHandlerFactory.cc
  8110. * src/main.cc
  8111. * src/option_processing.cc
  8112. * src/prefs.h
  8113. * src/usage_text.h
  8114. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8116. * src/HelpItemFactory.cc (createHelpItems):
  8117. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8118. Fixed compilation error in ExpatMetalinkProcessor.cc
  8119. * src/ExpatMetalinkProcessor.cc
  8120. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8121. Reuse socket if the origin server supports HTTP keep-alive and
  8122. --enable-http-keep-alive or --enable-http-pipelining is given.
  8123. The current implementation doesn't reuse the connections established
  8124. against proxy server.
  8125. * src/AbstractCommand.cc
  8126. * src/DownloadEngine.cc
  8127. * src/DownloadEngine.h
  8128. * src/HttpDownloadCommand.cc
  8129. * src/HttpInitiateConnectionCommand.cc
  8130. * src/HttpResponseCommand.cc
  8131. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8132. Rewritten HTTP keep-alive and pipelining routine.
  8133. * src/AbstractCommand.cc
  8134. * src/HttpConnection.cc
  8135. * src/HttpDownloadCommand.cc
  8136. * src/HttpRequest.cc
  8137. * src/HttpRequestCommand.cc
  8138. * src/HttpResponseCommand.cc
  8139. * src/Request.cc
  8140. * src/Request.h
  8141. * src/RequestGroup.cc
  8142. * test/HttpRequestTest.cc
  8143. * test/HttpResponseTest.cc
  8144. * test/RequestTest.cc
  8145. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8146. Added missing setUserHeaders call
  8147. * src/HttpRequestCommand.cc
  8148. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8150. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8151. waste of time because it is more likey false.
  8152. * src/FileAllocationDispatcherCommand.cc (execute)
  8153. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8154. Now HTTP status and version are a member variable of HttpHeader.
  8155. HTTP status is processed as a string, not integer.
  8156. * src/AbstractProxyResponseCommand.cc
  8157. * src/HttpConnection.cc
  8158. * src/HttpHeader.cc
  8159. * src/HttpHeader.h
  8160. * src/HttpHeaderProcessor.cc
  8161. * src/HttpHeaderProcessor.h
  8162. * src/HttpResponse.cc
  8163. * src/HttpResponse.h
  8164. * test/HttpHeaderProcessorTest.cc
  8165. * test/HttpResponseTest.cc
  8166. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. Added --header option. You can specify any number of additional HTTP headers
  8168. like:
  8169. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8170. Unlike other commad-line option, you can use --header option multiple times.
  8171. * src/HelpItemFactory.cc
  8172. * src/HttpRequest.{cc, h}
  8173. * src/HttpRequestCommand.cc
  8174. * src/OptionHandlerFactory.cc
  8175. * src/OptionHandlerImpl.h
  8176. * src/option_processing.cc
  8177. * src/prefs.h
  8178. * src/usage_text.h
  8179. * test/HttpRequestTest.cc (testUserHeaders)
  8180. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8181. Eliminates the time lag between sequential downloads and commands in
  8182. the same RequestGroup.
  8183. In old implementation, aria2 occasionally waits 1 seconds before
  8184. executing next command or RequestGroup.
  8185. This is really a waste of time, and new implementation eliminates
  8186. this unnecessary time lag.
  8187. * src/AbstractCommand.cc
  8188. * src/AutoSaveCommand.cc
  8189. * src/CheckIntegrityCommand.cc
  8190. * src/Command.{cc, h}
  8191. * src/DownloadEngine.{cc, h}
  8192. * src/DownloadEngineFactory.cc
  8193. * src/FileAllocationCommand.cc
  8194. * src/FileAllocationDispatcherCommand.cc
  8195. * src/FillRequestGroupCommand.cc
  8196. * src/FtpInitiateConnectionCommand.cc
  8197. * src/HaveEraseCommand.cc
  8198. * src/HttpInitiateConnectionCommand.cc
  8199. * src/HttpResponseCommand.cc
  8200. * src/RealtimeCommand.cc
  8201. * src/RequestGroup.cc
  8202. * src/RequestGroupMan.cc
  8203. * src/StreamFileAllocationEntry.cc
  8204. * src/TimeBasedCommand.{cc, h}
  8205. * src/TimedHaltCommand.cc
  8206. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8208. keyword explicit and SharedHandle's default constructor initializes
  8209. its internal obj to null, old implementation initializes it using
  8210. obj's default constructor.
  8211. To assign null, write SharedHandle<T> x(...); x.reset();
  8212. TODO: test/SharedHandleTest.cc needs more tests.
  8213. * src/SharedHandle.h
  8214. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8215. Fixed type in man page.
  8216. * doc/aria2c.1.txt
  8217. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8219. * src/SimpleLogger.{cc, h}
  8220. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8221. Implemented auto protocol detection.
  8222. Now you can do:
  8223. aria2c -Z http://host/file file1.torrent file2.metalink
  8224. (Note: -Z option is required for auto protcol detection.)
  8225. Then aria2c downloads 3 files simultaneously:
  8226. 1. http://host/file
  8227. 2. file1.torrent <-- read local torrent file
  8228. 3. file2.metalink <-- read local Metalink file.
  8229. Same thing goes with -i option. Assume your uris.txt contans:
  8230. http://host/file
  8231. file1.torrent
  8232. file2.metalink
  8233. Then you can do: aria2c -i uris.txt
  8234. (Note: -Z option is not needed if -i option is given.)
  8235. * src/main.cc
  8236. * src/ProtocolDetector.{cc, h}
  8237. * test/ProtocolDetectorTest.cc
  8238. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8240. installed
  8241. * src/ARC4Encryptor.h
  8242. * src/ARC4Decryptor.h
  8243. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8244. Renamed argument from 'errno' to 'err', since errno is confused with
  8245. errno defined in errno.h.
  8246. * src/LibgcryptARC4Decryptor.h
  8247. * src/LibgcryptARC4Context.h
  8248. * src/LibgcryptDHKeyExchange.h
  8249. * src/LibgcryptARC4Encryptor.h
  8250. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Rewritten choking algorithm.
  8252. * src/PeerChokeCommand.{cc, h}
  8253. * src/BtInterestedMessage.cc
  8254. * src/PeerSessionResource.{cc, h}
  8255. * src/DefaultPeerStorage.{cc, h}
  8256. * src/BtNotInterestedMessage.cc
  8257. * src/DefaultBtMessageDispatcher.{cc, h}
  8258. * src/BtMessageDispatcher.h
  8259. * src/Peer.{cc, h}
  8260. * src/BtLeecherStateChoke.{cc, h}
  8261. * src/BtSetup.cc
  8262. * src/BtSeederStateChoke.{cc, h}
  8263. * src/PeerStorage.h
  8264. * test/MockPeerStorage.h
  8265. * test/MockBtMessageDispatcher.h
  8266. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Fixed compilation error on x84-64 platform.
  8268. * src/AuthConfig.cc: Included ostream.
  8269. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Rewritten getBasename() and getDirname(), without standard library
  8271. basename(), dirname().
  8272. * src/File.cc
  8273. * test/FileTest.cc
  8274. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Added Simplified Chinese translation. Also updated the following
  8276. translations: Polish, Dutch, German. Great thanks to all translators.
  8277. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8278. Suppress content-range error when 'Content-Range' response header
  8279. doesn't contains bytes-unit specifier 'bytes'
  8280. * src/HttpHeader.cc (getRange)
  8281. * test/HttpHeaderTest.cc
  8282. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Fixed compilation error with g++-4.3
  8284. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8285. Added missing include files for MinGW
  8286. * test/HttpHeaderProcessorTest.cc
  8287. * test/DHTRoutingTableSerializerTest.cc
  8288. * test/DHTRoutingTableDeserializerTest.cc
  8289. * test/UriListParserTest.cc
  8290. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8291. Now download line is printed nicely with no garbage at the end of
  8292. line. I use ioctl to get the columns of terminal.
  8293. If stdout is redirected to another device, instead of carriage return,
  8294. end of line '\n' character is used. This is feature request#1909659
  8295. * src/ConsoleStatCalc.cc (calculateStat)
  8296. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Included a2time.h
  8298. * src/DHTMessageDispatcher.h
  8299. * src/DHTMessageEntry.h
  8300. * src/DHTReplaceNodeTask.h
  8301. * src/DHTMessageTracker.h
  8302. * src/Util.h
  8303. * src/CookieBox.h
  8304. * src/SocketCore.h
  8305. * src/DefaultBtMessageDispatcher.h
  8306. * src/SocketCore.cc
  8307. * src/Util.cc
  8308. * src/DHTPingTask.h
  8309. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8310. Fixed high memory footprint when DHT is enabled.
  8311. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8312. queued than it is processed and the queue is getting longer. As a
  8313. consequence, momory usage is increased.
  8314. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8315. replacement cache in DHTBucket which is described in Kademlia paper.
  8316. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8317. DHTReplaceNodeTask.
  8318. * src/DHTBucket.{h, cc}
  8319. (cacheNode): New function.
  8320. (getCachedNodes): New function.
  8321. (dropNode): Push back cached node to _nodes.
  8322. * test/DHTBucketTest.cc
  8323. (testCacheNode): New test
  8324. (testDropNode): New test
  8325. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8327. the unused 4KB memory when ssl is not used.
  8328. * src/SocketCore.cc
  8329. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Added summary log for peer announce storage.
  8331. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8332. Removed cast
  8333. * src/DefaultPeerStorage.cc (addPeer)
  8334. Log exception message
  8335. * src/DHTMessageTracker.cc (handleTimeout)
  8336. Fixed casting
  8337. * test/HttpRequestTest.cc
  8338. * test/MetalinkProcessorTest.cc
  8339. * test/PieceTest.cc
  8340. * test/MetalinkEntryTest.cc
  8341. * test/SequenceTest.cc
  8342. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8343. * src/ParameterizedStringParser.cc (createLoop):
  8344. Removed unused variable sstep.
  8345. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8346. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. * src/Util.{h, cc}
  8348. (parseUInt): New function.
  8349. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8350. The actual range is uint32_t.
  8351. * test/UtilTest.cc
  8352. * src/ParameterizedStringParser.cc:
  8353. Use Util::parseUInt() for loop variables.
  8354. * test/ParameterizedStringParserTest.cc
  8355. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8356. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Rewritten the functions for binding port.
  8358. * src/DHTConnectionImpl.{h, cc}
  8359. * src/PeerListenCommand.{h, cc}
  8360. * src/DHTSetup.cc
  8361. * src/BtSetup.cc
  8362. * test/DHTConnectionImplTest.cc
  8363. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. type cleanup for allmost all remaining files.
  8365. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Type clarification
  8367. * src/PeerSessionResource.{h, cc}
  8368. * src/DefaultPieceStorage.{h, cc}
  8369. * src/Peer.{h, cc}
  8370. * test/PeerSessionResourceTest.cc
  8371. Use div function
  8372. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8373. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. Type clarification
  8375. * src/DefaultPeerStorage.{h, cc}
  8376. * test/DefaultPeerStorageTest.cc
  8377. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. Type clarification: size_t for length or size, uint64_t for file
  8379. length, off_t for file offset.
  8380. * src/DefaultBtProgressInfoFile.cc
  8381. * src/DefaultBtContext.{h, cc}
  8382. * src/DefaultBtInteractive.cc
  8383. * src/DownloadCommand.{h, cc}
  8384. * src/IteratableChunkChecksumValidator.{h, cc}
  8385. * src/SegmentMan.{h, cc}
  8386. * src/SingleFileDownloadContext.{h, cc}
  8387. * src/IteratableChecksumValidator.{h, cc}
  8388. * src/BtContext.h
  8389. * src/IteratableValidator.h
  8390. * src/DownloadContext.h
  8391. * test/SingleFileDownloadContextTest.cc
  8392. * test/DefaultBtContextTest.cc
  8393. * test/MockBtContext.h
  8394. * test/Metalink2RequestGroupTest.cc
  8395. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Type clarification: size_t for length or size, uint64_t for file
  8397. length, off_t for file offset.
  8398. * src/PiecedSegment.cc
  8399. * src/GrowSegment.h
  8400. * src/DefaultBtRequestFactory.h
  8401. * src/DefaultBtProgressInfoFile.cc
  8402. * src/UnknownLengthPieceStorage.h
  8403. * src/DefaultPieceStorage.cc
  8404. * src/UnknownLengthPieceStorage.cc
  8405. * src/DefaultBtInteractive.cc
  8406. * src/GrowSegment.cc
  8407. * src/BitfieldMan.h
  8408. * src/DownloadCommand.cc
  8409. * src/BtRequestFactory.h
  8410. * src/PiecedSegment.h
  8411. * src/DefaultPieceStorage.h
  8412. * src/Piece.cc
  8413. * src/DefaultBtRequestFactory.cc
  8414. * src/PieceStorage.h
  8415. * src/Segment.h
  8416. * src/Piece.h
  8417. * src/BitfieldMan.cc
  8418. * src/Util.cc
  8419. * test/DefaultBtProgressInfoFileTest.cc
  8420. * test/DefaultPieceStorageTest.cc
  8421. * test/MockPieceStorage.h
  8422. * test/BtRequestMessageTest.cc
  8423. * test/DefaultBtMessageDispatcherTest.cc
  8424. * test/BitfieldManTest.cc
  8425. * test/GrowSegmentTest.cc
  8426. * test/PieceTest.cc
  8427. * test/SegmentTest.cc
  8428. * test/SegmentManTest.cc
  8429. * test/DefaultBtRequestFactoryTest.cc
  8430. * test/MockBtRequestFactory.h
  8431. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. Fixed compilation error with --disable-nls
  8433. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8434. in gettext.h causes the problem.
  8435. * src/common.h
  8436. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Removed subPiece related functions.
  8438. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8439. * src/DefaultPieceStorage.{h, cc}
  8440. * test/PieceTest.cc
  8441. * test/DefaultPieceStorageTest.cc
  8442. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8443. Use unsigned char for data store.
  8444. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. Bump up version number to 0.13.0+1
  8446. * configure.ac
  8447. * Release 0.13.0+1
  8448. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Changed inactive connection timeout to 120.
  8450. To accept more mulually interested peers, disconnect peer when there
  8451. is no interest between us after certain time passed.
  8452. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8453. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8455. when compiled with async DNS support.
  8456. * src/DownloadEngine.cc
  8457. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8458. value '10' will be a little bit short when some DNS servers are
  8459. offline and several DNS servers are tried. It should be configured
  8460. by command-line option.
  8461. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8462. Merged Ross's mingw patch.
  8463. * src/DHTRoutingTableDeserializer.cc
  8464. * src/DHTRoutingTableSerializer.cc
  8465. * src/Platform.{h, cc}
  8466. * src/timegm.h
  8467. * src/gettimeofday.h
  8468. * src/getaddrinfo.h
  8469. * src/SocketCore.h
  8470. * src/common.h
  8471. * src/inet_aton.h
  8472. * src/DownloadEngine.h
  8473. * src/gai_strerror.h
  8474. * src/a2netcompat.h
  8475. * configure.ac
  8476. * configure
  8477. * aclocal.m4
  8478. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Included missing iostream.
  8480. * test/AllTest.cc
  8481. * test/BtDependencyTest.cc
  8482. * test/BtExtendedMessageTest.cc
  8483. * test/DHTConnectionImplTest.cc
  8484. * test/DHTMessageFactoryImplTest.cc
  8485. * test/DHTMessageTrackerEntryTest.cc
  8486. * test/DHTNodeTest.cc
  8487. * test/DHTRoutingTableSerializerTest.cc
  8488. * test/DefaultBtAnnounceTest.cc
  8489. * test/DefaultBtContextTest.cc
  8490. * test/DefaultBtMessageFactoryTest.cc
  8491. * test/DefaultExtensionMessageFactoryTest.cc
  8492. * test/HandshakeExtensionMessageTest.cc
  8493. * test/HttpResponseTest.cc
  8494. * test/MetalinkProcessorTest.cc
  8495. * test/MultiFileAllocationIteratorTest.cc
  8496. * test/SocketCoreTest.cc
  8497. * test/UTPexExtensionMessageTest.cc
  8498. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8499. Reorganized includes.
  8500. * src/NameResolver.cc
  8501. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Fixed compilation error without ares/c-ares
  8503. * src/NameResolver.h:
  8504. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Added a test for large file.
  8506. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8507. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8508. Fixed the bug that file size is ignored if size > INT32_MAX
  8509. * src/SizeMetalinkParserState.cc (endElement):
  8510. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8511. Bump up version number to 0.13.0
  8512. * configure.ac
  8513. * Release 0.13.0
  8514. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Updated Makfefile.am to make 'make dist' work.
  8516. Now packaged filename is aria2c-VERSION.tar.bz2.
  8517. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8518. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8519. Large file support is now configured by configure script.
  8520. * configure.ac
  8521. Removed unsused source files
  8522. * src/
  8523. * test/
  8524. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8525. Peer.h and BtContext.h respectively.
  8526. * src/Peer.h
  8527. * src/BtContext.h
  8528. Updated translations.
  8529. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8530. translations. Great thanks to all translators!;)
  8531. * po/*.{po, gmo}
  8532. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8533. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8534. statically declared sha1 MessageDigestContext.
  8535. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8536. initialization of short-lived MessageDigestContext.
  8537. * src/MessageDigestHelper.{h, cc}
  8538. * src/main.cc
  8539. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8540. the initialization of MessageDigestContext every time in validating
  8541. chunk checksum.
  8542. * src/DownloadCommand.{h, cc}
  8543. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Add a file descriptor which connected to fast peer(latency<1500) to
  8545. select(). This change reduced CPU load.
  8546. * src/PeerInteractionCommand.cc
  8547. * src/DefaultBtInteractive.{h, cc}
  8548. * src/BtInteractive.h
  8549. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Fixed the previous insufficient fix for possible busy loop.
  8551. * src/MSEHandshake.cc (identifyHandshakeType)
  8552. Removed unused functions.
  8553. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8554. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Fixed possible busy loop if first 20 bytes are not received for a few
  8556. minutes.
  8557. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8558. * src/ReceiverMSEHandshakeCommand.cc
  8559. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8560. Fixed compilation error
  8561. * src/ExpatMetalinkProcessor.cc
  8562. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8564. * src/DHTBucket.cc
  8565. Removed unnecessary cast.
  8566. * src/HandshakeExtensionMessage.cc
  8567. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8569. is missing.
  8570. * src/OptionHandlerFactory.cc
  8571. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8572. Fixed the bug that HAVE message is not sent for a piece they are
  8573. downloaded fom http/ftp server before any BitTorrent handshake is done
  8574. with peers.
  8575. * src/DefaultBtInteractive.cc
  8576. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8577. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8578. * src/Makefile.am
  8579. * src/Makefile.in
  8580. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. Updated README. Added html version of README and man page.
  8582. * README
  8583. * README.html
  8584. * readme2html: Shell script to generate README.html from README using
  8585. asciidoc.
  8586. * doc/aria2c.1.html
  8587. * doc/makeman: Added the line to generate aria2c.1.html
  8588. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8589. Fixed offset calculation.
  8590. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8591. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8592. Rewritten itos and uitos using template. llitos and ullitos are
  8593. replaced with itos and uitos respectively.
  8594. * src/Util.{h, cc}
  8595. * test/UtilTest.cc
  8596. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8597. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8598. of the number of bytes required for storing public key and shared
  8599. secret.
  8600. * src/LibgcryptDHKeyExchange.h
  8601. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8602. * src/MSEHandshake.cc
  8603. * test/DHKeyExchangeTest.cc
  8604. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Removed since they are not used.
  8606. * src/Xml2MetalinkProcessor.{h, cc}
  8607. * src/Socket.cc
  8608. * src/SegmentSplitter.{h, cc}
  8609. * test/Xml2MetalinkProcessorTest.cc
  8610. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Fixed the bug that prevents aria2 from stopping other than by pressing
  8612. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8613. option. aria2 doesn't stop even after --seed-time is satisfied and
  8614. continues to output blank lines in the console.
  8615. * src/ReceiverMSEHandshakeCommand.cc
  8616. * src/PeerReceiveHandshakeCommand.cc
  8617. * src/PeerListenCommand.cc
  8618. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Bump up version number to 0.13.0rc
  8620. * configure.ac
  8621. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Updated man page and some usage text.
  8623. * doc/aria2c.1.txt
  8624. * src/usage_text.h
  8625. * po/*.{po, gmo}
  8626. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Updated translations. Added Finnish and Hebrew translations.
  8628. Great thanks to all translators!
  8629. * po/*.{po, gmo}
  8630. * po/LINGUAS
  8631. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. Log more detailed information about each message.
  8633. * src/DHTQueryMessage.{h, cc}
  8634. * src/DHTGetPeersMessage.{h, cc}
  8635. * src/DHTFindNodeReplyMessage.{h, cc}
  8636. * src/DHTGetPeersReplyMessage.{h, cc}
  8637. * src/DHTAnnouncePeerMessage.{h, cc}
  8638. * src/DHTResponseMessage.{h, cc}
  8639. * src/DHTFindNodeMessage.{h, cc}
  8640. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8641. Use constants defined in prefs.h
  8642. * src/option_processing.cc
  8643. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8644. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8645. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8646. Make room for future enchancements for IPv6 addresses.
  8647. Bump up version number of dht.dat file format to 2.
  8648. Not compatible with previous version.
  8649. * src/DHTRoutingTableSerializer.cc
  8650. * src/DHTRoutingTableDeserializer.cc
  8651. * test/DHTRoutingTableSerializerTest.cc
  8652. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8653. Added handling for the return values from
  8654. PeerMessageUtil::createcompact().
  8655. * src/DefaultBtContext.cc (computeFastSet):
  8656. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Fixed abort when peer's ip address is IPv4-mapped address.
  8658. * src/DefaultBtContext.cc (computeFastSet)
  8659. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8660. cannot handle IPv4-mapped addresses.
  8661. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8662. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Proper return value handling for OpenSSL functions.
  8664. * src/LibsslDHKeyExchange.h
  8665. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Random bytes generation using libgcrypt and OpenSSL.
  8667. * src/DHTUtil.{h, cc}
  8668. * test/DHTUtilTest.cc
  8669. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8671. received.
  8672. * src/DHTMessageReceiver.cc (receiveMessage)
  8673. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. Fixed the bug that a return code is always 0. BUG#1897704
  8675. If error occurred during the download or there exist unfinished
  8676. downloads, aria2 returns with code 1.
  8677. * src/RequestGroupMan.{h, cc}
  8678. * src/MultiUrlRequestInfo.{h, cc}
  8679. * src/main.cc
  8680. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. IPv6 support for SocketCore class.
  8682. TODO: In SocketCore::establishConnection(), this is insufficient to
  8683. determin the failure of connect() here because the socket is
  8684. non-blocking state. The next addresses should be tried after select().
  8685. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8686. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8687. instead which address family independent.
  8688. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8689. information in a compact peer format which is for IPv4 only.
  8690. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8691. this is a spec of BitTorrent protocol.
  8692. * src/SocketCore.{h, cc}
  8693. * src/PeerMessageUtil.cc
  8694. * test/SocketCoreTest.cc
  8695. * test/PeerMessageUtilTest.cc
  8696. * test/DHTConnectionImplTest.cc
  8697. Handle IPv4-mapped addresses.
  8698. * src/DHTNode.cc: Now identity is determined by node id.
  8699. * src/DHTMessageTrackerEntry.cc
  8700. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8701. should handle it.
  8702. * src/DHTRoutingTableDeserializer.cc
  8703. * src/DHTMessageFactoryImpl.cc
  8704. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8705. Change the unit of --stop option from a minute to a second.
  8706. * src/usage_text.h
  8707. * src/DownloadEngineFactory.cc
  8708. * src/OptionHandlerFactory.cc
  8709. * src/message.h
  8710. * src/TimedHaltCommand.cc
  8711. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8712. Make listening socket non-block mode.
  8713. * src/FtpConnection.cc
  8714. * src/FtpNegotiationCommand.{h, cc}
  8715. * src/PeerListenCommand.cc
  8716. Fixed the bug that cause slow ftp negotiation.
  8717. * src/FtpNegotiationCommand.{h, cc}
  8718. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Added basic tag to --enable-dht, --dht-listen-port option.
  8720. * src/HelpItemFactory.cc (createHelpItems)
  8721. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Updated text.
  8723. * src/usage_text.h
  8724. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8725. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8726. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Determin _threadtholdSpeed in each constructor for
  8728. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8729. * src/ActivePeerConnectionCommand.{h, cc}
  8730. * src/PeerReceiveHandshakeCommand.{h, cc}
  8731. * src/BtSetup.cc
  8732. * src/BtConstants.h
  8733. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. Added --bt-min-crypto-level and --bt-require-crypto options.
  8735. * src/OptionHandlerFactory.cc
  8736. * src/MSEHandshake.cc
  8737. * src/HelpItemFactory.cc
  8738. * src/option_processing.cc
  8739. * src/ReceiverMSEHandshakeCommand.cc
  8740. * src/prefs.h
  8741. * src/DefaultBtAnnounce.cc
  8742. * src/InitiatorMSEHandshakeCommand.cc
  8743. * src/usage_text.h
  8744. * test/MSEHandshakeTest.cc
  8745. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8746. Bump version number to 0.13.0b
  8747. * configure.ac
  8748. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Updated doc.
  8750. * src/MessageDigestHelper.h:
  8751. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Use raw message digest as a token instead of its hexadecimal
  8753. representation.
  8754. * src/DHTTokenTracker.cc (generateToken)
  8755. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8756. Added Message Stream Encryption(MSE) support.
  8757. Currently, aria2 accepts incoming connections with Obfuscation Header
  8758. and legacy BitTorrent Header and establishes connections with
  8759. Obfuscation Header first and if failed then retry with legacy
  8760. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8761. choose ARC4. The new option to change the default behavior is planned.
  8762. For tracker extension, "supportcrypto=1" is added statically.
  8763. * src/PeerInitiateConnectionCommand.{h, cc}
  8764. * src/PeerConnection.{h, cc}
  8765. * src/HandleRegistry.h
  8766. * src/SocketCore.h
  8767. * src/PeerReceiveHandshakeCommand.{h, cc}
  8768. * src/BtRegistry.{h, cc}
  8769. * src/PeerListenCommand.cc
  8770. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8771. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8772. * src/MSEHandshake.{h, cc}
  8773. * src/ARC4Encryptor.h
  8774. * src/ARC4Decryptor.h
  8775. * src/LibgcryptARC4Encryptor.h
  8776. * src/LibgcryptARC4Decryptor.h
  8777. * src/LibgcryptARC4Context.h
  8778. * src/LibsslARC4Encryptor.h
  8779. * src/LibsslARC4Decryptor.h
  8780. * src/LibsslARC4Context.h
  8781. * src/DHKeyExchange.h
  8782. * src/LibgcryptDHKeyExchange.h
  8783. * src/LibsslDHKeyExchange.h
  8784. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8785. * test/DefaultBtAnnounceTest.cc
  8786. * test/ARC4Test.cc
  8787. * test/DHKeyExchangeTest.cc
  8788. Removed prepareForRetry() because it is not used.
  8789. * src/PeerAbstractCommand.{h, cc}
  8790. * src/PeerInteractionCommand.{h, cc}
  8791. * src/PeerInitiateConnectionCommand.{h, cc}
  8792. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Added the ability to load nodes from torrent file. These nodes are
  8794. added to the routing table when downloading that torrent.
  8795. * src/BtContext.h
  8796. * src/DefaultBtContext.{h, cc}
  8797. * src/DHTSetup.cc
  8798. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8799. hostname and port pair, and resolves all of them.
  8800. * src/NameResolver.{h, cc}: Added reset().
  8801. * src/RequestGroup.cc
  8802. * test/DefaultBtContextTest.cc
  8803. * test/MockBtContext.h
  8804. Removed assert() from DefaultBtContext and throw exception instead.
  8805. * src/DefaultBtContext.cc
  8806. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8807. Fixed segmentation fault bug when exiting if dht is disabled.
  8808. * src/RequestGroup.cc
  8809. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Fixed typo in log message and define the message in message.h
  8811. * src/TimedHaltCommand.cc
  8812. * src/message.h
  8813. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. Included RecoverableException.h to fix compilation error.
  8815. * test/DHTMessageFactoryImplTest.cc
  8816. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8817. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8818. * test/DHTPingMessageTest.cc
  8819. * test/DHTGetPeersMessageTest.cc
  8820. * test/DHTFindNodeMessageTest.cc
  8821. * test/DHTAnnouncePeerMessageTest.cc
  8822. * test/MockDHTMessage.h
  8823. * test/MockDHTMessageFactory.h
  8824. * test/MockDHTMessageDispatcher.h: New class.
  8825. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8827. virtual.
  8828. * src/DHTMessageDispatcher.h
  8829. * src/DHTMessageDispatcherImpl.{h, cc}
  8830. * src/DHTSetup.cc
  8831. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. Adding handling of DHT error message. Just log error message and
  8833. throw exception.
  8834. * src/DHTMessageFactoryImpl.cc
  8835. * test/DHTMessageFactoryImplTest.cc
  8836. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8837. Added handling of dynamic cast failure.
  8838. * src/DHTNodeLookupTask.cc
  8839. * src/DHTPeerLookupTask.cc
  8840. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Added the ability to stop aria2 itself when given time has passed
  8842. from start. Use --stop option to specify time in minutes.
  8843. When 0 is given, this feature is disabled.
  8844. * src/OptionHandlerFactory.cc
  8845. * src/TimeBasedCommand.h: Make _interval protected scope.
  8846. * src/HelpItemFactory.cc
  8847. * src/option_processing.cc
  8848. * src/prefs.h
  8849. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8850. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8851. Without this modification, the result list shows "ERR" when aria2 is
  8852. stopped by --stop option. It should be "INPR".
  8853. * src/DownloadEngine.{h, cc}
  8854. * src/DownloadEngineFactory.cc
  8855. * src/usage_text.h
  8856. * src/TimedHaltCommand.{h, cc}: New class.
  8857. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Bootstrap through node added by port message.
  8859. Currently bootstrap is executed if the number of buckets in routing
  8860. table is 1.
  8861. * src/BtPortMessage.{h, cc}
  8862. * src/DefaultBtMessageFactory.{h, cc}
  8863. * src/PeerInteractionCommand.cc
  8864. * test/BtPortMessageTest.cc
  8865. * test/MockDHTTask.h
  8866. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Extract the Peer class's member variables, which are only needed after
  8868. PeerInteractionCommand, into PeerSessionResource class.
  8869. This class is instantiated in PeerInteractionCommand class's ctor and
  8870. released in its dtor.
  8871. This will make Peer class lightweight and uses less memory for peers
  8872. which are not connected and wait in the queue.
  8873. * src/PeerChokeCommand.cc
  8874. * src/PeerSessionResource.{h, cc}
  8875. * src/PeerInteractionCommand.cc
  8876. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8877. * src/DefaultBtInteractive.cc
  8878. * src/BtPieceMessage.cc
  8879. * src/BtInterestedMessage.cc
  8880. * src/BtUnchokeMessage.cc
  8881. * src/DefaultPeerStorage.{h, cc}
  8882. * src/PeerInitiateConnectionCommand.cc
  8883. * src/ActivePeerConnectionCommand.cc
  8884. * src/BtNotInterestedMessage.cc
  8885. * src/DefaultBtMessageDispatcher.cc
  8886. * src/BtChokeMessage.cc
  8887. * src/BtRequestMessage.cc
  8888. * src/Peer.{h, cc}
  8889. * src/BtRegistry.h
  8890. * src/TrackerWatcherCommand.cc
  8891. * src/PeerReceiveHandshakeCommand.cc
  8892. * test/BtExtendedMessageTest.cc
  8893. * test/BtAllowedFastMessageTest.cc
  8894. * test/BtCancelMessageTest.cc
  8895. * test/DefaultPieceStorageTest.cc
  8896. * test/BtBitfieldMessageTest.cc
  8897. * test/BtHaveMessageTest.cc
  8898. * test/BtNotInterestedMessageTest.cc
  8899. * test/BtRequestMessageTest.cc
  8900. * test/PeerSessionResourceTest.cc
  8901. * test/DefaultBtMessageDispatcherTest.cc
  8902. * test/PeerTest.cc
  8903. * test/BtInterestedMessageTest.cc
  8904. * test/BtRejectMessageTest.cc
  8905. * test/BtChokeMessageTest.cc
  8906. * test/DefaultPeerStorageTest.cc
  8907. * test/BtHaveNoneMessageTest.cc
  8908. * test/BtHaveAllMessageTest.cc
  8909. * test/DefaultExtensionMessageFactoryTest.cc
  8910. * test/BtUnchokeMessageTest.cc
  8911. * test/DefaultBtMessageFactoryTest.cc
  8912. * test/HandshakeExtensionMessageTest.cc
  8913. * test/UTPexExtensionMessageTest.cc
  8914. * test/DefaultBtRequestFactoryTest.cc
  8915. * test/BtPieceMessageTest.cc
  8916. Removed typedef PeerStats.
  8917. * src/PeerStat.h
  8918. * src/SegmentMan.cc
  8919. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8920. Added std namespace to copy, remove_copy, back_inserter,
  8921. front_inserter.
  8922. * src/RequestGroupMan.cc
  8923. * src/DefaultPieceStorage.cc
  8924. * src/StreamFileAllocationEntry.cc
  8925. * src/BtFileAllocationEntry.cc
  8926. * src/RequestGroup.cc
  8927. * src/MetalinkEntry.cc
  8928. * src/DelegatingPeerListProcessor.cc
  8929. * src/DefaultBtRequestFactory.cc
  8930. * src/DefaultBtMessageDispatcher.cc
  8931. * src/version_usage.cc: Included <algorithm>
  8932. * src/main.cc
  8933. * src/MetalinkParserController.cc
  8934. * src/DefaultBtContext.cc
  8935. * src/DownloadEngineFactory.cc
  8936. * src/a2algo.h
  8937. Removed.
  8938. * test/StreamUriListParserTest.cc
  8939. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8940. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8941. ActivePeerConnectionCommand when it is given and
  8942. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8943. * src/ActivePeerConnectionCommand.{h, cc}
  8944. * src/BtSetup.cc
  8945. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Only add socket to DownloadEngine's select routine when peer or
  8947. localhost is unchoked and interested. This lowers CPU usage a
  8948. little bit.
  8949. * src/PeerInteractionCommand.cc
  8950. * src/PeerAbstractCommand.{h, cc}
  8951. * src/BtInteractive.h
  8952. * src/DefaultBtInteractive.{h, cc}
  8953. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8954. Revert previous change because get_peers message is needed for
  8955. announce_peer anyway.
  8956. * src/DHTGetPeersCommand.cc
  8957. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. Request peers thought DHT only when download hasn't finished.
  8959. * src/DHTGetPeersCommand.cc
  8960. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8961. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8962. * src/DHTBucketRefreshTask.{h, cc}
  8963. * src/DHTSetup.cc
  8964. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8966. standard classes.
  8967. Included string.h where mem* function are used.
  8968. Added namespace aria2.
  8969. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8970. Create directory before saving DHT routing table.
  8971. Now ios::failure is now handled properly.
  8972. * src/DHTAutoSaveCommand.cc
  8973. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8974. Removed unnecessary cerr.
  8975. * src/DownloadEngine.cc
  8976. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. Catch exception inside DHTMessageReceiver::receiveMessage().
  8978. Log unknown message.
  8979. * src/DHTMessageReceiver.{h, cc}
  8980. * src/DHTMessageFactory.h
  8981. * src/DHTMessageFactoryImpl.{h, cc}
  8982. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8983. * src/DHTInteractionCommand.cc
  8984. * src/DHTUnknownMessage.{h, cc}
  8985. * test/DHTUnknownMessageTest.cc
  8986. * test/MockDHTMessageFactory.h
  8987. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8988. Commented out ip address comparison because a host can have multiple
  8989. ip addresses and it is hard to predict the hostname is resolved into
  8990. which one.
  8991. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8992. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8993. * po/Makefile.in: Removed since this is generated by configure.
  8994. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8995. Fixed compiler warning about redefinition of SIZE_MAX.
  8996. Use common.h instead of config.h directly here.
  8997. * src/Platform.{h, cc}
  8998. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8999. here.
  9000. * common.h
  9001. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9002. Updated gettext related files.
  9003. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9004. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9005. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9006. Added DHT functionality, compatible with mainline.
  9007. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9008. You may need to specify entry point to DHT network using
  9009. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9010. Use --dht-listen-port to specify port number. Make sure that your
  9011. firewall configuration can pass through UDP traffic to the port.
  9012. The routing table is saved in $HOME/.aria2/dht.dat.
  9013. * src/DHT*
  9014. * src/BNode.{h, cc}
  9015. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9016. particular torrent.
  9017. * src/Data.cc: Rewritten ctor.
  9018. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9019. --dht-entry-point.
  9020. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9021. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9022. ends, remove BtContext from DHTPeerAnnounceStorage.
  9023. * src/BtPortMessage.{h, cc}: Rewritten.
  9024. * src/message.h
  9025. * src/OptionHandlerImpl.cc
  9026. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9027. --dht-entry-point.
  9028. * src/Dictionary.{h, cc} (remove): New function.
  9029. * src/prefs.h
  9030. * src/DefaultBtMessageFactory.h
  9031. * src/BtHandshakeMessage.cc
  9032. * src/ActivePeerConnectionCommand.cc
  9033. * src/SocketCore.{h, cc}: Added datagram socket support.
  9034. * src/DefaultBtMessageFactory.cc
  9035. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9036. Create DHT commands.
  9037. * src/BtMessageFactory.h
  9038. * src/PeerMessageUtil.{h, cc}
  9039. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Fixed the bug that log file is not written when configuration file doesn't exist.
  9041. This is caused by using Logger class before LogFactory is not configured.
  9042. BUG #1875079
  9043. * src/option_processing.cc
  9044. Warning message "configuration doesn't exist" is only printed when --conf is
  9045. given.
  9046. * src/option_processing.cc
  9047. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9048. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9049. ShaVisitor is now deprecated and slated to be removed.
  9050. * src/DefaultBtContext.cc
  9051. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9052. Externalize message to message.h
  9053. * src/Platform.cc
  9054. * src/message.h
  9055. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. Set default domain and default path to cookie.
  9057. * src/HttpResponse.cc
  9058. * src/CookieBox.{h, cc}
  9059. * src/CookieParser.{h, cc}
  9060. * test/CookieParserTest.cc
  9061. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Added --no-conf and --conf-path command-line option.
  9063. --no-conf option disables loading aria2.conf file.
  9064. --conf-path option changes the configuration file path. The default
  9065. file path is $HOME/.aria2/aria2.conf
  9066. Added a warning message when the configuration file is not found.
  9067. * src/HelpItemFactory.cc
  9068. * src/option_processing.cc
  9069. * src/prefs.h
  9070. * src/usage_text.h
  9071. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9072. Added the message to inform users that other help categories are
  9073. available in -h option.
  9074. * src/version_usage.cc
  9075. * src/TagContainer.{h, cc}
  9076. * test/TagContainerTest.cc
  9077. * src/TaggedItem.{h, cc}
  9078. * test/TaggedItemTest.cc
  9079. * src/HelpItem.h
  9080. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9081. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9082. from PiecedSegment's ctor.
  9083. Previously Piece::getAllMissingBlockIndexes() is called from
  9084. PiecedSegment() but it is rather expensive since only first element is
  9085. used.
  9086. * src/PiecedSegment.cc
  9087. * src/Piece.{h, cc}
  9088. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9089. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9090. each time these functions are called.
  9091. * src/BitfieldMan.{h, cc}
  9092. * test/BitfieldManTest.cc
  9093. * src/array_fun.h
  9094. * test/array_funTest.cc
  9095. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9096. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9097. filtered. Removed unnecessary cast to int32_t.
  9098. * src/BitfieldMan.{h, cc}
  9099. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9101. payload length(4bytes) are received. This happens because lenbufLength
  9102. is not updated in this particular case and successive call of
  9103. receiveMessage() overwrites payload length with bytes recieved which
  9104. are payload body.
  9105. * src/PeerConnection.{h, cc}
  9106. * src/message.h
  9107. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9108. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9109. peer if there are peers that have same ipaddr and port.
  9110. I've experiened segmentation fault and "pure virtual function was
  9111. called" error.
  9112. * src/Peer.h
  9113. * test/PeerTest.cc
  9114. * src/DefaultPeerStorage.cc
  9115. * test/DefaultPeerStorageTest.cc
  9116. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Removed a call to isPowerOf() because it is no longer necessary here
  9118. and a request block is not always power of 2.
  9119. BUG#1866924
  9120. * src/PeerMessageUtil.cc (checkLength)
  9121. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9122. Fixed the bug that always first found Segment is removed from
  9123. usedSegmentEntries. Removed unused functions.
  9124. * src/SegmentMan.{h, cc}
  9125. * test/SegmentManTest.cc
  9126. Fixed the bug that ServerHost is not removed.
  9127. * src/RequestGroup.cc
  9128. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9129. Fixed the bug that SegmentMan::completeSegment() is not called
  9130. even if Segment is complete when --lowest-speed-limit is enabled.
  9131. BUG#1864525
  9132. * src/DownloadCommand.{h, cc}
  9133. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9134. Fixed: hash algorithm 'sha1' is always used.
  9135. * src/DownloadCommand.cc (validatePieceHash)
  9136. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Added --enable-peer-exchange command-line option.
  9138. * src/OptionHandlerFactory.cc
  9139. * src/HelpItemFactory.cc
  9140. * src/option_processing.cc
  9141. * src/usage_text.h
  9142. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Move extension from BtRuntime to ExtensionMessageFactory, because
  9144. extension can be specified per peer, not per torrent.
  9145. * src/DefaultBtInteractive.cc
  9146. * src/BtRuntime.h
  9147. * src/ExtendedMessagingAware.h
  9148. * src/ExtensionMessageFactory.h
  9149. * src/DefaultExtensionMessageFactory.cc
  9150. * test/DefaultExtensionMessageFactoryTest.cc
  9151. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Added categorized option help. Specify category using --help option.
  9153. Also added the ability to search options in forward match.
  9154. * src/HelpItem.{h, cc}
  9155. * test/HelpItemTest.cc
  9156. * src/HelpItemFactory.{h, cc}
  9157. * src/TagContainer.{h, cc}
  9158. * test/TagContainerTest.cc
  9159. * src/option_processing.cc
  9160. * src/prefs.h
  9161. * src/TaggedItem.{h, cc}
  9162. * test/TaggedItemTest.cc
  9163. * src/version_usage.cc
  9164. * src/help_tags.h
  9165. * src/usage_text.h
  9166. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Fixed segmentation fault when bad torrent metainfo is parsed.
  9168. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9169. and then throw exception or skip it.
  9170. * src/DefaultBtContext.{h, cc}
  9171. * test/DefaultBtContextTest.cc
  9172. * src/AnnounceList.cc
  9173. * src/CompactPeerListProcessor.cc
  9174. * src/message.h
  9175. * src/DefaultBtAnnounce.{h, cc}
  9176. * test/DefaultBtAnnounceTest.cc
  9177. * src/BencodeVisitor.cc
  9178. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9179. Added missing "B"(=Byte). So now the message looks like this:
  9180. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9181. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9182. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9183. Show the seed ratio after torrent downloads.
  9184. For example, after torrent download completed and --seed-time and
  9185. --seed-ratio conditions are fulfilled, following message is printed
  9186. right after "Download complete: .....":
  9187. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9188. * src/RequestGroupMan.cc
  9189. * src/RequestGroup.{h, cc}
  9190. * src/message.h
  9191. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. Remove a defunct control file. A defunct control file means that while
  9193. it exists, but the corresponding download file is missing.
  9194. After its removal, a download restarts from the beginning.
  9195. * src/RequestGroup.cc
  9196. * src/message.h
  9197. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9198. Allocate bitfield in Peer when it is really used. More specifically,
  9199. bitfield in Peer is allocated after the connection is established and
  9200. deallocated when the connection is dropped.
  9201. Since 2 parameters(piece length and total length) was removed from the
  9202. constructor of Peer class, many test classes were modified accordingly.
  9203. See svn log for more detailed information.
  9204. * src/PeerInteractionCommand.cc
  9205. * src/CompactPeerListProcessor.cc
  9206. * src/Peer.cc
  9207. * src/DefaultPeerListProcessor.cc
  9208. * src/PeerListenCommand.cc
  9209. * src/PeerReceiveHandshakeCommand.cc
  9210. Fixed memory leak
  9211. * src/Piece.cc
  9212. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9214. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9215. command-line options.
  9216. * src/option_processing.cc
  9217. * src/ActivePeerConnectionCommand.cc
  9218. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. Send have message to peer if it already has the piece.
  9220. * src/BtHaveMessage.{h, cc}
  9221. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9222. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9223. port.
  9224. * src/DefaultPeerStorage.{h, cc}
  9225. * test/DefaultPeerStorageTest.cc
  9226. * src/HandshakeExtensionMessage.cc
  9227. * test/HandshakeExtensionMessageTest.cc
  9228. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9229. * src/PeerStorage.h
  9230. * test/MockPeerStorage.h
  9231. * src/PeerListenCommand.cc
  9232. * src/PeerReceiveHandshakeCommand.cc
  9233. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9234. Added --metalink-enable-unique-protocol option.
  9235. * src/Metalink2RequestGroup.cc
  9236. * src/option_processing.cc
  9237. * src/prefs.h
  9238. * src/version_usage.cc
  9239. * doc/aria2c.1.txt
  9240. * doc/aria2c.1
  9241. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. Allow a peer in incomingPeer to be added peers.
  9243. * src/DefaultPeerStorage.cc
  9244. * test/DefaultPeerStorageTest.cc
  9245. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9247. I could reproduce this bug in following procedure:
  9248. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9249. 2. Restart aria2.
  9250. 3. You see the download stopped around 99%.
  9251. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9252. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9253. If timeout is reached, then _nextCommand is unused and it may contains
  9254. segments and they won't be canceled. Actually, timeout is not needed
  9255. here because if the server dropped connection, then retry is made.
  9256. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Added uTorrent compatible Peer Exchange.
  9258. * src/BencodeVisitor.{h, cc}
  9259. * test/BencodeVisitorTest.cc
  9260. * src/BtConstants.h
  9261. * src/BtContext.h: Added 'private' flag.
  9262. * src/BtExtendedMessage.{h, cc}
  9263. * test/BtExtendedMessageTest.cc
  9264. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9265. reserved field.
  9266. * test/BtHandshakeMessageTest.cc
  9267. * src/BtMessageFactory.h
  9268. * src/BtRegistry.h
  9269. * src/BtRuntime.h: This class holds default extension message IDs for
  9270. aria2. By default, aria2 uses ID 8 for ut_pex.
  9271. * src/DefaultBtContext.cc
  9272. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9273. When it is true, aria2 enables ut_pex. This value is set by
  9274. PeerInteractionCommand.
  9275. * src/DefaultBtMessageFactory.{h, cc}
  9276. * test/DefaultBtMessageFactoryTest.cc
  9277. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9278. handling to DefaultBtInteractive class.
  9279. * src/DefaultExtensionMessageFactory.{h, cc}
  9280. * test/DefaultExtensionMessageFactoryTest.cc
  9281. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9282. the container(peers and incomingPeers. The equality is determined by
  9283. Peer::id).
  9284. * test/DefaultPeerStorageTest.cc
  9285. * src/ExtensionMessage.h
  9286. * test/MockExtensionMessage.h
  9287. * src/ExtensionMessageFactory.h
  9288. * test/MockExtensionMessageFactory.h
  9289. * src/HandshakeExtensionMessage.{h, cc}
  9290. * test/HandshakeExtensionMessageTest.cc
  9291. * src/MetaEntry.h
  9292. * src/Peer.{h, cc}
  9293. * src/PeerInteractionCommand.cc
  9294. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9295. addIncomingPeer.
  9296. * src/PeerMessageUtil.{h, cc}
  9297. * src/PeerObject.h
  9298. * src/UTPexExtensionMessage.{h, cc}
  9299. * test/UTPexExtensionMessageTest.cc
  9300. * src/message.h
  9301. * src/prefs.h
  9302. Fixed the bug that returns incomplete data when it contains null
  9303. character. A convenient constructor was also added.
  9304. * src/Data.{h, cc}
  9305. Rewritten.
  9306. * src/CompactPeerListProcessor.cc
  9307. Fixed typos.
  9308. * src/message.h
  9309. * src/MetaFileUtil.cc
  9310. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Added "Status Legend" label to the explanation text of 'stat' in
  9312. download result and moved it to the last. BUG#1848214
  9313. * src/RequestGroupMan.cc
  9314. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9315. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9316. * src/Makefie.am
  9317. * test/Makefile.am
  9318. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. Fixed the bug that prevents aria2 from loading cookie file when expire
  9320. value is greater than 2^31-1. BUG#1851066
  9321. * src/CookieBoxFactory.cc
  9322. * test/CookieBoxFactoryTest.cc
  9323. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9324. Fixed possible memory leak when an exception is thrown.
  9325. * src/XML2SAXMetalinkProcessor.cc
  9326. Added Expat support. If both libxml2 and Expat are installed, then
  9327. libxml2 is used by default.
  9328. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9329. ExpatMetalinkProcessor according to the configuration.
  9330. * src/ExpatMetalinkProcessor.{h, cc}
  9331. * src/main.cc: Removed libxml2 specific header and init/free function.
  9332. * src/MetalinkProcessorFactory.{h, cc}
  9333. * src/MetalinkHelper.cc
  9334. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9335. * src/MetalinkProcessor.h
  9336. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9337. MetalinkProcessorTest is used instead.
  9338. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9339. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9340. MetalinkProcessorFactory::newInstance().
  9341. * m4/libexpat.m4
  9342. * configure.ac: Added configuration options for libexpat.
  9343. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Disabled -s option in metalink download.
  9345. * src/Metalink2RequestGroup.cc
  9346. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. If several protocols are available for a mirror in metalink file,
  9348. aria2 now use one of them. --metalink-preferred-protocol option was
  9349. added to specify the preference of protocol.
  9350. * src/AbstractCommand.cc
  9351. * src/OptionHandlerFactory.cc
  9352. * src/ServerHost.{h, cc}
  9353. * src/Metalink2RequestGroup.cc
  9354. * src/RequestGroup.{h, cc}
  9355. * test/RequestGroupTest.cc
  9356. * src/option_processing.cc
  9357. * src/prefs.h
  9358. * src/HttpResponseCommand.cc
  9359. * src/MetalinkResource.{h, cc}
  9360. * src/FtpNegotiationCommand.cc
  9361. * src/MetalinkEntry.{h, cc}
  9362. * src/MetalinkEntryTest.cc
  9363. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9364. Code cleanup and added debug log.
  9365. * src/PeerConnection.cc
  9366. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9367. Compiler error fix: applied the patch by Tiziano Mueller
  9368. * src/RequestGroup.cc
  9369. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9370. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9371. in stopped and completed event.
  9372. * src/AnnounceList.{h, cc}
  9373. * test/AnnounceListTest.cc
  9374. * src/DefaultBtAnnounce.cc
  9375. * test/DefaultBtAnnounceTest.cc
  9376. Sorted URLs.
  9377. * test/Metalink2RequestGroupTest.cc
  9378. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9379. Removed unnecessary string copy. Updated doc and corrected indentation.
  9380. * src/Base64.cc
  9381. Fixed compilation warnings
  9382. * test/DataTest.cc
  9383. * test/HttpRequestTest.cc
  9384. * test/MetaFileUtilTest.cc
  9385. * test/RequestTest.cc
  9386. * Release 0.12.0
  9387. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9388. Updated translations
  9389. * po/{de,fr,ja,nl,ru}.po
  9390. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9391. translations. Many thanks to translators.
  9392. * po/{ca,es,it,pt_BR,sv}.po
  9393. * po/LINGUAS
  9394. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9395. Added a notice about URL
  9396. * src/version_usage.cc
  9397. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9398. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9399. aria2 repeatedly sends stopped request when tracker returns error code.
  9400. * src/AnnounceList.cc
  9401. * test/AnnounceListTest.cc
  9402. * src/AnnounceTier.h
  9403. Added a message when ctrl-c is hit.
  9404. Now second ctrl-c is also handled in signal handler.
  9405. * src/RequestGroupMan.{h, cc}
  9406. * src/RequestGroup.{h, cc}
  9407. * src/MultiUrlRequestInfo.cc
  9408. * src/DownloadEngine.cc
  9409. * src/TrackerWatcherCommand.cc
  9410. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9411. Code cleanup
  9412. * src/Base64.cc (encode)
  9413. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9414. Changed Direct/IO enable/disable procesure in file allocation routine.
  9415. * src/SingleFileAllocationIterator.cc
  9416. (SingleFileAllocationIterator):
  9417. Disable directIO if offset is not multiple of 512.
  9418. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9419. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9420. Enable created SingleFileAllocationIterator's directIO.
  9421. * src/FileAllocationEntry.cc
  9422. (FileAllocationEntry): Enable directIO here.
  9423. (~FileAllocationEntry): Disable directIO here.
  9424. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9425. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9426. * src/Peer.{h, cc}
  9427. * src/DefaultPieceStorage.cc
  9428. * test/DefaultPieceStorageTest.cc
  9429. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Rewritten direct I/O support routine
  9431. * src/SingleFileAllocationIterator.cc
  9432. * src/MultiDiskAdaptor.{h, cc}
  9433. * src/ByteArrayDiskWriter.h
  9434. * src/AbstractSingleDiskAdaptor.h
  9435. * src/AbstractDiskWriter.cc
  9436. * src/DefaultPieceStorage.cc
  9437. * src/DiskWriter.h
  9438. * src/BinaryStream.h
  9439. * src/IteratableChunkChecksumValidator.cc
  9440. * src/IteratableChecksumValidator.cc
  9441. * src/CheckIntegrityEntry.cc
  9442. * src/FileAllocationEntry.cc
  9443. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9444. Fixed typo
  9445. * src/version_usage.cc
  9446. Updated doc
  9447. * doc/aria2c.1.txt
  9448. * doc/aria2c.1
  9449. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9450. Fixed compile error without message digest support.
  9451. * src/FileMetalinkParserState.cc
  9452. * src/MetalinkParserController.{h, cc}
  9453. * test/XML2SAXMetalinkProcessorTest.cc
  9454. * test/MetalinkParserControllerTest.cc
  9455. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9456. Enable direct I/O support in checksum checking.
  9457. * src/IteratableChunkChecksumValidator.{h, cc}
  9458. * test/IteratableChunkChecksumValidatorTest.cc
  9459. * src/CheckIntegrityEntry.cc
  9460. * src/PieceHashCheckIntegrityEntry.cc
  9461. * src/IteratableChecksumValidator.{h, cc}
  9462. * src/BtCheckIntegrityEntry.cc: Added doc.
  9463. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. Added --allow-piece-length-change option.
  9465. * src/DefaultBtProgressInfoFile.cc
  9466. * test/DefaultBtProgressInfoFileTest.cc
  9467. * src/OptionHandlerFactory.cc
  9468. * src/option_processing.cc
  9469. * src/prefs.h
  9470. * src/version_usage.cc
  9471. * doc/aria2c.1.txt
  9472. * doc/aria2c.1
  9473. Fixed: duplicated result entry appears when exception is thrown in
  9474. RequestGroup::createInitiateConnectionCommand().
  9475. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9476. Add RequestGroup to _requestGroup after RequetGroup::
  9477. createInitiateConnectionCommand() succeeds.
  9478. Externalized message
  9479. * src/XML2SAXMetalinkProcessor.cc
  9480. * src/message.h
  9481. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9482. Forced download abort when received negative response from http/ftp
  9483. server.
  9484. * src/HttpResponseCommand.cc
  9485. * src/FtpNegotiationCommand.cc
  9486. * src/HttpResponse.cc
  9487. * src/FtpConnection.cc
  9488. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9490. the predecessor, Xml2MetalinkParser class.
  9491. I tested them against 94KB metalink file with 1234 chunk checksums.
  9492. The new one parsed it in 22msec, while it took 6000msec with old one.
  9493. * src/XML2SAXMetalinkProcessor.{h, cc}
  9494. * test/XML2SAXMetalinkProcessorTest.cc
  9495. * src/MetalinkParserController.{h, cc}
  9496. * test/MetalinkParserControllerTest.cc
  9497. * src/MetalinkParserState.h: Also added 16 subclasses.
  9498. * src/main.cc
  9499. * src/Metalink2RequestGroup.cc
  9500. * src/MetalinkHelper.cc
  9501. * src/MetalinkEntry.cc
  9502. * src/ChunkChecksum.h
  9503. Rewritten Base64 class for better performance.
  9504. * src/Base64.{h, cc}
  9505. * test/Base64Test.cc
  9506. * src/HttpRequest.cc
  9507. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9508. Fixed the bug#1841757: aria2 will connect to server to only get
  9509. file size.
  9510. * src/StreamFileAllocationEntry.cc
  9511. * src/option_processing.cc
  9512. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9513. downloads.
  9514. * src/FtpNegotiationCommand.cc
  9515. Suppressed wrong message when finding PreDownloadHandler
  9516. * src/RequestGroup.cc
  9517. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. Updated usage
  9519. * src/version_usage.cc
  9520. Updated man page
  9521. * doc/aria2c.1.txt
  9522. * doc/aria2c.1
  9523. Updated po files
  9524. * po/aria2c.pot
  9525. * po/*.po
  9526. * po/*.gmo
  9527. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9528. Eliminated g++-4.2 warning
  9529. * src/DownloadHandlerConstants.{h, cc}
  9530. * src/Util.cc
  9531. * test/MetaFileUtilTest.cc
  9532. * test/PStringBuildVisitorTest.cc
  9533. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9534. * src/RequestGroup.cc
  9535. * src/BtCheckIntegrityEntry.cc
  9536. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9537. Fixed a2io.h
  9538. * src/a2io.h
  9539. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9540. Added direct I/O support. The current implementation uses O_DIRECT,
  9541. which is not posix standard and is tested on linux 2.6.21.
  9542. Currently only file allocation uses direct I/O.
  9543. * src/SingleFileAllocationIterator.{h, cc}
  9544. * test/SingleFileAllocationIteratorTest.cc
  9545. * src/MultiFileAllocationIterator.{h, cc}
  9546. * test/MultiFileAllocationIteratorTest.cc
  9547. * src/BinaryStream.h
  9548. * src/DiskWriter.h
  9549. * src/AbstractDiskWriter.{h, cc}
  9550. * src/ByteArrayDiskWriter.h
  9551. * src/DiskAdaptor.h
  9552. * src/AbstractSingleDiskAdaptor.{h, cc}
  9553. * src/MultiDiskAdaptor.{h, cc}
  9554. * src/FileAllocationEntry.cc
  9555. * src/Util.{h, cc}
  9556. * src/OptionHandlerFactory.cc
  9557. * src/prefs.h
  9558. * src/version_usage.cc
  9559. * src/option_processing.cc
  9560. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9561. handleException.
  9562. * src/MultiFileAllocationIterator.cc
  9563. Added EINTR handling
  9564. * src/SocketCore.cc
  9565. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9566. Updated usage
  9567. * src/version_usage.cc
  9568. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9569. Applied Ross's patch for MinGW port.
  9570. * src/DownloadEngine.h
  9571. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9572. Set Content-Type to SingleFileDownloadContext when http response is
  9573. received.
  9574. * src/HttpResponseCommand.cc
  9575. * src/HttpResponse.{h, cc}
  9576. * test/HttpResponseTest.cc
  9577. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9578. Rewritten to add content-type support.
  9579. * src/DownloadHandler.{h, cc}
  9580. * src/BtPostDownloadHandler.{h, cc}
  9581. * test/BtPostDownloadHandlerTest.cc
  9582. * src/MetalinkPostDownloadHandler.{h, cc}
  9583. * test/MetalinkPostDownloadHandlerTest.cc
  9584. * src/PostDownloadHandler.{h, cc}
  9585. * src/DownloadHandlerConstants.{h, cc}
  9586. * src/RequestGroup.cc
  9587. * src/HttpResponseCommand.cc
  9588. * src/FtpNegotiationCommand.cc
  9589. * src/SingleFileDownloadContext.{h, cc}
  9590. * src/RequestGroup.h
  9591. * src/RequestGroupCriteria.h
  9592. * src/ContentTypeRequestGroupCriteria.h
  9593. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9594. If it is give, metalink/torrent file is not written to the disk, but
  9595. just is kept in memory. Parsing is occurred on memory.
  9596. * src/MetalinkHelper.{h, cc}
  9597. * src/MetalinkProcessor.h
  9598. * src/Xml2MetalinkProcessor.{h, cc}
  9599. * test/Xml2MetalinkProcessorTest.cc
  9600. * src/DownloadHandlerFactory.{h, cc}
  9601. * test/DownloadHandlerFactoryTest.cc
  9602. * src/PreDownloadHandler.{h, cc}
  9603. * src/OptionHandlerFactory.cc
  9604. * src/DefaultBtContext.{h, cc}
  9605. * test/DefaultBtContextTest.cc
  9606. * src/version_usage.cc
  9607. * src/Metalink2RequestGroup.{h, cc}
  9608. * src/RequestGroup.{h, cc}
  9609. * src/a2functional.h
  9610. * test/a2functionalTest.cc
  9611. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9612. * src/OptionHandlerImpl.h
  9613. * src/prefs.h
  9614. * src/Util.{h, cc}
  9615. * test/UtilTest.cc
  9616. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9617. memory usage.
  9618. * src/RequestGroupMan.{h, cc}
  9619. * src/DownloadEngine.cc
  9620. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9621. WeakHandle to SharedHandle because WeakHandle could be null.
  9622. * src/RequestGroup.{h, cc}
  9623. * src/DownloadEngineFactory.cc
  9624. * src/DownloadResult.h
  9625. Set totalLength after download finished
  9626. * src/UnknownLengthPieceStorage.{h, cc}
  9627. Keep torrent file specified in metalink in memory.
  9628. * src/Metalink2RequestGroup.cc
  9629. * src/BtDependency.cc
  9630. * src/TrueRequestGroupCriteria.h
  9631. Fixed the bug: seekg is used where seekp should be used.
  9632. * src/ByteArrayDiskWriter.cc
  9633. * test/ByteArraydiskWriterTest.cc
  9634. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. Fixed syntax error
  9636. * test/SequenceTest.cc
  9637. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9639. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9640. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9641. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9642. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9643. Added the check to see whether ares_host_callback accepts timeouts
  9644. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9645. * src/NameResolver.{h, cc}
  9646. * m4/libcares.m4
  9647. * configure.ac: Set C++ for language choice.
  9648. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Fixed: compilation fails without c-ares/ares
  9650. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9651. Generate http/ftp commands only when download is incomplete.
  9652. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9653. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Corrected typo. Examples are removed since they are available in man
  9655. page.
  9656. * src/version_usage.cc
  9657. Updated man page.
  9658. * doc/aria2c.1
  9659. * doc/aria2c.1.txt
  9660. * doc/makeman: Commented out sed command.
  9661. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9662. Throw DlAbortEx when a remote file is not found.
  9663. * src/HttpResponse.cc
  9664. * src/FtpNegotiationCommand.cc
  9665. * src/message.h
  9666. Overwrite an existing file if --allow-overwrite=true is given.
  9667. * src/RequestGroup.cc
  9668. Removed unused functions
  9669. * src/AbstractCommand.h
  9670. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9671. Removed 'extern' from 'extern typedef ...' in src/*.h
  9672. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9673. Updated usage
  9674. * src/version_usage.cc
  9675. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9676. Trim announce URL
  9677. * src/DefaultBtContext.cc
  9678. * test/ShaVisitorTest.cc
  9679. Trim argument s. Give trimed s to exception constructor.
  9680. * src/Util.cc (parseInt)(parseLLInt)
  9681. * test/UtilTest.cc
  9682. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. Set precision back to 1.
  9684. * src/ConsoleStatCalc.cc (calculateStat)
  9685. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. Replaced strtol with Util::parseInt
  9687. * src/ChunkedEncoding.cc
  9688. * src/HttpConnection.cc
  9689. * src/CookieBoxFactory.cc
  9690. * src/ParameterizedStringParser.cc
  9691. * src/Util.cc
  9692. * test/UtilTest.cc
  9693. * test/OptionHandlerTest.cc
  9694. * src/Request.cc
  9695. Throw exception when empty string is given. The message for exception
  9696. changed.
  9697. * src/Util.cc (parseInt)(parseLLInt)
  9698. * src/message.h
  9699. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9700. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9701. set to 1.
  9702. * src/ConsoleStatCalc.cc (calculateStat)
  9703. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9704. Preallocate non-requested file which is adjacent forward to requested
  9705. file('requested' files means the files given in --select-file option)
  9706. if they share a same piece.
  9707. This fixes long pause in the file system which doesn't support sparse
  9708. files like FAT32 while downloading.
  9709. * src/MultiFileAllocationIterator.{h, cc}
  9710. * test/MultiFileAllocationIteratorTest.cc
  9711. * src/FileEntry.{h, cc}
  9712. Removed unused _option.
  9713. * src/MultiDiskAdaptor.h
  9714. * test/MultiDiskAdaptorTest.cc
  9715. * src/DefaultPieceStorage.cc
  9716. Set the default value of --seed-ratio to 1.0.
  9717. If 0.0 is given, then seeding continues regardless of share ratio.
  9718. * src/version_usage.cc
  9719. * src/option_processing.cc
  9720. * src/BtSetup.cc
  9721. * doc/aria2c.1.txt
  9722. * doc/aria2c.1
  9723. Fixed: Selective download is not working in BitTorrent
  9724. * src/RequestGroup.cc
  9725. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9726. * src/PieceStorage.h
  9727. * test/MockPieceStorage.h
  9728. * src/UnknownLengthPieceStorage.h
  9729. * src/DefaultPieceStorage.{h, cc}
  9730. * src/Metalink2RequestGroup.cc
  9731. * src/RequestGroup.cc
  9732. * src/Sequence.h
  9733. * test/SequenceTest.cc
  9734. * src/IntSequence.h
  9735. * src/message.h
  9736. * src/Util.{h, cc}
  9737. * test/UtilTest.cc
  9738. Added new function 'parse' to catch exception thrown by subclass's
  9739. parseArg
  9740. * src/OptionHandler.h
  9741. * src/OptionParser.cc
  9742. * src/NameMatchOptionHandler.h
  9743. * src/OptionHandlerImpl.h
  9744. * test/OptionHandlerTest.cc
  9745. Added IntegerRangeOptionHandler. Used for --listen-port and
  9746. --select-file. Now --listen-port accepts range of port.
  9747. * src/OptionHandlerFactory.cc
  9748. * src/version_usage.cc
  9749. * src/OptionHandlerImpl.h
  9750. * src/option_processing.cc
  9751. * src/BtSetup.cc
  9752. * src/PeerListenCommand.{h, cc}
  9753. * doc/aria2c.1.txt
  9754. * doc/aria2c.1
  9755. Implemented operator< for Exception class to provide easy way to print
  9756. exception stack trace.
  9757. * src/Exception.{h, cc}
  9758. * src/main.cc
  9759. * src/option_processing.cc
  9760. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9761. * src/version_usage.cc
  9762. (showVersion): Reworked.
  9763. (showUsage): Added examples.
  9764. Removed Hint for total length and file name.
  9765. * src/Metalink2RequestGroup.cc
  9766. * src/RequestGroup.{h, cc}
  9767. * src/HttpResponseCommand.cc
  9768. * src/FtpNegotiationCommand.cc
  9769. Now --follow-torrent and --follow-metalink option work properly.
  9770. * src/RequestGroup.cc
  9771. Updated man page
  9772. * doc/aria2c.1.txt
  9773. * doc/aria2c.1
  9774. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9775. Removed.
  9776. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9777. Use Segment::operator==()
  9778. * src/HttpConnection.cc
  9779. * src/Segment.h
  9780. Updated usage
  9781. * src/version_usage.cc
  9782. Added EINTR treatment.
  9783. * src/SocketCore.cc
  9784. * src/AbstractDiskWriter.cc
  9785. Rewritten.
  9786. * src/Util.cc (rangedFileCopy)
  9787. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9788. Fixed typo.
  9789. * src/version_usage.cc
  9790. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9791. Implemented. Now -c option works fine.
  9792. * src/DefaultPieceStorage.cc (markPiecesDone)
  9793. * test/DefaultPieceStorageTest.cc
  9794. Removed.
  9795. * src/SegmentMan.{h, cc}
  9796. (markAllPiecesDone)
  9797. (markPieceDone)
  9798. Synchronized po files with
  9799. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9800. * src/fr.po
  9801. * src/ru.po
  9802. * src/de.po
  9803. * src/ja.po
  9804. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Added ifdef and some modifications to compile without BitTorrent,
  9806. Metalink, MessageDigest
  9807. support.
  9808. * src/PieceHashCheckIntegrityEntry.cc
  9809. * src/MetalinkEntry.h
  9810. * src/version_usage.cc
  9811. * src/main.cc
  9812. * src/DownloadEngine.{h, cc}
  9813. * src/Metalink2RequestGroup.cc
  9814. * src/Peer.cc
  9815. * src/RequestGroup.cc
  9816. * src/MetalinkHelper.cc
  9817. * test/DefaultPieceStorageTest.cc
  9818. * test/MetalinkPostDownloadHandlerTest.cc
  9819. * test/Metalink2RequestGroupTest.cc
  9820. Hide TOTAL SPD when all downloads complete.
  9821. * src/ConsoleStatCalc.cc
  9822. Log target system information.
  9823. * src/main.cc
  9824. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9825. Now --metalink-location accepts a comma-deliminated list of locations.
  9826. * src/MetalinkEntry.{h, cc}
  9827. * test/MetalinkEntryTest.cc
  9828. * src/version_usage.cc
  9829. * src/Metalink2RequestGroup.cc
  9830. * src/Xml2MetalinkProcessor.cc
  9831. * test/Xml2MetalinkProcessorTest.cc
  9832. * doc/aria2c.1.txt
  9833. * doc/aria2c.1
  9834. * src/Util.cc (toUpper)(toLower): Rewritten.
  9835. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9836. Added the ability to detect duplicate download entry which is about to
  9837. download the same file other RequestGroup is downloading.
  9838. * src/RequestGroup.cc
  9839. * src/HttpResponseCommand.cc
  9840. * src/FtpNegotiationCommand.cc
  9841. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9842. Recalculates download progress when loading a control file,
  9843. if the piece length of DownloadContext is different from the one saved
  9844. in the control file. Currently in-flight pieces are ignored.
  9845. * src/DefaultBtProgressInfoFile.cc
  9846. * test/DefaultBtProgressInfoFileTest.cc
  9847. * src/Util.{h, cc}
  9848. * test/UtilTest.cc
  9849. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Do not rotate tiers in announce-list.
  9851. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9852. AnnounceList::allTiersFailed() used instead to detect whether all
  9853. tiers are tried and failed.
  9854. * test/DefaultBtAnnounceTest.cc
  9855. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9856. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9857. * test/AnnounceListTest.cc
  9858. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9859. clause. Catch RecoverableException instead of DlRetryEx instead.
  9860. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. Implemented checksum validation feature(1 checksum for each file)
  9862. The validation takes place after the download.
  9863. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9864. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9865. * src/CheckIntegrityCommand.cc: Changed log message.
  9866. * src/Metalink2RequestGroup.cc: Set checksum to
  9867. SingleFileDownloadContext.
  9868. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9869. PieceHashCheckIntegrity class.
  9870. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9871. PieceHashCheckIntegrity class.
  9872. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9873. * src/IteratableValidator.h: New class.
  9874. * src/message.h
  9875. * src/CheckIntegrityEntry.{h, cc}
  9876. * src/IteratableChunkChecksumValidator.{h, cc}
  9877. * src/SingleFileDownloadContext.h
  9878. * src/DownloadCommand.cc
  9879. --allow-overwrite=true is no longer needed to check file integrity
  9880. before download in BitTorrent download.
  9881. * src/RequestGroup.cc (getInitialCommand)
  9882. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9883. throws exception.
  9884. * src/RequestGroupMan.cc (getInitialCommands)
  9885. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9886. urlencode the given url inside Request::parseUrl(...)
  9887. * src/Request.{h, cc}
  9888. * src/Util.{h, cc}
  9889. * test/RequestTest.cc
  9890. Removed #!metalink3! notation support because it is deleted from
  9891. the metalink specification.
  9892. * src/Request.{h, cc}
  9893. * test/RequestTest.cc
  9894. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Don't connect server before checking file integrity at startup, if
  9896. filesize and output file path are known.
  9897. * src/AbstractCommand.cc
  9898. * src/StreamFileAllocationEntry.cc
  9899. * src/Metalink2RequestGroup.cc
  9900. * src/RequestGroup.{h, cc}
  9901. * src/HttpResponseCommand.cc
  9902. * src/FtpNegotiationCommand.cc
  9903. Added DownloadFailureException. If it is thrown, RequestGroup should
  9904. halt.
  9905. * src/AbstractCommand.cc
  9906. * src/DownloadFailureException.h
  9907. * src/RequestGroup.cc
  9908. Catch RecoverableException, instead of DlAbortEx.
  9909. * src/RequestGroupMan.cc
  9910. * src/FillRequestGroupCommand.cc
  9911. * src/MetaFileUtil.cc
  9912. * src/IteratableChunkChecksumValidator.cc
  9913. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9914. getGID())
  9915. * src/CheckIntegrityCommand.cc
  9916. * src/message.h
  9917. Print gid instead of idx.
  9918. * src/RequestGroupMan.cc
  9919. Removed exception throwers declaration.
  9920. * src/DirectDiskAdaptor.{h, cc}
  9921. * src/SocketCore.{h, cc}
  9922. * src/MultiDiskAdaptor.{h, cc}
  9923. * src/HttpConnection.{h, cc}
  9924. * src/HttpResponse.{h, cc}
  9925. * src/DiskAdaptor.{h, cc}
  9926. * src/CopyDiskAdaptor.{h, cc}
  9927. * src/MultiDiskAdaptor.{h, cc}
  9928. * src/HttpHeaderProcessor.{h, cc}
  9929. * src/AbstractSingleDiskAdaptor.{h, cc}
  9930. * src/Util.{h, cc}
  9931. * test/UtilTest.cc
  9932. * src/DefaultDiskWriter.{h, cc}
  9933. * src/FtpConnection.{h, cc}
  9934. * src/AbstractDiskWriter.{h, cc}
  9935. Removed duplicate code.
  9936. * src/StreamCheckIntegrityEntry.cc
  9937. Removed unnecessary include.
  9938. * src/DiskWriter.h
  9939. Included Exception.h
  9940. * src/option_processing.cc
  9941. Included 2 files and added doc
  9942. * src/TrackerWatcherCommand.cc
  9943. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9944. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9945. Changed CheckIntegrityEntry interface so that it can define
  9946. the action when all the chunk checksums are valid.
  9947. * src/CheckIntegrityEntry.h
  9948. * src/StreamCheckIntegrityEntry.{h, cc}
  9949. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9950. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9951. to exit rather than doing seeding. So, it would be good to toggle this
  9952. behavior.
  9953. * src/CheckIntegrityCommand.cc
  9954. * src/AbstractCommand.cc
  9955. * src/RequestGroup.cc
  9956. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9957. Reflect the download length of in-flight pieces.
  9958. It makes the download length readout more precise.
  9959. * src/DefaultPieceStorage.{h, cc}
  9960. * test/DefaultPieceStorageTest.cc
  9961. * src/a2functional.h
  9962. * test/a2functionalTest.cc
  9963. Lower CPU load when --max-download-limit is used.
  9964. There is up and down in speed indicator when enabling
  9965. http-pipelining but a download goes well. I think the problem is that
  9966. because http-pipelining is enabled, DownloadCommand is created for
  9967. each segment and in its constructor, PeerStat::downloadStart() is
  9968. called. In PeerStat::downloadStart(), speed calculation object is
  9969. reseted, which makes download speed zero.
  9970. * src/DownloadCommand.cc
  9971. Rewritten using accumulate.
  9972. * src/RequestGroupMan.cc (calculateStat)
  9973. Code clearnup.
  9974. * src/FtpNegotiationCommand.cc
  9975. * src/HttpResponseCommand.cc
  9976. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9977. Fixed: Can not resume: aria2 reports download already finished.
  9978. * src/AbstractCommand.{h, cc}
  9979. * src/HttpResponseCommand.cc
  9980. * src/FtpNegotiateCommand.cc
  9981. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9982. Now a file is stored in the directory specified in .metalnk file
  9983. (file[@name]).
  9984. * src/Metalink2RequestGroup.cc
  9985. Create the directory structure when opening the file if it doesn't
  9986. exist.
  9987. * src/AbstractDiskWriter.cc
  9988. * src/Util.{h, cc}
  9989. * src/File.h
  9990. * test/UtilTest.cc
  9991. Removed file name comparison
  9992. * src/Metalink2RequestGroup.cc
  9993. * src/HttpResponseCommand.cc
  9994. Rewritten using Util::mkdirs()
  9995. * src/FileEntry.cc (setupDir)
  9996. * test/FileEntryTest.cc
  9997. Updated doc
  9998. * src/SingleFileDownloadContext.h
  9999. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10000. Now SleepCommand dispatches nextCommand when halt is requested.
  10001. It avoids a possible long wait after hitting CTRL-C.
  10002. * src/SleepCommand.{h, cc}
  10003. * src/RequestGroupAware.{h, cc}
  10004. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10006. to open listen port, then remove the port number from the tracker
  10007. request.
  10008. * src/DefaultBtAnnounce.cc
  10009. * test/DefaultBtAnnounceTest.cc
  10010. * test/MockPieceStorage.h
  10011. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10012. them more testable.
  10013. * src/DefaultBtAnnounce.{h, cc}
  10014. * src/DefaultBtContext.{h, cc}
  10015. * src/Util.{h, cc}
  10016. * test/DefaultBtAnnounceTest.cc
  10017. * test/DefaultBtContextTest.cc
  10018. * test/UtilTest.cc
  10019. Added 'B' to upload bytes readout.
  10020. * src/ConsoleStatCalc.cc
  10021. Now the listen port for BitTorrent download is opened when it is
  10022. needed.
  10023. * src/DownloadEngineFactory.cc
  10024. * src/BtSetup.{h, cc}
  10025. * src/PeerListenCommand.{h, cc}
  10026. Now an exception thrown while parsing tracker response is now logged.
  10027. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10028. called, which means no retry is made in this case, assuming a tracker
  10029. has a problem.
  10030. * src/TrackerWatcherCommand.cc
  10031. Fixed: downloading a file whose length is unkown fails.
  10032. * src/DownloadCommand.cc
  10033. Simplified prepareForNextSegment()
  10034. * src/DownloadCommand.cc
  10035. Updated
  10036. * po/POTFILES.in
  10037. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10038. Re-implemented a file listing for Metalink, which was dropped while
  10039. http/ftp/torrent integration was being implemented.
  10040. * src/MetalinkHelper.{h, cc}: New class.
  10041. * test/MetalinkHelperTest.cc
  10042. * src/main.cc
  10043. * src/Metalink2RequestGroup.cc
  10044. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10045. Added the ability to display the detailed torrent file information.
  10046. Now -S option gives not only a file listing, but also total download
  10047. length, info hash, announce URI, piece length, the number of pieces,
  10048. and mode(single or multi-torrent).
  10049. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10050. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10051. KiB)
  10052. * test/UtilTest.cc
  10053. * src/main.cc
  10054. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10055. Added ftp://USER:PASSWD@Servername automatic parsing.
  10056. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10057. _password. Recognize username and password in URI.
  10058. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10059. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10060. * src/RequestFactory.{h, cc}: Removed.
  10061. * src/AuthConfigFactory.{h, cc}: New class.
  10062. * src/FtpConnection.cc: Use AuthConfigFactory.
  10063. * src/HttpRequest.cc: Use AuthConfigFactory.
  10064. * test/HttpRequestTest.cc: Updated.
  10065. * test/RequestTest.cc: Updated.
  10066. * test/AuthConfigFactoryTest.cc: New class.
  10067. * test/RequestFactoryTest.cc: Removed.
  10068. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10069. Use RequestGroup::allDownloadFinished() to decide whether the control
  10070. file should be removed or saved.
  10071. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10072. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10073. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10074. Use File::renameTo()
  10075. * src/DefaultBtProgressInfoFile.cc
  10076. Added --no-file-allocation-limit command-line option.
  10077. * src/version_usage.cc
  10078. * src/option_processing.cc
  10079. * src/OptionHandlerFactory.cc
  10080. * src/RequestGroup.{h, cc}
  10081. * src/BtCheckIntegrityEntry.cc
  10082. * src/StreamCheckIntegrityEntry.cc
  10083. * src/prefs.h
  10084. * doc/aria2c.1.txt
  10085. * doc/aria2c.1
  10086. Now prealloc is the default value for --file-allocation option.
  10087. * src/version_usage.cc
  10088. * src/option_processing.cc
  10089. * doc/aria2c.1.txt
  10090. * doc/aria2c.1
  10091. Don't URL-encode user-agent.
  10092. * src/HttpRequest.cc
  10093. Updated translations
  10094. * po/LINGUAS: Added nl for Dutch translation.
  10095. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10096. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10097. * po/POTFILES.in: Updated.
  10098. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10099. Added the ability to recognize url-list in a torrent file.
  10100. The retrieved URLs are attached to the corresponding FileEntry.
  10101. * src/DefaultBtContext.{h, cc}
  10102. * src/FileEntry.{h, cc}
  10103. * test/DefaultBtContextTest.cc
  10104. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10105. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10106. after the download finishes.
  10107. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10109. the data smaller than block length.
  10110. A block length can be specified by constructor's argument.
  10111. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10112. Get a missing piece in the range of given FileEntry. This function is
  10113. not used in the program yet.
  10114. * src/Util.h: Added some macros.
  10115. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10116. Added HTTP/1.1 keep alive and pipelining support.
  10117. See --enable-http-keep-alive and --enable-http-pipelining option.
  10118. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10119. Segment.
  10120. * src/HttpDownloadCommand.{h, cc}
  10121. * src/OptionHandlerFactory.cc
  10122. * src/HttpConnection.{h, cc}
  10123. * src/version_usage.cc
  10124. * src/HttpInitiateConnectionCommand.cc
  10125. * src/FtpInitiateConnectionCommand.cc
  10126. * src/Segment.h
  10127. * src/HttpRequestCommand.{h, cc}
  10128. * src/option_processing.cc
  10129. * src/prefs.h
  10130. * src/HttpResponseCommand.cc
  10131. * src/SegmentMan.{h, cc}
  10132. * src/FtpNegotiateCommand.cc
  10133. * src/HttpProxyResponseCommand.cc
  10134. * src/Request.cc
  10135. * src/HttpRequest.cc
  10136. * src/DownloadCommand.cc
  10137. * test/HttpRequestTest.cc
  10138. * test/RequestTest.cc
  10139. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10141. finished.
  10142. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10143. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10144. catching it inside the method.
  10145. When no file entry is found in a metalink without querying user
  10146. preferences, throw the exception with the error message that suggests
  10147. metalink file is probably broken.
  10148. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10149. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10151. processed.
  10152. * src/RequestGroupMan.cc (removeStoppedGroup)
  10153. Added debug message.
  10154. * src/BtPostDownloadHandler.cc
  10155. * src/MetalinkPostDownloadHandler.cc
  10156. * src/PostDownloadHandler.{h, cc}
  10157. * src/RequestGroup.cc
  10158. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10159. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10160. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10161. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10162. stops and there are any unfinished or in-progress downloads.
  10163. Added the legend of "stat".
  10164. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10165. Throw exception when chunck checksum verification fails.
  10166. * src/DownloadCommand.cc (validatePieceHash): New function.
  10167. * src/PiecedSegment.{h, cc} (clear): New function.
  10168. * src/GrowSegment.{h, cc} (clear): New function.
  10169. * src/Segment.h (clear): New function.
  10170. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10171. * test/SegmentTest.cc
  10172. * test/GrowSegmentTest.cc
  10173. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10174. Do not send referer when redirected.
  10175. * src/Request.cc (redirectUrl)
  10176. * test/RequestTest.cc
  10177. * test/HttpRequestTest.cc
  10178. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10179. Implemented BitTorrent/http/ftp integrated download.
  10180. I've rewritten lots of files and now some headers have forward
  10181. class declarations to reduce compile time.
  10182. The implementation is extremely alpha stage, I recommend to use this
  10183. for testing purpose only.
  10184. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10185. Fixed the compilation error on 64bit platform.
  10186. * test/HttpHeaderProcessorTest.cc
  10187. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10188. Merged Ross's patch that fixes compilation problem in MinGW
  10189. * test/DefaultBtProgressInfoFileTest.cc
  10190. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10191. Updated fr.po by sebone
  10192. * po/fr.po
  10193. Updated man page.
  10194. * doc/aria2c.1.txt
  10195. * Release 0.11.3
  10196. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10197. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10198. failure in Metalink.
  10199. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10200. Automatically save *.aria2 control file of http/ftp download in every
  10201. 60 seconds.
  10202. * src/AutoSaveCommand.{h, cc}: New class.
  10203. * src/TimeBasedCommand.{h, cc}: New class.
  10204. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10205. Disable parameterized URI support by default. Added -P option to
  10206. enable the feature.
  10207. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10208. * src/OptionHandlerFactory.cc
  10209. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10210. Updated Japanese translation.
  10211. * po/ja.po
  10212. Updated man page.
  10213. * doc/aria2c.1.txt
  10214. * Release 0.11.3-rc
  10215. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10217. it is successful, then renamed to *.aria2.
  10218. This prevents *.aria2 file from being truncated or corrupted when
  10219. file system becomes out of space.
  10220. * src/DefaultBtProgressInfoFile.cc (save)
  10221. * src/SegmentMan.cc (save)
  10222. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10223. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10224. Reduced the fragmentation of bitfield in http/ftp download.
  10225. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10226. * test/BitfieldManTest.cc
  10227. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10228. Added the ability to disable segmented download in .metalink.
  10229. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10230. 'url' tag.
  10231. * src/MetalinkEntry.{h, cc}
  10232. * src/RequestResource.{h, cc}
  10233. * src/MetalinkRequestInfo.cc
  10234. * src/Xml2MetalinkProcessor.cc
  10235. * test/Xml2MetalinkProcessorTest.cc
  10236. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10237. Added parameterized URI support.
  10238. * src/main.cc: -Z option added.
  10239. * src/OptionHandlerFactory.cc
  10240. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10241. * src/PStringDatum.h: New class.
  10242. * src/PStringSegment.{h,cc}: New class.
  10243. * src/PStringNumLoop.h: New class.
  10244. * src/PStringSelect.h: New class.
  10245. * src/NumberDecorator.h: New class.
  10246. * src/FixedWidthNumberDecorator.h: New class.
  10247. * src/AlphaNumberDecorator.h: New class.
  10248. * src/PStringVisitor.h: New class.
  10249. * src/PStringBuildVisitor.{h,cc}: New class.
  10250. * src/ParameterizedStringParser.{h,cc}: New class.
  10251. * src/Util.{h,cc}
  10252. (isNumber): New function.
  10253. (isLowercase): New function.
  10254. (isUppercase): New function.
  10255. (alphaToNum): New function.
  10256. * test/ParameterizedStringParserTest.cc: New class.
  10257. * test/AlphaNumberDecoratorTest.cc: New class.
  10258. * test/PStringBuildVisitorTest.cc: New class.
  10259. * test/UtilTest.cc
  10260. (testIsNumber): New function.
  10261. (testIsLowercase): New function.
  10262. (testIsUppercase): New function.
  10263. (testAlphaToNum): New function.
  10264. Added '\n' after the error message
  10265. * src/RequestInfo.h (printDownloadAbortMessage)
  10266. Added auto file renaming feature in http(s)/ftp download.
  10267. * src/main.cc: Added --auto-file-renaming command-line option.
  10268. * src/OptionHandlerFactory.cc
  10269. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10270. * src/RequestGroup.{h, cc}
  10271. (shouldCancelDownloadForSafety): Rewritten
  10272. (tryAutoFileRenaming): New function.
  10273. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10274. * src/HttpResponseCommand.cc
  10275. (executeInternal): Removed the call to RequestGroupMan::
  10276. isSameFileBeingDownloaded()
  10277. * src/FtpNegotiateCommand.cc
  10278. (recvSize): Removed the call to RequestGroupMan::
  10279. isSameFileBeingDownloaded()
  10280. * test/RequestGroupTest.cc: New class.
  10281. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10282. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10283. IO.
  10284. * src/DefaultBtProgressInfoFile.cc
  10285. * src/MetaFileUtil.cc
  10286. * src/SimpleLogger.cc
  10287. * src/SegmentMan.cc
  10288. * src/Util.cc
  10289. * src/Platform.cc
  10290. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10291. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10292. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10293. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10294. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10295. Fixed the bug that prevents file allocation is not done when
  10296. dowloading multi-torrent file.
  10297. * src/AbstractDiskWriter.cc (openFile)
  10298. Increase the maximum number of -j option from 15 to 45.
  10299. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10300. Added fr.po, thanks to Charles Landemaine.
  10301. * po/fr.po
  10302. * po/LINGUAS
  10303. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10304. gcc 3.4.4 support:
  10305. * src/DefaultBtContext.cc: int32_t -> int
  10306. * src/main.cc: int -> int32_t, int32_t -> int
  10307. * src/messageDigest.h: uint32_t -> unsigned int
  10308. * src/NameResolver.h: int32_t -> int
  10309. * src/PeerConnection.cc: int -> int32_t
  10310. * src/SpeedCalc.cc: int32_t -> int
  10311. * src/TrackerUpdateCommand.h: int -> int32_t
  10312. * src/Util.cc: int32_t -> int
  10313. * src/Util.h: int32_t -> int
  10314. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10315. * test/AnnounceListTest.cc: int -> int32_t
  10316. * test/ChunkedEncodingTest.cc: int -> int32_t
  10317. * test/DataTest.cc: int -> int32_t
  10318. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10319. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10320. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10321. * test/FeatureConfigTest.cc: int -> int32_t
  10322. * test/MetalinkEntryTest.cc: int -> int32_t
  10323. * test/MockBtRequestFactory.h: int -> int32_t
  10324. * test/MockPieceStorage.h: int -> int32_t
  10325. * test/OptionTest.cc: int -> int32_t
  10326. * test/RequestTest.cc: int -> int32_t
  10327. * test/SegmentManTest.cc: int -> int32_t
  10328. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10329. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10330. Move sleep functions to Util class:
  10331. * src/Util.cc
  10332. (sleep): New function.
  10333. (usleep): New function.
  10334. * src/DownloadCommand.cc: sleep -> Util::sleep
  10335. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10336. MinGW build enhancements. The following files are added:
  10337. * src/timegm.{c,h}
  10338. Changes to support the above new files:
  10339. * configure.ac
  10340. * src/Makefile.am
  10341. * src/a2time.h
  10342. * src/Util.cc:
  10343. * src/strptime.c: Added support for %Z option.
  10344. Fixed MinGW non-blocking bug.
  10345. * src/SocketCore.cc
  10346. * src/HttpRequestCommand.cc
  10347. Miscellenous build fixes/enhancements.
  10348. * configure.ac: Added summary report.
  10349. * src/Platform.h: Tweaked #include's.
  10350. * src/a2netcompat.h: Tweaked #include's.
  10351. * src/strptime.h: Tweaked #include's.
  10352. * src/gai_strerror.c: Tweaked #include's.
  10353. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10354. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10355. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10356. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10357. Increased the initial connection size in BitTorrent download to 40.
  10358. * src/BtRuntime.h
  10359. Added the usage message of --peer-id-prefix option.
  10360. * src/main.cc
  10361. * Release 0.11.2
  10362. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. MessageDigestHelper is introduced in order to simplify the use
  10364. of message digest. Removed repeated code.
  10365. The message digest algorithm is now specified by string, like "sha1",
  10366. "md5".
  10367. * src/messageDigest.{h, cc}
  10368. * src/MessageDigestHelper.{h, cc}: New class.
  10369. * src/DefaultPieceStorage.cc
  10370. * src/DefaultBtContext.{h, cc}
  10371. (computeFastSet): New function.
  10372. (setInfoHash): Added for unit testing.
  10373. (setNumPieces): Added for unit testing.
  10374. * src/DefaultBtInteractive.cc
  10375. * src/BtPieceMessage.cc
  10376. * src/Peer.cc
  10377. * src/Checksum.h
  10378. * src/message.h
  10379. * src/IteratableChecksumValidator.h
  10380. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10381. inside it.
  10382. * src/SegmentMan.{h, cc}
  10383. (checkIntegrity): Removed.
  10384. * src/IteratableChunkChecksumValidator.{h, cc}
  10385. * src/Util.h
  10386. (sha1Sum): Removed.
  10387. (simpleMessageDigest): Removed.
  10388. (fileChecksum): Removed.
  10389. (computeFastSet): Removed.
  10390. * src/ShaVisitor.cc
  10391. * src/ChunkChecksum.h
  10392. * src/DownloadCommand.cc
  10393. Removed messageDigest virtual functions.
  10394. * src/MultiDiskAdaptor.{h, cc}
  10395. * src/DiskAdaptor.h
  10396. * src/ByteArrayDiskWriter.h
  10397. * src/DiskWriter.h
  10398. * src/DiskAdaptorWriter.h
  10399. * src/AbstractSingleDiskAdaptor.{h, cc}
  10400. * src/AbstractDiskWriter.{h, cc}
  10401. Fixed comilation error when message digest is disabled.
  10402. * src/MetalinkEntry.{h, cc}
  10403. * src/MetalinkRequestInfo.cc
  10404. Removed srandom and random.
  10405. * src/SimpleRandomizer.h
  10406. Added size() virtual function to DiskAdaptor
  10407. * src/MultiDiskAdaptor.h
  10408. Fixed the bug that causes that files are not opened correctly in
  10409. multi-file torrent.
  10410. * src/TorrentRequestInfo.cc
  10411. * src/MultiDiskAdaptor.cc
  10412. Added SHA256 support
  10413. * src/messageDigest.cc
  10414. * src/Xml2MetalinkProcessor.cc
  10415. Show supported message digest algorithms
  10416. * src/main.cc
  10417. Updated contact info.
  10418. * src/main.cc
  10419. Applied Ross's patch
  10420. * src/a2netcompat.h
  10421. * src/main.cc
  10422. Fixed the bug that prevents a remote metalink from not being processed
  10423. even if '-o foo.metalink' is specified.
  10424. * src/MetalinkRequestInfo.cc
  10425. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10426. Merged Dan's patch:
  10427. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10428. Use va_copy to avoid core dump on amd64:
  10429. * src/SimpleLogger.cc
  10430. Updated contact info.
  10431. * src/main.cc
  10432. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10433. digest is not available.
  10434. * src/MetalinkEntry.h
  10435. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10436. Make a2netcompat.h include a2io.h to fix compilation error:
  10437. * src/a2netcompat.h
  10438. * src/SocketCore.cc: Removed include of a2io.h
  10439. * src/Util.cc: Removed include of a2io.h
  10440. Gather time related functions to a2time.h:
  10441. * src/a2time.h: New file.
  10442. * src/DefaultPeerStorage.cc
  10443. * src/SimpleLogger.cc
  10444. * src/Util.{h, cc}
  10445. * src/SimpleRandomizer.h
  10446. * src/TimeA2.{h,cc}
  10447. * src/DownloadCommand.cc
  10448. * src/main.cc
  10449. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10450. a2netcompat.h:
  10451. * src/NameResolver.cc
  10452. Fixed compilation error without openssl:
  10453. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10454. Added default block to suppress compiler warnings:
  10455. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10456. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10457. MinGW build enhancements. The following files are added:
  10458. * src/gai_strerror.{c,h}
  10459. * src/gettimeofday.{c,h}
  10460. Changes to support the above new files:
  10461. * configure.ac
  10462. * src/Makefile.am
  10463. * src/a2netcompat.h
  10464. * src/TimeA2.cc
  10465. * src/DefaultPeerStorage.cc
  10466. * src/NameResolver.cc: removed mingw_strerror() function.
  10467. * src/SocketCore.cc: removed mingw_strerror() function.
  10468. Miscellaneous MinGW build fixes.
  10469. * src/a2io.h: Use _lseeki64() instead of lseek()
  10470. * src/common.h
  10471. * src/DefaultFileAllocator.cc
  10472. * src/GlowFileAllocator.cc
  10473. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10474. * src/NameResolver.cc
  10475. (callback): Changed int32_t to int.
  10476. (resolve): Changed int32_t to int.
  10477. * src/Platform.cc
  10478. * src/Platform.h
  10479. * test/MultiDiskWriterTest.cc
  10480. * test/PeerMessageUtilTest.cc
  10481. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10482. Other enhancements and fixes.
  10483. * src/HttpRequestCommand.cc
  10484. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10485. * src/SocketCore.cc:
  10486. (error): New function to abstract errno/WSAGetLastError().
  10487. (errorMsg): New function to abstract errno/WSAGetLastError().
  10488. (initiateSecureConnection): Added more detailed error reporting.
  10489. * src/SocketCore.h: Added private variable blocking, to allow
  10490. proper handling of OpenSSL psuedo-errors.
  10491. * src/message.h
  10492. (EX_SSL_INIT_FAILURE)
  10493. (EX_SSL_IO_ERROR)
  10494. (EX_SSL_PROTOCOL_ERROR)
  10495. (EX_SSL_UNKNOWN_ERROR)
  10496. (EX_SSL_CONNECT_ERROR)
  10497. (EX_SOCKET_BLOCKING)
  10498. (EX_SOCKET_NONBLOCKING)
  10499. (EX_SOCKET_UNKNOWN_ERROR)
  10500. * src/Util.cc
  10501. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10502. reserved name.
  10503. (httpGMT): Fixed typo.
  10504. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10505. Merged Ross's win32 patch(manually)
  10506. In the course of merging, following files are added.
  10507. * src/strptime.{h,c}
  10508. * src/libgen.{h,c}
  10509. * src/inet_aton.{h,c}
  10510. * src/Platform.{h,cc}
  10511. * src/localtime_r.{h,c}
  10512. * src/getaddrinfo.{h,c}
  10513. I've gethered network related things, and put them to following file:
  10514. * src/a2netcompat.h
  10515. Also io related things are put to following file:
  10516. * src/a2io.h
  10517. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10518. * src/message.h
  10519. (MSG_ALLOCATION_COMPLETED)
  10520. (EX_TOO_LARGE_FILE)
  10521. (EX_SIZE_MISMATCH)
  10522. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10523. (EX_INVALID_CHUNK_CHECKSUM)
  10524. (EX_INVALID_RANGE_HEADER)
  10525. * src/FileAllocationCommand.cc
  10526. * src/HttpResponse.cc
  10527. * src/RequestGroup.cc
  10528. * src/MultiDiskAdaptor.cc
  10529. * src/OptionHandlerImpl.h
  10530. * src/HttpResponseCommand.cc
  10531. * src/FtpNegotiateCommand.cc
  10532. * src/IteratableChecksumValidator.cc
  10533. * src/SegmentMan.cc
  10534. * src/ChunkChecksumValidator.cc
  10535. Added Randomizer::getRandomNumber(long int)
  10536. * src/Randomizer.h (getRandomNumber)
  10537. * src/SimpleRandomizer.h (getRandomNumber)
  10538. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10539. * src/Util.cc (randomAlpha): Use this new function.
  10540. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Converted int's to in32_t. long long int's are also converted to
  10542. int64_t
  10543. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10544. Fixed the bug that prevents cookies from being sent to the server
  10545. if the domain of cookie is FQDN and starts with ".".
  10546. * src/Cookie.cc (match)
  10547. To add the ability to change peer id.
  10548. * src/DefaultBtContext.h
  10549. (_peerIdPrefix): New variable
  10550. (setPeerIdPrefix): New function.
  10551. * src/torrentRequestInfo.cc
  10552. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10553. DefaultBtContext.
  10554. * src/main.cc (main): Added peer-id-prefix command-line option.
  10555. The usage message is not added yet.
  10556. * src/DefaultBtContext.cc
  10557. (generatePeerId): Use _peerIdPrefix.
  10558. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10559. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10560. Fixed the bug that prevents filename in content-disposition from
  10561. being retrieved when filename is not quoted.
  10562. * src/Util.cc (getContentDispositionFilename)
  10563. Fixed the bug that causes infinate loop and memory leak when file open
  10564. operation failed.
  10565. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10566. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10567. Fixed the bug that causes segfault when all URIs specified are
  10568. unsupported.
  10569. * src/RequestGroupMan.cc (getInitialCommands)
  10570. Check if RequestGroup::createNextCommand() returns empty list of
  10571. commands.
  10572. * src/RequestGroup.cc (createNextCommand)
  10573. Change log level from info to error so that users can notice that
  10574. an error occurred.
  10575. Fixed the bug that causes segfault when a zero-sized file is
  10576. downloaded.
  10577. * src/BitfieldMan.cc (isAllBitSet)
  10578. Return true if bitfieldLength is 0.
  10579. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. * src/main.cc
  10581. (showUsage): Added 3 usage examples for metalink download.
  10582. Replace MetalinkChunkChecksum with ChunkChecksum.
  10583. * src/MetalinkChunkChecksum.h: Removed.
  10584. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10585. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10586. * src/Xml2MetalinkProcessor.cc
  10587. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10588. * src/MetalinkRequestInfo.cc (execute)
  10589. * Release 0.11.1
  10590. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. Reads URIs from stdin when "-i -" is specified.
  10592. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10593. * src/UriListParser.h, src/UriListParser.cc: New class.
  10594. * src/StreamUriListParser.h: New class.
  10595. * src/FileUriListParser.h: New class.
  10596. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10597. instead of UriFileListParser.
  10598. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10599. Made console readout more readable.
  10600. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10601. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10602. Fix the bug that causes -s option not to work.
  10603. * src/main.cc (main)
  10604. * src/a2algo.h: New file.
  10605. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10606. Create directory structure specified in metalink file.
  10607. * src/RequestGroup.h, src/RequestGroup.cc
  10608. (initAndOpenFile): Create a directory to store files if it does not
  10609. exist.
  10610. (getDir): New function.
  10611. Added ETA and download speed for an individual file to readout.
  10612. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10613. * src/RequestGroup.h
  10614. (calculateDownloadSpeed): New function.
  10615. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10616. Made -S option work with metalink file and provided selective download
  10617. to metalink.
  10618. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10619. (filename): Removed.
  10620. (file): New variable.
  10621. (size): Removed.
  10622. (operator=): Updated.
  10623. (getPath): New function.
  10624. (getLength): New function.
  10625. (toFileEntry): New function.
  10626. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10627. (execute): Use toStream.
  10628. (showFileEntry): Removed.
  10629. * src/MetalinkRequestInfo.h
  10630. (targetFiles): New variable.
  10631. (setTargetFiles): New variable.
  10632. * src/MetalinkRequestInfo.cc
  10633. (execute): Added the ability to print file information included in
  10634. a metalink file.
  10635. Added selective download mode to metalink.
  10636. * src/main.cc
  10637. (showUsage): Updated to denote that -S and --select-file options are
  10638. applicable to metalink.
  10639. * src/FileEntry.h
  10640. (operator=): New function.
  10641. (getBasename): New function.
  10642. (getDirname): New function.
  10643. * src/Util.h, src/Util.cc
  10644. (toStream): New function.
  10645. * src/Xml2MetalinkProcessor.cc: Updated.
  10646. Made aria2 work with metalink with directory structure.
  10647. * src/File.h, src/File.cc
  10648. (getBasename): New function.
  10649. (getDirname): New function.
  10650. * src/RequestGroup.h, src/RequestGroup.cc
  10651. (_topDir): New variable.
  10652. (setTopDir): New function.
  10653. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10654. Rewrote HTTP header parsing with stringstream.
  10655. * src/HttpConnection.h, src/HttpConnection.cc
  10656. (HttpRequestEntry): New class.
  10657. (headerBuf): Removed.
  10658. (headerBufLength): Removed.
  10659. (outstandingHttpRequests): Now its element type is
  10660. HttpRequestEntryHandle.
  10661. (findEndOfHeader): Removed.
  10662. (receiveResponse): Rewritten.
  10663. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10664. Updated doc for -j option to notice that it should be used with -i
  10665. option.
  10666. * src/main.cc (showUsage)
  10667. Removed unused classes.
  10668. * src/RequestInfo.h
  10669. (FileInfo): Removed.
  10670. (checksum): Removed.
  10671. (fileInfo): Removed.
  10672. (setChecksum): Removed.
  10673. (getChecksum): Removed.
  10674. (getFileInfo): Removed.
  10675. Use ISO units.
  10676. * src/ConsoleDownloadEngine.cc
  10677. * src/TorrentConsoleDownloadEngine.cc
  10678. * src/Util.cc (abbrevSize)
  10679. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10680. Added the default listening ports to the help message.
  10681. * src/main.cc (showUsage)
  10682. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10683. Reduce the number of calls to gettimeofday to lower CPU load.
  10684. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10685. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10686. * src/Peer.h (calculateUploadSpeed): New function.
  10687. (calculateDownloadSpeed): New function.
  10688. * src/DefaultPeerStorage.cc
  10689. (CalculateStat): Added _now variable.
  10690. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10691. and Peer::calculateUploadSpeed(const struct timeval&)
  10692. Drop connection if no request or piece message is exchanged in
  10693. a certain interval.
  10694. * src/DefaultBtInteractive.h
  10695. (btRuntime): New variable.
  10696. (inactiveCheckPoint): New variable.
  10697. (checkActiveInteraction): New function.
  10698. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10699. request or piece message is received.
  10700. (checkActiveInteraction): New function.
  10701. (doInteractionProcessing): Call checkActiveInteraction.
  10702. Fixed the bug that causes remote Metalink and Torrent files are not
  10703. processed.
  10704. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10705. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10706. Changed format of log file.
  10707. * src/SimpleLogger.cc
  10708. * Release 0.11.0
  10709. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10710. * src/AbstractCommand.cc
  10711. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10712. MSG_MAX_TRY from error to info.
  10713. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10714. * src/message.h
  10715. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10716. (MSG_DOWNLOAD_ABORTED): Added %s.
  10717. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10718. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10719. * src/PeerAbstractCommand.cc
  10720. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10721. * src/Request.h
  10722. (cookieBox): Made ShardHandle.
  10723. * src/RequestGroup.h, src/RequestGroup.cc
  10724. (createNextCommandWithAdj): New function.
  10725. * src/FileAllocationCommand.cc
  10726. (executeInternal): Use createNextCommandWithAdj().
  10727. * src/CheckIntegrityCommand.cc
  10728. (executeInternal): Use createNextCommandWithAdj().
  10729. Added --load-cookies command-option.
  10730. * src/OptionHandlerFactory.cc
  10731. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10732. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10733. Now aria2 can handle cookie's expiration date.
  10734. * src/Cookie.h (expires): Changed its type to time_t.
  10735. * src/main.cc: Added --load-cookies command-line option.
  10736. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10737. * src/Util.h, src/Util.cc (httpGMT): New function.
  10738. * src/Request.cc (Request): Initialize cookieBox using
  10739. CookieBoxFactory.
  10740. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10741. * src/CookieParser.h, src/CookieParser.cc: New class.
  10742. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10743. * src/HttpResponseCommand.cc
  10744. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10745. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10746. download.
  10747. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10748. Added -j command-line option.
  10749. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10750. * src/main.cc
  10751. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10752. Rewritten using stringstream.
  10753. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10754. Rewritten using stringstream.
  10755. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10756. Make download size shown in MB, KB.
  10757. * src/ConsoleDownloadEngine.h (sendStatistics)
  10758. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10759. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10760. Accept incoming connections if download rate is low.
  10761. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10762. (_lowestSpeedLimit): New variable.
  10763. (setLowestSpeedLimit): New function.
  10764. (execute): Accept incoming connections if download rate is low.
  10765. MAX_PEERS is ignored in this case.
  10766. Disable PREF_OUT in multiple concurrent download:
  10767. * src/RequestGroup.h, src/RequestGroup.cc
  10768. (setUserDefinedFilename): New function.
  10769. * src/DownloadEngineFactory.cc
  10770. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10771. concurrent download.
  10772. * src/DefaultSegmentManFactory.cc
  10773. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10774. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10775. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10776. Added its overloaded method.
  10777. * src/RequestGroup.h
  10778. (_numConcurrentCommand): New variable.
  10779. (setNumConcurrentCommand): New function.
  10780. * src/RequestGroup.cc
  10781. Abort download if same file is being downloaded concurrently.
  10782. * src/RequestGroup.h, src/RequestGroupMan.cc
  10783. (isSameFileBeingDownloaded): New function.
  10784. * src/HttpResponseCommand.cc (executeInternal)
  10785. * src/FtpNegotiateCommand.cc (recvSize)
  10786. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10787. * main.cc: Added help message for -i option.
  10788. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10789. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10790. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10791. * src/MetalinkEntry.h
  10792. (checksum): Changed to ChecksumHandle
  10793. * src/MetalinkRequestInfo.cc
  10794. (checksum): Changed to ChecksumHandle
  10795. * src/File.cc
  10796. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10797. * src/common.h
  10798. (DIR_OPEN_MODE): New definition
  10799. * src/RequestGroup.cc
  10800. (prepareForNextAction): Added an argument.
  10801. * src/message.h
  10802. (MSG_GOOD_CHECKSUM): New definition
  10803. (MSG_BAD_CHECKSUM): New definition
  10804. * src/HttpResponseCommand.cc
  10805. (handleDefaultEncoding): Continue download sequence in new
  10806. non-segmented download.
  10807. * src/FileAllocationEntry.h
  10808. (_nextDownloadCommand): New variable.
  10809. * src/DownloadCommand.cc
  10810. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10811. available.
  10812. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10813. * src/IteratableChecksumValidator.h,
  10814. src/IteratableChecksumValidator.cc: New class.
  10815. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10816. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10817. Change file mode to 666:
  10818. * src/common.h (OPEN_MODE): New definition.
  10819. * src/File.cc
  10820. * src/Util.cc
  10821. * src/Directry.cc
  10822. * src/AbstractDiskWriter.cc
  10823. Change the level of log message "download aborted" to debug:
  10824. * src/PeerAbstractCommand.cc (execute)
  10825. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10826. * src/TrackerWatcherCommand.cc
  10827. (createCommand): Sleep some seconds after request failed.
  10828. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10829. then abort tracker request.
  10830. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10831. * Added the simultaneous download feature.
  10832. * src/main.cc: Print "Exception caught: " when exception is caught.
  10833. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10834. * src/ActivePeerConnectionCommand.cc
  10835. * src/PeerInteractionCommand.cc
  10836. * src/BtRuntime.h
  10837. (cuidCounter): Removed.
  10838. (getNewCuid): Removed.
  10839. * src/DownloadEngineFactory.cc
  10840. * src/PeerListenCommand.cc
  10841. * src/TrackerUpdateCommand.cc
  10842. * src/PeerInitiateConnectionCommand.cc
  10843. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10844. * src/PeerAbstractCommand.cc
  10845. (onAbort): Call PeerStorage::returnPeer()
  10846. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10847. (incomingPeers): New variable.
  10848. (addIncomingPeer): New function.
  10849. (returnPeer): New function.
  10850. (onErasingPeer): New function.
  10851. (addPeer): push_back -> push_front
  10852. (getActivePeers): Rewritten.
  10853. (calculateStat): Rewritten.
  10854. * src/PeerStorage.h
  10855. (TransferStat::copy): New function.
  10856. (TransferStat::TransferStat): New function.
  10857. (TransferStat::operator=): New function.
  10858. (addIncomingPeer): New function.
  10859. (returnPeer): New function.
  10860. * src/PeerListenCommand.cc
  10861. (execute): Use PeerStorage::addIncomingPeer() instead of
  10862. Peer::addPeer().
  10863. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10864. Connect to a peer actively when download speed is lower than specified
  10865. speed in torrent download:
  10866. * src/ActivePeerConnectionCommand.h: New class.
  10867. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10868. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10869. * src/main.cc: Fixed the bug that prevents download if .netrc
  10870. doesn't exist.
  10871. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10872. To cache resolved hostname:
  10873. * src/AbstractCommand.h, src/AbstractCommand.cc
  10874. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10875. Added dns cache.
  10876. * src/FtpInitiateConnectionCommand.cc
  10877. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10878. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10879. NameResolver working without ares.
  10880. * src/TorrentRequestInfo.cc
  10881. (execute): Don't cache dns in torrent download.
  10882. * src/HttpInitiateConnectionCommand.cc
  10883. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10884. * src/DNSCache.h: New class.
  10885. * src/UrlRequestInfo.cc
  10886. (execute): Use dns cache.
  10887. In http request, suppress port number in http request header if port
  10888. is 80 or 443:
  10889. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10890. request header if port is 80 or 443.
  10891. (createProxyRequest): Allways send port number.
  10892. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10893. To add the command-line option which disables netrc support:
  10894. * src/OptionHandlerFactory.cc
  10895. (createOptionHandlers): Added PREF_NO_NETRC.
  10896. * src/main.cc: Added -n option.
  10897. * src/prefs.h (PREF_NO_NETRC): New definition.
  10898. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10899. V_TRUE.
  10900. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10901. is V_FALSE. This may get configurable in the future release.
  10902. To clear peer's error status by time basis:
  10903. * src/PeerAbstractCommand.cc
  10904. (onAbort): Call Peer::startBadCondition().
  10905. * src/Peer.h, src/Peer.cc
  10906. (error): Removed.
  10907. (_badConditionStartTime): New variable.
  10908. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10909. (startBadCondition): New function.
  10910. (isGood): New function.
  10911. * src/DefaultPeerStorage.cc
  10912. (addPeer): Use Peer::isGood().
  10913. (FindFinePeer): Use Peer::isGood().
  10914. Always include port number in http request header:
  10915. * src/HttpRequest.cc (getHostText): Always include port number in
  10916. http request header.
  10917. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10918. To the ability to read options from a config file:
  10919. * src/main.cc: Command-line parameter validation is delegated to
  10920. OptionHandler class.
  10921. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10922. * src/Option.h, src/Option.cc (clear): New function.
  10923. * src/OptionParser.h, src/OptionParser.cc: New class.
  10924. * src/OptionHandler.h: New class.
  10925. * src/NameMatchOptionHandler.h: New class.
  10926. * src/OptionHandlerImpl.h: New classes.
  10927. * src/prefs.h: '_' -> '-'
  10928. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10929. (FTP_PASV): New definition.
  10930. * src/Util.h, src/Util.cc (getRealSize): New function.
  10931. To disable netrc support if .netrc file does not have correct
  10932. permissions:
  10933. * src/File.h, src/File.cc (mode): New function.
  10934. To prevent confidential information to be logged:
  10935. * src/HttpConnection.h, src/HttpConnection.cc
  10936. (eraseConfidentialInfo): New function.
  10937. (sendRequest): Call eraseConfidentialInfo().
  10938. (sendProxyRequest): Call eraseConfidentialInfo().
  10939. * src/main.cc: Validate permissions of .netrc file.
  10940. To add --user-agent command-line option:
  10941. * src/main.cc: Added new command line option: --user-agent
  10942. * src/prefs.h (PREF_USER_AGENT): New definition.
  10943. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10944. parameter to HttpRequest object.
  10945. * src/AbstractProxyRequestCommand.cc
  10946. (executeInternal): Set user-agent option parameter to HttpRequest
  10947. object.
  10948. Marged the patches from Dan Fandrich.
  10949. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10950. Use filename and size from Metalink file instead of sending HEAD
  10951. request:
  10952. * src/UrlRequestInfo.h
  10953. (_filename): New variable.
  10954. (_totalLength): New variable.
  10955. (setTotalLength): New variable.
  10956. (setFilename): New variable.
  10957. * src/MetalinkRequestInfo.cc
  10958. (execute): Set filename and size to UrlRequestInfo
  10959. * src/UrlRequestInfo.cc
  10960. (execute): Use filename and size from Metalink instead of seding
  10961. HEAD request to servers.
  10962. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10963. To add the ability to resume downloading a partially downloaded file
  10964. which is downloaded from the beginning:
  10965. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10966. takes this role.
  10967. * src/main.cc: Added -c option.
  10968. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10969. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10970. * src/prefs.h (PREF_CONTINUE): New definition.
  10971. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10972. * src/DefaultDiskWriter.cc
  10973. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10974. * src/AbstractDiskWriter.h
  10975. (glowFileAllocator): New variable.
  10976. * src/AbstractDiskWriter.cc
  10977. (openExistingFile): Now preallocate file space from the end of the
  10978. existing file if totalLength argument is specified and grater than 0.
  10979. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10980. to download exists in local, continue the download of the file.
  10981. --allow-overwrite=true is assumed in this context.
  10982. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10983. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10984. Throw exception if --check-integrity=true is specified but chunk
  10985. checksums are not provided:
  10986. * src/UrlRequestInfo.cc
  10987. Do not print URLs to stdout:
  10988. * src/UrlRequestInfo.cc
  10989. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10990. * src/Request.h: Use AuthResolver to get authentication information.
  10991. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10992. set to RequestFactory object.
  10993. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10994. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10995. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10996. create Request object.
  10997. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10998. To integrate Netrc into exsiting classes:
  10999. * src/Request.h
  11000. (_userDefinedAuthConfig): New variable.
  11001. (findNetrcAuthenticator): New function.
  11002. (segment): Removed.
  11003. (setUserDefinedAuthConfig): New function.
  11004. (resolveHttpAuthConfigItem): New function.
  11005. (resolveFtpAuthConfigItem): New function.
  11006. (resolveHttpProxyAuthConfigItem): New function.
  11007. * src/HttpRequest.h
  11008. (authConfig): Removed.
  11009. (proxyAuthConfig): Removed.
  11010. (setAuthConfig): Removed.
  11011. (setProxyAuthConfig): Removed.
  11012. * src/UrlRequest.h
  11013. (getHeadResult): Added a parameter: authConfigHandle
  11014. * src/common.h
  11015. (SingletonHolder.h): New include.
  11016. * src/main.cc
  11017. (Netrc.h): New include.
  11018. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11019. Added initial value of PREF_NETRC_PATH.
  11020. Added the initialization of netrc.
  11021. * src/AuthConfig.h: New class.
  11022. * src/prefs.h
  11023. (PREF_NETRC_PATH): New definition.
  11024. * src/HttpAuthConfig.h: Removed.
  11025. * src/Netrc.cc
  11026. (getRequiredNextToken): New function.
  11027. (skipMacdef): New function.
  11028. (parse): Rewritten.
  11029. * src/Netrc.h
  11030. (getRequiredNextToken): New function.
  11031. (skipMacdef): New function.
  11032. * src/Util.h, src/Util.cc
  11033. (getHomeDir): New function.
  11034. * src/TrackerWatcherComand.cc
  11035. (createRequestCommand): Use AuthConfig.
  11036. * src/FtpConnection.cc
  11037. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11038. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11039. * src/Request.cc
  11040. (findNetrcAuthenticator): New function.
  11041. (resolveHttpAuthConfigItem): New function.
  11042. (resolveFtpAuthConfigItem): New function.
  11043. (resolveHttpProxyAuthConfigItem): New function.
  11044. * src/UrlRequestInfo.cc: Use AuthConfig.
  11045. * src/HttpRequest.cc
  11046. (createRequest): Use authConfig.
  11047. (getProxyAuthString): Use authConfig.
  11048. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11049. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11050. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11051. To reduce overhead to find commands whose socket is either
  11052. readable or writable in the download engine loop:
  11053. * src/Command.h, src/Command.cc
  11054. (STATUS): New enum.
  11055. (status): New variable.
  11056. (statusMatch): New function.
  11057. (setStatusActive): New function.
  11058. (setStatusInactive): New function.
  11059. * src/DownloadEngine.h, src/DownloadEngine.cc
  11060. (executeCommand): New function.
  11061. (run): Simplified.
  11062. (waitData): Call Command::setStatusActive() when command's socket is
  11063. readable or writable.
  11064. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11065. To handle Segment as SegmentHandle:
  11066. * src/AbstractCommand.cc (execute): Rewritten.
  11067. * src/SegmentMan.h: Segment -> SegmentHandle
  11068. Introducded HttpResponse class, HttpRequest class to improve code
  11069. extensiveness and make it clear:
  11070. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11071. HttpResponse class.
  11072. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11073. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11074. * src/HttpConnection.cc: Contruction of http request were moved to
  11075. HttpRequest class.
  11076. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11077. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11078. * src/HttpAuthConfig.h: New class.
  11079. * src/Range.h: New class.
  11080. To make FtpTunnel{Request, Response}Command and
  11081. HttpProxy{Request, Response}Command derived from
  11082. AbstractProxy{Request, Response}Command:
  11083. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11084. Derived from AbstractProxyRequestCommand class.
  11085. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11086. Derived from AbstractProxyResponseCommand class.
  11087. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11088. Derived from AbstractProxyRequestCommand class.
  11089. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11090. Derived from AbstractProxyResponseCommand class.
  11091. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11092. : New class.
  11093. * src/AbstractProxyResponseCommand.h,
  11094. src/AbstractProxyResponseCommand.cc: New class.
  11095. To add netrc support:
  11096. * src/Netrc.h, src/Netrc.cc: New class.
  11097. * src/Util.h, src/Util.cc (split): New function.
  11098. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11099. "Content-Range" header instead of "Range" header.
  11100. * src/HttpHeader.h
  11101. (getStatus): Removed.
  11102. (setStatus): Removed.
  11103. * src/Segment.h
  11104. (getPositionToWrite): New function.
  11105. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11106. * src/HttpHeader.h
  11107. (Range.h): New include.
  11108. (status): New variable.
  11109. (HttpHeader): Initialized status with 0.
  11110. (getStatus): New function.
  11111. (setStatus): New function.
  11112. (getRange): New function.
  11113. (HttpHeaderHandle): New function.
  11114. * src/HttpHeader.cc
  11115. (getRange): New function.
  11116. * src/Request.h
  11117. (RequestWeakHandle): New definition.
  11118. * src/HttpConnection.h
  11119. (HttpConnectionHandle): New type definition.
  11120. * src/HttpConnection.cc
  11121. (receiveResponse): Set HTTP status to headers.
  11122. * src/main.cc
  11123. (showUsage): Fixed typo.
  11124. * src/Segment.h
  11125. (SegmentHandle): New type definition.
  11126. * src/BitfieldMan.h
  11127. (getMissingUnusedLength): New function.
  11128. * src/BitfieldMan.cc
  11129. (getMissingUnusedLength): New function.
  11130. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11131. To fix static initialization order problem:
  11132. * src/BitfieldManFactory.h
  11133. (defaultRandomizer): Removed.
  11134. (factory): New variable.
  11135. (getNewFactory): Removed.
  11136. (getFactoryInstance): New function.
  11137. (setDefaultRandomizer): Rewritten.
  11138. (getDefaultRandomizer): Rewritten.
  11139. * src/BitfieldManFactory.cc
  11140. (defaultRandomizer): Removed.
  11141. (factory): Initialized to 0.
  11142. (BitfieldManFactory): Initialized randomizer to 0.
  11143. * src/DefaultPieceStorage.cc
  11144. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11145. * src/Peer.cc
  11146. (Peer): getNewFactory() -> getFactoryInstance()
  11147. * src/SegmentMan.cc
  11148. (initBitfield): getNewFactory() -> getFactoryInstance()
  11149. * src/Piece.cc
  11150. (Piece): getNewFactory() -> getFactoryInstance()
  11151. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11152. To fix the bug that causes crash on Max OS X:
  11153. * src/SimpleRandomizer.h
  11154. (getInstance): Create new instance if the static variable is null.
  11155. * src/SimpleRandomizer.cc
  11156. (randomizer): Initialized to 0.
  11157. * src/BitfieldManFactory.h
  11158. (getNewFactory): Removed the call to setRandomizer().
  11159. To fix the miscalculation of the range of checksum:
  11160. * src/BitfieldMan.h
  11161. (isBitSetOffsetRange): New function.
  11162. * src/BitfieldMan.cc
  11163. (isBitSetOffsetRange): New function.
  11164. * src/SegmentMan.cc
  11165. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11166. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11167. * Release 0.10.1
  11168. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11169. To lower CPU usage in BitTorrent download when --max-upload-limit
  11170. command-line option specified:
  11171. * src/DefaultBtMessageDispatcher.cc
  11172. (sendMessages): Calculate uploading speed only when current message
  11173. is uploading data and is not sent yet.
  11174. * src/DefaultPeerStorage.h
  11175. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11176. * src/HttpResponseCommand.cc
  11177. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11178. This fixes compile error in Soralis 10.
  11179. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11180. To fix segfault in Metalink download:
  11181. * src/UrlRequestInfo.h
  11182. (filename): Removed.
  11183. (totalLength): Removed.
  11184. (setTotalLength): Removed.
  11185. (setFilename): Removed.
  11186. * src/MetalinkRequestInfo.cc
  11187. (execute): Do not set filename and totalLength to reqInfo.
  11188. Set chunk checksum to reqInfo if it is not null.
  11189. * src/HttpResponseCommand.cc
  11190. (executeInternal): Fixed filename in log.
  11191. (handleDefaultEncoding): Removed the call to initBitfield() and
  11192. markAllPiecesDone().
  11193. (handleOtherEncoding): Added HEAD method handling.
  11194. * src/FtpNegotiateCommand.cc
  11195. (executeInternal): Added SEQ_HEAD_OK handling.
  11196. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11197. return false.
  11198. * src/FtpNegotiateCommand.h
  11199. (SEQ_HEAD_OK): New definition.
  11200. * src/SegmentMan.cc
  11201. (initBitfield): Delete bitfield.
  11202. (isChunkChecksumValidationReady): Fixed the condition.
  11203. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11204. works fine.
  11205. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11206. * src/Xml2MetalinkProcessor.h
  11207. (xpathExists): New function.
  11208. * src/Xml2MetalinkProcessor.cc
  11209. (xpathExists): New function.
  11210. Not to send HEAD request if filename and size are available in Metalink
  11211. file:
  11212. * src/UrlRequestInfo.h
  11213. (filename): New variable.
  11214. (totalLength): New variable.
  11215. (setTotalLength): New function.
  11216. (setFilename): New function.
  11217. * src/MetalinkRequestInfo.cc
  11218. (execute): Set filename and size to UrlRequestInfo.
  11219. * src/MetalinkEntry.cc
  11220. (MetalinkEntry): Initialize size with 0.
  11221. * src/UrlRequestInfo.cc
  11222. (execute): Set filename and size to SegmentMan.
  11223. Not to download rest of the files after selected files are downloaded
  11224. in BitTorrent:
  11225. * src/PieceStorage.h
  11226. (allDownloadFinished): New function.
  11227. * src/DefaultBtAnnounce.cc
  11228. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11229. downloadFinished.
  11230. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11231. * src/DefaultPieceStorage.cc
  11232. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11233. Commented out the call to finishSelectiveDownloadingMode().
  11234. (downloadFinished): Call isFilteredAllBitSet() instead of
  11235. isAllBitSet().
  11236. (allDownloadFinished): New function.
  11237. * src/DefaultBtInteractive.cc
  11238. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11239. downloadFinished().
  11240. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11241. * src/TorrentDownloadEngine.cc
  11242. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11243. * src/BitfieldMan.h
  11244. (isFilteredAllBitSet): New function.
  11245. * src/ShareRatioSeedCriteria.h
  11246. (PieceStorage.h): New include.
  11247. (pieceStorage): New variable.
  11248. (evaluate):
  11249. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11250. * src/BitfieldMan.cc
  11251. (isFilteredAllBitSet): New function.
  11252. (isAllBitSet): Filter is not took into account.
  11253. Rename --force-truncate as --allow-overwrite:
  11254. * src/TorrentRequestInfo.cc
  11255. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11256. * src/main.cc
  11257. (showUsage): --force-truncate -> --allow-overwrite
  11258. * src/message.h
  11259. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11260. * src/prefs.h
  11261. (PREF_FORCE_TRUNCATE): Removed.
  11262. (PREF_ALLOW_OVERWRITE): New definition.
  11263. * src/SegmentMan.cc
  11264. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11265. * src/MetalinkRequestInfo.cc
  11266. (execute): Queueing message are now logged in info level.
  11267. * src/common.h
  11268. (LONG_LONG_MAX): Removed.
  11269. (LONG_LONG_MIN): Removed.
  11270. * src/HttpResponseCommand.cc
  11271. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11272. * src/FtpNegotiateCommand.cc
  11273. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11274. * src/main.cc
  11275. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11276. command-line option.
  11277. (main): Added --check-integriy and --realtime-chunk-checksum
  11278. command-line option.
  11279. --force-truncate -> --allow-overwrite
  11280. Set initial value of --check-integrity option to false.
  11281. Don't show usage when error occurs while persing command-line options.
  11282. Removed deprecated --upload-limit option.
  11283. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11284. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11285. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11286. * src/BtAllowedFastMessage.cc:
  11287. * src/BtBitfieldMessage.cc
  11288. * src/BtCancelMessage.cc
  11289. * src/BtChokeMessage.cc
  11290. * src/BtHaveAllMessage.cc
  11291. * src/BtHaveMessage.cc
  11292. * src/BtHaveNoneMessage.cc
  11293. * src/BtInterestedMessage.cc
  11294. * src/BtNotInterestedMessage.cc
  11295. * src/BtPieceMessage.cc
  11296. * src/BtPortMessage.cc
  11297. * src/BtRejectMessage.cc
  11298. * src/BtRequestMessage.cc
  11299. * src/BtSuggestPieceMessage.cc
  11300. * src/BtUnchokeMessage.cc
  11301. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11302. files are affected.
  11303. * src/ChunkChecksumValidator.cc
  11304. * src/SegmentMan.cc
  11305. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11306. To add chunk checksum validation:
  11307. * src/MetalinkEntry.h
  11308. (MetalinkChunkChecksum.h): New include.
  11309. (chunkChecksum): New variable.
  11310. * src/Request.h
  11311. (method): New variable.
  11312. (setMethod): New function.
  11313. (getMethod): New function.
  11314. (METHOD_GET): New static constant.
  11315. (METHOD_HEAD): New static constant.
  11316. * src/Xml2MetalinkProcessor.h
  11317. (getPieceHash): New function.
  11318. * src/PieceStorage.h
  11319. (markAllPiecesDone): New function.
  11320. (checkIntegrity): New function.
  11321. * src/FileAllocator.h
  11322. (NullFileAllocationMonitor.h): New include.
  11323. (FileAllocator): Initialize fileAllocationMonitor with new
  11324. NullFileAllocationMonitor().
  11325. * src/MultiDiskAdaptor.h
  11326. (messageDigest.h): Remove include.
  11327. (ctx): Removed.
  11328. (hashUpdate): Added ctx.
  11329. (MultiDiskAdaptor): Removed ctx.
  11330. (sha1Sum): Renamed as messageDigest.
  11331. (messageDigest): New function.
  11332. * src/UrlRequestInfo.h
  11333. (HeadResult): New class.
  11334. (digestAlgo): New variable.
  11335. (chunkChecksumLength): New variable.
  11336. (chunkChecksums): New variable.
  11337. (getHeadResult): New function.
  11338. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11339. (setDigestAlgo): New function.
  11340. (setChunkChecksumLength): New function.
  11341. (setChunkChecksums): New function.
  11342. * src/DefaultPieceStorage.cc
  11343. (DiskAdaptorWriter.h): New include.
  11344. (ChunkChecksumValidator.h): New include.
  11345. (markAllPiecesDone): New function.
  11346. (checkIntegrity): New function.
  11347. * src/DefaultBtContext.h
  11348. (getPieceHashes): New function.
  11349. * src/TorrentRequestInfo.cc
  11350. (execute): Try to validate chunk checksum if file already exists and
  11351. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11352. * src/messageDigest.h
  11353. (~MessageDigestContext): Added digestFree().
  11354. * src/MetalinkRequestInfo.cc
  11355. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11356. * src/DiskAdaptor.h
  11357. (messageDigest.h): New include.
  11358. (sha1Sum): Renamed as messageDigest.
  11359. (messageDigest): New function.
  11360. * src/DownloadCommand.h
  11361. (PeerStat.h): New include.
  11362. (maxDownloadSpeedLimit): New variable.
  11363. (startupIdleTime): New variable.
  11364. (lowestDownloadSpeedLimit): New variable.
  11365. (peerStat): New variable.
  11366. (setMaxDownloadSpeedLimit): New function.
  11367. (setStartupIdleTime): New function.
  11368. (setLowestDownloadSPeedLimit): New function.
  11369. * src/BtContext.h
  11370. (getPieceHashes): New function.
  11371. * src/main.cc
  11372. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11373. option to true for testing purpose.
  11374. * src/BtPieceMessage.cc
  11375. (checkPieceHash): Use messageDigest
  11376. * src/DownloadEngine.cc
  11377. (SetDescriptor): Removed.
  11378. (AccumulateActiveCommand): Removed.
  11379. (waitData): Rewritten.
  11380. (updateFdSet): Rewritten.
  11381. * src/MultiDiskAdaptor.cc
  11382. (hashUpdate): Added ctx.
  11383. (sha1Sum): Renamed as messageDigest.
  11384. (messageDigest): New function.
  11385. * src/BitfieldMan.h
  11386. (isBitRangeSet): New function.
  11387. (unsetBitRange): New function.
  11388. * src/ByteArrayDiskWriter.h
  11389. (sha1Sum): Renamed as messageDigest.
  11390. (messageDigest): New function.
  11391. * src/ConsoleDownloadEngine.cc
  11392. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11393. * src/DiskWriter.h
  11394. (messageDigest.h): New include.
  11395. (sha1Sum): Renamed as messageDigest.
  11396. (messageDigest): New function.
  11397. * src/ChunkChecksumValidator.h: New class.
  11398. * src/DiskAdaptorWriter.h: New class.
  11399. * src/prefs.h
  11400. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11401. (PREF_CHECK_INTEGRITY): New definition.
  11402. * src/HttpResponseCommand.cc
  11403. (handleDefaultEncoding): Added method "HEAD" handling.
  11404. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11405. (handleOtherEncoding):
  11406. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11407. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11408. startupIdleTime, lowestDownloadSpeedLimit to command.
  11409. * src/SegmentMan.h
  11410. (getSegmentEntryByIndex): New function.
  11411. (getSegmentEntryByCuid): New function.
  11412. (getSegmentEntryIteratorByCuid): New function.
  11413. (diskWriter): DiskWriter -> DiskWriterHandle
  11414. (pieceHashes): New variable.
  11415. (chunkHashLength): New variable.
  11416. (digestAlgo): New variable.
  11417. (FindPeerStat): Removed.
  11418. (getPeerStat): Rewritten.
  11419. (markAllPiecesDone): New function.
  11420. (checkIntegrity): New function.
  11421. (tryChunkChecksumValidation): New function.
  11422. (isChunkChecksumValidationReady): New function.
  11423. * src/BitfieldMan.cc
  11424. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11425. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11426. blocks to 0.
  11427. (isBitRangeSet): New function.
  11428. (unsetBitRange): New function.
  11429. * src/FtpNegotiateCommand.cc
  11430. (executeInternal): Set maxDownloadSpeedLimit,
  11431. startupIdleTime, lowestDownloadSpeedLimit to command.
  11432. (recvSize): Added method "HEAD" handling.
  11433. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11434. * src/AbstractSingleDiskAdaptor.cc
  11435. (sha1Sum): Renamed as messageDigest.
  11436. (messageDigest): New function.
  11437. * src/AbstractSingleDiskAdaptor.h
  11438. (sha1Sum): Renamed as messageDigest.
  11439. (messageDigest): New function.
  11440. * src/Util.h
  11441. (indexRange): New function.
  11442. * src/MetalinkEntry.cc
  11443. (MetalinkEntry): Initialized chunkChecksum to 0.
  11444. * src/ShaVisitor.cc
  11445. (~ShaVisitor): Removed the call to ctx.digestFree().
  11446. * src/SegmentMan.cc
  11447. (ChunkChecksumValidator.h): New include.
  11448. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11449. to DIGEST_ALGO_SHA1.
  11450. (~SegmentMan): Removed diskWriter.
  11451. (FindSegmentEntryByIndex): Removed.
  11452. (FindSegmentEntryByCuid): Removed.
  11453. (checkoutSegment): Rewritten.
  11454. (findSlowerSegmentEntry): Rewritten.
  11455. (getSegment): Rewritten.
  11456. (updateSegment): Rewritten.
  11457. (completeSegment): Rewritten.
  11458. (markAllPiecesDone): New function.
  11459. (checkIntegrity): New function.
  11460. (isChunkChecksumValidationReady): New function.
  11461. (tryChunkChecksumValidation): New function.
  11462. * src/Xml2MetalinkProcessor.cc
  11463. (getEntry): Get size and set it to entry.
  11464. Get chunk checksum and set it to entry.
  11465. (getPieceHash): New function.
  11466. * src/Util.cc
  11467. (sha1Sum): Removed ctx.digestFree()
  11468. (fileChecksum): Removed ctx.digestFree()
  11469. (indexRange): New function.
  11470. * src/Request.cc
  11471. (METHOD_GET): New variable.
  11472. (METHOD_HEAD): New variable.
  11473. (Request): Added method.
  11474. * src/UrlRequestInfo.cc
  11475. (FatalException.h): New include.
  11476. (message.h): New include.
  11477. (operator<<): Added operator<< for class HeadResult.
  11478. (getHeadResult): New function.
  11479. (execute): Get filename and size in separate download engine.
  11480. * src/ChunkChecksumValidator.cc: New class.
  11481. * src/DownloadCommand.cc:
  11482. (DownloadCommand): Added peerStat.
  11483. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11484. the value from Option.
  11485. The buffer size is now 16KB.
  11486. Use peerStat member instead of getting it from SegmentMan.
  11487. Use startupIdleTime member instead of gettingit from Option.
  11488. Added chunk checksum validation.
  11489. * src/AbstractDiskWriter.cc
  11490. (AbstractDiskWriter): Removed ctx.
  11491. (~AbstractDiskWriter): Removed ctx.digestFree()
  11492. (writeDataInternal): Returns the return value of write.
  11493. (readDataInternal): Returns the return value of read.
  11494. (sha1Sum): Renamed as messageDigest
  11495. (messageDigest): New function.
  11496. * src/AbstractDiwkWriter.h
  11497. (messageDigest.h): Removed include.
  11498. (ctx): Removed.
  11499. (sha1Sum): Renamed as messageDigest
  11500. (messageDigest): New function.
  11501. * src/DefaultPieceStorage.h
  11502. (markAllPiecesDone): New function.
  11503. (checkIntegrity): New function.
  11504. * src/NullFileAllocationMonitor.h: New class.
  11505. * src/MetalinkChunkChecksum.h: New class.
  11506. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11507. To decrease CPU usage in bittorrent download, calculation results in
  11508. BitfieldMan were cached and realtime fetching PeerObject was removed
  11509. with WeakHandle introduced. Option values are set to the objects
  11510. by setter before download begins.
  11511. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11512. * src/DefaultBtRequestFactory.h
  11513. (dispatcher): BtMessageDispatcherHandle ->
  11514. BtMessageDispatcherWeakHandle.
  11515. (messageFactory): New variable.
  11516. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11517. BtMessageDispatcherWeakHandle.
  11518. (setBtMessageFactory): New function.
  11519. * src/DefaultBtMessageDispatcher.cc:
  11520. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11521. from Option.
  11522. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11523. feating the value from Option.
  11524. Use messageFactory member.
  11525. * src/PeerInteractionCommand.cc
  11526. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11527. Add reverse dependencies to factory object.
  11528. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11529. dispatcher.
  11530. Set messageFactory to receiver.
  11531. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11532. btInteractive.
  11533. Set receiver to peerObject.
  11534. Set maxDownloadSpeedLimit to this.
  11535. (executeInternal): Use maxDownloadSpeedLimit member.
  11536. * src/BtChokeMessage.cc
  11537. (doReceivedAction): Use dispatcher, requestFactory member.
  11538. (onSendComplete): Use dispatcher member.
  11539. * src/PeerInteractionCommand.h
  11540. (maxDownloadSpeedLimit): New variable.
  11541. * src/DefaultBtMessageReceiver.h
  11542. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11543. (dispatcher):
  11544. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11545. (messageFactory): New variable.
  11546. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11547. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11548. (setDispatcher):
  11549. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11550. (setBtMessageFactory): New function.
  11551. * src/DefaultBtInteractive.cc
  11552. (initiateHandshake): Use messageFactory member.
  11553. (addBitfieldMessageToQueue): Use messageFactory member.
  11554. (addAllowedFastMessageToQueue): Use messageFactory member.
  11555. (decideChoking): Use messageFactory member.
  11556. (checkHave): Use messageFactory member.
  11557. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11558. (receiveMessages): Use maxDownloadSpeedLimit member.
  11559. (decideInterest): Use messageFactory member.
  11560. * src/BtRequestMessage.cc
  11561. (doReceivedAction): Use messageFactory, dispatcher member.
  11562. (onQueued): Use dispatcher member.
  11563. * src/BtPieceMessage.cc
  11564. (doReceivedAction): Use dispatcher member.
  11565. (send): Use peerConnection member.
  11566. (onWrongPiece): Use requestFactory member.
  11567. (handleChokingEvent): Use messageFactory, dispatcher member.
  11568. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11569. * src/BtMessageDispatcher.h
  11570. (BtMessageDispatcherWeakHandle): New type definition.
  11571. * src/SimpleBtMessage.cc
  11572. (send): Use peerConnection member.
  11573. * src/BtRejectMessage.cc
  11574. (doReceivedAction): Use dispatcher member.
  11575. * src/DefaultBtMessageDispatcher.h
  11576. (Option.h): Removed include.
  11577. (messageFactory): New variable.
  11578. (option): Removed.
  11579. (maxUploadSpeedLimit): New variable.
  11580. (requestTimeout): New variable.
  11581. (DefaultBtMessageDispatcher): Removed option.
  11582. Added maxUploadSpeedLimit, requestTimeout.
  11583. (setOption): Removed.
  11584. (getOption): Removed.
  11585. (setMaxUploadSpeedLimit): New function.
  11586. (setRequestTimeout): New function.
  11587. (setBtMessageFactory): New function.
  11588. * src/DefaultBtInteractive.h
  11589. (btMessageReceiver):
  11590. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11591. (dispatcher):
  11592. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11593. (btRequestFactory):
  11594. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11595. (peerConnection):
  11596. PeerConnectionHandle -> PeerConnectionWeakHandle
  11597. (messageFactory): New variable.
  11598. (option): Removed.
  11599. (keepAliveInterval): New variable.
  11600. (maxDownloadSpeedLimit): New variable.
  11601. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11602. (setBtMessageReceiver):
  11603. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11604. (setDispatcher):
  11605. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11606. (setBtRequestFactory):
  11607. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11608. (setPeerConnection):
  11609. PeerConnectionHandle -> PeerConnectionWeakHandle
  11610. (setOption): Removed.
  11611. (setKeepAliveInterval): New function.
  11612. (setMaxDownloadSpeedLimit): New function.
  11613. (setBtMessageFactory): New function.
  11614. * src/BitfieldMan.h
  11615. (cachedNumMissingBlock): New variable.
  11616. (cachedNumFilteredBlock): New variable.
  11617. (cachedCompletedLength): New variable.
  11618. (cachedFilteredComletedLength): New variable.
  11619. (cachedFilteredTotalLength): New variable.
  11620. (countMissingBlockNow): New function.
  11621. (countFilteredBlockNow): New function.
  11622. (getFilteredTotalLengthNow): New function.
  11623. (getCompletedLengthNow): New function.
  11624. (getFilteredCompletedLengthNow): New function.
  11625. (updateCache): New function.
  11626. * src/AbstractBtMessage.h
  11627. (BtMessageDispatcher.h): New include.
  11628. (PeerConnection.h): New include.
  11629. (BtRequestFactory.h): New include
  11630. (BtMessageFactory.h): New include.
  11631. (dispatcher): New variable.
  11632. (messageFactory): New variable.
  11633. (peerConnection: New variable.
  11634. (setBtMessageDispatcher): New function.
  11635. (setPeerConnection): New function.
  11636. (setBtMessageFactory): New function.
  11637. (setBtRequestFactory): New function.
  11638. * src/DefaultBtMessageFactory.cc
  11639. (setCommonProperty): Set dispatcher, requestFactory, this,
  11640. peerConnection to msg.
  11641. * src/BtRegistry.h
  11642. (BT_MESSAGE_RECEIVER): New macro.
  11643. * src/PeerConnection.h
  11644. (PeerConnectionWeakHandle): New type definition.
  11645. * src/BtMessageFactory.h
  11646. (BtMessageFactoryWeakHandle): New type definition.
  11647. * src/BitfieldMan.cc
  11648. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11649. cachedCompletedLength, cachedFilteredComletedLength,
  11650. cachedFilteredTotalLength.
  11651. Call updateCache().
  11652. (countMissingBlock): Return cachedNumMissingBlock.
  11653. (countMissingBlockNow): New function.
  11654. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11655. (countFilteredBlockNow): New function.
  11656. (setBit): Call updateCache().
  11657. (unsetBit): Call updateCache().
  11658. (setBitfield): Call updateCache().
  11659. (clearAllBit): Call updateCache().
  11660. (setAllBit): Use setBitInternal instead of setBit.
  11661. Call updateCache().
  11662. (addFilter): Call updateCache().
  11663. (enableFilter): Call updateCache().
  11664. (disableFilter): Call updateCache().
  11665. (clearFilter): Call updateCache().
  11666. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11667. (getFilteredTotalLengthNow): New function.
  11668. (getCompletedLength): Return cachedCompletedLength.
  11669. (getCompletedLengthNow): New function.
  11670. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11671. (getFilteredCompletedLengthNow): New function.
  11672. (updateCache): New function.
  11673. * src/BtMessageReceiver.h
  11674. (BtMessageReceiverWeakHandle): New type definition.
  11675. * src/DefaultBtMessageReceiver.cc
  11676. (receiveHandshake): Use messageFactory member.
  11677. (sendHandshake): Use messageFactory member.
  11678. (receiveMessage): Use messageFactory member.
  11679. * src/DefaultBtMessageFactory.h
  11680. (dispatcher): New variable.
  11681. (requestFactory): New variable.
  11682. (peerConnection): New variablle.
  11683. (setBtMessageDispatcher): New function.
  11684. (setBtRequestFactory): New function.
  11685. (setPeerConnection): New function.
  11686. * src/SharedHandle.h
  11687. (RefCount): New class.
  11688. (WeakHandle): New class.
  11689. * src/PeerObject.h
  11690. (BtMessageReceiver.h): New include.
  11691. (PeerObject): Added btMessageReceiver.
  11692. (btMessageReceiver): New variable.
  11693. * src/Util.cc
  11694. (countBit): Simplified.
  11695. * src/BtCancelMessage.cc
  11696. (doReceivedAction): Use dispatcher member.
  11697. * src/BtRequestFactory.h
  11698. (BtRequestFactoryWeakHandle): New type definition.
  11699. * src/PeerStorage.h
  11700. (downloadSpeed): int -> uint32_t
  11701. (uploadSpeed): int -> uint32_t
  11702. (sessionDownloadLength): long long int -> uint64_t
  11703. (sessionUploadLength): long long int -> uint64_t
  11704. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11705. To add RecoverableException, FatalException:
  11706. * src/AbstractCommand.cc
  11707. (onAbort): Exception -> RecoverableException
  11708. * src/PeerAbstractCommand.h
  11709. (RecoverableException.h): New include.
  11710. (onAbort): Exception -> RecoverableException.
  11711. * src/PeerInteractionCommand.cc
  11712. (onAbort): Exception -> RecoverableException.
  11713. * src/PeerAbstractCommand.cc
  11714. (execute): Exception -> RecoverableException.
  11715. (onAbort): Exception -> RecoverableException.
  11716. * src/TorrentRequestInfo.cc
  11717. (execute): Exception -> RecoverableException.
  11718. * src/MetalinkRequestInfo.cc
  11719. (execute): Exception -> RecoverableException.
  11720. * src/MetaFileUtil.cc: RecoverableException.
  11721. * src/AbstractCommand.h
  11722. (onAbort): Exception -> RecoverableException.
  11723. * src/DlRetryEx.h: Exception -> RecoverableException.
  11724. * src/DlAbortEx.h: Exception -> RecoverableException.
  11725. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11726. * src/Util.cc: Exception -> RecoverableException.
  11727. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11728. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11729. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11730. To make ID static const int
  11731. * src/BtInterestedMessage.h
  11732. (ID_t): Removed.
  11733. (ID): New variable.
  11734. (getId): Made non-const.
  11735. * src/BtPieceMessage.h
  11736. (ID_t): Removed.
  11737. (ID): New variable.
  11738. (getId): Made non-const.
  11739. * src/BtChokeMessage.h
  11740. (ID_t): Removed.
  11741. (ID): New variable.
  11742. (getId): Made non-const.
  11743. * src/BtHaveAllMessage.h
  11744. (ID_t): Removed.
  11745. (ID): New variable.
  11746. (getId): Made non-const.
  11747. * src/BtKeepAliveMessage.h
  11748. (ID_t): Removed.
  11749. (ID): New variable.
  11750. (getId): Made non-const.
  11751. * src/BtHandshakeMessage.h
  11752. (ID): New variable.
  11753. (getId): Made non-const.
  11754. * src/BtSuggestPieceMessage.h
  11755. (ID_t): Removed.
  11756. (ID): New variable.
  11757. (getId): Made non-const.
  11758. * src/BtPortMessage.h
  11759. (ID_t): Removed.
  11760. (ID): New variable.
  11761. (getId): Made non-const.
  11762. * src/AbstractBtMessage.h
  11763. (id): Removed.
  11764. (AbstractBtMessage): Removed id.
  11765. (getId): Removed.
  11766. * src/BtHaveMessage.h
  11767. (ID_t): Removed.
  11768. (ID): New variable.
  11769. (getId): Made non-const.
  11770. * src/BtAllowedFastMessage.h
  11771. (ID_t): Removed.
  11772. (ID): New variable.
  11773. (getId): Made non-const.
  11774. * src/BtCancelMessage.h
  11775. (ID_t): Removed.
  11776. (ID): New variable.
  11777. (getId): Made non-const.
  11778. * src/BtNotInterestedMessage.h
  11779. (ID_t): Removed.
  11780. (ID): New variable.
  11781. (getId): Made non-const.
  11782. * src/BtChokeMessage.h
  11783. (ID_t): Removed.
  11784. (ID): New variable.
  11785. (getId): Made non-const.
  11786. * src/BtRejectMessage.h
  11787. (ID_t): Removed.
  11788. (ID): New variable.
  11789. (getId): Made non-const.
  11790. * src/BtBitfieldMessage.h
  11791. (ID_t): Removed.
  11792. (ID): New variable.
  11793. (getId): Made non-const.
  11794. * src/BtUnchokeMessage.h
  11795. (ID_t): Removed.
  11796. (ID): New variable.
  11797. (getId): Made non-const.
  11798. * src/BtRequestMessage.h
  11799. (ID_t): Removed.
  11800. (ID): New variable.
  11801. (getId): Made non-const.
  11802. * src/BtHaveMessage.h
  11803. (ID_t): Removed.
  11804. (ID): New variable.
  11805. (getId): Made non-const.
  11806. To add --force-truncate command-line option and a check whether
  11807. the file already exists:
  11808. * src/DirectDiskAdaptor.h
  11809. (getFilePath): Made virtual public.
  11810. * src/MultiDiskAdaptor.h
  11811. (File.h): New include.
  11812. (DiskWriterEntry::fileEntry): Made private.
  11813. (DiskWriterEntry::fileExists): New function.
  11814. (DiskWriterEntry::getFileEntry): New function.
  11815. (fileExists): New function.
  11816. (getFilePath): New function.
  11817. * src/TorrentRequestInfo.cc
  11818. (FatalException.h): New include.
  11819. (message.h): New include.
  11820. (RecoverableException.h): New include.
  11821. (execute): Added a check whether file is already exists or not.
  11822. * src/DiskAdaptor.h
  11823. (fileExists): New function.
  11824. (getFilePath): New function.
  11825. * src/main.cc
  11826. (showUsage): Added an explanation of --force-truncate command-line
  11827. option.
  11828. (main): Added --force-truncate command-line option.
  11829. * src/Exception.h
  11830. (setMsg): buf[256] -> buf[1024]
  11831. * src/CopyDiskWriter.h
  11832. (getFilePath): Made public virtual.
  11833. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11834. (fileExists): New function.
  11835. * src/DownloadEngineFactory.cc
  11836. (newTorrentConsoleEngine): Don't open file here.
  11837. * src/message.h
  11838. (EX_FILE_ALREADY_EXISTS): New definition.
  11839. * src/prefs.h
  11840. (PREF_FOECE_TRUNCATE): New definition.
  11841. * src/HttpResponseCommand.cc
  11842. (handleDefaultEncoding): Added a check whether the file already exists.
  11843. * src/SegmentMan.h
  11844. (fileExists): New function.
  11845. (shouldCancelDownloadForSafety): New function.
  11846. * src/FtpNegotiateCommand.cc
  11847. (recvSize): Added a check whether the file already exists.
  11848. * src/AbstractSingleDiskAdaptor.cc
  11849. (File.h): New include.
  11850. (fileExists): New function.
  11851. * src/AbstractSingleDiskAdaptor.h
  11852. (getFilePath): Removed.
  11853. (fileExists): New function.
  11854. * src/SegmentMan.cc
  11855. (fileExists): New function.
  11856. (shouldCancelDownloadForSafety): New function.
  11857. To fix regression bug in torrent downloading:
  11858. * src/DefaultBtRequestFactory.cc
  11859. (doChokedAction): New function.
  11860. * src/DefaultBtRequestFactory.h
  11861. (doChokedAction): New function.
  11862. * src/DefaultBtMessageDispatcher.cc
  11863. (doChokedAction): Do not delete request if its target is in allowed
  11864. fast set.
  11865. * src/DefaultBtInteractive.cc
  11866. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11867. (sendKeepAlive): Send keep alive message even if the outgoing message
  11868. queue is not empty.
  11869. (decideInterest): Simplified the code.
  11870. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11871. it is already called when BtChokeMessage is received from a peer.
  11872. * src/BtRequestFactory.h
  11873. (doChokedAction): New function.
  11874. To clean up code:
  11875. * src/PeerInteractionCommand.h
  11876. (executeInternal): Added virtual keyword explicitly.
  11877. (prepareForRetry): Added virtual keyword explicitly.
  11878. (prepareForNextPeer): Added virtual keyword explicitly.
  11879. (onAbort): Added virtual keyword explicitly.
  11880. * src/RequestSlot.cc
  11881. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11882. * src/BtPieceMessage.cc
  11883. (doReceivedAction): Added a debug log of piece's bitfield.
  11884. * src/Piece.h
  11885. (getBitfieldLength): New function.
  11886. * src/ByteArrayDiskWriter.cc
  11887. (clear): Added buf = 0 to avoid double free corruption.
  11888. * src/FileAllocator.cc
  11889. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11890. Added cp.reset().
  11891. * src/BitfieldMan.h
  11892. (operator=): Rewritten.
  11893. * src/BitfieldMan.cc
  11894. (BitfieldMan): Initialized bitfield, useBitfield.
  11895. * src/PeerConnection.cc
  11896. (receiveMessage): Added a call to socket->readable() after getting
  11897. message length to avoid possible EOF.
  11898. * src/Util.cc
  11899. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11900. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11901. To add an ability to pre-allocate file space:
  11902. * src/DirectDiskAdaptor.h: Rewritten.
  11903. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11904. * src/MultiDiskAdaptor.h: Rewritten.
  11905. * src/DefaultPieceStorage.cc
  11906. (MultiDiskWriter.h): Removed include.
  11907. (PreAllocationDiskWriter.h): Removed include.
  11908. (FileAllocationMonitor.h): New include.
  11909. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11910. (initStorage): Rewritten.
  11911. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11912. * src/FileAllocator.h: New class.
  11913. * src/FileAllocator.cc: New class.
  11914. * src/FileAllocationMonitor.h: New class.
  11915. * src/FileAllocationMonitor.cc: New class.
  11916. * src/ConsoleFileAllocationMonitor.h: New class.
  11917. * src/ConsoleFileAllocationMonitor.cc: New class.
  11918. * src/AbstractSingleDiskAdaptor.h: New class.
  11919. * src/AbstractSingleDiskAdaptor.cc: New class.
  11920. * src/DiskAdaptor.h
  11921. (Directory.h): Removed include.
  11922. (DiskWriter.h): Removed include.
  11923. (FileEntry.h): Removed include.
  11924. (diskWriter): Removed.
  11925. (DiskAdaptor): Removed diskWriter.
  11926. (openFile): Made pure virtual.
  11927. (closeFile): Made pure virtual.
  11928. (openExistingFile): Made pure virtual.
  11929. (initAndOpenFile): Made pure virtual.
  11930. (writeData): Made pure virtual.
  11931. (readData): Made pure virtual.
  11932. (sha1Sum): Made pure virtual.
  11933. (getStoreDir): Returns const reference of storeDir.
  11934. (DiskAdaptorHandle): New type definition.
  11935. * src/main.cc
  11936. (ConsoleFileAllocationMonitor.h): New include.
  11937. (showUsage): Added default value description of -s option.
  11938. Added the description of --file-allocation option.
  11939. (main): Set default value of --file-allocation option to 'none'.
  11940. Added --file-allocation command-line option.
  11941. Setup FileAllocationMonitorFactory.
  11942. * src/FtpInitiateConnectionCommand.cc
  11943. (executeInternal): Removed diskWriter related processing, which was
  11944. moved to FtpNegotiationCommand.cc.
  11945. * src/DirectDiskAdaptor.cc
  11946. (getFilePath): Made non-const.
  11947. * src/CopyDiskAdaptor.h
  11948. (DiskAdaptor.h): Removed include.
  11949. (DiskWriter.h): Removed include.
  11950. (AbstractSingleDiskAdaptor.h): New include.
  11951. (getFilePath): Made non-const. Added virtual keyword.
  11952. (CopyDiskAdaptor): Removed diskWriter.
  11953. (getTempFile): Returns const reference.
  11954. (CopyDiskAdaptorHandle): New type definition.
  11955. * src/ByteArrayDiskWriter.cc
  11956. (clear): Simplified.
  11957. (initAndOpenFile): Rewritten.
  11958. (openFile): Call initAndOpenFile()
  11959. * src/MultiDiskAdaptor.cc: Rewritten.
  11960. * src/DownloadEngineFactory.cc
  11961. (FileAllocator.h): New include.
  11962. (FileAllocationMonitor.h): New include.
  11963. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11964. create DefaultDiskWriter with file allocator.
  11965. * src/DiskWriter.h
  11966. (initAndOpenFile): Added totalLength argument.
  11967. (openFile): Added totalLength argument.
  11968. * src/prefs.h
  11969. (PREF_FILE_ALLOCATION): New definition.
  11970. (V_PREALLOC): New definition.
  11971. (V_NONE): New definition.
  11972. * src/HttpResponseCommand.cc
  11973. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11974. size.
  11975. * src/FtpNegotiateCommand.cc
  11976. (Util.h): New include.
  11977. (recvSize): Open file here.
  11978. * src/Util.h
  11979. (ullitos): New function.
  11980. * src/CopyDiskWriter.h
  11981. (getFilePath): Made non-const.
  11982. * src/DefaultDiskWriter.h
  11983. (Option.h): New include.
  11984. (totalLength): Removed.
  11985. (DefaultDiskWriter): Removed totalLength.
  11986. (initAndOpenFile): Added totalLength argument.
  11987. (DefaultDiskWriterHandle): New type definition.
  11988. (createNewDiskWriter): New function.
  11989. * src/Util.cc
  11990. (ullitos): New function.
  11991. * src/DefaultDiskWriter.cc
  11992. (message.h): New include.
  11993. (FileAllocator.h): New include.
  11994. (prefs.h): New include.
  11995. (Util.h): New include.
  11996. (DefaultDiskWriter): Removed totalLength.
  11997. (initAndOpenFile): Added file allocation.
  11998. (createNewDiskWriter): New function. Just for temporary solution.
  11999. It will be rewritten later.
  12000. * src/DiskAdaptor.cc
  12001. (DiskAdaptor): Removed diskWriter.
  12002. * src/AbstractDiskWriter.cc
  12003. (LogFactory.h): New include.
  12004. (AbstractDiskWriter): Added fileAllocator, logger.
  12005. (openFile): Added totalLength argument.
  12006. * src/AbstractDiskWriter.h
  12007. (FileAllocator.h): New include.
  12008. (Logger.h): New include.
  12009. (fileAllocator): New variable.
  12010. (logger): New variable.
  12011. (openFile): Added totalLength argument. Added virtual keyword
  12012. explicitly.
  12013. (openExistingFile): Added totalLength argument. Added virtual keyword
  12014. explicitly.
  12015. (closeFile): Added virtual keyword explicitly.
  12016. (sha1Sum): Added virtual keyword explicitly.
  12017. (writeData): Added virtual keyword explicitly.
  12018. (readData): Added virtual keyword explicitly.
  12019. (setFileAllocator): New function.
  12020. * src/DefaultPieceStorage.h
  12021. (FileAllocator.h): New include.
  12022. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12023. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12024. * src/FileProgressMonitor.h: New class.
  12025. To compile aria2 on PC-BSD:
  12026. * src/DefaultBtContext.cc
  12027. (libgen.h): New include.
  12028. To fix memory leak:
  12029. * src/Exception.h
  12030. (~Exception): Delete cause. Fixed memory leak.
  12031. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12032. Rewritten a portion of bittorrent implementation:
  12033. * src/BtMessageValidator.h: New class.
  12034. * src/BtBitfieldMessageValidator.h: New class.
  12035. * src/BtHandshakeMessageValidator.h: New class.
  12036. * src/BtRequestMessageValidator.h: New class.
  12037. * src/BtSuggestPieceMessageValidator.h: New class.
  12038. * src/BtAllowedFastMessageValidator.h: New class.
  12039. * src/BtRejectMessageValidator.h: New class.
  12040. * src/BtCancelMessageValidator.h: New class.
  12041. * src/BtPieceMessageValidator.h: New class.
  12042. * src/BtHaveMessageValidator.h: New class.
  12043. * src/BtEventListener.h: New class.
  12044. * src/AbstractBtEventListener.h: New class.
  12045. * src/BtEvent.h: New class.
  12046. * src/BtChokingEvent.h: New class.
  12047. * src/BtChokedEvent.h: New class.
  12048. * src/BtCancelSendingPieceEvent.h: New class.
  12049. * src/BtAbortOutstandingRequestEvent.h: New class.
  12050. * src/Randomizer.h: New class.
  12051. * src/SimpleRandomizer.h: New class.
  12052. * src/BtMessage.h: New class.
  12053. * src/AbstractBtMessage.h: New class.
  12054. * src/SimpleBtMessage.h: New class.
  12055. * src/BtHaveMessage.h: New class.
  12056. * src/BtInterestedMessage.h: New class.
  12057. * src/BtAllowedFastMessage.h: New class.
  12058. * src/BtUnchokeMessage.h: New class.
  12059. * src/BtCancelMessage.h: New class.
  12060. * src/BtNotInterestedMessage.h: New class.
  12061. * src/BtChokeMessage.h: New class.
  12062. * src/BtHaveNoneMessage.h: New class.
  12063. * src/BtHandshakeMessage.h: New class.
  12064. * src/BtSuggestPieceMessage.h: New class.
  12065. * src/BtHaveMessage.h: New class.
  12066. * src/BtPieceMessage.h: New class.
  12067. * src/BtHaveAllMessage.h: New class.
  12068. * src/BtKeepAliveMessage.h: New class.
  12069. * src/BtPortMessage.h: New class.
  12070. * src/BtRejectMessage.h: New class.
  12071. * src/BtBitfieldMessage.h: New class.
  12072. * src/BtRequestMessage.h: New class.
  12073. * src/DefaultBtRequestFactory.h: New class.
  12074. * src/DefaultBtMessageReceiver.h: New class.
  12075. * src/BtInteractive.h: New class.
  12076. * src/BtMessageDispatcher.h: New class.
  12077. * src/DefaultBtMessageDispatcher.h: New class.
  12078. * src/DefaultBtInteractive.h: New class.
  12079. * src/BitfieldManFactory.h: New class.
  12080. * src/HandleRegistry.h: New class.
  12081. * src/BtMessageFactory.h: New class.
  12082. * src/BtMessageReceiver.h: New class.
  12083. * src/DefaultBtMessageFactory.h: New class.
  12084. * src/PeerObject.h: New class.
  12085. * src/BtRequestFactory.h: New class.
  12086. * src/SuggestPieceMessage.h: Removed.
  12087. * src/PortMessage.h: Removed.
  12088. * src/SuggestPieceMessage.h: Removed.
  12089. * src/KeepAliveMessage.h: Removed.
  12090. * src/HandshakeMessage.h: Removed.
  12091. * src/PeerInteraction.h: Removed.
  12092. * src/UnchokeMessage.h: Removed.
  12093. * src/PieceMessage.h: Removed.
  12094. * src/RequestMessage.h: Removed.
  12095. * src/InterestedMessage.h: Removed.
  12096. * src/HaveMessage.h: Removed.
  12097. * src/CancelMessage.h: Removed.
  12098. * src/RejectMessage.h: Removed.
  12099. * src/AllowedFastMessage.h: Removed.
  12100. * src/HaveNoneMessage.h: Removed.
  12101. * src/SimplePeerMessage.h: Removed.
  12102. * src/HaveAllMessage.h: Removed.
  12103. * src/BitfieldMessage.h: Removed.
  12104. * src/PeerMessageFactory.h: Removed.
  12105. * src/NotInterestedMessage.h: Removed.
  12106. * src/ChokeMessage.h: Removed.
  12107. * src/PeerMessage.h: Removed.
  12108. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12109. To know root cause of exception:
  12110. * src/Exception.h
  12111. (cause): New variable.
  12112. (Exception): Added a parameter.
  12113. (getMsg): Return const reference to msg.
  12114. (getCause): New function.
  12115. * src/DlRetryEx.h
  12116. (DlRetryEx): Added a parameter 'cause'.
  12117. Added an overloaded constructor.
  12118. (DlAbortEx): Added a parameter 'cause'.
  12119. Added an overloaded constructor.
  12120. * src/SimpleLogger.cc
  12121. (writeLog): Log nested exception messages recursively.
  12122. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12123. * src/DefaultBtProgressInfoFile.cc
  12124. (load): Fixed memory leak when the infohash doesn't match.
  12125. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12126. * src/DefaultPeerStorage.cc
  12127. (calculateStat): Simplified the code by combining 2 loops into 1.
  12128. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12129. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12130. for BitTorrent download:
  12131. * src/PeerAbstractCommand.cc
  12132. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12133. * src/main.cc:
  12134. (timeoutSpecified): Removed.
  12135. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12136. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12137. * src/TorrentRequestInfo.cc
  12138. (timeoutSpecified): Removed.
  12139. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12140. timeout value.
  12141. * src/prefs.h
  12142. (PREF_BT_TIMEOUT): New definition.
  12143. Delete unused variables:
  12144. * src/TorrentRequestInfo.cc
  12145. (requestInfo): Removed.
  12146. Move setSignalHander to Util::setGlobalSignalHandler:
  12147. * src/TorrentRequestInfo.cc:
  12148. setSignalHander -> Util::setGlobalSignalHandler
  12149. * src/main.cc
  12150. (setSignalHander): Removed.
  12151. (main): setSignalHander -> Util::setGlobalSignalHandler
  12152. * src/Util.h
  12153. (setGlobalSignalHandler): New function.
  12154. * src/Util.cc
  12155. (setGlobalSignalHandler): New function.
  12156. * src/UrlRequestInfo.cc:
  12157. setSignalHander -> Util::setGlobalSignalHandler
  12158. Reset peer status in order to exit gracefully:
  12159. * src/PeerAbstractCommand.cc
  12160. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12161. To fix the bug that causes the number of bytes uploaded is not saved
  12162. to .aria2 file:
  12163. * src/DefaultPeerStorage.h
  12164. (removedPeerSessionDownloadLength): New variable.
  12165. (removedPeerSessionUploadLength): New variable.
  12166. * src/DefaultPeerStorage.cc
  12167. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12168. removedPeerSessionUploadLength(0).
  12169. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12170. through all peers, and then add removedPeerSessionDownloadLength(
  12171. removedPeerSessionUploadLength) to it.
  12172. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12173. (to) the peer to removedPeerSessionDownloadLength
  12174. (removedPeerSessionUploadLength).
  12175. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12176. To add Metalink location option:
  12177. * src/MetalinkRequestInfo.cc
  12178. (execute): Call MetalinkEntry::setLocationPreference()
  12179. * src/main.cc
  12180. (showUsage): Added the help message for --metalink-location option.
  12181. (main): Added --metalink-location option.
  12182. * src/prefs.h
  12183. (PREF_METALINK_LOCATION): New definition.
  12184. * src/MetalinkEntry.cc
  12185. (AddLocationPreference): New function object.
  12186. (setLocationPreference): New function.
  12187. * src/Xml2MetalinkProcessor.cc
  12188. (getResource): Set location attribute to MetalinkResource
  12189. To show URLs to download
  12190. * src/UrlRequestInfo.h
  12191. (printUrls): New function.
  12192. To add multiple <file> Metalink support:
  12193. * src/MetalinkEntry.h
  12194. (MetalinkResources): Removed.
  12195. (setLocationPreference): New function.
  12196. (MetalinkEntryHandle): New type definition.
  12197. (MetalinkEntries): New type definition.
  12198. * src/Xml2MetalinkProcessor.h
  12199. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12200. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12201. (parseFile): Metalinker* -> MetalinkerHandle
  12202. * src/UrlRequestInfo.h
  12203. (execute): RequestInfo* -> RequestInfos
  12204. * src/MetalinkRequestInfo.cc
  12205. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12206. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12207. (execute): RequestInfo* -> RequestInfos
  12208. Added multiple <file> support. Print filename when it is queued.
  12209. * src/MetalinkRequestInfo.h
  12210. (execute): RequestInfo* -> RequestInfos
  12211. (getDownloadEngine): Removed.
  12212. * src/RequestInfo.h
  12213. (RequestInfoHandle): New type definition.
  12214. (RequestInfos): New type definition.
  12215. (execute): RequestInfo* -> RequestInfos
  12216. (getDownloadEngine): Removed.
  12217. * src/MetalinkResource.h
  12218. (MetalinkResourceHandle): New type definition.
  12219. (MetalinkResources): New type definition.
  12220. * src/MetalinkEntry.cc
  12221. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12222. because the element is now of type MetalinkResourceHandle.
  12223. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12224. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12225. (dropUnsupportedResource): Removed the deletion of the elements of
  12226. resources because the element is now of type MetalinkResourceHandle.
  12227. * src/Xml2MetalinkProcessor.cc
  12228. (parseFile): Metalinker* -> MetalinkerHandle
  12229. MetalinkEntry* -> MetalinkEntryHandle
  12230. Removed try-catch block.
  12231. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12232. MetalinkResource* -> MetalinkResourceHandle
  12233. Removed try-catch block.
  12234. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12235. Free result by using xmlXPathFreeObject()
  12236. * src/Metalinker.cc
  12237. (~Metalinker): Removed the deletion of entries.
  12238. MetalinkEntry* -> MetalinkEntryHandle
  12239. (queryEntry): Add multiple <file> Metalink support.
  12240. * src/Metalinker.h
  12241. (MetalinkEntries): Removed.
  12242. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12243. * src/MetalinkProcessor.h
  12244. (parseFile): Metalinker* -> MetalinkerHandle
  12245. Bug fixes:
  12246. * src/PeerChokeCommand.cc
  12247. (execute): cat01->cat02
  12248. * src/DefaultPieceStorage.cc
  12249. (DefaultPieceStorage): Added diskAdaptor(0)
  12250. * src/TrackerWatcherComand.cc:
  12251. (execute): Use btAnnounce->noMoreAnnounce()
  12252. to determin whether the function returns true or not.
  12253. * src/TrackerUpdateCommand.cc:
  12254. (execute): Use btAnnounce->noMoreAnnounce()
  12255. to determin whether the function returns true or not.
  12256. * src/FtpConnection.cc
  12257. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12258. This is the fix of the busy loop bug.
  12259. * src/DownloadCommand.cc
  12260. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12261. cached PeerStat.
  12262. The value of "name" entry in torrent file is now set by
  12263. *DiskAdaptor::setTopDir(...) methods.
  12264. * src/MultiDiskAdaptor.h
  12265. (topDir): New variable.
  12266. (setTopDir): New function.
  12267. (getTopDir): New function.
  12268. * src/MultiDiskAdaptor.cc
  12269. (getFilePath): Concat storDir, "/" and topDir.
  12270. (mkdir): Use getFilePath() to get the directory path for output.
  12271. * src/DefaultPieceStorage.cc
  12272. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12273. CopyDiskAdaptor.
  12274. * src/CopyDiskAdaptor.h
  12275. (topDir): New variable.
  12276. (setTopDir): New function.
  12277. (getTopDir): New function.
  12278. * src/CopyDiskAdaptor.cc
  12279. (fixFilename): Updated.
  12280. Misc
  12281. * src/UrlRequestInfo.h
  12282. (e): Removed.
  12283. (UrlRequestInfo): Removed e.
  12284. (getDownloadEngine): Removed.
  12285. * src/UrlRequestInfo.cc
  12286. (handler): Rewritten.
  12287. (printUrls): New function.
  12288. (execute): Call printUrls().
  12289. * src/HandshakeMessage.cc
  12290. (check): peerinteraction->getBtContext() -> btContext
  12291. * src/PeerInteraction.h
  12292. (getBtContext): Removed.
  12293. * src/TorrentRequestInfo.h
  12294. (execute): RequestInfo* -> RequestInfos
  12295. (getDownloadEngine): Removed.
  12296. * src/TorrentRequestInfo.cc
  12297. (haltRequested): Removed.
  12298. (btHaltRequested): New variable.
  12299. (torrentHandler): haltRequested -> btHaltRequested
  12300. (execute): RequestInfo* -> RequestInfos
  12301. * src/TorrentConsoleDownloadEngine.cc
  12302. (afterEachIteration): haltRequested -> btHaltRequested.
  12303. * src/ConsoleDownloadEngine.h
  12304. (initStatistics): Added virtual.
  12305. (calculateStatistics): Added virtual.
  12306. (onEndOfRun): Added virtual.
  12307. (afterEachIteration): Added virtual.
  12308. * src/ConsoleDownloadEngine.cc
  12309. (haltRequested): New variable.
  12310. (afterEachIteration): New function.
  12311. * src/main.cc
  12312. (requestInfo): Removed.
  12313. * src/SegmentMan.cc
  12314. (findSlowerSegmentEntry): Refactored.
  12315. * Release 0.9.0
  12316. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12317. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12318. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12319. * src/TorrentMan.h: Removed.
  12320. * src/TorrentMan.cc: Removed.
  12321. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12322. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12323. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12324. * src/PeerAbstractCommand.cc: Use btRuntime.
  12325. * src/BtContextAwareCommand.h: New class.
  12326. * src/FileEntry.h: Added accessor methods for following variables.
  12327. (path): Made private.
  12328. (length): Made private.
  12329. (offset): Made private.
  12330. (extracted): Made private.
  12331. (requested): Made private.
  12332. (FileEntries): New definition.
  12333. (FileEntryHandle): New definition.
  12334. * src/FileEntry.cc: New file.
  12335. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12336. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12337. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12338. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12339. * src/PieceStorage.h: New file.
  12340. * src/PeerInteractionCommand.h: Use btContext.
  12341. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12342. btRuntime.
  12343. * src/DefaultBtProgressInfoFile.h: New file.
  12344. * src/DefaultBtProgressInfoFile.cc: New file.
  12345. * src/File.cc
  12346. (Util.h): New include.
  12347. (mkdirs): New function.
  12348. * src/MultiDiskAdaptor.h
  12349. (mkdir): New function.
  12350. * src/PeerListProcessor.h
  12351. (Peers): Removed.
  12352. * src/PeerInteraction.h
  12353. (torrentMan): Removed.
  12354. (btContext): New variable.
  12355. (peerStorage): New variable.
  12356. (pieceStorage): New variable.
  12357. (btAnnounce): New variable.
  12358. (getTorrentMan): Removed.
  12359. (getBtContext): New function.
  12360. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12361. btAnnounce.
  12362. * src/HandshakeMessage.h
  12363. (TorrentMan.h): Removed.
  12364. * src/HandshakeMessage.cc: Use btContext.
  12365. * src/DefaultBtAnnounce.cc: New file.
  12366. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12367. * src/DefaultPieceStorage.cc: New file.
  12368. * src/DefaultBtContext.h: New file.
  12369. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12370. Use the accessor methods of FileEntry.
  12371. * src/CookieBox.cc: Updated to use Util::slice().
  12372. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12373. * src/common.h (SharedHandle.h): New include.
  12374. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12375. pieceStorage.
  12376. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12377. * src/DiskAdaptor.h
  12378. (topDir): Removed.
  12379. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12380. (setTopDir): Removed.
  12381. (getTopDir): Removed.
  12382. * src/BtContext.h: New file.
  12383. * src/DefaultPeerStorage.h: New file.
  12384. * src/PieceMessage.h (TorrentMan.h): Removed.
  12385. * src/RequestMessage.h (TorrentMan.h): Removed.
  12386. * src/TorrentDownloadEngine.h
  12387. (uploadLength): New variable.
  12388. (btContext): New variable.
  12389. (btRuntime): New variable.
  12390. (pieceStorage): New variable.
  12391. (peerStorage): New variable.
  12392. (btAnnounce): New variable.
  12393. (btProgressInfoFile): New variable.
  12394. (torrentMan): Removed.
  12395. (setBtContext): New function.
  12396. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12397. peerStorage, btAnnounce, btProgressInfoFile.
  12398. * src/Piece.h
  12399. (toString): New function.
  12400. (Pieces): New type definition.
  12401. * src/Peer.h
  12402. (active): New variable.
  12403. (Peer): Added active.
  12404. (activate): Set active to true.
  12405. (deactivate): Set active to false.
  12406. (isActive): New function.
  12407. (Peers): New type definition.
  12408. * src/DirectDiskAdaptor.cc
  12409. (getFilePath): Use the accessor methods of FileEntry.
  12410. * src/TorrentConsoleDownloadEngine.h
  12411. (afterEachIteration): New function.
  12412. * src/TorrentConsoleDownloadEngine.cc
  12413. (haltRequested): New variable.
  12414. (sendStatistics): Use pieceStorage, btRuntime.
  12415. (afterEachIteration): New function.
  12416. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12417. * src/Directry.h
  12418. (Directory): New function.
  12419. (DirectoryHandle): New type definition.
  12420. * src/BtProgressInfoFile.h: New file.
  12421. * src/RequestMessage.cc: Use pieceStorage.
  12422. * src/BtRuntime.h: New file.
  12423. * src/DefaultBtContext.cc: New file.
  12424. * src/BitfieldMan.h
  12425. (getCompletedLength): New function(private).
  12426. (getCompletedLength): New function.
  12427. (getFilteredCompletedLength): New function.
  12428. * src/BitfieldMan.h
  12429. (getCompletedLength): New function(private).
  12430. (getCompletedLength): New function.
  12431. (getFilteredCompletedLength): New function.
  12432. * src/MultiDiskAdaptor.cc
  12433. (mkdir): New function.
  12434. (openFile): Call mkdir().
  12435. (initAndOpenFile): Call mkdir().
  12436. * src/CancelMessage.h
  12437. (TorrentMan.h): Removed.
  12438. * src/RejectMessage.h
  12439. (TorrentMan.h): Removed.
  12440. * src/DownloadEngineFactory.cc
  12441. (DefaultPieceStorage.h): New include.
  12442. (DefaultPeerStorage.h): New include.
  12443. (DefaultBtAnnounce.h): New include.
  12444. (DefaultBtProgressInfoFile.h): New include.
  12445. (newTorrentConsoleEngine): Rewritten.
  12446. * src/ShareRatioSeedCriteria.h
  12447. (torrentMan): Removed.
  12448. (btContext): New variable.
  12449. (peerStorage): New variable.
  12450. (btRuntime): New variable.
  12451. (evaluate): Use btContext, btRuntime, peerStorage.
  12452. * src/AnnounceTier.h: New file.
  12453. * src/BtAnnounce.h: New file.
  12454. * src/BtRegistry.h: New file.
  12455. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12456. * src/PeerConnection.h (TorrentMan.h): Removed.
  12457. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12458. * src/Util.h
  12459. (slice): Added an argument.
  12460. * src/Util.cc
  12461. (slice): Added an argument to control whether trim is made or not.
  12462. * src/PeerStorage.h: New file.
  12463. * src/BtRegistry.cc: New file.
  12464. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12465. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12466. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12467. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12468. * src/TorrentRequestInfo.h
  12469. (e): Removed.
  12470. (showFileEntry): Added an argument.
  12471. (getDownloadEngine): Return 0.
  12472. * src/DefaultBtAnnounce.h: New file.
  12473. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12474. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12475. * src/PeerMessageFactory.h
  12476. (btContext): New variable.
  12477. (pieceStorage): New variable.
  12478. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12479. btAnnounce.
  12480. * src/DiskAdaptor.cc
  12481. (DiskAdaptor): Removed topDir.
  12482. (~DiskAdaptor): Removed topDir.
  12483. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12484. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12485. * src/File.h (mkdirs): New function.
  12486. * src/DefaultPeerStorage): New file.
  12487. * src/DownloadEngineFactory.h
  12488. (newTorrentConsoleEngine): Use btContext.
  12489. * src/BtContextAwareCommand.cc: New file.
  12490. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12491. * src/PeerMessage.h
  12492. (btContext): New variable.
  12493. (peerStorage): New variable.
  12494. (pieceStorage): New variable.
  12495. (setBtContext): New function.
  12496. * src/Directry.cc
  12497. (Directory): New function.
  12498. (createDir): Do nothing if name.size() == 0.
  12499. * src/AnnounceList.h
  12500. (AnnounceTier): Removed.
  12501. (AnnounceTiers): Removed.
  12502. * src/DefaultPieceStorage.h: New file.
  12503. * src/Piece.cc (toString): New function.
  12504. To fix typo:
  12505. * src/main.cc (showVersion): Fixed typo.
  12506. To fix compile warning:
  12507. * src/DelegatingPeerListProcessor.cc
  12508. (canHandle): Added "return false".
  12509. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12510. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12511. make the process of announce request testable.
  12512. * src/TrackerWatcherCommand.h
  12513. (TimeA2.h): Removed.
  12514. (interval): Removed.
  12515. (checkPoint): Removed.
  12516. (createRequestCommand): Added an argument 'url'.
  12517. (TrackerWatherCommand): Removed interval.
  12518. (createCommand): New function.
  12519. * src/DownloadEngineFactory.cc
  12520. (newTorrentConsoleEngine): Updated according to the changes in
  12521. TrackerWatherCommand.
  12522. * src/TorrentMan.cc
  12523. (DelegatingPeerListProcessor.h): New includes.
  12524. (TorrentMan): Added the initialization of announceInterval.
  12525. (isStoppedAnnounceReady): New function.
  12526. (isCompletedAnnounceReady): New function.
  12527. (isDefaultAnnounceReady): New function.
  12528. (isAnnounceReady): New function.
  12529. (getAnnounceUrl): New function.
  12530. (announceStart): New function.
  12531. (announceFailure): New function.
  12532. (announceSuccess): New function.
  12533. (isAllAnnounceFailed): New function.
  12534. (resetAnnounce): New function.
  12535. (processAnnounceResponse): New function.
  12536. (needMorePeerConnection): New function.
  12537. (noMoreAnnounce): New function.
  12538. * src/TrackerUpdateCommand.h
  12539. (getTrackerResponse): int->size_t
  12540. * src/TorrentMan.h
  12541. (isStoppedAnnounceReady): New function.
  12542. (isCompletedAnnounceReady): New function.
  12543. (isDefaultAnnounceReady): New function.
  12544. (announceInterval): New variable.
  12545. (isAnnounceReady): New function.
  12546. (getAnnounceUrl): New function.
  12547. (announceStart): New function.
  12548. (announceFailure): New function.
  12549. (announceSuccess): New function.
  12550. (isAllAnnounceFailed): New function.
  12551. (resetAnnounce): New function.
  12552. (processAnnounceResponse): New function.
  12553. (needMorePeerConnection): New function.
  12554. (noMoreAnnounce): New function.
  12555. * src/TrackerWatcherCommand.cc
  12556. (TrackerWatherCommand): Removed interval and checkPoint.
  12557. (execute): Rewritten.
  12558. (createCommand): New function.
  12559. (createRequestCommand): Rewritten.
  12560. * src/TrackerUpdateCommand.cc
  12561. (MetaFileUtil.h): Removed.
  12562. (DelegatingPeerListProcessor.h): Removed.
  12563. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12564. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12565. Request -> RequestHandle:
  12566. * src/HttpResponseCommand.h: Request->RequestHandle
  12567. * src/AbstractCommand.cc: Request->RequestHandle
  12568. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12569. * src/HttpRequestCommand.cc: Request->RequestHandle
  12570. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12571. * src/AbstractCommand.h: Request->RequestHandle
  12572. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12573. * src/HttpResponseCommand.cc: Request->RequestHandle
  12574. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12575. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12576. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12577. * src/HttpConnection.h: Request->RequestHandle
  12578. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12579. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12580. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12581. * src/DownloadCommand.h: Request->RequestHandle
  12582. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12583. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12584. * src/HttpRequestCommand.h: Request->RequestHandle
  12585. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12586. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12587. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12588. * src/HttpDownloadCommand.h: Request->RequestHandle
  12589. * src/FtpConnection.cc: Request->RequestHandle
  12590. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12591. * src/UrlRequestInfo.cc: Request->RequestHandle
  12592. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12593. * src/HttpConnection.h: Request->RequestHandle
  12594. * src/DownloadCommand.cc: Request->RequestHandle
  12595. * src/FtpConnection.h: Request->RequestHandle
  12596. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12597. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12598. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12599. * src/Request.h
  12600. (SharedHandle.h): New include.
  12601. (RequestHandle): New type definition.
  12602. (Requests): Redefined.
  12603. To add MULTITRACKER support:
  12604. * src/TrackerWatcherCommand.h
  12605. (createRequestCommand): New function.
  12606. * src/DownloadEngineFactory.cc
  12607. (newTorrentConsoleEngine): Removed req.
  12608. * src/prefs.h
  12609. (PREF_TRACKER_MAX_TRIES): New definition.
  12610. * src/TorrentMan.cc
  12611. (TorrentMan): Removed req. Added trackerNumTry.
  12612. (~TorrentMan): Removed req.
  12613. (setupInternal1): Added announceList.
  12614. * src/TorrentRequestInfo.cc
  12615. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12616. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12617. * src/main.cc
  12618. (main): Added PREF_TRACKER_MAX_TRIES.
  12619. * src/TorrentMan.h
  12620. (Request.h): Removed.
  12621. (AnnounceList.h): New include.
  12622. (trackerNumTry): New variable.
  12623. (req): Removed.
  12624. (announceList): New variable.
  12625. * src/TrackerWatcherCommand.cc
  12626. (execute): Rewritten.
  12627. (createRequestCommand): New function.
  12628. * src/TrackerUpdateCommand.cc
  12629. (execute): Updated with the use of AnnounceList.
  12630. * src/AnnounceList.cc: New class.
  12631. * src/AnnounceList.h: New class.
  12632. To fix typo:
  12633. * src/prefs.h
  12634. (PREF_MAX_TRIES): max_try->max_tries
  12635. To not to decode "+" as space in URL decode:
  12636. * src/Util.cc
  12637. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12638. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12639. To add timeout to async name resolution:
  12640. * src/AbstractCommand.h
  12641. (nameResolveFinished): New function. This is not elegant way. It needs
  12642. to be more refined.
  12643. (nameResolverCheck): New variable.
  12644. * src/AbstractCommand.cc
  12645. (AbstractCommand): Added nameResolverCheck.
  12646. (execute): Added the check whether the name resolution has finished.
  12647. (setNameResolverCheck): Set nameResolverCheck to true.
  12648. (disableNameResolverCheck): Set nameResolverCheck to false.
  12649. (nameResolverFinished): New function.
  12650. * src/FtpInitiateConnectionCommand.h
  12651. (nameResolverFinished): New function.
  12652. * src/FtpInitiateConnectionCommand.cc
  12653. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12654. * src/HttpInitiateConnectionCommand.h
  12655. (nameResolverFinished): New function.
  12656. * src/HttpInitiateConnectionCommand.cc
  12657. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12658. * src/prefs.h
  12659. (PREF_DNS_TIMEOUT): New definition.
  12660. * src/main.cc
  12661. (main): Added PREF_DNS_TIMEOUT.
  12662. To add the support for a non-compact response from a tracker:
  12663. * src/PeerListProcessor.h: New class.
  12664. * src/DefaultPeerListProcessor.h: New class.
  12665. * src/DefaultPeerListProcessor.cc: New class.
  12666. * src/CompactPeerListProcessor.h: New class.
  12667. * src/CompactPeerListProcessor.cc: New class.
  12668. * src/DelegatingPeerListProcessor.h: New class.
  12669. * src/DelegatingPeerListProcessor.cc: New class.
  12670. * src/TorrentMan.cc
  12671. (addPeer): New function(overload).
  12672. (addPeer): Delete unused peers only when new peer is added.
  12673. * src/TorrentMan.h
  12674. (PeerListProcessor.h): Included.
  12675. (Peers): Removed.
  12676. (addPeer): New function(overload).
  12677. * src/TrackerUpdateCommand.cc
  12678. (netinet/in.h): Removed.
  12679. (DelegatingPeerListProcessor.h): Included.
  12680. (execute): Updated to use DelegatingPeerListProcessor.
  12681. To fix the memory leak in TorrentMan::peers:
  12682. * src/PeerAbstractCommand.cc
  12683. (onAbort): Added peer->resetStatus().
  12684. * src/Peer.h
  12685. (resetStatus): Made public.
  12686. To improve the precision of the speed calculation:
  12687. * src/SpeedCalc.h
  12688. (nextInterval): New variable.
  12689. * src/SpeedCalc.cc
  12690. (reset): Added nextInterval.
  12691. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12692. (changeSw): Set nextInterval to 15 seconds relative to the current
  12693. instant time.
  12694. * src/main.cc
  12695. (showVersion): Updated.
  12696. (showUsage): Updated.
  12697. * Release 0.8.1
  12698. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12699. * src/main.cc
  12700. (showUsage): Commented out --min-segment-size option.
  12701. (main): Commented out --min-segment-size option.
  12702. * Release 0.8.0
  12703. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12704. * src/*.{h,cc}:
  12705. Added an exception to the license which allows linking with OpenSSL.
  12706. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12707. * src/AbstractCommand.cc
  12708. (execute): Check whether the download has finished before checking
  12709. socket status.
  12710. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12711. Do not exit even if no segment is available.
  12712. * src/prefs.h
  12713. (PREF_STARTUP_IDLE_TIME): New definition.
  12714. * src/PeerInteractionCommand.cc
  12715. (executeInternal): Removed max speed limit. Because it performs bad.
  12716. (receiveMessages): Added max speed limit. This was better than above,
  12717. but still a little bit to be desired. Sometimes the download speed
  12718. became much faster than I specified.
  12719. * src/SpeedCalc.h
  12720. (start): New variable.
  12721. (accumulatedLength): New variable.
  12722. (getAvgSpeed): New function.
  12723. * src/SpeedCalc.cc
  12724. (reset): Added start, accumulatedLength.
  12725. (update): Added calculation of an average speed.
  12726. (getAvgSpeed): New function.
  12727. * src/DownloadCommand.h
  12728. (sw): Removed.
  12729. * src/main.cc
  12730. (main): Added PREF_STARTUP_IDLE_TIME.
  12731. * src/PeerStat.h
  12732. (STATUS): Added REQUEST_IDLE.
  12733. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12734. (getAvgDownloadSpeed): New function
  12735. (requestIdle): New function.
  12736. * src/SegmentMan.h
  12737. (SegmentEntryHandle): New type definition.
  12738. (SegmentEntries): Now holds SegmentEntryHandle.
  12739. (findSlowerSegmentEntry): New funtion.
  12740. * src/SegmentMan.cc
  12741. (save): Updated according to the changes in SegmentEntries.
  12742. (read): Updated according to the changes in SegmentEntries.
  12743. (FindSegmentEntryByIndex): Updated according to the changes in
  12744. SegmentEntries.
  12745. (FindSegmentEntryByCuid): Updated according to the changes in
  12746. SegmentEntries.
  12747. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12748. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12749. Renamed uitr as itr.
  12750. (findSlowerSegmentEntry): New function.
  12751. (getSegment): Updated according to the changes in SegmentEntries.
  12752. Added the feature that cancels the segment with slow server and fast
  12753. one takes it over.
  12754. (cancelSegment): Updated according to the changes in SegmentEntries.
  12755. (getDownloadLength): Updated according to the changes in
  12756. SegmentEntries.
  12757. (init): Assigned 0 to bitfield after deleting it.
  12758. * src/DownloadCommand.cc
  12759. (STARTUP_IDLE_TIME): Removed.
  12760. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12761. * src/PeerChokeCommand.cc
  12762. (optUnchokingPeer): Updated according to the changes in Peer.
  12763. (ResetDelta): Removed.
  12764. (UploadFaster): Updated according to the changes in Peer.
  12765. (DownloadFaster): Updated according to the changes in Peer.
  12766. (execute): I clarify the meaning of "upload" and "download" here.
  12767. "upload" means the transfer from localhost to remote host.
  12768. "download" means the transfer from remote host to localhost.
  12769. Based on this rule, I swapped orderByUploadRate and
  12770. orderByDownloadRate.
  12771. * src/PeerInteractionCommand.cc
  12772. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12773. (executeInternal): Removed the argument of
  12774. peerInteraction->sendMessages().
  12775. (receiveMessages): Rewritten download speed limit.
  12776. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12777. * src/HttpResponseCommand.cc
  12778. (handleDefaultEncoding): If file size is unknown in torrent request,
  12779. do not call segmentMan->initBitfield() here.
  12780. Disabled persistent connection feature in torrent request.
  12781. * src/UrlRequestInfo.h
  12782. (UrlRequestInfo): Removed const qualifier from option.
  12783. * src/TorrentMan.h
  12784. (TransferStat): New class.
  12785. (deltaDownloadLength): Removed.
  12786. (deltaUploadLength): Removed.
  12787. (addDeltaDownloadLength): Removed.
  12788. (getDeltaDownloadLength): Removed.
  12789. (resetDeltaDownloadLength): Removed.
  12790. (addDeltaUploadLength): Removed.
  12791. (getDeltaUploadLength): Removed.
  12792. (resetDeltaUploadLength): Removed.
  12793. (addActivePeer): Added peer->activate().
  12794. (deleteActivePeer): Added peer->deactivate().
  12795. (calculateStat): New function.
  12796. * src/TorrentMan.cc
  12797. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12798. (calculateStat): New function.
  12799. * src/PeerInteraction.h
  12800. (uploadLimit): Removed.
  12801. (option): New variable.
  12802. (setUploadLimit): Removed.
  12803. (getUploadSpeed): Removed.
  12804. (sendMessages): Removed the argument "currentUploadSpeed".
  12805. * src/PeerInteraction.cc
  12806. (prefs.h): Included.
  12807. (PeerInteraction): Removed uploadLimit. Added option.
  12808. (sendMessages): Rewritten upload speed limit.
  12809. (sendHandshake): Removed the argument from sendMessages().
  12810. (sendBitfield): Removed the argument from sendMessages().
  12811. * src/PeerAbstractCommand.cc
  12812. (execute): Commented out the portion of upload limit.
  12813. (onAbort): Removed peer->resetStatus().
  12814. * src/TorrentRequestInfo.cc
  12815. (timeoutSpecified): Declared extern.
  12816. (execute): Set timeout to 180 if timeout is not specified by.
  12817. command-line.
  12818. * src/PieceMessage.cc
  12819. (receivedAction): Added peer->updateDownloadLength().
  12820. Removed peer->addPeerUpload().
  12821. Removed torrentMan->addDeltaDownloadLength().
  12822. (send): Added peer->updateUploadLength().
  12823. Removed peer->addPeerDownload().
  12824. Removed torrentMan->addDeltaUploadLength().
  12825. * src/main.cc
  12826. (timeoutSpecified): New variable.
  12827. (main): Set timeoutSpecified to false.
  12828. If the command-line option "--upload-limit" is specified, then
  12829. timeoutSpecified is set to true. This option will remain in the next
  12830. release, but be deprecated in the future release.
  12831. * src/TorrentRequestInfo.h
  12832. (TorrentRequestInfo): Removed const qualifier from op.
  12833. * src/PeerStat.h
  12834. (uploadSpeed): New variable.
  12835. (PeerStat): Added default value to cuid.
  12836. (calculateUploadSpeed): New function.
  12837. (updateUploadLength): New function.
  12838. (getMaxUploadSpeed): New function.
  12839. (getAvgUploadSpeed): New function.
  12840. (reset): Added uploadSpeed. Set status to IDLE.
  12841. * src/TorrentDownloadEngine.h
  12842. (cp): Declared as Time.
  12843. (sessionDownloadLengthArray): Removed.
  12844. (sessionUploadLengthArray): Removed.
  12845. (currentCp): Removed.
  12846. (lastCalcStat): New variable
  12847. (lastElapsed): Removed.
  12848. (sessionDownloadLength): Removed.
  12849. (calculateStat): New function.
  12850. * src/TorrentDownloadEngine.cc
  12851. (initStatistics): Removed lastElapsed, cp[],
  12852. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12853. currentCp, sessionDownloadLength.
  12854. Added cp.reset() and lastCalcStat.reset().
  12855. (calculateSpeed): Changed the name of the argument.
  12856. (calculateStatistics): Rewritten.
  12857. (calculateStat): New function.
  12858. * src/Peer.h
  12859. (PeerStat.h): Included.
  12860. (peerUpload): Removed.
  12861. (peerDownload): Removed.
  12862. (peerStat): New variable.
  12863. (sessionUploadLength): New variable.
  12864. (sessionDownloadLength): New variable.
  12865. (deltaUpload): Removed.
  12866. (deltaDownload): Removed.
  12867. (resetStatus): Made private.
  12868. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12869. Removed peerUpload, peerDownload.
  12870. (updateUploadLength): New function.
  12871. (addDeltaUpload): Removed.
  12872. (updateDownloadLength): New function.
  12873. (resetDeltaUpload): Removed.
  12874. (getDeltaUpload): Removed.
  12875. (addDeltaDownload): Removed.
  12876. (calculateUploadSpeed): New function.
  12877. (resetDeltaDownload): Removed.
  12878. (getDeltaDownload): Removed.
  12879. (calculateDownloadSpeed): New function.
  12880. (getSessionUploadLength): New function.
  12881. (getSessionDownloadLength): New function.
  12882. (activate): New function.
  12883. (deactivate): New function.
  12884. (addPeerUpload): Removed.
  12885. (setPeerUpload): Removed.
  12886. (getPeerUpload): Removed.
  12887. (addPeerDownload): Removed.
  12888. (setPeerDownload): Removed.
  12889. (getPeerDownload): Removed.
  12890. * src/Peer.cc
  12891. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12892. * src/MetalinkRequestInfo.h
  12893. (MetalinkRequestInfo): Removed const qualifier from op.
  12894. * src/RequestInfo.h
  12895. (op): Removed const qualifier.
  12896. (RequestInfo): Removed const qualifier from op.
  12897. * src/prefs.h
  12898. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12899. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12900. * src/PeerInteractionCommand.cc
  12901. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12902. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12903. * src/PeerInteraction.cc
  12904. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12905. * src/main.cc
  12906. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12907. Added the description of "--max-download-limit" option.
  12908. Removed the description of "--upload-limit" option.
  12909. Added the description of "--max-upload-limit" option.
  12910. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12911. Added "--max-download-limit" option and "--max-upload-limit" option.
  12912. Added the warning message if "--upload-limit" option is used.
  12913. * src/DownloadCommand.cc
  12914. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12915. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12916. To rewrite segment download mechanism for HTTP/FTP download.
  12917. Use BitfieldMan to manage segment download.
  12918. * src/HttpResponseCommand.h
  12919. (executeInternal): Pass the reference of segment.
  12920. * src/AbstractCommand.cc
  12921. (prepareForRetry): Call segmentMan->cancelSegment here.
  12922. (onAbort): Call segmentMan->cancelSegment here.
  12923. * src/HttpDownloadCommand.cc
  12924. (prepareForNextSegment): New function.
  12925. * src/DownloadEngineFactory.cc
  12926. (newConsoleEngine): Removed splitter.
  12927. (newTorrentConsoleEngine): Removed splitter.
  12928. * src/Request.h
  12929. (segment): Renamed from seg.
  12930. * src/FtpInitiateConnectionCommand.h
  12931. (executeInternal): Pass the reference of segment.
  12932. * src/AbstractCommand.h
  12933. (executeInternal): Pass the reference of segment.
  12934. * src/pref.h
  12935. (PREF_SEGMENT_SIZE): New definition.
  12936. * src/HttpProxyRequestCommand.h
  12937. (executeInternal): Pass the reference of segment.
  12938. * src/HttpResponseCommand.cc
  12939. (checkResponse): Allowed status 206 when a request range starts 0.
  12940. (handleDefaultEncoding): Rewritten the code related to Segment.
  12941. (handleOtherEncoding): Rewritten the code related to Segment.
  12942. * src/SegmentMan.h
  12943. (SegmentEntry): New class.
  12944. (SegmentEntries): New type definition.
  12945. (bitfield): New variable.
  12946. (usedSegmentEntries): New variable.
  12947. (onNullBitfield): New function.
  12948. (checkoutSegment): New function.
  12949. (segments): Removed.
  12950. (splitter): Removed.
  12951. (unregisterId): Removed.
  12952. (getSegment): New function(overload)
  12953. (getDownloadedSize): Removed.
  12954. (cancelSegment): New function.
  12955. (completeSegment): New function.
  12956. (initBitfield): New function.
  12957. (hasSegment): New function.
  12958. (getDownloadLength): New function.
  12959. * src/BitfieldMan.h
  12960. (getStartIndex): New function.
  12961. (getEndIndex): New function.
  12962. (getMissingUnusedIndex): New function(overload).
  12963. (getSparseMissingUnusedIndex): New function.
  12964. * src/BitfieldMan.cc
  12965. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12966. (getMissingUnusedIndex): New function(overload).
  12967. (Range): New class.
  12968. (getStartIndex): New function.
  12969. (getEndIndex): New function.
  12970. (getSparseMissingUnusedIndex): New function.
  12971. (isBitSetInternal): Return false if the given index is less than 0.
  12972. * src/HttpInitiateConnectionCommand.h
  12973. (executeInternal): Pass the reference of segment.
  12974. * src/FtpNegotiateCommand.h
  12975. (executeInternal): Pass the reference of segment.
  12976. * src/FtpNegotiateCommand.cc
  12977. (recvSize): Initialize bitfield here.
  12978. * src/FtpTunnelResponseCommand.h
  12979. (executeInternal): Pass the reference of segment.
  12980. * src/HttpConnection.cc
  12981. (createRequest): Rewritten range header processing.
  12982. * src/DownloadCommand.h
  12983. (executeInternal): Pass the reference of segment.
  12984. (prepareForRetry): Removed.
  12985. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12986. function.
  12987. * src/main.cc
  12988. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12989. * src/SegmentMan.cc
  12990. (SegmentMan): Added bitfield. Removed splitter.
  12991. (~SegmentMan): Added bitfield. Removed splitter.
  12992. (unregisterId): Removed.
  12993. (getSegment): Rewritten.
  12994. (updateSegment): Rewritten.
  12995. (save): Rewritten.
  12996. (read): Rewritten.
  12997. (finished): Rewritten.
  12998. (getDownloadedSize): Removed.
  12999. (initBitfield): New function.
  13000. (FindSegmentEntryByIndex): New function object.
  13001. (FindSegmentEntryByCuid): New function object.
  13002. (checkoutSegment): New function.
  13003. (onNullBitfield): New function.
  13004. (getSegment): New function(overload).
  13005. (CancelSegment): New function object.
  13006. (cancelSegment): New function.
  13007. (completeSegment): New function.
  13008. (hasSegment): New function.
  13009. (getDownloadLength): New function.
  13010. * src/FtpInitiateConnectionCommand.cc
  13011. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13012. * src/Segment.h: Rewritten.
  13013. * src/Segment.cc (operator<<): New function.
  13014. * src/HttpDownloadCommand.h
  13015. (prepareForNextSegment): New function.
  13016. * src/Request.cc
  13017. (resetUrl): Made segment null.
  13018. * src/DownloadEngine.cc
  13019. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13020. * src/HttpProxyRequestCommand.h
  13021. (executeInternal): Pass the reference of segment.
  13022. * src/DownloadCommand.cc
  13023. (executeInternal): Rewritten the code related to Segment.
  13024. (prepareForRetry): Removed.
  13025. (prepareForNextSegment): Rewritten.
  13026. * src/FtpTunnelResponseCommand.h
  13027. (executeInternal): Pass the reference of segment.
  13028. To add HTTP 1.1 persistent connection support(experimental)
  13029. * src/HttpRequestCommand.cc
  13030. (executeInternal): Disable keep alive if it is disabled by
  13031. configuration.
  13032. * src/Request.h
  13033. (keepAlive): New variable.
  13034. (isKeepAlive): New function.
  13035. (setKeepAlive): New function.
  13036. * src/pref.h
  13037. (PREF_HTTP_KEEP_ALIVE): New definition.
  13038. * src/HttpResponseCommand.cc
  13039. (executeInternal): Check the remote server supports keep alive.
  13040. * src/HttpConnection.cc
  13041. (createRequest): Send "Connection: close" only if keep alive is
  13042. disabled.
  13043. * src/main.cc
  13044. (main):
  13045. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13046. To add max download speed limit:
  13047. * src/pref.h
  13048. (PREF_MAX_SPEED_LIMIT): New definition.
  13049. * src/PeerInteractionCommand.cc
  13050. (executeInternal): Added max download speed limit. Not tested yet.
  13051. * src/SegmentMan.h
  13052. (PeerStats): New type definition.
  13053. (peerStats): New variable.
  13054. (registerPeerStat): New function.
  13055. (FindPeerStat): New function object.
  13056. (getPeerStat): New function.
  13057. (calculateDownloadSpeed): New function.
  13058. * src/SpeedCalc.h: New class.
  13059. * src/SpeedCalc.cc: New class.
  13060. * src/main.cc
  13061. (main):
  13062. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13063. download speed is not restricted).
  13064. * src/PeerStat.h: New class.
  13065. * src/SegmentMan.cc
  13066. (registerPeerStat): New function.
  13067. (calculateDownloadSpeed): New function.
  13068. * src/DownloadCommand.cc
  13069. (STARTUP_IDLE_TIME): New definition.
  13070. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13071. downloadStart.
  13072. (~DownloadCommand): Call peerStat->downloadStop.
  13073. (executeInternal): Added download speed limitter. Rewritten lowest
  13074. speed limitter.
  13075. * src/HttpConnection.cc
  13076. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13077. * src/AbstractCommand.cc
  13078. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13079. Added hostname to the error message.
  13080. * src/ConsoleDownloadEngine.cc
  13081. (calculateStatistics): Initialize psize with dlSize.
  13082. * src/PieceMessage.cc
  13083. (receivedAction): Do not call peerInteraction->abortPiece here.
  13084. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13085. * src/BitfieldMan.h
  13086. (clearAllUseBit): New function.
  13087. (setAllUseBit): New function.
  13088. * src/BitfieldMan.cc
  13089. (clearAllBit): Do not clear useBitfield here.
  13090. (clearAllUseBit): New function.
  13091. (setAllUseBit): New function.
  13092. * src/Piece.cc
  13093. (clearAllBlock): Call bitfield->clearAllUseBit().
  13094. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13095. To make filename URL-decoded:
  13096. * src/HttpResponseCommand.h: Updated doc.
  13097. * src/HttpResponseCommand.cc
  13098. (determinFilename): Made filename URL-decoded.
  13099. * src/FtpInitiateConnectionCommand.cc
  13100. (executeInternal): Made filename URL-decoded.
  13101. * src/Util.h (urldecode): New function.
  13102. * src/Util.cc (urldecode): New function.
  13103. To fix a bug that caused assertion failure in ares_strerror:
  13104. * src/NameResolver.cc (callback): Fixed the bug.
  13105. * Release 0.7.3
  13106. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13107. To add --seed-time and --seed-ratio command-line option:
  13108. * src/Option.h (getAsDouble): New function.
  13109. * src/Option.cc (getAsDouble): New function.
  13110. * src/SeedCheckCommand.h: New class.
  13111. * src/SeedCheckCommand.cc: New class.
  13112. * src/DownloadEngineFactory.cc
  13113. (SeedCheckCommand.h): Included.
  13114. (UnionSeedCriteria.h): Included.
  13115. (TimeSeedCriteria.h): Included.
  13116. (ShareRatioSeedCriteria.h): Included.
  13117. (newTorrentConsoleEngine): Added the processing of seed option.
  13118. * src/SeedCriteria.h: New class.
  13119. * src/ShareRatioSeedCriteria.h: New class.
  13120. * src/TimeSeedCriteria.h: New class.
  13121. * src/UnionSeedCriteria.h: New class.
  13122. * src/prefs.h
  13123. (PREF_SEED_TIME): New definition.
  13124. (PREF_SEED_RATIO): New definition.
  13125. * src/main.cc
  13126. (showUsage): Added --seed-time and --seed-ratio option.
  13127. (main): Added --seed-time and --seed-ratio option.
  13128. Made default log file name "/dev/null".
  13129. * src/SharedHandle.h
  13130. (SharedHandle): Copy constructor. Made it assignable from the
  13131. SharedHandle of the subclasses.
  13132. (operator=): Made it assignable from the SharedHandle of the
  13133. subclasses.
  13134. (getRefCount): New function.
  13135. To add notice log level and the switch to write log to stdout. This
  13136. switch is configurable per log level.
  13137. * src/Logger.h
  13138. (notice): New function.
  13139. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13140. constant.
  13141. * src/LogFactory.cc
  13142. (getInstance): The use of NullLogger was removed. A log message with
  13143. notice log level was made written to stdout along with log file.
  13144. * src/NullLogger.h
  13145. (notice): New function.
  13146. * src/SimpleLogger.h
  13147. (writeHeader): Added the 'file' argument.
  13148. (writeLog): Added the 'file' argument.
  13149. (writeFile): New function.
  13150. (stdoutField): New variable.
  13151. (SimpleLogger): Removed the default constructor.
  13152. (SimpleLogger): Made the default value of logfile 0.
  13153. (debug): Added 'virtual' keyword.
  13154. (info): Added 'virtual' keyword.
  13155. (warn): Added 'virtual' keyword.
  13156. (error): Added 'virtual' keyword.
  13157. (notice): New function.
  13158. (setStdout): New function.
  13159. * src/SimpleLogger.cc
  13160. (WRITE_LOG): Replaced writeLog with writeFile.
  13161. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13162. (SimpleLogger): Removed the default constructor.
  13163. (setStdout): New function.
  13164. (writeLog): Added the handling of NOTICE log level.
  13165. (writeFile): New function.
  13166. (notice): New function.
  13167. * src/TorrentMan.h: Updated doc.
  13168. * src/BitfieldMan.h: Updated doc.
  13169. * src/TrackerWatcherCommand.cc
  13170. (execute): Return true if error occurred in the request to the tracker
  13171. and halt is requested.
  13172. * src/TrackerUpdateCommand.cc
  13173. (execute): Return true if error occurred in the request to the tracker
  13174. and halt is requested.
  13175. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13176. DownloadEngine:
  13177. * src/TorrentConsoleDownloadEngine.h
  13178. (onSelectiveDownloadingCompletes): Removed.
  13179. * src/TorrentConsoleDownloadEngine.cc
  13180. (onSelectiveDownloadingCompletes): Removed.
  13181. * src/TorrentDownloadEngine.h
  13182. (onEndOfRun): Added 'virtual' keyword.
  13183. (afterEachIteration): Removed.
  13184. (onSelectiveDownloadingCompletes): Removed.
  13185. * src/TorrentDownloadEngine.cc
  13186. (onEndOfRun): Removed filenameFixed.
  13187. (afterEachIteration): Removed.
  13188. * src/TorrentMan.cc
  13189. (completePiece): Call onDownloadComplete here.
  13190. (onDownloadComplete): Added 2 log messages.
  13191. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13192. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13193. * src/NameResolver.h: Added the prototype declaration of callback().
  13194. To support c-ares library:
  13195. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13196. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13197. * src/FtpInitiateConnectionCommand.h:
  13198. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13199. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13200. * src/HttpInitiateConnectionCommand.h:
  13201. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13202. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13203. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13204. #1542285 by tizianomueller)
  13205. * src/HttpInitiateConnectionCommand.cc:
  13206. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13207. * src/FtpInitiateConnectionCommand.cc:
  13208. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13209. * src/DownloadEngine.h:
  13210. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13211. * src/DownloadEngine.cc:
  13212. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13213. To fix the bug that causes compilation failure with metalink-support
  13214. disabled(bug#1543587):
  13215. * src/main.cc: Fixed with the patch by tizianomueller.
  13216. * Release 0.7.2
  13217. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13218. * src/main.cc
  13219. (main): Added a message to inform users that aria2 is starting to
  13220. verify checksum.
  13221. * src/RequestInfo.cc
  13222. (printDownloadAbortMessage): Added a message to inform users that
  13223. transfer can be resumed.
  13224. * src/FeatureConfig.cc
  13225. (FEATURE_ASYNC_DNS): New definition.
  13226. (FeatureConfig): Added aysnc DNS entry.
  13227. To replace CommandUuid with Command* in SocketEntry and
  13228. NameResolverEntry:
  13229. * src/DownloadEngine.h
  13230. (CommandUuids): Removed.
  13231. (SocketEntry::commandUuid): Removed.
  13232. (SocketEntry::command): New variable.
  13233. (SocketEntry::SocketEntry): Updated.
  13234. (SocketEntry::operator==): Updated.
  13235. (NameResolverEntry::commandUuid): Removed.
  13236. (NameResolverEntry::command): New variable.
  13237. (NameResolverEntry::NameResolverEntry): Updated.
  13238. (NameResolverEntry::operator==): Updated.
  13239. (waitData): Changed the argument type.
  13240. (addSocketForReadCheck): Changed the argument type.
  13241. (deleteSocketForReadCheck): Changed the argument type.
  13242. (addSocketForWriteCheck): Changed the argument type.
  13243. (deleteSocketForWriteCheck): Changed the argument type.
  13244. (addNameResolverCheck): Changed the argument type.
  13245. (deleteNameResolverCheck): Changed the argument type.
  13246. * src/DownloadEngine.cc
  13247. (FindCommand): Removed.
  13248. (run): Removed activeUuid. Added activeCommands instead.
  13249. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13250. (AccumulateActiveCommand): New function object.
  13251. (waitData): Use AccumulateActiveCommand.
  13252. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13253. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13254. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13255. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13256. (addNameResolverCheck): Use Command instead of CommandUuid.
  13257. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13258. * src/AbstractCommand.cc
  13259. (disableReadCheckSocket): Updated according to the changes in
  13260. DownloadEngine.
  13261. (setReadCheckSocket): Updated according to the changes in
  13262. DownloadEngine.
  13263. (disableWriteCheckSocket): Updated according to the changes in
  13264. DownloadEngine.
  13265. (setWriteCheckSocket): Updated according to the changes in
  13266. DownloadEngine.
  13267. (setNameResolverCheck): Updated according to the changes in
  13268. DownloadEngine.
  13269. (disableNameResolverCheck): Updated according to the changes in
  13270. DownloadEngine.
  13271. * src/AbstractCommand.cc
  13272. (disableReadCheckSocket): Updated according to the changes in
  13273. DownloadEngine.
  13274. (setReadCheckSocket): Updated according to the changes in
  13275. DownloadEngine.
  13276. (disableWriteCheckSocket): Updated according to the changes in
  13277. DownloadEngine.
  13278. (setWriteCheckSocket): Updated according to the changes in
  13279. DownloadEngine.
  13280. * release 0.7.1
  13281. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13282. To handle the case where some BitTorrent tracker requires all letters
  13283. except for [A-Za-z0-9] is URL encoded.
  13284. * src/Util.h
  13285. (torrentUrlencode): New function.
  13286. * src/Util.cc
  13287. (ctype.h): Included.
  13288. (torrentUrlencode): New function.
  13289. * src/TrackerWatcherCommand.cc
  13290. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13291. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13292. To add asynchronous DNS support(libares):
  13293. * src/AbstractCommand.h
  13294. (setNameResolverCheck): New function.
  13295. (disableNameResolverCheck): New function
  13296. (resolveHostname): New function.
  13297. * src/AbstractCommand.cc
  13298. (setNameResolverCheck): New function.
  13299. (disableNameResolverCheck): New function
  13300. (resolveHostname): New function.
  13301. * src/FtpInitiateConnectionCommand.h
  13302. (nameResolver): New function.
  13303. * src/FtpInitiateConnectionCommand.cc
  13304. (Util.h): Included.
  13305. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13306. disableWriteCheckSocket.
  13307. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13308. (executeInternal): Added async DNS support.
  13309. * src/HttpInitiateConnectionCommand.h
  13310. (nameResolver): New function.
  13311. * src/HttpInitiateConnectionCommand.cc
  13312. (DlRetryEx.h): Included.
  13313. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13314. disableWriteCheckSocket.
  13315. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13316. (executeInternal): Added async DNS support.
  13317. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13318. by extern "C" declaration.
  13319. * src/NameResolver.cc: New class.
  13320. * src/Util.h:
  13321. (isNumberAndDotsNotation): New function
  13322. * src/Util.cc
  13323. (isNumberAndDotsNotation): New function.
  13324. * src/DownloadEngine.h
  13325. (NameResolver.h): Included.
  13326. (NameResolverEntry): New class.
  13327. (NameResolverEntries): New type definition.
  13328. (addNameResolverCheck): New function.
  13329. (deleteNameResolverCheck): New function.
  13330. * src/DownloadEngine.cc
  13331. (run): Initialize cp with 0.
  13332. (SetDescriptor::operator()): Added for NameResolverEntry.
  13333. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13334. (waitData): Check nameResolver entries.
  13335. (updateFdSet): Update fds in nameResolver entries.
  13336. (addNameResolverCheck): New function.
  13337. (deleteNameResolverCheck): new function.
  13338. * src/PeerInteractionCommand.cc
  13339. (executeInternal): Fixed wrong socket handling.
  13340. * src/main.cc
  13341. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13342. * src/Util.cc
  13343. (fileChecksum): Removed the call to ctx.digestReset().
  13344. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13345. * po/ru.po: Azamat sent me Russian translation.
  13346. * src/FtpNegotiateCommand.cc
  13347. (recvGreeting): Call disableWriteCheckSocket just after
  13348. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13349. (recvRetr): Recognized status code 125 as a acceptable response code.
  13350. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13351. case-insesitive filesystem(BUG#1531057).
  13352. * src/Time.h: Renamed as TimeA2.h.
  13353. * src/Time.cc: Renamed as TimeA2.cc.
  13354. * src/TimeA2.h: New class.
  13355. * src/TimeA2.cc: New class.
  13356. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13357. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13358. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13359. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13360. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13361. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13362. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13363. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13364. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13365. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13366. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13367. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13368. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13369. * release 0.7.0
  13370. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13371. * src/PeerChokeCommand.h
  13372. (PeerChokeCommand): Rearranged the arguments.
  13373. * src/PeerChokeCommand.cc
  13374. (PeerChokeCommand): Rearranged the arguments.
  13375. * src/MetalinkEntry.h
  13376. (Checksum.h): Included.
  13377. (md5): Removed.
  13378. (sha1): Removed.
  13379. (checksum): New variable.
  13380. (operator=): Updated.
  13381. (check): Removed.
  13382. * src/prefs.h
  13383. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13384. (PREF_FOLLOW_TORRENT): New definition.
  13385. (PREF_SELECT_FILE): New definition.
  13386. (PREF_FOLLOW_METALINK): New definition.
  13387. * src/MetalinkResource.h
  13388. (TYPE_HTTPS): Added to enum TYPE.
  13389. * src/TorrentMan.cc
  13390. (~TorrentMan): Rewritten.
  13391. * src/MultiDiskWriter.cc
  13392. (MultiDiskAdaptor): Updated according to the changes in
  13393. MessageDigestContext.
  13394. (~MultiDiskAdaptor): Updated according to the changes in
  13395. MessageDigestContext.
  13396. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13397. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13398. * src/Util.h
  13399. (fileChecksum): Updated according to the changes in
  13400. MessageDigestContext.
  13401. * src/Util.cc
  13402. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13403. (fileChecksum): Updated according to the changes in
  13404. MessageDigestContext.
  13405. * src/messageDigest.h: Rewritten.
  13406. * src/MetalinkEntry.cc
  13407. (check): Removed.
  13408. (Supported): Updated.
  13409. (dropUnsupportedResource): Fixed a memory leak.
  13410. * src/ShaVisitor.cc
  13411. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13412. (~ShaVisitor): Updated according to the changes in
  13413. MessageDigestContext.
  13414. (visit): Updated according to the changes in MessageDigestContext.
  13415. * src/main.cc
  13416. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13417. command-line option added.
  13418. * src/DownloadEngine.h
  13419. (SocketEntry): New class.
  13420. (SocketEntries): New definition.
  13421. (PairFind): Removed.
  13422. (SockCmdMap): Removed.
  13423. * src/DownloadEngine.cc
  13424. (DownloadEngine): Rewritten.
  13425. (~DownloadEngine): Rewritten.
  13426. (run): Renamed activeCommandUuids as activeUuids.
  13427. (SetDescriptor): Rewritten.
  13428. (AccumulateActiveCommandUuid): Removed.
  13429. (AccumulateActiveUuid): New function object.
  13430. (waitData): Rewritten.
  13431. (updateFdSet): Rewritten.
  13432. (addSocket): Rewritten.
  13433. (deleteSocket): Rewritten.
  13434. (addSocketForReadCheck): Rewritten.
  13435. (deleteSocketForReadCheck): Rewritten.
  13436. (addSocketForWriteCheck): Rewritten.
  13437. (deleteSocketForWriteCheck): Rewritten.
  13438. * src/Xml2MetalinkProcessor.cc
  13439. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13440. * src/DownloadCommand.cc
  13441. (executeInternal): Added the check routine for lowest speed limit.
  13442. * src/AbstractDiskWriter.cc
  13443. (AbstractDiskWriter): Updated according to the changes in
  13444. MessageDigestContext.
  13445. (~AbstractDiskWriter): Updated according to the changes in
  13446. MessageDigestContext.
  13447. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13448. * src/RequestInfo.h: New class.
  13449. * src/UrlRequestInfo.h: New class.
  13450. * src/UrlRequestInfo.cc: New class.
  13451. * src/TorrentRequestInfo.h: New class.
  13452. * src/TorrentRequestInfo.cc: New class.
  13453. * src/MetalinkRequestInfo.h: New class.
  13454. * src/MetalinkRequestInfo.cc: New class.
  13455. * src/Checksum.h: New class.
  13456. * src/DownloadEngineFactory.h: New class.
  13457. * src/DownloadEngineFactory.cc: New class.
  13458. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13459. * src/Option.h
  13460. (getAsBool): New function.
  13461. * src/Option.cc
  13462. (prefs.h): Included.
  13463. (defined): 0-length value is now recognized as undefined.
  13464. (getAsInt): Rewritten.
  13465. (getAsLLInt): Rewritten.
  13466. (getAsBool): New function.
  13467. * src/FeatureConfig.h: Rewritten.
  13468. * src/FeatureConfig.cc: Rewritten.
  13469. * src/prefs.h
  13470. (PREF_STDOUT_LOG): New definition.
  13471. (PREF_LOG): New definition.
  13472. (PREF_DIR): New definition.
  13473. (PREF_OUT): New definition.
  13474. (PREF_SPLIT): New definition.
  13475. (PREF_DAEMON): New definition.
  13476. (PREF_REFERER): New definition.
  13477. (PREF_TORRENT_FILE): New definition.
  13478. (PREF_LISTEN_PORT): New definition.
  13479. (PREF_METALINK_FILE): New definition.
  13480. (PREF_METALINK_VERSION): New definition.
  13481. (PREF_METALINK_LANGUAGE): New definition.
  13482. (PREF_METALINK_OS): New definition.
  13483. (PREF_METALINK_SERVERS): New definition.
  13484. * src/main.cc
  13485. (main): Following command-line parameters are now put into Option
  13486. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13487. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13488. metalinkLanguage, metalinkOs, metalinkServers
  13489. To fix the bug that aria2 can not handle http response header properly.
  13490. * src/HttpHeader.cc
  13491. (put): Made name lowercased.
  13492. (defined): Made name lowercased.
  13493. (getFirst): Made name lowercased.
  13494. (get): Made name lowercased.
  13495. (getFirstAsInt): Rewritten.
  13496. (getFirstAsLLInt): Rewritten.
  13497. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13498. * src/TorrentMan.h:
  13499. (advertisePiece): Updated doc.
  13500. (getAdvertisedPieceIndexes): Updated doc.
  13501. (removeAdvertisedPiece); New function.
  13502. * src/TorrentMan.cc
  13503. (FindElapsedHave): New function object.
  13504. (removeAdvertisedPiece): New function.
  13505. * src/HaveEraseCommand.h: New class.
  13506. * src/HaveEraseCommand.cc: New class.
  13507. * src/FeatureConfig.h: New class.
  13508. * src/FeatureConfig.cc: New class.
  13509. * src/Request.h
  13510. (defaultPorts): Removed.
  13511. * src/Request.cc
  13512. (FeatureConfig.h): Included.
  13513. (Request): Removed the statements related to defaultPorts.
  13514. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13515. A default port number is now retrieved from FeatureConfig.
  13516. * src/main.cc
  13517. (HaveEraseCommand.h): Included.
  13518. (showVersion): Added the output of feature list.
  13519. (main): Added HaveEraseCommand to command queue in BitTorrent
  13520. downloading.
  13521. * src/PeerInteractionCommand.h
  13522. (chokeCheckPoint): Commented out.
  13523. (periodicExecPoint): New variable.
  13524. * src/PeerInteractionCommand.cc
  13525. (executeInternal): Following methods are now called in at least every
  13526. 0.5 seconds to reduce CPU usage:
  13527. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13528. checkHave(), sendKeepAlive().
  13529. (checkLongTimePeerChoking): Commented out.
  13530. * src/BitfieldMan.h
  13531. (getNthBitIndex): Changed the method signature.
  13532. (getMissingIndexRandomly): Changed the method signature.
  13533. * src/BitfieldMan.cc
  13534. (getNthBitIndex): Rewritten
  13535. (getMissingIndexRandomly): Rewritten.
  13536. (hasMissingPiece): Rewritten.
  13537. (getMissingIndex): Refactored.
  13538. (getMissingUnusedIndex); Refactored.
  13539. (getMissingIndex): Refactored.
  13540. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13541. * src/PeerMessage.h
  13542. (Piece.h): Included.
  13543. (SharedHandle.h): Included.
  13544. (invalidate): New variable.
  13545. (uploading): New variable.
  13546. (isInvalidate): New function.
  13547. (isUploading): New function.
  13548. (onPush): New function.
  13549. (onChoked): New function.
  13550. (onCanceled): New function.
  13551. (onAbortPiece): New function.
  13552. (PeerMessageHandle): New type definition.
  13553. * src/PeerMessage.cc
  13554. (PeerMessage): Added the initialization for invalidate and uploading.
  13555. * src/CancelMessage.h
  13556. (CancelMessage): Rewritten.
  13557. * src/RejectMessage.h
  13558. (RejectMessage): Rewritten.
  13559. * src/Metalinker.h
  13560. (operator=): Defined.
  13561. * src/MetaEntry.h
  13562. (operator=): Defined.
  13563. * src/MetalinkResource.h
  13564. (operator=): Defined.
  13565. * src/AllowedFastMessage.h
  13566. (AllowedFastMessage): Rewritten.
  13567. * src/HandshakeMessage.h
  13568. (HandshakeMessage): New function(overload).
  13569. * src/HandshakeMessage.cc
  13570. (HandshakeMessage): Rewritten.
  13571. (init): New function.
  13572. * src/HaveMessage.h
  13573. (HaveMessage): Rewritten.
  13574. * src/Time.h
  13575. (operator=): Defined the function body here.
  13576. * src/Time.cc
  13577. (operator=): Removed.
  13578. * src/SocketCore.h
  13579. (operator==): Defined here.
  13580. (operator!=): Defined here.
  13581. (operator<): Defined here.
  13582. * src/SocketCore.cc
  13583. (operator==): Removed.
  13584. (operator<): Removed.
  13585. * src/BitfieldMan.h
  13586. (operator=): Defined the function body here.
  13587. * src/BitfieldMan.cc
  13588. (operator=): Removed.
  13589. * src/TorrentMan.h
  13590. (deleteErrorPeer): Removed.
  13591. (deleteUnusedPeer); New function.
  13592. * src/TorrentMan.cc
  13593. (addPeer): Call deleteUnusedPeer.
  13594. (deleteErrorPeer): Removed.
  13595. (deleteUnusedPeer): New function.
  13596. * src/PeerAbstractCommand.h
  13597. (setNoCheck): New function.
  13598. (noCheck): New variable.
  13599. * src/PeerAbstractCommand.cc
  13600. (PeerAbstractCommand): Added the initialization of noCheck.
  13601. (execute): Added a check for noCheck.
  13602. (setNoCheck): New function.
  13603. * src/Util.h
  13604. (stdio.h): Included.
  13605. * src/Util.cc
  13606. (unistd.h): Included.
  13607. * src/DefaultDiskWriter.cc
  13608. (unistd.h): Included.
  13609. * src/Peer.h
  13610. (operator==): Defined the function body here.
  13611. (operator!=): Defined the function body here.
  13612. * src/Peer.cc
  13613. (operator==): Removed.
  13614. (operator!=): Removed.
  13615. * src/Piece.h
  13616. (Piece): Defined the function body here(copy constructor).
  13617. (operator=): Defined the function body here.
  13618. (operator==): Defined the function body here.
  13619. * src/Piece.cc
  13620. (Piece): Removed(copy constructor).
  13621. (operator=): Removed.
  13622. (operator==): Removed.
  13623. * src/PeerMessageUtil.h
  13624. (ChokeMessage.h): Removed.
  13625. (UnchokeMessage.h): Removed.
  13626. (InterestedMessage.h): Removed.
  13627. (NotInterestedMessage.h): Removed.
  13628. (HaveMessage.h): Removed.
  13629. (BitfieldMessage.h): Removed.
  13630. (RequestMessage.h): Removed.
  13631. (CancelMessage.h): Removed.
  13632. (PieceMessage.h): Removed.
  13633. (HandshakeMessage.h): Removed.
  13634. (KeepAliveMessage.h): Removed.
  13635. (PortMessage.h): Removed.
  13636. (HaveAllMessage.h): Removed.
  13637. (HaveNoneMessage.h): Removed.
  13638. (PeerConnection.h): Removed.
  13639. (HandshakeMessage.h): Included.
  13640. * src/BitfieldMessage.h
  13641. (init): New function.
  13642. (BitfieldMessage): Rewritten.
  13643. (BitfieldMessage): New function(overload).
  13644. * src/RequestSlot.h
  13645. (operator=): Defined the function body here.
  13646. (operator==): Defined the function body here.
  13647. * src/RequestSlot.cc
  13648. (operator=): Removed.
  13649. (operator==): Removed.
  13650. To remove the dependency on the PeerMessage subclass from
  13651. PeerInteraction:
  13652. * src/PeerMessageFactory.h: New class.
  13653. * src/PeerMessageFactory.cc: New class.
  13654. * src/SimplePeerMessage.cc
  13655. (send): If invalidate is true then do nothing.
  13656. * src/PeerInteractionCommand.cc
  13657. (HandshakeMessage.h): Included.
  13658. (KeepAliveMessage.h): Included.
  13659. (ChokeMessage.h): Included.
  13660. (UnchokeMessage.h): Included.
  13661. (HaveMessage.h): Included.
  13662. (executeInternal): Call setNoCheck().
  13663. Removed setWriteCheckSocket(socket).
  13664. * src/PeerInteraction.h
  13665. (ChokeMessage.h): Removed.
  13666. (UnchokeMessage.h): Removed.
  13667. (InterestedMessage.h): Removed.
  13668. (NotInterestedMessage.h): Removed.
  13669. (HaveMessage.h): Removed.
  13670. (BitfieldMessage.h): Removed.
  13671. (RequestMessage.h): Removed.
  13672. (CancelMessage.h): Removed.
  13673. (PieceMessage.h): Removed.
  13674. (HandshakeMessage.h): Removed.
  13675. (KeepAliveMessage.h): Removed.
  13676. (PortMessage.h): Removed.
  13677. (HaveAllMessage.h): Removed.
  13678. (HaveNoneMessage.h): Removed.
  13679. (RejectMessage.h): Removed.
  13680. (AllowedFastMessage.h): Removed.
  13681. (SuggestPieceMessage.h): Removed.
  13682. (PeerMessageFactory.h): Included.
  13683. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13684. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13685. (PeerMessageFactory): New variable.
  13686. (createPeerMessage): Removed.
  13687. (createHandshakeMessage): Removed.
  13688. (setPeerMessageCommonProperty): Removed.
  13689. (addRequestSlot): New function.
  13690. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13691. (getPeerMessageFactory): New function.
  13692. (createRequestMessage): Removed.
  13693. (createCancelMessage): Removed.
  13694. (createPieceMessage): Removed.
  13695. (createHaveMessage): Removed.
  13696. (createChokeMessage): Removed.
  13697. (createUnchokeMessage): Removed.
  13698. (createInterestedMessage): Removed.
  13699. (createNotInterestedMessage): Removed.
  13700. (createBitfieldMessage): Removed.
  13701. (createKeepAliveMessage): Removed.
  13702. (createHaveAllMessage): Removed.
  13703. (createHaveNoneMessage): Removed.
  13704. (createRejectMessage): Removed.
  13705. (createAllowedFastMessage): Removed.
  13706. * src/PeerInteraction.cc
  13707. (PeerInteraction): Allocate PeerMessageFactory here.
  13708. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13709. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13710. PieceMessage::ID.
  13711. (addMessage): Simplified by using PeerMessage::onPush().
  13712. (addRequestSlot): New function.
  13713. (rejectAllPieceMessageInQueue): Simplified by using
  13714. PeerMessage::onChoked().
  13715. (rejectPieceMessageInQueue): Simplified by using
  13716. PeerMessage::onCanceled().
  13717. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13718. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13719. (createHandshakeMessage): Removed.
  13720. (createPeerMessage): Removed.
  13721. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13722. (setPeerMessageCommonProperty): Removed.
  13723. (createRequestMessage): Removed.
  13724. (createCancelMessage): Removed.
  13725. (createPieceMessage): Removed.
  13726. (createHaveMessage): Removed.
  13727. (createChokeMessage): Removed.
  13728. (createUnchokeMessage): Removed.
  13729. (createInterestedMessage): Removed.
  13730. (createNotInterestedMessage): Removed.
  13731. (createBitfieldMessage): Removed.
  13732. (createKeepAliveMessage): Removed.
  13733. (createHaveAllMessage): Removed.
  13734. (createHaveNoneMessage): Removed.
  13735. (createRejectMessage): Removed.
  13736. (createAllowedFastMessage): Removed.
  13737. * src/PieceMessage.h
  13738. (createRejectMessage): New function.
  13739. (PieceMessage): Rewritten.
  13740. (onChoked): New function.
  13741. (onCanceled): New function.
  13742. * src/PieceMessage.cc
  13743. (send): If invalidate is true then do nothing, just return.
  13744. (createRejectMessage): New function.
  13745. (onChoked): New function.
  13746. (onCanceled): New function.
  13747. * src/RequestMessage.h
  13748. (RequestMessage): Rewritten.
  13749. (onPush): New function.
  13750. (onAbortPiece): New function.
  13751. * src/RequestMessage.cc
  13752. (onPush): New function.
  13753. (onAbortPiece): New function.
  13754. Update fd_set when a socket is added or deleted in order to improve
  13755. performance:
  13756. * src/DownloadEngine.h
  13757. (rfdset): New variable.
  13758. (wfdset): New variable.
  13759. (updateFdSet): New function.
  13760. * src/DownloadEngine.cc
  13761. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13762. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13763. (waitData): Copy rfdset and wfdset.
  13764. (updateFdSet): New function.
  13765. (addSocket): Call updateFdSet.
  13766. (deleteSocket): Call updateFdSet.
  13767. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13768. To add the support for Metalink3.0 backward compatible links:
  13769. * src/Request.h
  13770. (SAFE_CHARS): Added '#'.
  13771. (METALINK_MARK): New definition.
  13772. * src/Request.cc
  13773. (parseUrl): Added the support for Metalink3.0 backward compatible
  13774. links.
  13775. etc
  13776. * src/PeerInteraction.cc
  13777. (MsgPushBack): Removed.
  13778. (sendMessages): Use STL copy and back_inserter.
  13779. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13780. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13781. * src/TorrentMan.h
  13782. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13783. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13784. * src/SharedHandle.h: New class.
  13785. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13786. * src/HttpResponseCommand.h
  13787. (HttpResponseCommand): Wrapped Socket.
  13788. * src/SocketCore.h
  13789. (operator==): New function.
  13790. (operator!=): New function.
  13791. (operator<): New function.
  13792. (getSockfd): New function.
  13793. (isOpen): New function.
  13794. (writeData): New function.
  13795. * src/SocketCore.cc
  13796. (operator==): New function.
  13797. (operator!=): New function.
  13798. (operator<): New function.
  13799. * src/AbstractCommand.h
  13800. (socket): Changed its type to SocketHandle.
  13801. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13802. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13803. (disableReadCheckSocket): New function.
  13804. (disableWriteCheckSocket): New function.
  13805. (readCheckTarget): Changed its type to SocketHandle.
  13806. (writeCheckTarget): Changed its type to SocketHandle.
  13807. (AbstractCommand): Replaced Socket with SocketHandle.
  13808. * src/AbstractCommand.cc
  13809. (AbstractCommand): Replaced Socket with SocketHandle.
  13810. (~AbstractCommand): Removed the deallocation for Socket object.
  13811. (disableReadCheckSocket): New function.
  13812. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13813. (disableWriteCheckSocket): New function.
  13814. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13815. * src/HttpDownloadCommand.cc
  13816. (DownloadCommand): Replaced Socket with SocketHandle.
  13817. * src/PeerAbstractCommand.h
  13818. (socket): Changed its type to SocketHandle.
  13819. (peer): Changed its type to PeerHandle.
  13820. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13821. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13822. (disableReadCheckSocket): New function.
  13823. (disableWriteCheckSocket): New function.
  13824. (readCheckTarget): Changed its type to SocketHandle.
  13825. (writeCheckTarget): Changed its type to SocketHandle.
  13826. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13827. Replaced Peer with PeerHandle.
  13828. * src/HttpRequestCommand.cc
  13829. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13830. Use disableReadCheckSocket.
  13831. * src/PeerInitiateConnectionCommand.h
  13832. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13833. * src/PeerChokeCommand.cc
  13834. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13835. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13836. (execute): Use PeerHandle.
  13837. * src/PeerConnection.h
  13838. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13839. (socket): Changed its type to SocketHandle.
  13840. (PeerConnection): Replaced Socket with SocketHandle.
  13841. * src/PeerConnection.cc
  13842. (PeerConnection): Replaced Socket with SocketHandle.
  13843. * src/PeerInteractionCommand.h
  13844. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13845. Replaced Peer with PeerHandle.
  13846. * src/PeerInteractionCommand.cc
  13847. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13848. Replaced Peer with PeerHandle.
  13849. (executeInternal): Use disableWriteCheckSocket.
  13850. Use HandshakeMessageHandle.
  13851. (receiveMessages): Use PeerMessageHandle.
  13852. (prepareForNextPeer): Use PeerHandle.
  13853. * src/HttpProxyRequestCommand.h
  13854. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13855. * src/HttpResponseCommand.cc
  13856. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13857. * src/TorrentMan.cc
  13858. (nullPeer): Added external reference.
  13859. (~TorrentMan): Removed the deallocation of the elements of peers.
  13860. (addPeer): Rewritten.
  13861. (isPeerAvailable): Use nullPeer.
  13862. (deleteOldpeers): Replaced with deleteErrorPeer.
  13863. (deleteErrorPeer): New function.
  13864. (getPeer): Use PeerHandle and nullPeer.
  13865. (hasMissingPiece): Replaced Peer with PeerHandle.
  13866. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13867. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13868. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13869. (getMissingPiece): Replaced Peer with PeerHandle.
  13870. * src/FtpNegotiateCommand.cc
  13871. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13872. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13873. (recvGreeting): Use disableWriteCheckSocket.
  13874. (recvPasv): Removed the allocation of Socket.
  13875. Use disableReadCheckSocket.
  13876. (sendRestPasv): Use disableWriteCheckSocket.
  13877. (recvRetr): Changed assertion.
  13878. * src/PeerInteraction.h
  13879. (SharedHandle.h): Included SharedHandle.h.
  13880. (PeerMessageHandle): New type definition.
  13881. (HandshakeMessageHandle): New type definition.
  13882. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13883. (peer): Changed its type to PeerHandle.
  13884. (createHandshakeMessage): Replaced HandshakeMessage with
  13885. HandshakeMessageHandle.
  13886. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13887. (PeerInteraction): Replaced Peer with PeerHandle.
  13888. Replaced Socket with SocketHandle.
  13889. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13890. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13891. (receiveHandshake): Replaced HandshakeMessage with
  13892. HandshakeMessageHandle.
  13893. * src/PeerInteraction.cc
  13894. (PeerInteraction): Replaced Peer with PeerHandle.
  13895. Replaced Socket with SocketHandle.
  13896. (~PeerInteraction): Removed the deallocation of the elements of
  13897. messageQueue.
  13898. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13899. (isSendingMessageInProgress): Replaced PeerMessage with
  13900. PeerMessageHandle.
  13901. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13902. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13903. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13904. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13905. (abortPiece): Use PeerMessageHandle.
  13906. (receiveHandshake): Replaced HandshakeMessage with
  13907. HandshakeMessageHandle. Removed try-catch block.
  13908. (createHandshakeMessage): Replaced HandshakeMessage with
  13909. HandshakeMessageHandle.
  13910. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13911. Removed try-catch block.
  13912. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13913. * src/HttpProxyResponseCommand.cc
  13914. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13915. * src/FtpTunnelResponseCommand.h
  13916. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13917. * src/HttpConnection.cc
  13918. (HttpConnection): Replaced Socket with SocketHandle.
  13919. * src/PeerAbstractCommand.cc
  13920. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13921. (~PeerAbstractCommand): Removed the deallocation of socket.
  13922. Use disableReadCheckSocket, disableWriteCheckSocket.
  13923. (disableReadCheckSocket): New function.
  13924. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13925. (disableWriteCheckSocket): New function.
  13926. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13927. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13928. * src/FtpTunnelRequestCommand.cc
  13929. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13930. (~FtpTunnelRequestCommand): Corrected indentation.
  13931. * src/DownloadCommand.h
  13932. (DownloadCommand): Replaced Socket with SocketHandle.
  13933. * src/PeerListenCommand.cc
  13934. (PeerListenCommand): Removed the initialization of socket.
  13935. (~PeerListenCommand): Removed the deallocation of socket.
  13936. (bindPort): Use SocketHandle.
  13937. (execute): Use SocketHandle and PeerHandle.
  13938. * src/FtpDowndloadCommand.cc
  13939. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13940. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13941. * src/main.cc
  13942. (main): Corrected indentation.
  13943. * src/HttpInitiateConnectionCommand.cc
  13944. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13945. (executeInternal): Removed the allocation of socket.
  13946. * src/HttpRequestCommand.h
  13947. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13948. * src/FtpNegotiationCommand.h
  13949. (dataSocket): Changed its type to SocketHandle.
  13950. (serverSocket): Changed its type to SocketHandle.
  13951. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13952. * src/TorrentMan.h
  13953. (MAX_PEER_UPDATE): Removed.
  13954. (MAX_PEERS): New definition.
  13955. (Peers): The element is now of type PeerHandle.
  13956. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13957. (getPeer): Replaced Peer with PeerHandle.
  13958. (deleteOldErrorPeers): Removed.
  13959. (deleteErrorPeer): New function.
  13960. (hasMissingPiece): Replaced Peer with PeerHandle.
  13961. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13962. (getMissingPiece): Replaced Peer with PeerHandle.
  13963. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13964. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13965. (addActivePeer): Replaced Peer with PeerHandle.
  13966. (deleteActivePeer): Replaced Peer with PeerHandle.
  13967. Added a check for the return value of find.
  13968. * src/FtpTunnelResponseCommand.cc
  13969. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13970. * src/FtpInitiateConnectionCommand.cc
  13971. (executeInternal): Removed the allocation of socket.
  13972. * src/DownloadEngine.h
  13973. (Sockets): An element is now of type SocketHandle.
  13974. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13975. (CommandUuids): New type definition.
  13976. (rsockets): Changed its type to SockCmdMap.
  13977. (wsockets): Changed its type to SockCmdMap.
  13978. (addSocket): Rewritten.
  13979. (deleteSocket): Rewritten.
  13980. (addSocketForReadCheck): Rewritten.
  13981. (deleteSocketForReadCheck): Rewritten.
  13982. (addSocketForWriteCheck): Rewritten.
  13983. (deleteSocketForWriteCheck): Rewritten.
  13984. (PairFind): New template class.
  13985. * src/HttpDownloadCommand.h
  13986. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13987. * src/FtpConnection.cc
  13988. (FtpConnection): Replaced Socket with SocketHandle.
  13989. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13990. block.
  13991. * src/InitiateConnectionCommandFactory.cc
  13992. (DlAbortEx.h): Included DlAbortEx.h.
  13993. (createInitiateConnectionCommand): Throw exception if the protocol of
  13994. requested URI is not supported.
  13995. * src/Peer.cc
  13996. (nullPeer): Changed its type to PeerHandle.
  13997. (operator==): New function.
  13998. (operator!=): New function.
  13999. * src/Peer.h
  14000. (SharedHandle.h): Included SharedHandle.h.
  14001. (operator==): New function.
  14002. (operator!=): New function.
  14003. (Peer): Added the default constructor.
  14004. Use resetStatus() to initialize member variables.
  14005. (nullPeer): Removed.
  14006. * src/TrackerUpdateCommand.cc
  14007. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14008. with MIN_PEERS.
  14009. * src/PeerListenCommand.h
  14010. (socket): Changed its type to SocketHandle.
  14011. * src/Command.h
  14012. (CommandUuid): New type definition.
  14013. (uuid): New variable.
  14014. (uuidGen): New variable.
  14015. (Command): Added the initialization of uuid.
  14016. (getUuid): New function.
  14017. * src/Socket.h
  14018. (Socket): Removed.
  14019. (SocketHandle): New type definition.
  14020. * src/DownloadEngine.h
  14021. (FindCommand): New function object.
  14022. (run): The portion of socket check was rewritten.
  14023. (SetDescriptor): New function object.
  14024. (AccumulateActiveCommandUuid): New function object.
  14025. (waitData): Rewritten.
  14026. (addSocket): Rewritten.
  14027. (deleteSocket): Rewritten.
  14028. (addSocketForReadCheck): Rewritten.
  14029. (addSocketForWriteCheck): Rewritten.
  14030. (deleteSocketForReadCheck): Rewritten.
  14031. (deleteSocketForWriteCheck): Rewritten.
  14032. * src/HttpProxyResponseCommand.h
  14033. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14034. * src/HttpConnection.h
  14035. (socket): Changed its type to SocketHandle.
  14036. (HttpConnection): Replaced Socket with SocketHandle.
  14037. * src/PeerInitiateConnectionCommand.cc
  14038. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14039. (executeInternal): Removed the allocation of socket.
  14040. (prepareForNextPeer): Use PeerHandle.
  14041. * src/PeerMessage.h
  14042. (peer): Changed its type to PeerHandle.
  14043. (getPeer): Replaced Peer with PeerHandle.
  14044. (setPeer): Replaced Peer with PeerHandle.
  14045. * src/DownloadCommand.cc
  14046. (DownloadCommand): Replaced Socket with SocketHandle.
  14047. * src/FtpConnection.h
  14048. (socket): Changed its type to SocketHandle.
  14049. (FtpConnection): Replaced Socket with SocketHandle.
  14050. (sendPort); Replaced Socket with SocketHandle.
  14051. * src/FtpDowndloadCommand.h
  14052. (ctrlSocket): Changed its type to SocketHandle.
  14053. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14054. * src/HttpProxyRequestCommand.cc
  14055. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14056. * src/FtpTunnelRequestCommand.h
  14057. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14058. etc
  14059. * src/PeerChokeCommand.h
  14060. (setAllPeerChoked): Removed.
  14061. (setAllPeerResetDelta): Removed.
  14062. * src/PeerChokeCommand.cc
  14063. (setAllPeerChoked): Removed.
  14064. (ChokePeer): New function object.
  14065. (setAllPeerResetDelta): Removed.
  14066. (ResetDelta): New function object.
  14067. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14068. (execute): Show download speed when the local node is a seeder.
  14069. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14070. using STL.
  14071. * src/TrackerWatcherCommand.h
  14072. (MIN_PEERS): Removed.
  14073. * src/TorrentMan.cc
  14074. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14075. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14076. To fix the bug that .aria2 file is not saved if downloading is stopped
  14077. by the errors:it results that aria2 can not resume downloading:
  14078. * src/main.cc
  14079. (normalDownload): Added the call to save().
  14080. (main): Added the deletion of the elements in 'reserved'.
  14081. To fix log:
  14082. * src/PeerInteraction.cc
  14083. (receiveHandshake): Fixed log.
  14084. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14085. To improve download performance in BitTorrent:
  14086. * src/TorrentMan.cc
  14087. (getPeer): Check the number of connections. Return nullPeer if
  14088. it is greater than MAX_PEER_UPDATE.
  14089. This code was originally here, but was removed in 0.5.1.
  14090. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14091. To improve the conditional compilation:
  14092. * src/MultiDiskWriter.h:
  14093. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14094. * src/MultiDiskWriter.cc:
  14095. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14096. * src/Util.h:
  14097. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14098. Added ENABLE_BITTORRENT around computeFastSet().
  14099. * src/Util.cc:
  14100. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14101. Added ENABLE_BITTORRENT around computeFastSet().
  14102. * src/messageDigest.h:
  14103. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14104. * src/ShaVisitor.h:
  14105. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14106. * src/ShaVisitor.cc:
  14107. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14108. * src/main.cc:
  14109. Added ENABLE_BITTORRENT around includes and blocks related to
  14110. BitTorrent.
  14111. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14112. digest support is not available.
  14113. * src/AbstractDiskWriter.h:
  14114. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14115. * src/AbstractDiskWriter.cc:
  14116. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14117. * src/MetalinkEntry.cc
  14118. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14119. support is not available.
  14120. To add command-line options for Metalink:
  14121. * src/main.cc:
  14122. Added metalink-version, metalink-language, metalink-os,
  14123. follow-metalink.
  14124. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14125. * src/main.cc: Use these definition.
  14126. * Release 0.6.0
  14127. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14128. To add Metalink support(http/ftp only):
  14129. * src/AbstractCommand.h
  14130. (tryReserved): New function.
  14131. * src/AbstractCommand.cc
  14132. (execute): Call tryReserved().
  14133. (tryReserved): New function.
  14134. * src/Request.h
  14135. (Requests): New type definition.
  14136. * src/SegmentMan.h
  14137. (reserved): New variable.
  14138. * src/Util.h
  14139. (fileChecksum): New function.
  14140. (toUpper): New function.
  14141. (toLower): New function.
  14142. * src/Util.cc
  14143. (messageDigest.h): Included.
  14144. (trim): Trim \r\n\t.
  14145. (fileChecksum): New function.
  14146. (toUpper): New function.
  14147. (toLower): New function.
  14148. * src/main.cc
  14149. (normalDownload): New function.
  14150. (main): Added 2 command-line options: metalink-file,
  14151. metalink-connection. Their usage has not been written yet.
  14152. * src/MetalinkProcessor.h: New class.
  14153. * src/Xml2MetalinkProcessor.h: New class.
  14154. * src/Xml2MetalinkProcessor.cc: New class.
  14155. * src/MetalinkEntry.h: New class.
  14156. * src/MetalinkEntry.cc: New class.
  14157. * src/MetalinkResource.h: New class.
  14158. * src/MetalinkResource.cc: New class.
  14159. To add md5 message digest checking:
  14160. * src/messageDigest.h: Rewritten.
  14161. * src/MultiDiskWriter.cc: Updated according to the changes in
  14162. messageDigest.h.
  14163. * src/ShaVisitor.cc: Updated according to the changes in
  14164. messageDigest.h.
  14165. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14166. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14167. messageDigest.h.
  14168. To fix a bug that causes segfault when the payload length in peer
  14169. message is less than 0:
  14170. * src/PeerConnection.cc:
  14171. (receiveMessage): Fixed the bug.
  14172. * src/PeerMessageUtil.cc
  14173. (checkLength): Throw an exception if length is less than or equals to
  14174. 0.
  14175. To add new interfaces to Base64 encoding/decoding:
  14176. * src/Base64.h
  14177. (part_encode): Changed the method signature.
  14178. (encode): New function(overload).
  14179. (decode): New function(overload).
  14180. * src/Base64.cc
  14181. (part_encode): Rewritten.
  14182. (encode): Rewritten.
  14183. (encode): New function(overload).
  14184. To prevent a peer to download same piece if there is an error in
  14185. checksum:
  14186. * src/PieceMessage.cc
  14187. (receivedAction): Call peerInteraction->abortPiece().
  14188. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14189. To fix the bug that causes same have message is sent many times to
  14190. a single peer.
  14191. * src/Time.cc
  14192. (isNewer): Use Util::difftv().
  14193. * src/Util.cc
  14194. (difftv): Added a cast to (long long int).
  14195. * src/TorrentMan.cc
  14196. (advertisePiece): Use push_front.
  14197. (getAdvertisedPieceIndexes): A performance improvement was made.
  14198. To fix the bug that sends tracker requests without a sleep interval
  14199. when the number of connections is less than 15.
  14200. * src/TrackerWatcherCommand.cc
  14201. (execute): Now the number of connections is not a factor to decide
  14202. whether or not a tracker request should be sent or not.
  14203. * src/Time.h
  14204. (setTimeInSec): New function.
  14205. * src/Time.cc
  14206. (setTimeInSec): New function.
  14207. etc.
  14208. * src/ChokeMessage.cc
  14209. (receivedAction): Removed peer->snubbing = false
  14210. * src/PeerConnection.h
  14211. (receiveHandshake): Updated doc.
  14212. * src/TorrentMan.h
  14213. (getAdvertisedPieceIndexes): Updated the method signature.
  14214. * src/TorrentMan.cc
  14215. (getAdvertisedPieceIndexes): Updated the method signature.
  14216. * src/Time.h
  14217. (getTimeInMicros): Added a cast to (long long int).
  14218. (getTimeInMillis): Added a cast to (long long int).
  14219. * Release 0.5.2
  14220. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14221. To make a listening socket non-block:
  14222. * src/SocketCore.h
  14223. (setNonBlockingMode): New function.
  14224. * src/SocketCore.cc
  14225. (setNonBlockingMode): New function.
  14226. (beginListen): Added a call to setNonBlockingMode().
  14227. (acceptConnection): Call setNonBlockingMode().
  14228. (setBlockingMode): Updated.
  14229. To handle tracker's NAT-checking:
  14230. * src/PeerConnection.cc
  14231. (receiveHandshake): 'msg' param is filled with received data and
  14232. its length is assigned to 'length' param, even if all handshake
  14233. message is not yet received.
  14234. * src/PeerInteractionCommand.cc
  14235. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14236. a new peer connects to localhost.
  14237. A call to peerInteraction->sendHandshake() was removed because
  14238. it is called from peerInteraction->receiveHandshake(true).
  14239. * src/PeerInteraction.h
  14240. (quickReplied): New variable.
  14241. (receiveHandshake): Added an argument.
  14242. * src/PeerInteraction.cc
  14243. (PeerInteraction): Added the initialization of quickReplied.
  14244. (receiveHandshake): Send handshake message as soon as the info hash
  14245. in a handshake message from a peer is correct.
  14246. To change the random part of peer id and key parameter:
  14247. * src/TorrentMan.h
  14248. (key): New variable.
  14249. * src/TorrentMan.cc
  14250. (setupInternal1): Use Util::randomAlpha() to generate random part
  14251. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14252. key is also generated by Util::randomAlpha() and it is now 8 character
  14253. long.
  14254. * src/Util.h
  14255. (randomAlpha): New function.
  14256. * src/Util.cc
  14257. (randomAlpha): New function.
  14258. * src/TrackerWatcherCommand.cc
  14259. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14260. Added no_peer_id=1.
  14261. Set snubbing flag to false when a choke message is received from a
  14262. snubbed peer.
  14263. * src/ChokeMessage.cc
  14264. (receivedAction): Set snubbing flag to false.
  14265. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14266. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14267. * src/SimpleLogger.h (writeHeader): New function.
  14268. * src/SimpleLogger.cc (writeHeader): New function.
  14269. (writeLog): Fixed the bug that causes segfaults if exception message
  14270. contains an unescaped "%" character.
  14271. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14272. when a tracker request fails.
  14273. * src/Request.cc (parseUrl): Query string is now handled properly.
  14274. * Release 0.5.1
  14275. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14276. To add Time class which represents a specific instant in time and
  14277. its precision is microseconds. Time checking procedures were rewritten
  14278. using this object.
  14279. * src/Time.h: New class.
  14280. * src/Time.cc: New class.
  14281. * src/AbstractCommand.h
  14282. (updateCheckPoint): Removed.
  14283. (isTimeoutDetected): Removed.
  14284. (checkPoint): Changed the type to Time.
  14285. (timeout): New variable.
  14286. (setTimeout): New function.
  14287. * src/AbstractCommand.cc
  14288. (AbstractCommand): Removed the initialization of checkPoint.
  14289. Added the initialization of timeout.
  14290. (updateCheckPoint): Removed.
  14291. (isTimeoutDetected): Removed.
  14292. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14293. * src/PeerChokeCommand.h
  14294. (checkPoint): Changed the type to Time.
  14295. * src/PeerChokeCommand.cc
  14296. (PeerChokeCommand): Removed the initialization of checkPoint.
  14297. (execute): Rewritten using Time object.
  14298. * src/TrackerWatcherCommand.h
  14299. (checkPoint): Changed the type to Time.
  14300. * src/TrackerWatcherCommand.cc
  14301. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14302. (execute): Rewritten.
  14303. * src/ConsoleDownloadEngine.h
  14304. (cp): Changed the type to Time.
  14305. (startup): Changed the type to Time.
  14306. * src/ConsoleDownloadEngine.cc
  14307. (initStatistics): Use cp.reset(), startup.reset().
  14308. (calculateStatistics): Rewritten using Time object.
  14309. * src/PeerAbstractCommand.h
  14310. (updateCheckPoint): Removed.
  14311. (isTimeoutDetected): Removed.
  14312. (checkPoint): Changed the type to Time.
  14313. * src/PeerAbstractCommand.cc
  14314. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14315. (updateCheckPoint): Removed.
  14316. (isTimeoutDetected): Removed.
  14317. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14318. * src/PeerInteractionCommand.cc
  14319. (PeerInteractionCommand): Removed the initializations of struct
  14320. timeval variables.
  14321. * src/PeerInteractionCommand.h
  14322. (keepAliveCheckPoint): Changed the type to Time.
  14323. (chokeCheckPoint): Changed the type to Time.
  14324. (freqCheckPoint): Changed the type to Time.
  14325. (haveCheckTime): Changed the type to Time.
  14326. * src/PeerInteractionCommand.cc
  14327. (executeInternal): Rewritten using Time object.
  14328. (detectMessageFlooding): Rewritten using Time object.
  14329. (checkLongTimePeerChoking): Rewritten using Time object.
  14330. (sendKeepAlive): Rewritten using Time object.
  14331. (checkHave): Rewritten using Time object.
  14332. * src/SleepCommand.h
  14333. (checkPoint): Changed the type to Time.
  14334. * src/SleepCommand.cc
  14335. (SleepCommand): Removed the initialization of checkPoint.
  14336. (execute): Rewritten using Time object.
  14337. * src/TorrentAutoSaveCommand.h
  14338. (checkPoint): Changed the type to Time.
  14339. * src/TorrentAutoSaveCommand.cc
  14340. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14341. (execute): Rewritten.
  14342. * src/DownloadCommand.h
  14343. (sw): Changed the type to Time.
  14344. * src/DownloadCommand.cc
  14345. (DownloadCommand): Removed the initialization of sw.
  14346. (executeInternal): Rewritten.
  14347. * src/RequestSlot.h
  14348. (dispatchedTime): Changed the type to Time.
  14349. * src/RequestSlot.cc
  14350. (RequestSlot): Removed the call to setDispatchedTime().
  14351. (setDispatchedTime): Rewirtten.
  14352. (isTimeout): Rewritten.
  14353. (getLatencyInMillis): Rewritten.
  14354. * src/TorrentDownloadEngine.h
  14355. (cp): Changed the type to Time[2].
  14356. (startup): Changed the type to Time.
  14357. * src/TorrentDownloadEngine.cc
  14358. (initStatistics): Rewritten.
  14359. (calculateStatistics): Rewritten.
  14360. * src/DownloadEngine.cc
  14361. (run): Rewritten.
  14362. To detect all attempts to connect to the tracker are failed:
  14363. * src/AbstractCommand.cc
  14364. (execute): Increment e->segmentMan->errors if a command aborted.
  14365. * src/SegmentMan.h
  14366. (errors): New variable.
  14367. * src/SegmentMan.cc
  14368. (SegmentMan): Added the initialization of errors.
  14369. (init): Added the initialization of errors.
  14370. * src/TrackerWatcherCommand.cc
  14371. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14372. request was failed.
  14373. To handle snubbed peers:
  14374. * src/PeerChokeCommand.cc
  14375. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14376. (execute): Snubbed peers don't get unchoked.
  14377. * src/PeerInteraction.h
  14378. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14379. * src/PeerInteraction.cc
  14380. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14381. back the requested 16k block in 60 seconds.
  14382. * src/PieceMessage.cc
  14383. (receivedAction): A peer's snubbed state is cleard if it sends
  14384. the requested 16k block in 60 seconds.
  14385. * src/Peer.h
  14386. (snubbing): New variable.
  14387. * src/Peer.cc
  14388. (resetStatus): Added snubbed = false.
  14389. To fix the bug that causes have message is not sent:
  14390. * src/PeerInteractionCommand.cc
  14391. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14392. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14393. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14394. * src/TorrentMan.h
  14395. (HaveEntry): New class.
  14396. (advertisePiece): Rewritten.
  14397. (getAdvertisedPieceIndexes): Rewritten.
  14398. (Haves): Changed the type.
  14399. (getAdvertisedPieceIndexes): Added an argument.
  14400. Others:
  14401. * src/TorrentMan.h
  14402. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14403. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14404. * src/TorrentMan.cc
  14405. (getPeer): Don't check the number of connections here.
  14406. (setupInternal1): Changed peerId.
  14407. * src/PeerInteractionCommand.h
  14408. (KEEP_ALIVE_INTERVAL): New definition.
  14409. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14410. * src/main.cc
  14411. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14412. * src/DownloadEngine.h: Removed unnecessary header includes.
  14413. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14414. To fix the bug that causes segfaults if a tracker returns a zero-length
  14415. list as "peers":
  14416. * src/TrackerUpdateCommand.cc
  14417. (execute): Added a check to see wether the type of peers is Data*.
  14418. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14419. * Release 0.5.0
  14420. To fix compile issue with gcc3:
  14421. * src/CancelMessage.h
  14422. (ID): Renamed as ID_t
  14423. (ID_t): New enum.
  14424. * src/RejectMessage.h
  14425. (ID): Renamed as ID_t
  14426. (ID_t): New enum.
  14427. * src/SuggestPieceMessage.h
  14428. (ID): Renamed as ID_t
  14429. (ID_t): New enum.
  14430. * src/AllowedFastMessage.h
  14431. (ID): Renamed as ID_t
  14432. (ID_t): New enum.
  14433. * src/PortMessage.h
  14434. (ID): Renamed as ID_t
  14435. (ID_t): New enum.
  14436. * src/HaveNoneMessage.h
  14437. (ID): Renamed as ID_t
  14438. (ID_t): New enum.
  14439. * src/KeepAliveMessage.h
  14440. (ID): Renamed as ID_t
  14441. (ID_t): New enum.
  14442. * src/HaveAllMessage.h
  14443. (ID): Renamed as ID_t
  14444. (ID_t): New enum.
  14445. * src/UnchokeMessage.h
  14446. (ID): Renamed as ID_t
  14447. (ID_t): New enum.
  14448. * src/BitfieldMessage.h
  14449. (ID): Renamed as ID_t
  14450. (ID_t): New enum.
  14451. * src/PieceMessage.h
  14452. (ID): Renamed as ID_t
  14453. (ID_t): New enum.
  14454. * src/RequestMessage.h
  14455. (ID): Renamed as ID_t
  14456. (ID_t): New enum.
  14457. * src/NotInterestedMessage.h
  14458. (ID): Renamed as ID_t
  14459. (ID_t): New enum.
  14460. * src/ChokeMessage.h
  14461. (ID): Renamed as ID_t
  14462. (ID_t): New enum.
  14463. * src/InterestedMessage.h
  14464. (ID): Renamed as ID_t
  14465. (ID_t): New enum.
  14466. * src/HaveMessage.h
  14467. (ID): Renamed as ID_t
  14468. (ID_t): New enum.
  14469. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14470. * src/PeerAbstractCommand.h
  14471. (beforeSocketCheck): Removed.
  14472. * src/PeerAbstractCommand.cc
  14473. Modified in order to call executeInternal() even if socket check
  14474. and upload limit check fail.
  14475. * src/PeerInteractionCommand.h
  14476. (keepAlive): Removed.
  14477. (sendKeepAlive): New function.
  14478. (checkHave): New function.
  14479. (beforeSocketCheck): Removed.
  14480. * src/PeerInteractionCommand.cc
  14481. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14482. calls to checkHave() and sendKeepAlive().
  14483. (keepAlive): Renamed to sendKeepAlive().
  14484. (sendKeepAlive): New function.
  14485. (beforeSocketCheck): Removed.
  14486. (checkHave): New function.
  14487. * src/BitfieldMan.cc
  14488. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14489. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14490. 0.
  14491. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14492. * src/TorrentMan.h
  14493. (UsedPieces): Removed.
  14494. (Pieces): New type definition.
  14495. * src/Piece.h: Updated doc.
  14496. * src/Peer.h
  14497. (totalLength): Removed.
  14498. * src/Peer.cc
  14499. (updateLatency): Fixed the latency calculation.
  14500. * src/TorrentMan.cc
  14501. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14502. than or equal to MAX_PEER_LIST_SIZE.
  14503. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14504. then return false.
  14505. (deleteOldErrorPeers): Rewritten.
  14506. (deleteUsedPiece): Fixed the miss use of STL remove.
  14507. * src/PeerInteraction.h
  14508. (Pieces): Removed.
  14509. (deleteTimeoutRequestSlot): Removed.
  14510. (deleteCompletedRequestSlot): Removed.
  14511. (checkRequestSlot): New function.
  14512. * src/PeerInteraction.cc
  14513. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14514. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14515. (checkRequestSlot): New function.
  14516. * src/DownloadEngine.cc
  14517. (run): Clear activeSockets before calling waitData().
  14518. (waitData): Removed a call to activeSockets.clear().
  14519. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14520. To attempt to handle EINTR:
  14521. * src/SocketCore.cc
  14522. (isReadable): Added EINTR handling.
  14523. (isWritable): Added EINTR handling.
  14524. To improve the performance:
  14525. * src/AbstractCommand.cc
  14526. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14527. * src/PeerInteractionCommand.h
  14528. (receiveMessage): Renamed as receiveMessages().
  14529. (receiveMessages): New function.
  14530. * src/PeerInteractionCommand.cc
  14531. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14532. () function. detectMessageFlooding() is moved here.
  14533. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14534. (). The flooding detection for have message is comment out.
  14535. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14536. Util::difftv().
  14537. (receiveMessage): Renamed as receiveMessages().
  14538. (receiveMessages): New function.
  14539. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14540. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14541. * src/SleepCommand.cc
  14542. (execute): Use Util::difftvsec() instead of Util::difftv().
  14543. * src/BitfieldMan.h
  14544. (getNthBitIndex): New function.
  14545. (hasMissingPiece): New function.
  14546. (getAllMissingIndexes): New function.
  14547. * src/BitfieldMan.cc
  14548. (countSetBit): Rewritten.
  14549. (getNthBitIndex): New function.
  14550. (getMissingIndexRandomly): Rewritten.
  14551. (hasMissingPiece): New function.
  14552. (getAllMissingIndexes): New function.
  14553. * src/TorrentMan.cc
  14554. (hasMissingPiece): New function.
  14555. (deleteUsedPiece): Rewritten using STL.
  14556. * src/PeerInteraction.cc
  14557. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14558. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14559. (addRequests): Updated the number of pending requests.
  14560. * src/PeerAbstractCommand.cc
  14561. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14562. (execute): Returns true if TorrentMan::isHalt() is true.
  14563. Corrected the condition of upload limit checking.
  14564. * src/Util.h
  14565. (countBit): New function.
  14566. * src/Util.cc
  14567. (nbits): New variable.
  14568. (countBit): New function.
  14569. * src/DownloadEngine.h
  14570. (SockCmdMap): New type definition.
  14571. (waitData): Added an argument.
  14572. (addSocket): Added an argument.
  14573. (addSocketForReadCheck): Added an argument.
  14574. (addSocketForWriteCheck): Added an argument.
  14575. * src/DownloadEngine.cc
  14576. (run): Executes only commands whose sockets are ready to read or write.
  14577. All commands are executed in every 1 second.
  14578. (waitData): Calls select() again if it returned
  14579. EINTR.
  14580. (addSocket): Saves socket and command object pair to the map.
  14581. (deleteSocket): Deletes socket and command object pair from the map.
  14582. (addSocketForReadCheck): Added an argument.
  14583. (addSocketForWriteCheck): Added an argument.
  14584. * src/DownloadCommand.cc
  14585. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14586. To send "event=stopped" to the tracker when the application finishes:
  14587. * src/PeerChokeCommand.h
  14588. (checkPoint): New variable.
  14589. * src/PeerChokeCommand.cc
  14590. (PeerChokeCommand): Added the initialization of checkPoint.
  14591. (execute): The interval check is now done by checkPoint, not
  14592. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14593. * src/TorrentMan.h
  14594. (halt): New function.
  14595. (hasMissingPiece): New function.
  14596. (isHalt): New function.
  14597. (setHalt): New function.
  14598. * src/TorrentMan.cc
  14599. (TorrentMan): Added the initialization of halt.
  14600. * src/TorrentAutoSaveCommand.h
  14601. (checkPoint): New variable.
  14602. * src/PeerListenCommand.cc
  14603. (execute): Returns true if TorrentMan::isHalt() is true.
  14604. * src/main.cc
  14605. (setSignalHander): Added flags argument.
  14606. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14607. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14608. Removed printDownloadAbortMessage() after torrent downloading loop.
  14609. * src/TorrentAutoSaveCommand.cc
  14610. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14611. (execute): Returns true if TorrentMan::isHalt() is true.
  14612. The interval check is now done by checkPoint, not SleepCommand.
  14613. * src/TrackerWatcherCommand.cc
  14614. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14615. event=stopped.
  14616. * src/TrackerUpdateCommand.cc
  14617. (prepareForRetry): Do not use SleepCommand here.
  14618. (execute): Returns true if TorrentMan::isHalt() is true.
  14619. Others:
  14620. * src/TorrentMan.cc
  14621. (getMissingPieceIndex): Updated log message.
  14622. * src/PeerInteraction.cc
  14623. (createPeerMessag): Updated log message.
  14624. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14625. To add the ability to download several pieces in mix in a command and
  14626. increase the number of request slots according to request-cancel
  14627. latency:
  14628. * src/PeerInteractionCommand.cc
  14629. (executeInternal): The number of messages to be received at a time
  14630. is increased from 10 to 50.
  14631. * src/LogFactory
  14632. (getInstance): Added NullLogger.
  14633. * src/NullLogger.h: New class.
  14634. * src/BitfieldMan.h
  14635. (getMissingIndex): New function.
  14636. * src/BitfieldMan.cc
  14637. (getMissingIndex): New function.
  14638. * src/TorrentMan.h
  14639. (checkOutPiece): New function.
  14640. (getMissingPieceIndex): New function.
  14641. (getMissingFastPieceIndex): New function.
  14642. (getMissingFastPiece): New function.
  14643. * src/TorrentMan.cc
  14644. (updatePiece): Rewritten using STL.
  14645. (syncPiece): Rewritten using STL.
  14646. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14647. checkOutPiece().
  14648. (getMissingPieceIndex): New function.
  14649. (getMissingFastPieceIndex): New function.
  14650. (getMissingFastPiece): New function.
  14651. (checkOutPiece): New function.
  14652. * src/PeerInteraction.h
  14653. (Pieces): New type definition.
  14654. (piece): Removed.
  14655. (pieces): New variable.
  14656. (getNewPieceAndSendInterest): Added the "piece" argument.
  14657. (abortPiece): Added the "piece" argument.
  14658. (abortAllPieces): New function.
  14659. (isInRequestSlot): New function.
  14660. (hasDownloadPiece): Added the "index" argument.
  14661. (setDownloadPiece): Removed.
  14662. (getDownloadPiece): Added the "index" argument.
  14663. (updatePiece): New function.
  14664. (createRequestMessage): Added the "index" argument.
  14665. * src/PeerInteraction.cc
  14666. (onChoked): Rewritten.
  14667. (abortPiece): Rewirtten.
  14668. (abortAllPieces): New function.
  14669. (deleteTimeoutRequestSlot): Rewritten.
  14670. Clarified code a little bit.
  14671. (deleteCompletedRequestSlot): Rewritten.
  14672. (isInRequestSlot): New function.
  14673. (syncPiece): Rewritten.
  14674. (updatePiece): New function.
  14675. (getNewPieceAndSendInterest): Rewritten.
  14676. (addRequests): Rewritten.
  14677. (getDownloadPiece): Rewritten.
  14678. (hasDownloadPiece): Rewritten.
  14679. (createRequestMessage): Added the "index" argument.
  14680. * src/common.h
  14681. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14682. (DIV_FLOOR): New definition.
  14683. * src/PieceMessage.cc
  14684. (receivedAction): Update request-piece latency here.
  14685. * src/RequestSlot.h
  14686. (getLatencyInMillis): New function.
  14687. * src/RequestSlot.cc
  14688. (isTimeout): Rewritten using getLatencyInMillis.
  14689. (getLatencyInMillis): New function.
  14690. * src/Piece.h
  14691. (operator==): New function.
  14692. (getMissingBlockIndex): New function.
  14693. * src/Piece.cc
  14694. (operator==): New function.
  14695. (getMissingBlockIndex): New function.
  14696. * src/Peer.h
  14697. (DEFAULT_LATENCY): New definition.
  14698. (latency): New variable.
  14699. (updateLatency): New function.
  14700. (getLatency): New function.
  14701. * src/Peer.cc
  14702. (resetStatus): Reset latecy.
  14703. (updateLatency): New function.
  14704. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14705. * src/SocketCore.cc
  14706. (isReadable): Added secure to the condition.
  14707. * src/HttpConnection.cc
  14708. (receiveResponse): Fixed a bug that causes no response header
  14709. exception.
  14710. * src/Peer.h
  14711. (getFastSet): Fixed the return value type.
  14712. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14713. To remove a wait from download loop:
  14714. * src/DownloadEngine.cc
  14715. (run): Comment out shortSleep.
  14716. To rewrite the message handling:
  14717. * src/SimplePeerMessage.h: New class.
  14718. * src/SimplePeerMessage.cc: New class.
  14719. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14720. (msg): New variable.
  14721. (create): New function.
  14722. (send): Removed.
  14723. (getMessage): New function.
  14724. (getMessageLength): New function.
  14725. * src/CancelMessage.cc
  14726. (create): New function.
  14727. (receivedAction): Replaced deleteRequestMessageInQueue with
  14728. rejectPieceMessageInQueue.
  14729. (send): Removed.
  14730. (getMessage): New function.
  14731. (getMessageLength): New function.
  14732. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14733. (msg): New variable.
  14734. (msgLength): New variable.
  14735. (~BitfieldMessage): Deleted msg.
  14736. (send): Removed.
  14737. (getMessage): New function.
  14738. (getMessageLength): New function.
  14739. * src/BitfieldMessage.cc
  14740. (create): New function.
  14741. (send): Removed.
  14742. (getMessage): New function.
  14743. (getMessageLength): New function.
  14744. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14745. (msg): New variable.
  14746. (sendPredicate): New function.
  14747. (onSendComplete): New function.
  14748. (send): Removed.
  14749. (getMessage): New function.
  14750. (getMessageLength): New function.
  14751. (create): New function.
  14752. * src/ChokeMessage.cc
  14753. (create): New function.
  14754. (send): Removed.
  14755. (sendPredicate): New function.
  14756. (getMessage): New function.
  14757. (getMessageLength): New function.
  14758. (onSendComplete): New function.
  14759. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14760. (msg): New variable.
  14761. (send): Removed.
  14762. (getMessage): New function.
  14763. (getMessageLength): New function.
  14764. * src/KeepAliveMessage.cc
  14765. (send): Removed.
  14766. (getMessage): New function.
  14767. (getMessageLength): New function.
  14768. * src/PortMessage.h
  14769. (create): New function.
  14770. (receivedAction): Updated log message.
  14771. * src/PortMessage.cc: New file.
  14772. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14773. (msg): New variable.
  14774. (sendPredicate): New function.
  14775. (onSendComplete): New function.
  14776. (create): New function.
  14777. (send): Removed.
  14778. (getMessage): New function.
  14779. (getMessageLength): New function.
  14780. * src/UnchokeMessage.cc
  14781. (create): New function.
  14782. (send): Removed.
  14783. (sendPredicate): New function.
  14784. (getMessage): New function.
  14785. (getMessageLength): New function.
  14786. (onSendComplete): New function.
  14787. * src/PieceMessage.h
  14788. (leftPieceDataLength): Removed.
  14789. (leftDataLength): New variable.
  14790. (headerSend): New variable.
  14791. (pendingCount): New variable.
  14792. (msgHeader): New variable.
  14793. (sendPieceData): New function.
  14794. (incrementPendingCount): New function.
  14795. (isPendingCountMax): New function.
  14796. (create): New function.
  14797. (getMessageHeader): New function.
  14798. (getMessageHeaderLength): New function.
  14799. * src/PieceMessage.cc
  14800. (create): New function.
  14801. (getMessageHeader): New function.
  14802. (getMessageHeaderLength): New function.
  14803. (send): Rewritten.
  14804. (sendPieceData): New function.
  14805. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14806. (msg): New variable.
  14807. (create): New function.
  14808. (getMessage): New function.
  14809. (getMessageLength): New function.
  14810. * src/HaveMessage.cc
  14811. (create): New function.
  14812. (send): Removed.
  14813. (sendPieceData): New function.
  14814. (getMessage): New function.
  14815. (getMessageLength): New function.
  14816. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14817. (msg): New variable.
  14818. (create): New function.
  14819. (send): Removed.
  14820. (getMessage): New function.
  14821. (getMessageLength): New function.
  14822. * src/RequestMessage.cc
  14823. (create): New function.
  14824. (receivedAction): Added the handling of fast extension.
  14825. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14826. (send): Removed.
  14827. (getMessage): New function.
  14828. (getMessageLength): New function.
  14829. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14830. (msg): New variable.
  14831. (sendPredicate): New function.
  14832. (onSendComplete): New function.
  14833. (create): New function.
  14834. (getMessage): New function.
  14835. (getMessageLength): New function.
  14836. * src/InterestedMessage.cc
  14837. (create): New function.
  14838. (send): Removed.
  14839. (sendPieceData): New function.
  14840. (getMessage): New function.
  14841. (getMessageLength): New function.
  14842. (onSendComplete): New function.
  14843. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14844. (msg): New variable.
  14845. (sendPieceData): New function.
  14846. (onSendComplete): New function.
  14847. (create): New function.
  14848. (send): Removed.
  14849. (getMessage): New function.
  14850. (getMessageLength): New function.
  14851. * src/NotInterestedMessage.cc
  14852. (create): New function.
  14853. (send): Removed.
  14854. (sendPredicate): New function.
  14855. (getMessage): New function.
  14856. (getMessageLength): New function.
  14857. (onSendComplete): New function.
  14858. * src/AllowedFastMessage.h: New class.
  14859. * src/AllowedFastMessage.cc: New class.
  14860. * src/RejectMessage.h: New class.
  14861. * src/RejectMessage.cc: New class.
  14862. * src/SuggestPieceMessage.h: New class.
  14863. * src/SuggestPieceMessage.cc: New class.
  14864. * src/HaveAllMessage.h: New class.
  14865. * src/HaveAllMessage.cc: New class.
  14866. * src/HaveNoneMessage.h: New class.
  14867. * src/HaveNoneMessage.cc: New class.
  14868. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14869. (msg): New variable.
  14870. (reserved): New variable.
  14871. (create): New function.
  14872. (getId): New function.
  14873. (receivedAction): New function.
  14874. (getMessage): New function.
  14875. (getMessageLength): New function.
  14876. (isFastExtensionSupported): New function.
  14877. * src/HandshakeMessage.cc
  14878. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14879. (create): New function.
  14880. (getMessage): New function.
  14881. (getMessageLength): New function.
  14882. (toString): Added the output of reserved field.
  14883. (check): Added const qualifier.
  14884. (isFastExtensionSupported): New function.
  14885. * src/PeerMessageUtil.h
  14886. (createChokeMessage): Removed.
  14887. (createUnchokeMessage): Removed.
  14888. (createInterestedMessage): Removed.
  14889. (createNotInterestedMessage): Removed.
  14890. (createHaveMessage): Removed.
  14891. (createBitfieldMessage): Removed.
  14892. (createRequestMessage): Removed.
  14893. (createCancelMessage): Removed.
  14894. (createPieceMessage): Removed.
  14895. (createPortMessage): Removed.
  14896. (createChokeMessage): Removed.
  14897. (createUnchokeMessage): Removed.
  14898. (createInterestedMessage): Removed.
  14899. (createNotInterestedMessage): Removed.
  14900. (createHaveMessage): Removed.
  14901. (createBitfieldMessage): Removed.
  14902. (createRequestMessage): Removed.
  14903. (createCancelMessage): Removed.
  14904. (createPieceMessage): Removed.
  14905. (createKeepAliveMessage): Removed.
  14906. (createHandshakeMessage): Removed.
  14907. (setIntParam): New function.
  14908. (createPeerMessageString): New function.
  14909. * src/PeerMessageUtil.cc
  14910. (createChokeMessage): Removed.
  14911. (createUnchokeMessage): Removed.
  14912. (createInterestedMessage): Removed.
  14913. (createNotInterestedMessage): Removed.
  14914. (createHaveMessage): Removed.
  14915. (createBitfieldMessage): Removed.
  14916. (createRequestMessage): Removed.
  14917. (createCancelMessage): Removed.
  14918. (createPieceMessage): Removed.
  14919. (createPortMessage): Removed.
  14920. (createRequestMessage): Removed.
  14921. (createCancelMessage): Removed.
  14922. (createPieceMessage): Removed.
  14923. (createHaveMessage): Removed.
  14924. (createChokeMessage): Removed.
  14925. (createUnchokeMessage): Removed.
  14926. (createInterestedMessage): Removed.
  14927. (createNotInterestedMessage): Removed.
  14928. (createBitfieldMessage): Removed.
  14929. (createKeepAliveMessage): Removed.
  14930. (createHandshakeMessage): Removed.
  14931. (setIntParam): New function.
  14932. (createPeerMessageString): New function.
  14933. * src/PeerConnection.h
  14934. (peer): Removed.
  14935. (torrentMan): Removed.
  14936. (createNLengthMessage): Removed.
  14937. (setIntParam): Removed.
  14938. (writeOutgoingMessageLog): Removed all overloaded functions.
  14939. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14940. (sendMessage): New function.
  14941. (sendHandshake): Removed.
  14942. (sendKeepAlive): Removed.
  14943. (sendChoke): Removed.
  14944. (sendUnchoke): Removed.
  14945. (sendInterested): Removed.
  14946. (sendNotInterested): Removed.
  14947. (sendHave): Removed.
  14948. (sendBitfield): Removed.
  14949. (sendRequest): Removed.
  14950. (sendPiece): Removed.
  14951. (sendPieceHeader): Removed.
  14952. (sendPieceData): Removed.
  14953. (sendCancel): Removed.
  14954. (getPeer): Removed.
  14955. * src/PeerConnection.cc
  14956. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14957. (sendHandshake): Removed.
  14958. (sendKeepAlive): Removed.
  14959. (createNLengthMessage): Removed.
  14960. (setIntParam): Removed.
  14961. (writeOutgoingMessageLog): Removed all overloaded functions.
  14962. (sendChoke): Removed.
  14963. (sendUnchoke): Removed.
  14964. (sendInterested): Removed.
  14965. (sendNotInterested): Removed.
  14966. (sendHave): Removed.
  14967. (sendBitfield): Removed.
  14968. (sendRequest): Removed.
  14969. (sendPiece): Removed.
  14970. (sendPieceHeader): Removed.
  14971. (sendPieceData): Removed.
  14972. (sendMessage): New function.
  14973. (sendCancel): Removed.
  14974. * src/PeerInteractionCommand.cc
  14975. (PeerInteractionCommand): Call setUploadLimit.
  14976. (executeInternal): Call setUploadLimit.
  14977. Added the handling of "inProgress" state of handshake message.
  14978. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14979. sendNow().
  14980. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14981. sendNow().
  14982. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14983. * src/TorrentMan.h
  14984. (PEER_ID_LENGTH): New definition.
  14985. (hasAllPieces): New function.
  14986. * src/TorrentMan.cc
  14987. (getMissingPiece): Added the handling of fast extension.
  14988. (cancelPiece): Call updatePiece().
  14989. (hasAllPieces): New function.
  14990. * src/PeerInteraction.h
  14991. (fastSet): New variable.
  14992. (getNewPieceAndSendInterest): Changed the return type to void.
  14993. (send): Renamed as sendMessages.
  14994. (deleteAllRequestSlot): Removed.
  14995. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14996. (cancelAllRequest): Removed all overloaded functions.
  14997. (deleteAllRequestSlot): Removed.
  14998. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14999. (rejectPieceMessageInQueue): New function.
  15000. (rejectAllPieceMessageInQueue): New function.
  15001. (onChoked): New function.
  15002. (isSendingMessageInProgress): New function.
  15003. (getCorrespondingRequestSlot): Changed its arguments.
  15004. (isInFastSet): New function.
  15005. (addFastSetIndex): New function.
  15006. (addRequests): New function.
  15007. (sendNow): Removed.
  15008. (trySendNow): Removed.
  15009. (sendBitfield): New function.
  15010. (sendAllowdFast): New function.
  15011. (createHaveAllMessage): New function.
  15012. (createHaveNoneMessage): New function.
  15013. (createRejectMessage): New function.
  15014. (createAllowedFastMessage): New function.
  15015. * src/PeerInteraction.cc
  15016. (send): Renamed as sendMessages.
  15017. (sendMessages): New function.
  15018. (MsgPushBack): New class.
  15019. (isSendingMessageInProgress): New function.
  15020. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15021. (rejectAllPieceMessageInQueue): New function.
  15022. Added the handling of fast extension.
  15023. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15024. (rejectPieceMessageInQueue): New function.
  15025. Added the handling of fast extension.
  15026. (deleteRequestSlot): Replaced for loop with std::find.
  15027. (onChoked): New function.
  15028. (deleteAllRequestSlot): Removed.
  15029. (abortPiece): Rewirtten.
  15030. (deleteTimeoutRequestSlot): Updated log messages.
  15031. (getCorrespondingRequestSlot): Changed its arguments.
  15032. (cancelAllRequest): Removed all overloaded functions.
  15033. (receiveHandshake): Added the check to see whether an incoming peer
  15034. supports fast extension.
  15035. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15036. PeerMessageUtil.
  15037. (createPeerMessage): Use create() of each message class instead of
  15038. PeerMessageUtil.
  15039. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15040. AllowedFastMessage were added.
  15041. (getNewPieceAndSendInterest): Changed its return value type to void.
  15042. Added the handling of fast extension.
  15043. (addRequests): New function.
  15044. (sendNow): Removed.
  15045. (sendHandshake): Rewritten.
  15046. (trySendNow): Removed.
  15047. (sendBitfield): New function.
  15048. (sendAllowdFast): New function.
  15049. (isInFastSet): New function.
  15050. (addFastSetIndex): New function.
  15051. (createRequestMessage): Use RequestMessage::create instead of
  15052. PeerMessageUtil.
  15053. (createCancelMessage): Use CancelMessage::create instead of
  15054. PeerMessageUtil.
  15055. (createPieceMessage): Use PieceMessage::create instead of
  15056. PeerMessageUtil.
  15057. (createHaveMessage): Use HaveMessage::create instead of
  15058. PeerMessageUtil.
  15059. (createChokeMessage): Use ChokeMessage::create instead of
  15060. PeerMessageUtil.
  15061. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15062. PeerMessageUtil.
  15063. (createInterestedMessage): Use InterestedMessage::create instead of
  15064. PeerMessageUtil.
  15065. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15066. of PeerMessageUtil.
  15067. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15068. PeerMessageUtil.
  15069. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15070. PeerMessageUtil.
  15071. (createHaveAllMessage): New function.
  15072. (createHaveNoneMessage): New function.
  15073. (createRejectMessage): New function.
  15074. (createAllowedFastMessage: New function.
  15075. * src/Util.h
  15076. (sha1Sum): New function.
  15077. (computeFastSet): New function.
  15078. * src/Util.cc
  15079. (sha1Sum): New function.
  15080. (computeFastSet): New function.
  15081. * src/Peer.h
  15082. (fastExtensionEnabled): New variable.
  15083. (fastSet): New variable.
  15084. (setAllBitfield): New function.
  15085. (setFastExtensionEnabled): New function.
  15086. (isFastExtensionEnabled): New function.
  15087. (addFastSetIndex): New function.
  15088. (getFastSet): New function.
  15089. (isInFastSet): New function.
  15090. (countFastSet): New function.
  15091. * src/Peer.cc
  15092. (isInFastSet): New function.
  15093. (addFastSetIndex): New function.
  15094. (setAllBitfield): New function.
  15095. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15096. sockets.
  15097. * src/PeerAbstractCommand.cc
  15098. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15099. and uploadLimit.
  15100. (execute): Changed the procedure of checking sockets. The upload speed
  15101. checking were added.
  15102. (setUploadLimit): New function.
  15103. (setUploadLimitCheck): New function.
  15104. * src/PeerAbstractCommand.h
  15105. (setUploadLimit): New function.
  15106. (setUploadLimitCheck): New function.
  15107. (uploadLimit): New variable.
  15108. (uploadLimitCheck): New variable.
  15109. To contact a tracker regularly:
  15110. * src/TrackerWatcherCommand.h (interval): New variable.
  15111. (checkPoint): New variable.
  15112. (TrackerWatcherCommand): Added interval argument.
  15113. * src/TrackerWatcherCommand.cc
  15114. (TrackerWatcherCommand): Initialized checkPoint.
  15115. (execute): Now a tracker is contacted in every specified period.
  15116. If peer list is not needed, send request with numwant=0.
  15117. * src/TrackerUpdateCommand.cc
  15118. (execute): Updated log messages.
  15119. * src/DownloadEngine.cc
  15120. (~DownloadEngine): Removed two asserts.
  15121. (waitData): Uncommented wfds. May be a bug fix.
  15122. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15123. * src/PeerInteractionCommand.h
  15124. (checkInactiveConnection): Removed.
  15125. * src/PeerInteractionCommand.cc
  15126. (executeInternal): Removed following function calls:
  15127. detectMessageFlooding(), checkLongTimePeerChoking and
  15128. checkInactiveConnection().
  15129. (checkInactiveConnection): Removed.
  15130. (detectMessageFlooding): Removed function call to
  15131. checkInactiveConnection().
  15132. * src/PeerMessageUtil.h
  15133. (createChokeMessage): New function. Overload.
  15134. (createUnchokeMessage): New function. Overload.
  15135. (createInterestedMessage): New function. Overload.
  15136. (createNotInterestedMessage): New function. Overload.
  15137. (createHaveMessage): New function. Overload.
  15138. (createBitfieldMessage): New function. Overload.
  15139. (createRequestMessage): New function. Overload.
  15140. (createCancelMessage): New function. Overload.
  15141. (createPieceMessage): New function. Overload.
  15142. (createKeepAliveMessage): New function. Overload.
  15143. * src/PeerMessageUtil.cc
  15144. (createChokeMessage): New function. Overload.
  15145. (createUnchokeMessage): New function. Overload.
  15146. (createInterestedMessage): New function. Overload.
  15147. (createNotInterestedMessage): New function. Overload.
  15148. (createHaveMessage): New function. Overload.
  15149. (createBitfieldMessage): New function. Overload.
  15150. (createRequestMessage): New function. Overload.
  15151. (createCancelMessage): New function. Overload.
  15152. (createPieceMessage): New function. Overload.
  15153. (createKeepAliveMessage): New function. Overload.
  15154. * src/SendMessageQueue.cc
  15155. (createRequestMessage): Use PeerMessageUtil.
  15156. (createCancelMessage): Use PeerMessageUtil.
  15157. (createPieceMessage): Use PeerMessageUtil.
  15158. (createHaveMessage): Use PeerMessageUtil.
  15159. (createChokeMessage): Use PeerMessageUtil.
  15160. (createUnchokeMessage): Use PeerMessageUtil.
  15161. (createInterestedMessage): Use PeerMessageUtil.
  15162. (createNotInterestedMessage): Use PeerMessageUtil.
  15163. (createBitfieldMessage): Use PeerMessageUtil.
  15164. (createKeepAliveMessage): Use PeerMessageUtil.
  15165. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15166. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15167. * src/PeerInteraction.h: New class.
  15168. * src/PeerInteraction.cc: New class.
  15169. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15170. Each peer message has its own class.
  15171. * src/PendingMessages.h: Removed.
  15172. * src/PendingMessages.cc: Removed. The sending process was moved to
  15173. each message class.
  15174. * src/RequestSlotMan.h: Removed.
  15175. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15176. SendMessageQueue.
  15177. * src/RequestMessage.h: New class.
  15178. * src/RequestMessage.cc: New class.
  15179. * src/CancelMessage.h: New class.
  15180. * src/CancelMessage.cc: New class.
  15181. * src/BitfieldMessage.h: New class.
  15182. * src/BitfieldMessage.cc: New class.
  15183. * src/ChokeMessage.h: New class.
  15184. * src/ChokeMessage.cc: New class.
  15185. * src/KeepAliveMessage.h: New class.
  15186. * src/KeepAliveMessage.cc: New class.
  15187. * src/PortMessage.h: New class.
  15188. * src/UnchokeMessage.h: New class.
  15189. * src/UnchokeMessage.cc: New class.
  15190. * src/PieceMessage.h: New class.
  15191. * src/PieceMessage.cc: New class.
  15192. * src/HaveMessage.h: New class.
  15193. * src/HaveMessage.cc: New class.
  15194. * src/BitfieldMessage.h: New class.
  15195. * src/BitfieldMessage.cc: New class.
  15196. * src/NotInterestedMessage.h: New class.
  15197. * src/NotInterestedMessage.cc: New class.
  15198. * src/InterestedMessage.h: New class.
  15199. * src/InterestedMessage.cc: New class.
  15200. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15201. (getSendMessageQueue): New function.
  15202. (setSendMessageQueue): New function.
  15203. * src/HandshakeMessage.cc: New class.
  15204. * src/PeerConnection.h (receiveMessage): Changed return value and
  15205. arguments.
  15206. (receiveHandshake): Changed return value and arguments.
  15207. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15208. here.
  15209. (receiveHandshake): Do not create handshake class here.
  15210. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15211. (piece): Removed.
  15212. (syncPiece): Removed.
  15213. (sendInterest): Removed.
  15214. (sendMessages): Removed.
  15215. (createRequestPendingMessage): Removed.
  15216. (checkPieceHash): Removed.
  15217. (erasePieceOnDisk): Removed.
  15218. (getNewPieceAndSendInterest): Removed.
  15219. (onGotNewPice): Removed.
  15220. (onGotWrongPiece): Removed.
  15221. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15222. Removed peerConnection, piece.
  15223. (~PeerInteractionCommand): Removed peerConnection.
  15224. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15225. (syncPiece): Moved to SendMessageQueue.
  15226. (decideChoking): Removed PendingMessage.
  15227. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15228. The action after receiving peer message was moved to each message
  15229. class.
  15230. (onGotNewPice): Moved to SendMessageQueue.
  15231. (onGotWrongPiece): Moved to SendMessageQueue.
  15232. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15233. (sendInterest): Moved to SendMessageQueue.
  15234. (createRequestPendingMessage): Removed.
  15235. (sendMessages): Moved to SendMessageQueue.
  15236. (onAbort): Use SendMessageQueue::abortPiece()
  15237. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15238. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15239. (checkPieceHash): Moved to SendMessageQueue.
  15240. (erasePieceOnDisk): Moved to SendMessageQueue.
  15241. * src/PeerMessageUtil.h
  15242. (createBitfieldMessage): Removed.
  15243. (createHaveMessage): Changed return value and arguments.
  15244. (createBitfieldMessage): Changed return value and arguments.
  15245. (createRequestCancelMessage): Removed.
  15246. (createPieceMessage): Changed return value and arguments.
  15247. (getShortIntParam): New function.
  15248. (checkIndex): Changed arguments.
  15249. (checkBegin): Changed arguments.
  15250. (checkLength): Changed arguments.
  15251. (checkPieceOffset): Removed.
  15252. (checkRange): New function.
  15253. (checkBitfield): Changed arguments.
  15254. (createPeerMessage): Removed.
  15255. (checkIntegrity): Removed.
  15256. (createHandshakeMessage): Changed arguments.
  15257. (createChokeMessage): New function.
  15258. (createUnchokeMessage): New function.
  15259. (createInterestedMessage): New function.
  15260. (createNotInterestedMessage): New function.
  15261. (createRequestMessage): New function.
  15262. (createCancelMessage): New function.
  15263. (createPortMessage): New function.
  15264. * src/PeerMessageUtil.cc
  15265. (createBitfieldMessage): Removed.
  15266. (createHaveMessage): Changed return value and arguments.
  15267. (createBitfieldMessage): Changed return value and arguments.
  15268. (createRequestCancelMessage): Removed.
  15269. (createPieceMessage): Changed return value and arguments.
  15270. (getShortIntParam): New function.
  15271. (checkIndex): Changed arguments.
  15272. (checkBegin): Changed arguments.
  15273. (checkLength): Changed arguments.
  15274. (checkPieceOffset): Removed.
  15275. (checkRange): New function.
  15276. (checkBitfield): Changed arguments.
  15277. (createPeerMessage): Removed.
  15278. (checkIntegrity): Removed.
  15279. (createHandshakeMessage): Changed arguments.
  15280. (createChokeMessage): New function.
  15281. (createUnchokeMessage): New function.
  15282. (createInterestedMessage): New function.
  15283. (createNotInterestedMessage): New function.
  15284. (createRequestMessage): New function.
  15285. (createCancelMessage): New function.
  15286. (createPortMessage): New function.
  15287. * src/PeerMessage.h
  15288. (id): Removed.
  15289. (index): Removed.
  15290. (begin): Removed.
  15291. (length): Removed.
  15292. (bitfield): Removed.
  15293. (bitfieldLength): Removed.
  15294. (block): Removed.
  15295. (blockLength): Removed.
  15296. (inProgress): New variable.
  15297. (cuid): New variable.
  15298. (peer): New variable.
  15299. (sendMessageQueue): New variable.
  15300. (logger): New variable.
  15301. (setBitfield): Removed.
  15302. (getBitfield): Removed.
  15303. (setBlock): Removed.
  15304. (getBlock): Removed.
  15305. (getBitfieldLength): Removed.
  15306. (getBlockLength): Removed.
  15307. (isInProgress): New function.
  15308. (toString): Made pure virtual.
  15309. (check): New function.
  15310. (send): New function.
  15311. (receivedAction): New function.
  15312. (getId): Made pure virtual.
  15313. (setId): Removed.
  15314. (getIndex): Removed.
  15315. (setIndex): Removed.
  15316. (getBegin): Removed.
  15317. (setBegin): Removed.
  15318. (getLength): Removed.
  15319. (setLength): Removed.
  15320. (getCuid): New function.
  15321. (setCuid): New function.
  15322. (getPeer): New function.
  15323. (setPeer): New function.
  15324. (getSendMessageQueue): New function.
  15325. (setSendMessageQueue): New function.
  15326. (ID): Removed.
  15327. * src/PeerMessage.cc
  15328. (setBitfield): Removed.
  15329. (setBlock): Removed.
  15330. (toString): Removed.
  15331. * src/TorrentMan.h
  15332. (getPieceLength): New function.
  15333. (getPieceLength): New function.
  15334. * src/SendMessageQueue.h
  15335. (REQUEST_TIME_OUT): New definition.
  15336. (RequestSlots): New definition.
  15337. (MessageQueue): New definition.
  15338. (requestSlotMan): Removed.
  15339. (pendingMessages): Removed.
  15340. (requestSlots): New variable.
  15341. (messageQueue): New variable.
  15342. (torrentMan): New variable.
  15343. (peerConnection): New variable.
  15344. (peer): New variable.
  15345. (piece): New variable.
  15346. (getNewPieceAndSendInterest): New function.
  15347. (createPeerMessage): New function.
  15348. (createHandshakeMessage): New function.
  15349. (send): Made private.
  15350. (setPeerMessageCommonProperty): New function.
  15351. (deleteAllRequestSlot): New function.
  15352. (deleteRequestMessageInQueue): New function.
  15353. (cancelAllRequest): Made private.
  15354. (cancelAllRequest): Made private.
  15355. (countRequestSlot): Made private.
  15356. (addPendingMessage): Removed.
  15357. (deletePendingPieceMessage): Removed.
  15358. (deletePendingRequestMessage): Removed.
  15359. (addMessage): New function.
  15360. (deletePieceMessageInQueue): New function.
  15361. (deleteTimeoutRequestSlot): Changed argument.
  15362. (deleteCompletedRequestSlot): Changed argument.
  15363. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15364. (getCorrespondingRequestSlot): New function.
  15365. (countPendingMessage): Removed.
  15366. (countMessageInQueue): New function.
  15367. (getTorrentMan): New function.
  15368. (getPeerConnection): New function.
  15369. (hasDownloadPiece): New function.
  15370. (getDownloadPiece): New function.
  15371. (setDownloadPiece): New function.
  15372. (syncPiece): New function.
  15373. (sendMessages): New function.
  15374. (sendNow): New function.
  15375. (trySendNow): New function.
  15376. (abortPiece): New function.
  15377. (sendHandshake): New function.
  15378. (receiveMessage): New function.
  15379. (receiveHandshake): New function.
  15380. (createRequestMessage): New function.
  15381. (createCancelMessage): New function.
  15382. (createPieceMessage): New function.
  15383. (createHaveMessage): New function.
  15384. (createChokeMessage): New function.
  15385. (createUnchokeMessage): New function.
  15386. (createInterestedMessage): New function.
  15387. (createNotInterestedMessage): New function.
  15388. (createBitfieldMessage): New function.
  15389. (createKeepAliveMessage): New function.
  15390. * src/SendMessageQueue.cc
  15391. (SendMessageQueue): Removed requestSlotMan.
  15392. Instantiated peerConnection here.
  15393. (~SendMessageQueue): Removed requestSlotMan.
  15394. Added deletion of peerConnection and the contents of messageQueue.
  15395. (send): Updated according to the change of messageQueue.
  15396. (addPendingMessage): Renamed to addMessage.
  15397. (addMessage): New function.
  15398. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15399. (deletePieceMessageInQueue): New function.
  15400. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15401. (deleteRequestMessageInQueue): New function.
  15402. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15403. here.
  15404. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15405. (...) was moved here.
  15406. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15407. moved here.
  15408. (deleteCompletedRequestSlot):
  15409. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15410. (getCorrespondingRequestSlot):
  15411. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15412. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15413. (countPendingMessage): Renamed to countMessageInQueue.
  15414. (countMessageInQueue): New function.
  15415. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15416. (receiveHandshake): New function.
  15417. (createHandshakeMessage): New function.
  15418. (receiveMessage): New function.
  15419. (createPeerMessage): New function.
  15420. (syncPiece): New function.
  15421. (getNewPieceAndSendInterest): New function.
  15422. (sendMessages): New function.
  15423. (sendNow): New function.
  15424. (trySendNow): New function.
  15425. (sendHandshake): New function.
  15426. (abortPiece): New function.
  15427. (getDownloadPiece): New function.
  15428. (getPeerMessageCommonProperty): New function.
  15429. (createRequestMessage): New function.
  15430. (createCancelMessage): New function.
  15431. (createPieceMessage): New function.
  15432. (createHaveMessage): New function.
  15433. (createChokeMessage): New function.
  15434. (createUnchokeMessage): New function.
  15435. (createInterestedMessage): New function.
  15436. (createNotInterestedMessage): New function.
  15437. (createBitfieldMessage): New function.
  15438. (createKeepAliveMessage): New function.
  15439. To add simple Content-Disposition support:
  15440. * src/HttpResponseCommand.h (determinFilename): New function.
  15441. * src/HttpResponseCommand.cc (executeInternal):
  15442. Use determinFilename(headers) instead of req->getFile() when comparing
  15443. filename.
  15444. (determinFilename): New function.
  15445. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15446. req->getFile().
  15447. (handleOtherEncoding): Use determinFilename(headers) instead of
  15448. req->getFile().
  15449. * src/Util.h (getContentDispositionFilename): New function.
  15450. * src/Util.cc (getContentDispositionFilename): New function.
  15451. * src/LogFactory.h (release): New function.
  15452. * src/LogFactory.cc (release): New function.
  15453. To fix a bug that causes out-of-bound exception when HTTP status
  15454. line is wrong:
  15455. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15456. size.
  15457. * src/common.h (Deleter): New class.
  15458. * src/SegmentMan.cc
  15459. (~SegmentMan): Added deletion of splitter and diskWriter.
  15460. * src/DownloadEngine.h
  15461. (Commands): Use deque.
  15462. (clearQueue): New function.
  15463. * src/DownloadEngine.cc
  15464. (~DownloadEngine): Added deletion of segmentMan.
  15465. (cleanQueue): New function.
  15466. * src/TorrentDownloadEngine.h
  15467. (TorrentDownloadEngine): The implementation was moved to
  15468. TorrentDownloadEngine.cc.
  15469. (~TorrentDownloadEngine): The implementation was moved to
  15470. TorrentDownloadEngine.cc.
  15471. * src/TorrentDownloadEngine.cc
  15472. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15473. * src/main.cc
  15474. (clearRequest): Removed.
  15475. (handler): Added deletion of e.
  15476. (torrentHandler): Added deletion of te.
  15477. (main): Do not share splitter.
  15478. Use Deleter instead of clearRequest.
  15479. Deletion of classes were updated.
  15480. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15481. * src/main.cc (main): Fixed typo.
  15482. * src/message.h: Fixed typo.
  15483. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15484. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15485. To add --select-file command-line option:
  15486. * src/Util.cc
  15487. (unfoldRange): New function.
  15488. (getNum): New function.
  15489. (unfoldSubRange): New function
  15490. * src/main.cc
  15491. (showUsage): Added help message.
  15492. (main): Added --select-file command-line option. Updated the layout of
  15493. file listing.
  15494. * src/common.h
  15495. (Integers): New definition.
  15496. * src/SocketCore.cc
  15497. (writeData): Removed timeout argument.
  15498. (readData): Removed timeout argument.
  15499. (peekData): Removed timeout argument.
  15500. * src/Socket.cc
  15501. (writeData): Removed timeout argument.
  15502. (readData): Removed timeout argument.
  15503. (peekData): Removed timeout argument.
  15504. * Release 0.4.1
  15505. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15506. To deploy upload rate based choking algorithm:
  15507. * src/PeerInteractionCommand.cc
  15508. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15509. peer currently used.
  15510. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15511. download completes. Simplified.
  15512. (receiveMessage): Updated.
  15513. * src/TorrentMan.h
  15514. (activePeers): New variable.
  15515. (addActivePeer): New function.
  15516. (getActivePeers): New function.
  15517. (deleteActivePeer): New function.
  15518. * src/TorrentMan.cc
  15519. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15520. * src/PeerAbstractCommand.cc
  15521. (onAbort): Use peer->resetStatus().
  15522. * src/main.cc
  15523. (PeerChokeCommand.h): Included.
  15524. (main): Added the instance of ChokingCommand to the command queue.
  15525. * src/Peer.h
  15526. (amChoking): Renamed from amChocking
  15527. (chokingRequired): New variable.
  15528. (optUnchoking): New variable.
  15529. (deltaUpload): New variable.
  15530. (deltaDownload): New variable.
  15531. (addDeltaUpload): New function.
  15532. (resetDeltaUpload): New function.
  15533. (addDeltaDownload): New function.
  15534. (resetDeltaDownload): New function.
  15535. (addPeerUpload): Added a call to addDeltaUpload.
  15536. (addPeerDownload): Added a call to addDeltaDownload.
  15537. * src/Peer.cc
  15538. (shouldBeChoking): Renamed from shouldChoke.
  15539. (resetStatus): New function.
  15540. * src/PeerChokeCommand.h: New class.
  15541. * src/PeerChokeCommand.cc: New class.
  15542. To add lazy upload speed limiter:
  15543. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15544. statistics calculation to TorrentDownloadEngine.
  15545. * src/TorrentConsoleDownloadEngine.cc
  15546. (sendStatistics): Renamed from printStatistics.
  15547. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15548. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15549. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15550. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15551. calculation.
  15552. (sendStatistics): New function as pure virtual function.
  15553. (getUploadSpeed): New function.
  15554. * src/TorrentDownloadEngine.cc
  15555. (initStatistics): New function.
  15556. (calculateSpeed): New function.
  15557. (calculateStatistics): New function.
  15558. * src/SendMessageQueue.h
  15559. (uploadLength): New variable.
  15560. (send): Added an argument.
  15561. (setUploadLimit): New function.
  15562. (getUploadLimit): New function.
  15563. * src/SendMessageQueue.cc
  15564. (send): Added upload speed limiter.
  15565. * src/prefs.h
  15566. (PREF_UPLOAD_LIMIT): New definition.
  15567. * src/PeerInteractionCommand.cc
  15568. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15569. * src/main.cc
  15570. (main): Added --upload-limit option
  15571. For bug fixes:
  15572. * src/main.cc
  15573. (showUsage): Corrected --listen-port help
  15574. Other changes:
  15575. * src/TorrentMan.cc
  15576. (getPeer): Return nullPeer if connection is grather than
  15577. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15578. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15579. To add some useful information to the exception message:
  15580. * src/SocketCore.cc : Updated messages.
  15581. * src/SegmentMan.cc :
  15582. * src/TorrentMan.cc : Updated messages.
  15583. * src/MultiDiskWriter.cc : Updated messages.
  15584. * src/Util.cc : Updated messages.
  15585. * src/AbstractDiskWriter.cc : Updated messages.
  15586. * src/PreAllocationDiskWriter.cc : Updated messages.
  15587. * src/message.cc : Added new messages. Updated some messages.
  15588. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15589. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15590. Updated threshold from 30 to 15.
  15591. * src/AbstractDiskWriter.h (filename): New variable.
  15592. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15593. (createFile): Assigned filename.
  15594. * src/main.cc: Updated the help message for http-auth-scheme.
  15595. * Release 0.4.0
  15596. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15597. To add TrackerUpdateCommand with which replaces
  15598. CompactTrackerResponseProcessor:
  15599. * src/TrackerWatcherCommand.h (req): Removed.
  15600. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15601. if the number of peer connections are less than 30.
  15602. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15603. * src/SegmentMan.h (diskWriter): New function.
  15604. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15605. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15606. (main): Use TrackerUpdateCommand.
  15607. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15608. (req): New variable.
  15609. (setTrackerResponseProcessor): Removed.
  15610. (getTrackerResponseProcessor): Removed.
  15611. (processTrackerResponse): Removed.
  15612. * src/DownloadEngine.h (diskWriter): Removed.
  15613. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15614. to torrentMan->processTrackerResponse().
  15615. To add Util::expandBuffer:
  15616. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15617. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15618. * src/Util.h (expandBuffer): New function.
  15619. To fix the bug that causes segmentation fault when "-l ." is specified
  15620. in command-line option:
  15621. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15622. (openFile): New function.
  15623. (closeFile): New function.
  15624. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15625. (~SimpleLogger): Call closeFile();
  15626. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15627. * src/main.cc (main): Added a check to see logger is configured
  15628. properly.
  15629. To enable HTTP authentication without specifying "--http-auth-scheme"
  15630. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15631. * src/HttpConnection.cc (createRequest): Send Authorization header
  15632. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15633. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15634. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15635. * src/Peer.cc (shouldChoke): Updated algorithm.
  15636. * src/message.h (EX_AUTH_FAILED): New definition.
  15637. (EX_FILE_OPEN): New definition.
  15638. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15639. if status == 401.
  15640. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15641. if req->isTorrent == true.
  15642. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15643. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15644. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15645. (createFile): Updated message.
  15646. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15647. To add a readout of estimated remaining time to normal HTTP/FTP
  15648. downloads:
  15649. * src/ConsoleDownloadEngine.h (startup): New variable.
  15650. (startupLength): New variable.
  15651. (isStartupLengthSet): New variable.
  15652. (avgSpeed): New variable.
  15653. (eta): New variable.
  15654. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15655. estimated remaining time.
  15656. (initStatistics): Initialized newly added variables.
  15657. (calculateStatistics): Calculate average speed and estimated remaining
  15658. time.
  15659. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15660. * src/TrackerDownloadCommand.h: Removed.
  15661. * src/TrackerDownloadCommand.cc: Removed.
  15662. * src/TrackerInitCommand.h: Removed.
  15663. * src/TrackerInitCommand.cc: Removed.
  15664. * src/TrackerUpdateCommand.h: Removed.
  15665. * src/TrackerUpdateCommand.cc: Removed.
  15666. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15667. url written in TrackerInitCommand was moved here. Do not create
  15668. tracker request command if torrentMan->trackers != 0.
  15669. * src/CompactTrackerResponseProcessor.h: New class.
  15670. * src/CompactTrackerResponseProcessor.cc: New class.
  15671. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15672. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15673. Decoupled TorrentDownloadEngine from this.
  15674. * src/SegmentMan.h (init): New function.
  15675. * src/SegmentMan.cc (init): New function.
  15676. * src/TorrentMan.h (responseProcessor): New variable.
  15677. (trackers): New variable.
  15678. (setTrackerResponseProcessor): New function.
  15679. (getTrackerResponseProcessor): New function.
  15680. (processTrackerResponse): New function.
  15681. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15682. (processTrackerResponse): New function.
  15683. * src/main.cc (main): Use ByteArrayDiskWriter and
  15684. CompactTrackerResponseProcessor.
  15685. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15686. processTrackerResponse().
  15687. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15688. readout.
  15689. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15690. which indicates download has completed.
  15691. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15692. (closeFile): fd >= 0, not fd > 0
  15693. * src/main.cc (main): Added short cut for show-files.
  15694. Added short cut for torrent-file.
  15695. Added new command-line option listen-port.
  15696. Updated i18n messages.
  15697. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15698. To add LogFactory which creates singleton logger:
  15699. * src/LogFactory.h: New class.
  15700. * src/LogFactory.cc: New class.
  15701. * src/Command.h (logger): New variable.
  15702. (Constructor): Use LogFactory.
  15703. * src/AbstractCommand.cc: Use Command::logger
  15704. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15705. Use LogFactory.
  15706. * src/SegmentSplitter.h : Made logger protected.
  15707. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15708. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15709. * src/DownloadEngine.h : Made logger protected.
  15710. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15711. * src/PeerInteractionCommand.cc : Use Command::logger.
  15712. * src/HttpResponseCommand.cc : Use Command::logger.
  15713. * src/SegmentMan.h : Made logger private.
  15714. * src/TorrentMan.h : Made logger private.
  15715. * src/TorrentMan.cc : Use LogFactory.
  15716. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15717. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15718. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15719. Use LogFactory.
  15720. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15721. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15722. Use LogFactory.
  15723. * src/DownloadCommand.cc : Use Command::logger.
  15724. * src/PeerAbstractCommand.cc : Use Command::logger.
  15725. * src/PeerListenCommand.cc : Use Command::logger.
  15726. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15727. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15728. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15729. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15730. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15731. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15732. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15733. Use LogFactory.
  15734. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15735. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15736. Use LogFactory.
  15737. * src/main.cc (main): Use LogFactory.
  15738. * src/DiskAdaptor.h (logger): New variable.
  15739. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15740. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15741. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15742. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15743. parameter to a tracker request.
  15744. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15745. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15746. * src/main.cc (setSignalHander): New function.
  15747. (main): Added a handler for SIGTERM.
  15748. (handler): Updated message.
  15749. (torrentHandler): Updated message.
  15750. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15751. * src/TorrentConsoleDownloadEngine.cc
  15752. (onPartialDownloadingCompletes): Renamed as
  15753. onSelectiveDownloadingCompletes.
  15754. (onSelectiveDownloadingCompletes): Updated message.
  15755. To add DiskAdaptor which abstract DiskWriter family:
  15756. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15757. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15758. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15759. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15760. MultiDiskAdaptor.h.
  15761. (readFileEntry): Changed its arguments.
  15762. (setup): setupDiskWriter is merged into this function.
  15763. (setupDiskWriter): Removed.
  15764. (setFileFilter): New function.
  15765. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15766. made in readFileEntry.
  15767. (getFilePath): Removed.
  15768. (getTempFilePath): Removed.
  15769. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15770. (fixFilename): Removed.
  15771. (copySingleFile): Removed.
  15772. (splitMultiFile): Removed.
  15773. (deleteTempFile): Removed.
  15774. (setFileEntriesToDownload): Removed.
  15775. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15776. (isSelectiveDownloadingMode): New function.
  15777. (setAllMultiFileRequestedState): Removed.
  15778. (finishPartialDownloadingMode): Renamed as
  15779. finishSelectiveDownloadingMode.
  15780. (finishSelectiveDownloadingMode): New function.
  15781. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15782. (getSelectedTotalLength): New function.
  15783. (onDownloadComplete): Use diskAdaptor.
  15784. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15785. (Range): Removed.
  15786. (setMultiFileEntries): Renamed as setFileEntries.
  15787. (setFileEntries): New function.
  15788. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15789. (pieceLength): New variable.
  15790. * src/main.cc (printDownloadCompeleteMessage): New function.
  15791. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15792. (main): Renamed torrent-show-files to show-files.
  15793. Rewritten file contents listing.
  15794. * src/TorrentMan.h (FileEntry): Removed.
  15795. (multiFileTopDir): Removed.
  15796. (multiFileEntries): Removed.
  15797. (diskWriter): Removed.
  15798. (diskAdaptor): New variable.
  15799. * src/DefaultDiskWriter.h (totalLength): New variable.
  15800. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15801. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15802. diskWriter.
  15803. * src/TorrentConsoleDownloadEngine.h
  15804. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15805. (partialTotalLength): Renamed as selectedTotalLength.
  15806. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15807. openExistingFile, otherwise call initAndOpenFile.
  15808. (closeFile): fd > 0, not fd != 0.
  15809. * src/DirectDiskAdaptor.h: New class.
  15810. * src/DirectDiskAdaptor.cc: New class.
  15811. * src/MultiDiskAdaptor.h: New class.
  15812. * src/MultiDiskAdaptor.cc: New class.
  15813. * src/CopyDiskAdaptor.h: New class.
  15814. * src/CopyDiskAdaptor.cc: New class.
  15815. * src/DiskAdaptor.h: New class.
  15816. * src/DiskAdaptor.cc: New class.
  15817. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15818. (PREF_SHOW_FILES): New definition.
  15819. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15820. To add the ability to download multi torrent into respective files
  15821. directly:
  15822. * src/DiskWriter.h (openFile): New function.
  15823. (seek): Removed.
  15824. * src/MultiDiskWriter.h: New class.
  15825. * src/MultiDiskWriter.cc: New class.
  15826. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15827. protected.
  15828. (openFile): New function.
  15829. * src/AbstractDiskWriter.cc (openFile): New function.
  15830. * src/prefs.h (V_FALSE): New definition.
  15831. (PREF_DIRECT_FILE_MAPPING): New definition.
  15832. * src/TorrentMan.h (setupDiskWriter): New function.
  15833. (setAllMultiFileRequestedState): New function.
  15834. (onDownloadComplete): New function.
  15835. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15836. (setupDiskWriter): New function.
  15837. (getFilePath): Updated.
  15838. (getTempFilePath): Updated.
  15839. (getSegmentFilePath): Updated.
  15840. (fixFilename): Updated.
  15841. (deleteTempFile): Updated.
  15842. (setAllMultiFileRequestedState): New function.
  15843. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15844. (finishPartialDownloadingMode): Reset requested flags.
  15845. (onDownloadComplete): New function.
  15846. * src/main.cc: Added --direct-file-mapping option.
  15847. Use TorrentMan::setupDiskWriter().
  15848. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15849. onDownloadComplete().
  15850. To fix ETA bug:
  15851. * src/Util.h (difftvsec): New function.
  15852. * src/Util.cc (difftvsec): New function.
  15853. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15854. type of "elapsed" instead of long long int.
  15855. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15856. The updates of statistics takes place every 1 seconds.
  15857. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15858. (calculateSpeed): Changed its argument signature.
  15859. * src/PeerMessage.cc (toString): Fixed message.
  15860. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15861. To print ETA:
  15862. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15863. completion handling when dealing with
  15864. TorrentMan::isPartialDownloadingMode() == true.
  15865. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15866. New function.
  15867. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15868. (sessionDownloadLength): New variable.
  15869. (avgSpeed): New variable.
  15870. (eta): New variable.
  15871. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15872. new variables: eta, avgSpeed, startup.
  15873. (calculateSpeed): Calculate average speed and ETA.
  15874. (printStatistics): Added ETA.
  15875. * src/Util.h (secfmt): New function.
  15876. * src/Util.cc (secfmt): New function.
  15877. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15878. To detect "keep alive" flooding:
  15879. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15880. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15881. variable: keepAliveCount.
  15882. (detectMessageFlooding): Added "keep alive" flooding detection.
  15883. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15884. received.
  15885. To add the ability to download only specified files in multi-file
  15886. torrent:
  15887. * src/BitfieldMan.h (filterBitfield): New variable.
  15888. (filterEnabled): New variable.
  15889. (setFilterBit): New function.
  15890. (enableFilter): New function.
  15891. (disableFilter): New function.
  15892. (isFilterEnabled): New function.
  15893. (getFilteredTotalLength): New function.
  15894. (getCompletedLength): New function.
  15895. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15896. filterBitfield, filterEnabled.
  15897. (CopyConstructor): Added filterBitfield and filterEnabled.
  15898. (operator==): Added filterBitfield and filterEnabled.
  15899. (Destructor): Added filterBitfield.
  15900. (getMissingIndex): Use filterBitfield.
  15901. (getMissingUnusedIndex): Use filterBitfield.
  15902. (getFirstMissingUnusedIndex): Use filterBitfield.
  15903. (getFirstMissingUnusedIndex): Use filterBitfield.
  15904. (getAllMissingIndexes): Use filterBitfield.
  15905. (countMissingBlock): Use filterBitfield.
  15906. (countBlock): Use filterBitfield.
  15907. (setBitInternal): Added new argument on.
  15908. (setUseBit): Use setBitInternal.
  15909. (unsetUseBit): Use setBitInternal.
  15910. (setBit): Use setBitInternal.
  15911. (unsetBit): Use setBitInternal.
  15912. (isAllBitSet): Use filterBitfield.
  15913. (setFilterBit): New function.
  15914. (addFilter): New function.
  15915. (enableFilter): New function.
  15916. (disableFilter): New function.
  15917. (clearFilter): New function.
  15918. (isFilterEnabled): New function.
  15919. (getFilteredTotalLength): New function.
  15920. (getCompletedLength): New function.
  15921. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15922. Initalized newly added variables.
  15923. [FileEntry](offset): New variable.
  15924. [FileEntry](extracted): New variable.
  15925. [FileEntry](requested): New variable.
  15926. (readFileEntry): New function.
  15927. (option): New variable.
  15928. (splitMultiFile): Removed const qualifier.
  15929. (fixFilename): Removed const qualifier.
  15930. (readFileEntryFromMetaInfoFile): New function.
  15931. (finishPartialDownloadingMode): New function.
  15932. (isPartialDownloadingMode): New function.
  15933. (setFileEntriesToDownload): New function.
  15934. (getCompletedLength): New function.
  15935. (getPartialTotalLength): New function.
  15936. * src/TorrentMan.cc (readFileEntry): New function.
  15937. (setup): Use readFileEntry. If no-preallocation option is specified,
  15938. use DefaultDiskWriter.
  15939. (readFileEntryFromMetaInfoFile): New function.
  15940. (fixFilename): Removed const qualifier.
  15941. (splitMultiFile): Removed const qualifier.
  15942. (setFileEntriesToDownload): New function.
  15943. (isPartialDownloadingMode): New function.
  15944. (finishPartialDownloadingMode): New function.
  15945. (getCompletedLength): New function.
  15946. (getPartialTotalLength): New function.
  15947. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15948. New variable.
  15949. (partialTotalLength): New variable.
  15950. (downloadLength): New variable.
  15951. (totalLength): New variable.
  15952. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15953. Added log.
  15954. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15955. partialTotalLength, downloadLength, totalLength.
  15956. (calculate): Calculate downloadLength and totalLength.
  15957. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15958. * src/main.cc (addCommand): Changed argument signature.
  15959. (main): Added new variable: args. Added new option "torrent-show-files"
  15960. "no-preallocation". Usage is not updated yet.
  15961. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15962. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15963. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15964. Attempt to add the ability to listing file entries in a .torrent file.
  15965. This feature is not yet complete.
  15966. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15967. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15968. (getName): New function.
  15969. * src/TorrentMan.h (getMultiFileEntries): New function.
  15970. (getName): New function.
  15971. * src/main.cc (main): Use above 2 funtion.
  15972. * Release 0.3.2
  15973. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15974. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15975. (detectMessageFlooding): Updated threshold value.
  15976. (checkLongTimePeerChoking): Updated timeout value.
  15977. (getNewPieceAndSendInterest): Added debug log.
  15978. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15979. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15980. (getPeer): Updated.
  15981. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15982. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15983. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15984. is localhost.
  15985. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15986. * src/PendingMessage.cc (processMessage): Not to send piece message
  15987. if peer is not interested in the pieces localhost has.
  15988. * src/Peer.cc (shouldChoke): Updated.
  15989. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15990. * src/Util.cc (isPowerOf): New function.
  15991. * src/Util.h (isPowerOf): New function.
  15992. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15993. whether or not it is power of 2.
  15994. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15995. Added new class SendMessageQueue that includes PendingMessages and
  15996. RequestSlotMan.
  15997. * src/SendMessageQueue.h: New class.
  15998. * src/SendMessageQueue.cc: New class.
  15999. * src/PendingMessage.h: Added new member variable blockIndex and its
  16000. accessors.
  16001. (createRequestMessage): Updated.
  16002. * src/PendingMessage.cc (createRequestMessage): Updated.
  16003. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16004. SendMessageQueue.
  16005. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16006. (receiveMessage): Updated with SendMessageQueue.
  16007. (deletePendingPieceMessage): Removed.
  16008. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16009. (sendInterest): Updated with SendMessageQueue.
  16010. (createRequestPendingMessage): Updated with SendMessageQueue.
  16011. (sendMessages): Updated with SendMessageQueue.
  16012. (onAbort): Updated with SendMessageQueue.
  16013. (keepAlive): Updated with SendMessageQueue.
  16014. (beforeSocketCheck): Updated SendMessageQueue.
  16015. * src/PeerInteractionCommand (sendMessages): Shuffle
  16016. missingBLockIndexes before using it.
  16017. Added its own timeout for peer connection.
  16018. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16019. setter.
  16020. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16021. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16022. Added setTimeout() call.
  16023. (executeInternal): Added setTimeout() call.
  16024. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16025. Added timeout.
  16026. (isTimeoutDetected): Updated.
  16027. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16028. option.
  16029. Added *simple* message flooding checker.
  16030. * src/PeerInteractionCommand.cc (executeInternal):
  16031. Added detectMessageFlooding() call.
  16032. (detectMessageFlooding): New function.
  16033. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16034. (beforeSocketCheck): Added detectMessageFlooding() call.
  16035. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16036. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16037. Removed deletePendingPieceMessage(), getRequestSlot(),
  16038. deleteRequestSlot(), deleteAllRequestSlot().
  16039. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16040. Added checkLongTimePeerChoking() call.
  16041. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16042. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16043. if duplicate == false.
  16044. The parameter "uploaded" and "downloaded" in the tracker request are
  16045. the size since the client sent the "started" event to the tracker.
  16046. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16047. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16048. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16049. getSessionDownloadedSize(), getSessionUploadedSize().
  16050. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16051. getSessionUploadedSize() instead of getDownloadedSize(),
  16052. getUploadedSize().
  16053. * src/PendingMessage.cc (processMessage): Do not send request message
  16054. if the peer is choking the client.
  16055. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16056. less than interval.
  16057. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16058. * configure.in: Added gnutls support. Added several CPP macros.
  16059. * m4/openssl.m4: Added.
  16060. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16061. readData(), peekData(). Added gnutls support.
  16062. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16063. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16064. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16065. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16066. Instead, added a check for whether setup method has executed
  16067. successfully.
  16068. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16069. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16070. * src/Makefile.am: Updated.
  16071. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16072. using whether OpenSSL or gcrypt, depending on the result of configure
  16073. script.
  16074. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16075. messageDigest.h.
  16076. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16077. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16078. Fixed memory leak.
  16079. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16080. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16081. Removed instantiation of TrackerInitCommand. Instead,
  16082. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16083. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16084. ENABLE_SSL.
  16085. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16086. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16087. If a piece is already acquired by another command, delete the request
  16088. slots for the piece.
  16089. * src/TrackerUpdateCommand.cc (execute):
  16090. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16091. Added a check whether peer list is null.
  16092. Fixed the bug that causes sending completed event to the tracker
  16093. several times.
  16094. * src/TrackerInitCommand.cc (execute):
  16095. Fixed the bug that causes sending completed event to the tracker
  16096. several times.
  16097. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16098. by using messageDigest.h.
  16099. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16100. * PeerConnection.cc: Replaced log message "keep-alive" with
  16101. "keep alive".
  16102. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16103. localhost long time.
  16104. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16105. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16106. at most 100 failure entry from the list. If with duplicate = false,
  16107. MAX_PEER_LIST is not checked.
  16108. * PeerListenCommand.cc: Fixed the argument order of log message.
  16109. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16110. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16111. Added warn().
  16112. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16113. Implemented warn().
  16114. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16115. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16116. * Request.h: Added AFTER_COMPLETED event.
  16117. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16118. instead of downloaded size and progress(%) after download completes.
  16119. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16120. message to the peer if it is interested in what localhost has
  16121. downloaded.
  16122. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16123. destination instead of just renaming it.
  16124. * TorrentMan.cc: Added deleteTempFile().
  16125. * PeerAbstractCommand.cc: do not stop execution after download
  16126. completes. This makes localhost a seeder.
  16127. * Util.{h,cc}: Added fileCopy().
  16128. * PeerListenCommand.cc: do not stop execution after download completes.
  16129. This makes localhost a seeder.
  16130. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16131. Added TorrentMan::deleteTempFile() to torrentHandler.
  16132. Initialized the variable dir as ".".
  16133. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16134. Deleted renameSingleFile().
  16135. Added copySingleFile(), deleteTempFile().
  16136. * DownloadEngine.h: Added virtual function afterEachIteration().
  16137. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16138. in onEndOfRun() to afterEachIteration().
  16139. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16140. true.
  16141. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16142. In rangedFileCopy(), added try-catch block to properly close file
  16143. descriptors.
  16144. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16145. Added afterEachIteration(), isFilenameFixed().
  16146. * Peer.cc: Changed choking strategy.
  16147. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16148. * TrackerInitCommand.cc: Send completed event only once.
  16149. * DownloadEngine.cc: Added a call to afterEachIteration().
  16150. * TrackerUpdateCommand.cc: Do not stop execution after download
  16151. completes.
  16152. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16153. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16154. received from a tracker.
  16155. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16156. Decreased the number of failure peers to delete to 0(just comment out
  16157. the line).
  16158. * Release 0.3.1
  16159. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16160. * PeerInteractionCommand.cc: added a call to
  16161. TorrentMan::unadvertisePiece in Destructor.
  16162. * PeerInteractionCommand.cc: make have message sent immediately
  16163. if the size of pending message queue is zero.
  16164. * TorrentMan.cc: set the maximum size of peer list to 250.
  16165. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16166. to deque.
  16167. * Util.cc: fixed rangedFileCopy.
  16168. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16169. to Constructor. Also, moved digest cleanup to Destructor.
  16170. * MetaFileUtil.cc: fixed memory leak
  16171. * replaced std::vector with std::deque.
  16172. * AbstractCommand.cc: casted timeout value to long long int.
  16173. * ChunkedEncoding.cc: fixed memory leak.
  16174. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16175. * SleepCommand.cc: casted timeout value to long long int.
  16176. * Data.cc: fixed memory leak.
  16177. * Data.cc: fixed toLLInt().
  16178. * BitfieldMan.cc: fixed memory leak.
  16179. * TorrentMan.cc: initialized storeDir to ".".
  16180. * TorrentMan.cc: fixed memory leak.
  16181. * TorrentMan.cc: corrected file paths of splitted files.
  16182. * PeerAbstractCommand.cc: casted timeout to long long int.
  16183. * main.cc: added delete(req) and delete(te->diskWriter).
  16184. * RequestSlot.cc: casted timeout value to long long int.
  16185. * Request.cc: fixed memory leak.
  16186. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16187. have the piece.
  16188. * Peer.{h,cc}: added hasPiece(int index).
  16189. * main.cc: corrected addCommand.
  16190. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16191. * BitTorrent protocol support added.
  16192. * Release 0.3.0
  16193. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16194. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16195. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16196. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16197. decoding did not work properly.
  16198. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16199. * DownloadEngine.h: included sys/time.h
  16200. * DownloadEngine.cc: remove sys/time.h
  16201. * Makefile.am (SUBDIRS): Add intl.
  16202. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16203. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16204. * main.cc: correct help message for --http-auth-scheme.
  16205. * main.cc: changed e-mail address for bug reports.
  16206. * ja.po: added japanese translation.
  16207. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16208. * SimpleLogger.cc: flush log file instead of stdout.
  16209. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16210. * main.cc: Fixed command-line option: max-tries
  16211. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16212. does not equal to seg.sp.
  16213. * DownloadCommand.cc: If EOF is got from the server and the total size
  16214. of file is not zero, then throw DlRetryEx.
  16215. * main.cc: Set the minium value of min-segment-size to 1024.
  16216. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16217. fails because of a regression since 0.2.0 release.
  16218. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16219. * HttpConnection.cc:
  16220. * common.h: defined the user agent name as macro
  16221. * DownloadEngine.{h, cc}:
  16222. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16223. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16224. * main.cc: Download complete/abort message is now generated by main.
  16225. * Makefile.am (SUBDIRS): Add m4.
  16226. (ACLOCAL_AMFLAGS): New variable.
  16227. (EXTRA_DIST): New variable.
  16228. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16229. * gettext: added gettext functionality
  16230. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16231. * AbstractCommand.cc:
  16232. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16233. unregister its cuid from SegmentMan.
  16234. * DownloadEngine.cc: .aria2 file was written when a downloading
  16235. failed with errors.
  16236. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16237. Added "User-Agent" header to CONNECT proxy request.
  16238. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16239. properly.
  16240. * Logger.h:
  16241. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16242. * ChunkedEncoding.cc: Added #include directive for strings.h
  16243. * Release 0.2.1
  16244. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16245. * Util.{h,cc}: added startsWith().
  16246. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16247. Util::endsWith().
  16248. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16249. * common.h: added #include directive of limit.h.
  16250. * DownloadEngine.cc: added #include directive of sys/time.h and
  16251. algorithm.
  16252. * Exception.h: added #include directive of stdio.h.
  16253. * AbstractCommand.h: added #include directive of sys/time.h.
  16254. * DownloadCommand.h: added #include directive of sys/time.h.
  16255. * *.h: added #include directive of common.h to all base classes.
  16256. subclasses' one was removed.
  16257. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16258. does not define these macros.
  16259. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16260. * Release 0.2.0
  16261. * main.cc:
  16262. * HttpInitiateConnectionCommand.{h,cc}:
  16263. * prefs.h:
  16264. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16265. We can now use GET command in http proxy.
  16266. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16267. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16268. that splits slowest segment of SegmentMan::commands vector.
  16269. This is the default split algorithm of aria2.
  16270. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16271. that splits first segment of SegmentMan::commands vector.
  16272. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16273. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16274. * Segment.h:
  16275. * SegmentMan.cc: Added speed field to Segment.h
  16276. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16277. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16278. * message.h: Change file size related %d to %lld.
  16279. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16280. * FtpInitiateConnectionCommand.{h,cc}:
  16281. * FtpNegotiationCommand.{h,cc}:
  16282. * FtpDownloadCommand.{h,cc}:
  16283. * FtpConnection.{h,cc}: Added FTP support
  16284. * SimpleLogger.cc: Log message now includes time information.
  16285. * main.cc: The value of --http-auth-scheme option is chagned from
  16286. 'BASIC' to 'basic'
  16287. * main.cc: Added --timeout command-line option.
  16288. * main.cc: Added --min-segment-size command-line option.
  16289. * main.cc: Added --max-retries command-line option.
  16290. * prefs.h: option string constants are now defined in prefs.h
  16291. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16292. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16293. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16294. with version 0.1.0's one.
  16295. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16296. * configure.in: Added --enable-ssl option to configure script.
  16297. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16298. cannot permit absoluteURI as Request-URI.
  16299. * HttpConnection.cc: Added Referer support.
  16300. * main.cc: Added referer command-line option.
  16301. * main.cc: Added rety-wait command-line option.
  16302. * Exception.h: Fixed formating bug in Exception::setMsg()
  16303. * SocketCore.{h,cc}:
  16304. * Socket.{h, cc}:
  16305. * Request.cc:
  16306. * InitiateConnectionCommandFactory.cc:
  16307. * HttpRequestCommand.cc: Added HTTPS support.
  16308. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16309. for SocketCore.
  16310. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16311. size is wrong
  16312. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16313. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16314. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16315. * Release 0.1.0