ChangeLog 615 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696
  1. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Updated the help message for --daemon option.
  3. * doc/aria2c.1.txt
  4. * src/usage_text.h
  5. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Added our own daemon() function for systems which desn't have
  7. daemon(3).
  8. * configure.ac
  9. * src/Makefile.am
  10. * src/daemon.cc
  11. * src/daemon.h
  12. * src/option_processing.cc
  13. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Simplified File::getCurrentDir()
  15. * src/File.cc
  16. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Use exit() instead of _exit
  18. * src/RequestGroupMan.cc
  19. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Replaced "CATEGORY" with "TAGS".
  21. * src/usage_text.h
  22. * doc/aria2c.1.txt
  23. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Updated the help message for --help option.
  25. * src/usage_text.h
  26. * doc/aria2c.1.txt
  27. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Updated man page for added help tags.
  29. * doc/aria2c.1.txt
  30. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Added help category #file. Added #file tag to the options related
  32. to downloaded file.
  33. * src/OptionHandlerFactory.cc
  34. * src/help_tags.h
  35. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Added help categories: #cookie and #hook. Added #https tag to
  37. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  38. * src/OptionHandlerFactory.cc
  39. * src/help_tags.h
  40. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Made MSG_NOT_FILE translatable.
  42. * src/message.h
  43. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Updated man page for --help option.
  45. * doc/aria2c.1.txt
  46. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. Updated doc.
  48. * src/XmlRpcMethod.h
  49. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Help category now starts with "#" to distinguish a category from
  51. keyword search. For example, "http" categroy is now "#http". You
  52. can type "--help=#http" to get explanation of options related to
  53. http. If '#' is omitted, then the argument is treated as a keyword
  54. and aria2 searches options whose name includes the keyword and
  55. print matched ones. For example, "--help=http" will show options
  56. whose name includes "http".
  57. * src/OptionHandlerFactory.cc
  58. * src/help_tags.h
  59. * src/usage_text.h
  60. * src/version_usage.cc
  61. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Documented missing experimental tag and newly added xml-rpc tag in
  63. man page.
  64. * doc/aria2c.1.txt
  65. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Added xml-rpc help tag. Tagged xml-rpc related options with
  67. xml-rpc tag.
  68. * src/OptionHandlerFactory.cc
  69. * src/help_tags.h
  70. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  71. Updated message when a path is not a file. Updated common message
  72. for wrong option.
  73. * src/OptionHandlerException.cc
  74. * src/message.h
  75. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Use File::isFile() instead of File::exists(). Updated message when
  77. a path is not a file.
  78. * src/OptionHandlerImpl.cc
  79. * src/message.h
  80. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Fixed the bug that server performence profile is not updated when
  82. aria2c was terminated by emergency shutdown.
  83. * src/TrackerWatcherCommand.cc
  84. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. Use LocalFilePathOptionHandler for -T and -M option.
  86. Updated message of MSG_FILE_NOT_EXIST.
  87. * src/OptionHandlerFactory.cc
  88. * src/message.h
  89. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Added LocalFilePathOptionHandler which check whether the specified
  91. file path does exist or not.
  92. * src/OptionHandlerImpl.cc
  93. * src/message.h
  94. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Updated wiki page URI.
  96. * README
  97. * doc/aria2c.1.txt
  98. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Added README.txt for xmlrpc directory.
  100. * doc/Makefile.am
  101. * doc/xmlrpc/README.txt
  102. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Bump up version number to 1.6.0.
  104. * configure.ac
  105. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Added XML-RPC client scripts written in ruby.
  107. * doc/Makefile.am
  108. * doc/xmlrpc/aria2mon
  109. * doc/xmlrpc/aria2rpc
  110. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Added support for IPv6 literal address in URI. Now aria2 can
  112. handle URI such as http://[::1]/
  113. * src/HttpRequest.cc
  114. * src/HttpRequest.h
  115. * src/Request.cc
  116. * src/Request.h
  117. * test/HttpRequestTest.cc
  118. * test/OptionHandlerTest.cc
  119. * test/RequestTest.cc
  120. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Fixed the bug that HTTP request header for XML-RPC request is not
  122. parsed properly.
  123. * src/HttpHeader.cc
  124. * src/HttpHeaderProcessor.cc
  125. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  126. Fixed the bug that XML-RPC authorization might be done before HTTP
  127. request header is fully received.
  128. * src/HttpServerCommand.cc
  129. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Documented --xml-rpc-listen-all option in man page.
  131. * doc/aria2c.1.txt
  132. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Added --xml-rpc-listen-all option. If true is given to this
  134. option, aria2 listens incoming XML-RPC requests on all network
  135. interfaces. If false is given, listens only on local loopback
  136. interface. The default value is false.
  137. * src/HttpListenCommand.cc
  138. * src/OptionHandlerFactory.cc
  139. * src/SocketCore.cc
  140. * src/SocketCore.h
  141. * src/prefs.cc
  142. * src/prefs.h
  143. * src/usage_text.h
  144. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. * Release 1.5.2
  146. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Updated Ukrainian and Russian translations. Thanks to all
  148. translators.
  149. * po/ru.po
  150. * po/uk.po
  151. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Bump up version number to 1.5.2
  153. * configure.ac
  154. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Get comment, comment.utf-8, created by and creation date from
  156. .torrent file and print them in -S output.
  157. * src/bittorrent_helper.cc
  158. * src/bittorrent_helper.h
  159. * test/BittorrentHelperTest.cc
  160. * test/test.torrent
  161. * test/utf8.torrent
  162. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  163. Show exact file size along in -S option output.
  164. * src/Util.h
  165. * src/bittorrent_helper.cc
  166. * test/UtilTest.cc
  167. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  168. Avoided unnecessary memory allocation in
  169. BitfieldMan::getCompletedLength().
  170. * src/BitfieldMan.cc
  171. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Fixed the bug that download fails if
  173. SocketCore::establishConnection() throws exception and aria2
  174. doesn't try another address.
  175. * src/AbstractCommand.cc
  176. * src/InitiateConnectionCommand.cc
  177. * src/message.h
  178. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  180. detected properly.
  181. * m4/sqlite3.m4
  182. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  183. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  184. because it causes compile error if PARAMS macro is defined.
  185. * src/XmlRpcElements.cc
  186. * src/XmlRpcElements.h
  187. * src/XmlRpcRequestParserStateImpl.cc
  188. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. * Release 1.5.1
  190. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Bump up version number to 1.5.1
  192. * configure.ac
  193. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Fixed compile error without BitTorrent support
  195. * src/DefaultBtProgressInfoFile.cc
  196. * src/DownloadEngine.cc
  197. * src/DownloadEngine.h
  198. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  199. Added missing '=' in Download Results
  200. * src/RequestGroupMan.cc
  201. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Fixed compiler warning
  203. * src/DefaultBtProgressInfoFile.cc
  204. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Fixed compiler warning on 32bit systems.
  206. * src/DownloadCommand.cc
  207. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Call flush from ServerStatMan::save()
  209. * src/ServerStatMan.cc
  210. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  211. Check stream status after file is opened.
  212. * src/CookieStorage.cc
  213. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Rewritten Signature::save()
  215. * src/Signature.cc
  216. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Rewritten RequestGroupMan::saveServerStat()
  218. * src/RequestGroupMan.cc
  219. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. Rewritten stream error handling
  221. * src/DHTAutoSaveCommand.cc
  222. * src/DHTRoutingTableDeserializer.cc
  223. * src/DHTRoutingTableSerializer.cc
  224. * src/DHTSetup.cc
  225. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Check stream status after file is opened.
  227. * src/DefaultBtProgressInfoFile.cc
  228. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Rewritten stream error handling
  230. * src/DefaultBtProgressInfoFile.cc
  231. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Make sure that stream is closed before renaming file. Unit test
  233. fails on mingw32 in the previous implementation.
  234. * src/CookieStorage.cc
  235. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  236. Fixed the unit test error without sqlite3
  237. * test/CookieStorageTest.cc
  238. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Fixed the undefined reference error
  240. * test/HttpResponseTest.cc
  241. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. * Release 1.5.0
  243. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  245. Ukrainian translations. Thanks to all translators.
  246. * po/ru.po
  247. * po/it.po
  248. * po/da.po
  249. * po/bg.po
  250. * po/ja.po
  251. * po/uk.po
  252. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Added missing src/Logger.cc
  254. * src/Logger.cc
  255. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Rewritten Logger to avoiding constly virtual call.
  257. * src/LogFactory.cc
  258. * src/LogFactory.h
  259. * src/Logger.h
  260. * src/Makefile.am
  261. * src/Makefile.in
  262. * src/NullLogger.h: Removed.
  263. * src/SimpleLogger.cc
  264. * src/SimpleLogger.h
  265. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Updated doc
  267. * src/main.cc
  268. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Updated debug log message
  270. * src/AbstractCommand.cc
  271. * src/message.h
  272. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Avoid to create zombie process when commands specified in
  274. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  275. X and NetBSD.
  276. * src/main.cc
  277. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  278. Fixed typo
  279. * src/usage_text.h
  280. * doc/aria2c.1.txt
  281. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Documented 'errorCode' of tellStatus in man page.
  283. * doc/aria2c.1.txt
  284. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  286. This key is only available for stopped/completed downloads and its
  287. value is the error code defined in EXIT STATUS in man page.
  288. * src/XmlRpcMethodImpl.cc
  289. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Fixed the bug that session download length is not updated when
  291. PeerStat is not fastest one.
  292. * src/SegmentMan.cc
  293. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Updated doc.
  295. * doc/aria2c.1.txt
  296. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Updated doc.
  298. * src/AbstractCommand.cc
  299. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Handle the case when DownloadContext has no FileEntry.
  301. * src/XmlRpcMethodImpl.cc
  302. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Handle the situation where struct option.name is char *.
  304. * configure.ac
  305. * src/OptionParser.cc
  306. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  307. Code cleanup
  308. * src/AbstractCommand.cc
  309. * src/DownloadCommand.cc
  310. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  311. Use option of each download to create AuthConfig instead of global
  312. option.
  313. * src/AuthConfigFactory.cc
  314. * src/AuthConfigFactory.h
  315. * src/FtpNegotiationCommand.cc
  316. * src/HttpRequest.cc
  317. * src/HttpRequest.h
  318. * src/HttpRequestCommand.cc
  319. * src/HttpSkipResponseCommand.cc
  320. * src/MultiUrlRequestInfo.cc
  321. * test/AuthConfigFactoryTest.cc
  322. * test/FtpConnectionTest.cc
  323. * test/HttpRequestTest.cc
  324. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Don't call prepareForRetry(1) if all segments are ignored in
  326. SegmentMan.
  327. * src/AbstractCommand.cc
  328. * src/BitfieldMan.cc
  329. * src/BitfieldMan.h
  330. * src/SegmentMan.cc
  331. * src/SegmentMan.h
  332. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  333. Removed FileEntry::getAssociatedUris()
  334. * src/FileEntry.h
  335. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. Updated doc: TODO1.5 -> TODO
  337. * src/FileEntry.cc
  338. * src/HttpResponseCommand.cc
  339. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Added assertion fileEntries.size() == 1 if BitTorrent is not
  341. involved.
  342. * src/RequestGroup.cc
  343. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  344. Eliminated duplicated filterBitfield initialization code.
  345. * src/BitfieldMan.cc
  346. * src/BitfieldMan.h
  347. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  348. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  349. relatively naive approach, though). For DownloadFailureException,
  350. we handle the case when req is null properly.
  351. * src/AbstractCommand.cc
  352. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Added function returning suffix of control file to
  354. DefaultBtProgressInfoFile.
  355. * src/DefaultBtProgressInfoFile.cc
  356. * src/DefaultBtProgressInfoFile.h
  357. * src/RequestGroup.cc
  358. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Documented getVersion in man page.
  360. * doc/aria2c.1.txt
  361. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Documented type of offset and num for tellWaiting xml-rpc method.
  363. * doc/aria2c.1.txt
  364. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Implemented getVersion xml-rpc method. This method returns struct
  366. which has 2 key-value pairs: "version" key is associated to the
  367. version of aria2, such as "1.5.0". "enabledFeatures" key is
  368. associated to the list of enabled features, such as "Async DNS",
  369. "BitTorrent".
  370. * src/FeatureConfig.h
  371. * src/XmlRpcMethodFactory.cc
  372. * src/XmlRpcMethodImpl.cc
  373. * src/XmlRpcMethodImpl.h
  374. * test/XmlRpcMethodTest.cc
  375. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Removed TLS1.1 protocol support when aria2 is built with gnutls
  377. for compatibility issue.
  378. * src/SocketCore.cc
  379. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Fixed compile error with openSSL
  381. * src/bittorrent_helper.cc
  382. * src/messageDigest.h
  383. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Removed bad code: setting certificate type priority to key
  385. exchange priority.
  386. * src/SocketCore.cc
  387. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Disconnect seeder if client is also in seed state.
  389. * src/BtBitfieldMessage.cc
  390. * src/BtHaveAllMessage.cc
  391. * src/BtHaveMessage.cc
  392. * src/message.h
  393. * test/BtBitfieldMessageTest.cc
  394. * test/BtHaveAllMessageTest.cc
  395. * test/BtHaveMessageTest.cc
  396. * test/MockPieceStorage.h
  397. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Keep CreateRequestCommand in queue when no segment is available so
  399. that they can pick up pieces which slow BitTorrent peers are
  400. downloading.
  401. * src/AbstractCommand.cc
  402. * src/CreateRequestCommand.cc
  403. * src/CreateRequestCommand.h
  404. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. --bt-stop-timeout now only checks download speed.
  406. * src/BtStopDownloadCommand.cc
  407. * src/BtStopDownloadCommand.h
  408. * src/BtSetup.cc
  409. * src/usage_text.h
  410. * doc/aria2c.1.txt
  411. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Fixed compile error regarding BUFSIZE.
  413. * src/DownloadCommand.cc
  414. * src/DownloadCommand.h
  415. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Documented tellWaiting xml-rpc method in man page.
  417. * doc/aria2c.1.txt
  418. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Bump up version number to 1.5.0
  420. * configure.ac
  421. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. Removed resolved TODO1.5
  423. * src/AbstractCommand.cc
  424. * src/DownloadCommand.cc
  425. * src/RequestGroup.cc
  426. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  427. Release pooled and in-flight Request objectsand URIResult objects
  428. in FileEntry after download completed.
  429. * src/DownloadContext.cc
  430. * src/DownloadContext.h
  431. * src/FileEntry.cc
  432. * src/FileEntry.h
  433. * src/RequestGroup.cc
  434. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  435. Set manual and source attribute in aria2c.1.txt
  436. * doc/aria2c.1.txt
  437. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Documented that the default value of --use-head is 'false' in man
  439. page.
  440. * doc/aria2c.1.txt
  441. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. Added bt-stop-timeout option to -i list.
  443. * doc/aria2c.1.txt
  444. * src/download_helper.cc
  445. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Fixed typo
  447. * doc/aria2c.1.txt
  448. * src/usage_text.h
  449. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  450. Removed peer-id-prefix option from -i list.
  451. * doc/aria2c.1.txt
  452. * src/download_helper.cc
  453. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  454. Fixed typo
  455. * doc/aria2c.1.txt
  456. * src/usage_text.h
  457. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  458. Documented --bt-stop-timeout option in man page.
  459. * doc/aria2c.1.txt
  460. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Updated README regarding multi-file torrent web-seeding.
  462. * doc/README.txt
  463. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Updated man page regarding multi-file torrent web-seeding.
  465. * doc/aria2c.1.txt
  466. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. Updated doc
  468. * src/version_usage.cc
  469. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Winsock select() doesn't work if no socket is in FD_SET. To
  471. overcome this problem, a dummy socket is added to FD_SET and it is
  472. given to select().
  473. * src/SelectEventPoll.cc
  474. * src/SelectEventPoll.h
  475. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  476. Disabled --use-head option by default because --use-head=true
  477. causes problems on some web sites.
  478. * src/OptionHandlerFactory.cc
  479. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  480. Print URL List in -S option for torrent.
  481. * src/bittorrent_helper.cc
  482. * src/bittorrent_helper.h
  483. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Allocate buffer in ctor of DownloadCommand.
  485. * src/DownloadCommand.cc
  486. * src/DownloadCommand.h
  487. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. Removed DiskAdaptor::onDownloadComplete()
  489. * src/DirectDiskAdaptor.cc
  490. * src/DirectDiskAdaptor.h
  491. * src/DiskAdaptor.h
  492. * src/MultiDiskAdaptor.cc
  493. * src/MultiDiskAdaptor.h
  494. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Committed missing BtStopDownloadCommand.{cc,h}
  496. * src/BtStopDownloadCommand.cc
  497. * src/BtStopDownloadCommand.h
  498. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  499. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  500. download if the download speed is 0 and the number of seeder is 0
  501. in consecutive SEC seconds. By default, this function is disabled.
  502. * src/BtSetup.cc
  503. * src/Makefile.am
  504. * src/OptionHandlerFactory.cc
  505. * src/prefs.cc
  506. * src/prefs.h
  507. * src/usage_text.h
  508. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Removed the call to DiskAdaptor::onDownloadComplete() from
  510. BtCheckIntegrityEntry and DefaultPieceStorage.
  511. * src/BtCheckIntegrityEntry.cc
  512. * src/DefaultPieceStorage.cc
  513. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Commented out throw statements when number of piece is 0 to
  515. download 0 length torrent.
  516. * src/bittorrent_helper.cc
  517. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Call RequestGroup::createNextCommandWithAdj() from
  519. BtFileAllocationEntry if at least one FileEntry has URI. The
  520. static function hasAssociatedUri in RequestGroup.cc is renamed as
  521. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  522. * src/BtFileAllocationEntry.cc
  523. * src/FileEntry.h
  524. * src/RequestGroup.cc
  525. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  526. Generate peer ID after SimpleRandomizer is initialized.
  527. * src/main.cc
  528. * src/option_processing.cc
  529. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Removed unused method argument.
  531. * src/CreateRequestCommand.cc
  532. * src/RequestGroup.cc
  533. * src/RequestGroup.h
  534. * src/RequestGroupMan.cc
  535. * src/TrackerWatcherCommand.cc
  536. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  537. Made URI reusing function work.
  538. * src/CreateRequestCommand.cc
  539. * src/FileEntry.cc
  540. * src/FileEntry.h
  541. * test/FileEntryTest.cc
  542. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  543. Add formerly fastest PeerStat's sessionDownloadLength to new
  544. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  545. bytes in a session.
  546. * src/PeerStat.cc
  547. * src/SegmentMan.cc
  548. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. If pipelining is enabled, we can always pool socket.
  550. * src/HttpDownloadCommand.cc
  551. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  552. In a single file download, file size becomes known just after
  553. downloading, set total length to FileEntry object when download
  554. completed.
  555. * src/DownloadCommand.cc
  556. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  557. Use std::vector::reserve() for fileEntries and pieceHashes in
  558. bittorrent_helper
  559. * src/bittorrent_helper.cc
  560. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  561. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  562. Removed hidden option PREF_RESET_URI.
  563. * src/AbstractCommand.cc
  564. * src/OptionHandlerFactory.cc
  565. * src/prefs.cc
  566. * src/prefs.h
  567. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Removed unused variable/function.
  569. * src/PeerStat.h
  570. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Show first URL in Download Results if file path is not available.
  572. * src/FileEntry.h
  573. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. Throw exception if file path doesn't exist in FTP URL.
  575. * src/InitiateConnectionCommandFactory.cc
  576. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  577. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  578. * src/BitfieldMan.cc
  579. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  581. of PeerStat in SegmentMan. peerStats is used for calculating
  582. download speed. Therefore all active PeerStats should be in
  583. there. Another one is _fastestPeerStats and it only contains
  584. fastest PeerStat for each hostname/protocol pair. They are used
  585. for updating ServerStat.
  586. * src/DownloadCommand.cc
  587. * src/Request.h
  588. * src/RequestGroupMan.cc
  589. * src/SegmentMan.cc
  590. * src/SegmentMan.h
  591. * test/SegmentManTest.cc
  592. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Try all available addresses returned by DNS until it gets
  594. connected in HTTP(S)/FTP download
  595. * src/AbstractCommand.cc
  596. * src/AbstractCommand.h
  597. * src/AbstractProxyRequestCommand.cc
  598. * src/AbstractProxyRequestCommand.h
  599. * src/DNSCache.h
  600. * src/DownloadEngine.cc
  601. * src/DownloadEngine.h
  602. * src/FtpInitiateConnectionCommand.cc
  603. * src/FtpInitiateConnectionCommand.h
  604. * src/FtpNegotiationCommand.cc
  605. * src/FtpNegotiationCommand.h
  606. * src/HttpInitiateConnectionCommand.cc
  607. * src/HttpInitiateConnectionCommand.h
  608. * src/HttpRequestCommand.cc
  609. * src/HttpRequestCommand.h
  610. * src/InitiateConnectionCommand.cc
  611. * src/InitiateConnectionCommand.h
  612. * test/DNSCacheTest.cc
  613. * test/Makefile.am
  614. * test/SimpleDNSCacheTest.cc
  615. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. Updated doc
  617. * src/download_helper.cc
  618. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Refactored fieldMan ctor.
  620. * src/BitfieldMan.cc
  621. * src/BitfieldMan.h
  622. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Don't print "No files to download." message if -S is given.
  624. * src/main.cc
  625. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Set referer and method to newly created Request object.
  627. * src/CreateRequestCommand.cc
  628. * src/FileEntry.cc
  629. * src/FileEntry.h
  630. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Removed ctor of AbstractCommand which doesn't take FileEntry.
  632. * src/AbstractCommand.cc
  633. * src/AbstractCommand.h
  634. * src/CreateRequestCommand.cc
  635. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Get proxy download working
  637. * src/AbstractProxyRequestCommand.cc
  638. * src/AbstractProxyRequestCommand.h
  639. * src/AbstractProxyResponseCommand.cc
  640. * src/AbstractProxyResponseCommand.h
  641. * src/FtpInitiateConnectionCommand.cc
  642. * src/FtpTunnelRequestCommand.cc
  643. * src/FtpTunnelRequestCommand.h
  644. * src/FtpTunnelResponseCommand.cc
  645. * src/FtpTunnelResponseCommand.h
  646. * src/HttpInitiateConnectionCommand.cc
  647. * src/HttpProxyRequestCommand.cc
  648. * src/HttpProxyRequestCommand.h
  649. * src/HttpProxyResponseCommand.cc
  650. * src/HttpProxyResponseCommand.h
  651. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Use SegmentMan::getSegment(cuid) for single file download.
  653. * src/AbstractCommand.cc
  654. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Fixed bufSize calculation
  656. * src/DownloadCommand.cc
  657. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Don't append "/" if base URI ends with "/".
  659. * src/bittorrent_helper.cc
  660. * test/url-list-multiFile.torrent
  661. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  662. HTTP pipelining is now working. Fixed Segmention fault in
  663. BitfieldMan's copy ctor.
  664. * src/AbstractCommand.cc
  665. * src/BitfieldMan.cc
  666. * src/BitfieldMan.h
  667. * src/DownloadCommand.cc
  668. * src/HttpDownloadCommand.cc
  669. * src/HttpRequest.cc
  670. * src/SegmentMan.cc
  671. * src/SegmentMan.h
  672. * test/BitfieldManTest.cc
  673. * test/SegmentManTest.cc
  674. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Removed ServerHost. Same functionality is implemented using
  676. FileEntry's in-flight Request objects.
  677. * src/AbstractCommand.cc
  678. * src/BtDependency.cc
  679. * src/CreateRequestCommand.cc
  680. * src/FileEntry.cc
  681. * src/FileEntry.h
  682. * src/FtpNegotiationCommand.cc
  683. * src/HttpResponseCommand.cc
  684. * src/Makefile.am
  685. * src/Metalink2RequestGroup.cc
  686. * src/RequestGroup.cc
  687. * src/RequestGroup.h
  688. * src/ServerHost.cc: Removed
  689. * src/ServerHost.h: Removed
  690. * test/BtDependencyTest.cc
  691. * test/FileEntryTest.cc
  692. * test/RequestGroupTest.cc
  693. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Rewritten PeerStat handling. In the previous implementation,
  695. faster command tries to find slower command. In this new
  696. implementation, slower command tries to find faster command.
  697. PeerStat is now created in each HTTP/FTP request to get download
  698. rate correctly. If the download range is small, the download rate
  699. tends to small and this will occur at the later stage of download.
  700. * src/AbstractCommand.cc
  701. * src/DownloadCommand.cc
  702. * src/FileEntry.cc
  703. * src/FileEntry.h
  704. * src/Request.cc
  705. * src/Request.h
  706. * src/RequestGroup.h
  707. * src/RequestGroupMan.cc
  708. * src/SegmentMan.cc
  709. * src/SegmentMan.h
  710. * test/SegmentManTest.cc
  711. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Removed _uris from RequestGroup. All functions that refer to _uris
  713. were moved to FileEntry. Exit status code are now defined in
  714. DownloadResultCode.h.
  715. * src/AbstractCommand.cc
  716. * src/AdaptiveURISelector.cc
  717. * src/AdaptiveURISelector.h
  718. * src/AutoSaveCommand.cc
  719. * src/BtPostDownloadHandler.cc
  720. * src/CheckIntegrityDispatcherCommand.cc
  721. * src/CookieStorage.cc
  722. * src/DHTAutoSaveCommand.cc
  723. * src/DHTBucketRefreshCommand.cc
  724. * src/DHTEntryPointNameResolveCommand.cc
  725. * src/DHTInteractionCommand.cc
  726. * src/DHTPeerAnnounceCommand.cc
  727. * src/DHTTokenUpdateCommand.cc
  728. * src/DlAbortEx.h
  729. * src/DlRetryEx.h
  730. * src/DownloadCommand.cc
  731. * src/DownloadContext.h
  732. * src/DownloadFailureException.h
  733. * src/DownloadResult.h
  734. * src/DownloadResultCode.h
  735. * src/FeedbackURISelector.cc
  736. * src/FeedbackURISelector.h
  737. * src/FileEntry.cc
  738. * src/FileEntry.h
  739. * src/FtpNegotiationCommand.cc
  740. * src/HttpListenCommand.cc
  741. * src/HttpResponseCommand.cc
  742. * src/HttpServerResponseCommand.cc
  743. * src/HttpSkipResponseCommand.cc
  744. * src/InOrderURISelector.cc
  745. * src/InOrderURISelector.h
  746. * src/Makefile.am
  747. * src/Makefile.in
  748. * src/Metalink2RequestGroup.cc
  749. * src/MultiUrlRequestInfo.cc
  750. * src/MultiUrlRequestInfo.h
  751. * src/OptionHandlerFactory.cc
  752. * src/PeerListenCommand.cc
  753. * src/RecoverableException.h
  754. * src/RequestGroup.cc
  755. * src/RequestGroup.h
  756. * src/RequestGroupMan.cc
  757. * src/RequestGroupMan.h
  758. * src/TimedHaltCommand.cc
  759. * src/TrackerWatcherCommand.cc
  760. * src/URIResult.cc
  761. * src/URIResult.h
  762. * src/URISelector.h
  763. * src/XmlRpcMethodImpl.cc
  764. * src/bittorrent_helper.cc
  765. * src/bittorrent_helper.h
  766. * src/download_helper.cc
  767. * src/main.cc
  768. * src/option_processing.cc
  769. * test/BtDependencyTest.cc
  770. * test/BtPostDownloadHandlerTest.cc
  771. * test/CookieStorageTest.cc
  772. * test/DefaultBtMessageDispatcherTest.cc
  773. * test/DownloadHandlerFactoryTest.cc
  774. * test/DownloadHelperTest.cc
  775. * test/FeedbackURISelectorTest.cc
  776. * test/FileEntryTest.cc
  777. * test/InOrderURISelectorTest.cc
  778. * test/Metalink2RequestGroupTest.cc
  779. * test/MetalinkPostDownloadHandlerTest.cc
  780. * test/RequestGroupManTest.cc
  781. * test/RequestGroupTest.cc
  782. * test/XmlRpcMethodTest.cc
  783. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Removed MockBtContext.h
  785. * test/Makefile.am
  786. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Removed _currentRequest from StreamCheckIntegrityEntry and
  788. StreamFileAllocationEntry.
  789. * src/AbstractCommand.cc
  790. * src/HttpResponseCommand.cc
  791. * src/RequestGroup.cc
  792. * src/StreamCheckIntegrityEntry.cc
  793. * src/StreamCheckIntegrityEntry.h
  794. * src/StreamFileAllocationEntry.cc
  795. * src/StreamFileAllocationEntry.h
  796. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Rewritten DownloadContext and removed SingleFileDownloadContext
  798. and BtContext and its derived classes. BitTorrent specific
  799. attributes are now set by DownloadContext::setAttribute() with key
  800. bittorrent::BITTORRENT.
  801. * src/AbstractBtMessage.cc
  802. * src/AbstractBtMessage.h
  803. * src/AbstractCommand.cc
  804. * src/AbstractCommand.h
  805. * src/AbstractProxyRequestCommand.cc
  806. * src/AbstractProxyResponseCommand.cc
  807. * src/ActivePeerConnectionCommand.cc
  808. * src/ActivePeerConnectionCommand.h
  809. * src/AnnounceList.cc
  810. * src/BtCheckIntegrityEntry.cc
  811. * src/BtConstants.h
  812. * src/BtContext.h: Removed
  813. * src/BtDependency.cc
  814. * src/BtExtendedMessage.cc
  815. * src/BtPieceMessage.cc
  816. * src/BtPieceMessage.h
  817. * src/BtPostDownloadHandler.cc
  818. * src/BtRegistry.cc
  819. * src/BtRegistry.h
  820. * src/BtSetup.cc
  821. * src/CheckIntegrityCommand.cc
  822. * src/CheckIntegrityEntry.cc
  823. * src/ChecksumCheckIntegrityEntry.cc
  824. * src/ConsoleStatCalc.cc
  825. * src/ContentTypeRequestGroupCriteria.cc
  826. * src/DHTGetPeersCommand.cc
  827. * src/DHTGetPeersCommand.h
  828. * src/DHTPeerLookupTask.cc
  829. * src/DHTPeerLookupTask.h
  830. * src/DHTTaskFactory.h
  831. * src/DHTTaskFactoryImpl.cc
  832. * src/DHTTaskFactoryImpl.h
  833. * src/DefaultBtAnnounce.cc
  834. * src/DefaultBtAnnounce.h
  835. * src/DefaultBtContext.cc: Removed
  836. * src/DefaultBtContext.h: Removed
  837. * src/DefaultBtInteractive.cc
  838. * src/DefaultBtInteractive.h
  839. * src/DefaultBtMessageDispatcher.cc
  840. * src/DefaultBtMessageDispatcher.h
  841. * src/DefaultBtMessageFactory.cc
  842. * src/DefaultBtMessageFactory.h
  843. * src/DefaultBtMessageReceiver.cc
  844. * src/DefaultBtMessageReceiver.h
  845. * src/DefaultBtProgressInfoFile.cc
  846. * src/DefaultBtRequestFactory.cc
  847. * src/DefaultBtRequestFactory.h
  848. * src/DefaultExtensionMessageFactory.cc
  849. * src/DefaultExtensionMessageFactory.h
  850. * src/DefaultPeerStorage.cc
  851. * src/DefaultPeerStorage.h
  852. * src/DefaultPieceStorage.cc
  853. * src/DefaultSegmentManFactory.cc
  854. * src/DiskAdaptor.cc
  855. * src/DiskAdaptor.h
  856. * src/DownloadContext.cc
  857. * src/DownloadContext.h
  858. * src/DownloadEngine.cc
  859. * src/DownloadEngineFactory.cc
  860. * src/DownloadHandler.cc
  861. * src/DownloadResult.h
  862. * src/FileAllocationCommand.cc
  863. * src/FileAllocationDispatcherCommand.cc
  864. * src/FileAllocationEntry.cc
  865. * src/FileEntry.h
  866. * src/FillRequestGroupCommand.cc
  867. * src/FtpDownloadCommand.cc
  868. * src/FtpFinishDownloadCommand.cc
  869. * src/FtpInitiateConnectionCommand.cc
  870. * src/FtpNegotiationCommand.cc
  871. * src/FtpTunnelRequestCommand.cc
  872. * src/FtpTunnelResponseCommand.cc
  873. * src/HandshakeExtensionMessage.cc
  874. * src/HandshakeExtensionMessage.h
  875. * src/HaveEraseCommand.cc
  876. * src/HttpDownloadCommand.cc
  877. * src/HttpInitiateConnectionCommand.cc
  878. * src/HttpProxyRequestCommand.cc
  879. * src/HttpProxyResponseCommand.cc
  880. * src/HttpRequest.cc
  881. * src/HttpRequest.h
  882. * src/HttpRequestCommand.cc
  883. * src/HttpResponseCommand.cc
  884. * src/HttpServerBodyCommand.cc
  885. * src/HttpServerCommand.cc
  886. * src/HttpSkipResponseCommand.cc
  887. * src/InitiateConnectionCommandFactory.cc
  888. * src/InitiatorMSEHandshakeCommand.cc
  889. * src/InitiatorMSEHandshakeCommand.h
  890. * src/IteratableChecksumValidator.cc
  891. * src/IteratableChecksumValidator.h
  892. * src/IteratableChunkChecksumValidator.cc
  893. * src/MSEHandshake.cc
  894. * src/MSEHandshake.h
  895. * src/Makefile.am
  896. * src/Makefile.in
  897. * src/Metalink2RequestGroup.cc
  898. * src/MetalinkPostDownloadHandler.cc
  899. * src/MultiDiskAdaptor.cc
  900. * src/MultiDiskAdaptor.h
  901. * src/MultiFileAllocationIterator.cc
  902. * src/MultiUrlRequestInfo.cc
  903. * src/PeerChokeCommand.cc
  904. * src/PeerChokeCommand.h
  905. * src/PeerInitiateConnectionCommand.cc
  906. * src/PeerInitiateConnectionCommand.h
  907. * src/PeerInteractionCommand.cc
  908. * src/PeerInteractionCommand.h
  909. * src/PeerReceiveHandshakeCommand.cc
  910. * src/PieceHashCheckIntegrityEntry.cc
  911. * src/RealtimeCommand.cc
  912. * src/ReceiverMSEHandshakeCommand.cc
  913. * src/RequestGroup.cc
  914. * src/RequestGroup.h
  915. * src/RequestGroupEntry.cc
  916. * src/RequestGroupMan.cc
  917. * src/SeedCheckCommand.cc
  918. * src/SeedCheckCommand.h
  919. * src/SegmentMan.cc
  920. * src/ShareRatioSeedCriteria.h
  921. * src/SingleFileDownloadContext.cc: Removed
  922. * src/SingleFileDownloadContext.h: Removed
  923. * src/SleepCommand.cc
  924. * src/StreamCheckIntegrityEntry.cc
  925. * src/TrackerWatcherCommand.cc
  926. * src/TrackerWatcherCommand.h
  927. * src/UnknownLengthPieceStorage.cc
  928. * src/Util.cc
  929. * src/Util.h
  930. * src/XmlRpcMethodImpl.cc
  931. * src/bittorrent_helper.cc
  932. * src/bittorrent_helper.h
  933. * src/download_helper.cc
  934. * src/main.cc
  935. * src/option_processing.cc
  936. * test/BitfieldManTest.cc
  937. * test/BittorrentHelperTest.cc
  938. * test/BtCancelMessageTest.cc
  939. * test/BtChokeMessageTest.cc
  940. * test/BtDependencyTest.cc
  941. * test/BtPieceMessageTest.cc
  942. * test/BtPostDownloadHandlerTest.cc
  943. * test/BtRegistryTest.cc
  944. * test/BtRejectMessageTest.cc
  945. * test/BtRequestMessageTest.cc
  946. * test/DHTPeerAnnounceStorageTest.cc
  947. * test/DefaultBtAnnounceTest.cc
  948. * test/DefaultBtContextTest.cc: Removed
  949. * test/DefaultBtMessageDispatcherTest.cc
  950. * test/DefaultBtMessageFactoryTest.cc
  951. * test/DefaultBtProgressInfoFileTest.cc
  952. * test/DefaultBtRequestFactoryTest.cc
  953. * test/DefaultExtensionMessageFactoryTest.cc
  954. * test/DefaultPeerStorageTest.cc
  955. * test/DefaultPieceStorageTest.cc
  956. * test/DirectDiskAdaptorTest.cc
  957. * test/DownloadContextTest.cc
  958. * test/DownloadHandlerFactoryTest.cc
  959. * test/DownloadHelperTest.cc
  960. * test/HandshakeExtensionMessageTest.cc
  961. * test/HttpRequestTest.cc
  962. * test/HttpResponseTest.cc
  963. * test/IteratableChecksumValidatorTest.cc
  964. * test/IteratableChunkChecksumValidatorTest.cc
  965. * test/MSEHandshakeTest.cc
  966. * test/Makefile.am
  967. * test/Makefile.in
  968. * test/Metalink2RequestGroupTest.cc
  969. * test/MetalinkPostDownloadHandlerTest.cc
  970. * test/MockBtContext.h: Removed
  971. * test/MockDHTTaskFactory.h
  972. * test/MockDownloadContext.h: Removed
  973. * test/MockPieceStorage.h
  974. * test/MultiDiskAdaptorTest.cc
  975. * test/MultiFileAllocationIteratorTest.cc
  976. * test/RequestGroupManTest.cc
  977. * test/RequestGroupTest.cc
  978. * test/SegmentManTest.cc
  979. * test/ShareRatioSeedCriteriaTest.cc
  980. * test/SingleFileDownloadContextTest.cc: Removed
  981. * test/UtilTest.cc
  982. * test/XmlRpcMethodTest.cc
  983. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Added experimental support of WEB-Seeding for multi-file torrent.
  985. Due to fundamental changes in file handling in HTTP/FTP code, many
  986. functions are not working: PeerStat, ServerHost, proxy..etc
  987. * src/AbstractCommand.cc
  988. * src/AbstractCommand.h
  989. * src/BitfieldMan.cc
  990. * src/BitfieldMan.h
  991. * src/CreateRequestCommand.cc
  992. * src/CreateRequestCommand.h
  993. * src/DefaultPieceStorage.cc
  994. * src/DefaultPieceStorage.h
  995. * src/DownloadCommand.cc
  996. * src/DownloadCommand.h
  997. * src/DownloadContext.cc
  998. * src/DownloadContext.h
  999. * src/FileEntry.cc
  1000. * src/FileEntry.h
  1001. * src/FtpDownloadCommand.cc
  1002. * src/FtpDownloadCommand.h
  1003. * src/FtpFinishDownloadCommand.cc
  1004. * src/FtpFinishDownloadCommand.h
  1005. * src/FtpInitiateConnectionCommand.cc
  1006. * src/FtpInitiateConnectionCommand.h
  1007. * src/FtpNegotiationCommand.cc
  1008. * src/FtpNegotiationCommand.h
  1009. * src/FtpTunnelResponseCommand.cc
  1010. * src/HttpDownloadCommand.cc
  1011. * src/HttpDownloadCommand.h
  1012. * src/HttpInitiateConnectionCommand.cc
  1013. * src/HttpInitiateConnectionCommand.h
  1014. * src/HttpProxyResponseCommand.cc
  1015. * src/HttpRequest.cc
  1016. * src/HttpRequest.h
  1017. * src/HttpRequestCommand.cc
  1018. * src/HttpRequestCommand.h
  1019. * src/HttpResponseCommand.cc
  1020. * src/HttpResponseCommand.h
  1021. * src/HttpSkipResponseCommand.cc
  1022. * src/HttpSkipResponseCommand.h
  1023. * src/InitiateConnectionCommand.cc
  1024. * src/InitiateConnectionCommand.h
  1025. * src/InitiateConnectionCommandFactory.cc
  1026. * src/InitiateConnectionCommandFactory.h
  1027. * src/Makefile.am
  1028. * src/PieceStorage.h
  1029. * src/RequestGroup.cc
  1030. * src/RequestGroup.h
  1031. * src/RequestGroupMan.cc
  1032. * src/SegmentMan.cc
  1033. * src/SegmentMan.h
  1034. * src/SingleFileDownloadContext.h
  1035. * src/StreamFileAllocationEntry.cc
  1036. * src/TrackerWatcherCommand.cc
  1037. * src/UnknownLengthPieceStorage.cc
  1038. * src/UnknownLengthPieceStorage.h
  1039. * src/array_fun.h
  1040. * src/bitfield.h
  1041. * src/download_helper.cc
  1042. * test/DownloadContextTest.cc
  1043. * test/Makefile.am
  1044. * test/MockDownloadContext.h
  1045. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Added tellWaiting XML-RPC method.
  1047. * src/SingleFileDownloadContext.cc
  1048. * src/XmlRpcMethodFactory.cc
  1049. * src/XmlRpcMethodImpl.cc
  1050. * src/XmlRpcMethodImpl.h
  1051. * test/XmlRpcMethodTest.cc
  1052. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Updated CookieStorageTest
  1054. * test/CookieStorageTest.cc
  1055. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1057. handle excepion inside these functions.
  1058. * src/LibgnutlsTLSContext.cc
  1059. * src/LibgnutlsTLSContext.h
  1060. * src/LibsslTLSContext.cc
  1061. * src/LibsslTLSContext.h
  1062. * src/MultiUrlRequestInfo.cc
  1063. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Added comment
  1065. * src/RequestGroup.cc
  1066. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1067. In CookieStorage::load() and saveNsFormat(), handle exception
  1068. inside the functions. When saving Cookies, first write temporary
  1069. file and after successful writes, then renames it to final
  1070. destination.
  1071. * src/CookieStorage.cc
  1072. * src/CookieStorage.h
  1073. * src/MultiUrlRequestInfo.cc
  1074. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. The default value of --dir option is the absolute path to the
  1076. current directory. If getcwd() is failed, then it is ".", which is
  1077. the same value with old implementation. This change is necessary
  1078. because after daemon() call, the current working directory is
  1079. changed to /.
  1080. * src/File.cc
  1081. * src/File.h
  1082. * src/OptionHandlerFactory.cc
  1083. * src/option_processing.cc
  1084. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Call daemon() with arguments(0,0), which means daemon() changes
  1086. current working directory to / and redirects stdin, stdout and
  1087. stderr to /dev/null.
  1088. * src/option_processing.cc
  1089. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Small performance optimizations.
  1091. * src/RequestGroupMan.cc
  1092. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1094. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1095. * src/RequestGroupMan.cc
  1096. * src/RequestGroupMan.h
  1097. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1099. setNoWiat(true) if newly created command calls
  1100. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1101. * src/HttpListenCommand.cc
  1102. * src/HttpServerBodyCommand.cc
  1103. * src/HttpServerCommand.cc
  1104. * src/HttpServerResponseCommand.cc
  1105. * src/InitiateConnectionCommand.cc
  1106. * src/RequestGroup.cc
  1107. * src/StreamFileAllocationEntry.cc
  1108. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1109. Removed include vector
  1110. * src/BtRegistry.h
  1111. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Rewritten BtRegistry
  1113. * src/BtRegistry.cc
  1114. * src/BtRegistry.h
  1115. * src/BtSetup.cc
  1116. * src/ConsoleStatCalc.cc
  1117. * src/PeerInteractionCommand.cc
  1118. * src/PeerReceiveHandshakeCommand.cc
  1119. * src/ReceiverMSEHandshakeCommand.cc
  1120. * src/RequestGroup.cc
  1121. * src/XmlRpcMethodImpl.cc
  1122. * test/BtRegistryTest.cc
  1123. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1125. * src/DefaultBtProgressInfoFile.cc
  1126. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. Throw an exception if position is less than 0.
  1128. * src/XmlRpcMethodImpl.cc
  1129. * test/XmlRpcMethodTest.cc
  1130. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Use writeFilePath() in ConsoleStatCalc.cc
  1132. * src/ConsoleStatCalc.cc
  1133. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Receive the return value as const reference from
  1135. DownloadContext::getFileEntries().
  1136. * src/DefaultPieceStorage.cc
  1137. * src/RequestGroupMan.cc
  1138. * src/XmlRpcMethodImpl.cc
  1139. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. DownloadContext now has _fileEntries so that
  1141. DownloadContext::getFileEntries() can returns its const reference.
  1142. * src/DefaultBtContext.cc
  1143. * src/DefaultBtContext.h
  1144. * src/DownloadContext.cc
  1145. * src/DownloadContext.h
  1146. * src/SingleFileDownloadContext.cc
  1147. * src/SingleFileDownloadContext.h
  1148. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1149. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1150. writeFilePath() function template from RequestGroupMan.cc to
  1151. FileEntry.h
  1152. * src/FileEntry.h
  1153. * src/RequestGroupMan.cc
  1154. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1155. Documented 'position' parameter is starting from 0 in man page.
  1156. * doc/aria2c.1.txt
  1157. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Updated doc.
  1159. * src/MSEHandshake.cc
  1160. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Removed _acceptFeatures and its accessor functions from
  1162. RequestGroup since they are not used practically.
  1163. * src/HttpRequestCommand.cc
  1164. * src/RequestGroup.cc
  1165. * src/RequestGroup.h
  1166. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Removed member _maxTries from RequestGroup class to avoid
  1168. duplicate option value. Those classes who refer this variable
  1169. should use option value of PREF_MAX_TRIES directly.
  1170. * src/AbstractCommand.cc
  1171. * src/RequestGroup.cc
  1172. * src/RequestGroup.h
  1173. * src/TrackerWatcherCommand.cc
  1174. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. * Release 1.4.1
  1176. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Fixed compiler warnings on netbsd
  1178. * src/DHTConnectionImpl.cc
  1179. * src/PeerListenCommand.cc
  1180. * src/PeerSessionResource.cc
  1181. * src/SegmentMan.cc
  1182. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Updated Ukrainian translation. Thanks to all translators.
  1184. * po/uk.po
  1185. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Bump up version number to 1.4.1.
  1187. * configure.ac
  1188. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1189. Added unit tests for strjoin, strconcat and strappend.
  1190. * test/a2functionalTest.cc
  1191. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1192. Rewritten strconcat and strappend using operator+ instead of
  1193. append().
  1194. * src/a2functional.h
  1195. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1197. is enabled.
  1198. * src/Makefile.am
  1199. * test/Makefile.am
  1200. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Added countSeeder() function which counts seeder in the given
  1202. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1203. * src/ConsoleStatCalc.cc
  1204. * src/Peer.h
  1205. * src/XmlRpcMethodImpl.cc
  1206. * test/PeerTest.cc
  1207. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Documented missing seeder in getPeers xml-rpc method.
  1209. Documented uploadLength and numSeeders.
  1210. * doc/aria2c.1.txt
  1211. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Added uploadLength and numSeeders to the response of tellStatus
  1213. xml-rpc method. Assert that PeerStorage instance is not null
  1214. instead of checking if statement. It should be non-null in this
  1215. context.
  1216. * src/XmlRpcMethodImpl.cc
  1217. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1218. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1219. * src/XmlRpcResponse.cc
  1220. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Avoid intermediate object during string concatenation.
  1222. * src/HttpRequest.cc
  1223. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Added strjoin function template. Use it in pathJoin()
  1225. * src/Util.h
  1226. * src/a2functional.h
  1227. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. Avoid intermediate object during string concatenation. Replaced
  1229. post-increment unary operator with pre-increment one in for loop.
  1230. * src/AdaptiveURISelector.cc
  1231. * src/AnnounceList.cc
  1232. * src/AuthConfig.h
  1233. * src/BtBitfieldMessage.cc
  1234. * src/BtExtendedMessage.cc
  1235. * src/BtHandshakeMessage.cc
  1236. * src/BtPieceMessage.cc
  1237. * src/BtPortMessage.cc
  1238. * src/Cookie.cc
  1239. * src/DHTAnnouncePeerMessage.cc
  1240. * src/DHTAutoSaveCommand.cc
  1241. * src/DHTGetPeersReplyMessage.cc
  1242. * src/DHTNode.cc
  1243. * src/DHTQueryMessage.cc
  1244. * src/DHTResponseMessage.cc
  1245. * src/DHTUnknownMessage.cc
  1246. * src/DefaultBtAnnounce.cc
  1247. * src/DefaultBtContext.cc
  1248. * src/DefaultBtInteractive.cc
  1249. * src/DefaultBtProgressInfoFile.cc
  1250. * src/DefaultPeerStorage.cc
  1251. * src/DownloadEngine.cc
  1252. * src/FeatureConfig.cc
  1253. * src/File.cc
  1254. * src/FtpConnection.cc
  1255. * src/FtpNegotiationCommand.cc
  1256. * src/HandshakeExtensionMessage.cc
  1257. * src/HttpConnection.cc
  1258. * src/HttpRequest.cc
  1259. * src/HttpResponseCommand.cc
  1260. * src/HttpServer.cc
  1261. * src/IndexBtMessage.cc
  1262. * src/Metalink2RequestGroup.cc
  1263. * src/OptionHandlerImpl.h
  1264. * src/PStringBuildVisitor.cc
  1265. * src/Peer.cc
  1266. * src/PeerListenCommand.cc
  1267. * src/Piece.cc
  1268. * src/RangeBtMessage.cc
  1269. * src/Request.cc
  1270. * src/Request.h
  1271. * src/RequestGroup.cc
  1272. * src/RequestGroupMan.cc
  1273. * src/ServerStat.cc
  1274. * src/ServerStatMan.cc
  1275. * src/UTPexExtensionMessage.cc
  1276. * src/Util.cc
  1277. * src/a2functional.h
  1278. * src/download_helper.cc
  1279. * src/messageDigest.cc
  1280. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1281. Unchoke a peer randomly at first and second choke round in seed
  1282. state.
  1283. * src/BtSeederStateChoke.cc
  1284. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1285. Added (sock_t) to quiet compiler warnings in MinGW
  1286. * src/SocketCore.cc
  1287. * src/SocketCore.h
  1288. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1290. * src/EpollEventPoll.h
  1291. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1292. Added fork() emulation using CreateProcess() in MinGW
  1293. * src/RequestGroupMan.cc
  1294. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. * Release 1.4.0
  1296. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1297. Added utf8.torrent to EXTRA_DIST
  1298. * test/Makefile.am
  1299. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Fixed docs of aria2.addMetalink xml-rpc method.
  1301. * doc/aria2c.1.txt
  1302. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Added Slovak translation. Updated Ukrainian and Brazilian
  1304. Portuguese translation. Thanks to all translators.
  1305. * po/sk.po
  1306. * po/uk.po
  1307. * po/pt_BR.po
  1308. * po/LINGUAS
  1309. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. Added test case for XmlRpcProcessor to fail to parse malformed
  1311. document.
  1312. * test/XmlRpcRequestProcessorTest.cc
  1313. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1314. Removed *.gmo files in po because they are generated on 'make
  1315. dist'
  1316. * po/*.gmo
  1317. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Documented max-concurrent-downloads of changeGlobalOption method
  1319. in man page.
  1320. * doc/aria2c.1.txt
  1321. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Added max-concurrent-downloads option to changeGlobalOption
  1323. xml-rpc method. Rewritten loop conditional in
  1324. RequestGroupMan::fillRequestGroupFromReserver().
  1325. * src/RequestGroupMan.cc
  1326. * src/RequestGroupMan.h
  1327. * src/XmlRpcMethod.cc
  1328. * src/XmlRpcMethodImpl.cc
  1329. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1330. Documented position parameter in man page.
  1331. * doc/aria2c.1.txt
  1332. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Added 'position' parameter to addUri, addTorrent and addMetalink
  1334. xml-rpc method.
  1335. * src/RequestGroupMan.cc
  1336. * src/RequestGroupMan.h
  1337. * src/XmlRpcMethodImpl.cc
  1338. * test/XmlRpcMethodTest.cc
  1339. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Removed Peer.cc from compile source list when --disable-bittorrent
  1341. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1342. takes Peer.
  1343. * src/DefaultPieceStorage.cc
  1344. * src/DefaultPieceStorage.h
  1345. * src/Makefile.am
  1346. * src/PieceStorage.h
  1347. * src/UnknownLengthPieceStorage.cc
  1348. * src/UnknownLengthPieceStorage.h
  1349. * test/MockPieceStorage.h
  1350. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Implemented getter methods in header files to give them more
  1352. chance of optimization.
  1353. Return const reference for SharadHandle if possible.
  1354. * src/AbstractAuthResolver.cc
  1355. * src/AbstractAuthResolver.h
  1356. * src/AbstractBtMessage.cc
  1357. * src/AbstractBtMessage.h
  1358. * src/AbstractSingleDiskAdaptor.cc
  1359. * src/AbstractSingleDiskAdaptor.h
  1360. * src/AsyncNameResolver.cc
  1361. * src/AsyncNameResolver.h
  1362. * src/BNode.cc
  1363. * src/BNode.h
  1364. * src/BitfieldMan.cc
  1365. * src/BitfieldMan.h
  1366. * src/BtAbortOutstandingRequestEvent.h
  1367. * src/BtExtendedMessage.cc
  1368. * src/BtExtendedMessage.h
  1369. * src/BtSeederStateChoke.cc
  1370. * src/BtSeederStateChoke.h
  1371. * src/Cookie.cc
  1372. * src/Cookie.h
  1373. * src/DHTBucket.cc
  1374. * src/DHTBucket.h
  1375. * src/DHTConnectionImpl.cc
  1376. * src/DHTConnectionImpl.h
  1377. * src/DHTFindNodeReplyMessage.cc
  1378. * src/DHTFindNodeReplyMessage.h
  1379. * src/DHTGetPeersReplyMessage.cc
  1380. * src/DHTGetPeersReplyMessage.h
  1381. * src/DHTInteractionCommand.cc
  1382. * src/DHTMessage.cc
  1383. * src/DHTMessage.h
  1384. * src/DHTMessageDispatcherImpl.cc
  1385. * src/DHTMessageEntry.cc
  1386. * src/DHTMessageReceiver.cc
  1387. * src/DHTMessageReceiver.h
  1388. * src/DHTMessageTrackerEntry.cc
  1389. * src/DHTMessageTrackerEntry.h
  1390. * src/DHTPeerAnnounceEntry.cc
  1391. * src/DHTPeerAnnounceEntry.h
  1392. * src/DHTPeerLookupTask.cc
  1393. * src/DHTPeerLookupTask.h
  1394. * src/DHTRoutingTableDeserializer.cc
  1395. * src/DHTRoutingTableDeserializer.h
  1396. * src/DefaultBtAnnounce.cc
  1397. * src/DefaultBtAnnounce.h
  1398. * src/DefaultBtMessageDispatcher.cc
  1399. * src/DefaultBtMessageDispatcher.h
  1400. * src/DefaultBtRequestFactory.cc
  1401. * src/DefaultBtRequestFactory.h
  1402. * src/DiskAdaptor.cc
  1403. * src/DiskAdaptor.h
  1404. * src/DownloadContext.cc
  1405. * src/DownloadContext.h
  1406. * src/DownloadEngine.cc
  1407. * src/DownloadEngine.h
  1408. * src/EpollEventPoll.cc
  1409. * src/EpollEventPoll.h
  1410. * src/FtpConnection.cc
  1411. * src/FtpConnection.h
  1412. * src/HttpConnection.cc
  1413. * src/HttpConnection.h
  1414. * src/HttpHeader.cc
  1415. * src/HttpHeader.h
  1416. * src/HttpRequest.cc
  1417. * src/HttpRequest.h
  1418. * src/HttpResponse.cc
  1419. * src/HttpResponse.h
  1420. * src/LibsslTLSContext.cc
  1421. * src/LibsslTLSContext.h
  1422. * src/MSEHandshake.cc
  1423. * src/MSEHandshake.h
  1424. * src/MetalinkEntry.cc
  1425. * src/MetalinkEntry.h
  1426. * src/MetalinkParserController.cc
  1427. * src/MetalinkParserController.h
  1428. * src/MetalinkParserStateMachine.cc
  1429. * src/MetalinkParserStateMachine.h
  1430. * src/MultiDiskAdaptor.cc
  1431. * src/MultiDiskAdaptor.h
  1432. * src/NetrcAuthResolver.cc
  1433. * src/NetrcAuthResolver.h
  1434. * src/Peer.cc
  1435. * src/Peer.h
  1436. * src/PeerSessionResource.cc
  1437. * src/PeerSessionResource.h
  1438. * src/Piece.cc
  1439. * src/Piece.h
  1440. * src/PieceStatMan.cc
  1441. * src/PieceStatMan.h
  1442. * src/Request.cc
  1443. * src/Request.h
  1444. * src/RequestGroup.cc
  1445. * src/RequestGroup.h
  1446. * src/RequestGroupMan.cc
  1447. * src/RequestGroupMan.h
  1448. * src/RequestSlot.cc
  1449. * src/RequestSlot.h
  1450. * src/SegmentMan.cc
  1451. * src/SegmentMan.h
  1452. * src/SelectEventPoll.cc
  1453. * src/SelectEventPoll.h
  1454. * src/ServerStat.cc
  1455. * src/ServerStat.h
  1456. * src/Signature.cc
  1457. * src/Signature.h
  1458. * src/URIResult.cc
  1459. * src/URIResult.h
  1460. * src/UTPexExtensionMessage.cc
  1461. * src/UTPexExtensionMessage.h
  1462. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Fixed compile error without BitTorrent and Metalink support.
  1464. * src/XmlRpcMethod.cc
  1465. * src/XmlRpcMethodFactory.cc
  1466. * src/XmlRpcMethodImpl.cc
  1467. * src/XmlRpcMethodImpl.h
  1468. * test/XmlRpcMethodTest.cc
  1469. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Rewritten the help message for --allow-overwrite option.
  1471. * doc/aria2c.1.txt
  1472. * src/usage_text.h
  1473. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Fixed typo
  1475. * doc/aria2c.1.txt
  1476. * src/usage_text.h
  1477. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Updated README for 1.4.0 release. Use new table syntax of
  1479. asciidoc.
  1480. * README
  1481. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Documented --xml-rpc-max-request-size option in man page.
  1483. * doc/aria2c.1.txt
  1484. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1485. Moved C_* constants from BtContext to DefaultBtContext.
  1486. * src/BtContext.cc: Removed.
  1487. * src/BtContext.h
  1488. * src/DefaultBtContext.cc
  1489. * src/DefaultBtContext.h
  1490. * src/Makefile.am
  1491. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1493. path key respectively when persing .torrent file.
  1494. * src/BtContext.cc
  1495. * src/BtContext.h
  1496. * src/DefaultBtContext.cc
  1497. * test/DefaultBtContextTest.cc
  1498. * test/utf8.torrent
  1499. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Added --xml-rpc-max-request-size option to limit the size of
  1501. XML-RPC request.
  1502. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Documented XML-RPC API in man page.
  1504. * doc/aria2c.1.txt
  1505. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1507. will break strict-aliasing rules
  1508. * src/PeerConnection.cc
  1509. * test/DHTRoutingTableSerializerTest.cc
  1510. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1512. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1513. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1514. PKG_CHECK_MODULES macro uses latter name.
  1515. * m4/sqlite3.m4
  1516. * src/Makefile.am
  1517. * test/Makefile.am
  1518. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1519. Fixed typo
  1520. * configure.ac
  1521. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1523. presence of libgnutls using pkg-config first. If it fails, fall
  1524. back to old macro libgnutls.m4.
  1525. * configure.ac
  1526. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Use s itself instead of !s.bad()
  1528. * src/CookieStorage.cc
  1529. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Documented --on-download-* option and --save-cookies option in man
  1531. page.
  1532. * doc/aria2c.1.txt
  1533. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Set possible values for --load-cookie option to "/path/to/file".
  1535. * src/OptionHandlerFactory.cc
  1536. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Added --save-cookies option.
  1538. * src/Cookie.cc
  1539. * src/Cookie.h
  1540. * src/CookieStorage.cc
  1541. * src/CookieStorage.h
  1542. * src/MultiUrlRequestInfo.cc
  1543. * src/OptionHandlerFactory.cc
  1544. * src/prefs.cc
  1545. * src/prefs.h
  1546. * src/usage_text.h
  1547. * test/CookieStorageTest.cc
  1548. * test/CookieTest.cc
  1549. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Removed tellAll XML-RPC command because its reponse tends to be
  1551. big if stopped/waiting downloads pile up.
  1552. * src/XmlRpcMethodFactory.cc
  1553. * src/XmlRpcMethodImpl.cc
  1554. * src/XmlRpcMethodImpl.h
  1555. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Added the ability to execute command when download starts and
  1557. stops. You can also specify command for particular cases such as
  1558. complete/error download. Added --on-download-start,
  1559. --on-download-stop, --on-download-complete and --on-download-error
  1560. option.
  1561. * src/OptionHandlerFactory.cc
  1562. * src/RequestGroupMan.cc
  1563. * src/prefs.cc
  1564. * src/prefs.h
  1565. * src/usage_text.h
  1566. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1567. Fixed test error
  1568. * test/BencodeTest.cc
  1569. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Added unit tests.
  1571. * test/XmlRpcMethodTest.cc
  1572. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1573. Made exception message more verbose.
  1574. * src/bencode.cc
  1575. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1577. space in console readout. Also they are now shown in MiB/s if
  1578. speed > 1024KiB/s.
  1579. * src/ConsoleStatCalc.cc
  1580. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1581. Added SEED to console output, which represents the number of
  1582. seeders currently the client is connecting to.
  1583. * src/ConsoleStatCalc.cc
  1584. * src/ConsoleStatCalc.h
  1585. * src/DownloadEngine.cc
  1586. * src/NullStatCalc.h
  1587. * src/StatCalc.h
  1588. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1589. Added source filename(__FILE__) and line number(__LINE__) to
  1590. exception message.
  1591. * src/AbstractCommand.cc
  1592. * src/AbstractDiskWriter.cc
  1593. * src/AbstractProxyResponseCommand.cc
  1594. * src/BDE.h
  1595. * src/BtAllowedFastMessage.cc
  1596. * src/BtHandshakeMessageValidator.h
  1597. * src/BtHaveAllMessage.cc
  1598. * src/BtHaveNoneMessage.cc
  1599. * src/BtPieceMessage.cc
  1600. * src/BtRejectMessage.cc
  1601. * src/ChunkedDecoder.cc
  1602. * src/CookieStorage.cc
  1603. * src/DHTAnnouncePeerMessage.cc
  1604. * src/DHTEntryPointNameResolveCommand.cc
  1605. * src/DHTMessageFactoryImpl.cc
  1606. * src/DHTMessageTracker.cc
  1607. * src/DHTRoutingTableDeserializer.cc
  1608. * src/DHTRoutingTableSerializer.cc
  1609. * src/DHTSetup.cc
  1610. * src/DHTTokenTracker.cc
  1611. * src/DefaultBtAnnounce.cc
  1612. * src/DefaultBtContext.cc
  1613. * src/DefaultBtInteractive.cc
  1614. * src/DefaultBtMessageFactory.cc
  1615. * src/DefaultBtProgressInfoFile.cc
  1616. * src/DefaultExtensionMessageFactory.cc
  1617. * src/DlAbortEx.h
  1618. * src/DlRetryEx.h
  1619. * src/DownloadCommand.cc
  1620. * src/DownloadEngineFactory.cc
  1621. * src/DownloadFailureException.h
  1622. * src/Exception.cc
  1623. * src/Exception.h
  1624. * src/ExpatMetalinkProcessor.cc
  1625. * src/ExpatXmlRpcRequestProcessor.cc
  1626. * src/FallocFileAllocationIterator.cc
  1627. * src/FatalException.h
  1628. * src/FtpConnection.cc
  1629. * src/FtpFinishDownloadCommand.cc
  1630. * src/FtpInitiateConnectionCommand.cc
  1631. * src/FtpNegotiationCommand.cc
  1632. * src/GZipDecoder.cc
  1633. * src/HandshakeExtensionMessage.cc
  1634. * src/HttpConnection.cc
  1635. * src/HttpHeaderProcessor.cc
  1636. * src/HttpInitiateConnectionCommand.cc
  1637. * src/HttpResponse.cc
  1638. * src/HttpResponseCommand.cc
  1639. * src/HttpServer.cc
  1640. * src/HttpSkipResponseCommand.cc
  1641. * src/InitiateConnectionCommandFactory.cc
  1642. * src/IteratableChunkChecksumValidator.cc
  1643. * src/LibgcryptARC4Context.h
  1644. * src/LibgcryptARC4Decryptor.h
  1645. * src/LibgcryptARC4Encryptor.h
  1646. * src/LibgcryptDHKeyExchange.h
  1647. * src/LibgnutlsTLSContext.cc
  1648. * src/LibsslARC4Context.h
  1649. * src/LibsslARC4Decryptor.h
  1650. * src/LibsslARC4Encryptor.h
  1651. * src/LibsslDHKeyExchange.h
  1652. * src/LibsslTLSContext.cc
  1653. * src/MSEHandshake.cc
  1654. * src/MessageDigestHelper.cc
  1655. * src/MetalinkHelper.cc
  1656. * src/MultiDiskAdaptor.cc
  1657. * src/NameMatchOptionHandler.h
  1658. * src/NameResolver.cc
  1659. * src/Netrc.cc
  1660. * src/NsCookieParser.cc
  1661. * src/OptionHandlerException.cc
  1662. * src/OptionHandlerException.h
  1663. * src/OptionHandlerImpl.h
  1664. * src/OptionParser.cc
  1665. * src/ParameterizedStringParser.cc
  1666. * src/PeerAbstractCommand.cc
  1667. * src/PeerConnection.cc
  1668. * src/PeerMessageUtil.cc
  1669. * src/PeerReceiveHandshakeCommand.cc
  1670. * src/Platform.cc
  1671. * src/ReceiverMSEHandshakeCommand.cc
  1672. * src/RecoverableException.h
  1673. * src/RequestGroup.cc
  1674. * src/SimpleLogger.cc
  1675. * src/SocketCore.cc
  1676. * src/Sqlite3MozCookieParser.cc
  1677. * src/UTPexExtensionMessage.cc
  1678. * src/Util.cc
  1679. * src/XML2SAXMetalinkProcessor.cc
  1680. * src/Xml2XmlRpcRequestProcessor.cc
  1681. * src/XmlRpcMethodImpl.cc
  1682. * src/bencode.cc
  1683. * src/download_helper.cc
  1684. * src/messageDigest.h
  1685. * test/ExceptionTest.cc
  1686. * test/TestUtil.cc
  1687. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Bump up version number to 1.4.0
  1689. * configure.ac
  1690. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1691. Added 2files.metalink to EXTRA_DIST
  1692. * test/Makefile.am
  1693. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Added missing 2files.metalink
  1695. * test/2files.metalink
  1696. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1697. Show "[MEMORY]" prefix before filename in download summary if it
  1698. is downloaded into memory.
  1699. * src/DownloadResult.h
  1700. * src/RequestGroup.cc
  1701. * src/RequestGroupMan.cc
  1702. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1704. * src/ExpatXmlRpcRequestProcessor.cc
  1705. * src/Xml2XmlRpcRequestProcessor.cc
  1706. * src/message.h
  1707. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Defined const BDEs to avoid duplicate instantiation.
  1709. Defined MSG_GID_NOT_PROVIDED.
  1710. * src/XmlRpcMethodImpl.cc
  1711. * src/message.h
  1712. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1713. Code cleanup
  1714. * src/Xml2XmlRpcRequestProcessor.cc
  1715. * src/Xml2XmlRpcRequestProcessor.h
  1716. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Defined ENABLE_XML_RPC
  1718. * configure.ac
  1719. * configure
  1720. * config.h.in
  1721. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Added ExpatXmlRpcRequestProcessor
  1723. * src/ExpatXmlRpcRequestProcessor.cc
  1724. * src/ExpatXmlRpcRequestProcessor.h
  1725. * src/Makefile.am
  1726. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Added tests for addTorrent and addMetalink command.
  1728. * test/TestUtil.cc
  1729. * test/TestUtil.h
  1730. * test/XmlRpcMethodTest.cc
  1731. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1732. Corrected the description of --file-allocation option.
  1733. * doc/aria2c.1.txt
  1734. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Added tellAll command.
  1736. * src/XmlRpcMethodFactory.cc
  1737. * src/XmlRpcMethodImpl.cc
  1738. * src/XmlRpcMethodImpl.h
  1739. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1740. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1741. * src/XmlRpcMethodImpl.cc
  1742. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Added changeGlobalOption command. Currently,
  1744. max-overall-download-limit and max-overall-upload-limit option are
  1745. available.
  1746. * src/RequestGroupMan.h
  1747. * src/XmlRpcMethod.cc
  1748. * src/XmlRpcMethod.h
  1749. * src/XmlRpcMethodFactory.cc
  1750. * src/XmlRpcMethodImpl.cc
  1751. * src/XmlRpcMethodImpl.h
  1752. * test/XmlRpcMethodTest.cc
  1753. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1754. Added changeOption command. Currently, max-download-limit,
  1755. max-upload-limit option are available in this command.
  1756. * src/RequestGroup.h
  1757. * src/XmlRpcMethod.cc
  1758. * src/XmlRpcMethod.h
  1759. * src/XmlRpcMethodFactory.cc
  1760. * src/XmlRpcMethodImpl.cc
  1761. * src/XmlRpcMethodImpl.h
  1762. * test/XmlRpcMethodTest.cc
  1763. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1764. Added purgeDownloadResult command.
  1765. * src/RequestGroupMan.cc
  1766. * src/RequestGroupMan.h
  1767. * src/XmlRpcMethodFactory.cc
  1768. * src/XmlRpcMethodImpl.cc
  1769. * src/XmlRpcMethodImpl.h
  1770. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1771. Refactored.
  1772. * src/XmlRpcMethod.cc
  1773. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1775. XmlRpcResponse.
  1776. * src/HttpServerBodyCommand.cc
  1777. * src/Makefile.am
  1778. * src/XmlRpcMethod.cc
  1779. * src/XmlRpcMethod.h
  1780. * src/XmlRpcMethodImpl.cc
  1781. * src/XmlRpcResponse.cc
  1782. * src/XmlRpcResponse.h
  1783. * test/XmlRpcMethodTest.cc
  1784. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. In XML-RPC option struct, header and index-out option can take
  1786. array as value.
  1787. * src/XmlRpcMethod.cc
  1788. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Removed unused option member from PeerConnection.
  1790. * src/InitiatorMSEHandshakeCommand.cc
  1791. * src/PeerConnection.cc
  1792. * src/PeerConnection.h
  1793. * src/PeerInteractionCommand.cc
  1794. * src/PeerReceiveHandshakeCommand.cc
  1795. * src/ReceiverMSEHandshakeCommand.cc
  1796. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Added "seeder" key to getPeers response.
  1798. * src/XmlRpcMethodImpl.cc
  1799. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Added addMetalink XML-RPC command.
  1801. * src/XmlRpcMethodFactory.cc
  1802. * src/XmlRpcMethodImpl.cc
  1803. * src/XmlRpcMethodImpl.h
  1804. * src/download_helper.cc
  1805. * src/download_helper.h
  1806. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Fixed the bug that POU peers are never choked in seeding.
  1808. * src/BtSeederStateChoke.cc
  1809. * src/BtSeederStateChoke.h
  1810. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1811. Added web-seeding URI handling in addTorrent command.
  1812. * src/XmlRpcMethodImpl.cc
  1813. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1814. Added "length" key to getFiles response.
  1815. * src/XmlRpcMethodImpl.cc
  1816. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1817. Moved --no-netrc option from ftp option section to http/ftp option
  1818. section.
  1819. * doc/aria2c.1.txt
  1820. * src/OptionHandlerFactory.cc
  1821. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Removed garbage "\" character before '
  1823. * doc/aria2c.1.txt
  1824. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Removed garbage "\" character before http.
  1826. * doc/aria2c.1.txt
  1827. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Documented additional options that can be specified in -i list.
  1829. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1830. and --xml-rpc-passwd. Removed --enable-http-server and
  1831. --http-server-listen-port.
  1832. * doc/aria2c.1.txt
  1833. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1834. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1835. * src/DefaultPeerStorage.cc
  1836. * src/DefaultPeerStorage.h
  1837. * src/PeerStorage.h
  1838. * src/XmlRpcMethodImpl.cc
  1839. * test/MockPeerStorage.h
  1840. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Put a call to Socket::isReadable() in try block.
  1842. * src/HttpServerBodyCommand.cc
  1843. * src/HttpServerCommand.cc
  1844. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1846. exception , so it is now in try block.
  1847. * src/HttpServerResponseCommand.cc
  1848. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1849. Added "amChoking" and "peerChoking" key in getPeers response.
  1850. * src/XmlRpcMethodImpl.cc
  1851. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1852. Added test case for zero-length filter.
  1853. * test/BitfieldManTest.cc
  1854. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1855. getFiles command now returns file data for finished/stopped
  1856. downloads.
  1857. * src/XmlRpcMethodImpl.cc
  1858. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1859. DownloadResult now has the list of FileEntry. The download
  1860. summary displays the path of first selected file and the number of
  1861. remaining files for multi-file torrent.
  1862. * src/DownloadResult.h
  1863. * src/RequestGroup.cc
  1864. * src/RequestGroupMan.cc
  1865. * test/RequestGroupTest.cc
  1866. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1867. Fixed segmentation fault error when no file is selected in
  1868. multi-file torrent.
  1869. * src/BitfieldMan.cc
  1870. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Escaped <,>,& character in XML-RPC response.
  1872. * src/XmlRpcMethod.cc
  1873. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Throw DlAbortEx instead of FatalException during parsing options
  1875. because we don't want for aria2 to quit when bad option is passed
  1876. via XML-RPC.
  1877. * src/OptionHandlerException.cc
  1878. * src/OptionHandlerException.h
  1879. * src/OptionHandlerImpl.h
  1880. * src/OptionParser.cc
  1881. * src/OptionParser.h
  1882. * src/PStringSegment.cc
  1883. * src/ParameterizedStringParser.cc
  1884. * src/download_helper.cc
  1885. * test/ParameterizedStringParserTest.cc
  1886. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Selecting files are now done in
  1888. DefaultBtContext::setFileFileter().
  1889. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1890. functions are removed because they are no longer used. Creating
  1891. filter in BitfieldMan is done in new funtion
  1892. PieceStorage::setupFileFilter()
  1893. * src/BtContext.cc
  1894. * src/BtContext.h
  1895. * src/DefaultBtContext.cc
  1896. * src/DefaultBtContext.h
  1897. * src/DefaultPieceStorage.cc
  1898. * src/DefaultPieceStorage.h
  1899. * src/DiskAdaptor.cc
  1900. * src/DiskAdaptor.h
  1901. * src/PieceStorage.h
  1902. * src/RequestGroup.cc
  1903. * src/UnknownLengthPieceStorage.h
  1904. * src/XmlRpcMethodImpl.cc
  1905. * test/DefaultBtContextTest.cc
  1906. * test/MockBtContext.h
  1907. * test/MockPieceStorage.h
  1908. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1909. Fixed compile error on Mac OS X
  1910. * src/HttpServer.cc
  1911. * src/XmlRpcMethod.h
  1912. * src/XmlRpcMethodImpl.cc
  1913. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Use std::binary_search instead of std::find
  1915. * src/DefaultPieceStorage.cc
  1916. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Removed unnecessary BDE() call; leave them to implicit conversion.
  1918. * src/XmlRpcMethodImpl.cc
  1919. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Return connections and gid in string
  1921. * src/XmlRpcMethodImpl.cc
  1922. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Renamed addURI as addUri
  1924. * src/XmlRpcMethodFactory.cc
  1925. * src/XmlRpcMethodImpl.cc
  1926. * src/XmlRpcMethodImpl.h
  1927. * test/XmlRpcMethodTest.cc
  1928. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1929. Renamed addTorrentFile as addTorrent
  1930. * src/XmlRpcMethodFactory.cc
  1931. * src/XmlRpcMethodImpl.cc
  1932. * src/XmlRpcMethodImpl.h
  1933. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. The information for files, URIs, peers are removed from the
  1935. reponse of TellaActive, TellStatus command because they tend to be
  1936. large. Instead they can be retrieved by the dedicated commands:
  1937. getFiles, getUris and getPeers respectively.
  1938. * src/XmlRpcMethodFactory.cc
  1939. * src/XmlRpcMethodImpl.cc
  1940. * src/XmlRpcMethodImpl.h
  1941. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1942. Removed --max-overall-upload-limit and
  1943. --max-overall-download-limit option from listRequestOptions.
  1944. * src/download_helper.cc
  1945. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1946. Log incoming host in HttpListenCommand.
  1947. * src/HttpListenCommand.cc
  1948. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1949. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1950. --xml-rpc-passwd option.
  1951. * src/HttpServer.cc
  1952. * src/HttpServer.h
  1953. * src/HttpServerCommand.cc
  1954. * src/OptionHandlerFactory.cc
  1955. * src/prefs.cc
  1956. * src/prefs.h
  1957. * src/usage_text.h
  1958. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1960. processing 0 length request.
  1961. * src/HttpServerBodyCommand.cc
  1962. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1963. Removed --enable-http-server and --http-server-listen-port
  1964. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1965. instead. The original feature for --enable-http-server that
  1966. reports download progress in HTML was officially removed. Persist
  1967. XML-RPC connection if client supports keep-alive.
  1968. * src/DownloadEngineFactory.cc
  1969. * src/HttpServerCommand.cc
  1970. * src/HttpServerResponseCommand.cc
  1971. * src/Makefile.am
  1972. * src/Makefile.in
  1973. * src/OptionHandlerFactory.cc
  1974. * src/RequestGroupMan.cc
  1975. * src/main.cc
  1976. * src/option_processing.cc
  1977. * src/prefs.cc
  1978. * src/prefs.h
  1979. * src/usage_text.h
  1980. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. Added "uris" key to the response of tellStatus command. Added
  1982. "connections" key to the response of tellStatus and tellActive
  1983. command.
  1984. * src/XmlRpcMethodImpl.cc
  1985. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1987. Added TellStatusXmlRpcMethod. Remove command can now remove
  1988. waiting RequestGroup.
  1989. * src/RequestGroupMan.cc
  1990. * src/RequestGroupMan.h
  1991. * src/XmlRpcMethodFactory.cc
  1992. * src/XmlRpcMethodImpl.cc
  1993. * src/XmlRpcMethodImpl.h
  1994. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Initialized _peerId
  1996. * src/Peer.cc
  1997. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Return fault structure for error. FailXmlRpcMethod is renamed as
  1999. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2000. in non-torrent download. Return single param value.
  2001. * src/XmlRpcMethod.cc
  2002. * src/XmlRpcMethodFactory.cc
  2003. * src/XmlRpcMethodImpl.cc
  2004. * src/XmlRpcMethodImpl.h
  2005. * test/XmlRpcMethodTest.cc
  2006. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2008. command.
  2009. * src/RequestGroup.cc
  2010. * src/RequestGroup.h
  2011. * src/RequestGroupMan.cc
  2012. * src/XmlRpcMethodImpl.cc
  2013. * test/RequestGroupTest.cc
  2014. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2015. Added more options that can be specified in -i list and xml-rpc
  2016. add* command.
  2017. * src/download_helper.h
  2018. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. The available options in -i list should be listed in
  2020. listRequestOptions().
  2021. * src/download_helper.cc
  2022. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2024. command.
  2025. * src/XmlRpcMethodImpl.cc
  2026. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2027. Now RequestGroup has its own copy of Option object. This will help
  2028. to give custom option for each RequestGroup.
  2029. addTorrentFile command now takes options.
  2030. * src/AbstractCommand.cc
  2031. * src/AbstractCommand.h
  2032. * src/AbstractProxyRequestCommand.cc
  2033. * src/ActivePeerConnectionCommand.cc
  2034. * src/ActivePeerConnectionCommand.h
  2035. * src/AdaptiveURISelector.cc
  2036. * src/BtCheckIntegrityEntry.cc
  2037. * src/BtDependency.cc
  2038. * src/BtDependency.h
  2039. * src/BtFileAllocationEntry.cc
  2040. * src/BtPostDownloadHandler.cc
  2041. * src/CheckIntegrityEntry.cc
  2042. * src/DownloadCommand.cc
  2043. * src/FtpDownloadCommand.cc
  2044. * src/FtpFinishDownloadCommand.cc
  2045. * src/FtpInitiateConnectionCommand.cc
  2046. * src/FtpNegotiationCommand.cc
  2047. * src/HttpInitiateConnectionCommand.cc
  2048. * src/HttpRequestCommand.cc
  2049. * src/HttpResponseCommand.cc
  2050. * src/HttpSkipResponseCommand.cc
  2051. * src/InitiateConnectionCommand.cc
  2052. * src/InitiateConnectionCommandFactory.cc
  2053. * src/InitiatorMSEHandshakeCommand.cc
  2054. * src/InitiatorMSEHandshakeCommand.h
  2055. * src/Metalink2RequestGroup.cc
  2056. * src/Metalink2RequestGroup.h
  2057. * src/MetalinkPostDownloadHandler.cc
  2058. * src/MultiUrlRequestInfo.cc
  2059. * src/MultiUrlRequestInfo.h
  2060. * src/PeerAbstractCommand.cc
  2061. * src/PeerInteractionCommand.cc
  2062. * src/PeerInteractionCommand.h
  2063. * src/PeerReceiveHandshakeCommand.cc
  2064. * src/PeerReceiveHandshakeCommand.h
  2065. * src/RequestGroup.cc
  2066. * src/RequestGroup.h
  2067. * src/TrackerWatcherCommand.cc
  2068. * src/TrackerWatcherCommand.h
  2069. * src/XmlRpcMethod.cc
  2070. * src/XmlRpcMethod.h
  2071. * src/XmlRpcMethodImpl.cc
  2072. * src/download_helper.cc
  2073. * src/download_helper.h
  2074. * src/main.cc
  2075. * test/BtDependencyTest.cc
  2076. * test/BtPostDownloadHandlerTest.cc
  2077. * test/DefaultBtMessageDispatcherTest.cc
  2078. * test/DownloadHandlerFactoryTest.cc
  2079. * test/DownloadHelperTest.cc
  2080. * test/Metalink2RequestGroupTest.cc
  2081. * test/MetalinkPostDownloadHandlerTest.cc
  2082. * test/RequestGroupManTest.cc
  2083. * test/RequestGroupTest.cc
  2084. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2085. Added tellActiveStatus xml-rpc command which reports download
  2086. status of active downloads.
  2087. * src/XmlRpcMethodFactory.cc
  2088. * src/XmlRpcMethodImpl.cc
  2089. * src/XmlRpcMethodImpl.h
  2090. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2091. Added addTorrentFile xml-rpc command which receives uploaded
  2092. torrent file and add download for it.
  2093. * src/RequestGroupMan.cc
  2094. * src/XmlRpcMethodFactory.cc
  2095. * src/XmlRpcMethodImpl.cc
  2096. * src/XmlRpcMethodImpl.h
  2097. * src/download_helper.cc
  2098. * src/download_helper.h
  2099. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. Added remove xml-rpc command which removes specified download.
  2101. There is a known issue: the removed unfinished downloads are
  2102. reported ERR when aria2 exits. They should be reported as INPR.
  2103. * src/RequestGroupMan.cc
  2104. * src/RequestGroupMan.h
  2105. * src/XmlRpcMethodFactory.cc
  2106. * src/XmlRpcMethodImpl.cc
  2107. * src/XmlRpcMethodImpl.h
  2108. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. If --enable-http-server is enabled, don't stop aria2 when all
  2110. download finished and don't quit when no files to download at
  2111. start up.
  2112. * src/RequestGroupMan.cc
  2113. * src/main.cc
  2114. * src/option_processing.cc
  2115. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2116. Added missing AM_CONDITIONAL
  2117. * configure.ac
  2118. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2119. Added xml-rpc functionality. Currently only addURI commad is
  2120. supported. To enable xml-rpc, run aria2 with
  2121. --enable-http-server. This option name is temporal and will be
  2122. changed. The feature that reports download progress in html format
  2123. is temporarily disabled.
  2124. * src/HttpServer.cc
  2125. * src/HttpServer.h
  2126. * src/HttpServerBodyCommand.cc
  2127. * src/HttpServerBodyCommand.h
  2128. * src/HttpServerCommand.cc
  2129. * src/HttpServerResponseCommand.cc
  2130. * src/Makefile.am
  2131. * src/OptionParser.cc
  2132. * src/OptionParser.h
  2133. * src/RequestGroupMan.cc
  2134. * src/RequestGroupMan.h
  2135. * src/XmlRpcMethod.cc
  2136. * src/XmlRpcMethod.h
  2137. * src/XmlRpcMethodFactory.cc
  2138. * src/XmlRpcMethodFactory.h
  2139. * src/XmlRpcMethodImpl.cc
  2140. * src/XmlRpcMethodImpl.h
  2141. * src/download_helper.cc
  2142. * src/download_helper.h
  2143. * test/Makefile.am
  2144. * test/XmlRpcMethodTest.cc
  2145. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Added xml-rpc request parser. The supported value types are:
  2147. i4/int, string, double, struct, array, base64. Currently only
  2148. libxml2 version is provided.
  2149. * src/Xml2XmlRpcRequestProcessor.cc
  2150. * src/Xml2XmlRpcRequestProcessor.h
  2151. * src/XmlRpcElements.cc
  2152. * src/XmlRpcElements.h
  2153. * src/XmlRpcRequest.h
  2154. * src/XmlRpcRequestParserController.cc
  2155. * src/XmlRpcRequestParserController.h
  2156. * src/XmlRpcRequestParserState.h
  2157. * src/XmlRpcRequestParserStateImpl.cc
  2158. * src/XmlRpcRequestParserStateImpl.h
  2159. * src/XmlRpcRequestParserStateMachine.cc
  2160. * src/XmlRpcRequestParserStateMachine.h
  2161. * src/XmlRpcRequestProcessor.h
  2162. * test/XmlRpcRequestParserControllerTest.cc
  2163. * test/XmlRpcRequestProcessorTest.cc
  2164. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. * Release 1.3.3
  2166. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2167. Fixed compile error since r1202.
  2168. * src/ExpatMetalinkProcessor.cc
  2169. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Updated Ukrainian, Russian and Simplified Chinese
  2171. translations. Thanks to all translators.
  2172. * po/ru.po
  2173. * po/uk.po
  2174. * po/zh_CN.po
  2175. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2176. Pass reference of Option object instead of pointer.
  2177. * src/download_helper.cc
  2178. * src/download_helper.h
  2179. * src/main.cc
  2180. * test/DownloadHelperTest.cc
  2181. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2183. from option directly. Instead, get them from RequestGroup.
  2184. * src/ActivePeerConnectionCommand.cc
  2185. * src/ActivePeerConnectionCommand.h
  2186. * src/PeerReceiveHandshakeCommand.cc
  2187. * src/RequestGroup.h
  2188. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. Removed unused uploadLimitCheck and uploadLimit from
  2190. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2191. PeerInteractionCommand.
  2192. * src/PeerAbstractCommand.cc
  2193. * src/PeerAbstractCommand.h
  2194. * src/PeerInteractionCommand.cc
  2195. * src/PeerInteractionCommand.h
  2196. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Fixed broken file renaming feature since r1202.
  2198. * src/FtpNegotiationCommand.cc
  2199. * src/FtpNegotiationCommand.h
  2200. * src/HttpResponseCommand.cc
  2201. * src/RequestGroup.cc
  2202. * src/RequestGroup.h
  2203. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2204. Removed unused debug log
  2205. * src/SocketCore.cc
  2206. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2207. Generated configure and Makefile.in using autoconf 2.63 and
  2208. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2209. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2210. * configure.ac
  2211. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Moved piece statistics stuff to new PieceStatMan class.
  2213. Refactored PieceSelector interface.
  2214. * src/DefaultPieceStorage.cc
  2215. * src/DefaultPieceStorage.h
  2216. * src/LongestSequencePieceSelector.cc
  2217. * src/LongestSequencePieceSelector.h
  2218. * src/Makefile.am
  2219. * src/PieceSelector.h
  2220. * src/PieceStatMan.cc
  2221. * src/PieceStatMan.h
  2222. * src/RarestPieceSelector.cc
  2223. * src/RarestPieceSelector.h
  2224. * src/RequestGroup.cc
  2225. * test/DefaultPieceStorageTest.cc
  2226. * test/InOrderPieceSelector.h
  2227. * test/Makefile.am
  2228. * test/PieceStatManTest.cc
  2229. * test/RarestPieceSelectorTest.cc
  2230. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. Added static member _protocolFamily to SocketCore. By default,
  2232. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2233. address. Sometime SocketCore::bind() and
  2234. SocketCore::establishConnection() use difference protocl family
  2235. and latter cannot connect to former. To avoid this situation, we
  2236. limit protocol family to AF_INET for unit tests.
  2237. * src/SocketCore.cc
  2238. * src/SocketCore.h
  2239. * test/AllTest.cc
  2240. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Avoid std::bad_alloc for negative bencode string length.
  2242. * src/bencode.cc
  2243. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Supported segmented downloading with chunked transfer encoding and
  2245. content-length.
  2246. * src/DownloadCommand.cc
  2247. * src/HttpResponseCommand.cc
  2248. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2249. Bump up version number to 1.3.3
  2250. * configure.ac
  2251. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2253. from 4096 to 65536 (for insanely large ftp login banners)
  2254. * src/FtpConnection.h
  2255. * test/FtpConnectionTest.cc
  2256. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2257. In DefaultBtContext::getActualBasePath(), return first
  2258. FileEntry::getPath() for single file torrent.
  2259. * src/DefaultBtContext.cc
  2260. * test/DefaultBtContextTest.cc
  2261. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2263. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2264. Removed _directIOAllowed member from DiskWriter.
  2265. * src/AbstractDiskWriter.cc
  2266. * src/AbstractDiskWriter.h
  2267. * src/AbstractSingleDiskAdaptor.cc
  2268. * src/AbstractSingleDiskAdaptor.h
  2269. * src/BinaryStream.h
  2270. * src/ByteArrayDiskWriter.h
  2271. * src/DefaultPieceStorage.cc
  2272. * src/DiskWriter.h
  2273. * src/MultiDiskAdaptor.cc
  2274. * src/MultiDiskAdaptor.h
  2275. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2276. Now the constructor of AbstractDiskWriter takes filename as an
  2277. argument and filename argument is removed from openFile(),
  2278. initAndOpenFile(), openExistingFile() interface. storeDir member
  2279. and its accessor functions are removed from DiskAdaptor because it
  2280. is not used anymore. size() member function of DefaultDiskWriter,
  2281. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2282. opening file.
  2283. * src/AbstractDiskWriter.cc
  2284. * src/AbstractDiskWriter.h
  2285. * src/AbstractSingleDiskAdaptor.cc
  2286. * src/AbstractSingleDiskAdaptor.h
  2287. * src/ByteArrayDiskWriter.cc
  2288. * src/ByteArrayDiskWriter.h
  2289. * src/ByteArrayDiskWriterFactory.cc
  2290. * src/ByteArrayDiskWriterFactory.h
  2291. * src/DefaultDiskWriter.cc
  2292. * src/DefaultDiskWriter.h
  2293. * src/DefaultDiskWriterFactory.cc
  2294. * src/DefaultDiskWriterFactory.h
  2295. * src/DefaultPieceStorage.cc
  2296. * src/DirectDiskAdaptor.cc
  2297. * src/DirectDiskAdaptor.h
  2298. * src/DiskAdaptor.h
  2299. * src/DiskWriter.h
  2300. * src/DiskWriterFactory.h
  2301. * src/MessageDigestHelper.cc
  2302. * src/MultiDiskAdaptor.cc
  2303. * src/RequestGroup.cc
  2304. * src/UnknownLengthPieceStorage.cc
  2305. * src/Util.cc
  2306. * test/DefaultDiskWriterTest.cc
  2307. * test/DirectDiskAdaptorTest.cc
  2308. * test/FallocFileAllocationIteratorTest.cc
  2309. * test/MessageDigestHelperTest.cc
  2310. * test/MetalinkProcessorTest.cc
  2311. * test/MultiDiskAdaptorTest.cc
  2312. * test/MultiFileAllocationIteratorTest.cc
  2313. * test/SingleFileAllocationIteratorTest.cc
  2314. * test/UtilTest.cc
  2315. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2316. Fixed the bug that aria2 aborts when --select-file is used. This
  2317. bug was introduced in r1199.
  2318. * src/MultiDiskAdaptor.cc
  2319. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Code cleanup
  2321. * test/MockPieceStorage.cc
  2322. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2323. Fixed the bug that read-only file with wrong file size will cause
  2324. error because it cannot be truncated to the correct size. Now if
  2325. file size is different than the expected one, re-open file in
  2326. writable mode.
  2327. * src/AbstractSingleDiskAdaptor.cc
  2328. * src/AbstractSingleDiskAdaptor.h
  2329. * src/BtCheckIntegrityEntry.cc
  2330. * src/DiskAdaptor.h
  2331. * src/MultiDiskAdaptor.h
  2332. * src/RequestGroup.cc
  2333. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Fixed the bug that with --check-integrity option aria2 reports
  2335. downloaded file size is 0 even if some parts of file is correctly
  2336. downloaded. This bug is reproducible for the download that a file
  2337. includes last piece is missing. This bug doesn't reveal for
  2338. single-torrent with file allocation on.
  2339. * src/IteratableChecksumValidator.cc
  2340. * test/IteratableChecksumValidatorTest.cc
  2341. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2343. * src/RequestGroupMan.cc
  2344. * src/AdaptiveURISelector.cc
  2345. * src/AdaptiveURISelector.h
  2346. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2347. * Release 1.3.2
  2348. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2349. Updated README
  2350. * README
  2351. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2352. Updated Ukrainian translations. Thanks to Alexander10.
  2353. * po/uk.po
  2354. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2355. Code cleanup
  2356. * src/MetalinkParserStateMachine.cc
  2357. * src/MetalinkParserStateMachine.h
  2358. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2360. and expat simultaneously, MetalinkProcessor is now not base class
  2361. and it is directly implemented in XML2SAXMetalinkProcessor and
  2362. ExpatMetalinkProcessor.
  2363. * src/ExpatMetalinkProcessor.cc
  2364. * src/ExpatMetalinkProcessor.h
  2365. * src/Makefile.am
  2366. * src/MetalinkHelper.cc
  2367. * src/MetalinkProcessor.h
  2368. * src/MetalinkProcessorFactory.cc: Removed.
  2369. * src/MetalinkProcessorFactory.h: Removed
  2370. * src/XML2SAXMetalinkProcessor.cc
  2371. * src/XML2SAXMetalinkProcessor.h
  2372. * test/MetalinkProcessorTest.cc
  2373. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Bump up version number to 1.3.2
  2375. * configure.ac
  2376. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2377. Added missing file.
  2378. * test/Makefile.am
  2379. * test/url-list-singleFileEndsWithSlash.torrent
  2380. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2382. request.
  2383. * src/AnnounceList.cc
  2384. * src/AnnounceList.h
  2385. * src/BDE.cc: Added
  2386. * src/BDE.h: Added
  2387. * src/DHTAbstractMessage.cc
  2388. * src/DHTAbstractMessage.h
  2389. * src/DHTAnnouncePeerMessage.cc
  2390. * src/DHTAnnouncePeerMessage.h
  2391. * src/DHTAnnouncePeerReplyMessage.cc
  2392. * src/DHTAnnouncePeerReplyMessage.h
  2393. * src/DHTFindNodeMessage.cc
  2394. * src/DHTFindNodeMessage.h
  2395. * src/DHTFindNodeReplyMessage.cc
  2396. * src/DHTFindNodeReplyMessage.h
  2397. * src/DHTGetPeersMessage.cc
  2398. * src/DHTGetPeersMessage.h
  2399. * src/DHTGetPeersReplyMessage.cc
  2400. * src/DHTGetPeersReplyMessage.h
  2401. * src/DHTMessageFactory.h
  2402. * src/DHTMessageFactoryImpl.cc
  2403. * src/DHTMessageFactoryImpl.h
  2404. * src/DHTMessageReceiver.cc
  2405. * src/DHTMessageTracker.cc
  2406. * src/DHTMessageTracker.h
  2407. * src/DHTPingMessage.cc
  2408. * src/DHTPingMessage.h
  2409. * src/DHTPingReplyMessage.cc
  2410. * src/DHTPingReplyMessage.h
  2411. * src/DHTQueryMessage.cc
  2412. * src/DHTQueryMessage.h
  2413. * src/DHTResponseMessage.cc
  2414. * src/DHTResponseMessage.h
  2415. * src/DefaultBtAnnounce.cc
  2416. * src/DefaultBtContext.cc
  2417. * src/DefaultBtContext.h
  2418. * src/HandshakeExtensionMessage.cc
  2419. * src/Makefile.am
  2420. * src/PeerListProcessor.h
  2421. * src/UTPexExtensionMessage.cc
  2422. * src/bencode.cc
  2423. * src/bencode.h
  2424. * test/AnnounceListTest.cc
  2425. * test/BDETest.cc: Added
  2426. * test/BencodeTest.cc
  2427. * test/DHTAnnouncePeerMessageTest.cc
  2428. * test/DHTAnnouncePeerReplyMessageTest.cc
  2429. * test/DHTFindNodeMessageTest.cc
  2430. * test/DHTFindNodeReplyMessageTest.cc
  2431. * test/DHTGetPeersMessageTest.cc
  2432. * test/DHTGetPeersReplyMessageTest.cc
  2433. * test/DHTMessageFactoryImplTest.cc
  2434. * test/DHTMessageTrackerTest.cc
  2435. * test/DHTPingMessageTest.cc
  2436. * test/DHTPingReplyMessageTest.cc
  2437. * test/Makefile.am
  2438. * test/MockDHTMessageFactory.h
  2439. * test/PeerListProcessorTest.cc
  2440. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2441. Use url-list (web-seeding) only for single-file torrent. This is
  2442. basically the same behavior with Metalink file with torrent and
  2443. URIs.
  2444. * src/RequestGroup.cc
  2445. * src/DefaultBtContext.cc
  2446. * test/DefaultBtContextTest.cc
  2447. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Rewritten expr
  2449. * src/array_fun.h
  2450. * test/array_funTest.cc
  2451. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2453. * src/DefaultBtMessageDispatcher.cc
  2454. * src/a2algo.h
  2455. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. Removed ExtendedMessagingAware. Instead of using inheritance,
  2457. added ExtensionMessageRegistry and it is passed to
  2458. DefaultExtensionMessageFactory.
  2459. * src/DefaultBtInteractive.cc
  2460. * src/DefaultBtInteractive.h
  2461. * src/DefaultExtensionMessageFactory.cc
  2462. * src/DefaultExtensionMessageFactory.h
  2463. * src/ExtendedMessagingAware.h: Removed.
  2464. * src/ExtensionMessageFactory.h
  2465. * src/ExtensionMessageRegistry.h: Added.
  2466. * src/Makefile.am
  2467. * src/PeerInteractionCommand.cc
  2468. * test/DefaultExtensionMessageFactoryTest.cc
  2469. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Fixed typo in log messages
  2471. * src/MSEHandshake.cc
  2472. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Fixed the bug that prevents torrent download from finishing. The
  2474. bug doesn't reveal for all torrents. The torrents affected this
  2475. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2476. of pieces.
  2477. * src/bitfield.h
  2478. * test/bitfieldTest.cc
  2479. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Code cleanup
  2481. * src/PeerListProcessor.h
  2482. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2483. Removed RequestGroupAware
  2484. * src/AbstractCommand.cc
  2485. * src/AbstractCommand.h
  2486. * src/ActivePeerConnectionCommand.cc
  2487. * src/ActivePeerConnectionCommand.h
  2488. * src/DHTGetPeersCommand.cc
  2489. * src/DHTGetPeersCommand.h
  2490. * src/InitiatorMSEHandshakeCommand.cc
  2491. * src/InitiatorMSEHandshakeCommand.h
  2492. * src/Makefile.am
  2493. * src/PeerInitiateConnectionCommand.cc
  2494. * src/PeerInitiateConnectionCommand.h
  2495. * src/PeerInteractionCommand.cc
  2496. * src/PeerInteractionCommand.h
  2497. * src/RealtimeCommand.cc
  2498. * src/RealtimeCommand.h
  2499. * src/RequestGroupAware.cc: Removed
  2500. * src/RequestGroupAware.h: Removed
  2501. * src/SeedCheckCommand.cc
  2502. * src/SeedCheckCommand.h
  2503. * src/SleepCommand.cc
  2504. * src/TrackerWatcherCommand.cc
  2505. * src/TrackerWatcherCommand.h
  2506. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. Rewritten PeerListProcessor
  2508. * src/PeerListProcessor.h
  2509. * src/CompactPeerListProcessor.h: Removed
  2510. * src/CompactPeerListProcessor.cc: Removed
  2511. * src/DelegatingPeerListProcessor.cc: Removed.
  2512. * src/DefaultBtAnnounce.cc
  2513. * src/Makefile.am
  2514. * src/UTPexExtensionMessage.cc
  2515. * src/DefaultPeerListProcessor.h: Removed.
  2516. * src/DefaultPeerListProcessor.cc: Removed.
  2517. * src/DelegatingPeerListProcessor.h: Removed.
  2518. * test/Makefile.am
  2519. * test/PeerListProcessorTest.cc
  2520. * test/DefaultPeerListProcessorTest.cc: Removed.
  2521. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2522. Rewritten RequestGroupMan::calculateStat()
  2523. * src/RequestGroupMan.cc
  2524. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Removed unnecessary virtual destructor for Request class.
  2526. * src/Request.cc
  2527. * src/Request.h
  2528. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Avoid dynamic_pointer_cast.
  2530. * src/DHTGetPeersCommand.cc
  2531. * src/DHTGetPeersCommand.h
  2532. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2534. BtEvent.
  2535. * src/AbstractBtEventListener.h: Removed.
  2536. * src/AbstractBtMessage.cc
  2537. * src/AbstractBtMessage.h
  2538. * src/BtAbortOutstandingRequestEvent.h
  2539. * src/BtCancelSendingPieceEvent.h
  2540. * src/BtChokedEvent.h: Removed.
  2541. * src/BtChokingEvent.h
  2542. * src/BtEvent.h: Removed
  2543. * src/BtEventListener.h: Removed.
  2544. * src/BtMessage.h
  2545. * src/BtPieceMessage.cc
  2546. * src/BtPieceMessage.h
  2547. * src/BtRequestMessage.cc
  2548. * src/BtRequestMessage.h
  2549. * src/DefaultBtMessageDispatcher.cc
  2550. * src/Makefile.am
  2551. * src/a2functional.h
  2552. * test/BtPieceMessageTest.cc
  2553. * test/BtRequestMessageTest.cc
  2554. * test/DefaultBtMessageDispatcherTest.cc
  2555. * test/MockBtMessage.h
  2556. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2557. Code cleanup
  2558. * src/RequestGroupMan.cc
  2559. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2560. Code cleanup
  2561. * src/DownloadCommand.cc
  2562. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2563. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2564. byte.
  2565. * src/DownloadCommand.cc
  2566. * src/bitfield.h
  2567. * test/bitfieldTest.cc
  2568. Fixed the bug that causes infinite loop if broken web server
  2569. returns chunked response without last "0" chunk-size marker and
  2570. closes connection.
  2571. * src/DownloadCommand.cc
  2572. Instantiate properly configured HttpDownloadCommand for
  2573. non-resumable downlaods.
  2574. * src/HttpResponseCommand.cc
  2575. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2576. Rewritten array operation functions.
  2577. * src/BitfieldMan.cc
  2578. * src/array_fun.h
  2579. * test/array_funTest.cc
  2580. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Removed unused variable 'query'
  2582. * src/Request.cc
  2583. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2585. accidentally set to false in r1162.
  2586. * configure.ac
  2587. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Code cleanup
  2589. * src/BNode.cc
  2590. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Increase prefixLength for the bucket which doesn't own local node
  2592. ID when splitting bucket.
  2593. * src/DHTBucket.cc
  2594. * test/DHTBucketTest.cc
  2595. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. * Release 1.3.1
  2597. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Bump up version number to 1.3.1
  2599. * configure.ac
  2600. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2601. Removed unused variable checkPoint. Also removed include directive
  2602. for TimeA2.h.
  2603. * src/SeedCheckCommand.h
  2604. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Fixed the bug that upload limit exceeds the value specified in
  2606. --seed-ratio option depending on the timing of the execution of
  2607. SeedCheckCommand.
  2608. * src/SeedCheckCommand.cc
  2609. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Fixed the bug that removed peer's session upload/download length
  2611. are counted twice in _cachedTransferStat before it is
  2612. re-calculated. This affected the calculation of shara ratio,
  2613. resulting aria2 wrongly determines that specified share ratio is
  2614. reached. Also fixed the typo in calculateStatFor function name.
  2615. * src/BtSetup.cc
  2616. * src/DefaultPeerStorage.cc
  2617. * src/ShareRatioSeedCriteria.h
  2618. * test/ShareRatioSeedCriteriaTest.cc
  2619. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2620. * Release 1.3.0
  2621. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2622. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2623. Nynorsk translations. Thanks to all translators.
  2624. * po/es.po
  2625. * po/ja.po
  2626. * po/nn.po
  2627. * po/ru.po
  2628. * po/uk.po
  2629. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2630. Rewritten isInRange()
  2631. * src/DHTBucket.cc
  2632. * test/DHTBucketTest.cc
  2633. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2634. Fixed typo
  2635. * doc/aria2c.1.txt
  2636. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2638. malloc/realloc is not used.
  2639. * src/configure.ac
  2640. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2642. char* bitfield instead of stl container for efficiency.
  2643. PieceSelector::select now takes this
  2644. bitfield. RarestPieceSelector::select now also performs
  2645. efficiently for this change. bitfield namespace is introduced and
  2646. it has several helper functions to handle basic bitfield
  2647. operations such as test, count set bits, etc.
  2648. * src/BitfieldMan.cc
  2649. * src/BitfieldMan.h
  2650. * src/DefaultBtRequestFactory.cc
  2651. * src/DefaultPieceStorage.cc
  2652. * src/DefaultPieceStorage.h
  2653. * src/LongestSequencePieceSelector.cc
  2654. * src/LongestSequencePieceSelector.h
  2655. * src/Makefile.am
  2656. * src/Piece.cc
  2657. * src/Piece.h
  2658. * src/PieceSelector.h
  2659. * src/RarestPieceSelector.cc
  2660. * src/RarestPieceSelector.h
  2661. * src/Util.cc
  2662. * src/Util.h
  2663. * src/bitfield.h
  2664. * test/BitfieldManTest.cc
  2665. * test/LongestSequencePieceSelectorTest.cc
  2666. * test/Makefile.am
  2667. * test/RarestPieceSelectorTest.cc
  2668. * test/UtilTest.cc
  2669. * test/bitfieldTest.cc
  2670. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2671. Made accepted socket non-block.
  2672. * src/FtpNegotiationCommand.cc
  2673. * src/HttpListenCommand.cc
  2674. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2675. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2676. * src/AbstractSingleDiskAdaptor.cc
  2677. * src/DefaultPieceStorage.cc
  2678. * src/DiskAdaptor.h
  2679. * src/DiskAdaptor.h
  2680. * src/MultiFileAllocationIterator.cc
  2681. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2682. Run
  2683. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2684. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2685. it doesn't need to be called every time when
  2686. DefaultBtInteractive::doInteractionProcessing() is called.
  2687. * src/DefaultBtInteractive.cc
  2688. * src/DefaultBtInteractive.h
  2689. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2690. Documented 'falloc' in man page.
  2691. * doc/aria2c.1.txt
  2692. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Updated doc
  2694. * src/usage_text.h
  2695. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2696. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2697. allocation mode uses posix_fallocate() system call to allocate
  2698. file on disk. If you are using newer file systems such as ext4
  2699. (with extents support), btrfs or xfs, 'falloc' is your best
  2700. choice. It allocates large(few GiB) files almost instantly. Don't
  2701. use 'falloc' with legacy file systems such as ext3 because it
  2702. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2703. until allocation finishes. 'falloc' may not be available if your
  2704. system doesn't have posix_fallocate() system call.
  2705. * configure.ac
  2706. * src/AbstractDiskWriter.cc
  2707. * src/AbstractDiskWriter.h
  2708. * src/AbstractSingleDiskAdaptor.cc
  2709. * src/BinaryStream.h
  2710. * src/BtCheckIntegrityEntry.cc
  2711. * src/ByteArrayDiskWriter.h
  2712. * src/CheckIntegrityEntry.cc
  2713. * src/CheckIntegrityEntry.h
  2714. * src/DefaultPieceStorage.cc
  2715. * src/DiskAdaptor.cc
  2716. * src/DiskAdaptor.h
  2717. * src/DiskWriter.h
  2718. * src/FallocFileAllocationIterator.cc
  2719. * src/FallocFileAllocationIterator.h
  2720. * src/FileAllocationEntry.cc
  2721. * src/FileAllocationEntry.h
  2722. * src/Makefile.am
  2723. * src/MultiFileAllocationIterator.cc
  2724. * src/MultiFileAllocationIterator.h
  2725. * src/OptionHandlerFactory.cc
  2726. * src/RequestGroup.cc
  2727. * src/StreamCheckIntegrityEntry.cc
  2728. * src/prefs.cc
  2729. * src/prefs.h
  2730. * src/usage_text.h
  2731. * test/FallocFileAllocationIteratorTest.cc
  2732. * test/Makefile.am
  2733. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2734. Removed duplicate enableDirectIO() call.
  2735. * src/MultiFileAllocationIterator.cc
  2736. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2738. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2739. cost of std::rotate().
  2740. * src/RarestPieceSelector.cc
  2741. * src/RarestPieceSelector.h
  2742. * test/RarestPieceSelectorTest.cc
  2743. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Updated usage doc for --bt-tracker-interval option.
  2745. * src/usage_text.h
  2746. * doc/aria2c.1.txt
  2747. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2748. Documented --bt-tracker-interval option in man page.
  2749. * doc/aria2c.1.txt
  2750. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. Added an option to specify the interval between tracker requests.
  2752. If non-zero value is specified, aria2 uses it and ignores the
  2753. interval value in the response of tracker. If zero is specified,
  2754. aria2 determines the inteval value based on the tarcker response
  2755. and download progress.
  2756. * src/DefaultBtAnnounce.cc
  2757. * src/DefaultBtAnnounce.h
  2758. * src/OptionHandlerFactory.cc
  2759. * src/RequestGroup.cc
  2760. * src/prefs.cc
  2761. * src/prefs.h
  2762. * src/usage_text.h
  2763. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Added operator+=, operator-=, operator-
  2765. * src/TransferStat.cc
  2766. * src/TransferStat.h
  2767. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2768. Refactored RarestPieceSelector to reduce CPU load, especially for
  2769. addPieceStats.
  2770. * src/RarestPieceSelector.cc
  2771. * src/RarestPieceSelector.h
  2772. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2773. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2774. getAllMissingBlockIndexes to reduce a call to
  2775. array_function_base::operator[].
  2776. * src/BitfieldMan.cc
  2777. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2778. Cached TransferStat/download speed to avoid to sum them up in each
  2779. call.
  2780. * src/DefaultPeerStorage.cc
  2781. * src/DefaultPeerStorage.h
  2782. * src/SegmentMan.cc
  2783. * src/SegmentMan.h
  2784. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2785. Typedefed cuid_t as int32_t in Command.h
  2786. * src/CUIDCounter.h
  2787. * src/Command.cc
  2788. * src/Command.h
  2789. * src/DownloadEngine.cc
  2790. * src/DownloadEngine.h
  2791. * src/PeerStat.h
  2792. * src/SegmentMan.cc
  2793. * src/SegmentMan.h
  2794. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2795. Reduced the number of calls to PeerStorage::calculateStat() and
  2796. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2797. transfer rate.
  2798. * src/DefaultBtInteractive.cc
  2799. * src/DefaultBtMessageDispatcher.cc
  2800. * src/DefaultPeerStorage.cc
  2801. * src/DefaultPeerStorage.h
  2802. * src/DownloadCommand.cc
  2803. * src/DownloadEngine.cc
  2804. * src/PeerStorage.h
  2805. * src/SegmentMan.cc
  2806. * src/SegmentMan.h
  2807. * test/MockPeerStorage.h
  2808. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2809. Prepended _dir+"/" after joining path elements in torrent file.
  2810. * src/DefaultBtContext.cc
  2811. * test/DefaultBtContextTest.cc
  2812. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Added missing IndexBtMessageValidator.h
  2814. * src/Makefile.am
  2815. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2817. Chinese translations. Thank you for contributing our project.
  2818. * po/id.po
  2819. * po/it.po
  2820. * po/ru.po
  2821. * po/uk.po
  2822. * po/zh_CN.po
  2823. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2824. Updated README
  2825. * README
  2826. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Bump up version number to 1.3.0
  2828. * configure.ac
  2829. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2830. Updated doc
  2831. * src/DefaultBtContext.h
  2832. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Slice/joinPath for name of single torrent.
  2834. * src/DefaultBtContext.cc
  2835. * test/DefaultBtContextTest.cc
  2836. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Updated man page: Documented --dry-run and --index-out
  2838. options. Changed the default value of --uri-selector and
  2839. --http-auth-challenge options. Removed --direct-file-mapping
  2840. option. Added example for --index-out
  2841. * doc/aria2c.1.txt
  2842. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2843. Updated TEXT_DRY_RUN
  2844. * src/usage_text.h
  2845. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2846. Changed the default value of --uri-selector option from 'inorder'
  2847. to 'feedback'
  2848. * src/OptionHandlerFactory.cc
  2849. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2850. Included current URI in exception message.
  2851. * src/AbstractCommand.cc
  2852. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2853. Renamed ServerStatURISelector as FeedbackURISelector.
  2854. * src/FeedbackURISelector.cc
  2855. * src/FeedbackURISelector.h
  2856. * src/Makefile.am
  2857. * src/RequestGroupMan.cc
  2858. * src/ServerStatURISelector.cc
  2859. * src/ServerStatURISelector.h
  2860. * test/FeedbackURISelectorTest.cc
  2861. * test/Makefile.am
  2862. * test/ServerStatURISelectorTest.cc
  2863. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2865. all URIs are tested and their timeout is not reached.
  2866. * src/AdaptiveURISelector.cc
  2867. * src/AdaptiveURISelector.h
  2868. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Changed the default value of --http-auth-challenge option to false.
  2870. * src/OptionHandlerFactory.cc
  2871. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2872. Reuse URIs when all unused URIs run out.
  2873. * src/OptionHandlerFactory.cc
  2874. * src/RequestGroup.cc
  2875. * src/prefs.cc
  2876. * src/prefs.h
  2877. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2878. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2879. and BtRejectMessage are derived from RangeBtMessage class.
  2880. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2881. derived from IndexBtMessage class. BtChokeMessage,
  2882. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2883. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2884. ZeroBtMessage class.
  2885. * src/AbstractBtMessage.cc
  2886. * src/AbstractBtMessage.h
  2887. * src/BtAllowedFastMessage.cc
  2888. * src/BtAllowedFastMessage.h
  2889. * src/BtAllowedFastMessageValidator.h: Removed
  2890. * src/BtBitfieldMessage.cc
  2891. * src/BtBitfieldMessage.h
  2892. * src/BtCancelMessage.cc
  2893. * src/BtCancelMessage.h
  2894. * src/BtCancelMessageValidator.h: Removed
  2895. * src/BtChokeMessage.cc
  2896. * src/BtChokeMessage.h
  2897. * src/BtExtendedMessage.cc
  2898. * src/BtExtendedMessage.h
  2899. * src/BtHandshakeMessage.cc
  2900. * src/BtHandshakeMessage.h
  2901. * src/BtHaveAllMessage.cc
  2902. * src/BtHaveAllMessage.h
  2903. * src/BtHaveMessage.cc
  2904. * src/BtHaveMessage.h
  2905. * src/BtHaveMessageValidator.h: Removed
  2906. * src/BtHaveNoneMessage.cc
  2907. * src/BtHaveNoneMessage.h
  2908. * src/BtInterestedMessage.cc
  2909. * src/BtInterestedMessage.h
  2910. * src/BtKeepAliveMessage.cc
  2911. * src/BtKeepAliveMessage.h
  2912. * src/BtNotInterestedMessage.cc
  2913. * src/BtNotInterestedMessage.h
  2914. * src/BtPieceMessage.cc
  2915. * src/BtPieceMessage.h
  2916. * src/BtPortMessage.cc
  2917. * src/BtPortMessage.h
  2918. * src/BtRejectMessage.cc
  2919. * src/BtRejectMessage.h
  2920. * src/BtRejectMessageValidator.h: Removed
  2921. * src/BtRequestMessage.cc
  2922. * src/BtRequestMessage.h
  2923. * src/BtRequestMessageValidator.h: Removed
  2924. * src/BtSuggestPieceMessage.cc
  2925. * src/BtSuggestPieceMessage.h
  2926. * src/BtSuggestPieceMessageValidator.h: Removed
  2927. * src/BtUnchokeMessage.cc
  2928. * src/BtUnchokeMessage.h
  2929. * src/DefaultBtMessageFactory.cc
  2930. * src/IndexBtMessage.cc
  2931. * src/IndexBtMessage.h
  2932. * src/IndexBtMessageValidator.h
  2933. * src/Makefile.am
  2934. * src/PeerMessageUtil.cc
  2935. * src/PeerMessageUtil.h
  2936. * src/RangeBtMessage.cc
  2937. * src/RangeBtMessage.h
  2938. * src/RangeBtMessageValidator.h
  2939. * src/SimpleBtMessage.cc
  2940. * src/SimpleBtMessage.h
  2941. * src/ZeroBtMessage.cc
  2942. * src/ZeroBtMessage.h
  2943. * test/BtRequestMessageTest.cc
  2944. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2945. Reverted usage_text.h to r1093 to avoid to lose translated
  2946. messages.
  2947. * src/usage_text.h
  2948. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2949. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2950. declared as non-const previously is now const and defined in class
  2951. definition.
  2952. * src/AbstractBtMessage.cc
  2953. * src/AbstractBtMessage.h
  2954. * src/BtAllowedFastMessage.cc
  2955. * src/BtAllowedFastMessage.h
  2956. * src/BtBitfieldMessage.h
  2957. * src/BtCancelMessage.cc
  2958. * src/BtCancelMessage.h
  2959. * src/BtChokeMessage.cc
  2960. * src/BtChokeMessage.h
  2961. * src/BtExtendedMessage.cc
  2962. * src/BtExtendedMessage.h
  2963. * src/BtHandshakeMessage.cc
  2964. * src/BtHandshakeMessage.h
  2965. * src/BtHaveAllMessage.cc
  2966. * src/BtHaveAllMessage.h
  2967. * src/BtHaveMessage.cc
  2968. * src/BtHaveMessage.h
  2969. * src/BtHaveNoneMessage.cc
  2970. * src/BtHaveNoneMessage.h
  2971. * src/BtInterestedMessage.cc
  2972. * src/BtInterestedMessage.h
  2973. * src/BtKeepAliveMessage.cc
  2974. * src/BtKeepAliveMessage.h
  2975. * src/BtMessage.h
  2976. * src/BtNotInterestedMessage.cc
  2977. * src/BtNotInterestedMessage.h
  2978. * src/BtPieceMessage.h
  2979. * src/BtPortMessage.cc
  2980. * src/BtPortMessage.h
  2981. * src/BtRejectMessage.cc
  2982. * src/BtRejectMessage.h
  2983. * src/BtRequestMessage.cc
  2984. * src/BtRequestMessage.h
  2985. * src/BtSuggestPieceMessage.cc
  2986. * src/BtSuggestPieceMessage.h
  2987. * src/BtUnchokeMessage.cc
  2988. * src/BtUnchokeMessage.h
  2989. * src/SimpleBtMessage.cc
  2990. * src/SimpleBtMessage.h
  2991. * test/MockBtMessage.h
  2992. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2993. Use FileEntry::exists()
  2994. * src/MultiDiskAdaptor.cc
  2995. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Added exists()
  2997. * src/FileEntry.cc
  2998. * src/FileEntry.h
  2999. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. Added missing prefix dir.
  3001. * src/download_helper.cc
  3002. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3003. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3004. * src/CopyDiskAdaptor.cc: Removed
  3005. * src/CopyDiskAdaptor.h: Removed
  3006. * src/DefaultPieceStorage.cc
  3007. * src/Makefile.am
  3008. * src/OptionHandlerFactory.cc
  3009. * src/prefs.cc
  3010. * src/prefs.h
  3011. * src/usage_text.h
  3012. * test/CopyDiskAdaptorTest.cc: Removed
  3013. * test/Makefile.am
  3014. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Rewritten isSameFileBeingDownloaded()
  3016. * src/RequestGroupMan.cc
  3017. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3018. Removed getName() from DownloadContext. getName() is declared in
  3019. BtContext.
  3020. * src/BtContext.h
  3021. * src/DownloadContext.h
  3022. * src/SingleFileDownloadContext.cc
  3023. * src/SingleFileDownloadContext.h
  3024. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3025. in AbstractSingleDiskAdaptor.
  3026. * src/AbstractSingleDiskAdaptor.h
  3027. * src/DiskAdaptor.h
  3028. * src/MultiDiskAdaptor.h
  3029. * src/RequestGroup.cc
  3030. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3031. MultiDiskAdaptor.
  3032. * src/DefaultPieceStorage.cc
  3033. * src/MultiDiskAdaptor.cc
  3034. * src/MultiDiskAdaptor.h
  3035. * test/MultiDiskAdaptorTest.cc
  3036. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3037. FileEntry::getPath() contains store(top level) directory to
  3038. simplify path handling operation. In the previous implementation,
  3039. store directory is concatenated to FileEntry::getPath() in
  3040. DownloadContext.
  3041. * src/BtDependency.cc
  3042. * src/BtPostDownloadHandler.cc
  3043. * src/CopyDiskAdaptor.cc
  3044. * src/DefaultBtContext.cc
  3045. * src/DirectDiskAdaptor.cc
  3046. * src/FileEntry.cc
  3047. * src/FileEntry.h
  3048. * src/FtpNegotiationCommand.cc
  3049. * src/HttpResponse.cc
  3050. * src/HttpResponseCommand.cc
  3051. * src/Metalink2RequestGroup.cc
  3052. * src/MultiDiskAdaptor.cc
  3053. * src/MultiDiskAdaptor.h
  3054. * src/MultiFileAllocationIterator.cc
  3055. * src/RequestGroup.cc
  3056. * src/SingleFileDownloadContext.cc
  3057. * src/SingleFileDownloadContext.h
  3058. * src/download_helper.cc
  3059. * test/BtDependencyTest.cc
  3060. * test/CopyDiskAdaptorTest.cc
  3061. * test/DefaultBtContextTest.cc
  3062. * test/DefaultBtProgressInfoFileTest.cc
  3063. * test/DirectDiskAdaptorTest.cc
  3064. * test/DownloadHelperTest.cc
  3065. * test/FileEntryTest.cc
  3066. * test/MultiDiskAdaptorTest.cc
  3067. * test/MultiFileAllocationIteratorTest.cc
  3068. * test/RequestGroupTest.cc
  3069. * test/SingleFileDownloadContextTest.cc
  3070. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3071. Fixed compiler warning
  3072. * src/download_helper.cc
  3073. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3074. Throw exception if same infohash torrent is now downloading.
  3075. * src/RequestGroup.cc
  3076. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3077. Added --dry-run option. In this mode, aria2 just checks whether
  3078. the remote file is available and doesn't download data. This
  3079. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3080. are canceled in this mode.
  3081. * src/FtpNegotiationCommand.cc
  3082. * src/HttpResponseCommand.cc
  3083. * src/HttpResponseCommand.h
  3084. * src/OptionHandlerFactory.cc
  3085. * src/RequestGroup.cc
  3086. * src/RequestGroupMan.cc
  3087. * src/prefs.cc
  3088. * src/prefs.h
  3089. * src/usage_text.h
  3090. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3091. Fixed compiler waring
  3092. * test/UriListParserTest.cc
  3093. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3094. Parse options in -i list using OptionParser.
  3095. * src/UriListParser.cc
  3096. * src/UriListParser.h
  3097. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3098. Don't reset URI in retry to avoid additional round trips because
  3099. of redirects.
  3100. * src/AbstractCommand.cc
  3101. * src/OptionHandlerFactory.cc
  3102. * src/prefs.cc
  3103. * src/prefs.h
  3104. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3105. Declared hide() in OptionHandler.
  3106. * src/NameMatchOptionHandler.h
  3107. * src/OptionHandler.h
  3108. * src/OptionHandlerImpl.h
  3109. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3110. Updated doc
  3111. * src/Peer.h
  3112. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3113. Added log message in setStatusInternal()
  3114. * src/ServerStat.cc
  3115. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3116. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3117. effectively exclude failed server.
  3118. * src/AbstractCommand.cc
  3119. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3120. Added --index-out option to specify each file path for torrent.
  3121. Here index shown in --show-files option is used to specify which
  3122. file path should be altered. For example, to change the file path
  3123. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3124. option multiple times: --index-out=1=aria2.tar.bz2
  3125. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3126. available. This option can be specified in -i list.
  3127. * src/DefaultBtContext.cc
  3128. * src/DefaultBtContext.h
  3129. * src/MultiDiskAdaptor.cc
  3130. * src/MultiDiskAdaptor.h
  3131. * src/MultiFileAllocationIterator.cc
  3132. * src/OptionHandlerFactory.cc
  3133. * src/OptionHandlerImpl.h
  3134. * src/Util.cc
  3135. * src/Util.h
  3136. * src/download_helper.cc
  3137. * src/prefs.cc
  3138. * src/prefs.h
  3139. * src/usage_text.h
  3140. * test/DefaultBtContextTest.cc
  3141. * test/MultiDiskAdaptorTest.cc
  3142. * test/MultiFileAllocationIteratorTest.cc
  3143. * test/UtilTest.cc
  3144. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3145. Use Util::pathJoin()
  3146. * src/MetalinkParserController.cc
  3147. * test/test.xml
  3148. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Use Util::pathJoin()
  3150. * src/DefaultBtContext.cc
  3151. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3152. Added Util::pathJoin()
  3153. * src/Util.h
  3154. * test/UtilTest.cc
  3155. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3156. Applied basename function to remove directory element in
  3157. content-disposition value.
  3158. Return empty string if content-disposition value is ".." or ".".
  3159. * src/Util.cc
  3160. * test/UtilTest.cc
  3161. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3162. Added --max-overall-download-limit in man page.
  3163. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3164. * doc/aria2c.1.txt
  3165. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. Added --max-overall-download-limit option. Now --max-upload-limit
  3167. option is not ignored when --max-overall-upload-limit option has
  3168. non-zero value. aria2 checks download(upload) speed in the order:
  3169. first checks overall speed limit and if it is not exceeded, then
  3170. checks speed limit per download. Thus you can specify both
  3171. value. For example, set --max-overall-download-limit=1M and
  3172. --max-download-limit=500K to prevent from one download from eating
  3173. all overall speed limit.
  3174. * src/DefaultBtInteractive.cc
  3175. * src/DefaultBtInteractive.h
  3176. * src/DefaultBtMessageDispatcher.cc
  3177. * src/DefaultBtMessageDispatcher.h
  3178. * src/DownloadCommand.cc
  3179. * src/DownloadCommand.h
  3180. * src/FtpNegotiationCommand.cc
  3181. * src/HttpResponseCommand.cc
  3182. * src/OptionHandlerFactory.cc
  3183. * src/PeerInteractionCommand.cc
  3184. * src/RequestGroup.cc
  3185. * src/RequestGroup.h
  3186. * src/RequestGroupMan.cc
  3187. * src/RequestGroupMan.h
  3188. * src/prefs.cc
  3189. * src/prefs.h
  3190. * src/usage_text.h
  3191. * test/DefaultBtMessageDispatcherTest.cc
  3192. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3193. Documented select-file option in Input File section.
  3194. Documented --http-auth-challenge option.
  3195. * doc/aria2c.1.txt
  3196. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3197. Now select-file can be specified in the uri list(-i list).
  3198. * src/BtContext.cc
  3199. * src/BtContext.h
  3200. * src/RequestGroup.cc
  3201. * src/Sequence.h
  3202. * src/download_helper.cc
  3203. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3204. Made the upper value of --max-concurrent-downloads options unlimited.
  3205. * src/OptionHandlerFactory.cc
  3206. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Fixed the bug that disk writer is not created even if it shares
  3208. same piece with the preceding file if the length of previous file
  3209. is 0.
  3210. * src/MultiDiskAdaptor.cc
  3211. * test/MultiDiskAdaptorTest.cc
  3212. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3213. In BitTorrent, Open files in read-only mode for hash check. After
  3214. that, re-open file in read/write mode only when the download is
  3215. not finished.
  3216. * src/AbstractDiskWriter.cc
  3217. * src/AbstractDiskWriter.h
  3218. * src/AbstractSingleDiskAdaptor.cc
  3219. * src/AbstractSingleDiskAdaptor.h
  3220. * src/BtCheckIntegrityEntry.cc
  3221. * src/DiskAdaptor.h
  3222. * src/DiskWriter.h
  3223. * src/MultiDiskAdaptor.cc
  3224. * src/MultiDiskAdaptor.h
  3225. * src/RequestGroup.cc
  3226. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3227. Added --http-auth-challenge option. If it is set to true(by
  3228. default), aria2 sends HTTP authorization header only when it is
  3229. requested by the server. If false is set, then authorization
  3230. header is always sent to the server. This is useful for servers
  3231. that don't respond 401 code when authentication is required.
  3232. There is an exception: if username and password are embedded in
  3233. URI, authorization header is always sent to the server regardless
  3234. of this option.
  3235. * src/AuthConfigFactory.cc
  3236. * src/HttpSkipResponseCommand.cc
  3237. * src/OptionHandlerFactory.cc
  3238. * src/prefs.cc
  3239. * src/prefs.h
  3240. * src/usage_text.h
  3241. * test/AuthConfigFactoryTest.cc
  3242. * test/HttpRequestTest.cc
  3243. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3244. * Release 1.2.0
  3245. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3246. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3247. Thanks to all translators.
  3248. * po/es.po
  3249. * po/ja.po
  3250. * po/ru.po
  3251. * po/uk.po
  3252. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3253. Call deleteSocketForReadCheck() before socket is closed.
  3254. * src/HttpListenCommand.cc
  3255. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. Defined virtual destructor for BObject.
  3257. * src/bencode.h
  3258. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Rewritten BDE to make it efficient.
  3260. * src/bencode.cc
  3261. * src/bencode.h
  3262. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3263. Removed function throw list.
  3264. * src/bencode.cc
  3265. * src/bencode.h
  3266. * test/BencodeTest.cc
  3267. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3268. Enclosed all URLs in double quotes in command-line examples.
  3269. * doc/aria2c.1.txt
  3270. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3271. Updated reference/see also section.
  3272. * README
  3273. * doc/aria2c.1.txt
  3274. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. Reorganized man page based on man man-pages.
  3276. * doc/aria2c.1.txt
  3277. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3278. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3279. because same documents are available in man page. Added
  3280. References section.
  3281. * README
  3282. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3284. PERFORMANCE PROFILE section.
  3285. * doc/aria2c.1.txt
  3286. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3287. Rewritten the section for configuration file.
  3288. * README
  3289. * doc/aria2c.1.txt
  3290. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3291. Fixed the segmentation fault during execution of choking algorithm
  3292. in leecher state because of broken compare operator
  3293. implementation.
  3294. * src/BtLeecherStateChoke.cc
  3295. * src/BtLeecherStateChoke.h
  3296. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3297. Open file in binary mode.
  3298. * src/CookieStorage.cc
  3299. * src/DHTSetup.cc
  3300. * src/DHTUtil.cc
  3301. * src/Netrc.cc
  3302. * src/NsCookieParser.cc
  3303. * src/ProtocolDetector.cc
  3304. * src/RequestGroupMan.cc
  3305. * src/Signature.cc
  3306. * src/bencode.cc
  3307. * src/download_helper.cc
  3308. * src/option_processing.cc
  3309. * test/CookieParserTest.cc
  3310. * test/DefaultBtProgressInfoFileTest.cc
  3311. * test/FileTest.cc
  3312. * test/GZipDecoderTest.cc
  3313. * test/RequestGroupManTest.cc
  3314. * test/SignatureTest.cc
  3315. * test/SingleFileAllocationIteratorTest.cc
  3316. * test/UriListParserTest.cc
  3317. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. Removed operator[] because it is ambiguous with built-in []
  3319. operator.
  3320. * src/array_fun.h
  3321. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3322. Fixed compile error
  3323. * src/OptionParser.cc
  3324. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3325. Added missing call to arrayWrapperConst
  3326. * test/array_funTest.cc
  3327. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. Use array_wrapper instead of array_ptr.
  3329. * src/DHTRoutingTableDeserializer.cc
  3330. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3331. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3332. * src/array_fun.h
  3333. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3334. Added array_wrapper template.
  3335. * src/array_fun.h
  3336. * test/array_funTest.cc
  3337. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3338. Use operator T* of array_ptr.
  3339. * src/OptionParser.cc
  3340. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3341. Use localhost instead of 127.0.0.1
  3342. * test/FtpConnectionTest.cc
  3343. * test/MSEHandshakeTest.cc
  3344. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3345. Added operator T*
  3346. * src/array_fun.h
  3347. * test/array_funTest.cc
  3348. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3349. Use dynamically allocated char array to detect memory access
  3350. violation.
  3351. * src/DHTRoutingTableDeserializer.cc
  3352. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3353. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3354. defined.
  3355. * src/PeerMessageUtil.cc
  3356. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3357. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3358. * configure.ac
  3359. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3360. Added a check to see struct sockaddr_in has sin_len member.
  3361. * configure.ac
  3362. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3363. Fixed buffer overrun.
  3364. * src/DHTRoutingTableDeserializer.cc
  3365. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3366. Added LL for long long int constant.
  3367. * test/FtpConnectionTest.cc
  3368. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3369. Casted to unsigned int to suppress compiler warning on netbsd.
  3370. * src/BtRuntime.h
  3371. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3373. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3374. type time_t.
  3375. * src/SimpleLogger.cc
  3376. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3377. Added test for FtpConnection::receiveSizeResponse().
  3378. * test/FtpConnectionTest.cc
  3379. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3380. Fix epoll error on the old kernel 2.6.8 or ealier.
  3381. * src/EpollEventPoll.cc
  3382. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3383. Use Util::parseLLInt instead of sscanf for portability. The
  3384. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3385. * src/FtpConnection.cc
  3386. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3387. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3388. block. It should not filter anything.
  3389. * src/BitfieldMan.cc
  3390. * src/ConsoleStatCalc.cc
  3391. * test/BitfieldManTest.cc
  3392. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3393. Fixed the bug that the boolean options that don't take arguments
  3394. don't work.
  3395. * src/OptionHandlerImpl.h
  3396. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Fixed broken selected file BitTorrent download.
  3398. * src/MultiDiskAdaptor.cc
  3399. * test/MultiDiskAdaptorTest.cc
  3400. * test/MultiFileAllocationIteratorTest.cc
  3401. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Fixed #define guard for EpollEventPoll
  3403. * src/EpollEventPoll.h
  3404. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Wait 2 seconds. 1 second is sometimes not enough.
  3406. * test/TimeSeedCriteriaTest.cc
  3407. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3408. Use localhost instead of 127.0.0.1.
  3409. * test/DHTConnectionImplTest.cc
  3410. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3411. Suppressed compiler warning.
  3412. * src/AdaptiveURISelector.cc
  3413. * src/DefaultPieceStorage.cc
  3414. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3415. Defined virtual destructor.
  3416. * src/MetalinkParserState.h
  3417. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Give NULL for second argument of getaddrinfo instead of "0".
  3419. * src/NameResolver.cc
  3420. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3422. included strptime doesn't parse data for this format.
  3423. * src/FtpConnection.cc
  3424. * test/FtpConnectionTest.cc
  3425. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3426. Removed tests giving -1 for unsigned argument.
  3427. * test/SingleFileDownloadContextTest.cc
  3428. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3429. Don't use sha256 in tests because it might not be supported by the
  3430. SSL library.
  3431. * test/MetalinkProcessorTest.cc
  3432. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3433. Removed tests giving -1 for unsigned argument.
  3434. * test/AlphaNumberDecoratorTest
  3435. * test/BitfieldManTest.cc
  3436. * test/DefaultBtContextTest.cc
  3437. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3438. Fixed compile error without libcares when epoll is available.
  3439. * src/EpollEventPoll.cc
  3440. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3441. Included fstream instead of iostream.
  3442. * test/SignatureTest.cc
  3443. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3444. Removed #include <algorithm>
  3445. * test/RequestGroupTest.cc
  3446. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3447. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3448. using RequestGroup::extractURIResult().
  3449. * src/AdaptiveURISelector.cc
  3450. * src/RequestGroup.cc
  3451. * src/RequestGroup.h
  3452. * test/RequestGroupTest.cc
  3453. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3454. Added tests for array_ptr.
  3455. * test/array_funTest.cc
  3456. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3457. Don't send ip parameter to a tracker if ip parameter is empty
  3458. string.
  3459. * src/DefaultBtAnnounce.cc
  3460. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3461. Adjusted line feed.
  3462. * src/version_usage.cc
  3463. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3464. Print tags, possible values when OptionHandlerException is caught.
  3465. * src/option_processing.cc
  3466. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3467. Changed the message for FatalException.
  3468. * src/OptionParser.cc
  3469. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3470. Documented --bt-external-ip option in man page. Updated man pages
  3471. for --proxy-method option.
  3472. * doc/aria2c.1.txt
  3473. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3474. Use GET method for FTP via HTTP proxy.
  3475. * src/FtpInitiateConnectionCommand.cc
  3476. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3477. Changed the default value of --proxy-method option from 'tunnel'
  3478. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3479. option.
  3480. * src/AbstractCommand.cc
  3481. * src/AbstractCommand.h
  3482. * src/FtpInitiateConnectionCommand.cc
  3483. * src/HttpDownloadCommand.cc
  3484. * src/HttpInitiateConnectionCommand.cc
  3485. * src/HttpInitiateConnectionCommand.h
  3486. * src/OptionHandlerFactory.cc
  3487. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3488. Initialized _logger
  3489. * src/SelectEventPoll.cc
  3490. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3491. Defined a copy constructor for the same type.
  3492. * src/SharedHandle.h
  3493. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Added OptionParser::parseArg() which internally uses getopt_long
  3495. to parse command-line options. All command-line options are now
  3496. configured by OptionHandler. No manual editing of struct option*
  3497. is required any more.
  3498. * src/NameMatchOptionHandler.h
  3499. * src/OptionHandler.h
  3500. * src/OptionHandlerFactory.cc
  3501. * src/OptionHandlerImpl.h
  3502. * src/OptionParser.cc
  3503. * src/OptionParser.h
  3504. * src/array_fun.h
  3505. * src/main.cc
  3506. * src/option_processing.cc
  3507. * test/OptionHandlerTest.cc
  3508. * test/OptionParserTest.cc
  3509. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. Fixed configure error with --disable-epoll
  3511. * configure.ac
  3512. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3513. Fixed compile error when HAVE_EPOLL is not defined.
  3514. Fixed linker error on bigendian systems.
  3515. * src/SocketCore.cc
  3516. * src/SocketCore.h
  3517. * test/DefaultBtProgressInfoFileTest.cc
  3518. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Added --bt-external-ip option. You can specify the external IP
  3520. address to report to a BitTorrent tracker. Although this function
  3521. is named 'external', it can accept any kind of IP addresses.
  3522. * src/DefaultBtAnnounce.cc
  3523. * src/OptionHandlerFactory.cc
  3524. * src/option_processing.cc
  3525. * src/prefs.cc
  3526. * src/prefs.h
  3527. * src/usage_text.h
  3528. * test/DefaultBtAnnounceTest.cc
  3529. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3530. Extracted the algorithm to find the longest incremental sequence
  3531. as max_sequence template.
  3532. * src/LongestSequencePieceSelector.cc
  3533. * src/a2algo.h
  3534. * test/Makefile.am
  3535. * test/a2algoTest.cc
  3536. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3537. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3538. * src/usage_text.h
  3539. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3540. Updated doc for --uri-selector, --http-server-listen-port and
  3541. --enable-http-server option. Documented --event-poll option.
  3542. * doc/aria2c.1.txt
  3543. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3544. Updated doc for --enable-http-server.
  3545. * src/usage_text.h
  3546. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3547. Documented --http-server-listen-port and --enable-http-server in
  3548. man page.
  3549. * doc/aria2c.1.txt
  3550. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3551. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3552. translations. Thanks to all translators.
  3553. * po/es.po
  3554. * po/id.po
  3555. * po/it.po
  3556. * po/ru.po
  3557. * po/uk.po
  3558. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. Bump up version number to 1.2.0
  3560. * configure.ac
  3561. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. BtContext::getAnnounceTiers() now returns const reference.
  3563. * src/BtContext.h
  3564. * src/DefaultBtContext.cc
  3565. * src/DefaultBtContext.h
  3566. * test/MockBtContext.h
  3567. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3568. Change the number of retries for tracker request based on the
  3569. number of available tracker in a torrent file.
  3570. * src/TrackerWatcherCommand.cc
  3571. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3572. Added _maxTries property to RequestGroup and assign the option
  3573. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3574. RequestGroup::getMaxTries() instead of
  3575. Option::getAsInt(PREF_MAX_TRIES).
  3576. * src/AbstractCommand.cc
  3577. * src/RequestGroup.cc
  3578. * src/RequestGroup.h
  3579. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3580. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3581. Mandriva. I modified the patch: make RequestGroup have the
  3582. timeout value and AdaptiveURISelector directly modifies that
  3583. value.
  3584. * src/AbstractCommand.cc
  3585. * src/AdaptiveURISelector.cc
  3586. * src/AdaptiveURISelector.h
  3587. * src/FtpNegotiationCommand.cc
  3588. * src/RequestGroup.cc
  3589. * src/RequestGroup.h
  3590. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Fixed compiler warning
  3592. * test/IteratableChecksumValidatorTest.cc
  3593. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3594. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3595. integrated downloads. This PieceSelector subclass finds the
  3596. longest continuous sequence in the available missing pieces and
  3597. selects the last index of such sequence. This makes HTTP/FTP
  3598. connections less interrupted by the pieces obtained by BitTorrent
  3599. peers.
  3600. * src/DefaultPieceStorage.cc
  3601. * src/DefaultPieceStorage.h
  3602. * src/LongestSequencePieceSelector.cc
  3603. * src/LongestSequencePieceSelector.h
  3604. * src/Makefile.am
  3605. * src/PieceSelector.h
  3606. * src/RarestPieceSelector.h
  3607. * src/RequestGroup.cc
  3608. * test/BtDependencyTest.cc
  3609. * test/DefaultPieceStorageTest.cc
  3610. * test/IteratableChecksumValidatorTest.cc
  3611. * test/LongestSequencePieceSelectorTest.cc
  3612. * test/Makefile.am
  3613. * test/SegmentManTest.cc
  3614. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3615. Fixed the bug that the average speed is wrong in
  3616. http/ftp/BitTorrent integrated download. Only the download bytes
  3617. in BitTorrent were considered.
  3618. * src/RequestGroup.cc
  3619. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3620. Choose port for BitTorrent/DHT randomly from the specified range.
  3621. * src/DHTConnectionImpl.cc
  3622. * src/PeerListenCommand.cc
  3623. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3624. Send HTTP Authorization header only if it is requested by the
  3625. server(response 401). There are some exceptions. The authorization
  3626. header for proxy is always sent if it is available without request
  3627. by the server. If username/password is specified in the URI, it
  3628. is immediately sent to the server without request by the server.
  3629. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3630. SharedHandle<AuthConfig>().
  3631. NetrcAuthResolver::resolveAuthConfig() returns
  3632. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3633. * src/AbstractAuthResolver.cc
  3634. * src/AbstractProxyRequestCommand.cc
  3635. * src/AuthConfigFactory.cc
  3636. * src/AuthConfigFactory.h
  3637. * src/HttpConnection.cc
  3638. * src/HttpRequest.cc
  3639. * src/HttpRequest.h
  3640. * src/HttpResponse.cc
  3641. * src/HttpResponseCommand.cc
  3642. * src/HttpSkipResponseCommand.cc
  3643. * test/AuthConfigFactoryTest.cc
  3644. * test/HttpRequestTest.cc
  3645. * test/HttpResponseTest.cc
  3646. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3647. Remove leading "--" from help keyword and a substring after "="
  3648. from help keyword, so that one can query options by '-h--max-' or
  3649. '-hmax-peers=10'.
  3650. * src/option_processing.cc
  3651. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3652. Rewritten PStringVisitor and its implementation.
  3653. * src/PStringBuildVisitor.cc
  3654. * src/PStringBuildVisitor.h
  3655. * src/PStringDatum.h
  3656. * src/PStringNumLoop.h
  3657. * src/PStringSegment.cc
  3658. * src/PStringSegment.h
  3659. * src/PStringSelect.h
  3660. * src/PStringVisitor.h
  3661. * src/download_helper.cc
  3662. * test/PStringBuildVisitorTest.cc
  3663. * test/ParameterizedStringParserTest.cc
  3664. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3665. Persist connection between the built-in HTTP server and a client
  3666. if a client supports keep-alive. Fixed the bug that aria2 exits
  3667. when the HTTP server receives EOF from a client.
  3668. * src/HttpServer.cc
  3669. * src/HttpServer.h
  3670. * src/HttpServerCommand.cc
  3671. * src/HttpServerCommand.h
  3672. * src/HttpServerResponseCommand.cc
  3673. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Added experimental built-in HTTP server. Currently, when a client
  3675. accesses to the server, it responds with the current download
  3676. progress. By default, it is disabled. To enable the server, give
  3677. --enable-http-server option. To change the default port number
  3678. for the server to listen to, use --http-server-listen-port option.
  3679. The response HTML is very simple and refreshes it self each 1
  3680. second. Because of this refresh, you see flicker in normal web
  3681. browser such as Firefox. I recommend to use console-based browser
  3682. such as elinks, w3m. To connect to the server, run 'elinks
  3683. http://localhost:6800/' while running aria2. Please replace port
  3684. number '6800'(which is default) with your preference.
  3685. * src/DownloadEngineFactory.cc
  3686. * src/HttpHeader.cc
  3687. * src/HttpHeader.h
  3688. * src/HttpHeaderProcessor.cc
  3689. * src/HttpHeaderProcessor.h
  3690. * src/HttpListenCommand.cc
  3691. * src/HttpListenCommand.h
  3692. * src/HttpServer.cc
  3693. * src/HttpServer.h
  3694. * src/HttpServerCommand.cc
  3695. * src/HttpServerCommand.h
  3696. * src/HttpServerResponseCommand.cc
  3697. * src/HttpServerResponseCommand.h
  3698. * src/Makefile.am
  3699. * src/OptionHandlerFactory.cc
  3700. * src/Util.cc
  3701. * src/Util.h
  3702. * src/help_tags.h
  3703. * src/option_processing.cc
  3704. * src/prefs.cc
  3705. * src/prefs.h
  3706. * src/usage_text.h
  3707. * test/HttpHeaderProcessorTest.cc
  3708. * test/UtilTest.cc
  3709. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Removed.
  3711. * src/CheckIntegrityMan.cc
  3712. * src/FileAllocationMan.cc
  3713. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3714. Made (piece) hash check sequential for each RequestGroup because
  3715. simultaneous hash check is slower than sequential execution.
  3716. * src/CheckIntegrityCommand.cc
  3717. * src/CheckIntegrityDispatcherCommand.cc
  3718. * src/CheckIntegrityDispatcherCommand.h
  3719. * src/CheckIntegrityMan.h
  3720. * src/ConsoleStatCalc.cc
  3721. * src/DownloadCommand.cc
  3722. * src/DownloadEngine.cc
  3723. * src/DownloadEngine.h
  3724. * src/DownloadEngineFactory.cc
  3725. * src/Makefile.am
  3726. * src/Makefile.in
  3727. * src/RequestGroup.cc
  3728. * src/StatCalc.h
  3729. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3730. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3731. SequentialDispatcherCommand.
  3732. * src/FileAllocationDispatcherCommand.cc
  3733. * src/SequentialDispatcherCommand.h
  3734. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. Rewritten FileAllocationDispatcherCommand using brand new
  3736. SequentialDispatcherCommand.
  3737. * src/DownloadEngineFactory.cc
  3738. * src/FileAllocationCommand.cc
  3739. * src/FileAllocationDispatcherCommand.cc
  3740. * src/FileAllocationDispatcherCommand.h
  3741. * src/Makefile.am
  3742. * src/SequentialDispatcherCommand.h
  3743. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3744. Replaced FileAllocationMan with
  3745. SequentialPicker<FileAllocationEntry>.
  3746. * src/BtCheckIntegrityEntry.cc
  3747. * src/ConsoleStatCalc.cc
  3748. * src/DownloadEngine.cc
  3749. * src/DownloadEngine.h
  3750. * src/DownloadEngineFactory.cc
  3751. * src/FileAllocationCommand.cc
  3752. * src/FileAllocationDispatcherCommand.cc
  3753. * src/FileAllocationMan.h
  3754. * src/Makefile.am
  3755. * src/SequentialPicker.h
  3756. * src/StatCalc.h
  3757. * src/StreamCheckIntegrityEntry.cc
  3758. * test/Makefile.am
  3759. * test/SequentialPickerTest.cc
  3760. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3761. Added doc for adaptive URI selector.
  3762. * doc/aria2c.1.txt
  3763. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3764. Added doc for adaptive URI selector.
  3765. * src/usage_text.h
  3766. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. Added doc for --bt-max-peers option.
  3768. * doc/aria2c.1.txt
  3769. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3770. Added doc for --bt-hash-check-seed option.
  3771. * doc/aria2c.1.txt
  3772. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3773. Documented exit codes.
  3774. * doc/aria2c.1.txt
  3775. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3776. Added --bt-max-peers option to specify the maximum number of peers
  3777. per torrent. 0 means unlimited number of peers.
  3778. * src/ActivePeerConnectionCommand.cc
  3779. * src/BtRuntime.h
  3780. * src/DefaultPeerStorage.cc
  3781. * src/DefaultPeerStorage.h
  3782. * src/OptionHandlerFactory.cc
  3783. * src/RequestGroup.cc
  3784. * src/option_processing.cc
  3785. * src/prefs.cc
  3786. * src/prefs.h
  3787. * src/usage_text.h
  3788. * test/DefaultPeerStorageTest.cc
  3789. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3790. Added --bt-hash-check-seed option. If true is given to this
  3791. option, after hash check using --check-integrity option and file
  3792. is complete, continue to seed file. If you want to check file and
  3793. download it only when it is damaged or incomplete, set this option
  3794. to false. This option has effect only on BitTorrent download.
  3795. The default value is true(This is the same behavior with the
  3796. previous release).
  3797. * src/BtCheckIntegrityEntry.cc
  3798. * src/OptionHandlerFactory.cc
  3799. * src/option_processing.cc
  3800. * src/prefs.cc
  3801. * src/prefs.h
  3802. * src/usage_text.h
  3803. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3804. Updated copyright year.
  3805. * src/version_usage.cc
  3806. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3807. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3808. * doc/aria2c.1.txt
  3809. * src/usage_text.h
  3810. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3811. Made the max value of split option unlimited.
  3812. * doc/aria2c.1.txt
  3813. * src/OptionHandlerFactory.cc
  3814. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. Fixed compile warning/error.
  3816. * src/DownloadResult.h
  3817. * src/HttpDownloadCommand.cc
  3818. * src/ServerStat.cc
  3819. * test/RequestGroupTest.cc
  3820. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3821. Added --event-poll option to select the method for polling events.
  3822. The available methods are "select" and "epoll". "epoll" is
  3823. available on Linux only. The earlier release has the compile
  3824. option to choose from these methods.
  3825. * configure.ac
  3826. * src/RequestGroupMan.cc
  3827. * src/OptionHandlerFactory.cc
  3828. * src/EpollEventPoll.h
  3829. * src/StreamFileAllocationEntry.cc
  3830. * src/a2io.h
  3831. * src/SelectEventPoll.h
  3832. * src/option_processing.cc
  3833. * src/prefs.h
  3834. * src/EpollEventPoll.cc
  3835. * src/EventPoll.h
  3836. * src/SocketCore.h
  3837. * src/Makefile.am
  3838. * src/main.cc
  3839. * src/DownloadEngine.h
  3840. * src/SelectEventPoll.cc
  3841. * src/DownloadEngine.cc
  3842. * src/SocketCore.cc
  3843. * src/DownloadEngineFactory.cc
  3844. * src/Makefile.in
  3845. * src/prefs.cc
  3846. * src/usage_text.h
  3847. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3848. Included RecoverableException.h from main.cc
  3849. * src/main.cc
  3850. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3851. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3852. now returns last error encountered in the HTTP/FTP downloads as a
  3853. exit status value. If all downloads finished successfully, aria2
  3854. returns 0. The error code is defined in src/DownloadResult.h.
  3855. The error occurred in the download currently in progress is not
  3856. reported as a last error. If no error has encountered but there
  3857. are in progress or waiting downloads, aria2 returns 7.
  3858. * src/AbstractCommand.cc
  3859. * src/DlAbortEx.h
  3860. * src/DlRetryEx.h
  3861. * src/DownloadCommand.cc
  3862. * src/DownloadFailureException.h
  3863. * src/DownloadResult.h
  3864. * src/FtpNegotiationCommand.cc
  3865. * src/HttpSkipResponseCommand.cc
  3866. * src/Makefile.am
  3867. * src/MultiUrlRequestInfo.cc
  3868. * src/MultiUrlRequestInfo.h
  3869. * src/RecoverableException.h
  3870. * src/RequestGroup.cc
  3871. * src/RequestGroup.h
  3872. * src/RequestGroupMan.cc
  3873. * src/RequestGroupMan.h
  3874. * src/URIResult.cc
  3875. * src/URIResult.h
  3876. * src/main.cc
  3877. * src/option_processing.cc
  3878. * test/RequestGroupTest.cc
  3879. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3880. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3881. patch adds AdaptiveURISelector, which selects one of the bests
  3882. mirrors for first and reserved connections. For supplementary
  3883. ones, it returns mirrors which has not been tested yet, and if
  3884. each of them already tested, returns mirrors which has to be
  3885. tested again. Otherwise, it doesn't return anymore mirrors.
  3886. * src/AdaptiveURISelector.cc
  3887. * src/AdaptiveURISelector.h
  3888. * src/FtpNegotiationCommand.cc
  3889. * src/HttpResponseCommand.cc
  3890. * src/Makefile.am
  3891. * src/Makefile.in
  3892. * src/OptionHandlerFactory.cc
  3893. * src/RequestGroup.cc
  3894. * src/RequestGroup.h
  3895. * src/RequestGroupMan.cc
  3896. * src/ServerStat.cc
  3897. * src/ServerStat.h
  3898. * src/ServerStatMan.cc
  3899. * src/SpeedCalc.cc
  3900. * src/URISelector.h
  3901. * src/prefs.cc
  3902. * src/prefs.h
  3903. * test/RequestGroupManTest.cc
  3904. * test/ServerStatManTest.cc
  3905. * test/ServerStatTest.cc
  3906. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3907. Fixed unit test error.
  3908. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3909. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3910. * Release 1.1.2
  3911. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3912. Updated Russian translation. Thanks to the translators.
  3913. * po/ru.po
  3914. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Added the description of --use-head option to man page.
  3916. * doc/aria2c.1.txt
  3917. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. Bump up version number to 1.1.2
  3919. * configure.ac
  3920. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3921. Added --use-head option to toggle whether HEAD method should be
  3922. used in the first HTTP request. By default aria2 uses HEAD method
  3923. as the first request. When the server doesn't recognize HEAD, then
  3924. give aria2 --use-head=false to force aria2 to use GET method
  3925. instead.
  3926. * src/OptionHandlerFactory.cc
  3927. * src/RequestGroupMan.cc
  3928. * src/option_processing.cc
  3929. * src/prefs.cc
  3930. * src/prefs.h
  3931. * src/usage_text.h
  3932. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3933. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3934. message is received before CHOKE message. The old implementation
  3935. doen't clear the use-bit of the piece when recieved REJECT
  3936. message.
  3937. * src/DefaultBtMessageDispatcher.cc
  3938. * test/DefaultBtMessageDispatcherTest.cc
  3939. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3940. * Release 1.1.1
  3941. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3942. Bump up version number to 1.1.1.
  3943. * configure.ac
  3944. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3945. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3946. is printed repeatedly.
  3947. * src/ConsoleStatCalc.cc
  3948. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. * Release 1.1.0
  3950. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3951. Added ifdef clause for conditional compilation.
  3952. * src/main.cc
  3953. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3954. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3955. translations. Thanks to all translators.
  3956. * po/ja.po
  3957. * po/ru.po
  3958. * po/uk.po
  3959. * po/zh_CN.po
  3960. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3961. Added the preceding ">>> " before the message "Printing the
  3962. contents of file..." to make the output more readable.
  3963. * src/main.cc
  3964. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3965. Added try-catch block in the loop in showFiles() to continue the
  3966. operation even if the exception occurred in one file.
  3967. * src/main.cc (showFiles)
  3968. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3969. Made messages in showFiles() translatable.
  3970. * po/aria2.pot
  3971. * src/main.cc
  3972. * src/message.h
  3973. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3974. Print the contents of Torrent/Metalink files are printed without
  3975. -T/-M options.
  3976. * src/main.cc
  3977. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3978. Escaped '--' with '\--'
  3979. * README
  3980. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3981. Updated "How to build" section in README. Mentioned about
  3982. --with-ca-bundle compile option.
  3983. * README
  3984. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Bump up version number to 1.1.0.
  3986. * configure.ac
  3987. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Added a note for --dht-listen-port option.
  3989. * doc/aria2c.1.txt
  3990. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3991. Update doc for --realtime-chunk-checksum option.
  3992. * doc/aria2c.1.txt
  3993. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3994. Update doc for --realtime-chunk-checksum option.
  3995. * src/usage_text.h
  3996. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3997. Updated French, Japanese, Russian and Ukrainian translations.
  3998. Thanks to all translators.
  3999. * po/fr.po
  4000. * po/ja.po
  4001. * po/ru.po
  4002. * po/uk.po
  4003. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. Renamed aria2c.pot to aria2.pot
  4005. * po/aria2.pot
  4006. * po/aria2c.pot: Removed.
  4007. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4008. Removed MetaEntry.h
  4009. * src/Makefile.am
  4010. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4011. Rename file by appending digits if a local file exists and its
  4012. file size is larger than that of remote file with --continue
  4013. option. The old implementation just throws exception in such case.
  4014. * src/RequestGroup.cc
  4015. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4016. Fixed the bug that download progress summary is not printed in the
  4017. interval specified by the option.
  4018. * src/ConsoleStatCalc.cc
  4019. * src/ConsoleStatCalc.h
  4020. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4021. Fixed compiler warning
  4022. * src/Cookie.cc
  4023. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4024. Fixed the cookie implementation based on RFC2965.
  4025. Now if a value in domain field is not started with dot, then
  4026. prepend dot. That means a cookie with domain=sf.net is sent to
  4027. wiki.sf.net.
  4028. * src/Cookie.cc
  4029. * test/CookieParserTest.cc
  4030. * test/CookieStorageTest.cc
  4031. * test/CookieTest.cc
  4032. * test/NsCookieParserTest.cc
  4033. * test/Sqlite3MozCookieParserTest.cc
  4034. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4035. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4036. is enabled and the server doesn't support keep-alive.
  4037. * src/AbstractCommand.cc
  4038. * src/DownloadCommand.cc
  4039. * src/HttpDownloadCommand.cc
  4040. * src/HttpDownloadCommand.h
  4041. * src/HttpResponseCommand.cc
  4042. * src/Request.cc
  4043. * src/Request.h
  4044. * test/RequestTest.cc
  4045. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4046. Removed Dictionary/List/Data and its related classes.
  4047. * src/BencodeVisitor.cc: Removed.
  4048. * src/BencodeVisitor.h: Removed.
  4049. * src/Data.cc: Removed.
  4050. * src/Data.h: Removed.
  4051. * src/Dictionary.cc: Removed.
  4052. * src/Dictionary.h: Removed.
  4053. * src/List.cc: Removed.
  4054. * src/List.h: Removed.
  4055. * src/Makefile.am
  4056. * src/MetaEntry.h: Removed.
  4057. * src/MetaEntryVisitor.h: Removed.
  4058. * src/MetaFileUtil.cc: Removed.
  4059. * src/MetaFileUtil.h: Removed.
  4060. * test/BencodeVisitorTest.cc: Removed.
  4061. * test/DataTest.cc: Removed.
  4062. * test/DictionaryTest.cc: Removed.
  4063. * test/ListTest.cc: Removed.
  4064. * test/Makefile.am
  4065. * test/MetaFileUtilTest.cc: Removed.
  4066. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4067. Removed include of MetaEntry.h
  4068. * test/DHTMessageTrackerEntryTest.cc
  4069. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4070. Use BDE instead of Dictionary/List/Data.
  4071. * src/AnnounceList.cc
  4072. * src/AnnounceList.h
  4073. * test/AnnounceListTest.cc
  4074. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4075. Use BDE instead of Dictionary/List/Data.
  4076. * src/DHTAbstractMessage.cc
  4077. * src/DHTAbstractMessage.h
  4078. * src/DHTAnnouncePeerMessage.cc
  4079. * src/DHTAnnouncePeerMessage.h
  4080. * src/DHTAnnouncePeerReplyMessage.cc
  4081. * src/DHTAnnouncePeerReplyMessage.h
  4082. * src/DHTFindNodeMessage.cc
  4083. * src/DHTFindNodeMessage.h
  4084. * src/DHTFindNodeReplyMessage.cc
  4085. * src/DHTFindNodeReplyMessage.h
  4086. * src/DHTGetPeersMessage.cc
  4087. * src/DHTGetPeersMessage.h
  4088. * src/DHTGetPeersReplyMessage.cc
  4089. * src/DHTGetPeersReplyMessage.h
  4090. * src/DHTMessageFactory.h
  4091. * src/DHTMessageFactoryImpl.cc
  4092. * src/DHTMessageFactoryImpl.h
  4093. * src/DHTMessageReceiver.cc
  4094. * src/DHTMessageTracker.cc
  4095. * src/DHTMessageTracker.h
  4096. * src/DHTPingMessage.cc
  4097. * src/DHTPingMessage.h
  4098. * src/DHTPingReplyMessage.cc
  4099. * src/DHTPingReplyMessage.h
  4100. * src/DHTQueryMessage.cc
  4101. * src/DHTQueryMessage.h
  4102. * src/DHTResponseMessage.cc
  4103. * src/DHTResponseMessage.h
  4104. * test/DHTAnnouncePeerMessageTest.cc
  4105. * test/DHTAnnouncePeerReplyMessageTest.cc
  4106. * test/DHTFindNodeMessageTest.cc
  4107. * test/DHTFindNodeReplyMessageTest.cc
  4108. * test/DHTGetPeersMessageTest.cc
  4109. * test/DHTGetPeersReplyMessageTest.cc
  4110. * test/DHTMessageFactoryImplTest.cc
  4111. * test/DHTMessageTrackerTest.cc
  4112. * test/DHTPingMessageTest.cc
  4113. * test/DHTPingReplyMessageTest.cc
  4114. * test/MockDHTMessageFactory.h
  4115. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4116. Added tests the case where length < 0 is specified.
  4117. * test/BencodeTest.cc
  4118. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4119. Fixed memory leak in decoderawstring()
  4120. * src/bencode.cc
  4121. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4122. Added missing #ifdef guard. Added uc() function for String and
  4123. removeKey() for Dict.
  4124. * src/bencode.cc
  4125. * src/bencode.h
  4126. * test/BencodeTest.cc
  4127. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4128. Use BDE instead of Dictionary/List/Data.
  4129. * src/HandshakeExtensionMessage.cc
  4130. * src/HandshakeExtensionMessage.h
  4131. * test/HandshakeExtensionMessageTest.cc
  4132. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4133. Added --max-overall-upload-limit option. This option limits the
  4134. overall upload speed. Stated in help message that the existing
  4135. --max-upload-limit option limits the upload speed per each
  4136. torrent. Man page is also updated.
  4137. * doc/aria2c.1.txt
  4138. * src/DefaultBtMessageDispatcher.cc
  4139. * src/DefaultBtMessageDispatcher.h
  4140. * src/OptionHandlerFactory.cc
  4141. * src/PeerInteractionCommand.cc
  4142. * src/option_processing.cc
  4143. * src/prefs.cc
  4144. * src/prefs.h
  4145. * src/usage_text.h
  4146. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4147. Use BDE instead of Dictionary/List/Data classes.
  4148. * src/CompactPeerListProcessor.cc
  4149. * src/CompactPeerListProcessor.h
  4150. * src/DefaultBtAnnounce.cc
  4151. * src/DefaultBtContext.cc
  4152. * src/DefaultBtContext.h
  4153. * src/DefaultPeerListProcessor.cc
  4154. * src/DefaultPeerListProcessor.h
  4155. * src/DelegatingPeerListProcessor.cc
  4156. * src/DelegatingPeerListProcessor.h
  4157. * src/PeerListProcessor.h
  4158. * src/UTPexExtensionMessage.cc
  4159. * src/Util.h
  4160. * src/message.h
  4161. * test/DefaultBtContextTest.cc
  4162. * test/DefaultPeerListProcessorTest.cc
  4163. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4164. Added bencode helper functions and BDE class.
  4165. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4166. * src/Makefile.am
  4167. * src/bencode.cc
  4168. * src/bencode.h
  4169. * test/BencodeTest.cc
  4170. * test/Makefile.am
  4171. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4172. Fixed the bug that bad URI is sent to the tracker when the announe
  4173. URI in torrent file includes query.
  4174. * src/DefaultBtAnnounce.cc
  4175. * test/DefaultBtAnnounceTest.cc
  4176. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4177. Added Option::blank().
  4178. Use !Option::blank(name) instead of Option::defined(name) for
  4179. the options that take filename.
  4180. * src/MultiUrlRequestInfo.cc
  4181. * src/Option.cc
  4182. * src/Option.h
  4183. * src/main.cc
  4184. * src/option_processing.cc
  4185. * test/OptionTest.cc
  4186. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4187. Documented the default value of --check-certificate option in man
  4188. page.
  4189. * doc/aria2c.1.txt
  4190. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4191. Enabled --check-certificate by default. Added compile
  4192. time(configure) option --with-ca-bundle to specify CA bundle.
  4193. Warn if --check-certificate=true and --ca-certificate is not
  4194. specified or loading CA certificate is failed.
  4195. * configure.ac
  4196. * src/MultiUrlRequestInfo.cc
  4197. * src/OptionHandlerFactory.cc
  4198. * src/message.h
  4199. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4200. Mentioned https tag in help option.
  4201. * doc/aria2c.1.txt
  4202. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4203. Added `https' tag to help option category. Added https tag to
  4204. --ca-certificate, --certificate, --check-certificate and
  4205. --private-key option.
  4206. * src/OptionHandlerFactory.cc
  4207. * src/help_tags.h
  4208. * src/option_processing.cc
  4209. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4210. Changed the package name from `aria2c' to `aria2' in order to fix
  4211. the packaging issue in Debian and Fedora. The name of the
  4212. executable is not changed.
  4213. * configure.ac
  4214. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4215. Fixed typos
  4216. * src/usage_text.h
  4217. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4218. Fixed typos and updated doc.
  4219. * README
  4220. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4221. Fixed typos
  4222. * doc/aria2c.1.txt
  4223. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4224. Fixed typos
  4225. * src/usage_text.h
  4226. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4227. Print a message when no files to download.
  4228. * src/download_helper.cc
  4229. * src/main.cc
  4230. * src/message.h
  4231. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4232. RFC3986 complied Percent-Encoding(urlencode).
  4233. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4234. ones.
  4235. * src/Request.cc
  4236. * src/Util.cc
  4237. * src/Util.h
  4238. * test/BtHandshakeMessageTest.cc
  4239. * test/DefaultBtAnnounceTest.cc
  4240. * test/DefaultBtContextTest.cc
  4241. * test/RequestTest.cc
  4242. * test/UtilTest.cc
  4243. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Fixed the bug that prevents aria2 from downloading 0-length files
  4245. via HTTP/FTP.
  4246. * src/DefaultBtContext.cc
  4247. * src/DefaultBtContext.h
  4248. * src/DownloadContext.h
  4249. * src/FtpNegotiationCommand.cc
  4250. * src/HttpResponseCommand.cc
  4251. * src/HttpResponseCommand.h
  4252. * src/RequestGroup.cc
  4253. * src/SingleFileDownloadContext.cc
  4254. * src/SingleFileDownloadContext.h
  4255. * test/BtPostDownloadHandlerTest.cc
  4256. * test/MetalinkPostDownloadHandlerTest.cc
  4257. * test/MockBtContext.h
  4258. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4259. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4260. * src/option_processing.cc
  4261. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4262. Applied aria2-1.0.1-mingw.patch.
  4263. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4264. mingw.
  4265. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4266. * src/SocketCore.cc
  4267. * src/a2netcompat.h
  4268. * test/SocketCoreTest.cc
  4269. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4270. * Release 1.0.1
  4271. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4272. Updated Ukrainian and Norwegian Nynorsk translations.
  4273. Thanks to all translators.
  4274. * po/nn.po
  4275. * po/uk.po
  4276. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4277. Don't show download result when -S option is used.
  4278. * src/main.cc
  4279. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4280. Bump up version number to 1.0.1
  4281. * configure.ac
  4282. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4283. Closed files after the test cases in MultiDiskWriterTest::
  4284. testResetDiskWriterEntries(). This will fix the unit test error
  4285. in mingw32 build.
  4286. * test/MultiDiskWriterTest.cc
  4287. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4288. Use HEAD method to get file size from HTTP server for segmented
  4289. downloading.
  4290. The request to the BitTorrent Tracker always uses GET method because
  4291. the response of the tracker is small and it doesn't need segmented
  4292. download.
  4293. * src/FtpNegotiationCommand.cc
  4294. * src/HttpRequest.cc
  4295. * src/HttpResponseCommand.cc
  4296. * src/HttpSkipResponseCommand.cc
  4297. * src/RequestGroup.cc
  4298. * src/RequestGroup.h
  4299. * src/TrackerWatcherCommand.cc
  4300. * test/HttpRequestTest.cc
  4301. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4302. Fixed the bug that causes floating exception when -T option is used and
  4303. no URIs are given.
  4304. * src/download_helper.cc
  4305. * test/DownloadHelperTest.cc
  4306. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4307. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4308. errors in MinGW:
  4309. Closed file after saving server stats (RequestGroupMan.cc)
  4310. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4311. Ignored case & handled 2-digit years (strptime.c)
  4312. Added missing suseconds_t definition (a2time.h)
  4313. Fixed socket CLOSE() define (SocketCore.cc)
  4314. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4315. Changed utime() test values from x000 to x00000 as MinGW failed on
  4316. values less than timezone offset from Unix epoch
  4317. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4318. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4319. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4320. handle negative dates (CookieParserTest.cc)
  4321. * src/a2time.h
  4322. * src/FtpConnection.cc
  4323. * src/RequestGroupMan.cc
  4324. * src/SocketCore.cc
  4325. * src/strptime.c
  4326. * test/CookieParserTest.cc
  4327. * test/CopyDiskAdaptorTest.cc
  4328. * test/FileTest.cc
  4329. * test/FtpConnectionTest.cc
  4330. * test/MultiDiskAdaptorTest.cc
  4331. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4332. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4333. * doc/aria2c.1.txt
  4334. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4335. * Release 1.0.0
  4336. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Added '~' to reserved characters.
  4338. * src/Util.cc
  4339. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4340. Do not urlencode Request::url in setUrl() because we want unmodified
  4341. URL using Request::getUrl()
  4342. * src/Request.cc
  4343. * src/Request.h
  4344. * test/RequestTest.cc
  4345. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4346. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4347. Thanks to all translators.
  4348. * po/bg.po
  4349. * po/fr.po
  4350. * po/ja.po
  4351. * po/ru.po
  4352. * po/uk.po
  4353. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4354. Bump up version number to 1.0.0
  4355. * configure.ac
  4356. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4357. Added nosqlite3 build to build_test.sh.
  4358. Renamed noxml as expat.
  4359. * build_test.sh
  4360. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4361. Updated INPUT FILE section.
  4362. * doc/aria2c.1.txt
  4363. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4364. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4365. on big endian systems because test .aria2 files are made for little
  4366. endian systems.
  4367. * test/DefaultBtProgressInfoFileTest.cc
  4368. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4369. Dropped ares support.
  4370. * README
  4371. * configure.ac
  4372. * m4/libares.m4: Removed.
  4373. * src/AsyncNameResolver.cc
  4374. * src/Makefile.am
  4375. * test/Makefile.am
  4376. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4377. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4378. Removed const qualifier from DiskWriter::size().
  4379. * src/AbstractDiskWriter.cc
  4380. * src/AbstractDiskWriter.h
  4381. * src/ByteArrayDiskWriter.cc
  4382. * src/ByteArrayDiskWriter.h
  4383. * src/DiskWriter.h
  4384. * test/ByteArrayDiskWriterTest.cc
  4385. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4386. Fixed the bug that causes segmentation fault/bus error during executing
  4387. choking algorithm while seeding. This is caused by improper
  4388. implementation of compare function which returns inconsistent results
  4389. depending on the timing of last unchoke.
  4390. * src/BtSeederStateChoke.cc
  4391. * src/BtSeederStateChoke.h
  4392. * src/DefaultPeerStorage.cc
  4393. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4394. Removed TODO
  4395. * TODO
  4396. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4397. Added a section that explains how to pass argument to options that
  4398. takes optional arguments with its short form.
  4399. * doc/aria2c.1.txt
  4400. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4401. Added -u for the short form of --max-upload-limit option.
  4402. * doc/aria2c.1.txt
  4403. * src/option_processing.cc
  4404. * src/usage_text.h
  4405. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4406. Added -V for the short form of --check-integrity option.
  4407. Now the argument of --check-integrity option is optional:
  4408. if it is omitted, it is evaluated as true.
  4409. * doc/aria2c.1.txt
  4410. * src/option_processing.cc
  4411. * src/usage_text.h
  4412. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4413. Made the default value of --ftp-pasv option set to true and it can take
  4414. true/false values.
  4415. * src/OptionHandlerFactory.cc
  4416. * src/option_processing.cc
  4417. * src/usage_text.h
  4418. * doc/aria2c.1.txt
  4419. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4420. Given custom random number generator to std::random_shuffle.
  4421. * src/AnnounceList.cc
  4422. * src/BtLeecherStateChoke.cc
  4423. * src/BtSeederStateChoke.cc
  4424. * src/DefaultBtRequestFactory.cc
  4425. * src/MetalinkEntry.cc
  4426. * src/RarestPieceSelector.cc
  4427. * src/SimpleRandomizer.cc
  4428. * src/SimpleRandomizer.h
  4429. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4430. Now the default value of --enable-direct-io is true.
  4431. * src/OptionHandlerFactory.cc
  4432. * doc/aria2c.1.txt
  4433. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4434. Erase peer before executing onReturningPeer and onErasingPeer
  4435. because choking algorithm called from onReturningPeer doesn't
  4436. like erasing peer in the active peer list.
  4437. * src/DefaultPeerStorage.cc
  4438. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4439. Instead of creating special filename in createDownloadResult() if
  4440. inMemoryDownload() is true, now it is done in getFilePath().
  4441. * src/RequestGroup.cc
  4442. * test/RequestGroupTest.cc
  4443. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4444. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4445. processed in memory. This is the fix for previous comment out.
  4446. * src/MemoryBufferPreDownloadHandler.cc
  4447. * src/RequestGroup.cc
  4448. * src/RequestGroup.h
  4449. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4450. Commented out the code which sets virtual directory path "[MEMORY]"
  4451. propagate directory to store to following RequestGroup.
  4452. * src/MemoryBufferPreDownloadHandler.cc
  4453. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4454. Bump up version number to 1.0.0b
  4455. * configure.ac
  4456. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4457. Added input_uris.txt to EXTRA_DIST
  4458. * test/Makefile.am
  4459. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4460. Removed PeerObject.h from Makefile.am
  4461. * src/Makefile.am
  4462. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. Avoid slow seeding
  4464. * src/PeerInteractionCommand.cc
  4465. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4466. Updated usage for -i option.
  4467. * src/usage_text.h (TEXT_INPUT_FILE)
  4468. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4469. Added INPUT FILE section to man page.
  4470. Escaped fake URLs.
  4471. * doc/aria2c.1.txt
  4472. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4473. Fixed wrong note position for -o option.
  4474. * doc/aria2c.1.txt
  4475. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4476. Fixed compile error without SSL/XML library.
  4477. * src/DefaultBtProgressInfoFile.cc
  4478. * src/DefaultBtProgressInfoFile.h
  4479. * src/FileMetalinkParserState.cc
  4480. * src/RequestGroup.h
  4481. * src/SocketCore.cc
  4482. * src/SocketCore.h
  4483. * src/VerificationMetalinkParserState.cc
  4484. * src/download_helper.h
  4485. * src/main.cc
  4486. * test/DefaultBtProgressInfoFileTest.cc
  4487. * test/DownloadHelperTest.cc
  4488. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4489. Rewritten URI handling functions. They are now provided as a testable
  4490. functions.
  4491. * src/Makefile.am
  4492. * src/RequestGroup.cc
  4493. * src/RequestGroup.h
  4494. * src/download_helper.cc
  4495. * src/download_helper.h
  4496. * src/main.cc
  4497. * test/DownloadHelperTest.cc
  4498. * test/Makefile.am
  4499. * test/input_uris.txt
  4500. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4501. Quickly terminate commands when ctrl-c is pressed.
  4502. * src/DownloadEngine.cc
  4503. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4504. Quickly terminate idle commands when download finished.
  4505. * src/AbstractCommand.cc
  4506. * src/DownloadCommand.cc
  4507. * src/DownloadEngine.cc
  4508. * src/DownloadEngine.h
  4509. * src/SleepCommand.cc
  4510. * src/SleepCommand.h
  4511. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Added the ability to specify output filename and directory in input
  4513. file.
  4514. Additional parameters are added in the following line of URIs
  4515. with proceeding white space(s), 1 parameter in 1 line.
  4516. The parameter names are the same with the command-line option name
  4517. without proceeding "--". Not all the options are available here:
  4518. at the moment, 'dir' and 'out' options are avialable.
  4519. Please note that out option has no effect against Metalink or BitTorrent
  4520. downloads.
  4521. Example input file:
  4522. http://host/foo-1.1.tar.bz2
  4523. out=foo.tar.bz2
  4524. dir=/tmp/downloads
  4525. http://host/thundermonkey-2.0.tar.bz2
  4526. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4527. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4528. thundermonkey-2.0.tar.bz2 is saved as
  4529. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4530. * src/BtPostDownloadHandler.cc
  4531. * src/Metalink2RequestGroup.cc
  4532. * src/Metalink2RequestGroup.h
  4533. * src/MetalinkPostDownloadHandler.cc
  4534. * src/UriListParser.cc
  4535. * src/UriListParser.h
  4536. * src/main.cc
  4537. * test/Metalink2RequestGroupTest.cc
  4538. * test/UriListParserTest.cc
  4539. * test/filelist1.txt
  4540. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4541. Fixed error when SSL library is not found.
  4542. * configure.ac
  4543. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4544. Cross referenced among -s, -C and -j options.
  4545. Updated usage of -C and -s options.
  4546. * src/usage_text.h
  4547. * doc/aria2c.1.txt
  4548. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4549. Fixed bad cast in 32bit platforms.
  4550. * test/DefaultPieceStorageTest.cc
  4551. (DefaultPieceStorageTest::testGetCompletedLength)
  4552. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4553. Fixed unit test fails on 32bit platforms.
  4554. * test/CookieParserTest.cc
  4555. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4556. Show an average download speed in Download results.
  4557. * src/BtFileAllocationEntry.cc
  4558. * src/DefaultPieceStorage.cc
  4559. * src/DownloadContext.cc
  4560. * src/DownloadContext.h
  4561. * src/DownloadResult.h
  4562. * src/RequestGroup.cc
  4563. * src/RequestGroupMan.cc
  4564. * src/StreamFileAllocationEntry.cc
  4565. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4566. Fixed the bug that metalink file is not processed if Content-Type
  4567. field has a paramter.
  4568. * src/HttpResponse.cc
  4569. * src/HttpResponse.h
  4570. * test/HttpResponseTest.cc
  4571. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4572. Removed unused code.
  4573. * src/DefaultBtAnnounce.cc
  4574. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4575. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4576. the value larger than DefaultPieceStorage::getTotalLength() when
  4577. in flight pieces are involved.
  4578. * src/DefaultPieceStorage.cc
  4579. * test/DefaultPieceStorageTest.cc
  4580. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4581. Bump up version number to 1.0.0a.
  4582. * configure.ac
  4583. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4584. Updated configure.ac
  4585. * configure.ac
  4586. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4587. Added usege for proxy.
  4588. * doc/aria2c.1.txt
  4589. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4590. Added usage for --ca-certificate, --certificate, --private-key and
  4591. --check-certificate options.
  4592. * doc/aria2c.1.txt
  4593. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4594. Updated man page
  4595. * doc/aria2c.1.txt
  4596. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4597. Added --no-proxy option. It receives comman separated hostname or
  4598. domains to which proxy should not be used.
  4599. aria2 honors the environment variable no_proxy to override no-proxy
  4600. value in configuration file. The user can override the environment
  4601. variable no_proxy with --no-proxy command-line option.
  4602. * src/AbstractCommand.cc
  4603. * src/OptionHandlerFactory.cc
  4604. * src/option_processing.cc
  4605. * src/prefs.cc
  4606. * src/prefs.h
  4607. * src/usage_text.h
  4608. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4609. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4610. The CA certificates are specified in --ca-certificate option.
  4611. By default, the verification is disabled. Use --check-certificate
  4612. option to enable it.
  4613. * src/HttpRequestCommand.cc
  4614. * src/LibgnutlsTLSContext.cc
  4615. * src/LibgnutlsTLSContext.h
  4616. * src/LibsslTLSContext.cc
  4617. * src/LibsslTLSContext.h
  4618. * src/MultiUrlRequestInfo.cc
  4619. * src/OptionHandlerFactory.cc
  4620. * src/SocketCore.cc
  4621. * src/SocketCore.h
  4622. * src/a2functional.h
  4623. * src/message.h
  4624. * src/option_processing.cc
  4625. * src/prefs.cc
  4626. * src/prefs.h
  4627. * src/usage_text.h
  4628. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4629. Added client certificate authentication for SSL/TLS.
  4630. Currently a private key must be decrypted for use with aria2.
  4631. If a user accidentally gives encrypted file to aria2 then following
  4632. thing happens:
  4633. If encrypted private key is given to aria2, it behaves differently
  4634. depending on the ssl library it uses. If aria2 built with openssl then
  4635. openssl prompts the user for password. If aria2 build with gnutls then
  4636. aria2 exists with error at start up.
  4637. * src/DownloadEngineFactory.cc
  4638. * src/MultiUrlRequestInfo.cc
  4639. * src/OptionHandlerFactory.cc
  4640. * src/option_processing.cc
  4641. * src/prefs.cc
  4642. * src/prefs.h
  4643. * src/usage_text.h
  4644. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4645. Introduced TLSContext that holds TLS related data that can be shared
  4646. with multiple SSL connections.
  4647. * src/DownloadEngineFactory.cc
  4648. * src/LibgnutlsTLSContext.cc
  4649. * src/LibgnutlsTLSContext.h
  4650. * src/LibsslTLSContext.cc
  4651. * src/LibsslTLSContext.h
  4652. * src/Makefile.am
  4653. * src/SocketCore.cc
  4654. * src/SocketCore.h
  4655. * src/TLSContext.h
  4656. * src/message.h
  4657. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4658. Fixed the bug that the DiskWriter of the first FileEntry whose
  4659. `needsFileAllocation' property is false is not created
  4660. even if it shares a piece with next FileEntry which `requested' property
  4661. is true.
  4662. Fixed the bug that zero-length file is not created if pre file
  4663. allocation is not done.
  4664. * src/MultiDiskAdaptor.cc
  4665. * src/MultiDiskAdaptor.h
  4666. * test/MultiDiskAdaptorTest.cc
  4667. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4668. Added the ability to pool proxy connection.
  4669. The conneciton in FTP with proxy-method=GET is not pooled.
  4670. Proxy-Connection header will not be sent when sending CONNECT method.
  4671. * src/DownloadEngine.cc
  4672. * src/DownloadEngine.h
  4673. * src/FtpFinishDownloadCommand.cc
  4674. * src/FtpInitiateConnectionCommand.cc
  4675. * src/FtpNegotiationCommand.cc
  4676. * src/HttpDownloadCommand.cc
  4677. * src/HttpInitiateConnectionCommand.cc
  4678. * src/HttpRequest.cc
  4679. * src/HttpRequest.h
  4680. * src/HttpResponse.cc
  4681. * src/HttpSkipResponseCommand.cc
  4682. * test/HttpRequestTest.cc
  4683. * test/HttpResponseTest.cc
  4684. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4685. Handle date before epoch.
  4686. To create *bad* Time object, call Time::null().
  4687. * src/CookieParser.cc
  4688. * src/FtpConnection.cc
  4689. * src/FtpConnection.h
  4690. * src/FtpNegotiationCommand.cc
  4691. * src/RequestGroup.cc
  4692. * src/TimeA2.cc
  4693. * src/TimeA2.h
  4694. * test/CookieParserTest.cc
  4695. * test/FtpConnectionTest.cc
  4696. * test/TimeTest.cc
  4697. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4698. Added support for following envrionment variables: http_proxy,
  4699. https_proxy, ftp_proxy and all_proxy.
  4700. Each variable is equivalent to the aria2 option whose name is the
  4701. variable name with '_' replaced with '-'.
  4702. They overrides options specified in aria2.conf file.
  4703. The envrionment variables can be overrode using command-line option.
  4704. * src/option_processing.cc
  4705. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. Renamed --http-proxy-method as --proxy-method.
  4707. * src/AbstractCommand.cc
  4708. * src/FtpInitiateConnectionCommand.cc
  4709. * src/HttpInitiateConnectionCommand.cc
  4710. * src/OptionHandlerFactory.cc
  4711. * src/option_processing.cc
  4712. * src/prefs.cc
  4713. * src/prefs.h
  4714. * src/usage_text.h
  4715. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4716. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4717. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4718. Above 3 options and --http-proxy option can handle proxy in URL format
  4719. like: http://user:passwd@host:port.
  4720. If a proxy requires user/password, they must be specified in a URL.
  4721. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4722. instead.
  4723. * src/AbstractCommand.cc
  4724. * src/AbstractCommand.h
  4725. * src/AbstractProxyRequestCommand.cc
  4726. * src/AbstractProxyRequestCommand.h
  4727. * src/AuthConfigFactory.cc
  4728. * src/AuthConfigFactory.h
  4729. * src/FtpFinishDownloadCommand.cc
  4730. * src/FtpInitiateConnectionCommand.cc
  4731. * src/FtpInitiateConnectionCommand.h
  4732. * src/FtpNegotiationCommand.cc
  4733. * src/FtpTunnelRequestCommand.cc
  4734. * src/FtpTunnelRequestCommand.h
  4735. * src/HttpDownloadCommand.cc
  4736. * src/HttpInitiateConnectionCommand.cc
  4737. * src/HttpInitiateConnectionCommand.h
  4738. * src/HttpProxyRequestCommand.cc
  4739. * src/HttpProxyRequestCommand.h
  4740. * src/HttpRequest.cc
  4741. * src/HttpRequest.h
  4742. * src/HttpRequestCommand.cc
  4743. * src/HttpRequestCommand.h
  4744. * src/HttpSkipResponseCommand.cc
  4745. * src/InitiateConnectionCommand.cc
  4746. * src/InitiateConnectionCommand.h
  4747. * src/OptionHandlerFactory.cc
  4748. * src/OptionHandlerImpl.h
  4749. * src/Request.cc
  4750. * src/option_processing.cc
  4751. * src/prefs.cc
  4752. * src/prefs.h
  4753. * src/usage_text.h
  4754. * test/AuthConfigFactoryTest.cc
  4755. * test/HttpRequestTest.cc
  4756. * test/OptionHandlerTest.cc
  4757. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4758. Execute choking algorithm when unchoked and interested peer is
  4759. disconected.
  4760. * src/DefaultPeerStorage.cc
  4761. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4762. Added testcase for BtNotInterestedMessage from unchoked peer.
  4763. * test/BtNotInterestedMessageTest.cc
  4764. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4765. Execute choking algorithm when BtInterestedMessage arrives from
  4766. unchoked peer.
  4767. * src/BtInterestedMessage.cc
  4768. * src/BtInterestedMessage.h
  4769. * src/DefaultBtMessageFactory.cc
  4770. * test/BtInterestedMessageTest.cc
  4771. * test/MockPeerStorage.h
  4772. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4773. AuthConfigFactory is now part of DownloadEngine.
  4774. * src/AbstractProxyRequestCommand.cc
  4775. * src/AuthConfigFactory.h
  4776. * src/DownloadEngine.cc
  4777. * src/DownloadEngine.h
  4778. * src/FtpConnection.cc
  4779. * src/FtpConnection.h
  4780. * src/FtpNegotiationCommand.cc
  4781. * src/HttpConnection.cc
  4782. * src/HttpRequest.cc
  4783. * src/HttpRequest.h
  4784. * src/HttpRequestCommand.cc
  4785. * src/HttpResponse.cc
  4786. * src/HttpResponseCommand.cc
  4787. * src/HttpSkipResponseCommand.cc
  4788. * src/MultiUrlRequestInfo.cc
  4789. * src/main.cc
  4790. * test/FtpConnectionTest.cc
  4791. * test/HttpRequestTest.cc
  4792. * test/HttpResponseTest.cc
  4793. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4794. Corrected catched exception type.
  4795. * src/ServerStatMan.cc
  4796. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4797. DNSCache is now part of DownloadEngine.
  4798. * src/DNSCache.h
  4799. * src/DownloadEngine.cc
  4800. * src/DownloadEngine.h
  4801. * src/InitiateConnectionCommand.cc
  4802. * src/MultiUrlRequestInfo.cc
  4803. * test/Makefile.am
  4804. * test/Makefile.in
  4805. * test/SimpleDNSCacheTest.cc
  4806. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4807. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4808. DownloadEngine.
  4809. * src/ActivePeerConnectionCommand.cc
  4810. * src/BtSetup.cc
  4811. * src/CUIDCounter.h
  4812. * src/DHTSetup.cc
  4813. * src/DownloadCommand.cc
  4814. * src/DownloadEngine.cc
  4815. * src/DownloadEngine.h
  4816. * src/DownloadEngineFactory.cc
  4817. * src/FileAllocationDispatcherCommand.cc
  4818. * src/InitiatorMSEHandshakeCommand.cc
  4819. * src/PeerInitiateConnectionCommand.cc
  4820. * src/PeerInteractionCommand.cc
  4821. * src/PeerListenCommand.cc
  4822. * src/RequestGroup.cc
  4823. * src/StreamFileAllocationEntry.cc
  4824. * src/TrackerWatcherCommand.cc
  4825. * src/main.cc
  4826. * test/RequestGroupManTest.cc
  4827. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Implemented commented code in BtSeederStateChoke
  4829. * src/BtSeederStateChoke.cc
  4830. * src/Peer.cc
  4831. * src/Peer.h
  4832. * src/PeerInteractionCommand.cc
  4833. * src/PeerSessionResource.cc
  4834. * src/PeerSessionResource.h
  4835. * test/MockBtMessageDispatcher.h
  4836. * test/PeerSessionResourceTest.cc
  4837. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4838. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4839. its object.
  4840. * src/AbstractBtMessage.cc
  4841. * src/ActivePeerConnectionCommand.cc
  4842. * src/ActivePeerConnectionCommand.h
  4843. * src/BtContextAwareCommand.cc
  4844. * src/BtContextAwareCommand.h
  4845. * src/BtExtendedMessage.cc
  4846. * src/BtExtendedMessage.h
  4847. * src/BtInterestedMessage.cc
  4848. * src/BtInterestedMessage.h
  4849. * src/BtNotInterestedMessage.cc
  4850. * src/BtNotInterestedMessage.h
  4851. * src/BtRegistry.cc
  4852. * src/BtRegistry.h
  4853. * src/BtSeederStateChoke.cc
  4854. * src/BtSetup.cc
  4855. * src/DHTGetPeersCommand.cc
  4856. * src/DHTGetPeersCommand.h
  4857. * src/DHTPeerAnnounceEntry.cc
  4858. * src/DHTPeerAnnounceEntry.h
  4859. * src/DHTPeerAnnounceStorage.cc
  4860. * src/DHTPeerAnnounceStorage.h
  4861. * src/DHTPeerLookupTask.cc
  4862. * src/DHTPeerLookupTask.h
  4863. * src/DHTSetup.cc
  4864. * src/DHTSetup.h
  4865. * src/DHTTaskFactory.h
  4866. * src/DHTTaskFactoryImpl.cc
  4867. * src/DHTTaskFactoryImpl.h
  4868. * src/DefaultBtAnnounce.cc
  4869. * src/DefaultBtInteractive.cc
  4870. * src/DefaultBtInteractive.h
  4871. * src/DefaultBtMessageDispatcher.cc
  4872. * src/DefaultBtMessageDispatcher.h
  4873. * src/DefaultBtMessageFactory.cc
  4874. * src/DefaultBtMessageFactory.h
  4875. * src/DefaultBtMessageReceiver.cc
  4876. * src/DefaultBtProgressInfoFile.cc
  4877. * src/DefaultBtProgressInfoFile.h
  4878. * src/DefaultBtRequestFactory.cc
  4879. * src/DefaultBtRequestFactory.h
  4880. * src/DefaultExtensionMessageFactory.cc
  4881. * src/DefaultExtensionMessageFactory.h
  4882. * src/DefaultPeerStorage.cc
  4883. * src/DefaultPeerStorage.h
  4884. * src/DownloadEngine.cc
  4885. * src/DownloadEngine.h
  4886. * src/InitiatorMSEHandshakeCommand.cc
  4887. * src/InitiatorMSEHandshakeCommand.h
  4888. * src/MSEHandshake.cc
  4889. * src/MSEHandshake.h
  4890. * src/Makefile.am
  4891. * src/Makefile.in
  4892. * src/PeerChokeCommand.cc
  4893. * src/PeerChokeCommand.h
  4894. * src/PeerInitiateConnectionCommand.cc
  4895. * src/PeerInitiateConnectionCommand.h
  4896. * src/PeerInteractionCommand.cc
  4897. * src/PeerInteractionCommand.h
  4898. * src/PeerObject.h
  4899. * src/PeerReceiveHandshakeCommand.cc
  4900. * src/PeerReceiveHandshakeCommand.h
  4901. * src/ReceiverMSEHandshakeCommand.cc
  4902. * src/RequestGroup.cc
  4903. * src/RequestGroup.h
  4904. * src/RequestGroupMan.cc
  4905. * src/RequestGroupMan.h
  4906. * src/SeedCheckCommand.cc
  4907. * src/SeedCheckCommand.h
  4908. * src/ShareRatioSeedCriteria.h
  4909. * src/SimpleBtMessage.cc
  4910. * src/TrackerWatcherCommand.cc
  4911. * src/TrackerWatcherCommand.h
  4912. * src/UTPexExtensionMessage.cc
  4913. * src/UTPexExtensionMessage.h
  4914. * test/BtCancelMessageTest.cc
  4915. * test/BtChokeMessageTest.cc
  4916. * test/BtExtendedMessageTest.cc
  4917. * test/BtInterestedMessageTest.cc
  4918. * test/BtNotInterestedMessageTest.cc
  4919. * test/BtPieceMessageTest.cc
  4920. * test/BtPortMessageTest.cc
  4921. * test/BtRegistryTest.cc
  4922. * test/BtRejectMessageTest.cc
  4923. * test/BtRequestMessageTest.cc
  4924. * test/DHTPeerAnnounceEntryTest.cc
  4925. * test/DHTPeerAnnounceStorageTest.cc
  4926. * test/DefaultBtMessageDispatcherTest.cc
  4927. * test/DefaultBtMessageFactoryTest.cc
  4928. * test/DefaultBtProgressInfoFileTest.cc
  4929. * test/DefaultBtRequestFactoryTest.cc
  4930. * test/DefaultExtensionMessageFactoryTest.cc
  4931. * test/MSEHandshakeTest.cc
  4932. * test/MockDHTTaskFactory.h
  4933. * test/ShareRatioSeedCriteriaTest.cc
  4934. * test/UTPexExtensionMessageTest.cc
  4935. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4936. Fixed compiler warning.
  4937. * test/UtilTest.cc
  4938. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4939. Treat Cookie object as session cookie if expiry = 0 is given.
  4940. With this change, you can specify session scoped cookies in an external
  4941. file setting expiry value to 0.
  4942. * src/Cookie.cc
  4943. * src/Cookie.h
  4944. * test/CookieParserTest.cc
  4945. * test/CookieStorageTest.cc
  4946. * test/CookieTest.cc
  4947. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4948. Changed signature of DHTMessageFactory::createResponseMessage().
  4949. Removed unused validateIDMatch.
  4950. * src/DHTMessageFactory.h
  4951. * src/DHTMessageFactoryImpl.cc
  4952. * src/DHTMessageFactoryImpl.h
  4953. * src/DHTMessageTracker.cc
  4954. * test/DHTMessageFactoryImplTest.cc
  4955. * test/MockDHTMessageFactory.h
  4956. Dropped DHT message coming from same ID of localhost.
  4957. * src/DHTMessageReceiver.cc
  4958. Rejected adding node whose ID is the same as localhost's.
  4959. * src/DHTRoutingTable.cc
  4960. * test/BtPortMessageTest.cc
  4961. * test/DHTRoutingTableTest.cc
  4962. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Pool connection when redirection occurs with Content-Length = 0.
  4964. * src/HttpSkipResponseCommand.cc
  4965. * src/HttpSkipResponseCommand.h
  4966. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4967. Fixed the bug that causes time out when redirection occurs with
  4968. content-length 0.
  4969. * src/HttpResponseCommand.cc
  4970. * src/HttpSkipResponseCommand.cc
  4971. * src/HttpSkipResponseCommand.h
  4972. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4973. Now each status legends is shown only when it appears in Download
  4974. Result. If Download Result has no item, then status legend will not
  4975. be printed.
  4976. * src/RequestGroupMan.cc
  4977. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4978. Removed duplicate creation of OptionHandlers.
  4979. * src/option_processing.cc
  4980. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4981. Fixed the bug that causes segmentation fault when accessing files which
  4982. don't exist or are not included in --select-file option while
  4983. validating chunk checksum.
  4984. * src/MultiDiskAdaptor.cc
  4985. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4986. Fixed compiler warning.
  4987. * test/UtilTest.cc
  4988. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4989. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4990. * src/IteratableChecksumValidator.cc
  4991. * src/IteratableChunkChecksumValidator.cc
  4992. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4993. * Release 0.16.2
  4994. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4995. Added Serbian translation. Updated Ukrainian translation.
  4996. Thanks to all translators.
  4997. * po/sr.po
  4998. * po/uk.po
  4999. * po/LINGUAS
  5000. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5001. Bump up version number to 0.16.2
  5002. * configure.ac
  5003. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5004. Added length equality test to operator== to drop a piece message
  5005. whose length does not match to the requested one.
  5006. * src/RequestSlot.cc
  5007. * test/DefaultBtMessageDispatcherTest.cc
  5008. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5009. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5010. recieved.
  5011. In this fix, if a request larger than 16KiB length is received, aria2
  5012. disconnects the peer.
  5013. * src/BtConstants.h
  5014. * src/PeerMessageUtil.cc
  5015. * src/PeerMessageUtil.h
  5016. * test/BtRequestMessageTest.cc
  5017. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. * Release 0.16.1
  5019. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5020. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5021. * doc/aria2c.1.txt
  5022. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5023. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5024. Updated French, Simplified Chinese and Japanese translations.
  5025. Thanks to all translators.
  5026. en@quot and en@boldquot are also added.
  5027. * po/LINGUAS
  5028. * po/fr.po
  5029. * po/ja.po
  5030. * po/uk.po
  5031. * po/vi.po
  5032. * po/zh_CN.po
  5033. * po/zh_TW.po
  5034. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5035. Bump up version number to 0.16.1.
  5036. * configure.ac
  5037. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5038. Updated README.
  5039. * README
  5040. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5041. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5042. not to replace '--' with em dash character.
  5043. * doc/aria2c.1.txt
  5044. * doc/makeman
  5045. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5046. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5047. every SEC seconds.
  5048. * src/DownloadEngineFactory.cc
  5049. * src/OptionHandlerFactory.cc
  5050. * src/option_processing.cc
  5051. * src/usage_text.h
  5052. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5053. Fixed compile warning on linux-amd64
  5054. * src/FtpConnection.cc
  5055. * src/IteratableChunkChecksumValidator.cc
  5056. * src/MultiDiskAdaptor.cc
  5057. Fixed the bug that unit test fails on linux-amd64
  5058. * test/UtilTest.cc
  5059. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5060. Added --dht-file-path option to change the path to dht.dat, which is a
  5061. serialized DHT routing table.
  5062. * src/OptionHandlerFactory.cc
  5063. * src/option_processing.cc
  5064. * src/usage_text.h
  5065. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5066. Fixed possible underflow.
  5067. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5068. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5069. Fixed the bug that last character in URI is not encoded.
  5070. * src/Request.cc
  5071. * test/RequestTest.cc
  5072. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5073. Fixed the bug that referer header field contains fragment.
  5074. Now Request class removes fragment part of URI and encodes it
  5075. in Request::setUri() and setReferer().
  5076. * src/Request.h
  5077. * src/Request.cc
  5078. * test/RequestTest.cc
  5079. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5080. Added missing m4 macros.
  5081. * m4/cppunit.m4
  5082. * m4/libgcrypt.m4
  5083. * m4/libgnutls-extra.m4
  5084. * m4/libgnutls.m4
  5085. * m4/libxml2.m4
  5086. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5087. Fixed compile error with gcc-4.4(snapshot)
  5088. * src/File.cc
  5089. * src/FtpConnection.cc
  5090. * src/OptionHandlerImpl.h
  5091. * src/Util.cc
  5092. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5093. Removed assert()
  5094. * src/SocketBuffer.cc (SocketBuffer::send)
  5095. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5096. Changed the type of _numNewConnection to unsigned int.
  5097. * src/ActivePeerConnectionCommand.cc
  5098. * src/ActivePeerConnectionCommand.h
  5099. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5100. * Release 0.16.0
  5101. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5102. Updated doc
  5103. * README
  5104. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5105. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5106. translations. Thanks to all translators.
  5107. * po/bg.po
  5108. * po/de.po
  5109. * po/fr.po
  5110. * po/ja.po
  5111. * po/zh_CN.po
  5112. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5113. Bump up version number to 0.16.0.
  5114. * configure.ac
  5115. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5116. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5117. int32_t.
  5118. Changed the type of count to int32_t.
  5119. * src/Metalink2RequestGroup.cc
  5120. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5121. Added test for Time::elapsed(time_t).
  5122. * test/TimeTest.cc
  5123. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5124. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5125. Util::difftv() should be used instead.
  5126. * src/TimeA2.cc
  5127. * src/TimeA2.h
  5128. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5129. Made socket for dht connections non-blocking
  5130. * src/DHTAbstractMessage.cc
  5131. * src/DHTAbstractMessage.h
  5132. * src/DHTConnection.h
  5133. * src/DHTConnectionImpl.cc
  5134. * src/DHTConnectionImpl.h
  5135. * src/DHTMessage.h
  5136. * src/DHTMessageDispatcherImpl.cc
  5137. * src/DHTMessageDispatcherImpl.h
  5138. * src/DHTUnknownMessage.cc
  5139. * src/DHTUnknownMessage.h
  5140. * src/SocketCore.cc
  5141. * src/SocketCore.h
  5142. * test/MockDHTMessage.h
  5143. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Changed the type of offset to int.
  5145. * src/ParameterizedStringParser.cc
  5146. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. Made getAsInt() return int32_t
  5148. * src/Option.h
  5149. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5150. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5151. build.
  5152. * configure.ac
  5153. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5154. Use sqlite3_open if sqlite3_open_v2 is not available.
  5155. * src/Sqlite3MozCookieParser.cc
  5156. * src/Sqlite3MozCookieParser.h
  5157. * m4/sqlite3.m4
  5158. * test/Sqlite3MozCookieParserTest.cc
  5159. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5160. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5161. * src/BtPieceMessage.cc
  5162. * src/DHTPeerAnnounceStorage.cc
  5163. * src/DefaultPieceStorage.cc
  5164. * src/DownloadCommand.cc
  5165. * src/DownloadEngine.cc
  5166. * src/FtpConnection.cc
  5167. * src/PeerConnection.cc
  5168. * src/PeerMessageUtil.cc
  5169. * src/RequestGroup.cc
  5170. * src/RequestGroupMan.cc
  5171. * src/SimpleBtMessage.cc
  5172. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5174. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5175. * src/AbstractDiskWriter.cc
  5176. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5177. Don't set Request::supportsPersistentConnection() in HttpConnection
  5178. since this code is also used in AbstractProxyResponseCommand.
  5179. Moved those code to HttpResponse.
  5180. * src/HttpResponse.cc
  5181. * src/HttpResponse.h
  5182. * src/HttpConnection.cc
  5183. * src/HttpConnection.h
  5184. * src/HttpResponseCommand.cc
  5185. * test/HttpResponseTest.cc
  5186. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5187. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5188. The configuration is minimum: no torrent, no metalink, so there may be
  5189. other compile error on their code.
  5190. * src/a2netcompat.h
  5191. * src/File.cc
  5192. * src/File.h
  5193. * src/SocketCore.cc
  5194. * src/SocketCore.h
  5195. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5196. Made a socket of incoming peer non-blocking.
  5197. * src/PeerListenCommand.cc
  5198. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5199. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5200. whole message data is not sent in one send() call.
  5201. * src/BtPieceMessage.cc
  5202. * src/BtPieceMessage.h
  5203. * src/PeerConnection.cc
  5204. * src/PeerConnection.h
  5205. * src/SimpleBtMessage.cc
  5206. * src/SimpleBtMessage.h
  5207. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5208. Fixed the bug that aria2 downloads faster than max-download-limit when
  5209. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5210. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5211. , instead of sum of them.
  5212. * src/ActivePeerConnectionCommand.cc
  5213. * src/DefaultBtInteractive.cc
  5214. * src/DownloadCommand.cc
  5215. * src/PeerInteractionCommand.cc
  5216. * src/PeerReceiveHandshakeCommand.cc
  5217. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5218. Fixed the bug that HTTPS download fails.
  5219. * src/AbstractCommand.cc
  5220. * src/AbstractCommand.h
  5221. * src/DownloadCommand.cc
  5222. * src/FtpConnection.cc
  5223. * src/HttpConnection.cc
  5224. * src/HttpRequestCommand.cc
  5225. * src/HttpResponseCommand.cc
  5226. * src/HttpSkipResponseCommand.cc
  5227. * src/MSEHandshake.cc
  5228. * src/PeerConnection.cc
  5229. * src/SocketCore.cc
  5230. * src/SocketCore.h
  5231. Fixed the bug that aria2 doesn't download whole content body and cannot
  5232. reuse connection if chunked transfer encoding and gzip content encoding
  5233. are set.
  5234. * src/DownloadCommand.cc
  5235. * src/HttpSkipResponseCommand.cc
  5236. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. Updated man page.
  5238. * doc/aria2c.1.txt
  5239. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. When error occurred while aria2 was parsing an .aria2.conf file, print
  5241. the usage of the option that caused error.
  5242. * src/option_processing.cc
  5243. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5244. Fixed compile error on OptionHandlerException
  5245. * src/Makefile.am
  5246. * src/OptionHandlerException.cc
  5247. * src/OptionHandlerException.h
  5248. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Moved message of the error to OptionHandlerException.h
  5250. * src/NameMatchOptionHandler.h
  5251. * src/OptionHandlerException.h
  5252. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5253. When error occurs while aria2 is parsing an command-line option, print
  5254. the usage of the option.
  5255. * src/Makefile.am
  5256. * src/NameMatchOptionHandler.h
  5257. * src/OptionHandlerException.h
  5258. * src/option_processing.cc
  5259. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5260. Reverted previous change.
  5261. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5262. username is not in URI.
  5263. * src/HttpRequest.cc
  5264. * src/Request.cc
  5265. * test/HttpRequestTest.cc
  5266. * test/RequestTest.cc
  5267. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5268. Now colon is required for username and password in FTP URL, like:
  5269. ftp://username:password@host.
  5270. If colon is not there, aria2 don't parse it as a username. For example,
  5271. aria2 don't retrieve username from ftp://username@host.
  5272. This fix was made in order to login FTP server via non-transparent ftp
  5273. proxy.
  5274. * src/Request.cc
  5275. * test/RequestTest.cc
  5276. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5277. Use netrc for HTTP.
  5278. Now FTP user/password is sent in Authorization header when
  5279. --ftp-via-http-proxy=get is given.
  5280. * src/AuthConfigFactory.cc
  5281. * src/HttpRequest.cc
  5282. * src/HttpRequest.h
  5283. * src/NetrcAuthResolver.cc
  5284. * src/NetrcAuthResolver.h
  5285. * src/OptionHandlerFactory.cc
  5286. * src/option_processing.cc
  5287. * src/prefs.cc
  5288. * src/prefs.h
  5289. * test/AuthConfigFactoryTest.cc
  5290. * test/HttpRequestTest.cc
  5291. * test/NetrcAuthResolverTest.cc
  5292. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5293. Issue PWD command first and get working directory and use it as a prefix
  5294. for CWD command.
  5295. * src/DownloadEngine.cc
  5296. * src/DownloadEngine.h
  5297. * src/FtpConnection.cc
  5298. * src/FtpConnection.h
  5299. * src/FtpFinishDownloadCommand.cc
  5300. * src/FtpInitiateConnectionCommand.cc
  5301. * src/FtpNegotiationCommand.cc
  5302. * src/FtpNegotiationCommand.h
  5303. * test/FtpConnectionTest.cc
  5304. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5305. Removed default user/pass for FTP user/pass, since it should not have
  5306. precedence over netrc configuration by default.
  5307. * src/OptionHandlerFactory.cc
  5308. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5309. Added debug log for socket event.
  5310. * src/AbstractCommand.cc
  5311. * src/PeerAbstractCommand.cc
  5312. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5313. Log microseconds.
  5314. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5315. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5316. Replaced HelpItem.cc with OptionHandler.cc.
  5317. * po/POTFILES.in
  5318. Updated po files with 'make update-po'
  5319. * po/aria2c.pot
  5320. * po/*.po
  5321. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5322. Removed possible values from the text.
  5323. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5324. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5325. Removed unused preferences:
  5326. PREF_NO_PREALLOCATION
  5327. PREF_STDOUT_LOG
  5328. PREF_TRACKER_MAX_TRIES
  5329. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5330. PREF_MIN_SEGMENT_SIZE
  5331. * src/option_processing.cc
  5332. * src/prefs.cc
  5333. * src/prefs.h
  5334. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5335. Integrated HelpItem into OptionParser to ease the workload for adding
  5336. new options. Removed default value from usage text.
  5337. * src/HelpItem.cc: Removed.
  5338. * src/HelpItem.h: Removed.
  5339. * src/HelpItemFactory.cc: Removed.
  5340. * src/HelpItemFactory.h: Removed.
  5341. * src/Makefile.am
  5342. * src/Makefile.in
  5343. * src/NameMatchOptionHandler.h
  5344. * src/OptionHandler.cc
  5345. * src/OptionHandler.h
  5346. * src/OptionHandlerFactory.cc
  5347. * src/OptionHandlerImpl.h
  5348. * src/OptionParser.cc
  5349. * src/OptionParser.h
  5350. * src/TagContainer.cc: Removed.
  5351. * src/TagContainer.h: Removed.
  5352. * src/TaggedItem.cc: Removed.
  5353. * src/TaggedItem.h: Removed.
  5354. * src/main.cc
  5355. * src/option_processing.cc
  5356. * src/usage_text.h
  5357. * src/version_usage.cc
  5358. * test/HelpItemTest.cc: Removed.
  5359. * test/Makefile.am
  5360. * test/Makefile.in
  5361. * test/OptionHandlerTest.cc
  5362. * test/OptionParserTest.cc
  5363. * test/TagContainerTest.cc: Removed.
  5364. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5365. Moved `TransferStat stat = ...' to inside the `if' clause.
  5366. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5367. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5368. Fixed the bug that a block in a piece is requested when same block is
  5369. already requested to the same peer in end game mode.
  5370. * src/BtRequestFactory.h
  5371. * src/DefaultBtInteractive.cc
  5372. * src/DefaultBtRequestFactory.cc
  5373. * src/DefaultBtRequestFactory.h
  5374. * src/DefaultPieceStorage.cc
  5375. * src/DefaultPieceStorage.h
  5376. * src/PieceStorage.h
  5377. * src/UnknownLengthPieceStorage.cc
  5378. * src/UnknownLengthPieceStorage.h
  5379. * test/DefaultBtRequestFactoryTest.cc
  5380. * test/DefaultPieceStorageTest.cc
  5381. * test/MockBtRequestFactory.h
  5382. * test/MockPieceStorage.h
  5383. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5384. Removed _uploadLength and _downloadLength from PeerSessionResource
  5385. and use PeerStat::_sessionUploadLength and
  5386. PeerStat::_sessionDownloadLength.
  5387. * src/PeerSessionResource.cc
  5388. * src/PeerSessionResource.h
  5389. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Fixed the bug that prefixLength of split bucket which doesn't include
  5391. local node ID is incremented.
  5392. * src/DHTBucket.cc
  5393. * src/DHTBucket.h
  5394. * test/DHTBucketTest.cc
  5395. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5396. Added cookies.sqlite to EXTRA_DIST
  5397. * test/Makefile.am
  5398. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5399. Added Turkish translation. Updated French, German, Russian and
  5400. Simplified Chinese translations. Thanks to all translators.
  5401. * po/LINGUAS
  5402. * po/de.po
  5403. * po/fr.po
  5404. * po/ru.po
  5405. * po/tr.po
  5406. * po/zh_CN.po
  5407. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Added deliminating text to the beginning of the log so that one can find
  5409. where the log starts easily.
  5410. * src/main.cc
  5411. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5412. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5413. to fix compile error when async DNS is not enabled by configuration.
  5414. * src/AbstractCommand.cc
  5415. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5416. If establishing conneciton to a server is failed, then mark error on
  5417. its ServerStat.
  5418. Added the cause of error to log when error event occurred.
  5419. Moved message string to message.h for translation.
  5420. * src/AbstractCommand.cc
  5421. * src/AbstractCommand.h
  5422. * src/FtpNegotiationCommand.cc
  5423. * src/HttpRequestCommand.cc
  5424. * src/PeerAbstractCommand.cc
  5425. * src/message.h
  5426. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. Added the function to get error message from socket.
  5428. * src/SocketCore.cc
  5429. * src/SocketCore.h
  5430. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5431. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5432. * src/RequestGroupMan.cc
  5433. * src/RequestGroupMan.h
  5434. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5435. If error event is received in epoll, then abort download immediately.
  5436. * src/AbstractCommand.cc
  5437. * src/Command.cc
  5438. * src/Command.h
  5439. * src/DownloadEngine.cc
  5440. * src/PeerAbstractCommand.cc
  5441. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5442. Added usage message for --uri-selector, --server-stat-of,
  5443. --server-stat-in, --server-stat-timeout options.
  5444. * src/HelpItemFactory.cc
  5445. * src/usage_text.h
  5446. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5447. Added upper limit of FTP response buffer. The current implementation
  5448. uses 4096bytes as a limit.
  5449. * src/FtpConnection.cc
  5450. * src/FtpConnection.h
  5451. * test/FtpConnectionTest.cc
  5452. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Use non-blocking socket for TCP communication to avoid possible
  5454. blocking due to buffer full.
  5455. * src/AbstractProxyRequestCommand.cc
  5456. * src/FtpConnection.cc
  5457. * src/FtpConnection.h
  5458. * src/FtpNegotiationCommand.cc
  5459. * src/FtpNegotiationCommand.h
  5460. * src/HttpConnection.cc
  5461. * src/HttpConnection.h
  5462. * src/HttpRequestCommand.cc
  5463. * src/InitiatorMSEHandshakeCommand.cc
  5464. * src/InitiatorMSEHandshakeCommand.h
  5465. * src/MSEHandshake.cc
  5466. * src/MSEHandshake.h
  5467. * src/Makefile.am
  5468. * src/PeerConnection.cc
  5469. * src/PeerConnection.h
  5470. * src/PeerInteractionCommand.cc
  5471. * src/PeerListenCommand.cc
  5472. * src/ReceiverMSEHandshakeCommand.cc
  5473. * src/ReceiverMSEHandshakeCommand.h
  5474. * src/SocketBuffer.cc
  5475. * src/SocketBuffer.h
  5476. * src/SocketCore.cc
  5477. * src/SocketCore.h
  5478. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5479. Call setStatusRealtime() in constructor.
  5480. * src/RealtimeCommand.cc
  5481. * src/RealtimeCommand.h
  5482. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5483. Call Download::setNoWait(true) to execute newly created command without
  5484. a pause.
  5485. * src/AbstractCommand.cc
  5486. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5487. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5488. found' error from HTTP/FTP server NUM times without getting single
  5489. bytes of data, then force the download to fail.
  5490. Basically aria2 tris all URIs available. So if long list of URIs are
  5491. specified in Metalink, then aria2 will take a long time to fail
  5492. eventually if all URIs are outdated. This option eases this situation
  5493. to limit the number of servers to try.
  5494. * src/FtpNegotiationCommand.cc
  5495. * src/HelpItemFactory.cc
  5496. * src/HttpResponseCommand.cc
  5497. * src/OptionHandlerFactory.cc
  5498. * src/PeerStat.h
  5499. * src/RequestGroup.cc
  5500. * src/RequestGroup.h
  5501. * src/SegmentMan.cc
  5502. * src/SegmentMan.h
  5503. * src/option_processing.cc
  5504. * src/prefs.cc
  5505. * src/prefs.h
  5506. * src/usage_text.h
  5507. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5508. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5509. response even if more than one response is in it.
  5510. * src/FtpConnection.cc
  5511. * src/FtpConnection.h
  5512. * test/FtpConnectionTest.cc
  5513. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5514. Merged from stable-0.15
  5515. * m4/libcares.m4
  5516. Use pkg-config
  5517. * m4/sqlite3.m4
  5518. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. Removed unnecessary if statement.
  5520. * src/DefaultPieceStorage.cc (initPieceStorage)
  5521. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5522. Added --connect-timeout option to specify connect timeout in seconds.
  5523. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5524. connecting to BitTorrent peer is not controlled by this option.
  5525. * src/AbstractProxyRequestCommand.cc
  5526. * src/FtpNegotiationCommand.cc
  5527. * src/HelpItemFactory.cc
  5528. * src/HttpRequestCommand.cc
  5529. * src/OptionHandlerFactory.cc
  5530. * src/option_processing.cc
  5531. * src/prefs.cc
  5532. * src/prefs.h
  5533. * src/usage_text.h
  5534. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5535. Added help message for -R option.
  5536. * src/HelpItemFactory.cc
  5537. * src/usage_text.h
  5538. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5539. Added the message that the time is in local time zone.
  5540. * src/RequestGroup.cc
  5541. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. Implemented the ability to get timestamp from remote FTP server using
  5543. MDTM command described in RFC3659.
  5544. * src/FtpConnection.cc
  5545. * src/FtpConnection.h
  5546. * src/FtpNegotiationCommand.cc
  5547. * src/FtpNegotiationCommand.h
  5548. * test/FtpConnectionTest.cc
  5549. * test/Makefile.am
  5550. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5551. Implemented the ability to get timestamp from remote HTTP server and
  5552. apply it to local file. To enable this feature, --remote-time option
  5553. is added. No usage text has been written yet.
  5554. If several servers returns difference timestamp, then aria2 uses latest
  5555. one.
  5556. * src/CopyDiskAdaptor.cc
  5557. * src/CopyDiskAdaptor.h
  5558. * src/DirectDiskAdaptor.cc
  5559. * src/DirectDiskAdaptor.h
  5560. * src/DiskAdaptor.h
  5561. * src/File.cc
  5562. * src/File.h
  5563. * src/HttpHeader.cc
  5564. * src/HttpHeader.h
  5565. * src/HttpResponse.cc
  5566. * src/HttpResponse.h
  5567. * src/HttpResponseCommand.cc
  5568. * src/HttpResponseCommand.h
  5569. * src/MultiDiskAdaptor.cc
  5570. * src/MultiDiskAdaptor.h
  5571. * src/OptionHandlerFactory.cc
  5572. * src/RequestGroup.cc
  5573. * src/RequestGroup.h
  5574. * src/RequestGroupMan.cc
  5575. * src/option_processing.cc
  5576. * src/prefs.cc
  5577. * src/prefs.h
  5578. * test/CopyDiskAdaptorTest.cc
  5579. * test/FileTest.cc
  5580. * test/Makefile.am
  5581. * test/Makefile.in
  5582. * test/MultiDiskAdaptorTest.cc
  5583. * test/TestUtil.cc
  5584. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5585. Fixed the bug that DiskWriterEntry is not created when its
  5586. FileEntry.isRequested() is false and it doesn't share a piece with
  5587. other FileEntries that are requested. This bug causes segmentation fault
  5588. in the end.
  5589. * src/MultiDiskAdaptor.cc
  5590. * src/MultiDiskAdaptor.h
  5591. * src/MultiFileAllocationIterator.cc
  5592. * test/MultiDiskAdaptorTest.cc
  5593. * test/MultiFileAllocationIteratorTest.cc
  5594. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5595. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5596. called if the number of file entries are greater than max open files.
  5597. * src/AbstractSingleDiskAdaptor.cc
  5598. * src/AbstractSingleDiskAdaptor.h
  5599. * src/DiskAdaptor.h
  5600. * src/MultiDiskAdaptor.cc
  5601. * src/MultiDiskAdaptor.h
  5602. * test/MultiDiskAdaptorTest.cc
  5603. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5604. Added a constuctor that receives struct timeval.
  5605. Added operator<.
  5606. * src/TimeA2.cc
  5607. * src/TimeA2.h
  5608. * test/TimeTest.cc
  5609. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5610. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5611. * src/CookieParser.cc
  5612. * test/CookieParserTest.cc
  5613. * test/HttpResponseTest.cc
  5614. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5615. Implmented the functions to parse date.
  5616. * src/TimeA2.cc
  5617. * src/TimeA2.h
  5618. * test/TimeTest.cc
  5619. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. Added "Firefox3 Cookie" feature to FeatureConfig
  5621. * src/FeatureConfig.cc
  5622. * src/FeatureConfig.h
  5623. * test/FeatureConfigTest.cc
  5624. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5625. Bump up version number to 0.16.0b
  5626. * configure.ac
  5627. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5628. Use pkg-config if is is available.
  5629. * m4/openssl.m4
  5630. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5631. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5632. * src/BtAnnounce.h
  5633. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5634. If an error occurred with a URI, remove identical URI from remaining
  5635. URI list because it is likely that same error occurred in the end and it
  5636. is waste of time.
  5637. * src/AbstractCommand.cc
  5638. * src/RequestGroup.cc
  5639. * src/RequestGroup.h
  5640. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5641. Removed wrong comment.
  5642. * src/DefaultPeerStorage.cc
  5643. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5644. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5645. Added return value of getpid() to argument of srand() to achieve more
  5646. randomized value.
  5647. * src/SimpleRandomizer.cc
  5648. * src/SimpleRandomizer.h
  5649. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5650. Contact tracker frequently when the number of connections are 0 and
  5651. download is not finished yet.
  5652. * src/ActivePeerConnectionCommand.cc
  5653. * src/BtAnnounce.h
  5654. * src/DefaultBtAnnounce.cc
  5655. * src/DefaultBtAnnounce.h
  5656. * test/MockBtAnnounce.h
  5657. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5658. Moved threshold values to UTPexExtensionMessage.
  5659. * src/DefaultBtInteractive.cc
  5660. * src/Peer.cc
  5661. * src/Peer.h
  5662. * src/UTPexExtensionMessage.cc
  5663. * src/UTPexExtensionMessage.h
  5664. * test/UTPexExtensionMessageTest.cc
  5665. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Added _incoming member to Peer class and made it true if the peer
  5667. initiated connection. Don't add those peer to UTPex message.
  5668. If extended handshake is received, assign _incoming to false.
  5669. * src/DefaultBtInteractive.cc
  5670. * src/HandshakeExtensionMessage.cc
  5671. * src/Peer.cc
  5672. * src/Peer.h
  5673. * src/PeerListenCommand.cc
  5674. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5675. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5676. Encoding Decoder. Removed size threshold for turning off on the fly
  5677. inflation because resulting file may or may not be inflated depending
  5678. on the file size and I think it is not expected by users.
  5679. This change fixes segmentation fault when Metalink file contains gzipped
  5680. file and its filesize is provided.
  5681. * src/HttpResponseCommand.cc
  5682. * src/HttpResponseCommand.h
  5683. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5684. Made Cookie immutable.
  5685. * src/Cookie.cc
  5686. * src/Cookie.h
  5687. * src/CookieParser.cc
  5688. * src/CookieParser.h
  5689. * src/CookieStorage.cc
  5690. * test/CookieParserTest.cc
  5691. * test/CookieStorageTest.cc
  5692. * test/NsCookieParserTest.cc
  5693. * test/Sqlite3MozCookieParserTest.cc
  5694. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5695. Removed CookieBox, CookieBoxFactory.
  5696. * src/CookieBox.cc
  5697. * src/CookieBox.h
  5698. * src/CookieBoxFactory.cc
  5699. * src/CookieBoxFactory.h
  5700. * src/Makefile.am
  5701. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5702. Use CookieStorage class instead of CookieBox class.
  5703. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5704. * src/AbstractProxyRequestCommand.cc
  5705. * src/CookieStorage.cc
  5706. * src/DownloadEngine.cc
  5707. * src/DownloadEngine.h
  5708. * src/HttpConnection.cc
  5709. * src/HttpConnection.h
  5710. * src/HttpRequest.cc
  5711. * src/HttpRequest.h
  5712. * src/HttpRequestCommand.cc
  5713. * src/HttpResponse.cc
  5714. * src/HttpResponseCommand.cc
  5715. * src/HttpSkipResponseCommand.cc
  5716. * src/Makefile.am
  5717. * src/MultiUrlRequestInfo.cc
  5718. * src/Request.cc
  5719. * src/Request.h
  5720. * src/main.cc
  5721. * test/AllTest.cc
  5722. * test/CookieStorageTest.cc
  5723. * test/CookieTest.cc
  5724. * test/HttpRequestTest.cc
  5725. * test/HttpResponseTest.cc
  5726. * test/Makefile.am
  5727. * test/NsCookieParserTest.cc
  5728. * test/Sqlite3MozCookieParserTest.cc
  5729. * test/nscookietest.txt
  5730. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Updated
  5732. * test/Cookies.sqlite
  5733. * test/nscookietest.txt
  5734. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5735. Added tests for CookieStorage::load()
  5736. * test/CookieStorageTest.cc
  5737. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5738. Added CookieStorage class which is based on RFC2109 and manages cookies
  5739. more strictly than CookieBox and CookieBoxFactory class.
  5740. * src/CookieStorage.cc
  5741. * src/CookieStorage.h
  5742. * src/Cookie.cc
  5743. * src/Cookie.h
  5744. * test/CookieStorageTest.cc
  5745. * test/CookieTest.cc
  5746. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Fixed the bug that commands are created more than the number of pieces.
  5748. * src/RequestGroup.cc
  5749. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5750. Fixed infinite loop bug in FTP when SIZE command failed.
  5751. * src/FtpNegotiationCommand.cc
  5752. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5753. Removed DirectDiskAdaptorTest.h
  5754. * test/Makefile.am
  5755. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5756. Fixed chunk checksum validation cannot detect trailing garbage data.
  5757. BUG#2074141
  5758. * src/AbstractSingleDiskAdaptor.cc
  5759. * src/AbstractSingleDiskAdaptor.h
  5760. * src/CheckIntegrityEntry.cc
  5761. * src/CheckIntegrityEntry.h
  5762. * src/DiskAdaptor.h
  5763. * src/MultiDiskAdaptor.cc
  5764. * src/MultiDiskAdaptor.h
  5765. * src/RequestGroup.cc
  5766. * test/DirectDiskAdaptorTest.cc
  5767. * test/MultiDiskAdaptorTest.cc
  5768. * test/TestUtil.cc
  5769. * test/TestUtil.h
  5770. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5771. Bump up version number of dht.dat file to 3. In version 3 format, time
  5772. is stored in 64bit, network byte order.
  5773. New build can load old format(version 2) but it saves the file in new
  5774. format. It means once you used new build, your dht.dat becomes
  5775. incompatible with older build.
  5776. * src/DHTRoutingTableDeserializer.cc
  5777. * src/DHTRoutingTableSerializer.cc
  5778. * test/DHTRoutingTableSerializerTest.cc
  5779. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5780. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5781. * test/Makefile.am
  5782. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5783. Bump up version number of .aria2 control file to 0001.
  5784. New aria2 can still load version 0000 file but it saves the file in
  5785. version 0001 format. It means that new aria2 can resume download
  5786. started by old aria2 but the opposite is not true.
  5787. * src/DefaultBtProgressInfoFile.cc
  5788. * src/DefaultBtProgressInfoFile.h
  5789. * test/DefaultBtProgressInfoFileTest.cc
  5790. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5791. Added ntoh64 and hton64 as inline functions.
  5792. * src/Util.cc
  5793. * test/UtilTest.cc
  5794. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5795. Added sqlite3 depenency and Firefox3 cookie support.
  5796. * README
  5797. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5798. State that firefox3 cookie is supported explicitly in the usage.
  5799. * src/usage_text.h
  5800. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. Externalized message.
  5802. * src/RequestGroupMan.cc
  5803. * src/message.h
  5804. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Save temporary file first and rename to the destination on success.
  5806. Added test cases.
  5807. * src/RequestGroupMan.cc
  5808. * test/RequestGroupManTest.cc
  5809. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5810. Fixed the bug that the number of connected peer is exceeding the limit
  5811. (55 by default) in seeding mode.
  5812. Multiplied 0.8 to _maxUploadSpeedLimit.
  5813. * src/ActivePeerConnectionCommand.cc
  5814. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5815. Clear table item.
  5816. * src/Dictionary.cc
  5817. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5818. Fixed error handling of lseek.
  5819. * src/AbstractDiskWriter.cc
  5820. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5822. style cookie file.
  5823. * src/usage_text.h
  5824. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5825. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5826. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5827. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5828. * src/Util.cc
  5829. * src/Util.h
  5830. * src/CookieParser.cc
  5831. * test/UtilTest.cc
  5832. * test/CookieParserTest.cc
  5833. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5834. Separate the implementation to load old mozilla format of cookie to
  5835. NsCookieParser class.
  5836. * src/CookieBoxFactory.cc
  5837. * src/CookieBoxFactory.h
  5838. * src/NsCookieParser.cc
  5839. * src/NsCookieParser.h
  5840. * test/NsCookieParserTest.cc
  5841. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5842. Made parse() const
  5843. * src/Sqlite3MozCookieParser.cc
  5844. * src/Sqlite3MozCookieParser.h
  5845. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5846. Added firefox3 cookie support based on the patch submitted by
  5847. tizianomueller.
  5848. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5849. this functionality.
  5850. * configure.ac
  5851. * m4/sqlite3.m4
  5852. * src/CookieBoxFactory.cc
  5853. * src/CookieBoxFactory.h
  5854. * src/Makefile.am
  5855. * src/Makefile.in
  5856. * src/Sqlite3MozCookieParser.cc
  5857. * src/Sqlite3MozCookieParser.h
  5858. * src/main.cc
  5859. * test/CookieBoxFactoryTest.cc
  5860. * test/Makefile.am
  5861. * test/Makefile.in
  5862. * test/Sqlite3MozCookieParserTest.cc
  5863. * test/badcookies.sqlite
  5864. * test/cookies.sqlite
  5865. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5866. Added Danish and Greek translations.
  5867. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5868. Great thanks to all translators.
  5869. * po/LINGUAS
  5870. * po/el.po
  5871. * po/da.po
  5872. * po/es.po
  5873. * po/ca.po
  5874. * po/nn.po
  5875. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5876. Fixed man page: --follow-bittorrent should be --follow-torrent
  5877. * doc/aria2c.1.txt
  5878. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5879. Fixed: numCommand is less than the value specified in -C option.
  5880. * src/RequestGroup.cc
  5881. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5882. Fixed occasional assertion failure in PieceSegment.
  5883. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5884. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5885. creation of duplicate segments and one of the segment was finished then
  5886. assertion failure was caused.
  5887. * src/SegmentMan.cc
  5888. * test/SegmentManTest.cc
  5889. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Added options to load/save the server's performance/status to a file
  5891. and the timeout to drop their data.
  5892. --server-stat-of=FILE specifies the file to which performance data
  5893. is saved.
  5894. --server-stat-if=FILE specifies the file to read previously saved
  5895. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5896. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5897. TIMEOUT is specified in seconds and the default value is 24hours.
  5898. * src/MultiUrlRequestInfo.cc
  5899. * src/OptionHandlerFactory.cc
  5900. * src/RequestGroupMan.cc
  5901. * src/RequestGroupMan.h
  5902. * src/ServerStatMan.cc
  5903. * src/ServerStatMan.h
  5904. * src/option_processing.cc
  5905. * src/prefs.cc
  5906. * src/prefs.h
  5907. * test/ServerStatManTest.cc
  5908. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5909. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5910. * src/ServerStatMan.cc
  5911. * src/ServerStatMan.h
  5912. * test/ServerStatManTest.cc
  5913. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5914. Implemented ServerStatMan::load(...) function and its test case.
  5915. * src/ServerStat.cc
  5916. * src/ServerStat.h
  5917. * src/ServerStatMan.cc
  5918. * test/ServerStatManTest.cc
  5919. * test/ServerStatTest.cc
  5920. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. Use time_t instead of int32_t. Use int64_t where milli second is
  5922. expected.
  5923. * src/TimeA2.cc
  5924. * src/TimeA2.h
  5925. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. Implemented ServerStatMan::save(...) function and its test case.
  5927. * src/ServerStat.cc
  5928. * src/ServerStat.h
  5929. * src/ServerStatMan.cc
  5930. * src/ServerStatMan.h
  5931. * test/ServerStatManTest.cc
  5932. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5933. Now aria2 uses name attribute in Metalink as local filename in
  5934. BitTorrent downloads. BUG#2033999
  5935. * src/BtContext.h
  5936. * src/BtDependency.cc
  5937. * src/DefaultBtContext.cc
  5938. * src/DefaultBtContext.h
  5939. * src/SingleFileDownloadContext.cc
  5940. * src/SingleFileDownloadContext.h
  5941. * test/BtDependencyTest.cc
  5942. * test/DefaultBtContextTest.cc
  5943. * test/MockBtContext.h
  5944. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5945. Added AC_C_BIGENDIAN
  5946. * src/configure.ac
  5947. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5948. Limited numCommand less than or equal to the number of piece.
  5949. * src/RequestGroup.cc
  5950. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5952. directive.
  5953. * test/DefaultPieceStorageTest.cc
  5954. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Fixed memory leak in test code
  5956. * test/AnnounceListTest.cc
  5957. * test/DefaultPeerListProcessorTest.cc
  5958. * test/DefaultPeerStorageTest.cc
  5959. * test/MetaFileUtilTest.cc
  5960. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5961. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5962. * src/DefaultPieceStorage.cc
  5963. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5964. Initialized _directIOAllowed
  5965. * src/MultiDiskAdaptor.cc
  5966. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5967. Fixed memory leak
  5968. * src/GZipDecoder.cc
  5969. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Fixed memory leak
  5971. * src/MetalinkParserStateMachine.cc
  5972. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Fixed memory leak
  5974. * src/Dictionary.cc
  5975. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5976. Fixed memory leak
  5977. * src/IteratableChunkChecksumValidator.h
  5978. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5979. Fixed unmatched malloc/free.
  5980. * src/IteratableChunkChecksumValidator.cc
  5981. * src/IteratableChecksumValidator.cc
  5982. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5983. Removed max chunk size check. This change fixes BUG#2040169
  5984. * src/ChunkedDecoder.cc
  5985. * src/ChunkedDecoder.h
  5986. * test/ChunkedDecoderTest.cc
  5987. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Implemented download speed based URI selection algorithm.
  5989. Introduced new option --uri-selector.
  5990. If --uri-selector=feedback is given, aria2 uses download speed observed
  5991. in the previous downloads and chooses fastest server in the URI list.
  5992. Currently at most 10 URIs are considered to introduce randomeness for
  5993. finding better servers. The speed is average download speed in the
  5994. downloads.
  5995. On the other hand, if --uri-selector=inorder is given, which is default,
  5996. URI is tried in order in URI list.
  5997. The usage text for the new option has not been written yet.
  5998. * src/AbstractCommand.cc
  5999. * src/DownloadCommand.cc
  6000. * src/DownloadEngine.cc
  6001. * src/DownloadEngineFactory.cc
  6002. * src/InOrderURISelector.cc
  6003. * src/InOrderURISelector.h
  6004. * src/OptionHandlerFactory.cc
  6005. * src/PeerStat.h
  6006. * src/RequestGroup.cc
  6007. * src/RequestGroup.h
  6008. * src/RequestGroupMan.cc
  6009. * src/RequestGroupMan.h
  6010. * src/SegmentMan.cc
  6011. * src/SegmentMan.h
  6012. * src/ServerStat.cc
  6013. * src/ServerStat.h
  6014. * src/ServerStatMan.cc
  6015. * src/ServerStatMan.h
  6016. * src/ServerStatURISelector.cc
  6017. * src/ServerStatURISelector.h
  6018. * src/URISelector.h
  6019. * src/option_processing.cc
  6020. * src/prefs.cc
  6021. * src/prefs.h
  6022. * test/InOrderURISelectorTest.cc
  6023. * test/RequestGroupManTest.cc
  6024. * test/ServerStatManTest.cc
  6025. * test/ServerStatURISelectorTest.cc
  6026. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6027. * Release 0.15.1+2
  6028. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Bump up version number to 0.15.1+2
  6030. * configure.ac
  6031. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6032. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6033. * m4/aria2_arg.m4
  6034. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. * Release 0.15.1+1
  6036. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6037. Bump up version number to 0.15.1+1
  6038. * configure.ac
  6039. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6040. Fixed the bug that causes segmentaion fault when resuming download
  6041. using metalink without size tag. Reproducible only using HTTP URI.
  6042. * src/HttpResponseCommand.cc
  6043. * src/FtpNegotiationCommand.cc
  6044. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6045. * Release 0.15.1
  6046. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Updated Bulgarian and French translations, thanks to all translators.
  6048. * po/bg.po
  6049. * po/fr.po
  6050. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6051. Bump up version number to 0.15.1
  6052. * configure.ac
  6053. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6054. Avoid repeated call of gettimeofday() when calculating speed.
  6055. * src/SpeedCalc.cc
  6056. * src/SpeedCalc.h
  6057. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6058. Removed writable check when socket's send buffer is full in BitTorrent
  6059. downloads to lower CPU usage.
  6060. * src/PeerInteractionCommand.cc
  6061. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. Fixed broken gzip inflation.
  6063. Turn off segmented downloading if gzip content is smaller than or equal
  6064. to 1MiB and inflate the data on the fly, because HTTP response header
  6065. doesn't contain the length of inflated file we can't determin where
  6066. the chunk of data should be written.
  6067. On the other hand, if gzip content is larger than 1MB, then turn off
  6068. on the fly inflation, because some servers returns "content-type: gzip"
  6069. for *.tgz, *.gz files.
  6070. * src/DownloadCommand.cc
  6071. * src/HttpResponseCommand.cc
  6072. * src/HttpResponseCommand.h
  6073. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. Applied tizianomueller's patch to fix compile error.
  6075. * test/BitfieldManTest.cc
  6076. * test/BtRequestMessageTest.cc
  6077. * test/DefaultBtContextTest.cc
  6078. * test/DefaultDiskWriterTest.cc
  6079. * test/DefaultPieceStorageTest.cc
  6080. * test/HttpHeaderProcessorTest.cc
  6081. * test/HttpResponseTest.cc
  6082. * test/Metalink2RequestGroupTest.cc
  6083. * test/MetalinkParserControllerTest.cc
  6084. * test/MetalinkProcessorTest.cc
  6085. * test/PeerSessionResourceTest.cc
  6086. * test/UtilTest.cc
  6087. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6088. * Release 0.15.0
  6089. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6090. Reordered src files in POTFILES.in so that usage text appears first.
  6091. * po/POTFILES.in
  6092. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6093. Bump up version number to 0.15.0
  6094. * configure.ac
  6095. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6096. Added Bulgarian translation.
  6097. Updated Catalan, Spanish, French and Japanese translations.
  6098. Thanks to all translators.
  6099. * po/LINGUAS
  6100. * po/bg.po
  6101. * po/ca.po
  6102. * po/es.po
  6103. * po/fr.po
  6104. * po/ja.po
  6105. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6106. Updated feature list. Added libz for dependency section.
  6107. Added a description about unit testing using CppUnit.
  6108. * README
  6109. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6110. Added a test for libz. Quoted where it is necessary.
  6111. * build_test.sh
  6112. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6113. Added GZip to `Enabled Features' list.
  6114. * src/FeatureConfig.cc
  6115. * src/FeatureConfig.h
  6116. * test/FeatureConfigTest.cc
  6117. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6118. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6119. the transfer has not yet started.
  6120. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6121. * src/SegmentMan.cc
  6122. * src/SegmentMan.h
  6123. * test/SegmentManTest.cc
  6124. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6125. Cache last calculated average download/upload speed.
  6126. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6127. cached value.
  6128. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6129. * src/PeerStat.h
  6130. * src/SpeedCalc.cc
  6131. * src/SpeedCalc.h
  6132. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6133. Call parseUrl directly.
  6134. * src/Request.cc (resetUrl)
  6135. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6136. Supported absolute/relative path in Location header field.
  6137. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6138. * src/HttpHeader.cc
  6139. * src/HttpHeader.h
  6140. * src/HttpResponse.cc
  6141. * src/HttpSkipResponseCommand.cc
  6142. * src/Request.cc
  6143. * test/HttpHeaderTest.cc
  6144. * test/HttpResponseTest.cc
  6145. * test/RequestTest.cc
  6146. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Changed help text for --load-cookie option.
  6148. * doc/aria2c.1.txt
  6149. * src/usage_text.h
  6150. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6151. Regenerated test/Makefile.in to remove stale ChangeLog.
  6152. * test/Makefile.in
  6153. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6154. Updated po files.
  6155. * po/aria2c.pot
  6156. * po/*.po
  6157. * po/*.gmo
  6158. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6159. Bump up version number to 0.15.0b
  6160. * configure.ac
  6161. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6162. Externalize messages.
  6163. * src/RequestGroupMan.cc
  6164. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6165. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Use File::exists() instead of File::isFile() to allow non-regular file
  6167. such as block special files.
  6168. * src/AbstractDiskWriter.cc
  6169. * src/MultiDiskWriter.cc
  6170. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6171. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6172. * src/gai_strerror.h
  6173. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Fixed compile error. Thanks gknauf for the patch.
  6175. * src/asctime_r.c
  6176. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6177. Included asctime_r.h from a2time.h.
  6178. * src/a2time.h
  6179. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6180. Added a message "aria2 doesn't verify signature" to log message when
  6181. signature file is saved.
  6182. * src/RequestGroupMan.cc
  6183. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6184. Added the ability to save signature when download is completed if
  6185. signature is available. The filename of signature file is the path to
  6186. download file followed by ".sig". If it already exists, then signature
  6187. will not be saved.
  6188. * src/RequestGroupMan.cc
  6189. * src/Signature.cc
  6190. * test/SignatureTest.cc
  6191. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Updated the descriptions for --bt-seed-unverified.
  6193. * doc/aria2c.1
  6194. * doc/aria2c.1.html
  6195. * doc/aria2c.1.txt
  6196. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6197. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6198. that this is not going to verify files using piece hashes.
  6199. * src/HelpItemFactory.cc
  6200. * src/OptionHandlerFactory.cc
  6201. * src/RequestGroup.cc
  6202. * src/option_processing.cc
  6203. * src/prefs.cc
  6204. * src/prefs.h
  6205. * src/usage_text.h
  6206. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. Added the ability to retrieve signature from Metalink file.
  6208. A retrieved signature is stored in Signature class and it is held by
  6209. DownloadContext class. Note that aria2 doesn't verify signature.
  6210. * src/DownloadContext.cc
  6211. * src/DownloadContext.h
  6212. * src/Makefile.am
  6213. * src/Makefile.in
  6214. * src/Metalink2RequestGroup.cc
  6215. * src/MetalinkEntry.cc
  6216. * src/MetalinkEntry.h
  6217. * src/MetalinkParserController.cc
  6218. * src/MetalinkParserController.h
  6219. * src/MetalinkParserStateMachine.cc
  6220. * src/MetalinkParserStateMachine.h
  6221. * src/Signature.cc
  6222. * src/Signature.h
  6223. * src/SignatureMetalinkParserState.cc
  6224. * src/SignatureMetalinkParserState.h
  6225. * src/VerificationMetalinkParserState.cc
  6226. * src/VerificationMetalinkParserState.h
  6227. * test/Metalink2RequestGroupTest.cc
  6228. * test/MetalinkParserControllerTest.cc
  6229. * test/MetalinkProcessorTest.cc
  6230. * test/test.xml
  6231. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Close DiskAdaptor after renaming file.
  6233. * src/RequestGroup.cc
  6234. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6235. Corrected indentation
  6236. * src/DefaultBtProgressInfoFile.cc
  6237. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6238. Moved the calls of std::ios::exceptions() inside of try-catch block
  6239. because if an error occurred in constructor of std::fstream, then
  6240. exception is thrown immediately when std::ios::exceptions() is called
  6241. which results unhandled exception and aria2c aborts.
  6242. * src/DefaultBtProgressInfoFile.cc
  6243. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6244. Added the test for the previous change in DefaultBtContext.cc
  6245. * test/DefaultBtContextTest.cc
  6246. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Fixed the bug that causes infinite loop when the number of pieces are
  6248. fewer than allowed fast set size which is 10 by default.
  6249. * src/DefaultBtContext.cc
  6250. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6251. Updated the descriptions for -j, -s. Added --bt-seed.
  6252. * doc/aria2c.1
  6253. * doc/aria2c.1.html
  6254. * doc/aria2c.1.txt
  6255. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6256. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6257. aria2 seeds previously downloaded files without validating piece hashs.
  6258. * src/HelpItemFactory.cc
  6259. * src/OptionHandlerFactory.cc
  6260. * src/RequestGroup.cc
  6261. * src/option_processing.cc
  6262. * src/prefs.cc
  6263. * src/prefs.h
  6264. * src/usage_text.h
  6265. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6266. Updated DESCRIPTION of man page.
  6267. * doc/aria2c.1
  6268. * doc/aria2c.1.html
  6269. * doc/aria2c.1.txt
  6270. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6271. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6272. Don't define `struct addrinfo' when __sun is defined.
  6273. * src/getaddrinfo.h
  6274. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6275. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6276. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6277. second argument is of type `struct _stati64'. Otherwise it is defined as
  6278. `struct stat'.
  6279. * src/AbstractDiskWriter.cc
  6280. * src/File.cc
  6281. * src/File.h
  6282. * src/a2io.h
  6283. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6284. Fixed the compile error in hurd-i386
  6285. See the original bug report:
  6286. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6287. * src/a2io.h
  6288. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6289. Code cleanup.
  6290. * src/PeerAbstractCommand.cc
  6291. * src/PeerAbstractCommand.h
  6292. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6293. Removed TransferEncoding.
  6294. * src/DownloadCommand.cc
  6295. * src/DownloadCommand.h
  6296. * src/HttpResponseCommand.cc
  6297. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Updated po files.
  6299. * po/aria2c.pot
  6300. * po/*.po
  6301. * po/*.gmo
  6302. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6303. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6304. * src/A2STR.cc
  6305. * src/A2STR.h
  6306. * src/ChunkedDecoder.cc
  6307. * src/ChunkedDecoder.h
  6308. * src/ChunkedEncoding.cc: Removed
  6309. * src/ChunkedEncoding.h: Removed
  6310. * src/DownloadCommand.cc
  6311. * src/DownloadCommand.h
  6312. * src/HttpDownloadCommand.cc
  6313. * src/HttpResponse.cc
  6314. * src/HttpResponse.h
  6315. * src/HttpResponseCommand.cc
  6316. * src/HttpSkipResponseCommand.cc
  6317. * src/HttpSkipResponseCommand.h
  6318. * src/Makefile.am
  6319. * src/TransferEncoding.h: Removed
  6320. * test/ChunkedDecoderTest.cc
  6321. * test/ChunkedEncodingTest.cc: Removed
  6322. * test/HttpResponseTest.cc
  6323. * test/Makefile.am
  6324. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6325. Use append instead of insert.
  6326. * src/GZipDecoder.cc
  6327. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Updated doc
  6329. * src/Decoder.h
  6330. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Updated usage text for -s option.
  6332. * src/usage_text.h
  6333. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6334. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6335. * src/Request.cc
  6336. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Cleaned up configure.ac.
  6338. * configure.ac
  6339. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6340. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6341. AC_ARG_ENABLE.
  6342. * configure.ac
  6343. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6345. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6346. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6347. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6348. fly and writes decoded data to a local disk.
  6349. * README
  6350. * README.html
  6351. * configure.ac
  6352. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6353. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6354. * m4/libz.m4
  6355. * src/Decoder.h
  6356. * src/DownloadCommand.cc
  6357. * src/DownloadCommand.h
  6358. * src/Exception.h
  6359. * src/GZipDecoder.cc
  6360. * src/GZipDecoder.h
  6361. * src/HttpHeader.cc
  6362. * src/HttpHeader.h
  6363. * src/HttpRequest.cc
  6364. * src/HttpRequest.h
  6365. * src/HttpResponse.cc
  6366. * src/HttpResponse.h
  6367. * src/HttpResponseCommand.cc
  6368. * src/Makefile.am
  6369. * test/GZipDecoderTest.cc
  6370. * test/HttpRequestTest.cc
  6371. * test/HttpResponseTest.cc
  6372. * test/Makefile.am
  6373. * test/Makefile.in
  6374. * test/gzip_decode_test.gz
  6375. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Clarified usage of -j option.
  6377. * src/usage_text.h
  6378. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6379. Disabled getting size from the response of RETR.
  6380. If SIZE command failed, then disable resuming and segmented downloading.
  6381. * src/FtpConnection.cc
  6382. * src/FtpConnection.h
  6383. * src/FtpNegotiationCommand.cc
  6384. * src/FtpNegotiationCommand.h
  6385. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6386. Use digits to find first byte of file size, which makes the intention
  6387. of the code clearer.
  6388. * src/FtpConnection.cc
  6389. Don't call validateTotalLength() when size is 0.
  6390. * src/FtpNegotiationCommand.cc
  6391. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6392. Updated po files.
  6393. * po/aria2c.pot
  6394. * po/*.gmo
  6395. * po/*.po
  6396. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6397. Clarified usage text for --split option.
  6398. * src/usage_text.h
  6399. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Bump up version number to 0.15.0dev. "dev" means "development"
  6401. version, which means I started the development of the next release!
  6402. * src/configure.ac
  6403. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6404. If FTP server returns negative response with REST raw command and
  6405. requested range is not 0, throw exception. If requested range is 0,
  6406. continue download a file from 0 byte.
  6407. * src/FtpNegotiationCommand.cc
  6408. * src/FtpNegotiationCommand.h
  6409. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6410. Supported FTP server which don't recognize SIZE raw command.
  6411. If SIZE raw command is failed, aria2 will try to get file size
  6412. from the response of RETR raw command. If both attempts are failed,
  6413. then resuming and segmented downloading are disabled.
  6414. * src/FtpConnection.cc
  6415. * src/FtpConnection.h
  6416. * src/FtpNegotiationCommand.cc
  6417. * src/FtpNegotiationCommand.h
  6418. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6419. * Release 0.14.0+1
  6420. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. Bump up version number to 0.14.0+1
  6422. * src/configure.ac
  6423. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6424. Fixed the code that refers static member variable from non-static
  6425. context.
  6426. * src/DefaultPeerStorage.cc
  6427. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6428. * Release 0.14.0
  6429. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6430. Added build test script
  6431. * build_test.sh
  6432. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6433. Updated ja.po
  6434. * src/ja.po
  6435. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6436. Bump up version number to 0.14.0
  6437. * src/configure.ac
  6438. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6439. Updated ja.po and fr.po. Great thanks for french translators and
  6440. Sebastien WILLEMIJNS.
  6441. * po/fr.po
  6442. * po/ja.po
  6443. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6444. Added configure option to enable/disable epoll support.
  6445. * configure.ac
  6446. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6447. Updated man page.
  6448. * doc/aria2c.1.txt
  6449. * doc/aria2c.1
  6450. * doc/aria2c.1.html
  6451. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6452. Added missing default value '5' to the usage of --split option.
  6453. * src/HelpItemFactory.cc
  6454. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6455. Filled up pieces based on the number of missing blocks, rather than
  6456. simplay the number of piece * block length.
  6457. * src/BtRequestFactory.h
  6458. * src/DefaultBtInteractive.cc
  6459. * src/DefaultBtInteractive.h
  6460. * src/DefaultBtRequestFactory.cc
  6461. * src/DefaultBtRequestFactory.h
  6462. * src/Piece.cc
  6463. * src/Piece.h
  6464. * test/BitfieldManTest.cc
  6465. * test/DefaultBtRequestFactoryTest.cc
  6466. * test/MockBtRequestFactory.h
  6467. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. Made _epEvents a member variable.
  6469. * src/DownloadEngine.cc
  6470. * src/DownloadEngine.h
  6471. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6472. Cancel download if http redirect is bounded more than 20 times.
  6473. * src/AbstractCommand.cc
  6474. * src/HttpSkipResponseCommand.cc
  6475. * src/Request.cc
  6476. * src/Request.h
  6477. * test/RequestTest.cc
  6478. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6479. Fixed unhandled exception(removed keyword `new').
  6480. * src/SocketCore.cc (initEPOLL)
  6481. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6482. Removed visit(const MetaEntry*)
  6483. * src/MetaEntryVisitor.h:
  6484. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6485. and made them virtual.
  6486. * src/BencodeVisitor.h
  6487. * src/BencodeVisitor.cc
  6488. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6489. Updated po files.
  6490. * po/aria2c.pot
  6491. * po/*.po
  6492. * po/*.gmo
  6493. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6494. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6495. the number of socket to watch out.
  6496. * src/PeerInteractionCommand.cc
  6497. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. When there is not enough space in disk when writing a chunk of data,
  6499. aria2 now prints the message to the console to warn user and aborts
  6500. its download. Not all downloads are canceled because some downloads
  6501. may use another disk or partition. BUG#1640332
  6502. * src/AbstractDiskWriter.cc
  6503. * src/PeerAbstractCommand.cc
  6504. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6505. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6506. setHaltRequested(true) to cancel download.
  6507. * src/PeerInteractionCommand.h
  6508. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6509. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6510. socket from int to sock_t as sockets are unsigned in Windows.
  6511. For AsyncNameResolver, DownloadEngine, I did additional modification
  6512. for the portion of the code changed according to epoll support.
  6513. I defined sock_t in a2netcompat.h to use sock_t without including
  6514. SocketCore.h.
  6515. * src/AsyncNameResolver.cc
  6516. * src/AsyncNameResolver.h
  6517. * src/DownloadEngine.cc
  6518. * src/DownloadEngine.h
  6519. * src/SocketCore.cc
  6520. * src/SocketCore.h
  6521. * src/a2netcompat.h
  6522. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6523. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6524. changes in the patch were applied.
  6525. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6526. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6527. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6528. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6529. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6530. a2io.h and common.h were modified.
  6531. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6532. MinGW.
  6533. * src/common.h: Changed off_t to 64 bit in MinGW.
  6534. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6535. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6536. only a2netcompat.h is modified.
  6537. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6538. directives.
  6539. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6540. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6541. only gai_strerror.h is modified.
  6542. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6543. winsock errors in MinGW.
  6544. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6546. follow sources are applied.
  6547. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6548. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6549. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6550. I included locale.h from Platform.cc.
  6551. * src/main.cc: Moved common setup/teardown code to Platform class.
  6552. * test/AllTest.cc: Use Platform class.
  6553. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6554. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6555. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6556. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6557. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6558. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6559. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6560. aria2-0.13.2+1-mingw-2.patch.
  6561. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6562. systems which don't have termious.h. I moved the directive inside of
  6563. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6564. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6565. anyway.
  6566. * src/asctime_r.h
  6567. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6568. I added 2nd argument to the prototype declaration.
  6569. * src/StringFormat.cc: Get rid of vasprintf.
  6570. * src/getaddrinfo.h: Fixed constants.
  6571. * configure.ac: Added the check for asctime_r function.
  6572. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6573. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6574. Added writable test for Socket when the sending message is in progress.
  6575. Usually the sending message is piece message. Without wriable check,
  6576. upload latency is dropped to more than 1sec.
  6577. * src/PeerInteractionCommand.cc
  6578. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6579. Create only requested files and files which shares a piece with
  6580. requested file in multi-torrent downloads. Directory structures are
  6581. also created in the same rule.
  6582. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6583. DiskWriterEntry as in the previous implementation.
  6584. * src/MultiDiskWriter.cc
  6585. * src/MultiFileAllocationIterator.cc
  6586. * src/MultiFileAllocationIterator.h
  6587. * test/MultiFileAllocationIteratorTest.cc
  6588. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Commented out -lprofiler
  6590. * src/Makefile.am
  6591. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6592. Bump up version number to 0.14.0b.
  6593. * src/configure.ac
  6594. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. Actively establish connection to peers in seeding, when peer cache
  6596. is not full and max upload speed limit is not reached.
  6597. * src/ActivePeerConnectionCommand.cc
  6598. * src/ActivePeerConnectionCommand.h
  6599. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6601. to make room more fleshy, recently found peers.
  6602. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6603. it.
  6604. * src/DefaultPeerStorage.cc
  6605. * test/DefaultPeerStorageTest.cc
  6606. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6607. Returns cached data only when the previous receiveHandshake() is called
  6608. with peek = true.
  6609. * src/PeerConnection.cc (receiveHandshake)
  6610. * src/PeerConnection.h (receiveHandshake)
  6611. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Changed default value of -s option from 1 to 5.
  6613. Also max value of -s option is changed from 5 to 16.
  6614. * src/HelpItemFactory.cc
  6615. * src/OptionHandlerFactory.cc
  6616. * src/option_processing.cc
  6617. * src/usage_text.h
  6618. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Changed -s options behavior. Now it means the number of connections
  6620. made simultaneously in each http/ftp download.
  6621. If 1 URL is specified, the behavior is the same with old implementation.
  6622. If -s N is given and more than N URLs are specified, first N URLs are
  6623. used and remaining URLs are used for backup. If less than N URLs are
  6624. specified, some of URLs are used more than once so that totally N
  6625. connections are made simultaneously.
  6626. * src/main.cc
  6627. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6628. Included missing iosfwd or ostream header.
  6629. * src/RequestGroupMan.cc
  6630. * src/TaggedItem.cc
  6631. * src/TaggedItem.h
  6632. * src/Util.cc
  6633. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6634. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6635. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6636. * src/HttpConnection.cc: Included missing sstream.
  6637. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6638. Added --bt-max-open-files option.
  6639. * src/DefaultPieceStorage.cc
  6640. * src/HelpItemFactory.cc
  6641. * src/MultiDiskAdaptor.cc
  6642. * src/MultiDiskAdaptor.h
  6643. * src/OptionHandlerFactory.cc
  6644. * src/option_processing.cc
  6645. * src/prefs.cc
  6646. * src/prefs.h
  6647. * src/usage_text.h
  6648. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Fixed the bug that aria2 aborts when a path to a directory is given
  6650. in command-line.
  6651. * src/ProtocolDetector.cc
  6652. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6653. Limited the number files opened in each BitTorrent download. The default
  6654. value is 100. The option to change this value will be added.
  6655. * src/MultiDiskAdaptor.cc
  6656. * src/MultiDiskAdaptor.h
  6657. * src/MultiFileAllocationIterator.cc
  6658. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6659. Fixed the bug that HTTP downloads don't start with old libraries.
  6660. * src/HttpHeaderProcessor.cc
  6661. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6662. Use empty() instead of size() > 0.
  6663. * src/HttpConnection.cc
  6664. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6665. Drop connection if the incoming peer ID is the same with localhost's
  6666. one. The previous implementation drops connection when incoming peer's
  6667. IP address is the same with localhost's one.
  6668. * src/PeerListenCommand.cc
  6669. * src/DefaultBtInteractive.cc
  6670. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Returns cached data without checking whether socket is readable
  6672. if the cache is available.
  6673. * src/PeerConnection.cc (receiveHandshake)
  6674. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6675. Included stdint.h
  6676. * src/common.h
  6677. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6678. Removed duplicate HAVE_GETTIMEOFDAY
  6679. * src/Makefile.am
  6680. * src/Makefile.in
  6681. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Use interval as a minInterval when minInterval is not supplied.
  6683. * src/DefaultBtAnnounce.cc
  6684. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6686. attempt is failed, then 2nd attempt get kicked out more quickly.
  6687. And it is now static const member of DefaultBtAnnounce.
  6688. * src/DefaultBtAnnounce.h
  6689. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6691. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6692. * src/ActivePeerConnectionCommand.cc
  6693. * src/BtConstants.h
  6694. * src/BtRuntime.h
  6695. * src/DHTGetPeersCommand.cc
  6696. * src/DefaultBtAnnounce.cc
  6697. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6698. BtRuntime::MAX_PEERS.
  6699. * src/DefaultPeerStorage.h
  6700. * src/InitiatorMSEHandshakeCommand.cc
  6701. * src/PeerInitiateConnectionCommand.cc
  6702. * src/PeerInteractionCommand.cc
  6703. * src/PeerReceiveHandshakeCommand.cc
  6704. * src/TrackerWatcherCommand.cc
  6705. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6706. Always Connect to _numNewConnection
  6707. * src/ActivePeerConnectionCommand.cc
  6708. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Made `begin' unsigned int.
  6710. * src/GrowSegment.h
  6711. * src/Piece.cc
  6712. * src/Piece.h
  6713. * src/PiecedSegment.cc
  6714. * src/PiecedSegment.h
  6715. * src/Segment.h
  6716. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Calculate piece hash when data is arrived if the data is arrived in
  6718. order. This removes additional read operation for hash calculation.
  6719. If the data is arrived in out of order, the hash is calucated when the
  6720. piece is completed. This is the same behavior as the old implementation.
  6721. * src/BtPieceMessage.cc
  6722. * src/DefaultBtProgressInfoFile.cc
  6723. * src/DefaultPieceStorage.cc
  6724. * src/DownloadCommand.cc
  6725. * src/DownloadCommand.h
  6726. * src/DownloadEngine.cc
  6727. * src/GrowSegment.cc
  6728. * src/GrowSegment.h
  6729. * src/Piece.cc
  6730. * src/Piece.h
  6731. * src/PiecedSegment.cc
  6732. * src/PiecedSegment.h
  6733. * src/Segment.h
  6734. * test/PieceTest.cc
  6735. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Try to keep the ordering of outgoing piece message.
  6737. * src/DefaultBtMessageDispatcher.cc
  6738. (DefaultBtMessageDispatcher::sendMessages)
  6739. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6740. Fixed busy loop when error/hup epoll events occur.
  6741. * src/AbstractCommand.cc
  6742. * src/PeerAbstractCommand.cc
  6743. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6744. Added --bt-request-peer-speed-limit option, which was a constant
  6745. SLOW_SPEED_THRESHOLD.
  6746. * src/ActivePeerConnectionCommand.cc
  6747. * src/ActivePeerConnectionCommand.h
  6748. * src/BtConstants.h
  6749. * src/HelpItemFactory.cc
  6750. * src/OptionHandlerFactory.cc
  6751. * src/PeerReceiveHandshakeCommand.cc
  6752. * src/option_processing.cc
  6753. * src/prefs.cc
  6754. * src/prefs.h
  6755. * src/usage_text.h
  6756. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Removed repeated call of getTopDirPath(). Instead, call it once and
  6758. cache the result.
  6759. * src/MultiDiskAdaptor.cc
  6760. * src/MultiDiskAdaptor.h
  6761. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6762. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Fixed compile error on debian etch.
  6764. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6765. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6766. it is undefined.
  6767. * src/Util.cc (ULLONG_MAX)
  6768. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6769. Added epoll support. Use epoll if it is available. If not, use select.
  6770. When async dns is enabled in compile time, epoll support is enabled
  6771. only when aria2 is built with c-ares. This condition statement is
  6772. defined in a2io.h.
  6773. Currently aria2 supports both c-ares and ares, but ares is maintained
  6774. for quite a while and debian already has c-ares package, ares support
  6775. will be dropped in the future version.
  6776. * configure.ac
  6777. * src/AbstractCommand.cc
  6778. * src/AsyncNameResolver.cc
  6779. * src/AsyncNameResolver.h
  6780. * src/Command.cc
  6781. * src/Command.h
  6782. * src/DownloadEngine.cc
  6783. * src/DownloadEngine.h
  6784. * src/PeerAbstractCommand.cc
  6785. * src/SocketCore.cc
  6786. * src/SocketCore.h
  6787. * src/a2io.h
  6788. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6789. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6790. directive.
  6791. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6792. Do not do write operation to /dev/null file.
  6793. * src/LogFactory.cc
  6794. * src/SimpleLogger.cc
  6795. Replaced vasprintf with vsnprintf
  6796. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6797. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6798. * src/BtRequestMessage.cc
  6799. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6800. for segmentation fault caused by previous commit.
  6801. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6802. Reduced the usage of gettimeofday().
  6803. * src/DefaultBtMessageDispatcher.cc
  6804. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6805. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6806. * src/RequestSlot.cc
  6807. * src/RequestSlot.h
  6808. (RequestSlot::isTimeout)
  6809. Made RequestSlot have a reference to Piece object to avoid find
  6810. Piece repeatedly.
  6811. * src/DefaultBtMessageDispatcher.cc
  6812. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6813. * src/RequestSlot.cc
  6814. * src/RequestSlot.h
  6815. (RequestSlot::getPiece)
  6816. * test/DefaultBtMessageDispatcherTest.cc
  6817. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. * src/TimeA2.cc
  6819. * src/TimeA2.h
  6820. (Time::difference): New function.
  6821. (Time::elapsed): Done optimization.
  6822. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6823. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6824. directive.
  6825. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6826. * src/option_processing.cc: Added missing `defined' keyword to #if
  6827. directive.
  6828. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6829. Bump up version number to 0.13.2+1
  6830. * src/configure.ac
  6831. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6832. Refactored broken outstanding piece handling.
  6833. * src/DefaultPieceStorage.cc
  6834. * src/DefaultPieceStorage.h
  6835. * src/Piece.cc
  6836. * src/Piece.h
  6837. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6838. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6839. name collision of static variable and predefined macro.
  6840. * src/BtContext.cc
  6841. * src/BtContext.h
  6842. * src/CookieBoxFactory.cc
  6843. * src/CookieBoxFactory.h
  6844. * src/CookieParser.cc
  6845. * src/CookieParser.h
  6846. * src/DefaultBtContext.cc
  6847. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. * src/RequestGroup.cc
  6849. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6850. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6851. * Release 0.13.2
  6852. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6853. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6854. * po/fr.po
  6855. * po/ja.po
  6856. * po/aria2c.pot
  6857. * po/*.po
  6858. * po/*.gmo
  6859. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Bump up version number to 0.13.2
  6861. * src/configure.ac
  6862. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Refactord.
  6864. * src/RequestGroupMan.cc
  6865. (removeStoppedGroup)
  6866. (fillRequestGroupFromReserver)
  6867. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. Fixed compile error on Ubuntu.
  6869. * src/BtPieceMessage.cc
  6870. * src/MessageDigestHelper.cc
  6871. * src/Util.cc
  6872. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Fixed compile error when configured with --disable-bittorrent
  6874. * test/DownloadHandlerFactoryTest.cc
  6875. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Done make update-po
  6877. * po/aria2c.pot
  6878. * po/*.po
  6879. * po/*.gmo
  6880. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6881. Bump up version number to 0.13.2rc.
  6882. * src/configure.ac
  6883. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6884. Made option name bold. Updated SYNOPSIS to make it more readable.
  6885. * doc/aria2c.1.txt
  6886. * doc/aria2c.1
  6887. * doc/aria2c.1.html
  6888. * src/version_usage.cc
  6889. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6890. Refactored. Use std::string instead of size and char*.
  6891. * Data.cc
  6892. * Data.h
  6893. * test/Data.cc
  6894. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6895. Added trimSelf(). Rewritten trim() to use trimSelf().
  6896. * Util.cc
  6897. * Util.h
  6898. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6899. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6900. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6901. Fixed compile error when configured with --disable-metalink.
  6902. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6903. * test/FeatureConfigTest.cc
  6904. * test/DownloadHandlerFactoryTest.cc
  6905. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6906. Fixed compile error when configured with --without-gnutls
  6907. --without-openssl
  6908. * src/main.cc
  6909. * test/DefaultBtProgressInfoFileTest.cc
  6910. * test/SegmentManTest.cc
  6911. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6912. Fixed compile error with OpenSSL.
  6913. * src/IteratableChunkChecksumValidator.cc
  6914. * src/LibsslDHKeyExchange.h
  6915. * src/MessageDigestHelper.cc
  6916. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Revert the default value of --max-concurrent-downloads to 5.
  6918. Revert the default value of --metalink-servers to 5.
  6919. Man pages was also updated.
  6920. * src/option_processing.cc
  6921. * doc/aria2c.1.txt
  6922. * doc/aria2c.1.html
  6923. * doc/aria2c.1
  6924. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Returns const reference:
  6926. DownloadContext::getPieceHash, DownloadContext::getName,
  6927. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6928. BtContext::getInfoHashAsString,
  6929. * src/BtContext.h
  6930. * src/DefaultBtContext.cc
  6931. * src/DefaultBtContext.h
  6932. * src/DownloadContext.h
  6933. * src/SingleFileDownloadContext.h
  6934. * test/MockBtContext.h
  6935. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6936. * src/RequestGroup.h (getDir): Removed.
  6937. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6938. Returns const reference. The internal urlencode function was optimized
  6939. a little bit.
  6940. * src/Request.cc
  6941. * src/Request.h
  6942. * src/HttpRequest.cc
  6943. * src/HttpRequest.h
  6944. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6945. Defined option name and possible values as std::string to reduce
  6946. temporary string object creation in runtime.
  6947. * src/HelpItemFactory.cc
  6948. * src/LogFactory.cc
  6949. * src/Option.cc
  6950. * src/OptionHandlerFactory.cc
  6951. * src/option_processing.cc
  6952. * src/prefs.cc
  6953. * src/prefs.h
  6954. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6955. Return const reference.
  6956. * src/DownloadHandlerConstants.cc
  6957. * src/DownloadHandlerConstants.h
  6958. (getMetalinkExtensions)
  6959. (getMetalinkContentTypes)
  6960. (getBtExtensions)
  6961. (getBtContentTypes)
  6962. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6963. * src/HttpHeader.cc (get): Rewritten.
  6964. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Make HttpHeader::getFirst(...) return const reference.
  6966. * src/HttpHeader.cc
  6967. * src/HttpHeader.h
  6968. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6969. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6970. it with V_TRUE.
  6971. * src/DefaultPieceStorage.cc
  6972. * src/DownloadCommand.cc
  6973. * src/FtpNegotiationCommand.cc
  6974. * src/HttpRequest.cc
  6975. * src/InitiateConnectionCommand.cc
  6976. * src/RequestGroup.cc
  6977. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6978. Made Option::get(...) return const reference of std::string.
  6979. * src/Option.cc
  6980. * src/Option.h
  6981. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6982. Replaced std:copy with insert.
  6983. * src/DefaultBtMessageDispatcher.cc
  6984. * src/DefaultPieceStorage.cc
  6985. * src/DownloadEngineFactory.cc
  6986. * src/RequestGroup.cc
  6987. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. Included SocketCore.h to fix compiler warning.
  6989. * src/InitiateConnectionCommand.cc
  6990. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6991. Put piece selection strategy algorithm to RarestPieceSelector class,
  6992. Added a switch to choose whether randomized selection so that unit
  6993. tests emit same results in, possibly, win32.
  6994. * src/DefaultPieceStorage.cc
  6995. * src/DefaultPieceStorage.h
  6996. * src/RarestPieceSelector.cc
  6997. * src/RarestPieceSelector.h
  6998. * test/DefaultPieceStorageTest.cc
  6999. * test/RarestPieceSelectorTest.cc
  7000. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7001. Don't pool connection if HTTP proxy is enabled.
  7002. * src/FtpFinishDownloadCommand.cc
  7003. * src/FtpNegotiationCommand.cc
  7004. * src/HttpSkipResponseCommand.cc
  7005. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7007. * src/AbstractCommand.cc
  7008. * src/AbstractCommand.h
  7009. * src/ActivePeerConnectionCommand.cc
  7010. * src/FtpInitiateConnectionCommand.cc
  7011. * src/HttpInitiateConnectionCommand.cc
  7012. * src/InitiateConnectionCommandFactory.cc
  7013. * src/PeerAbstractCommand.cc
  7014. * src/PeerAbstractCommand.h
  7015. * src/PeerInitiateConnectionCommand.cc
  7016. * src/TrackerWatcherCommand.cc
  7017. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. Sort RequestSlot in ascending order and manipulate them using
  7019. lower_bound.
  7020. * src/DefaultBtMessageDispatcher.cc
  7021. * src/DefaultBtMessageDispatcher.h
  7022. (getMessageQueue): Added const qualifier.
  7023. (getRequestSlots): Added const qualifier.
  7024. (sendMessages): Use empty() instead of size().
  7025. (doCancelSendingPieceAction): Use HandleEvent object.
  7026. (doAbortOutstandingRequestAction): Rewritten.
  7027. (doChokedAction): Rewritten.
  7028. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7029. (isOutstandingRequest): Rewritten.
  7030. (getOutstandingRequest): Rewritten.
  7031. (removeOutstandingRequest): Rewritten.
  7032. (addOutstandingRequest): Rewritten.
  7033. * src/RequestSlot.cc
  7034. * src/RequestSlot.h
  7035. (operator=): Rewritten.
  7036. (operator!=): New function.
  7037. (operator<): New function.
  7038. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7039. * src/DefaultBtRequestFactory.cc
  7040. (doChokedAction): Rewritten.
  7041. (removeCompletedPiece): Rewritten.
  7042. (removeTargetPiece): Rewritten.
  7043. (createRequestMessages): Added the debug log.
  7044. (createRequestMessagesOnEndGame: Added the debug log.
  7045. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7046. Added the debug log message.
  7047. * src/BtPieceMessage.cc (doReceivedAction)
  7048. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7049. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7050. used lower_bound to process them rather than linear search.
  7051. * src/DHTPeerAnnounceStorage.cc
  7052. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7054. peer has at least one completed piece.
  7055. * src/Peer.cc
  7056. * src/Peer.h
  7057. * src/PeerInteractionCommand.cc
  7058. * src/PeerSessionResource.cc
  7059. * src/PeerSessionResource.h
  7060. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7061. Removed unnecessary sorting
  7062. * src/DefaultPieceStorage (DefaultPieceStorage)
  7063. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7064. Rewritten the portion of the code that mangaes allowed fast indexes.
  7065. * src/PeerSessionResource.cc
  7066. * src/PeerSessionResource.h
  7067. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7068. Removed the invalid string including '\r' from ru.po and
  7069. did make update-po.
  7070. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Added --log-level and --summary-interval to man page.
  7072. * doc/aria2c.1.txt
  7073. * doc/aria2c.1.html
  7074. * doc/aria2c.1
  7075. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7076. Added --log-level option to specify log level. Log messages under
  7077. the specified level are not output. Default value is `debug'.
  7078. * src/HelpItemFactory.cc
  7079. * src/LogFactory.cc
  7080. * src/LogFactory.h
  7081. * src/Logger.h
  7082. * src/OptionHandlerFactory.cc
  7083. * src/SimpleLogger.cc
  7084. * src/SimpleLogger.h
  7085. * src/main.cc
  7086. * src/option_processing.cc
  7087. * src/prefs.h
  7088. * src/usage_text.h
  7089. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7090. Print download progress summary of all parallel downloads in specified
  7091. interval, default 60 secs. While aria2 could download several files
  7092. in parallel (see -j option), it displayed just first download progress,
  7093. and the other downloads are hidden from the users. This new feature
  7094. prints all downloads currently in-progress to the console so that you
  7095. can check the status of all downloads. The interval can be adjusted
  7096. by --summary-interval option.
  7097. The progress readout is now cut so that all fits in the one line of
  7098. console.
  7099. * src/ConsoleStatCalc.cc
  7100. * src/ConsoleStatCalc.h
  7101. * src/HelpItemFactory.cc
  7102. * src/OptionHandlerFactory.cc
  7103. * src/RequestGroupMan.cc
  7104. * src/RequestGroupMan.h
  7105. * src/main.cc
  7106. * src/option_processing.cc
  7107. * src/prefs.h
  7108. * src/usage_text.h
  7109. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7110. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7111. * src/DownloadEngine.cc (DownloadEngine)
  7112. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7113. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7114. defined.
  7115. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7116. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7117. Use erase+lower_bound+insert instead of sort.
  7118. * src/DefaultPieceStorage.cc (addPieceStats)
  7119. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7120. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7121. * src/A2STR.cc
  7122. * src/A2STR.h
  7123. * src/OptionParser.cc (parse)
  7124. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7125. Defined fake filename `[tracker.announce]' as static const std::string.
  7126. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7127. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Defined default filename `index.html' as static const std::string
  7129. * src/SingleFileDownloadContext.cc
  7130. * src/SingleFileDownloadContext.h
  7131. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. Defined "[MEMORY]" as static const std::string.
  7133. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7134. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Defined control file's version number as static const std::string.
  7136. * src/DefaultBtProgressInfoFile.cc
  7137. * src/DefaultBtProgressInfoFile.h
  7138. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7139. Use Request::METHOD_GET
  7140. * src/RequestGroup.cc (createNextCommandWithAdj)
  7141. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Defined "OK", "ERR", "INPR" as static const std::string
  7143. * src/RequestGroupMan.cc (showDownloadResults)
  7144. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Defined default client used in extended handshake as static const
  7146. std::string
  7147. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7148. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7150. * src/HttpConnection.cc (eraseConfidentialInfo)
  7151. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7152. Defined default ftp user and password as static const std::string
  7153. * src/AuthConfigFactory.cc
  7154. * src/AuthConfigFactory.h
  7155. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Defined strings used in netrc as static const std::string
  7157. * src/Netrc.cc
  7158. * src/Netrc.h
  7159. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7160. Defined HTTP status as static const std::string
  7161. * src/AbstractProxyResponseCommand.cc
  7162. * src/HttpHeader.cc
  7163. * src/HttpHeader.h
  7164. * src/HttpResponse.cc
  7165. * src/HttpResponseCommand.cc
  7166. * src/HttpSkipResponseCommand.cc
  7167. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Defined "\r\n", "A", "I" as static const std::string
  7169. * src/A2STR.cc
  7170. * src/A2STR.h
  7171. * src/FtpConnection.cc
  7172. * src/FtpConnection.h
  7173. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7174. Added COLON_C(".") and used it in Request::parseUrl()
  7175. * src/A2STR.cc
  7176. * src/A2STR.h
  7177. * src/Request.cc (parseUrl)
  7178. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Changed the type of padName from `const std::string&' to `const char*'.
  7180. * src/MSEHandshake.cc (verifyPadLength)
  7181. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7182. Defined "sha1" as static const std::string.
  7183. * src/MetalinkParserController.cc
  7184. * src/MetalinkParserController.h
  7185. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Defined message digest algorithm name as static const std::string
  7187. * src/DHTTokenTracker.cc
  7188. * src/DHTUtil.cc
  7189. * src/DefaultBtContext.cc
  7190. * src/MSEHandshake.cc
  7191. * src/MessageDigestHelper.cc
  7192. * src/Peer.cc
  7193. * src/messageDigest.cc
  7194. * src/messageDigest.h
  7195. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7196. Made string literals used in SAX parser static const std::string.
  7197. * src/FileMetalinkParserState.cc
  7198. * src/FileMetalinkParserState.h
  7199. * src/FilesMetalinkParserState.cc
  7200. * src/FilesMetalinkParserState.h
  7201. * src/InitialMetalinkParserState.cc
  7202. * src/InitialMetalinkParserState.h
  7203. * src/MetalinkMetalinkParserState.cc
  7204. * src/MetalinkMetalinkParserState.h
  7205. * src/PiecesMetalinkParserState.cc
  7206. * src/PiecesMetalinkParserState.h
  7207. * src/ResourcesMetalinkParserState.cc
  7208. * src/ResourcesMetalinkParserState.h
  7209. * src/VerificationMetalinkParserState.cc
  7210. * src/VerificationMetalinkParserState.h
  7211. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7212. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7213. * src/A2STR.cc
  7214. * src/A2STR.h
  7215. * src/File.cc
  7216. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7217. Defined static const std::string IP("ip"), PORT("port") and use them
  7218. instead of string literals.
  7219. * src/DefaultPeerListProcessor.cc
  7220. * src/DefaultPeerListProcessor.h
  7221. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Made string literals for torrent file processing static const
  7223. std::string.
  7224. * src/BtContext.cc
  7225. * src/BtContext.h
  7226. * src/DefaultBtContext.cc
  7227. * src/DefaultBtContext.h
  7228. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. Made string literal for tracker response static const std::string
  7230. * src/BtAnnounce.cc
  7231. * src/BtAnnounce.h
  7232. * src/DefaultBtAnnounce.cc
  7233. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Use DHTMessage::T instead of "t".
  7235. * src/DHTMessageTracker.cc (messageArrived)
  7236. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7237. Made keyName static const. Made trimmed charset static const
  7238. std::string.
  7239. * src/Util.cc (getContentDispositionFilename)
  7240. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7241. Made USER_AGENT const. Made "/" static const std::string.
  7242. * src/A2STR.cc
  7243. * src/A2STR.h
  7244. * src/HttpRequest.cc
  7245. * src/HttpRequest.h
  7246. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7247. Made string listeral to static const std::string:
  7248. "Content-Range", "Content-Length"
  7249. * src/HttpHeader.cc
  7250. * src/HttpHeader.h
  7251. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7252. Made string listeral to static const std::string.
  7253. * src/HttpConnection.cc
  7254. * src/HttpHeader.cc
  7255. * src/HttpHeader.h
  7256. * src/HttpResponse.cc
  7257. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. Made string listeral to static const std::string.
  7259. * src/A2STR.cc
  7260. * src/A2STR.h
  7261. * src/SimpleLogger.cc
  7262. * src/SimpleLogger.h
  7263. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7264. Made string literal to static const std::string.
  7265. Rewritten CookieParser::setField.
  7266. * src/A2STR.cc
  7267. * src/A2STR.h
  7268. * src/CookieBoxFactory.cc
  7269. * src/CookieBoxFactory.h
  7270. * src/CookieParser.cc
  7271. * src/CookieParser.h
  7272. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7273. Made string literal to static const std::string
  7274. * src/DHTAbstractMessage.cc
  7275. * src/DHTAnnouncePeerMessage.cc
  7276. * src/DHTAnnouncePeerMessage.h
  7277. * src/DHTAnnouncePeerReplyMessage.cc
  7278. * src/DHTAnnouncePeerReplyMessage.h
  7279. * src/DHTFindNodeMessage.cc
  7280. * src/DHTFindNodeMessage.h
  7281. * src/DHTFindNodeReplyMessage.cc
  7282. * src/DHTFindNodeReplyMessage.h
  7283. * src/DHTGetPeersMessage.cc
  7284. * src/DHTGetPeersMessage.h
  7285. * src/DHTGetPeersReplyMessage.cc
  7286. * src/DHTGetPeersReplyMessage.h
  7287. * src/DHTMessage.cc
  7288. * src/DHTMessage.h
  7289. * src/DHTMessageFactoryImpl.cc
  7290. * src/DHTMessageReceiver.cc
  7291. * src/DHTPingMessage.cc
  7292. * src/DHTPingMessage.h
  7293. * src/DHTPingReplyMessage.cc
  7294. * src/DHTPingReplyMessage.h
  7295. * src/DHTQueryMessage.cc
  7296. * src/DHTQueryMessage.h
  7297. * src/DHTResponseMessage.cc
  7298. * src/DHTResponseMessage.h
  7299. * src/DHTUnknownMessage.cc
  7300. * src/DHTUnknownMessage.h
  7301. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7302. Made string literal to static const std::string
  7303. * src/BtChokeMessage.cc (toString)
  7304. * src/BtHaveAllMessage.cc (toString)
  7305. * src/BtHaveNoneMessage.cc (toString)
  7306. * src/BtInterestedMessage.cc (toString)
  7307. * src/BtNotInterestedMessage.cc (toString)
  7308. * src/BtUnchokeMessage.cc (toString)
  7309. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7310. Replaced "" with static const variable A2STR::NIL.
  7311. Replaced string comparison against "" with std::string::empty().
  7312. Added PROTO_* to Request class and use them as a protocol string
  7313. constant.
  7314. Made "started", "stopped", "completed" static const variable in
  7315. AnnounceList class.
  7316. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7317. Updated translations. Great thanks to translators.
  7318. * po/ca.po
  7319. * po/de.po
  7320. * po/fr.po
  7321. * po/it.po
  7322. * po/ja.po
  7323. * po/ru.po
  7324. * po/zh_CN.po
  7325. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. Updated man page; categorized options and fixed typo.
  7327. * doc/aria2c.1.txt
  7328. * doc/aria2c.1.html
  7329. * doc/aria2c.1
  7330. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7331. Removed const ref
  7332. * src/MetalinkEntry.cc (AddProtocolPreference)
  7333. * src/RequestGroup.cc (FindServerHostByHostname)
  7334. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Rewritten Accept-Features handling.
  7336. * src/HttpRequestCommand.cc (createHttpRequest)
  7337. * src/a2functional.h
  7338. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. Changed method signature:
  7340. DHTAbstractNodeLookupTask::toEntries
  7341. * src/DHTAbstractNodeLookupTask.cc
  7342. * src/DHTAbstractNodeLookupTask.h
  7343. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7344. Changed method signature:
  7345. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7346. * src/BtContext.h
  7347. * src/DefaultBtContext.cc
  7348. * src/DefaultBtContext.h
  7349. * src/DefaultBtInteractive.cc
  7350. * test/DefaultBtContextTest.cc
  7351. * test/MockBtContext.h
  7352. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7353. Changed method signature:
  7354. MultiFileAllocationIterator::makeDiskWriterEntries
  7355. * src/MultiFileAllocationIterator.cc
  7356. * src/MultiFileAllocationIterator.h
  7357. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7358. Changed method sinature:
  7359. MetalinkEntry::toFileEntry,
  7360. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7361. Metalinker::queryEntry
  7362. * src/Metalink2RequestGroup.cc
  7363. * src/MetalinkEntry.cc
  7364. * src/MetalinkEntry.h
  7365. * src/MetalinkHelper.cc
  7366. * src/MetalinkHelper.h
  7367. * src/Metalinker.cc
  7368. * src/Metalinker.h
  7369. * src/main.cc
  7370. * test/MetalinkHelperTest.cc
  7371. * test/MetalinkerTest.cc
  7372. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7373. Changed method sinature:
  7374. RequestGroup::getURIs
  7375. * src/RequestGroup.cc
  7376. * src/RequestGroup.h
  7377. * test/Metalink2RequestGroupTest.cc
  7378. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Changed method signature:
  7380. PeerListProcessor::extractPeer
  7381. * src/CompactPeerListProcessor.cc
  7382. * src/CompactPeerListProcessor.h
  7383. * src/DefaultBtAnnounce.cc
  7384. * src/DefaultPeerListProcessor.cc
  7385. * src/DefaultPeerListProcessor.h
  7386. * src/DelegatingPeerListProcessor.cc
  7387. * src/DelegatingPeerListProcessor.h
  7388. * src/PeerListProcessor.h
  7389. * src/UTPexExtensionMessage.cc
  7390. * test/DefaultPeerListProcessorTest.cc
  7391. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7392. Changed method signature:
  7393. BtRequestFactory::createRequestMessages,
  7394. BtRequestFactory::createRequestMessagesOnEndGame
  7395. * src/BtRequestFactory.h
  7396. * src/DefaultBtInteractive.cc
  7397. * src/DefaultBtRequestFactory.cc
  7398. * src/DefaultBtRequestFactory.h
  7399. * test/DefaultBtRequestFactoryTest.cc
  7400. * test/MockBtRequestFactory.h
  7401. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Changed method signature:
  7403. PieceStorage::getInFlightPieces
  7404. * src/DefaultBtProgressInfoFile.cc
  7405. * src/DefaultPieceStorage.cc
  7406. * src/DefaultPieceStorage.h
  7407. * src/PieceStorage.h
  7408. * src/UnknownLengthPieceStorage.cc
  7409. * src/UnknownLengthPieceStorage.h
  7410. * test/DefaultBtProgressInfoFileTest.cc
  7411. * test/MockPieceStorage.h
  7412. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7413. Changed method signature:
  7414. PostDownloadHandler::getNextRequestGroups
  7415. Metalink2RequestGroup::generate
  7416. RequestGroup::postDownloadProcessing
  7417. * src/BtPostDownloadHandler.cc
  7418. * src/BtPostDownloadHandler.h
  7419. * src/Metalink2RequestGroup.cc
  7420. * src/Metalink2RequestGroup.h
  7421. * src/MetalinkPostDownloadHandler.cc
  7422. * src/MetalinkPostDownloadHandler.h
  7423. * src/PostDownloadHandler.h
  7424. * src/RequestGroup.cc
  7425. * src/RequestGroup.h
  7426. * src/RequestGroupMan.cc
  7427. * src/main.cc
  7428. * test/BtPostDownloadHandlerTest.cc
  7429. * test/Metalink2RequestGroupTest.cc
  7430. * test/MetalinkPostDownloadHandlerTest.cc
  7431. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7432. Rewritten AccRequestGroup
  7433. * src/main.cc
  7434. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7435. Rewritten.
  7436. * src/TaggedItem.cc (toTagString)
  7437. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7438. Rewritten Accept-Features handling.
  7439. * src/HttpRequestCommand.cc (createHttpRequest)
  7440. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. Rewritten accept types handling.
  7442. * HttpRequest.cc (createRequest)
  7443. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Rewritten
  7445. * src/FeatureConfig.cc (featureSummary)
  7446. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7447. Changed method signature:
  7448. PeerStorage::getActivePeers
  7449. * src/DHTPeerAnnounceEntry.cc
  7450. * src/DefaultPeerStorage.cc
  7451. * src/DefaultPeerStorage.h
  7452. * src/PeerStorage.h
  7453. * test/DefaultPeerStorageTest.cc
  7454. * test/MockPeerStorage.h
  7455. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7456. Changed method signature:
  7457. DHTPeerAnnounceStorage::getPeers,
  7458. DHTPeerAnnounceEntry::getPeers
  7459. * src/DHTGetPeersMessage.cc
  7460. * src/DHTPeerAnnounceEntry.cc
  7461. * src/DHTPeerAnnounceEntry.h
  7462. * src/DHTPeerAnnounceStorage.cc
  7463. * src/DHTPeerAnnounceStorage.h
  7464. * test/DHTAnnouncePeerMessageTest.cc
  7465. * test/DHTPeerAnnounceEntryTest.cc
  7466. * test/DHTPeerAnnounceStorageTest.cc
  7467. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7468. Changed method signature:
  7469. NameResolver::resolve
  7470. * src/DHTEntryPointNameResolveCommand.cc
  7471. * src/InitiateConnectionCommand.cc
  7472. * src/NameResolver.cc
  7473. * src/NameResolver.h
  7474. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7475. Changed method signature:
  7476. PieceStorage::getAdvertisedPieceIndexes
  7477. * src/DefaultBtInteractive.cc
  7478. * src/DefaultPieceStorage.cc
  7479. * src/DefaultPieceStorage.h
  7480. * src/PieceStorage.h
  7481. * src/UnknownLengthPieceStorage.h
  7482. * test/MockPieceStorage.h
  7483. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7484. Changed method signature:
  7485. SegmentMan::getInFlightSegment
  7486. * src/AbstractCommand.cc
  7487. * src/SegmentMan.cc
  7488. * src/SegmentMan.h
  7489. * test/SegmentManTest.cc
  7490. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7491. Changed method signature:
  7492. DHTAbstractNodeLookupTask::getNodesFromMessage
  7493. * src/DHTAbstractNodeLookupTask.cc
  7494. * src/DHTAbstractNodeLookupTask.h
  7495. * src/DHTNodeLookupTask.cc
  7496. * src/DHTNodeLookupTask.h
  7497. * src/DHTPeerLookupTask.cc
  7498. * src/DHTPeerLookupTask.h
  7499. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7500. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7501. * src/AbstractCommand.cc
  7502. * src/BtCheckIntegrityEntry.cc
  7503. * src/BtCheckIntegrityEntry.h
  7504. * src/BtFileAllocationEntry.cc
  7505. * src/BtFileAllocationEntry.h
  7506. * src/BtSetup.cc
  7507. * src/BtSetup.h
  7508. * src/CheckIntegrityCommand.cc
  7509. * src/CheckIntegrityEntry.h
  7510. * src/ChecksumCheckIntegrityEntry.cc
  7511. * src/ChecksumCheckIntegrityEntry.h
  7512. * src/DHTSetup.cc
  7513. * src/DHTSetup.h
  7514. * src/DownloadEngine.cc
  7515. * src/FileAllocationCommand.cc
  7516. * src/FileAllocationEntry.h
  7517. * src/RequestGroup.cc
  7518. * src/RequestGroup.h
  7519. * src/RequestGroupMan.cc
  7520. * src/RequestGroupMan.h
  7521. * src/StreamCheckIntegrityEntry.cc
  7522. * src/StreamCheckIntegrityEntry.h
  7523. * src/StreamFileAllocationEntry.cc
  7524. * src/StreamFileAllocationEntry.h
  7525. * src/TrackerWatcherCommand.cc
  7526. * src/a2functional.h
  7527. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Changed method signature:
  7529. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7530. DHTBucket::getGoodNodes,
  7531. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7532. * src/BNode.cc
  7533. * src/BNode.h
  7534. * src/DHTAbstractNodeLookupTask.cc
  7535. * src/DHTAutoSaveCommand.cc
  7536. * src/DHTBucket.cc
  7537. * src/DHTBucket.h
  7538. * src/DHTBucketRefreshTask.cc
  7539. * src/DHTFindNodeMessage.cc
  7540. * src/DHTGetPeersMessage.cc
  7541. * src/DHTRoutingTable.cc
  7542. * src/DHTRoutingTable.h
  7543. * test/BNodeTest.cc
  7544. * test/DHTBucketTest.cc
  7545. * test/DHTRoutingTableTest.cc
  7546. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. In piece selection functions, Pass std::deque<...> by reference rather
  7548. than returning it.
  7549. * src/BitfieldMan.cc
  7550. * src/BitfieldMan.h
  7551. * src/DefaultBtRequestFactory.cc
  7552. * src/DefaultPieceStorage.cc
  7553. * src/Piece.cc
  7554. * src/Piece.h
  7555. * test/BitfieldManTest.cc
  7556. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7557. Implemented rarest piece first piece selection strategy.
  7558. * src/AbstractBtMessage.cc
  7559. * src/AbstractBtMessage.h
  7560. * src/BitfieldMan.cc
  7561. * src/BitfieldMan.h
  7562. * src/BtBitfieldMessage.cc
  7563. * src/BtHaveAllMessage.cc
  7564. * src/BtHaveMessage.cc
  7565. * src/DefaultPieceStorage.cc
  7566. * src/DefaultPieceStorage.h
  7567. * src/PeerInteractionCommand.cc
  7568. * src/PieceStorage.h
  7569. * src/UnknownLengthPieceStorage.h
  7570. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Rewritten readData and writeData.
  7572. * src/MultiDiskAdaptor.cc
  7573. * src/MultiDiskAdaptor.h
  7574. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Move \n out of the message "Usage: ...".
  7576. * src/version_usage.cc
  7577. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. Bump up version number to 0.13.2b.
  7579. * configure.ac
  7580. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Added const qualifier to argument Exception& e.
  7582. * src/Logger.h
  7583. * src/SimpleLogger.cc
  7584. * src/SimpleLogger.h
  7585. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7586. Pool connection when CWD, SIZE command fails.
  7587. * src/FtpNegotiationCommand.cc
  7588. * src/FtpNegotiationCommand.h
  7589. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7590. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7591. * src/HttpResponseCommand.cc
  7592. * src/HttpSkipResponseCommand.cc
  7593. * src/HttpSkipResponseCommand.h
  7594. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. Pool connection when a server returns 4xx, 5xx responses.
  7596. * src/HttpNullDownloadCommand.cc
  7597. * src/HttpNullDownloadCommand.h
  7598. * src/HttpResponse.cc
  7599. * src/HttpResponse.h
  7600. * src/HttpResponseCommand.cc
  7601. * src/HttpResponseCommand.h
  7602. * test/HttpResponseTest.cc
  7603. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7604. Print usage when no URL is specifed or bad command-line option is
  7605. specified.
  7606. * src/HelpItemFactory.cc
  7607. * src/help_tags.h
  7608. * src/option_processing.cc
  7609. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Removed duplicate log message.
  7611. * src/AbstractCommand.cc (asyncResolveHostname)
  7612. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7613. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7614. Changed -j option's default value from 5 to 1.
  7615. Added new examples using protocol auto detection feature.
  7616. Removed -T, -M usage where it can be omitted.
  7617. * doc/aria2c.1.txt
  7618. * doc/aria2c.1.html
  7619. * doc/aria2c.1.txt
  7620. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Updated command-line usage text, so that it tells users that they
  7622. can specify any number of torrent files and metalink files in
  7623. command-line.
  7624. * src/version_usage.cc
  7625. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. Changed the default value of -j option to 1.
  7627. * src/HelpItemFactory.cc
  7628. * src/option_processing.cc
  7629. * src/usage_text.h
  7630. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7631. Added the ability to reuse connection in FTP and it is enabled by
  7632. default. It can be disabled by --ftp-reuse-connection=false option.
  7633. * src/Command.cc
  7634. * src/DownloadCommand.cc
  7635. * src/FtpDownloadCommand.cc
  7636. * src/FtpDownloadCommand.h
  7637. * src/FtpFinishDownloadCommand.cc
  7638. * src/FtpFinishDownloadCommand.h
  7639. * src/FtpInitiateConnectionCommand.cc
  7640. * src/FtpNegotiationCommand.cc
  7641. * src/FtpNegotiationCommand.h
  7642. * src/HelpItemFactory.cc
  7643. * src/Makefile.am
  7644. * src/Makefile.in
  7645. * src/OptionHandlerFactory.cc
  7646. * src/option_processing.cc
  7647. * src/prefs.h
  7648. * src/usage_text.h
  7649. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Call Command::transitStatus() before calling Command::execute(),
  7651. so that the status change made in execute() is not cleared.
  7652. * src/DownloadEngine.cc
  7653. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7654. Removed forward declaration of SocketCore class.
  7655. * src/HttpDownloadCommand.h
  7656. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7657. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7658. in InitiateConnectionCommandFactory. They should be set only when
  7659. the protocol is HTTP or HTTPS.
  7660. * src/InitiateConnectionCommandFactory.cc
  7661. * src/RequestGroup.cc
  7662. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7663. Fixed infinite loop in checksum checking.
  7664. * src/IteratableChecksumValidator.cc
  7665. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. Set _supportsPersistentConnection to true by default.
  7667. * src/Request.cc
  7668. * src/RequestGroup.cc
  7669. * test/HttpRequestTest.cc
  7670. * test/RequestTest.cc
  7671. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7672. Added timeout to socket pool. The default timeout is 15 seconds,
  7673. which is the same value Apache uses.
  7674. * src/DownloadEngine.cc
  7675. * src/DownloadEngine.h
  7676. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7677. Fixed misuse of multimap::find()
  7678. * src/HttpHeader.cc
  7679. * test/HttpHeaderTest.cc
  7680. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7682. option.
  7683. The asynchronous DNS is not capable of IPv6 yet.
  7684. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7685. least for HTTP download.
  7686. * src/AbstractCommand.cc
  7687. * src/AbstractCommand.h
  7688. * src/AsyncNameResolver.cc
  7689. * src/AsyncNameResolver.h
  7690. * src/DHTEntryPointNameResolveCommand.cc
  7691. * src/DHTEntryPointNameResolveCommand.h
  7692. * src/DownloadEngine.cc
  7693. * src/DownloadEngine.h
  7694. * src/FtpInitiateConnectionCommand.cc
  7695. * src/FtpInitiateConnectionCommand.h
  7696. * src/HelpItemFactory.cc
  7697. * src/HttpInitiateConnectionCommand.cc
  7698. * src/HttpInitiateConnectionCommand.h
  7699. * src/InitiateConnectionCommand.cc
  7700. * src/InitiateConnectionCommand.h
  7701. * src/Makefile.am
  7702. * src/Makefile.in
  7703. * src/NameResolver.cc
  7704. * src/NameResolver.h
  7705. * src/OptionHandlerFactory.cc
  7706. * src/SocketCore.cc
  7707. * src/SocketCore.h
  7708. * src/Util.cc
  7709. * src/Util.h
  7710. * src/option_processing.cc
  7711. * src/prefs.h
  7712. * src/usage_text.h
  7713. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7714. Updated man page: --quiet, --header were added.
  7715. --metalink-servers and --enable-http-keep-alive option were updated.
  7716. * doc/aria2c.1
  7717. * doc/aria2c.1.html
  7718. * doc/aria2c.1.txt
  7719. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7720. Enable HTTP keep-alive by default.
  7721. * src/HelpItemFactory.cc
  7722. * src/option_processing.cc
  7723. * src/usage_text.h
  7724. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. Disable http keep-alive if the remote server is not HTTP/1.1.
  7726. * src/HttpConnection.cc
  7727. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Receive content body of 302 response so that the connection can be
  7729. reused later when http keep-alive is enabled.
  7730. * src/HttpNullDownloadCommand.cc
  7731. * src/HttpNullDownloadCommand.h
  7732. * src/HttpResponseCommand.cc
  7733. * src/HttpResponseCommand.h
  7734. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. const SharedHandle<Request> -> const SharedHandle<Request>&
  7736. * src/FtpDowndloadCommand.cc
  7737. * src/FtpDowndloadCommand.h
  7738. * src/HttpDownloadCommand.cc
  7739. * src/HttpDownloadCommand.h
  7740. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Fixed the bug that the control file(.aria2 file) is not renamed
  7742. according to tryAutoFileRenaming().
  7743. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7744. its control file exist, use them and continue download.
  7745. The old implementation didn't take into account of control file's
  7746. existence, so basically you couldn't continue download of renamed file.
  7747. * src/BtProgressInfoFile.h
  7748. * src/DefaultBtProgressInfoFile.cc
  7749. * src/DefaultBtProgressInfoFile.h
  7750. * src/NullProgressInfoFile.h
  7751. * src/RequestGroup.cc
  7752. * test/DefaultBtProgressInfoFileTest.cc
  7753. * test/MockBtProgressInfoFile.h
  7754. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Change the default value of --metalink-servers option from `5' to `1'.
  7756. * src/HelpItemFactory.cc
  7757. * src/option_processing.cc
  7758. * src/usage_text.h
  7759. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Reimplemented transparent metalink using Accept request header.
  7761. * src/HttpRequest.cc
  7762. * src/HttpRequest.h
  7763. * src/HttpRequestCommand.cc
  7764. * src/Metalink2RequestGroup.cc
  7765. * src/RequestGroup.cc
  7766. * src/RequestGroup.h
  7767. * test/HttpRequestTest.cc
  7768. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7769. Bump up version number to 0.13.2a
  7770. * configure.ac
  7771. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. Updated configure.ac using the result of autoscan.
  7773. * configure.ac
  7774. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Fixed compilation error without gcrypt/openssl.
  7776. * src/DownloadCommand.cc
  7777. * src/DownloadCommand.h
  7778. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7779. Reorganized version information so that it can be displayed in a
  7780. standard terminal screen without scrolling.
  7781. Removed http, ftp from Configuration section, because they are always
  7782. enabled.
  7783. * src/FeatureConfig.cc
  7784. * src/FeatureConfig.h
  7785. * src/main.cc
  7786. * src/messageDigest.cc
  7787. * src/messageDigest.h
  7788. * src/version_usage.cc
  7789. * test/FeatureConfigTest.cc
  7790. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Masked user ID in log.
  7792. * src/FtpConnection.cc (sendUser)
  7793. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7794. Removed query part from filename in HTTP download. The query part means
  7795. the substring after "?" in URL. Firefox seems do the same thing.
  7796. A query part is sometimes very long and not suitable to filename,
  7797. so I think it is better to remove it from filename.
  7798. * src/HttpRequest.cc
  7799. * src/HttpRequest.h
  7800. * src/Request.cc
  7801. * src/Request.h
  7802. * test/HttpRequestTest.cc
  7803. * test/RequestTest.cc
  7804. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7805. Rewritten Exception class. Throw exception object, not its pointer and
  7806. catch by reference, so that remove problematic delete operator for
  7807. catched exception.
  7808. * src/Exception.cc
  7809. * src/Exception.h
  7810. * test/ExceptionTest.cc
  7811. * src/*: All files throwing/catching exception.
  7812. * test/*: All files throwing/catching exception.
  7813. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7814. Now auto protocol detection is enabled without -Z option.
  7815. But there is a important difference between with/without -Z optoin.
  7816. For example, if you type:
  7817. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7818. then, aria2 interprets there are 3 request groups:
  7819. (1) http://host/file, http://mirror/file <-- multi-source download
  7820. (2) file1.torrent
  7821. (3) file2.metalink
  7822. On the other hand, if you invoke above command with -Z option, it is
  7823. interpreted as 4 request groups:
  7824. (1) http://host/file
  7825. (2) file1.torrent
  7826. (3) file2.metalink
  7827. (4) http://mirror/file
  7828. I think usually user don't mix multi-source URLs and torrent files, so
  7829. there is no big problem here.
  7830. * src/main.cc
  7831. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7832. Fixed the bug that causes segmentaion fault when reading XML containing
  7833. unescapsed character like '&'.
  7834. Also a modification was made which avoids adding unnecessary
  7835. characters stack and appending unused string.
  7836. * src/ExpatMetalinkProcessor.cc
  7837. * src/FileMetalinkParserState.h
  7838. * src/FilesMetalinkParserState.h
  7839. * src/FinMetalinkParserState.h
  7840. * src/HashMetalinkParserState.h
  7841. * src/InitialMetalinkParserState.h
  7842. * src/LanguageMetalinkParserState.h
  7843. * src/MetalinkMetalinkParserState.h
  7844. * src/MetalinkParserState.h
  7845. * src/MetalinkParserStateMachine.cc
  7846. * src/MetalinkParserStateMachine.h
  7847. * src/OSMetalinkParserState.h
  7848. * src/PieceHashMetalinkParserState.h
  7849. * src/PiecesMetalinkParserState.h
  7850. * src/ResourcesMetalinkParserState.h
  7851. * src/SizeMetalinkParserState.h
  7852. * src/SkipTagMetalinkParserState.h
  7853. * src/URLMetalinkParserState.h
  7854. * src/VerificationMetalinkParserState.h
  7855. * src/VersionMetalinkParserState.h
  7856. * src/XML2SAXMetalinkProcessor.cc
  7857. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7858. Added StringFormat class, which internally calls vasprintf.
  7859. operator<< is defined for this class, so it can be used with iostream
  7860. classes nicely. SimpleLogger and following functions are rewritten
  7861. using StringFormat class.
  7862. Besides, now Logger class's methods are non-const, many classes
  7863. that has a const Logger* as a member variable are modified to remove
  7864. const qualifier from the variable declaration.
  7865. * src/HelpItemFactory.cc
  7866. * src/Request.cc
  7867. * src/SimpleLogger.cc
  7868. * src/StringFormat.cc
  7869. * src/StringFormat.h
  7870. * src/Util.cc
  7871. * src/option_processing.cc
  7872. * src/version_usage.cc
  7873. * test/StringFormatTest.cc
  7874. * src/*.h: The classes that has const Logger* as a member variable.
  7875. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7877. failed. Also fixed memory link when exception is thrown there.
  7878. * src/main.cc (AccRequestGroup)
  7879. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. Added build-in "Accept-Features" support. For now only "metalink" is
  7881. used in this header field.
  7882. This "metalink" value is removed from the list when connecting URLs
  7883. fed by metalink file to avoid loop in "transparent" metlaink.
  7884. * src/HttpRequest.cc
  7885. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7886. header is also held in this variable. Also renamed setUserHeaders as
  7887. addHeader and it was rewritten to add header not just to clear the old
  7888. value.
  7889. * src/HttpRequestCommand.cc
  7890. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7891. from "Accept-Features" list.
  7892. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7893. default.
  7894. * src/RequestGroup.h
  7895. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7896. * src/a2functional.h: Included <string> because Concat class depends on
  7897. it.
  7898. * test/HttpRequestTest.cc
  7899. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. Added comment
  7901. * src/RequestGroup.cc (createNextCommand)
  7902. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7903. Capitalized METHOD_GET and METHOD_HEAD
  7904. * src/Request.cc
  7905. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7906. Added getDownloadResults() method
  7907. * src/RequestGroupMan.cc
  7908. * src/RequestGroupMan.h
  7909. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7910. Fixed the bug that aria2 exits when commands is empty() but
  7911. _routineCommands are not.
  7912. * src/DownloadEngine.cc
  7913. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Use the default value pulled from Option object in HelpItemFactory.
  7915. except options whose defualt value is embedded in a usage text.
  7916. * src/HelpItemFactory.cc
  7917. * src/HelpItemFactory.h
  7918. * src/option_processing.cc
  7919. * src/version_usage.cc
  7920. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7921. Added --quiet option to make aria2 quiet (no console output).
  7922. --quiet option is tagged with ADVANCED.
  7923. * src/HelpItemFactory.cc
  7924. * src/LogFactory.cc
  7925. * src/LogFactory.h
  7926. * src/MultiUrlRequestInfo.cc
  7927. * src/MultiUrlRequestInfo.h
  7928. * src/NullStatCalc.h: New class. This class prints nothing.
  7929. * src/OptionHandlerFactory.cc
  7930. * src/main.cc
  7931. * src/option_processing.cc
  7932. * src/prefs.h
  7933. * src/usage_text.h
  7934. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7936. * src/HelpItemFactory.cc (createHelpItems):
  7937. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Fixed compilation error in ExpatMetalinkProcessor.cc
  7939. * src/ExpatMetalinkProcessor.cc
  7940. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Reuse socket if the origin server supports HTTP keep-alive and
  7942. --enable-http-keep-alive or --enable-http-pipelining is given.
  7943. The current implementation doesn't reuse the connections established
  7944. against proxy server.
  7945. * src/AbstractCommand.cc
  7946. * src/DownloadEngine.cc
  7947. * src/DownloadEngine.h
  7948. * src/HttpDownloadCommand.cc
  7949. * src/HttpInitiateConnectionCommand.cc
  7950. * src/HttpResponseCommand.cc
  7951. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7952. Rewritten HTTP keep-alive and pipelining routine.
  7953. * src/AbstractCommand.cc
  7954. * src/HttpConnection.cc
  7955. * src/HttpDownloadCommand.cc
  7956. * src/HttpRequest.cc
  7957. * src/HttpRequestCommand.cc
  7958. * src/HttpResponseCommand.cc
  7959. * src/Request.cc
  7960. * src/Request.h
  7961. * src/RequestGroup.cc
  7962. * test/HttpRequestTest.cc
  7963. * test/HttpResponseTest.cc
  7964. * test/RequestTest.cc
  7965. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. Added missing setUserHeaders call
  7967. * src/HttpRequestCommand.cc
  7968. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7969. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7970. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7971. waste of time because it is more likey false.
  7972. * src/FileAllocationDispatcherCommand.cc (execute)
  7973. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Now HTTP status and version are a member variable of HttpHeader.
  7975. HTTP status is processed as a string, not integer.
  7976. * src/AbstractProxyResponseCommand.cc
  7977. * src/HttpConnection.cc
  7978. * src/HttpHeader.cc
  7979. * src/HttpHeader.h
  7980. * src/HttpHeaderProcessor.cc
  7981. * src/HttpHeaderProcessor.h
  7982. * src/HttpResponse.cc
  7983. * src/HttpResponse.h
  7984. * test/HttpHeaderProcessorTest.cc
  7985. * test/HttpResponseTest.cc
  7986. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Added --header option. You can specify any number of additional HTTP headers
  7988. like:
  7989. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7990. Unlike other commad-line option, you can use --header option multiple times.
  7991. * src/HelpItemFactory.cc
  7992. * src/HttpRequest.{cc, h}
  7993. * src/HttpRequestCommand.cc
  7994. * src/OptionHandlerFactory.cc
  7995. * src/OptionHandlerImpl.h
  7996. * src/option_processing.cc
  7997. * src/prefs.h
  7998. * src/usage_text.h
  7999. * test/HttpRequestTest.cc (testUserHeaders)
  8000. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Eliminates the time lag between sequential downloads and commands in
  8002. the same RequestGroup.
  8003. In old implementation, aria2 occasionally waits 1 seconds before
  8004. executing next command or RequestGroup.
  8005. This is really a waste of time, and new implementation eliminates
  8006. this unnecessary time lag.
  8007. * src/AbstractCommand.cc
  8008. * src/AutoSaveCommand.cc
  8009. * src/CheckIntegrityCommand.cc
  8010. * src/Command.{cc, h}
  8011. * src/DownloadEngine.{cc, h}
  8012. * src/DownloadEngineFactory.cc
  8013. * src/FileAllocationCommand.cc
  8014. * src/FileAllocationDispatcherCommand.cc
  8015. * src/FillRequestGroupCommand.cc
  8016. * src/FtpInitiateConnectionCommand.cc
  8017. * src/HaveEraseCommand.cc
  8018. * src/HttpInitiateConnectionCommand.cc
  8019. * src/HttpResponseCommand.cc
  8020. * src/RealtimeCommand.cc
  8021. * src/RequestGroup.cc
  8022. * src/RequestGroupMan.cc
  8023. * src/StreamFileAllocationEntry.cc
  8024. * src/TimeBasedCommand.{cc, h}
  8025. * src/TimedHaltCommand.cc
  8026. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8027. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8028. keyword explicit and SharedHandle's default constructor initializes
  8029. its internal obj to null, old implementation initializes it using
  8030. obj's default constructor.
  8031. To assign null, write SharedHandle<T> x(...); x.reset();
  8032. TODO: test/SharedHandleTest.cc needs more tests.
  8033. * src/SharedHandle.h
  8034. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8035. Fixed type in man page.
  8036. * doc/aria2c.1.txt
  8037. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8039. * src/SimpleLogger.{cc, h}
  8040. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Implemented auto protocol detection.
  8042. Now you can do:
  8043. aria2c -Z http://host/file file1.torrent file2.metalink
  8044. (Note: -Z option is required for auto protcol detection.)
  8045. Then aria2c downloads 3 files simultaneously:
  8046. 1. http://host/file
  8047. 2. file1.torrent <-- read local torrent file
  8048. 3. file2.metalink <-- read local Metalink file.
  8049. Same thing goes with -i option. Assume your uris.txt contans:
  8050. http://host/file
  8051. file1.torrent
  8052. file2.metalink
  8053. Then you can do: aria2c -i uris.txt
  8054. (Note: -Z option is not needed if -i option is given.)
  8055. * src/main.cc
  8056. * src/ProtocolDetector.{cc, h}
  8057. * test/ProtocolDetectorTest.cc
  8058. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8059. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8060. installed
  8061. * src/ARC4Encryptor.h
  8062. * src/ARC4Decryptor.h
  8063. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Renamed argument from 'errno' to 'err', since errno is confused with
  8065. errno defined in errno.h.
  8066. * src/LibgcryptARC4Decryptor.h
  8067. * src/LibgcryptARC4Context.h
  8068. * src/LibgcryptDHKeyExchange.h
  8069. * src/LibgcryptARC4Encryptor.h
  8070. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8071. Rewritten choking algorithm.
  8072. * src/PeerChokeCommand.{cc, h}
  8073. * src/BtInterestedMessage.cc
  8074. * src/PeerSessionResource.{cc, h}
  8075. * src/DefaultPeerStorage.{cc, h}
  8076. * src/BtNotInterestedMessage.cc
  8077. * src/DefaultBtMessageDispatcher.{cc, h}
  8078. * src/BtMessageDispatcher.h
  8079. * src/Peer.{cc, h}
  8080. * src/BtLeecherStateChoke.{cc, h}
  8081. * src/BtSetup.cc
  8082. * src/BtSeederStateChoke.{cc, h}
  8083. * src/PeerStorage.h
  8084. * test/MockPeerStorage.h
  8085. * test/MockBtMessageDispatcher.h
  8086. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8087. Fixed compilation error on x84-64 platform.
  8088. * src/AuthConfig.cc: Included ostream.
  8089. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8090. Rewritten getBasename() and getDirname(), without standard library
  8091. basename(), dirname().
  8092. * src/File.cc
  8093. * test/FileTest.cc
  8094. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Added Simplified Chinese translation. Also updated the following
  8096. translations: Polish, Dutch, German. Great thanks to all translators.
  8097. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. Suppress content-range error when 'Content-Range' response header
  8099. doesn't contains bytes-unit specifier 'bytes'
  8100. * src/HttpHeader.cc (getRange)
  8101. * test/HttpHeaderTest.cc
  8102. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8103. Fixed compilation error with g++-4.3
  8104. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. Added missing include files for MinGW
  8106. * test/HttpHeaderProcessorTest.cc
  8107. * test/DHTRoutingTableSerializerTest.cc
  8108. * test/DHTRoutingTableDeserializerTest.cc
  8109. * test/UriListParserTest.cc
  8110. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Now download line is printed nicely with no garbage at the end of
  8112. line. I use ioctl to get the columns of terminal.
  8113. If stdout is redirected to another device, instead of carriage return,
  8114. end of line '\n' character is used. This is feature request#1909659
  8115. * src/ConsoleStatCalc.cc (calculateStat)
  8116. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. Included a2time.h
  8118. * src/DHTMessageDispatcher.h
  8119. * src/DHTMessageEntry.h
  8120. * src/DHTReplaceNodeTask.h
  8121. * src/DHTMessageTracker.h
  8122. * src/Util.h
  8123. * src/CookieBox.h
  8124. * src/SocketCore.h
  8125. * src/DefaultBtMessageDispatcher.h
  8126. * src/SocketCore.cc
  8127. * src/Util.cc
  8128. * src/DHTPingTask.h
  8129. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. Fixed high memory footprint when DHT is enabled.
  8131. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8132. queued than it is processed and the queue is getting longer. As a
  8133. consequence, momory usage is increased.
  8134. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8135. replacement cache in DHTBucket which is described in Kademlia paper.
  8136. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8137. DHTReplaceNodeTask.
  8138. * src/DHTBucket.{h, cc}
  8139. (cacheNode): New function.
  8140. (getCachedNodes): New function.
  8141. (dropNode): Push back cached node to _nodes.
  8142. * test/DHTBucketTest.cc
  8143. (testCacheNode): New test
  8144. (testDropNode): New test
  8145. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8146. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8147. the unused 4KB memory when ssl is not used.
  8148. * src/SocketCore.cc
  8149. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Added summary log for peer announce storage.
  8151. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8152. Removed cast
  8153. * src/DefaultPeerStorage.cc (addPeer)
  8154. Log exception message
  8155. * src/DHTMessageTracker.cc (handleTimeout)
  8156. Fixed casting
  8157. * test/HttpRequestTest.cc
  8158. * test/MetalinkProcessorTest.cc
  8159. * test/PieceTest.cc
  8160. * test/MetalinkEntryTest.cc
  8161. * test/SequenceTest.cc
  8162. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8163. * src/ParameterizedStringParser.cc (createLoop):
  8164. Removed unused variable sstep.
  8165. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8166. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. * src/Util.{h, cc}
  8168. (parseUInt): New function.
  8169. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8170. The actual range is uint32_t.
  8171. * test/UtilTest.cc
  8172. * src/ParameterizedStringParser.cc:
  8173. Use Util::parseUInt() for loop variables.
  8174. * test/ParameterizedStringParserTest.cc
  8175. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8176. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8177. Rewritten the functions for binding port.
  8178. * src/DHTConnectionImpl.{h, cc}
  8179. * src/PeerListenCommand.{h, cc}
  8180. * src/DHTSetup.cc
  8181. * src/BtSetup.cc
  8182. * test/DHTConnectionImplTest.cc
  8183. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8184. type cleanup for allmost all remaining files.
  8185. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Type clarification
  8187. * src/PeerSessionResource.{h, cc}
  8188. * src/DefaultPieceStorage.{h, cc}
  8189. * src/Peer.{h, cc}
  8190. * test/PeerSessionResourceTest.cc
  8191. Use div function
  8192. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8193. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Type clarification
  8195. * src/DefaultPeerStorage.{h, cc}
  8196. * test/DefaultPeerStorageTest.cc
  8197. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Type clarification: size_t for length or size, uint64_t for file
  8199. length, off_t for file offset.
  8200. * src/DefaultBtProgressInfoFile.cc
  8201. * src/DefaultBtContext.{h, cc}
  8202. * src/DefaultBtInteractive.cc
  8203. * src/DownloadCommand.{h, cc}
  8204. * src/IteratableChunkChecksumValidator.{h, cc}
  8205. * src/SegmentMan.{h, cc}
  8206. * src/SingleFileDownloadContext.{h, cc}
  8207. * src/IteratableChecksumValidator.{h, cc}
  8208. * src/BtContext.h
  8209. * src/IteratableValidator.h
  8210. * src/DownloadContext.h
  8211. * test/SingleFileDownloadContextTest.cc
  8212. * test/DefaultBtContextTest.cc
  8213. * test/MockBtContext.h
  8214. * test/Metalink2RequestGroupTest.cc
  8215. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. Type clarification: size_t for length or size, uint64_t for file
  8217. length, off_t for file offset.
  8218. * src/PiecedSegment.cc
  8219. * src/GrowSegment.h
  8220. * src/DefaultBtRequestFactory.h
  8221. * src/DefaultBtProgressInfoFile.cc
  8222. * src/UnknownLengthPieceStorage.h
  8223. * src/DefaultPieceStorage.cc
  8224. * src/UnknownLengthPieceStorage.cc
  8225. * src/DefaultBtInteractive.cc
  8226. * src/GrowSegment.cc
  8227. * src/BitfieldMan.h
  8228. * src/DownloadCommand.cc
  8229. * src/BtRequestFactory.h
  8230. * src/PiecedSegment.h
  8231. * src/DefaultPieceStorage.h
  8232. * src/Piece.cc
  8233. * src/DefaultBtRequestFactory.cc
  8234. * src/PieceStorage.h
  8235. * src/Segment.h
  8236. * src/Piece.h
  8237. * src/BitfieldMan.cc
  8238. * src/Util.cc
  8239. * test/DefaultBtProgressInfoFileTest.cc
  8240. * test/DefaultPieceStorageTest.cc
  8241. * test/MockPieceStorage.h
  8242. * test/BtRequestMessageTest.cc
  8243. * test/DefaultBtMessageDispatcherTest.cc
  8244. * test/BitfieldManTest.cc
  8245. * test/GrowSegmentTest.cc
  8246. * test/PieceTest.cc
  8247. * test/SegmentTest.cc
  8248. * test/SegmentManTest.cc
  8249. * test/DefaultBtRequestFactoryTest.cc
  8250. * test/MockBtRequestFactory.h
  8251. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Fixed compilation error with --disable-nls
  8253. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8254. in gettext.h causes the problem.
  8255. * src/common.h
  8256. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. Removed subPiece related functions.
  8258. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8259. * src/DefaultPieceStorage.{h, cc}
  8260. * test/PieceTest.cc
  8261. * test/DefaultPieceStorageTest.cc
  8262. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8263. Use unsigned char for data store.
  8264. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8265. Bump up version number to 0.13.0+1
  8266. * configure.ac
  8267. * Release 0.13.0+1
  8268. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Changed inactive connection timeout to 120.
  8270. To accept more mulually interested peers, disconnect peer when there
  8271. is no interest between us after certain time passed.
  8272. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8273. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8275. when compiled with async DNS support.
  8276. * src/DownloadEngine.cc
  8277. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8278. value '10' will be a little bit short when some DNS servers are
  8279. offline and several DNS servers are tried. It should be configured
  8280. by command-line option.
  8281. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. Merged Ross's mingw patch.
  8283. * src/DHTRoutingTableDeserializer.cc
  8284. * src/DHTRoutingTableSerializer.cc
  8285. * src/Platform.{h, cc}
  8286. * src/timegm.h
  8287. * src/gettimeofday.h
  8288. * src/getaddrinfo.h
  8289. * src/SocketCore.h
  8290. * src/common.h
  8291. * src/inet_aton.h
  8292. * src/DownloadEngine.h
  8293. * src/gai_strerror.h
  8294. * src/a2netcompat.h
  8295. * configure.ac
  8296. * configure
  8297. * aclocal.m4
  8298. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. Included missing iostream.
  8300. * test/AllTest.cc
  8301. * test/BtDependencyTest.cc
  8302. * test/BtExtendedMessageTest.cc
  8303. * test/DHTConnectionImplTest.cc
  8304. * test/DHTMessageFactoryImplTest.cc
  8305. * test/DHTMessageTrackerEntryTest.cc
  8306. * test/DHTNodeTest.cc
  8307. * test/DHTRoutingTableSerializerTest.cc
  8308. * test/DefaultBtAnnounceTest.cc
  8309. * test/DefaultBtContextTest.cc
  8310. * test/DefaultBtMessageFactoryTest.cc
  8311. * test/DefaultExtensionMessageFactoryTest.cc
  8312. * test/HandshakeExtensionMessageTest.cc
  8313. * test/HttpResponseTest.cc
  8314. * test/MetalinkProcessorTest.cc
  8315. * test/MultiFileAllocationIteratorTest.cc
  8316. * test/SocketCoreTest.cc
  8317. * test/UTPexExtensionMessageTest.cc
  8318. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8319. Reorganized includes.
  8320. * src/NameResolver.cc
  8321. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Fixed compilation error without ares/c-ares
  8323. * src/NameResolver.h:
  8324. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8325. Added a test for large file.
  8326. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8327. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8328. Fixed the bug that file size is ignored if size > INT32_MAX
  8329. * src/SizeMetalinkParserState.cc (endElement):
  8330. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8331. Bump up version number to 0.13.0
  8332. * configure.ac
  8333. * Release 0.13.0
  8334. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8335. Updated Makfefile.am to make 'make dist' work.
  8336. Now packaged filename is aria2c-VERSION.tar.bz2.
  8337. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8338. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8339. Large file support is now configured by configure script.
  8340. * configure.ac
  8341. Removed unsused source files
  8342. * src/
  8343. * test/
  8344. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8345. Peer.h and BtContext.h respectively.
  8346. * src/Peer.h
  8347. * src/BtContext.h
  8348. Updated translations.
  8349. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8350. translations. Great thanks to all translators!;)
  8351. * po/*.{po, gmo}
  8352. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8354. statically declared sha1 MessageDigestContext.
  8355. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8356. initialization of short-lived MessageDigestContext.
  8357. * src/MessageDigestHelper.{h, cc}
  8358. * src/main.cc
  8359. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8360. the initialization of MessageDigestContext every time in validating
  8361. chunk checksum.
  8362. * src/DownloadCommand.{h, cc}
  8363. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. Add a file descriptor which connected to fast peer(latency<1500) to
  8365. select(). This change reduced CPU load.
  8366. * src/PeerInteractionCommand.cc
  8367. * src/DefaultBtInteractive.{h, cc}
  8368. * src/BtInteractive.h
  8369. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8370. Fixed the previous insufficient fix for possible busy loop.
  8371. * src/MSEHandshake.cc (identifyHandshakeType)
  8372. Removed unused functions.
  8373. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8374. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8375. Fixed possible busy loop if first 20 bytes are not received for a few
  8376. minutes.
  8377. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8378. * src/ReceiverMSEHandshakeCommand.cc
  8379. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8380. Fixed compilation error
  8381. * src/ExpatMetalinkProcessor.cc
  8382. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8383. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8384. * src/DHTBucket.cc
  8385. Removed unnecessary cast.
  8386. * src/HandshakeExtensionMessage.cc
  8387. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8389. is missing.
  8390. * src/OptionHandlerFactory.cc
  8391. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8392. Fixed the bug that HAVE message is not sent for a piece they are
  8393. downloaded fom http/ftp server before any BitTorrent handshake is done
  8394. with peers.
  8395. * src/DefaultBtInteractive.cc
  8396. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8397. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8398. * src/Makefile.am
  8399. * src/Makefile.in
  8400. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8401. Updated README. Added html version of README and man page.
  8402. * README
  8403. * README.html
  8404. * readme2html: Shell script to generate README.html from README using
  8405. asciidoc.
  8406. * doc/aria2c.1.html
  8407. * doc/makeman: Added the line to generate aria2c.1.html
  8408. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Fixed offset calculation.
  8410. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8411. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8412. Rewritten itos and uitos using template. llitos and ullitos are
  8413. replaced with itos and uitos respectively.
  8414. * src/Util.{h, cc}
  8415. * test/UtilTest.cc
  8416. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8417. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8418. of the number of bytes required for storing public key and shared
  8419. secret.
  8420. * src/LibgcryptDHKeyExchange.h
  8421. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8422. * src/MSEHandshake.cc
  8423. * test/DHKeyExchangeTest.cc
  8424. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8425. Removed since they are not used.
  8426. * src/Xml2MetalinkProcessor.{h, cc}
  8427. * src/Socket.cc
  8428. * src/SegmentSplitter.{h, cc}
  8429. * test/Xml2MetalinkProcessorTest.cc
  8430. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8431. Fixed the bug that prevents aria2 from stopping other than by pressing
  8432. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8433. option. aria2 doesn't stop even after --seed-time is satisfied and
  8434. continues to output blank lines in the console.
  8435. * src/ReceiverMSEHandshakeCommand.cc
  8436. * src/PeerReceiveHandshakeCommand.cc
  8437. * src/PeerListenCommand.cc
  8438. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8439. Bump up version number to 0.13.0rc
  8440. * configure.ac
  8441. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. Updated man page and some usage text.
  8443. * doc/aria2c.1.txt
  8444. * src/usage_text.h
  8445. * po/*.{po, gmo}
  8446. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. Updated translations. Added Finnish and Hebrew translations.
  8448. Great thanks to all translators!
  8449. * po/*.{po, gmo}
  8450. * po/LINGUAS
  8451. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Log more detailed information about each message.
  8453. * src/DHTQueryMessage.{h, cc}
  8454. * src/DHTGetPeersMessage.{h, cc}
  8455. * src/DHTFindNodeReplyMessage.{h, cc}
  8456. * src/DHTGetPeersReplyMessage.{h, cc}
  8457. * src/DHTAnnouncePeerMessage.{h, cc}
  8458. * src/DHTResponseMessage.{h, cc}
  8459. * src/DHTFindNodeMessage.{h, cc}
  8460. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. Use constants defined in prefs.h
  8462. * src/option_processing.cc
  8463. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8465. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8466. Make room for future enchancements for IPv6 addresses.
  8467. Bump up version number of dht.dat file format to 2.
  8468. Not compatible with previous version.
  8469. * src/DHTRoutingTableSerializer.cc
  8470. * src/DHTRoutingTableDeserializer.cc
  8471. * test/DHTRoutingTableSerializerTest.cc
  8472. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8473. Added handling for the return values from
  8474. PeerMessageUtil::createcompact().
  8475. * src/DefaultBtContext.cc (computeFastSet):
  8476. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8477. Fixed abort when peer's ip address is IPv4-mapped address.
  8478. * src/DefaultBtContext.cc (computeFastSet)
  8479. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8480. cannot handle IPv4-mapped addresses.
  8481. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8482. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Proper return value handling for OpenSSL functions.
  8484. * src/LibsslDHKeyExchange.h
  8485. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8486. Random bytes generation using libgcrypt and OpenSSL.
  8487. * src/DHTUtil.{h, cc}
  8488. * test/DHTUtilTest.cc
  8489. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8491. received.
  8492. * src/DHTMessageReceiver.cc (receiveMessage)
  8493. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. Fixed the bug that a return code is always 0. BUG#1897704
  8495. If error occurred during the download or there exist unfinished
  8496. downloads, aria2 returns with code 1.
  8497. * src/RequestGroupMan.{h, cc}
  8498. * src/MultiUrlRequestInfo.{h, cc}
  8499. * src/main.cc
  8500. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8501. IPv6 support for SocketCore class.
  8502. TODO: In SocketCore::establishConnection(), this is insufficient to
  8503. determin the failure of connect() here because the socket is
  8504. non-blocking state. The next addresses should be tried after select().
  8505. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8506. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8507. instead which address family independent.
  8508. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8509. information in a compact peer format which is for IPv4 only.
  8510. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8511. this is a spec of BitTorrent protocol.
  8512. * src/SocketCore.{h, cc}
  8513. * src/PeerMessageUtil.cc
  8514. * test/SocketCoreTest.cc
  8515. * test/PeerMessageUtilTest.cc
  8516. * test/DHTConnectionImplTest.cc
  8517. Handle IPv4-mapped addresses.
  8518. * src/DHTNode.cc: Now identity is determined by node id.
  8519. * src/DHTMessageTrackerEntry.cc
  8520. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8521. should handle it.
  8522. * src/DHTRoutingTableDeserializer.cc
  8523. * src/DHTMessageFactoryImpl.cc
  8524. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8525. Change the unit of --stop option from a minute to a second.
  8526. * src/usage_text.h
  8527. * src/DownloadEngineFactory.cc
  8528. * src/OptionHandlerFactory.cc
  8529. * src/message.h
  8530. * src/TimedHaltCommand.cc
  8531. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8532. Make listening socket non-block mode.
  8533. * src/FtpConnection.cc
  8534. * src/FtpNegotiationCommand.{h, cc}
  8535. * src/PeerListenCommand.cc
  8536. Fixed the bug that cause slow ftp negotiation.
  8537. * src/FtpNegotiationCommand.{h, cc}
  8538. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8539. Added basic tag to --enable-dht, --dht-listen-port option.
  8540. * src/HelpItemFactory.cc (createHelpItems)
  8541. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Updated text.
  8543. * src/usage_text.h
  8544. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8545. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8546. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Determin _threadtholdSpeed in each constructor for
  8548. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8549. * src/ActivePeerConnectionCommand.{h, cc}
  8550. * src/PeerReceiveHandshakeCommand.{h, cc}
  8551. * src/BtSetup.cc
  8552. * src/BtConstants.h
  8553. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Added --bt-min-crypto-level and --bt-require-crypto options.
  8555. * src/OptionHandlerFactory.cc
  8556. * src/MSEHandshake.cc
  8557. * src/HelpItemFactory.cc
  8558. * src/option_processing.cc
  8559. * src/ReceiverMSEHandshakeCommand.cc
  8560. * src/prefs.h
  8561. * src/DefaultBtAnnounce.cc
  8562. * src/InitiatorMSEHandshakeCommand.cc
  8563. * src/usage_text.h
  8564. * test/MSEHandshakeTest.cc
  8565. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. Bump version number to 0.13.0b
  8567. * configure.ac
  8568. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8569. Updated doc.
  8570. * src/MessageDigestHelper.h:
  8571. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8572. Use raw message digest as a token instead of its hexadecimal
  8573. representation.
  8574. * src/DHTTokenTracker.cc (generateToken)
  8575. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8576. Added Message Stream Encryption(MSE) support.
  8577. Currently, aria2 accepts incoming connections with Obfuscation Header
  8578. and legacy BitTorrent Header and establishes connections with
  8579. Obfuscation Header first and if failed then retry with legacy
  8580. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8581. choose ARC4. The new option to change the default behavior is planned.
  8582. For tracker extension, "supportcrypto=1" is added statically.
  8583. * src/PeerInitiateConnectionCommand.{h, cc}
  8584. * src/PeerConnection.{h, cc}
  8585. * src/HandleRegistry.h
  8586. * src/SocketCore.h
  8587. * src/PeerReceiveHandshakeCommand.{h, cc}
  8588. * src/BtRegistry.{h, cc}
  8589. * src/PeerListenCommand.cc
  8590. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8591. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8592. * src/MSEHandshake.{h, cc}
  8593. * src/ARC4Encryptor.h
  8594. * src/ARC4Decryptor.h
  8595. * src/LibgcryptARC4Encryptor.h
  8596. * src/LibgcryptARC4Decryptor.h
  8597. * src/LibgcryptARC4Context.h
  8598. * src/LibsslARC4Encryptor.h
  8599. * src/LibsslARC4Decryptor.h
  8600. * src/LibsslARC4Context.h
  8601. * src/DHKeyExchange.h
  8602. * src/LibgcryptDHKeyExchange.h
  8603. * src/LibsslDHKeyExchange.h
  8604. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8605. * test/DefaultBtAnnounceTest.cc
  8606. * test/ARC4Test.cc
  8607. * test/DHKeyExchangeTest.cc
  8608. Removed prepareForRetry() because it is not used.
  8609. * src/PeerAbstractCommand.{h, cc}
  8610. * src/PeerInteractionCommand.{h, cc}
  8611. * src/PeerInitiateConnectionCommand.{h, cc}
  8612. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8613. Added the ability to load nodes from torrent file. These nodes are
  8614. added to the routing table when downloading that torrent.
  8615. * src/BtContext.h
  8616. * src/DefaultBtContext.{h, cc}
  8617. * src/DHTSetup.cc
  8618. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8619. hostname and port pair, and resolves all of them.
  8620. * src/NameResolver.{h, cc}: Added reset().
  8621. * src/RequestGroup.cc
  8622. * test/DefaultBtContextTest.cc
  8623. * test/MockBtContext.h
  8624. Removed assert() from DefaultBtContext and throw exception instead.
  8625. * src/DefaultBtContext.cc
  8626. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Fixed segmentation fault bug when exiting if dht is disabled.
  8628. * src/RequestGroup.cc
  8629. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. Fixed typo in log message and define the message in message.h
  8631. * src/TimedHaltCommand.cc
  8632. * src/message.h
  8633. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8634. Included RecoverableException.h to fix compilation error.
  8635. * test/DHTMessageFactoryImplTest.cc
  8636. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8637. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8638. * test/DHTPingMessageTest.cc
  8639. * test/DHTGetPeersMessageTest.cc
  8640. * test/DHTFindNodeMessageTest.cc
  8641. * test/DHTAnnouncePeerMessageTest.cc
  8642. * test/MockDHTMessage.h
  8643. * test/MockDHTMessageFactory.h
  8644. * test/MockDHTMessageDispatcher.h: New class.
  8645. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8646. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8647. virtual.
  8648. * src/DHTMessageDispatcher.h
  8649. * src/DHTMessageDispatcherImpl.{h, cc}
  8650. * src/DHTSetup.cc
  8651. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8652. Adding handling of DHT error message. Just log error message and
  8653. throw exception.
  8654. * src/DHTMessageFactoryImpl.cc
  8655. * test/DHTMessageFactoryImplTest.cc
  8656. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Added handling of dynamic cast failure.
  8658. * src/DHTNodeLookupTask.cc
  8659. * src/DHTPeerLookupTask.cc
  8660. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. Added the ability to stop aria2 itself when given time has passed
  8662. from start. Use --stop option to specify time in minutes.
  8663. When 0 is given, this feature is disabled.
  8664. * src/OptionHandlerFactory.cc
  8665. * src/TimeBasedCommand.h: Make _interval protected scope.
  8666. * src/HelpItemFactory.cc
  8667. * src/option_processing.cc
  8668. * src/prefs.h
  8669. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8670. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8671. Without this modification, the result list shows "ERR" when aria2 is
  8672. stopped by --stop option. It should be "INPR".
  8673. * src/DownloadEngine.{h, cc}
  8674. * src/DownloadEngineFactory.cc
  8675. * src/usage_text.h
  8676. * src/TimedHaltCommand.{h, cc}: New class.
  8677. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Bootstrap through node added by port message.
  8679. Currently bootstrap is executed if the number of buckets in routing
  8680. table is 1.
  8681. * src/BtPortMessage.{h, cc}
  8682. * src/DefaultBtMessageFactory.{h, cc}
  8683. * src/PeerInteractionCommand.cc
  8684. * test/BtPortMessageTest.cc
  8685. * test/MockDHTTask.h
  8686. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8687. Extract the Peer class's member variables, which are only needed after
  8688. PeerInteractionCommand, into PeerSessionResource class.
  8689. This class is instantiated in PeerInteractionCommand class's ctor and
  8690. released in its dtor.
  8691. This will make Peer class lightweight and uses less memory for peers
  8692. which are not connected and wait in the queue.
  8693. * src/PeerChokeCommand.cc
  8694. * src/PeerSessionResource.{h, cc}
  8695. * src/PeerInteractionCommand.cc
  8696. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8697. * src/DefaultBtInteractive.cc
  8698. * src/BtPieceMessage.cc
  8699. * src/BtInterestedMessage.cc
  8700. * src/BtUnchokeMessage.cc
  8701. * src/DefaultPeerStorage.{h, cc}
  8702. * src/PeerInitiateConnectionCommand.cc
  8703. * src/ActivePeerConnectionCommand.cc
  8704. * src/BtNotInterestedMessage.cc
  8705. * src/DefaultBtMessageDispatcher.cc
  8706. * src/BtChokeMessage.cc
  8707. * src/BtRequestMessage.cc
  8708. * src/Peer.{h, cc}
  8709. * src/BtRegistry.h
  8710. * src/TrackerWatcherCommand.cc
  8711. * src/PeerReceiveHandshakeCommand.cc
  8712. * test/BtExtendedMessageTest.cc
  8713. * test/BtAllowedFastMessageTest.cc
  8714. * test/BtCancelMessageTest.cc
  8715. * test/DefaultPieceStorageTest.cc
  8716. * test/BtBitfieldMessageTest.cc
  8717. * test/BtHaveMessageTest.cc
  8718. * test/BtNotInterestedMessageTest.cc
  8719. * test/BtRequestMessageTest.cc
  8720. * test/PeerSessionResourceTest.cc
  8721. * test/DefaultBtMessageDispatcherTest.cc
  8722. * test/PeerTest.cc
  8723. * test/BtInterestedMessageTest.cc
  8724. * test/BtRejectMessageTest.cc
  8725. * test/BtChokeMessageTest.cc
  8726. * test/DefaultPeerStorageTest.cc
  8727. * test/BtHaveNoneMessageTest.cc
  8728. * test/BtHaveAllMessageTest.cc
  8729. * test/DefaultExtensionMessageFactoryTest.cc
  8730. * test/BtUnchokeMessageTest.cc
  8731. * test/DefaultBtMessageFactoryTest.cc
  8732. * test/HandshakeExtensionMessageTest.cc
  8733. * test/UTPexExtensionMessageTest.cc
  8734. * test/DefaultBtRequestFactoryTest.cc
  8735. * test/BtPieceMessageTest.cc
  8736. Removed typedef PeerStats.
  8737. * src/PeerStat.h
  8738. * src/SegmentMan.cc
  8739. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8740. Added std namespace to copy, remove_copy, back_inserter,
  8741. front_inserter.
  8742. * src/RequestGroupMan.cc
  8743. * src/DefaultPieceStorage.cc
  8744. * src/StreamFileAllocationEntry.cc
  8745. * src/BtFileAllocationEntry.cc
  8746. * src/RequestGroup.cc
  8747. * src/MetalinkEntry.cc
  8748. * src/DelegatingPeerListProcessor.cc
  8749. * src/DefaultBtRequestFactory.cc
  8750. * src/DefaultBtMessageDispatcher.cc
  8751. * src/version_usage.cc: Included <algorithm>
  8752. * src/main.cc
  8753. * src/MetalinkParserController.cc
  8754. * src/DefaultBtContext.cc
  8755. * src/DownloadEngineFactory.cc
  8756. * src/a2algo.h
  8757. Removed.
  8758. * test/StreamUriListParserTest.cc
  8759. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8761. ActivePeerConnectionCommand when it is given and
  8762. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8763. * src/ActivePeerConnectionCommand.{h, cc}
  8764. * src/BtSetup.cc
  8765. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8766. Only add socket to DownloadEngine's select routine when peer or
  8767. localhost is unchoked and interested. This lowers CPU usage a
  8768. little bit.
  8769. * src/PeerInteractionCommand.cc
  8770. * src/PeerAbstractCommand.{h, cc}
  8771. * src/BtInteractive.h
  8772. * src/DefaultBtInteractive.{h, cc}
  8773. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8774. Revert previous change because get_peers message is needed for
  8775. announce_peer anyway.
  8776. * src/DHTGetPeersCommand.cc
  8777. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. Request peers thought DHT only when download hasn't finished.
  8779. * src/DHTGetPeersCommand.cc
  8780. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8781. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8782. * src/DHTBucketRefreshTask.{h, cc}
  8783. * src/DHTSetup.cc
  8784. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8786. standard classes.
  8787. Included string.h where mem* function are used.
  8788. Added namespace aria2.
  8789. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8790. Create directory before saving DHT routing table.
  8791. Now ios::failure is now handled properly.
  8792. * src/DHTAutoSaveCommand.cc
  8793. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8794. Removed unnecessary cerr.
  8795. * src/DownloadEngine.cc
  8796. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Catch exception inside DHTMessageReceiver::receiveMessage().
  8798. Log unknown message.
  8799. * src/DHTMessageReceiver.{h, cc}
  8800. * src/DHTMessageFactory.h
  8801. * src/DHTMessageFactoryImpl.{h, cc}
  8802. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8803. * src/DHTInteractionCommand.cc
  8804. * src/DHTUnknownMessage.{h, cc}
  8805. * test/DHTUnknownMessageTest.cc
  8806. * test/MockDHTMessageFactory.h
  8807. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8808. Commented out ip address comparison because a host can have multiple
  8809. ip addresses and it is hard to predict the hostname is resolved into
  8810. which one.
  8811. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8812. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. * po/Makefile.in: Removed since this is generated by configure.
  8814. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Fixed compiler warning about redefinition of SIZE_MAX.
  8816. Use common.h instead of config.h directly here.
  8817. * src/Platform.{h, cc}
  8818. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8819. here.
  8820. * common.h
  8821. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8822. Updated gettext related files.
  8823. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8824. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8825. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Added DHT functionality, compatible with mainline.
  8827. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8828. You may need to specify entry point to DHT network using
  8829. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8830. Use --dht-listen-port to specify port number. Make sure that your
  8831. firewall configuration can pass through UDP traffic to the port.
  8832. The routing table is saved in $HOME/.aria2/dht.dat.
  8833. * src/DHT*
  8834. * src/BNode.{h, cc}
  8835. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8836. particular torrent.
  8837. * src/Data.cc: Rewritten ctor.
  8838. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8839. --dht-entry-point.
  8840. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8841. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8842. ends, remove BtContext from DHTPeerAnnounceStorage.
  8843. * src/BtPortMessage.{h, cc}: Rewritten.
  8844. * src/message.h
  8845. * src/OptionHandlerImpl.cc
  8846. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8847. --dht-entry-point.
  8848. * src/Dictionary.{h, cc} (remove): New function.
  8849. * src/prefs.h
  8850. * src/DefaultBtMessageFactory.h
  8851. * src/BtHandshakeMessage.cc
  8852. * src/ActivePeerConnectionCommand.cc
  8853. * src/SocketCore.{h, cc}: Added datagram socket support.
  8854. * src/DefaultBtMessageFactory.cc
  8855. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8856. Create DHT commands.
  8857. * src/BtMessageFactory.h
  8858. * src/PeerMessageUtil.{h, cc}
  8859. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8860. Fixed the bug that log file is not written when configuration file doesn't exist.
  8861. This is caused by using Logger class before LogFactory is not configured.
  8862. BUG #1875079
  8863. * src/option_processing.cc
  8864. Warning message "configuration doesn't exist" is only printed when --conf is
  8865. given.
  8866. * src/option_processing.cc
  8867. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8869. ShaVisitor is now deprecated and slated to be removed.
  8870. * src/DefaultBtContext.cc
  8871. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8872. Externalize message to message.h
  8873. * src/Platform.cc
  8874. * src/message.h
  8875. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8876. Set default domain and default path to cookie.
  8877. * src/HttpResponse.cc
  8878. * src/CookieBox.{h, cc}
  8879. * src/CookieParser.{h, cc}
  8880. * test/CookieParserTest.cc
  8881. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Added --no-conf and --conf-path command-line option.
  8883. --no-conf option disables loading aria2.conf file.
  8884. --conf-path option changes the configuration file path. The default
  8885. file path is $HOME/.aria2/aria2.conf
  8886. Added a warning message when the configuration file is not found.
  8887. * src/HelpItemFactory.cc
  8888. * src/option_processing.cc
  8889. * src/prefs.h
  8890. * src/usage_text.h
  8891. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8892. Added the message to inform users that other help categories are
  8893. available in -h option.
  8894. * src/version_usage.cc
  8895. * src/TagContainer.{h, cc}
  8896. * test/TagContainerTest.cc
  8897. * src/TaggedItem.{h, cc}
  8898. * test/TaggedItemTest.cc
  8899. * src/HelpItem.h
  8900. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8902. from PiecedSegment's ctor.
  8903. Previously Piece::getAllMissingBlockIndexes() is called from
  8904. PiecedSegment() but it is rather expensive since only first element is
  8905. used.
  8906. * src/PiecedSegment.cc
  8907. * src/Piece.{h, cc}
  8908. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8909. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8910. each time these functions are called.
  8911. * src/BitfieldMan.{h, cc}
  8912. * test/BitfieldManTest.cc
  8913. * src/array_fun.h
  8914. * test/array_funTest.cc
  8915. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8916. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8917. filtered. Removed unnecessary cast to int32_t.
  8918. * src/BitfieldMan.{h, cc}
  8919. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8920. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8921. payload length(4bytes) are received. This happens because lenbufLength
  8922. is not updated in this particular case and successive call of
  8923. receiveMessage() overwrites payload length with bytes recieved which
  8924. are payload body.
  8925. * src/PeerConnection.{h, cc}
  8926. * src/message.h
  8927. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8928. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8929. peer if there are peers that have same ipaddr and port.
  8930. I've experiened segmentation fault and "pure virtual function was
  8931. called" error.
  8932. * src/Peer.h
  8933. * test/PeerTest.cc
  8934. * src/DefaultPeerStorage.cc
  8935. * test/DefaultPeerStorageTest.cc
  8936. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8937. Removed a call to isPowerOf() because it is no longer necessary here
  8938. and a request block is not always power of 2.
  8939. BUG#1866924
  8940. * src/PeerMessageUtil.cc (checkLength)
  8941. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Fixed the bug that always first found Segment is removed from
  8943. usedSegmentEntries. Removed unused functions.
  8944. * src/SegmentMan.{h, cc}
  8945. * test/SegmentManTest.cc
  8946. Fixed the bug that ServerHost is not removed.
  8947. * src/RequestGroup.cc
  8948. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Fixed the bug that SegmentMan::completeSegment() is not called
  8950. even if Segment is complete when --lowest-speed-limit is enabled.
  8951. BUG#1864525
  8952. * src/DownloadCommand.{h, cc}
  8953. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8954. Fixed: hash algorithm 'sha1' is always used.
  8955. * src/DownloadCommand.cc (validatePieceHash)
  8956. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Added --enable-peer-exchange command-line option.
  8958. * src/OptionHandlerFactory.cc
  8959. * src/HelpItemFactory.cc
  8960. * src/option_processing.cc
  8961. * src/usage_text.h
  8962. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8963. Move extension from BtRuntime to ExtensionMessageFactory, because
  8964. extension can be specified per peer, not per torrent.
  8965. * src/DefaultBtInteractive.cc
  8966. * src/BtRuntime.h
  8967. * src/ExtendedMessagingAware.h
  8968. * src/ExtensionMessageFactory.h
  8969. * src/DefaultExtensionMessageFactory.cc
  8970. * test/DefaultExtensionMessageFactoryTest.cc
  8971. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8972. Added categorized option help. Specify category using --help option.
  8973. Also added the ability to search options in forward match.
  8974. * src/HelpItem.{h, cc}
  8975. * test/HelpItemTest.cc
  8976. * src/HelpItemFactory.{h, cc}
  8977. * src/TagContainer.{h, cc}
  8978. * test/TagContainerTest.cc
  8979. * src/option_processing.cc
  8980. * src/prefs.h
  8981. * src/TaggedItem.{h, cc}
  8982. * test/TaggedItemTest.cc
  8983. * src/version_usage.cc
  8984. * src/help_tags.h
  8985. * src/usage_text.h
  8986. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8987. Fixed segmentation fault when bad torrent metainfo is parsed.
  8988. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8989. and then throw exception or skip it.
  8990. * src/DefaultBtContext.{h, cc}
  8991. * test/DefaultBtContextTest.cc
  8992. * src/AnnounceList.cc
  8993. * src/CompactPeerListProcessor.cc
  8994. * src/message.h
  8995. * src/DefaultBtAnnounce.{h, cc}
  8996. * test/DefaultBtAnnounceTest.cc
  8997. * src/BencodeVisitor.cc
  8998. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8999. Added missing "B"(=Byte). So now the message looks like this:
  9000. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9001. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9002. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Show the seed ratio after torrent downloads.
  9004. For example, after torrent download completed and --seed-time and
  9005. --seed-ratio conditions are fulfilled, following message is printed
  9006. right after "Download complete: .....":
  9007. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9008. * src/RequestGroupMan.cc
  9009. * src/RequestGroup.{h, cc}
  9010. * src/message.h
  9011. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9012. Remove a defunct control file. A defunct control file means that while
  9013. it exists, but the corresponding download file is missing.
  9014. After its removal, a download restarts from the beginning.
  9015. * src/RequestGroup.cc
  9016. * src/message.h
  9017. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9018. Allocate bitfield in Peer when it is really used. More specifically,
  9019. bitfield in Peer is allocated after the connection is established and
  9020. deallocated when the connection is dropped.
  9021. Since 2 parameters(piece length and total length) was removed from the
  9022. constructor of Peer class, many test classes were modified accordingly.
  9023. See svn log for more detailed information.
  9024. * src/PeerInteractionCommand.cc
  9025. * src/CompactPeerListProcessor.cc
  9026. * src/Peer.cc
  9027. * src/DefaultPeerListProcessor.cc
  9028. * src/PeerListenCommand.cc
  9029. * src/PeerReceiveHandshakeCommand.cc
  9030. Fixed memory leak
  9031. * src/Piece.cc
  9032. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9034. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9035. command-line options.
  9036. * src/option_processing.cc
  9037. * src/ActivePeerConnectionCommand.cc
  9038. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9039. Send have message to peer if it already has the piece.
  9040. * src/BtHaveMessage.{h, cc}
  9041. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9042. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9043. port.
  9044. * src/DefaultPeerStorage.{h, cc}
  9045. * test/DefaultPeerStorageTest.cc
  9046. * src/HandshakeExtensionMessage.cc
  9047. * test/HandshakeExtensionMessageTest.cc
  9048. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9049. * src/PeerStorage.h
  9050. * test/MockPeerStorage.h
  9051. * src/PeerListenCommand.cc
  9052. * src/PeerReceiveHandshakeCommand.cc
  9053. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9054. Added --metalink-enable-unique-protocol option.
  9055. * src/Metalink2RequestGroup.cc
  9056. * src/option_processing.cc
  9057. * src/prefs.h
  9058. * src/version_usage.cc
  9059. * doc/aria2c.1.txt
  9060. * doc/aria2c.1
  9061. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Allow a peer in incomingPeer to be added peers.
  9063. * src/DefaultPeerStorage.cc
  9064. * test/DefaultPeerStorageTest.cc
  9065. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9066. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9067. I could reproduce this bug in following procedure:
  9068. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9069. 2. Restart aria2.
  9070. 3. You see the download stopped around 99%.
  9071. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9072. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9073. If timeout is reached, then _nextCommand is unused and it may contains
  9074. segments and they won't be canceled. Actually, timeout is not needed
  9075. here because if the server dropped connection, then retry is made.
  9076. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9077. Added uTorrent compatible Peer Exchange.
  9078. * src/BencodeVisitor.{h, cc}
  9079. * test/BencodeVisitorTest.cc
  9080. * src/BtConstants.h
  9081. * src/BtContext.h: Added 'private' flag.
  9082. * src/BtExtendedMessage.{h, cc}
  9083. * test/BtExtendedMessageTest.cc
  9084. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9085. reserved field.
  9086. * test/BtHandshakeMessageTest.cc
  9087. * src/BtMessageFactory.h
  9088. * src/BtRegistry.h
  9089. * src/BtRuntime.h: This class holds default extension message IDs for
  9090. aria2. By default, aria2 uses ID 8 for ut_pex.
  9091. * src/DefaultBtContext.cc
  9092. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9093. When it is true, aria2 enables ut_pex. This value is set by
  9094. PeerInteractionCommand.
  9095. * src/DefaultBtMessageFactory.{h, cc}
  9096. * test/DefaultBtMessageFactoryTest.cc
  9097. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9098. handling to DefaultBtInteractive class.
  9099. * src/DefaultExtensionMessageFactory.{h, cc}
  9100. * test/DefaultExtensionMessageFactoryTest.cc
  9101. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9102. the container(peers and incomingPeers. The equality is determined by
  9103. Peer::id).
  9104. * test/DefaultPeerStorageTest.cc
  9105. * src/ExtensionMessage.h
  9106. * test/MockExtensionMessage.h
  9107. * src/ExtensionMessageFactory.h
  9108. * test/MockExtensionMessageFactory.h
  9109. * src/HandshakeExtensionMessage.{h, cc}
  9110. * test/HandshakeExtensionMessageTest.cc
  9111. * src/MetaEntry.h
  9112. * src/Peer.{h, cc}
  9113. * src/PeerInteractionCommand.cc
  9114. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9115. addIncomingPeer.
  9116. * src/PeerMessageUtil.{h, cc}
  9117. * src/PeerObject.h
  9118. * src/UTPexExtensionMessage.{h, cc}
  9119. * test/UTPexExtensionMessageTest.cc
  9120. * src/message.h
  9121. * src/prefs.h
  9122. Fixed the bug that returns incomplete data when it contains null
  9123. character. A convenient constructor was also added.
  9124. * src/Data.{h, cc}
  9125. Rewritten.
  9126. * src/CompactPeerListProcessor.cc
  9127. Fixed typos.
  9128. * src/message.h
  9129. * src/MetaFileUtil.cc
  9130. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. Added "Status Legend" label to the explanation text of 'stat' in
  9132. download result and moved it to the last. BUG#1848214
  9133. * src/RequestGroupMan.cc
  9134. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9135. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9136. * src/Makefie.am
  9137. * test/Makefile.am
  9138. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9139. Fixed the bug that prevents aria2 from loading cookie file when expire
  9140. value is greater than 2^31-1. BUG#1851066
  9141. * src/CookieBoxFactory.cc
  9142. * test/CookieBoxFactoryTest.cc
  9143. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9144. Fixed possible memory leak when an exception is thrown.
  9145. * src/XML2SAXMetalinkProcessor.cc
  9146. Added Expat support. If both libxml2 and Expat are installed, then
  9147. libxml2 is used by default.
  9148. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9149. ExpatMetalinkProcessor according to the configuration.
  9150. * src/ExpatMetalinkProcessor.{h, cc}
  9151. * src/main.cc: Removed libxml2 specific header and init/free function.
  9152. * src/MetalinkProcessorFactory.{h, cc}
  9153. * src/MetalinkHelper.cc
  9154. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9155. * src/MetalinkProcessor.h
  9156. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9157. MetalinkProcessorTest is used instead.
  9158. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9159. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9160. MetalinkProcessorFactory::newInstance().
  9161. * m4/libexpat.m4
  9162. * configure.ac: Added configuration options for libexpat.
  9163. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9164. Disabled -s option in metalink download.
  9165. * src/Metalink2RequestGroup.cc
  9166. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. If several protocols are available for a mirror in metalink file,
  9168. aria2 now use one of them. --metalink-preferred-protocol option was
  9169. added to specify the preference of protocol.
  9170. * src/AbstractCommand.cc
  9171. * src/OptionHandlerFactory.cc
  9172. * src/ServerHost.{h, cc}
  9173. * src/Metalink2RequestGroup.cc
  9174. * src/RequestGroup.{h, cc}
  9175. * test/RequestGroupTest.cc
  9176. * src/option_processing.cc
  9177. * src/prefs.h
  9178. * src/HttpResponseCommand.cc
  9179. * src/MetalinkResource.{h, cc}
  9180. * src/FtpNegotiationCommand.cc
  9181. * src/MetalinkEntry.{h, cc}
  9182. * src/MetalinkEntryTest.cc
  9183. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9184. Code cleanup and added debug log.
  9185. * src/PeerConnection.cc
  9186. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9187. Compiler error fix: applied the patch by Tiziano Mueller
  9188. * src/RequestGroup.cc
  9189. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9190. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9191. in stopped and completed event.
  9192. * src/AnnounceList.{h, cc}
  9193. * test/AnnounceListTest.cc
  9194. * src/DefaultBtAnnounce.cc
  9195. * test/DefaultBtAnnounceTest.cc
  9196. Sorted URLs.
  9197. * test/Metalink2RequestGroupTest.cc
  9198. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9199. Removed unnecessary string copy. Updated doc and corrected indentation.
  9200. * src/Base64.cc
  9201. Fixed compilation warnings
  9202. * test/DataTest.cc
  9203. * test/HttpRequestTest.cc
  9204. * test/MetaFileUtilTest.cc
  9205. * test/RequestTest.cc
  9206. * Release 0.12.0
  9207. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9208. Updated translations
  9209. * po/{de,fr,ja,nl,ru}.po
  9210. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9211. translations. Many thanks to translators.
  9212. * po/{ca,es,it,pt_BR,sv}.po
  9213. * po/LINGUAS
  9214. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. Added a notice about URL
  9216. * src/version_usage.cc
  9217. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9218. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9219. aria2 repeatedly sends stopped request when tracker returns error code.
  9220. * src/AnnounceList.cc
  9221. * test/AnnounceListTest.cc
  9222. * src/AnnounceTier.h
  9223. Added a message when ctrl-c is hit.
  9224. Now second ctrl-c is also handled in signal handler.
  9225. * src/RequestGroupMan.{h, cc}
  9226. * src/RequestGroup.{h, cc}
  9227. * src/MultiUrlRequestInfo.cc
  9228. * src/DownloadEngine.cc
  9229. * src/TrackerWatcherCommand.cc
  9230. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9231. Code cleanup
  9232. * src/Base64.cc (encode)
  9233. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9234. Changed Direct/IO enable/disable procesure in file allocation routine.
  9235. * src/SingleFileAllocationIterator.cc
  9236. (SingleFileAllocationIterator):
  9237. Disable directIO if offset is not multiple of 512.
  9238. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9239. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9240. Enable created SingleFileAllocationIterator's directIO.
  9241. * src/FileAllocationEntry.cc
  9242. (FileAllocationEntry): Enable directIO here.
  9243. (~FileAllocationEntry): Disable directIO here.
  9244. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9246. * src/Peer.{h, cc}
  9247. * src/DefaultPieceStorage.cc
  9248. * test/DefaultPieceStorageTest.cc
  9249. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. Rewritten direct I/O support routine
  9251. * src/SingleFileAllocationIterator.cc
  9252. * src/MultiDiskAdaptor.{h, cc}
  9253. * src/ByteArrayDiskWriter.h
  9254. * src/AbstractSingleDiskAdaptor.h
  9255. * src/AbstractDiskWriter.cc
  9256. * src/DefaultPieceStorage.cc
  9257. * src/DiskWriter.h
  9258. * src/BinaryStream.h
  9259. * src/IteratableChunkChecksumValidator.cc
  9260. * src/IteratableChecksumValidator.cc
  9261. * src/CheckIntegrityEntry.cc
  9262. * src/FileAllocationEntry.cc
  9263. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9264. Fixed typo
  9265. * src/version_usage.cc
  9266. Updated doc
  9267. * doc/aria2c.1.txt
  9268. * doc/aria2c.1
  9269. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9270. Fixed compile error without message digest support.
  9271. * src/FileMetalinkParserState.cc
  9272. * src/MetalinkParserController.{h, cc}
  9273. * test/XML2SAXMetalinkProcessorTest.cc
  9274. * test/MetalinkParserControllerTest.cc
  9275. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9276. Enable direct I/O support in checksum checking.
  9277. * src/IteratableChunkChecksumValidator.{h, cc}
  9278. * test/IteratableChunkChecksumValidatorTest.cc
  9279. * src/CheckIntegrityEntry.cc
  9280. * src/PieceHashCheckIntegrityEntry.cc
  9281. * src/IteratableChecksumValidator.{h, cc}
  9282. * src/BtCheckIntegrityEntry.cc: Added doc.
  9283. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Added --allow-piece-length-change option.
  9285. * src/DefaultBtProgressInfoFile.cc
  9286. * test/DefaultBtProgressInfoFileTest.cc
  9287. * src/OptionHandlerFactory.cc
  9288. * src/option_processing.cc
  9289. * src/prefs.h
  9290. * src/version_usage.cc
  9291. * doc/aria2c.1.txt
  9292. * doc/aria2c.1
  9293. Fixed: duplicated result entry appears when exception is thrown in
  9294. RequestGroup::createInitiateConnectionCommand().
  9295. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9296. Add RequestGroup to _requestGroup after RequetGroup::
  9297. createInitiateConnectionCommand() succeeds.
  9298. Externalized message
  9299. * src/XML2SAXMetalinkProcessor.cc
  9300. * src/message.h
  9301. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9302. Forced download abort when received negative response from http/ftp
  9303. server.
  9304. * src/HttpResponseCommand.cc
  9305. * src/FtpNegotiationCommand.cc
  9306. * src/HttpResponse.cc
  9307. * src/FtpConnection.cc
  9308. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9310. the predecessor, Xml2MetalinkParser class.
  9311. I tested them against 94KB metalink file with 1234 chunk checksums.
  9312. The new one parsed it in 22msec, while it took 6000msec with old one.
  9313. * src/XML2SAXMetalinkProcessor.{h, cc}
  9314. * test/XML2SAXMetalinkProcessorTest.cc
  9315. * src/MetalinkParserController.{h, cc}
  9316. * test/MetalinkParserControllerTest.cc
  9317. * src/MetalinkParserState.h: Also added 16 subclasses.
  9318. * src/main.cc
  9319. * src/Metalink2RequestGroup.cc
  9320. * src/MetalinkHelper.cc
  9321. * src/MetalinkEntry.cc
  9322. * src/ChunkChecksum.h
  9323. Rewritten Base64 class for better performance.
  9324. * src/Base64.{h, cc}
  9325. * test/Base64Test.cc
  9326. * src/HttpRequest.cc
  9327. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Fixed the bug#1841757: aria2 will connect to server to only get
  9329. file size.
  9330. * src/StreamFileAllocationEntry.cc
  9331. * src/option_processing.cc
  9332. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9333. downloads.
  9334. * src/FtpNegotiationCommand.cc
  9335. Suppressed wrong message when finding PreDownloadHandler
  9336. * src/RequestGroup.cc
  9337. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. Updated usage
  9339. * src/version_usage.cc
  9340. Updated man page
  9341. * doc/aria2c.1.txt
  9342. * doc/aria2c.1
  9343. Updated po files
  9344. * po/aria2c.pot
  9345. * po/*.po
  9346. * po/*.gmo
  9347. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9348. Eliminated g++-4.2 warning
  9349. * src/DownloadHandlerConstants.{h, cc}
  9350. * src/Util.cc
  9351. * test/MetaFileUtilTest.cc
  9352. * test/PStringBuildVisitorTest.cc
  9353. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9354. * src/RequestGroup.cc
  9355. * src/BtCheckIntegrityEntry.cc
  9356. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9357. Fixed a2io.h
  9358. * src/a2io.h
  9359. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9360. Added direct I/O support. The current implementation uses O_DIRECT,
  9361. which is not posix standard and is tested on linux 2.6.21.
  9362. Currently only file allocation uses direct I/O.
  9363. * src/SingleFileAllocationIterator.{h, cc}
  9364. * test/SingleFileAllocationIteratorTest.cc
  9365. * src/MultiFileAllocationIterator.{h, cc}
  9366. * test/MultiFileAllocationIteratorTest.cc
  9367. * src/BinaryStream.h
  9368. * src/DiskWriter.h
  9369. * src/AbstractDiskWriter.{h, cc}
  9370. * src/ByteArrayDiskWriter.h
  9371. * src/DiskAdaptor.h
  9372. * src/AbstractSingleDiskAdaptor.{h, cc}
  9373. * src/MultiDiskAdaptor.{h, cc}
  9374. * src/FileAllocationEntry.cc
  9375. * src/Util.{h, cc}
  9376. * src/OptionHandlerFactory.cc
  9377. * src/prefs.h
  9378. * src/version_usage.cc
  9379. * src/option_processing.cc
  9380. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9381. handleException.
  9382. * src/MultiFileAllocationIterator.cc
  9383. Added EINTR handling
  9384. * src/SocketCore.cc
  9385. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. Updated usage
  9387. * src/version_usage.cc
  9388. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9389. Applied Ross's patch for MinGW port.
  9390. * src/DownloadEngine.h
  9391. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9392. Set Content-Type to SingleFileDownloadContext when http response is
  9393. received.
  9394. * src/HttpResponseCommand.cc
  9395. * src/HttpResponse.{h, cc}
  9396. * test/HttpResponseTest.cc
  9397. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9398. Rewritten to add content-type support.
  9399. * src/DownloadHandler.{h, cc}
  9400. * src/BtPostDownloadHandler.{h, cc}
  9401. * test/BtPostDownloadHandlerTest.cc
  9402. * src/MetalinkPostDownloadHandler.{h, cc}
  9403. * test/MetalinkPostDownloadHandlerTest.cc
  9404. * src/PostDownloadHandler.{h, cc}
  9405. * src/DownloadHandlerConstants.{h, cc}
  9406. * src/RequestGroup.cc
  9407. * src/HttpResponseCommand.cc
  9408. * src/FtpNegotiationCommand.cc
  9409. * src/SingleFileDownloadContext.{h, cc}
  9410. * src/RequestGroup.h
  9411. * src/RequestGroupCriteria.h
  9412. * src/ContentTypeRequestGroupCriteria.h
  9413. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9414. If it is give, metalink/torrent file is not written to the disk, but
  9415. just is kept in memory. Parsing is occurred on memory.
  9416. * src/MetalinkHelper.{h, cc}
  9417. * src/MetalinkProcessor.h
  9418. * src/Xml2MetalinkProcessor.{h, cc}
  9419. * test/Xml2MetalinkProcessorTest.cc
  9420. * src/DownloadHandlerFactory.{h, cc}
  9421. * test/DownloadHandlerFactoryTest.cc
  9422. * src/PreDownloadHandler.{h, cc}
  9423. * src/OptionHandlerFactory.cc
  9424. * src/DefaultBtContext.{h, cc}
  9425. * test/DefaultBtContextTest.cc
  9426. * src/version_usage.cc
  9427. * src/Metalink2RequestGroup.{h, cc}
  9428. * src/RequestGroup.{h, cc}
  9429. * src/a2functional.h
  9430. * test/a2functionalTest.cc
  9431. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9432. * src/OptionHandlerImpl.h
  9433. * src/prefs.h
  9434. * src/Util.{h, cc}
  9435. * test/UtilTest.cc
  9436. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9437. memory usage.
  9438. * src/RequestGroupMan.{h, cc}
  9439. * src/DownloadEngine.cc
  9440. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9441. WeakHandle to SharedHandle because WeakHandle could be null.
  9442. * src/RequestGroup.{h, cc}
  9443. * src/DownloadEngineFactory.cc
  9444. * src/DownloadResult.h
  9445. Set totalLength after download finished
  9446. * src/UnknownLengthPieceStorage.{h, cc}
  9447. Keep torrent file specified in metalink in memory.
  9448. * src/Metalink2RequestGroup.cc
  9449. * src/BtDependency.cc
  9450. * src/TrueRequestGroupCriteria.h
  9451. Fixed the bug: seekg is used where seekp should be used.
  9452. * src/ByteArrayDiskWriter.cc
  9453. * test/ByteArraydiskWriterTest.cc
  9454. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9455. Fixed syntax error
  9456. * test/SequenceTest.cc
  9457. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9458. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9459. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9460. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9461. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9462. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9463. Added the check to see whether ares_host_callback accepts timeouts
  9464. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9465. * src/NameResolver.{h, cc}
  9466. * m4/libcares.m4
  9467. * configure.ac: Set C++ for language choice.
  9468. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9469. Fixed: compilation fails without c-ares/ares
  9470. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9471. Generate http/ftp commands only when download is incomplete.
  9472. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9473. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. Corrected typo. Examples are removed since they are available in man
  9475. page.
  9476. * src/version_usage.cc
  9477. Updated man page.
  9478. * doc/aria2c.1
  9479. * doc/aria2c.1.txt
  9480. * doc/makeman: Commented out sed command.
  9481. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9482. Throw DlAbortEx when a remote file is not found.
  9483. * src/HttpResponse.cc
  9484. * src/FtpNegotiationCommand.cc
  9485. * src/message.h
  9486. Overwrite an existing file if --allow-overwrite=true is given.
  9487. * src/RequestGroup.cc
  9488. Removed unused functions
  9489. * src/AbstractCommand.h
  9490. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9491. Removed 'extern' from 'extern typedef ...' in src/*.h
  9492. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9493. Updated usage
  9494. * src/version_usage.cc
  9495. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9496. Trim announce URL
  9497. * src/DefaultBtContext.cc
  9498. * test/ShaVisitorTest.cc
  9499. Trim argument s. Give trimed s to exception constructor.
  9500. * src/Util.cc (parseInt)(parseLLInt)
  9501. * test/UtilTest.cc
  9502. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9503. Set precision back to 1.
  9504. * src/ConsoleStatCalc.cc (calculateStat)
  9505. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9506. Replaced strtol with Util::parseInt
  9507. * src/ChunkedEncoding.cc
  9508. * src/HttpConnection.cc
  9509. * src/CookieBoxFactory.cc
  9510. * src/ParameterizedStringParser.cc
  9511. * src/Util.cc
  9512. * test/UtilTest.cc
  9513. * test/OptionHandlerTest.cc
  9514. * src/Request.cc
  9515. Throw exception when empty string is given. The message for exception
  9516. changed.
  9517. * src/Util.cc (parseInt)(parseLLInt)
  9518. * src/message.h
  9519. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9521. set to 1.
  9522. * src/ConsoleStatCalc.cc (calculateStat)
  9523. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. Preallocate non-requested file which is adjacent forward to requested
  9525. file('requested' files means the files given in --select-file option)
  9526. if they share a same piece.
  9527. This fixes long pause in the file system which doesn't support sparse
  9528. files like FAT32 while downloading.
  9529. * src/MultiFileAllocationIterator.{h, cc}
  9530. * test/MultiFileAllocationIteratorTest.cc
  9531. * src/FileEntry.{h, cc}
  9532. Removed unused _option.
  9533. * src/MultiDiskAdaptor.h
  9534. * test/MultiDiskAdaptorTest.cc
  9535. * src/DefaultPieceStorage.cc
  9536. Set the default value of --seed-ratio to 1.0.
  9537. If 0.0 is given, then seeding continues regardless of share ratio.
  9538. * src/version_usage.cc
  9539. * src/option_processing.cc
  9540. * src/BtSetup.cc
  9541. * doc/aria2c.1.txt
  9542. * doc/aria2c.1
  9543. Fixed: Selective download is not working in BitTorrent
  9544. * src/RequestGroup.cc
  9545. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9546. * src/PieceStorage.h
  9547. * test/MockPieceStorage.h
  9548. * src/UnknownLengthPieceStorage.h
  9549. * src/DefaultPieceStorage.{h, cc}
  9550. * src/Metalink2RequestGroup.cc
  9551. * src/RequestGroup.cc
  9552. * src/Sequence.h
  9553. * test/SequenceTest.cc
  9554. * src/IntSequence.h
  9555. * src/message.h
  9556. * src/Util.{h, cc}
  9557. * test/UtilTest.cc
  9558. Added new function 'parse' to catch exception thrown by subclass's
  9559. parseArg
  9560. * src/OptionHandler.h
  9561. * src/OptionParser.cc
  9562. * src/NameMatchOptionHandler.h
  9563. * src/OptionHandlerImpl.h
  9564. * test/OptionHandlerTest.cc
  9565. Added IntegerRangeOptionHandler. Used for --listen-port and
  9566. --select-file. Now --listen-port accepts range of port.
  9567. * src/OptionHandlerFactory.cc
  9568. * src/version_usage.cc
  9569. * src/OptionHandlerImpl.h
  9570. * src/option_processing.cc
  9571. * src/BtSetup.cc
  9572. * src/PeerListenCommand.{h, cc}
  9573. * doc/aria2c.1.txt
  9574. * doc/aria2c.1
  9575. Implemented operator< for Exception class to provide easy way to print
  9576. exception stack trace.
  9577. * src/Exception.{h, cc}
  9578. * src/main.cc
  9579. * src/option_processing.cc
  9580. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9581. * src/version_usage.cc
  9582. (showVersion): Reworked.
  9583. (showUsage): Added examples.
  9584. Removed Hint for total length and file name.
  9585. * src/Metalink2RequestGroup.cc
  9586. * src/RequestGroup.{h, cc}
  9587. * src/HttpResponseCommand.cc
  9588. * src/FtpNegotiationCommand.cc
  9589. Now --follow-torrent and --follow-metalink option work properly.
  9590. * src/RequestGroup.cc
  9591. Updated man page
  9592. * doc/aria2c.1.txt
  9593. * doc/aria2c.1
  9594. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9595. Removed.
  9596. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9597. Use Segment::operator==()
  9598. * src/HttpConnection.cc
  9599. * src/Segment.h
  9600. Updated usage
  9601. * src/version_usage.cc
  9602. Added EINTR treatment.
  9603. * src/SocketCore.cc
  9604. * src/AbstractDiskWriter.cc
  9605. Rewritten.
  9606. * src/Util.cc (rangedFileCopy)
  9607. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Fixed typo.
  9609. * src/version_usage.cc
  9610. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9611. Implemented. Now -c option works fine.
  9612. * src/DefaultPieceStorage.cc (markPiecesDone)
  9613. * test/DefaultPieceStorageTest.cc
  9614. Removed.
  9615. * src/SegmentMan.{h, cc}
  9616. (markAllPiecesDone)
  9617. (markPieceDone)
  9618. Synchronized po files with
  9619. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9620. * src/fr.po
  9621. * src/ru.po
  9622. * src/de.po
  9623. * src/ja.po
  9624. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9625. Added ifdef and some modifications to compile without BitTorrent,
  9626. Metalink, MessageDigest
  9627. support.
  9628. * src/PieceHashCheckIntegrityEntry.cc
  9629. * src/MetalinkEntry.h
  9630. * src/version_usage.cc
  9631. * src/main.cc
  9632. * src/DownloadEngine.{h, cc}
  9633. * src/Metalink2RequestGroup.cc
  9634. * src/Peer.cc
  9635. * src/RequestGroup.cc
  9636. * src/MetalinkHelper.cc
  9637. * test/DefaultPieceStorageTest.cc
  9638. * test/MetalinkPostDownloadHandlerTest.cc
  9639. * test/Metalink2RequestGroupTest.cc
  9640. Hide TOTAL SPD when all downloads complete.
  9641. * src/ConsoleStatCalc.cc
  9642. Log target system information.
  9643. * src/main.cc
  9644. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9645. Now --metalink-location accepts a comma-deliminated list of locations.
  9646. * src/MetalinkEntry.{h, cc}
  9647. * test/MetalinkEntryTest.cc
  9648. * src/version_usage.cc
  9649. * src/Metalink2RequestGroup.cc
  9650. * src/Xml2MetalinkProcessor.cc
  9651. * test/Xml2MetalinkProcessorTest.cc
  9652. * doc/aria2c.1.txt
  9653. * doc/aria2c.1
  9654. * src/Util.cc (toUpper)(toLower): Rewritten.
  9655. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9656. Added the ability to detect duplicate download entry which is about to
  9657. download the same file other RequestGroup is downloading.
  9658. * src/RequestGroup.cc
  9659. * src/HttpResponseCommand.cc
  9660. * src/FtpNegotiationCommand.cc
  9661. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9662. Recalculates download progress when loading a control file,
  9663. if the piece length of DownloadContext is different from the one saved
  9664. in the control file. Currently in-flight pieces are ignored.
  9665. * src/DefaultBtProgressInfoFile.cc
  9666. * test/DefaultBtProgressInfoFileTest.cc
  9667. * src/Util.{h, cc}
  9668. * test/UtilTest.cc
  9669. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. Do not rotate tiers in announce-list.
  9671. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9672. AnnounceList::allTiersFailed() used instead to detect whether all
  9673. tiers are tried and failed.
  9674. * test/DefaultBtAnnounceTest.cc
  9675. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9676. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9677. * test/AnnounceListTest.cc
  9678. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9679. clause. Catch RecoverableException instead of DlRetryEx instead.
  9680. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9681. Implemented checksum validation feature(1 checksum for each file)
  9682. The validation takes place after the download.
  9683. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9684. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9685. * src/CheckIntegrityCommand.cc: Changed log message.
  9686. * src/Metalink2RequestGroup.cc: Set checksum to
  9687. SingleFileDownloadContext.
  9688. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9689. PieceHashCheckIntegrity class.
  9690. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9691. PieceHashCheckIntegrity class.
  9692. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9693. * src/IteratableValidator.h: New class.
  9694. * src/message.h
  9695. * src/CheckIntegrityEntry.{h, cc}
  9696. * src/IteratableChunkChecksumValidator.{h, cc}
  9697. * src/SingleFileDownloadContext.h
  9698. * src/DownloadCommand.cc
  9699. --allow-overwrite=true is no longer needed to check file integrity
  9700. before download in BitTorrent download.
  9701. * src/RequestGroup.cc (getInitialCommand)
  9702. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9703. throws exception.
  9704. * src/RequestGroupMan.cc (getInitialCommands)
  9705. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9706. urlencode the given url inside Request::parseUrl(...)
  9707. * src/Request.{h, cc}
  9708. * src/Util.{h, cc}
  9709. * test/RequestTest.cc
  9710. Removed #!metalink3! notation support because it is deleted from
  9711. the metalink specification.
  9712. * src/Request.{h, cc}
  9713. * test/RequestTest.cc
  9714. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9715. Don't connect server before checking file integrity at startup, if
  9716. filesize and output file path are known.
  9717. * src/AbstractCommand.cc
  9718. * src/StreamFileAllocationEntry.cc
  9719. * src/Metalink2RequestGroup.cc
  9720. * src/RequestGroup.{h, cc}
  9721. * src/HttpResponseCommand.cc
  9722. * src/FtpNegotiationCommand.cc
  9723. Added DownloadFailureException. If it is thrown, RequestGroup should
  9724. halt.
  9725. * src/AbstractCommand.cc
  9726. * src/DownloadFailureException.h
  9727. * src/RequestGroup.cc
  9728. Catch RecoverableException, instead of DlAbortEx.
  9729. * src/RequestGroupMan.cc
  9730. * src/FillRequestGroupCommand.cc
  9731. * src/MetaFileUtil.cc
  9732. * src/IteratableChunkChecksumValidator.cc
  9733. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9734. getGID())
  9735. * src/CheckIntegrityCommand.cc
  9736. * src/message.h
  9737. Print gid instead of idx.
  9738. * src/RequestGroupMan.cc
  9739. Removed exception throwers declaration.
  9740. * src/DirectDiskAdaptor.{h, cc}
  9741. * src/SocketCore.{h, cc}
  9742. * src/MultiDiskAdaptor.{h, cc}
  9743. * src/HttpConnection.{h, cc}
  9744. * src/HttpResponse.{h, cc}
  9745. * src/DiskAdaptor.{h, cc}
  9746. * src/CopyDiskAdaptor.{h, cc}
  9747. * src/MultiDiskAdaptor.{h, cc}
  9748. * src/HttpHeaderProcessor.{h, cc}
  9749. * src/AbstractSingleDiskAdaptor.{h, cc}
  9750. * src/Util.{h, cc}
  9751. * test/UtilTest.cc
  9752. * src/DefaultDiskWriter.{h, cc}
  9753. * src/FtpConnection.{h, cc}
  9754. * src/AbstractDiskWriter.{h, cc}
  9755. Removed duplicate code.
  9756. * src/StreamCheckIntegrityEntry.cc
  9757. Removed unnecessary include.
  9758. * src/DiskWriter.h
  9759. Included Exception.h
  9760. * src/option_processing.cc
  9761. Included 2 files and added doc
  9762. * src/TrackerWatcherCommand.cc
  9763. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9764. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Changed CheckIntegrityEntry interface so that it can define
  9766. the action when all the chunk checksums are valid.
  9767. * src/CheckIntegrityEntry.h
  9768. * src/StreamCheckIntegrityEntry.{h, cc}
  9769. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9770. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9771. to exit rather than doing seeding. So, it would be good to toggle this
  9772. behavior.
  9773. * src/CheckIntegrityCommand.cc
  9774. * src/AbstractCommand.cc
  9775. * src/RequestGroup.cc
  9776. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9777. Reflect the download length of in-flight pieces.
  9778. It makes the download length readout more precise.
  9779. * src/DefaultPieceStorage.{h, cc}
  9780. * test/DefaultPieceStorageTest.cc
  9781. * src/a2functional.h
  9782. * test/a2functionalTest.cc
  9783. Lower CPU load when --max-download-limit is used.
  9784. There is up and down in speed indicator when enabling
  9785. http-pipelining but a download goes well. I think the problem is that
  9786. because http-pipelining is enabled, DownloadCommand is created for
  9787. each segment and in its constructor, PeerStat::downloadStart() is
  9788. called. In PeerStat::downloadStart(), speed calculation object is
  9789. reseted, which makes download speed zero.
  9790. * src/DownloadCommand.cc
  9791. Rewritten using accumulate.
  9792. * src/RequestGroupMan.cc (calculateStat)
  9793. Code clearnup.
  9794. * src/FtpNegotiationCommand.cc
  9795. * src/HttpResponseCommand.cc
  9796. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Fixed: Can not resume: aria2 reports download already finished.
  9798. * src/AbstractCommand.{h, cc}
  9799. * src/HttpResponseCommand.cc
  9800. * src/FtpNegotiateCommand.cc
  9801. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9802. Now a file is stored in the directory specified in .metalnk file
  9803. (file[@name]).
  9804. * src/Metalink2RequestGroup.cc
  9805. Create the directory structure when opening the file if it doesn't
  9806. exist.
  9807. * src/AbstractDiskWriter.cc
  9808. * src/Util.{h, cc}
  9809. * src/File.h
  9810. * test/UtilTest.cc
  9811. Removed file name comparison
  9812. * src/Metalink2RequestGroup.cc
  9813. * src/HttpResponseCommand.cc
  9814. Rewritten using Util::mkdirs()
  9815. * src/FileEntry.cc (setupDir)
  9816. * test/FileEntryTest.cc
  9817. Updated doc
  9818. * src/SingleFileDownloadContext.h
  9819. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9820. Now SleepCommand dispatches nextCommand when halt is requested.
  9821. It avoids a possible long wait after hitting CTRL-C.
  9822. * src/SleepCommand.{h, cc}
  9823. * src/RequestGroupAware.{h, cc}
  9824. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9825. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9826. to open listen port, then remove the port number from the tracker
  9827. request.
  9828. * src/DefaultBtAnnounce.cc
  9829. * test/DefaultBtAnnounceTest.cc
  9830. * test/MockPieceStorage.h
  9831. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9832. them more testable.
  9833. * src/DefaultBtAnnounce.{h, cc}
  9834. * src/DefaultBtContext.{h, cc}
  9835. * src/Util.{h, cc}
  9836. * test/DefaultBtAnnounceTest.cc
  9837. * test/DefaultBtContextTest.cc
  9838. * test/UtilTest.cc
  9839. Added 'B' to upload bytes readout.
  9840. * src/ConsoleStatCalc.cc
  9841. Now the listen port for BitTorrent download is opened when it is
  9842. needed.
  9843. * src/DownloadEngineFactory.cc
  9844. * src/BtSetup.{h, cc}
  9845. * src/PeerListenCommand.{h, cc}
  9846. Now an exception thrown while parsing tracker response is now logged.
  9847. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9848. called, which means no retry is made in this case, assuming a tracker
  9849. has a problem.
  9850. * src/TrackerWatcherCommand.cc
  9851. Fixed: downloading a file whose length is unkown fails.
  9852. * src/DownloadCommand.cc
  9853. Simplified prepareForNextSegment()
  9854. * src/DownloadCommand.cc
  9855. Updated
  9856. * po/POTFILES.in
  9857. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9858. Re-implemented a file listing for Metalink, which was dropped while
  9859. http/ftp/torrent integration was being implemented.
  9860. * src/MetalinkHelper.{h, cc}: New class.
  9861. * test/MetalinkHelperTest.cc
  9862. * src/main.cc
  9863. * src/Metalink2RequestGroup.cc
  9864. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9865. Added the ability to display the detailed torrent file information.
  9866. Now -S option gives not only a file listing, but also total download
  9867. length, info hash, announce URI, piece length, the number of pieces,
  9868. and mode(single or multi-torrent).
  9869. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9870. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9871. KiB)
  9872. * test/UtilTest.cc
  9873. * src/main.cc
  9874. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. Added ftp://USER:PASSWD@Servername automatic parsing.
  9876. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9877. _password. Recognize username and password in URI.
  9878. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9879. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9880. * src/RequestFactory.{h, cc}: Removed.
  9881. * src/AuthConfigFactory.{h, cc}: New class.
  9882. * src/FtpConnection.cc: Use AuthConfigFactory.
  9883. * src/HttpRequest.cc: Use AuthConfigFactory.
  9884. * test/HttpRequestTest.cc: Updated.
  9885. * test/RequestTest.cc: Updated.
  9886. * test/AuthConfigFactoryTest.cc: New class.
  9887. * test/RequestFactoryTest.cc: Removed.
  9888. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Use RequestGroup::allDownloadFinished() to decide whether the control
  9890. file should be removed or saved.
  9891. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9892. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9893. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9894. Use File::renameTo()
  9895. * src/DefaultBtProgressInfoFile.cc
  9896. Added --no-file-allocation-limit command-line option.
  9897. * src/version_usage.cc
  9898. * src/option_processing.cc
  9899. * src/OptionHandlerFactory.cc
  9900. * src/RequestGroup.{h, cc}
  9901. * src/BtCheckIntegrityEntry.cc
  9902. * src/StreamCheckIntegrityEntry.cc
  9903. * src/prefs.h
  9904. * doc/aria2c.1.txt
  9905. * doc/aria2c.1
  9906. Now prealloc is the default value for --file-allocation option.
  9907. * src/version_usage.cc
  9908. * src/option_processing.cc
  9909. * doc/aria2c.1.txt
  9910. * doc/aria2c.1
  9911. Don't URL-encode user-agent.
  9912. * src/HttpRequest.cc
  9913. Updated translations
  9914. * po/LINGUAS: Added nl for Dutch translation.
  9915. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9916. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9917. * po/POTFILES.in: Updated.
  9918. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. Added the ability to recognize url-list in a torrent file.
  9920. The retrieved URLs are attached to the corresponding FileEntry.
  9921. * src/DefaultBtContext.{h, cc}
  9922. * src/FileEntry.{h, cc}
  9923. * test/DefaultBtContextTest.cc
  9924. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9925. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9926. after the download finishes.
  9927. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9928. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9929. the data smaller than block length.
  9930. A block length can be specified by constructor's argument.
  9931. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9932. Get a missing piece in the range of given FileEntry. This function is
  9933. not used in the program yet.
  9934. * src/Util.h: Added some macros.
  9935. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9936. Added HTTP/1.1 keep alive and pipelining support.
  9937. See --enable-http-keep-alive and --enable-http-pipelining option.
  9938. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9939. Segment.
  9940. * src/HttpDownloadCommand.{h, cc}
  9941. * src/OptionHandlerFactory.cc
  9942. * src/HttpConnection.{h, cc}
  9943. * src/version_usage.cc
  9944. * src/HttpInitiateConnectionCommand.cc
  9945. * src/FtpInitiateConnectionCommand.cc
  9946. * src/Segment.h
  9947. * src/HttpRequestCommand.{h, cc}
  9948. * src/option_processing.cc
  9949. * src/prefs.h
  9950. * src/HttpResponseCommand.cc
  9951. * src/SegmentMan.{h, cc}
  9952. * src/FtpNegotiateCommand.cc
  9953. * src/HttpProxyResponseCommand.cc
  9954. * src/Request.cc
  9955. * src/HttpRequest.cc
  9956. * src/DownloadCommand.cc
  9957. * test/HttpRequestTest.cc
  9958. * test/RequestTest.cc
  9959. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9960. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9961. finished.
  9962. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9963. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9964. catching it inside the method.
  9965. When no file entry is found in a metalink without querying user
  9966. preferences, throw the exception with the error message that suggests
  9967. metalink file is probably broken.
  9968. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9969. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9970. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9971. processed.
  9972. * src/RequestGroupMan.cc (removeStoppedGroup)
  9973. Added debug message.
  9974. * src/BtPostDownloadHandler.cc
  9975. * src/MetalinkPostDownloadHandler.cc
  9976. * src/PostDownloadHandler.{h, cc}
  9977. * src/RequestGroup.cc
  9978. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9979. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9980. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9981. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9982. stops and there are any unfinished or in-progress downloads.
  9983. Added the legend of "stat".
  9984. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9985. Throw exception when chunck checksum verification fails.
  9986. * src/DownloadCommand.cc (validatePieceHash): New function.
  9987. * src/PiecedSegment.{h, cc} (clear): New function.
  9988. * src/GrowSegment.{h, cc} (clear): New function.
  9989. * src/Segment.h (clear): New function.
  9990. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9991. * test/SegmentTest.cc
  9992. * test/GrowSegmentTest.cc
  9993. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9994. Do not send referer when redirected.
  9995. * src/Request.cc (redirectUrl)
  9996. * test/RequestTest.cc
  9997. * test/HttpRequestTest.cc
  9998. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9999. Implemented BitTorrent/http/ftp integrated download.
  10000. I've rewritten lots of files and now some headers have forward
  10001. class declarations to reduce compile time.
  10002. The implementation is extremely alpha stage, I recommend to use this
  10003. for testing purpose only.
  10004. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. Fixed the compilation error on 64bit platform.
  10006. * test/HttpHeaderProcessorTest.cc
  10007. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Merged Ross's patch that fixes compilation problem in MinGW
  10009. * test/DefaultBtProgressInfoFileTest.cc
  10010. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10011. Updated fr.po by sebone
  10012. * po/fr.po
  10013. Updated man page.
  10014. * doc/aria2c.1.txt
  10015. * Release 0.11.3
  10016. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10017. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10018. failure in Metalink.
  10019. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10020. Automatically save *.aria2 control file of http/ftp download in every
  10021. 60 seconds.
  10022. * src/AutoSaveCommand.{h, cc}: New class.
  10023. * src/TimeBasedCommand.{h, cc}: New class.
  10024. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10025. Disable parameterized URI support by default. Added -P option to
  10026. enable the feature.
  10027. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10028. * src/OptionHandlerFactory.cc
  10029. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10030. Updated Japanese translation.
  10031. * po/ja.po
  10032. Updated man page.
  10033. * doc/aria2c.1.txt
  10034. * Release 0.11.3-rc
  10035. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10036. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10037. it is successful, then renamed to *.aria2.
  10038. This prevents *.aria2 file from being truncated or corrupted when
  10039. file system becomes out of space.
  10040. * src/DefaultBtProgressInfoFile.cc (save)
  10041. * src/SegmentMan.cc (save)
  10042. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10043. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10044. Reduced the fragmentation of bitfield in http/ftp download.
  10045. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10046. * test/BitfieldManTest.cc
  10047. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10048. Added the ability to disable segmented download in .metalink.
  10049. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10050. 'url' tag.
  10051. * src/MetalinkEntry.{h, cc}
  10052. * src/RequestResource.{h, cc}
  10053. * src/MetalinkRequestInfo.cc
  10054. * src/Xml2MetalinkProcessor.cc
  10055. * test/Xml2MetalinkProcessorTest.cc
  10056. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10057. Added parameterized URI support.
  10058. * src/main.cc: -Z option added.
  10059. * src/OptionHandlerFactory.cc
  10060. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10061. * src/PStringDatum.h: New class.
  10062. * src/PStringSegment.{h,cc}: New class.
  10063. * src/PStringNumLoop.h: New class.
  10064. * src/PStringSelect.h: New class.
  10065. * src/NumberDecorator.h: New class.
  10066. * src/FixedWidthNumberDecorator.h: New class.
  10067. * src/AlphaNumberDecorator.h: New class.
  10068. * src/PStringVisitor.h: New class.
  10069. * src/PStringBuildVisitor.{h,cc}: New class.
  10070. * src/ParameterizedStringParser.{h,cc}: New class.
  10071. * src/Util.{h,cc}
  10072. (isNumber): New function.
  10073. (isLowercase): New function.
  10074. (isUppercase): New function.
  10075. (alphaToNum): New function.
  10076. * test/ParameterizedStringParserTest.cc: New class.
  10077. * test/AlphaNumberDecoratorTest.cc: New class.
  10078. * test/PStringBuildVisitorTest.cc: New class.
  10079. * test/UtilTest.cc
  10080. (testIsNumber): New function.
  10081. (testIsLowercase): New function.
  10082. (testIsUppercase): New function.
  10083. (testAlphaToNum): New function.
  10084. Added '\n' after the error message
  10085. * src/RequestInfo.h (printDownloadAbortMessage)
  10086. Added auto file renaming feature in http(s)/ftp download.
  10087. * src/main.cc: Added --auto-file-renaming command-line option.
  10088. * src/OptionHandlerFactory.cc
  10089. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10090. * src/RequestGroup.{h, cc}
  10091. (shouldCancelDownloadForSafety): Rewritten
  10092. (tryAutoFileRenaming): New function.
  10093. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10094. * src/HttpResponseCommand.cc
  10095. (executeInternal): Removed the call to RequestGroupMan::
  10096. isSameFileBeingDownloaded()
  10097. * src/FtpNegotiateCommand.cc
  10098. (recvSize): Removed the call to RequestGroupMan::
  10099. isSameFileBeingDownloaded()
  10100. * test/RequestGroupTest.cc: New class.
  10101. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10102. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10103. IO.
  10104. * src/DefaultBtProgressInfoFile.cc
  10105. * src/MetaFileUtil.cc
  10106. * src/SimpleLogger.cc
  10107. * src/SegmentMan.cc
  10108. * src/Util.cc
  10109. * src/Platform.cc
  10110. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10111. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10112. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10113. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10114. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10115. Fixed the bug that prevents file allocation is not done when
  10116. dowloading multi-torrent file.
  10117. * src/AbstractDiskWriter.cc (openFile)
  10118. Increase the maximum number of -j option from 15 to 45.
  10119. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10120. Added fr.po, thanks to Charles Landemaine.
  10121. * po/fr.po
  10122. * po/LINGUAS
  10123. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10124. gcc 3.4.4 support:
  10125. * src/DefaultBtContext.cc: int32_t -> int
  10126. * src/main.cc: int -> int32_t, int32_t -> int
  10127. * src/messageDigest.h: uint32_t -> unsigned int
  10128. * src/NameResolver.h: int32_t -> int
  10129. * src/PeerConnection.cc: int -> int32_t
  10130. * src/SpeedCalc.cc: int32_t -> int
  10131. * src/TrackerUpdateCommand.h: int -> int32_t
  10132. * src/Util.cc: int32_t -> int
  10133. * src/Util.h: int32_t -> int
  10134. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10135. * test/AnnounceListTest.cc: int -> int32_t
  10136. * test/ChunkedEncodingTest.cc: int -> int32_t
  10137. * test/DataTest.cc: int -> int32_t
  10138. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10139. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10140. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10141. * test/FeatureConfigTest.cc: int -> int32_t
  10142. * test/MetalinkEntryTest.cc: int -> int32_t
  10143. * test/MockBtRequestFactory.h: int -> int32_t
  10144. * test/MockPieceStorage.h: int -> int32_t
  10145. * test/OptionTest.cc: int -> int32_t
  10146. * test/RequestTest.cc: int -> int32_t
  10147. * test/SegmentManTest.cc: int -> int32_t
  10148. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10149. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10150. Move sleep functions to Util class:
  10151. * src/Util.cc
  10152. (sleep): New function.
  10153. (usleep): New function.
  10154. * src/DownloadCommand.cc: sleep -> Util::sleep
  10155. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10156. MinGW build enhancements. The following files are added:
  10157. * src/timegm.{c,h}
  10158. Changes to support the above new files:
  10159. * configure.ac
  10160. * src/Makefile.am
  10161. * src/a2time.h
  10162. * src/Util.cc:
  10163. * src/strptime.c: Added support for %Z option.
  10164. Fixed MinGW non-blocking bug.
  10165. * src/SocketCore.cc
  10166. * src/HttpRequestCommand.cc
  10167. Miscellenous build fixes/enhancements.
  10168. * configure.ac: Added summary report.
  10169. * src/Platform.h: Tweaked #include's.
  10170. * src/a2netcompat.h: Tweaked #include's.
  10171. * src/strptime.h: Tweaked #include's.
  10172. * src/gai_strerror.c: Tweaked #include's.
  10173. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10174. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10175. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10176. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10177. Increased the initial connection size in BitTorrent download to 40.
  10178. * src/BtRuntime.h
  10179. Added the usage message of --peer-id-prefix option.
  10180. * src/main.cc
  10181. * Release 0.11.2
  10182. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10183. MessageDigestHelper is introduced in order to simplify the use
  10184. of message digest. Removed repeated code.
  10185. The message digest algorithm is now specified by string, like "sha1",
  10186. "md5".
  10187. * src/messageDigest.{h, cc}
  10188. * src/MessageDigestHelper.{h, cc}: New class.
  10189. * src/DefaultPieceStorage.cc
  10190. * src/DefaultBtContext.{h, cc}
  10191. (computeFastSet): New function.
  10192. (setInfoHash): Added for unit testing.
  10193. (setNumPieces): Added for unit testing.
  10194. * src/DefaultBtInteractive.cc
  10195. * src/BtPieceMessage.cc
  10196. * src/Peer.cc
  10197. * src/Checksum.h
  10198. * src/message.h
  10199. * src/IteratableChecksumValidator.h
  10200. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10201. inside it.
  10202. * src/SegmentMan.{h, cc}
  10203. (checkIntegrity): Removed.
  10204. * src/IteratableChunkChecksumValidator.{h, cc}
  10205. * src/Util.h
  10206. (sha1Sum): Removed.
  10207. (simpleMessageDigest): Removed.
  10208. (fileChecksum): Removed.
  10209. (computeFastSet): Removed.
  10210. * src/ShaVisitor.cc
  10211. * src/ChunkChecksum.h
  10212. * src/DownloadCommand.cc
  10213. Removed messageDigest virtual functions.
  10214. * src/MultiDiskAdaptor.{h, cc}
  10215. * src/DiskAdaptor.h
  10216. * src/ByteArrayDiskWriter.h
  10217. * src/DiskWriter.h
  10218. * src/DiskAdaptorWriter.h
  10219. * src/AbstractSingleDiskAdaptor.{h, cc}
  10220. * src/AbstractDiskWriter.{h, cc}
  10221. Fixed comilation error when message digest is disabled.
  10222. * src/MetalinkEntry.{h, cc}
  10223. * src/MetalinkRequestInfo.cc
  10224. Removed srandom and random.
  10225. * src/SimpleRandomizer.h
  10226. Added size() virtual function to DiskAdaptor
  10227. * src/MultiDiskAdaptor.h
  10228. Fixed the bug that causes that files are not opened correctly in
  10229. multi-file torrent.
  10230. * src/TorrentRequestInfo.cc
  10231. * src/MultiDiskAdaptor.cc
  10232. Added SHA256 support
  10233. * src/messageDigest.cc
  10234. * src/Xml2MetalinkProcessor.cc
  10235. Show supported message digest algorithms
  10236. * src/main.cc
  10237. Updated contact info.
  10238. * src/main.cc
  10239. Applied Ross's patch
  10240. * src/a2netcompat.h
  10241. * src/main.cc
  10242. Fixed the bug that prevents a remote metalink from not being processed
  10243. even if '-o foo.metalink' is specified.
  10244. * src/MetalinkRequestInfo.cc
  10245. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. Merged Dan's patch:
  10247. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10248. Use va_copy to avoid core dump on amd64:
  10249. * src/SimpleLogger.cc
  10250. Updated contact info.
  10251. * src/main.cc
  10252. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10253. digest is not available.
  10254. * src/MetalinkEntry.h
  10255. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10256. Make a2netcompat.h include a2io.h to fix compilation error:
  10257. * src/a2netcompat.h
  10258. * src/SocketCore.cc: Removed include of a2io.h
  10259. * src/Util.cc: Removed include of a2io.h
  10260. Gather time related functions to a2time.h:
  10261. * src/a2time.h: New file.
  10262. * src/DefaultPeerStorage.cc
  10263. * src/SimpleLogger.cc
  10264. * src/Util.{h, cc}
  10265. * src/SimpleRandomizer.h
  10266. * src/TimeA2.{h,cc}
  10267. * src/DownloadCommand.cc
  10268. * src/main.cc
  10269. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10270. a2netcompat.h:
  10271. * src/NameResolver.cc
  10272. Fixed compilation error without openssl:
  10273. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10274. Added default block to suppress compiler warnings:
  10275. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10276. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10277. MinGW build enhancements. The following files are added:
  10278. * src/gai_strerror.{c,h}
  10279. * src/gettimeofday.{c,h}
  10280. Changes to support the above new files:
  10281. * configure.ac
  10282. * src/Makefile.am
  10283. * src/a2netcompat.h
  10284. * src/TimeA2.cc
  10285. * src/DefaultPeerStorage.cc
  10286. * src/NameResolver.cc: removed mingw_strerror() function.
  10287. * src/SocketCore.cc: removed mingw_strerror() function.
  10288. Miscellaneous MinGW build fixes.
  10289. * src/a2io.h: Use _lseeki64() instead of lseek()
  10290. * src/common.h
  10291. * src/DefaultFileAllocator.cc
  10292. * src/GlowFileAllocator.cc
  10293. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10294. * src/NameResolver.cc
  10295. (callback): Changed int32_t to int.
  10296. (resolve): Changed int32_t to int.
  10297. * src/Platform.cc
  10298. * src/Platform.h
  10299. * test/MultiDiskWriterTest.cc
  10300. * test/PeerMessageUtilTest.cc
  10301. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10302. Other enhancements and fixes.
  10303. * src/HttpRequestCommand.cc
  10304. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10305. * src/SocketCore.cc:
  10306. (error): New function to abstract errno/WSAGetLastError().
  10307. (errorMsg): New function to abstract errno/WSAGetLastError().
  10308. (initiateSecureConnection): Added more detailed error reporting.
  10309. * src/SocketCore.h: Added private variable blocking, to allow
  10310. proper handling of OpenSSL psuedo-errors.
  10311. * src/message.h
  10312. (EX_SSL_INIT_FAILURE)
  10313. (EX_SSL_IO_ERROR)
  10314. (EX_SSL_PROTOCOL_ERROR)
  10315. (EX_SSL_UNKNOWN_ERROR)
  10316. (EX_SSL_CONNECT_ERROR)
  10317. (EX_SOCKET_BLOCKING)
  10318. (EX_SOCKET_NONBLOCKING)
  10319. (EX_SOCKET_UNKNOWN_ERROR)
  10320. * src/Util.cc
  10321. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10322. reserved name.
  10323. (httpGMT): Fixed typo.
  10324. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10325. Merged Ross's win32 patch(manually)
  10326. In the course of merging, following files are added.
  10327. * src/strptime.{h,c}
  10328. * src/libgen.{h,c}
  10329. * src/inet_aton.{h,c}
  10330. * src/Platform.{h,cc}
  10331. * src/localtime_r.{h,c}
  10332. * src/getaddrinfo.{h,c}
  10333. I've gethered network related things, and put them to following file:
  10334. * src/a2netcompat.h
  10335. Also io related things are put to following file:
  10336. * src/a2io.h
  10337. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10338. * src/message.h
  10339. (MSG_ALLOCATION_COMPLETED)
  10340. (EX_TOO_LARGE_FILE)
  10341. (EX_SIZE_MISMATCH)
  10342. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10343. (EX_INVALID_CHUNK_CHECKSUM)
  10344. (EX_INVALID_RANGE_HEADER)
  10345. * src/FileAllocationCommand.cc
  10346. * src/HttpResponse.cc
  10347. * src/RequestGroup.cc
  10348. * src/MultiDiskAdaptor.cc
  10349. * src/OptionHandlerImpl.h
  10350. * src/HttpResponseCommand.cc
  10351. * src/FtpNegotiateCommand.cc
  10352. * src/IteratableChecksumValidator.cc
  10353. * src/SegmentMan.cc
  10354. * src/ChunkChecksumValidator.cc
  10355. Added Randomizer::getRandomNumber(long int)
  10356. * src/Randomizer.h (getRandomNumber)
  10357. * src/SimpleRandomizer.h (getRandomNumber)
  10358. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10359. * src/Util.cc (randomAlpha): Use this new function.
  10360. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. Converted int's to in32_t. long long int's are also converted to
  10362. int64_t
  10363. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10364. Fixed the bug that prevents cookies from being sent to the server
  10365. if the domain of cookie is FQDN and starts with ".".
  10366. * src/Cookie.cc (match)
  10367. To add the ability to change peer id.
  10368. * src/DefaultBtContext.h
  10369. (_peerIdPrefix): New variable
  10370. (setPeerIdPrefix): New function.
  10371. * src/torrentRequestInfo.cc
  10372. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10373. DefaultBtContext.
  10374. * src/main.cc (main): Added peer-id-prefix command-line option.
  10375. The usage message is not added yet.
  10376. * src/DefaultBtContext.cc
  10377. (generatePeerId): Use _peerIdPrefix.
  10378. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10379. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10380. Fixed the bug that prevents filename in content-disposition from
  10381. being retrieved when filename is not quoted.
  10382. * src/Util.cc (getContentDispositionFilename)
  10383. Fixed the bug that causes infinate loop and memory leak when file open
  10384. operation failed.
  10385. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10386. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10387. Fixed the bug that causes segfault when all URIs specified are
  10388. unsupported.
  10389. * src/RequestGroupMan.cc (getInitialCommands)
  10390. Check if RequestGroup::createNextCommand() returns empty list of
  10391. commands.
  10392. * src/RequestGroup.cc (createNextCommand)
  10393. Change log level from info to error so that users can notice that
  10394. an error occurred.
  10395. Fixed the bug that causes segfault when a zero-sized file is
  10396. downloaded.
  10397. * src/BitfieldMan.cc (isAllBitSet)
  10398. Return true if bitfieldLength is 0.
  10399. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. * src/main.cc
  10401. (showUsage): Added 3 usage examples for metalink download.
  10402. Replace MetalinkChunkChecksum with ChunkChecksum.
  10403. * src/MetalinkChunkChecksum.h: Removed.
  10404. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10405. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10406. * src/Xml2MetalinkProcessor.cc
  10407. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10408. * src/MetalinkRequestInfo.cc (execute)
  10409. * Release 0.11.1
  10410. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10411. Reads URIs from stdin when "-i -" is specified.
  10412. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10413. * src/UriListParser.h, src/UriListParser.cc: New class.
  10414. * src/StreamUriListParser.h: New class.
  10415. * src/FileUriListParser.h: New class.
  10416. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10417. instead of UriFileListParser.
  10418. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10419. Made console readout more readable.
  10420. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10421. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. Fix the bug that causes -s option not to work.
  10423. * src/main.cc (main)
  10424. * src/a2algo.h: New file.
  10425. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10426. Create directory structure specified in metalink file.
  10427. * src/RequestGroup.h, src/RequestGroup.cc
  10428. (initAndOpenFile): Create a directory to store files if it does not
  10429. exist.
  10430. (getDir): New function.
  10431. Added ETA and download speed for an individual file to readout.
  10432. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10433. * src/RequestGroup.h
  10434. (calculateDownloadSpeed): New function.
  10435. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10436. Made -S option work with metalink file and provided selective download
  10437. to metalink.
  10438. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10439. (filename): Removed.
  10440. (file): New variable.
  10441. (size): Removed.
  10442. (operator=): Updated.
  10443. (getPath): New function.
  10444. (getLength): New function.
  10445. (toFileEntry): New function.
  10446. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10447. (execute): Use toStream.
  10448. (showFileEntry): Removed.
  10449. * src/MetalinkRequestInfo.h
  10450. (targetFiles): New variable.
  10451. (setTargetFiles): New variable.
  10452. * src/MetalinkRequestInfo.cc
  10453. (execute): Added the ability to print file information included in
  10454. a metalink file.
  10455. Added selective download mode to metalink.
  10456. * src/main.cc
  10457. (showUsage): Updated to denote that -S and --select-file options are
  10458. applicable to metalink.
  10459. * src/FileEntry.h
  10460. (operator=): New function.
  10461. (getBasename): New function.
  10462. (getDirname): New function.
  10463. * src/Util.h, src/Util.cc
  10464. (toStream): New function.
  10465. * src/Xml2MetalinkProcessor.cc: Updated.
  10466. Made aria2 work with metalink with directory structure.
  10467. * src/File.h, src/File.cc
  10468. (getBasename): New function.
  10469. (getDirname): New function.
  10470. * src/RequestGroup.h, src/RequestGroup.cc
  10471. (_topDir): New variable.
  10472. (setTopDir): New function.
  10473. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10474. Rewrote HTTP header parsing with stringstream.
  10475. * src/HttpConnection.h, src/HttpConnection.cc
  10476. (HttpRequestEntry): New class.
  10477. (headerBuf): Removed.
  10478. (headerBufLength): Removed.
  10479. (outstandingHttpRequests): Now its element type is
  10480. HttpRequestEntryHandle.
  10481. (findEndOfHeader): Removed.
  10482. (receiveResponse): Rewritten.
  10483. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10484. Updated doc for -j option to notice that it should be used with -i
  10485. option.
  10486. * src/main.cc (showUsage)
  10487. Removed unused classes.
  10488. * src/RequestInfo.h
  10489. (FileInfo): Removed.
  10490. (checksum): Removed.
  10491. (fileInfo): Removed.
  10492. (setChecksum): Removed.
  10493. (getChecksum): Removed.
  10494. (getFileInfo): Removed.
  10495. Use ISO units.
  10496. * src/ConsoleDownloadEngine.cc
  10497. * src/TorrentConsoleDownloadEngine.cc
  10498. * src/Util.cc (abbrevSize)
  10499. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10500. Added the default listening ports to the help message.
  10501. * src/main.cc (showUsage)
  10502. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10503. Reduce the number of calls to gettimeofday to lower CPU load.
  10504. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10505. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10506. * src/Peer.h (calculateUploadSpeed): New function.
  10507. (calculateDownloadSpeed): New function.
  10508. * src/DefaultPeerStorage.cc
  10509. (CalculateStat): Added _now variable.
  10510. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10511. and Peer::calculateUploadSpeed(const struct timeval&)
  10512. Drop connection if no request or piece message is exchanged in
  10513. a certain interval.
  10514. * src/DefaultBtInteractive.h
  10515. (btRuntime): New variable.
  10516. (inactiveCheckPoint): New variable.
  10517. (checkActiveInteraction): New function.
  10518. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10519. request or piece message is received.
  10520. (checkActiveInteraction): New function.
  10521. (doInteractionProcessing): Call checkActiveInteraction.
  10522. Fixed the bug that causes remote Metalink and Torrent files are not
  10523. processed.
  10524. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10525. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10526. Changed format of log file.
  10527. * src/SimpleLogger.cc
  10528. * Release 0.11.0
  10529. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10530. * src/AbstractCommand.cc
  10531. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10532. MSG_MAX_TRY from error to info.
  10533. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10534. * src/message.h
  10535. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10536. (MSG_DOWNLOAD_ABORTED): Added %s.
  10537. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10538. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10539. * src/PeerAbstractCommand.cc
  10540. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10541. * src/Request.h
  10542. (cookieBox): Made ShardHandle.
  10543. * src/RequestGroup.h, src/RequestGroup.cc
  10544. (createNextCommandWithAdj): New function.
  10545. * src/FileAllocationCommand.cc
  10546. (executeInternal): Use createNextCommandWithAdj().
  10547. * src/CheckIntegrityCommand.cc
  10548. (executeInternal): Use createNextCommandWithAdj().
  10549. Added --load-cookies command-option.
  10550. * src/OptionHandlerFactory.cc
  10551. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10552. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10553. Now aria2 can handle cookie's expiration date.
  10554. * src/Cookie.h (expires): Changed its type to time_t.
  10555. * src/main.cc: Added --load-cookies command-line option.
  10556. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10557. * src/Util.h, src/Util.cc (httpGMT): New function.
  10558. * src/Request.cc (Request): Initialize cookieBox using
  10559. CookieBoxFactory.
  10560. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10561. * src/CookieParser.h, src/CookieParser.cc: New class.
  10562. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10563. * src/HttpResponseCommand.cc
  10564. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10565. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10566. download.
  10567. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. Added -j command-line option.
  10569. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10570. * src/main.cc
  10571. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10572. Rewritten using stringstream.
  10573. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10574. Rewritten using stringstream.
  10575. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10576. Make download size shown in MB, KB.
  10577. * src/ConsoleDownloadEngine.h (sendStatistics)
  10578. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10579. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. Accept incoming connections if download rate is low.
  10581. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10582. (_lowestSpeedLimit): New variable.
  10583. (setLowestSpeedLimit): New function.
  10584. (execute): Accept incoming connections if download rate is low.
  10585. MAX_PEERS is ignored in this case.
  10586. Disable PREF_OUT in multiple concurrent download:
  10587. * src/RequestGroup.h, src/RequestGroup.cc
  10588. (setUserDefinedFilename): New function.
  10589. * src/DownloadEngineFactory.cc
  10590. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10591. concurrent download.
  10592. * src/DefaultSegmentManFactory.cc
  10593. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10594. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10596. Added its overloaded method.
  10597. * src/RequestGroup.h
  10598. (_numConcurrentCommand): New variable.
  10599. (setNumConcurrentCommand): New function.
  10600. * src/RequestGroup.cc
  10601. Abort download if same file is being downloaded concurrently.
  10602. * src/RequestGroup.h, src/RequestGroupMan.cc
  10603. (isSameFileBeingDownloaded): New function.
  10604. * src/HttpResponseCommand.cc (executeInternal)
  10605. * src/FtpNegotiateCommand.cc (recvSize)
  10606. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10607. * main.cc: Added help message for -i option.
  10608. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10609. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10610. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10611. * src/MetalinkEntry.h
  10612. (checksum): Changed to ChecksumHandle
  10613. * src/MetalinkRequestInfo.cc
  10614. (checksum): Changed to ChecksumHandle
  10615. * src/File.cc
  10616. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10617. * src/common.h
  10618. (DIR_OPEN_MODE): New definition
  10619. * src/RequestGroup.cc
  10620. (prepareForNextAction): Added an argument.
  10621. * src/message.h
  10622. (MSG_GOOD_CHECKSUM): New definition
  10623. (MSG_BAD_CHECKSUM): New definition
  10624. * src/HttpResponseCommand.cc
  10625. (handleDefaultEncoding): Continue download sequence in new
  10626. non-segmented download.
  10627. * src/FileAllocationEntry.h
  10628. (_nextDownloadCommand): New variable.
  10629. * src/DownloadCommand.cc
  10630. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10631. available.
  10632. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10633. * src/IteratableChecksumValidator.h,
  10634. src/IteratableChecksumValidator.cc: New class.
  10635. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10636. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10637. Change file mode to 666:
  10638. * src/common.h (OPEN_MODE): New definition.
  10639. * src/File.cc
  10640. * src/Util.cc
  10641. * src/Directry.cc
  10642. * src/AbstractDiskWriter.cc
  10643. Change the level of log message "download aborted" to debug:
  10644. * src/PeerAbstractCommand.cc (execute)
  10645. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10646. * src/TrackerWatcherCommand.cc
  10647. (createCommand): Sleep some seconds after request failed.
  10648. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10649. then abort tracker request.
  10650. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. * Added the simultaneous download feature.
  10652. * src/main.cc: Print "Exception caught: " when exception is caught.
  10653. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10654. * src/ActivePeerConnectionCommand.cc
  10655. * src/PeerInteractionCommand.cc
  10656. * src/BtRuntime.h
  10657. (cuidCounter): Removed.
  10658. (getNewCuid): Removed.
  10659. * src/DownloadEngineFactory.cc
  10660. * src/PeerListenCommand.cc
  10661. * src/TrackerUpdateCommand.cc
  10662. * src/PeerInitiateConnectionCommand.cc
  10663. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10664. * src/PeerAbstractCommand.cc
  10665. (onAbort): Call PeerStorage::returnPeer()
  10666. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10667. (incomingPeers): New variable.
  10668. (addIncomingPeer): New function.
  10669. (returnPeer): New function.
  10670. (onErasingPeer): New function.
  10671. (addPeer): push_back -> push_front
  10672. (getActivePeers): Rewritten.
  10673. (calculateStat): Rewritten.
  10674. * src/PeerStorage.h
  10675. (TransferStat::copy): New function.
  10676. (TransferStat::TransferStat): New function.
  10677. (TransferStat::operator=): New function.
  10678. (addIncomingPeer): New function.
  10679. (returnPeer): New function.
  10680. * src/PeerListenCommand.cc
  10681. (execute): Use PeerStorage::addIncomingPeer() instead of
  10682. Peer::addPeer().
  10683. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10684. Connect to a peer actively when download speed is lower than specified
  10685. speed in torrent download:
  10686. * src/ActivePeerConnectionCommand.h: New class.
  10687. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10688. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10689. * src/main.cc: Fixed the bug that prevents download if .netrc
  10690. doesn't exist.
  10691. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10692. To cache resolved hostname:
  10693. * src/AbstractCommand.h, src/AbstractCommand.cc
  10694. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10695. Added dns cache.
  10696. * src/FtpInitiateConnectionCommand.cc
  10697. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10698. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10699. NameResolver working without ares.
  10700. * src/TorrentRequestInfo.cc
  10701. (execute): Don't cache dns in torrent download.
  10702. * src/HttpInitiateConnectionCommand.cc
  10703. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10704. * src/DNSCache.h: New class.
  10705. * src/UrlRequestInfo.cc
  10706. (execute): Use dns cache.
  10707. In http request, suppress port number in http request header if port
  10708. is 80 or 443:
  10709. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10710. request header if port is 80 or 443.
  10711. (createProxyRequest): Allways send port number.
  10712. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10713. To add the command-line option which disables netrc support:
  10714. * src/OptionHandlerFactory.cc
  10715. (createOptionHandlers): Added PREF_NO_NETRC.
  10716. * src/main.cc: Added -n option.
  10717. * src/prefs.h (PREF_NO_NETRC): New definition.
  10718. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10719. V_TRUE.
  10720. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10721. is V_FALSE. This may get configurable in the future release.
  10722. To clear peer's error status by time basis:
  10723. * src/PeerAbstractCommand.cc
  10724. (onAbort): Call Peer::startBadCondition().
  10725. * src/Peer.h, src/Peer.cc
  10726. (error): Removed.
  10727. (_badConditionStartTime): New variable.
  10728. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10729. (startBadCondition): New function.
  10730. (isGood): New function.
  10731. * src/DefaultPeerStorage.cc
  10732. (addPeer): Use Peer::isGood().
  10733. (FindFinePeer): Use Peer::isGood().
  10734. Always include port number in http request header:
  10735. * src/HttpRequest.cc (getHostText): Always include port number in
  10736. http request header.
  10737. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10738. To the ability to read options from a config file:
  10739. * src/main.cc: Command-line parameter validation is delegated to
  10740. OptionHandler class.
  10741. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10742. * src/Option.h, src/Option.cc (clear): New function.
  10743. * src/OptionParser.h, src/OptionParser.cc: New class.
  10744. * src/OptionHandler.h: New class.
  10745. * src/NameMatchOptionHandler.h: New class.
  10746. * src/OptionHandlerImpl.h: New classes.
  10747. * src/prefs.h: '_' -> '-'
  10748. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10749. (FTP_PASV): New definition.
  10750. * src/Util.h, src/Util.cc (getRealSize): New function.
  10751. To disable netrc support if .netrc file does not have correct
  10752. permissions:
  10753. * src/File.h, src/File.cc (mode): New function.
  10754. To prevent confidential information to be logged:
  10755. * src/HttpConnection.h, src/HttpConnection.cc
  10756. (eraseConfidentialInfo): New function.
  10757. (sendRequest): Call eraseConfidentialInfo().
  10758. (sendProxyRequest): Call eraseConfidentialInfo().
  10759. * src/main.cc: Validate permissions of .netrc file.
  10760. To add --user-agent command-line option:
  10761. * src/main.cc: Added new command line option: --user-agent
  10762. * src/prefs.h (PREF_USER_AGENT): New definition.
  10763. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10764. parameter to HttpRequest object.
  10765. * src/AbstractProxyRequestCommand.cc
  10766. (executeInternal): Set user-agent option parameter to HttpRequest
  10767. object.
  10768. Marged the patches from Dan Fandrich.
  10769. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10770. Use filename and size from Metalink file instead of sending HEAD
  10771. request:
  10772. * src/UrlRequestInfo.h
  10773. (_filename): New variable.
  10774. (_totalLength): New variable.
  10775. (setTotalLength): New variable.
  10776. (setFilename): New variable.
  10777. * src/MetalinkRequestInfo.cc
  10778. (execute): Set filename and size to UrlRequestInfo
  10779. * src/UrlRequestInfo.cc
  10780. (execute): Use filename and size from Metalink instead of seding
  10781. HEAD request to servers.
  10782. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10783. To add the ability to resume downloading a partially downloaded file
  10784. which is downloaded from the beginning:
  10785. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10786. takes this role.
  10787. * src/main.cc: Added -c option.
  10788. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10789. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10790. * src/prefs.h (PREF_CONTINUE): New definition.
  10791. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10792. * src/DefaultDiskWriter.cc
  10793. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10794. * src/AbstractDiskWriter.h
  10795. (glowFileAllocator): New variable.
  10796. * src/AbstractDiskWriter.cc
  10797. (openExistingFile): Now preallocate file space from the end of the
  10798. existing file if totalLength argument is specified and grater than 0.
  10799. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10800. to download exists in local, continue the download of the file.
  10801. --allow-overwrite=true is assumed in this context.
  10802. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10803. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10804. Throw exception if --check-integrity=true is specified but chunk
  10805. checksums are not provided:
  10806. * src/UrlRequestInfo.cc
  10807. Do not print URLs to stdout:
  10808. * src/UrlRequestInfo.cc
  10809. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10810. * src/Request.h: Use AuthResolver to get authentication information.
  10811. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10812. set to RequestFactory object.
  10813. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10814. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10815. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10816. create Request object.
  10817. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10818. To integrate Netrc into exsiting classes:
  10819. * src/Request.h
  10820. (_userDefinedAuthConfig): New variable.
  10821. (findNetrcAuthenticator): New function.
  10822. (segment): Removed.
  10823. (setUserDefinedAuthConfig): New function.
  10824. (resolveHttpAuthConfigItem): New function.
  10825. (resolveFtpAuthConfigItem): New function.
  10826. (resolveHttpProxyAuthConfigItem): New function.
  10827. * src/HttpRequest.h
  10828. (authConfig): Removed.
  10829. (proxyAuthConfig): Removed.
  10830. (setAuthConfig): Removed.
  10831. (setProxyAuthConfig): Removed.
  10832. * src/UrlRequest.h
  10833. (getHeadResult): Added a parameter: authConfigHandle
  10834. * src/common.h
  10835. (SingletonHolder.h): New include.
  10836. * src/main.cc
  10837. (Netrc.h): New include.
  10838. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10839. Added initial value of PREF_NETRC_PATH.
  10840. Added the initialization of netrc.
  10841. * src/AuthConfig.h: New class.
  10842. * src/prefs.h
  10843. (PREF_NETRC_PATH): New definition.
  10844. * src/HttpAuthConfig.h: Removed.
  10845. * src/Netrc.cc
  10846. (getRequiredNextToken): New function.
  10847. (skipMacdef): New function.
  10848. (parse): Rewritten.
  10849. * src/Netrc.h
  10850. (getRequiredNextToken): New function.
  10851. (skipMacdef): New function.
  10852. * src/Util.h, src/Util.cc
  10853. (getHomeDir): New function.
  10854. * src/TrackerWatcherComand.cc
  10855. (createRequestCommand): Use AuthConfig.
  10856. * src/FtpConnection.cc
  10857. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10858. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10859. * src/Request.cc
  10860. (findNetrcAuthenticator): New function.
  10861. (resolveHttpAuthConfigItem): New function.
  10862. (resolveFtpAuthConfigItem): New function.
  10863. (resolveHttpProxyAuthConfigItem): New function.
  10864. * src/UrlRequestInfo.cc: Use AuthConfig.
  10865. * src/HttpRequest.cc
  10866. (createRequest): Use authConfig.
  10867. (getProxyAuthString): Use authConfig.
  10868. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10869. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10870. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10871. To reduce overhead to find commands whose socket is either
  10872. readable or writable in the download engine loop:
  10873. * src/Command.h, src/Command.cc
  10874. (STATUS): New enum.
  10875. (status): New variable.
  10876. (statusMatch): New function.
  10877. (setStatusActive): New function.
  10878. (setStatusInactive): New function.
  10879. * src/DownloadEngine.h, src/DownloadEngine.cc
  10880. (executeCommand): New function.
  10881. (run): Simplified.
  10882. (waitData): Call Command::setStatusActive() when command's socket is
  10883. readable or writable.
  10884. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10885. To handle Segment as SegmentHandle:
  10886. * src/AbstractCommand.cc (execute): Rewritten.
  10887. * src/SegmentMan.h: Segment -> SegmentHandle
  10888. Introducded HttpResponse class, HttpRequest class to improve code
  10889. extensiveness and make it clear:
  10890. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10891. HttpResponse class.
  10892. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10893. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10894. * src/HttpConnection.cc: Contruction of http request were moved to
  10895. HttpRequest class.
  10896. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10897. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10898. * src/HttpAuthConfig.h: New class.
  10899. * src/Range.h: New class.
  10900. To make FtpTunnel{Request, Response}Command and
  10901. HttpProxy{Request, Response}Command derived from
  10902. AbstractProxy{Request, Response}Command:
  10903. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10904. Derived from AbstractProxyRequestCommand class.
  10905. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10906. Derived from AbstractProxyResponseCommand class.
  10907. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10908. Derived from AbstractProxyRequestCommand class.
  10909. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10910. Derived from AbstractProxyResponseCommand class.
  10911. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10912. : New class.
  10913. * src/AbstractProxyResponseCommand.h,
  10914. src/AbstractProxyResponseCommand.cc: New class.
  10915. To add netrc support:
  10916. * src/Netrc.h, src/Netrc.cc: New class.
  10917. * src/Util.h, src/Util.cc (split): New function.
  10918. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10919. "Content-Range" header instead of "Range" header.
  10920. * src/HttpHeader.h
  10921. (getStatus): Removed.
  10922. (setStatus): Removed.
  10923. * src/Segment.h
  10924. (getPositionToWrite): New function.
  10925. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10926. * src/HttpHeader.h
  10927. (Range.h): New include.
  10928. (status): New variable.
  10929. (HttpHeader): Initialized status with 0.
  10930. (getStatus): New function.
  10931. (setStatus): New function.
  10932. (getRange): New function.
  10933. (HttpHeaderHandle): New function.
  10934. * src/HttpHeader.cc
  10935. (getRange): New function.
  10936. * src/Request.h
  10937. (RequestWeakHandle): New definition.
  10938. * src/HttpConnection.h
  10939. (HttpConnectionHandle): New type definition.
  10940. * src/HttpConnection.cc
  10941. (receiveResponse): Set HTTP status to headers.
  10942. * src/main.cc
  10943. (showUsage): Fixed typo.
  10944. * src/Segment.h
  10945. (SegmentHandle): New type definition.
  10946. * src/BitfieldMan.h
  10947. (getMissingUnusedLength): New function.
  10948. * src/BitfieldMan.cc
  10949. (getMissingUnusedLength): New function.
  10950. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10951. To fix static initialization order problem:
  10952. * src/BitfieldManFactory.h
  10953. (defaultRandomizer): Removed.
  10954. (factory): New variable.
  10955. (getNewFactory): Removed.
  10956. (getFactoryInstance): New function.
  10957. (setDefaultRandomizer): Rewritten.
  10958. (getDefaultRandomizer): Rewritten.
  10959. * src/BitfieldManFactory.cc
  10960. (defaultRandomizer): Removed.
  10961. (factory): Initialized to 0.
  10962. (BitfieldManFactory): Initialized randomizer to 0.
  10963. * src/DefaultPieceStorage.cc
  10964. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10965. * src/Peer.cc
  10966. (Peer): getNewFactory() -> getFactoryInstance()
  10967. * src/SegmentMan.cc
  10968. (initBitfield): getNewFactory() -> getFactoryInstance()
  10969. * src/Piece.cc
  10970. (Piece): getNewFactory() -> getFactoryInstance()
  10971. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10972. To fix the bug that causes crash on Max OS X:
  10973. * src/SimpleRandomizer.h
  10974. (getInstance): Create new instance if the static variable is null.
  10975. * src/SimpleRandomizer.cc
  10976. (randomizer): Initialized to 0.
  10977. * src/BitfieldManFactory.h
  10978. (getNewFactory): Removed the call to setRandomizer().
  10979. To fix the miscalculation of the range of checksum:
  10980. * src/BitfieldMan.h
  10981. (isBitSetOffsetRange): New function.
  10982. * src/BitfieldMan.cc
  10983. (isBitSetOffsetRange): New function.
  10984. * src/SegmentMan.cc
  10985. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10986. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10987. * Release 0.10.1
  10988. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10989. To lower CPU usage in BitTorrent download when --max-upload-limit
  10990. command-line option specified:
  10991. * src/DefaultBtMessageDispatcher.cc
  10992. (sendMessages): Calculate uploading speed only when current message
  10993. is uploading data and is not sent yet.
  10994. * src/DefaultPeerStorage.h
  10995. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10996. * src/HttpResponseCommand.cc
  10997. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10998. This fixes compile error in Soralis 10.
  10999. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11000. To fix segfault in Metalink download:
  11001. * src/UrlRequestInfo.h
  11002. (filename): Removed.
  11003. (totalLength): Removed.
  11004. (setTotalLength): Removed.
  11005. (setFilename): Removed.
  11006. * src/MetalinkRequestInfo.cc
  11007. (execute): Do not set filename and totalLength to reqInfo.
  11008. Set chunk checksum to reqInfo if it is not null.
  11009. * src/HttpResponseCommand.cc
  11010. (executeInternal): Fixed filename in log.
  11011. (handleDefaultEncoding): Removed the call to initBitfield() and
  11012. markAllPiecesDone().
  11013. (handleOtherEncoding): Added HEAD method handling.
  11014. * src/FtpNegotiateCommand.cc
  11015. (executeInternal): Added SEQ_HEAD_OK handling.
  11016. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11017. return false.
  11018. * src/FtpNegotiateCommand.h
  11019. (SEQ_HEAD_OK): New definition.
  11020. * src/SegmentMan.cc
  11021. (initBitfield): Delete bitfield.
  11022. (isChunkChecksumValidationReady): Fixed the condition.
  11023. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11024. works fine.
  11025. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11026. * src/Xml2MetalinkProcessor.h
  11027. (xpathExists): New function.
  11028. * src/Xml2MetalinkProcessor.cc
  11029. (xpathExists): New function.
  11030. Not to send HEAD request if filename and size are available in Metalink
  11031. file:
  11032. * src/UrlRequestInfo.h
  11033. (filename): New variable.
  11034. (totalLength): New variable.
  11035. (setTotalLength): New function.
  11036. (setFilename): New function.
  11037. * src/MetalinkRequestInfo.cc
  11038. (execute): Set filename and size to UrlRequestInfo.
  11039. * src/MetalinkEntry.cc
  11040. (MetalinkEntry): Initialize size with 0.
  11041. * src/UrlRequestInfo.cc
  11042. (execute): Set filename and size to SegmentMan.
  11043. Not to download rest of the files after selected files are downloaded
  11044. in BitTorrent:
  11045. * src/PieceStorage.h
  11046. (allDownloadFinished): New function.
  11047. * src/DefaultBtAnnounce.cc
  11048. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11049. downloadFinished.
  11050. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11051. * src/DefaultPieceStorage.cc
  11052. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11053. Commented out the call to finishSelectiveDownloadingMode().
  11054. (downloadFinished): Call isFilteredAllBitSet() instead of
  11055. isAllBitSet().
  11056. (allDownloadFinished): New function.
  11057. * src/DefaultBtInteractive.cc
  11058. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11059. downloadFinished().
  11060. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11061. * src/TorrentDownloadEngine.cc
  11062. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11063. * src/BitfieldMan.h
  11064. (isFilteredAllBitSet): New function.
  11065. * src/ShareRatioSeedCriteria.h
  11066. (PieceStorage.h): New include.
  11067. (pieceStorage): New variable.
  11068. (evaluate):
  11069. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11070. * src/BitfieldMan.cc
  11071. (isFilteredAllBitSet): New function.
  11072. (isAllBitSet): Filter is not took into account.
  11073. Rename --force-truncate as --allow-overwrite:
  11074. * src/TorrentRequestInfo.cc
  11075. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11076. * src/main.cc
  11077. (showUsage): --force-truncate -> --allow-overwrite
  11078. * src/message.h
  11079. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11080. * src/prefs.h
  11081. (PREF_FORCE_TRUNCATE): Removed.
  11082. (PREF_ALLOW_OVERWRITE): New definition.
  11083. * src/SegmentMan.cc
  11084. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11085. * src/MetalinkRequestInfo.cc
  11086. (execute): Queueing message are now logged in info level.
  11087. * src/common.h
  11088. (LONG_LONG_MAX): Removed.
  11089. (LONG_LONG_MIN): Removed.
  11090. * src/HttpResponseCommand.cc
  11091. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11092. * src/FtpNegotiateCommand.cc
  11093. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11094. * src/main.cc
  11095. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11096. command-line option.
  11097. (main): Added --check-integriy and --realtime-chunk-checksum
  11098. command-line option.
  11099. --force-truncate -> --allow-overwrite
  11100. Set initial value of --check-integrity option to false.
  11101. Don't show usage when error occurs while persing command-line options.
  11102. Removed deprecated --upload-limit option.
  11103. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11104. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11105. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11106. * src/BtAllowedFastMessage.cc:
  11107. * src/BtBitfieldMessage.cc
  11108. * src/BtCancelMessage.cc
  11109. * src/BtChokeMessage.cc
  11110. * src/BtHaveAllMessage.cc
  11111. * src/BtHaveMessage.cc
  11112. * src/BtHaveNoneMessage.cc
  11113. * src/BtInterestedMessage.cc
  11114. * src/BtNotInterestedMessage.cc
  11115. * src/BtPieceMessage.cc
  11116. * src/BtPortMessage.cc
  11117. * src/BtRejectMessage.cc
  11118. * src/BtRequestMessage.cc
  11119. * src/BtSuggestPieceMessage.cc
  11120. * src/BtUnchokeMessage.cc
  11121. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11122. files are affected.
  11123. * src/ChunkChecksumValidator.cc
  11124. * src/SegmentMan.cc
  11125. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11126. To add chunk checksum validation:
  11127. * src/MetalinkEntry.h
  11128. (MetalinkChunkChecksum.h): New include.
  11129. (chunkChecksum): New variable.
  11130. * src/Request.h
  11131. (method): New variable.
  11132. (setMethod): New function.
  11133. (getMethod): New function.
  11134. (METHOD_GET): New static constant.
  11135. (METHOD_HEAD): New static constant.
  11136. * src/Xml2MetalinkProcessor.h
  11137. (getPieceHash): New function.
  11138. * src/PieceStorage.h
  11139. (markAllPiecesDone): New function.
  11140. (checkIntegrity): New function.
  11141. * src/FileAllocator.h
  11142. (NullFileAllocationMonitor.h): New include.
  11143. (FileAllocator): Initialize fileAllocationMonitor with new
  11144. NullFileAllocationMonitor().
  11145. * src/MultiDiskAdaptor.h
  11146. (messageDigest.h): Remove include.
  11147. (ctx): Removed.
  11148. (hashUpdate): Added ctx.
  11149. (MultiDiskAdaptor): Removed ctx.
  11150. (sha1Sum): Renamed as messageDigest.
  11151. (messageDigest): New function.
  11152. * src/UrlRequestInfo.h
  11153. (HeadResult): New class.
  11154. (digestAlgo): New variable.
  11155. (chunkChecksumLength): New variable.
  11156. (chunkChecksums): New variable.
  11157. (getHeadResult): New function.
  11158. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11159. (setDigestAlgo): New function.
  11160. (setChunkChecksumLength): New function.
  11161. (setChunkChecksums): New function.
  11162. * src/DefaultPieceStorage.cc
  11163. (DiskAdaptorWriter.h): New include.
  11164. (ChunkChecksumValidator.h): New include.
  11165. (markAllPiecesDone): New function.
  11166. (checkIntegrity): New function.
  11167. * src/DefaultBtContext.h
  11168. (getPieceHashes): New function.
  11169. * src/TorrentRequestInfo.cc
  11170. (execute): Try to validate chunk checksum if file already exists and
  11171. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11172. * src/messageDigest.h
  11173. (~MessageDigestContext): Added digestFree().
  11174. * src/MetalinkRequestInfo.cc
  11175. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11176. * src/DiskAdaptor.h
  11177. (messageDigest.h): New include.
  11178. (sha1Sum): Renamed as messageDigest.
  11179. (messageDigest): New function.
  11180. * src/DownloadCommand.h
  11181. (PeerStat.h): New include.
  11182. (maxDownloadSpeedLimit): New variable.
  11183. (startupIdleTime): New variable.
  11184. (lowestDownloadSpeedLimit): New variable.
  11185. (peerStat): New variable.
  11186. (setMaxDownloadSpeedLimit): New function.
  11187. (setStartupIdleTime): New function.
  11188. (setLowestDownloadSPeedLimit): New function.
  11189. * src/BtContext.h
  11190. (getPieceHashes): New function.
  11191. * src/main.cc
  11192. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11193. option to true for testing purpose.
  11194. * src/BtPieceMessage.cc
  11195. (checkPieceHash): Use messageDigest
  11196. * src/DownloadEngine.cc
  11197. (SetDescriptor): Removed.
  11198. (AccumulateActiveCommand): Removed.
  11199. (waitData): Rewritten.
  11200. (updateFdSet): Rewritten.
  11201. * src/MultiDiskAdaptor.cc
  11202. (hashUpdate): Added ctx.
  11203. (sha1Sum): Renamed as messageDigest.
  11204. (messageDigest): New function.
  11205. * src/BitfieldMan.h
  11206. (isBitRangeSet): New function.
  11207. (unsetBitRange): New function.
  11208. * src/ByteArrayDiskWriter.h
  11209. (sha1Sum): Renamed as messageDigest.
  11210. (messageDigest): New function.
  11211. * src/ConsoleDownloadEngine.cc
  11212. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11213. * src/DiskWriter.h
  11214. (messageDigest.h): New include.
  11215. (sha1Sum): Renamed as messageDigest.
  11216. (messageDigest): New function.
  11217. * src/ChunkChecksumValidator.h: New class.
  11218. * src/DiskAdaptorWriter.h: New class.
  11219. * src/prefs.h
  11220. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11221. (PREF_CHECK_INTEGRITY): New definition.
  11222. * src/HttpResponseCommand.cc
  11223. (handleDefaultEncoding): Added method "HEAD" handling.
  11224. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11225. (handleOtherEncoding):
  11226. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11227. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11228. startupIdleTime, lowestDownloadSpeedLimit to command.
  11229. * src/SegmentMan.h
  11230. (getSegmentEntryByIndex): New function.
  11231. (getSegmentEntryByCuid): New function.
  11232. (getSegmentEntryIteratorByCuid): New function.
  11233. (diskWriter): DiskWriter -> DiskWriterHandle
  11234. (pieceHashes): New variable.
  11235. (chunkHashLength): New variable.
  11236. (digestAlgo): New variable.
  11237. (FindPeerStat): Removed.
  11238. (getPeerStat): Rewritten.
  11239. (markAllPiecesDone): New function.
  11240. (checkIntegrity): New function.
  11241. (tryChunkChecksumValidation): New function.
  11242. (isChunkChecksumValidationReady): New function.
  11243. * src/BitfieldMan.cc
  11244. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11245. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11246. blocks to 0.
  11247. (isBitRangeSet): New function.
  11248. (unsetBitRange): New function.
  11249. * src/FtpNegotiateCommand.cc
  11250. (executeInternal): Set maxDownloadSpeedLimit,
  11251. startupIdleTime, lowestDownloadSpeedLimit to command.
  11252. (recvSize): Added method "HEAD" handling.
  11253. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11254. * src/AbstractSingleDiskAdaptor.cc
  11255. (sha1Sum): Renamed as messageDigest.
  11256. (messageDigest): New function.
  11257. * src/AbstractSingleDiskAdaptor.h
  11258. (sha1Sum): Renamed as messageDigest.
  11259. (messageDigest): New function.
  11260. * src/Util.h
  11261. (indexRange): New function.
  11262. * src/MetalinkEntry.cc
  11263. (MetalinkEntry): Initialized chunkChecksum to 0.
  11264. * src/ShaVisitor.cc
  11265. (~ShaVisitor): Removed the call to ctx.digestFree().
  11266. * src/SegmentMan.cc
  11267. (ChunkChecksumValidator.h): New include.
  11268. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11269. to DIGEST_ALGO_SHA1.
  11270. (~SegmentMan): Removed diskWriter.
  11271. (FindSegmentEntryByIndex): Removed.
  11272. (FindSegmentEntryByCuid): Removed.
  11273. (checkoutSegment): Rewritten.
  11274. (findSlowerSegmentEntry): Rewritten.
  11275. (getSegment): Rewritten.
  11276. (updateSegment): Rewritten.
  11277. (completeSegment): Rewritten.
  11278. (markAllPiecesDone): New function.
  11279. (checkIntegrity): New function.
  11280. (isChunkChecksumValidationReady): New function.
  11281. (tryChunkChecksumValidation): New function.
  11282. * src/Xml2MetalinkProcessor.cc
  11283. (getEntry): Get size and set it to entry.
  11284. Get chunk checksum and set it to entry.
  11285. (getPieceHash): New function.
  11286. * src/Util.cc
  11287. (sha1Sum): Removed ctx.digestFree()
  11288. (fileChecksum): Removed ctx.digestFree()
  11289. (indexRange): New function.
  11290. * src/Request.cc
  11291. (METHOD_GET): New variable.
  11292. (METHOD_HEAD): New variable.
  11293. (Request): Added method.
  11294. * src/UrlRequestInfo.cc
  11295. (FatalException.h): New include.
  11296. (message.h): New include.
  11297. (operator<<): Added operator<< for class HeadResult.
  11298. (getHeadResult): New function.
  11299. (execute): Get filename and size in separate download engine.
  11300. * src/ChunkChecksumValidator.cc: New class.
  11301. * src/DownloadCommand.cc:
  11302. (DownloadCommand): Added peerStat.
  11303. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11304. the value from Option.
  11305. The buffer size is now 16KB.
  11306. Use peerStat member instead of getting it from SegmentMan.
  11307. Use startupIdleTime member instead of gettingit from Option.
  11308. Added chunk checksum validation.
  11309. * src/AbstractDiskWriter.cc
  11310. (AbstractDiskWriter): Removed ctx.
  11311. (~AbstractDiskWriter): Removed ctx.digestFree()
  11312. (writeDataInternal): Returns the return value of write.
  11313. (readDataInternal): Returns the return value of read.
  11314. (sha1Sum): Renamed as messageDigest
  11315. (messageDigest): New function.
  11316. * src/AbstractDiwkWriter.h
  11317. (messageDigest.h): Removed include.
  11318. (ctx): Removed.
  11319. (sha1Sum): Renamed as messageDigest
  11320. (messageDigest): New function.
  11321. * src/DefaultPieceStorage.h
  11322. (markAllPiecesDone): New function.
  11323. (checkIntegrity): New function.
  11324. * src/NullFileAllocationMonitor.h: New class.
  11325. * src/MetalinkChunkChecksum.h: New class.
  11326. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11327. To decrease CPU usage in bittorrent download, calculation results in
  11328. BitfieldMan were cached and realtime fetching PeerObject was removed
  11329. with WeakHandle introduced. Option values are set to the objects
  11330. by setter before download begins.
  11331. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11332. * src/DefaultBtRequestFactory.h
  11333. (dispatcher): BtMessageDispatcherHandle ->
  11334. BtMessageDispatcherWeakHandle.
  11335. (messageFactory): New variable.
  11336. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11337. BtMessageDispatcherWeakHandle.
  11338. (setBtMessageFactory): New function.
  11339. * src/DefaultBtMessageDispatcher.cc:
  11340. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11341. from Option.
  11342. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11343. feating the value from Option.
  11344. Use messageFactory member.
  11345. * src/PeerInteractionCommand.cc
  11346. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11347. Add reverse dependencies to factory object.
  11348. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11349. dispatcher.
  11350. Set messageFactory to receiver.
  11351. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11352. btInteractive.
  11353. Set receiver to peerObject.
  11354. Set maxDownloadSpeedLimit to this.
  11355. (executeInternal): Use maxDownloadSpeedLimit member.
  11356. * src/BtChokeMessage.cc
  11357. (doReceivedAction): Use dispatcher, requestFactory member.
  11358. (onSendComplete): Use dispatcher member.
  11359. * src/PeerInteractionCommand.h
  11360. (maxDownloadSpeedLimit): New variable.
  11361. * src/DefaultBtMessageReceiver.h
  11362. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11363. (dispatcher):
  11364. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11365. (messageFactory): New variable.
  11366. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11367. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11368. (setDispatcher):
  11369. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11370. (setBtMessageFactory): New function.
  11371. * src/DefaultBtInteractive.cc
  11372. (initiateHandshake): Use messageFactory member.
  11373. (addBitfieldMessageToQueue): Use messageFactory member.
  11374. (addAllowedFastMessageToQueue): Use messageFactory member.
  11375. (decideChoking): Use messageFactory member.
  11376. (checkHave): Use messageFactory member.
  11377. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11378. (receiveMessages): Use maxDownloadSpeedLimit member.
  11379. (decideInterest): Use messageFactory member.
  11380. * src/BtRequestMessage.cc
  11381. (doReceivedAction): Use messageFactory, dispatcher member.
  11382. (onQueued): Use dispatcher member.
  11383. * src/BtPieceMessage.cc
  11384. (doReceivedAction): Use dispatcher member.
  11385. (send): Use peerConnection member.
  11386. (onWrongPiece): Use requestFactory member.
  11387. (handleChokingEvent): Use messageFactory, dispatcher member.
  11388. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11389. * src/BtMessageDispatcher.h
  11390. (BtMessageDispatcherWeakHandle): New type definition.
  11391. * src/SimpleBtMessage.cc
  11392. (send): Use peerConnection member.
  11393. * src/BtRejectMessage.cc
  11394. (doReceivedAction): Use dispatcher member.
  11395. * src/DefaultBtMessageDispatcher.h
  11396. (Option.h): Removed include.
  11397. (messageFactory): New variable.
  11398. (option): Removed.
  11399. (maxUploadSpeedLimit): New variable.
  11400. (requestTimeout): New variable.
  11401. (DefaultBtMessageDispatcher): Removed option.
  11402. Added maxUploadSpeedLimit, requestTimeout.
  11403. (setOption): Removed.
  11404. (getOption): Removed.
  11405. (setMaxUploadSpeedLimit): New function.
  11406. (setRequestTimeout): New function.
  11407. (setBtMessageFactory): New function.
  11408. * src/DefaultBtInteractive.h
  11409. (btMessageReceiver):
  11410. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11411. (dispatcher):
  11412. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11413. (btRequestFactory):
  11414. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11415. (peerConnection):
  11416. PeerConnectionHandle -> PeerConnectionWeakHandle
  11417. (messageFactory): New variable.
  11418. (option): Removed.
  11419. (keepAliveInterval): New variable.
  11420. (maxDownloadSpeedLimit): New variable.
  11421. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11422. (setBtMessageReceiver):
  11423. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11424. (setDispatcher):
  11425. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11426. (setBtRequestFactory):
  11427. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11428. (setPeerConnection):
  11429. PeerConnectionHandle -> PeerConnectionWeakHandle
  11430. (setOption): Removed.
  11431. (setKeepAliveInterval): New function.
  11432. (setMaxDownloadSpeedLimit): New function.
  11433. (setBtMessageFactory): New function.
  11434. * src/BitfieldMan.h
  11435. (cachedNumMissingBlock): New variable.
  11436. (cachedNumFilteredBlock): New variable.
  11437. (cachedCompletedLength): New variable.
  11438. (cachedFilteredComletedLength): New variable.
  11439. (cachedFilteredTotalLength): New variable.
  11440. (countMissingBlockNow): New function.
  11441. (countFilteredBlockNow): New function.
  11442. (getFilteredTotalLengthNow): New function.
  11443. (getCompletedLengthNow): New function.
  11444. (getFilteredCompletedLengthNow): New function.
  11445. (updateCache): New function.
  11446. * src/AbstractBtMessage.h
  11447. (BtMessageDispatcher.h): New include.
  11448. (PeerConnection.h): New include.
  11449. (BtRequestFactory.h): New include
  11450. (BtMessageFactory.h): New include.
  11451. (dispatcher): New variable.
  11452. (messageFactory): New variable.
  11453. (peerConnection: New variable.
  11454. (setBtMessageDispatcher): New function.
  11455. (setPeerConnection): New function.
  11456. (setBtMessageFactory): New function.
  11457. (setBtRequestFactory): New function.
  11458. * src/DefaultBtMessageFactory.cc
  11459. (setCommonProperty): Set dispatcher, requestFactory, this,
  11460. peerConnection to msg.
  11461. * src/BtRegistry.h
  11462. (BT_MESSAGE_RECEIVER): New macro.
  11463. * src/PeerConnection.h
  11464. (PeerConnectionWeakHandle): New type definition.
  11465. * src/BtMessageFactory.h
  11466. (BtMessageFactoryWeakHandle): New type definition.
  11467. * src/BitfieldMan.cc
  11468. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11469. cachedCompletedLength, cachedFilteredComletedLength,
  11470. cachedFilteredTotalLength.
  11471. Call updateCache().
  11472. (countMissingBlock): Return cachedNumMissingBlock.
  11473. (countMissingBlockNow): New function.
  11474. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11475. (countFilteredBlockNow): New function.
  11476. (setBit): Call updateCache().
  11477. (unsetBit): Call updateCache().
  11478. (setBitfield): Call updateCache().
  11479. (clearAllBit): Call updateCache().
  11480. (setAllBit): Use setBitInternal instead of setBit.
  11481. Call updateCache().
  11482. (addFilter): Call updateCache().
  11483. (enableFilter): Call updateCache().
  11484. (disableFilter): Call updateCache().
  11485. (clearFilter): Call updateCache().
  11486. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11487. (getFilteredTotalLengthNow): New function.
  11488. (getCompletedLength): Return cachedCompletedLength.
  11489. (getCompletedLengthNow): New function.
  11490. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11491. (getFilteredCompletedLengthNow): New function.
  11492. (updateCache): New function.
  11493. * src/BtMessageReceiver.h
  11494. (BtMessageReceiverWeakHandle): New type definition.
  11495. * src/DefaultBtMessageReceiver.cc
  11496. (receiveHandshake): Use messageFactory member.
  11497. (sendHandshake): Use messageFactory member.
  11498. (receiveMessage): Use messageFactory member.
  11499. * src/DefaultBtMessageFactory.h
  11500. (dispatcher): New variable.
  11501. (requestFactory): New variable.
  11502. (peerConnection): New variablle.
  11503. (setBtMessageDispatcher): New function.
  11504. (setBtRequestFactory): New function.
  11505. (setPeerConnection): New function.
  11506. * src/SharedHandle.h
  11507. (RefCount): New class.
  11508. (WeakHandle): New class.
  11509. * src/PeerObject.h
  11510. (BtMessageReceiver.h): New include.
  11511. (PeerObject): Added btMessageReceiver.
  11512. (btMessageReceiver): New variable.
  11513. * src/Util.cc
  11514. (countBit): Simplified.
  11515. * src/BtCancelMessage.cc
  11516. (doReceivedAction): Use dispatcher member.
  11517. * src/BtRequestFactory.h
  11518. (BtRequestFactoryWeakHandle): New type definition.
  11519. * src/PeerStorage.h
  11520. (downloadSpeed): int -> uint32_t
  11521. (uploadSpeed): int -> uint32_t
  11522. (sessionDownloadLength): long long int -> uint64_t
  11523. (sessionUploadLength): long long int -> uint64_t
  11524. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11525. To add RecoverableException, FatalException:
  11526. * src/AbstractCommand.cc
  11527. (onAbort): Exception -> RecoverableException
  11528. * src/PeerAbstractCommand.h
  11529. (RecoverableException.h): New include.
  11530. (onAbort): Exception -> RecoverableException.
  11531. * src/PeerInteractionCommand.cc
  11532. (onAbort): Exception -> RecoverableException.
  11533. * src/PeerAbstractCommand.cc
  11534. (execute): Exception -> RecoverableException.
  11535. (onAbort): Exception -> RecoverableException.
  11536. * src/TorrentRequestInfo.cc
  11537. (execute): Exception -> RecoverableException.
  11538. * src/MetalinkRequestInfo.cc
  11539. (execute): Exception -> RecoverableException.
  11540. * src/MetaFileUtil.cc: RecoverableException.
  11541. * src/AbstractCommand.h
  11542. (onAbort): Exception -> RecoverableException.
  11543. * src/DlRetryEx.h: Exception -> RecoverableException.
  11544. * src/DlAbortEx.h: Exception -> RecoverableException.
  11545. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11546. * src/Util.cc: Exception -> RecoverableException.
  11547. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11548. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11549. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11550. To make ID static const int
  11551. * src/BtInterestedMessage.h
  11552. (ID_t): Removed.
  11553. (ID): New variable.
  11554. (getId): Made non-const.
  11555. * src/BtPieceMessage.h
  11556. (ID_t): Removed.
  11557. (ID): New variable.
  11558. (getId): Made non-const.
  11559. * src/BtChokeMessage.h
  11560. (ID_t): Removed.
  11561. (ID): New variable.
  11562. (getId): Made non-const.
  11563. * src/BtHaveAllMessage.h
  11564. (ID_t): Removed.
  11565. (ID): New variable.
  11566. (getId): Made non-const.
  11567. * src/BtKeepAliveMessage.h
  11568. (ID_t): Removed.
  11569. (ID): New variable.
  11570. (getId): Made non-const.
  11571. * src/BtHandshakeMessage.h
  11572. (ID): New variable.
  11573. (getId): Made non-const.
  11574. * src/BtSuggestPieceMessage.h
  11575. (ID_t): Removed.
  11576. (ID): New variable.
  11577. (getId): Made non-const.
  11578. * src/BtPortMessage.h
  11579. (ID_t): Removed.
  11580. (ID): New variable.
  11581. (getId): Made non-const.
  11582. * src/AbstractBtMessage.h
  11583. (id): Removed.
  11584. (AbstractBtMessage): Removed id.
  11585. (getId): Removed.
  11586. * src/BtHaveMessage.h
  11587. (ID_t): Removed.
  11588. (ID): New variable.
  11589. (getId): Made non-const.
  11590. * src/BtAllowedFastMessage.h
  11591. (ID_t): Removed.
  11592. (ID): New variable.
  11593. (getId): Made non-const.
  11594. * src/BtCancelMessage.h
  11595. (ID_t): Removed.
  11596. (ID): New variable.
  11597. (getId): Made non-const.
  11598. * src/BtNotInterestedMessage.h
  11599. (ID_t): Removed.
  11600. (ID): New variable.
  11601. (getId): Made non-const.
  11602. * src/BtChokeMessage.h
  11603. (ID_t): Removed.
  11604. (ID): New variable.
  11605. (getId): Made non-const.
  11606. * src/BtRejectMessage.h
  11607. (ID_t): Removed.
  11608. (ID): New variable.
  11609. (getId): Made non-const.
  11610. * src/BtBitfieldMessage.h
  11611. (ID_t): Removed.
  11612. (ID): New variable.
  11613. (getId): Made non-const.
  11614. * src/BtUnchokeMessage.h
  11615. (ID_t): Removed.
  11616. (ID): New variable.
  11617. (getId): Made non-const.
  11618. * src/BtRequestMessage.h
  11619. (ID_t): Removed.
  11620. (ID): New variable.
  11621. (getId): Made non-const.
  11622. * src/BtHaveMessage.h
  11623. (ID_t): Removed.
  11624. (ID): New variable.
  11625. (getId): Made non-const.
  11626. To add --force-truncate command-line option and a check whether
  11627. the file already exists:
  11628. * src/DirectDiskAdaptor.h
  11629. (getFilePath): Made virtual public.
  11630. * src/MultiDiskAdaptor.h
  11631. (File.h): New include.
  11632. (DiskWriterEntry::fileEntry): Made private.
  11633. (DiskWriterEntry::fileExists): New function.
  11634. (DiskWriterEntry::getFileEntry): New function.
  11635. (fileExists): New function.
  11636. (getFilePath): New function.
  11637. * src/TorrentRequestInfo.cc
  11638. (FatalException.h): New include.
  11639. (message.h): New include.
  11640. (RecoverableException.h): New include.
  11641. (execute): Added a check whether file is already exists or not.
  11642. * src/DiskAdaptor.h
  11643. (fileExists): New function.
  11644. (getFilePath): New function.
  11645. * src/main.cc
  11646. (showUsage): Added an explanation of --force-truncate command-line
  11647. option.
  11648. (main): Added --force-truncate command-line option.
  11649. * src/Exception.h
  11650. (setMsg): buf[256] -> buf[1024]
  11651. * src/CopyDiskWriter.h
  11652. (getFilePath): Made public virtual.
  11653. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11654. (fileExists): New function.
  11655. * src/DownloadEngineFactory.cc
  11656. (newTorrentConsoleEngine): Don't open file here.
  11657. * src/message.h
  11658. (EX_FILE_ALREADY_EXISTS): New definition.
  11659. * src/prefs.h
  11660. (PREF_FOECE_TRUNCATE): New definition.
  11661. * src/HttpResponseCommand.cc
  11662. (handleDefaultEncoding): Added a check whether the file already exists.
  11663. * src/SegmentMan.h
  11664. (fileExists): New function.
  11665. (shouldCancelDownloadForSafety): New function.
  11666. * src/FtpNegotiateCommand.cc
  11667. (recvSize): Added a check whether the file already exists.
  11668. * src/AbstractSingleDiskAdaptor.cc
  11669. (File.h): New include.
  11670. (fileExists): New function.
  11671. * src/AbstractSingleDiskAdaptor.h
  11672. (getFilePath): Removed.
  11673. (fileExists): New function.
  11674. * src/SegmentMan.cc
  11675. (fileExists): New function.
  11676. (shouldCancelDownloadForSafety): New function.
  11677. To fix regression bug in torrent downloading:
  11678. * src/DefaultBtRequestFactory.cc
  11679. (doChokedAction): New function.
  11680. * src/DefaultBtRequestFactory.h
  11681. (doChokedAction): New function.
  11682. * src/DefaultBtMessageDispatcher.cc
  11683. (doChokedAction): Do not delete request if its target is in allowed
  11684. fast set.
  11685. * src/DefaultBtInteractive.cc
  11686. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11687. (sendKeepAlive): Send keep alive message even if the outgoing message
  11688. queue is not empty.
  11689. (decideInterest): Simplified the code.
  11690. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11691. it is already called when BtChokeMessage is received from a peer.
  11692. * src/BtRequestFactory.h
  11693. (doChokedAction): New function.
  11694. To clean up code:
  11695. * src/PeerInteractionCommand.h
  11696. (executeInternal): Added virtual keyword explicitly.
  11697. (prepareForRetry): Added virtual keyword explicitly.
  11698. (prepareForNextPeer): Added virtual keyword explicitly.
  11699. (onAbort): Added virtual keyword explicitly.
  11700. * src/RequestSlot.cc
  11701. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11702. * src/BtPieceMessage.cc
  11703. (doReceivedAction): Added a debug log of piece's bitfield.
  11704. * src/Piece.h
  11705. (getBitfieldLength): New function.
  11706. * src/ByteArrayDiskWriter.cc
  11707. (clear): Added buf = 0 to avoid double free corruption.
  11708. * src/FileAllocator.cc
  11709. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11710. Added cp.reset().
  11711. * src/BitfieldMan.h
  11712. (operator=): Rewritten.
  11713. * src/BitfieldMan.cc
  11714. (BitfieldMan): Initialized bitfield, useBitfield.
  11715. * src/PeerConnection.cc
  11716. (receiveMessage): Added a call to socket->readable() after getting
  11717. message length to avoid possible EOF.
  11718. * src/Util.cc
  11719. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11720. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11721. To add an ability to pre-allocate file space:
  11722. * src/DirectDiskAdaptor.h: Rewritten.
  11723. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11724. * src/MultiDiskAdaptor.h: Rewritten.
  11725. * src/DefaultPieceStorage.cc
  11726. (MultiDiskWriter.h): Removed include.
  11727. (PreAllocationDiskWriter.h): Removed include.
  11728. (FileAllocationMonitor.h): New include.
  11729. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11730. (initStorage): Rewritten.
  11731. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11732. * src/FileAllocator.h: New class.
  11733. * src/FileAllocator.cc: New class.
  11734. * src/FileAllocationMonitor.h: New class.
  11735. * src/FileAllocationMonitor.cc: New class.
  11736. * src/ConsoleFileAllocationMonitor.h: New class.
  11737. * src/ConsoleFileAllocationMonitor.cc: New class.
  11738. * src/AbstractSingleDiskAdaptor.h: New class.
  11739. * src/AbstractSingleDiskAdaptor.cc: New class.
  11740. * src/DiskAdaptor.h
  11741. (Directory.h): Removed include.
  11742. (DiskWriter.h): Removed include.
  11743. (FileEntry.h): Removed include.
  11744. (diskWriter): Removed.
  11745. (DiskAdaptor): Removed diskWriter.
  11746. (openFile): Made pure virtual.
  11747. (closeFile): Made pure virtual.
  11748. (openExistingFile): Made pure virtual.
  11749. (initAndOpenFile): Made pure virtual.
  11750. (writeData): Made pure virtual.
  11751. (readData): Made pure virtual.
  11752. (sha1Sum): Made pure virtual.
  11753. (getStoreDir): Returns const reference of storeDir.
  11754. (DiskAdaptorHandle): New type definition.
  11755. * src/main.cc
  11756. (ConsoleFileAllocationMonitor.h): New include.
  11757. (showUsage): Added default value description of -s option.
  11758. Added the description of --file-allocation option.
  11759. (main): Set default value of --file-allocation option to 'none'.
  11760. Added --file-allocation command-line option.
  11761. Setup FileAllocationMonitorFactory.
  11762. * src/FtpInitiateConnectionCommand.cc
  11763. (executeInternal): Removed diskWriter related processing, which was
  11764. moved to FtpNegotiationCommand.cc.
  11765. * src/DirectDiskAdaptor.cc
  11766. (getFilePath): Made non-const.
  11767. * src/CopyDiskAdaptor.h
  11768. (DiskAdaptor.h): Removed include.
  11769. (DiskWriter.h): Removed include.
  11770. (AbstractSingleDiskAdaptor.h): New include.
  11771. (getFilePath): Made non-const. Added virtual keyword.
  11772. (CopyDiskAdaptor): Removed diskWriter.
  11773. (getTempFile): Returns const reference.
  11774. (CopyDiskAdaptorHandle): New type definition.
  11775. * src/ByteArrayDiskWriter.cc
  11776. (clear): Simplified.
  11777. (initAndOpenFile): Rewritten.
  11778. (openFile): Call initAndOpenFile()
  11779. * src/MultiDiskAdaptor.cc: Rewritten.
  11780. * src/DownloadEngineFactory.cc
  11781. (FileAllocator.h): New include.
  11782. (FileAllocationMonitor.h): New include.
  11783. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11784. create DefaultDiskWriter with file allocator.
  11785. * src/DiskWriter.h
  11786. (initAndOpenFile): Added totalLength argument.
  11787. (openFile): Added totalLength argument.
  11788. * src/prefs.h
  11789. (PREF_FILE_ALLOCATION): New definition.
  11790. (V_PREALLOC): New definition.
  11791. (V_NONE): New definition.
  11792. * src/HttpResponseCommand.cc
  11793. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11794. size.
  11795. * src/FtpNegotiateCommand.cc
  11796. (Util.h): New include.
  11797. (recvSize): Open file here.
  11798. * src/Util.h
  11799. (ullitos): New function.
  11800. * src/CopyDiskWriter.h
  11801. (getFilePath): Made non-const.
  11802. * src/DefaultDiskWriter.h
  11803. (Option.h): New include.
  11804. (totalLength): Removed.
  11805. (DefaultDiskWriter): Removed totalLength.
  11806. (initAndOpenFile): Added totalLength argument.
  11807. (DefaultDiskWriterHandle): New type definition.
  11808. (createNewDiskWriter): New function.
  11809. * src/Util.cc
  11810. (ullitos): New function.
  11811. * src/DefaultDiskWriter.cc
  11812. (message.h): New include.
  11813. (FileAllocator.h): New include.
  11814. (prefs.h): New include.
  11815. (Util.h): New include.
  11816. (DefaultDiskWriter): Removed totalLength.
  11817. (initAndOpenFile): Added file allocation.
  11818. (createNewDiskWriter): New function. Just for temporary solution.
  11819. It will be rewritten later.
  11820. * src/DiskAdaptor.cc
  11821. (DiskAdaptor): Removed diskWriter.
  11822. * src/AbstractDiskWriter.cc
  11823. (LogFactory.h): New include.
  11824. (AbstractDiskWriter): Added fileAllocator, logger.
  11825. (openFile): Added totalLength argument.
  11826. * src/AbstractDiskWriter.h
  11827. (FileAllocator.h): New include.
  11828. (Logger.h): New include.
  11829. (fileAllocator): New variable.
  11830. (logger): New variable.
  11831. (openFile): Added totalLength argument. Added virtual keyword
  11832. explicitly.
  11833. (openExistingFile): Added totalLength argument. Added virtual keyword
  11834. explicitly.
  11835. (closeFile): Added virtual keyword explicitly.
  11836. (sha1Sum): Added virtual keyword explicitly.
  11837. (writeData): Added virtual keyword explicitly.
  11838. (readData): Added virtual keyword explicitly.
  11839. (setFileAllocator): New function.
  11840. * src/DefaultPieceStorage.h
  11841. (FileAllocator.h): New include.
  11842. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11843. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11844. * src/FileProgressMonitor.h: New class.
  11845. To compile aria2 on PC-BSD:
  11846. * src/DefaultBtContext.cc
  11847. (libgen.h): New include.
  11848. To fix memory leak:
  11849. * src/Exception.h
  11850. (~Exception): Delete cause. Fixed memory leak.
  11851. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11852. Rewritten a portion of bittorrent implementation:
  11853. * src/BtMessageValidator.h: New class.
  11854. * src/BtBitfieldMessageValidator.h: New class.
  11855. * src/BtHandshakeMessageValidator.h: New class.
  11856. * src/BtRequestMessageValidator.h: New class.
  11857. * src/BtSuggestPieceMessageValidator.h: New class.
  11858. * src/BtAllowedFastMessageValidator.h: New class.
  11859. * src/BtRejectMessageValidator.h: New class.
  11860. * src/BtCancelMessageValidator.h: New class.
  11861. * src/BtPieceMessageValidator.h: New class.
  11862. * src/BtHaveMessageValidator.h: New class.
  11863. * src/BtEventListener.h: New class.
  11864. * src/AbstractBtEventListener.h: New class.
  11865. * src/BtEvent.h: New class.
  11866. * src/BtChokingEvent.h: New class.
  11867. * src/BtChokedEvent.h: New class.
  11868. * src/BtCancelSendingPieceEvent.h: New class.
  11869. * src/BtAbortOutstandingRequestEvent.h: New class.
  11870. * src/Randomizer.h: New class.
  11871. * src/SimpleRandomizer.h: New class.
  11872. * src/BtMessage.h: New class.
  11873. * src/AbstractBtMessage.h: New class.
  11874. * src/SimpleBtMessage.h: New class.
  11875. * src/BtHaveMessage.h: New class.
  11876. * src/BtInterestedMessage.h: New class.
  11877. * src/BtAllowedFastMessage.h: New class.
  11878. * src/BtUnchokeMessage.h: New class.
  11879. * src/BtCancelMessage.h: New class.
  11880. * src/BtNotInterestedMessage.h: New class.
  11881. * src/BtChokeMessage.h: New class.
  11882. * src/BtHaveNoneMessage.h: New class.
  11883. * src/BtHandshakeMessage.h: New class.
  11884. * src/BtSuggestPieceMessage.h: New class.
  11885. * src/BtHaveMessage.h: New class.
  11886. * src/BtPieceMessage.h: New class.
  11887. * src/BtHaveAllMessage.h: New class.
  11888. * src/BtKeepAliveMessage.h: New class.
  11889. * src/BtPortMessage.h: New class.
  11890. * src/BtRejectMessage.h: New class.
  11891. * src/BtBitfieldMessage.h: New class.
  11892. * src/BtRequestMessage.h: New class.
  11893. * src/DefaultBtRequestFactory.h: New class.
  11894. * src/DefaultBtMessageReceiver.h: New class.
  11895. * src/BtInteractive.h: New class.
  11896. * src/BtMessageDispatcher.h: New class.
  11897. * src/DefaultBtMessageDispatcher.h: New class.
  11898. * src/DefaultBtInteractive.h: New class.
  11899. * src/BitfieldManFactory.h: New class.
  11900. * src/HandleRegistry.h: New class.
  11901. * src/BtMessageFactory.h: New class.
  11902. * src/BtMessageReceiver.h: New class.
  11903. * src/DefaultBtMessageFactory.h: New class.
  11904. * src/PeerObject.h: New class.
  11905. * src/BtRequestFactory.h: New class.
  11906. * src/SuggestPieceMessage.h: Removed.
  11907. * src/PortMessage.h: Removed.
  11908. * src/SuggestPieceMessage.h: Removed.
  11909. * src/KeepAliveMessage.h: Removed.
  11910. * src/HandshakeMessage.h: Removed.
  11911. * src/PeerInteraction.h: Removed.
  11912. * src/UnchokeMessage.h: Removed.
  11913. * src/PieceMessage.h: Removed.
  11914. * src/RequestMessage.h: Removed.
  11915. * src/InterestedMessage.h: Removed.
  11916. * src/HaveMessage.h: Removed.
  11917. * src/CancelMessage.h: Removed.
  11918. * src/RejectMessage.h: Removed.
  11919. * src/AllowedFastMessage.h: Removed.
  11920. * src/HaveNoneMessage.h: Removed.
  11921. * src/SimplePeerMessage.h: Removed.
  11922. * src/HaveAllMessage.h: Removed.
  11923. * src/BitfieldMessage.h: Removed.
  11924. * src/PeerMessageFactory.h: Removed.
  11925. * src/NotInterestedMessage.h: Removed.
  11926. * src/ChokeMessage.h: Removed.
  11927. * src/PeerMessage.h: Removed.
  11928. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11929. To know root cause of exception:
  11930. * src/Exception.h
  11931. (cause): New variable.
  11932. (Exception): Added a parameter.
  11933. (getMsg): Return const reference to msg.
  11934. (getCause): New function.
  11935. * src/DlRetryEx.h
  11936. (DlRetryEx): Added a parameter 'cause'.
  11937. Added an overloaded constructor.
  11938. (DlAbortEx): Added a parameter 'cause'.
  11939. Added an overloaded constructor.
  11940. * src/SimpleLogger.cc
  11941. (writeLog): Log nested exception messages recursively.
  11942. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11943. * src/DefaultBtProgressInfoFile.cc
  11944. (load): Fixed memory leak when the infohash doesn't match.
  11945. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11946. * src/DefaultPeerStorage.cc
  11947. (calculateStat): Simplified the code by combining 2 loops into 1.
  11948. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11949. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11950. for BitTorrent download:
  11951. * src/PeerAbstractCommand.cc
  11952. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11953. * src/main.cc:
  11954. (timeoutSpecified): Removed.
  11955. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11956. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11957. * src/TorrentRequestInfo.cc
  11958. (timeoutSpecified): Removed.
  11959. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11960. timeout value.
  11961. * src/prefs.h
  11962. (PREF_BT_TIMEOUT): New definition.
  11963. Delete unused variables:
  11964. * src/TorrentRequestInfo.cc
  11965. (requestInfo): Removed.
  11966. Move setSignalHander to Util::setGlobalSignalHandler:
  11967. * src/TorrentRequestInfo.cc:
  11968. setSignalHander -> Util::setGlobalSignalHandler
  11969. * src/main.cc
  11970. (setSignalHander): Removed.
  11971. (main): setSignalHander -> Util::setGlobalSignalHandler
  11972. * src/Util.h
  11973. (setGlobalSignalHandler): New function.
  11974. * src/Util.cc
  11975. (setGlobalSignalHandler): New function.
  11976. * src/UrlRequestInfo.cc:
  11977. setSignalHander -> Util::setGlobalSignalHandler
  11978. Reset peer status in order to exit gracefully:
  11979. * src/PeerAbstractCommand.cc
  11980. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11981. To fix the bug that causes the number of bytes uploaded is not saved
  11982. to .aria2 file:
  11983. * src/DefaultPeerStorage.h
  11984. (removedPeerSessionDownloadLength): New variable.
  11985. (removedPeerSessionUploadLength): New variable.
  11986. * src/DefaultPeerStorage.cc
  11987. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11988. removedPeerSessionUploadLength(0).
  11989. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11990. through all peers, and then add removedPeerSessionDownloadLength(
  11991. removedPeerSessionUploadLength) to it.
  11992. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11993. (to) the peer to removedPeerSessionDownloadLength
  11994. (removedPeerSessionUploadLength).
  11995. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11996. To add Metalink location option:
  11997. * src/MetalinkRequestInfo.cc
  11998. (execute): Call MetalinkEntry::setLocationPreference()
  11999. * src/main.cc
  12000. (showUsage): Added the help message for --metalink-location option.
  12001. (main): Added --metalink-location option.
  12002. * src/prefs.h
  12003. (PREF_METALINK_LOCATION): New definition.
  12004. * src/MetalinkEntry.cc
  12005. (AddLocationPreference): New function object.
  12006. (setLocationPreference): New function.
  12007. * src/Xml2MetalinkProcessor.cc
  12008. (getResource): Set location attribute to MetalinkResource
  12009. To show URLs to download
  12010. * src/UrlRequestInfo.h
  12011. (printUrls): New function.
  12012. To add multiple <file> Metalink support:
  12013. * src/MetalinkEntry.h
  12014. (MetalinkResources): Removed.
  12015. (setLocationPreference): New function.
  12016. (MetalinkEntryHandle): New type definition.
  12017. (MetalinkEntries): New type definition.
  12018. * src/Xml2MetalinkProcessor.h
  12019. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12020. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12021. (parseFile): Metalinker* -> MetalinkerHandle
  12022. * src/UrlRequestInfo.h
  12023. (execute): RequestInfo* -> RequestInfos
  12024. * src/MetalinkRequestInfo.cc
  12025. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12026. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12027. (execute): RequestInfo* -> RequestInfos
  12028. Added multiple <file> support. Print filename when it is queued.
  12029. * src/MetalinkRequestInfo.h
  12030. (execute): RequestInfo* -> RequestInfos
  12031. (getDownloadEngine): Removed.
  12032. * src/RequestInfo.h
  12033. (RequestInfoHandle): New type definition.
  12034. (RequestInfos): New type definition.
  12035. (execute): RequestInfo* -> RequestInfos
  12036. (getDownloadEngine): Removed.
  12037. * src/MetalinkResource.h
  12038. (MetalinkResourceHandle): New type definition.
  12039. (MetalinkResources): New type definition.
  12040. * src/MetalinkEntry.cc
  12041. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12042. because the element is now of type MetalinkResourceHandle.
  12043. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12044. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12045. (dropUnsupportedResource): Removed the deletion of the elements of
  12046. resources because the element is now of type MetalinkResourceHandle.
  12047. * src/Xml2MetalinkProcessor.cc
  12048. (parseFile): Metalinker* -> MetalinkerHandle
  12049. MetalinkEntry* -> MetalinkEntryHandle
  12050. Removed try-catch block.
  12051. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12052. MetalinkResource* -> MetalinkResourceHandle
  12053. Removed try-catch block.
  12054. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12055. Free result by using xmlXPathFreeObject()
  12056. * src/Metalinker.cc
  12057. (~Metalinker): Removed the deletion of entries.
  12058. MetalinkEntry* -> MetalinkEntryHandle
  12059. (queryEntry): Add multiple <file> Metalink support.
  12060. * src/Metalinker.h
  12061. (MetalinkEntries): Removed.
  12062. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12063. * src/MetalinkProcessor.h
  12064. (parseFile): Metalinker* -> MetalinkerHandle
  12065. Bug fixes:
  12066. * src/PeerChokeCommand.cc
  12067. (execute): cat01->cat02
  12068. * src/DefaultPieceStorage.cc
  12069. (DefaultPieceStorage): Added diskAdaptor(0)
  12070. * src/TrackerWatcherComand.cc:
  12071. (execute): Use btAnnounce->noMoreAnnounce()
  12072. to determin whether the function returns true or not.
  12073. * src/TrackerUpdateCommand.cc:
  12074. (execute): Use btAnnounce->noMoreAnnounce()
  12075. to determin whether the function returns true or not.
  12076. * src/FtpConnection.cc
  12077. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12078. This is the fix of the busy loop bug.
  12079. * src/DownloadCommand.cc
  12080. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12081. cached PeerStat.
  12082. The value of "name" entry in torrent file is now set by
  12083. *DiskAdaptor::setTopDir(...) methods.
  12084. * src/MultiDiskAdaptor.h
  12085. (topDir): New variable.
  12086. (setTopDir): New function.
  12087. (getTopDir): New function.
  12088. * src/MultiDiskAdaptor.cc
  12089. (getFilePath): Concat storDir, "/" and topDir.
  12090. (mkdir): Use getFilePath() to get the directory path for output.
  12091. * src/DefaultPieceStorage.cc
  12092. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12093. CopyDiskAdaptor.
  12094. * src/CopyDiskAdaptor.h
  12095. (topDir): New variable.
  12096. (setTopDir): New function.
  12097. (getTopDir): New function.
  12098. * src/CopyDiskAdaptor.cc
  12099. (fixFilename): Updated.
  12100. Misc
  12101. * src/UrlRequestInfo.h
  12102. (e): Removed.
  12103. (UrlRequestInfo): Removed e.
  12104. (getDownloadEngine): Removed.
  12105. * src/UrlRequestInfo.cc
  12106. (handler): Rewritten.
  12107. (printUrls): New function.
  12108. (execute): Call printUrls().
  12109. * src/HandshakeMessage.cc
  12110. (check): peerinteraction->getBtContext() -> btContext
  12111. * src/PeerInteraction.h
  12112. (getBtContext): Removed.
  12113. * src/TorrentRequestInfo.h
  12114. (execute): RequestInfo* -> RequestInfos
  12115. (getDownloadEngine): Removed.
  12116. * src/TorrentRequestInfo.cc
  12117. (haltRequested): Removed.
  12118. (btHaltRequested): New variable.
  12119. (torrentHandler): haltRequested -> btHaltRequested
  12120. (execute): RequestInfo* -> RequestInfos
  12121. * src/TorrentConsoleDownloadEngine.cc
  12122. (afterEachIteration): haltRequested -> btHaltRequested.
  12123. * src/ConsoleDownloadEngine.h
  12124. (initStatistics): Added virtual.
  12125. (calculateStatistics): Added virtual.
  12126. (onEndOfRun): Added virtual.
  12127. (afterEachIteration): Added virtual.
  12128. * src/ConsoleDownloadEngine.cc
  12129. (haltRequested): New variable.
  12130. (afterEachIteration): New function.
  12131. * src/main.cc
  12132. (requestInfo): Removed.
  12133. * src/SegmentMan.cc
  12134. (findSlowerSegmentEntry): Refactored.
  12135. * Release 0.9.0
  12136. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12137. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12138. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12139. * src/TorrentMan.h: Removed.
  12140. * src/TorrentMan.cc: Removed.
  12141. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12142. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12143. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12144. * src/PeerAbstractCommand.cc: Use btRuntime.
  12145. * src/BtContextAwareCommand.h: New class.
  12146. * src/FileEntry.h: Added accessor methods for following variables.
  12147. (path): Made private.
  12148. (length): Made private.
  12149. (offset): Made private.
  12150. (extracted): Made private.
  12151. (requested): Made private.
  12152. (FileEntries): New definition.
  12153. (FileEntryHandle): New definition.
  12154. * src/FileEntry.cc: New file.
  12155. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12156. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12157. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12158. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12159. * src/PieceStorage.h: New file.
  12160. * src/PeerInteractionCommand.h: Use btContext.
  12161. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12162. btRuntime.
  12163. * src/DefaultBtProgressInfoFile.h: New file.
  12164. * src/DefaultBtProgressInfoFile.cc: New file.
  12165. * src/File.cc
  12166. (Util.h): New include.
  12167. (mkdirs): New function.
  12168. * src/MultiDiskAdaptor.h
  12169. (mkdir): New function.
  12170. * src/PeerListProcessor.h
  12171. (Peers): Removed.
  12172. * src/PeerInteraction.h
  12173. (torrentMan): Removed.
  12174. (btContext): New variable.
  12175. (peerStorage): New variable.
  12176. (pieceStorage): New variable.
  12177. (btAnnounce): New variable.
  12178. (getTorrentMan): Removed.
  12179. (getBtContext): New function.
  12180. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12181. btAnnounce.
  12182. * src/HandshakeMessage.h
  12183. (TorrentMan.h): Removed.
  12184. * src/HandshakeMessage.cc: Use btContext.
  12185. * src/DefaultBtAnnounce.cc: New file.
  12186. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12187. * src/DefaultPieceStorage.cc: New file.
  12188. * src/DefaultBtContext.h: New file.
  12189. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12190. Use the accessor methods of FileEntry.
  12191. * src/CookieBox.cc: Updated to use Util::slice().
  12192. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12193. * src/common.h (SharedHandle.h): New include.
  12194. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12195. pieceStorage.
  12196. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12197. * src/DiskAdaptor.h
  12198. (topDir): Removed.
  12199. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12200. (setTopDir): Removed.
  12201. (getTopDir): Removed.
  12202. * src/BtContext.h: New file.
  12203. * src/DefaultPeerStorage.h: New file.
  12204. * src/PieceMessage.h (TorrentMan.h): Removed.
  12205. * src/RequestMessage.h (TorrentMan.h): Removed.
  12206. * src/TorrentDownloadEngine.h
  12207. (uploadLength): New variable.
  12208. (btContext): New variable.
  12209. (btRuntime): New variable.
  12210. (pieceStorage): New variable.
  12211. (peerStorage): New variable.
  12212. (btAnnounce): New variable.
  12213. (btProgressInfoFile): New variable.
  12214. (torrentMan): Removed.
  12215. (setBtContext): New function.
  12216. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12217. peerStorage, btAnnounce, btProgressInfoFile.
  12218. * src/Piece.h
  12219. (toString): New function.
  12220. (Pieces): New type definition.
  12221. * src/Peer.h
  12222. (active): New variable.
  12223. (Peer): Added active.
  12224. (activate): Set active to true.
  12225. (deactivate): Set active to false.
  12226. (isActive): New function.
  12227. (Peers): New type definition.
  12228. * src/DirectDiskAdaptor.cc
  12229. (getFilePath): Use the accessor methods of FileEntry.
  12230. * src/TorrentConsoleDownloadEngine.h
  12231. (afterEachIteration): New function.
  12232. * src/TorrentConsoleDownloadEngine.cc
  12233. (haltRequested): New variable.
  12234. (sendStatistics): Use pieceStorage, btRuntime.
  12235. (afterEachIteration): New function.
  12236. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12237. * src/Directry.h
  12238. (Directory): New function.
  12239. (DirectoryHandle): New type definition.
  12240. * src/BtProgressInfoFile.h: New file.
  12241. * src/RequestMessage.cc: Use pieceStorage.
  12242. * src/BtRuntime.h: New file.
  12243. * src/DefaultBtContext.cc: New file.
  12244. * src/BitfieldMan.h
  12245. (getCompletedLength): New function(private).
  12246. (getCompletedLength): New function.
  12247. (getFilteredCompletedLength): New function.
  12248. * src/BitfieldMan.h
  12249. (getCompletedLength): New function(private).
  12250. (getCompletedLength): New function.
  12251. (getFilteredCompletedLength): New function.
  12252. * src/MultiDiskAdaptor.cc
  12253. (mkdir): New function.
  12254. (openFile): Call mkdir().
  12255. (initAndOpenFile): Call mkdir().
  12256. * src/CancelMessage.h
  12257. (TorrentMan.h): Removed.
  12258. * src/RejectMessage.h
  12259. (TorrentMan.h): Removed.
  12260. * src/DownloadEngineFactory.cc
  12261. (DefaultPieceStorage.h): New include.
  12262. (DefaultPeerStorage.h): New include.
  12263. (DefaultBtAnnounce.h): New include.
  12264. (DefaultBtProgressInfoFile.h): New include.
  12265. (newTorrentConsoleEngine): Rewritten.
  12266. * src/ShareRatioSeedCriteria.h
  12267. (torrentMan): Removed.
  12268. (btContext): New variable.
  12269. (peerStorage): New variable.
  12270. (btRuntime): New variable.
  12271. (evaluate): Use btContext, btRuntime, peerStorage.
  12272. * src/AnnounceTier.h: New file.
  12273. * src/BtAnnounce.h: New file.
  12274. * src/BtRegistry.h: New file.
  12275. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12276. * src/PeerConnection.h (TorrentMan.h): Removed.
  12277. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12278. * src/Util.h
  12279. (slice): Added an argument.
  12280. * src/Util.cc
  12281. (slice): Added an argument to control whether trim is made or not.
  12282. * src/PeerStorage.h: New file.
  12283. * src/BtRegistry.cc: New file.
  12284. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12285. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12286. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12287. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12288. * src/TorrentRequestInfo.h
  12289. (e): Removed.
  12290. (showFileEntry): Added an argument.
  12291. (getDownloadEngine): Return 0.
  12292. * src/DefaultBtAnnounce.h: New file.
  12293. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12294. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12295. * src/PeerMessageFactory.h
  12296. (btContext): New variable.
  12297. (pieceStorage): New variable.
  12298. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12299. btAnnounce.
  12300. * src/DiskAdaptor.cc
  12301. (DiskAdaptor): Removed topDir.
  12302. (~DiskAdaptor): Removed topDir.
  12303. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12304. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12305. * src/File.h (mkdirs): New function.
  12306. * src/DefaultPeerStorage): New file.
  12307. * src/DownloadEngineFactory.h
  12308. (newTorrentConsoleEngine): Use btContext.
  12309. * src/BtContextAwareCommand.cc: New file.
  12310. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12311. * src/PeerMessage.h
  12312. (btContext): New variable.
  12313. (peerStorage): New variable.
  12314. (pieceStorage): New variable.
  12315. (setBtContext): New function.
  12316. * src/Directry.cc
  12317. (Directory): New function.
  12318. (createDir): Do nothing if name.size() == 0.
  12319. * src/AnnounceList.h
  12320. (AnnounceTier): Removed.
  12321. (AnnounceTiers): Removed.
  12322. * src/DefaultPieceStorage.h: New file.
  12323. * src/Piece.cc (toString): New function.
  12324. To fix typo:
  12325. * src/main.cc (showVersion): Fixed typo.
  12326. To fix compile warning:
  12327. * src/DelegatingPeerListProcessor.cc
  12328. (canHandle): Added "return false".
  12329. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12330. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12331. make the process of announce request testable.
  12332. * src/TrackerWatcherCommand.h
  12333. (TimeA2.h): Removed.
  12334. (interval): Removed.
  12335. (checkPoint): Removed.
  12336. (createRequestCommand): Added an argument 'url'.
  12337. (TrackerWatherCommand): Removed interval.
  12338. (createCommand): New function.
  12339. * src/DownloadEngineFactory.cc
  12340. (newTorrentConsoleEngine): Updated according to the changes in
  12341. TrackerWatherCommand.
  12342. * src/TorrentMan.cc
  12343. (DelegatingPeerListProcessor.h): New includes.
  12344. (TorrentMan): Added the initialization of announceInterval.
  12345. (isStoppedAnnounceReady): New function.
  12346. (isCompletedAnnounceReady): New function.
  12347. (isDefaultAnnounceReady): New function.
  12348. (isAnnounceReady): New function.
  12349. (getAnnounceUrl): New function.
  12350. (announceStart): New function.
  12351. (announceFailure): New function.
  12352. (announceSuccess): New function.
  12353. (isAllAnnounceFailed): New function.
  12354. (resetAnnounce): New function.
  12355. (processAnnounceResponse): New function.
  12356. (needMorePeerConnection): New function.
  12357. (noMoreAnnounce): New function.
  12358. * src/TrackerUpdateCommand.h
  12359. (getTrackerResponse): int->size_t
  12360. * src/TorrentMan.h
  12361. (isStoppedAnnounceReady): New function.
  12362. (isCompletedAnnounceReady): New function.
  12363. (isDefaultAnnounceReady): New function.
  12364. (announceInterval): New variable.
  12365. (isAnnounceReady): New function.
  12366. (getAnnounceUrl): New function.
  12367. (announceStart): New function.
  12368. (announceFailure): New function.
  12369. (announceSuccess): New function.
  12370. (isAllAnnounceFailed): New function.
  12371. (resetAnnounce): New function.
  12372. (processAnnounceResponse): New function.
  12373. (needMorePeerConnection): New function.
  12374. (noMoreAnnounce): New function.
  12375. * src/TrackerWatcherCommand.cc
  12376. (TrackerWatherCommand): Removed interval and checkPoint.
  12377. (execute): Rewritten.
  12378. (createCommand): New function.
  12379. (createRequestCommand): Rewritten.
  12380. * src/TrackerUpdateCommand.cc
  12381. (MetaFileUtil.h): Removed.
  12382. (DelegatingPeerListProcessor.h): Removed.
  12383. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12384. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12385. Request -> RequestHandle:
  12386. * src/HttpResponseCommand.h: Request->RequestHandle
  12387. * src/AbstractCommand.cc: Request->RequestHandle
  12388. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12389. * src/HttpRequestCommand.cc: Request->RequestHandle
  12390. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12391. * src/AbstractCommand.h: Request->RequestHandle
  12392. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12393. * src/HttpResponseCommand.cc: Request->RequestHandle
  12394. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12395. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12396. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12397. * src/HttpConnection.h: Request->RequestHandle
  12398. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12399. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12400. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12401. * src/DownloadCommand.h: Request->RequestHandle
  12402. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12403. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12404. * src/HttpRequestCommand.h: Request->RequestHandle
  12405. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12406. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12407. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12408. * src/HttpDownloadCommand.h: Request->RequestHandle
  12409. * src/FtpConnection.cc: Request->RequestHandle
  12410. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12411. * src/UrlRequestInfo.cc: Request->RequestHandle
  12412. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12413. * src/HttpConnection.h: Request->RequestHandle
  12414. * src/DownloadCommand.cc: Request->RequestHandle
  12415. * src/FtpConnection.h: Request->RequestHandle
  12416. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12417. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12418. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12419. * src/Request.h
  12420. (SharedHandle.h): New include.
  12421. (RequestHandle): New type definition.
  12422. (Requests): Redefined.
  12423. To add MULTITRACKER support:
  12424. * src/TrackerWatcherCommand.h
  12425. (createRequestCommand): New function.
  12426. * src/DownloadEngineFactory.cc
  12427. (newTorrentConsoleEngine): Removed req.
  12428. * src/prefs.h
  12429. (PREF_TRACKER_MAX_TRIES): New definition.
  12430. * src/TorrentMan.cc
  12431. (TorrentMan): Removed req. Added trackerNumTry.
  12432. (~TorrentMan): Removed req.
  12433. (setupInternal1): Added announceList.
  12434. * src/TorrentRequestInfo.cc
  12435. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12436. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12437. * src/main.cc
  12438. (main): Added PREF_TRACKER_MAX_TRIES.
  12439. * src/TorrentMan.h
  12440. (Request.h): Removed.
  12441. (AnnounceList.h): New include.
  12442. (trackerNumTry): New variable.
  12443. (req): Removed.
  12444. (announceList): New variable.
  12445. * src/TrackerWatcherCommand.cc
  12446. (execute): Rewritten.
  12447. (createRequestCommand): New function.
  12448. * src/TrackerUpdateCommand.cc
  12449. (execute): Updated with the use of AnnounceList.
  12450. * src/AnnounceList.cc: New class.
  12451. * src/AnnounceList.h: New class.
  12452. To fix typo:
  12453. * src/prefs.h
  12454. (PREF_MAX_TRIES): max_try->max_tries
  12455. To not to decode "+" as space in URL decode:
  12456. * src/Util.cc
  12457. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12458. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12459. To add timeout to async name resolution:
  12460. * src/AbstractCommand.h
  12461. (nameResolveFinished): New function. This is not elegant way. It needs
  12462. to be more refined.
  12463. (nameResolverCheck): New variable.
  12464. * src/AbstractCommand.cc
  12465. (AbstractCommand): Added nameResolverCheck.
  12466. (execute): Added the check whether the name resolution has finished.
  12467. (setNameResolverCheck): Set nameResolverCheck to true.
  12468. (disableNameResolverCheck): Set nameResolverCheck to false.
  12469. (nameResolverFinished): New function.
  12470. * src/FtpInitiateConnectionCommand.h
  12471. (nameResolverFinished): New function.
  12472. * src/FtpInitiateConnectionCommand.cc
  12473. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12474. * src/HttpInitiateConnectionCommand.h
  12475. (nameResolverFinished): New function.
  12476. * src/HttpInitiateConnectionCommand.cc
  12477. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12478. * src/prefs.h
  12479. (PREF_DNS_TIMEOUT): New definition.
  12480. * src/main.cc
  12481. (main): Added PREF_DNS_TIMEOUT.
  12482. To add the support for a non-compact response from a tracker:
  12483. * src/PeerListProcessor.h: New class.
  12484. * src/DefaultPeerListProcessor.h: New class.
  12485. * src/DefaultPeerListProcessor.cc: New class.
  12486. * src/CompactPeerListProcessor.h: New class.
  12487. * src/CompactPeerListProcessor.cc: New class.
  12488. * src/DelegatingPeerListProcessor.h: New class.
  12489. * src/DelegatingPeerListProcessor.cc: New class.
  12490. * src/TorrentMan.cc
  12491. (addPeer): New function(overload).
  12492. (addPeer): Delete unused peers only when new peer is added.
  12493. * src/TorrentMan.h
  12494. (PeerListProcessor.h): Included.
  12495. (Peers): Removed.
  12496. (addPeer): New function(overload).
  12497. * src/TrackerUpdateCommand.cc
  12498. (netinet/in.h): Removed.
  12499. (DelegatingPeerListProcessor.h): Included.
  12500. (execute): Updated to use DelegatingPeerListProcessor.
  12501. To fix the memory leak in TorrentMan::peers:
  12502. * src/PeerAbstractCommand.cc
  12503. (onAbort): Added peer->resetStatus().
  12504. * src/Peer.h
  12505. (resetStatus): Made public.
  12506. To improve the precision of the speed calculation:
  12507. * src/SpeedCalc.h
  12508. (nextInterval): New variable.
  12509. * src/SpeedCalc.cc
  12510. (reset): Added nextInterval.
  12511. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12512. (changeSw): Set nextInterval to 15 seconds relative to the current
  12513. instant time.
  12514. * src/main.cc
  12515. (showVersion): Updated.
  12516. (showUsage): Updated.
  12517. * Release 0.8.1
  12518. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12519. * src/main.cc
  12520. (showUsage): Commented out --min-segment-size option.
  12521. (main): Commented out --min-segment-size option.
  12522. * Release 0.8.0
  12523. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12524. * src/*.{h,cc}:
  12525. Added an exception to the license which allows linking with OpenSSL.
  12526. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12527. * src/AbstractCommand.cc
  12528. (execute): Check whether the download has finished before checking
  12529. socket status.
  12530. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12531. Do not exit even if no segment is available.
  12532. * src/prefs.h
  12533. (PREF_STARTUP_IDLE_TIME): New definition.
  12534. * src/PeerInteractionCommand.cc
  12535. (executeInternal): Removed max speed limit. Because it performs bad.
  12536. (receiveMessages): Added max speed limit. This was better than above,
  12537. but still a little bit to be desired. Sometimes the download speed
  12538. became much faster than I specified.
  12539. * src/SpeedCalc.h
  12540. (start): New variable.
  12541. (accumulatedLength): New variable.
  12542. (getAvgSpeed): New function.
  12543. * src/SpeedCalc.cc
  12544. (reset): Added start, accumulatedLength.
  12545. (update): Added calculation of an average speed.
  12546. (getAvgSpeed): New function.
  12547. * src/DownloadCommand.h
  12548. (sw): Removed.
  12549. * src/main.cc
  12550. (main): Added PREF_STARTUP_IDLE_TIME.
  12551. * src/PeerStat.h
  12552. (STATUS): Added REQUEST_IDLE.
  12553. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12554. (getAvgDownloadSpeed): New function
  12555. (requestIdle): New function.
  12556. * src/SegmentMan.h
  12557. (SegmentEntryHandle): New type definition.
  12558. (SegmentEntries): Now holds SegmentEntryHandle.
  12559. (findSlowerSegmentEntry): New funtion.
  12560. * src/SegmentMan.cc
  12561. (save): Updated according to the changes in SegmentEntries.
  12562. (read): Updated according to the changes in SegmentEntries.
  12563. (FindSegmentEntryByIndex): Updated according to the changes in
  12564. SegmentEntries.
  12565. (FindSegmentEntryByCuid): Updated according to the changes in
  12566. SegmentEntries.
  12567. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12568. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12569. Renamed uitr as itr.
  12570. (findSlowerSegmentEntry): New function.
  12571. (getSegment): Updated according to the changes in SegmentEntries.
  12572. Added the feature that cancels the segment with slow server and fast
  12573. one takes it over.
  12574. (cancelSegment): Updated according to the changes in SegmentEntries.
  12575. (getDownloadLength): Updated according to the changes in
  12576. SegmentEntries.
  12577. (init): Assigned 0 to bitfield after deleting it.
  12578. * src/DownloadCommand.cc
  12579. (STARTUP_IDLE_TIME): Removed.
  12580. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12581. * src/PeerChokeCommand.cc
  12582. (optUnchokingPeer): Updated according to the changes in Peer.
  12583. (ResetDelta): Removed.
  12584. (UploadFaster): Updated according to the changes in Peer.
  12585. (DownloadFaster): Updated according to the changes in Peer.
  12586. (execute): I clarify the meaning of "upload" and "download" here.
  12587. "upload" means the transfer from localhost to remote host.
  12588. "download" means the transfer from remote host to localhost.
  12589. Based on this rule, I swapped orderByUploadRate and
  12590. orderByDownloadRate.
  12591. * src/PeerInteractionCommand.cc
  12592. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12593. (executeInternal): Removed the argument of
  12594. peerInteraction->sendMessages().
  12595. (receiveMessages): Rewritten download speed limit.
  12596. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12597. * src/HttpResponseCommand.cc
  12598. (handleDefaultEncoding): If file size is unknown in torrent request,
  12599. do not call segmentMan->initBitfield() here.
  12600. Disabled persistent connection feature in torrent request.
  12601. * src/UrlRequestInfo.h
  12602. (UrlRequestInfo): Removed const qualifier from option.
  12603. * src/TorrentMan.h
  12604. (TransferStat): New class.
  12605. (deltaDownloadLength): Removed.
  12606. (deltaUploadLength): Removed.
  12607. (addDeltaDownloadLength): Removed.
  12608. (getDeltaDownloadLength): Removed.
  12609. (resetDeltaDownloadLength): Removed.
  12610. (addDeltaUploadLength): Removed.
  12611. (getDeltaUploadLength): Removed.
  12612. (resetDeltaUploadLength): Removed.
  12613. (addActivePeer): Added peer->activate().
  12614. (deleteActivePeer): Added peer->deactivate().
  12615. (calculateStat): New function.
  12616. * src/TorrentMan.cc
  12617. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12618. (calculateStat): New function.
  12619. * src/PeerInteraction.h
  12620. (uploadLimit): Removed.
  12621. (option): New variable.
  12622. (setUploadLimit): Removed.
  12623. (getUploadSpeed): Removed.
  12624. (sendMessages): Removed the argument "currentUploadSpeed".
  12625. * src/PeerInteraction.cc
  12626. (prefs.h): Included.
  12627. (PeerInteraction): Removed uploadLimit. Added option.
  12628. (sendMessages): Rewritten upload speed limit.
  12629. (sendHandshake): Removed the argument from sendMessages().
  12630. (sendBitfield): Removed the argument from sendMessages().
  12631. * src/PeerAbstractCommand.cc
  12632. (execute): Commented out the portion of upload limit.
  12633. (onAbort): Removed peer->resetStatus().
  12634. * src/TorrentRequestInfo.cc
  12635. (timeoutSpecified): Declared extern.
  12636. (execute): Set timeout to 180 if timeout is not specified by.
  12637. command-line.
  12638. * src/PieceMessage.cc
  12639. (receivedAction): Added peer->updateDownloadLength().
  12640. Removed peer->addPeerUpload().
  12641. Removed torrentMan->addDeltaDownloadLength().
  12642. (send): Added peer->updateUploadLength().
  12643. Removed peer->addPeerDownload().
  12644. Removed torrentMan->addDeltaUploadLength().
  12645. * src/main.cc
  12646. (timeoutSpecified): New variable.
  12647. (main): Set timeoutSpecified to false.
  12648. If the command-line option "--upload-limit" is specified, then
  12649. timeoutSpecified is set to true. This option will remain in the next
  12650. release, but be deprecated in the future release.
  12651. * src/TorrentRequestInfo.h
  12652. (TorrentRequestInfo): Removed const qualifier from op.
  12653. * src/PeerStat.h
  12654. (uploadSpeed): New variable.
  12655. (PeerStat): Added default value to cuid.
  12656. (calculateUploadSpeed): New function.
  12657. (updateUploadLength): New function.
  12658. (getMaxUploadSpeed): New function.
  12659. (getAvgUploadSpeed): New function.
  12660. (reset): Added uploadSpeed. Set status to IDLE.
  12661. * src/TorrentDownloadEngine.h
  12662. (cp): Declared as Time.
  12663. (sessionDownloadLengthArray): Removed.
  12664. (sessionUploadLengthArray): Removed.
  12665. (currentCp): Removed.
  12666. (lastCalcStat): New variable
  12667. (lastElapsed): Removed.
  12668. (sessionDownloadLength): Removed.
  12669. (calculateStat): New function.
  12670. * src/TorrentDownloadEngine.cc
  12671. (initStatistics): Removed lastElapsed, cp[],
  12672. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12673. currentCp, sessionDownloadLength.
  12674. Added cp.reset() and lastCalcStat.reset().
  12675. (calculateSpeed): Changed the name of the argument.
  12676. (calculateStatistics): Rewritten.
  12677. (calculateStat): New function.
  12678. * src/Peer.h
  12679. (PeerStat.h): Included.
  12680. (peerUpload): Removed.
  12681. (peerDownload): Removed.
  12682. (peerStat): New variable.
  12683. (sessionUploadLength): New variable.
  12684. (sessionDownloadLength): New variable.
  12685. (deltaUpload): Removed.
  12686. (deltaDownload): Removed.
  12687. (resetStatus): Made private.
  12688. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12689. Removed peerUpload, peerDownload.
  12690. (updateUploadLength): New function.
  12691. (addDeltaUpload): Removed.
  12692. (updateDownloadLength): New function.
  12693. (resetDeltaUpload): Removed.
  12694. (getDeltaUpload): Removed.
  12695. (addDeltaDownload): Removed.
  12696. (calculateUploadSpeed): New function.
  12697. (resetDeltaDownload): Removed.
  12698. (getDeltaDownload): Removed.
  12699. (calculateDownloadSpeed): New function.
  12700. (getSessionUploadLength): New function.
  12701. (getSessionDownloadLength): New function.
  12702. (activate): New function.
  12703. (deactivate): New function.
  12704. (addPeerUpload): Removed.
  12705. (setPeerUpload): Removed.
  12706. (getPeerUpload): Removed.
  12707. (addPeerDownload): Removed.
  12708. (setPeerDownload): Removed.
  12709. (getPeerDownload): Removed.
  12710. * src/Peer.cc
  12711. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12712. * src/MetalinkRequestInfo.h
  12713. (MetalinkRequestInfo): Removed const qualifier from op.
  12714. * src/RequestInfo.h
  12715. (op): Removed const qualifier.
  12716. (RequestInfo): Removed const qualifier from op.
  12717. * src/prefs.h
  12718. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12719. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12720. * src/PeerInteractionCommand.cc
  12721. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12722. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12723. * src/PeerInteraction.cc
  12724. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12725. * src/main.cc
  12726. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12727. Added the description of "--max-download-limit" option.
  12728. Removed the description of "--upload-limit" option.
  12729. Added the description of "--max-upload-limit" option.
  12730. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12731. Added "--max-download-limit" option and "--max-upload-limit" option.
  12732. Added the warning message if "--upload-limit" option is used.
  12733. * src/DownloadCommand.cc
  12734. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12735. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12736. To rewrite segment download mechanism for HTTP/FTP download.
  12737. Use BitfieldMan to manage segment download.
  12738. * src/HttpResponseCommand.h
  12739. (executeInternal): Pass the reference of segment.
  12740. * src/AbstractCommand.cc
  12741. (prepareForRetry): Call segmentMan->cancelSegment here.
  12742. (onAbort): Call segmentMan->cancelSegment here.
  12743. * src/HttpDownloadCommand.cc
  12744. (prepareForNextSegment): New function.
  12745. * src/DownloadEngineFactory.cc
  12746. (newConsoleEngine): Removed splitter.
  12747. (newTorrentConsoleEngine): Removed splitter.
  12748. * src/Request.h
  12749. (segment): Renamed from seg.
  12750. * src/FtpInitiateConnectionCommand.h
  12751. (executeInternal): Pass the reference of segment.
  12752. * src/AbstractCommand.h
  12753. (executeInternal): Pass the reference of segment.
  12754. * src/pref.h
  12755. (PREF_SEGMENT_SIZE): New definition.
  12756. * src/HttpProxyRequestCommand.h
  12757. (executeInternal): Pass the reference of segment.
  12758. * src/HttpResponseCommand.cc
  12759. (checkResponse): Allowed status 206 when a request range starts 0.
  12760. (handleDefaultEncoding): Rewritten the code related to Segment.
  12761. (handleOtherEncoding): Rewritten the code related to Segment.
  12762. * src/SegmentMan.h
  12763. (SegmentEntry): New class.
  12764. (SegmentEntries): New type definition.
  12765. (bitfield): New variable.
  12766. (usedSegmentEntries): New variable.
  12767. (onNullBitfield): New function.
  12768. (checkoutSegment): New function.
  12769. (segments): Removed.
  12770. (splitter): Removed.
  12771. (unregisterId): Removed.
  12772. (getSegment): New function(overload)
  12773. (getDownloadedSize): Removed.
  12774. (cancelSegment): New function.
  12775. (completeSegment): New function.
  12776. (initBitfield): New function.
  12777. (hasSegment): New function.
  12778. (getDownloadLength): New function.
  12779. * src/BitfieldMan.h
  12780. (getStartIndex): New function.
  12781. (getEndIndex): New function.
  12782. (getMissingUnusedIndex): New function(overload).
  12783. (getSparseMissingUnusedIndex): New function.
  12784. * src/BitfieldMan.cc
  12785. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12786. (getMissingUnusedIndex): New function(overload).
  12787. (Range): New class.
  12788. (getStartIndex): New function.
  12789. (getEndIndex): New function.
  12790. (getSparseMissingUnusedIndex): New function.
  12791. (isBitSetInternal): Return false if the given index is less than 0.
  12792. * src/HttpInitiateConnectionCommand.h
  12793. (executeInternal): Pass the reference of segment.
  12794. * src/FtpNegotiateCommand.h
  12795. (executeInternal): Pass the reference of segment.
  12796. * src/FtpNegotiateCommand.cc
  12797. (recvSize): Initialize bitfield here.
  12798. * src/FtpTunnelResponseCommand.h
  12799. (executeInternal): Pass the reference of segment.
  12800. * src/HttpConnection.cc
  12801. (createRequest): Rewritten range header processing.
  12802. * src/DownloadCommand.h
  12803. (executeInternal): Pass the reference of segment.
  12804. (prepareForRetry): Removed.
  12805. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12806. function.
  12807. * src/main.cc
  12808. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12809. * src/SegmentMan.cc
  12810. (SegmentMan): Added bitfield. Removed splitter.
  12811. (~SegmentMan): Added bitfield. Removed splitter.
  12812. (unregisterId): Removed.
  12813. (getSegment): Rewritten.
  12814. (updateSegment): Rewritten.
  12815. (save): Rewritten.
  12816. (read): Rewritten.
  12817. (finished): Rewritten.
  12818. (getDownloadedSize): Removed.
  12819. (initBitfield): New function.
  12820. (FindSegmentEntryByIndex): New function object.
  12821. (FindSegmentEntryByCuid): New function object.
  12822. (checkoutSegment): New function.
  12823. (onNullBitfield): New function.
  12824. (getSegment): New function(overload).
  12825. (CancelSegment): New function object.
  12826. (cancelSegment): New function.
  12827. (completeSegment): New function.
  12828. (hasSegment): New function.
  12829. (getDownloadLength): New function.
  12830. * src/FtpInitiateConnectionCommand.cc
  12831. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12832. * src/Segment.h: Rewritten.
  12833. * src/Segment.cc (operator<<): New function.
  12834. * src/HttpDownloadCommand.h
  12835. (prepareForNextSegment): New function.
  12836. * src/Request.cc
  12837. (resetUrl): Made segment null.
  12838. * src/DownloadEngine.cc
  12839. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12840. * src/HttpProxyRequestCommand.h
  12841. (executeInternal): Pass the reference of segment.
  12842. * src/DownloadCommand.cc
  12843. (executeInternal): Rewritten the code related to Segment.
  12844. (prepareForRetry): Removed.
  12845. (prepareForNextSegment): Rewritten.
  12846. * src/FtpTunnelResponseCommand.h
  12847. (executeInternal): Pass the reference of segment.
  12848. To add HTTP 1.1 persistent connection support(experimental)
  12849. * src/HttpRequestCommand.cc
  12850. (executeInternal): Disable keep alive if it is disabled by
  12851. configuration.
  12852. * src/Request.h
  12853. (keepAlive): New variable.
  12854. (isKeepAlive): New function.
  12855. (setKeepAlive): New function.
  12856. * src/pref.h
  12857. (PREF_HTTP_KEEP_ALIVE): New definition.
  12858. * src/HttpResponseCommand.cc
  12859. (executeInternal): Check the remote server supports keep alive.
  12860. * src/HttpConnection.cc
  12861. (createRequest): Send "Connection: close" only if keep alive is
  12862. disabled.
  12863. * src/main.cc
  12864. (main):
  12865. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12866. To add max download speed limit:
  12867. * src/pref.h
  12868. (PREF_MAX_SPEED_LIMIT): New definition.
  12869. * src/PeerInteractionCommand.cc
  12870. (executeInternal): Added max download speed limit. Not tested yet.
  12871. * src/SegmentMan.h
  12872. (PeerStats): New type definition.
  12873. (peerStats): New variable.
  12874. (registerPeerStat): New function.
  12875. (FindPeerStat): New function object.
  12876. (getPeerStat): New function.
  12877. (calculateDownloadSpeed): New function.
  12878. * src/SpeedCalc.h: New class.
  12879. * src/SpeedCalc.cc: New class.
  12880. * src/main.cc
  12881. (main):
  12882. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12883. download speed is not restricted).
  12884. * src/PeerStat.h: New class.
  12885. * src/SegmentMan.cc
  12886. (registerPeerStat): New function.
  12887. (calculateDownloadSpeed): New function.
  12888. * src/DownloadCommand.cc
  12889. (STARTUP_IDLE_TIME): New definition.
  12890. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12891. downloadStart.
  12892. (~DownloadCommand): Call peerStat->downloadStop.
  12893. (executeInternal): Added download speed limitter. Rewritten lowest
  12894. speed limitter.
  12895. * src/HttpConnection.cc
  12896. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12897. * src/AbstractCommand.cc
  12898. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12899. Added hostname to the error message.
  12900. * src/ConsoleDownloadEngine.cc
  12901. (calculateStatistics): Initialize psize with dlSize.
  12902. * src/PieceMessage.cc
  12903. (receivedAction): Do not call peerInteraction->abortPiece here.
  12904. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12905. * src/BitfieldMan.h
  12906. (clearAllUseBit): New function.
  12907. (setAllUseBit): New function.
  12908. * src/BitfieldMan.cc
  12909. (clearAllBit): Do not clear useBitfield here.
  12910. (clearAllUseBit): New function.
  12911. (setAllUseBit): New function.
  12912. * src/Piece.cc
  12913. (clearAllBlock): Call bitfield->clearAllUseBit().
  12914. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12915. To make filename URL-decoded:
  12916. * src/HttpResponseCommand.h: Updated doc.
  12917. * src/HttpResponseCommand.cc
  12918. (determinFilename): Made filename URL-decoded.
  12919. * src/FtpInitiateConnectionCommand.cc
  12920. (executeInternal): Made filename URL-decoded.
  12921. * src/Util.h (urldecode): New function.
  12922. * src/Util.cc (urldecode): New function.
  12923. To fix a bug that caused assertion failure in ares_strerror:
  12924. * src/NameResolver.cc (callback): Fixed the bug.
  12925. * Release 0.7.3
  12926. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12927. To add --seed-time and --seed-ratio command-line option:
  12928. * src/Option.h (getAsDouble): New function.
  12929. * src/Option.cc (getAsDouble): New function.
  12930. * src/SeedCheckCommand.h: New class.
  12931. * src/SeedCheckCommand.cc: New class.
  12932. * src/DownloadEngineFactory.cc
  12933. (SeedCheckCommand.h): Included.
  12934. (UnionSeedCriteria.h): Included.
  12935. (TimeSeedCriteria.h): Included.
  12936. (ShareRatioSeedCriteria.h): Included.
  12937. (newTorrentConsoleEngine): Added the processing of seed option.
  12938. * src/SeedCriteria.h: New class.
  12939. * src/ShareRatioSeedCriteria.h: New class.
  12940. * src/TimeSeedCriteria.h: New class.
  12941. * src/UnionSeedCriteria.h: New class.
  12942. * src/prefs.h
  12943. (PREF_SEED_TIME): New definition.
  12944. (PREF_SEED_RATIO): New definition.
  12945. * src/main.cc
  12946. (showUsage): Added --seed-time and --seed-ratio option.
  12947. (main): Added --seed-time and --seed-ratio option.
  12948. Made default log file name "/dev/null".
  12949. * src/SharedHandle.h
  12950. (SharedHandle): Copy constructor. Made it assignable from the
  12951. SharedHandle of the subclasses.
  12952. (operator=): Made it assignable from the SharedHandle of the
  12953. subclasses.
  12954. (getRefCount): New function.
  12955. To add notice log level and the switch to write log to stdout. This
  12956. switch is configurable per log level.
  12957. * src/Logger.h
  12958. (notice): New function.
  12959. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12960. constant.
  12961. * src/LogFactory.cc
  12962. (getInstance): The use of NullLogger was removed. A log message with
  12963. notice log level was made written to stdout along with log file.
  12964. * src/NullLogger.h
  12965. (notice): New function.
  12966. * src/SimpleLogger.h
  12967. (writeHeader): Added the 'file' argument.
  12968. (writeLog): Added the 'file' argument.
  12969. (writeFile): New function.
  12970. (stdoutField): New variable.
  12971. (SimpleLogger): Removed the default constructor.
  12972. (SimpleLogger): Made the default value of logfile 0.
  12973. (debug): Added 'virtual' keyword.
  12974. (info): Added 'virtual' keyword.
  12975. (warn): Added 'virtual' keyword.
  12976. (error): Added 'virtual' keyword.
  12977. (notice): New function.
  12978. (setStdout): New function.
  12979. * src/SimpleLogger.cc
  12980. (WRITE_LOG): Replaced writeLog with writeFile.
  12981. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12982. (SimpleLogger): Removed the default constructor.
  12983. (setStdout): New function.
  12984. (writeLog): Added the handling of NOTICE log level.
  12985. (writeFile): New function.
  12986. (notice): New function.
  12987. * src/TorrentMan.h: Updated doc.
  12988. * src/BitfieldMan.h: Updated doc.
  12989. * src/TrackerWatcherCommand.cc
  12990. (execute): Return true if error occurred in the request to the tracker
  12991. and halt is requested.
  12992. * src/TrackerUpdateCommand.cc
  12993. (execute): Return true if error occurred in the request to the tracker
  12994. and halt is requested.
  12995. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12996. DownloadEngine:
  12997. * src/TorrentConsoleDownloadEngine.h
  12998. (onSelectiveDownloadingCompletes): Removed.
  12999. * src/TorrentConsoleDownloadEngine.cc
  13000. (onSelectiveDownloadingCompletes): Removed.
  13001. * src/TorrentDownloadEngine.h
  13002. (onEndOfRun): Added 'virtual' keyword.
  13003. (afterEachIteration): Removed.
  13004. (onSelectiveDownloadingCompletes): Removed.
  13005. * src/TorrentDownloadEngine.cc
  13006. (onEndOfRun): Removed filenameFixed.
  13007. (afterEachIteration): Removed.
  13008. * src/TorrentMan.cc
  13009. (completePiece): Call onDownloadComplete here.
  13010. (onDownloadComplete): Added 2 log messages.
  13011. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13012. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13013. * src/NameResolver.h: Added the prototype declaration of callback().
  13014. To support c-ares library:
  13015. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13016. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13017. * src/FtpInitiateConnectionCommand.h:
  13018. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13019. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13020. * src/HttpInitiateConnectionCommand.h:
  13021. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13022. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13023. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13024. #1542285 by tizianomueller)
  13025. * src/HttpInitiateConnectionCommand.cc:
  13026. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13027. * src/FtpInitiateConnectionCommand.cc:
  13028. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13029. * src/DownloadEngine.h:
  13030. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13031. * src/DownloadEngine.cc:
  13032. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13033. To fix the bug that causes compilation failure with metalink-support
  13034. disabled(bug#1543587):
  13035. * src/main.cc: Fixed with the patch by tizianomueller.
  13036. * Release 0.7.2
  13037. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13038. * src/main.cc
  13039. (main): Added a message to inform users that aria2 is starting to
  13040. verify checksum.
  13041. * src/RequestInfo.cc
  13042. (printDownloadAbortMessage): Added a message to inform users that
  13043. transfer can be resumed.
  13044. * src/FeatureConfig.cc
  13045. (FEATURE_ASYNC_DNS): New definition.
  13046. (FeatureConfig): Added aysnc DNS entry.
  13047. To replace CommandUuid with Command* in SocketEntry and
  13048. NameResolverEntry:
  13049. * src/DownloadEngine.h
  13050. (CommandUuids): Removed.
  13051. (SocketEntry::commandUuid): Removed.
  13052. (SocketEntry::command): New variable.
  13053. (SocketEntry::SocketEntry): Updated.
  13054. (SocketEntry::operator==): Updated.
  13055. (NameResolverEntry::commandUuid): Removed.
  13056. (NameResolverEntry::command): New variable.
  13057. (NameResolverEntry::NameResolverEntry): Updated.
  13058. (NameResolverEntry::operator==): Updated.
  13059. (waitData): Changed the argument type.
  13060. (addSocketForReadCheck): Changed the argument type.
  13061. (deleteSocketForReadCheck): Changed the argument type.
  13062. (addSocketForWriteCheck): Changed the argument type.
  13063. (deleteSocketForWriteCheck): Changed the argument type.
  13064. (addNameResolverCheck): Changed the argument type.
  13065. (deleteNameResolverCheck): Changed the argument type.
  13066. * src/DownloadEngine.cc
  13067. (FindCommand): Removed.
  13068. (run): Removed activeUuid. Added activeCommands instead.
  13069. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13070. (AccumulateActiveCommand): New function object.
  13071. (waitData): Use AccumulateActiveCommand.
  13072. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13073. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13074. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13075. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13076. (addNameResolverCheck): Use Command instead of CommandUuid.
  13077. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13078. * src/AbstractCommand.cc
  13079. (disableReadCheckSocket): Updated according to the changes in
  13080. DownloadEngine.
  13081. (setReadCheckSocket): Updated according to the changes in
  13082. DownloadEngine.
  13083. (disableWriteCheckSocket): Updated according to the changes in
  13084. DownloadEngine.
  13085. (setWriteCheckSocket): Updated according to the changes in
  13086. DownloadEngine.
  13087. (setNameResolverCheck): Updated according to the changes in
  13088. DownloadEngine.
  13089. (disableNameResolverCheck): Updated according to the changes in
  13090. DownloadEngine.
  13091. * src/AbstractCommand.cc
  13092. (disableReadCheckSocket): Updated according to the changes in
  13093. DownloadEngine.
  13094. (setReadCheckSocket): Updated according to the changes in
  13095. DownloadEngine.
  13096. (disableWriteCheckSocket): Updated according to the changes in
  13097. DownloadEngine.
  13098. (setWriteCheckSocket): Updated according to the changes in
  13099. DownloadEngine.
  13100. * release 0.7.1
  13101. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13102. To handle the case where some BitTorrent tracker requires all letters
  13103. except for [A-Za-z0-9] is URL encoded.
  13104. * src/Util.h
  13105. (torrentUrlencode): New function.
  13106. * src/Util.cc
  13107. (ctype.h): Included.
  13108. (torrentUrlencode): New function.
  13109. * src/TrackerWatcherCommand.cc
  13110. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13111. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13112. To add asynchronous DNS support(libares):
  13113. * src/AbstractCommand.h
  13114. (setNameResolverCheck): New function.
  13115. (disableNameResolverCheck): New function
  13116. (resolveHostname): New function.
  13117. * src/AbstractCommand.cc
  13118. (setNameResolverCheck): New function.
  13119. (disableNameResolverCheck): New function
  13120. (resolveHostname): New function.
  13121. * src/FtpInitiateConnectionCommand.h
  13122. (nameResolver): New function.
  13123. * src/FtpInitiateConnectionCommand.cc
  13124. (Util.h): Included.
  13125. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13126. disableWriteCheckSocket.
  13127. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13128. (executeInternal): Added async DNS support.
  13129. * src/HttpInitiateConnectionCommand.h
  13130. (nameResolver): New function.
  13131. * src/HttpInitiateConnectionCommand.cc
  13132. (DlRetryEx.h): Included.
  13133. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13134. disableWriteCheckSocket.
  13135. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13136. (executeInternal): Added async DNS support.
  13137. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13138. by extern "C" declaration.
  13139. * src/NameResolver.cc: New class.
  13140. * src/Util.h:
  13141. (isNumberAndDotsNotation): New function
  13142. * src/Util.cc
  13143. (isNumberAndDotsNotation): New function.
  13144. * src/DownloadEngine.h
  13145. (NameResolver.h): Included.
  13146. (NameResolverEntry): New class.
  13147. (NameResolverEntries): New type definition.
  13148. (addNameResolverCheck): New function.
  13149. (deleteNameResolverCheck): New function.
  13150. * src/DownloadEngine.cc
  13151. (run): Initialize cp with 0.
  13152. (SetDescriptor::operator()): Added for NameResolverEntry.
  13153. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13154. (waitData): Check nameResolver entries.
  13155. (updateFdSet): Update fds in nameResolver entries.
  13156. (addNameResolverCheck): New function.
  13157. (deleteNameResolverCheck): new function.
  13158. * src/PeerInteractionCommand.cc
  13159. (executeInternal): Fixed wrong socket handling.
  13160. * src/main.cc
  13161. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13162. * src/Util.cc
  13163. (fileChecksum): Removed the call to ctx.digestReset().
  13164. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13165. * po/ru.po: Azamat sent me Russian translation.
  13166. * src/FtpNegotiateCommand.cc
  13167. (recvGreeting): Call disableWriteCheckSocket just after
  13168. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13169. (recvRetr): Recognized status code 125 as a acceptable response code.
  13170. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13171. case-insesitive filesystem(BUG#1531057).
  13172. * src/Time.h: Renamed as TimeA2.h.
  13173. * src/Time.cc: Renamed as TimeA2.cc.
  13174. * src/TimeA2.h: New class.
  13175. * src/TimeA2.cc: New class.
  13176. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13177. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13178. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13179. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13180. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13181. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13182. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13183. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13184. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13185. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13186. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13187. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13188. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13189. * release 0.7.0
  13190. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13191. * src/PeerChokeCommand.h
  13192. (PeerChokeCommand): Rearranged the arguments.
  13193. * src/PeerChokeCommand.cc
  13194. (PeerChokeCommand): Rearranged the arguments.
  13195. * src/MetalinkEntry.h
  13196. (Checksum.h): Included.
  13197. (md5): Removed.
  13198. (sha1): Removed.
  13199. (checksum): New variable.
  13200. (operator=): Updated.
  13201. (check): Removed.
  13202. * src/prefs.h
  13203. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13204. (PREF_FOLLOW_TORRENT): New definition.
  13205. (PREF_SELECT_FILE): New definition.
  13206. (PREF_FOLLOW_METALINK): New definition.
  13207. * src/MetalinkResource.h
  13208. (TYPE_HTTPS): Added to enum TYPE.
  13209. * src/TorrentMan.cc
  13210. (~TorrentMan): Rewritten.
  13211. * src/MultiDiskWriter.cc
  13212. (MultiDiskAdaptor): Updated according to the changes in
  13213. MessageDigestContext.
  13214. (~MultiDiskAdaptor): Updated according to the changes in
  13215. MessageDigestContext.
  13216. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13217. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13218. * src/Util.h
  13219. (fileChecksum): Updated according to the changes in
  13220. MessageDigestContext.
  13221. * src/Util.cc
  13222. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13223. (fileChecksum): Updated according to the changes in
  13224. MessageDigestContext.
  13225. * src/messageDigest.h: Rewritten.
  13226. * src/MetalinkEntry.cc
  13227. (check): Removed.
  13228. (Supported): Updated.
  13229. (dropUnsupportedResource): Fixed a memory leak.
  13230. * src/ShaVisitor.cc
  13231. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13232. (~ShaVisitor): Updated according to the changes in
  13233. MessageDigestContext.
  13234. (visit): Updated according to the changes in MessageDigestContext.
  13235. * src/main.cc
  13236. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13237. command-line option added.
  13238. * src/DownloadEngine.h
  13239. (SocketEntry): New class.
  13240. (SocketEntries): New definition.
  13241. (PairFind): Removed.
  13242. (SockCmdMap): Removed.
  13243. * src/DownloadEngine.cc
  13244. (DownloadEngine): Rewritten.
  13245. (~DownloadEngine): Rewritten.
  13246. (run): Renamed activeCommandUuids as activeUuids.
  13247. (SetDescriptor): Rewritten.
  13248. (AccumulateActiveCommandUuid): Removed.
  13249. (AccumulateActiveUuid): New function object.
  13250. (waitData): Rewritten.
  13251. (updateFdSet): Rewritten.
  13252. (addSocket): Rewritten.
  13253. (deleteSocket): Rewritten.
  13254. (addSocketForReadCheck): Rewritten.
  13255. (deleteSocketForReadCheck): Rewritten.
  13256. (addSocketForWriteCheck): Rewritten.
  13257. (deleteSocketForWriteCheck): Rewritten.
  13258. * src/Xml2MetalinkProcessor.cc
  13259. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13260. * src/DownloadCommand.cc
  13261. (executeInternal): Added the check routine for lowest speed limit.
  13262. * src/AbstractDiskWriter.cc
  13263. (AbstractDiskWriter): Updated according to the changes in
  13264. MessageDigestContext.
  13265. (~AbstractDiskWriter): Updated according to the changes in
  13266. MessageDigestContext.
  13267. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13268. * src/RequestInfo.h: New class.
  13269. * src/UrlRequestInfo.h: New class.
  13270. * src/UrlRequestInfo.cc: New class.
  13271. * src/TorrentRequestInfo.h: New class.
  13272. * src/TorrentRequestInfo.cc: New class.
  13273. * src/MetalinkRequestInfo.h: New class.
  13274. * src/MetalinkRequestInfo.cc: New class.
  13275. * src/Checksum.h: New class.
  13276. * src/DownloadEngineFactory.h: New class.
  13277. * src/DownloadEngineFactory.cc: New class.
  13278. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13279. * src/Option.h
  13280. (getAsBool): New function.
  13281. * src/Option.cc
  13282. (prefs.h): Included.
  13283. (defined): 0-length value is now recognized as undefined.
  13284. (getAsInt): Rewritten.
  13285. (getAsLLInt): Rewritten.
  13286. (getAsBool): New function.
  13287. * src/FeatureConfig.h: Rewritten.
  13288. * src/FeatureConfig.cc: Rewritten.
  13289. * src/prefs.h
  13290. (PREF_STDOUT_LOG): New definition.
  13291. (PREF_LOG): New definition.
  13292. (PREF_DIR): New definition.
  13293. (PREF_OUT): New definition.
  13294. (PREF_SPLIT): New definition.
  13295. (PREF_DAEMON): New definition.
  13296. (PREF_REFERER): New definition.
  13297. (PREF_TORRENT_FILE): New definition.
  13298. (PREF_LISTEN_PORT): New definition.
  13299. (PREF_METALINK_FILE): New definition.
  13300. (PREF_METALINK_VERSION): New definition.
  13301. (PREF_METALINK_LANGUAGE): New definition.
  13302. (PREF_METALINK_OS): New definition.
  13303. (PREF_METALINK_SERVERS): New definition.
  13304. * src/main.cc
  13305. (main): Following command-line parameters are now put into Option
  13306. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13307. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13308. metalinkLanguage, metalinkOs, metalinkServers
  13309. To fix the bug that aria2 can not handle http response header properly.
  13310. * src/HttpHeader.cc
  13311. (put): Made name lowercased.
  13312. (defined): Made name lowercased.
  13313. (getFirst): Made name lowercased.
  13314. (get): Made name lowercased.
  13315. (getFirstAsInt): Rewritten.
  13316. (getFirstAsLLInt): Rewritten.
  13317. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13318. * src/TorrentMan.h:
  13319. (advertisePiece): Updated doc.
  13320. (getAdvertisedPieceIndexes): Updated doc.
  13321. (removeAdvertisedPiece); New function.
  13322. * src/TorrentMan.cc
  13323. (FindElapsedHave): New function object.
  13324. (removeAdvertisedPiece): New function.
  13325. * src/HaveEraseCommand.h: New class.
  13326. * src/HaveEraseCommand.cc: New class.
  13327. * src/FeatureConfig.h: New class.
  13328. * src/FeatureConfig.cc: New class.
  13329. * src/Request.h
  13330. (defaultPorts): Removed.
  13331. * src/Request.cc
  13332. (FeatureConfig.h): Included.
  13333. (Request): Removed the statements related to defaultPorts.
  13334. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13335. A default port number is now retrieved from FeatureConfig.
  13336. * src/main.cc
  13337. (HaveEraseCommand.h): Included.
  13338. (showVersion): Added the output of feature list.
  13339. (main): Added HaveEraseCommand to command queue in BitTorrent
  13340. downloading.
  13341. * src/PeerInteractionCommand.h
  13342. (chokeCheckPoint): Commented out.
  13343. (periodicExecPoint): New variable.
  13344. * src/PeerInteractionCommand.cc
  13345. (executeInternal): Following methods are now called in at least every
  13346. 0.5 seconds to reduce CPU usage:
  13347. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13348. checkHave(), sendKeepAlive().
  13349. (checkLongTimePeerChoking): Commented out.
  13350. * src/BitfieldMan.h
  13351. (getNthBitIndex): Changed the method signature.
  13352. (getMissingIndexRandomly): Changed the method signature.
  13353. * src/BitfieldMan.cc
  13354. (getNthBitIndex): Rewritten
  13355. (getMissingIndexRandomly): Rewritten.
  13356. (hasMissingPiece): Rewritten.
  13357. (getMissingIndex): Refactored.
  13358. (getMissingUnusedIndex); Refactored.
  13359. (getMissingIndex): Refactored.
  13360. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13361. * src/PeerMessage.h
  13362. (Piece.h): Included.
  13363. (SharedHandle.h): Included.
  13364. (invalidate): New variable.
  13365. (uploading): New variable.
  13366. (isInvalidate): New function.
  13367. (isUploading): New function.
  13368. (onPush): New function.
  13369. (onChoked): New function.
  13370. (onCanceled): New function.
  13371. (onAbortPiece): New function.
  13372. (PeerMessageHandle): New type definition.
  13373. * src/PeerMessage.cc
  13374. (PeerMessage): Added the initialization for invalidate and uploading.
  13375. * src/CancelMessage.h
  13376. (CancelMessage): Rewritten.
  13377. * src/RejectMessage.h
  13378. (RejectMessage): Rewritten.
  13379. * src/Metalinker.h
  13380. (operator=): Defined.
  13381. * src/MetaEntry.h
  13382. (operator=): Defined.
  13383. * src/MetalinkResource.h
  13384. (operator=): Defined.
  13385. * src/AllowedFastMessage.h
  13386. (AllowedFastMessage): Rewritten.
  13387. * src/HandshakeMessage.h
  13388. (HandshakeMessage): New function(overload).
  13389. * src/HandshakeMessage.cc
  13390. (HandshakeMessage): Rewritten.
  13391. (init): New function.
  13392. * src/HaveMessage.h
  13393. (HaveMessage): Rewritten.
  13394. * src/Time.h
  13395. (operator=): Defined the function body here.
  13396. * src/Time.cc
  13397. (operator=): Removed.
  13398. * src/SocketCore.h
  13399. (operator==): Defined here.
  13400. (operator!=): Defined here.
  13401. (operator<): Defined here.
  13402. * src/SocketCore.cc
  13403. (operator==): Removed.
  13404. (operator<): Removed.
  13405. * src/BitfieldMan.h
  13406. (operator=): Defined the function body here.
  13407. * src/BitfieldMan.cc
  13408. (operator=): Removed.
  13409. * src/TorrentMan.h
  13410. (deleteErrorPeer): Removed.
  13411. (deleteUnusedPeer); New function.
  13412. * src/TorrentMan.cc
  13413. (addPeer): Call deleteUnusedPeer.
  13414. (deleteErrorPeer): Removed.
  13415. (deleteUnusedPeer): New function.
  13416. * src/PeerAbstractCommand.h
  13417. (setNoCheck): New function.
  13418. (noCheck): New variable.
  13419. * src/PeerAbstractCommand.cc
  13420. (PeerAbstractCommand): Added the initialization of noCheck.
  13421. (execute): Added a check for noCheck.
  13422. (setNoCheck): New function.
  13423. * src/Util.h
  13424. (stdio.h): Included.
  13425. * src/Util.cc
  13426. (unistd.h): Included.
  13427. * src/DefaultDiskWriter.cc
  13428. (unistd.h): Included.
  13429. * src/Peer.h
  13430. (operator==): Defined the function body here.
  13431. (operator!=): Defined the function body here.
  13432. * src/Peer.cc
  13433. (operator==): Removed.
  13434. (operator!=): Removed.
  13435. * src/Piece.h
  13436. (Piece): Defined the function body here(copy constructor).
  13437. (operator=): Defined the function body here.
  13438. (operator==): Defined the function body here.
  13439. * src/Piece.cc
  13440. (Piece): Removed(copy constructor).
  13441. (operator=): Removed.
  13442. (operator==): Removed.
  13443. * src/PeerMessageUtil.h
  13444. (ChokeMessage.h): Removed.
  13445. (UnchokeMessage.h): Removed.
  13446. (InterestedMessage.h): Removed.
  13447. (NotInterestedMessage.h): Removed.
  13448. (HaveMessage.h): Removed.
  13449. (BitfieldMessage.h): Removed.
  13450. (RequestMessage.h): Removed.
  13451. (CancelMessage.h): Removed.
  13452. (PieceMessage.h): Removed.
  13453. (HandshakeMessage.h): Removed.
  13454. (KeepAliveMessage.h): Removed.
  13455. (PortMessage.h): Removed.
  13456. (HaveAllMessage.h): Removed.
  13457. (HaveNoneMessage.h): Removed.
  13458. (PeerConnection.h): Removed.
  13459. (HandshakeMessage.h): Included.
  13460. * src/BitfieldMessage.h
  13461. (init): New function.
  13462. (BitfieldMessage): Rewritten.
  13463. (BitfieldMessage): New function(overload).
  13464. * src/RequestSlot.h
  13465. (operator=): Defined the function body here.
  13466. (operator==): Defined the function body here.
  13467. * src/RequestSlot.cc
  13468. (operator=): Removed.
  13469. (operator==): Removed.
  13470. To remove the dependency on the PeerMessage subclass from
  13471. PeerInteraction:
  13472. * src/PeerMessageFactory.h: New class.
  13473. * src/PeerMessageFactory.cc: New class.
  13474. * src/SimplePeerMessage.cc
  13475. (send): If invalidate is true then do nothing.
  13476. * src/PeerInteractionCommand.cc
  13477. (HandshakeMessage.h): Included.
  13478. (KeepAliveMessage.h): Included.
  13479. (ChokeMessage.h): Included.
  13480. (UnchokeMessage.h): Included.
  13481. (HaveMessage.h): Included.
  13482. (executeInternal): Call setNoCheck().
  13483. Removed setWriteCheckSocket(socket).
  13484. * src/PeerInteraction.h
  13485. (ChokeMessage.h): Removed.
  13486. (UnchokeMessage.h): Removed.
  13487. (InterestedMessage.h): Removed.
  13488. (NotInterestedMessage.h): Removed.
  13489. (HaveMessage.h): Removed.
  13490. (BitfieldMessage.h): Removed.
  13491. (RequestMessage.h): Removed.
  13492. (CancelMessage.h): Removed.
  13493. (PieceMessage.h): Removed.
  13494. (HandshakeMessage.h): Removed.
  13495. (KeepAliveMessage.h): Removed.
  13496. (PortMessage.h): Removed.
  13497. (HaveAllMessage.h): Removed.
  13498. (HaveNoneMessage.h): Removed.
  13499. (RejectMessage.h): Removed.
  13500. (AllowedFastMessage.h): Removed.
  13501. (SuggestPieceMessage.h): Removed.
  13502. (PeerMessageFactory.h): Included.
  13503. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13504. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13505. (PeerMessageFactory): New variable.
  13506. (createPeerMessage): Removed.
  13507. (createHandshakeMessage): Removed.
  13508. (setPeerMessageCommonProperty): Removed.
  13509. (addRequestSlot): New function.
  13510. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13511. (getPeerMessageFactory): New function.
  13512. (createRequestMessage): Removed.
  13513. (createCancelMessage): Removed.
  13514. (createPieceMessage): Removed.
  13515. (createHaveMessage): Removed.
  13516. (createChokeMessage): Removed.
  13517. (createUnchokeMessage): Removed.
  13518. (createInterestedMessage): Removed.
  13519. (createNotInterestedMessage): Removed.
  13520. (createBitfieldMessage): Removed.
  13521. (createKeepAliveMessage): Removed.
  13522. (createHaveAllMessage): Removed.
  13523. (createHaveNoneMessage): Removed.
  13524. (createRejectMessage): Removed.
  13525. (createAllowedFastMessage): Removed.
  13526. * src/PeerInteraction.cc
  13527. (PeerInteraction): Allocate PeerMessageFactory here.
  13528. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13529. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13530. PieceMessage::ID.
  13531. (addMessage): Simplified by using PeerMessage::onPush().
  13532. (addRequestSlot): New function.
  13533. (rejectAllPieceMessageInQueue): Simplified by using
  13534. PeerMessage::onChoked().
  13535. (rejectPieceMessageInQueue): Simplified by using
  13536. PeerMessage::onCanceled().
  13537. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13538. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13539. (createHandshakeMessage): Removed.
  13540. (createPeerMessage): Removed.
  13541. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13542. (setPeerMessageCommonProperty): Removed.
  13543. (createRequestMessage): Removed.
  13544. (createCancelMessage): Removed.
  13545. (createPieceMessage): Removed.
  13546. (createHaveMessage): Removed.
  13547. (createChokeMessage): Removed.
  13548. (createUnchokeMessage): Removed.
  13549. (createInterestedMessage): Removed.
  13550. (createNotInterestedMessage): Removed.
  13551. (createBitfieldMessage): Removed.
  13552. (createKeepAliveMessage): Removed.
  13553. (createHaveAllMessage): Removed.
  13554. (createHaveNoneMessage): Removed.
  13555. (createRejectMessage): Removed.
  13556. (createAllowedFastMessage): Removed.
  13557. * src/PieceMessage.h
  13558. (createRejectMessage): New function.
  13559. (PieceMessage): Rewritten.
  13560. (onChoked): New function.
  13561. (onCanceled): New function.
  13562. * src/PieceMessage.cc
  13563. (send): If invalidate is true then do nothing, just return.
  13564. (createRejectMessage): New function.
  13565. (onChoked): New function.
  13566. (onCanceled): New function.
  13567. * src/RequestMessage.h
  13568. (RequestMessage): Rewritten.
  13569. (onPush): New function.
  13570. (onAbortPiece): New function.
  13571. * src/RequestMessage.cc
  13572. (onPush): New function.
  13573. (onAbortPiece): New function.
  13574. Update fd_set when a socket is added or deleted in order to improve
  13575. performance:
  13576. * src/DownloadEngine.h
  13577. (rfdset): New variable.
  13578. (wfdset): New variable.
  13579. (updateFdSet): New function.
  13580. * src/DownloadEngine.cc
  13581. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13582. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13583. (waitData): Copy rfdset and wfdset.
  13584. (updateFdSet): New function.
  13585. (addSocket): Call updateFdSet.
  13586. (deleteSocket): Call updateFdSet.
  13587. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13588. To add the support for Metalink3.0 backward compatible links:
  13589. * src/Request.h
  13590. (SAFE_CHARS): Added '#'.
  13591. (METALINK_MARK): New definition.
  13592. * src/Request.cc
  13593. (parseUrl): Added the support for Metalink3.0 backward compatible
  13594. links.
  13595. etc
  13596. * src/PeerInteraction.cc
  13597. (MsgPushBack): Removed.
  13598. (sendMessages): Use STL copy and back_inserter.
  13599. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13600. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13601. * src/TorrentMan.h
  13602. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13603. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13604. * src/SharedHandle.h: New class.
  13605. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13606. * src/HttpResponseCommand.h
  13607. (HttpResponseCommand): Wrapped Socket.
  13608. * src/SocketCore.h
  13609. (operator==): New function.
  13610. (operator!=): New function.
  13611. (operator<): New function.
  13612. (getSockfd): New function.
  13613. (isOpen): New function.
  13614. (writeData): New function.
  13615. * src/SocketCore.cc
  13616. (operator==): New function.
  13617. (operator!=): New function.
  13618. (operator<): New function.
  13619. * src/AbstractCommand.h
  13620. (socket): Changed its type to SocketHandle.
  13621. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13622. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13623. (disableReadCheckSocket): New function.
  13624. (disableWriteCheckSocket): New function.
  13625. (readCheckTarget): Changed its type to SocketHandle.
  13626. (writeCheckTarget): Changed its type to SocketHandle.
  13627. (AbstractCommand): Replaced Socket with SocketHandle.
  13628. * src/AbstractCommand.cc
  13629. (AbstractCommand): Replaced Socket with SocketHandle.
  13630. (~AbstractCommand): Removed the deallocation for Socket object.
  13631. (disableReadCheckSocket): New function.
  13632. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13633. (disableWriteCheckSocket): New function.
  13634. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13635. * src/HttpDownloadCommand.cc
  13636. (DownloadCommand): Replaced Socket with SocketHandle.
  13637. * src/PeerAbstractCommand.h
  13638. (socket): Changed its type to SocketHandle.
  13639. (peer): Changed its type to PeerHandle.
  13640. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13641. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13642. (disableReadCheckSocket): New function.
  13643. (disableWriteCheckSocket): New function.
  13644. (readCheckTarget): Changed its type to SocketHandle.
  13645. (writeCheckTarget): Changed its type to SocketHandle.
  13646. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13647. Replaced Peer with PeerHandle.
  13648. * src/HttpRequestCommand.cc
  13649. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13650. Use disableReadCheckSocket.
  13651. * src/PeerInitiateConnectionCommand.h
  13652. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13653. * src/PeerChokeCommand.cc
  13654. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13655. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13656. (execute): Use PeerHandle.
  13657. * src/PeerConnection.h
  13658. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13659. (socket): Changed its type to SocketHandle.
  13660. (PeerConnection): Replaced Socket with SocketHandle.
  13661. * src/PeerConnection.cc
  13662. (PeerConnection): Replaced Socket with SocketHandle.
  13663. * src/PeerInteractionCommand.h
  13664. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13665. Replaced Peer with PeerHandle.
  13666. * src/PeerInteractionCommand.cc
  13667. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13668. Replaced Peer with PeerHandle.
  13669. (executeInternal): Use disableWriteCheckSocket.
  13670. Use HandshakeMessageHandle.
  13671. (receiveMessages): Use PeerMessageHandle.
  13672. (prepareForNextPeer): Use PeerHandle.
  13673. * src/HttpProxyRequestCommand.h
  13674. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13675. * src/HttpResponseCommand.cc
  13676. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13677. * src/TorrentMan.cc
  13678. (nullPeer): Added external reference.
  13679. (~TorrentMan): Removed the deallocation of the elements of peers.
  13680. (addPeer): Rewritten.
  13681. (isPeerAvailable): Use nullPeer.
  13682. (deleteOldpeers): Replaced with deleteErrorPeer.
  13683. (deleteErrorPeer): New function.
  13684. (getPeer): Use PeerHandle and nullPeer.
  13685. (hasMissingPiece): Replaced Peer with PeerHandle.
  13686. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13687. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13688. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13689. (getMissingPiece): Replaced Peer with PeerHandle.
  13690. * src/FtpNegotiateCommand.cc
  13691. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13692. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13693. (recvGreeting): Use disableWriteCheckSocket.
  13694. (recvPasv): Removed the allocation of Socket.
  13695. Use disableReadCheckSocket.
  13696. (sendRestPasv): Use disableWriteCheckSocket.
  13697. (recvRetr): Changed assertion.
  13698. * src/PeerInteraction.h
  13699. (SharedHandle.h): Included SharedHandle.h.
  13700. (PeerMessageHandle): New type definition.
  13701. (HandshakeMessageHandle): New type definition.
  13702. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13703. (peer): Changed its type to PeerHandle.
  13704. (createHandshakeMessage): Replaced HandshakeMessage with
  13705. HandshakeMessageHandle.
  13706. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13707. (PeerInteraction): Replaced Peer with PeerHandle.
  13708. Replaced Socket with SocketHandle.
  13709. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13710. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13711. (receiveHandshake): Replaced HandshakeMessage with
  13712. HandshakeMessageHandle.
  13713. * src/PeerInteraction.cc
  13714. (PeerInteraction): Replaced Peer with PeerHandle.
  13715. Replaced Socket with SocketHandle.
  13716. (~PeerInteraction): Removed the deallocation of the elements of
  13717. messageQueue.
  13718. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13719. (isSendingMessageInProgress): Replaced PeerMessage with
  13720. PeerMessageHandle.
  13721. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13722. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13723. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13724. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13725. (abortPiece): Use PeerMessageHandle.
  13726. (receiveHandshake): Replaced HandshakeMessage with
  13727. HandshakeMessageHandle. Removed try-catch block.
  13728. (createHandshakeMessage): Replaced HandshakeMessage with
  13729. HandshakeMessageHandle.
  13730. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13731. Removed try-catch block.
  13732. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13733. * src/HttpProxyResponseCommand.cc
  13734. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13735. * src/FtpTunnelResponseCommand.h
  13736. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13737. * src/HttpConnection.cc
  13738. (HttpConnection): Replaced Socket with SocketHandle.
  13739. * src/PeerAbstractCommand.cc
  13740. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13741. (~PeerAbstractCommand): Removed the deallocation of socket.
  13742. Use disableReadCheckSocket, disableWriteCheckSocket.
  13743. (disableReadCheckSocket): New function.
  13744. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13745. (disableWriteCheckSocket): New function.
  13746. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13747. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13748. * src/FtpTunnelRequestCommand.cc
  13749. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13750. (~FtpTunnelRequestCommand): Corrected indentation.
  13751. * src/DownloadCommand.h
  13752. (DownloadCommand): Replaced Socket with SocketHandle.
  13753. * src/PeerListenCommand.cc
  13754. (PeerListenCommand): Removed the initialization of socket.
  13755. (~PeerListenCommand): Removed the deallocation of socket.
  13756. (bindPort): Use SocketHandle.
  13757. (execute): Use SocketHandle and PeerHandle.
  13758. * src/FtpDowndloadCommand.cc
  13759. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13760. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13761. * src/main.cc
  13762. (main): Corrected indentation.
  13763. * src/HttpInitiateConnectionCommand.cc
  13764. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13765. (executeInternal): Removed the allocation of socket.
  13766. * src/HttpRequestCommand.h
  13767. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13768. * src/FtpNegotiationCommand.h
  13769. (dataSocket): Changed its type to SocketHandle.
  13770. (serverSocket): Changed its type to SocketHandle.
  13771. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13772. * src/TorrentMan.h
  13773. (MAX_PEER_UPDATE): Removed.
  13774. (MAX_PEERS): New definition.
  13775. (Peers): The element is now of type PeerHandle.
  13776. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13777. (getPeer): Replaced Peer with PeerHandle.
  13778. (deleteOldErrorPeers): Removed.
  13779. (deleteErrorPeer): New function.
  13780. (hasMissingPiece): Replaced Peer with PeerHandle.
  13781. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13782. (getMissingPiece): Replaced Peer with PeerHandle.
  13783. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13784. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13785. (addActivePeer): Replaced Peer with PeerHandle.
  13786. (deleteActivePeer): Replaced Peer with PeerHandle.
  13787. Added a check for the return value of find.
  13788. * src/FtpTunnelResponseCommand.cc
  13789. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13790. * src/FtpInitiateConnectionCommand.cc
  13791. (executeInternal): Removed the allocation of socket.
  13792. * src/DownloadEngine.h
  13793. (Sockets): An element is now of type SocketHandle.
  13794. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13795. (CommandUuids): New type definition.
  13796. (rsockets): Changed its type to SockCmdMap.
  13797. (wsockets): Changed its type to SockCmdMap.
  13798. (addSocket): Rewritten.
  13799. (deleteSocket): Rewritten.
  13800. (addSocketForReadCheck): Rewritten.
  13801. (deleteSocketForReadCheck): Rewritten.
  13802. (addSocketForWriteCheck): Rewritten.
  13803. (deleteSocketForWriteCheck): Rewritten.
  13804. (PairFind): New template class.
  13805. * src/HttpDownloadCommand.h
  13806. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13807. * src/FtpConnection.cc
  13808. (FtpConnection): Replaced Socket with SocketHandle.
  13809. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13810. block.
  13811. * src/InitiateConnectionCommandFactory.cc
  13812. (DlAbortEx.h): Included DlAbortEx.h.
  13813. (createInitiateConnectionCommand): Throw exception if the protocol of
  13814. requested URI is not supported.
  13815. * src/Peer.cc
  13816. (nullPeer): Changed its type to PeerHandle.
  13817. (operator==): New function.
  13818. (operator!=): New function.
  13819. * src/Peer.h
  13820. (SharedHandle.h): Included SharedHandle.h.
  13821. (operator==): New function.
  13822. (operator!=): New function.
  13823. (Peer): Added the default constructor.
  13824. Use resetStatus() to initialize member variables.
  13825. (nullPeer): Removed.
  13826. * src/TrackerUpdateCommand.cc
  13827. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13828. with MIN_PEERS.
  13829. * src/PeerListenCommand.h
  13830. (socket): Changed its type to SocketHandle.
  13831. * src/Command.h
  13832. (CommandUuid): New type definition.
  13833. (uuid): New variable.
  13834. (uuidGen): New variable.
  13835. (Command): Added the initialization of uuid.
  13836. (getUuid): New function.
  13837. * src/Socket.h
  13838. (Socket): Removed.
  13839. (SocketHandle): New type definition.
  13840. * src/DownloadEngine.h
  13841. (FindCommand): New function object.
  13842. (run): The portion of socket check was rewritten.
  13843. (SetDescriptor): New function object.
  13844. (AccumulateActiveCommandUuid): New function object.
  13845. (waitData): Rewritten.
  13846. (addSocket): Rewritten.
  13847. (deleteSocket): Rewritten.
  13848. (addSocketForReadCheck): Rewritten.
  13849. (addSocketForWriteCheck): Rewritten.
  13850. (deleteSocketForReadCheck): Rewritten.
  13851. (deleteSocketForWriteCheck): Rewritten.
  13852. * src/HttpProxyResponseCommand.h
  13853. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13854. * src/HttpConnection.h
  13855. (socket): Changed its type to SocketHandle.
  13856. (HttpConnection): Replaced Socket with SocketHandle.
  13857. * src/PeerInitiateConnectionCommand.cc
  13858. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13859. (executeInternal): Removed the allocation of socket.
  13860. (prepareForNextPeer): Use PeerHandle.
  13861. * src/PeerMessage.h
  13862. (peer): Changed its type to PeerHandle.
  13863. (getPeer): Replaced Peer with PeerHandle.
  13864. (setPeer): Replaced Peer with PeerHandle.
  13865. * src/DownloadCommand.cc
  13866. (DownloadCommand): Replaced Socket with SocketHandle.
  13867. * src/FtpConnection.h
  13868. (socket): Changed its type to SocketHandle.
  13869. (FtpConnection): Replaced Socket with SocketHandle.
  13870. (sendPort); Replaced Socket with SocketHandle.
  13871. * src/FtpDowndloadCommand.h
  13872. (ctrlSocket): Changed its type to SocketHandle.
  13873. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13874. * src/HttpProxyRequestCommand.cc
  13875. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13876. * src/FtpTunnelRequestCommand.h
  13877. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13878. etc
  13879. * src/PeerChokeCommand.h
  13880. (setAllPeerChoked): Removed.
  13881. (setAllPeerResetDelta): Removed.
  13882. * src/PeerChokeCommand.cc
  13883. (setAllPeerChoked): Removed.
  13884. (ChokePeer): New function object.
  13885. (setAllPeerResetDelta): Removed.
  13886. (ResetDelta): New function object.
  13887. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13888. (execute): Show download speed when the local node is a seeder.
  13889. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13890. using STL.
  13891. * src/TrackerWatcherCommand.h
  13892. (MIN_PEERS): Removed.
  13893. * src/TorrentMan.cc
  13894. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13895. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13896. To fix the bug that .aria2 file is not saved if downloading is stopped
  13897. by the errors:it results that aria2 can not resume downloading:
  13898. * src/main.cc
  13899. (normalDownload): Added the call to save().
  13900. (main): Added the deletion of the elements in 'reserved'.
  13901. To fix log:
  13902. * src/PeerInteraction.cc
  13903. (receiveHandshake): Fixed log.
  13904. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13905. To improve download performance in BitTorrent:
  13906. * src/TorrentMan.cc
  13907. (getPeer): Check the number of connections. Return nullPeer if
  13908. it is greater than MAX_PEER_UPDATE.
  13909. This code was originally here, but was removed in 0.5.1.
  13910. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13911. To improve the conditional compilation:
  13912. * src/MultiDiskWriter.h:
  13913. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13914. * src/MultiDiskWriter.cc:
  13915. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13916. * src/Util.h:
  13917. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13918. Added ENABLE_BITTORRENT around computeFastSet().
  13919. * src/Util.cc:
  13920. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13921. Added ENABLE_BITTORRENT around computeFastSet().
  13922. * src/messageDigest.h:
  13923. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13924. * src/ShaVisitor.h:
  13925. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13926. * src/ShaVisitor.cc:
  13927. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13928. * src/main.cc:
  13929. Added ENABLE_BITTORRENT around includes and blocks related to
  13930. BitTorrent.
  13931. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13932. digest support is not available.
  13933. * src/AbstractDiskWriter.h:
  13934. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13935. * src/AbstractDiskWriter.cc:
  13936. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13937. * src/MetalinkEntry.cc
  13938. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13939. support is not available.
  13940. To add command-line options for Metalink:
  13941. * src/main.cc:
  13942. Added metalink-version, metalink-language, metalink-os,
  13943. follow-metalink.
  13944. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13945. * src/main.cc: Use these definition.
  13946. * Release 0.6.0
  13947. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13948. To add Metalink support(http/ftp only):
  13949. * src/AbstractCommand.h
  13950. (tryReserved): New function.
  13951. * src/AbstractCommand.cc
  13952. (execute): Call tryReserved().
  13953. (tryReserved): New function.
  13954. * src/Request.h
  13955. (Requests): New type definition.
  13956. * src/SegmentMan.h
  13957. (reserved): New variable.
  13958. * src/Util.h
  13959. (fileChecksum): New function.
  13960. (toUpper): New function.
  13961. (toLower): New function.
  13962. * src/Util.cc
  13963. (messageDigest.h): Included.
  13964. (trim): Trim \r\n\t.
  13965. (fileChecksum): New function.
  13966. (toUpper): New function.
  13967. (toLower): New function.
  13968. * src/main.cc
  13969. (normalDownload): New function.
  13970. (main): Added 2 command-line options: metalink-file,
  13971. metalink-connection. Their usage has not been written yet.
  13972. * src/MetalinkProcessor.h: New class.
  13973. * src/Xml2MetalinkProcessor.h: New class.
  13974. * src/Xml2MetalinkProcessor.cc: New class.
  13975. * src/MetalinkEntry.h: New class.
  13976. * src/MetalinkEntry.cc: New class.
  13977. * src/MetalinkResource.h: New class.
  13978. * src/MetalinkResource.cc: New class.
  13979. To add md5 message digest checking:
  13980. * src/messageDigest.h: Rewritten.
  13981. * src/MultiDiskWriter.cc: Updated according to the changes in
  13982. messageDigest.h.
  13983. * src/ShaVisitor.cc: Updated according to the changes in
  13984. messageDigest.h.
  13985. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13986. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13987. messageDigest.h.
  13988. To fix a bug that causes segfault when the payload length in peer
  13989. message is less than 0:
  13990. * src/PeerConnection.cc:
  13991. (receiveMessage): Fixed the bug.
  13992. * src/PeerMessageUtil.cc
  13993. (checkLength): Throw an exception if length is less than or equals to
  13994. 0.
  13995. To add new interfaces to Base64 encoding/decoding:
  13996. * src/Base64.h
  13997. (part_encode): Changed the method signature.
  13998. (encode): New function(overload).
  13999. (decode): New function(overload).
  14000. * src/Base64.cc
  14001. (part_encode): Rewritten.
  14002. (encode): Rewritten.
  14003. (encode): New function(overload).
  14004. To prevent a peer to download same piece if there is an error in
  14005. checksum:
  14006. * src/PieceMessage.cc
  14007. (receivedAction): Call peerInteraction->abortPiece().
  14008. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14009. To fix the bug that causes same have message is sent many times to
  14010. a single peer.
  14011. * src/Time.cc
  14012. (isNewer): Use Util::difftv().
  14013. * src/Util.cc
  14014. (difftv): Added a cast to (long long int).
  14015. * src/TorrentMan.cc
  14016. (advertisePiece): Use push_front.
  14017. (getAdvertisedPieceIndexes): A performance improvement was made.
  14018. To fix the bug that sends tracker requests without a sleep interval
  14019. when the number of connections is less than 15.
  14020. * src/TrackerWatcherCommand.cc
  14021. (execute): Now the number of connections is not a factor to decide
  14022. whether or not a tracker request should be sent or not.
  14023. * src/Time.h
  14024. (setTimeInSec): New function.
  14025. * src/Time.cc
  14026. (setTimeInSec): New function.
  14027. etc.
  14028. * src/ChokeMessage.cc
  14029. (receivedAction): Removed peer->snubbing = false
  14030. * src/PeerConnection.h
  14031. (receiveHandshake): Updated doc.
  14032. * src/TorrentMan.h
  14033. (getAdvertisedPieceIndexes): Updated the method signature.
  14034. * src/TorrentMan.cc
  14035. (getAdvertisedPieceIndexes): Updated the method signature.
  14036. * src/Time.h
  14037. (getTimeInMicros): Added a cast to (long long int).
  14038. (getTimeInMillis): Added a cast to (long long int).
  14039. * Release 0.5.2
  14040. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14041. To make a listening socket non-block:
  14042. * src/SocketCore.h
  14043. (setNonBlockingMode): New function.
  14044. * src/SocketCore.cc
  14045. (setNonBlockingMode): New function.
  14046. (beginListen): Added a call to setNonBlockingMode().
  14047. (acceptConnection): Call setNonBlockingMode().
  14048. (setBlockingMode): Updated.
  14049. To handle tracker's NAT-checking:
  14050. * src/PeerConnection.cc
  14051. (receiveHandshake): 'msg' param is filled with received data and
  14052. its length is assigned to 'length' param, even if all handshake
  14053. message is not yet received.
  14054. * src/PeerInteractionCommand.cc
  14055. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14056. a new peer connects to localhost.
  14057. A call to peerInteraction->sendHandshake() was removed because
  14058. it is called from peerInteraction->receiveHandshake(true).
  14059. * src/PeerInteraction.h
  14060. (quickReplied): New variable.
  14061. (receiveHandshake): Added an argument.
  14062. * src/PeerInteraction.cc
  14063. (PeerInteraction): Added the initialization of quickReplied.
  14064. (receiveHandshake): Send handshake message as soon as the info hash
  14065. in a handshake message from a peer is correct.
  14066. To change the random part of peer id and key parameter:
  14067. * src/TorrentMan.h
  14068. (key): New variable.
  14069. * src/TorrentMan.cc
  14070. (setupInternal1): Use Util::randomAlpha() to generate random part
  14071. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14072. key is also generated by Util::randomAlpha() and it is now 8 character
  14073. long.
  14074. * src/Util.h
  14075. (randomAlpha): New function.
  14076. * src/Util.cc
  14077. (randomAlpha): New function.
  14078. * src/TrackerWatcherCommand.cc
  14079. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14080. Added no_peer_id=1.
  14081. Set snubbing flag to false when a choke message is received from a
  14082. snubbed peer.
  14083. * src/ChokeMessage.cc
  14084. (receivedAction): Set snubbing flag to false.
  14085. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14086. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14087. * src/SimpleLogger.h (writeHeader): New function.
  14088. * src/SimpleLogger.cc (writeHeader): New function.
  14089. (writeLog): Fixed the bug that causes segfaults if exception message
  14090. contains an unescaped "%" character.
  14091. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14092. when a tracker request fails.
  14093. * src/Request.cc (parseUrl): Query string is now handled properly.
  14094. * Release 0.5.1
  14095. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14096. To add Time class which represents a specific instant in time and
  14097. its precision is microseconds. Time checking procedures were rewritten
  14098. using this object.
  14099. * src/Time.h: New class.
  14100. * src/Time.cc: New class.
  14101. * src/AbstractCommand.h
  14102. (updateCheckPoint): Removed.
  14103. (isTimeoutDetected): Removed.
  14104. (checkPoint): Changed the type to Time.
  14105. (timeout): New variable.
  14106. (setTimeout): New function.
  14107. * src/AbstractCommand.cc
  14108. (AbstractCommand): Removed the initialization of checkPoint.
  14109. Added the initialization of timeout.
  14110. (updateCheckPoint): Removed.
  14111. (isTimeoutDetected): Removed.
  14112. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14113. * src/PeerChokeCommand.h
  14114. (checkPoint): Changed the type to Time.
  14115. * src/PeerChokeCommand.cc
  14116. (PeerChokeCommand): Removed the initialization of checkPoint.
  14117. (execute): Rewritten using Time object.
  14118. * src/TrackerWatcherCommand.h
  14119. (checkPoint): Changed the type to Time.
  14120. * src/TrackerWatcherCommand.cc
  14121. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14122. (execute): Rewritten.
  14123. * src/ConsoleDownloadEngine.h
  14124. (cp): Changed the type to Time.
  14125. (startup): Changed the type to Time.
  14126. * src/ConsoleDownloadEngine.cc
  14127. (initStatistics): Use cp.reset(), startup.reset().
  14128. (calculateStatistics): Rewritten using Time object.
  14129. * src/PeerAbstractCommand.h
  14130. (updateCheckPoint): Removed.
  14131. (isTimeoutDetected): Removed.
  14132. (checkPoint): Changed the type to Time.
  14133. * src/PeerAbstractCommand.cc
  14134. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14135. (updateCheckPoint): Removed.
  14136. (isTimeoutDetected): Removed.
  14137. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14138. * src/PeerInteractionCommand.cc
  14139. (PeerInteractionCommand): Removed the initializations of struct
  14140. timeval variables.
  14141. * src/PeerInteractionCommand.h
  14142. (keepAliveCheckPoint): Changed the type to Time.
  14143. (chokeCheckPoint): Changed the type to Time.
  14144. (freqCheckPoint): Changed the type to Time.
  14145. (haveCheckTime): Changed the type to Time.
  14146. * src/PeerInteractionCommand.cc
  14147. (executeInternal): Rewritten using Time object.
  14148. (detectMessageFlooding): Rewritten using Time object.
  14149. (checkLongTimePeerChoking): Rewritten using Time object.
  14150. (sendKeepAlive): Rewritten using Time object.
  14151. (checkHave): Rewritten using Time object.
  14152. * src/SleepCommand.h
  14153. (checkPoint): Changed the type to Time.
  14154. * src/SleepCommand.cc
  14155. (SleepCommand): Removed the initialization of checkPoint.
  14156. (execute): Rewritten using Time object.
  14157. * src/TorrentAutoSaveCommand.h
  14158. (checkPoint): Changed the type to Time.
  14159. * src/TorrentAutoSaveCommand.cc
  14160. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14161. (execute): Rewritten.
  14162. * src/DownloadCommand.h
  14163. (sw): Changed the type to Time.
  14164. * src/DownloadCommand.cc
  14165. (DownloadCommand): Removed the initialization of sw.
  14166. (executeInternal): Rewritten.
  14167. * src/RequestSlot.h
  14168. (dispatchedTime): Changed the type to Time.
  14169. * src/RequestSlot.cc
  14170. (RequestSlot): Removed the call to setDispatchedTime().
  14171. (setDispatchedTime): Rewirtten.
  14172. (isTimeout): Rewritten.
  14173. (getLatencyInMillis): Rewritten.
  14174. * src/TorrentDownloadEngine.h
  14175. (cp): Changed the type to Time[2].
  14176. (startup): Changed the type to Time.
  14177. * src/TorrentDownloadEngine.cc
  14178. (initStatistics): Rewritten.
  14179. (calculateStatistics): Rewritten.
  14180. * src/DownloadEngine.cc
  14181. (run): Rewritten.
  14182. To detect all attempts to connect to the tracker are failed:
  14183. * src/AbstractCommand.cc
  14184. (execute): Increment e->segmentMan->errors if a command aborted.
  14185. * src/SegmentMan.h
  14186. (errors): New variable.
  14187. * src/SegmentMan.cc
  14188. (SegmentMan): Added the initialization of errors.
  14189. (init): Added the initialization of errors.
  14190. * src/TrackerWatcherCommand.cc
  14191. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14192. request was failed.
  14193. To handle snubbed peers:
  14194. * src/PeerChokeCommand.cc
  14195. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14196. (execute): Snubbed peers don't get unchoked.
  14197. * src/PeerInteraction.h
  14198. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14199. * src/PeerInteraction.cc
  14200. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14201. back the requested 16k block in 60 seconds.
  14202. * src/PieceMessage.cc
  14203. (receivedAction): A peer's snubbed state is cleard if it sends
  14204. the requested 16k block in 60 seconds.
  14205. * src/Peer.h
  14206. (snubbing): New variable.
  14207. * src/Peer.cc
  14208. (resetStatus): Added snubbed = false.
  14209. To fix the bug that causes have message is not sent:
  14210. * src/PeerInteractionCommand.cc
  14211. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14212. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14213. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14214. * src/TorrentMan.h
  14215. (HaveEntry): New class.
  14216. (advertisePiece): Rewritten.
  14217. (getAdvertisedPieceIndexes): Rewritten.
  14218. (Haves): Changed the type.
  14219. (getAdvertisedPieceIndexes): Added an argument.
  14220. Others:
  14221. * src/TorrentMan.h
  14222. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14223. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14224. * src/TorrentMan.cc
  14225. (getPeer): Don't check the number of connections here.
  14226. (setupInternal1): Changed peerId.
  14227. * src/PeerInteractionCommand.h
  14228. (KEEP_ALIVE_INTERVAL): New definition.
  14229. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14230. * src/main.cc
  14231. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14232. * src/DownloadEngine.h: Removed unnecessary header includes.
  14233. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14234. To fix the bug that causes segfaults if a tracker returns a zero-length
  14235. list as "peers":
  14236. * src/TrackerUpdateCommand.cc
  14237. (execute): Added a check to see wether the type of peers is Data*.
  14238. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14239. * Release 0.5.0
  14240. To fix compile issue with gcc3:
  14241. * src/CancelMessage.h
  14242. (ID): Renamed as ID_t
  14243. (ID_t): New enum.
  14244. * src/RejectMessage.h
  14245. (ID): Renamed as ID_t
  14246. (ID_t): New enum.
  14247. * src/SuggestPieceMessage.h
  14248. (ID): Renamed as ID_t
  14249. (ID_t): New enum.
  14250. * src/AllowedFastMessage.h
  14251. (ID): Renamed as ID_t
  14252. (ID_t): New enum.
  14253. * src/PortMessage.h
  14254. (ID): Renamed as ID_t
  14255. (ID_t): New enum.
  14256. * src/HaveNoneMessage.h
  14257. (ID): Renamed as ID_t
  14258. (ID_t): New enum.
  14259. * src/KeepAliveMessage.h
  14260. (ID): Renamed as ID_t
  14261. (ID_t): New enum.
  14262. * src/HaveAllMessage.h
  14263. (ID): Renamed as ID_t
  14264. (ID_t): New enum.
  14265. * src/UnchokeMessage.h
  14266. (ID): Renamed as ID_t
  14267. (ID_t): New enum.
  14268. * src/BitfieldMessage.h
  14269. (ID): Renamed as ID_t
  14270. (ID_t): New enum.
  14271. * src/PieceMessage.h
  14272. (ID): Renamed as ID_t
  14273. (ID_t): New enum.
  14274. * src/RequestMessage.h
  14275. (ID): Renamed as ID_t
  14276. (ID_t): New enum.
  14277. * src/NotInterestedMessage.h
  14278. (ID): Renamed as ID_t
  14279. (ID_t): New enum.
  14280. * src/ChokeMessage.h
  14281. (ID): Renamed as ID_t
  14282. (ID_t): New enum.
  14283. * src/InterestedMessage.h
  14284. (ID): Renamed as ID_t
  14285. (ID_t): New enum.
  14286. * src/HaveMessage.h
  14287. (ID): Renamed as ID_t
  14288. (ID_t): New enum.
  14289. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14290. * src/PeerAbstractCommand.h
  14291. (beforeSocketCheck): Removed.
  14292. * src/PeerAbstractCommand.cc
  14293. Modified in order to call executeInternal() even if socket check
  14294. and upload limit check fail.
  14295. * src/PeerInteractionCommand.h
  14296. (keepAlive): Removed.
  14297. (sendKeepAlive): New function.
  14298. (checkHave): New function.
  14299. (beforeSocketCheck): Removed.
  14300. * src/PeerInteractionCommand.cc
  14301. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14302. calls to checkHave() and sendKeepAlive().
  14303. (keepAlive): Renamed to sendKeepAlive().
  14304. (sendKeepAlive): New function.
  14305. (beforeSocketCheck): Removed.
  14306. (checkHave): New function.
  14307. * src/BitfieldMan.cc
  14308. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14309. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14310. 0.
  14311. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14312. * src/TorrentMan.h
  14313. (UsedPieces): Removed.
  14314. (Pieces): New type definition.
  14315. * src/Piece.h: Updated doc.
  14316. * src/Peer.h
  14317. (totalLength): Removed.
  14318. * src/Peer.cc
  14319. (updateLatency): Fixed the latency calculation.
  14320. * src/TorrentMan.cc
  14321. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14322. than or equal to MAX_PEER_LIST_SIZE.
  14323. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14324. then return false.
  14325. (deleteOldErrorPeers): Rewritten.
  14326. (deleteUsedPiece): Fixed the miss use of STL remove.
  14327. * src/PeerInteraction.h
  14328. (Pieces): Removed.
  14329. (deleteTimeoutRequestSlot): Removed.
  14330. (deleteCompletedRequestSlot): Removed.
  14331. (checkRequestSlot): New function.
  14332. * src/PeerInteraction.cc
  14333. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14334. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14335. (checkRequestSlot): New function.
  14336. * src/DownloadEngine.cc
  14337. (run): Clear activeSockets before calling waitData().
  14338. (waitData): Removed a call to activeSockets.clear().
  14339. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14340. To attempt to handle EINTR:
  14341. * src/SocketCore.cc
  14342. (isReadable): Added EINTR handling.
  14343. (isWritable): Added EINTR handling.
  14344. To improve the performance:
  14345. * src/AbstractCommand.cc
  14346. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14347. * src/PeerInteractionCommand.h
  14348. (receiveMessage): Renamed as receiveMessages().
  14349. (receiveMessages): New function.
  14350. * src/PeerInteractionCommand.cc
  14351. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14352. () function. detectMessageFlooding() is moved here.
  14353. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14354. (). The flooding detection for have message is comment out.
  14355. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14356. Util::difftv().
  14357. (receiveMessage): Renamed as receiveMessages().
  14358. (receiveMessages): New function.
  14359. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14360. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14361. * src/SleepCommand.cc
  14362. (execute): Use Util::difftvsec() instead of Util::difftv().
  14363. * src/BitfieldMan.h
  14364. (getNthBitIndex): New function.
  14365. (hasMissingPiece): New function.
  14366. (getAllMissingIndexes): New function.
  14367. * src/BitfieldMan.cc
  14368. (countSetBit): Rewritten.
  14369. (getNthBitIndex): New function.
  14370. (getMissingIndexRandomly): Rewritten.
  14371. (hasMissingPiece): New function.
  14372. (getAllMissingIndexes): New function.
  14373. * src/TorrentMan.cc
  14374. (hasMissingPiece): New function.
  14375. (deleteUsedPiece): Rewritten using STL.
  14376. * src/PeerInteraction.cc
  14377. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14378. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14379. (addRequests): Updated the number of pending requests.
  14380. * src/PeerAbstractCommand.cc
  14381. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14382. (execute): Returns true if TorrentMan::isHalt() is true.
  14383. Corrected the condition of upload limit checking.
  14384. * src/Util.h
  14385. (countBit): New function.
  14386. * src/Util.cc
  14387. (nbits): New variable.
  14388. (countBit): New function.
  14389. * src/DownloadEngine.h
  14390. (SockCmdMap): New type definition.
  14391. (waitData): Added an argument.
  14392. (addSocket): Added an argument.
  14393. (addSocketForReadCheck): Added an argument.
  14394. (addSocketForWriteCheck): Added an argument.
  14395. * src/DownloadEngine.cc
  14396. (run): Executes only commands whose sockets are ready to read or write.
  14397. All commands are executed in every 1 second.
  14398. (waitData): Calls select() again if it returned
  14399. EINTR.
  14400. (addSocket): Saves socket and command object pair to the map.
  14401. (deleteSocket): Deletes socket and command object pair from the map.
  14402. (addSocketForReadCheck): Added an argument.
  14403. (addSocketForWriteCheck): Added an argument.
  14404. * src/DownloadCommand.cc
  14405. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14406. To send "event=stopped" to the tracker when the application finishes:
  14407. * src/PeerChokeCommand.h
  14408. (checkPoint): New variable.
  14409. * src/PeerChokeCommand.cc
  14410. (PeerChokeCommand): Added the initialization of checkPoint.
  14411. (execute): The interval check is now done by checkPoint, not
  14412. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14413. * src/TorrentMan.h
  14414. (halt): New function.
  14415. (hasMissingPiece): New function.
  14416. (isHalt): New function.
  14417. (setHalt): New function.
  14418. * src/TorrentMan.cc
  14419. (TorrentMan): Added the initialization of halt.
  14420. * src/TorrentAutoSaveCommand.h
  14421. (checkPoint): New variable.
  14422. * src/PeerListenCommand.cc
  14423. (execute): Returns true if TorrentMan::isHalt() is true.
  14424. * src/main.cc
  14425. (setSignalHander): Added flags argument.
  14426. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14427. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14428. Removed printDownloadAbortMessage() after torrent downloading loop.
  14429. * src/TorrentAutoSaveCommand.cc
  14430. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14431. (execute): Returns true if TorrentMan::isHalt() is true.
  14432. The interval check is now done by checkPoint, not SleepCommand.
  14433. * src/TrackerWatcherCommand.cc
  14434. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14435. event=stopped.
  14436. * src/TrackerUpdateCommand.cc
  14437. (prepareForRetry): Do not use SleepCommand here.
  14438. (execute): Returns true if TorrentMan::isHalt() is true.
  14439. Others:
  14440. * src/TorrentMan.cc
  14441. (getMissingPieceIndex): Updated log message.
  14442. * src/PeerInteraction.cc
  14443. (createPeerMessag): Updated log message.
  14444. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14445. To add the ability to download several pieces in mix in a command and
  14446. increase the number of request slots according to request-cancel
  14447. latency:
  14448. * src/PeerInteractionCommand.cc
  14449. (executeInternal): The number of messages to be received at a time
  14450. is increased from 10 to 50.
  14451. * src/LogFactory
  14452. (getInstance): Added NullLogger.
  14453. * src/NullLogger.h: New class.
  14454. * src/BitfieldMan.h
  14455. (getMissingIndex): New function.
  14456. * src/BitfieldMan.cc
  14457. (getMissingIndex): New function.
  14458. * src/TorrentMan.h
  14459. (checkOutPiece): New function.
  14460. (getMissingPieceIndex): New function.
  14461. (getMissingFastPieceIndex): New function.
  14462. (getMissingFastPiece): New function.
  14463. * src/TorrentMan.cc
  14464. (updatePiece): Rewritten using STL.
  14465. (syncPiece): Rewritten using STL.
  14466. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14467. checkOutPiece().
  14468. (getMissingPieceIndex): New function.
  14469. (getMissingFastPieceIndex): New function.
  14470. (getMissingFastPiece): New function.
  14471. (checkOutPiece): New function.
  14472. * src/PeerInteraction.h
  14473. (Pieces): New type definition.
  14474. (piece): Removed.
  14475. (pieces): New variable.
  14476. (getNewPieceAndSendInterest): Added the "piece" argument.
  14477. (abortPiece): Added the "piece" argument.
  14478. (abortAllPieces): New function.
  14479. (isInRequestSlot): New function.
  14480. (hasDownloadPiece): Added the "index" argument.
  14481. (setDownloadPiece): Removed.
  14482. (getDownloadPiece): Added the "index" argument.
  14483. (updatePiece): New function.
  14484. (createRequestMessage): Added the "index" argument.
  14485. * src/PeerInteraction.cc
  14486. (onChoked): Rewritten.
  14487. (abortPiece): Rewirtten.
  14488. (abortAllPieces): New function.
  14489. (deleteTimeoutRequestSlot): Rewritten.
  14490. Clarified code a little bit.
  14491. (deleteCompletedRequestSlot): Rewritten.
  14492. (isInRequestSlot): New function.
  14493. (syncPiece): Rewritten.
  14494. (updatePiece): New function.
  14495. (getNewPieceAndSendInterest): Rewritten.
  14496. (addRequests): Rewritten.
  14497. (getDownloadPiece): Rewritten.
  14498. (hasDownloadPiece): Rewritten.
  14499. (createRequestMessage): Added the "index" argument.
  14500. * src/common.h
  14501. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14502. (DIV_FLOOR): New definition.
  14503. * src/PieceMessage.cc
  14504. (receivedAction): Update request-piece latency here.
  14505. * src/RequestSlot.h
  14506. (getLatencyInMillis): New function.
  14507. * src/RequestSlot.cc
  14508. (isTimeout): Rewritten using getLatencyInMillis.
  14509. (getLatencyInMillis): New function.
  14510. * src/Piece.h
  14511. (operator==): New function.
  14512. (getMissingBlockIndex): New function.
  14513. * src/Piece.cc
  14514. (operator==): New function.
  14515. (getMissingBlockIndex): New function.
  14516. * src/Peer.h
  14517. (DEFAULT_LATENCY): New definition.
  14518. (latency): New variable.
  14519. (updateLatency): New function.
  14520. (getLatency): New function.
  14521. * src/Peer.cc
  14522. (resetStatus): Reset latecy.
  14523. (updateLatency): New function.
  14524. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14525. * src/SocketCore.cc
  14526. (isReadable): Added secure to the condition.
  14527. * src/HttpConnection.cc
  14528. (receiveResponse): Fixed a bug that causes no response header
  14529. exception.
  14530. * src/Peer.h
  14531. (getFastSet): Fixed the return value type.
  14532. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14533. To remove a wait from download loop:
  14534. * src/DownloadEngine.cc
  14535. (run): Comment out shortSleep.
  14536. To rewrite the message handling:
  14537. * src/SimplePeerMessage.h: New class.
  14538. * src/SimplePeerMessage.cc: New class.
  14539. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14540. (msg): New variable.
  14541. (create): New function.
  14542. (send): Removed.
  14543. (getMessage): New function.
  14544. (getMessageLength): New function.
  14545. * src/CancelMessage.cc
  14546. (create): New function.
  14547. (receivedAction): Replaced deleteRequestMessageInQueue with
  14548. rejectPieceMessageInQueue.
  14549. (send): Removed.
  14550. (getMessage): New function.
  14551. (getMessageLength): New function.
  14552. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14553. (msg): New variable.
  14554. (msgLength): New variable.
  14555. (~BitfieldMessage): Deleted msg.
  14556. (send): Removed.
  14557. (getMessage): New function.
  14558. (getMessageLength): New function.
  14559. * src/BitfieldMessage.cc
  14560. (create): New function.
  14561. (send): Removed.
  14562. (getMessage): New function.
  14563. (getMessageLength): New function.
  14564. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14565. (msg): New variable.
  14566. (sendPredicate): New function.
  14567. (onSendComplete): New function.
  14568. (send): Removed.
  14569. (getMessage): New function.
  14570. (getMessageLength): New function.
  14571. (create): New function.
  14572. * src/ChokeMessage.cc
  14573. (create): New function.
  14574. (send): Removed.
  14575. (sendPredicate): New function.
  14576. (getMessage): New function.
  14577. (getMessageLength): New function.
  14578. (onSendComplete): New function.
  14579. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14580. (msg): New variable.
  14581. (send): Removed.
  14582. (getMessage): New function.
  14583. (getMessageLength): New function.
  14584. * src/KeepAliveMessage.cc
  14585. (send): Removed.
  14586. (getMessage): New function.
  14587. (getMessageLength): New function.
  14588. * src/PortMessage.h
  14589. (create): New function.
  14590. (receivedAction): Updated log message.
  14591. * src/PortMessage.cc: New file.
  14592. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14593. (msg): New variable.
  14594. (sendPredicate): New function.
  14595. (onSendComplete): New function.
  14596. (create): New function.
  14597. (send): Removed.
  14598. (getMessage): New function.
  14599. (getMessageLength): New function.
  14600. * src/UnchokeMessage.cc
  14601. (create): New function.
  14602. (send): Removed.
  14603. (sendPredicate): New function.
  14604. (getMessage): New function.
  14605. (getMessageLength): New function.
  14606. (onSendComplete): New function.
  14607. * src/PieceMessage.h
  14608. (leftPieceDataLength): Removed.
  14609. (leftDataLength): New variable.
  14610. (headerSend): New variable.
  14611. (pendingCount): New variable.
  14612. (msgHeader): New variable.
  14613. (sendPieceData): New function.
  14614. (incrementPendingCount): New function.
  14615. (isPendingCountMax): New function.
  14616. (create): New function.
  14617. (getMessageHeader): New function.
  14618. (getMessageHeaderLength): New function.
  14619. * src/PieceMessage.cc
  14620. (create): New function.
  14621. (getMessageHeader): New function.
  14622. (getMessageHeaderLength): New function.
  14623. (send): Rewritten.
  14624. (sendPieceData): New function.
  14625. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14626. (msg): New variable.
  14627. (create): New function.
  14628. (getMessage): New function.
  14629. (getMessageLength): New function.
  14630. * src/HaveMessage.cc
  14631. (create): New function.
  14632. (send): Removed.
  14633. (sendPieceData): New function.
  14634. (getMessage): New function.
  14635. (getMessageLength): New function.
  14636. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14637. (msg): New variable.
  14638. (create): New function.
  14639. (send): Removed.
  14640. (getMessage): New function.
  14641. (getMessageLength): New function.
  14642. * src/RequestMessage.cc
  14643. (create): New function.
  14644. (receivedAction): Added the handling of fast extension.
  14645. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14646. (send): Removed.
  14647. (getMessage): New function.
  14648. (getMessageLength): New function.
  14649. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14650. (msg): New variable.
  14651. (sendPredicate): New function.
  14652. (onSendComplete): New function.
  14653. (create): New function.
  14654. (getMessage): New function.
  14655. (getMessageLength): New function.
  14656. * src/InterestedMessage.cc
  14657. (create): New function.
  14658. (send): Removed.
  14659. (sendPieceData): New function.
  14660. (getMessage): New function.
  14661. (getMessageLength): New function.
  14662. (onSendComplete): New function.
  14663. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14664. (msg): New variable.
  14665. (sendPieceData): New function.
  14666. (onSendComplete): New function.
  14667. (create): New function.
  14668. (send): Removed.
  14669. (getMessage): New function.
  14670. (getMessageLength): New function.
  14671. * src/NotInterestedMessage.cc
  14672. (create): New function.
  14673. (send): Removed.
  14674. (sendPredicate): New function.
  14675. (getMessage): New function.
  14676. (getMessageLength): New function.
  14677. (onSendComplete): New function.
  14678. * src/AllowedFastMessage.h: New class.
  14679. * src/AllowedFastMessage.cc: New class.
  14680. * src/RejectMessage.h: New class.
  14681. * src/RejectMessage.cc: New class.
  14682. * src/SuggestPieceMessage.h: New class.
  14683. * src/SuggestPieceMessage.cc: New class.
  14684. * src/HaveAllMessage.h: New class.
  14685. * src/HaveAllMessage.cc: New class.
  14686. * src/HaveNoneMessage.h: New class.
  14687. * src/HaveNoneMessage.cc: New class.
  14688. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14689. (msg): New variable.
  14690. (reserved): New variable.
  14691. (create): New function.
  14692. (getId): New function.
  14693. (receivedAction): New function.
  14694. (getMessage): New function.
  14695. (getMessageLength): New function.
  14696. (isFastExtensionSupported): New function.
  14697. * src/HandshakeMessage.cc
  14698. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14699. (create): New function.
  14700. (getMessage): New function.
  14701. (getMessageLength): New function.
  14702. (toString): Added the output of reserved field.
  14703. (check): Added const qualifier.
  14704. (isFastExtensionSupported): New function.
  14705. * src/PeerMessageUtil.h
  14706. (createChokeMessage): Removed.
  14707. (createUnchokeMessage): Removed.
  14708. (createInterestedMessage): Removed.
  14709. (createNotInterestedMessage): Removed.
  14710. (createHaveMessage): Removed.
  14711. (createBitfieldMessage): Removed.
  14712. (createRequestMessage): Removed.
  14713. (createCancelMessage): Removed.
  14714. (createPieceMessage): Removed.
  14715. (createPortMessage): Removed.
  14716. (createChokeMessage): Removed.
  14717. (createUnchokeMessage): Removed.
  14718. (createInterestedMessage): Removed.
  14719. (createNotInterestedMessage): Removed.
  14720. (createHaveMessage): Removed.
  14721. (createBitfieldMessage): Removed.
  14722. (createRequestMessage): Removed.
  14723. (createCancelMessage): Removed.
  14724. (createPieceMessage): Removed.
  14725. (createKeepAliveMessage): Removed.
  14726. (createHandshakeMessage): Removed.
  14727. (setIntParam): New function.
  14728. (createPeerMessageString): New function.
  14729. * src/PeerMessageUtil.cc
  14730. (createChokeMessage): Removed.
  14731. (createUnchokeMessage): Removed.
  14732. (createInterestedMessage): Removed.
  14733. (createNotInterestedMessage): Removed.
  14734. (createHaveMessage): Removed.
  14735. (createBitfieldMessage): Removed.
  14736. (createRequestMessage): Removed.
  14737. (createCancelMessage): Removed.
  14738. (createPieceMessage): Removed.
  14739. (createPortMessage): Removed.
  14740. (createRequestMessage): Removed.
  14741. (createCancelMessage): Removed.
  14742. (createPieceMessage): Removed.
  14743. (createHaveMessage): Removed.
  14744. (createChokeMessage): Removed.
  14745. (createUnchokeMessage): Removed.
  14746. (createInterestedMessage): Removed.
  14747. (createNotInterestedMessage): Removed.
  14748. (createBitfieldMessage): Removed.
  14749. (createKeepAliveMessage): Removed.
  14750. (createHandshakeMessage): Removed.
  14751. (setIntParam): New function.
  14752. (createPeerMessageString): New function.
  14753. * src/PeerConnection.h
  14754. (peer): Removed.
  14755. (torrentMan): Removed.
  14756. (createNLengthMessage): Removed.
  14757. (setIntParam): Removed.
  14758. (writeOutgoingMessageLog): Removed all overloaded functions.
  14759. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14760. (sendMessage): New function.
  14761. (sendHandshake): Removed.
  14762. (sendKeepAlive): Removed.
  14763. (sendChoke): Removed.
  14764. (sendUnchoke): Removed.
  14765. (sendInterested): Removed.
  14766. (sendNotInterested): Removed.
  14767. (sendHave): Removed.
  14768. (sendBitfield): Removed.
  14769. (sendRequest): Removed.
  14770. (sendPiece): Removed.
  14771. (sendPieceHeader): Removed.
  14772. (sendPieceData): Removed.
  14773. (sendCancel): Removed.
  14774. (getPeer): Removed.
  14775. * src/PeerConnection.cc
  14776. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14777. (sendHandshake): Removed.
  14778. (sendKeepAlive): Removed.
  14779. (createNLengthMessage): Removed.
  14780. (setIntParam): Removed.
  14781. (writeOutgoingMessageLog): Removed all overloaded functions.
  14782. (sendChoke): Removed.
  14783. (sendUnchoke): Removed.
  14784. (sendInterested): Removed.
  14785. (sendNotInterested): Removed.
  14786. (sendHave): Removed.
  14787. (sendBitfield): Removed.
  14788. (sendRequest): Removed.
  14789. (sendPiece): Removed.
  14790. (sendPieceHeader): Removed.
  14791. (sendPieceData): Removed.
  14792. (sendMessage): New function.
  14793. (sendCancel): Removed.
  14794. * src/PeerInteractionCommand.cc
  14795. (PeerInteractionCommand): Call setUploadLimit.
  14796. (executeInternal): Call setUploadLimit.
  14797. Added the handling of "inProgress" state of handshake message.
  14798. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14799. sendNow().
  14800. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14801. sendNow().
  14802. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14803. * src/TorrentMan.h
  14804. (PEER_ID_LENGTH): New definition.
  14805. (hasAllPieces): New function.
  14806. * src/TorrentMan.cc
  14807. (getMissingPiece): Added the handling of fast extension.
  14808. (cancelPiece): Call updatePiece().
  14809. (hasAllPieces): New function.
  14810. * src/PeerInteraction.h
  14811. (fastSet): New variable.
  14812. (getNewPieceAndSendInterest): Changed the return type to void.
  14813. (send): Renamed as sendMessages.
  14814. (deleteAllRequestSlot): Removed.
  14815. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14816. (cancelAllRequest): Removed all overloaded functions.
  14817. (deleteAllRequestSlot): Removed.
  14818. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14819. (rejectPieceMessageInQueue): New function.
  14820. (rejectAllPieceMessageInQueue): New function.
  14821. (onChoked): New function.
  14822. (isSendingMessageInProgress): New function.
  14823. (getCorrespondingRequestSlot): Changed its arguments.
  14824. (isInFastSet): New function.
  14825. (addFastSetIndex): New function.
  14826. (addRequests): New function.
  14827. (sendNow): Removed.
  14828. (trySendNow): Removed.
  14829. (sendBitfield): New function.
  14830. (sendAllowdFast): New function.
  14831. (createHaveAllMessage): New function.
  14832. (createHaveNoneMessage): New function.
  14833. (createRejectMessage): New function.
  14834. (createAllowedFastMessage): New function.
  14835. * src/PeerInteraction.cc
  14836. (send): Renamed as sendMessages.
  14837. (sendMessages): New function.
  14838. (MsgPushBack): New class.
  14839. (isSendingMessageInProgress): New function.
  14840. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14841. (rejectAllPieceMessageInQueue): New function.
  14842. Added the handling of fast extension.
  14843. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14844. (rejectPieceMessageInQueue): New function.
  14845. Added the handling of fast extension.
  14846. (deleteRequestSlot): Replaced for loop with std::find.
  14847. (onChoked): New function.
  14848. (deleteAllRequestSlot): Removed.
  14849. (abortPiece): Rewirtten.
  14850. (deleteTimeoutRequestSlot): Updated log messages.
  14851. (getCorrespondingRequestSlot): Changed its arguments.
  14852. (cancelAllRequest): Removed all overloaded functions.
  14853. (receiveHandshake): Added the check to see whether an incoming peer
  14854. supports fast extension.
  14855. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14856. PeerMessageUtil.
  14857. (createPeerMessage): Use create() of each message class instead of
  14858. PeerMessageUtil.
  14859. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14860. AllowedFastMessage were added.
  14861. (getNewPieceAndSendInterest): Changed its return value type to void.
  14862. Added the handling of fast extension.
  14863. (addRequests): New function.
  14864. (sendNow): Removed.
  14865. (sendHandshake): Rewritten.
  14866. (trySendNow): Removed.
  14867. (sendBitfield): New function.
  14868. (sendAllowdFast): New function.
  14869. (isInFastSet): New function.
  14870. (addFastSetIndex): New function.
  14871. (createRequestMessage): Use RequestMessage::create instead of
  14872. PeerMessageUtil.
  14873. (createCancelMessage): Use CancelMessage::create instead of
  14874. PeerMessageUtil.
  14875. (createPieceMessage): Use PieceMessage::create instead of
  14876. PeerMessageUtil.
  14877. (createHaveMessage): Use HaveMessage::create instead of
  14878. PeerMessageUtil.
  14879. (createChokeMessage): Use ChokeMessage::create instead of
  14880. PeerMessageUtil.
  14881. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14882. PeerMessageUtil.
  14883. (createInterestedMessage): Use InterestedMessage::create instead of
  14884. PeerMessageUtil.
  14885. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14886. of PeerMessageUtil.
  14887. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14888. PeerMessageUtil.
  14889. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14890. PeerMessageUtil.
  14891. (createHaveAllMessage): New function.
  14892. (createHaveNoneMessage): New function.
  14893. (createRejectMessage): New function.
  14894. (createAllowedFastMessage: New function.
  14895. * src/Util.h
  14896. (sha1Sum): New function.
  14897. (computeFastSet): New function.
  14898. * src/Util.cc
  14899. (sha1Sum): New function.
  14900. (computeFastSet): New function.
  14901. * src/Peer.h
  14902. (fastExtensionEnabled): New variable.
  14903. (fastSet): New variable.
  14904. (setAllBitfield): New function.
  14905. (setFastExtensionEnabled): New function.
  14906. (isFastExtensionEnabled): New function.
  14907. (addFastSetIndex): New function.
  14908. (getFastSet): New function.
  14909. (isInFastSet): New function.
  14910. (countFastSet): New function.
  14911. * src/Peer.cc
  14912. (isInFastSet): New function.
  14913. (addFastSetIndex): New function.
  14914. (setAllBitfield): New function.
  14915. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14916. sockets.
  14917. * src/PeerAbstractCommand.cc
  14918. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14919. and uploadLimit.
  14920. (execute): Changed the procedure of checking sockets. The upload speed
  14921. checking were added.
  14922. (setUploadLimit): New function.
  14923. (setUploadLimitCheck): New function.
  14924. * src/PeerAbstractCommand.h
  14925. (setUploadLimit): New function.
  14926. (setUploadLimitCheck): New function.
  14927. (uploadLimit): New variable.
  14928. (uploadLimitCheck): New variable.
  14929. To contact a tracker regularly:
  14930. * src/TrackerWatcherCommand.h (interval): New variable.
  14931. (checkPoint): New variable.
  14932. (TrackerWatcherCommand): Added interval argument.
  14933. * src/TrackerWatcherCommand.cc
  14934. (TrackerWatcherCommand): Initialized checkPoint.
  14935. (execute): Now a tracker is contacted in every specified period.
  14936. If peer list is not needed, send request with numwant=0.
  14937. * src/TrackerUpdateCommand.cc
  14938. (execute): Updated log messages.
  14939. * src/DownloadEngine.cc
  14940. (~DownloadEngine): Removed two asserts.
  14941. (waitData): Uncommented wfds. May be a bug fix.
  14942. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14943. * src/PeerInteractionCommand.h
  14944. (checkInactiveConnection): Removed.
  14945. * src/PeerInteractionCommand.cc
  14946. (executeInternal): Removed following function calls:
  14947. detectMessageFlooding(), checkLongTimePeerChoking and
  14948. checkInactiveConnection().
  14949. (checkInactiveConnection): Removed.
  14950. (detectMessageFlooding): Removed function call to
  14951. checkInactiveConnection().
  14952. * src/PeerMessageUtil.h
  14953. (createChokeMessage): New function. Overload.
  14954. (createUnchokeMessage): New function. Overload.
  14955. (createInterestedMessage): New function. Overload.
  14956. (createNotInterestedMessage): New function. Overload.
  14957. (createHaveMessage): New function. Overload.
  14958. (createBitfieldMessage): New function. Overload.
  14959. (createRequestMessage): New function. Overload.
  14960. (createCancelMessage): New function. Overload.
  14961. (createPieceMessage): New function. Overload.
  14962. (createKeepAliveMessage): New function. Overload.
  14963. * src/PeerMessageUtil.cc
  14964. (createChokeMessage): New function. Overload.
  14965. (createUnchokeMessage): New function. Overload.
  14966. (createInterestedMessage): New function. Overload.
  14967. (createNotInterestedMessage): New function. Overload.
  14968. (createHaveMessage): New function. Overload.
  14969. (createBitfieldMessage): New function. Overload.
  14970. (createRequestMessage): New function. Overload.
  14971. (createCancelMessage): New function. Overload.
  14972. (createPieceMessage): New function. Overload.
  14973. (createKeepAliveMessage): New function. Overload.
  14974. * src/SendMessageQueue.cc
  14975. (createRequestMessage): Use PeerMessageUtil.
  14976. (createCancelMessage): Use PeerMessageUtil.
  14977. (createPieceMessage): Use PeerMessageUtil.
  14978. (createHaveMessage): Use PeerMessageUtil.
  14979. (createChokeMessage): Use PeerMessageUtil.
  14980. (createUnchokeMessage): Use PeerMessageUtil.
  14981. (createInterestedMessage): Use PeerMessageUtil.
  14982. (createNotInterestedMessage): Use PeerMessageUtil.
  14983. (createBitfieldMessage): Use PeerMessageUtil.
  14984. (createKeepAliveMessage): Use PeerMessageUtil.
  14985. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14986. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14987. * src/PeerInteraction.h: New class.
  14988. * src/PeerInteraction.cc: New class.
  14989. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14990. Each peer message has its own class.
  14991. * src/PendingMessages.h: Removed.
  14992. * src/PendingMessages.cc: Removed. The sending process was moved to
  14993. each message class.
  14994. * src/RequestSlotMan.h: Removed.
  14995. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14996. SendMessageQueue.
  14997. * src/RequestMessage.h: New class.
  14998. * src/RequestMessage.cc: New class.
  14999. * src/CancelMessage.h: New class.
  15000. * src/CancelMessage.cc: New class.
  15001. * src/BitfieldMessage.h: New class.
  15002. * src/BitfieldMessage.cc: New class.
  15003. * src/ChokeMessage.h: New class.
  15004. * src/ChokeMessage.cc: New class.
  15005. * src/KeepAliveMessage.h: New class.
  15006. * src/KeepAliveMessage.cc: New class.
  15007. * src/PortMessage.h: New class.
  15008. * src/UnchokeMessage.h: New class.
  15009. * src/UnchokeMessage.cc: New class.
  15010. * src/PieceMessage.h: New class.
  15011. * src/PieceMessage.cc: New class.
  15012. * src/HaveMessage.h: New class.
  15013. * src/HaveMessage.cc: New class.
  15014. * src/BitfieldMessage.h: New class.
  15015. * src/BitfieldMessage.cc: New class.
  15016. * src/NotInterestedMessage.h: New class.
  15017. * src/NotInterestedMessage.cc: New class.
  15018. * src/InterestedMessage.h: New class.
  15019. * src/InterestedMessage.cc: New class.
  15020. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15021. (getSendMessageQueue): New function.
  15022. (setSendMessageQueue): New function.
  15023. * src/HandshakeMessage.cc: New class.
  15024. * src/PeerConnection.h (receiveMessage): Changed return value and
  15025. arguments.
  15026. (receiveHandshake): Changed return value and arguments.
  15027. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15028. here.
  15029. (receiveHandshake): Do not create handshake class here.
  15030. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15031. (piece): Removed.
  15032. (syncPiece): Removed.
  15033. (sendInterest): Removed.
  15034. (sendMessages): Removed.
  15035. (createRequestPendingMessage): Removed.
  15036. (checkPieceHash): Removed.
  15037. (erasePieceOnDisk): Removed.
  15038. (getNewPieceAndSendInterest): Removed.
  15039. (onGotNewPice): Removed.
  15040. (onGotWrongPiece): Removed.
  15041. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15042. Removed peerConnection, piece.
  15043. (~PeerInteractionCommand): Removed peerConnection.
  15044. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15045. (syncPiece): Moved to SendMessageQueue.
  15046. (decideChoking): Removed PendingMessage.
  15047. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15048. The action after receiving peer message was moved to each message
  15049. class.
  15050. (onGotNewPice): Moved to SendMessageQueue.
  15051. (onGotWrongPiece): Moved to SendMessageQueue.
  15052. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15053. (sendInterest): Moved to SendMessageQueue.
  15054. (createRequestPendingMessage): Removed.
  15055. (sendMessages): Moved to SendMessageQueue.
  15056. (onAbort): Use SendMessageQueue::abortPiece()
  15057. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15058. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15059. (checkPieceHash): Moved to SendMessageQueue.
  15060. (erasePieceOnDisk): Moved to SendMessageQueue.
  15061. * src/PeerMessageUtil.h
  15062. (createBitfieldMessage): Removed.
  15063. (createHaveMessage): Changed return value and arguments.
  15064. (createBitfieldMessage): Changed return value and arguments.
  15065. (createRequestCancelMessage): Removed.
  15066. (createPieceMessage): Changed return value and arguments.
  15067. (getShortIntParam): New function.
  15068. (checkIndex): Changed arguments.
  15069. (checkBegin): Changed arguments.
  15070. (checkLength): Changed arguments.
  15071. (checkPieceOffset): Removed.
  15072. (checkRange): New function.
  15073. (checkBitfield): Changed arguments.
  15074. (createPeerMessage): Removed.
  15075. (checkIntegrity): Removed.
  15076. (createHandshakeMessage): Changed arguments.
  15077. (createChokeMessage): New function.
  15078. (createUnchokeMessage): New function.
  15079. (createInterestedMessage): New function.
  15080. (createNotInterestedMessage): New function.
  15081. (createRequestMessage): New function.
  15082. (createCancelMessage): New function.
  15083. (createPortMessage): New function.
  15084. * src/PeerMessageUtil.cc
  15085. (createBitfieldMessage): Removed.
  15086. (createHaveMessage): Changed return value and arguments.
  15087. (createBitfieldMessage): Changed return value and arguments.
  15088. (createRequestCancelMessage): Removed.
  15089. (createPieceMessage): Changed return value and arguments.
  15090. (getShortIntParam): New function.
  15091. (checkIndex): Changed arguments.
  15092. (checkBegin): Changed arguments.
  15093. (checkLength): Changed arguments.
  15094. (checkPieceOffset): Removed.
  15095. (checkRange): New function.
  15096. (checkBitfield): Changed arguments.
  15097. (createPeerMessage): Removed.
  15098. (checkIntegrity): Removed.
  15099. (createHandshakeMessage): Changed arguments.
  15100. (createChokeMessage): New function.
  15101. (createUnchokeMessage): New function.
  15102. (createInterestedMessage): New function.
  15103. (createNotInterestedMessage): New function.
  15104. (createRequestMessage): New function.
  15105. (createCancelMessage): New function.
  15106. (createPortMessage): New function.
  15107. * src/PeerMessage.h
  15108. (id): Removed.
  15109. (index): Removed.
  15110. (begin): Removed.
  15111. (length): Removed.
  15112. (bitfield): Removed.
  15113. (bitfieldLength): Removed.
  15114. (block): Removed.
  15115. (blockLength): Removed.
  15116. (inProgress): New variable.
  15117. (cuid): New variable.
  15118. (peer): New variable.
  15119. (sendMessageQueue): New variable.
  15120. (logger): New variable.
  15121. (setBitfield): Removed.
  15122. (getBitfield): Removed.
  15123. (setBlock): Removed.
  15124. (getBlock): Removed.
  15125. (getBitfieldLength): Removed.
  15126. (getBlockLength): Removed.
  15127. (isInProgress): New function.
  15128. (toString): Made pure virtual.
  15129. (check): New function.
  15130. (send): New function.
  15131. (receivedAction): New function.
  15132. (getId): Made pure virtual.
  15133. (setId): Removed.
  15134. (getIndex): Removed.
  15135. (setIndex): Removed.
  15136. (getBegin): Removed.
  15137. (setBegin): Removed.
  15138. (getLength): Removed.
  15139. (setLength): Removed.
  15140. (getCuid): New function.
  15141. (setCuid): New function.
  15142. (getPeer): New function.
  15143. (setPeer): New function.
  15144. (getSendMessageQueue): New function.
  15145. (setSendMessageQueue): New function.
  15146. (ID): Removed.
  15147. * src/PeerMessage.cc
  15148. (setBitfield): Removed.
  15149. (setBlock): Removed.
  15150. (toString): Removed.
  15151. * src/TorrentMan.h
  15152. (getPieceLength): New function.
  15153. (getPieceLength): New function.
  15154. * src/SendMessageQueue.h
  15155. (REQUEST_TIME_OUT): New definition.
  15156. (RequestSlots): New definition.
  15157. (MessageQueue): New definition.
  15158. (requestSlotMan): Removed.
  15159. (pendingMessages): Removed.
  15160. (requestSlots): New variable.
  15161. (messageQueue): New variable.
  15162. (torrentMan): New variable.
  15163. (peerConnection): New variable.
  15164. (peer): New variable.
  15165. (piece): New variable.
  15166. (getNewPieceAndSendInterest): New function.
  15167. (createPeerMessage): New function.
  15168. (createHandshakeMessage): New function.
  15169. (send): Made private.
  15170. (setPeerMessageCommonProperty): New function.
  15171. (deleteAllRequestSlot): New function.
  15172. (deleteRequestMessageInQueue): New function.
  15173. (cancelAllRequest): Made private.
  15174. (cancelAllRequest): Made private.
  15175. (countRequestSlot): Made private.
  15176. (addPendingMessage): Removed.
  15177. (deletePendingPieceMessage): Removed.
  15178. (deletePendingRequestMessage): Removed.
  15179. (addMessage): New function.
  15180. (deletePieceMessageInQueue): New function.
  15181. (deleteTimeoutRequestSlot): Changed argument.
  15182. (deleteCompletedRequestSlot): Changed argument.
  15183. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15184. (getCorrespondingRequestSlot): New function.
  15185. (countPendingMessage): Removed.
  15186. (countMessageInQueue): New function.
  15187. (getTorrentMan): New function.
  15188. (getPeerConnection): New function.
  15189. (hasDownloadPiece): New function.
  15190. (getDownloadPiece): New function.
  15191. (setDownloadPiece): New function.
  15192. (syncPiece): New function.
  15193. (sendMessages): New function.
  15194. (sendNow): New function.
  15195. (trySendNow): New function.
  15196. (abortPiece): New function.
  15197. (sendHandshake): New function.
  15198. (receiveMessage): New function.
  15199. (receiveHandshake): New function.
  15200. (createRequestMessage): New function.
  15201. (createCancelMessage): New function.
  15202. (createPieceMessage): New function.
  15203. (createHaveMessage): New function.
  15204. (createChokeMessage): New function.
  15205. (createUnchokeMessage): New function.
  15206. (createInterestedMessage): New function.
  15207. (createNotInterestedMessage): New function.
  15208. (createBitfieldMessage): New function.
  15209. (createKeepAliveMessage): New function.
  15210. * src/SendMessageQueue.cc
  15211. (SendMessageQueue): Removed requestSlotMan.
  15212. Instantiated peerConnection here.
  15213. (~SendMessageQueue): Removed requestSlotMan.
  15214. Added deletion of peerConnection and the contents of messageQueue.
  15215. (send): Updated according to the change of messageQueue.
  15216. (addPendingMessage): Renamed to addMessage.
  15217. (addMessage): New function.
  15218. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15219. (deletePieceMessageInQueue): New function.
  15220. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15221. (deleteRequestMessageInQueue): New function.
  15222. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15223. here.
  15224. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15225. (...) was moved here.
  15226. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15227. moved here.
  15228. (deleteCompletedRequestSlot):
  15229. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15230. (getCorrespondingRequestSlot):
  15231. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15232. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15233. (countPendingMessage): Renamed to countMessageInQueue.
  15234. (countMessageInQueue): New function.
  15235. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15236. (receiveHandshake): New function.
  15237. (createHandshakeMessage): New function.
  15238. (receiveMessage): New function.
  15239. (createPeerMessage): New function.
  15240. (syncPiece): New function.
  15241. (getNewPieceAndSendInterest): New function.
  15242. (sendMessages): New function.
  15243. (sendNow): New function.
  15244. (trySendNow): New function.
  15245. (sendHandshake): New function.
  15246. (abortPiece): New function.
  15247. (getDownloadPiece): New function.
  15248. (getPeerMessageCommonProperty): New function.
  15249. (createRequestMessage): New function.
  15250. (createCancelMessage): New function.
  15251. (createPieceMessage): New function.
  15252. (createHaveMessage): New function.
  15253. (createChokeMessage): New function.
  15254. (createUnchokeMessage): New function.
  15255. (createInterestedMessage): New function.
  15256. (createNotInterestedMessage): New function.
  15257. (createBitfieldMessage): New function.
  15258. (createKeepAliveMessage): New function.
  15259. To add simple Content-Disposition support:
  15260. * src/HttpResponseCommand.h (determinFilename): New function.
  15261. * src/HttpResponseCommand.cc (executeInternal):
  15262. Use determinFilename(headers) instead of req->getFile() when comparing
  15263. filename.
  15264. (determinFilename): New function.
  15265. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15266. req->getFile().
  15267. (handleOtherEncoding): Use determinFilename(headers) instead of
  15268. req->getFile().
  15269. * src/Util.h (getContentDispositionFilename): New function.
  15270. * src/Util.cc (getContentDispositionFilename): New function.
  15271. * src/LogFactory.h (release): New function.
  15272. * src/LogFactory.cc (release): New function.
  15273. To fix a bug that causes out-of-bound exception when HTTP status
  15274. line is wrong:
  15275. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15276. size.
  15277. * src/common.h (Deleter): New class.
  15278. * src/SegmentMan.cc
  15279. (~SegmentMan): Added deletion of splitter and diskWriter.
  15280. * src/DownloadEngine.h
  15281. (Commands): Use deque.
  15282. (clearQueue): New function.
  15283. * src/DownloadEngine.cc
  15284. (~DownloadEngine): Added deletion of segmentMan.
  15285. (cleanQueue): New function.
  15286. * src/TorrentDownloadEngine.h
  15287. (TorrentDownloadEngine): The implementation was moved to
  15288. TorrentDownloadEngine.cc.
  15289. (~TorrentDownloadEngine): The implementation was moved to
  15290. TorrentDownloadEngine.cc.
  15291. * src/TorrentDownloadEngine.cc
  15292. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15293. * src/main.cc
  15294. (clearRequest): Removed.
  15295. (handler): Added deletion of e.
  15296. (torrentHandler): Added deletion of te.
  15297. (main): Do not share splitter.
  15298. Use Deleter instead of clearRequest.
  15299. Deletion of classes were updated.
  15300. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15301. * src/main.cc (main): Fixed typo.
  15302. * src/message.h: Fixed typo.
  15303. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15304. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15305. To add --select-file command-line option:
  15306. * src/Util.cc
  15307. (unfoldRange): New function.
  15308. (getNum): New function.
  15309. (unfoldSubRange): New function
  15310. * src/main.cc
  15311. (showUsage): Added help message.
  15312. (main): Added --select-file command-line option. Updated the layout of
  15313. file listing.
  15314. * src/common.h
  15315. (Integers): New definition.
  15316. * src/SocketCore.cc
  15317. (writeData): Removed timeout argument.
  15318. (readData): Removed timeout argument.
  15319. (peekData): Removed timeout argument.
  15320. * src/Socket.cc
  15321. (writeData): Removed timeout argument.
  15322. (readData): Removed timeout argument.
  15323. (peekData): Removed timeout argument.
  15324. * Release 0.4.1
  15325. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15326. To deploy upload rate based choking algorithm:
  15327. * src/PeerInteractionCommand.cc
  15328. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15329. peer currently used.
  15330. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15331. download completes. Simplified.
  15332. (receiveMessage): Updated.
  15333. * src/TorrentMan.h
  15334. (activePeers): New variable.
  15335. (addActivePeer): New function.
  15336. (getActivePeers): New function.
  15337. (deleteActivePeer): New function.
  15338. * src/TorrentMan.cc
  15339. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15340. * src/PeerAbstractCommand.cc
  15341. (onAbort): Use peer->resetStatus().
  15342. * src/main.cc
  15343. (PeerChokeCommand.h): Included.
  15344. (main): Added the instance of ChokingCommand to the command queue.
  15345. * src/Peer.h
  15346. (amChoking): Renamed from amChocking
  15347. (chokingRequired): New variable.
  15348. (optUnchoking): New variable.
  15349. (deltaUpload): New variable.
  15350. (deltaDownload): New variable.
  15351. (addDeltaUpload): New function.
  15352. (resetDeltaUpload): New function.
  15353. (addDeltaDownload): New function.
  15354. (resetDeltaDownload): New function.
  15355. (addPeerUpload): Added a call to addDeltaUpload.
  15356. (addPeerDownload): Added a call to addDeltaDownload.
  15357. * src/Peer.cc
  15358. (shouldBeChoking): Renamed from shouldChoke.
  15359. (resetStatus): New function.
  15360. * src/PeerChokeCommand.h: New class.
  15361. * src/PeerChokeCommand.cc: New class.
  15362. To add lazy upload speed limiter:
  15363. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15364. statistics calculation to TorrentDownloadEngine.
  15365. * src/TorrentConsoleDownloadEngine.cc
  15366. (sendStatistics): Renamed from printStatistics.
  15367. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15368. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15369. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15370. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15371. calculation.
  15372. (sendStatistics): New function as pure virtual function.
  15373. (getUploadSpeed): New function.
  15374. * src/TorrentDownloadEngine.cc
  15375. (initStatistics): New function.
  15376. (calculateSpeed): New function.
  15377. (calculateStatistics): New function.
  15378. * src/SendMessageQueue.h
  15379. (uploadLength): New variable.
  15380. (send): Added an argument.
  15381. (setUploadLimit): New function.
  15382. (getUploadLimit): New function.
  15383. * src/SendMessageQueue.cc
  15384. (send): Added upload speed limiter.
  15385. * src/prefs.h
  15386. (PREF_UPLOAD_LIMIT): New definition.
  15387. * src/PeerInteractionCommand.cc
  15388. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15389. * src/main.cc
  15390. (main): Added --upload-limit option
  15391. For bug fixes:
  15392. * src/main.cc
  15393. (showUsage): Corrected --listen-port help
  15394. Other changes:
  15395. * src/TorrentMan.cc
  15396. (getPeer): Return nullPeer if connection is grather than
  15397. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15398. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15399. To add some useful information to the exception message:
  15400. * src/SocketCore.cc : Updated messages.
  15401. * src/SegmentMan.cc :
  15402. * src/TorrentMan.cc : Updated messages.
  15403. * src/MultiDiskWriter.cc : Updated messages.
  15404. * src/Util.cc : Updated messages.
  15405. * src/AbstractDiskWriter.cc : Updated messages.
  15406. * src/PreAllocationDiskWriter.cc : Updated messages.
  15407. * src/message.cc : Added new messages. Updated some messages.
  15408. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15409. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15410. Updated threshold from 30 to 15.
  15411. * src/AbstractDiskWriter.h (filename): New variable.
  15412. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15413. (createFile): Assigned filename.
  15414. * src/main.cc: Updated the help message for http-auth-scheme.
  15415. * Release 0.4.0
  15416. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15417. To add TrackerUpdateCommand with which replaces
  15418. CompactTrackerResponseProcessor:
  15419. * src/TrackerWatcherCommand.h (req): Removed.
  15420. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15421. if the number of peer connections are less than 30.
  15422. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15423. * src/SegmentMan.h (diskWriter): New function.
  15424. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15425. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15426. (main): Use TrackerUpdateCommand.
  15427. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15428. (req): New variable.
  15429. (setTrackerResponseProcessor): Removed.
  15430. (getTrackerResponseProcessor): Removed.
  15431. (processTrackerResponse): Removed.
  15432. * src/DownloadEngine.h (diskWriter): Removed.
  15433. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15434. to torrentMan->processTrackerResponse().
  15435. To add Util::expandBuffer:
  15436. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15437. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15438. * src/Util.h (expandBuffer): New function.
  15439. To fix the bug that causes segmentation fault when "-l ." is specified
  15440. in command-line option:
  15441. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15442. (openFile): New function.
  15443. (closeFile): New function.
  15444. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15445. (~SimpleLogger): Call closeFile();
  15446. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15447. * src/main.cc (main): Added a check to see logger is configured
  15448. properly.
  15449. To enable HTTP authentication without specifying "--http-auth-scheme"
  15450. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15451. * src/HttpConnection.cc (createRequest): Send Authorization header
  15452. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15453. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15454. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15455. * src/Peer.cc (shouldChoke): Updated algorithm.
  15456. * src/message.h (EX_AUTH_FAILED): New definition.
  15457. (EX_FILE_OPEN): New definition.
  15458. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15459. if status == 401.
  15460. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15461. if req->isTorrent == true.
  15462. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15463. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15464. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15465. (createFile): Updated message.
  15466. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15467. To add a readout of estimated remaining time to normal HTTP/FTP
  15468. downloads:
  15469. * src/ConsoleDownloadEngine.h (startup): New variable.
  15470. (startupLength): New variable.
  15471. (isStartupLengthSet): New variable.
  15472. (avgSpeed): New variable.
  15473. (eta): New variable.
  15474. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15475. estimated remaining time.
  15476. (initStatistics): Initialized newly added variables.
  15477. (calculateStatistics): Calculate average speed and estimated remaining
  15478. time.
  15479. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15480. * src/TrackerDownloadCommand.h: Removed.
  15481. * src/TrackerDownloadCommand.cc: Removed.
  15482. * src/TrackerInitCommand.h: Removed.
  15483. * src/TrackerInitCommand.cc: Removed.
  15484. * src/TrackerUpdateCommand.h: Removed.
  15485. * src/TrackerUpdateCommand.cc: Removed.
  15486. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15487. url written in TrackerInitCommand was moved here. Do not create
  15488. tracker request command if torrentMan->trackers != 0.
  15489. * src/CompactTrackerResponseProcessor.h: New class.
  15490. * src/CompactTrackerResponseProcessor.cc: New class.
  15491. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15492. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15493. Decoupled TorrentDownloadEngine from this.
  15494. * src/SegmentMan.h (init): New function.
  15495. * src/SegmentMan.cc (init): New function.
  15496. * src/TorrentMan.h (responseProcessor): New variable.
  15497. (trackers): New variable.
  15498. (setTrackerResponseProcessor): New function.
  15499. (getTrackerResponseProcessor): New function.
  15500. (processTrackerResponse): New function.
  15501. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15502. (processTrackerResponse): New function.
  15503. * src/main.cc (main): Use ByteArrayDiskWriter and
  15504. CompactTrackerResponseProcessor.
  15505. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15506. processTrackerResponse().
  15507. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15508. readout.
  15509. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15510. which indicates download has completed.
  15511. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15512. (closeFile): fd >= 0, not fd > 0
  15513. * src/main.cc (main): Added short cut for show-files.
  15514. Added short cut for torrent-file.
  15515. Added new command-line option listen-port.
  15516. Updated i18n messages.
  15517. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15518. To add LogFactory which creates singleton logger:
  15519. * src/LogFactory.h: New class.
  15520. * src/LogFactory.cc: New class.
  15521. * src/Command.h (logger): New variable.
  15522. (Constructor): Use LogFactory.
  15523. * src/AbstractCommand.cc: Use Command::logger
  15524. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15525. Use LogFactory.
  15526. * src/SegmentSplitter.h : Made logger protected.
  15527. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15528. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15529. * src/DownloadEngine.h : Made logger protected.
  15530. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15531. * src/PeerInteractionCommand.cc : Use Command::logger.
  15532. * src/HttpResponseCommand.cc : Use Command::logger.
  15533. * src/SegmentMan.h : Made logger private.
  15534. * src/TorrentMan.h : Made logger private.
  15535. * src/TorrentMan.cc : Use LogFactory.
  15536. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15537. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15538. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15539. Use LogFactory.
  15540. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15541. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15542. Use LogFactory.
  15543. * src/DownloadCommand.cc : Use Command::logger.
  15544. * src/PeerAbstractCommand.cc : Use Command::logger.
  15545. * src/PeerListenCommand.cc : Use Command::logger.
  15546. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15547. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15548. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15549. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15550. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15551. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15552. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15553. Use LogFactory.
  15554. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15555. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15556. Use LogFactory.
  15557. * src/main.cc (main): Use LogFactory.
  15558. * src/DiskAdaptor.h (logger): New variable.
  15559. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15560. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15561. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15562. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15563. parameter to a tracker request.
  15564. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15565. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15566. * src/main.cc (setSignalHander): New function.
  15567. (main): Added a handler for SIGTERM.
  15568. (handler): Updated message.
  15569. (torrentHandler): Updated message.
  15570. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15571. * src/TorrentConsoleDownloadEngine.cc
  15572. (onPartialDownloadingCompletes): Renamed as
  15573. onSelectiveDownloadingCompletes.
  15574. (onSelectiveDownloadingCompletes): Updated message.
  15575. To add DiskAdaptor which abstract DiskWriter family:
  15576. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15577. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15578. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15579. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15580. MultiDiskAdaptor.h.
  15581. (readFileEntry): Changed its arguments.
  15582. (setup): setupDiskWriter is merged into this function.
  15583. (setupDiskWriter): Removed.
  15584. (setFileFilter): New function.
  15585. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15586. made in readFileEntry.
  15587. (getFilePath): Removed.
  15588. (getTempFilePath): Removed.
  15589. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15590. (fixFilename): Removed.
  15591. (copySingleFile): Removed.
  15592. (splitMultiFile): Removed.
  15593. (deleteTempFile): Removed.
  15594. (setFileEntriesToDownload): Removed.
  15595. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15596. (isSelectiveDownloadingMode): New function.
  15597. (setAllMultiFileRequestedState): Removed.
  15598. (finishPartialDownloadingMode): Renamed as
  15599. finishSelectiveDownloadingMode.
  15600. (finishSelectiveDownloadingMode): New function.
  15601. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15602. (getSelectedTotalLength): New function.
  15603. (onDownloadComplete): Use diskAdaptor.
  15604. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15605. (Range): Removed.
  15606. (setMultiFileEntries): Renamed as setFileEntries.
  15607. (setFileEntries): New function.
  15608. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15609. (pieceLength): New variable.
  15610. * src/main.cc (printDownloadCompeleteMessage): New function.
  15611. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15612. (main): Renamed torrent-show-files to show-files.
  15613. Rewritten file contents listing.
  15614. * src/TorrentMan.h (FileEntry): Removed.
  15615. (multiFileTopDir): Removed.
  15616. (multiFileEntries): Removed.
  15617. (diskWriter): Removed.
  15618. (diskAdaptor): New variable.
  15619. * src/DefaultDiskWriter.h (totalLength): New variable.
  15620. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15621. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15622. diskWriter.
  15623. * src/TorrentConsoleDownloadEngine.h
  15624. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15625. (partialTotalLength): Renamed as selectedTotalLength.
  15626. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15627. openExistingFile, otherwise call initAndOpenFile.
  15628. (closeFile): fd > 0, not fd != 0.
  15629. * src/DirectDiskAdaptor.h: New class.
  15630. * src/DirectDiskAdaptor.cc: New class.
  15631. * src/MultiDiskAdaptor.h: New class.
  15632. * src/MultiDiskAdaptor.cc: New class.
  15633. * src/CopyDiskAdaptor.h: New class.
  15634. * src/CopyDiskAdaptor.cc: New class.
  15635. * src/DiskAdaptor.h: New class.
  15636. * src/DiskAdaptor.cc: New class.
  15637. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15638. (PREF_SHOW_FILES): New definition.
  15639. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15640. To add the ability to download multi torrent into respective files
  15641. directly:
  15642. * src/DiskWriter.h (openFile): New function.
  15643. (seek): Removed.
  15644. * src/MultiDiskWriter.h: New class.
  15645. * src/MultiDiskWriter.cc: New class.
  15646. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15647. protected.
  15648. (openFile): New function.
  15649. * src/AbstractDiskWriter.cc (openFile): New function.
  15650. * src/prefs.h (V_FALSE): New definition.
  15651. (PREF_DIRECT_FILE_MAPPING): New definition.
  15652. * src/TorrentMan.h (setupDiskWriter): New function.
  15653. (setAllMultiFileRequestedState): New function.
  15654. (onDownloadComplete): New function.
  15655. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15656. (setupDiskWriter): New function.
  15657. (getFilePath): Updated.
  15658. (getTempFilePath): Updated.
  15659. (getSegmentFilePath): Updated.
  15660. (fixFilename): Updated.
  15661. (deleteTempFile): Updated.
  15662. (setAllMultiFileRequestedState): New function.
  15663. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15664. (finishPartialDownloadingMode): Reset requested flags.
  15665. (onDownloadComplete): New function.
  15666. * src/main.cc: Added --direct-file-mapping option.
  15667. Use TorrentMan::setupDiskWriter().
  15668. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15669. onDownloadComplete().
  15670. To fix ETA bug:
  15671. * src/Util.h (difftvsec): New function.
  15672. * src/Util.cc (difftvsec): New function.
  15673. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15674. type of "elapsed" instead of long long int.
  15675. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15676. The updates of statistics takes place every 1 seconds.
  15677. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15678. (calculateSpeed): Changed its argument signature.
  15679. * src/PeerMessage.cc (toString): Fixed message.
  15680. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15681. To print ETA:
  15682. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15683. completion handling when dealing with
  15684. TorrentMan::isPartialDownloadingMode() == true.
  15685. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15686. New function.
  15687. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15688. (sessionDownloadLength): New variable.
  15689. (avgSpeed): New variable.
  15690. (eta): New variable.
  15691. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15692. new variables: eta, avgSpeed, startup.
  15693. (calculateSpeed): Calculate average speed and ETA.
  15694. (printStatistics): Added ETA.
  15695. * src/Util.h (secfmt): New function.
  15696. * src/Util.cc (secfmt): New function.
  15697. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15698. To detect "keep alive" flooding:
  15699. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15700. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15701. variable: keepAliveCount.
  15702. (detectMessageFlooding): Added "keep alive" flooding detection.
  15703. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15704. received.
  15705. To add the ability to download only specified files in multi-file
  15706. torrent:
  15707. * src/BitfieldMan.h (filterBitfield): New variable.
  15708. (filterEnabled): New variable.
  15709. (setFilterBit): New function.
  15710. (enableFilter): New function.
  15711. (disableFilter): New function.
  15712. (isFilterEnabled): New function.
  15713. (getFilteredTotalLength): New function.
  15714. (getCompletedLength): New function.
  15715. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15716. filterBitfield, filterEnabled.
  15717. (CopyConstructor): Added filterBitfield and filterEnabled.
  15718. (operator==): Added filterBitfield and filterEnabled.
  15719. (Destructor): Added filterBitfield.
  15720. (getMissingIndex): Use filterBitfield.
  15721. (getMissingUnusedIndex): Use filterBitfield.
  15722. (getFirstMissingUnusedIndex): Use filterBitfield.
  15723. (getFirstMissingUnusedIndex): Use filterBitfield.
  15724. (getAllMissingIndexes): Use filterBitfield.
  15725. (countMissingBlock): Use filterBitfield.
  15726. (countBlock): Use filterBitfield.
  15727. (setBitInternal): Added new argument on.
  15728. (setUseBit): Use setBitInternal.
  15729. (unsetUseBit): Use setBitInternal.
  15730. (setBit): Use setBitInternal.
  15731. (unsetBit): Use setBitInternal.
  15732. (isAllBitSet): Use filterBitfield.
  15733. (setFilterBit): New function.
  15734. (addFilter): New function.
  15735. (enableFilter): New function.
  15736. (disableFilter): New function.
  15737. (clearFilter): New function.
  15738. (isFilterEnabled): New function.
  15739. (getFilteredTotalLength): New function.
  15740. (getCompletedLength): New function.
  15741. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15742. Initalized newly added variables.
  15743. [FileEntry](offset): New variable.
  15744. [FileEntry](extracted): New variable.
  15745. [FileEntry](requested): New variable.
  15746. (readFileEntry): New function.
  15747. (option): New variable.
  15748. (splitMultiFile): Removed const qualifier.
  15749. (fixFilename): Removed const qualifier.
  15750. (readFileEntryFromMetaInfoFile): New function.
  15751. (finishPartialDownloadingMode): New function.
  15752. (isPartialDownloadingMode): New function.
  15753. (setFileEntriesToDownload): New function.
  15754. (getCompletedLength): New function.
  15755. (getPartialTotalLength): New function.
  15756. * src/TorrentMan.cc (readFileEntry): New function.
  15757. (setup): Use readFileEntry. If no-preallocation option is specified,
  15758. use DefaultDiskWriter.
  15759. (readFileEntryFromMetaInfoFile): New function.
  15760. (fixFilename): Removed const qualifier.
  15761. (splitMultiFile): Removed const qualifier.
  15762. (setFileEntriesToDownload): New function.
  15763. (isPartialDownloadingMode): New function.
  15764. (finishPartialDownloadingMode): New function.
  15765. (getCompletedLength): New function.
  15766. (getPartialTotalLength): New function.
  15767. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15768. New variable.
  15769. (partialTotalLength): New variable.
  15770. (downloadLength): New variable.
  15771. (totalLength): New variable.
  15772. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15773. Added log.
  15774. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15775. partialTotalLength, downloadLength, totalLength.
  15776. (calculate): Calculate downloadLength and totalLength.
  15777. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15778. * src/main.cc (addCommand): Changed argument signature.
  15779. (main): Added new variable: args. Added new option "torrent-show-files"
  15780. "no-preallocation". Usage is not updated yet.
  15781. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15782. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15783. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15784. Attempt to add the ability to listing file entries in a .torrent file.
  15785. This feature is not yet complete.
  15786. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15787. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15788. (getName): New function.
  15789. * src/TorrentMan.h (getMultiFileEntries): New function.
  15790. (getName): New function.
  15791. * src/main.cc (main): Use above 2 funtion.
  15792. * Release 0.3.2
  15793. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15794. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15795. (detectMessageFlooding): Updated threshold value.
  15796. (checkLongTimePeerChoking): Updated timeout value.
  15797. (getNewPieceAndSendInterest): Added debug log.
  15798. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15799. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15800. (getPeer): Updated.
  15801. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15802. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15803. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15804. is localhost.
  15805. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15806. * src/PendingMessage.cc (processMessage): Not to send piece message
  15807. if peer is not interested in the pieces localhost has.
  15808. * src/Peer.cc (shouldChoke): Updated.
  15809. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15810. * src/Util.cc (isPowerOf): New function.
  15811. * src/Util.h (isPowerOf): New function.
  15812. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15813. whether or not it is power of 2.
  15814. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15815. Added new class SendMessageQueue that includes PendingMessages and
  15816. RequestSlotMan.
  15817. * src/SendMessageQueue.h: New class.
  15818. * src/SendMessageQueue.cc: New class.
  15819. * src/PendingMessage.h: Added new member variable blockIndex and its
  15820. accessors.
  15821. (createRequestMessage): Updated.
  15822. * src/PendingMessage.cc (createRequestMessage): Updated.
  15823. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15824. SendMessageQueue.
  15825. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15826. (receiveMessage): Updated with SendMessageQueue.
  15827. (deletePendingPieceMessage): Removed.
  15828. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15829. (sendInterest): Updated with SendMessageQueue.
  15830. (createRequestPendingMessage): Updated with SendMessageQueue.
  15831. (sendMessages): Updated with SendMessageQueue.
  15832. (onAbort): Updated with SendMessageQueue.
  15833. (keepAlive): Updated with SendMessageQueue.
  15834. (beforeSocketCheck): Updated SendMessageQueue.
  15835. * src/PeerInteractionCommand (sendMessages): Shuffle
  15836. missingBLockIndexes before using it.
  15837. Added its own timeout for peer connection.
  15838. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15839. setter.
  15840. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15841. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15842. Added setTimeout() call.
  15843. (executeInternal): Added setTimeout() call.
  15844. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15845. Added timeout.
  15846. (isTimeoutDetected): Updated.
  15847. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15848. option.
  15849. Added *simple* message flooding checker.
  15850. * src/PeerInteractionCommand.cc (executeInternal):
  15851. Added detectMessageFlooding() call.
  15852. (detectMessageFlooding): New function.
  15853. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15854. (beforeSocketCheck): Added detectMessageFlooding() call.
  15855. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15856. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15857. Removed deletePendingPieceMessage(), getRequestSlot(),
  15858. deleteRequestSlot(), deleteAllRequestSlot().
  15859. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15860. Added checkLongTimePeerChoking() call.
  15861. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15862. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15863. if duplicate == false.
  15864. The parameter "uploaded" and "downloaded" in the tracker request are
  15865. the size since the client sent the "started" event to the tracker.
  15866. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15867. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15868. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15869. getSessionDownloadedSize(), getSessionUploadedSize().
  15870. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15871. getSessionUploadedSize() instead of getDownloadedSize(),
  15872. getUploadedSize().
  15873. * src/PendingMessage.cc (processMessage): Do not send request message
  15874. if the peer is choking the client.
  15875. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15876. less than interval.
  15877. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15878. * configure.in: Added gnutls support. Added several CPP macros.
  15879. * m4/openssl.m4: Added.
  15880. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15881. readData(), peekData(). Added gnutls support.
  15882. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15883. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15884. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15885. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15886. Instead, added a check for whether setup method has executed
  15887. successfully.
  15888. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15889. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15890. * src/Makefile.am: Updated.
  15891. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15892. using whether OpenSSL or gcrypt, depending on the result of configure
  15893. script.
  15894. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15895. messageDigest.h.
  15896. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15897. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15898. Fixed memory leak.
  15899. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15900. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15901. Removed instantiation of TrackerInitCommand. Instead,
  15902. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15903. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15904. ENABLE_SSL.
  15905. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15906. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15907. If a piece is already acquired by another command, delete the request
  15908. slots for the piece.
  15909. * src/TrackerUpdateCommand.cc (execute):
  15910. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15911. Added a check whether peer list is null.
  15912. Fixed the bug that causes sending completed event to the tracker
  15913. several times.
  15914. * src/TrackerInitCommand.cc (execute):
  15915. Fixed the bug that causes sending completed event to the tracker
  15916. several times.
  15917. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15918. by using messageDigest.h.
  15919. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15920. * PeerConnection.cc: Replaced log message "keep-alive" with
  15921. "keep alive".
  15922. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15923. localhost long time.
  15924. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15925. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15926. at most 100 failure entry from the list. If with duplicate = false,
  15927. MAX_PEER_LIST is not checked.
  15928. * PeerListenCommand.cc: Fixed the argument order of log message.
  15929. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15930. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15931. Added warn().
  15932. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15933. Implemented warn().
  15934. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15935. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15936. * Request.h: Added AFTER_COMPLETED event.
  15937. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15938. instead of downloaded size and progress(%) after download completes.
  15939. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15940. message to the peer if it is interested in what localhost has
  15941. downloaded.
  15942. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15943. destination instead of just renaming it.
  15944. * TorrentMan.cc: Added deleteTempFile().
  15945. * PeerAbstractCommand.cc: do not stop execution after download
  15946. completes. This makes localhost a seeder.
  15947. * Util.{h,cc}: Added fileCopy().
  15948. * PeerListenCommand.cc: do not stop execution after download completes.
  15949. This makes localhost a seeder.
  15950. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15951. Added TorrentMan::deleteTempFile() to torrentHandler.
  15952. Initialized the variable dir as ".".
  15953. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15954. Deleted renameSingleFile().
  15955. Added copySingleFile(), deleteTempFile().
  15956. * DownloadEngine.h: Added virtual function afterEachIteration().
  15957. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15958. in onEndOfRun() to afterEachIteration().
  15959. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15960. true.
  15961. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15962. In rangedFileCopy(), added try-catch block to properly close file
  15963. descriptors.
  15964. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15965. Added afterEachIteration(), isFilenameFixed().
  15966. * Peer.cc: Changed choking strategy.
  15967. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15968. * TrackerInitCommand.cc: Send completed event only once.
  15969. * DownloadEngine.cc: Added a call to afterEachIteration().
  15970. * TrackerUpdateCommand.cc: Do not stop execution after download
  15971. completes.
  15972. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15973. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15974. received from a tracker.
  15975. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15976. Decreased the number of failure peers to delete to 0(just comment out
  15977. the line).
  15978. * Release 0.3.1
  15979. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15980. * PeerInteractionCommand.cc: added a call to
  15981. TorrentMan::unadvertisePiece in Destructor.
  15982. * PeerInteractionCommand.cc: make have message sent immediately
  15983. if the size of pending message queue is zero.
  15984. * TorrentMan.cc: set the maximum size of peer list to 250.
  15985. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15986. to deque.
  15987. * Util.cc: fixed rangedFileCopy.
  15988. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15989. to Constructor. Also, moved digest cleanup to Destructor.
  15990. * MetaFileUtil.cc: fixed memory leak
  15991. * replaced std::vector with std::deque.
  15992. * AbstractCommand.cc: casted timeout value to long long int.
  15993. * ChunkedEncoding.cc: fixed memory leak.
  15994. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15995. * SleepCommand.cc: casted timeout value to long long int.
  15996. * Data.cc: fixed memory leak.
  15997. * Data.cc: fixed toLLInt().
  15998. * BitfieldMan.cc: fixed memory leak.
  15999. * TorrentMan.cc: initialized storeDir to ".".
  16000. * TorrentMan.cc: fixed memory leak.
  16001. * TorrentMan.cc: corrected file paths of splitted files.
  16002. * PeerAbstractCommand.cc: casted timeout to long long int.
  16003. * main.cc: added delete(req) and delete(te->diskWriter).
  16004. * RequestSlot.cc: casted timeout value to long long int.
  16005. * Request.cc: fixed memory leak.
  16006. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16007. have the piece.
  16008. * Peer.{h,cc}: added hasPiece(int index).
  16009. * main.cc: corrected addCommand.
  16010. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16011. * BitTorrent protocol support added.
  16012. * Release 0.3.0
  16013. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16014. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16015. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16016. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16017. decoding did not work properly.
  16018. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16019. * DownloadEngine.h: included sys/time.h
  16020. * DownloadEngine.cc: remove sys/time.h
  16021. * Makefile.am (SUBDIRS): Add intl.
  16022. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16023. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16024. * main.cc: correct help message for --http-auth-scheme.
  16025. * main.cc: changed e-mail address for bug reports.
  16026. * ja.po: added japanese translation.
  16027. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16028. * SimpleLogger.cc: flush log file instead of stdout.
  16029. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16030. * main.cc: Fixed command-line option: max-tries
  16031. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16032. does not equal to seg.sp.
  16033. * DownloadCommand.cc: If EOF is got from the server and the total size
  16034. of file is not zero, then throw DlRetryEx.
  16035. * main.cc: Set the minium value of min-segment-size to 1024.
  16036. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16037. fails because of a regression since 0.2.0 release.
  16038. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16039. * HttpConnection.cc:
  16040. * common.h: defined the user agent name as macro
  16041. * DownloadEngine.{h, cc}:
  16042. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16043. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16044. * main.cc: Download complete/abort message is now generated by main.
  16045. * Makefile.am (SUBDIRS): Add m4.
  16046. (ACLOCAL_AMFLAGS): New variable.
  16047. (EXTRA_DIST): New variable.
  16048. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16049. * gettext: added gettext functionality
  16050. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16051. * AbstractCommand.cc:
  16052. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16053. unregister its cuid from SegmentMan.
  16054. * DownloadEngine.cc: .aria2 file was written when a downloading
  16055. failed with errors.
  16056. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16057. Added "User-Agent" header to CONNECT proxy request.
  16058. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16059. properly.
  16060. * Logger.h:
  16061. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16062. * ChunkedEncoding.cc: Added #include directive for strings.h
  16063. * Release 0.2.1
  16064. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16065. * Util.{h,cc}: added startsWith().
  16066. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16067. Util::endsWith().
  16068. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16069. * common.h: added #include directive of limit.h.
  16070. * DownloadEngine.cc: added #include directive of sys/time.h and
  16071. algorithm.
  16072. * Exception.h: added #include directive of stdio.h.
  16073. * AbstractCommand.h: added #include directive of sys/time.h.
  16074. * DownloadCommand.h: added #include directive of sys/time.h.
  16075. * *.h: added #include directive of common.h to all base classes.
  16076. subclasses' one was removed.
  16077. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16078. does not define these macros.
  16079. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16080. * Release 0.2.0
  16081. * main.cc:
  16082. * HttpInitiateConnectionCommand.{h,cc}:
  16083. * prefs.h:
  16084. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16085. We can now use GET command in http proxy.
  16086. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16087. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16088. that splits slowest segment of SegmentMan::commands vector.
  16089. This is the default split algorithm of aria2.
  16090. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16091. that splits first segment of SegmentMan::commands vector.
  16092. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16093. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16094. * Segment.h:
  16095. * SegmentMan.cc: Added speed field to Segment.h
  16096. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16097. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16098. * message.h: Change file size related %d to %lld.
  16099. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16100. * FtpInitiateConnectionCommand.{h,cc}:
  16101. * FtpNegotiationCommand.{h,cc}:
  16102. * FtpDownloadCommand.{h,cc}:
  16103. * FtpConnection.{h,cc}: Added FTP support
  16104. * SimpleLogger.cc: Log message now includes time information.
  16105. * main.cc: The value of --http-auth-scheme option is chagned from
  16106. 'BASIC' to 'basic'
  16107. * main.cc: Added --timeout command-line option.
  16108. * main.cc: Added --min-segment-size command-line option.
  16109. * main.cc: Added --max-retries command-line option.
  16110. * prefs.h: option string constants are now defined in prefs.h
  16111. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16112. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16113. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16114. with version 0.1.0's one.
  16115. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16116. * configure.in: Added --enable-ssl option to configure script.
  16117. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16118. cannot permit absoluteURI as Request-URI.
  16119. * HttpConnection.cc: Added Referer support.
  16120. * main.cc: Added referer command-line option.
  16121. * main.cc: Added rety-wait command-line option.
  16122. * Exception.h: Fixed formating bug in Exception::setMsg()
  16123. * SocketCore.{h,cc}:
  16124. * Socket.{h, cc}:
  16125. * Request.cc:
  16126. * InitiateConnectionCommandFactory.cc:
  16127. * HttpRequestCommand.cc: Added HTTPS support.
  16128. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16129. for SocketCore.
  16130. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16131. size is wrong
  16132. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16133. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16134. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16135. * Release 0.1.0