ChangeLog 652 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931
  1. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Removed --http-auth-scheme option from man page.
  3. * doc/aria2c.1.txt
  4. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Removed --http-auth-scheme option since it doesn't do nothing.
  6. * src/OptionHandlerFactory.cc
  7. * src/prefs.cc
  8. * src/prefs.h
  9. * src/usage_text.h
  10. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Adjusted the number of peer info which get_peers reply message can
  12. carry.
  13. * src/DHTGetPeersReplyMessage.cc
  14. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  15. Added extension_message_test_helper.h to aria2c_SOURCES.
  16. * test/Makefile.am
  17. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Documented --bt-prioritize-piece option in man page.
  19. * doc/aria2c.1.txt
  20. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Added option --bt-prioritize-piece. This option instruct aria2 to
  22. try to download first and last pieces of each file first. The
  23. argument can contain 2 keywords:head and tail. To include both
  24. keywords, they must be separated by comma. These keywords can take
  25. one parameter, SIZE. For example , if head=SIZE is specified,
  26. pieces in the range of first SIZE bytes of each file get higher
  27. priority. tail=SIZE means the range of last SIZE bytes of each
  28. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  29. * src/DefaultPieceStorage.h
  30. * src/Makefile.am
  31. * src/OptionHandlerFactory.cc
  32. * src/OptionHandlerImpl.h
  33. * src/PriorityPieceSelector.cc
  34. * src/PriorityPieceSelector.h
  35. * src/RequestGroup.cc
  36. * src/prefs.cc
  37. * src/prefs.h
  38. * src/usage_text.h
  39. * src/util.cc
  40. * src/util.h
  41. * test/Makefile.am
  42. * test/MockPieceSelector.h
  43. * test/PriorityPieceSelectorTest.cc
  44. * test/UtilTest.cc
  45. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Fixed typo
  47. * src/HttpRequest.h
  48. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. In Magnet URI with tr parameter, put each announce URI in separate
  50. tier.
  51. * src/bittorrent_helper.cc
  52. * test/BittorrentHelperTest.cc
  53. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Renamed ExtensionMessage::getBencodedData() as
  55. ExtensionMessage::getPayload()
  56. * src/BtExtendedMessage.cc
  57. * src/ExtensionMessage.h
  58. * src/HandshakeExtensionMessage.cc
  59. * src/HandshakeExtensionMessage.h
  60. * src/UTMetadataDataExtensionMessage.cc
  61. * src/UTMetadataDataExtensionMessage.h
  62. * src/UTMetadataRejectExtensionMessage.cc
  63. * src/UTMetadataRejectExtensionMessage.h
  64. * src/UTMetadataRequestExtensionMessage.cc
  65. * src/UTMetadataRequestExtensionMessage.h
  66. * src/UTPexExtensionMessage.cc
  67. * src/UTPexExtensionMessage.h
  68. * test/HandshakeExtensionMessageTest.cc
  69. * test/MockExtensionMessage.h
  70. * test/UTMetadataDataExtensionMessageTest.cc
  71. * test/UTMetadataRejectExtensionMessageTest.cc
  72. * test/UTMetadataRequestExtensionMessageTest.cc
  73. * test/UTPexExtensionMessageTest.cc
  74. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Updated man page for BitTorrent Magnet URI.
  76. * doc/aria2c.1.txt
  77. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Call DownloadContext::setOwnerRequestGroup() in
  79. RequestGroup::setDownloadContext().
  80. * src/BtDependency.cc
  81. * src/RequestGroup.cc
  82. * src/RequestGroup.h
  83. * src/download_helper.cc
  84. * test/DefaultBtMessageDispatcherTest.cc
  85. * test/DefaultExtensionMessageFactoryTest.cc
  86. * test/HandshakeExtensionMessageTest.cc
  87. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  88. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  89. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  90. from metadata, use new metadata2Torrent() function.
  91. * src/BtDependency.cc
  92. * src/UTMetadataPostDownloadHandler.cc
  93. * src/bittorrent_helper.cc
  94. * src/bittorrent_helper.h
  95. * test/BittorrentHelperTest.cc
  96. * test/BtDependencyTest.cc
  97. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Use createRequestGroupForUri to create the download for torrent
  99. file.
  100. * src/Metalink2RequestGroup.cc
  101. * test/Metalink2RequestGroupTest.cc
  102. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Fixed typo
  104. * src/DownloadContext.h
  105. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Use createRequestGroupForBitTorrent()
  107. * src/BtPostDownloadHandler.cc
  108. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Added remove().
  110. * src/Option.cc
  111. * src/Option.h
  112. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  113. Removed options which is only valid for URIs specified in
  114. command-line. If they are left, because op is used as a template
  115. for new RequestGroup(such as created in XML-RPC command,
  116. BtPostDownloadHandler etc), they causes unintentional effect.
  117. * src/main.cc
  118. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Refer to option value of PREF_OUT only in download_helper.
  120. * src/FtpNegotiationCommand.cc
  121. * src/HttpResponseCommand.cc
  122. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  124. * src/download_helper.cc
  125. * src/download_helper.h
  126. * src/XmlRpcMethodImpl.cc
  127. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Updated man page for changeOption XML-RPC method.
  129. * doc/aria2c.1.txt
  130. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Added --bt-max-peers option to changeOption XML-RPC method.
  132. * src/XmlRpcMethod.cc
  133. * src/XmlRpcMethodImpl.cc
  134. * test/XmlRpcMethodTest.cc
  135. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  137. * test/XmlRpcMethodTest.cc
  138. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Removed redundant DownloadContext::hasAttribute(...) calls.
  140. * src/ConsoleStatCalc.cc
  141. * src/RequestGroup.cc
  142. * src/XmlRpcMethodImpl.cc
  143. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  144. Changed the number of tracker request attempt from 5 to 2.
  145. * src/TrackerWatcherCommand.cc
  146. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Use host and protocol in original URI, because URI selector
  148. selects URI based on original URI, not redirected one.
  149. * src/Request.cc
  150. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Fixed the bug which causes segmentation fault with tellWaiting
  152. XML-RPC method when BitTorrent download is waiting. The key of
  153. BtRegistry is changed from info hash to GID, because it is
  154. registered per RequestGroup, not info hash.
  155. * src/BtRegistry.cc
  156. * src/BtRegistry.h
  157. * src/BtSetup.cc
  158. * src/ConsoleStatCalc.cc
  159. * src/InitiatorMSEHandshakeCommand.cc
  160. * src/PeerInitiateConnectionCommand.cc
  161. * src/PeerInteractionCommand.cc
  162. * src/PeerInteractionCommand.h
  163. * src/PeerReceiveHandshakeCommand.cc
  164. * src/RequestGroup.cc
  165. * src/XmlRpcMethodImpl.cc
  166. * test/BtRegistryTest.cc
  167. * test/XmlRpcMethodTest.cc
  168. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Updated man page for changeOption XML-RPC method.
  170. * doc/aria2c.1.txt
  171. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  173. method.
  174. * src/XmlRpcMethod.cc
  175. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Documented about BitTorrent Magnet URI in man page.
  177. * doc/aria2c.1.txt
  178. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Fixed the bug that trackers in BitTorrent Magnet URI are not
  180. inherited to generated RequestGroup.
  181. * src/UTMetadataPostDownloadHandler.cc
  182. * test/UTMetadataPostDownloadHandlerTest.cc
  183. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Prepended "[METADATA]" before dn.
  185. * src/bittorrent_helper.cc
  186. * test/BittorrentHelperTest.cc
  187. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Rewritten Magnet URI parser.
  189. * src/Makefile.am
  190. * src/ProtocolDetector.cc
  191. * src/bittorrent_helper.cc
  192. * src/bittorrent_helper.h
  193. * src/download_helper.cc
  194. * src/magnet.cc
  195. * src/magnet.h
  196. * test/BittorrentHelperTest.cc
  197. * test/MagnetTest.cc
  198. * test/Makefile.am
  199. * test/ProtocolDetectorTest.cc
  200. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Use hton64
  202. * src/base32.cc
  203. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  204. Added Base32 encoded BitTorrent Magnet Link support.
  205. * src/Makefile.am
  206. * src/base32.cc
  207. * src/base32.h
  208. * src/bittorrent_helper.cc
  209. * test/Base32Test.cc
  210. * test/BittorrentHelperTest.cc
  211. * test/Makefile.am
  212. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Added BitTorrent Magnet Link support. Base32 encoded link is not
  214. supported yet. Fixed typo in method name in RequestGroup. In
  215. metadataGetMode, don't show "Your share ratio was ..." message.
  216. * src/DefaultBtInteractive.cc
  217. * src/DefaultBtInteractive.h
  218. * src/DownloadHandlerFactory.cc
  219. * src/DownloadHandlerFactory.h
  220. * src/HandshakeExtensionMessage.cc
  221. * src/Makefile.am
  222. * src/Metalink2RequestGroup.cc
  223. * src/PeerInteractionCommand.cc
  224. * src/RequestGroup.cc
  225. * src/RequestGroup.h
  226. * src/UTMetadataPostDownloadHandler.cc
  227. * src/UTMetadataPostDownloadHandler.h
  228. * src/download_helper.cc
  229. * test/HandshakeExtensionMessageTest.cc
  230. * test/Makefile.am
  231. * test/UTMetadataPostDownloadHandlerTest.cc
  232. * test/UTMetadataRejectExtensionMessageTest.cc
  233. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. In metadataGetMode, don't show SEEDING.
  235. * src/ConsoleStatCalc.cc
  236. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  237. Fixed ut_metadata data handling. Implemented
  238. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  239. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  240. metadata_size is received.
  241. * src/DefaultExtensionMessageFactory.cc
  242. * src/DefaultExtensionMessageFactory.h
  243. * src/HandshakeExtensionMessage.cc
  244. * src/HandshakeExtensionMessage.h
  245. * src/UTMetadataDataExtensionMessage.cc
  246. * src/UTMetadataDataExtensionMessage.h
  247. * src/UTMetadataRequestExtensionMessage.cc
  248. * src/UTMetadataRequestFactory.cc
  249. * src/UTMetadataRequestFactory.h
  250. * src/UTMetadataRequestTracker.cc
  251. * src/UTMetadataRequestTracker.h
  252. * test/DefaultExtensionMessageFactoryTest.cc
  253. * test/HandshakeExtensionMessageTest.cc
  254. * test/MockBtMessage.h
  255. * test/UTMetadataDataExtensionMessageTest.cc
  256. * test/UTMetadataRequestExtensionMessageTest.cc
  257. * test/UTMetadataRequestFactoryTest.cc
  258. * test/UTMetadataRequestTrackerTest.cc
  259. * test/extension_message_test_helper.h
  260. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Drop connection if ut_metadata reject message is received.
  262. * src/UTMetadataRejectExtensionMessage.cc
  263. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  265. get high enough in that mode.
  266. * src/ActivePeerConnectionCommand.cc
  267. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Added BitTorrent magnet link support to ProtocolDetector.
  269. * src/ProtocolDetector.cc
  270. * src/ProtocolDetector.h
  271. * test/ProtocolDetectorTest.cc
  272. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Don't inject validator into BtMessage in metadataGetMode because
  274. most of the checks depends on the total length of download but it
  275. is unknown. Delegate metadataGetMode to BtMessage.
  276. * src/DefaultBtMessageFactory.cc
  277. * src/DefaultBtMessageFactory.h
  278. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  280. * src/DefaultPieceStorage.h
  281. * src/PieceStorage.h
  282. * src/UnknownLengthPieceStorage.h
  283. * test/MockPieceStorage.h
  284. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Added markTotalLengthIsKnown().
  286. * src/DownloadContext.h
  287. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  289. missing. If metadata is missing, always use DHT when it is ready.
  290. * src/BtSetup.cc
  291. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  292. Added parseMagnetLink(). Hex encoded info hash is supported.
  293. Base32 encoded info hash is not supported yet.
  294. * src/bittorrent_helper.cc
  295. * src/bittorrent_helper.h
  296. * test/BittorrentHelperTest.cc
  297. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Added FromHex()
  299. * src/util.cc
  300. * src/util.h
  301. * test/UtilTest.cc
  302. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Added _metadataGetMode member variable. It toggles the action when
  304. messages are received: usually they almost do nothing if
  305. _metadataGetMode is true.
  306. * src/AbstractBtMessage.cc
  307. * src/AbstractBtMessage.h
  308. * src/BtAllowedFastMessage.cc
  309. * src/BtBitfieldMessage.cc
  310. * src/BtCancelMessage.cc
  311. * src/BtChokeMessage.cc
  312. * src/BtHaveAllMessage.cc
  313. * src/BtHaveMessage.cc
  314. * src/BtInterestedMessage.cc
  315. * src/BtNotInterestedMessage.cc
  316. * src/BtPieceMessage.cc
  317. * src/BtRejectMessage.cc
  318. * src/BtRequestMessage.cc
  319. * src/BtUnchokeMessage.cc
  320. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Added bencode::decode overload functions. They have extra argument
  322. 'end', passed by reference. 'end' points to the beyond the last
  323. position of data used in decoding process.
  324. * src/bencode.cc
  325. * src/bencode.h
  326. * test/BencodeTest.cc
  327. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Initial support of Extension for Peers to Send Metadata
  329. Files(BEP9). Currently aria2 only serves metadata and cannot get
  330. metadata from swarm.
  331. * src/BtConstants.h
  332. * src/DefaultBtInteractive.cc
  333. * src/DefaultExtensionMessageFactory.cc
  334. * src/DefaultExtensionMessageFactory.h
  335. * src/ExtensionMessage.h
  336. * src/ExtensionMessageRegistry.h
  337. * src/HandshakeExtensionMessage.cc
  338. * src/HandshakeExtensionMessage.h
  339. * src/Makefile.am
  340. * src/PeerConnection.h
  341. * src/PeerInteractionCommand.cc
  342. * src/UTMetadataDataExtensionMessage.cc
  343. * src/UTMetadataDataExtensionMessage.h
  344. * src/UTMetadataExtensionMessage.cc
  345. * src/UTMetadataExtensionMessage.h
  346. * src/UTMetadataRejectExtensionMessage.cc
  347. * src/UTMetadataRejectExtensionMessage.h
  348. * src/UTMetadataRequestExtensionMessage.cc
  349. * src/UTMetadataRequestExtensionMessage.h
  350. * src/bittorrent_helper.cc
  351. * src/bittorrent_helper.h
  352. * test/BittorrentHelperTest.cc
  353. * test/DefaultExtensionMessageFactoryTest.cc
  354. * test/HandshakeExtensionMessageTest.cc
  355. * test/Makefile.am
  356. * test/UTMetadataDataExtensionMessageTest.cc
  357. * test/UTMetadataRejectExtensionMessageTest.cc
  358. * test/UTMetadataRequestExtensionMessageTest.cc
  359. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  360. Cancel segment in prepareForRetry() because there is a chance that
  361. the command has segments.
  362. * src/CreateRequestCommand.cc
  363. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  364. Fixed the bug that slow server is not knocked down in favor of
  365. faster one.
  366. * src/AbstractCommand.cc
  367. * src/DefaultPieceStorage.cc
  368. * src/DefaultPieceStorage.h
  369. * src/PieceStorage.h
  370. * src/UnknownLengthPieceStorage.cc
  371. * src/UnknownLengthPieceStorage.h
  372. * test/MockPieceStorage.h
  373. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Fixed the bug that Request object is not added to
  375. _inFlightRequests in findFasterRequest().
  376. * src/FileEntry.cc
  377. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  378. Changed the strategry of how to increase the number of outstanding
  379. requests. Now the number is doubled if there are no outstanding
  380. requests after receiving messages.
  381. * src/BtConstants.h
  382. * src/DefaultBtInteractive.cc
  383. * src/DefaultBtInteractive.h
  384. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Check socket for reading if there are outstanding requests.
  386. * src/PeerInteractionCommand.cc
  387. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Moved frequently called methods to header file so they get
  389. inlined.
  390. * src/RequestSlot.cc
  391. * src/RequestSlot.h
  392. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  393. Copied in_addr instead of just casting from char* which might
  394. violate strict aliasing rules.
  395. * src/AsyncNameResolver.cc
  396. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  397. Use dynamic_pointer_cast
  398. * test/BtPieceMessageTest.cc
  399. * test/BtRequestMessageTest.cc
  400. * test/DefaultBtRequestFactoryTest.cc
  401. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Added testSetUrl20()
  403. * test/RequestTest.cc
  404. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. Code cleanup
  406. * src/bittorrent_helper.cc
  407. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Use C++ style cast
  409. * src/AsyncNameResolver.cc
  410. * src/Base64.h
  411. * src/BtBitfieldMessage.cc
  412. * src/BtHandshakeMessage.cc
  413. * src/DefaultBtMessageFactory.cc
  414. * src/DefaultBtProgressInfoFile.cc
  415. * src/EpollEventPoll.cc
  416. * src/ExpatMetalinkProcessor.cc
  417. * src/IteratableChecksumValidator.cc
  418. * src/IteratableChunkChecksumValidator.cc
  419. * src/MessageDigestHelper.cc
  420. * src/Platform.cc
  421. * src/RequestGroupMan.cc
  422. * src/SingleFileAllocationIterator.cc
  423. * src/Sqlite3MozCookieParser.cc
  424. * src/XML2SAXMetalinkProcessor.cc
  425. * src/Xml2XmlRpcRequestProcessor.cc
  426. * src/util.cc
  427. * src/util.h
  428. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Fixed integer potential alignment problem.
  430. * src/bitfield.h
  431. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Applied a patch from tizianomueller to fix sigbus errors on Linux
  433. sparc. I modified the patch to eliminate a cast to uint32_t* and
  434. include file ordering.
  435. * src/PeerListProcessor.h
  436. * src/bittorrent_helper.cc
  437. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  439. * src/Request.cc
  440. * src/util.cc
  441. * src/util.h
  442. * test/RequestTest.cc
  443. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Rewritten util::uitos()
  445. * src/util.h
  446. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  447. Code cleanup
  448. * src/Request.cc
  449. * src/Request.h
  450. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  451. Rewritten Request::parseUrl()
  452. * src/Request.cc
  453. * test/RequestTest.cc
  454. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. Removed unused macro SAFE_CHARS
  456. * src/Request.cc
  457. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  458. Updated doc
  459. * src/DHTRoutingTableDeserializer.cc
  460. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Release 1.6.3
  462. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  463. Removed unused function.
  464. * test/DHTPeerAnnounceStorageTest.cc
  465. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Only decrement cols if cols > 0
  467. * src/ConsoleStatCalc.cc
  468. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Updated Polish, Catalan, French, Italian, Russian and Japanese
  470. translations. Thanks to all translators.
  471. * po/ca.po
  472. * po/fr.po
  473. * po/it.po
  474. * po/ja.po
  475. * po/pl.po
  476. * po/ru.po
  477. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  478. Updated translation template
  479. * po
  480. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Fixed compile error without ssl library.
  482. * src/util.cc
  483. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Logged received nodes in get_peers reply message.
  485. * src/DHTAbstractNodeLookupTask.cc
  486. * src/DHTAbstractNodeLookupTask.h
  487. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  489. error occurred in DHTMessageDispatcherImpl::sendMessage().
  490. * src/DHTMessageDispatcherImpl.cc
  491. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Don't reuse URI if Request pool is not empty.
  493. * src/CreateRequestCommand.cc
  494. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  496. receive get_peers request for torrent which the client is now
  497. downloading.
  498. * src/BtSetup.cc
  499. * src/DHTPeerAnnounceEntry.cc
  500. * src/DHTPeerAnnounceEntry.h
  501. * src/DHTPeerAnnounceStorage.cc
  502. * src/DHTPeerAnnounceStorage.h
  503. * src/RequestGroup.cc
  504. * test/DHTPeerAnnounceEntryTest.cc
  505. * test/DHTPeerAnnounceStorageTest.cc
  506. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Fixed the bug that in Windows environment new blank line is
  508. inserted when console readout is updated.
  509. * src/ConsoleStatCalc.cc
  510. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Throw exception if binding listening port is failed. Removed
  512. RequestGroupMan::getInitialCommand(). Use
  513. fillRequestGroupFromReserver() instead. Delete commands for
  514. RequestGroup which has errors when it is being added.
  515. * src/BtSetup.cc
  516. * src/DownloadEngine.cc
  517. * src/DownloadEngine.h
  518. * src/DownloadEngineFactory.cc
  519. * src/MultiUrlRequestInfo.cc
  520. * src/RequestGroupMan.cc
  521. * src/RequestGroupMan.h
  522. * test/RequestGroupManTest.cc
  523. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Fixed the bug that when downloading more than one torrent,
  525. listening port is not reported properly to tracker for 2nd or
  526. later torrents.
  527. * src/BtSetup.cc
  528. * src/PeerListenCommand.cc
  529. * src/PeerListenCommand.h
  530. * src/RequestGroup.cc
  531. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  532. Bump up version number to 1.6.3
  533. * configure.ac
  534. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Removed Util.cc from POTFILES.in
  536. * po/POTFILES.in
  537. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Updated man page for previous change.
  539. * doc/aria2c.1.txt
  540. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  541. If user name is embedded but password is missing in URI, first
  542. resolve password using .netrc. If password is found in .netrc,
  543. then use it as password. If not, use the password specified in
  544. --ftp-passwd.
  545. * src/AuthConfigFactory.cc
  546. * src/Request.cc
  547. * src/Request.h
  548. * test/AuthConfigFactoryTest.cc
  549. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Fixed typo
  551. * doc/aria2c.1.txt
  552. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Fixed typo
  554. * src/usage_text.h
  555. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  556. Added missing bitfield.cc
  557. * src/bitfield.cc
  558. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Renamed Util.{cc,h} as util.{cc,h}
  560. * src/Util.cc
  561. * src/Util.h
  562. * src/util.cc
  563. * src/util.h
  564. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Moved static functions in Util class to namespace util.
  566. * src
  567. * test
  568. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  570. Moved generateRandomKey to bittorrent_helper.cc.
  571. * src/DHTBucket.cc
  572. * src/DHTGetPeersMessage.cc
  573. * src/DHTGetPeersReplyMessage.cc
  574. * src/DHTMessage.cc
  575. * src/DHTNode.cc
  576. * src/DHTTokenTracker.cc
  577. * src/DHTUtil.cc: Removed.
  578. * src/DHTUtil.h: Removed.
  579. * src/Makefile.am
  580. * src/Util.cc
  581. * src/Util.h
  582. * src/bitfield.h
  583. * src/bittorrent_helper.cc
  584. * src/bittorrent_helper.h
  585. * test/ARC4Test.cc
  586. * test/BNodeTest.cc
  587. * test/DHTAnnouncePeerMessageTest.cc
  588. * test/DHTAnnouncePeerReplyMessageTest.cc
  589. * test/DHTFindNodeMessageTest.cc
  590. * test/DHTFindNodeReplyMessageTest.cc
  591. * test/DHTGetPeersMessageTest.cc
  592. * test/DHTGetPeersReplyMessageTest.cc
  593. * test/DHTPingMessageTest.cc
  594. * test/DHTPingReplyMessageTest.cc
  595. * test/DHTTokenTrackerTest.cc
  596. * test/DHTUtilTest.cc: Removed.
  597. * test/Makefile.am
  598. * test/UtilTest.cc
  599. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  600. Removed the call to trim() because trim() is called for each
  601. element in split().
  602. * src/CookieParser.cc
  603. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Replaced Util::slice() with split()
  605. * src/AbstractCommand.cc
  606. * src/CookieParser.cc
  607. * src/File.cc
  608. * src/HttpHeaderProcessor.cc
  609. * src/HttpRequest.cc
  610. * src/Metalink2RequestGroup.cc
  611. * src/MetalinkParserController.cc
  612. * src/Netrc.cc
  613. * src/NsCookieParser.cc
  614. * src/ParameterizedStringParser.cc
  615. * src/ServerStatMan.cc
  616. * src/UriListParser.cc
  617. * src/Util.cc
  618. * src/Util.h
  619. * src/bittorrent_helper.cc
  620. * test/UtilTest.cc
  621. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Use request->getDir() instead of "/" for embedded user/pass in
  623. URI.
  624. * src/AuthConfigFactory.cc
  625. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Fixed wrong insertion point for BasicCred.
  627. * src/AuthConfigFactory.cc
  628. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  629. Allowed non-regular file in LocalFilePathOptionHandler
  630. * src/OptionHandlerImpl.h
  631. * src/message.h
  632. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Fixed the bug that Netrc::parse() cannot recognize comment line.
  634. * src/Netrc.cc
  635. * src/Util.h
  636. * test/NetrcTest.cc
  637. * test/sample.netrc
  638. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Fixed typo
  640. * src/BtDependency.cc
  641. * src/BtRejectMessage.cc
  642. * src/FtpConnection.cc
  643. * src/HttpHeaderProcessor.h
  644. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  645. Fixed lintian report in man page
  646. * doc/aria2c.1.txt
  647. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Release 1.6.2
  649. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Updated Ukrainian translation. Thanks to all translators.
  651. * po/uk.po
  652. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Updated translation template
  654. * po
  655. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Bump up version number to 1.6.2
  657. * configure.ac
  658. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  659. Updated licence message in -v output.
  660. * src/version_usage.cc
  661. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  662. Replaced aria2 with aria2c in help message.
  663. * src/version_usage.cc
  664. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  666. * src/version_usage.cc
  667. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Quoted localedir
  669. * src/Makefile.am
  670. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  671. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  672. utime. Check header for utime.h.
  673. * configure.ac
  674. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  676. * configure.ac
  677. * src/daemon.cc
  678. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Don't set localedir manually. Leave it to autoconf.
  680. * configure.ac
  681. * src/Makefile.am
  682. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  683. Added --install to ACLOCAL_AMFLAGS.
  684. Removed m4 from SUBDIRS.
  685. Updated automake 1.11 and autoconf 2.64.
  686. Replaced some obsolute macros with new one.
  687. * Makefile.am
  688. * configure.ac
  689. * m4/aria2_arg.m4
  690. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Removed Makefile.am in m4 directory.
  692. * configure.ac
  693. * m4/ChangeLog
  694. * m4/Makefile.am
  695. * m4/Makefile.in
  696. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. Removed unused m4 macros.
  698. * m4/intldir.m4
  699. * m4/inttypes.m4
  700. * m4/isc-posix.m4
  701. * m4/libgnutls-extra.m4
  702. * m4/ulonglong.m4
  703. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Fixed the bug that causes segmentation fault if
  705. req->getCurrentUrl() contains printf formatting characters such as
  706. %d. The statement that causes this bug is useless and removed.
  707. * src/AbstractCommand.cc
  708. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. * Release 1.6.1
  710. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  711. Updated Simplified Chinese translation. Thanks to translators.
  712. * po/zh_CN.po
  713. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  714. Updated translation template
  715. * po
  716. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Bump up version number to 1.6.1
  718. * configure.ac
  719. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Changed interval from 120 to 60 for dropping inactive peer.
  721. * src/DefaultBtInteractive.cc
  722. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Updated man page for --user-agent and --peer-id-prefix option.
  724. * doc/aria2c.1.txt
  725. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Code clean up
  727. * src/BtPostDownloadHandler.cc
  728. * src/ContentTypeRequestGroupCriteria.cc
  729. * src/ContentTypeRequestGroupCriteria.h
  730. * src/DownloadHandlerConstants.cc
  731. * src/DownloadHandlerConstants.h
  732. * src/DownloadHandlerFactory.cc
  733. * src/MetalinkPostDownloadHandler.cc
  734. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Don't save control file when aria2 exists while checking piece
  736. hash(behavior of -V option). If control file doesn't exist when
  737. aria2 launched, the completed length in saved control file will be
  738. 0 byte and this confuses user. disableSaveControlFile() is called
  739. in RequestGroup::processCheckIntegrityEntry().
  740. enableSaveControlFile() will be called after hash checking is
  741. done. See CheckIntegrityCommand.
  742. * src/CheckIntegrityCommand.cc
  743. * src/RequestGroup.cc
  744. * src/RequestGroup.h
  745. * src/RequestGroupMan.cc
  746. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Included version number in Peer ID and client version. Peer ID
  748. now starts with "aria2/VERSION-", where VERSION is
  749. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  750. * src/DefaultBtInteractive.cc
  751. * src/OptionHandlerFactory.cc
  752. * src/bittorrent_helper.cc
  753. * src/bittorrent_helper.h
  754. * src/main.cc
  755. * src/usage_text.h
  756. * test/BittorrentHelperTest.cc
  757. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. Fixed memory leak.
  759. * src/DownloadCommand.cc
  760. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Removed server, port, user and passwd key from options before
  762. XMLRPC::Client.call since they are not options of aria2.
  763. * doc/xmlrpc/aria2mon
  764. * doc/xmlrpc/aria2rpc
  765. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Included version number in user-agent string.
  767. * src/OptionHandlerFactory.cc
  768. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Fixed the bug that the option values changed by XML-RPC
  770. method(changeOption and changeGlobalOption) are overwritten to the
  771. previous value by the next these request which doesn't contain
  772. that option value. Supporse max-download-limit is initially 0. You
  773. changed this value to 100K by changeOption. Then you issue
  774. changeOption request to change max-upload-limit to 50K. This
  775. second request doesn't contain xml-download-limit, so it is back
  776. to initial value, 0. Another improvement is that exception is
  777. thrown when changeOption and changeGlobalOption request contains
  778. option name which doesn't allowed in each request.
  779. * src/DownloadEngine.h
  780. * src/XmlRpcMethod.cc
  781. * src/XmlRpcMethod.h
  782. * src/XmlRpcMethodImpl.cc
  783. * src/download_helper.cc
  784. * src/download_helper.h
  785. * test/XmlRpcMethodTest.cc
  786. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Added missing MetalinkParserStateImpl.{cc,h}
  788. * src/MetalinkParserStateImpl.cc
  789. * src/MetalinkParserStateImpl.h
  790. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Put all MetalinkParserState subclasses into
  792. MetalinkParserStateImpl.cc. Use stack to track element structure.
  793. * src/FileMetalinkParserState.cc: Removed
  794. * src/FileMetalinkParserState.h: Removed
  795. * src/FilesMetalinkParserState.cc: Removed
  796. * src/FilesMetalinkParserState.h: Removed
  797. * src/FinMetalinkParserState.cc: Removed
  798. * src/FinMetalinkParserState.h: Removed
  799. * src/HashMetalinkParserState.cc: Removed
  800. * src/HashMetalinkParserState.h: Removed
  801. * src/InitialMetalinkParserState.cc: Removed
  802. * src/InitialMetalinkParserState.h: Removed
  803. * src/LanguageMetalinkParserState.cc: Removed
  804. * src/LanguageMetalinkParserState.h: Removed
  805. * src/Makefile.am
  806. * src/MetalinkMetalinkParserState.cc: Removed
  807. * src/MetalinkMetalinkParserState.h: Removed
  808. * src/MetalinkParserState.h
  809. * src/MetalinkParserStateMachine.cc
  810. * src/MetalinkParserStateMachine.h
  811. * src/OSMetalinkParserState.cc: Removed
  812. * src/OSMetalinkParserState.h: Removed
  813. * src/PieceHashMetalinkParserState.cc: Removed
  814. * src/PieceHashMetalinkParserState.h: Removed
  815. * src/PiecesMetalinkParserState.cc: Removed
  816. * src/PiecesMetalinkParserState.h: Removed
  817. * src/ResourcesMetalinkParserState.cc: Removed
  818. * src/ResourcesMetalinkParserState.h: Removed
  819. * src/SignatureMetalinkParserState.cc: Removed
  820. * src/SignatureMetalinkParserState.h: Removed
  821. * src/SizeMetalinkParserState.cc: Removed
  822. * src/SizeMetalinkParserState.h: Removed
  823. * src/SkipTagMetalinkParserState.cc: Removed
  824. * src/SkipTagMetalinkParserState.h: Removed
  825. * src/URLMetalinkParserState.cc: Removed
  826. * src/URLMetalinkParserState.h: Removed
  827. * src/VerificationMetalinkParserState.cc: Removed
  828. * src/VerificationMetalinkParserState.h: Removed
  829. * src/VersionMetalinkParserState.cc: Removed
  830. * src/VersionMetalinkParserState.h: Removed
  831. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Move all functions in PeerMessageUtil to bittorrent_helper.
  833. * src/BtBitfieldMessage.cc
  834. * src/BtBitfieldMessageValidator.h
  835. * src/BtExtendedMessage.cc
  836. * src/BtHandshakeMessage.cc
  837. * src/BtHandshakeMessageValidator.h
  838. * src/BtPieceMessage.cc
  839. * src/BtPieceMessageValidator.h
  840. * src/BtPortMessage.cc
  841. * src/DHTFindNodeReplyMessage.cc
  842. * src/DHTGetPeersReplyMessage.cc
  843. * src/DHTMessageFactoryImpl.cc
  844. * src/DHTRoutingTableDeserializer.cc
  845. * src/DHTRoutingTableSerializer.cc
  846. * src/DHTTokenTracker.cc
  847. * src/DefaultBtMessageFactory.cc
  848. * src/IndexBtMessage.cc
  849. * src/IndexBtMessage.h
  850. * src/IndexBtMessageValidator.h
  851. * src/Makefile.am
  852. * src/PeerMessageUtil.cc: Removed.
  853. * src/PeerMessageUtil.h: Removed.
  854. * src/RangeBtMessage.cc
  855. * src/RangeBtMessage.h
  856. * src/RangeBtMessageValidator.h
  857. * src/UTPexExtensionMessage.cc
  858. * src/ZeroBtMessage.cc
  859. * src/ZeroBtMessage.h
  860. * src/bittorrent_helper.cc
  861. * src/bittorrent_helper.h
  862. * test/BittorrentHelperTest.cc
  863. * test/BtAllowedFastMessageTest.cc
  864. * test/BtBitfieldMessageTest.cc
  865. * test/BtCancelMessageTest.cc
  866. * test/BtChokeMessageTest.cc
  867. * test/BtExtendedMessageTest.cc
  868. * test/BtHandshakeMessageTest.cc
  869. * test/BtHaveAllMessageTest.cc
  870. * test/BtHaveMessageTest.cc
  871. * test/BtHaveNoneMessageTest.cc
  872. * test/BtInterestedMessageTest.cc
  873. * test/BtNotInterestedMessageTest.cc
  874. * test/BtPieceMessageTest.cc
  875. * test/BtPortMessageTest.cc
  876. * test/BtRejectMessageTest.cc
  877. * test/BtRequestMessageTest.cc
  878. * test/BtSuggestPieceMessageTest.cc
  879. * test/BtUnchokeMessageTest.cc
  880. * test/DHTFindNodeReplyMessageTest.cc
  881. * test/DHTGetPeersReplyMessageTest.cc
  882. * test/DHTMessageFactoryImplTest.cc
  883. * test/DHTRoutingTableDeserializerTest.cc
  884. * test/DHTRoutingTableSerializerTest.cc
  885. * test/DefaultBtMessageFactoryTest.cc
  886. * test/DefaultExtensionMessageFactoryTest.cc
  887. * test/Makefile.am
  888. * test/PeerListProcessorTest.cc
  889. * test/PeerMessageUtilTest.cc: Removed.
  890. * test/UTPexExtensionMessageTest.cc
  891. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Limit the size of values list when sending get_peers reply.
  893. * src/DHTGetPeersReplyMessage.cc
  894. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  895. Updated banner
  896. * doc/xmlrpc/aria2rpc
  897. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Added missing help message for remove command.
  899. * doc/xmlrpc/aria2rpc
  900. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Generated configure and config.h.in
  902. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  903. Add check for fork(), which is missing on MinGW
  904. * src/daemon.cc
  905. * configure.ac
  906. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  907. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  908. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  909. Util::httpGMT().
  910. * src/Util.cc
  911. * src/Util.h
  912. * test/UtilTest.cc
  913. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. * Release 1.6.0
  915. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  916. Fixed a path to xmlrpc/README.txt
  917. * doc/Makefile.am
  918. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Added XML-RPC in -v Configuration output.
  920. * src/FeatureConfig.cc
  921. * src/FeatureConfig.h
  922. * test/FeatureConfigTest.cc
  923. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Updated Bulgarian, Russian, Slovak and Japanese
  925. translations. Thanks to all translators.
  926. * po/bg.po
  927. * po/ja.po
  928. * po/ru.po
  929. * po/sk.po
  930. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  931. Removed --retry-wait option from aria2rpc
  932. * doc/xmlrpc/aria2rpc
  933. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Removed --retry-wait option from man page.
  935. * doc/aria2c.1.txt
  936. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  937. Removed --retry-wait option since the current architecture doesn't
  938. allow sleep for particular URI.
  939. * src/AbstractCommand.cc
  940. * src/OptionHandlerFactory.cc
  941. * src/download_helper.cc
  942. * src/prefs.cc
  943. * src/prefs.h
  944. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Removed Retry-After header support. Since the current architecture
  946. doesn't allow sleep for particular URI.
  947. * src/HttpSkipResponseCommand.cc
  948. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Updated the help message for --daemon option.
  950. * doc/aria2c.1.txt
  951. * src/usage_text.h
  952. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Added our own daemon() function for systems which desn't have
  954. daemon(3).
  955. * configure.ac
  956. * src/Makefile.am
  957. * src/daemon.cc
  958. * src/daemon.h
  959. * src/option_processing.cc
  960. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  961. Simplified File::getCurrentDir()
  962. * src/File.cc
  963. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Use exit() instead of _exit
  965. * src/RequestGroupMan.cc
  966. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Replaced "CATEGORY" with "TAGS".
  968. * src/usage_text.h
  969. * doc/aria2c.1.txt
  970. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Updated the help message for --help option.
  972. * src/usage_text.h
  973. * doc/aria2c.1.txt
  974. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. Updated man page for added help tags.
  976. * doc/aria2c.1.txt
  977. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  978. Added help category #file. Added #file tag to the options related
  979. to downloaded file.
  980. * src/OptionHandlerFactory.cc
  981. * src/help_tags.h
  982. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  983. Added help categories: #cookie and #hook. Added #https tag to
  984. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  985. * src/OptionHandlerFactory.cc
  986. * src/help_tags.h
  987. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Made MSG_NOT_FILE translatable.
  989. * src/message.h
  990. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  991. Updated man page for --help option.
  992. * doc/aria2c.1.txt
  993. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Updated doc.
  995. * src/XmlRpcMethod.h
  996. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  997. Help category now starts with "#" to distinguish a category from
  998. keyword search. For example, "http" categroy is now "#http". You
  999. can type "--help=#http" to get explanation of options related to
  1000. http. If '#' is omitted, then the argument is treated as a keyword
  1001. and aria2 searches options whose name includes the keyword and
  1002. print matched ones. For example, "--help=http" will show options
  1003. whose name includes "http".
  1004. * src/OptionHandlerFactory.cc
  1005. * src/help_tags.h
  1006. * src/usage_text.h
  1007. * src/version_usage.cc
  1008. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1009. Documented missing experimental tag and newly added xml-rpc tag in
  1010. man page.
  1011. * doc/aria2c.1.txt
  1012. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Added xml-rpc help tag. Tagged xml-rpc related options with
  1014. xml-rpc tag.
  1015. * src/OptionHandlerFactory.cc
  1016. * src/help_tags.h
  1017. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Updated message when a path is not a file. Updated common message
  1019. for wrong option.
  1020. * src/OptionHandlerException.cc
  1021. * src/message.h
  1022. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Use File::isFile() instead of File::exists(). Updated message when
  1024. a path is not a file.
  1025. * src/OptionHandlerImpl.cc
  1026. * src/message.h
  1027. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1028. Fixed the bug that server performence profile is not updated when
  1029. aria2c was terminated by emergency shutdown.
  1030. * src/TrackerWatcherCommand.cc
  1031. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Use LocalFilePathOptionHandler for -T and -M option.
  1033. Updated message of MSG_FILE_NOT_EXIST.
  1034. * src/OptionHandlerFactory.cc
  1035. * src/message.h
  1036. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Added LocalFilePathOptionHandler which check whether the specified
  1038. file path does exist or not.
  1039. * src/OptionHandlerImpl.cc
  1040. * src/message.h
  1041. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1042. Updated wiki page URI.
  1043. * README
  1044. * doc/aria2c.1.txt
  1045. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Added README.txt for xmlrpc directory.
  1047. * doc/Makefile.am
  1048. * doc/xmlrpc/README.txt
  1049. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Bump up version number to 1.6.0.
  1051. * configure.ac
  1052. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Added XML-RPC client scripts written in ruby.
  1054. * doc/Makefile.am
  1055. * doc/xmlrpc/aria2mon
  1056. * doc/xmlrpc/aria2rpc
  1057. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Added support for IPv6 literal address in URI. Now aria2 can
  1059. handle URI such as http://[::1]/
  1060. * src/HttpRequest.cc
  1061. * src/HttpRequest.h
  1062. * src/Request.cc
  1063. * src/Request.h
  1064. * test/HttpRequestTest.cc
  1065. * test/OptionHandlerTest.cc
  1066. * test/RequestTest.cc
  1067. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Fixed the bug that HTTP request header for XML-RPC request is not
  1069. parsed properly.
  1070. * src/HttpHeader.cc
  1071. * src/HttpHeaderProcessor.cc
  1072. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1073. Fixed the bug that XML-RPC authorization might be done before HTTP
  1074. request header is fully received.
  1075. * src/HttpServerCommand.cc
  1076. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Documented --xml-rpc-listen-all option in man page.
  1078. * doc/aria2c.1.txt
  1079. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Added --xml-rpc-listen-all option. If true is given to this
  1081. option, aria2 listens incoming XML-RPC requests on all network
  1082. interfaces. If false is given, listens only on local loopback
  1083. interface. The default value is false.
  1084. * src/HttpListenCommand.cc
  1085. * src/OptionHandlerFactory.cc
  1086. * src/SocketCore.cc
  1087. * src/SocketCore.h
  1088. * src/prefs.cc
  1089. * src/prefs.h
  1090. * src/usage_text.h
  1091. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. * Release 1.5.2
  1093. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1094. Updated Ukrainian and Russian translations. Thanks to all
  1095. translators.
  1096. * po/ru.po
  1097. * po/uk.po
  1098. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Bump up version number to 1.5.2
  1100. * configure.ac
  1101. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1102. Get comment, comment.utf-8, created by and creation date from
  1103. .torrent file and print them in -S output.
  1104. * src/bittorrent_helper.cc
  1105. * src/bittorrent_helper.h
  1106. * test/BittorrentHelperTest.cc
  1107. * test/test.torrent
  1108. * test/utf8.torrent
  1109. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. Show exact file size along in -S option output.
  1111. * src/Util.h
  1112. * src/bittorrent_helper.cc
  1113. * test/UtilTest.cc
  1114. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Avoided unnecessary memory allocation in
  1116. BitfieldMan::getCompletedLength().
  1117. * src/BitfieldMan.cc
  1118. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1119. Fixed the bug that download fails if
  1120. SocketCore::establishConnection() throws exception and aria2
  1121. doesn't try another address.
  1122. * src/AbstractCommand.cc
  1123. * src/InitiateConnectionCommand.cc
  1124. * src/message.h
  1125. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1126. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1127. detected properly.
  1128. * m4/sqlite3.m4
  1129. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1131. because it causes compile error if PARAMS macro is defined.
  1132. * src/XmlRpcElements.cc
  1133. * src/XmlRpcElements.h
  1134. * src/XmlRpcRequestParserStateImpl.cc
  1135. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. * Release 1.5.1
  1137. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1138. Bump up version number to 1.5.1
  1139. * configure.ac
  1140. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Fixed compile error without BitTorrent support
  1142. * src/DefaultBtProgressInfoFile.cc
  1143. * src/DownloadEngine.cc
  1144. * src/DownloadEngine.h
  1145. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Added missing '=' in Download Results
  1147. * src/RequestGroupMan.cc
  1148. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1149. Fixed compiler warning
  1150. * src/DefaultBtProgressInfoFile.cc
  1151. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Fixed compiler warning on 32bit systems.
  1153. * src/DownloadCommand.cc
  1154. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1155. Call flush from ServerStatMan::save()
  1156. * src/ServerStatMan.cc
  1157. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Check stream status after file is opened.
  1159. * src/CookieStorage.cc
  1160. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Rewritten Signature::save()
  1162. * src/Signature.cc
  1163. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Rewritten RequestGroupMan::saveServerStat()
  1165. * src/RequestGroupMan.cc
  1166. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Rewritten stream error handling
  1168. * src/DHTAutoSaveCommand.cc
  1169. * src/DHTRoutingTableDeserializer.cc
  1170. * src/DHTRoutingTableSerializer.cc
  1171. * src/DHTSetup.cc
  1172. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Check stream status after file is opened.
  1174. * src/DefaultBtProgressInfoFile.cc
  1175. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Rewritten stream error handling
  1177. * src/DefaultBtProgressInfoFile.cc
  1178. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1179. Make sure that stream is closed before renaming file. Unit test
  1180. fails on mingw32 in the previous implementation.
  1181. * src/CookieStorage.cc
  1182. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Fixed the unit test error without sqlite3
  1184. * test/CookieStorageTest.cc
  1185. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Fixed the undefined reference error
  1187. * test/HttpResponseTest.cc
  1188. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1189. * Release 1.5.0
  1190. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1192. Ukrainian translations. Thanks to all translators.
  1193. * po/ru.po
  1194. * po/it.po
  1195. * po/da.po
  1196. * po/bg.po
  1197. * po/ja.po
  1198. * po/uk.po
  1199. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Added missing src/Logger.cc
  1201. * src/Logger.cc
  1202. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Rewritten Logger to avoiding constly virtual call.
  1204. * src/LogFactory.cc
  1205. * src/LogFactory.h
  1206. * src/Logger.h
  1207. * src/Makefile.am
  1208. * src/Makefile.in
  1209. * src/NullLogger.h: Removed.
  1210. * src/SimpleLogger.cc
  1211. * src/SimpleLogger.h
  1212. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Updated doc
  1214. * src/main.cc
  1215. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Updated debug log message
  1217. * src/AbstractCommand.cc
  1218. * src/message.h
  1219. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1220. Avoid to create zombie process when commands specified in
  1221. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1222. X and NetBSD.
  1223. * src/main.cc
  1224. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Fixed typo
  1226. * src/usage_text.h
  1227. * doc/aria2c.1.txt
  1228. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1229. Documented 'errorCode' of tellStatus in man page.
  1230. * doc/aria2c.1.txt
  1231. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1232. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1233. This key is only available for stopped/completed downloads and its
  1234. value is the error code defined in EXIT STATUS in man page.
  1235. * src/XmlRpcMethodImpl.cc
  1236. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Fixed the bug that session download length is not updated when
  1238. PeerStat is not fastest one.
  1239. * src/SegmentMan.cc
  1240. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Updated doc.
  1242. * doc/aria2c.1.txt
  1243. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Updated doc.
  1245. * src/AbstractCommand.cc
  1246. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Handle the case when DownloadContext has no FileEntry.
  1248. * src/XmlRpcMethodImpl.cc
  1249. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1250. Handle the situation where struct option.name is char *.
  1251. * configure.ac
  1252. * src/OptionParser.cc
  1253. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1254. Code cleanup
  1255. * src/AbstractCommand.cc
  1256. * src/DownloadCommand.cc
  1257. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Use option of each download to create AuthConfig instead of global
  1259. option.
  1260. * src/AuthConfigFactory.cc
  1261. * src/AuthConfigFactory.h
  1262. * src/FtpNegotiationCommand.cc
  1263. * src/HttpRequest.cc
  1264. * src/HttpRequest.h
  1265. * src/HttpRequestCommand.cc
  1266. * src/HttpSkipResponseCommand.cc
  1267. * src/MultiUrlRequestInfo.cc
  1268. * test/AuthConfigFactoryTest.cc
  1269. * test/FtpConnectionTest.cc
  1270. * test/HttpRequestTest.cc
  1271. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Don't call prepareForRetry(1) if all segments are ignored in
  1273. SegmentMan.
  1274. * src/AbstractCommand.cc
  1275. * src/BitfieldMan.cc
  1276. * src/BitfieldMan.h
  1277. * src/SegmentMan.cc
  1278. * src/SegmentMan.h
  1279. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Removed FileEntry::getAssociatedUris()
  1281. * src/FileEntry.h
  1282. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1283. Updated doc: TODO1.5 -> TODO
  1284. * src/FileEntry.cc
  1285. * src/HttpResponseCommand.cc
  1286. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1287. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1288. involved.
  1289. * src/RequestGroup.cc
  1290. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1291. Eliminated duplicated filterBitfield initialization code.
  1292. * src/BitfieldMan.cc
  1293. * src/BitfieldMan.h
  1294. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1296. relatively naive approach, though). For DownloadFailureException,
  1297. we handle the case when req is null properly.
  1298. * src/AbstractCommand.cc
  1299. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Added function returning suffix of control file to
  1301. DefaultBtProgressInfoFile.
  1302. * src/DefaultBtProgressInfoFile.cc
  1303. * src/DefaultBtProgressInfoFile.h
  1304. * src/RequestGroup.cc
  1305. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Documented getVersion in man page.
  1307. * doc/aria2c.1.txt
  1308. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Documented type of offset and num for tellWaiting xml-rpc method.
  1310. * doc/aria2c.1.txt
  1311. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Implemented getVersion xml-rpc method. This method returns struct
  1313. which has 2 key-value pairs: "version" key is associated to the
  1314. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1315. associated to the list of enabled features, such as "Async DNS",
  1316. "BitTorrent".
  1317. * src/FeatureConfig.h
  1318. * src/XmlRpcMethodFactory.cc
  1319. * src/XmlRpcMethodImpl.cc
  1320. * src/XmlRpcMethodImpl.h
  1321. * test/XmlRpcMethodTest.cc
  1322. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1323. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1324. for compatibility issue.
  1325. * src/SocketCore.cc
  1326. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Fixed compile error with openSSL
  1328. * src/bittorrent_helper.cc
  1329. * src/messageDigest.h
  1330. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Removed bad code: setting certificate type priority to key
  1332. exchange priority.
  1333. * src/SocketCore.cc
  1334. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Disconnect seeder if client is also in seed state.
  1336. * src/BtBitfieldMessage.cc
  1337. * src/BtHaveAllMessage.cc
  1338. * src/BtHaveMessage.cc
  1339. * src/message.h
  1340. * test/BtBitfieldMessageTest.cc
  1341. * test/BtHaveAllMessageTest.cc
  1342. * test/BtHaveMessageTest.cc
  1343. * test/MockPieceStorage.h
  1344. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Keep CreateRequestCommand in queue when no segment is available so
  1346. that they can pick up pieces which slow BitTorrent peers are
  1347. downloading.
  1348. * src/AbstractCommand.cc
  1349. * src/CreateRequestCommand.cc
  1350. * src/CreateRequestCommand.h
  1351. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1352. --bt-stop-timeout now only checks download speed.
  1353. * src/BtStopDownloadCommand.cc
  1354. * src/BtStopDownloadCommand.h
  1355. * src/BtSetup.cc
  1356. * src/usage_text.h
  1357. * doc/aria2c.1.txt
  1358. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. Fixed compile error regarding BUFSIZE.
  1360. * src/DownloadCommand.cc
  1361. * src/DownloadCommand.h
  1362. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Documented tellWaiting xml-rpc method in man page.
  1364. * doc/aria2c.1.txt
  1365. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Bump up version number to 1.5.0
  1367. * configure.ac
  1368. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Removed resolved TODO1.5
  1370. * src/AbstractCommand.cc
  1371. * src/DownloadCommand.cc
  1372. * src/RequestGroup.cc
  1373. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Release pooled and in-flight Request objectsand URIResult objects
  1375. in FileEntry after download completed.
  1376. * src/DownloadContext.cc
  1377. * src/DownloadContext.h
  1378. * src/FileEntry.cc
  1379. * src/FileEntry.h
  1380. * src/RequestGroup.cc
  1381. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Set manual and source attribute in aria2c.1.txt
  1383. * doc/aria2c.1.txt
  1384. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Documented that the default value of --use-head is 'false' in man
  1386. page.
  1387. * doc/aria2c.1.txt
  1388. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Added bt-stop-timeout option to -i list.
  1390. * doc/aria2c.1.txt
  1391. * src/download_helper.cc
  1392. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Fixed typo
  1394. * doc/aria2c.1.txt
  1395. * src/usage_text.h
  1396. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Removed peer-id-prefix option from -i list.
  1398. * doc/aria2c.1.txt
  1399. * src/download_helper.cc
  1400. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Fixed typo
  1402. * doc/aria2c.1.txt
  1403. * src/usage_text.h
  1404. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Documented --bt-stop-timeout option in man page.
  1406. * doc/aria2c.1.txt
  1407. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Updated README regarding multi-file torrent web-seeding.
  1409. * doc/README.txt
  1410. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Updated man page regarding multi-file torrent web-seeding.
  1412. * doc/aria2c.1.txt
  1413. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1414. Updated doc
  1415. * src/version_usage.cc
  1416. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1417. Winsock select() doesn't work if no socket is in FD_SET. To
  1418. overcome this problem, a dummy socket is added to FD_SET and it is
  1419. given to select().
  1420. * src/SelectEventPoll.cc
  1421. * src/SelectEventPoll.h
  1422. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Disabled --use-head option by default because --use-head=true
  1424. causes problems on some web sites.
  1425. * src/OptionHandlerFactory.cc
  1426. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1427. Print URL List in -S option for torrent.
  1428. * src/bittorrent_helper.cc
  1429. * src/bittorrent_helper.h
  1430. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Allocate buffer in ctor of DownloadCommand.
  1432. * src/DownloadCommand.cc
  1433. * src/DownloadCommand.h
  1434. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Removed DiskAdaptor::onDownloadComplete()
  1436. * src/DirectDiskAdaptor.cc
  1437. * src/DirectDiskAdaptor.h
  1438. * src/DiskAdaptor.h
  1439. * src/MultiDiskAdaptor.cc
  1440. * src/MultiDiskAdaptor.h
  1441. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1442. Committed missing BtStopDownloadCommand.{cc,h}
  1443. * src/BtStopDownloadCommand.cc
  1444. * src/BtStopDownloadCommand.h
  1445. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1447. download if the download speed is 0 and the number of seeder is 0
  1448. in consecutive SEC seconds. By default, this function is disabled.
  1449. * src/BtSetup.cc
  1450. * src/Makefile.am
  1451. * src/OptionHandlerFactory.cc
  1452. * src/prefs.cc
  1453. * src/prefs.h
  1454. * src/usage_text.h
  1455. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. Removed the call to DiskAdaptor::onDownloadComplete() from
  1457. BtCheckIntegrityEntry and DefaultPieceStorage.
  1458. * src/BtCheckIntegrityEntry.cc
  1459. * src/DefaultPieceStorage.cc
  1460. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1461. Commented out throw statements when number of piece is 0 to
  1462. download 0 length torrent.
  1463. * src/bittorrent_helper.cc
  1464. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1465. Call RequestGroup::createNextCommandWithAdj() from
  1466. BtFileAllocationEntry if at least one FileEntry has URI. The
  1467. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1468. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1469. * src/BtFileAllocationEntry.cc
  1470. * src/FileEntry.h
  1471. * src/RequestGroup.cc
  1472. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1473. Generate peer ID after SimpleRandomizer is initialized.
  1474. * src/main.cc
  1475. * src/option_processing.cc
  1476. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Removed unused method argument.
  1478. * src/CreateRequestCommand.cc
  1479. * src/RequestGroup.cc
  1480. * src/RequestGroup.h
  1481. * src/RequestGroupMan.cc
  1482. * src/TrackerWatcherCommand.cc
  1483. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Made URI reusing function work.
  1485. * src/CreateRequestCommand.cc
  1486. * src/FileEntry.cc
  1487. * src/FileEntry.h
  1488. * test/FileEntryTest.cc
  1489. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1490. Add formerly fastest PeerStat's sessionDownloadLength to new
  1491. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1492. bytes in a session.
  1493. * src/PeerStat.cc
  1494. * src/SegmentMan.cc
  1495. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. If pipelining is enabled, we can always pool socket.
  1497. * src/HttpDownloadCommand.cc
  1498. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. In a single file download, file size becomes known just after
  1500. downloading, set total length to FileEntry object when download
  1501. completed.
  1502. * src/DownloadCommand.cc
  1503. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1504. Use std::vector::reserve() for fileEntries and pieceHashes in
  1505. bittorrent_helper
  1506. * src/bittorrent_helper.cc
  1507. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1509. Removed hidden option PREF_RESET_URI.
  1510. * src/AbstractCommand.cc
  1511. * src/OptionHandlerFactory.cc
  1512. * src/prefs.cc
  1513. * src/prefs.h
  1514. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Removed unused variable/function.
  1516. * src/PeerStat.h
  1517. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Show first URL in Download Results if file path is not available.
  1519. * src/FileEntry.h
  1520. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1521. Throw exception if file path doesn't exist in FTP URL.
  1522. * src/InitiateConnectionCommandFactory.cc
  1523. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1524. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1525. * src/BitfieldMan.cc
  1526. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1528. of PeerStat in SegmentMan. peerStats is used for calculating
  1529. download speed. Therefore all active PeerStats should be in
  1530. there. Another one is _fastestPeerStats and it only contains
  1531. fastest PeerStat for each hostname/protocol pair. They are used
  1532. for updating ServerStat.
  1533. * src/DownloadCommand.cc
  1534. * src/Request.h
  1535. * src/RequestGroupMan.cc
  1536. * src/SegmentMan.cc
  1537. * src/SegmentMan.h
  1538. * test/SegmentManTest.cc
  1539. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Try all available addresses returned by DNS until it gets
  1541. connected in HTTP(S)/FTP download
  1542. * src/AbstractCommand.cc
  1543. * src/AbstractCommand.h
  1544. * src/AbstractProxyRequestCommand.cc
  1545. * src/AbstractProxyRequestCommand.h
  1546. * src/DNSCache.h
  1547. * src/DownloadEngine.cc
  1548. * src/DownloadEngine.h
  1549. * src/FtpInitiateConnectionCommand.cc
  1550. * src/FtpInitiateConnectionCommand.h
  1551. * src/FtpNegotiationCommand.cc
  1552. * src/FtpNegotiationCommand.h
  1553. * src/HttpInitiateConnectionCommand.cc
  1554. * src/HttpInitiateConnectionCommand.h
  1555. * src/HttpRequestCommand.cc
  1556. * src/HttpRequestCommand.h
  1557. * src/InitiateConnectionCommand.cc
  1558. * src/InitiateConnectionCommand.h
  1559. * test/DNSCacheTest.cc
  1560. * test/Makefile.am
  1561. * test/SimpleDNSCacheTest.cc
  1562. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1563. Updated doc
  1564. * src/download_helper.cc
  1565. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Refactored fieldMan ctor.
  1567. * src/BitfieldMan.cc
  1568. * src/BitfieldMan.h
  1569. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Don't print "No files to download." message if -S is given.
  1571. * src/main.cc
  1572. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1573. Set referer and method to newly created Request object.
  1574. * src/CreateRequestCommand.cc
  1575. * src/FileEntry.cc
  1576. * src/FileEntry.h
  1577. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1578. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1579. * src/AbstractCommand.cc
  1580. * src/AbstractCommand.h
  1581. * src/CreateRequestCommand.cc
  1582. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1583. Get proxy download working
  1584. * src/AbstractProxyRequestCommand.cc
  1585. * src/AbstractProxyRequestCommand.h
  1586. * src/AbstractProxyResponseCommand.cc
  1587. * src/AbstractProxyResponseCommand.h
  1588. * src/FtpInitiateConnectionCommand.cc
  1589. * src/FtpTunnelRequestCommand.cc
  1590. * src/FtpTunnelRequestCommand.h
  1591. * src/FtpTunnelResponseCommand.cc
  1592. * src/FtpTunnelResponseCommand.h
  1593. * src/HttpInitiateConnectionCommand.cc
  1594. * src/HttpProxyRequestCommand.cc
  1595. * src/HttpProxyRequestCommand.h
  1596. * src/HttpProxyResponseCommand.cc
  1597. * src/HttpProxyResponseCommand.h
  1598. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Use SegmentMan::getSegment(cuid) for single file download.
  1600. * src/AbstractCommand.cc
  1601. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Fixed bufSize calculation
  1603. * src/DownloadCommand.cc
  1604. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Don't append "/" if base URI ends with "/".
  1606. * src/bittorrent_helper.cc
  1607. * test/url-list-multiFile.torrent
  1608. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. HTTP pipelining is now working. Fixed Segmention fault in
  1610. BitfieldMan's copy ctor.
  1611. * src/AbstractCommand.cc
  1612. * src/BitfieldMan.cc
  1613. * src/BitfieldMan.h
  1614. * src/DownloadCommand.cc
  1615. * src/HttpDownloadCommand.cc
  1616. * src/HttpRequest.cc
  1617. * src/SegmentMan.cc
  1618. * src/SegmentMan.h
  1619. * test/BitfieldManTest.cc
  1620. * test/SegmentManTest.cc
  1621. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Removed ServerHost. Same functionality is implemented using
  1623. FileEntry's in-flight Request objects.
  1624. * src/AbstractCommand.cc
  1625. * src/BtDependency.cc
  1626. * src/CreateRequestCommand.cc
  1627. * src/FileEntry.cc
  1628. * src/FileEntry.h
  1629. * src/FtpNegotiationCommand.cc
  1630. * src/HttpResponseCommand.cc
  1631. * src/Makefile.am
  1632. * src/Metalink2RequestGroup.cc
  1633. * src/RequestGroup.cc
  1634. * src/RequestGroup.h
  1635. * src/ServerHost.cc: Removed
  1636. * src/ServerHost.h: Removed
  1637. * test/BtDependencyTest.cc
  1638. * test/FileEntryTest.cc
  1639. * test/RequestGroupTest.cc
  1640. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Rewritten PeerStat handling. In the previous implementation,
  1642. faster command tries to find slower command. In this new
  1643. implementation, slower command tries to find faster command.
  1644. PeerStat is now created in each HTTP/FTP request to get download
  1645. rate correctly. If the download range is small, the download rate
  1646. tends to small and this will occur at the later stage of download.
  1647. * src/AbstractCommand.cc
  1648. * src/DownloadCommand.cc
  1649. * src/FileEntry.cc
  1650. * src/FileEntry.h
  1651. * src/Request.cc
  1652. * src/Request.h
  1653. * src/RequestGroup.h
  1654. * src/RequestGroupMan.cc
  1655. * src/SegmentMan.cc
  1656. * src/SegmentMan.h
  1657. * test/SegmentManTest.cc
  1658. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Removed _uris from RequestGroup. All functions that refer to _uris
  1660. were moved to FileEntry. Exit status code are now defined in
  1661. DownloadResultCode.h.
  1662. * src/AbstractCommand.cc
  1663. * src/AdaptiveURISelector.cc
  1664. * src/AdaptiveURISelector.h
  1665. * src/AutoSaveCommand.cc
  1666. * src/BtPostDownloadHandler.cc
  1667. * src/CheckIntegrityDispatcherCommand.cc
  1668. * src/CookieStorage.cc
  1669. * src/DHTAutoSaveCommand.cc
  1670. * src/DHTBucketRefreshCommand.cc
  1671. * src/DHTEntryPointNameResolveCommand.cc
  1672. * src/DHTInteractionCommand.cc
  1673. * src/DHTPeerAnnounceCommand.cc
  1674. * src/DHTTokenUpdateCommand.cc
  1675. * src/DlAbortEx.h
  1676. * src/DlRetryEx.h
  1677. * src/DownloadCommand.cc
  1678. * src/DownloadContext.h
  1679. * src/DownloadFailureException.h
  1680. * src/DownloadResult.h
  1681. * src/DownloadResultCode.h
  1682. * src/FeedbackURISelector.cc
  1683. * src/FeedbackURISelector.h
  1684. * src/FileEntry.cc
  1685. * src/FileEntry.h
  1686. * src/FtpNegotiationCommand.cc
  1687. * src/HttpListenCommand.cc
  1688. * src/HttpResponseCommand.cc
  1689. * src/HttpServerResponseCommand.cc
  1690. * src/HttpSkipResponseCommand.cc
  1691. * src/InOrderURISelector.cc
  1692. * src/InOrderURISelector.h
  1693. * src/Makefile.am
  1694. * src/Makefile.in
  1695. * src/Metalink2RequestGroup.cc
  1696. * src/MultiUrlRequestInfo.cc
  1697. * src/MultiUrlRequestInfo.h
  1698. * src/OptionHandlerFactory.cc
  1699. * src/PeerListenCommand.cc
  1700. * src/RecoverableException.h
  1701. * src/RequestGroup.cc
  1702. * src/RequestGroup.h
  1703. * src/RequestGroupMan.cc
  1704. * src/RequestGroupMan.h
  1705. * src/TimedHaltCommand.cc
  1706. * src/TrackerWatcherCommand.cc
  1707. * src/URIResult.cc
  1708. * src/URIResult.h
  1709. * src/URISelector.h
  1710. * src/XmlRpcMethodImpl.cc
  1711. * src/bittorrent_helper.cc
  1712. * src/bittorrent_helper.h
  1713. * src/download_helper.cc
  1714. * src/main.cc
  1715. * src/option_processing.cc
  1716. * test/BtDependencyTest.cc
  1717. * test/BtPostDownloadHandlerTest.cc
  1718. * test/CookieStorageTest.cc
  1719. * test/DefaultBtMessageDispatcherTest.cc
  1720. * test/DownloadHandlerFactoryTest.cc
  1721. * test/DownloadHelperTest.cc
  1722. * test/FeedbackURISelectorTest.cc
  1723. * test/FileEntryTest.cc
  1724. * test/InOrderURISelectorTest.cc
  1725. * test/Metalink2RequestGroupTest.cc
  1726. * test/MetalinkPostDownloadHandlerTest.cc
  1727. * test/RequestGroupManTest.cc
  1728. * test/RequestGroupTest.cc
  1729. * test/XmlRpcMethodTest.cc
  1730. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Removed MockBtContext.h
  1732. * test/Makefile.am
  1733. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Removed _currentRequest from StreamCheckIntegrityEntry and
  1735. StreamFileAllocationEntry.
  1736. * src/AbstractCommand.cc
  1737. * src/HttpResponseCommand.cc
  1738. * src/RequestGroup.cc
  1739. * src/StreamCheckIntegrityEntry.cc
  1740. * src/StreamCheckIntegrityEntry.h
  1741. * src/StreamFileAllocationEntry.cc
  1742. * src/StreamFileAllocationEntry.h
  1743. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Rewritten DownloadContext and removed SingleFileDownloadContext
  1745. and BtContext and its derived classes. BitTorrent specific
  1746. attributes are now set by DownloadContext::setAttribute() with key
  1747. bittorrent::BITTORRENT.
  1748. * src/AbstractBtMessage.cc
  1749. * src/AbstractBtMessage.h
  1750. * src/AbstractCommand.cc
  1751. * src/AbstractCommand.h
  1752. * src/AbstractProxyRequestCommand.cc
  1753. * src/AbstractProxyResponseCommand.cc
  1754. * src/ActivePeerConnectionCommand.cc
  1755. * src/ActivePeerConnectionCommand.h
  1756. * src/AnnounceList.cc
  1757. * src/BtCheckIntegrityEntry.cc
  1758. * src/BtConstants.h
  1759. * src/BtContext.h: Removed
  1760. * src/BtDependency.cc
  1761. * src/BtExtendedMessage.cc
  1762. * src/BtPieceMessage.cc
  1763. * src/BtPieceMessage.h
  1764. * src/BtPostDownloadHandler.cc
  1765. * src/BtRegistry.cc
  1766. * src/BtRegistry.h
  1767. * src/BtSetup.cc
  1768. * src/CheckIntegrityCommand.cc
  1769. * src/CheckIntegrityEntry.cc
  1770. * src/ChecksumCheckIntegrityEntry.cc
  1771. * src/ConsoleStatCalc.cc
  1772. * src/ContentTypeRequestGroupCriteria.cc
  1773. * src/DHTGetPeersCommand.cc
  1774. * src/DHTGetPeersCommand.h
  1775. * src/DHTPeerLookupTask.cc
  1776. * src/DHTPeerLookupTask.h
  1777. * src/DHTTaskFactory.h
  1778. * src/DHTTaskFactoryImpl.cc
  1779. * src/DHTTaskFactoryImpl.h
  1780. * src/DefaultBtAnnounce.cc
  1781. * src/DefaultBtAnnounce.h
  1782. * src/DefaultBtContext.cc: Removed
  1783. * src/DefaultBtContext.h: Removed
  1784. * src/DefaultBtInteractive.cc
  1785. * src/DefaultBtInteractive.h
  1786. * src/DefaultBtMessageDispatcher.cc
  1787. * src/DefaultBtMessageDispatcher.h
  1788. * src/DefaultBtMessageFactory.cc
  1789. * src/DefaultBtMessageFactory.h
  1790. * src/DefaultBtMessageReceiver.cc
  1791. * src/DefaultBtMessageReceiver.h
  1792. * src/DefaultBtProgressInfoFile.cc
  1793. * src/DefaultBtRequestFactory.cc
  1794. * src/DefaultBtRequestFactory.h
  1795. * src/DefaultExtensionMessageFactory.cc
  1796. * src/DefaultExtensionMessageFactory.h
  1797. * src/DefaultPeerStorage.cc
  1798. * src/DefaultPeerStorage.h
  1799. * src/DefaultPieceStorage.cc
  1800. * src/DefaultSegmentManFactory.cc
  1801. * src/DiskAdaptor.cc
  1802. * src/DiskAdaptor.h
  1803. * src/DownloadContext.cc
  1804. * src/DownloadContext.h
  1805. * src/DownloadEngine.cc
  1806. * src/DownloadEngineFactory.cc
  1807. * src/DownloadHandler.cc
  1808. * src/DownloadResult.h
  1809. * src/FileAllocationCommand.cc
  1810. * src/FileAllocationDispatcherCommand.cc
  1811. * src/FileAllocationEntry.cc
  1812. * src/FileEntry.h
  1813. * src/FillRequestGroupCommand.cc
  1814. * src/FtpDownloadCommand.cc
  1815. * src/FtpFinishDownloadCommand.cc
  1816. * src/FtpInitiateConnectionCommand.cc
  1817. * src/FtpNegotiationCommand.cc
  1818. * src/FtpTunnelRequestCommand.cc
  1819. * src/FtpTunnelResponseCommand.cc
  1820. * src/HandshakeExtensionMessage.cc
  1821. * src/HandshakeExtensionMessage.h
  1822. * src/HaveEraseCommand.cc
  1823. * src/HttpDownloadCommand.cc
  1824. * src/HttpInitiateConnectionCommand.cc
  1825. * src/HttpProxyRequestCommand.cc
  1826. * src/HttpProxyResponseCommand.cc
  1827. * src/HttpRequest.cc
  1828. * src/HttpRequest.h
  1829. * src/HttpRequestCommand.cc
  1830. * src/HttpResponseCommand.cc
  1831. * src/HttpServerBodyCommand.cc
  1832. * src/HttpServerCommand.cc
  1833. * src/HttpSkipResponseCommand.cc
  1834. * src/InitiateConnectionCommandFactory.cc
  1835. * src/InitiatorMSEHandshakeCommand.cc
  1836. * src/InitiatorMSEHandshakeCommand.h
  1837. * src/IteratableChecksumValidator.cc
  1838. * src/IteratableChecksumValidator.h
  1839. * src/IteratableChunkChecksumValidator.cc
  1840. * src/MSEHandshake.cc
  1841. * src/MSEHandshake.h
  1842. * src/Makefile.am
  1843. * src/Makefile.in
  1844. * src/Metalink2RequestGroup.cc
  1845. * src/MetalinkPostDownloadHandler.cc
  1846. * src/MultiDiskAdaptor.cc
  1847. * src/MultiDiskAdaptor.h
  1848. * src/MultiFileAllocationIterator.cc
  1849. * src/MultiUrlRequestInfo.cc
  1850. * src/PeerChokeCommand.cc
  1851. * src/PeerChokeCommand.h
  1852. * src/PeerInitiateConnectionCommand.cc
  1853. * src/PeerInitiateConnectionCommand.h
  1854. * src/PeerInteractionCommand.cc
  1855. * src/PeerInteractionCommand.h
  1856. * src/PeerReceiveHandshakeCommand.cc
  1857. * src/PieceHashCheckIntegrityEntry.cc
  1858. * src/RealtimeCommand.cc
  1859. * src/ReceiverMSEHandshakeCommand.cc
  1860. * src/RequestGroup.cc
  1861. * src/RequestGroup.h
  1862. * src/RequestGroupEntry.cc
  1863. * src/RequestGroupMan.cc
  1864. * src/SeedCheckCommand.cc
  1865. * src/SeedCheckCommand.h
  1866. * src/SegmentMan.cc
  1867. * src/ShareRatioSeedCriteria.h
  1868. * src/SingleFileDownloadContext.cc: Removed
  1869. * src/SingleFileDownloadContext.h: Removed
  1870. * src/SleepCommand.cc
  1871. * src/StreamCheckIntegrityEntry.cc
  1872. * src/TrackerWatcherCommand.cc
  1873. * src/TrackerWatcherCommand.h
  1874. * src/UnknownLengthPieceStorage.cc
  1875. * src/Util.cc
  1876. * src/Util.h
  1877. * src/XmlRpcMethodImpl.cc
  1878. * src/bittorrent_helper.cc
  1879. * src/bittorrent_helper.h
  1880. * src/download_helper.cc
  1881. * src/main.cc
  1882. * src/option_processing.cc
  1883. * test/BitfieldManTest.cc
  1884. * test/BittorrentHelperTest.cc
  1885. * test/BtCancelMessageTest.cc
  1886. * test/BtChokeMessageTest.cc
  1887. * test/BtDependencyTest.cc
  1888. * test/BtPieceMessageTest.cc
  1889. * test/BtPostDownloadHandlerTest.cc
  1890. * test/BtRegistryTest.cc
  1891. * test/BtRejectMessageTest.cc
  1892. * test/BtRequestMessageTest.cc
  1893. * test/DHTPeerAnnounceStorageTest.cc
  1894. * test/DefaultBtAnnounceTest.cc
  1895. * test/DefaultBtContextTest.cc: Removed
  1896. * test/DefaultBtMessageDispatcherTest.cc
  1897. * test/DefaultBtMessageFactoryTest.cc
  1898. * test/DefaultBtProgressInfoFileTest.cc
  1899. * test/DefaultBtRequestFactoryTest.cc
  1900. * test/DefaultExtensionMessageFactoryTest.cc
  1901. * test/DefaultPeerStorageTest.cc
  1902. * test/DefaultPieceStorageTest.cc
  1903. * test/DirectDiskAdaptorTest.cc
  1904. * test/DownloadContextTest.cc
  1905. * test/DownloadHandlerFactoryTest.cc
  1906. * test/DownloadHelperTest.cc
  1907. * test/HandshakeExtensionMessageTest.cc
  1908. * test/HttpRequestTest.cc
  1909. * test/HttpResponseTest.cc
  1910. * test/IteratableChecksumValidatorTest.cc
  1911. * test/IteratableChunkChecksumValidatorTest.cc
  1912. * test/MSEHandshakeTest.cc
  1913. * test/Makefile.am
  1914. * test/Makefile.in
  1915. * test/Metalink2RequestGroupTest.cc
  1916. * test/MetalinkPostDownloadHandlerTest.cc
  1917. * test/MockBtContext.h: Removed
  1918. * test/MockDHTTaskFactory.h
  1919. * test/MockDownloadContext.h: Removed
  1920. * test/MockPieceStorage.h
  1921. * test/MultiDiskAdaptorTest.cc
  1922. * test/MultiFileAllocationIteratorTest.cc
  1923. * test/RequestGroupManTest.cc
  1924. * test/RequestGroupTest.cc
  1925. * test/SegmentManTest.cc
  1926. * test/ShareRatioSeedCriteriaTest.cc
  1927. * test/SingleFileDownloadContextTest.cc: Removed
  1928. * test/UtilTest.cc
  1929. * test/XmlRpcMethodTest.cc
  1930. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1931. Added experimental support of WEB-Seeding for multi-file torrent.
  1932. Due to fundamental changes in file handling in HTTP/FTP code, many
  1933. functions are not working: PeerStat, ServerHost, proxy..etc
  1934. * src/AbstractCommand.cc
  1935. * src/AbstractCommand.h
  1936. * src/BitfieldMan.cc
  1937. * src/BitfieldMan.h
  1938. * src/CreateRequestCommand.cc
  1939. * src/CreateRequestCommand.h
  1940. * src/DefaultPieceStorage.cc
  1941. * src/DefaultPieceStorage.h
  1942. * src/DownloadCommand.cc
  1943. * src/DownloadCommand.h
  1944. * src/DownloadContext.cc
  1945. * src/DownloadContext.h
  1946. * src/FileEntry.cc
  1947. * src/FileEntry.h
  1948. * src/FtpDownloadCommand.cc
  1949. * src/FtpDownloadCommand.h
  1950. * src/FtpFinishDownloadCommand.cc
  1951. * src/FtpFinishDownloadCommand.h
  1952. * src/FtpInitiateConnectionCommand.cc
  1953. * src/FtpInitiateConnectionCommand.h
  1954. * src/FtpNegotiationCommand.cc
  1955. * src/FtpNegotiationCommand.h
  1956. * src/FtpTunnelResponseCommand.cc
  1957. * src/HttpDownloadCommand.cc
  1958. * src/HttpDownloadCommand.h
  1959. * src/HttpInitiateConnectionCommand.cc
  1960. * src/HttpInitiateConnectionCommand.h
  1961. * src/HttpProxyResponseCommand.cc
  1962. * src/HttpRequest.cc
  1963. * src/HttpRequest.h
  1964. * src/HttpRequestCommand.cc
  1965. * src/HttpRequestCommand.h
  1966. * src/HttpResponseCommand.cc
  1967. * src/HttpResponseCommand.h
  1968. * src/HttpSkipResponseCommand.cc
  1969. * src/HttpSkipResponseCommand.h
  1970. * src/InitiateConnectionCommand.cc
  1971. * src/InitiateConnectionCommand.h
  1972. * src/InitiateConnectionCommandFactory.cc
  1973. * src/InitiateConnectionCommandFactory.h
  1974. * src/Makefile.am
  1975. * src/PieceStorage.h
  1976. * src/RequestGroup.cc
  1977. * src/RequestGroup.h
  1978. * src/RequestGroupMan.cc
  1979. * src/SegmentMan.cc
  1980. * src/SegmentMan.h
  1981. * src/SingleFileDownloadContext.h
  1982. * src/StreamFileAllocationEntry.cc
  1983. * src/TrackerWatcherCommand.cc
  1984. * src/UnknownLengthPieceStorage.cc
  1985. * src/UnknownLengthPieceStorage.h
  1986. * src/array_fun.h
  1987. * src/bitfield.h
  1988. * src/download_helper.cc
  1989. * test/DownloadContextTest.cc
  1990. * test/Makefile.am
  1991. * test/MockDownloadContext.h
  1992. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1993. Added tellWaiting XML-RPC method.
  1994. * src/SingleFileDownloadContext.cc
  1995. * src/XmlRpcMethodFactory.cc
  1996. * src/XmlRpcMethodImpl.cc
  1997. * src/XmlRpcMethodImpl.h
  1998. * test/XmlRpcMethodTest.cc
  1999. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2000. Updated CookieStorageTest
  2001. * test/CookieStorageTest.cc
  2002. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2003. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2004. handle excepion inside these functions.
  2005. * src/LibgnutlsTLSContext.cc
  2006. * src/LibgnutlsTLSContext.h
  2007. * src/LibsslTLSContext.cc
  2008. * src/LibsslTLSContext.h
  2009. * src/MultiUrlRequestInfo.cc
  2010. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Added comment
  2012. * src/RequestGroup.cc
  2013. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. In CookieStorage::load() and saveNsFormat(), handle exception
  2015. inside the functions. When saving Cookies, first write temporary
  2016. file and after successful writes, then renames it to final
  2017. destination.
  2018. * src/CookieStorage.cc
  2019. * src/CookieStorage.h
  2020. * src/MultiUrlRequestInfo.cc
  2021. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. The default value of --dir option is the absolute path to the
  2023. current directory. If getcwd() is failed, then it is ".", which is
  2024. the same value with old implementation. This change is necessary
  2025. because after daemon() call, the current working directory is
  2026. changed to /.
  2027. * src/File.cc
  2028. * src/File.h
  2029. * src/OptionHandlerFactory.cc
  2030. * src/option_processing.cc
  2031. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2032. Call daemon() with arguments(0,0), which means daemon() changes
  2033. current working directory to / and redirects stdin, stdout and
  2034. stderr to /dev/null.
  2035. * src/option_processing.cc
  2036. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2037. Small performance optimizations.
  2038. * src/RequestGroupMan.cc
  2039. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2041. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2042. * src/RequestGroupMan.cc
  2043. * src/RequestGroupMan.h
  2044. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2045. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2046. setNoWiat(true) if newly created command calls
  2047. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2048. * src/HttpListenCommand.cc
  2049. * src/HttpServerBodyCommand.cc
  2050. * src/HttpServerCommand.cc
  2051. * src/HttpServerResponseCommand.cc
  2052. * src/InitiateConnectionCommand.cc
  2053. * src/RequestGroup.cc
  2054. * src/StreamFileAllocationEntry.cc
  2055. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2056. Removed include vector
  2057. * src/BtRegistry.h
  2058. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2059. Rewritten BtRegistry
  2060. * src/BtRegistry.cc
  2061. * src/BtRegistry.h
  2062. * src/BtSetup.cc
  2063. * src/ConsoleStatCalc.cc
  2064. * src/PeerInteractionCommand.cc
  2065. * src/PeerReceiveHandshakeCommand.cc
  2066. * src/ReceiverMSEHandshakeCommand.cc
  2067. * src/RequestGroup.cc
  2068. * src/XmlRpcMethodImpl.cc
  2069. * test/BtRegistryTest.cc
  2070. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2072. * src/DefaultBtProgressInfoFile.cc
  2073. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Throw an exception if position is less than 0.
  2075. * src/XmlRpcMethodImpl.cc
  2076. * test/XmlRpcMethodTest.cc
  2077. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Use writeFilePath() in ConsoleStatCalc.cc
  2079. * src/ConsoleStatCalc.cc
  2080. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Receive the return value as const reference from
  2082. DownloadContext::getFileEntries().
  2083. * src/DefaultPieceStorage.cc
  2084. * src/RequestGroupMan.cc
  2085. * src/XmlRpcMethodImpl.cc
  2086. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. DownloadContext now has _fileEntries so that
  2088. DownloadContext::getFileEntries() can returns its const reference.
  2089. * src/DefaultBtContext.cc
  2090. * src/DefaultBtContext.h
  2091. * src/DownloadContext.cc
  2092. * src/DownloadContext.h
  2093. * src/SingleFileDownloadContext.cc
  2094. * src/SingleFileDownloadContext.h
  2095. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2096. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2097. writeFilePath() function template from RequestGroupMan.cc to
  2098. FileEntry.h
  2099. * src/FileEntry.h
  2100. * src/RequestGroupMan.cc
  2101. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2102. Documented 'position' parameter is starting from 0 in man page.
  2103. * doc/aria2c.1.txt
  2104. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2105. Updated doc.
  2106. * src/MSEHandshake.cc
  2107. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2108. Removed _acceptFeatures and its accessor functions from
  2109. RequestGroup since they are not used practically.
  2110. * src/HttpRequestCommand.cc
  2111. * src/RequestGroup.cc
  2112. * src/RequestGroup.h
  2113. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. Removed member _maxTries from RequestGroup class to avoid
  2115. duplicate option value. Those classes who refer this variable
  2116. should use option value of PREF_MAX_TRIES directly.
  2117. * src/AbstractCommand.cc
  2118. * src/RequestGroup.cc
  2119. * src/RequestGroup.h
  2120. * src/TrackerWatcherCommand.cc
  2121. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. * Release 1.4.1
  2123. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2124. Fixed compiler warnings on netbsd
  2125. * src/DHTConnectionImpl.cc
  2126. * src/PeerListenCommand.cc
  2127. * src/PeerSessionResource.cc
  2128. * src/SegmentMan.cc
  2129. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2130. Updated Ukrainian translation. Thanks to all translators.
  2131. * po/uk.po
  2132. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Bump up version number to 1.4.1.
  2134. * configure.ac
  2135. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. Added unit tests for strjoin, strconcat and strappend.
  2137. * test/a2functionalTest.cc
  2138. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2139. Rewritten strconcat and strappend using operator+ instead of
  2140. append().
  2141. * src/a2functional.h
  2142. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2144. is enabled.
  2145. * src/Makefile.am
  2146. * test/Makefile.am
  2147. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Added countSeeder() function which counts seeder in the given
  2149. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2150. * src/ConsoleStatCalc.cc
  2151. * src/Peer.h
  2152. * src/XmlRpcMethodImpl.cc
  2153. * test/PeerTest.cc
  2154. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Documented missing seeder in getPeers xml-rpc method.
  2156. Documented uploadLength and numSeeders.
  2157. * doc/aria2c.1.txt
  2158. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Added uploadLength and numSeeders to the response of tellStatus
  2160. xml-rpc method. Assert that PeerStorage instance is not null
  2161. instead of checking if statement. It should be non-null in this
  2162. context.
  2163. * src/XmlRpcMethodImpl.cc
  2164. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2166. * src/XmlRpcResponse.cc
  2167. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2168. Avoid intermediate object during string concatenation.
  2169. * src/HttpRequest.cc
  2170. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Added strjoin function template. Use it in pathJoin()
  2172. * src/Util.h
  2173. * src/a2functional.h
  2174. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Avoid intermediate object during string concatenation. Replaced
  2176. post-increment unary operator with pre-increment one in for loop.
  2177. * src/AdaptiveURISelector.cc
  2178. * src/AnnounceList.cc
  2179. * src/AuthConfig.h
  2180. * src/BtBitfieldMessage.cc
  2181. * src/BtExtendedMessage.cc
  2182. * src/BtHandshakeMessage.cc
  2183. * src/BtPieceMessage.cc
  2184. * src/BtPortMessage.cc
  2185. * src/Cookie.cc
  2186. * src/DHTAnnouncePeerMessage.cc
  2187. * src/DHTAutoSaveCommand.cc
  2188. * src/DHTGetPeersReplyMessage.cc
  2189. * src/DHTNode.cc
  2190. * src/DHTQueryMessage.cc
  2191. * src/DHTResponseMessage.cc
  2192. * src/DHTUnknownMessage.cc
  2193. * src/DefaultBtAnnounce.cc
  2194. * src/DefaultBtContext.cc
  2195. * src/DefaultBtInteractive.cc
  2196. * src/DefaultBtProgressInfoFile.cc
  2197. * src/DefaultPeerStorage.cc
  2198. * src/DownloadEngine.cc
  2199. * src/FeatureConfig.cc
  2200. * src/File.cc
  2201. * src/FtpConnection.cc
  2202. * src/FtpNegotiationCommand.cc
  2203. * src/HandshakeExtensionMessage.cc
  2204. * src/HttpConnection.cc
  2205. * src/HttpRequest.cc
  2206. * src/HttpResponseCommand.cc
  2207. * src/HttpServer.cc
  2208. * src/IndexBtMessage.cc
  2209. * src/Metalink2RequestGroup.cc
  2210. * src/OptionHandlerImpl.h
  2211. * src/PStringBuildVisitor.cc
  2212. * src/Peer.cc
  2213. * src/PeerListenCommand.cc
  2214. * src/Piece.cc
  2215. * src/RangeBtMessage.cc
  2216. * src/Request.cc
  2217. * src/Request.h
  2218. * src/RequestGroup.cc
  2219. * src/RequestGroupMan.cc
  2220. * src/ServerStat.cc
  2221. * src/ServerStatMan.cc
  2222. * src/UTPexExtensionMessage.cc
  2223. * src/Util.cc
  2224. * src/a2functional.h
  2225. * src/download_helper.cc
  2226. * src/messageDigest.cc
  2227. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Unchoke a peer randomly at first and second choke round in seed
  2229. state.
  2230. * src/BtSeederStateChoke.cc
  2231. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2232. Added (sock_t) to quiet compiler warnings in MinGW
  2233. * src/SocketCore.cc
  2234. * src/SocketCore.h
  2235. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2236. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2237. * src/EpollEventPoll.h
  2238. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2239. Added fork() emulation using CreateProcess() in MinGW
  2240. * src/RequestGroupMan.cc
  2241. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2242. * Release 1.4.0
  2243. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Added utf8.torrent to EXTRA_DIST
  2245. * test/Makefile.am
  2246. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Fixed docs of aria2.addMetalink xml-rpc method.
  2248. * doc/aria2c.1.txt
  2249. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Added Slovak translation. Updated Ukrainian and Brazilian
  2251. Portuguese translation. Thanks to all translators.
  2252. * po/sk.po
  2253. * po/uk.po
  2254. * po/pt_BR.po
  2255. * po/LINGUAS
  2256. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2257. Added test case for XmlRpcProcessor to fail to parse malformed
  2258. document.
  2259. * test/XmlRpcRequestProcessorTest.cc
  2260. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2261. Removed *.gmo files in po because they are generated on 'make
  2262. dist'
  2263. * po/*.gmo
  2264. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2265. Documented max-concurrent-downloads of changeGlobalOption method
  2266. in man page.
  2267. * doc/aria2c.1.txt
  2268. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Added max-concurrent-downloads option to changeGlobalOption
  2270. xml-rpc method. Rewritten loop conditional in
  2271. RequestGroupMan::fillRequestGroupFromReserver().
  2272. * src/RequestGroupMan.cc
  2273. * src/RequestGroupMan.h
  2274. * src/XmlRpcMethod.cc
  2275. * src/XmlRpcMethodImpl.cc
  2276. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Documented position parameter in man page.
  2278. * doc/aria2c.1.txt
  2279. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Added 'position' parameter to addUri, addTorrent and addMetalink
  2281. xml-rpc method.
  2282. * src/RequestGroupMan.cc
  2283. * src/RequestGroupMan.h
  2284. * src/XmlRpcMethodImpl.cc
  2285. * test/XmlRpcMethodTest.cc
  2286. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2287. Removed Peer.cc from compile source list when --disable-bittorrent
  2288. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2289. takes Peer.
  2290. * src/DefaultPieceStorage.cc
  2291. * src/DefaultPieceStorage.h
  2292. * src/Makefile.am
  2293. * src/PieceStorage.h
  2294. * src/UnknownLengthPieceStorage.cc
  2295. * src/UnknownLengthPieceStorage.h
  2296. * test/MockPieceStorage.h
  2297. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Implemented getter methods in header files to give them more
  2299. chance of optimization.
  2300. Return const reference for SharadHandle if possible.
  2301. * src/AbstractAuthResolver.cc
  2302. * src/AbstractAuthResolver.h
  2303. * src/AbstractBtMessage.cc
  2304. * src/AbstractBtMessage.h
  2305. * src/AbstractSingleDiskAdaptor.cc
  2306. * src/AbstractSingleDiskAdaptor.h
  2307. * src/AsyncNameResolver.cc
  2308. * src/AsyncNameResolver.h
  2309. * src/BNode.cc
  2310. * src/BNode.h
  2311. * src/BitfieldMan.cc
  2312. * src/BitfieldMan.h
  2313. * src/BtAbortOutstandingRequestEvent.h
  2314. * src/BtExtendedMessage.cc
  2315. * src/BtExtendedMessage.h
  2316. * src/BtSeederStateChoke.cc
  2317. * src/BtSeederStateChoke.h
  2318. * src/Cookie.cc
  2319. * src/Cookie.h
  2320. * src/DHTBucket.cc
  2321. * src/DHTBucket.h
  2322. * src/DHTConnectionImpl.cc
  2323. * src/DHTConnectionImpl.h
  2324. * src/DHTFindNodeReplyMessage.cc
  2325. * src/DHTFindNodeReplyMessage.h
  2326. * src/DHTGetPeersReplyMessage.cc
  2327. * src/DHTGetPeersReplyMessage.h
  2328. * src/DHTInteractionCommand.cc
  2329. * src/DHTMessage.cc
  2330. * src/DHTMessage.h
  2331. * src/DHTMessageDispatcherImpl.cc
  2332. * src/DHTMessageEntry.cc
  2333. * src/DHTMessageReceiver.cc
  2334. * src/DHTMessageReceiver.h
  2335. * src/DHTMessageTrackerEntry.cc
  2336. * src/DHTMessageTrackerEntry.h
  2337. * src/DHTPeerAnnounceEntry.cc
  2338. * src/DHTPeerAnnounceEntry.h
  2339. * src/DHTPeerLookupTask.cc
  2340. * src/DHTPeerLookupTask.h
  2341. * src/DHTRoutingTableDeserializer.cc
  2342. * src/DHTRoutingTableDeserializer.h
  2343. * src/DefaultBtAnnounce.cc
  2344. * src/DefaultBtAnnounce.h
  2345. * src/DefaultBtMessageDispatcher.cc
  2346. * src/DefaultBtMessageDispatcher.h
  2347. * src/DefaultBtRequestFactory.cc
  2348. * src/DefaultBtRequestFactory.h
  2349. * src/DiskAdaptor.cc
  2350. * src/DiskAdaptor.h
  2351. * src/DownloadContext.cc
  2352. * src/DownloadContext.h
  2353. * src/DownloadEngine.cc
  2354. * src/DownloadEngine.h
  2355. * src/EpollEventPoll.cc
  2356. * src/EpollEventPoll.h
  2357. * src/FtpConnection.cc
  2358. * src/FtpConnection.h
  2359. * src/HttpConnection.cc
  2360. * src/HttpConnection.h
  2361. * src/HttpHeader.cc
  2362. * src/HttpHeader.h
  2363. * src/HttpRequest.cc
  2364. * src/HttpRequest.h
  2365. * src/HttpResponse.cc
  2366. * src/HttpResponse.h
  2367. * src/LibsslTLSContext.cc
  2368. * src/LibsslTLSContext.h
  2369. * src/MSEHandshake.cc
  2370. * src/MSEHandshake.h
  2371. * src/MetalinkEntry.cc
  2372. * src/MetalinkEntry.h
  2373. * src/MetalinkParserController.cc
  2374. * src/MetalinkParserController.h
  2375. * src/MetalinkParserStateMachine.cc
  2376. * src/MetalinkParserStateMachine.h
  2377. * src/MultiDiskAdaptor.cc
  2378. * src/MultiDiskAdaptor.h
  2379. * src/NetrcAuthResolver.cc
  2380. * src/NetrcAuthResolver.h
  2381. * src/Peer.cc
  2382. * src/Peer.h
  2383. * src/PeerSessionResource.cc
  2384. * src/PeerSessionResource.h
  2385. * src/Piece.cc
  2386. * src/Piece.h
  2387. * src/PieceStatMan.cc
  2388. * src/PieceStatMan.h
  2389. * src/Request.cc
  2390. * src/Request.h
  2391. * src/RequestGroup.cc
  2392. * src/RequestGroup.h
  2393. * src/RequestGroupMan.cc
  2394. * src/RequestGroupMan.h
  2395. * src/RequestSlot.cc
  2396. * src/RequestSlot.h
  2397. * src/SegmentMan.cc
  2398. * src/SegmentMan.h
  2399. * src/SelectEventPoll.cc
  2400. * src/SelectEventPoll.h
  2401. * src/ServerStat.cc
  2402. * src/ServerStat.h
  2403. * src/Signature.cc
  2404. * src/Signature.h
  2405. * src/URIResult.cc
  2406. * src/URIResult.h
  2407. * src/UTPexExtensionMessage.cc
  2408. * src/UTPexExtensionMessage.h
  2409. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Fixed compile error without BitTorrent and Metalink support.
  2411. * src/XmlRpcMethod.cc
  2412. * src/XmlRpcMethodFactory.cc
  2413. * src/XmlRpcMethodImpl.cc
  2414. * src/XmlRpcMethodImpl.h
  2415. * test/XmlRpcMethodTest.cc
  2416. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2417. Rewritten the help message for --allow-overwrite option.
  2418. * doc/aria2c.1.txt
  2419. * src/usage_text.h
  2420. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. Fixed typo
  2422. * doc/aria2c.1.txt
  2423. * src/usage_text.h
  2424. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Updated README for 1.4.0 release. Use new table syntax of
  2426. asciidoc.
  2427. * README
  2428. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2429. Documented --xml-rpc-max-request-size option in man page.
  2430. * doc/aria2c.1.txt
  2431. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Moved C_* constants from BtContext to DefaultBtContext.
  2433. * src/BtContext.cc: Removed.
  2434. * src/BtContext.h
  2435. * src/DefaultBtContext.cc
  2436. * src/DefaultBtContext.h
  2437. * src/Makefile.am
  2438. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2440. path key respectively when persing .torrent file.
  2441. * src/BtContext.cc
  2442. * src/BtContext.h
  2443. * src/DefaultBtContext.cc
  2444. * test/DefaultBtContextTest.cc
  2445. * test/utf8.torrent
  2446. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2447. Added --xml-rpc-max-request-size option to limit the size of
  2448. XML-RPC request.
  2449. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Documented XML-RPC API in man page.
  2451. * doc/aria2c.1.txt
  2452. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2454. will break strict-aliasing rules
  2455. * src/PeerConnection.cc
  2456. * test/DHTRoutingTableSerializerTest.cc
  2457. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2459. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2460. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2461. PKG_CHECK_MODULES macro uses latter name.
  2462. * m4/sqlite3.m4
  2463. * src/Makefile.am
  2464. * test/Makefile.am
  2465. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2466. Fixed typo
  2467. * configure.ac
  2468. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2470. presence of libgnutls using pkg-config first. If it fails, fall
  2471. back to old macro libgnutls.m4.
  2472. * configure.ac
  2473. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Use s itself instead of !s.bad()
  2475. * src/CookieStorage.cc
  2476. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Documented --on-download-* option and --save-cookies option in man
  2478. page.
  2479. * doc/aria2c.1.txt
  2480. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2481. Set possible values for --load-cookie option to "/path/to/file".
  2482. * src/OptionHandlerFactory.cc
  2483. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Added --save-cookies option.
  2485. * src/Cookie.cc
  2486. * src/Cookie.h
  2487. * src/CookieStorage.cc
  2488. * src/CookieStorage.h
  2489. * src/MultiUrlRequestInfo.cc
  2490. * src/OptionHandlerFactory.cc
  2491. * src/prefs.cc
  2492. * src/prefs.h
  2493. * src/usage_text.h
  2494. * test/CookieStorageTest.cc
  2495. * test/CookieTest.cc
  2496. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2497. Removed tellAll XML-RPC command because its reponse tends to be
  2498. big if stopped/waiting downloads pile up.
  2499. * src/XmlRpcMethodFactory.cc
  2500. * src/XmlRpcMethodImpl.cc
  2501. * src/XmlRpcMethodImpl.h
  2502. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Added the ability to execute command when download starts and
  2504. stops. You can also specify command for particular cases such as
  2505. complete/error download. Added --on-download-start,
  2506. --on-download-stop, --on-download-complete and --on-download-error
  2507. option.
  2508. * src/OptionHandlerFactory.cc
  2509. * src/RequestGroupMan.cc
  2510. * src/prefs.cc
  2511. * src/prefs.h
  2512. * src/usage_text.h
  2513. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2514. Fixed test error
  2515. * test/BencodeTest.cc
  2516. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2517. Added unit tests.
  2518. * test/XmlRpcMethodTest.cc
  2519. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Made exception message more verbose.
  2521. * src/bencode.cc
  2522. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2523. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2524. space in console readout. Also they are now shown in MiB/s if
  2525. speed > 1024KiB/s.
  2526. * src/ConsoleStatCalc.cc
  2527. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2528. Added SEED to console output, which represents the number of
  2529. seeders currently the client is connecting to.
  2530. * src/ConsoleStatCalc.cc
  2531. * src/ConsoleStatCalc.h
  2532. * src/DownloadEngine.cc
  2533. * src/NullStatCalc.h
  2534. * src/StatCalc.h
  2535. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Added source filename(__FILE__) and line number(__LINE__) to
  2537. exception message.
  2538. * src/AbstractCommand.cc
  2539. * src/AbstractDiskWriter.cc
  2540. * src/AbstractProxyResponseCommand.cc
  2541. * src/BDE.h
  2542. * src/BtAllowedFastMessage.cc
  2543. * src/BtHandshakeMessageValidator.h
  2544. * src/BtHaveAllMessage.cc
  2545. * src/BtHaveNoneMessage.cc
  2546. * src/BtPieceMessage.cc
  2547. * src/BtRejectMessage.cc
  2548. * src/ChunkedDecoder.cc
  2549. * src/CookieStorage.cc
  2550. * src/DHTAnnouncePeerMessage.cc
  2551. * src/DHTEntryPointNameResolveCommand.cc
  2552. * src/DHTMessageFactoryImpl.cc
  2553. * src/DHTMessageTracker.cc
  2554. * src/DHTRoutingTableDeserializer.cc
  2555. * src/DHTRoutingTableSerializer.cc
  2556. * src/DHTSetup.cc
  2557. * src/DHTTokenTracker.cc
  2558. * src/DefaultBtAnnounce.cc
  2559. * src/DefaultBtContext.cc
  2560. * src/DefaultBtInteractive.cc
  2561. * src/DefaultBtMessageFactory.cc
  2562. * src/DefaultBtProgressInfoFile.cc
  2563. * src/DefaultExtensionMessageFactory.cc
  2564. * src/DlAbortEx.h
  2565. * src/DlRetryEx.h
  2566. * src/DownloadCommand.cc
  2567. * src/DownloadEngineFactory.cc
  2568. * src/DownloadFailureException.h
  2569. * src/Exception.cc
  2570. * src/Exception.h
  2571. * src/ExpatMetalinkProcessor.cc
  2572. * src/ExpatXmlRpcRequestProcessor.cc
  2573. * src/FallocFileAllocationIterator.cc
  2574. * src/FatalException.h
  2575. * src/FtpConnection.cc
  2576. * src/FtpFinishDownloadCommand.cc
  2577. * src/FtpInitiateConnectionCommand.cc
  2578. * src/FtpNegotiationCommand.cc
  2579. * src/GZipDecoder.cc
  2580. * src/HandshakeExtensionMessage.cc
  2581. * src/HttpConnection.cc
  2582. * src/HttpHeaderProcessor.cc
  2583. * src/HttpInitiateConnectionCommand.cc
  2584. * src/HttpResponse.cc
  2585. * src/HttpResponseCommand.cc
  2586. * src/HttpServer.cc
  2587. * src/HttpSkipResponseCommand.cc
  2588. * src/InitiateConnectionCommandFactory.cc
  2589. * src/IteratableChunkChecksumValidator.cc
  2590. * src/LibgcryptARC4Context.h
  2591. * src/LibgcryptARC4Decryptor.h
  2592. * src/LibgcryptARC4Encryptor.h
  2593. * src/LibgcryptDHKeyExchange.h
  2594. * src/LibgnutlsTLSContext.cc
  2595. * src/LibsslARC4Context.h
  2596. * src/LibsslARC4Decryptor.h
  2597. * src/LibsslARC4Encryptor.h
  2598. * src/LibsslDHKeyExchange.h
  2599. * src/LibsslTLSContext.cc
  2600. * src/MSEHandshake.cc
  2601. * src/MessageDigestHelper.cc
  2602. * src/MetalinkHelper.cc
  2603. * src/MultiDiskAdaptor.cc
  2604. * src/NameMatchOptionHandler.h
  2605. * src/NameResolver.cc
  2606. * src/Netrc.cc
  2607. * src/NsCookieParser.cc
  2608. * src/OptionHandlerException.cc
  2609. * src/OptionHandlerException.h
  2610. * src/OptionHandlerImpl.h
  2611. * src/OptionParser.cc
  2612. * src/ParameterizedStringParser.cc
  2613. * src/PeerAbstractCommand.cc
  2614. * src/PeerConnection.cc
  2615. * src/PeerMessageUtil.cc
  2616. * src/PeerReceiveHandshakeCommand.cc
  2617. * src/Platform.cc
  2618. * src/ReceiverMSEHandshakeCommand.cc
  2619. * src/RecoverableException.h
  2620. * src/RequestGroup.cc
  2621. * src/SimpleLogger.cc
  2622. * src/SocketCore.cc
  2623. * src/Sqlite3MozCookieParser.cc
  2624. * src/UTPexExtensionMessage.cc
  2625. * src/Util.cc
  2626. * src/XML2SAXMetalinkProcessor.cc
  2627. * src/Xml2XmlRpcRequestProcessor.cc
  2628. * src/XmlRpcMethodImpl.cc
  2629. * src/bencode.cc
  2630. * src/download_helper.cc
  2631. * src/messageDigest.h
  2632. * test/ExceptionTest.cc
  2633. * test/TestUtil.cc
  2634. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Bump up version number to 1.4.0
  2636. * configure.ac
  2637. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2638. Added 2files.metalink to EXTRA_DIST
  2639. * test/Makefile.am
  2640. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. Added missing 2files.metalink
  2642. * test/2files.metalink
  2643. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2644. Show "[MEMORY]" prefix before filename in download summary if it
  2645. is downloaded into memory.
  2646. * src/DownloadResult.h
  2647. * src/RequestGroup.cc
  2648. * src/RequestGroupMan.cc
  2649. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2650. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2651. * src/ExpatXmlRpcRequestProcessor.cc
  2652. * src/Xml2XmlRpcRequestProcessor.cc
  2653. * src/message.h
  2654. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Defined const BDEs to avoid duplicate instantiation.
  2656. Defined MSG_GID_NOT_PROVIDED.
  2657. * src/XmlRpcMethodImpl.cc
  2658. * src/message.h
  2659. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2660. Code cleanup
  2661. * src/Xml2XmlRpcRequestProcessor.cc
  2662. * src/Xml2XmlRpcRequestProcessor.h
  2663. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2664. Defined ENABLE_XML_RPC
  2665. * configure.ac
  2666. * configure
  2667. * config.h.in
  2668. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2669. Added ExpatXmlRpcRequestProcessor
  2670. * src/ExpatXmlRpcRequestProcessor.cc
  2671. * src/ExpatXmlRpcRequestProcessor.h
  2672. * src/Makefile.am
  2673. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2674. Added tests for addTorrent and addMetalink command.
  2675. * test/TestUtil.cc
  2676. * test/TestUtil.h
  2677. * test/XmlRpcMethodTest.cc
  2678. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2679. Corrected the description of --file-allocation option.
  2680. * doc/aria2c.1.txt
  2681. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2682. Added tellAll command.
  2683. * src/XmlRpcMethodFactory.cc
  2684. * src/XmlRpcMethodImpl.cc
  2685. * src/XmlRpcMethodImpl.h
  2686. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2687. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2688. * src/XmlRpcMethodImpl.cc
  2689. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2690. Added changeGlobalOption command. Currently,
  2691. max-overall-download-limit and max-overall-upload-limit option are
  2692. available.
  2693. * src/RequestGroupMan.h
  2694. * src/XmlRpcMethod.cc
  2695. * src/XmlRpcMethod.h
  2696. * src/XmlRpcMethodFactory.cc
  2697. * src/XmlRpcMethodImpl.cc
  2698. * src/XmlRpcMethodImpl.h
  2699. * test/XmlRpcMethodTest.cc
  2700. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. Added changeOption command. Currently, max-download-limit,
  2702. max-upload-limit option are available in this command.
  2703. * src/RequestGroup.h
  2704. * src/XmlRpcMethod.cc
  2705. * src/XmlRpcMethod.h
  2706. * src/XmlRpcMethodFactory.cc
  2707. * src/XmlRpcMethodImpl.cc
  2708. * src/XmlRpcMethodImpl.h
  2709. * test/XmlRpcMethodTest.cc
  2710. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2711. Added purgeDownloadResult command.
  2712. * src/RequestGroupMan.cc
  2713. * src/RequestGroupMan.h
  2714. * src/XmlRpcMethodFactory.cc
  2715. * src/XmlRpcMethodImpl.cc
  2716. * src/XmlRpcMethodImpl.h
  2717. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2718. Refactored.
  2719. * src/XmlRpcMethod.cc
  2720. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2721. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2722. XmlRpcResponse.
  2723. * src/HttpServerBodyCommand.cc
  2724. * src/Makefile.am
  2725. * src/XmlRpcMethod.cc
  2726. * src/XmlRpcMethod.h
  2727. * src/XmlRpcMethodImpl.cc
  2728. * src/XmlRpcResponse.cc
  2729. * src/XmlRpcResponse.h
  2730. * test/XmlRpcMethodTest.cc
  2731. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. In XML-RPC option struct, header and index-out option can take
  2733. array as value.
  2734. * src/XmlRpcMethod.cc
  2735. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2736. Removed unused option member from PeerConnection.
  2737. * src/InitiatorMSEHandshakeCommand.cc
  2738. * src/PeerConnection.cc
  2739. * src/PeerConnection.h
  2740. * src/PeerInteractionCommand.cc
  2741. * src/PeerReceiveHandshakeCommand.cc
  2742. * src/ReceiverMSEHandshakeCommand.cc
  2743. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Added "seeder" key to getPeers response.
  2745. * src/XmlRpcMethodImpl.cc
  2746. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Added addMetalink XML-RPC command.
  2748. * src/XmlRpcMethodFactory.cc
  2749. * src/XmlRpcMethodImpl.cc
  2750. * src/XmlRpcMethodImpl.h
  2751. * src/download_helper.cc
  2752. * src/download_helper.h
  2753. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. Fixed the bug that POU peers are never choked in seeding.
  2755. * src/BtSeederStateChoke.cc
  2756. * src/BtSeederStateChoke.h
  2757. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2758. Added web-seeding URI handling in addTorrent command.
  2759. * src/XmlRpcMethodImpl.cc
  2760. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Added "length" key to getFiles response.
  2762. * src/XmlRpcMethodImpl.cc
  2763. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. Moved --no-netrc option from ftp option section to http/ftp option
  2765. section.
  2766. * doc/aria2c.1.txt
  2767. * src/OptionHandlerFactory.cc
  2768. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2769. Removed garbage "\" character before '
  2770. * doc/aria2c.1.txt
  2771. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2772. Removed garbage "\" character before http.
  2773. * doc/aria2c.1.txt
  2774. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Documented additional options that can be specified in -i list.
  2776. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2777. and --xml-rpc-passwd. Removed --enable-http-server and
  2778. --http-server-listen-port.
  2779. * doc/aria2c.1.txt
  2780. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2782. * src/DefaultPeerStorage.cc
  2783. * src/DefaultPeerStorage.h
  2784. * src/PeerStorage.h
  2785. * src/XmlRpcMethodImpl.cc
  2786. * test/MockPeerStorage.h
  2787. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Put a call to Socket::isReadable() in try block.
  2789. * src/HttpServerBodyCommand.cc
  2790. * src/HttpServerCommand.cc
  2791. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2792. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2793. exception , so it is now in try block.
  2794. * src/HttpServerResponseCommand.cc
  2795. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2796. Added "amChoking" and "peerChoking" key in getPeers response.
  2797. * src/XmlRpcMethodImpl.cc
  2798. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Added test case for zero-length filter.
  2800. * test/BitfieldManTest.cc
  2801. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. getFiles command now returns file data for finished/stopped
  2803. downloads.
  2804. * src/XmlRpcMethodImpl.cc
  2805. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2806. DownloadResult now has the list of FileEntry. The download
  2807. summary displays the path of first selected file and the number of
  2808. remaining files for multi-file torrent.
  2809. * src/DownloadResult.h
  2810. * src/RequestGroup.cc
  2811. * src/RequestGroupMan.cc
  2812. * test/RequestGroupTest.cc
  2813. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Fixed segmentation fault error when no file is selected in
  2815. multi-file torrent.
  2816. * src/BitfieldMan.cc
  2817. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. Escaped <,>,& character in XML-RPC response.
  2819. * src/XmlRpcMethod.cc
  2820. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2821. Throw DlAbortEx instead of FatalException during parsing options
  2822. because we don't want for aria2 to quit when bad option is passed
  2823. via XML-RPC.
  2824. * src/OptionHandlerException.cc
  2825. * src/OptionHandlerException.h
  2826. * src/OptionHandlerImpl.h
  2827. * src/OptionParser.cc
  2828. * src/OptionParser.h
  2829. * src/PStringSegment.cc
  2830. * src/ParameterizedStringParser.cc
  2831. * src/download_helper.cc
  2832. * test/ParameterizedStringParserTest.cc
  2833. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Selecting files are now done in
  2835. DefaultBtContext::setFileFileter().
  2836. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2837. functions are removed because they are no longer used. Creating
  2838. filter in BitfieldMan is done in new funtion
  2839. PieceStorage::setupFileFilter()
  2840. * src/BtContext.cc
  2841. * src/BtContext.h
  2842. * src/DefaultBtContext.cc
  2843. * src/DefaultBtContext.h
  2844. * src/DefaultPieceStorage.cc
  2845. * src/DefaultPieceStorage.h
  2846. * src/DiskAdaptor.cc
  2847. * src/DiskAdaptor.h
  2848. * src/PieceStorage.h
  2849. * src/RequestGroup.cc
  2850. * src/UnknownLengthPieceStorage.h
  2851. * src/XmlRpcMethodImpl.cc
  2852. * test/DefaultBtContextTest.cc
  2853. * test/MockBtContext.h
  2854. * test/MockPieceStorage.h
  2855. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2856. Fixed compile error on Mac OS X
  2857. * src/HttpServer.cc
  2858. * src/XmlRpcMethod.h
  2859. * src/XmlRpcMethodImpl.cc
  2860. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2861. Use std::binary_search instead of std::find
  2862. * src/DefaultPieceStorage.cc
  2863. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Removed unnecessary BDE() call; leave them to implicit conversion.
  2865. * src/XmlRpcMethodImpl.cc
  2866. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Return connections and gid in string
  2868. * src/XmlRpcMethodImpl.cc
  2869. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Renamed addURI as addUri
  2871. * src/XmlRpcMethodFactory.cc
  2872. * src/XmlRpcMethodImpl.cc
  2873. * src/XmlRpcMethodImpl.h
  2874. * test/XmlRpcMethodTest.cc
  2875. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Renamed addTorrentFile as addTorrent
  2877. * src/XmlRpcMethodFactory.cc
  2878. * src/XmlRpcMethodImpl.cc
  2879. * src/XmlRpcMethodImpl.h
  2880. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. The information for files, URIs, peers are removed from the
  2882. reponse of TellaActive, TellStatus command because they tend to be
  2883. large. Instead they can be retrieved by the dedicated commands:
  2884. getFiles, getUris and getPeers respectively.
  2885. * src/XmlRpcMethodFactory.cc
  2886. * src/XmlRpcMethodImpl.cc
  2887. * src/XmlRpcMethodImpl.h
  2888. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2889. Removed --max-overall-upload-limit and
  2890. --max-overall-download-limit option from listRequestOptions.
  2891. * src/download_helper.cc
  2892. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2893. Log incoming host in HttpListenCommand.
  2894. * src/HttpListenCommand.cc
  2895. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2897. --xml-rpc-passwd option.
  2898. * src/HttpServer.cc
  2899. * src/HttpServer.h
  2900. * src/HttpServerCommand.cc
  2901. * src/OptionHandlerFactory.cc
  2902. * src/prefs.cc
  2903. * src/prefs.h
  2904. * src/usage_text.h
  2905. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2906. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2907. processing 0 length request.
  2908. * src/HttpServerBodyCommand.cc
  2909. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2910. Removed --enable-http-server and --http-server-listen-port
  2911. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2912. instead. The original feature for --enable-http-server that
  2913. reports download progress in HTML was officially removed. Persist
  2914. XML-RPC connection if client supports keep-alive.
  2915. * src/DownloadEngineFactory.cc
  2916. * src/HttpServerCommand.cc
  2917. * src/HttpServerResponseCommand.cc
  2918. * src/Makefile.am
  2919. * src/Makefile.in
  2920. * src/OptionHandlerFactory.cc
  2921. * src/RequestGroupMan.cc
  2922. * src/main.cc
  2923. * src/option_processing.cc
  2924. * src/prefs.cc
  2925. * src/prefs.h
  2926. * src/usage_text.h
  2927. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Added "uris" key to the response of tellStatus command. Added
  2929. "connections" key to the response of tellStatus and tellActive
  2930. command.
  2931. * src/XmlRpcMethodImpl.cc
  2932. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2934. Added TellStatusXmlRpcMethod. Remove command can now remove
  2935. waiting RequestGroup.
  2936. * src/RequestGroupMan.cc
  2937. * src/RequestGroupMan.h
  2938. * src/XmlRpcMethodFactory.cc
  2939. * src/XmlRpcMethodImpl.cc
  2940. * src/XmlRpcMethodImpl.h
  2941. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2942. Initialized _peerId
  2943. * src/Peer.cc
  2944. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2945. Return fault structure for error. FailXmlRpcMethod is renamed as
  2946. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2947. in non-torrent download. Return single param value.
  2948. * src/XmlRpcMethod.cc
  2949. * src/XmlRpcMethodFactory.cc
  2950. * src/XmlRpcMethodImpl.cc
  2951. * src/XmlRpcMethodImpl.h
  2952. * test/XmlRpcMethodTest.cc
  2953. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2954. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2955. command.
  2956. * src/RequestGroup.cc
  2957. * src/RequestGroup.h
  2958. * src/RequestGroupMan.cc
  2959. * src/XmlRpcMethodImpl.cc
  2960. * test/RequestGroupTest.cc
  2961. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Added more options that can be specified in -i list and xml-rpc
  2963. add* command.
  2964. * src/download_helper.h
  2965. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2966. The available options in -i list should be listed in
  2967. listRequestOptions().
  2968. * src/download_helper.cc
  2969. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2971. command.
  2972. * src/XmlRpcMethodImpl.cc
  2973. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Now RequestGroup has its own copy of Option object. This will help
  2975. to give custom option for each RequestGroup.
  2976. addTorrentFile command now takes options.
  2977. * src/AbstractCommand.cc
  2978. * src/AbstractCommand.h
  2979. * src/AbstractProxyRequestCommand.cc
  2980. * src/ActivePeerConnectionCommand.cc
  2981. * src/ActivePeerConnectionCommand.h
  2982. * src/AdaptiveURISelector.cc
  2983. * src/BtCheckIntegrityEntry.cc
  2984. * src/BtDependency.cc
  2985. * src/BtDependency.h
  2986. * src/BtFileAllocationEntry.cc
  2987. * src/BtPostDownloadHandler.cc
  2988. * src/CheckIntegrityEntry.cc
  2989. * src/DownloadCommand.cc
  2990. * src/FtpDownloadCommand.cc
  2991. * src/FtpFinishDownloadCommand.cc
  2992. * src/FtpInitiateConnectionCommand.cc
  2993. * src/FtpNegotiationCommand.cc
  2994. * src/HttpInitiateConnectionCommand.cc
  2995. * src/HttpRequestCommand.cc
  2996. * src/HttpResponseCommand.cc
  2997. * src/HttpSkipResponseCommand.cc
  2998. * src/InitiateConnectionCommand.cc
  2999. * src/InitiateConnectionCommandFactory.cc
  3000. * src/InitiatorMSEHandshakeCommand.cc
  3001. * src/InitiatorMSEHandshakeCommand.h
  3002. * src/Metalink2RequestGroup.cc
  3003. * src/Metalink2RequestGroup.h
  3004. * src/MetalinkPostDownloadHandler.cc
  3005. * src/MultiUrlRequestInfo.cc
  3006. * src/MultiUrlRequestInfo.h
  3007. * src/PeerAbstractCommand.cc
  3008. * src/PeerInteractionCommand.cc
  3009. * src/PeerInteractionCommand.h
  3010. * src/PeerReceiveHandshakeCommand.cc
  3011. * src/PeerReceiveHandshakeCommand.h
  3012. * src/RequestGroup.cc
  3013. * src/RequestGroup.h
  3014. * src/TrackerWatcherCommand.cc
  3015. * src/TrackerWatcherCommand.h
  3016. * src/XmlRpcMethod.cc
  3017. * src/XmlRpcMethod.h
  3018. * src/XmlRpcMethodImpl.cc
  3019. * src/download_helper.cc
  3020. * src/download_helper.h
  3021. * src/main.cc
  3022. * test/BtDependencyTest.cc
  3023. * test/BtPostDownloadHandlerTest.cc
  3024. * test/DefaultBtMessageDispatcherTest.cc
  3025. * test/DownloadHandlerFactoryTest.cc
  3026. * test/DownloadHelperTest.cc
  3027. * test/Metalink2RequestGroupTest.cc
  3028. * test/MetalinkPostDownloadHandlerTest.cc
  3029. * test/RequestGroupManTest.cc
  3030. * test/RequestGroupTest.cc
  3031. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Added tellActiveStatus xml-rpc command which reports download
  3033. status of active downloads.
  3034. * src/XmlRpcMethodFactory.cc
  3035. * src/XmlRpcMethodImpl.cc
  3036. * src/XmlRpcMethodImpl.h
  3037. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3038. Added addTorrentFile xml-rpc command which receives uploaded
  3039. torrent file and add download for it.
  3040. * src/RequestGroupMan.cc
  3041. * src/XmlRpcMethodFactory.cc
  3042. * src/XmlRpcMethodImpl.cc
  3043. * src/XmlRpcMethodImpl.h
  3044. * src/download_helper.cc
  3045. * src/download_helper.h
  3046. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3047. Added remove xml-rpc command which removes specified download.
  3048. There is a known issue: the removed unfinished downloads are
  3049. reported ERR when aria2 exits. They should be reported as INPR.
  3050. * src/RequestGroupMan.cc
  3051. * src/RequestGroupMan.h
  3052. * src/XmlRpcMethodFactory.cc
  3053. * src/XmlRpcMethodImpl.cc
  3054. * src/XmlRpcMethodImpl.h
  3055. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3056. If --enable-http-server is enabled, don't stop aria2 when all
  3057. download finished and don't quit when no files to download at
  3058. start up.
  3059. * src/RequestGroupMan.cc
  3060. * src/main.cc
  3061. * src/option_processing.cc
  3062. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3063. Added missing AM_CONDITIONAL
  3064. * configure.ac
  3065. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Added xml-rpc functionality. Currently only addURI commad is
  3067. supported. To enable xml-rpc, run aria2 with
  3068. --enable-http-server. This option name is temporal and will be
  3069. changed. The feature that reports download progress in html format
  3070. is temporarily disabled.
  3071. * src/HttpServer.cc
  3072. * src/HttpServer.h
  3073. * src/HttpServerBodyCommand.cc
  3074. * src/HttpServerBodyCommand.h
  3075. * src/HttpServerCommand.cc
  3076. * src/HttpServerResponseCommand.cc
  3077. * src/Makefile.am
  3078. * src/OptionParser.cc
  3079. * src/OptionParser.h
  3080. * src/RequestGroupMan.cc
  3081. * src/RequestGroupMan.h
  3082. * src/XmlRpcMethod.cc
  3083. * src/XmlRpcMethod.h
  3084. * src/XmlRpcMethodFactory.cc
  3085. * src/XmlRpcMethodFactory.h
  3086. * src/XmlRpcMethodImpl.cc
  3087. * src/XmlRpcMethodImpl.h
  3088. * src/download_helper.cc
  3089. * src/download_helper.h
  3090. * test/Makefile.am
  3091. * test/XmlRpcMethodTest.cc
  3092. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3093. Added xml-rpc request parser. The supported value types are:
  3094. i4/int, string, double, struct, array, base64. Currently only
  3095. libxml2 version is provided.
  3096. * src/Xml2XmlRpcRequestProcessor.cc
  3097. * src/Xml2XmlRpcRequestProcessor.h
  3098. * src/XmlRpcElements.cc
  3099. * src/XmlRpcElements.h
  3100. * src/XmlRpcRequest.h
  3101. * src/XmlRpcRequestParserController.cc
  3102. * src/XmlRpcRequestParserController.h
  3103. * src/XmlRpcRequestParserState.h
  3104. * src/XmlRpcRequestParserStateImpl.cc
  3105. * src/XmlRpcRequestParserStateImpl.h
  3106. * src/XmlRpcRequestParserStateMachine.cc
  3107. * src/XmlRpcRequestParserStateMachine.h
  3108. * src/XmlRpcRequestProcessor.h
  3109. * test/XmlRpcRequestParserControllerTest.cc
  3110. * test/XmlRpcRequestProcessorTest.cc
  3111. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3112. * Release 1.3.3
  3113. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3114. Fixed compile error since r1202.
  3115. * src/ExpatMetalinkProcessor.cc
  3116. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Updated Ukrainian, Russian and Simplified Chinese
  3118. translations. Thanks to all translators.
  3119. * po/ru.po
  3120. * po/uk.po
  3121. * po/zh_CN.po
  3122. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3123. Pass reference of Option object instead of pointer.
  3124. * src/download_helper.cc
  3125. * src/download_helper.h
  3126. * src/main.cc
  3127. * test/DownloadHelperTest.cc
  3128. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3129. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3130. from option directly. Instead, get them from RequestGroup.
  3131. * src/ActivePeerConnectionCommand.cc
  3132. * src/ActivePeerConnectionCommand.h
  3133. * src/PeerReceiveHandshakeCommand.cc
  3134. * src/RequestGroup.h
  3135. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3136. Removed unused uploadLimitCheck and uploadLimit from
  3137. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3138. PeerInteractionCommand.
  3139. * src/PeerAbstractCommand.cc
  3140. * src/PeerAbstractCommand.h
  3141. * src/PeerInteractionCommand.cc
  3142. * src/PeerInteractionCommand.h
  3143. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. Fixed broken file renaming feature since r1202.
  3145. * src/FtpNegotiationCommand.cc
  3146. * src/FtpNegotiationCommand.h
  3147. * src/HttpResponseCommand.cc
  3148. * src/RequestGroup.cc
  3149. * src/RequestGroup.h
  3150. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3151. Removed unused debug log
  3152. * src/SocketCore.cc
  3153. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Generated configure and Makefile.in using autoconf 2.63 and
  3155. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3156. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3157. * configure.ac
  3158. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3159. Moved piece statistics stuff to new PieceStatMan class.
  3160. Refactored PieceSelector interface.
  3161. * src/DefaultPieceStorage.cc
  3162. * src/DefaultPieceStorage.h
  3163. * src/LongestSequencePieceSelector.cc
  3164. * src/LongestSequencePieceSelector.h
  3165. * src/Makefile.am
  3166. * src/PieceSelector.h
  3167. * src/PieceStatMan.cc
  3168. * src/PieceStatMan.h
  3169. * src/RarestPieceSelector.cc
  3170. * src/RarestPieceSelector.h
  3171. * src/RequestGroup.cc
  3172. * test/DefaultPieceStorageTest.cc
  3173. * test/InOrderPieceSelector.h
  3174. * test/Makefile.am
  3175. * test/PieceStatManTest.cc
  3176. * test/RarestPieceSelectorTest.cc
  3177. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. Added static member _protocolFamily to SocketCore. By default,
  3179. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3180. address. Sometime SocketCore::bind() and
  3181. SocketCore::establishConnection() use difference protocl family
  3182. and latter cannot connect to former. To avoid this situation, we
  3183. limit protocol family to AF_INET for unit tests.
  3184. * src/SocketCore.cc
  3185. * src/SocketCore.h
  3186. * test/AllTest.cc
  3187. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3188. Avoid std::bad_alloc for negative bencode string length.
  3189. * src/bencode.cc
  3190. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3191. Supported segmented downloading with chunked transfer encoding and
  3192. content-length.
  3193. * src/DownloadCommand.cc
  3194. * src/HttpResponseCommand.cc
  3195. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3196. Bump up version number to 1.3.3
  3197. * configure.ac
  3198. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3200. from 4096 to 65536 (for insanely large ftp login banners)
  3201. * src/FtpConnection.h
  3202. * test/FtpConnectionTest.cc
  3203. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3204. In DefaultBtContext::getActualBasePath(), return first
  3205. FileEntry::getPath() for single file torrent.
  3206. * src/DefaultBtContext.cc
  3207. * test/DefaultBtContextTest.cc
  3208. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3209. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3210. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3211. Removed _directIOAllowed member from DiskWriter.
  3212. * src/AbstractDiskWriter.cc
  3213. * src/AbstractDiskWriter.h
  3214. * src/AbstractSingleDiskAdaptor.cc
  3215. * src/AbstractSingleDiskAdaptor.h
  3216. * src/BinaryStream.h
  3217. * src/ByteArrayDiskWriter.h
  3218. * src/DefaultPieceStorage.cc
  3219. * src/DiskWriter.h
  3220. * src/MultiDiskAdaptor.cc
  3221. * src/MultiDiskAdaptor.h
  3222. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3223. Now the constructor of AbstractDiskWriter takes filename as an
  3224. argument and filename argument is removed from openFile(),
  3225. initAndOpenFile(), openExistingFile() interface. storeDir member
  3226. and its accessor functions are removed from DiskAdaptor because it
  3227. is not used anymore. size() member function of DefaultDiskWriter,
  3228. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3229. opening file.
  3230. * src/AbstractDiskWriter.cc
  3231. * src/AbstractDiskWriter.h
  3232. * src/AbstractSingleDiskAdaptor.cc
  3233. * src/AbstractSingleDiskAdaptor.h
  3234. * src/ByteArrayDiskWriter.cc
  3235. * src/ByteArrayDiskWriter.h
  3236. * src/ByteArrayDiskWriterFactory.cc
  3237. * src/ByteArrayDiskWriterFactory.h
  3238. * src/DefaultDiskWriter.cc
  3239. * src/DefaultDiskWriter.h
  3240. * src/DefaultDiskWriterFactory.cc
  3241. * src/DefaultDiskWriterFactory.h
  3242. * src/DefaultPieceStorage.cc
  3243. * src/DirectDiskAdaptor.cc
  3244. * src/DirectDiskAdaptor.h
  3245. * src/DiskAdaptor.h
  3246. * src/DiskWriter.h
  3247. * src/DiskWriterFactory.h
  3248. * src/MessageDigestHelper.cc
  3249. * src/MultiDiskAdaptor.cc
  3250. * src/RequestGroup.cc
  3251. * src/UnknownLengthPieceStorage.cc
  3252. * src/Util.cc
  3253. * test/DefaultDiskWriterTest.cc
  3254. * test/DirectDiskAdaptorTest.cc
  3255. * test/FallocFileAllocationIteratorTest.cc
  3256. * test/MessageDigestHelperTest.cc
  3257. * test/MetalinkProcessorTest.cc
  3258. * test/MultiDiskAdaptorTest.cc
  3259. * test/MultiFileAllocationIteratorTest.cc
  3260. * test/SingleFileAllocationIteratorTest.cc
  3261. * test/UtilTest.cc
  3262. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3263. Fixed the bug that aria2 aborts when --select-file is used. This
  3264. bug was introduced in r1199.
  3265. * src/MultiDiskAdaptor.cc
  3266. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3267. Code cleanup
  3268. * test/MockPieceStorage.cc
  3269. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3270. Fixed the bug that read-only file with wrong file size will cause
  3271. error because it cannot be truncated to the correct size. Now if
  3272. file size is different than the expected one, re-open file in
  3273. writable mode.
  3274. * src/AbstractSingleDiskAdaptor.cc
  3275. * src/AbstractSingleDiskAdaptor.h
  3276. * src/BtCheckIntegrityEntry.cc
  3277. * src/DiskAdaptor.h
  3278. * src/MultiDiskAdaptor.h
  3279. * src/RequestGroup.cc
  3280. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. Fixed the bug that with --check-integrity option aria2 reports
  3282. downloaded file size is 0 even if some parts of file is correctly
  3283. downloaded. This bug is reproducible for the download that a file
  3284. includes last piece is missing. This bug doesn't reveal for
  3285. single-torrent with file allocation on.
  3286. * src/IteratableChecksumValidator.cc
  3287. * test/IteratableChecksumValidatorTest.cc
  3288. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3289. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3290. * src/RequestGroupMan.cc
  3291. * src/AdaptiveURISelector.cc
  3292. * src/AdaptiveURISelector.h
  3293. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3294. * Release 1.3.2
  3295. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3296. Updated README
  3297. * README
  3298. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3299. Updated Ukrainian translations. Thanks to Alexander10.
  3300. * po/uk.po
  3301. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3302. Code cleanup
  3303. * src/MetalinkParserStateMachine.cc
  3304. * src/MetalinkParserStateMachine.h
  3305. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3306. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3307. and expat simultaneously, MetalinkProcessor is now not base class
  3308. and it is directly implemented in XML2SAXMetalinkProcessor and
  3309. ExpatMetalinkProcessor.
  3310. * src/ExpatMetalinkProcessor.cc
  3311. * src/ExpatMetalinkProcessor.h
  3312. * src/Makefile.am
  3313. * src/MetalinkHelper.cc
  3314. * src/MetalinkProcessor.h
  3315. * src/MetalinkProcessorFactory.cc: Removed.
  3316. * src/MetalinkProcessorFactory.h: Removed
  3317. * src/XML2SAXMetalinkProcessor.cc
  3318. * src/XML2SAXMetalinkProcessor.h
  3319. * test/MetalinkProcessorTest.cc
  3320. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3321. Bump up version number to 1.3.2
  3322. * configure.ac
  3323. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3324. Added missing file.
  3325. * test/Makefile.am
  3326. * test/url-list-singleFileEndsWithSlash.torrent
  3327. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3329. request.
  3330. * src/AnnounceList.cc
  3331. * src/AnnounceList.h
  3332. * src/BDE.cc: Added
  3333. * src/BDE.h: Added
  3334. * src/DHTAbstractMessage.cc
  3335. * src/DHTAbstractMessage.h
  3336. * src/DHTAnnouncePeerMessage.cc
  3337. * src/DHTAnnouncePeerMessage.h
  3338. * src/DHTAnnouncePeerReplyMessage.cc
  3339. * src/DHTAnnouncePeerReplyMessage.h
  3340. * src/DHTFindNodeMessage.cc
  3341. * src/DHTFindNodeMessage.h
  3342. * src/DHTFindNodeReplyMessage.cc
  3343. * src/DHTFindNodeReplyMessage.h
  3344. * src/DHTGetPeersMessage.cc
  3345. * src/DHTGetPeersMessage.h
  3346. * src/DHTGetPeersReplyMessage.cc
  3347. * src/DHTGetPeersReplyMessage.h
  3348. * src/DHTMessageFactory.h
  3349. * src/DHTMessageFactoryImpl.cc
  3350. * src/DHTMessageFactoryImpl.h
  3351. * src/DHTMessageReceiver.cc
  3352. * src/DHTMessageTracker.cc
  3353. * src/DHTMessageTracker.h
  3354. * src/DHTPingMessage.cc
  3355. * src/DHTPingMessage.h
  3356. * src/DHTPingReplyMessage.cc
  3357. * src/DHTPingReplyMessage.h
  3358. * src/DHTQueryMessage.cc
  3359. * src/DHTQueryMessage.h
  3360. * src/DHTResponseMessage.cc
  3361. * src/DHTResponseMessage.h
  3362. * src/DefaultBtAnnounce.cc
  3363. * src/DefaultBtContext.cc
  3364. * src/DefaultBtContext.h
  3365. * src/HandshakeExtensionMessage.cc
  3366. * src/Makefile.am
  3367. * src/PeerListProcessor.h
  3368. * src/UTPexExtensionMessage.cc
  3369. * src/bencode.cc
  3370. * src/bencode.h
  3371. * test/AnnounceListTest.cc
  3372. * test/BDETest.cc: Added
  3373. * test/BencodeTest.cc
  3374. * test/DHTAnnouncePeerMessageTest.cc
  3375. * test/DHTAnnouncePeerReplyMessageTest.cc
  3376. * test/DHTFindNodeMessageTest.cc
  3377. * test/DHTFindNodeReplyMessageTest.cc
  3378. * test/DHTGetPeersMessageTest.cc
  3379. * test/DHTGetPeersReplyMessageTest.cc
  3380. * test/DHTMessageFactoryImplTest.cc
  3381. * test/DHTMessageTrackerTest.cc
  3382. * test/DHTPingMessageTest.cc
  3383. * test/DHTPingReplyMessageTest.cc
  3384. * test/Makefile.am
  3385. * test/MockDHTMessageFactory.h
  3386. * test/PeerListProcessorTest.cc
  3387. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3388. Use url-list (web-seeding) only for single-file torrent. This is
  3389. basically the same behavior with Metalink file with torrent and
  3390. URIs.
  3391. * src/RequestGroup.cc
  3392. * src/DefaultBtContext.cc
  3393. * test/DefaultBtContextTest.cc
  3394. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3395. Rewritten expr
  3396. * src/array_fun.h
  3397. * test/array_funTest.cc
  3398. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3399. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3400. * src/DefaultBtMessageDispatcher.cc
  3401. * src/a2algo.h
  3402. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3403. Removed ExtendedMessagingAware. Instead of using inheritance,
  3404. added ExtensionMessageRegistry and it is passed to
  3405. DefaultExtensionMessageFactory.
  3406. * src/DefaultBtInteractive.cc
  3407. * src/DefaultBtInteractive.h
  3408. * src/DefaultExtensionMessageFactory.cc
  3409. * src/DefaultExtensionMessageFactory.h
  3410. * src/ExtendedMessagingAware.h: Removed.
  3411. * src/ExtensionMessageFactory.h
  3412. * src/ExtensionMessageRegistry.h: Added.
  3413. * src/Makefile.am
  3414. * src/PeerInteractionCommand.cc
  3415. * test/DefaultExtensionMessageFactoryTest.cc
  3416. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3417. Fixed typo in log messages
  3418. * src/MSEHandshake.cc
  3419. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3420. Fixed the bug that prevents torrent download from finishing. The
  3421. bug doesn't reveal for all torrents. The torrents affected this
  3422. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3423. of pieces.
  3424. * src/bitfield.h
  3425. * test/bitfieldTest.cc
  3426. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3427. Code cleanup
  3428. * src/PeerListProcessor.h
  3429. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3430. Removed RequestGroupAware
  3431. * src/AbstractCommand.cc
  3432. * src/AbstractCommand.h
  3433. * src/ActivePeerConnectionCommand.cc
  3434. * src/ActivePeerConnectionCommand.h
  3435. * src/DHTGetPeersCommand.cc
  3436. * src/DHTGetPeersCommand.h
  3437. * src/InitiatorMSEHandshakeCommand.cc
  3438. * src/InitiatorMSEHandshakeCommand.h
  3439. * src/Makefile.am
  3440. * src/PeerInitiateConnectionCommand.cc
  3441. * src/PeerInitiateConnectionCommand.h
  3442. * src/PeerInteractionCommand.cc
  3443. * src/PeerInteractionCommand.h
  3444. * src/RealtimeCommand.cc
  3445. * src/RealtimeCommand.h
  3446. * src/RequestGroupAware.cc: Removed
  3447. * src/RequestGroupAware.h: Removed
  3448. * src/SeedCheckCommand.cc
  3449. * src/SeedCheckCommand.h
  3450. * src/SleepCommand.cc
  3451. * src/TrackerWatcherCommand.cc
  3452. * src/TrackerWatcherCommand.h
  3453. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3454. Rewritten PeerListProcessor
  3455. * src/PeerListProcessor.h
  3456. * src/CompactPeerListProcessor.h: Removed
  3457. * src/CompactPeerListProcessor.cc: Removed
  3458. * src/DelegatingPeerListProcessor.cc: Removed.
  3459. * src/DefaultBtAnnounce.cc
  3460. * src/Makefile.am
  3461. * src/UTPexExtensionMessage.cc
  3462. * src/DefaultPeerListProcessor.h: Removed.
  3463. * src/DefaultPeerListProcessor.cc: Removed.
  3464. * src/DelegatingPeerListProcessor.h: Removed.
  3465. * test/Makefile.am
  3466. * test/PeerListProcessorTest.cc
  3467. * test/DefaultPeerListProcessorTest.cc: Removed.
  3468. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. Rewritten RequestGroupMan::calculateStat()
  3470. * src/RequestGroupMan.cc
  3471. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3472. Removed unnecessary virtual destructor for Request class.
  3473. * src/Request.cc
  3474. * src/Request.h
  3475. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Avoid dynamic_pointer_cast.
  3477. * src/DHTGetPeersCommand.cc
  3478. * src/DHTGetPeersCommand.h
  3479. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3480. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3481. BtEvent.
  3482. * src/AbstractBtEventListener.h: Removed.
  3483. * src/AbstractBtMessage.cc
  3484. * src/AbstractBtMessage.h
  3485. * src/BtAbortOutstandingRequestEvent.h
  3486. * src/BtCancelSendingPieceEvent.h
  3487. * src/BtChokedEvent.h: Removed.
  3488. * src/BtChokingEvent.h
  3489. * src/BtEvent.h: Removed
  3490. * src/BtEventListener.h: Removed.
  3491. * src/BtMessage.h
  3492. * src/BtPieceMessage.cc
  3493. * src/BtPieceMessage.h
  3494. * src/BtRequestMessage.cc
  3495. * src/BtRequestMessage.h
  3496. * src/DefaultBtMessageDispatcher.cc
  3497. * src/Makefile.am
  3498. * src/a2functional.h
  3499. * test/BtPieceMessageTest.cc
  3500. * test/BtRequestMessageTest.cc
  3501. * test/DefaultBtMessageDispatcherTest.cc
  3502. * test/MockBtMessage.h
  3503. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. Code cleanup
  3505. * src/RequestGroupMan.cc
  3506. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3507. Code cleanup
  3508. * src/DownloadCommand.cc
  3509. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3511. byte.
  3512. * src/DownloadCommand.cc
  3513. * src/bitfield.h
  3514. * test/bitfieldTest.cc
  3515. Fixed the bug that causes infinite loop if broken web server
  3516. returns chunked response without last "0" chunk-size marker and
  3517. closes connection.
  3518. * src/DownloadCommand.cc
  3519. Instantiate properly configured HttpDownloadCommand for
  3520. non-resumable downlaods.
  3521. * src/HttpResponseCommand.cc
  3522. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. Rewritten array operation functions.
  3524. * src/BitfieldMan.cc
  3525. * src/array_fun.h
  3526. * test/array_funTest.cc
  3527. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3528. Removed unused variable 'query'
  3529. * src/Request.cc
  3530. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3531. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3532. accidentally set to false in r1162.
  3533. * configure.ac
  3534. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3535. Code cleanup
  3536. * src/BNode.cc
  3537. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3538. Increase prefixLength for the bucket which doesn't own local node
  3539. ID when splitting bucket.
  3540. * src/DHTBucket.cc
  3541. * test/DHTBucketTest.cc
  3542. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3543. * Release 1.3.1
  3544. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3545. Bump up version number to 1.3.1
  3546. * configure.ac
  3547. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3548. Removed unused variable checkPoint. Also removed include directive
  3549. for TimeA2.h.
  3550. * src/SeedCheckCommand.h
  3551. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Fixed the bug that upload limit exceeds the value specified in
  3553. --seed-ratio option depending on the timing of the execution of
  3554. SeedCheckCommand.
  3555. * src/SeedCheckCommand.cc
  3556. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3557. Fixed the bug that removed peer's session upload/download length
  3558. are counted twice in _cachedTransferStat before it is
  3559. re-calculated. This affected the calculation of shara ratio,
  3560. resulting aria2 wrongly determines that specified share ratio is
  3561. reached. Also fixed the typo in calculateStatFor function name.
  3562. * src/BtSetup.cc
  3563. * src/DefaultPeerStorage.cc
  3564. * src/ShareRatioSeedCriteria.h
  3565. * test/ShareRatioSeedCriteriaTest.cc
  3566. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3567. * Release 1.3.0
  3568. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3569. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3570. Nynorsk translations. Thanks to all translators.
  3571. * po/es.po
  3572. * po/ja.po
  3573. * po/nn.po
  3574. * po/ru.po
  3575. * po/uk.po
  3576. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3577. Rewritten isInRange()
  3578. * src/DHTBucket.cc
  3579. * test/DHTBucketTest.cc
  3580. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Fixed typo
  3582. * doc/aria2c.1.txt
  3583. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3584. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3585. malloc/realloc is not used.
  3586. * src/configure.ac
  3587. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3588. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3589. char* bitfield instead of stl container for efficiency.
  3590. PieceSelector::select now takes this
  3591. bitfield. RarestPieceSelector::select now also performs
  3592. efficiently for this change. bitfield namespace is introduced and
  3593. it has several helper functions to handle basic bitfield
  3594. operations such as test, count set bits, etc.
  3595. * src/BitfieldMan.cc
  3596. * src/BitfieldMan.h
  3597. * src/DefaultBtRequestFactory.cc
  3598. * src/DefaultPieceStorage.cc
  3599. * src/DefaultPieceStorage.h
  3600. * src/LongestSequencePieceSelector.cc
  3601. * src/LongestSequencePieceSelector.h
  3602. * src/Makefile.am
  3603. * src/Piece.cc
  3604. * src/Piece.h
  3605. * src/PieceSelector.h
  3606. * src/RarestPieceSelector.cc
  3607. * src/RarestPieceSelector.h
  3608. * src/Util.cc
  3609. * src/Util.h
  3610. * src/bitfield.h
  3611. * test/BitfieldManTest.cc
  3612. * test/LongestSequencePieceSelectorTest.cc
  3613. * test/Makefile.am
  3614. * test/RarestPieceSelectorTest.cc
  3615. * test/UtilTest.cc
  3616. * test/bitfieldTest.cc
  3617. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3618. Made accepted socket non-block.
  3619. * src/FtpNegotiationCommand.cc
  3620. * src/HttpListenCommand.cc
  3621. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3622. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3623. * src/AbstractSingleDiskAdaptor.cc
  3624. * src/DefaultPieceStorage.cc
  3625. * src/DiskAdaptor.h
  3626. * src/DiskAdaptor.h
  3627. * src/MultiFileAllocationIterator.cc
  3628. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3629. Run
  3630. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3631. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3632. it doesn't need to be called every time when
  3633. DefaultBtInteractive::doInteractionProcessing() is called.
  3634. * src/DefaultBtInteractive.cc
  3635. * src/DefaultBtInteractive.h
  3636. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Documented 'falloc' in man page.
  3638. * doc/aria2c.1.txt
  3639. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3640. Updated doc
  3641. * src/usage_text.h
  3642. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3644. allocation mode uses posix_fallocate() system call to allocate
  3645. file on disk. If you are using newer file systems such as ext4
  3646. (with extents support), btrfs or xfs, 'falloc' is your best
  3647. choice. It allocates large(few GiB) files almost instantly. Don't
  3648. use 'falloc' with legacy file systems such as ext3 because it
  3649. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3650. until allocation finishes. 'falloc' may not be available if your
  3651. system doesn't have posix_fallocate() system call.
  3652. * configure.ac
  3653. * src/AbstractDiskWriter.cc
  3654. * src/AbstractDiskWriter.h
  3655. * src/AbstractSingleDiskAdaptor.cc
  3656. * src/BinaryStream.h
  3657. * src/BtCheckIntegrityEntry.cc
  3658. * src/ByteArrayDiskWriter.h
  3659. * src/CheckIntegrityEntry.cc
  3660. * src/CheckIntegrityEntry.h
  3661. * src/DefaultPieceStorage.cc
  3662. * src/DiskAdaptor.cc
  3663. * src/DiskAdaptor.h
  3664. * src/DiskWriter.h
  3665. * src/FallocFileAllocationIterator.cc
  3666. * src/FallocFileAllocationIterator.h
  3667. * src/FileAllocationEntry.cc
  3668. * src/FileAllocationEntry.h
  3669. * src/Makefile.am
  3670. * src/MultiFileAllocationIterator.cc
  3671. * src/MultiFileAllocationIterator.h
  3672. * src/OptionHandlerFactory.cc
  3673. * src/RequestGroup.cc
  3674. * src/StreamCheckIntegrityEntry.cc
  3675. * src/prefs.cc
  3676. * src/prefs.h
  3677. * src/usage_text.h
  3678. * test/FallocFileAllocationIteratorTest.cc
  3679. * test/Makefile.am
  3680. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3681. Removed duplicate enableDirectIO() call.
  3682. * src/MultiFileAllocationIterator.cc
  3683. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3684. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3685. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3686. cost of std::rotate().
  3687. * src/RarestPieceSelector.cc
  3688. * src/RarestPieceSelector.h
  3689. * test/RarestPieceSelectorTest.cc
  3690. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3691. Updated usage doc for --bt-tracker-interval option.
  3692. * src/usage_text.h
  3693. * doc/aria2c.1.txt
  3694. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3695. Documented --bt-tracker-interval option in man page.
  3696. * doc/aria2c.1.txt
  3697. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Added an option to specify the interval between tracker requests.
  3699. If non-zero value is specified, aria2 uses it and ignores the
  3700. interval value in the response of tracker. If zero is specified,
  3701. aria2 determines the inteval value based on the tarcker response
  3702. and download progress.
  3703. * src/DefaultBtAnnounce.cc
  3704. * src/DefaultBtAnnounce.h
  3705. * src/OptionHandlerFactory.cc
  3706. * src/RequestGroup.cc
  3707. * src/prefs.cc
  3708. * src/prefs.h
  3709. * src/usage_text.h
  3710. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3711. Added operator+=, operator-=, operator-
  3712. * src/TransferStat.cc
  3713. * src/TransferStat.h
  3714. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3715. Refactored RarestPieceSelector to reduce CPU load, especially for
  3716. addPieceStats.
  3717. * src/RarestPieceSelector.cc
  3718. * src/RarestPieceSelector.h
  3719. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3720. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3721. getAllMissingBlockIndexes to reduce a call to
  3722. array_function_base::operator[].
  3723. * src/BitfieldMan.cc
  3724. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3725. Cached TransferStat/download speed to avoid to sum them up in each
  3726. call.
  3727. * src/DefaultPeerStorage.cc
  3728. * src/DefaultPeerStorage.h
  3729. * src/SegmentMan.cc
  3730. * src/SegmentMan.h
  3731. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3732. Typedefed cuid_t as int32_t in Command.h
  3733. * src/CUIDCounter.h
  3734. * src/Command.cc
  3735. * src/Command.h
  3736. * src/DownloadEngine.cc
  3737. * src/DownloadEngine.h
  3738. * src/PeerStat.h
  3739. * src/SegmentMan.cc
  3740. * src/SegmentMan.h
  3741. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3742. Reduced the number of calls to PeerStorage::calculateStat() and
  3743. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3744. transfer rate.
  3745. * src/DefaultBtInteractive.cc
  3746. * src/DefaultBtMessageDispatcher.cc
  3747. * src/DefaultPeerStorage.cc
  3748. * src/DefaultPeerStorage.h
  3749. * src/DownloadCommand.cc
  3750. * src/DownloadEngine.cc
  3751. * src/PeerStorage.h
  3752. * src/SegmentMan.cc
  3753. * src/SegmentMan.h
  3754. * test/MockPeerStorage.h
  3755. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Prepended _dir+"/" after joining path elements in torrent file.
  3757. * src/DefaultBtContext.cc
  3758. * test/DefaultBtContextTest.cc
  3759. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3760. Added missing IndexBtMessageValidator.h
  3761. * src/Makefile.am
  3762. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3763. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3764. Chinese translations. Thank you for contributing our project.
  3765. * po/id.po
  3766. * po/it.po
  3767. * po/ru.po
  3768. * po/uk.po
  3769. * po/zh_CN.po
  3770. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3771. Updated README
  3772. * README
  3773. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3774. Bump up version number to 1.3.0
  3775. * configure.ac
  3776. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3777. Updated doc
  3778. * src/DefaultBtContext.h
  3779. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3780. Slice/joinPath for name of single torrent.
  3781. * src/DefaultBtContext.cc
  3782. * test/DefaultBtContextTest.cc
  3783. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3784. Updated man page: Documented --dry-run and --index-out
  3785. options. Changed the default value of --uri-selector and
  3786. --http-auth-challenge options. Removed --direct-file-mapping
  3787. option. Added example for --index-out
  3788. * doc/aria2c.1.txt
  3789. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3790. Updated TEXT_DRY_RUN
  3791. * src/usage_text.h
  3792. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3793. Changed the default value of --uri-selector option from 'inorder'
  3794. to 'feedback'
  3795. * src/OptionHandlerFactory.cc
  3796. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Included current URI in exception message.
  3798. * src/AbstractCommand.cc
  3799. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Renamed ServerStatURISelector as FeedbackURISelector.
  3801. * src/FeedbackURISelector.cc
  3802. * src/FeedbackURISelector.h
  3803. * src/Makefile.am
  3804. * src/RequestGroupMan.cc
  3805. * src/ServerStatURISelector.cc
  3806. * src/ServerStatURISelector.h
  3807. * test/FeedbackURISelectorTest.cc
  3808. * test/Makefile.am
  3809. * test/ServerStatURISelectorTest.cc
  3810. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3811. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3812. all URIs are tested and their timeout is not reached.
  3813. * src/AdaptiveURISelector.cc
  3814. * src/AdaptiveURISelector.h
  3815. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3816. Changed the default value of --http-auth-challenge option to false.
  3817. * src/OptionHandlerFactory.cc
  3818. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. Reuse URIs when all unused URIs run out.
  3820. * src/OptionHandlerFactory.cc
  3821. * src/RequestGroup.cc
  3822. * src/prefs.cc
  3823. * src/prefs.h
  3824. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3825. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3826. and BtRejectMessage are derived from RangeBtMessage class.
  3827. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3828. derived from IndexBtMessage class. BtChokeMessage,
  3829. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3830. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3831. ZeroBtMessage class.
  3832. * src/AbstractBtMessage.cc
  3833. * src/AbstractBtMessage.h
  3834. * src/BtAllowedFastMessage.cc
  3835. * src/BtAllowedFastMessage.h
  3836. * src/BtAllowedFastMessageValidator.h: Removed
  3837. * src/BtBitfieldMessage.cc
  3838. * src/BtBitfieldMessage.h
  3839. * src/BtCancelMessage.cc
  3840. * src/BtCancelMessage.h
  3841. * src/BtCancelMessageValidator.h: Removed
  3842. * src/BtChokeMessage.cc
  3843. * src/BtChokeMessage.h
  3844. * src/BtExtendedMessage.cc
  3845. * src/BtExtendedMessage.h
  3846. * src/BtHandshakeMessage.cc
  3847. * src/BtHandshakeMessage.h
  3848. * src/BtHaveAllMessage.cc
  3849. * src/BtHaveAllMessage.h
  3850. * src/BtHaveMessage.cc
  3851. * src/BtHaveMessage.h
  3852. * src/BtHaveMessageValidator.h: Removed
  3853. * src/BtHaveNoneMessage.cc
  3854. * src/BtHaveNoneMessage.h
  3855. * src/BtInterestedMessage.cc
  3856. * src/BtInterestedMessage.h
  3857. * src/BtKeepAliveMessage.cc
  3858. * src/BtKeepAliveMessage.h
  3859. * src/BtNotInterestedMessage.cc
  3860. * src/BtNotInterestedMessage.h
  3861. * src/BtPieceMessage.cc
  3862. * src/BtPieceMessage.h
  3863. * src/BtPortMessage.cc
  3864. * src/BtPortMessage.h
  3865. * src/BtRejectMessage.cc
  3866. * src/BtRejectMessage.h
  3867. * src/BtRejectMessageValidator.h: Removed
  3868. * src/BtRequestMessage.cc
  3869. * src/BtRequestMessage.h
  3870. * src/BtRequestMessageValidator.h: Removed
  3871. * src/BtSuggestPieceMessage.cc
  3872. * src/BtSuggestPieceMessage.h
  3873. * src/BtSuggestPieceMessageValidator.h: Removed
  3874. * src/BtUnchokeMessage.cc
  3875. * src/BtUnchokeMessage.h
  3876. * src/DefaultBtMessageFactory.cc
  3877. * src/IndexBtMessage.cc
  3878. * src/IndexBtMessage.h
  3879. * src/IndexBtMessageValidator.h
  3880. * src/Makefile.am
  3881. * src/PeerMessageUtil.cc
  3882. * src/PeerMessageUtil.h
  3883. * src/RangeBtMessage.cc
  3884. * src/RangeBtMessage.h
  3885. * src/RangeBtMessageValidator.h
  3886. * src/SimpleBtMessage.cc
  3887. * src/SimpleBtMessage.h
  3888. * src/ZeroBtMessage.cc
  3889. * src/ZeroBtMessage.h
  3890. * test/BtRequestMessageTest.cc
  3891. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3892. Reverted usage_text.h to r1093 to avoid to lose translated
  3893. messages.
  3894. * src/usage_text.h
  3895. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3896. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3897. declared as non-const previously is now const and defined in class
  3898. definition.
  3899. * src/AbstractBtMessage.cc
  3900. * src/AbstractBtMessage.h
  3901. * src/BtAllowedFastMessage.cc
  3902. * src/BtAllowedFastMessage.h
  3903. * src/BtBitfieldMessage.h
  3904. * src/BtCancelMessage.cc
  3905. * src/BtCancelMessage.h
  3906. * src/BtChokeMessage.cc
  3907. * src/BtChokeMessage.h
  3908. * src/BtExtendedMessage.cc
  3909. * src/BtExtendedMessage.h
  3910. * src/BtHandshakeMessage.cc
  3911. * src/BtHandshakeMessage.h
  3912. * src/BtHaveAllMessage.cc
  3913. * src/BtHaveAllMessage.h
  3914. * src/BtHaveMessage.cc
  3915. * src/BtHaveMessage.h
  3916. * src/BtHaveNoneMessage.cc
  3917. * src/BtHaveNoneMessage.h
  3918. * src/BtInterestedMessage.cc
  3919. * src/BtInterestedMessage.h
  3920. * src/BtKeepAliveMessage.cc
  3921. * src/BtKeepAliveMessage.h
  3922. * src/BtMessage.h
  3923. * src/BtNotInterestedMessage.cc
  3924. * src/BtNotInterestedMessage.h
  3925. * src/BtPieceMessage.h
  3926. * src/BtPortMessage.cc
  3927. * src/BtPortMessage.h
  3928. * src/BtRejectMessage.cc
  3929. * src/BtRejectMessage.h
  3930. * src/BtRequestMessage.cc
  3931. * src/BtRequestMessage.h
  3932. * src/BtSuggestPieceMessage.cc
  3933. * src/BtSuggestPieceMessage.h
  3934. * src/BtUnchokeMessage.cc
  3935. * src/BtUnchokeMessage.h
  3936. * src/SimpleBtMessage.cc
  3937. * src/SimpleBtMessage.h
  3938. * test/MockBtMessage.h
  3939. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3940. Use FileEntry::exists()
  3941. * src/MultiDiskAdaptor.cc
  3942. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3943. Added exists()
  3944. * src/FileEntry.cc
  3945. * src/FileEntry.h
  3946. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3947. Added missing prefix dir.
  3948. * src/download_helper.cc
  3949. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3950. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3951. * src/CopyDiskAdaptor.cc: Removed
  3952. * src/CopyDiskAdaptor.h: Removed
  3953. * src/DefaultPieceStorage.cc
  3954. * src/Makefile.am
  3955. * src/OptionHandlerFactory.cc
  3956. * src/prefs.cc
  3957. * src/prefs.h
  3958. * src/usage_text.h
  3959. * test/CopyDiskAdaptorTest.cc: Removed
  3960. * test/Makefile.am
  3961. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3962. Rewritten isSameFileBeingDownloaded()
  3963. * src/RequestGroupMan.cc
  3964. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3965. Removed getName() from DownloadContext. getName() is declared in
  3966. BtContext.
  3967. * src/BtContext.h
  3968. * src/DownloadContext.h
  3969. * src/SingleFileDownloadContext.cc
  3970. * src/SingleFileDownloadContext.h
  3971. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3972. in AbstractSingleDiskAdaptor.
  3973. * src/AbstractSingleDiskAdaptor.h
  3974. * src/DiskAdaptor.h
  3975. * src/MultiDiskAdaptor.h
  3976. * src/RequestGroup.cc
  3977. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3978. MultiDiskAdaptor.
  3979. * src/DefaultPieceStorage.cc
  3980. * src/MultiDiskAdaptor.cc
  3981. * src/MultiDiskAdaptor.h
  3982. * test/MultiDiskAdaptorTest.cc
  3983. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3984. FileEntry::getPath() contains store(top level) directory to
  3985. simplify path handling operation. In the previous implementation,
  3986. store directory is concatenated to FileEntry::getPath() in
  3987. DownloadContext.
  3988. * src/BtDependency.cc
  3989. * src/BtPostDownloadHandler.cc
  3990. * src/CopyDiskAdaptor.cc
  3991. * src/DefaultBtContext.cc
  3992. * src/DirectDiskAdaptor.cc
  3993. * src/FileEntry.cc
  3994. * src/FileEntry.h
  3995. * src/FtpNegotiationCommand.cc
  3996. * src/HttpResponse.cc
  3997. * src/HttpResponseCommand.cc
  3998. * src/Metalink2RequestGroup.cc
  3999. * src/MultiDiskAdaptor.cc
  4000. * src/MultiDiskAdaptor.h
  4001. * src/MultiFileAllocationIterator.cc
  4002. * src/RequestGroup.cc
  4003. * src/SingleFileDownloadContext.cc
  4004. * src/SingleFileDownloadContext.h
  4005. * src/download_helper.cc
  4006. * test/BtDependencyTest.cc
  4007. * test/CopyDiskAdaptorTest.cc
  4008. * test/DefaultBtContextTest.cc
  4009. * test/DefaultBtProgressInfoFileTest.cc
  4010. * test/DirectDiskAdaptorTest.cc
  4011. * test/DownloadHelperTest.cc
  4012. * test/FileEntryTest.cc
  4013. * test/MultiDiskAdaptorTest.cc
  4014. * test/MultiFileAllocationIteratorTest.cc
  4015. * test/RequestGroupTest.cc
  4016. * test/SingleFileDownloadContextTest.cc
  4017. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4018. Fixed compiler warning
  4019. * src/download_helper.cc
  4020. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4021. Throw exception if same infohash torrent is now downloading.
  4022. * src/RequestGroup.cc
  4023. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4024. Added --dry-run option. In this mode, aria2 just checks whether
  4025. the remote file is available and doesn't download data. This
  4026. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4027. are canceled in this mode.
  4028. * src/FtpNegotiationCommand.cc
  4029. * src/HttpResponseCommand.cc
  4030. * src/HttpResponseCommand.h
  4031. * src/OptionHandlerFactory.cc
  4032. * src/RequestGroup.cc
  4033. * src/RequestGroupMan.cc
  4034. * src/prefs.cc
  4035. * src/prefs.h
  4036. * src/usage_text.h
  4037. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4038. Fixed compiler waring
  4039. * test/UriListParserTest.cc
  4040. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4041. Parse options in -i list using OptionParser.
  4042. * src/UriListParser.cc
  4043. * src/UriListParser.h
  4044. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4045. Don't reset URI in retry to avoid additional round trips because
  4046. of redirects.
  4047. * src/AbstractCommand.cc
  4048. * src/OptionHandlerFactory.cc
  4049. * src/prefs.cc
  4050. * src/prefs.h
  4051. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4052. Declared hide() in OptionHandler.
  4053. * src/NameMatchOptionHandler.h
  4054. * src/OptionHandler.h
  4055. * src/OptionHandlerImpl.h
  4056. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4057. Updated doc
  4058. * src/Peer.h
  4059. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4060. Added log message in setStatusInternal()
  4061. * src/ServerStat.cc
  4062. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4063. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4064. effectively exclude failed server.
  4065. * src/AbstractCommand.cc
  4066. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4067. Added --index-out option to specify each file path for torrent.
  4068. Here index shown in --show-files option is used to specify which
  4069. file path should be altered. For example, to change the file path
  4070. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4071. option multiple times: --index-out=1=aria2.tar.bz2
  4072. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4073. available. This option can be specified in -i list.
  4074. * src/DefaultBtContext.cc
  4075. * src/DefaultBtContext.h
  4076. * src/MultiDiskAdaptor.cc
  4077. * src/MultiDiskAdaptor.h
  4078. * src/MultiFileAllocationIterator.cc
  4079. * src/OptionHandlerFactory.cc
  4080. * src/OptionHandlerImpl.h
  4081. * src/Util.cc
  4082. * src/Util.h
  4083. * src/download_helper.cc
  4084. * src/prefs.cc
  4085. * src/prefs.h
  4086. * src/usage_text.h
  4087. * test/DefaultBtContextTest.cc
  4088. * test/MultiDiskAdaptorTest.cc
  4089. * test/MultiFileAllocationIteratorTest.cc
  4090. * test/UtilTest.cc
  4091. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4092. Use Util::pathJoin()
  4093. * src/MetalinkParserController.cc
  4094. * test/test.xml
  4095. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4096. Use Util::pathJoin()
  4097. * src/DefaultBtContext.cc
  4098. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4099. Added Util::pathJoin()
  4100. * src/Util.h
  4101. * test/UtilTest.cc
  4102. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4103. Applied basename function to remove directory element in
  4104. content-disposition value.
  4105. Return empty string if content-disposition value is ".." or ".".
  4106. * src/Util.cc
  4107. * test/UtilTest.cc
  4108. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4109. Added --max-overall-download-limit in man page.
  4110. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4111. * doc/aria2c.1.txt
  4112. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4113. Added --max-overall-download-limit option. Now --max-upload-limit
  4114. option is not ignored when --max-overall-upload-limit option has
  4115. non-zero value. aria2 checks download(upload) speed in the order:
  4116. first checks overall speed limit and if it is not exceeded, then
  4117. checks speed limit per download. Thus you can specify both
  4118. value. For example, set --max-overall-download-limit=1M and
  4119. --max-download-limit=500K to prevent from one download from eating
  4120. all overall speed limit.
  4121. * src/DefaultBtInteractive.cc
  4122. * src/DefaultBtInteractive.h
  4123. * src/DefaultBtMessageDispatcher.cc
  4124. * src/DefaultBtMessageDispatcher.h
  4125. * src/DownloadCommand.cc
  4126. * src/DownloadCommand.h
  4127. * src/FtpNegotiationCommand.cc
  4128. * src/HttpResponseCommand.cc
  4129. * src/OptionHandlerFactory.cc
  4130. * src/PeerInteractionCommand.cc
  4131. * src/RequestGroup.cc
  4132. * src/RequestGroup.h
  4133. * src/RequestGroupMan.cc
  4134. * src/RequestGroupMan.h
  4135. * src/prefs.cc
  4136. * src/prefs.h
  4137. * src/usage_text.h
  4138. * test/DefaultBtMessageDispatcherTest.cc
  4139. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4140. Documented select-file option in Input File section.
  4141. Documented --http-auth-challenge option.
  4142. * doc/aria2c.1.txt
  4143. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4144. Now select-file can be specified in the uri list(-i list).
  4145. * src/BtContext.cc
  4146. * src/BtContext.h
  4147. * src/RequestGroup.cc
  4148. * src/Sequence.h
  4149. * src/download_helper.cc
  4150. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4151. Made the upper value of --max-concurrent-downloads options unlimited.
  4152. * src/OptionHandlerFactory.cc
  4153. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4154. Fixed the bug that disk writer is not created even if it shares
  4155. same piece with the preceding file if the length of previous file
  4156. is 0.
  4157. * src/MultiDiskAdaptor.cc
  4158. * test/MultiDiskAdaptorTest.cc
  4159. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4160. In BitTorrent, Open files in read-only mode for hash check. After
  4161. that, re-open file in read/write mode only when the download is
  4162. not finished.
  4163. * src/AbstractDiskWriter.cc
  4164. * src/AbstractDiskWriter.h
  4165. * src/AbstractSingleDiskAdaptor.cc
  4166. * src/AbstractSingleDiskAdaptor.h
  4167. * src/BtCheckIntegrityEntry.cc
  4168. * src/DiskAdaptor.h
  4169. * src/DiskWriter.h
  4170. * src/MultiDiskAdaptor.cc
  4171. * src/MultiDiskAdaptor.h
  4172. * src/RequestGroup.cc
  4173. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4174. Added --http-auth-challenge option. If it is set to true(by
  4175. default), aria2 sends HTTP authorization header only when it is
  4176. requested by the server. If false is set, then authorization
  4177. header is always sent to the server. This is useful for servers
  4178. that don't respond 401 code when authentication is required.
  4179. There is an exception: if username and password are embedded in
  4180. URI, authorization header is always sent to the server regardless
  4181. of this option.
  4182. * src/AuthConfigFactory.cc
  4183. * src/HttpSkipResponseCommand.cc
  4184. * src/OptionHandlerFactory.cc
  4185. * src/prefs.cc
  4186. * src/prefs.h
  4187. * src/usage_text.h
  4188. * test/AuthConfigFactoryTest.cc
  4189. * test/HttpRequestTest.cc
  4190. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4191. * Release 1.2.0
  4192. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4193. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4194. Thanks to all translators.
  4195. * po/es.po
  4196. * po/ja.po
  4197. * po/ru.po
  4198. * po/uk.po
  4199. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4200. Call deleteSocketForReadCheck() before socket is closed.
  4201. * src/HttpListenCommand.cc
  4202. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4203. Defined virtual destructor for BObject.
  4204. * src/bencode.h
  4205. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4206. Rewritten BDE to make it efficient.
  4207. * src/bencode.cc
  4208. * src/bencode.h
  4209. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4210. Removed function throw list.
  4211. * src/bencode.cc
  4212. * src/bencode.h
  4213. * test/BencodeTest.cc
  4214. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4215. Enclosed all URLs in double quotes in command-line examples.
  4216. * doc/aria2c.1.txt
  4217. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4218. Updated reference/see also section.
  4219. * README
  4220. * doc/aria2c.1.txt
  4221. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4222. Reorganized man page based on man man-pages.
  4223. * doc/aria2c.1.txt
  4224. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4225. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4226. because same documents are available in man page. Added
  4227. References section.
  4228. * README
  4229. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4230. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4231. PERFORMANCE PROFILE section.
  4232. * doc/aria2c.1.txt
  4233. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4234. Rewritten the section for configuration file.
  4235. * README
  4236. * doc/aria2c.1.txt
  4237. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4238. Fixed the segmentation fault during execution of choking algorithm
  4239. in leecher state because of broken compare operator
  4240. implementation.
  4241. * src/BtLeecherStateChoke.cc
  4242. * src/BtLeecherStateChoke.h
  4243. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Open file in binary mode.
  4245. * src/CookieStorage.cc
  4246. * src/DHTSetup.cc
  4247. * src/DHTUtil.cc
  4248. * src/Netrc.cc
  4249. * src/NsCookieParser.cc
  4250. * src/ProtocolDetector.cc
  4251. * src/RequestGroupMan.cc
  4252. * src/Signature.cc
  4253. * src/bencode.cc
  4254. * src/download_helper.cc
  4255. * src/option_processing.cc
  4256. * test/CookieParserTest.cc
  4257. * test/DefaultBtProgressInfoFileTest.cc
  4258. * test/FileTest.cc
  4259. * test/GZipDecoderTest.cc
  4260. * test/RequestGroupManTest.cc
  4261. * test/SignatureTest.cc
  4262. * test/SingleFileAllocationIteratorTest.cc
  4263. * test/UriListParserTest.cc
  4264. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4265. Removed operator[] because it is ambiguous with built-in []
  4266. operator.
  4267. * src/array_fun.h
  4268. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4269. Fixed compile error
  4270. * src/OptionParser.cc
  4271. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4272. Added missing call to arrayWrapperConst
  4273. * test/array_funTest.cc
  4274. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4275. Use array_wrapper instead of array_ptr.
  4276. * src/DHTRoutingTableDeserializer.cc
  4277. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4278. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4279. * src/array_fun.h
  4280. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4281. Added array_wrapper template.
  4282. * src/array_fun.h
  4283. * test/array_funTest.cc
  4284. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4285. Use operator T* of array_ptr.
  4286. * src/OptionParser.cc
  4287. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4288. Use localhost instead of 127.0.0.1
  4289. * test/FtpConnectionTest.cc
  4290. * test/MSEHandshakeTest.cc
  4291. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4292. Added operator T*
  4293. * src/array_fun.h
  4294. * test/array_funTest.cc
  4295. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Use dynamically allocated char array to detect memory access
  4297. violation.
  4298. * src/DHTRoutingTableDeserializer.cc
  4299. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4300. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4301. defined.
  4302. * src/PeerMessageUtil.cc
  4303. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4304. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4305. * configure.ac
  4306. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4307. Added a check to see struct sockaddr_in has sin_len member.
  4308. * configure.ac
  4309. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4310. Fixed buffer overrun.
  4311. * src/DHTRoutingTableDeserializer.cc
  4312. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4313. Added LL for long long int constant.
  4314. * test/FtpConnectionTest.cc
  4315. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4316. Casted to unsigned int to suppress compiler warning on netbsd.
  4317. * src/BtRuntime.h
  4318. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4319. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4320. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4321. type time_t.
  4322. * src/SimpleLogger.cc
  4323. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4324. Added test for FtpConnection::receiveSizeResponse().
  4325. * test/FtpConnectionTest.cc
  4326. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4327. Fix epoll error on the old kernel 2.6.8 or ealier.
  4328. * src/EpollEventPoll.cc
  4329. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4330. Use Util::parseLLInt instead of sscanf for portability. The
  4331. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4332. * src/FtpConnection.cc
  4333. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4334. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4335. block. It should not filter anything.
  4336. * src/BitfieldMan.cc
  4337. * src/ConsoleStatCalc.cc
  4338. * test/BitfieldManTest.cc
  4339. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4340. Fixed the bug that the boolean options that don't take arguments
  4341. don't work.
  4342. * src/OptionHandlerImpl.h
  4343. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4344. Fixed broken selected file BitTorrent download.
  4345. * src/MultiDiskAdaptor.cc
  4346. * test/MultiDiskAdaptorTest.cc
  4347. * test/MultiFileAllocationIteratorTest.cc
  4348. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4349. Fixed #define guard for EpollEventPoll
  4350. * src/EpollEventPoll.h
  4351. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4352. Wait 2 seconds. 1 second is sometimes not enough.
  4353. * test/TimeSeedCriteriaTest.cc
  4354. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4355. Use localhost instead of 127.0.0.1.
  4356. * test/DHTConnectionImplTest.cc
  4357. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4358. Suppressed compiler warning.
  4359. * src/AdaptiveURISelector.cc
  4360. * src/DefaultPieceStorage.cc
  4361. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4362. Defined virtual destructor.
  4363. * src/MetalinkParserState.h
  4364. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4365. Give NULL for second argument of getaddrinfo instead of "0".
  4366. * src/NameResolver.cc
  4367. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4368. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4369. included strptime doesn't parse data for this format.
  4370. * src/FtpConnection.cc
  4371. * test/FtpConnectionTest.cc
  4372. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4373. Removed tests giving -1 for unsigned argument.
  4374. * test/SingleFileDownloadContextTest.cc
  4375. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4376. Don't use sha256 in tests because it might not be supported by the
  4377. SSL library.
  4378. * test/MetalinkProcessorTest.cc
  4379. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4380. Removed tests giving -1 for unsigned argument.
  4381. * test/AlphaNumberDecoratorTest
  4382. * test/BitfieldManTest.cc
  4383. * test/DefaultBtContextTest.cc
  4384. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4385. Fixed compile error without libcares when epoll is available.
  4386. * src/EpollEventPoll.cc
  4387. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4388. Included fstream instead of iostream.
  4389. * test/SignatureTest.cc
  4390. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4391. Removed #include <algorithm>
  4392. * test/RequestGroupTest.cc
  4393. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4394. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4395. using RequestGroup::extractURIResult().
  4396. * src/AdaptiveURISelector.cc
  4397. * src/RequestGroup.cc
  4398. * src/RequestGroup.h
  4399. * test/RequestGroupTest.cc
  4400. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4401. Added tests for array_ptr.
  4402. * test/array_funTest.cc
  4403. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4404. Don't send ip parameter to a tracker if ip parameter is empty
  4405. string.
  4406. * src/DefaultBtAnnounce.cc
  4407. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4408. Adjusted line feed.
  4409. * src/version_usage.cc
  4410. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4411. Print tags, possible values when OptionHandlerException is caught.
  4412. * src/option_processing.cc
  4413. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4414. Changed the message for FatalException.
  4415. * src/OptionParser.cc
  4416. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4417. Documented --bt-external-ip option in man page. Updated man pages
  4418. for --proxy-method option.
  4419. * doc/aria2c.1.txt
  4420. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4421. Use GET method for FTP via HTTP proxy.
  4422. * src/FtpInitiateConnectionCommand.cc
  4423. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4424. Changed the default value of --proxy-method option from 'tunnel'
  4425. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4426. option.
  4427. * src/AbstractCommand.cc
  4428. * src/AbstractCommand.h
  4429. * src/FtpInitiateConnectionCommand.cc
  4430. * src/HttpDownloadCommand.cc
  4431. * src/HttpInitiateConnectionCommand.cc
  4432. * src/HttpInitiateConnectionCommand.h
  4433. * src/OptionHandlerFactory.cc
  4434. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4435. Initialized _logger
  4436. * src/SelectEventPoll.cc
  4437. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4438. Defined a copy constructor for the same type.
  4439. * src/SharedHandle.h
  4440. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4441. Added OptionParser::parseArg() which internally uses getopt_long
  4442. to parse command-line options. All command-line options are now
  4443. configured by OptionHandler. No manual editing of struct option*
  4444. is required any more.
  4445. * src/NameMatchOptionHandler.h
  4446. * src/OptionHandler.h
  4447. * src/OptionHandlerFactory.cc
  4448. * src/OptionHandlerImpl.h
  4449. * src/OptionParser.cc
  4450. * src/OptionParser.h
  4451. * src/array_fun.h
  4452. * src/main.cc
  4453. * src/option_processing.cc
  4454. * test/OptionHandlerTest.cc
  4455. * test/OptionParserTest.cc
  4456. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4457. Fixed configure error with --disable-epoll
  4458. * configure.ac
  4459. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4460. Fixed compile error when HAVE_EPOLL is not defined.
  4461. Fixed linker error on bigendian systems.
  4462. * src/SocketCore.cc
  4463. * src/SocketCore.h
  4464. * test/DefaultBtProgressInfoFileTest.cc
  4465. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4466. Added --bt-external-ip option. You can specify the external IP
  4467. address to report to a BitTorrent tracker. Although this function
  4468. is named 'external', it can accept any kind of IP addresses.
  4469. * src/DefaultBtAnnounce.cc
  4470. * src/OptionHandlerFactory.cc
  4471. * src/option_processing.cc
  4472. * src/prefs.cc
  4473. * src/prefs.h
  4474. * src/usage_text.h
  4475. * test/DefaultBtAnnounceTest.cc
  4476. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4477. Extracted the algorithm to find the longest incremental sequence
  4478. as max_sequence template.
  4479. * src/LongestSequencePieceSelector.cc
  4480. * src/a2algo.h
  4481. * test/Makefile.am
  4482. * test/a2algoTest.cc
  4483. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4484. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4485. * src/usage_text.h
  4486. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4487. Updated doc for --uri-selector, --http-server-listen-port and
  4488. --enable-http-server option. Documented --event-poll option.
  4489. * doc/aria2c.1.txt
  4490. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4491. Updated doc for --enable-http-server.
  4492. * src/usage_text.h
  4493. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4494. Documented --http-server-listen-port and --enable-http-server in
  4495. man page.
  4496. * doc/aria2c.1.txt
  4497. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4498. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4499. translations. Thanks to all translators.
  4500. * po/es.po
  4501. * po/id.po
  4502. * po/it.po
  4503. * po/ru.po
  4504. * po/uk.po
  4505. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4506. Bump up version number to 1.2.0
  4507. * configure.ac
  4508. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4509. BtContext::getAnnounceTiers() now returns const reference.
  4510. * src/BtContext.h
  4511. * src/DefaultBtContext.cc
  4512. * src/DefaultBtContext.h
  4513. * test/MockBtContext.h
  4514. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Change the number of retries for tracker request based on the
  4516. number of available tracker in a torrent file.
  4517. * src/TrackerWatcherCommand.cc
  4518. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4519. Added _maxTries property to RequestGroup and assign the option
  4520. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4521. RequestGroup::getMaxTries() instead of
  4522. Option::getAsInt(PREF_MAX_TRIES).
  4523. * src/AbstractCommand.cc
  4524. * src/RequestGroup.cc
  4525. * src/RequestGroup.h
  4526. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4527. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4528. Mandriva. I modified the patch: make RequestGroup have the
  4529. timeout value and AdaptiveURISelector directly modifies that
  4530. value.
  4531. * src/AbstractCommand.cc
  4532. * src/AdaptiveURISelector.cc
  4533. * src/AdaptiveURISelector.h
  4534. * src/FtpNegotiationCommand.cc
  4535. * src/RequestGroup.cc
  4536. * src/RequestGroup.h
  4537. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4538. Fixed compiler warning
  4539. * test/IteratableChecksumValidatorTest.cc
  4540. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4541. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4542. integrated downloads. This PieceSelector subclass finds the
  4543. longest continuous sequence in the available missing pieces and
  4544. selects the last index of such sequence. This makes HTTP/FTP
  4545. connections less interrupted by the pieces obtained by BitTorrent
  4546. peers.
  4547. * src/DefaultPieceStorage.cc
  4548. * src/DefaultPieceStorage.h
  4549. * src/LongestSequencePieceSelector.cc
  4550. * src/LongestSequencePieceSelector.h
  4551. * src/Makefile.am
  4552. * src/PieceSelector.h
  4553. * src/RarestPieceSelector.h
  4554. * src/RequestGroup.cc
  4555. * test/BtDependencyTest.cc
  4556. * test/DefaultPieceStorageTest.cc
  4557. * test/IteratableChecksumValidatorTest.cc
  4558. * test/LongestSequencePieceSelectorTest.cc
  4559. * test/Makefile.am
  4560. * test/SegmentManTest.cc
  4561. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4562. Fixed the bug that the average speed is wrong in
  4563. http/ftp/BitTorrent integrated download. Only the download bytes
  4564. in BitTorrent were considered.
  4565. * src/RequestGroup.cc
  4566. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4567. Choose port for BitTorrent/DHT randomly from the specified range.
  4568. * src/DHTConnectionImpl.cc
  4569. * src/PeerListenCommand.cc
  4570. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4571. Send HTTP Authorization header only if it is requested by the
  4572. server(response 401). There are some exceptions. The authorization
  4573. header for proxy is always sent if it is available without request
  4574. by the server. If username/password is specified in the URI, it
  4575. is immediately sent to the server without request by the server.
  4576. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4577. SharedHandle<AuthConfig>().
  4578. NetrcAuthResolver::resolveAuthConfig() returns
  4579. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4580. * src/AbstractAuthResolver.cc
  4581. * src/AbstractProxyRequestCommand.cc
  4582. * src/AuthConfigFactory.cc
  4583. * src/AuthConfigFactory.h
  4584. * src/HttpConnection.cc
  4585. * src/HttpRequest.cc
  4586. * src/HttpRequest.h
  4587. * src/HttpResponse.cc
  4588. * src/HttpResponseCommand.cc
  4589. * src/HttpSkipResponseCommand.cc
  4590. * test/AuthConfigFactoryTest.cc
  4591. * test/HttpRequestTest.cc
  4592. * test/HttpResponseTest.cc
  4593. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4594. Remove leading "--" from help keyword and a substring after "="
  4595. from help keyword, so that one can query options by '-h--max-' or
  4596. '-hmax-peers=10'.
  4597. * src/option_processing.cc
  4598. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4599. Rewritten PStringVisitor and its implementation.
  4600. * src/PStringBuildVisitor.cc
  4601. * src/PStringBuildVisitor.h
  4602. * src/PStringDatum.h
  4603. * src/PStringNumLoop.h
  4604. * src/PStringSegment.cc
  4605. * src/PStringSegment.h
  4606. * src/PStringSelect.h
  4607. * src/PStringVisitor.h
  4608. * src/download_helper.cc
  4609. * test/PStringBuildVisitorTest.cc
  4610. * test/ParameterizedStringParserTest.cc
  4611. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4612. Persist connection between the built-in HTTP server and a client
  4613. if a client supports keep-alive. Fixed the bug that aria2 exits
  4614. when the HTTP server receives EOF from a client.
  4615. * src/HttpServer.cc
  4616. * src/HttpServer.h
  4617. * src/HttpServerCommand.cc
  4618. * src/HttpServerCommand.h
  4619. * src/HttpServerResponseCommand.cc
  4620. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. Added experimental built-in HTTP server. Currently, when a client
  4622. accesses to the server, it responds with the current download
  4623. progress. By default, it is disabled. To enable the server, give
  4624. --enable-http-server option. To change the default port number
  4625. for the server to listen to, use --http-server-listen-port option.
  4626. The response HTML is very simple and refreshes it self each 1
  4627. second. Because of this refresh, you see flicker in normal web
  4628. browser such as Firefox. I recommend to use console-based browser
  4629. such as elinks, w3m. To connect to the server, run 'elinks
  4630. http://localhost:6800/' while running aria2. Please replace port
  4631. number '6800'(which is default) with your preference.
  4632. * src/DownloadEngineFactory.cc
  4633. * src/HttpHeader.cc
  4634. * src/HttpHeader.h
  4635. * src/HttpHeaderProcessor.cc
  4636. * src/HttpHeaderProcessor.h
  4637. * src/HttpListenCommand.cc
  4638. * src/HttpListenCommand.h
  4639. * src/HttpServer.cc
  4640. * src/HttpServer.h
  4641. * src/HttpServerCommand.cc
  4642. * src/HttpServerCommand.h
  4643. * src/HttpServerResponseCommand.cc
  4644. * src/HttpServerResponseCommand.h
  4645. * src/Makefile.am
  4646. * src/OptionHandlerFactory.cc
  4647. * src/Util.cc
  4648. * src/Util.h
  4649. * src/help_tags.h
  4650. * src/option_processing.cc
  4651. * src/prefs.cc
  4652. * src/prefs.h
  4653. * src/usage_text.h
  4654. * test/HttpHeaderProcessorTest.cc
  4655. * test/UtilTest.cc
  4656. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4657. Removed.
  4658. * src/CheckIntegrityMan.cc
  4659. * src/FileAllocationMan.cc
  4660. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4661. Made (piece) hash check sequential for each RequestGroup because
  4662. simultaneous hash check is slower than sequential execution.
  4663. * src/CheckIntegrityCommand.cc
  4664. * src/CheckIntegrityDispatcherCommand.cc
  4665. * src/CheckIntegrityDispatcherCommand.h
  4666. * src/CheckIntegrityMan.h
  4667. * src/ConsoleStatCalc.cc
  4668. * src/DownloadCommand.cc
  4669. * src/DownloadEngine.cc
  4670. * src/DownloadEngine.h
  4671. * src/DownloadEngineFactory.cc
  4672. * src/Makefile.am
  4673. * src/Makefile.in
  4674. * src/RequestGroup.cc
  4675. * src/StatCalc.h
  4676. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4677. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4678. SequentialDispatcherCommand.
  4679. * src/FileAllocationDispatcherCommand.cc
  4680. * src/SequentialDispatcherCommand.h
  4681. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4682. Rewritten FileAllocationDispatcherCommand using brand new
  4683. SequentialDispatcherCommand.
  4684. * src/DownloadEngineFactory.cc
  4685. * src/FileAllocationCommand.cc
  4686. * src/FileAllocationDispatcherCommand.cc
  4687. * src/FileAllocationDispatcherCommand.h
  4688. * src/Makefile.am
  4689. * src/SequentialDispatcherCommand.h
  4690. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4691. Replaced FileAllocationMan with
  4692. SequentialPicker<FileAllocationEntry>.
  4693. * src/BtCheckIntegrityEntry.cc
  4694. * src/ConsoleStatCalc.cc
  4695. * src/DownloadEngine.cc
  4696. * src/DownloadEngine.h
  4697. * src/DownloadEngineFactory.cc
  4698. * src/FileAllocationCommand.cc
  4699. * src/FileAllocationDispatcherCommand.cc
  4700. * src/FileAllocationMan.h
  4701. * src/Makefile.am
  4702. * src/SequentialPicker.h
  4703. * src/StatCalc.h
  4704. * src/StreamCheckIntegrityEntry.cc
  4705. * test/Makefile.am
  4706. * test/SequentialPickerTest.cc
  4707. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4708. Added doc for adaptive URI selector.
  4709. * doc/aria2c.1.txt
  4710. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4711. Added doc for adaptive URI selector.
  4712. * src/usage_text.h
  4713. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4714. Added doc for --bt-max-peers option.
  4715. * doc/aria2c.1.txt
  4716. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4717. Added doc for --bt-hash-check-seed option.
  4718. * doc/aria2c.1.txt
  4719. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4720. Documented exit codes.
  4721. * doc/aria2c.1.txt
  4722. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4723. Added --bt-max-peers option to specify the maximum number of peers
  4724. per torrent. 0 means unlimited number of peers.
  4725. * src/ActivePeerConnectionCommand.cc
  4726. * src/BtRuntime.h
  4727. * src/DefaultPeerStorage.cc
  4728. * src/DefaultPeerStorage.h
  4729. * src/OptionHandlerFactory.cc
  4730. * src/RequestGroup.cc
  4731. * src/option_processing.cc
  4732. * src/prefs.cc
  4733. * src/prefs.h
  4734. * src/usage_text.h
  4735. * test/DefaultPeerStorageTest.cc
  4736. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4737. Added --bt-hash-check-seed option. If true is given to this
  4738. option, after hash check using --check-integrity option and file
  4739. is complete, continue to seed file. If you want to check file and
  4740. download it only when it is damaged or incomplete, set this option
  4741. to false. This option has effect only on BitTorrent download.
  4742. The default value is true(This is the same behavior with the
  4743. previous release).
  4744. * src/BtCheckIntegrityEntry.cc
  4745. * src/OptionHandlerFactory.cc
  4746. * src/option_processing.cc
  4747. * src/prefs.cc
  4748. * src/prefs.h
  4749. * src/usage_text.h
  4750. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4751. Updated copyright year.
  4752. * src/version_usage.cc
  4753. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4754. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4755. * doc/aria2c.1.txt
  4756. * src/usage_text.h
  4757. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4758. Made the max value of split option unlimited.
  4759. * doc/aria2c.1.txt
  4760. * src/OptionHandlerFactory.cc
  4761. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4762. Fixed compile warning/error.
  4763. * src/DownloadResult.h
  4764. * src/HttpDownloadCommand.cc
  4765. * src/ServerStat.cc
  4766. * test/RequestGroupTest.cc
  4767. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4768. Added --event-poll option to select the method for polling events.
  4769. The available methods are "select" and "epoll". "epoll" is
  4770. available on Linux only. The earlier release has the compile
  4771. option to choose from these methods.
  4772. * configure.ac
  4773. * src/RequestGroupMan.cc
  4774. * src/OptionHandlerFactory.cc
  4775. * src/EpollEventPoll.h
  4776. * src/StreamFileAllocationEntry.cc
  4777. * src/a2io.h
  4778. * src/SelectEventPoll.h
  4779. * src/option_processing.cc
  4780. * src/prefs.h
  4781. * src/EpollEventPoll.cc
  4782. * src/EventPoll.h
  4783. * src/SocketCore.h
  4784. * src/Makefile.am
  4785. * src/main.cc
  4786. * src/DownloadEngine.h
  4787. * src/SelectEventPoll.cc
  4788. * src/DownloadEngine.cc
  4789. * src/SocketCore.cc
  4790. * src/DownloadEngineFactory.cc
  4791. * src/Makefile.in
  4792. * src/prefs.cc
  4793. * src/usage_text.h
  4794. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4795. Included RecoverableException.h from main.cc
  4796. * src/main.cc
  4797. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4798. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4799. now returns last error encountered in the HTTP/FTP downloads as a
  4800. exit status value. If all downloads finished successfully, aria2
  4801. returns 0. The error code is defined in src/DownloadResult.h.
  4802. The error occurred in the download currently in progress is not
  4803. reported as a last error. If no error has encountered but there
  4804. are in progress or waiting downloads, aria2 returns 7.
  4805. * src/AbstractCommand.cc
  4806. * src/DlAbortEx.h
  4807. * src/DlRetryEx.h
  4808. * src/DownloadCommand.cc
  4809. * src/DownloadFailureException.h
  4810. * src/DownloadResult.h
  4811. * src/FtpNegotiationCommand.cc
  4812. * src/HttpSkipResponseCommand.cc
  4813. * src/Makefile.am
  4814. * src/MultiUrlRequestInfo.cc
  4815. * src/MultiUrlRequestInfo.h
  4816. * src/RecoverableException.h
  4817. * src/RequestGroup.cc
  4818. * src/RequestGroup.h
  4819. * src/RequestGroupMan.cc
  4820. * src/RequestGroupMan.h
  4821. * src/URIResult.cc
  4822. * src/URIResult.h
  4823. * src/main.cc
  4824. * src/option_processing.cc
  4825. * test/RequestGroupTest.cc
  4826. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4827. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4828. patch adds AdaptiveURISelector, which selects one of the bests
  4829. mirrors for first and reserved connections. For supplementary
  4830. ones, it returns mirrors which has not been tested yet, and if
  4831. each of them already tested, returns mirrors which has to be
  4832. tested again. Otherwise, it doesn't return anymore mirrors.
  4833. * src/AdaptiveURISelector.cc
  4834. * src/AdaptiveURISelector.h
  4835. * src/FtpNegotiationCommand.cc
  4836. * src/HttpResponseCommand.cc
  4837. * src/Makefile.am
  4838. * src/Makefile.in
  4839. * src/OptionHandlerFactory.cc
  4840. * src/RequestGroup.cc
  4841. * src/RequestGroup.h
  4842. * src/RequestGroupMan.cc
  4843. * src/ServerStat.cc
  4844. * src/ServerStat.h
  4845. * src/ServerStatMan.cc
  4846. * src/SpeedCalc.cc
  4847. * src/URISelector.h
  4848. * src/prefs.cc
  4849. * src/prefs.h
  4850. * test/RequestGroupManTest.cc
  4851. * test/ServerStatManTest.cc
  4852. * test/ServerStatTest.cc
  4853. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4854. Fixed unit test error.
  4855. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4856. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4857. * Release 1.1.2
  4858. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4859. Updated Russian translation. Thanks to the translators.
  4860. * po/ru.po
  4861. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4862. Added the description of --use-head option to man page.
  4863. * doc/aria2c.1.txt
  4864. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4865. Bump up version number to 1.1.2
  4866. * configure.ac
  4867. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4868. Added --use-head option to toggle whether HEAD method should be
  4869. used in the first HTTP request. By default aria2 uses HEAD method
  4870. as the first request. When the server doesn't recognize HEAD, then
  4871. give aria2 --use-head=false to force aria2 to use GET method
  4872. instead.
  4873. * src/OptionHandlerFactory.cc
  4874. * src/RequestGroupMan.cc
  4875. * src/option_processing.cc
  4876. * src/prefs.cc
  4877. * src/prefs.h
  4878. * src/usage_text.h
  4879. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4880. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4881. message is received before CHOKE message. The old implementation
  4882. doen't clear the use-bit of the piece when recieved REJECT
  4883. message.
  4884. * src/DefaultBtMessageDispatcher.cc
  4885. * test/DefaultBtMessageDispatcherTest.cc
  4886. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4887. * Release 1.1.1
  4888. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4889. Bump up version number to 1.1.1.
  4890. * configure.ac
  4891. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4892. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4893. is printed repeatedly.
  4894. * src/ConsoleStatCalc.cc
  4895. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4896. * Release 1.1.0
  4897. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4898. Added ifdef clause for conditional compilation.
  4899. * src/main.cc
  4900. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4901. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4902. translations. Thanks to all translators.
  4903. * po/ja.po
  4904. * po/ru.po
  4905. * po/uk.po
  4906. * po/zh_CN.po
  4907. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4908. Added the preceding ">>> " before the message "Printing the
  4909. contents of file..." to make the output more readable.
  4910. * src/main.cc
  4911. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4912. Added try-catch block in the loop in showFiles() to continue the
  4913. operation even if the exception occurred in one file.
  4914. * src/main.cc (showFiles)
  4915. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4916. Made messages in showFiles() translatable.
  4917. * po/aria2.pot
  4918. * src/main.cc
  4919. * src/message.h
  4920. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4921. Print the contents of Torrent/Metalink files are printed without
  4922. -T/-M options.
  4923. * src/main.cc
  4924. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4925. Escaped '--' with '\--'
  4926. * README
  4927. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4928. Updated "How to build" section in README. Mentioned about
  4929. --with-ca-bundle compile option.
  4930. * README
  4931. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4932. Bump up version number to 1.1.0.
  4933. * configure.ac
  4934. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4935. Added a note for --dht-listen-port option.
  4936. * doc/aria2c.1.txt
  4937. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4938. Update doc for --realtime-chunk-checksum option.
  4939. * doc/aria2c.1.txt
  4940. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4941. Update doc for --realtime-chunk-checksum option.
  4942. * src/usage_text.h
  4943. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4944. Updated French, Japanese, Russian and Ukrainian translations.
  4945. Thanks to all translators.
  4946. * po/fr.po
  4947. * po/ja.po
  4948. * po/ru.po
  4949. * po/uk.po
  4950. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4951. Renamed aria2c.pot to aria2.pot
  4952. * po/aria2.pot
  4953. * po/aria2c.pot: Removed.
  4954. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4955. Removed MetaEntry.h
  4956. * src/Makefile.am
  4957. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4958. Rename file by appending digits if a local file exists and its
  4959. file size is larger than that of remote file with --continue
  4960. option. The old implementation just throws exception in such case.
  4961. * src/RequestGroup.cc
  4962. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4963. Fixed the bug that download progress summary is not printed in the
  4964. interval specified by the option.
  4965. * src/ConsoleStatCalc.cc
  4966. * src/ConsoleStatCalc.h
  4967. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4968. Fixed compiler warning
  4969. * src/Cookie.cc
  4970. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4971. Fixed the cookie implementation based on RFC2965.
  4972. Now if a value in domain field is not started with dot, then
  4973. prepend dot. That means a cookie with domain=sf.net is sent to
  4974. wiki.sf.net.
  4975. * src/Cookie.cc
  4976. * test/CookieParserTest.cc
  4977. * test/CookieStorageTest.cc
  4978. * test/CookieTest.cc
  4979. * test/NsCookieParserTest.cc
  4980. * test/Sqlite3MozCookieParserTest.cc
  4981. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4982. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4983. is enabled and the server doesn't support keep-alive.
  4984. * src/AbstractCommand.cc
  4985. * src/DownloadCommand.cc
  4986. * src/HttpDownloadCommand.cc
  4987. * src/HttpDownloadCommand.h
  4988. * src/HttpResponseCommand.cc
  4989. * src/Request.cc
  4990. * src/Request.h
  4991. * test/RequestTest.cc
  4992. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4993. Removed Dictionary/List/Data and its related classes.
  4994. * src/BencodeVisitor.cc: Removed.
  4995. * src/BencodeVisitor.h: Removed.
  4996. * src/Data.cc: Removed.
  4997. * src/Data.h: Removed.
  4998. * src/Dictionary.cc: Removed.
  4999. * src/Dictionary.h: Removed.
  5000. * src/List.cc: Removed.
  5001. * src/List.h: Removed.
  5002. * src/Makefile.am
  5003. * src/MetaEntry.h: Removed.
  5004. * src/MetaEntryVisitor.h: Removed.
  5005. * src/MetaFileUtil.cc: Removed.
  5006. * src/MetaFileUtil.h: Removed.
  5007. * test/BencodeVisitorTest.cc: Removed.
  5008. * test/DataTest.cc: Removed.
  5009. * test/DictionaryTest.cc: Removed.
  5010. * test/ListTest.cc: Removed.
  5011. * test/Makefile.am
  5012. * test/MetaFileUtilTest.cc: Removed.
  5013. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5014. Removed include of MetaEntry.h
  5015. * test/DHTMessageTrackerEntryTest.cc
  5016. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5017. Use BDE instead of Dictionary/List/Data.
  5018. * src/AnnounceList.cc
  5019. * src/AnnounceList.h
  5020. * test/AnnounceListTest.cc
  5021. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5022. Use BDE instead of Dictionary/List/Data.
  5023. * src/DHTAbstractMessage.cc
  5024. * src/DHTAbstractMessage.h
  5025. * src/DHTAnnouncePeerMessage.cc
  5026. * src/DHTAnnouncePeerMessage.h
  5027. * src/DHTAnnouncePeerReplyMessage.cc
  5028. * src/DHTAnnouncePeerReplyMessage.h
  5029. * src/DHTFindNodeMessage.cc
  5030. * src/DHTFindNodeMessage.h
  5031. * src/DHTFindNodeReplyMessage.cc
  5032. * src/DHTFindNodeReplyMessage.h
  5033. * src/DHTGetPeersMessage.cc
  5034. * src/DHTGetPeersMessage.h
  5035. * src/DHTGetPeersReplyMessage.cc
  5036. * src/DHTGetPeersReplyMessage.h
  5037. * src/DHTMessageFactory.h
  5038. * src/DHTMessageFactoryImpl.cc
  5039. * src/DHTMessageFactoryImpl.h
  5040. * src/DHTMessageReceiver.cc
  5041. * src/DHTMessageTracker.cc
  5042. * src/DHTMessageTracker.h
  5043. * src/DHTPingMessage.cc
  5044. * src/DHTPingMessage.h
  5045. * src/DHTPingReplyMessage.cc
  5046. * src/DHTPingReplyMessage.h
  5047. * src/DHTQueryMessage.cc
  5048. * src/DHTQueryMessage.h
  5049. * src/DHTResponseMessage.cc
  5050. * src/DHTResponseMessage.h
  5051. * test/DHTAnnouncePeerMessageTest.cc
  5052. * test/DHTAnnouncePeerReplyMessageTest.cc
  5053. * test/DHTFindNodeMessageTest.cc
  5054. * test/DHTFindNodeReplyMessageTest.cc
  5055. * test/DHTGetPeersMessageTest.cc
  5056. * test/DHTGetPeersReplyMessageTest.cc
  5057. * test/DHTMessageFactoryImplTest.cc
  5058. * test/DHTMessageTrackerTest.cc
  5059. * test/DHTPingMessageTest.cc
  5060. * test/DHTPingReplyMessageTest.cc
  5061. * test/MockDHTMessageFactory.h
  5062. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5063. Added tests the case where length < 0 is specified.
  5064. * test/BencodeTest.cc
  5065. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5066. Fixed memory leak in decoderawstring()
  5067. * src/bencode.cc
  5068. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5069. Added missing #ifdef guard. Added uc() function for String and
  5070. removeKey() for Dict.
  5071. * src/bencode.cc
  5072. * src/bencode.h
  5073. * test/BencodeTest.cc
  5074. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5075. Use BDE instead of Dictionary/List/Data.
  5076. * src/HandshakeExtensionMessage.cc
  5077. * src/HandshakeExtensionMessage.h
  5078. * test/HandshakeExtensionMessageTest.cc
  5079. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5080. Added --max-overall-upload-limit option. This option limits the
  5081. overall upload speed. Stated in help message that the existing
  5082. --max-upload-limit option limits the upload speed per each
  5083. torrent. Man page is also updated.
  5084. * doc/aria2c.1.txt
  5085. * src/DefaultBtMessageDispatcher.cc
  5086. * src/DefaultBtMessageDispatcher.h
  5087. * src/OptionHandlerFactory.cc
  5088. * src/PeerInteractionCommand.cc
  5089. * src/option_processing.cc
  5090. * src/prefs.cc
  5091. * src/prefs.h
  5092. * src/usage_text.h
  5093. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5094. Use BDE instead of Dictionary/List/Data classes.
  5095. * src/CompactPeerListProcessor.cc
  5096. * src/CompactPeerListProcessor.h
  5097. * src/DefaultBtAnnounce.cc
  5098. * src/DefaultBtContext.cc
  5099. * src/DefaultBtContext.h
  5100. * src/DefaultPeerListProcessor.cc
  5101. * src/DefaultPeerListProcessor.h
  5102. * src/DelegatingPeerListProcessor.cc
  5103. * src/DelegatingPeerListProcessor.h
  5104. * src/PeerListProcessor.h
  5105. * src/UTPexExtensionMessage.cc
  5106. * src/Util.h
  5107. * src/message.h
  5108. * test/DefaultBtContextTest.cc
  5109. * test/DefaultPeerListProcessorTest.cc
  5110. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5111. Added bencode helper functions and BDE class.
  5112. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5113. * src/Makefile.am
  5114. * src/bencode.cc
  5115. * src/bencode.h
  5116. * test/BencodeTest.cc
  5117. * test/Makefile.am
  5118. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5119. Fixed the bug that bad URI is sent to the tracker when the announe
  5120. URI in torrent file includes query.
  5121. * src/DefaultBtAnnounce.cc
  5122. * test/DefaultBtAnnounceTest.cc
  5123. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5124. Added Option::blank().
  5125. Use !Option::blank(name) instead of Option::defined(name) for
  5126. the options that take filename.
  5127. * src/MultiUrlRequestInfo.cc
  5128. * src/Option.cc
  5129. * src/Option.h
  5130. * src/main.cc
  5131. * src/option_processing.cc
  5132. * test/OptionTest.cc
  5133. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5134. Documented the default value of --check-certificate option in man
  5135. page.
  5136. * doc/aria2c.1.txt
  5137. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5138. Enabled --check-certificate by default. Added compile
  5139. time(configure) option --with-ca-bundle to specify CA bundle.
  5140. Warn if --check-certificate=true and --ca-certificate is not
  5141. specified or loading CA certificate is failed.
  5142. * configure.ac
  5143. * src/MultiUrlRequestInfo.cc
  5144. * src/OptionHandlerFactory.cc
  5145. * src/message.h
  5146. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5147. Mentioned https tag in help option.
  5148. * doc/aria2c.1.txt
  5149. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5150. Added `https' tag to help option category. Added https tag to
  5151. --ca-certificate, --certificate, --check-certificate and
  5152. --private-key option.
  5153. * src/OptionHandlerFactory.cc
  5154. * src/help_tags.h
  5155. * src/option_processing.cc
  5156. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5157. Changed the package name from `aria2c' to `aria2' in order to fix
  5158. the packaging issue in Debian and Fedora. The name of the
  5159. executable is not changed.
  5160. * configure.ac
  5161. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5162. Fixed typos
  5163. * src/usage_text.h
  5164. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5165. Fixed typos and updated doc.
  5166. * README
  5167. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5168. Fixed typos
  5169. * doc/aria2c.1.txt
  5170. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5171. Fixed typos
  5172. * src/usage_text.h
  5173. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5174. Print a message when no files to download.
  5175. * src/download_helper.cc
  5176. * src/main.cc
  5177. * src/message.h
  5178. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5179. RFC3986 complied Percent-Encoding(urlencode).
  5180. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5181. ones.
  5182. * src/Request.cc
  5183. * src/Util.cc
  5184. * src/Util.h
  5185. * test/BtHandshakeMessageTest.cc
  5186. * test/DefaultBtAnnounceTest.cc
  5187. * test/DefaultBtContextTest.cc
  5188. * test/RequestTest.cc
  5189. * test/UtilTest.cc
  5190. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5191. Fixed the bug that prevents aria2 from downloading 0-length files
  5192. via HTTP/FTP.
  5193. * src/DefaultBtContext.cc
  5194. * src/DefaultBtContext.h
  5195. * src/DownloadContext.h
  5196. * src/FtpNegotiationCommand.cc
  5197. * src/HttpResponseCommand.cc
  5198. * src/HttpResponseCommand.h
  5199. * src/RequestGroup.cc
  5200. * src/SingleFileDownloadContext.cc
  5201. * src/SingleFileDownloadContext.h
  5202. * test/BtPostDownloadHandlerTest.cc
  5203. * test/MetalinkPostDownloadHandlerTest.cc
  5204. * test/MockBtContext.h
  5205. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5206. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5207. * src/option_processing.cc
  5208. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5209. Applied aria2-1.0.1-mingw.patch.
  5210. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5211. mingw.
  5212. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5213. * src/SocketCore.cc
  5214. * src/a2netcompat.h
  5215. * test/SocketCoreTest.cc
  5216. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5217. * Release 1.0.1
  5218. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5219. Updated Ukrainian and Norwegian Nynorsk translations.
  5220. Thanks to all translators.
  5221. * po/nn.po
  5222. * po/uk.po
  5223. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5224. Don't show download result when -S option is used.
  5225. * src/main.cc
  5226. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5227. Bump up version number to 1.0.1
  5228. * configure.ac
  5229. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5230. Closed files after the test cases in MultiDiskWriterTest::
  5231. testResetDiskWriterEntries(). This will fix the unit test error
  5232. in mingw32 build.
  5233. * test/MultiDiskWriterTest.cc
  5234. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5235. Use HEAD method to get file size from HTTP server for segmented
  5236. downloading.
  5237. The request to the BitTorrent Tracker always uses GET method because
  5238. the response of the tracker is small and it doesn't need segmented
  5239. download.
  5240. * src/FtpNegotiationCommand.cc
  5241. * src/HttpRequest.cc
  5242. * src/HttpResponseCommand.cc
  5243. * src/HttpSkipResponseCommand.cc
  5244. * src/RequestGroup.cc
  5245. * src/RequestGroup.h
  5246. * src/TrackerWatcherCommand.cc
  5247. * test/HttpRequestTest.cc
  5248. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5249. Fixed the bug that causes floating exception when -T option is used and
  5250. no URIs are given.
  5251. * src/download_helper.cc
  5252. * test/DownloadHelperTest.cc
  5253. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5254. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5255. errors in MinGW:
  5256. Closed file after saving server stats (RequestGroupMan.cc)
  5257. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5258. Ignored case & handled 2-digit years (strptime.c)
  5259. Added missing suseconds_t definition (a2time.h)
  5260. Fixed socket CLOSE() define (SocketCore.cc)
  5261. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5262. Changed utime() test values from x000 to x00000 as MinGW failed on
  5263. values less than timezone offset from Unix epoch
  5264. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5265. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5266. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5267. handle negative dates (CookieParserTest.cc)
  5268. * src/a2time.h
  5269. * src/FtpConnection.cc
  5270. * src/RequestGroupMan.cc
  5271. * src/SocketCore.cc
  5272. * src/strptime.c
  5273. * test/CookieParserTest.cc
  5274. * test/CopyDiskAdaptorTest.cc
  5275. * test/FileTest.cc
  5276. * test/FtpConnectionTest.cc
  5277. * test/MultiDiskAdaptorTest.cc
  5278. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5279. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5280. * doc/aria2c.1.txt
  5281. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5282. * Release 1.0.0
  5283. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5284. Added '~' to reserved characters.
  5285. * src/Util.cc
  5286. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5287. Do not urlencode Request::url in setUrl() because we want unmodified
  5288. URL using Request::getUrl()
  5289. * src/Request.cc
  5290. * src/Request.h
  5291. * test/RequestTest.cc
  5292. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5293. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5294. Thanks to all translators.
  5295. * po/bg.po
  5296. * po/fr.po
  5297. * po/ja.po
  5298. * po/ru.po
  5299. * po/uk.po
  5300. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. Bump up version number to 1.0.0
  5302. * configure.ac
  5303. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5304. Added nosqlite3 build to build_test.sh.
  5305. Renamed noxml as expat.
  5306. * build_test.sh
  5307. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5308. Updated INPUT FILE section.
  5309. * doc/aria2c.1.txt
  5310. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5311. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5312. on big endian systems because test .aria2 files are made for little
  5313. endian systems.
  5314. * test/DefaultBtProgressInfoFileTest.cc
  5315. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5316. Dropped ares support.
  5317. * README
  5318. * configure.ac
  5319. * m4/libares.m4: Removed.
  5320. * src/AsyncNameResolver.cc
  5321. * src/Makefile.am
  5322. * test/Makefile.am
  5323. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5325. Removed const qualifier from DiskWriter::size().
  5326. * src/AbstractDiskWriter.cc
  5327. * src/AbstractDiskWriter.h
  5328. * src/ByteArrayDiskWriter.cc
  5329. * src/ByteArrayDiskWriter.h
  5330. * src/DiskWriter.h
  5331. * test/ByteArrayDiskWriterTest.cc
  5332. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5333. Fixed the bug that causes segmentation fault/bus error during executing
  5334. choking algorithm while seeding. This is caused by improper
  5335. implementation of compare function which returns inconsistent results
  5336. depending on the timing of last unchoke.
  5337. * src/BtSeederStateChoke.cc
  5338. * src/BtSeederStateChoke.h
  5339. * src/DefaultPeerStorage.cc
  5340. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5341. Removed TODO
  5342. * TODO
  5343. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5344. Added a section that explains how to pass argument to options that
  5345. takes optional arguments with its short form.
  5346. * doc/aria2c.1.txt
  5347. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5348. Added -u for the short form of --max-upload-limit option.
  5349. * doc/aria2c.1.txt
  5350. * src/option_processing.cc
  5351. * src/usage_text.h
  5352. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5353. Added -V for the short form of --check-integrity option.
  5354. Now the argument of --check-integrity option is optional:
  5355. if it is omitted, it is evaluated as true.
  5356. * doc/aria2c.1.txt
  5357. * src/option_processing.cc
  5358. * src/usage_text.h
  5359. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5360. Made the default value of --ftp-pasv option set to true and it can take
  5361. true/false values.
  5362. * src/OptionHandlerFactory.cc
  5363. * src/option_processing.cc
  5364. * src/usage_text.h
  5365. * doc/aria2c.1.txt
  5366. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5367. Given custom random number generator to std::random_shuffle.
  5368. * src/AnnounceList.cc
  5369. * src/BtLeecherStateChoke.cc
  5370. * src/BtSeederStateChoke.cc
  5371. * src/DefaultBtRequestFactory.cc
  5372. * src/MetalinkEntry.cc
  5373. * src/RarestPieceSelector.cc
  5374. * src/SimpleRandomizer.cc
  5375. * src/SimpleRandomizer.h
  5376. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5377. Now the default value of --enable-direct-io is true.
  5378. * src/OptionHandlerFactory.cc
  5379. * doc/aria2c.1.txt
  5380. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5381. Erase peer before executing onReturningPeer and onErasingPeer
  5382. because choking algorithm called from onReturningPeer doesn't
  5383. like erasing peer in the active peer list.
  5384. * src/DefaultPeerStorage.cc
  5385. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5386. Instead of creating special filename in createDownloadResult() if
  5387. inMemoryDownload() is true, now it is done in getFilePath().
  5388. * src/RequestGroup.cc
  5389. * test/RequestGroupTest.cc
  5390. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5391. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5392. processed in memory. This is the fix for previous comment out.
  5393. * src/MemoryBufferPreDownloadHandler.cc
  5394. * src/RequestGroup.cc
  5395. * src/RequestGroup.h
  5396. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5397. Commented out the code which sets virtual directory path "[MEMORY]"
  5398. propagate directory to store to following RequestGroup.
  5399. * src/MemoryBufferPreDownloadHandler.cc
  5400. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5401. Bump up version number to 1.0.0b
  5402. * configure.ac
  5403. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5404. Added input_uris.txt to EXTRA_DIST
  5405. * test/Makefile.am
  5406. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5407. Removed PeerObject.h from Makefile.am
  5408. * src/Makefile.am
  5409. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5410. Avoid slow seeding
  5411. * src/PeerInteractionCommand.cc
  5412. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5413. Updated usage for -i option.
  5414. * src/usage_text.h (TEXT_INPUT_FILE)
  5415. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5416. Added INPUT FILE section to man page.
  5417. Escaped fake URLs.
  5418. * doc/aria2c.1.txt
  5419. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5420. Fixed wrong note position for -o option.
  5421. * doc/aria2c.1.txt
  5422. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5423. Fixed compile error without SSL/XML library.
  5424. * src/DefaultBtProgressInfoFile.cc
  5425. * src/DefaultBtProgressInfoFile.h
  5426. * src/FileMetalinkParserState.cc
  5427. * src/RequestGroup.h
  5428. * src/SocketCore.cc
  5429. * src/SocketCore.h
  5430. * src/VerificationMetalinkParserState.cc
  5431. * src/download_helper.h
  5432. * src/main.cc
  5433. * test/DefaultBtProgressInfoFileTest.cc
  5434. * test/DownloadHelperTest.cc
  5435. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5436. Rewritten URI handling functions. They are now provided as a testable
  5437. functions.
  5438. * src/Makefile.am
  5439. * src/RequestGroup.cc
  5440. * src/RequestGroup.h
  5441. * src/download_helper.cc
  5442. * src/download_helper.h
  5443. * src/main.cc
  5444. * test/DownloadHelperTest.cc
  5445. * test/Makefile.am
  5446. * test/input_uris.txt
  5447. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5448. Quickly terminate commands when ctrl-c is pressed.
  5449. * src/DownloadEngine.cc
  5450. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5451. Quickly terminate idle commands when download finished.
  5452. * src/AbstractCommand.cc
  5453. * src/DownloadCommand.cc
  5454. * src/DownloadEngine.cc
  5455. * src/DownloadEngine.h
  5456. * src/SleepCommand.cc
  5457. * src/SleepCommand.h
  5458. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5459. Added the ability to specify output filename and directory in input
  5460. file.
  5461. Additional parameters are added in the following line of URIs
  5462. with proceeding white space(s), 1 parameter in 1 line.
  5463. The parameter names are the same with the command-line option name
  5464. without proceeding "--". Not all the options are available here:
  5465. at the moment, 'dir' and 'out' options are avialable.
  5466. Please note that out option has no effect against Metalink or BitTorrent
  5467. downloads.
  5468. Example input file:
  5469. http://host/foo-1.1.tar.bz2
  5470. out=foo.tar.bz2
  5471. dir=/tmp/downloads
  5472. http://host/thundermonkey-2.0.tar.bz2
  5473. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5474. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5475. thundermonkey-2.0.tar.bz2 is saved as
  5476. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5477. * src/BtPostDownloadHandler.cc
  5478. * src/Metalink2RequestGroup.cc
  5479. * src/Metalink2RequestGroup.h
  5480. * src/MetalinkPostDownloadHandler.cc
  5481. * src/UriListParser.cc
  5482. * src/UriListParser.h
  5483. * src/main.cc
  5484. * test/Metalink2RequestGroupTest.cc
  5485. * test/UriListParserTest.cc
  5486. * test/filelist1.txt
  5487. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5488. Fixed error when SSL library is not found.
  5489. * configure.ac
  5490. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5491. Cross referenced among -s, -C and -j options.
  5492. Updated usage of -C and -s options.
  5493. * src/usage_text.h
  5494. * doc/aria2c.1.txt
  5495. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5496. Fixed bad cast in 32bit platforms.
  5497. * test/DefaultPieceStorageTest.cc
  5498. (DefaultPieceStorageTest::testGetCompletedLength)
  5499. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5500. Fixed unit test fails on 32bit platforms.
  5501. * test/CookieParserTest.cc
  5502. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5503. Show an average download speed in Download results.
  5504. * src/BtFileAllocationEntry.cc
  5505. * src/DefaultPieceStorage.cc
  5506. * src/DownloadContext.cc
  5507. * src/DownloadContext.h
  5508. * src/DownloadResult.h
  5509. * src/RequestGroup.cc
  5510. * src/RequestGroupMan.cc
  5511. * src/StreamFileAllocationEntry.cc
  5512. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5513. Fixed the bug that metalink file is not processed if Content-Type
  5514. field has a paramter.
  5515. * src/HttpResponse.cc
  5516. * src/HttpResponse.h
  5517. * test/HttpResponseTest.cc
  5518. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5519. Removed unused code.
  5520. * src/DefaultBtAnnounce.cc
  5521. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5522. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5523. the value larger than DefaultPieceStorage::getTotalLength() when
  5524. in flight pieces are involved.
  5525. * src/DefaultPieceStorage.cc
  5526. * test/DefaultPieceStorageTest.cc
  5527. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5528. Bump up version number to 1.0.0a.
  5529. * configure.ac
  5530. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5531. Updated configure.ac
  5532. * configure.ac
  5533. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5534. Added usege for proxy.
  5535. * doc/aria2c.1.txt
  5536. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5537. Added usage for --ca-certificate, --certificate, --private-key and
  5538. --check-certificate options.
  5539. * doc/aria2c.1.txt
  5540. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5541. Updated man page
  5542. * doc/aria2c.1.txt
  5543. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5544. Added --no-proxy option. It receives comman separated hostname or
  5545. domains to which proxy should not be used.
  5546. aria2 honors the environment variable no_proxy to override no-proxy
  5547. value in configuration file. The user can override the environment
  5548. variable no_proxy with --no-proxy command-line option.
  5549. * src/AbstractCommand.cc
  5550. * src/OptionHandlerFactory.cc
  5551. * src/option_processing.cc
  5552. * src/prefs.cc
  5553. * src/prefs.h
  5554. * src/usage_text.h
  5555. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5556. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5557. The CA certificates are specified in --ca-certificate option.
  5558. By default, the verification is disabled. Use --check-certificate
  5559. option to enable it.
  5560. * src/HttpRequestCommand.cc
  5561. * src/LibgnutlsTLSContext.cc
  5562. * src/LibgnutlsTLSContext.h
  5563. * src/LibsslTLSContext.cc
  5564. * src/LibsslTLSContext.h
  5565. * src/MultiUrlRequestInfo.cc
  5566. * src/OptionHandlerFactory.cc
  5567. * src/SocketCore.cc
  5568. * src/SocketCore.h
  5569. * src/a2functional.h
  5570. * src/message.h
  5571. * src/option_processing.cc
  5572. * src/prefs.cc
  5573. * src/prefs.h
  5574. * src/usage_text.h
  5575. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Added client certificate authentication for SSL/TLS.
  5577. Currently a private key must be decrypted for use with aria2.
  5578. If a user accidentally gives encrypted file to aria2 then following
  5579. thing happens:
  5580. If encrypted private key is given to aria2, it behaves differently
  5581. depending on the ssl library it uses. If aria2 built with openssl then
  5582. openssl prompts the user for password. If aria2 build with gnutls then
  5583. aria2 exists with error at start up.
  5584. * src/DownloadEngineFactory.cc
  5585. * src/MultiUrlRequestInfo.cc
  5586. * src/OptionHandlerFactory.cc
  5587. * src/option_processing.cc
  5588. * src/prefs.cc
  5589. * src/prefs.h
  5590. * src/usage_text.h
  5591. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5592. Introduced TLSContext that holds TLS related data that can be shared
  5593. with multiple SSL connections.
  5594. * src/DownloadEngineFactory.cc
  5595. * src/LibgnutlsTLSContext.cc
  5596. * src/LibgnutlsTLSContext.h
  5597. * src/LibsslTLSContext.cc
  5598. * src/LibsslTLSContext.h
  5599. * src/Makefile.am
  5600. * src/SocketCore.cc
  5601. * src/SocketCore.h
  5602. * src/TLSContext.h
  5603. * src/message.h
  5604. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5605. Fixed the bug that the DiskWriter of the first FileEntry whose
  5606. `needsFileAllocation' property is false is not created
  5607. even if it shares a piece with next FileEntry which `requested' property
  5608. is true.
  5609. Fixed the bug that zero-length file is not created if pre file
  5610. allocation is not done.
  5611. * src/MultiDiskAdaptor.cc
  5612. * src/MultiDiskAdaptor.h
  5613. * test/MultiDiskAdaptorTest.cc
  5614. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5615. Added the ability to pool proxy connection.
  5616. The conneciton in FTP with proxy-method=GET is not pooled.
  5617. Proxy-Connection header will not be sent when sending CONNECT method.
  5618. * src/DownloadEngine.cc
  5619. * src/DownloadEngine.h
  5620. * src/FtpFinishDownloadCommand.cc
  5621. * src/FtpInitiateConnectionCommand.cc
  5622. * src/FtpNegotiationCommand.cc
  5623. * src/HttpDownloadCommand.cc
  5624. * src/HttpInitiateConnectionCommand.cc
  5625. * src/HttpRequest.cc
  5626. * src/HttpRequest.h
  5627. * src/HttpResponse.cc
  5628. * src/HttpSkipResponseCommand.cc
  5629. * test/HttpRequestTest.cc
  5630. * test/HttpResponseTest.cc
  5631. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5632. Handle date before epoch.
  5633. To create *bad* Time object, call Time::null().
  5634. * src/CookieParser.cc
  5635. * src/FtpConnection.cc
  5636. * src/FtpConnection.h
  5637. * src/FtpNegotiationCommand.cc
  5638. * src/RequestGroup.cc
  5639. * src/TimeA2.cc
  5640. * src/TimeA2.h
  5641. * test/CookieParserTest.cc
  5642. * test/FtpConnectionTest.cc
  5643. * test/TimeTest.cc
  5644. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5645. Added support for following envrionment variables: http_proxy,
  5646. https_proxy, ftp_proxy and all_proxy.
  5647. Each variable is equivalent to the aria2 option whose name is the
  5648. variable name with '_' replaced with '-'.
  5649. They overrides options specified in aria2.conf file.
  5650. The envrionment variables can be overrode using command-line option.
  5651. * src/option_processing.cc
  5652. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5653. Renamed --http-proxy-method as --proxy-method.
  5654. * src/AbstractCommand.cc
  5655. * src/FtpInitiateConnectionCommand.cc
  5656. * src/HttpInitiateConnectionCommand.cc
  5657. * src/OptionHandlerFactory.cc
  5658. * src/option_processing.cc
  5659. * src/prefs.cc
  5660. * src/prefs.h
  5661. * src/usage_text.h
  5662. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5664. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5665. Above 3 options and --http-proxy option can handle proxy in URL format
  5666. like: http://user:passwd@host:port.
  5667. If a proxy requires user/password, they must be specified in a URL.
  5668. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5669. instead.
  5670. * src/AbstractCommand.cc
  5671. * src/AbstractCommand.h
  5672. * src/AbstractProxyRequestCommand.cc
  5673. * src/AbstractProxyRequestCommand.h
  5674. * src/AuthConfigFactory.cc
  5675. * src/AuthConfigFactory.h
  5676. * src/FtpFinishDownloadCommand.cc
  5677. * src/FtpInitiateConnectionCommand.cc
  5678. * src/FtpInitiateConnectionCommand.h
  5679. * src/FtpNegotiationCommand.cc
  5680. * src/FtpTunnelRequestCommand.cc
  5681. * src/FtpTunnelRequestCommand.h
  5682. * src/HttpDownloadCommand.cc
  5683. * src/HttpInitiateConnectionCommand.cc
  5684. * src/HttpInitiateConnectionCommand.h
  5685. * src/HttpProxyRequestCommand.cc
  5686. * src/HttpProxyRequestCommand.h
  5687. * src/HttpRequest.cc
  5688. * src/HttpRequest.h
  5689. * src/HttpRequestCommand.cc
  5690. * src/HttpRequestCommand.h
  5691. * src/HttpSkipResponseCommand.cc
  5692. * src/InitiateConnectionCommand.cc
  5693. * src/InitiateConnectionCommand.h
  5694. * src/OptionHandlerFactory.cc
  5695. * src/OptionHandlerImpl.h
  5696. * src/Request.cc
  5697. * src/option_processing.cc
  5698. * src/prefs.cc
  5699. * src/prefs.h
  5700. * src/usage_text.h
  5701. * test/AuthConfigFactoryTest.cc
  5702. * test/HttpRequestTest.cc
  5703. * test/OptionHandlerTest.cc
  5704. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. Execute choking algorithm when unchoked and interested peer is
  5706. disconected.
  5707. * src/DefaultPeerStorage.cc
  5708. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5709. Added testcase for BtNotInterestedMessage from unchoked peer.
  5710. * test/BtNotInterestedMessageTest.cc
  5711. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5712. Execute choking algorithm when BtInterestedMessage arrives from
  5713. unchoked peer.
  5714. * src/BtInterestedMessage.cc
  5715. * src/BtInterestedMessage.h
  5716. * src/DefaultBtMessageFactory.cc
  5717. * test/BtInterestedMessageTest.cc
  5718. * test/MockPeerStorage.h
  5719. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5720. AuthConfigFactory is now part of DownloadEngine.
  5721. * src/AbstractProxyRequestCommand.cc
  5722. * src/AuthConfigFactory.h
  5723. * src/DownloadEngine.cc
  5724. * src/DownloadEngine.h
  5725. * src/FtpConnection.cc
  5726. * src/FtpConnection.h
  5727. * src/FtpNegotiationCommand.cc
  5728. * src/HttpConnection.cc
  5729. * src/HttpRequest.cc
  5730. * src/HttpRequest.h
  5731. * src/HttpRequestCommand.cc
  5732. * src/HttpResponse.cc
  5733. * src/HttpResponseCommand.cc
  5734. * src/HttpSkipResponseCommand.cc
  5735. * src/MultiUrlRequestInfo.cc
  5736. * src/main.cc
  5737. * test/FtpConnectionTest.cc
  5738. * test/HttpRequestTest.cc
  5739. * test/HttpResponseTest.cc
  5740. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5741. Corrected catched exception type.
  5742. * src/ServerStatMan.cc
  5743. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. DNSCache is now part of DownloadEngine.
  5745. * src/DNSCache.h
  5746. * src/DownloadEngine.cc
  5747. * src/DownloadEngine.h
  5748. * src/InitiateConnectionCommand.cc
  5749. * src/MultiUrlRequestInfo.cc
  5750. * test/Makefile.am
  5751. * test/Makefile.in
  5752. * test/SimpleDNSCacheTest.cc
  5753. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5755. DownloadEngine.
  5756. * src/ActivePeerConnectionCommand.cc
  5757. * src/BtSetup.cc
  5758. * src/CUIDCounter.h
  5759. * src/DHTSetup.cc
  5760. * src/DownloadCommand.cc
  5761. * src/DownloadEngine.cc
  5762. * src/DownloadEngine.h
  5763. * src/DownloadEngineFactory.cc
  5764. * src/FileAllocationDispatcherCommand.cc
  5765. * src/InitiatorMSEHandshakeCommand.cc
  5766. * src/PeerInitiateConnectionCommand.cc
  5767. * src/PeerInteractionCommand.cc
  5768. * src/PeerListenCommand.cc
  5769. * src/RequestGroup.cc
  5770. * src/StreamFileAllocationEntry.cc
  5771. * src/TrackerWatcherCommand.cc
  5772. * src/main.cc
  5773. * test/RequestGroupManTest.cc
  5774. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5775. Implemented commented code in BtSeederStateChoke
  5776. * src/BtSeederStateChoke.cc
  5777. * src/Peer.cc
  5778. * src/Peer.h
  5779. * src/PeerInteractionCommand.cc
  5780. * src/PeerSessionResource.cc
  5781. * src/PeerSessionResource.h
  5782. * test/MockBtMessageDispatcher.h
  5783. * test/PeerSessionResourceTest.cc
  5784. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5786. its object.
  5787. * src/AbstractBtMessage.cc
  5788. * src/ActivePeerConnectionCommand.cc
  5789. * src/ActivePeerConnectionCommand.h
  5790. * src/BtContextAwareCommand.cc
  5791. * src/BtContextAwareCommand.h
  5792. * src/BtExtendedMessage.cc
  5793. * src/BtExtendedMessage.h
  5794. * src/BtInterestedMessage.cc
  5795. * src/BtInterestedMessage.h
  5796. * src/BtNotInterestedMessage.cc
  5797. * src/BtNotInterestedMessage.h
  5798. * src/BtRegistry.cc
  5799. * src/BtRegistry.h
  5800. * src/BtSeederStateChoke.cc
  5801. * src/BtSetup.cc
  5802. * src/DHTGetPeersCommand.cc
  5803. * src/DHTGetPeersCommand.h
  5804. * src/DHTPeerAnnounceEntry.cc
  5805. * src/DHTPeerAnnounceEntry.h
  5806. * src/DHTPeerAnnounceStorage.cc
  5807. * src/DHTPeerAnnounceStorage.h
  5808. * src/DHTPeerLookupTask.cc
  5809. * src/DHTPeerLookupTask.h
  5810. * src/DHTSetup.cc
  5811. * src/DHTSetup.h
  5812. * src/DHTTaskFactory.h
  5813. * src/DHTTaskFactoryImpl.cc
  5814. * src/DHTTaskFactoryImpl.h
  5815. * src/DefaultBtAnnounce.cc
  5816. * src/DefaultBtInteractive.cc
  5817. * src/DefaultBtInteractive.h
  5818. * src/DefaultBtMessageDispatcher.cc
  5819. * src/DefaultBtMessageDispatcher.h
  5820. * src/DefaultBtMessageFactory.cc
  5821. * src/DefaultBtMessageFactory.h
  5822. * src/DefaultBtMessageReceiver.cc
  5823. * src/DefaultBtProgressInfoFile.cc
  5824. * src/DefaultBtProgressInfoFile.h
  5825. * src/DefaultBtRequestFactory.cc
  5826. * src/DefaultBtRequestFactory.h
  5827. * src/DefaultExtensionMessageFactory.cc
  5828. * src/DefaultExtensionMessageFactory.h
  5829. * src/DefaultPeerStorage.cc
  5830. * src/DefaultPeerStorage.h
  5831. * src/DownloadEngine.cc
  5832. * src/DownloadEngine.h
  5833. * src/InitiatorMSEHandshakeCommand.cc
  5834. * src/InitiatorMSEHandshakeCommand.h
  5835. * src/MSEHandshake.cc
  5836. * src/MSEHandshake.h
  5837. * src/Makefile.am
  5838. * src/Makefile.in
  5839. * src/PeerChokeCommand.cc
  5840. * src/PeerChokeCommand.h
  5841. * src/PeerInitiateConnectionCommand.cc
  5842. * src/PeerInitiateConnectionCommand.h
  5843. * src/PeerInteractionCommand.cc
  5844. * src/PeerInteractionCommand.h
  5845. * src/PeerObject.h
  5846. * src/PeerReceiveHandshakeCommand.cc
  5847. * src/PeerReceiveHandshakeCommand.h
  5848. * src/ReceiverMSEHandshakeCommand.cc
  5849. * src/RequestGroup.cc
  5850. * src/RequestGroup.h
  5851. * src/RequestGroupMan.cc
  5852. * src/RequestGroupMan.h
  5853. * src/SeedCheckCommand.cc
  5854. * src/SeedCheckCommand.h
  5855. * src/ShareRatioSeedCriteria.h
  5856. * src/SimpleBtMessage.cc
  5857. * src/TrackerWatcherCommand.cc
  5858. * src/TrackerWatcherCommand.h
  5859. * src/UTPexExtensionMessage.cc
  5860. * src/UTPexExtensionMessage.h
  5861. * test/BtCancelMessageTest.cc
  5862. * test/BtChokeMessageTest.cc
  5863. * test/BtExtendedMessageTest.cc
  5864. * test/BtInterestedMessageTest.cc
  5865. * test/BtNotInterestedMessageTest.cc
  5866. * test/BtPieceMessageTest.cc
  5867. * test/BtPortMessageTest.cc
  5868. * test/BtRegistryTest.cc
  5869. * test/BtRejectMessageTest.cc
  5870. * test/BtRequestMessageTest.cc
  5871. * test/DHTPeerAnnounceEntryTest.cc
  5872. * test/DHTPeerAnnounceStorageTest.cc
  5873. * test/DefaultBtMessageDispatcherTest.cc
  5874. * test/DefaultBtMessageFactoryTest.cc
  5875. * test/DefaultBtProgressInfoFileTest.cc
  5876. * test/DefaultBtRequestFactoryTest.cc
  5877. * test/DefaultExtensionMessageFactoryTest.cc
  5878. * test/MSEHandshakeTest.cc
  5879. * test/MockDHTTaskFactory.h
  5880. * test/ShareRatioSeedCriteriaTest.cc
  5881. * test/UTPexExtensionMessageTest.cc
  5882. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5883. Fixed compiler warning.
  5884. * test/UtilTest.cc
  5885. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Treat Cookie object as session cookie if expiry = 0 is given.
  5887. With this change, you can specify session scoped cookies in an external
  5888. file setting expiry value to 0.
  5889. * src/Cookie.cc
  5890. * src/Cookie.h
  5891. * test/CookieParserTest.cc
  5892. * test/CookieStorageTest.cc
  5893. * test/CookieTest.cc
  5894. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5895. Changed signature of DHTMessageFactory::createResponseMessage().
  5896. Removed unused validateIDMatch.
  5897. * src/DHTMessageFactory.h
  5898. * src/DHTMessageFactoryImpl.cc
  5899. * src/DHTMessageFactoryImpl.h
  5900. * src/DHTMessageTracker.cc
  5901. * test/DHTMessageFactoryImplTest.cc
  5902. * test/MockDHTMessageFactory.h
  5903. Dropped DHT message coming from same ID of localhost.
  5904. * src/DHTMessageReceiver.cc
  5905. Rejected adding node whose ID is the same as localhost's.
  5906. * src/DHTRoutingTable.cc
  5907. * test/BtPortMessageTest.cc
  5908. * test/DHTRoutingTableTest.cc
  5909. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5910. Pool connection when redirection occurs with Content-Length = 0.
  5911. * src/HttpSkipResponseCommand.cc
  5912. * src/HttpSkipResponseCommand.h
  5913. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5914. Fixed the bug that causes time out when redirection occurs with
  5915. content-length 0.
  5916. * src/HttpResponseCommand.cc
  5917. * src/HttpSkipResponseCommand.cc
  5918. * src/HttpSkipResponseCommand.h
  5919. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Now each status legends is shown only when it appears in Download
  5921. Result. If Download Result has no item, then status legend will not
  5922. be printed.
  5923. * src/RequestGroupMan.cc
  5924. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5925. Removed duplicate creation of OptionHandlers.
  5926. * src/option_processing.cc
  5927. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5928. Fixed the bug that causes segmentation fault when accessing files which
  5929. don't exist or are not included in --select-file option while
  5930. validating chunk checksum.
  5931. * src/MultiDiskAdaptor.cc
  5932. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5933. Fixed compiler warning.
  5934. * test/UtilTest.cc
  5935. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5937. * src/IteratableChecksumValidator.cc
  5938. * src/IteratableChunkChecksumValidator.cc
  5939. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5940. * Release 0.16.2
  5941. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5942. Added Serbian translation. Updated Ukrainian translation.
  5943. Thanks to all translators.
  5944. * po/sr.po
  5945. * po/uk.po
  5946. * po/LINGUAS
  5947. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5948. Bump up version number to 0.16.2
  5949. * configure.ac
  5950. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Added length equality test to operator== to drop a piece message
  5952. whose length does not match to the requested one.
  5953. * src/RequestSlot.cc
  5954. * test/DefaultBtMessageDispatcherTest.cc
  5955. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5956. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5957. recieved.
  5958. In this fix, if a request larger than 16KiB length is received, aria2
  5959. disconnects the peer.
  5960. * src/BtConstants.h
  5961. * src/PeerMessageUtil.cc
  5962. * src/PeerMessageUtil.h
  5963. * test/BtRequestMessageTest.cc
  5964. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. * Release 0.16.1
  5966. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5967. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5968. * doc/aria2c.1.txt
  5969. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5971. Updated French, Simplified Chinese and Japanese translations.
  5972. Thanks to all translators.
  5973. en@quot and en@boldquot are also added.
  5974. * po/LINGUAS
  5975. * po/fr.po
  5976. * po/ja.po
  5977. * po/uk.po
  5978. * po/vi.po
  5979. * po/zh_CN.po
  5980. * po/zh_TW.po
  5981. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5982. Bump up version number to 0.16.1.
  5983. * configure.ac
  5984. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Updated README.
  5986. * README
  5987. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5989. not to replace '--' with em dash character.
  5990. * doc/aria2c.1.txt
  5991. * doc/makeman
  5992. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5993. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5994. every SEC seconds.
  5995. * src/DownloadEngineFactory.cc
  5996. * src/OptionHandlerFactory.cc
  5997. * src/option_processing.cc
  5998. * src/usage_text.h
  5999. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. Fixed compile warning on linux-amd64
  6001. * src/FtpConnection.cc
  6002. * src/IteratableChunkChecksumValidator.cc
  6003. * src/MultiDiskAdaptor.cc
  6004. Fixed the bug that unit test fails on linux-amd64
  6005. * test/UtilTest.cc
  6006. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6007. Added --dht-file-path option to change the path to dht.dat, which is a
  6008. serialized DHT routing table.
  6009. * src/OptionHandlerFactory.cc
  6010. * src/option_processing.cc
  6011. * src/usage_text.h
  6012. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6013. Fixed possible underflow.
  6014. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6015. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6016. Fixed the bug that last character in URI is not encoded.
  6017. * src/Request.cc
  6018. * test/RequestTest.cc
  6019. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6020. Fixed the bug that referer header field contains fragment.
  6021. Now Request class removes fragment part of URI and encodes it
  6022. in Request::setUri() and setReferer().
  6023. * src/Request.h
  6024. * src/Request.cc
  6025. * test/RequestTest.cc
  6026. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6027. Added missing m4 macros.
  6028. * m4/cppunit.m4
  6029. * m4/libgcrypt.m4
  6030. * m4/libgnutls-extra.m4
  6031. * m4/libgnutls.m4
  6032. * m4/libxml2.m4
  6033. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6034. Fixed compile error with gcc-4.4(snapshot)
  6035. * src/File.cc
  6036. * src/FtpConnection.cc
  6037. * src/OptionHandlerImpl.h
  6038. * src/Util.cc
  6039. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6040. Removed assert()
  6041. * src/SocketBuffer.cc (SocketBuffer::send)
  6042. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6043. Changed the type of _numNewConnection to unsigned int.
  6044. * src/ActivePeerConnectionCommand.cc
  6045. * src/ActivePeerConnectionCommand.h
  6046. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. * Release 0.16.0
  6048. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6049. Updated doc
  6050. * README
  6051. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6052. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6053. translations. Thanks to all translators.
  6054. * po/bg.po
  6055. * po/de.po
  6056. * po/fr.po
  6057. * po/ja.po
  6058. * po/zh_CN.po
  6059. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Bump up version number to 0.16.0.
  6061. * configure.ac
  6062. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6063. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6064. int32_t.
  6065. Changed the type of count to int32_t.
  6066. * src/Metalink2RequestGroup.cc
  6067. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6068. Added test for Time::elapsed(time_t).
  6069. * test/TimeTest.cc
  6070. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6072. Util::difftv() should be used instead.
  6073. * src/TimeA2.cc
  6074. * src/TimeA2.h
  6075. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6076. Made socket for dht connections non-blocking
  6077. * src/DHTAbstractMessage.cc
  6078. * src/DHTAbstractMessage.h
  6079. * src/DHTConnection.h
  6080. * src/DHTConnectionImpl.cc
  6081. * src/DHTConnectionImpl.h
  6082. * src/DHTMessage.h
  6083. * src/DHTMessageDispatcherImpl.cc
  6084. * src/DHTMessageDispatcherImpl.h
  6085. * src/DHTUnknownMessage.cc
  6086. * src/DHTUnknownMessage.h
  6087. * src/SocketCore.cc
  6088. * src/SocketCore.h
  6089. * test/MockDHTMessage.h
  6090. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. Changed the type of offset to int.
  6092. * src/ParameterizedStringParser.cc
  6093. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6094. Made getAsInt() return int32_t
  6095. * src/Option.h
  6096. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6097. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6098. build.
  6099. * configure.ac
  6100. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6101. Use sqlite3_open if sqlite3_open_v2 is not available.
  6102. * src/Sqlite3MozCookieParser.cc
  6103. * src/Sqlite3MozCookieParser.h
  6104. * m4/sqlite3.m4
  6105. * test/Sqlite3MozCookieParserTest.cc
  6106. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6107. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6108. * src/BtPieceMessage.cc
  6109. * src/DHTPeerAnnounceStorage.cc
  6110. * src/DefaultPieceStorage.cc
  6111. * src/DownloadCommand.cc
  6112. * src/DownloadEngine.cc
  6113. * src/FtpConnection.cc
  6114. * src/PeerConnection.cc
  6115. * src/PeerMessageUtil.cc
  6116. * src/RequestGroup.cc
  6117. * src/RequestGroupMan.cc
  6118. * src/SimpleBtMessage.cc
  6119. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6121. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6122. * src/AbstractDiskWriter.cc
  6123. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6124. Don't set Request::supportsPersistentConnection() in HttpConnection
  6125. since this code is also used in AbstractProxyResponseCommand.
  6126. Moved those code to HttpResponse.
  6127. * src/HttpResponse.cc
  6128. * src/HttpResponse.h
  6129. * src/HttpConnection.cc
  6130. * src/HttpConnection.h
  6131. * src/HttpResponseCommand.cc
  6132. * test/HttpResponseTest.cc
  6133. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6134. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6135. The configuration is minimum: no torrent, no metalink, so there may be
  6136. other compile error on their code.
  6137. * src/a2netcompat.h
  6138. * src/File.cc
  6139. * src/File.h
  6140. * src/SocketCore.cc
  6141. * src/SocketCore.h
  6142. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Made a socket of incoming peer non-blocking.
  6144. * src/PeerListenCommand.cc
  6145. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6146. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6147. whole message data is not sent in one send() call.
  6148. * src/BtPieceMessage.cc
  6149. * src/BtPieceMessage.h
  6150. * src/PeerConnection.cc
  6151. * src/PeerConnection.h
  6152. * src/SimpleBtMessage.cc
  6153. * src/SimpleBtMessage.h
  6154. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6155. Fixed the bug that aria2 downloads faster than max-download-limit when
  6156. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6157. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6158. , instead of sum of them.
  6159. * src/ActivePeerConnectionCommand.cc
  6160. * src/DefaultBtInteractive.cc
  6161. * src/DownloadCommand.cc
  6162. * src/PeerInteractionCommand.cc
  6163. * src/PeerReceiveHandshakeCommand.cc
  6164. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Fixed the bug that HTTPS download fails.
  6166. * src/AbstractCommand.cc
  6167. * src/AbstractCommand.h
  6168. * src/DownloadCommand.cc
  6169. * src/FtpConnection.cc
  6170. * src/HttpConnection.cc
  6171. * src/HttpRequestCommand.cc
  6172. * src/HttpResponseCommand.cc
  6173. * src/HttpSkipResponseCommand.cc
  6174. * src/MSEHandshake.cc
  6175. * src/PeerConnection.cc
  6176. * src/SocketCore.cc
  6177. * src/SocketCore.h
  6178. Fixed the bug that aria2 doesn't download whole content body and cannot
  6179. reuse connection if chunked transfer encoding and gzip content encoding
  6180. are set.
  6181. * src/DownloadCommand.cc
  6182. * src/HttpSkipResponseCommand.cc
  6183. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6184. Updated man page.
  6185. * doc/aria2c.1.txt
  6186. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6187. When error occurred while aria2 was parsing an .aria2.conf file, print
  6188. the usage of the option that caused error.
  6189. * src/option_processing.cc
  6190. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6191. Fixed compile error on OptionHandlerException
  6192. * src/Makefile.am
  6193. * src/OptionHandlerException.cc
  6194. * src/OptionHandlerException.h
  6195. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Moved message of the error to OptionHandlerException.h
  6197. * src/NameMatchOptionHandler.h
  6198. * src/OptionHandlerException.h
  6199. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6200. When error occurs while aria2 is parsing an command-line option, print
  6201. the usage of the option.
  6202. * src/Makefile.am
  6203. * src/NameMatchOptionHandler.h
  6204. * src/OptionHandlerException.h
  6205. * src/option_processing.cc
  6206. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. Reverted previous change.
  6208. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6209. username is not in URI.
  6210. * src/HttpRequest.cc
  6211. * src/Request.cc
  6212. * test/HttpRequestTest.cc
  6213. * test/RequestTest.cc
  6214. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6215. Now colon is required for username and password in FTP URL, like:
  6216. ftp://username:password@host.
  6217. If colon is not there, aria2 don't parse it as a username. For example,
  6218. aria2 don't retrieve username from ftp://username@host.
  6219. This fix was made in order to login FTP server via non-transparent ftp
  6220. proxy.
  6221. * src/Request.cc
  6222. * test/RequestTest.cc
  6223. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6224. Use netrc for HTTP.
  6225. Now FTP user/password is sent in Authorization header when
  6226. --ftp-via-http-proxy=get is given.
  6227. * src/AuthConfigFactory.cc
  6228. * src/HttpRequest.cc
  6229. * src/HttpRequest.h
  6230. * src/NetrcAuthResolver.cc
  6231. * src/NetrcAuthResolver.h
  6232. * src/OptionHandlerFactory.cc
  6233. * src/option_processing.cc
  6234. * src/prefs.cc
  6235. * src/prefs.h
  6236. * test/AuthConfigFactoryTest.cc
  6237. * test/HttpRequestTest.cc
  6238. * test/NetrcAuthResolverTest.cc
  6239. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. Issue PWD command first and get working directory and use it as a prefix
  6241. for CWD command.
  6242. * src/DownloadEngine.cc
  6243. * src/DownloadEngine.h
  6244. * src/FtpConnection.cc
  6245. * src/FtpConnection.h
  6246. * src/FtpFinishDownloadCommand.cc
  6247. * src/FtpInitiateConnectionCommand.cc
  6248. * src/FtpNegotiationCommand.cc
  6249. * src/FtpNegotiationCommand.h
  6250. * test/FtpConnectionTest.cc
  6251. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6252. Removed default user/pass for FTP user/pass, since it should not have
  6253. precedence over netrc configuration by default.
  6254. * src/OptionHandlerFactory.cc
  6255. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6256. Added debug log for socket event.
  6257. * src/AbstractCommand.cc
  6258. * src/PeerAbstractCommand.cc
  6259. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6260. Log microseconds.
  6261. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6262. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6263. Replaced HelpItem.cc with OptionHandler.cc.
  6264. * po/POTFILES.in
  6265. Updated po files with 'make update-po'
  6266. * po/aria2c.pot
  6267. * po/*.po
  6268. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6269. Removed possible values from the text.
  6270. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6271. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6272. Removed unused preferences:
  6273. PREF_NO_PREALLOCATION
  6274. PREF_STDOUT_LOG
  6275. PREF_TRACKER_MAX_TRIES
  6276. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6277. PREF_MIN_SEGMENT_SIZE
  6278. * src/option_processing.cc
  6279. * src/prefs.cc
  6280. * src/prefs.h
  6281. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6282. Integrated HelpItem into OptionParser to ease the workload for adding
  6283. new options. Removed default value from usage text.
  6284. * src/HelpItem.cc: Removed.
  6285. * src/HelpItem.h: Removed.
  6286. * src/HelpItemFactory.cc: Removed.
  6287. * src/HelpItemFactory.h: Removed.
  6288. * src/Makefile.am
  6289. * src/Makefile.in
  6290. * src/NameMatchOptionHandler.h
  6291. * src/OptionHandler.cc
  6292. * src/OptionHandler.h
  6293. * src/OptionHandlerFactory.cc
  6294. * src/OptionHandlerImpl.h
  6295. * src/OptionParser.cc
  6296. * src/OptionParser.h
  6297. * src/TagContainer.cc: Removed.
  6298. * src/TagContainer.h: Removed.
  6299. * src/TaggedItem.cc: Removed.
  6300. * src/TaggedItem.h: Removed.
  6301. * src/main.cc
  6302. * src/option_processing.cc
  6303. * src/usage_text.h
  6304. * src/version_usage.cc
  6305. * test/HelpItemTest.cc: Removed.
  6306. * test/Makefile.am
  6307. * test/Makefile.in
  6308. * test/OptionHandlerTest.cc
  6309. * test/OptionParserTest.cc
  6310. * test/TagContainerTest.cc: Removed.
  6311. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. Moved `TransferStat stat = ...' to inside the `if' clause.
  6313. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6314. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. Fixed the bug that a block in a piece is requested when same block is
  6316. already requested to the same peer in end game mode.
  6317. * src/BtRequestFactory.h
  6318. * src/DefaultBtInteractive.cc
  6319. * src/DefaultBtRequestFactory.cc
  6320. * src/DefaultBtRequestFactory.h
  6321. * src/DefaultPieceStorage.cc
  6322. * src/DefaultPieceStorage.h
  6323. * src/PieceStorage.h
  6324. * src/UnknownLengthPieceStorage.cc
  6325. * src/UnknownLengthPieceStorage.h
  6326. * test/DefaultBtRequestFactoryTest.cc
  6327. * test/DefaultPieceStorageTest.cc
  6328. * test/MockBtRequestFactory.h
  6329. * test/MockPieceStorage.h
  6330. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Removed _uploadLength and _downloadLength from PeerSessionResource
  6332. and use PeerStat::_sessionUploadLength and
  6333. PeerStat::_sessionDownloadLength.
  6334. * src/PeerSessionResource.cc
  6335. * src/PeerSessionResource.h
  6336. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Fixed the bug that prefixLength of split bucket which doesn't include
  6338. local node ID is incremented.
  6339. * src/DHTBucket.cc
  6340. * src/DHTBucket.h
  6341. * test/DHTBucketTest.cc
  6342. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6343. Added cookies.sqlite to EXTRA_DIST
  6344. * test/Makefile.am
  6345. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Added Turkish translation. Updated French, German, Russian and
  6347. Simplified Chinese translations. Thanks to all translators.
  6348. * po/LINGUAS
  6349. * po/de.po
  6350. * po/fr.po
  6351. * po/ru.po
  6352. * po/tr.po
  6353. * po/zh_CN.po
  6354. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6355. Added deliminating text to the beginning of the log so that one can find
  6356. where the log starts easily.
  6357. * src/main.cc
  6358. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6359. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6360. to fix compile error when async DNS is not enabled by configuration.
  6361. * src/AbstractCommand.cc
  6362. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6363. If establishing conneciton to a server is failed, then mark error on
  6364. its ServerStat.
  6365. Added the cause of error to log when error event occurred.
  6366. Moved message string to message.h for translation.
  6367. * src/AbstractCommand.cc
  6368. * src/AbstractCommand.h
  6369. * src/FtpNegotiationCommand.cc
  6370. * src/HttpRequestCommand.cc
  6371. * src/PeerAbstractCommand.cc
  6372. * src/message.h
  6373. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6374. Added the function to get error message from socket.
  6375. * src/SocketCore.cc
  6376. * src/SocketCore.h
  6377. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6379. * src/RequestGroupMan.cc
  6380. * src/RequestGroupMan.h
  6381. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. If error event is received in epoll, then abort download immediately.
  6383. * src/AbstractCommand.cc
  6384. * src/Command.cc
  6385. * src/Command.h
  6386. * src/DownloadEngine.cc
  6387. * src/PeerAbstractCommand.cc
  6388. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6389. Added usage message for --uri-selector, --server-stat-of,
  6390. --server-stat-in, --server-stat-timeout options.
  6391. * src/HelpItemFactory.cc
  6392. * src/usage_text.h
  6393. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. Added upper limit of FTP response buffer. The current implementation
  6395. uses 4096bytes as a limit.
  6396. * src/FtpConnection.cc
  6397. * src/FtpConnection.h
  6398. * test/FtpConnectionTest.cc
  6399. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Use non-blocking socket for TCP communication to avoid possible
  6401. blocking due to buffer full.
  6402. * src/AbstractProxyRequestCommand.cc
  6403. * src/FtpConnection.cc
  6404. * src/FtpConnection.h
  6405. * src/FtpNegotiationCommand.cc
  6406. * src/FtpNegotiationCommand.h
  6407. * src/HttpConnection.cc
  6408. * src/HttpConnection.h
  6409. * src/HttpRequestCommand.cc
  6410. * src/InitiatorMSEHandshakeCommand.cc
  6411. * src/InitiatorMSEHandshakeCommand.h
  6412. * src/MSEHandshake.cc
  6413. * src/MSEHandshake.h
  6414. * src/Makefile.am
  6415. * src/PeerConnection.cc
  6416. * src/PeerConnection.h
  6417. * src/PeerInteractionCommand.cc
  6418. * src/PeerListenCommand.cc
  6419. * src/ReceiverMSEHandshakeCommand.cc
  6420. * src/ReceiverMSEHandshakeCommand.h
  6421. * src/SocketBuffer.cc
  6422. * src/SocketBuffer.h
  6423. * src/SocketCore.cc
  6424. * src/SocketCore.h
  6425. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6426. Call setStatusRealtime() in constructor.
  6427. * src/RealtimeCommand.cc
  6428. * src/RealtimeCommand.h
  6429. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6430. Call Download::setNoWait(true) to execute newly created command without
  6431. a pause.
  6432. * src/AbstractCommand.cc
  6433. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6434. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6435. found' error from HTTP/FTP server NUM times without getting single
  6436. bytes of data, then force the download to fail.
  6437. Basically aria2 tris all URIs available. So if long list of URIs are
  6438. specified in Metalink, then aria2 will take a long time to fail
  6439. eventually if all URIs are outdated. This option eases this situation
  6440. to limit the number of servers to try.
  6441. * src/FtpNegotiationCommand.cc
  6442. * src/HelpItemFactory.cc
  6443. * src/HttpResponseCommand.cc
  6444. * src/OptionHandlerFactory.cc
  6445. * src/PeerStat.h
  6446. * src/RequestGroup.cc
  6447. * src/RequestGroup.h
  6448. * src/SegmentMan.cc
  6449. * src/SegmentMan.h
  6450. * src/option_processing.cc
  6451. * src/prefs.cc
  6452. * src/prefs.h
  6453. * src/usage_text.h
  6454. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6455. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6456. response even if more than one response is in it.
  6457. * src/FtpConnection.cc
  6458. * src/FtpConnection.h
  6459. * test/FtpConnectionTest.cc
  6460. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6461. Merged from stable-0.15
  6462. * m4/libcares.m4
  6463. Use pkg-config
  6464. * m4/sqlite3.m4
  6465. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6466. Removed unnecessary if statement.
  6467. * src/DefaultPieceStorage.cc (initPieceStorage)
  6468. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6469. Added --connect-timeout option to specify connect timeout in seconds.
  6470. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6471. connecting to BitTorrent peer is not controlled by this option.
  6472. * src/AbstractProxyRequestCommand.cc
  6473. * src/FtpNegotiationCommand.cc
  6474. * src/HelpItemFactory.cc
  6475. * src/HttpRequestCommand.cc
  6476. * src/OptionHandlerFactory.cc
  6477. * src/option_processing.cc
  6478. * src/prefs.cc
  6479. * src/prefs.h
  6480. * src/usage_text.h
  6481. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6482. Added help message for -R option.
  6483. * src/HelpItemFactory.cc
  6484. * src/usage_text.h
  6485. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6486. Added the message that the time is in local time zone.
  6487. * src/RequestGroup.cc
  6488. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6489. Implemented the ability to get timestamp from remote FTP server using
  6490. MDTM command described in RFC3659.
  6491. * src/FtpConnection.cc
  6492. * src/FtpConnection.h
  6493. * src/FtpNegotiationCommand.cc
  6494. * src/FtpNegotiationCommand.h
  6495. * test/FtpConnectionTest.cc
  6496. * test/Makefile.am
  6497. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Implemented the ability to get timestamp from remote HTTP server and
  6499. apply it to local file. To enable this feature, --remote-time option
  6500. is added. No usage text has been written yet.
  6501. If several servers returns difference timestamp, then aria2 uses latest
  6502. one.
  6503. * src/CopyDiskAdaptor.cc
  6504. * src/CopyDiskAdaptor.h
  6505. * src/DirectDiskAdaptor.cc
  6506. * src/DirectDiskAdaptor.h
  6507. * src/DiskAdaptor.h
  6508. * src/File.cc
  6509. * src/File.h
  6510. * src/HttpHeader.cc
  6511. * src/HttpHeader.h
  6512. * src/HttpResponse.cc
  6513. * src/HttpResponse.h
  6514. * src/HttpResponseCommand.cc
  6515. * src/HttpResponseCommand.h
  6516. * src/MultiDiskAdaptor.cc
  6517. * src/MultiDiskAdaptor.h
  6518. * src/OptionHandlerFactory.cc
  6519. * src/RequestGroup.cc
  6520. * src/RequestGroup.h
  6521. * src/RequestGroupMan.cc
  6522. * src/option_processing.cc
  6523. * src/prefs.cc
  6524. * src/prefs.h
  6525. * test/CopyDiskAdaptorTest.cc
  6526. * test/FileTest.cc
  6527. * test/Makefile.am
  6528. * test/Makefile.in
  6529. * test/MultiDiskAdaptorTest.cc
  6530. * test/TestUtil.cc
  6531. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6532. Fixed the bug that DiskWriterEntry is not created when its
  6533. FileEntry.isRequested() is false and it doesn't share a piece with
  6534. other FileEntries that are requested. This bug causes segmentation fault
  6535. in the end.
  6536. * src/MultiDiskAdaptor.cc
  6537. * src/MultiDiskAdaptor.h
  6538. * src/MultiFileAllocationIterator.cc
  6539. * test/MultiDiskAdaptorTest.cc
  6540. * test/MultiFileAllocationIteratorTest.cc
  6541. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6542. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6543. called if the number of file entries are greater than max open files.
  6544. * src/AbstractSingleDiskAdaptor.cc
  6545. * src/AbstractSingleDiskAdaptor.h
  6546. * src/DiskAdaptor.h
  6547. * src/MultiDiskAdaptor.cc
  6548. * src/MultiDiskAdaptor.h
  6549. * test/MultiDiskAdaptorTest.cc
  6550. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6551. Added a constuctor that receives struct timeval.
  6552. Added operator<.
  6553. * src/TimeA2.cc
  6554. * src/TimeA2.h
  6555. * test/TimeTest.cc
  6556. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6557. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6558. * src/CookieParser.cc
  6559. * test/CookieParserTest.cc
  6560. * test/HttpResponseTest.cc
  6561. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6562. Implmented the functions to parse date.
  6563. * src/TimeA2.cc
  6564. * src/TimeA2.h
  6565. * test/TimeTest.cc
  6566. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6567. Added "Firefox3 Cookie" feature to FeatureConfig
  6568. * src/FeatureConfig.cc
  6569. * src/FeatureConfig.h
  6570. * test/FeatureConfigTest.cc
  6571. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6572. Bump up version number to 0.16.0b
  6573. * configure.ac
  6574. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6575. Use pkg-config if is is available.
  6576. * m4/openssl.m4
  6577. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6579. * src/BtAnnounce.h
  6580. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. If an error occurred with a URI, remove identical URI from remaining
  6582. URI list because it is likely that same error occurred in the end and it
  6583. is waste of time.
  6584. * src/AbstractCommand.cc
  6585. * src/RequestGroup.cc
  6586. * src/RequestGroup.h
  6587. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6588. Removed wrong comment.
  6589. * src/DefaultPeerStorage.cc
  6590. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6592. Added return value of getpid() to argument of srand() to achieve more
  6593. randomized value.
  6594. * src/SimpleRandomizer.cc
  6595. * src/SimpleRandomizer.h
  6596. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Contact tracker frequently when the number of connections are 0 and
  6598. download is not finished yet.
  6599. * src/ActivePeerConnectionCommand.cc
  6600. * src/BtAnnounce.h
  6601. * src/DefaultBtAnnounce.cc
  6602. * src/DefaultBtAnnounce.h
  6603. * test/MockBtAnnounce.h
  6604. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6605. Moved threshold values to UTPexExtensionMessage.
  6606. * src/DefaultBtInteractive.cc
  6607. * src/Peer.cc
  6608. * src/Peer.h
  6609. * src/UTPexExtensionMessage.cc
  6610. * src/UTPexExtensionMessage.h
  6611. * test/UTPexExtensionMessageTest.cc
  6612. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6613. Added _incoming member to Peer class and made it true if the peer
  6614. initiated connection. Don't add those peer to UTPex message.
  6615. If extended handshake is received, assign _incoming to false.
  6616. * src/DefaultBtInteractive.cc
  6617. * src/HandshakeExtensionMessage.cc
  6618. * src/Peer.cc
  6619. * src/Peer.h
  6620. * src/PeerListenCommand.cc
  6621. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6622. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6623. Encoding Decoder. Removed size threshold for turning off on the fly
  6624. inflation because resulting file may or may not be inflated depending
  6625. on the file size and I think it is not expected by users.
  6626. This change fixes segmentation fault when Metalink file contains gzipped
  6627. file and its filesize is provided.
  6628. * src/HttpResponseCommand.cc
  6629. * src/HttpResponseCommand.h
  6630. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6631. Made Cookie immutable.
  6632. * src/Cookie.cc
  6633. * src/Cookie.h
  6634. * src/CookieParser.cc
  6635. * src/CookieParser.h
  6636. * src/CookieStorage.cc
  6637. * test/CookieParserTest.cc
  6638. * test/CookieStorageTest.cc
  6639. * test/NsCookieParserTest.cc
  6640. * test/Sqlite3MozCookieParserTest.cc
  6641. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6642. Removed CookieBox, CookieBoxFactory.
  6643. * src/CookieBox.cc
  6644. * src/CookieBox.h
  6645. * src/CookieBoxFactory.cc
  6646. * src/CookieBoxFactory.h
  6647. * src/Makefile.am
  6648. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Use CookieStorage class instead of CookieBox class.
  6650. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6651. * src/AbstractProxyRequestCommand.cc
  6652. * src/CookieStorage.cc
  6653. * src/DownloadEngine.cc
  6654. * src/DownloadEngine.h
  6655. * src/HttpConnection.cc
  6656. * src/HttpConnection.h
  6657. * src/HttpRequest.cc
  6658. * src/HttpRequest.h
  6659. * src/HttpRequestCommand.cc
  6660. * src/HttpResponse.cc
  6661. * src/HttpResponseCommand.cc
  6662. * src/HttpSkipResponseCommand.cc
  6663. * src/Makefile.am
  6664. * src/MultiUrlRequestInfo.cc
  6665. * src/Request.cc
  6666. * src/Request.h
  6667. * src/main.cc
  6668. * test/AllTest.cc
  6669. * test/CookieStorageTest.cc
  6670. * test/CookieTest.cc
  6671. * test/HttpRequestTest.cc
  6672. * test/HttpResponseTest.cc
  6673. * test/Makefile.am
  6674. * test/NsCookieParserTest.cc
  6675. * test/Sqlite3MozCookieParserTest.cc
  6676. * test/nscookietest.txt
  6677. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6678. Updated
  6679. * test/Cookies.sqlite
  6680. * test/nscookietest.txt
  6681. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Added tests for CookieStorage::load()
  6683. * test/CookieStorageTest.cc
  6684. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. Added CookieStorage class which is based on RFC2109 and manages cookies
  6686. more strictly than CookieBox and CookieBoxFactory class.
  6687. * src/CookieStorage.cc
  6688. * src/CookieStorage.h
  6689. * src/Cookie.cc
  6690. * src/Cookie.h
  6691. * test/CookieStorageTest.cc
  6692. * test/CookieTest.cc
  6693. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. Fixed the bug that commands are created more than the number of pieces.
  6695. * src/RequestGroup.cc
  6696. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. Fixed infinite loop bug in FTP when SIZE command failed.
  6698. * src/FtpNegotiationCommand.cc
  6699. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. Removed DirectDiskAdaptorTest.h
  6701. * test/Makefile.am
  6702. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6703. Fixed chunk checksum validation cannot detect trailing garbage data.
  6704. BUG#2074141
  6705. * src/AbstractSingleDiskAdaptor.cc
  6706. * src/AbstractSingleDiskAdaptor.h
  6707. * src/CheckIntegrityEntry.cc
  6708. * src/CheckIntegrityEntry.h
  6709. * src/DiskAdaptor.h
  6710. * src/MultiDiskAdaptor.cc
  6711. * src/MultiDiskAdaptor.h
  6712. * src/RequestGroup.cc
  6713. * test/DirectDiskAdaptorTest.cc
  6714. * test/MultiDiskAdaptorTest.cc
  6715. * test/TestUtil.cc
  6716. * test/TestUtil.h
  6717. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6718. Bump up version number of dht.dat file to 3. In version 3 format, time
  6719. is stored in 64bit, network byte order.
  6720. New build can load old format(version 2) but it saves the file in new
  6721. format. It means once you used new build, your dht.dat becomes
  6722. incompatible with older build.
  6723. * src/DHTRoutingTableDeserializer.cc
  6724. * src/DHTRoutingTableSerializer.cc
  6725. * test/DHTRoutingTableSerializerTest.cc
  6726. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6727. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6728. * test/Makefile.am
  6729. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. Bump up version number of .aria2 control file to 0001.
  6731. New aria2 can still load version 0000 file but it saves the file in
  6732. version 0001 format. It means that new aria2 can resume download
  6733. started by old aria2 but the opposite is not true.
  6734. * src/DefaultBtProgressInfoFile.cc
  6735. * src/DefaultBtProgressInfoFile.h
  6736. * test/DefaultBtProgressInfoFileTest.cc
  6737. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. Added ntoh64 and hton64 as inline functions.
  6739. * src/Util.cc
  6740. * test/UtilTest.cc
  6741. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6742. Added sqlite3 depenency and Firefox3 cookie support.
  6743. * README
  6744. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6745. State that firefox3 cookie is supported explicitly in the usage.
  6746. * src/usage_text.h
  6747. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Externalized message.
  6749. * src/RequestGroupMan.cc
  6750. * src/message.h
  6751. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Save temporary file first and rename to the destination on success.
  6753. Added test cases.
  6754. * src/RequestGroupMan.cc
  6755. * test/RequestGroupManTest.cc
  6756. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Fixed the bug that the number of connected peer is exceeding the limit
  6758. (55 by default) in seeding mode.
  6759. Multiplied 0.8 to _maxUploadSpeedLimit.
  6760. * src/ActivePeerConnectionCommand.cc
  6761. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6762. Clear table item.
  6763. * src/Dictionary.cc
  6764. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6765. Fixed error handling of lseek.
  6766. * src/AbstractDiskWriter.cc
  6767. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6768. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6769. style cookie file.
  6770. * src/usage_text.h
  6771. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6772. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6773. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6774. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6775. * src/Util.cc
  6776. * src/Util.h
  6777. * src/CookieParser.cc
  6778. * test/UtilTest.cc
  6779. * test/CookieParserTest.cc
  6780. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6781. Separate the implementation to load old mozilla format of cookie to
  6782. NsCookieParser class.
  6783. * src/CookieBoxFactory.cc
  6784. * src/CookieBoxFactory.h
  6785. * src/NsCookieParser.cc
  6786. * src/NsCookieParser.h
  6787. * test/NsCookieParserTest.cc
  6788. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6789. Made parse() const
  6790. * src/Sqlite3MozCookieParser.cc
  6791. * src/Sqlite3MozCookieParser.h
  6792. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Added firefox3 cookie support based on the patch submitted by
  6794. tizianomueller.
  6795. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6796. this functionality.
  6797. * configure.ac
  6798. * m4/sqlite3.m4
  6799. * src/CookieBoxFactory.cc
  6800. * src/CookieBoxFactory.h
  6801. * src/Makefile.am
  6802. * src/Makefile.in
  6803. * src/Sqlite3MozCookieParser.cc
  6804. * src/Sqlite3MozCookieParser.h
  6805. * src/main.cc
  6806. * test/CookieBoxFactoryTest.cc
  6807. * test/Makefile.am
  6808. * test/Makefile.in
  6809. * test/Sqlite3MozCookieParserTest.cc
  6810. * test/badcookies.sqlite
  6811. * test/cookies.sqlite
  6812. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6813. Added Danish and Greek translations.
  6814. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6815. Great thanks to all translators.
  6816. * po/LINGUAS
  6817. * po/el.po
  6818. * po/da.po
  6819. * po/es.po
  6820. * po/ca.po
  6821. * po/nn.po
  6822. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6823. Fixed man page: --follow-bittorrent should be --follow-torrent
  6824. * doc/aria2c.1.txt
  6825. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6826. Fixed: numCommand is less than the value specified in -C option.
  6827. * src/RequestGroup.cc
  6828. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6829. Fixed occasional assertion failure in PieceSegment.
  6830. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6831. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6832. creation of duplicate segments and one of the segment was finished then
  6833. assertion failure was caused.
  6834. * src/SegmentMan.cc
  6835. * test/SegmentManTest.cc
  6836. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Added options to load/save the server's performance/status to a file
  6838. and the timeout to drop their data.
  6839. --server-stat-of=FILE specifies the file to which performance data
  6840. is saved.
  6841. --server-stat-if=FILE specifies the file to read previously saved
  6842. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6843. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6844. TIMEOUT is specified in seconds and the default value is 24hours.
  6845. * src/MultiUrlRequestInfo.cc
  6846. * src/OptionHandlerFactory.cc
  6847. * src/RequestGroupMan.cc
  6848. * src/RequestGroupMan.h
  6849. * src/ServerStatMan.cc
  6850. * src/ServerStatMan.h
  6851. * src/option_processing.cc
  6852. * src/prefs.cc
  6853. * src/prefs.h
  6854. * test/ServerStatManTest.cc
  6855. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6856. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6857. * src/ServerStatMan.cc
  6858. * src/ServerStatMan.h
  6859. * test/ServerStatManTest.cc
  6860. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6861. Implemented ServerStatMan::load(...) function and its test case.
  6862. * src/ServerStat.cc
  6863. * src/ServerStat.h
  6864. * src/ServerStatMan.cc
  6865. * test/ServerStatManTest.cc
  6866. * test/ServerStatTest.cc
  6867. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. Use time_t instead of int32_t. Use int64_t where milli second is
  6869. expected.
  6870. * src/TimeA2.cc
  6871. * src/TimeA2.h
  6872. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Implemented ServerStatMan::save(...) function and its test case.
  6874. * src/ServerStat.cc
  6875. * src/ServerStat.h
  6876. * src/ServerStatMan.cc
  6877. * src/ServerStatMan.h
  6878. * test/ServerStatManTest.cc
  6879. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Now aria2 uses name attribute in Metalink as local filename in
  6881. BitTorrent downloads. BUG#2033999
  6882. * src/BtContext.h
  6883. * src/BtDependency.cc
  6884. * src/DefaultBtContext.cc
  6885. * src/DefaultBtContext.h
  6886. * src/SingleFileDownloadContext.cc
  6887. * src/SingleFileDownloadContext.h
  6888. * test/BtDependencyTest.cc
  6889. * test/DefaultBtContextTest.cc
  6890. * test/MockBtContext.h
  6891. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6892. Added AC_C_BIGENDIAN
  6893. * src/configure.ac
  6894. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6895. Limited numCommand less than or equal to the number of piece.
  6896. * src/RequestGroup.cc
  6897. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6898. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6899. directive.
  6900. * test/DefaultPieceStorageTest.cc
  6901. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6902. Fixed memory leak in test code
  6903. * test/AnnounceListTest.cc
  6904. * test/DefaultPeerListProcessorTest.cc
  6905. * test/DefaultPeerStorageTest.cc
  6906. * test/MetaFileUtilTest.cc
  6907. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6908. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6909. * src/DefaultPieceStorage.cc
  6910. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Initialized _directIOAllowed
  6912. * src/MultiDiskAdaptor.cc
  6913. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6914. Fixed memory leak
  6915. * src/GZipDecoder.cc
  6916. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Fixed memory leak
  6918. * src/MetalinkParserStateMachine.cc
  6919. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Fixed memory leak
  6921. * src/Dictionary.cc
  6922. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6923. Fixed memory leak
  6924. * src/IteratableChunkChecksumValidator.h
  6925. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6926. Fixed unmatched malloc/free.
  6927. * src/IteratableChunkChecksumValidator.cc
  6928. * src/IteratableChecksumValidator.cc
  6929. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6930. Removed max chunk size check. This change fixes BUG#2040169
  6931. * src/ChunkedDecoder.cc
  6932. * src/ChunkedDecoder.h
  6933. * test/ChunkedDecoderTest.cc
  6934. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6935. Implemented download speed based URI selection algorithm.
  6936. Introduced new option --uri-selector.
  6937. If --uri-selector=feedback is given, aria2 uses download speed observed
  6938. in the previous downloads and chooses fastest server in the URI list.
  6939. Currently at most 10 URIs are considered to introduce randomeness for
  6940. finding better servers. The speed is average download speed in the
  6941. downloads.
  6942. On the other hand, if --uri-selector=inorder is given, which is default,
  6943. URI is tried in order in URI list.
  6944. The usage text for the new option has not been written yet.
  6945. * src/AbstractCommand.cc
  6946. * src/DownloadCommand.cc
  6947. * src/DownloadEngine.cc
  6948. * src/DownloadEngineFactory.cc
  6949. * src/InOrderURISelector.cc
  6950. * src/InOrderURISelector.h
  6951. * src/OptionHandlerFactory.cc
  6952. * src/PeerStat.h
  6953. * src/RequestGroup.cc
  6954. * src/RequestGroup.h
  6955. * src/RequestGroupMan.cc
  6956. * src/RequestGroupMan.h
  6957. * src/SegmentMan.cc
  6958. * src/SegmentMan.h
  6959. * src/ServerStat.cc
  6960. * src/ServerStat.h
  6961. * src/ServerStatMan.cc
  6962. * src/ServerStatMan.h
  6963. * src/ServerStatURISelector.cc
  6964. * src/ServerStatURISelector.h
  6965. * src/URISelector.h
  6966. * src/option_processing.cc
  6967. * src/prefs.cc
  6968. * src/prefs.h
  6969. * test/InOrderURISelectorTest.cc
  6970. * test/RequestGroupManTest.cc
  6971. * test/ServerStatManTest.cc
  6972. * test/ServerStatURISelectorTest.cc
  6973. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6974. * Release 0.15.1+2
  6975. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Bump up version number to 0.15.1+2
  6977. * configure.ac
  6978. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6979. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6980. * m4/aria2_arg.m4
  6981. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6982. * Release 0.15.1+1
  6983. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Bump up version number to 0.15.1+1
  6985. * configure.ac
  6986. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6987. Fixed the bug that causes segmentaion fault when resuming download
  6988. using metalink without size tag. Reproducible only using HTTP URI.
  6989. * src/HttpResponseCommand.cc
  6990. * src/FtpNegotiationCommand.cc
  6991. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. * Release 0.15.1
  6993. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6994. Updated Bulgarian and French translations, thanks to all translators.
  6995. * po/bg.po
  6996. * po/fr.po
  6997. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. Bump up version number to 0.15.1
  6999. * configure.ac
  7000. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7001. Avoid repeated call of gettimeofday() when calculating speed.
  7002. * src/SpeedCalc.cc
  7003. * src/SpeedCalc.h
  7004. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7005. Removed writable check when socket's send buffer is full in BitTorrent
  7006. downloads to lower CPU usage.
  7007. * src/PeerInteractionCommand.cc
  7008. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. Fixed broken gzip inflation.
  7010. Turn off segmented downloading if gzip content is smaller than or equal
  7011. to 1MiB and inflate the data on the fly, because HTTP response header
  7012. doesn't contain the length of inflated file we can't determin where
  7013. the chunk of data should be written.
  7014. On the other hand, if gzip content is larger than 1MB, then turn off
  7015. on the fly inflation, because some servers returns "content-type: gzip"
  7016. for *.tgz, *.gz files.
  7017. * src/DownloadCommand.cc
  7018. * src/HttpResponseCommand.cc
  7019. * src/HttpResponseCommand.h
  7020. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Applied tizianomueller's patch to fix compile error.
  7022. * test/BitfieldManTest.cc
  7023. * test/BtRequestMessageTest.cc
  7024. * test/DefaultBtContextTest.cc
  7025. * test/DefaultDiskWriterTest.cc
  7026. * test/DefaultPieceStorageTest.cc
  7027. * test/HttpHeaderProcessorTest.cc
  7028. * test/HttpResponseTest.cc
  7029. * test/Metalink2RequestGroupTest.cc
  7030. * test/MetalinkParserControllerTest.cc
  7031. * test/MetalinkProcessorTest.cc
  7032. * test/PeerSessionResourceTest.cc
  7033. * test/UtilTest.cc
  7034. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7035. * Release 0.15.0
  7036. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7037. Reordered src files in POTFILES.in so that usage text appears first.
  7038. * po/POTFILES.in
  7039. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7040. Bump up version number to 0.15.0
  7041. * configure.ac
  7042. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Added Bulgarian translation.
  7044. Updated Catalan, Spanish, French and Japanese translations.
  7045. Thanks to all translators.
  7046. * po/LINGUAS
  7047. * po/bg.po
  7048. * po/ca.po
  7049. * po/es.po
  7050. * po/fr.po
  7051. * po/ja.po
  7052. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Updated feature list. Added libz for dependency section.
  7054. Added a description about unit testing using CppUnit.
  7055. * README
  7056. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Added a test for libz. Quoted where it is necessary.
  7058. * build_test.sh
  7059. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7060. Added GZip to `Enabled Features' list.
  7061. * src/FeatureConfig.cc
  7062. * src/FeatureConfig.h
  7063. * test/FeatureConfigTest.cc
  7064. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7065. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7066. the transfer has not yet started.
  7067. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7068. * src/SegmentMan.cc
  7069. * src/SegmentMan.h
  7070. * test/SegmentManTest.cc
  7071. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7072. Cache last calculated average download/upload speed.
  7073. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7074. cached value.
  7075. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7076. * src/PeerStat.h
  7077. * src/SpeedCalc.cc
  7078. * src/SpeedCalc.h
  7079. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7080. Call parseUrl directly.
  7081. * src/Request.cc (resetUrl)
  7082. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7083. Supported absolute/relative path in Location header field.
  7084. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7085. * src/HttpHeader.cc
  7086. * src/HttpHeader.h
  7087. * src/HttpResponse.cc
  7088. * src/HttpSkipResponseCommand.cc
  7089. * src/Request.cc
  7090. * test/HttpHeaderTest.cc
  7091. * test/HttpResponseTest.cc
  7092. * test/RequestTest.cc
  7093. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7094. Changed help text for --load-cookie option.
  7095. * doc/aria2c.1.txt
  7096. * src/usage_text.h
  7097. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Regenerated test/Makefile.in to remove stale ChangeLog.
  7099. * test/Makefile.in
  7100. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. Updated po files.
  7102. * po/aria2c.pot
  7103. * po/*.po
  7104. * po/*.gmo
  7105. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7106. Bump up version number to 0.15.0b
  7107. * configure.ac
  7108. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. Externalize messages.
  7110. * src/RequestGroupMan.cc
  7111. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7112. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7113. Use File::exists() instead of File::isFile() to allow non-regular file
  7114. such as block special files.
  7115. * src/AbstractDiskWriter.cc
  7116. * src/MultiDiskWriter.cc
  7117. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7118. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7119. * src/gai_strerror.h
  7120. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7121. Fixed compile error. Thanks gknauf for the patch.
  7122. * src/asctime_r.c
  7123. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7124. Included asctime_r.h from a2time.h.
  7125. * src/a2time.h
  7126. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7127. Added a message "aria2 doesn't verify signature" to log message when
  7128. signature file is saved.
  7129. * src/RequestGroupMan.cc
  7130. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. Added the ability to save signature when download is completed if
  7132. signature is available. The filename of signature file is the path to
  7133. download file followed by ".sig". If it already exists, then signature
  7134. will not be saved.
  7135. * src/RequestGroupMan.cc
  7136. * src/Signature.cc
  7137. * test/SignatureTest.cc
  7138. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7139. Updated the descriptions for --bt-seed-unverified.
  7140. * doc/aria2c.1
  7141. * doc/aria2c.1.html
  7142. * doc/aria2c.1.txt
  7143. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7144. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7145. that this is not going to verify files using piece hashes.
  7146. * src/HelpItemFactory.cc
  7147. * src/OptionHandlerFactory.cc
  7148. * src/RequestGroup.cc
  7149. * src/option_processing.cc
  7150. * src/prefs.cc
  7151. * src/prefs.h
  7152. * src/usage_text.h
  7153. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Added the ability to retrieve signature from Metalink file.
  7155. A retrieved signature is stored in Signature class and it is held by
  7156. DownloadContext class. Note that aria2 doesn't verify signature.
  7157. * src/DownloadContext.cc
  7158. * src/DownloadContext.h
  7159. * src/Makefile.am
  7160. * src/Makefile.in
  7161. * src/Metalink2RequestGroup.cc
  7162. * src/MetalinkEntry.cc
  7163. * src/MetalinkEntry.h
  7164. * src/MetalinkParserController.cc
  7165. * src/MetalinkParserController.h
  7166. * src/MetalinkParserStateMachine.cc
  7167. * src/MetalinkParserStateMachine.h
  7168. * src/Signature.cc
  7169. * src/Signature.h
  7170. * src/SignatureMetalinkParserState.cc
  7171. * src/SignatureMetalinkParserState.h
  7172. * src/VerificationMetalinkParserState.cc
  7173. * src/VerificationMetalinkParserState.h
  7174. * test/Metalink2RequestGroupTest.cc
  7175. * test/MetalinkParserControllerTest.cc
  7176. * test/MetalinkProcessorTest.cc
  7177. * test/test.xml
  7178. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Close DiskAdaptor after renaming file.
  7180. * src/RequestGroup.cc
  7181. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7182. Corrected indentation
  7183. * src/DefaultBtProgressInfoFile.cc
  7184. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7185. Moved the calls of std::ios::exceptions() inside of try-catch block
  7186. because if an error occurred in constructor of std::fstream, then
  7187. exception is thrown immediately when std::ios::exceptions() is called
  7188. which results unhandled exception and aria2c aborts.
  7189. * src/DefaultBtProgressInfoFile.cc
  7190. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7191. Added the test for the previous change in DefaultBtContext.cc
  7192. * test/DefaultBtContextTest.cc
  7193. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7194. Fixed the bug that causes infinite loop when the number of pieces are
  7195. fewer than allowed fast set size which is 10 by default.
  7196. * src/DefaultBtContext.cc
  7197. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Updated the descriptions for -j, -s. Added --bt-seed.
  7199. * doc/aria2c.1
  7200. * doc/aria2c.1.html
  7201. * doc/aria2c.1.txt
  7202. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7203. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7204. aria2 seeds previously downloaded files without validating piece hashs.
  7205. * src/HelpItemFactory.cc
  7206. * src/OptionHandlerFactory.cc
  7207. * src/RequestGroup.cc
  7208. * src/option_processing.cc
  7209. * src/prefs.cc
  7210. * src/prefs.h
  7211. * src/usage_text.h
  7212. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Updated DESCRIPTION of man page.
  7214. * doc/aria2c.1
  7215. * doc/aria2c.1.html
  7216. * doc/aria2c.1.txt
  7217. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7218. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7219. Don't define `struct addrinfo' when __sun is defined.
  7220. * src/getaddrinfo.h
  7221. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7223. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7224. second argument is of type `struct _stati64'. Otherwise it is defined as
  7225. `struct stat'.
  7226. * src/AbstractDiskWriter.cc
  7227. * src/File.cc
  7228. * src/File.h
  7229. * src/a2io.h
  7230. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Fixed the compile error in hurd-i386
  7232. See the original bug report:
  7233. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7234. * src/a2io.h
  7235. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7236. Code cleanup.
  7237. * src/PeerAbstractCommand.cc
  7238. * src/PeerAbstractCommand.h
  7239. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7240. Removed TransferEncoding.
  7241. * src/DownloadCommand.cc
  7242. * src/DownloadCommand.h
  7243. * src/HttpResponseCommand.cc
  7244. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7245. Updated po files.
  7246. * po/aria2c.pot
  7247. * po/*.po
  7248. * po/*.gmo
  7249. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7250. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7251. * src/A2STR.cc
  7252. * src/A2STR.h
  7253. * src/ChunkedDecoder.cc
  7254. * src/ChunkedDecoder.h
  7255. * src/ChunkedEncoding.cc: Removed
  7256. * src/ChunkedEncoding.h: Removed
  7257. * src/DownloadCommand.cc
  7258. * src/DownloadCommand.h
  7259. * src/HttpDownloadCommand.cc
  7260. * src/HttpResponse.cc
  7261. * src/HttpResponse.h
  7262. * src/HttpResponseCommand.cc
  7263. * src/HttpSkipResponseCommand.cc
  7264. * src/HttpSkipResponseCommand.h
  7265. * src/Makefile.am
  7266. * src/TransferEncoding.h: Removed
  7267. * test/ChunkedDecoderTest.cc
  7268. * test/ChunkedEncodingTest.cc: Removed
  7269. * test/HttpResponseTest.cc
  7270. * test/Makefile.am
  7271. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Use append instead of insert.
  7273. * src/GZipDecoder.cc
  7274. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7275. Updated doc
  7276. * src/Decoder.h
  7277. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7278. Updated usage text for -s option.
  7279. * src/usage_text.h
  7280. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7281. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7282. * src/Request.cc
  7283. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7284. Cleaned up configure.ac.
  7285. * configure.ac
  7286. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7287. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7288. AC_ARG_ENABLE.
  7289. * configure.ac
  7290. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7292. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7293. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7294. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7295. fly and writes decoded data to a local disk.
  7296. * README
  7297. * README.html
  7298. * configure.ac
  7299. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7300. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7301. * m4/libz.m4
  7302. * src/Decoder.h
  7303. * src/DownloadCommand.cc
  7304. * src/DownloadCommand.h
  7305. * src/Exception.h
  7306. * src/GZipDecoder.cc
  7307. * src/GZipDecoder.h
  7308. * src/HttpHeader.cc
  7309. * src/HttpHeader.h
  7310. * src/HttpRequest.cc
  7311. * src/HttpRequest.h
  7312. * src/HttpResponse.cc
  7313. * src/HttpResponse.h
  7314. * src/HttpResponseCommand.cc
  7315. * src/Makefile.am
  7316. * test/GZipDecoderTest.cc
  7317. * test/HttpRequestTest.cc
  7318. * test/HttpResponseTest.cc
  7319. * test/Makefile.am
  7320. * test/Makefile.in
  7321. * test/gzip_decode_test.gz
  7322. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. Clarified usage of -j option.
  7324. * src/usage_text.h
  7325. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. Disabled getting size from the response of RETR.
  7327. If SIZE command failed, then disable resuming and segmented downloading.
  7328. * src/FtpConnection.cc
  7329. * src/FtpConnection.h
  7330. * src/FtpNegotiationCommand.cc
  7331. * src/FtpNegotiationCommand.h
  7332. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7333. Use digits to find first byte of file size, which makes the intention
  7334. of the code clearer.
  7335. * src/FtpConnection.cc
  7336. Don't call validateTotalLength() when size is 0.
  7337. * src/FtpNegotiationCommand.cc
  7338. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. Updated po files.
  7340. * po/aria2c.pot
  7341. * po/*.gmo
  7342. * po/*.po
  7343. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7344. Clarified usage text for --split option.
  7345. * src/usage_text.h
  7346. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7347. Bump up version number to 0.15.0dev. "dev" means "development"
  7348. version, which means I started the development of the next release!
  7349. * src/configure.ac
  7350. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. If FTP server returns negative response with REST raw command and
  7352. requested range is not 0, throw exception. If requested range is 0,
  7353. continue download a file from 0 byte.
  7354. * src/FtpNegotiationCommand.cc
  7355. * src/FtpNegotiationCommand.h
  7356. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Supported FTP server which don't recognize SIZE raw command.
  7358. If SIZE raw command is failed, aria2 will try to get file size
  7359. from the response of RETR raw command. If both attempts are failed,
  7360. then resuming and segmented downloading are disabled.
  7361. * src/FtpConnection.cc
  7362. * src/FtpConnection.h
  7363. * src/FtpNegotiationCommand.cc
  7364. * src/FtpNegotiationCommand.h
  7365. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. * Release 0.14.0+1
  7367. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7368. Bump up version number to 0.14.0+1
  7369. * src/configure.ac
  7370. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. Fixed the code that refers static member variable from non-static
  7372. context.
  7373. * src/DefaultPeerStorage.cc
  7374. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7375. * Release 0.14.0
  7376. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7377. Added build test script
  7378. * build_test.sh
  7379. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7380. Updated ja.po
  7381. * src/ja.po
  7382. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7383. Bump up version number to 0.14.0
  7384. * src/configure.ac
  7385. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. Updated ja.po and fr.po. Great thanks for french translators and
  7387. Sebastien WILLEMIJNS.
  7388. * po/fr.po
  7389. * po/ja.po
  7390. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Added configure option to enable/disable epoll support.
  7392. * configure.ac
  7393. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Updated man page.
  7395. * doc/aria2c.1.txt
  7396. * doc/aria2c.1
  7397. * doc/aria2c.1.html
  7398. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Added missing default value '5' to the usage of --split option.
  7400. * src/HelpItemFactory.cc
  7401. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Filled up pieces based on the number of missing blocks, rather than
  7403. simplay the number of piece * block length.
  7404. * src/BtRequestFactory.h
  7405. * src/DefaultBtInteractive.cc
  7406. * src/DefaultBtInteractive.h
  7407. * src/DefaultBtRequestFactory.cc
  7408. * src/DefaultBtRequestFactory.h
  7409. * src/Piece.cc
  7410. * src/Piece.h
  7411. * test/BitfieldManTest.cc
  7412. * test/DefaultBtRequestFactoryTest.cc
  7413. * test/MockBtRequestFactory.h
  7414. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Made _epEvents a member variable.
  7416. * src/DownloadEngine.cc
  7417. * src/DownloadEngine.h
  7418. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7419. Cancel download if http redirect is bounded more than 20 times.
  7420. * src/AbstractCommand.cc
  7421. * src/HttpSkipResponseCommand.cc
  7422. * src/Request.cc
  7423. * src/Request.h
  7424. * test/RequestTest.cc
  7425. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7426. Fixed unhandled exception(removed keyword `new').
  7427. * src/SocketCore.cc (initEPOLL)
  7428. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7429. Removed visit(const MetaEntry*)
  7430. * src/MetaEntryVisitor.h:
  7431. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7432. and made them virtual.
  7433. * src/BencodeVisitor.h
  7434. * src/BencodeVisitor.cc
  7435. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7436. Updated po files.
  7437. * po/aria2c.pot
  7438. * po/*.po
  7439. * po/*.gmo
  7440. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7442. the number of socket to watch out.
  7443. * src/PeerInteractionCommand.cc
  7444. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. When there is not enough space in disk when writing a chunk of data,
  7446. aria2 now prints the message to the console to warn user and aborts
  7447. its download. Not all downloads are canceled because some downloads
  7448. may use another disk or partition. BUG#1640332
  7449. * src/AbstractDiskWriter.cc
  7450. * src/PeerAbstractCommand.cc
  7451. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7452. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7453. setHaltRequested(true) to cancel download.
  7454. * src/PeerInteractionCommand.h
  7455. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7456. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7457. socket from int to sock_t as sockets are unsigned in Windows.
  7458. For AsyncNameResolver, DownloadEngine, I did additional modification
  7459. for the portion of the code changed according to epoll support.
  7460. I defined sock_t in a2netcompat.h to use sock_t without including
  7461. SocketCore.h.
  7462. * src/AsyncNameResolver.cc
  7463. * src/AsyncNameResolver.h
  7464. * src/DownloadEngine.cc
  7465. * src/DownloadEngine.h
  7466. * src/SocketCore.cc
  7467. * src/SocketCore.h
  7468. * src/a2netcompat.h
  7469. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7470. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7471. changes in the patch were applied.
  7472. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7473. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7474. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7475. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7477. a2io.h and common.h were modified.
  7478. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7479. MinGW.
  7480. * src/common.h: Changed off_t to 64 bit in MinGW.
  7481. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7482. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7483. only a2netcompat.h is modified.
  7484. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7485. directives.
  7486. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7487. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7488. only gai_strerror.h is modified.
  7489. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7490. winsock errors in MinGW.
  7491. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7492. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7493. follow sources are applied.
  7494. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7495. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7496. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7497. I included locale.h from Platform.cc.
  7498. * src/main.cc: Moved common setup/teardown code to Platform class.
  7499. * test/AllTest.cc: Use Platform class.
  7500. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7501. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7502. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7503. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7504. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7505. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7507. aria2-0.13.2+1-mingw-2.patch.
  7508. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7509. systems which don't have termious.h. I moved the directive inside of
  7510. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7511. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7512. anyway.
  7513. * src/asctime_r.h
  7514. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7515. I added 2nd argument to the prototype declaration.
  7516. * src/StringFormat.cc: Get rid of vasprintf.
  7517. * src/getaddrinfo.h: Fixed constants.
  7518. * configure.ac: Added the check for asctime_r function.
  7519. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7520. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7521. Added writable test for Socket when the sending message is in progress.
  7522. Usually the sending message is piece message. Without wriable check,
  7523. upload latency is dropped to more than 1sec.
  7524. * src/PeerInteractionCommand.cc
  7525. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7526. Create only requested files and files which shares a piece with
  7527. requested file in multi-torrent downloads. Directory structures are
  7528. also created in the same rule.
  7529. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7530. DiskWriterEntry as in the previous implementation.
  7531. * src/MultiDiskWriter.cc
  7532. * src/MultiFileAllocationIterator.cc
  7533. * src/MultiFileAllocationIterator.h
  7534. * test/MultiFileAllocationIteratorTest.cc
  7535. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7536. Commented out -lprofiler
  7537. * src/Makefile.am
  7538. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7539. Bump up version number to 0.14.0b.
  7540. * src/configure.ac
  7541. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Actively establish connection to peers in seeding, when peer cache
  7543. is not full and max upload speed limit is not reached.
  7544. * src/ActivePeerConnectionCommand.cc
  7545. * src/ActivePeerConnectionCommand.h
  7546. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7548. to make room more fleshy, recently found peers.
  7549. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7550. it.
  7551. * src/DefaultPeerStorage.cc
  7552. * test/DefaultPeerStorageTest.cc
  7553. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7554. Returns cached data only when the previous receiveHandshake() is called
  7555. with peek = true.
  7556. * src/PeerConnection.cc (receiveHandshake)
  7557. * src/PeerConnection.h (receiveHandshake)
  7558. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7559. Changed default value of -s option from 1 to 5.
  7560. Also max value of -s option is changed from 5 to 16.
  7561. * src/HelpItemFactory.cc
  7562. * src/OptionHandlerFactory.cc
  7563. * src/option_processing.cc
  7564. * src/usage_text.h
  7565. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. Changed -s options behavior. Now it means the number of connections
  7567. made simultaneously in each http/ftp download.
  7568. If 1 URL is specified, the behavior is the same with old implementation.
  7569. If -s N is given and more than N URLs are specified, first N URLs are
  7570. used and remaining URLs are used for backup. If less than N URLs are
  7571. specified, some of URLs are used more than once so that totally N
  7572. connections are made simultaneously.
  7573. * src/main.cc
  7574. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Included missing iosfwd or ostream header.
  7576. * src/RequestGroupMan.cc
  7577. * src/TaggedItem.cc
  7578. * src/TaggedItem.h
  7579. * src/Util.cc
  7580. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7582. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7583. * src/HttpConnection.cc: Included missing sstream.
  7584. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7585. Added --bt-max-open-files option.
  7586. * src/DefaultPieceStorage.cc
  7587. * src/HelpItemFactory.cc
  7588. * src/MultiDiskAdaptor.cc
  7589. * src/MultiDiskAdaptor.h
  7590. * src/OptionHandlerFactory.cc
  7591. * src/option_processing.cc
  7592. * src/prefs.cc
  7593. * src/prefs.h
  7594. * src/usage_text.h
  7595. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7596. Fixed the bug that aria2 aborts when a path to a directory is given
  7597. in command-line.
  7598. * src/ProtocolDetector.cc
  7599. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7600. Limited the number files opened in each BitTorrent download. The default
  7601. value is 100. The option to change this value will be added.
  7602. * src/MultiDiskAdaptor.cc
  7603. * src/MultiDiskAdaptor.h
  7604. * src/MultiFileAllocationIterator.cc
  7605. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7606. Fixed the bug that HTTP downloads don't start with old libraries.
  7607. * src/HttpHeaderProcessor.cc
  7608. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7609. Use empty() instead of size() > 0.
  7610. * src/HttpConnection.cc
  7611. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7612. Drop connection if the incoming peer ID is the same with localhost's
  7613. one. The previous implementation drops connection when incoming peer's
  7614. IP address is the same with localhost's one.
  7615. * src/PeerListenCommand.cc
  7616. * src/DefaultBtInteractive.cc
  7617. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Returns cached data without checking whether socket is readable
  7619. if the cache is available.
  7620. * src/PeerConnection.cc (receiveHandshake)
  7621. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7622. Included stdint.h
  7623. * src/common.h
  7624. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Removed duplicate HAVE_GETTIMEOFDAY
  7626. * src/Makefile.am
  7627. * src/Makefile.in
  7628. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Use interval as a minInterval when minInterval is not supplied.
  7630. * src/DefaultBtAnnounce.cc
  7631. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7633. attempt is failed, then 2nd attempt get kicked out more quickly.
  7634. And it is now static const member of DefaultBtAnnounce.
  7635. * src/DefaultBtAnnounce.h
  7636. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7637. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7638. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7639. * src/ActivePeerConnectionCommand.cc
  7640. * src/BtConstants.h
  7641. * src/BtRuntime.h
  7642. * src/DHTGetPeersCommand.cc
  7643. * src/DefaultBtAnnounce.cc
  7644. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7645. BtRuntime::MAX_PEERS.
  7646. * src/DefaultPeerStorage.h
  7647. * src/InitiatorMSEHandshakeCommand.cc
  7648. * src/PeerInitiateConnectionCommand.cc
  7649. * src/PeerInteractionCommand.cc
  7650. * src/PeerReceiveHandshakeCommand.cc
  7651. * src/TrackerWatcherCommand.cc
  7652. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7653. Always Connect to _numNewConnection
  7654. * src/ActivePeerConnectionCommand.cc
  7655. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7656. Made `begin' unsigned int.
  7657. * src/GrowSegment.h
  7658. * src/Piece.cc
  7659. * src/Piece.h
  7660. * src/PiecedSegment.cc
  7661. * src/PiecedSegment.h
  7662. * src/Segment.h
  7663. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7664. Calculate piece hash when data is arrived if the data is arrived in
  7665. order. This removes additional read operation for hash calculation.
  7666. If the data is arrived in out of order, the hash is calucated when the
  7667. piece is completed. This is the same behavior as the old implementation.
  7668. * src/BtPieceMessage.cc
  7669. * src/DefaultBtProgressInfoFile.cc
  7670. * src/DefaultPieceStorage.cc
  7671. * src/DownloadCommand.cc
  7672. * src/DownloadCommand.h
  7673. * src/DownloadEngine.cc
  7674. * src/GrowSegment.cc
  7675. * src/GrowSegment.h
  7676. * src/Piece.cc
  7677. * src/Piece.h
  7678. * src/PiecedSegment.cc
  7679. * src/PiecedSegment.h
  7680. * src/Segment.h
  7681. * test/PieceTest.cc
  7682. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7683. Try to keep the ordering of outgoing piece message.
  7684. * src/DefaultBtMessageDispatcher.cc
  7685. (DefaultBtMessageDispatcher::sendMessages)
  7686. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7687. Fixed busy loop when error/hup epoll events occur.
  7688. * src/AbstractCommand.cc
  7689. * src/PeerAbstractCommand.cc
  7690. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. Added --bt-request-peer-speed-limit option, which was a constant
  7692. SLOW_SPEED_THRESHOLD.
  7693. * src/ActivePeerConnectionCommand.cc
  7694. * src/ActivePeerConnectionCommand.h
  7695. * src/BtConstants.h
  7696. * src/HelpItemFactory.cc
  7697. * src/OptionHandlerFactory.cc
  7698. * src/PeerReceiveHandshakeCommand.cc
  7699. * src/option_processing.cc
  7700. * src/prefs.cc
  7701. * src/prefs.h
  7702. * src/usage_text.h
  7703. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. Removed repeated call of getTopDirPath(). Instead, call it once and
  7705. cache the result.
  7706. * src/MultiDiskAdaptor.cc
  7707. * src/MultiDiskAdaptor.h
  7708. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7709. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7710. Fixed compile error on debian etch.
  7711. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7712. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7713. it is undefined.
  7714. * src/Util.cc (ULLONG_MAX)
  7715. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Added epoll support. Use epoll if it is available. If not, use select.
  7717. When async dns is enabled in compile time, epoll support is enabled
  7718. only when aria2 is built with c-ares. This condition statement is
  7719. defined in a2io.h.
  7720. Currently aria2 supports both c-ares and ares, but ares is maintained
  7721. for quite a while and debian already has c-ares package, ares support
  7722. will be dropped in the future version.
  7723. * configure.ac
  7724. * src/AbstractCommand.cc
  7725. * src/AsyncNameResolver.cc
  7726. * src/AsyncNameResolver.h
  7727. * src/Command.cc
  7728. * src/Command.h
  7729. * src/DownloadEngine.cc
  7730. * src/DownloadEngine.h
  7731. * src/PeerAbstractCommand.cc
  7732. * src/SocketCore.cc
  7733. * src/SocketCore.h
  7734. * src/a2io.h
  7735. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7736. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7737. directive.
  7738. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7739. Do not do write operation to /dev/null file.
  7740. * src/LogFactory.cc
  7741. * src/SimpleLogger.cc
  7742. Replaced vasprintf with vsnprintf
  7743. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7744. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7745. * src/BtRequestMessage.cc
  7746. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7747. for segmentation fault caused by previous commit.
  7748. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7749. Reduced the usage of gettimeofday().
  7750. * src/DefaultBtMessageDispatcher.cc
  7751. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7752. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7753. * src/RequestSlot.cc
  7754. * src/RequestSlot.h
  7755. (RequestSlot::isTimeout)
  7756. Made RequestSlot have a reference to Piece object to avoid find
  7757. Piece repeatedly.
  7758. * src/DefaultBtMessageDispatcher.cc
  7759. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7760. * src/RequestSlot.cc
  7761. * src/RequestSlot.h
  7762. (RequestSlot::getPiece)
  7763. * test/DefaultBtMessageDispatcherTest.cc
  7764. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7765. * src/TimeA2.cc
  7766. * src/TimeA2.h
  7767. (Time::difference): New function.
  7768. (Time::elapsed): Done optimization.
  7769. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7770. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7771. directive.
  7772. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. * src/option_processing.cc: Added missing `defined' keyword to #if
  7774. directive.
  7775. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Bump up version number to 0.13.2+1
  7777. * src/configure.ac
  7778. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7779. Refactored broken outstanding piece handling.
  7780. * src/DefaultPieceStorage.cc
  7781. * src/DefaultPieceStorage.h
  7782. * src/Piece.cc
  7783. * src/Piece.h
  7784. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7785. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7786. name collision of static variable and predefined macro.
  7787. * src/BtContext.cc
  7788. * src/BtContext.h
  7789. * src/CookieBoxFactory.cc
  7790. * src/CookieBoxFactory.h
  7791. * src/CookieParser.cc
  7792. * src/CookieParser.h
  7793. * src/DefaultBtContext.cc
  7794. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7795. * src/RequestGroup.cc
  7796. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7797. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. * Release 0.13.2
  7799. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7800. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7801. * po/fr.po
  7802. * po/ja.po
  7803. * po/aria2c.pot
  7804. * po/*.po
  7805. * po/*.gmo
  7806. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7807. Bump up version number to 0.13.2
  7808. * src/configure.ac
  7809. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7810. Refactord.
  7811. * src/RequestGroupMan.cc
  7812. (removeStoppedGroup)
  7813. (fillRequestGroupFromReserver)
  7814. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Fixed compile error on Ubuntu.
  7816. * src/BtPieceMessage.cc
  7817. * src/MessageDigestHelper.cc
  7818. * src/Util.cc
  7819. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7820. Fixed compile error when configured with --disable-bittorrent
  7821. * test/DownloadHandlerFactoryTest.cc
  7822. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Done make update-po
  7824. * po/aria2c.pot
  7825. * po/*.po
  7826. * po/*.gmo
  7827. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Bump up version number to 0.13.2rc.
  7829. * src/configure.ac
  7830. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7831. Made option name bold. Updated SYNOPSIS to make it more readable.
  7832. * doc/aria2c.1.txt
  7833. * doc/aria2c.1
  7834. * doc/aria2c.1.html
  7835. * src/version_usage.cc
  7836. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Refactored. Use std::string instead of size and char*.
  7838. * Data.cc
  7839. * Data.h
  7840. * test/Data.cc
  7841. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. Added trimSelf(). Rewritten trim() to use trimSelf().
  7843. * Util.cc
  7844. * Util.h
  7845. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7846. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7847. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Fixed compile error when configured with --disable-metalink.
  7849. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7850. * test/FeatureConfigTest.cc
  7851. * test/DownloadHandlerFactoryTest.cc
  7852. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Fixed compile error when configured with --without-gnutls
  7854. --without-openssl
  7855. * src/main.cc
  7856. * test/DefaultBtProgressInfoFileTest.cc
  7857. * test/SegmentManTest.cc
  7858. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Fixed compile error with OpenSSL.
  7860. * src/IteratableChunkChecksumValidator.cc
  7861. * src/LibsslDHKeyExchange.h
  7862. * src/MessageDigestHelper.cc
  7863. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Revert the default value of --max-concurrent-downloads to 5.
  7865. Revert the default value of --metalink-servers to 5.
  7866. Man pages was also updated.
  7867. * src/option_processing.cc
  7868. * doc/aria2c.1.txt
  7869. * doc/aria2c.1.html
  7870. * doc/aria2c.1
  7871. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Returns const reference:
  7873. DownloadContext::getPieceHash, DownloadContext::getName,
  7874. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7875. BtContext::getInfoHashAsString,
  7876. * src/BtContext.h
  7877. * src/DefaultBtContext.cc
  7878. * src/DefaultBtContext.h
  7879. * src/DownloadContext.h
  7880. * src/SingleFileDownloadContext.h
  7881. * test/MockBtContext.h
  7882. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7883. * src/RequestGroup.h (getDir): Removed.
  7884. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7885. Returns const reference. The internal urlencode function was optimized
  7886. a little bit.
  7887. * src/Request.cc
  7888. * src/Request.h
  7889. * src/HttpRequest.cc
  7890. * src/HttpRequest.h
  7891. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Defined option name and possible values as std::string to reduce
  7893. temporary string object creation in runtime.
  7894. * src/HelpItemFactory.cc
  7895. * src/LogFactory.cc
  7896. * src/Option.cc
  7897. * src/OptionHandlerFactory.cc
  7898. * src/option_processing.cc
  7899. * src/prefs.cc
  7900. * src/prefs.h
  7901. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. Return const reference.
  7903. * src/DownloadHandlerConstants.cc
  7904. * src/DownloadHandlerConstants.h
  7905. (getMetalinkExtensions)
  7906. (getMetalinkContentTypes)
  7907. (getBtExtensions)
  7908. (getBtContentTypes)
  7909. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7910. * src/HttpHeader.cc (get): Rewritten.
  7911. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Make HttpHeader::getFirst(...) return const reference.
  7913. * src/HttpHeader.cc
  7914. * src/HttpHeader.h
  7915. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7917. it with V_TRUE.
  7918. * src/DefaultPieceStorage.cc
  7919. * src/DownloadCommand.cc
  7920. * src/FtpNegotiationCommand.cc
  7921. * src/HttpRequest.cc
  7922. * src/InitiateConnectionCommand.cc
  7923. * src/RequestGroup.cc
  7924. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7925. Made Option::get(...) return const reference of std::string.
  7926. * src/Option.cc
  7927. * src/Option.h
  7928. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. Replaced std:copy with insert.
  7930. * src/DefaultBtMessageDispatcher.cc
  7931. * src/DefaultPieceStorage.cc
  7932. * src/DownloadEngineFactory.cc
  7933. * src/RequestGroup.cc
  7934. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Included SocketCore.h to fix compiler warning.
  7936. * src/InitiateConnectionCommand.cc
  7937. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Put piece selection strategy algorithm to RarestPieceSelector class,
  7939. Added a switch to choose whether randomized selection so that unit
  7940. tests emit same results in, possibly, win32.
  7941. * src/DefaultPieceStorage.cc
  7942. * src/DefaultPieceStorage.h
  7943. * src/RarestPieceSelector.cc
  7944. * src/RarestPieceSelector.h
  7945. * test/DefaultPieceStorageTest.cc
  7946. * test/RarestPieceSelectorTest.cc
  7947. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Don't pool connection if HTTP proxy is enabled.
  7949. * src/FtpFinishDownloadCommand.cc
  7950. * src/FtpNegotiationCommand.cc
  7951. * src/HttpSkipResponseCommand.cc
  7952. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7954. * src/AbstractCommand.cc
  7955. * src/AbstractCommand.h
  7956. * src/ActivePeerConnectionCommand.cc
  7957. * src/FtpInitiateConnectionCommand.cc
  7958. * src/HttpInitiateConnectionCommand.cc
  7959. * src/InitiateConnectionCommandFactory.cc
  7960. * src/PeerAbstractCommand.cc
  7961. * src/PeerAbstractCommand.h
  7962. * src/PeerInitiateConnectionCommand.cc
  7963. * src/TrackerWatcherCommand.cc
  7964. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7965. Sort RequestSlot in ascending order and manipulate them using
  7966. lower_bound.
  7967. * src/DefaultBtMessageDispatcher.cc
  7968. * src/DefaultBtMessageDispatcher.h
  7969. (getMessageQueue): Added const qualifier.
  7970. (getRequestSlots): Added const qualifier.
  7971. (sendMessages): Use empty() instead of size().
  7972. (doCancelSendingPieceAction): Use HandleEvent object.
  7973. (doAbortOutstandingRequestAction): Rewritten.
  7974. (doChokedAction): Rewritten.
  7975. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7976. (isOutstandingRequest): Rewritten.
  7977. (getOutstandingRequest): Rewritten.
  7978. (removeOutstandingRequest): Rewritten.
  7979. (addOutstandingRequest): Rewritten.
  7980. * src/RequestSlot.cc
  7981. * src/RequestSlot.h
  7982. (operator=): Rewritten.
  7983. (operator!=): New function.
  7984. (operator<): New function.
  7985. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7986. * src/DefaultBtRequestFactory.cc
  7987. (doChokedAction): Rewritten.
  7988. (removeCompletedPiece): Rewritten.
  7989. (removeTargetPiece): Rewritten.
  7990. (createRequestMessages): Added the debug log.
  7991. (createRequestMessagesOnEndGame: Added the debug log.
  7992. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Added the debug log message.
  7994. * src/BtPieceMessage.cc (doReceivedAction)
  7995. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7997. used lower_bound to process them rather than linear search.
  7998. * src/DHTPeerAnnounceStorage.cc
  7999. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8001. peer has at least one completed piece.
  8002. * src/Peer.cc
  8003. * src/Peer.h
  8004. * src/PeerInteractionCommand.cc
  8005. * src/PeerSessionResource.cc
  8006. * src/PeerSessionResource.h
  8007. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. Removed unnecessary sorting
  8009. * src/DefaultPieceStorage (DefaultPieceStorage)
  8010. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. Rewritten the portion of the code that mangaes allowed fast indexes.
  8012. * src/PeerSessionResource.cc
  8013. * src/PeerSessionResource.h
  8014. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Removed the invalid string including '\r' from ru.po and
  8016. did make update-po.
  8017. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8018. Added --log-level and --summary-interval to man page.
  8019. * doc/aria2c.1.txt
  8020. * doc/aria2c.1.html
  8021. * doc/aria2c.1
  8022. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Added --log-level option to specify log level. Log messages under
  8024. the specified level are not output. Default value is `debug'.
  8025. * src/HelpItemFactory.cc
  8026. * src/LogFactory.cc
  8027. * src/LogFactory.h
  8028. * src/Logger.h
  8029. * src/OptionHandlerFactory.cc
  8030. * src/SimpleLogger.cc
  8031. * src/SimpleLogger.h
  8032. * src/main.cc
  8033. * src/option_processing.cc
  8034. * src/prefs.h
  8035. * src/usage_text.h
  8036. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8037. Print download progress summary of all parallel downloads in specified
  8038. interval, default 60 secs. While aria2 could download several files
  8039. in parallel (see -j option), it displayed just first download progress,
  8040. and the other downloads are hidden from the users. This new feature
  8041. prints all downloads currently in-progress to the console so that you
  8042. can check the status of all downloads. The interval can be adjusted
  8043. by --summary-interval option.
  8044. The progress readout is now cut so that all fits in the one line of
  8045. console.
  8046. * src/ConsoleStatCalc.cc
  8047. * src/ConsoleStatCalc.h
  8048. * src/HelpItemFactory.cc
  8049. * src/OptionHandlerFactory.cc
  8050. * src/RequestGroupMan.cc
  8051. * src/RequestGroupMan.h
  8052. * src/main.cc
  8053. * src/option_processing.cc
  8054. * src/prefs.h
  8055. * src/usage_text.h
  8056. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8057. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8058. * src/DownloadEngine.cc (DownloadEngine)
  8059. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8061. defined.
  8062. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8063. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Use erase+lower_bound+insert instead of sort.
  8065. * src/DefaultPieceStorage.cc (addPieceStats)
  8066. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8067. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8068. * src/A2STR.cc
  8069. * src/A2STR.h
  8070. * src/OptionParser.cc (parse)
  8071. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8072. Defined fake filename `[tracker.announce]' as static const std::string.
  8073. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8074. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. Defined default filename `index.html' as static const std::string
  8076. * src/SingleFileDownloadContext.cc
  8077. * src/SingleFileDownloadContext.h
  8078. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. Defined "[MEMORY]" as static const std::string.
  8080. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8081. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8082. Defined control file's version number as static const std::string.
  8083. * src/DefaultBtProgressInfoFile.cc
  8084. * src/DefaultBtProgressInfoFile.h
  8085. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8086. Use Request::METHOD_GET
  8087. * src/RequestGroup.cc (createNextCommandWithAdj)
  8088. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Defined "OK", "ERR", "INPR" as static const std::string
  8090. * src/RequestGroupMan.cc (showDownloadResults)
  8091. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Defined default client used in extended handshake as static const
  8093. std::string
  8094. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8095. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8096. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8097. * src/HttpConnection.cc (eraseConfidentialInfo)
  8098. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8099. Defined default ftp user and password as static const std::string
  8100. * src/AuthConfigFactory.cc
  8101. * src/AuthConfigFactory.h
  8102. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8103. Defined strings used in netrc as static const std::string
  8104. * src/Netrc.cc
  8105. * src/Netrc.h
  8106. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8107. Defined HTTP status as static const std::string
  8108. * src/AbstractProxyResponseCommand.cc
  8109. * src/HttpHeader.cc
  8110. * src/HttpHeader.h
  8111. * src/HttpResponse.cc
  8112. * src/HttpResponseCommand.cc
  8113. * src/HttpSkipResponseCommand.cc
  8114. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Defined "\r\n", "A", "I" as static const std::string
  8116. * src/A2STR.cc
  8117. * src/A2STR.h
  8118. * src/FtpConnection.cc
  8119. * src/FtpConnection.h
  8120. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8121. Added COLON_C(".") and used it in Request::parseUrl()
  8122. * src/A2STR.cc
  8123. * src/A2STR.h
  8124. * src/Request.cc (parseUrl)
  8125. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Changed the type of padName from `const std::string&' to `const char*'.
  8127. * src/MSEHandshake.cc (verifyPadLength)
  8128. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. Defined "sha1" as static const std::string.
  8130. * src/MetalinkParserController.cc
  8131. * src/MetalinkParserController.h
  8132. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8133. Defined message digest algorithm name as static const std::string
  8134. * src/DHTTokenTracker.cc
  8135. * src/DHTUtil.cc
  8136. * src/DefaultBtContext.cc
  8137. * src/MSEHandshake.cc
  8138. * src/MessageDigestHelper.cc
  8139. * src/Peer.cc
  8140. * src/messageDigest.cc
  8141. * src/messageDigest.h
  8142. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8143. Made string literals used in SAX parser static const std::string.
  8144. * src/FileMetalinkParserState.cc
  8145. * src/FileMetalinkParserState.h
  8146. * src/FilesMetalinkParserState.cc
  8147. * src/FilesMetalinkParserState.h
  8148. * src/InitialMetalinkParserState.cc
  8149. * src/InitialMetalinkParserState.h
  8150. * src/MetalinkMetalinkParserState.cc
  8151. * src/MetalinkMetalinkParserState.h
  8152. * src/PiecesMetalinkParserState.cc
  8153. * src/PiecesMetalinkParserState.h
  8154. * src/ResourcesMetalinkParserState.cc
  8155. * src/ResourcesMetalinkParserState.h
  8156. * src/VerificationMetalinkParserState.cc
  8157. * src/VerificationMetalinkParserState.h
  8158. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8160. * src/A2STR.cc
  8161. * src/A2STR.h
  8162. * src/File.cc
  8163. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. Defined static const std::string IP("ip"), PORT("port") and use them
  8165. instead of string literals.
  8166. * src/DefaultPeerListProcessor.cc
  8167. * src/DefaultPeerListProcessor.h
  8168. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8169. Made string literals for torrent file processing static const
  8170. std::string.
  8171. * src/BtContext.cc
  8172. * src/BtContext.h
  8173. * src/DefaultBtContext.cc
  8174. * src/DefaultBtContext.h
  8175. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Made string literal for tracker response static const std::string
  8177. * src/BtAnnounce.cc
  8178. * src/BtAnnounce.h
  8179. * src/DefaultBtAnnounce.cc
  8180. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8181. Use DHTMessage::T instead of "t".
  8182. * src/DHTMessageTracker.cc (messageArrived)
  8183. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8184. Made keyName static const. Made trimmed charset static const
  8185. std::string.
  8186. * src/Util.cc (getContentDispositionFilename)
  8187. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8188. Made USER_AGENT const. Made "/" static const std::string.
  8189. * src/A2STR.cc
  8190. * src/A2STR.h
  8191. * src/HttpRequest.cc
  8192. * src/HttpRequest.h
  8193. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Made string listeral to static const std::string:
  8195. "Content-Range", "Content-Length"
  8196. * src/HttpHeader.cc
  8197. * src/HttpHeader.h
  8198. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8199. Made string listeral to static const std::string.
  8200. * src/HttpConnection.cc
  8201. * src/HttpHeader.cc
  8202. * src/HttpHeader.h
  8203. * src/HttpResponse.cc
  8204. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8205. Made string listeral to static const std::string.
  8206. * src/A2STR.cc
  8207. * src/A2STR.h
  8208. * src/SimpleLogger.cc
  8209. * src/SimpleLogger.h
  8210. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Made string literal to static const std::string.
  8212. Rewritten CookieParser::setField.
  8213. * src/A2STR.cc
  8214. * src/A2STR.h
  8215. * src/CookieBoxFactory.cc
  8216. * src/CookieBoxFactory.h
  8217. * src/CookieParser.cc
  8218. * src/CookieParser.h
  8219. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8220. Made string literal to static const std::string
  8221. * src/DHTAbstractMessage.cc
  8222. * src/DHTAnnouncePeerMessage.cc
  8223. * src/DHTAnnouncePeerMessage.h
  8224. * src/DHTAnnouncePeerReplyMessage.cc
  8225. * src/DHTAnnouncePeerReplyMessage.h
  8226. * src/DHTFindNodeMessage.cc
  8227. * src/DHTFindNodeMessage.h
  8228. * src/DHTFindNodeReplyMessage.cc
  8229. * src/DHTFindNodeReplyMessage.h
  8230. * src/DHTGetPeersMessage.cc
  8231. * src/DHTGetPeersMessage.h
  8232. * src/DHTGetPeersReplyMessage.cc
  8233. * src/DHTGetPeersReplyMessage.h
  8234. * src/DHTMessage.cc
  8235. * src/DHTMessage.h
  8236. * src/DHTMessageFactoryImpl.cc
  8237. * src/DHTMessageReceiver.cc
  8238. * src/DHTPingMessage.cc
  8239. * src/DHTPingMessage.h
  8240. * src/DHTPingReplyMessage.cc
  8241. * src/DHTPingReplyMessage.h
  8242. * src/DHTQueryMessage.cc
  8243. * src/DHTQueryMessage.h
  8244. * src/DHTResponseMessage.cc
  8245. * src/DHTResponseMessage.h
  8246. * src/DHTUnknownMessage.cc
  8247. * src/DHTUnknownMessage.h
  8248. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8249. Made string literal to static const std::string
  8250. * src/BtChokeMessage.cc (toString)
  8251. * src/BtHaveAllMessage.cc (toString)
  8252. * src/BtHaveNoneMessage.cc (toString)
  8253. * src/BtInterestedMessage.cc (toString)
  8254. * src/BtNotInterestedMessage.cc (toString)
  8255. * src/BtUnchokeMessage.cc (toString)
  8256. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. Replaced "" with static const variable A2STR::NIL.
  8258. Replaced string comparison against "" with std::string::empty().
  8259. Added PROTO_* to Request class and use them as a protocol string
  8260. constant.
  8261. Made "started", "stopped", "completed" static const variable in
  8262. AnnounceList class.
  8263. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. Updated translations. Great thanks to translators.
  8265. * po/ca.po
  8266. * po/de.po
  8267. * po/fr.po
  8268. * po/it.po
  8269. * po/ja.po
  8270. * po/ru.po
  8271. * po/zh_CN.po
  8272. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. Updated man page; categorized options and fixed typo.
  8274. * doc/aria2c.1.txt
  8275. * doc/aria2c.1.html
  8276. * doc/aria2c.1
  8277. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8278. Removed const ref
  8279. * src/MetalinkEntry.cc (AddProtocolPreference)
  8280. * src/RequestGroup.cc (FindServerHostByHostname)
  8281. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. Rewritten Accept-Features handling.
  8283. * src/HttpRequestCommand.cc (createHttpRequest)
  8284. * src/a2functional.h
  8285. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Changed method signature:
  8287. DHTAbstractNodeLookupTask::toEntries
  8288. * src/DHTAbstractNodeLookupTask.cc
  8289. * src/DHTAbstractNodeLookupTask.h
  8290. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8291. Changed method signature:
  8292. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8293. * src/BtContext.h
  8294. * src/DefaultBtContext.cc
  8295. * src/DefaultBtContext.h
  8296. * src/DefaultBtInteractive.cc
  8297. * test/DefaultBtContextTest.cc
  8298. * test/MockBtContext.h
  8299. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8300. Changed method signature:
  8301. MultiFileAllocationIterator::makeDiskWriterEntries
  8302. * src/MultiFileAllocationIterator.cc
  8303. * src/MultiFileAllocationIterator.h
  8304. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8305. Changed method sinature:
  8306. MetalinkEntry::toFileEntry,
  8307. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8308. Metalinker::queryEntry
  8309. * src/Metalink2RequestGroup.cc
  8310. * src/MetalinkEntry.cc
  8311. * src/MetalinkEntry.h
  8312. * src/MetalinkHelper.cc
  8313. * src/MetalinkHelper.h
  8314. * src/Metalinker.cc
  8315. * src/Metalinker.h
  8316. * src/main.cc
  8317. * test/MetalinkHelperTest.cc
  8318. * test/MetalinkerTest.cc
  8319. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. Changed method sinature:
  8321. RequestGroup::getURIs
  8322. * src/RequestGroup.cc
  8323. * src/RequestGroup.h
  8324. * test/Metalink2RequestGroupTest.cc
  8325. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Changed method signature:
  8327. PeerListProcessor::extractPeer
  8328. * src/CompactPeerListProcessor.cc
  8329. * src/CompactPeerListProcessor.h
  8330. * src/DefaultBtAnnounce.cc
  8331. * src/DefaultPeerListProcessor.cc
  8332. * src/DefaultPeerListProcessor.h
  8333. * src/DelegatingPeerListProcessor.cc
  8334. * src/DelegatingPeerListProcessor.h
  8335. * src/PeerListProcessor.h
  8336. * src/UTPexExtensionMessage.cc
  8337. * test/DefaultPeerListProcessorTest.cc
  8338. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8339. Changed method signature:
  8340. BtRequestFactory::createRequestMessages,
  8341. BtRequestFactory::createRequestMessagesOnEndGame
  8342. * src/BtRequestFactory.h
  8343. * src/DefaultBtInteractive.cc
  8344. * src/DefaultBtRequestFactory.cc
  8345. * src/DefaultBtRequestFactory.h
  8346. * test/DefaultBtRequestFactoryTest.cc
  8347. * test/MockBtRequestFactory.h
  8348. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. Changed method signature:
  8350. PieceStorage::getInFlightPieces
  8351. * src/DefaultBtProgressInfoFile.cc
  8352. * src/DefaultPieceStorage.cc
  8353. * src/DefaultPieceStorage.h
  8354. * src/PieceStorage.h
  8355. * src/UnknownLengthPieceStorage.cc
  8356. * src/UnknownLengthPieceStorage.h
  8357. * test/DefaultBtProgressInfoFileTest.cc
  8358. * test/MockPieceStorage.h
  8359. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8360. Changed method signature:
  8361. PostDownloadHandler::getNextRequestGroups
  8362. Metalink2RequestGroup::generate
  8363. RequestGroup::postDownloadProcessing
  8364. * src/BtPostDownloadHandler.cc
  8365. * src/BtPostDownloadHandler.h
  8366. * src/Metalink2RequestGroup.cc
  8367. * src/Metalink2RequestGroup.h
  8368. * src/MetalinkPostDownloadHandler.cc
  8369. * src/MetalinkPostDownloadHandler.h
  8370. * src/PostDownloadHandler.h
  8371. * src/RequestGroup.cc
  8372. * src/RequestGroup.h
  8373. * src/RequestGroupMan.cc
  8374. * src/main.cc
  8375. * test/BtPostDownloadHandlerTest.cc
  8376. * test/Metalink2RequestGroupTest.cc
  8377. * test/MetalinkPostDownloadHandlerTest.cc
  8378. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Rewritten AccRequestGroup
  8380. * src/main.cc
  8381. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8382. Rewritten.
  8383. * src/TaggedItem.cc (toTagString)
  8384. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8385. Rewritten Accept-Features handling.
  8386. * src/HttpRequestCommand.cc (createHttpRequest)
  8387. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Rewritten accept types handling.
  8389. * HttpRequest.cc (createRequest)
  8390. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8391. Rewritten
  8392. * src/FeatureConfig.cc (featureSummary)
  8393. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8394. Changed method signature:
  8395. PeerStorage::getActivePeers
  8396. * src/DHTPeerAnnounceEntry.cc
  8397. * src/DefaultPeerStorage.cc
  8398. * src/DefaultPeerStorage.h
  8399. * src/PeerStorage.h
  8400. * test/DefaultPeerStorageTest.cc
  8401. * test/MockPeerStorage.h
  8402. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8403. Changed method signature:
  8404. DHTPeerAnnounceStorage::getPeers,
  8405. DHTPeerAnnounceEntry::getPeers
  8406. * src/DHTGetPeersMessage.cc
  8407. * src/DHTPeerAnnounceEntry.cc
  8408. * src/DHTPeerAnnounceEntry.h
  8409. * src/DHTPeerAnnounceStorage.cc
  8410. * src/DHTPeerAnnounceStorage.h
  8411. * test/DHTAnnouncePeerMessageTest.cc
  8412. * test/DHTPeerAnnounceEntryTest.cc
  8413. * test/DHTPeerAnnounceStorageTest.cc
  8414. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Changed method signature:
  8416. NameResolver::resolve
  8417. * src/DHTEntryPointNameResolveCommand.cc
  8418. * src/InitiateConnectionCommand.cc
  8419. * src/NameResolver.cc
  8420. * src/NameResolver.h
  8421. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Changed method signature:
  8423. PieceStorage::getAdvertisedPieceIndexes
  8424. * src/DefaultBtInteractive.cc
  8425. * src/DefaultPieceStorage.cc
  8426. * src/DefaultPieceStorage.h
  8427. * src/PieceStorage.h
  8428. * src/UnknownLengthPieceStorage.h
  8429. * test/MockPieceStorage.h
  8430. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8431. Changed method signature:
  8432. SegmentMan::getInFlightSegment
  8433. * src/AbstractCommand.cc
  8434. * src/SegmentMan.cc
  8435. * src/SegmentMan.h
  8436. * test/SegmentManTest.cc
  8437. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8438. Changed method signature:
  8439. DHTAbstractNodeLookupTask::getNodesFromMessage
  8440. * src/DHTAbstractNodeLookupTask.cc
  8441. * src/DHTAbstractNodeLookupTask.h
  8442. * src/DHTNodeLookupTask.cc
  8443. * src/DHTNodeLookupTask.h
  8444. * src/DHTPeerLookupTask.cc
  8445. * src/DHTPeerLookupTask.h
  8446. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8448. * src/AbstractCommand.cc
  8449. * src/BtCheckIntegrityEntry.cc
  8450. * src/BtCheckIntegrityEntry.h
  8451. * src/BtFileAllocationEntry.cc
  8452. * src/BtFileAllocationEntry.h
  8453. * src/BtSetup.cc
  8454. * src/BtSetup.h
  8455. * src/CheckIntegrityCommand.cc
  8456. * src/CheckIntegrityEntry.h
  8457. * src/ChecksumCheckIntegrityEntry.cc
  8458. * src/ChecksumCheckIntegrityEntry.h
  8459. * src/DHTSetup.cc
  8460. * src/DHTSetup.h
  8461. * src/DownloadEngine.cc
  8462. * src/FileAllocationCommand.cc
  8463. * src/FileAllocationEntry.h
  8464. * src/RequestGroup.cc
  8465. * src/RequestGroup.h
  8466. * src/RequestGroupMan.cc
  8467. * src/RequestGroupMan.h
  8468. * src/StreamCheckIntegrityEntry.cc
  8469. * src/StreamCheckIntegrityEntry.h
  8470. * src/StreamFileAllocationEntry.cc
  8471. * src/StreamFileAllocationEntry.h
  8472. * src/TrackerWatcherCommand.cc
  8473. * src/a2functional.h
  8474. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Changed method signature:
  8476. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8477. DHTBucket::getGoodNodes,
  8478. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8479. * src/BNode.cc
  8480. * src/BNode.h
  8481. * src/DHTAbstractNodeLookupTask.cc
  8482. * src/DHTAutoSaveCommand.cc
  8483. * src/DHTBucket.cc
  8484. * src/DHTBucket.h
  8485. * src/DHTBucketRefreshTask.cc
  8486. * src/DHTFindNodeMessage.cc
  8487. * src/DHTGetPeersMessage.cc
  8488. * src/DHTRoutingTable.cc
  8489. * src/DHTRoutingTable.h
  8490. * test/BNodeTest.cc
  8491. * test/DHTBucketTest.cc
  8492. * test/DHTRoutingTableTest.cc
  8493. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. In piece selection functions, Pass std::deque<...> by reference rather
  8495. than returning it.
  8496. * src/BitfieldMan.cc
  8497. * src/BitfieldMan.h
  8498. * src/DefaultBtRequestFactory.cc
  8499. * src/DefaultPieceStorage.cc
  8500. * src/Piece.cc
  8501. * src/Piece.h
  8502. * test/BitfieldManTest.cc
  8503. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8504. Implemented rarest piece first piece selection strategy.
  8505. * src/AbstractBtMessage.cc
  8506. * src/AbstractBtMessage.h
  8507. * src/BitfieldMan.cc
  8508. * src/BitfieldMan.h
  8509. * src/BtBitfieldMessage.cc
  8510. * src/BtHaveAllMessage.cc
  8511. * src/BtHaveMessage.cc
  8512. * src/DefaultPieceStorage.cc
  8513. * src/DefaultPieceStorage.h
  8514. * src/PeerInteractionCommand.cc
  8515. * src/PieceStorage.h
  8516. * src/UnknownLengthPieceStorage.h
  8517. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8518. Rewritten readData and writeData.
  8519. * src/MultiDiskAdaptor.cc
  8520. * src/MultiDiskAdaptor.h
  8521. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8522. Move \n out of the message "Usage: ...".
  8523. * src/version_usage.cc
  8524. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8525. Bump up version number to 0.13.2b.
  8526. * configure.ac
  8527. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. Added const qualifier to argument Exception& e.
  8529. * src/Logger.h
  8530. * src/SimpleLogger.cc
  8531. * src/SimpleLogger.h
  8532. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8533. Pool connection when CWD, SIZE command fails.
  8534. * src/FtpNegotiationCommand.cc
  8535. * src/FtpNegotiationCommand.h
  8536. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8538. * src/HttpResponseCommand.cc
  8539. * src/HttpSkipResponseCommand.cc
  8540. * src/HttpSkipResponseCommand.h
  8541. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Pool connection when a server returns 4xx, 5xx responses.
  8543. * src/HttpNullDownloadCommand.cc
  8544. * src/HttpNullDownloadCommand.h
  8545. * src/HttpResponse.cc
  8546. * src/HttpResponse.h
  8547. * src/HttpResponseCommand.cc
  8548. * src/HttpResponseCommand.h
  8549. * test/HttpResponseTest.cc
  8550. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. Print usage when no URL is specifed or bad command-line option is
  8552. specified.
  8553. * src/HelpItemFactory.cc
  8554. * src/help_tags.h
  8555. * src/option_processing.cc
  8556. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Removed duplicate log message.
  8558. * src/AbstractCommand.cc (asyncResolveHostname)
  8559. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8560. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8561. Changed -j option's default value from 5 to 1.
  8562. Added new examples using protocol auto detection feature.
  8563. Removed -T, -M usage where it can be omitted.
  8564. * doc/aria2c.1.txt
  8565. * doc/aria2c.1.html
  8566. * doc/aria2c.1.txt
  8567. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. Updated command-line usage text, so that it tells users that they
  8569. can specify any number of torrent files and metalink files in
  8570. command-line.
  8571. * src/version_usage.cc
  8572. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. Changed the default value of -j option to 1.
  8574. * src/HelpItemFactory.cc
  8575. * src/option_processing.cc
  8576. * src/usage_text.h
  8577. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Added the ability to reuse connection in FTP and it is enabled by
  8579. default. It can be disabled by --ftp-reuse-connection=false option.
  8580. * src/Command.cc
  8581. * src/DownloadCommand.cc
  8582. * src/FtpDownloadCommand.cc
  8583. * src/FtpDownloadCommand.h
  8584. * src/FtpFinishDownloadCommand.cc
  8585. * src/FtpFinishDownloadCommand.h
  8586. * src/FtpInitiateConnectionCommand.cc
  8587. * src/FtpNegotiationCommand.cc
  8588. * src/FtpNegotiationCommand.h
  8589. * src/HelpItemFactory.cc
  8590. * src/Makefile.am
  8591. * src/Makefile.in
  8592. * src/OptionHandlerFactory.cc
  8593. * src/option_processing.cc
  8594. * src/prefs.h
  8595. * src/usage_text.h
  8596. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8597. Call Command::transitStatus() before calling Command::execute(),
  8598. so that the status change made in execute() is not cleared.
  8599. * src/DownloadEngine.cc
  8600. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8601. Removed forward declaration of SocketCore class.
  8602. * src/HttpDownloadCommand.h
  8603. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8604. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8605. in InitiateConnectionCommandFactory. They should be set only when
  8606. the protocol is HTTP or HTTPS.
  8607. * src/InitiateConnectionCommandFactory.cc
  8608. * src/RequestGroup.cc
  8609. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Fixed infinite loop in checksum checking.
  8611. * src/IteratableChecksumValidator.cc
  8612. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8613. Set _supportsPersistentConnection to true by default.
  8614. * src/Request.cc
  8615. * src/RequestGroup.cc
  8616. * test/HttpRequestTest.cc
  8617. * test/RequestTest.cc
  8618. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Added timeout to socket pool. The default timeout is 15 seconds,
  8620. which is the same value Apache uses.
  8621. * src/DownloadEngine.cc
  8622. * src/DownloadEngine.h
  8623. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8624. Fixed misuse of multimap::find()
  8625. * src/HttpHeader.cc
  8626. * test/HttpHeaderTest.cc
  8627. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8628. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8629. option.
  8630. The asynchronous DNS is not capable of IPv6 yet.
  8631. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8632. least for HTTP download.
  8633. * src/AbstractCommand.cc
  8634. * src/AbstractCommand.h
  8635. * src/AsyncNameResolver.cc
  8636. * src/AsyncNameResolver.h
  8637. * src/DHTEntryPointNameResolveCommand.cc
  8638. * src/DHTEntryPointNameResolveCommand.h
  8639. * src/DownloadEngine.cc
  8640. * src/DownloadEngine.h
  8641. * src/FtpInitiateConnectionCommand.cc
  8642. * src/FtpInitiateConnectionCommand.h
  8643. * src/HelpItemFactory.cc
  8644. * src/HttpInitiateConnectionCommand.cc
  8645. * src/HttpInitiateConnectionCommand.h
  8646. * src/InitiateConnectionCommand.cc
  8647. * src/InitiateConnectionCommand.h
  8648. * src/Makefile.am
  8649. * src/Makefile.in
  8650. * src/NameResolver.cc
  8651. * src/NameResolver.h
  8652. * src/OptionHandlerFactory.cc
  8653. * src/SocketCore.cc
  8654. * src/SocketCore.h
  8655. * src/Util.cc
  8656. * src/Util.h
  8657. * src/option_processing.cc
  8658. * src/prefs.h
  8659. * src/usage_text.h
  8660. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. Updated man page: --quiet, --header were added.
  8662. --metalink-servers and --enable-http-keep-alive option were updated.
  8663. * doc/aria2c.1
  8664. * doc/aria2c.1.html
  8665. * doc/aria2c.1.txt
  8666. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8667. Enable HTTP keep-alive by default.
  8668. * src/HelpItemFactory.cc
  8669. * src/option_processing.cc
  8670. * src/usage_text.h
  8671. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8672. Disable http keep-alive if the remote server is not HTTP/1.1.
  8673. * src/HttpConnection.cc
  8674. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8675. Receive content body of 302 response so that the connection can be
  8676. reused later when http keep-alive is enabled.
  8677. * src/HttpNullDownloadCommand.cc
  8678. * src/HttpNullDownloadCommand.h
  8679. * src/HttpResponseCommand.cc
  8680. * src/HttpResponseCommand.h
  8681. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. const SharedHandle<Request> -> const SharedHandle<Request>&
  8683. * src/FtpDowndloadCommand.cc
  8684. * src/FtpDowndloadCommand.h
  8685. * src/HttpDownloadCommand.cc
  8686. * src/HttpDownloadCommand.h
  8687. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Fixed the bug that the control file(.aria2 file) is not renamed
  8689. according to tryAutoFileRenaming().
  8690. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8691. its control file exist, use them and continue download.
  8692. The old implementation didn't take into account of control file's
  8693. existence, so basically you couldn't continue download of renamed file.
  8694. * src/BtProgressInfoFile.h
  8695. * src/DefaultBtProgressInfoFile.cc
  8696. * src/DefaultBtProgressInfoFile.h
  8697. * src/NullProgressInfoFile.h
  8698. * src/RequestGroup.cc
  8699. * test/DefaultBtProgressInfoFileTest.cc
  8700. * test/MockBtProgressInfoFile.h
  8701. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8702. Change the default value of --metalink-servers option from `5' to `1'.
  8703. * src/HelpItemFactory.cc
  8704. * src/option_processing.cc
  8705. * src/usage_text.h
  8706. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8707. Reimplemented transparent metalink using Accept request header.
  8708. * src/HttpRequest.cc
  8709. * src/HttpRequest.h
  8710. * src/HttpRequestCommand.cc
  8711. * src/Metalink2RequestGroup.cc
  8712. * src/RequestGroup.cc
  8713. * src/RequestGroup.h
  8714. * test/HttpRequestTest.cc
  8715. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8716. Bump up version number to 0.13.2a
  8717. * configure.ac
  8718. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Updated configure.ac using the result of autoscan.
  8720. * configure.ac
  8721. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Fixed compilation error without gcrypt/openssl.
  8723. * src/DownloadCommand.cc
  8724. * src/DownloadCommand.h
  8725. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8726. Reorganized version information so that it can be displayed in a
  8727. standard terminal screen without scrolling.
  8728. Removed http, ftp from Configuration section, because they are always
  8729. enabled.
  8730. * src/FeatureConfig.cc
  8731. * src/FeatureConfig.h
  8732. * src/main.cc
  8733. * src/messageDigest.cc
  8734. * src/messageDigest.h
  8735. * src/version_usage.cc
  8736. * test/FeatureConfigTest.cc
  8737. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Masked user ID in log.
  8739. * src/FtpConnection.cc (sendUser)
  8740. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Removed query part from filename in HTTP download. The query part means
  8742. the substring after "?" in URL. Firefox seems do the same thing.
  8743. A query part is sometimes very long and not suitable to filename,
  8744. so I think it is better to remove it from filename.
  8745. * src/HttpRequest.cc
  8746. * src/HttpRequest.h
  8747. * src/Request.cc
  8748. * src/Request.h
  8749. * test/HttpRequestTest.cc
  8750. * test/RequestTest.cc
  8751. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Rewritten Exception class. Throw exception object, not its pointer and
  8753. catch by reference, so that remove problematic delete operator for
  8754. catched exception.
  8755. * src/Exception.cc
  8756. * src/Exception.h
  8757. * test/ExceptionTest.cc
  8758. * src/*: All files throwing/catching exception.
  8759. * test/*: All files throwing/catching exception.
  8760. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8761. Now auto protocol detection is enabled without -Z option.
  8762. But there is a important difference between with/without -Z optoin.
  8763. For example, if you type:
  8764. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8765. then, aria2 interprets there are 3 request groups:
  8766. (1) http://host/file, http://mirror/file <-- multi-source download
  8767. (2) file1.torrent
  8768. (3) file2.metalink
  8769. On the other hand, if you invoke above command with -Z option, it is
  8770. interpreted as 4 request groups:
  8771. (1) http://host/file
  8772. (2) file1.torrent
  8773. (3) file2.metalink
  8774. (4) http://mirror/file
  8775. I think usually user don't mix multi-source URLs and torrent files, so
  8776. there is no big problem here.
  8777. * src/main.cc
  8778. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Fixed the bug that causes segmentaion fault when reading XML containing
  8780. unescapsed character like '&'.
  8781. Also a modification was made which avoids adding unnecessary
  8782. characters stack and appending unused string.
  8783. * src/ExpatMetalinkProcessor.cc
  8784. * src/FileMetalinkParserState.h
  8785. * src/FilesMetalinkParserState.h
  8786. * src/FinMetalinkParserState.h
  8787. * src/HashMetalinkParserState.h
  8788. * src/InitialMetalinkParserState.h
  8789. * src/LanguageMetalinkParserState.h
  8790. * src/MetalinkMetalinkParserState.h
  8791. * src/MetalinkParserState.h
  8792. * src/MetalinkParserStateMachine.cc
  8793. * src/MetalinkParserStateMachine.h
  8794. * src/OSMetalinkParserState.h
  8795. * src/PieceHashMetalinkParserState.h
  8796. * src/PiecesMetalinkParserState.h
  8797. * src/ResourcesMetalinkParserState.h
  8798. * src/SizeMetalinkParserState.h
  8799. * src/SkipTagMetalinkParserState.h
  8800. * src/URLMetalinkParserState.h
  8801. * src/VerificationMetalinkParserState.h
  8802. * src/VersionMetalinkParserState.h
  8803. * src/XML2SAXMetalinkProcessor.cc
  8804. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Added StringFormat class, which internally calls vasprintf.
  8806. operator<< is defined for this class, so it can be used with iostream
  8807. classes nicely. SimpleLogger and following functions are rewritten
  8808. using StringFormat class.
  8809. Besides, now Logger class's methods are non-const, many classes
  8810. that has a const Logger* as a member variable are modified to remove
  8811. const qualifier from the variable declaration.
  8812. * src/HelpItemFactory.cc
  8813. * src/Request.cc
  8814. * src/SimpleLogger.cc
  8815. * src/StringFormat.cc
  8816. * src/StringFormat.h
  8817. * src/Util.cc
  8818. * src/option_processing.cc
  8819. * src/version_usage.cc
  8820. * test/StringFormatTest.cc
  8821. * src/*.h: The classes that has const Logger* as a member variable.
  8822. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8823. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8824. failed. Also fixed memory link when exception is thrown there.
  8825. * src/main.cc (AccRequestGroup)
  8826. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Added build-in "Accept-Features" support. For now only "metalink" is
  8828. used in this header field.
  8829. This "metalink" value is removed from the list when connecting URLs
  8830. fed by metalink file to avoid loop in "transparent" metlaink.
  8831. * src/HttpRequest.cc
  8832. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8833. header is also held in this variable. Also renamed setUserHeaders as
  8834. addHeader and it was rewritten to add header not just to clear the old
  8835. value.
  8836. * src/HttpRequestCommand.cc
  8837. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8838. from "Accept-Features" list.
  8839. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8840. default.
  8841. * src/RequestGroup.h
  8842. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8843. * src/a2functional.h: Included <string> because Concat class depends on
  8844. it.
  8845. * test/HttpRequestTest.cc
  8846. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8847. Added comment
  8848. * src/RequestGroup.cc (createNextCommand)
  8849. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8850. Capitalized METHOD_GET and METHOD_HEAD
  8851. * src/Request.cc
  8852. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. Added getDownloadResults() method
  8854. * src/RequestGroupMan.cc
  8855. * src/RequestGroupMan.h
  8856. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Fixed the bug that aria2 exits when commands is empty() but
  8858. _routineCommands are not.
  8859. * src/DownloadEngine.cc
  8860. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Use the default value pulled from Option object in HelpItemFactory.
  8862. except options whose defualt value is embedded in a usage text.
  8863. * src/HelpItemFactory.cc
  8864. * src/HelpItemFactory.h
  8865. * src/option_processing.cc
  8866. * src/version_usage.cc
  8867. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. Added --quiet option to make aria2 quiet (no console output).
  8869. --quiet option is tagged with ADVANCED.
  8870. * src/HelpItemFactory.cc
  8871. * src/LogFactory.cc
  8872. * src/LogFactory.h
  8873. * src/MultiUrlRequestInfo.cc
  8874. * src/MultiUrlRequestInfo.h
  8875. * src/NullStatCalc.h: New class. This class prints nothing.
  8876. * src/OptionHandlerFactory.cc
  8877. * src/main.cc
  8878. * src/option_processing.cc
  8879. * src/prefs.h
  8880. * src/usage_text.h
  8881. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8883. * src/HelpItemFactory.cc (createHelpItems):
  8884. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. Fixed compilation error in ExpatMetalinkProcessor.cc
  8886. * src/ExpatMetalinkProcessor.cc
  8887. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8888. Reuse socket if the origin server supports HTTP keep-alive and
  8889. --enable-http-keep-alive or --enable-http-pipelining is given.
  8890. The current implementation doesn't reuse the connections established
  8891. against proxy server.
  8892. * src/AbstractCommand.cc
  8893. * src/DownloadEngine.cc
  8894. * src/DownloadEngine.h
  8895. * src/HttpDownloadCommand.cc
  8896. * src/HttpInitiateConnectionCommand.cc
  8897. * src/HttpResponseCommand.cc
  8898. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8899. Rewritten HTTP keep-alive and pipelining routine.
  8900. * src/AbstractCommand.cc
  8901. * src/HttpConnection.cc
  8902. * src/HttpDownloadCommand.cc
  8903. * src/HttpRequest.cc
  8904. * src/HttpRequestCommand.cc
  8905. * src/HttpResponseCommand.cc
  8906. * src/Request.cc
  8907. * src/Request.h
  8908. * src/RequestGroup.cc
  8909. * test/HttpRequestTest.cc
  8910. * test/HttpResponseTest.cc
  8911. * test/RequestTest.cc
  8912. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Added missing setUserHeaders call
  8914. * src/HttpRequestCommand.cc
  8915. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8916. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8917. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8918. waste of time because it is more likey false.
  8919. * src/FileAllocationDispatcherCommand.cc (execute)
  8920. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. Now HTTP status and version are a member variable of HttpHeader.
  8922. HTTP status is processed as a string, not integer.
  8923. * src/AbstractProxyResponseCommand.cc
  8924. * src/HttpConnection.cc
  8925. * src/HttpHeader.cc
  8926. * src/HttpHeader.h
  8927. * src/HttpHeaderProcessor.cc
  8928. * src/HttpHeaderProcessor.h
  8929. * src/HttpResponse.cc
  8930. * src/HttpResponse.h
  8931. * test/HttpHeaderProcessorTest.cc
  8932. * test/HttpResponseTest.cc
  8933. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8934. Added --header option. You can specify any number of additional HTTP headers
  8935. like:
  8936. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8937. Unlike other commad-line option, you can use --header option multiple times.
  8938. * src/HelpItemFactory.cc
  8939. * src/HttpRequest.{cc, h}
  8940. * src/HttpRequestCommand.cc
  8941. * src/OptionHandlerFactory.cc
  8942. * src/OptionHandlerImpl.h
  8943. * src/option_processing.cc
  8944. * src/prefs.h
  8945. * src/usage_text.h
  8946. * test/HttpRequestTest.cc (testUserHeaders)
  8947. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Eliminates the time lag between sequential downloads and commands in
  8949. the same RequestGroup.
  8950. In old implementation, aria2 occasionally waits 1 seconds before
  8951. executing next command or RequestGroup.
  8952. This is really a waste of time, and new implementation eliminates
  8953. this unnecessary time lag.
  8954. * src/AbstractCommand.cc
  8955. * src/AutoSaveCommand.cc
  8956. * src/CheckIntegrityCommand.cc
  8957. * src/Command.{cc, h}
  8958. * src/DownloadEngine.{cc, h}
  8959. * src/DownloadEngineFactory.cc
  8960. * src/FileAllocationCommand.cc
  8961. * src/FileAllocationDispatcherCommand.cc
  8962. * src/FillRequestGroupCommand.cc
  8963. * src/FtpInitiateConnectionCommand.cc
  8964. * src/HaveEraseCommand.cc
  8965. * src/HttpInitiateConnectionCommand.cc
  8966. * src/HttpResponseCommand.cc
  8967. * src/RealtimeCommand.cc
  8968. * src/RequestGroup.cc
  8969. * src/RequestGroupMan.cc
  8970. * src/StreamFileAllocationEntry.cc
  8971. * src/TimeBasedCommand.{cc, h}
  8972. * src/TimedHaltCommand.cc
  8973. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8974. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8975. keyword explicit and SharedHandle's default constructor initializes
  8976. its internal obj to null, old implementation initializes it using
  8977. obj's default constructor.
  8978. To assign null, write SharedHandle<T> x(...); x.reset();
  8979. TODO: test/SharedHandleTest.cc needs more tests.
  8980. * src/SharedHandle.h
  8981. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8982. Fixed type in man page.
  8983. * doc/aria2c.1.txt
  8984. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8985. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8986. * src/SimpleLogger.{cc, h}
  8987. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8988. Implemented auto protocol detection.
  8989. Now you can do:
  8990. aria2c -Z http://host/file file1.torrent file2.metalink
  8991. (Note: -Z option is required for auto protcol detection.)
  8992. Then aria2c downloads 3 files simultaneously:
  8993. 1. http://host/file
  8994. 2. file1.torrent <-- read local torrent file
  8995. 3. file2.metalink <-- read local Metalink file.
  8996. Same thing goes with -i option. Assume your uris.txt contans:
  8997. http://host/file
  8998. file1.torrent
  8999. file2.metalink
  9000. Then you can do: aria2c -i uris.txt
  9001. (Note: -Z option is not needed if -i option is given.)
  9002. * src/main.cc
  9003. * src/ProtocolDetector.{cc, h}
  9004. * test/ProtocolDetectorTest.cc
  9005. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9006. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9007. installed
  9008. * src/ARC4Encryptor.h
  9009. * src/ARC4Decryptor.h
  9010. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Renamed argument from 'errno' to 'err', since errno is confused with
  9012. errno defined in errno.h.
  9013. * src/LibgcryptARC4Decryptor.h
  9014. * src/LibgcryptARC4Context.h
  9015. * src/LibgcryptDHKeyExchange.h
  9016. * src/LibgcryptARC4Encryptor.h
  9017. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9018. Rewritten choking algorithm.
  9019. * src/PeerChokeCommand.{cc, h}
  9020. * src/BtInterestedMessage.cc
  9021. * src/PeerSessionResource.{cc, h}
  9022. * src/DefaultPeerStorage.{cc, h}
  9023. * src/BtNotInterestedMessage.cc
  9024. * src/DefaultBtMessageDispatcher.{cc, h}
  9025. * src/BtMessageDispatcher.h
  9026. * src/Peer.{cc, h}
  9027. * src/BtLeecherStateChoke.{cc, h}
  9028. * src/BtSetup.cc
  9029. * src/BtSeederStateChoke.{cc, h}
  9030. * src/PeerStorage.h
  9031. * test/MockPeerStorage.h
  9032. * test/MockBtMessageDispatcher.h
  9033. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9034. Fixed compilation error on x84-64 platform.
  9035. * src/AuthConfig.cc: Included ostream.
  9036. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9037. Rewritten getBasename() and getDirname(), without standard library
  9038. basename(), dirname().
  9039. * src/File.cc
  9040. * test/FileTest.cc
  9041. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9042. Added Simplified Chinese translation. Also updated the following
  9043. translations: Polish, Dutch, German. Great thanks to all translators.
  9044. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Suppress content-range error when 'Content-Range' response header
  9046. doesn't contains bytes-unit specifier 'bytes'
  9047. * src/HttpHeader.cc (getRange)
  9048. * test/HttpHeaderTest.cc
  9049. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9050. Fixed compilation error with g++-4.3
  9051. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9052. Added missing include files for MinGW
  9053. * test/HttpHeaderProcessorTest.cc
  9054. * test/DHTRoutingTableSerializerTest.cc
  9055. * test/DHTRoutingTableDeserializerTest.cc
  9056. * test/UriListParserTest.cc
  9057. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9058. Now download line is printed nicely with no garbage at the end of
  9059. line. I use ioctl to get the columns of terminal.
  9060. If stdout is redirected to another device, instead of carriage return,
  9061. end of line '\n' character is used. This is feature request#1909659
  9062. * src/ConsoleStatCalc.cc (calculateStat)
  9063. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9064. Included a2time.h
  9065. * src/DHTMessageDispatcher.h
  9066. * src/DHTMessageEntry.h
  9067. * src/DHTReplaceNodeTask.h
  9068. * src/DHTMessageTracker.h
  9069. * src/Util.h
  9070. * src/CookieBox.h
  9071. * src/SocketCore.h
  9072. * src/DefaultBtMessageDispatcher.h
  9073. * src/SocketCore.cc
  9074. * src/Util.cc
  9075. * src/DHTPingTask.h
  9076. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9077. Fixed high memory footprint when DHT is enabled.
  9078. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9079. queued than it is processed and the queue is getting longer. As a
  9080. consequence, momory usage is increased.
  9081. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9082. replacement cache in DHTBucket which is described in Kademlia paper.
  9083. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9084. DHTReplaceNodeTask.
  9085. * src/DHTBucket.{h, cc}
  9086. (cacheNode): New function.
  9087. (getCachedNodes): New function.
  9088. (dropNode): Push back cached node to _nodes.
  9089. * test/DHTBucketTest.cc
  9090. (testCacheNode): New test
  9091. (testDropNode): New test
  9092. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9093. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9094. the unused 4KB memory when ssl is not used.
  9095. * src/SocketCore.cc
  9096. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9097. Added summary log for peer announce storage.
  9098. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9099. Removed cast
  9100. * src/DefaultPeerStorage.cc (addPeer)
  9101. Log exception message
  9102. * src/DHTMessageTracker.cc (handleTimeout)
  9103. Fixed casting
  9104. * test/HttpRequestTest.cc
  9105. * test/MetalinkProcessorTest.cc
  9106. * test/PieceTest.cc
  9107. * test/MetalinkEntryTest.cc
  9108. * test/SequenceTest.cc
  9109. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. * src/ParameterizedStringParser.cc (createLoop):
  9111. Removed unused variable sstep.
  9112. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9113. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9114. * src/Util.{h, cc}
  9115. (parseUInt): New function.
  9116. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9117. The actual range is uint32_t.
  9118. * test/UtilTest.cc
  9119. * src/ParameterizedStringParser.cc:
  9120. Use Util::parseUInt() for loop variables.
  9121. * test/ParameterizedStringParserTest.cc
  9122. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9123. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9124. Rewritten the functions for binding port.
  9125. * src/DHTConnectionImpl.{h, cc}
  9126. * src/PeerListenCommand.{h, cc}
  9127. * src/DHTSetup.cc
  9128. * src/BtSetup.cc
  9129. * test/DHTConnectionImplTest.cc
  9130. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. type cleanup for allmost all remaining files.
  9132. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Type clarification
  9134. * src/PeerSessionResource.{h, cc}
  9135. * src/DefaultPieceStorage.{h, cc}
  9136. * src/Peer.{h, cc}
  9137. * test/PeerSessionResourceTest.cc
  9138. Use div function
  9139. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9140. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9141. Type clarification
  9142. * src/DefaultPeerStorage.{h, cc}
  9143. * test/DefaultPeerStorageTest.cc
  9144. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9145. Type clarification: size_t for length or size, uint64_t for file
  9146. length, off_t for file offset.
  9147. * src/DefaultBtProgressInfoFile.cc
  9148. * src/DefaultBtContext.{h, cc}
  9149. * src/DefaultBtInteractive.cc
  9150. * src/DownloadCommand.{h, cc}
  9151. * src/IteratableChunkChecksumValidator.{h, cc}
  9152. * src/SegmentMan.{h, cc}
  9153. * src/SingleFileDownloadContext.{h, cc}
  9154. * src/IteratableChecksumValidator.{h, cc}
  9155. * src/BtContext.h
  9156. * src/IteratableValidator.h
  9157. * src/DownloadContext.h
  9158. * test/SingleFileDownloadContextTest.cc
  9159. * test/DefaultBtContextTest.cc
  9160. * test/MockBtContext.h
  9161. * test/Metalink2RequestGroupTest.cc
  9162. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9163. Type clarification: size_t for length or size, uint64_t for file
  9164. length, off_t for file offset.
  9165. * src/PiecedSegment.cc
  9166. * src/GrowSegment.h
  9167. * src/DefaultBtRequestFactory.h
  9168. * src/DefaultBtProgressInfoFile.cc
  9169. * src/UnknownLengthPieceStorage.h
  9170. * src/DefaultPieceStorage.cc
  9171. * src/UnknownLengthPieceStorage.cc
  9172. * src/DefaultBtInteractive.cc
  9173. * src/GrowSegment.cc
  9174. * src/BitfieldMan.h
  9175. * src/DownloadCommand.cc
  9176. * src/BtRequestFactory.h
  9177. * src/PiecedSegment.h
  9178. * src/DefaultPieceStorage.h
  9179. * src/Piece.cc
  9180. * src/DefaultBtRequestFactory.cc
  9181. * src/PieceStorage.h
  9182. * src/Segment.h
  9183. * src/Piece.h
  9184. * src/BitfieldMan.cc
  9185. * src/Util.cc
  9186. * test/DefaultBtProgressInfoFileTest.cc
  9187. * test/DefaultPieceStorageTest.cc
  9188. * test/MockPieceStorage.h
  9189. * test/BtRequestMessageTest.cc
  9190. * test/DefaultBtMessageDispatcherTest.cc
  9191. * test/BitfieldManTest.cc
  9192. * test/GrowSegmentTest.cc
  9193. * test/PieceTest.cc
  9194. * test/SegmentTest.cc
  9195. * test/SegmentManTest.cc
  9196. * test/DefaultBtRequestFactoryTest.cc
  9197. * test/MockBtRequestFactory.h
  9198. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9199. Fixed compilation error with --disable-nls
  9200. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9201. in gettext.h causes the problem.
  9202. * src/common.h
  9203. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9204. Removed subPiece related functions.
  9205. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9206. * src/DefaultPieceStorage.{h, cc}
  9207. * test/PieceTest.cc
  9208. * test/DefaultPieceStorageTest.cc
  9209. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. Use unsigned char for data store.
  9211. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9212. Bump up version number to 0.13.0+1
  9213. * configure.ac
  9214. * Release 0.13.0+1
  9215. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9216. Changed inactive connection timeout to 120.
  9217. To accept more mulually interested peers, disconnect peer when there
  9218. is no interest between us after certain time passed.
  9219. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9220. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9221. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9222. when compiled with async DNS support.
  9223. * src/DownloadEngine.cc
  9224. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9225. value '10' will be a little bit short when some DNS servers are
  9226. offline and several DNS servers are tried. It should be configured
  9227. by command-line option.
  9228. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9229. Merged Ross's mingw patch.
  9230. * src/DHTRoutingTableDeserializer.cc
  9231. * src/DHTRoutingTableSerializer.cc
  9232. * src/Platform.{h, cc}
  9233. * src/timegm.h
  9234. * src/gettimeofday.h
  9235. * src/getaddrinfo.h
  9236. * src/SocketCore.h
  9237. * src/common.h
  9238. * src/inet_aton.h
  9239. * src/DownloadEngine.h
  9240. * src/gai_strerror.h
  9241. * src/a2netcompat.h
  9242. * configure.ac
  9243. * configure
  9244. * aclocal.m4
  9245. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. Included missing iostream.
  9247. * test/AllTest.cc
  9248. * test/BtDependencyTest.cc
  9249. * test/BtExtendedMessageTest.cc
  9250. * test/DHTConnectionImplTest.cc
  9251. * test/DHTMessageFactoryImplTest.cc
  9252. * test/DHTMessageTrackerEntryTest.cc
  9253. * test/DHTNodeTest.cc
  9254. * test/DHTRoutingTableSerializerTest.cc
  9255. * test/DefaultBtAnnounceTest.cc
  9256. * test/DefaultBtContextTest.cc
  9257. * test/DefaultBtMessageFactoryTest.cc
  9258. * test/DefaultExtensionMessageFactoryTest.cc
  9259. * test/HandshakeExtensionMessageTest.cc
  9260. * test/HttpResponseTest.cc
  9261. * test/MetalinkProcessorTest.cc
  9262. * test/MultiFileAllocationIteratorTest.cc
  9263. * test/SocketCoreTest.cc
  9264. * test/UTPexExtensionMessageTest.cc
  9265. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. Reorganized includes.
  9267. * src/NameResolver.cc
  9268. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9269. Fixed compilation error without ares/c-ares
  9270. * src/NameResolver.h:
  9271. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Added a test for large file.
  9273. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9274. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9275. Fixed the bug that file size is ignored if size > INT32_MAX
  9276. * src/SizeMetalinkParserState.cc (endElement):
  9277. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9278. Bump up version number to 0.13.0
  9279. * configure.ac
  9280. * Release 0.13.0
  9281. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9282. Updated Makfefile.am to make 'make dist' work.
  9283. Now packaged filename is aria2c-VERSION.tar.bz2.
  9284. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9285. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9286. Large file support is now configured by configure script.
  9287. * configure.ac
  9288. Removed unsused source files
  9289. * src/
  9290. * test/
  9291. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9292. Peer.h and BtContext.h respectively.
  9293. * src/Peer.h
  9294. * src/BtContext.h
  9295. Updated translations.
  9296. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9297. translations. Great thanks to all translators!;)
  9298. * po/*.{po, gmo}
  9299. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9300. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9301. statically declared sha1 MessageDigestContext.
  9302. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9303. initialization of short-lived MessageDigestContext.
  9304. * src/MessageDigestHelper.{h, cc}
  9305. * src/main.cc
  9306. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9307. the initialization of MessageDigestContext every time in validating
  9308. chunk checksum.
  9309. * src/DownloadCommand.{h, cc}
  9310. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Add a file descriptor which connected to fast peer(latency<1500) to
  9312. select(). This change reduced CPU load.
  9313. * src/PeerInteractionCommand.cc
  9314. * src/DefaultBtInteractive.{h, cc}
  9315. * src/BtInteractive.h
  9316. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9317. Fixed the previous insufficient fix for possible busy loop.
  9318. * src/MSEHandshake.cc (identifyHandshakeType)
  9319. Removed unused functions.
  9320. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9321. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9322. Fixed possible busy loop if first 20 bytes are not received for a few
  9323. minutes.
  9324. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9325. * src/ReceiverMSEHandshakeCommand.cc
  9326. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. Fixed compilation error
  9328. * src/ExpatMetalinkProcessor.cc
  9329. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9330. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9331. * src/DHTBucket.cc
  9332. Removed unnecessary cast.
  9333. * src/HandshakeExtensionMessage.cc
  9334. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9336. is missing.
  9337. * src/OptionHandlerFactory.cc
  9338. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Fixed the bug that HAVE message is not sent for a piece they are
  9340. downloaded fom http/ftp server before any BitTorrent handshake is done
  9341. with peers.
  9342. * src/DefaultBtInteractive.cc
  9343. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9345. * src/Makefile.am
  9346. * src/Makefile.in
  9347. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9348. Updated README. Added html version of README and man page.
  9349. * README
  9350. * README.html
  9351. * readme2html: Shell script to generate README.html from README using
  9352. asciidoc.
  9353. * doc/aria2c.1.html
  9354. * doc/makeman: Added the line to generate aria2c.1.html
  9355. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9356. Fixed offset calculation.
  9357. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9358. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9359. Rewritten itos and uitos using template. llitos and ullitos are
  9360. replaced with itos and uitos respectively.
  9361. * src/Util.{h, cc}
  9362. * test/UtilTest.cc
  9363. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9364. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9365. of the number of bytes required for storing public key and shared
  9366. secret.
  9367. * src/LibgcryptDHKeyExchange.h
  9368. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9369. * src/MSEHandshake.cc
  9370. * test/DHKeyExchangeTest.cc
  9371. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. Removed since they are not used.
  9373. * src/Xml2MetalinkProcessor.{h, cc}
  9374. * src/Socket.cc
  9375. * src/SegmentSplitter.{h, cc}
  9376. * test/Xml2MetalinkProcessorTest.cc
  9377. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9378. Fixed the bug that prevents aria2 from stopping other than by pressing
  9379. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9380. option. aria2 doesn't stop even after --seed-time is satisfied and
  9381. continues to output blank lines in the console.
  9382. * src/ReceiverMSEHandshakeCommand.cc
  9383. * src/PeerReceiveHandshakeCommand.cc
  9384. * src/PeerListenCommand.cc
  9385. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. Bump up version number to 0.13.0rc
  9387. * configure.ac
  9388. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9389. Updated man page and some usage text.
  9390. * doc/aria2c.1.txt
  9391. * src/usage_text.h
  9392. * po/*.{po, gmo}
  9393. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9394. Updated translations. Added Finnish and Hebrew translations.
  9395. Great thanks to all translators!
  9396. * po/*.{po, gmo}
  9397. * po/LINGUAS
  9398. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. Log more detailed information about each message.
  9400. * src/DHTQueryMessage.{h, cc}
  9401. * src/DHTGetPeersMessage.{h, cc}
  9402. * src/DHTFindNodeReplyMessage.{h, cc}
  9403. * src/DHTGetPeersReplyMessage.{h, cc}
  9404. * src/DHTAnnouncePeerMessage.{h, cc}
  9405. * src/DHTResponseMessage.{h, cc}
  9406. * src/DHTFindNodeMessage.{h, cc}
  9407. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9408. Use constants defined in prefs.h
  9409. * src/option_processing.cc
  9410. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9411. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9412. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9413. Make room for future enchancements for IPv6 addresses.
  9414. Bump up version number of dht.dat file format to 2.
  9415. Not compatible with previous version.
  9416. * src/DHTRoutingTableSerializer.cc
  9417. * src/DHTRoutingTableDeserializer.cc
  9418. * test/DHTRoutingTableSerializerTest.cc
  9419. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9420. Added handling for the return values from
  9421. PeerMessageUtil::createcompact().
  9422. * src/DefaultBtContext.cc (computeFastSet):
  9423. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9424. Fixed abort when peer's ip address is IPv4-mapped address.
  9425. * src/DefaultBtContext.cc (computeFastSet)
  9426. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9427. cannot handle IPv4-mapped addresses.
  9428. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9429. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Proper return value handling for OpenSSL functions.
  9431. * src/LibsslDHKeyExchange.h
  9432. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. Random bytes generation using libgcrypt and OpenSSL.
  9434. * src/DHTUtil.{h, cc}
  9435. * test/DHTUtilTest.cc
  9436. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9437. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9438. received.
  9439. * src/DHTMessageReceiver.cc (receiveMessage)
  9440. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Fixed the bug that a return code is always 0. BUG#1897704
  9442. If error occurred during the download or there exist unfinished
  9443. downloads, aria2 returns with code 1.
  9444. * src/RequestGroupMan.{h, cc}
  9445. * src/MultiUrlRequestInfo.{h, cc}
  9446. * src/main.cc
  9447. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. IPv6 support for SocketCore class.
  9449. TODO: In SocketCore::establishConnection(), this is insufficient to
  9450. determin the failure of connect() here because the socket is
  9451. non-blocking state. The next addresses should be tried after select().
  9452. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9453. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9454. instead which address family independent.
  9455. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9456. information in a compact peer format which is for IPv4 only.
  9457. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9458. this is a spec of BitTorrent protocol.
  9459. * src/SocketCore.{h, cc}
  9460. * src/PeerMessageUtil.cc
  9461. * test/SocketCoreTest.cc
  9462. * test/PeerMessageUtilTest.cc
  9463. * test/DHTConnectionImplTest.cc
  9464. Handle IPv4-mapped addresses.
  9465. * src/DHTNode.cc: Now identity is determined by node id.
  9466. * src/DHTMessageTrackerEntry.cc
  9467. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9468. should handle it.
  9469. * src/DHTRoutingTableDeserializer.cc
  9470. * src/DHTMessageFactoryImpl.cc
  9471. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9472. Change the unit of --stop option from a minute to a second.
  9473. * src/usage_text.h
  9474. * src/DownloadEngineFactory.cc
  9475. * src/OptionHandlerFactory.cc
  9476. * src/message.h
  9477. * src/TimedHaltCommand.cc
  9478. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9479. Make listening socket non-block mode.
  9480. * src/FtpConnection.cc
  9481. * src/FtpNegotiationCommand.{h, cc}
  9482. * src/PeerListenCommand.cc
  9483. Fixed the bug that cause slow ftp negotiation.
  9484. * src/FtpNegotiationCommand.{h, cc}
  9485. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Added basic tag to --enable-dht, --dht-listen-port option.
  9487. * src/HelpItemFactory.cc (createHelpItems)
  9488. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. Updated text.
  9490. * src/usage_text.h
  9491. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9492. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9493. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Determin _threadtholdSpeed in each constructor for
  9495. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9496. * src/ActivePeerConnectionCommand.{h, cc}
  9497. * src/PeerReceiveHandshakeCommand.{h, cc}
  9498. * src/BtSetup.cc
  9499. * src/BtConstants.h
  9500. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. Added --bt-min-crypto-level and --bt-require-crypto options.
  9502. * src/OptionHandlerFactory.cc
  9503. * src/MSEHandshake.cc
  9504. * src/HelpItemFactory.cc
  9505. * src/option_processing.cc
  9506. * src/ReceiverMSEHandshakeCommand.cc
  9507. * src/prefs.h
  9508. * src/DefaultBtAnnounce.cc
  9509. * src/InitiatorMSEHandshakeCommand.cc
  9510. * src/usage_text.h
  9511. * test/MSEHandshakeTest.cc
  9512. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9513. Bump version number to 0.13.0b
  9514. * configure.ac
  9515. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9516. Updated doc.
  9517. * src/MessageDigestHelper.h:
  9518. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9519. Use raw message digest as a token instead of its hexadecimal
  9520. representation.
  9521. * src/DHTTokenTracker.cc (generateToken)
  9522. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9523. Added Message Stream Encryption(MSE) support.
  9524. Currently, aria2 accepts incoming connections with Obfuscation Header
  9525. and legacy BitTorrent Header and establishes connections with
  9526. Obfuscation Header first and if failed then retry with legacy
  9527. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9528. choose ARC4. The new option to change the default behavior is planned.
  9529. For tracker extension, "supportcrypto=1" is added statically.
  9530. * src/PeerInitiateConnectionCommand.{h, cc}
  9531. * src/PeerConnection.{h, cc}
  9532. * src/HandleRegistry.h
  9533. * src/SocketCore.h
  9534. * src/PeerReceiveHandshakeCommand.{h, cc}
  9535. * src/BtRegistry.{h, cc}
  9536. * src/PeerListenCommand.cc
  9537. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9538. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9539. * src/MSEHandshake.{h, cc}
  9540. * src/ARC4Encryptor.h
  9541. * src/ARC4Decryptor.h
  9542. * src/LibgcryptARC4Encryptor.h
  9543. * src/LibgcryptARC4Decryptor.h
  9544. * src/LibgcryptARC4Context.h
  9545. * src/LibsslARC4Encryptor.h
  9546. * src/LibsslARC4Decryptor.h
  9547. * src/LibsslARC4Context.h
  9548. * src/DHKeyExchange.h
  9549. * src/LibgcryptDHKeyExchange.h
  9550. * src/LibsslDHKeyExchange.h
  9551. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9552. * test/DefaultBtAnnounceTest.cc
  9553. * test/ARC4Test.cc
  9554. * test/DHKeyExchangeTest.cc
  9555. Removed prepareForRetry() because it is not used.
  9556. * src/PeerAbstractCommand.{h, cc}
  9557. * src/PeerInteractionCommand.{h, cc}
  9558. * src/PeerInitiateConnectionCommand.{h, cc}
  9559. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9560. Added the ability to load nodes from torrent file. These nodes are
  9561. added to the routing table when downloading that torrent.
  9562. * src/BtContext.h
  9563. * src/DefaultBtContext.{h, cc}
  9564. * src/DHTSetup.cc
  9565. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9566. hostname and port pair, and resolves all of them.
  9567. * src/NameResolver.{h, cc}: Added reset().
  9568. * src/RequestGroup.cc
  9569. * test/DefaultBtContextTest.cc
  9570. * test/MockBtContext.h
  9571. Removed assert() from DefaultBtContext and throw exception instead.
  9572. * src/DefaultBtContext.cc
  9573. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9574. Fixed segmentation fault bug when exiting if dht is disabled.
  9575. * src/RequestGroup.cc
  9576. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9577. Fixed typo in log message and define the message in message.h
  9578. * src/TimedHaltCommand.cc
  9579. * src/message.h
  9580. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9581. Included RecoverableException.h to fix compilation error.
  9582. * test/DHTMessageFactoryImplTest.cc
  9583. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9584. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9585. * test/DHTPingMessageTest.cc
  9586. * test/DHTGetPeersMessageTest.cc
  9587. * test/DHTFindNodeMessageTest.cc
  9588. * test/DHTAnnouncePeerMessageTest.cc
  9589. * test/MockDHTMessage.h
  9590. * test/MockDHTMessageFactory.h
  9591. * test/MockDHTMessageDispatcher.h: New class.
  9592. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9593. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9594. virtual.
  9595. * src/DHTMessageDispatcher.h
  9596. * src/DHTMessageDispatcherImpl.{h, cc}
  9597. * src/DHTSetup.cc
  9598. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9599. Adding handling of DHT error message. Just log error message and
  9600. throw exception.
  9601. * src/DHTMessageFactoryImpl.cc
  9602. * test/DHTMessageFactoryImplTest.cc
  9603. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9604. Added handling of dynamic cast failure.
  9605. * src/DHTNodeLookupTask.cc
  9606. * src/DHTPeerLookupTask.cc
  9607. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Added the ability to stop aria2 itself when given time has passed
  9609. from start. Use --stop option to specify time in minutes.
  9610. When 0 is given, this feature is disabled.
  9611. * src/OptionHandlerFactory.cc
  9612. * src/TimeBasedCommand.h: Make _interval protected scope.
  9613. * src/HelpItemFactory.cc
  9614. * src/option_processing.cc
  9615. * src/prefs.h
  9616. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9617. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9618. Without this modification, the result list shows "ERR" when aria2 is
  9619. stopped by --stop option. It should be "INPR".
  9620. * src/DownloadEngine.{h, cc}
  9621. * src/DownloadEngineFactory.cc
  9622. * src/usage_text.h
  9623. * src/TimedHaltCommand.{h, cc}: New class.
  9624. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9625. Bootstrap through node added by port message.
  9626. Currently bootstrap is executed if the number of buckets in routing
  9627. table is 1.
  9628. * src/BtPortMessage.{h, cc}
  9629. * src/DefaultBtMessageFactory.{h, cc}
  9630. * src/PeerInteractionCommand.cc
  9631. * test/BtPortMessageTest.cc
  9632. * test/MockDHTTask.h
  9633. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9634. Extract the Peer class's member variables, which are only needed after
  9635. PeerInteractionCommand, into PeerSessionResource class.
  9636. This class is instantiated in PeerInteractionCommand class's ctor and
  9637. released in its dtor.
  9638. This will make Peer class lightweight and uses less memory for peers
  9639. which are not connected and wait in the queue.
  9640. * src/PeerChokeCommand.cc
  9641. * src/PeerSessionResource.{h, cc}
  9642. * src/PeerInteractionCommand.cc
  9643. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9644. * src/DefaultBtInteractive.cc
  9645. * src/BtPieceMessage.cc
  9646. * src/BtInterestedMessage.cc
  9647. * src/BtUnchokeMessage.cc
  9648. * src/DefaultPeerStorage.{h, cc}
  9649. * src/PeerInitiateConnectionCommand.cc
  9650. * src/ActivePeerConnectionCommand.cc
  9651. * src/BtNotInterestedMessage.cc
  9652. * src/DefaultBtMessageDispatcher.cc
  9653. * src/BtChokeMessage.cc
  9654. * src/BtRequestMessage.cc
  9655. * src/Peer.{h, cc}
  9656. * src/BtRegistry.h
  9657. * src/TrackerWatcherCommand.cc
  9658. * src/PeerReceiveHandshakeCommand.cc
  9659. * test/BtExtendedMessageTest.cc
  9660. * test/BtAllowedFastMessageTest.cc
  9661. * test/BtCancelMessageTest.cc
  9662. * test/DefaultPieceStorageTest.cc
  9663. * test/BtBitfieldMessageTest.cc
  9664. * test/BtHaveMessageTest.cc
  9665. * test/BtNotInterestedMessageTest.cc
  9666. * test/BtRequestMessageTest.cc
  9667. * test/PeerSessionResourceTest.cc
  9668. * test/DefaultBtMessageDispatcherTest.cc
  9669. * test/PeerTest.cc
  9670. * test/BtInterestedMessageTest.cc
  9671. * test/BtRejectMessageTest.cc
  9672. * test/BtChokeMessageTest.cc
  9673. * test/DefaultPeerStorageTest.cc
  9674. * test/BtHaveNoneMessageTest.cc
  9675. * test/BtHaveAllMessageTest.cc
  9676. * test/DefaultExtensionMessageFactoryTest.cc
  9677. * test/BtUnchokeMessageTest.cc
  9678. * test/DefaultBtMessageFactoryTest.cc
  9679. * test/HandshakeExtensionMessageTest.cc
  9680. * test/UTPexExtensionMessageTest.cc
  9681. * test/DefaultBtRequestFactoryTest.cc
  9682. * test/BtPieceMessageTest.cc
  9683. Removed typedef PeerStats.
  9684. * src/PeerStat.h
  9685. * src/SegmentMan.cc
  9686. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9687. Added std namespace to copy, remove_copy, back_inserter,
  9688. front_inserter.
  9689. * src/RequestGroupMan.cc
  9690. * src/DefaultPieceStorage.cc
  9691. * src/StreamFileAllocationEntry.cc
  9692. * src/BtFileAllocationEntry.cc
  9693. * src/RequestGroup.cc
  9694. * src/MetalinkEntry.cc
  9695. * src/DelegatingPeerListProcessor.cc
  9696. * src/DefaultBtRequestFactory.cc
  9697. * src/DefaultBtMessageDispatcher.cc
  9698. * src/version_usage.cc: Included <algorithm>
  9699. * src/main.cc
  9700. * src/MetalinkParserController.cc
  9701. * src/DefaultBtContext.cc
  9702. * src/DownloadEngineFactory.cc
  9703. * src/a2algo.h
  9704. Removed.
  9705. * test/StreamUriListParserTest.cc
  9706. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9707. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9708. ActivePeerConnectionCommand when it is given and
  9709. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9710. * src/ActivePeerConnectionCommand.{h, cc}
  9711. * src/BtSetup.cc
  9712. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9713. Only add socket to DownloadEngine's select routine when peer or
  9714. localhost is unchoked and interested. This lowers CPU usage a
  9715. little bit.
  9716. * src/PeerInteractionCommand.cc
  9717. * src/PeerAbstractCommand.{h, cc}
  9718. * src/BtInteractive.h
  9719. * src/DefaultBtInteractive.{h, cc}
  9720. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. Revert previous change because get_peers message is needed for
  9722. announce_peer anyway.
  9723. * src/DHTGetPeersCommand.cc
  9724. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9725. Request peers thought DHT only when download hasn't finished.
  9726. * src/DHTGetPeersCommand.cc
  9727. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9728. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9729. * src/DHTBucketRefreshTask.{h, cc}
  9730. * src/DHTSetup.cc
  9731. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9732. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9733. standard classes.
  9734. Included string.h where mem* function are used.
  9735. Added namespace aria2.
  9736. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9737. Create directory before saving DHT routing table.
  9738. Now ios::failure is now handled properly.
  9739. * src/DHTAutoSaveCommand.cc
  9740. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9741. Removed unnecessary cerr.
  9742. * src/DownloadEngine.cc
  9743. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9744. Catch exception inside DHTMessageReceiver::receiveMessage().
  9745. Log unknown message.
  9746. * src/DHTMessageReceiver.{h, cc}
  9747. * src/DHTMessageFactory.h
  9748. * src/DHTMessageFactoryImpl.{h, cc}
  9749. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9750. * src/DHTInteractionCommand.cc
  9751. * src/DHTUnknownMessage.{h, cc}
  9752. * test/DHTUnknownMessageTest.cc
  9753. * test/MockDHTMessageFactory.h
  9754. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9755. Commented out ip address comparison because a host can have multiple
  9756. ip addresses and it is hard to predict the hostname is resolved into
  9757. which one.
  9758. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9759. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. * po/Makefile.in: Removed since this is generated by configure.
  9761. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9762. Fixed compiler warning about redefinition of SIZE_MAX.
  9763. Use common.h instead of config.h directly here.
  9764. * src/Platform.{h, cc}
  9765. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9766. here.
  9767. * common.h
  9768. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9769. Updated gettext related files.
  9770. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9771. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9772. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9773. Added DHT functionality, compatible with mainline.
  9774. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9775. You may need to specify entry point to DHT network using
  9776. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9777. Use --dht-listen-port to specify port number. Make sure that your
  9778. firewall configuration can pass through UDP traffic to the port.
  9779. The routing table is saved in $HOME/.aria2/dht.dat.
  9780. * src/DHT*
  9781. * src/BNode.{h, cc}
  9782. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9783. particular torrent.
  9784. * src/Data.cc: Rewritten ctor.
  9785. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9786. --dht-entry-point.
  9787. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9788. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9789. ends, remove BtContext from DHTPeerAnnounceStorage.
  9790. * src/BtPortMessage.{h, cc}: Rewritten.
  9791. * src/message.h
  9792. * src/OptionHandlerImpl.cc
  9793. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9794. --dht-entry-point.
  9795. * src/Dictionary.{h, cc} (remove): New function.
  9796. * src/prefs.h
  9797. * src/DefaultBtMessageFactory.h
  9798. * src/BtHandshakeMessage.cc
  9799. * src/ActivePeerConnectionCommand.cc
  9800. * src/SocketCore.{h, cc}: Added datagram socket support.
  9801. * src/DefaultBtMessageFactory.cc
  9802. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9803. Create DHT commands.
  9804. * src/BtMessageFactory.h
  9805. * src/PeerMessageUtil.{h, cc}
  9806. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9807. Fixed the bug that log file is not written when configuration file doesn't exist.
  9808. This is caused by using Logger class before LogFactory is not configured.
  9809. BUG #1875079
  9810. * src/option_processing.cc
  9811. Warning message "configuration doesn't exist" is only printed when --conf is
  9812. given.
  9813. * src/option_processing.cc
  9814. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9815. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9816. ShaVisitor is now deprecated and slated to be removed.
  9817. * src/DefaultBtContext.cc
  9818. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9819. Externalize message to message.h
  9820. * src/Platform.cc
  9821. * src/message.h
  9822. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9823. Set default domain and default path to cookie.
  9824. * src/HttpResponse.cc
  9825. * src/CookieBox.{h, cc}
  9826. * src/CookieParser.{h, cc}
  9827. * test/CookieParserTest.cc
  9828. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Added --no-conf and --conf-path command-line option.
  9830. --no-conf option disables loading aria2.conf file.
  9831. --conf-path option changes the configuration file path. The default
  9832. file path is $HOME/.aria2/aria2.conf
  9833. Added a warning message when the configuration file is not found.
  9834. * src/HelpItemFactory.cc
  9835. * src/option_processing.cc
  9836. * src/prefs.h
  9837. * src/usage_text.h
  9838. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9839. Added the message to inform users that other help categories are
  9840. available in -h option.
  9841. * src/version_usage.cc
  9842. * src/TagContainer.{h, cc}
  9843. * test/TagContainerTest.cc
  9844. * src/TaggedItem.{h, cc}
  9845. * test/TaggedItemTest.cc
  9846. * src/HelpItem.h
  9847. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9849. from PiecedSegment's ctor.
  9850. Previously Piece::getAllMissingBlockIndexes() is called from
  9851. PiecedSegment() but it is rather expensive since only first element is
  9852. used.
  9853. * src/PiecedSegment.cc
  9854. * src/Piece.{h, cc}
  9855. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9856. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9857. each time these functions are called.
  9858. * src/BitfieldMan.{h, cc}
  9859. * test/BitfieldManTest.cc
  9860. * src/array_fun.h
  9861. * test/array_funTest.cc
  9862. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9863. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9864. filtered. Removed unnecessary cast to int32_t.
  9865. * src/BitfieldMan.{h, cc}
  9866. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9867. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9868. payload length(4bytes) are received. This happens because lenbufLength
  9869. is not updated in this particular case and successive call of
  9870. receiveMessage() overwrites payload length with bytes recieved which
  9871. are payload body.
  9872. * src/PeerConnection.{h, cc}
  9873. * src/message.h
  9874. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9876. peer if there are peers that have same ipaddr and port.
  9877. I've experiened segmentation fault and "pure virtual function was
  9878. called" error.
  9879. * src/Peer.h
  9880. * test/PeerTest.cc
  9881. * src/DefaultPeerStorage.cc
  9882. * test/DefaultPeerStorageTest.cc
  9883. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9884. Removed a call to isPowerOf() because it is no longer necessary here
  9885. and a request block is not always power of 2.
  9886. BUG#1866924
  9887. * src/PeerMessageUtil.cc (checkLength)
  9888. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Fixed the bug that always first found Segment is removed from
  9890. usedSegmentEntries. Removed unused functions.
  9891. * src/SegmentMan.{h, cc}
  9892. * test/SegmentManTest.cc
  9893. Fixed the bug that ServerHost is not removed.
  9894. * src/RequestGroup.cc
  9895. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Fixed the bug that SegmentMan::completeSegment() is not called
  9897. even if Segment is complete when --lowest-speed-limit is enabled.
  9898. BUG#1864525
  9899. * src/DownloadCommand.{h, cc}
  9900. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Fixed: hash algorithm 'sha1' is always used.
  9902. * src/DownloadCommand.cc (validatePieceHash)
  9903. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9904. Added --enable-peer-exchange command-line option.
  9905. * src/OptionHandlerFactory.cc
  9906. * src/HelpItemFactory.cc
  9907. * src/option_processing.cc
  9908. * src/usage_text.h
  9909. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9910. Move extension from BtRuntime to ExtensionMessageFactory, because
  9911. extension can be specified per peer, not per torrent.
  9912. * src/DefaultBtInteractive.cc
  9913. * src/BtRuntime.h
  9914. * src/ExtendedMessagingAware.h
  9915. * src/ExtensionMessageFactory.h
  9916. * src/DefaultExtensionMessageFactory.cc
  9917. * test/DefaultExtensionMessageFactoryTest.cc
  9918. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9919. Added categorized option help. Specify category using --help option.
  9920. Also added the ability to search options in forward match.
  9921. * src/HelpItem.{h, cc}
  9922. * test/HelpItemTest.cc
  9923. * src/HelpItemFactory.{h, cc}
  9924. * src/TagContainer.{h, cc}
  9925. * test/TagContainerTest.cc
  9926. * src/option_processing.cc
  9927. * src/prefs.h
  9928. * src/TaggedItem.{h, cc}
  9929. * test/TaggedItemTest.cc
  9930. * src/version_usage.cc
  9931. * src/help_tags.h
  9932. * src/usage_text.h
  9933. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9934. Fixed segmentation fault when bad torrent metainfo is parsed.
  9935. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9936. and then throw exception or skip it.
  9937. * src/DefaultBtContext.{h, cc}
  9938. * test/DefaultBtContextTest.cc
  9939. * src/AnnounceList.cc
  9940. * src/CompactPeerListProcessor.cc
  9941. * src/message.h
  9942. * src/DefaultBtAnnounce.{h, cc}
  9943. * test/DefaultBtAnnounceTest.cc
  9944. * src/BencodeVisitor.cc
  9945. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9946. Added missing "B"(=Byte). So now the message looks like this:
  9947. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9948. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9949. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9950. Show the seed ratio after torrent downloads.
  9951. For example, after torrent download completed and --seed-time and
  9952. --seed-ratio conditions are fulfilled, following message is printed
  9953. right after "Download complete: .....":
  9954. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9955. * src/RequestGroupMan.cc
  9956. * src/RequestGroup.{h, cc}
  9957. * src/message.h
  9958. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9959. Remove a defunct control file. A defunct control file means that while
  9960. it exists, but the corresponding download file is missing.
  9961. After its removal, a download restarts from the beginning.
  9962. * src/RequestGroup.cc
  9963. * src/message.h
  9964. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9965. Allocate bitfield in Peer when it is really used. More specifically,
  9966. bitfield in Peer is allocated after the connection is established and
  9967. deallocated when the connection is dropped.
  9968. Since 2 parameters(piece length and total length) was removed from the
  9969. constructor of Peer class, many test classes were modified accordingly.
  9970. See svn log for more detailed information.
  9971. * src/PeerInteractionCommand.cc
  9972. * src/CompactPeerListProcessor.cc
  9973. * src/Peer.cc
  9974. * src/DefaultPeerListProcessor.cc
  9975. * src/PeerListenCommand.cc
  9976. * src/PeerReceiveHandshakeCommand.cc
  9977. Fixed memory leak
  9978. * src/Piece.cc
  9979. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9980. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9981. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9982. command-line options.
  9983. * src/option_processing.cc
  9984. * src/ActivePeerConnectionCommand.cc
  9985. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9986. Send have message to peer if it already has the piece.
  9987. * src/BtHaveMessage.{h, cc}
  9988. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9989. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9990. port.
  9991. * src/DefaultPeerStorage.{h, cc}
  9992. * test/DefaultPeerStorageTest.cc
  9993. * src/HandshakeExtensionMessage.cc
  9994. * test/HandshakeExtensionMessageTest.cc
  9995. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9996. * src/PeerStorage.h
  9997. * test/MockPeerStorage.h
  9998. * src/PeerListenCommand.cc
  9999. * src/PeerReceiveHandshakeCommand.cc
  10000. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10001. Added --metalink-enable-unique-protocol option.
  10002. * src/Metalink2RequestGroup.cc
  10003. * src/option_processing.cc
  10004. * src/prefs.h
  10005. * src/version_usage.cc
  10006. * doc/aria2c.1.txt
  10007. * doc/aria2c.1
  10008. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10009. Allow a peer in incomingPeer to be added peers.
  10010. * src/DefaultPeerStorage.cc
  10011. * test/DefaultPeerStorageTest.cc
  10012. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10013. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10014. I could reproduce this bug in following procedure:
  10015. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10016. 2. Restart aria2.
  10017. 3. You see the download stopped around 99%.
  10018. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10019. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10020. If timeout is reached, then _nextCommand is unused and it may contains
  10021. segments and they won't be canceled. Actually, timeout is not needed
  10022. here because if the server dropped connection, then retry is made.
  10023. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10024. Added uTorrent compatible Peer Exchange.
  10025. * src/BencodeVisitor.{h, cc}
  10026. * test/BencodeVisitorTest.cc
  10027. * src/BtConstants.h
  10028. * src/BtContext.h: Added 'private' flag.
  10029. * src/BtExtendedMessage.{h, cc}
  10030. * test/BtExtendedMessageTest.cc
  10031. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10032. reserved field.
  10033. * test/BtHandshakeMessageTest.cc
  10034. * src/BtMessageFactory.h
  10035. * src/BtRegistry.h
  10036. * src/BtRuntime.h: This class holds default extension message IDs for
  10037. aria2. By default, aria2 uses ID 8 for ut_pex.
  10038. * src/DefaultBtContext.cc
  10039. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10040. When it is true, aria2 enables ut_pex. This value is set by
  10041. PeerInteractionCommand.
  10042. * src/DefaultBtMessageFactory.{h, cc}
  10043. * test/DefaultBtMessageFactoryTest.cc
  10044. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10045. handling to DefaultBtInteractive class.
  10046. * src/DefaultExtensionMessageFactory.{h, cc}
  10047. * test/DefaultExtensionMessageFactoryTest.cc
  10048. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10049. the container(peers and incomingPeers. The equality is determined by
  10050. Peer::id).
  10051. * test/DefaultPeerStorageTest.cc
  10052. * src/ExtensionMessage.h
  10053. * test/MockExtensionMessage.h
  10054. * src/ExtensionMessageFactory.h
  10055. * test/MockExtensionMessageFactory.h
  10056. * src/HandshakeExtensionMessage.{h, cc}
  10057. * test/HandshakeExtensionMessageTest.cc
  10058. * src/MetaEntry.h
  10059. * src/Peer.{h, cc}
  10060. * src/PeerInteractionCommand.cc
  10061. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10062. addIncomingPeer.
  10063. * src/PeerMessageUtil.{h, cc}
  10064. * src/PeerObject.h
  10065. * src/UTPexExtensionMessage.{h, cc}
  10066. * test/UTPexExtensionMessageTest.cc
  10067. * src/message.h
  10068. * src/prefs.h
  10069. Fixed the bug that returns incomplete data when it contains null
  10070. character. A convenient constructor was also added.
  10071. * src/Data.{h, cc}
  10072. Rewritten.
  10073. * src/CompactPeerListProcessor.cc
  10074. Fixed typos.
  10075. * src/message.h
  10076. * src/MetaFileUtil.cc
  10077. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10078. Added "Status Legend" label to the explanation text of 'stat' in
  10079. download result and moved it to the last. BUG#1848214
  10080. * src/RequestGroupMan.cc
  10081. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10082. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10083. * src/Makefie.am
  10084. * test/Makefile.am
  10085. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10086. Fixed the bug that prevents aria2 from loading cookie file when expire
  10087. value is greater than 2^31-1. BUG#1851066
  10088. * src/CookieBoxFactory.cc
  10089. * test/CookieBoxFactoryTest.cc
  10090. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10091. Fixed possible memory leak when an exception is thrown.
  10092. * src/XML2SAXMetalinkProcessor.cc
  10093. Added Expat support. If both libxml2 and Expat are installed, then
  10094. libxml2 is used by default.
  10095. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10096. ExpatMetalinkProcessor according to the configuration.
  10097. * src/ExpatMetalinkProcessor.{h, cc}
  10098. * src/main.cc: Removed libxml2 specific header and init/free function.
  10099. * src/MetalinkProcessorFactory.{h, cc}
  10100. * src/MetalinkHelper.cc
  10101. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10102. * src/MetalinkProcessor.h
  10103. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10104. MetalinkProcessorTest is used instead.
  10105. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10106. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10107. MetalinkProcessorFactory::newInstance().
  10108. * m4/libexpat.m4
  10109. * configure.ac: Added configuration options for libexpat.
  10110. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10111. Disabled -s option in metalink download.
  10112. * src/Metalink2RequestGroup.cc
  10113. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. If several protocols are available for a mirror in metalink file,
  10115. aria2 now use one of them. --metalink-preferred-protocol option was
  10116. added to specify the preference of protocol.
  10117. * src/AbstractCommand.cc
  10118. * src/OptionHandlerFactory.cc
  10119. * src/ServerHost.{h, cc}
  10120. * src/Metalink2RequestGroup.cc
  10121. * src/RequestGroup.{h, cc}
  10122. * test/RequestGroupTest.cc
  10123. * src/option_processing.cc
  10124. * src/prefs.h
  10125. * src/HttpResponseCommand.cc
  10126. * src/MetalinkResource.{h, cc}
  10127. * src/FtpNegotiationCommand.cc
  10128. * src/MetalinkEntry.{h, cc}
  10129. * src/MetalinkEntryTest.cc
  10130. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10131. Code cleanup and added debug log.
  10132. * src/PeerConnection.cc
  10133. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10134. Compiler error fix: applied the patch by Tiziano Mueller
  10135. * src/RequestGroup.cc
  10136. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10137. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10138. in stopped and completed event.
  10139. * src/AnnounceList.{h, cc}
  10140. * test/AnnounceListTest.cc
  10141. * src/DefaultBtAnnounce.cc
  10142. * test/DefaultBtAnnounceTest.cc
  10143. Sorted URLs.
  10144. * test/Metalink2RequestGroupTest.cc
  10145. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10146. Removed unnecessary string copy. Updated doc and corrected indentation.
  10147. * src/Base64.cc
  10148. Fixed compilation warnings
  10149. * test/DataTest.cc
  10150. * test/HttpRequestTest.cc
  10151. * test/MetaFileUtilTest.cc
  10152. * test/RequestTest.cc
  10153. * Release 0.12.0
  10154. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. Updated translations
  10156. * po/{de,fr,ja,nl,ru}.po
  10157. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10158. translations. Many thanks to translators.
  10159. * po/{ca,es,it,pt_BR,sv}.po
  10160. * po/LINGUAS
  10161. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10162. Added a notice about URL
  10163. * src/version_usage.cc
  10164. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10165. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10166. aria2 repeatedly sends stopped request when tracker returns error code.
  10167. * src/AnnounceList.cc
  10168. * test/AnnounceListTest.cc
  10169. * src/AnnounceTier.h
  10170. Added a message when ctrl-c is hit.
  10171. Now second ctrl-c is also handled in signal handler.
  10172. * src/RequestGroupMan.{h, cc}
  10173. * src/RequestGroup.{h, cc}
  10174. * src/MultiUrlRequestInfo.cc
  10175. * src/DownloadEngine.cc
  10176. * src/TrackerWatcherCommand.cc
  10177. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10178. Code cleanup
  10179. * src/Base64.cc (encode)
  10180. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10181. Changed Direct/IO enable/disable procesure in file allocation routine.
  10182. * src/SingleFileAllocationIterator.cc
  10183. (SingleFileAllocationIterator):
  10184. Disable directIO if offset is not multiple of 512.
  10185. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10186. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10187. Enable created SingleFileAllocationIterator's directIO.
  10188. * src/FileAllocationEntry.cc
  10189. (FileAllocationEntry): Enable directIO here.
  10190. (~FileAllocationEntry): Disable directIO here.
  10191. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10192. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10193. * src/Peer.{h, cc}
  10194. * src/DefaultPieceStorage.cc
  10195. * test/DefaultPieceStorageTest.cc
  10196. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10197. Rewritten direct I/O support routine
  10198. * src/SingleFileAllocationIterator.cc
  10199. * src/MultiDiskAdaptor.{h, cc}
  10200. * src/ByteArrayDiskWriter.h
  10201. * src/AbstractSingleDiskAdaptor.h
  10202. * src/AbstractDiskWriter.cc
  10203. * src/DefaultPieceStorage.cc
  10204. * src/DiskWriter.h
  10205. * src/BinaryStream.h
  10206. * src/IteratableChunkChecksumValidator.cc
  10207. * src/IteratableChecksumValidator.cc
  10208. * src/CheckIntegrityEntry.cc
  10209. * src/FileAllocationEntry.cc
  10210. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10211. Fixed typo
  10212. * src/version_usage.cc
  10213. Updated doc
  10214. * doc/aria2c.1.txt
  10215. * doc/aria2c.1
  10216. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. Fixed compile error without message digest support.
  10218. * src/FileMetalinkParserState.cc
  10219. * src/MetalinkParserController.{h, cc}
  10220. * test/XML2SAXMetalinkProcessorTest.cc
  10221. * test/MetalinkParserControllerTest.cc
  10222. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10223. Enable direct I/O support in checksum checking.
  10224. * src/IteratableChunkChecksumValidator.{h, cc}
  10225. * test/IteratableChunkChecksumValidatorTest.cc
  10226. * src/CheckIntegrityEntry.cc
  10227. * src/PieceHashCheckIntegrityEntry.cc
  10228. * src/IteratableChecksumValidator.{h, cc}
  10229. * src/BtCheckIntegrityEntry.cc: Added doc.
  10230. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10231. Added --allow-piece-length-change option.
  10232. * src/DefaultBtProgressInfoFile.cc
  10233. * test/DefaultBtProgressInfoFileTest.cc
  10234. * src/OptionHandlerFactory.cc
  10235. * src/option_processing.cc
  10236. * src/prefs.h
  10237. * src/version_usage.cc
  10238. * doc/aria2c.1.txt
  10239. * doc/aria2c.1
  10240. Fixed: duplicated result entry appears when exception is thrown in
  10241. RequestGroup::createInitiateConnectionCommand().
  10242. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10243. Add RequestGroup to _requestGroup after RequetGroup::
  10244. createInitiateConnectionCommand() succeeds.
  10245. Externalized message
  10246. * src/XML2SAXMetalinkProcessor.cc
  10247. * src/message.h
  10248. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10249. Forced download abort when received negative response from http/ftp
  10250. server.
  10251. * src/HttpResponseCommand.cc
  10252. * src/FtpNegotiationCommand.cc
  10253. * src/HttpResponse.cc
  10254. * src/FtpConnection.cc
  10255. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10256. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10257. the predecessor, Xml2MetalinkParser class.
  10258. I tested them against 94KB metalink file with 1234 chunk checksums.
  10259. The new one parsed it in 22msec, while it took 6000msec with old one.
  10260. * src/XML2SAXMetalinkProcessor.{h, cc}
  10261. * test/XML2SAXMetalinkProcessorTest.cc
  10262. * src/MetalinkParserController.{h, cc}
  10263. * test/MetalinkParserControllerTest.cc
  10264. * src/MetalinkParserState.h: Also added 16 subclasses.
  10265. * src/main.cc
  10266. * src/Metalink2RequestGroup.cc
  10267. * src/MetalinkHelper.cc
  10268. * src/MetalinkEntry.cc
  10269. * src/ChunkChecksum.h
  10270. Rewritten Base64 class for better performance.
  10271. * src/Base64.{h, cc}
  10272. * test/Base64Test.cc
  10273. * src/HttpRequest.cc
  10274. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10275. Fixed the bug#1841757: aria2 will connect to server to only get
  10276. file size.
  10277. * src/StreamFileAllocationEntry.cc
  10278. * src/option_processing.cc
  10279. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10280. downloads.
  10281. * src/FtpNegotiationCommand.cc
  10282. Suppressed wrong message when finding PreDownloadHandler
  10283. * src/RequestGroup.cc
  10284. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10285. Updated usage
  10286. * src/version_usage.cc
  10287. Updated man page
  10288. * doc/aria2c.1.txt
  10289. * doc/aria2c.1
  10290. Updated po files
  10291. * po/aria2c.pot
  10292. * po/*.po
  10293. * po/*.gmo
  10294. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10295. Eliminated g++-4.2 warning
  10296. * src/DownloadHandlerConstants.{h, cc}
  10297. * src/Util.cc
  10298. * test/MetaFileUtilTest.cc
  10299. * test/PStringBuildVisitorTest.cc
  10300. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10301. * src/RequestGroup.cc
  10302. * src/BtCheckIntegrityEntry.cc
  10303. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10304. Fixed a2io.h
  10305. * src/a2io.h
  10306. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10307. Added direct I/O support. The current implementation uses O_DIRECT,
  10308. which is not posix standard and is tested on linux 2.6.21.
  10309. Currently only file allocation uses direct I/O.
  10310. * src/SingleFileAllocationIterator.{h, cc}
  10311. * test/SingleFileAllocationIteratorTest.cc
  10312. * src/MultiFileAllocationIterator.{h, cc}
  10313. * test/MultiFileAllocationIteratorTest.cc
  10314. * src/BinaryStream.h
  10315. * src/DiskWriter.h
  10316. * src/AbstractDiskWriter.{h, cc}
  10317. * src/ByteArrayDiskWriter.h
  10318. * src/DiskAdaptor.h
  10319. * src/AbstractSingleDiskAdaptor.{h, cc}
  10320. * src/MultiDiskAdaptor.{h, cc}
  10321. * src/FileAllocationEntry.cc
  10322. * src/Util.{h, cc}
  10323. * src/OptionHandlerFactory.cc
  10324. * src/prefs.h
  10325. * src/version_usage.cc
  10326. * src/option_processing.cc
  10327. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10328. handleException.
  10329. * src/MultiFileAllocationIterator.cc
  10330. Added EINTR handling
  10331. * src/SocketCore.cc
  10332. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10333. Updated usage
  10334. * src/version_usage.cc
  10335. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10336. Applied Ross's patch for MinGW port.
  10337. * src/DownloadEngine.h
  10338. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10339. Set Content-Type to SingleFileDownloadContext when http response is
  10340. received.
  10341. * src/HttpResponseCommand.cc
  10342. * src/HttpResponse.{h, cc}
  10343. * test/HttpResponseTest.cc
  10344. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10345. Rewritten to add content-type support.
  10346. * src/DownloadHandler.{h, cc}
  10347. * src/BtPostDownloadHandler.{h, cc}
  10348. * test/BtPostDownloadHandlerTest.cc
  10349. * src/MetalinkPostDownloadHandler.{h, cc}
  10350. * test/MetalinkPostDownloadHandlerTest.cc
  10351. * src/PostDownloadHandler.{h, cc}
  10352. * src/DownloadHandlerConstants.{h, cc}
  10353. * src/RequestGroup.cc
  10354. * src/HttpResponseCommand.cc
  10355. * src/FtpNegotiationCommand.cc
  10356. * src/SingleFileDownloadContext.{h, cc}
  10357. * src/RequestGroup.h
  10358. * src/RequestGroupCriteria.h
  10359. * src/ContentTypeRequestGroupCriteria.h
  10360. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10361. If it is give, metalink/torrent file is not written to the disk, but
  10362. just is kept in memory. Parsing is occurred on memory.
  10363. * src/MetalinkHelper.{h, cc}
  10364. * src/MetalinkProcessor.h
  10365. * src/Xml2MetalinkProcessor.{h, cc}
  10366. * test/Xml2MetalinkProcessorTest.cc
  10367. * src/DownloadHandlerFactory.{h, cc}
  10368. * test/DownloadHandlerFactoryTest.cc
  10369. * src/PreDownloadHandler.{h, cc}
  10370. * src/OptionHandlerFactory.cc
  10371. * src/DefaultBtContext.{h, cc}
  10372. * test/DefaultBtContextTest.cc
  10373. * src/version_usage.cc
  10374. * src/Metalink2RequestGroup.{h, cc}
  10375. * src/RequestGroup.{h, cc}
  10376. * src/a2functional.h
  10377. * test/a2functionalTest.cc
  10378. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10379. * src/OptionHandlerImpl.h
  10380. * src/prefs.h
  10381. * src/Util.{h, cc}
  10382. * test/UtilTest.cc
  10383. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10384. memory usage.
  10385. * src/RequestGroupMan.{h, cc}
  10386. * src/DownloadEngine.cc
  10387. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10388. WeakHandle to SharedHandle because WeakHandle could be null.
  10389. * src/RequestGroup.{h, cc}
  10390. * src/DownloadEngineFactory.cc
  10391. * src/DownloadResult.h
  10392. Set totalLength after download finished
  10393. * src/UnknownLengthPieceStorage.{h, cc}
  10394. Keep torrent file specified in metalink in memory.
  10395. * src/Metalink2RequestGroup.cc
  10396. * src/BtDependency.cc
  10397. * src/TrueRequestGroupCriteria.h
  10398. Fixed the bug: seekg is used where seekp should be used.
  10399. * src/ByteArrayDiskWriter.cc
  10400. * test/ByteArraydiskWriterTest.cc
  10401. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Fixed syntax error
  10403. * test/SequenceTest.cc
  10404. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10405. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10406. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10407. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10408. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10409. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. Added the check to see whether ares_host_callback accepts timeouts
  10411. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10412. * src/NameResolver.{h, cc}
  10413. * m4/libcares.m4
  10414. * configure.ac: Set C++ for language choice.
  10415. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10416. Fixed: compilation fails without c-ares/ares
  10417. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10418. Generate http/ftp commands only when download is incomplete.
  10419. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10420. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10421. Corrected typo. Examples are removed since they are available in man
  10422. page.
  10423. * src/version_usage.cc
  10424. Updated man page.
  10425. * doc/aria2c.1
  10426. * doc/aria2c.1.txt
  10427. * doc/makeman: Commented out sed command.
  10428. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10429. Throw DlAbortEx when a remote file is not found.
  10430. * src/HttpResponse.cc
  10431. * src/FtpNegotiationCommand.cc
  10432. * src/message.h
  10433. Overwrite an existing file if --allow-overwrite=true is given.
  10434. * src/RequestGroup.cc
  10435. Removed unused functions
  10436. * src/AbstractCommand.h
  10437. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. Removed 'extern' from 'extern typedef ...' in src/*.h
  10439. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10440. Updated usage
  10441. * src/version_usage.cc
  10442. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10443. Trim announce URL
  10444. * src/DefaultBtContext.cc
  10445. * test/ShaVisitorTest.cc
  10446. Trim argument s. Give trimed s to exception constructor.
  10447. * src/Util.cc (parseInt)(parseLLInt)
  10448. * test/UtilTest.cc
  10449. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10450. Set precision back to 1.
  10451. * src/ConsoleStatCalc.cc (calculateStat)
  10452. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10453. Replaced strtol with Util::parseInt
  10454. * src/ChunkedEncoding.cc
  10455. * src/HttpConnection.cc
  10456. * src/CookieBoxFactory.cc
  10457. * src/ParameterizedStringParser.cc
  10458. * src/Util.cc
  10459. * test/UtilTest.cc
  10460. * test/OptionHandlerTest.cc
  10461. * src/Request.cc
  10462. Throw exception when empty string is given. The message for exception
  10463. changed.
  10464. * src/Util.cc (parseInt)(parseLLInt)
  10465. * src/message.h
  10466. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10467. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10468. set to 1.
  10469. * src/ConsoleStatCalc.cc (calculateStat)
  10470. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10471. Preallocate non-requested file which is adjacent forward to requested
  10472. file('requested' files means the files given in --select-file option)
  10473. if they share a same piece.
  10474. This fixes long pause in the file system which doesn't support sparse
  10475. files like FAT32 while downloading.
  10476. * src/MultiFileAllocationIterator.{h, cc}
  10477. * test/MultiFileAllocationIteratorTest.cc
  10478. * src/FileEntry.{h, cc}
  10479. Removed unused _option.
  10480. * src/MultiDiskAdaptor.h
  10481. * test/MultiDiskAdaptorTest.cc
  10482. * src/DefaultPieceStorage.cc
  10483. Set the default value of --seed-ratio to 1.0.
  10484. If 0.0 is given, then seeding continues regardless of share ratio.
  10485. * src/version_usage.cc
  10486. * src/option_processing.cc
  10487. * src/BtSetup.cc
  10488. * doc/aria2c.1.txt
  10489. * doc/aria2c.1
  10490. Fixed: Selective download is not working in BitTorrent
  10491. * src/RequestGroup.cc
  10492. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10493. * src/PieceStorage.h
  10494. * test/MockPieceStorage.h
  10495. * src/UnknownLengthPieceStorage.h
  10496. * src/DefaultPieceStorage.{h, cc}
  10497. * src/Metalink2RequestGroup.cc
  10498. * src/RequestGroup.cc
  10499. * src/Sequence.h
  10500. * test/SequenceTest.cc
  10501. * src/IntSequence.h
  10502. * src/message.h
  10503. * src/Util.{h, cc}
  10504. * test/UtilTest.cc
  10505. Added new function 'parse' to catch exception thrown by subclass's
  10506. parseArg
  10507. * src/OptionHandler.h
  10508. * src/OptionParser.cc
  10509. * src/NameMatchOptionHandler.h
  10510. * src/OptionHandlerImpl.h
  10511. * test/OptionHandlerTest.cc
  10512. Added IntegerRangeOptionHandler. Used for --listen-port and
  10513. --select-file. Now --listen-port accepts range of port.
  10514. * src/OptionHandlerFactory.cc
  10515. * src/version_usage.cc
  10516. * src/OptionHandlerImpl.h
  10517. * src/option_processing.cc
  10518. * src/BtSetup.cc
  10519. * src/PeerListenCommand.{h, cc}
  10520. * doc/aria2c.1.txt
  10521. * doc/aria2c.1
  10522. Implemented operator< for Exception class to provide easy way to print
  10523. exception stack trace.
  10524. * src/Exception.{h, cc}
  10525. * src/main.cc
  10526. * src/option_processing.cc
  10527. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10528. * src/version_usage.cc
  10529. (showVersion): Reworked.
  10530. (showUsage): Added examples.
  10531. Removed Hint for total length and file name.
  10532. * src/Metalink2RequestGroup.cc
  10533. * src/RequestGroup.{h, cc}
  10534. * src/HttpResponseCommand.cc
  10535. * src/FtpNegotiationCommand.cc
  10536. Now --follow-torrent and --follow-metalink option work properly.
  10537. * src/RequestGroup.cc
  10538. Updated man page
  10539. * doc/aria2c.1.txt
  10540. * doc/aria2c.1
  10541. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10542. Removed.
  10543. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10544. Use Segment::operator==()
  10545. * src/HttpConnection.cc
  10546. * src/Segment.h
  10547. Updated usage
  10548. * src/version_usage.cc
  10549. Added EINTR treatment.
  10550. * src/SocketCore.cc
  10551. * src/AbstractDiskWriter.cc
  10552. Rewritten.
  10553. * src/Util.cc (rangedFileCopy)
  10554. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10555. Fixed typo.
  10556. * src/version_usage.cc
  10557. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10558. Implemented. Now -c option works fine.
  10559. * src/DefaultPieceStorage.cc (markPiecesDone)
  10560. * test/DefaultPieceStorageTest.cc
  10561. Removed.
  10562. * src/SegmentMan.{h, cc}
  10563. (markAllPiecesDone)
  10564. (markPieceDone)
  10565. Synchronized po files with
  10566. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10567. * src/fr.po
  10568. * src/ru.po
  10569. * src/de.po
  10570. * src/ja.po
  10571. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10572. Added ifdef and some modifications to compile without BitTorrent,
  10573. Metalink, MessageDigest
  10574. support.
  10575. * src/PieceHashCheckIntegrityEntry.cc
  10576. * src/MetalinkEntry.h
  10577. * src/version_usage.cc
  10578. * src/main.cc
  10579. * src/DownloadEngine.{h, cc}
  10580. * src/Metalink2RequestGroup.cc
  10581. * src/Peer.cc
  10582. * src/RequestGroup.cc
  10583. * src/MetalinkHelper.cc
  10584. * test/DefaultPieceStorageTest.cc
  10585. * test/MetalinkPostDownloadHandlerTest.cc
  10586. * test/Metalink2RequestGroupTest.cc
  10587. Hide TOTAL SPD when all downloads complete.
  10588. * src/ConsoleStatCalc.cc
  10589. Log target system information.
  10590. * src/main.cc
  10591. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10592. Now --metalink-location accepts a comma-deliminated list of locations.
  10593. * src/MetalinkEntry.{h, cc}
  10594. * test/MetalinkEntryTest.cc
  10595. * src/version_usage.cc
  10596. * src/Metalink2RequestGroup.cc
  10597. * src/Xml2MetalinkProcessor.cc
  10598. * test/Xml2MetalinkProcessorTest.cc
  10599. * doc/aria2c.1.txt
  10600. * doc/aria2c.1
  10601. * src/Util.cc (toUpper)(toLower): Rewritten.
  10602. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10603. Added the ability to detect duplicate download entry which is about to
  10604. download the same file other RequestGroup is downloading.
  10605. * src/RequestGroup.cc
  10606. * src/HttpResponseCommand.cc
  10607. * src/FtpNegotiationCommand.cc
  10608. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10609. Recalculates download progress when loading a control file,
  10610. if the piece length of DownloadContext is different from the one saved
  10611. in the control file. Currently in-flight pieces are ignored.
  10612. * src/DefaultBtProgressInfoFile.cc
  10613. * test/DefaultBtProgressInfoFileTest.cc
  10614. * src/Util.{h, cc}
  10615. * test/UtilTest.cc
  10616. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10617. Do not rotate tiers in announce-list.
  10618. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10619. AnnounceList::allTiersFailed() used instead to detect whether all
  10620. tiers are tried and failed.
  10621. * test/DefaultBtAnnounceTest.cc
  10622. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10623. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10624. * test/AnnounceListTest.cc
  10625. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10626. clause. Catch RecoverableException instead of DlRetryEx instead.
  10627. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10628. Implemented checksum validation feature(1 checksum for each file)
  10629. The validation takes place after the download.
  10630. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10631. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10632. * src/CheckIntegrityCommand.cc: Changed log message.
  10633. * src/Metalink2RequestGroup.cc: Set checksum to
  10634. SingleFileDownloadContext.
  10635. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10636. PieceHashCheckIntegrity class.
  10637. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10638. PieceHashCheckIntegrity class.
  10639. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10640. * src/IteratableValidator.h: New class.
  10641. * src/message.h
  10642. * src/CheckIntegrityEntry.{h, cc}
  10643. * src/IteratableChunkChecksumValidator.{h, cc}
  10644. * src/SingleFileDownloadContext.h
  10645. * src/DownloadCommand.cc
  10646. --allow-overwrite=true is no longer needed to check file integrity
  10647. before download in BitTorrent download.
  10648. * src/RequestGroup.cc (getInitialCommand)
  10649. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10650. throws exception.
  10651. * src/RequestGroupMan.cc (getInitialCommands)
  10652. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10653. urlencode the given url inside Request::parseUrl(...)
  10654. * src/Request.{h, cc}
  10655. * src/Util.{h, cc}
  10656. * test/RequestTest.cc
  10657. Removed #!metalink3! notation support because it is deleted from
  10658. the metalink specification.
  10659. * src/Request.{h, cc}
  10660. * test/RequestTest.cc
  10661. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10662. Don't connect server before checking file integrity at startup, if
  10663. filesize and output file path are known.
  10664. * src/AbstractCommand.cc
  10665. * src/StreamFileAllocationEntry.cc
  10666. * src/Metalink2RequestGroup.cc
  10667. * src/RequestGroup.{h, cc}
  10668. * src/HttpResponseCommand.cc
  10669. * src/FtpNegotiationCommand.cc
  10670. Added DownloadFailureException. If it is thrown, RequestGroup should
  10671. halt.
  10672. * src/AbstractCommand.cc
  10673. * src/DownloadFailureException.h
  10674. * src/RequestGroup.cc
  10675. Catch RecoverableException, instead of DlAbortEx.
  10676. * src/RequestGroupMan.cc
  10677. * src/FillRequestGroupCommand.cc
  10678. * src/MetaFileUtil.cc
  10679. * src/IteratableChunkChecksumValidator.cc
  10680. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10681. getGID())
  10682. * src/CheckIntegrityCommand.cc
  10683. * src/message.h
  10684. Print gid instead of idx.
  10685. * src/RequestGroupMan.cc
  10686. Removed exception throwers declaration.
  10687. * src/DirectDiskAdaptor.{h, cc}
  10688. * src/SocketCore.{h, cc}
  10689. * src/MultiDiskAdaptor.{h, cc}
  10690. * src/HttpConnection.{h, cc}
  10691. * src/HttpResponse.{h, cc}
  10692. * src/DiskAdaptor.{h, cc}
  10693. * src/CopyDiskAdaptor.{h, cc}
  10694. * src/MultiDiskAdaptor.{h, cc}
  10695. * src/HttpHeaderProcessor.{h, cc}
  10696. * src/AbstractSingleDiskAdaptor.{h, cc}
  10697. * src/Util.{h, cc}
  10698. * test/UtilTest.cc
  10699. * src/DefaultDiskWriter.{h, cc}
  10700. * src/FtpConnection.{h, cc}
  10701. * src/AbstractDiskWriter.{h, cc}
  10702. Removed duplicate code.
  10703. * src/StreamCheckIntegrityEntry.cc
  10704. Removed unnecessary include.
  10705. * src/DiskWriter.h
  10706. Included Exception.h
  10707. * src/option_processing.cc
  10708. Included 2 files and added doc
  10709. * src/TrackerWatcherCommand.cc
  10710. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10711. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10712. Changed CheckIntegrityEntry interface so that it can define
  10713. the action when all the chunk checksums are valid.
  10714. * src/CheckIntegrityEntry.h
  10715. * src/StreamCheckIntegrityEntry.{h, cc}
  10716. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10717. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10718. to exit rather than doing seeding. So, it would be good to toggle this
  10719. behavior.
  10720. * src/CheckIntegrityCommand.cc
  10721. * src/AbstractCommand.cc
  10722. * src/RequestGroup.cc
  10723. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10724. Reflect the download length of in-flight pieces.
  10725. It makes the download length readout more precise.
  10726. * src/DefaultPieceStorage.{h, cc}
  10727. * test/DefaultPieceStorageTest.cc
  10728. * src/a2functional.h
  10729. * test/a2functionalTest.cc
  10730. Lower CPU load when --max-download-limit is used.
  10731. There is up and down in speed indicator when enabling
  10732. http-pipelining but a download goes well. I think the problem is that
  10733. because http-pipelining is enabled, DownloadCommand is created for
  10734. each segment and in its constructor, PeerStat::downloadStart() is
  10735. called. In PeerStat::downloadStart(), speed calculation object is
  10736. reseted, which makes download speed zero.
  10737. * src/DownloadCommand.cc
  10738. Rewritten using accumulate.
  10739. * src/RequestGroupMan.cc (calculateStat)
  10740. Code clearnup.
  10741. * src/FtpNegotiationCommand.cc
  10742. * src/HttpResponseCommand.cc
  10743. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10744. Fixed: Can not resume: aria2 reports download already finished.
  10745. * src/AbstractCommand.{h, cc}
  10746. * src/HttpResponseCommand.cc
  10747. * src/FtpNegotiateCommand.cc
  10748. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10749. Now a file is stored in the directory specified in .metalnk file
  10750. (file[@name]).
  10751. * src/Metalink2RequestGroup.cc
  10752. Create the directory structure when opening the file if it doesn't
  10753. exist.
  10754. * src/AbstractDiskWriter.cc
  10755. * src/Util.{h, cc}
  10756. * src/File.h
  10757. * test/UtilTest.cc
  10758. Removed file name comparison
  10759. * src/Metalink2RequestGroup.cc
  10760. * src/HttpResponseCommand.cc
  10761. Rewritten using Util::mkdirs()
  10762. * src/FileEntry.cc (setupDir)
  10763. * test/FileEntryTest.cc
  10764. Updated doc
  10765. * src/SingleFileDownloadContext.h
  10766. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10767. Now SleepCommand dispatches nextCommand when halt is requested.
  10768. It avoids a possible long wait after hitting CTRL-C.
  10769. * src/SleepCommand.{h, cc}
  10770. * src/RequestGroupAware.{h, cc}
  10771. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10773. to open listen port, then remove the port number from the tracker
  10774. request.
  10775. * src/DefaultBtAnnounce.cc
  10776. * test/DefaultBtAnnounceTest.cc
  10777. * test/MockPieceStorage.h
  10778. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10779. them more testable.
  10780. * src/DefaultBtAnnounce.{h, cc}
  10781. * src/DefaultBtContext.{h, cc}
  10782. * src/Util.{h, cc}
  10783. * test/DefaultBtAnnounceTest.cc
  10784. * test/DefaultBtContextTest.cc
  10785. * test/UtilTest.cc
  10786. Added 'B' to upload bytes readout.
  10787. * src/ConsoleStatCalc.cc
  10788. Now the listen port for BitTorrent download is opened when it is
  10789. needed.
  10790. * src/DownloadEngineFactory.cc
  10791. * src/BtSetup.{h, cc}
  10792. * src/PeerListenCommand.{h, cc}
  10793. Now an exception thrown while parsing tracker response is now logged.
  10794. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10795. called, which means no retry is made in this case, assuming a tracker
  10796. has a problem.
  10797. * src/TrackerWatcherCommand.cc
  10798. Fixed: downloading a file whose length is unkown fails.
  10799. * src/DownloadCommand.cc
  10800. Simplified prepareForNextSegment()
  10801. * src/DownloadCommand.cc
  10802. Updated
  10803. * po/POTFILES.in
  10804. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10805. Re-implemented a file listing for Metalink, which was dropped while
  10806. http/ftp/torrent integration was being implemented.
  10807. * src/MetalinkHelper.{h, cc}: New class.
  10808. * test/MetalinkHelperTest.cc
  10809. * src/main.cc
  10810. * src/Metalink2RequestGroup.cc
  10811. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10812. Added the ability to display the detailed torrent file information.
  10813. Now -S option gives not only a file listing, but also total download
  10814. length, info hash, announce URI, piece length, the number of pieces,
  10815. and mode(single or multi-torrent).
  10816. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10817. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10818. KiB)
  10819. * test/UtilTest.cc
  10820. * src/main.cc
  10821. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10822. Added ftp://USER:PASSWD@Servername automatic parsing.
  10823. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10824. _password. Recognize username and password in URI.
  10825. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10826. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10827. * src/RequestFactory.{h, cc}: Removed.
  10828. * src/AuthConfigFactory.{h, cc}: New class.
  10829. * src/FtpConnection.cc: Use AuthConfigFactory.
  10830. * src/HttpRequest.cc: Use AuthConfigFactory.
  10831. * test/HttpRequestTest.cc: Updated.
  10832. * test/RequestTest.cc: Updated.
  10833. * test/AuthConfigFactoryTest.cc: New class.
  10834. * test/RequestFactoryTest.cc: Removed.
  10835. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10836. Use RequestGroup::allDownloadFinished() to decide whether the control
  10837. file should be removed or saved.
  10838. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10839. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10840. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10841. Use File::renameTo()
  10842. * src/DefaultBtProgressInfoFile.cc
  10843. Added --no-file-allocation-limit command-line option.
  10844. * src/version_usage.cc
  10845. * src/option_processing.cc
  10846. * src/OptionHandlerFactory.cc
  10847. * src/RequestGroup.{h, cc}
  10848. * src/BtCheckIntegrityEntry.cc
  10849. * src/StreamCheckIntegrityEntry.cc
  10850. * src/prefs.h
  10851. * doc/aria2c.1.txt
  10852. * doc/aria2c.1
  10853. Now prealloc is the default value for --file-allocation option.
  10854. * src/version_usage.cc
  10855. * src/option_processing.cc
  10856. * doc/aria2c.1.txt
  10857. * doc/aria2c.1
  10858. Don't URL-encode user-agent.
  10859. * src/HttpRequest.cc
  10860. Updated translations
  10861. * po/LINGUAS: Added nl for Dutch translation.
  10862. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10863. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10864. * po/POTFILES.in: Updated.
  10865. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10866. Added the ability to recognize url-list in a torrent file.
  10867. The retrieved URLs are attached to the corresponding FileEntry.
  10868. * src/DefaultBtContext.{h, cc}
  10869. * src/FileEntry.{h, cc}
  10870. * test/DefaultBtContextTest.cc
  10871. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10872. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10873. after the download finishes.
  10874. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10875. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10876. the data smaller than block length.
  10877. A block length can be specified by constructor's argument.
  10878. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10879. Get a missing piece in the range of given FileEntry. This function is
  10880. not used in the program yet.
  10881. * src/Util.h: Added some macros.
  10882. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10883. Added HTTP/1.1 keep alive and pipelining support.
  10884. See --enable-http-keep-alive and --enable-http-pipelining option.
  10885. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10886. Segment.
  10887. * src/HttpDownloadCommand.{h, cc}
  10888. * src/OptionHandlerFactory.cc
  10889. * src/HttpConnection.{h, cc}
  10890. * src/version_usage.cc
  10891. * src/HttpInitiateConnectionCommand.cc
  10892. * src/FtpInitiateConnectionCommand.cc
  10893. * src/Segment.h
  10894. * src/HttpRequestCommand.{h, cc}
  10895. * src/option_processing.cc
  10896. * src/prefs.h
  10897. * src/HttpResponseCommand.cc
  10898. * src/SegmentMan.{h, cc}
  10899. * src/FtpNegotiateCommand.cc
  10900. * src/HttpProxyResponseCommand.cc
  10901. * src/Request.cc
  10902. * src/HttpRequest.cc
  10903. * src/DownloadCommand.cc
  10904. * test/HttpRequestTest.cc
  10905. * test/RequestTest.cc
  10906. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10907. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10908. finished.
  10909. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10910. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10911. catching it inside the method.
  10912. When no file entry is found in a metalink without querying user
  10913. preferences, throw the exception with the error message that suggests
  10914. metalink file is probably broken.
  10915. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10916. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10917. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10918. processed.
  10919. * src/RequestGroupMan.cc (removeStoppedGroup)
  10920. Added debug message.
  10921. * src/BtPostDownloadHandler.cc
  10922. * src/MetalinkPostDownloadHandler.cc
  10923. * src/PostDownloadHandler.{h, cc}
  10924. * src/RequestGroup.cc
  10925. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10926. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10927. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10928. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10929. stops and there are any unfinished or in-progress downloads.
  10930. Added the legend of "stat".
  10931. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10932. Throw exception when chunck checksum verification fails.
  10933. * src/DownloadCommand.cc (validatePieceHash): New function.
  10934. * src/PiecedSegment.{h, cc} (clear): New function.
  10935. * src/GrowSegment.{h, cc} (clear): New function.
  10936. * src/Segment.h (clear): New function.
  10937. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10938. * test/SegmentTest.cc
  10939. * test/GrowSegmentTest.cc
  10940. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10941. Do not send referer when redirected.
  10942. * src/Request.cc (redirectUrl)
  10943. * test/RequestTest.cc
  10944. * test/HttpRequestTest.cc
  10945. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10946. Implemented BitTorrent/http/ftp integrated download.
  10947. I've rewritten lots of files and now some headers have forward
  10948. class declarations to reduce compile time.
  10949. The implementation is extremely alpha stage, I recommend to use this
  10950. for testing purpose only.
  10951. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10952. Fixed the compilation error on 64bit platform.
  10953. * test/HttpHeaderProcessorTest.cc
  10954. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10955. Merged Ross's patch that fixes compilation problem in MinGW
  10956. * test/DefaultBtProgressInfoFileTest.cc
  10957. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10958. Updated fr.po by sebone
  10959. * po/fr.po
  10960. Updated man page.
  10961. * doc/aria2c.1.txt
  10962. * Release 0.11.3
  10963. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10964. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10965. failure in Metalink.
  10966. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10967. Automatically save *.aria2 control file of http/ftp download in every
  10968. 60 seconds.
  10969. * src/AutoSaveCommand.{h, cc}: New class.
  10970. * src/TimeBasedCommand.{h, cc}: New class.
  10971. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10972. Disable parameterized URI support by default. Added -P option to
  10973. enable the feature.
  10974. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10975. * src/OptionHandlerFactory.cc
  10976. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10977. Updated Japanese translation.
  10978. * po/ja.po
  10979. Updated man page.
  10980. * doc/aria2c.1.txt
  10981. * Release 0.11.3-rc
  10982. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10983. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10984. it is successful, then renamed to *.aria2.
  10985. This prevents *.aria2 file from being truncated or corrupted when
  10986. file system becomes out of space.
  10987. * src/DefaultBtProgressInfoFile.cc (save)
  10988. * src/SegmentMan.cc (save)
  10989. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10990. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10991. Reduced the fragmentation of bitfield in http/ftp download.
  10992. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10993. * test/BitfieldManTest.cc
  10994. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10995. Added the ability to disable segmented download in .metalink.
  10996. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10997. 'url' tag.
  10998. * src/MetalinkEntry.{h, cc}
  10999. * src/RequestResource.{h, cc}
  11000. * src/MetalinkRequestInfo.cc
  11001. * src/Xml2MetalinkProcessor.cc
  11002. * test/Xml2MetalinkProcessorTest.cc
  11003. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. Added parameterized URI support.
  11005. * src/main.cc: -Z option added.
  11006. * src/OptionHandlerFactory.cc
  11007. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11008. * src/PStringDatum.h: New class.
  11009. * src/PStringSegment.{h,cc}: New class.
  11010. * src/PStringNumLoop.h: New class.
  11011. * src/PStringSelect.h: New class.
  11012. * src/NumberDecorator.h: New class.
  11013. * src/FixedWidthNumberDecorator.h: New class.
  11014. * src/AlphaNumberDecorator.h: New class.
  11015. * src/PStringVisitor.h: New class.
  11016. * src/PStringBuildVisitor.{h,cc}: New class.
  11017. * src/ParameterizedStringParser.{h,cc}: New class.
  11018. * src/Util.{h,cc}
  11019. (isNumber): New function.
  11020. (isLowercase): New function.
  11021. (isUppercase): New function.
  11022. (alphaToNum): New function.
  11023. * test/ParameterizedStringParserTest.cc: New class.
  11024. * test/AlphaNumberDecoratorTest.cc: New class.
  11025. * test/PStringBuildVisitorTest.cc: New class.
  11026. * test/UtilTest.cc
  11027. (testIsNumber): New function.
  11028. (testIsLowercase): New function.
  11029. (testIsUppercase): New function.
  11030. (testAlphaToNum): New function.
  11031. Added '\n' after the error message
  11032. * src/RequestInfo.h (printDownloadAbortMessage)
  11033. Added auto file renaming feature in http(s)/ftp download.
  11034. * src/main.cc: Added --auto-file-renaming command-line option.
  11035. * src/OptionHandlerFactory.cc
  11036. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11037. * src/RequestGroup.{h, cc}
  11038. (shouldCancelDownloadForSafety): Rewritten
  11039. (tryAutoFileRenaming): New function.
  11040. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11041. * src/HttpResponseCommand.cc
  11042. (executeInternal): Removed the call to RequestGroupMan::
  11043. isSameFileBeingDownloaded()
  11044. * src/FtpNegotiateCommand.cc
  11045. (recvSize): Removed the call to RequestGroupMan::
  11046. isSameFileBeingDownloaded()
  11047. * test/RequestGroupTest.cc: New class.
  11048. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11049. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11050. IO.
  11051. * src/DefaultBtProgressInfoFile.cc
  11052. * src/MetaFileUtil.cc
  11053. * src/SimpleLogger.cc
  11054. * src/SegmentMan.cc
  11055. * src/Util.cc
  11056. * src/Platform.cc
  11057. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11058. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11059. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11060. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11061. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11062. Fixed the bug that prevents file allocation is not done when
  11063. dowloading multi-torrent file.
  11064. * src/AbstractDiskWriter.cc (openFile)
  11065. Increase the maximum number of -j option from 15 to 45.
  11066. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11067. Added fr.po, thanks to Charles Landemaine.
  11068. * po/fr.po
  11069. * po/LINGUAS
  11070. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11071. gcc 3.4.4 support:
  11072. * src/DefaultBtContext.cc: int32_t -> int
  11073. * src/main.cc: int -> int32_t, int32_t -> int
  11074. * src/messageDigest.h: uint32_t -> unsigned int
  11075. * src/NameResolver.h: int32_t -> int
  11076. * src/PeerConnection.cc: int -> int32_t
  11077. * src/SpeedCalc.cc: int32_t -> int
  11078. * src/TrackerUpdateCommand.h: int -> int32_t
  11079. * src/Util.cc: int32_t -> int
  11080. * src/Util.h: int32_t -> int
  11081. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11082. * test/AnnounceListTest.cc: int -> int32_t
  11083. * test/ChunkedEncodingTest.cc: int -> int32_t
  11084. * test/DataTest.cc: int -> int32_t
  11085. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11086. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11087. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11088. * test/FeatureConfigTest.cc: int -> int32_t
  11089. * test/MetalinkEntryTest.cc: int -> int32_t
  11090. * test/MockBtRequestFactory.h: int -> int32_t
  11091. * test/MockPieceStorage.h: int -> int32_t
  11092. * test/OptionTest.cc: int -> int32_t
  11093. * test/RequestTest.cc: int -> int32_t
  11094. * test/SegmentManTest.cc: int -> int32_t
  11095. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11096. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11097. Move sleep functions to Util class:
  11098. * src/Util.cc
  11099. (sleep): New function.
  11100. (usleep): New function.
  11101. * src/DownloadCommand.cc: sleep -> Util::sleep
  11102. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11103. MinGW build enhancements. The following files are added:
  11104. * src/timegm.{c,h}
  11105. Changes to support the above new files:
  11106. * configure.ac
  11107. * src/Makefile.am
  11108. * src/a2time.h
  11109. * src/Util.cc:
  11110. * src/strptime.c: Added support for %Z option.
  11111. Fixed MinGW non-blocking bug.
  11112. * src/SocketCore.cc
  11113. * src/HttpRequestCommand.cc
  11114. Miscellenous build fixes/enhancements.
  11115. * configure.ac: Added summary report.
  11116. * src/Platform.h: Tweaked #include's.
  11117. * src/a2netcompat.h: Tweaked #include's.
  11118. * src/strptime.h: Tweaked #include's.
  11119. * src/gai_strerror.c: Tweaked #include's.
  11120. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11121. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11122. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11123. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11124. Increased the initial connection size in BitTorrent download to 40.
  11125. * src/BtRuntime.h
  11126. Added the usage message of --peer-id-prefix option.
  11127. * src/main.cc
  11128. * Release 0.11.2
  11129. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11130. MessageDigestHelper is introduced in order to simplify the use
  11131. of message digest. Removed repeated code.
  11132. The message digest algorithm is now specified by string, like "sha1",
  11133. "md5".
  11134. * src/messageDigest.{h, cc}
  11135. * src/MessageDigestHelper.{h, cc}: New class.
  11136. * src/DefaultPieceStorage.cc
  11137. * src/DefaultBtContext.{h, cc}
  11138. (computeFastSet): New function.
  11139. (setInfoHash): Added for unit testing.
  11140. (setNumPieces): Added for unit testing.
  11141. * src/DefaultBtInteractive.cc
  11142. * src/BtPieceMessage.cc
  11143. * src/Peer.cc
  11144. * src/Checksum.h
  11145. * src/message.h
  11146. * src/IteratableChecksumValidator.h
  11147. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11148. inside it.
  11149. * src/SegmentMan.{h, cc}
  11150. (checkIntegrity): Removed.
  11151. * src/IteratableChunkChecksumValidator.{h, cc}
  11152. * src/Util.h
  11153. (sha1Sum): Removed.
  11154. (simpleMessageDigest): Removed.
  11155. (fileChecksum): Removed.
  11156. (computeFastSet): Removed.
  11157. * src/ShaVisitor.cc
  11158. * src/ChunkChecksum.h
  11159. * src/DownloadCommand.cc
  11160. Removed messageDigest virtual functions.
  11161. * src/MultiDiskAdaptor.{h, cc}
  11162. * src/DiskAdaptor.h
  11163. * src/ByteArrayDiskWriter.h
  11164. * src/DiskWriter.h
  11165. * src/DiskAdaptorWriter.h
  11166. * src/AbstractSingleDiskAdaptor.{h, cc}
  11167. * src/AbstractDiskWriter.{h, cc}
  11168. Fixed comilation error when message digest is disabled.
  11169. * src/MetalinkEntry.{h, cc}
  11170. * src/MetalinkRequestInfo.cc
  11171. Removed srandom and random.
  11172. * src/SimpleRandomizer.h
  11173. Added size() virtual function to DiskAdaptor
  11174. * src/MultiDiskAdaptor.h
  11175. Fixed the bug that causes that files are not opened correctly in
  11176. multi-file torrent.
  11177. * src/TorrentRequestInfo.cc
  11178. * src/MultiDiskAdaptor.cc
  11179. Added SHA256 support
  11180. * src/messageDigest.cc
  11181. * src/Xml2MetalinkProcessor.cc
  11182. Show supported message digest algorithms
  11183. * src/main.cc
  11184. Updated contact info.
  11185. * src/main.cc
  11186. Applied Ross's patch
  11187. * src/a2netcompat.h
  11188. * src/main.cc
  11189. Fixed the bug that prevents a remote metalink from not being processed
  11190. even if '-o foo.metalink' is specified.
  11191. * src/MetalinkRequestInfo.cc
  11192. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11193. Merged Dan's patch:
  11194. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11195. Use va_copy to avoid core dump on amd64:
  11196. * src/SimpleLogger.cc
  11197. Updated contact info.
  11198. * src/main.cc
  11199. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11200. digest is not available.
  11201. * src/MetalinkEntry.h
  11202. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11203. Make a2netcompat.h include a2io.h to fix compilation error:
  11204. * src/a2netcompat.h
  11205. * src/SocketCore.cc: Removed include of a2io.h
  11206. * src/Util.cc: Removed include of a2io.h
  11207. Gather time related functions to a2time.h:
  11208. * src/a2time.h: New file.
  11209. * src/DefaultPeerStorage.cc
  11210. * src/SimpleLogger.cc
  11211. * src/Util.{h, cc}
  11212. * src/SimpleRandomizer.h
  11213. * src/TimeA2.{h,cc}
  11214. * src/DownloadCommand.cc
  11215. * src/main.cc
  11216. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11217. a2netcompat.h:
  11218. * src/NameResolver.cc
  11219. Fixed compilation error without openssl:
  11220. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11221. Added default block to suppress compiler warnings:
  11222. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11223. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11224. MinGW build enhancements. The following files are added:
  11225. * src/gai_strerror.{c,h}
  11226. * src/gettimeofday.{c,h}
  11227. Changes to support the above new files:
  11228. * configure.ac
  11229. * src/Makefile.am
  11230. * src/a2netcompat.h
  11231. * src/TimeA2.cc
  11232. * src/DefaultPeerStorage.cc
  11233. * src/NameResolver.cc: removed mingw_strerror() function.
  11234. * src/SocketCore.cc: removed mingw_strerror() function.
  11235. Miscellaneous MinGW build fixes.
  11236. * src/a2io.h: Use _lseeki64() instead of lseek()
  11237. * src/common.h
  11238. * src/DefaultFileAllocator.cc
  11239. * src/GlowFileAllocator.cc
  11240. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11241. * src/NameResolver.cc
  11242. (callback): Changed int32_t to int.
  11243. (resolve): Changed int32_t to int.
  11244. * src/Platform.cc
  11245. * src/Platform.h
  11246. * test/MultiDiskWriterTest.cc
  11247. * test/PeerMessageUtilTest.cc
  11248. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11249. Other enhancements and fixes.
  11250. * src/HttpRequestCommand.cc
  11251. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11252. * src/SocketCore.cc:
  11253. (error): New function to abstract errno/WSAGetLastError().
  11254. (errorMsg): New function to abstract errno/WSAGetLastError().
  11255. (initiateSecureConnection): Added more detailed error reporting.
  11256. * src/SocketCore.h: Added private variable blocking, to allow
  11257. proper handling of OpenSSL psuedo-errors.
  11258. * src/message.h
  11259. (EX_SSL_INIT_FAILURE)
  11260. (EX_SSL_IO_ERROR)
  11261. (EX_SSL_PROTOCOL_ERROR)
  11262. (EX_SSL_UNKNOWN_ERROR)
  11263. (EX_SSL_CONNECT_ERROR)
  11264. (EX_SOCKET_BLOCKING)
  11265. (EX_SOCKET_NONBLOCKING)
  11266. (EX_SOCKET_UNKNOWN_ERROR)
  11267. * src/Util.cc
  11268. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11269. reserved name.
  11270. (httpGMT): Fixed typo.
  11271. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11272. Merged Ross's win32 patch(manually)
  11273. In the course of merging, following files are added.
  11274. * src/strptime.{h,c}
  11275. * src/libgen.{h,c}
  11276. * src/inet_aton.{h,c}
  11277. * src/Platform.{h,cc}
  11278. * src/localtime_r.{h,c}
  11279. * src/getaddrinfo.{h,c}
  11280. I've gethered network related things, and put them to following file:
  11281. * src/a2netcompat.h
  11282. Also io related things are put to following file:
  11283. * src/a2io.h
  11284. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11285. * src/message.h
  11286. (MSG_ALLOCATION_COMPLETED)
  11287. (EX_TOO_LARGE_FILE)
  11288. (EX_SIZE_MISMATCH)
  11289. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11290. (EX_INVALID_CHUNK_CHECKSUM)
  11291. (EX_INVALID_RANGE_HEADER)
  11292. * src/FileAllocationCommand.cc
  11293. * src/HttpResponse.cc
  11294. * src/RequestGroup.cc
  11295. * src/MultiDiskAdaptor.cc
  11296. * src/OptionHandlerImpl.h
  11297. * src/HttpResponseCommand.cc
  11298. * src/FtpNegotiateCommand.cc
  11299. * src/IteratableChecksumValidator.cc
  11300. * src/SegmentMan.cc
  11301. * src/ChunkChecksumValidator.cc
  11302. Added Randomizer::getRandomNumber(long int)
  11303. * src/Randomizer.h (getRandomNumber)
  11304. * src/SimpleRandomizer.h (getRandomNumber)
  11305. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11306. * src/Util.cc (randomAlpha): Use this new function.
  11307. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11308. Converted int's to in32_t. long long int's are also converted to
  11309. int64_t
  11310. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11311. Fixed the bug that prevents cookies from being sent to the server
  11312. if the domain of cookie is FQDN and starts with ".".
  11313. * src/Cookie.cc (match)
  11314. To add the ability to change peer id.
  11315. * src/DefaultBtContext.h
  11316. (_peerIdPrefix): New variable
  11317. (setPeerIdPrefix): New function.
  11318. * src/torrentRequestInfo.cc
  11319. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11320. DefaultBtContext.
  11321. * src/main.cc (main): Added peer-id-prefix command-line option.
  11322. The usage message is not added yet.
  11323. * src/DefaultBtContext.cc
  11324. (generatePeerId): Use _peerIdPrefix.
  11325. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11326. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11327. Fixed the bug that prevents filename in content-disposition from
  11328. being retrieved when filename is not quoted.
  11329. * src/Util.cc (getContentDispositionFilename)
  11330. Fixed the bug that causes infinate loop and memory leak when file open
  11331. operation failed.
  11332. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11333. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11334. Fixed the bug that causes segfault when all URIs specified are
  11335. unsupported.
  11336. * src/RequestGroupMan.cc (getInitialCommands)
  11337. Check if RequestGroup::createNextCommand() returns empty list of
  11338. commands.
  11339. * src/RequestGroup.cc (createNextCommand)
  11340. Change log level from info to error so that users can notice that
  11341. an error occurred.
  11342. Fixed the bug that causes segfault when a zero-sized file is
  11343. downloaded.
  11344. * src/BitfieldMan.cc (isAllBitSet)
  11345. Return true if bitfieldLength is 0.
  11346. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11347. * src/main.cc
  11348. (showUsage): Added 3 usage examples for metalink download.
  11349. Replace MetalinkChunkChecksum with ChunkChecksum.
  11350. * src/MetalinkChunkChecksum.h: Removed.
  11351. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11352. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11353. * src/Xml2MetalinkProcessor.cc
  11354. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11355. * src/MetalinkRequestInfo.cc (execute)
  11356. * Release 0.11.1
  11357. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11358. Reads URIs from stdin when "-i -" is specified.
  11359. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11360. * src/UriListParser.h, src/UriListParser.cc: New class.
  11361. * src/StreamUriListParser.h: New class.
  11362. * src/FileUriListParser.h: New class.
  11363. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11364. instead of UriFileListParser.
  11365. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11366. Made console readout more readable.
  11367. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11368. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11369. Fix the bug that causes -s option not to work.
  11370. * src/main.cc (main)
  11371. * src/a2algo.h: New file.
  11372. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11373. Create directory structure specified in metalink file.
  11374. * src/RequestGroup.h, src/RequestGroup.cc
  11375. (initAndOpenFile): Create a directory to store files if it does not
  11376. exist.
  11377. (getDir): New function.
  11378. Added ETA and download speed for an individual file to readout.
  11379. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11380. * src/RequestGroup.h
  11381. (calculateDownloadSpeed): New function.
  11382. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11383. Made -S option work with metalink file and provided selective download
  11384. to metalink.
  11385. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11386. (filename): Removed.
  11387. (file): New variable.
  11388. (size): Removed.
  11389. (operator=): Updated.
  11390. (getPath): New function.
  11391. (getLength): New function.
  11392. (toFileEntry): New function.
  11393. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11394. (execute): Use toStream.
  11395. (showFileEntry): Removed.
  11396. * src/MetalinkRequestInfo.h
  11397. (targetFiles): New variable.
  11398. (setTargetFiles): New variable.
  11399. * src/MetalinkRequestInfo.cc
  11400. (execute): Added the ability to print file information included in
  11401. a metalink file.
  11402. Added selective download mode to metalink.
  11403. * src/main.cc
  11404. (showUsage): Updated to denote that -S and --select-file options are
  11405. applicable to metalink.
  11406. * src/FileEntry.h
  11407. (operator=): New function.
  11408. (getBasename): New function.
  11409. (getDirname): New function.
  11410. * src/Util.h, src/Util.cc
  11411. (toStream): New function.
  11412. * src/Xml2MetalinkProcessor.cc: Updated.
  11413. Made aria2 work with metalink with directory structure.
  11414. * src/File.h, src/File.cc
  11415. (getBasename): New function.
  11416. (getDirname): New function.
  11417. * src/RequestGroup.h, src/RequestGroup.cc
  11418. (_topDir): New variable.
  11419. (setTopDir): New function.
  11420. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11421. Rewrote HTTP header parsing with stringstream.
  11422. * src/HttpConnection.h, src/HttpConnection.cc
  11423. (HttpRequestEntry): New class.
  11424. (headerBuf): Removed.
  11425. (headerBufLength): Removed.
  11426. (outstandingHttpRequests): Now its element type is
  11427. HttpRequestEntryHandle.
  11428. (findEndOfHeader): Removed.
  11429. (receiveResponse): Rewritten.
  11430. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11431. Updated doc for -j option to notice that it should be used with -i
  11432. option.
  11433. * src/main.cc (showUsage)
  11434. Removed unused classes.
  11435. * src/RequestInfo.h
  11436. (FileInfo): Removed.
  11437. (checksum): Removed.
  11438. (fileInfo): Removed.
  11439. (setChecksum): Removed.
  11440. (getChecksum): Removed.
  11441. (getFileInfo): Removed.
  11442. Use ISO units.
  11443. * src/ConsoleDownloadEngine.cc
  11444. * src/TorrentConsoleDownloadEngine.cc
  11445. * src/Util.cc (abbrevSize)
  11446. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11447. Added the default listening ports to the help message.
  11448. * src/main.cc (showUsage)
  11449. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11450. Reduce the number of calls to gettimeofday to lower CPU load.
  11451. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11452. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11453. * src/Peer.h (calculateUploadSpeed): New function.
  11454. (calculateDownloadSpeed): New function.
  11455. * src/DefaultPeerStorage.cc
  11456. (CalculateStat): Added _now variable.
  11457. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11458. and Peer::calculateUploadSpeed(const struct timeval&)
  11459. Drop connection if no request or piece message is exchanged in
  11460. a certain interval.
  11461. * src/DefaultBtInteractive.h
  11462. (btRuntime): New variable.
  11463. (inactiveCheckPoint): New variable.
  11464. (checkActiveInteraction): New function.
  11465. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11466. request or piece message is received.
  11467. (checkActiveInteraction): New function.
  11468. (doInteractionProcessing): Call checkActiveInteraction.
  11469. Fixed the bug that causes remote Metalink and Torrent files are not
  11470. processed.
  11471. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11472. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11473. Changed format of log file.
  11474. * src/SimpleLogger.cc
  11475. * Release 0.11.0
  11476. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11477. * src/AbstractCommand.cc
  11478. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11479. MSG_MAX_TRY from error to info.
  11480. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11481. * src/message.h
  11482. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11483. (MSG_DOWNLOAD_ABORTED): Added %s.
  11484. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11485. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11486. * src/PeerAbstractCommand.cc
  11487. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11488. * src/Request.h
  11489. (cookieBox): Made ShardHandle.
  11490. * src/RequestGroup.h, src/RequestGroup.cc
  11491. (createNextCommandWithAdj): New function.
  11492. * src/FileAllocationCommand.cc
  11493. (executeInternal): Use createNextCommandWithAdj().
  11494. * src/CheckIntegrityCommand.cc
  11495. (executeInternal): Use createNextCommandWithAdj().
  11496. Added --load-cookies command-option.
  11497. * src/OptionHandlerFactory.cc
  11498. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11499. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11500. Now aria2 can handle cookie's expiration date.
  11501. * src/Cookie.h (expires): Changed its type to time_t.
  11502. * src/main.cc: Added --load-cookies command-line option.
  11503. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11504. * src/Util.h, src/Util.cc (httpGMT): New function.
  11505. * src/Request.cc (Request): Initialize cookieBox using
  11506. CookieBoxFactory.
  11507. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11508. * src/CookieParser.h, src/CookieParser.cc: New class.
  11509. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11510. * src/HttpResponseCommand.cc
  11511. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11512. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11513. download.
  11514. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11515. Added -j command-line option.
  11516. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11517. * src/main.cc
  11518. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11519. Rewritten using stringstream.
  11520. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11521. Rewritten using stringstream.
  11522. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11523. Make download size shown in MB, KB.
  11524. * src/ConsoleDownloadEngine.h (sendStatistics)
  11525. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11526. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11527. Accept incoming connections if download rate is low.
  11528. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11529. (_lowestSpeedLimit): New variable.
  11530. (setLowestSpeedLimit): New function.
  11531. (execute): Accept incoming connections if download rate is low.
  11532. MAX_PEERS is ignored in this case.
  11533. Disable PREF_OUT in multiple concurrent download:
  11534. * src/RequestGroup.h, src/RequestGroup.cc
  11535. (setUserDefinedFilename): New function.
  11536. * src/DownloadEngineFactory.cc
  11537. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11538. concurrent download.
  11539. * src/DefaultSegmentManFactory.cc
  11540. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11541. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11542. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11543. Added its overloaded method.
  11544. * src/RequestGroup.h
  11545. (_numConcurrentCommand): New variable.
  11546. (setNumConcurrentCommand): New function.
  11547. * src/RequestGroup.cc
  11548. Abort download if same file is being downloaded concurrently.
  11549. * src/RequestGroup.h, src/RequestGroupMan.cc
  11550. (isSameFileBeingDownloaded): New function.
  11551. * src/HttpResponseCommand.cc (executeInternal)
  11552. * src/FtpNegotiateCommand.cc (recvSize)
  11553. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11554. * main.cc: Added help message for -i option.
  11555. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11556. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11557. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11558. * src/MetalinkEntry.h
  11559. (checksum): Changed to ChecksumHandle
  11560. * src/MetalinkRequestInfo.cc
  11561. (checksum): Changed to ChecksumHandle
  11562. * src/File.cc
  11563. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11564. * src/common.h
  11565. (DIR_OPEN_MODE): New definition
  11566. * src/RequestGroup.cc
  11567. (prepareForNextAction): Added an argument.
  11568. * src/message.h
  11569. (MSG_GOOD_CHECKSUM): New definition
  11570. (MSG_BAD_CHECKSUM): New definition
  11571. * src/HttpResponseCommand.cc
  11572. (handleDefaultEncoding): Continue download sequence in new
  11573. non-segmented download.
  11574. * src/FileAllocationEntry.h
  11575. (_nextDownloadCommand): New variable.
  11576. * src/DownloadCommand.cc
  11577. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11578. available.
  11579. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11580. * src/IteratableChecksumValidator.h,
  11581. src/IteratableChecksumValidator.cc: New class.
  11582. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11583. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11584. Change file mode to 666:
  11585. * src/common.h (OPEN_MODE): New definition.
  11586. * src/File.cc
  11587. * src/Util.cc
  11588. * src/Directry.cc
  11589. * src/AbstractDiskWriter.cc
  11590. Change the level of log message "download aborted" to debug:
  11591. * src/PeerAbstractCommand.cc (execute)
  11592. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11593. * src/TrackerWatcherCommand.cc
  11594. (createCommand): Sleep some seconds after request failed.
  11595. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11596. then abort tracker request.
  11597. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11598. * Added the simultaneous download feature.
  11599. * src/main.cc: Print "Exception caught: " when exception is caught.
  11600. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11601. * src/ActivePeerConnectionCommand.cc
  11602. * src/PeerInteractionCommand.cc
  11603. * src/BtRuntime.h
  11604. (cuidCounter): Removed.
  11605. (getNewCuid): Removed.
  11606. * src/DownloadEngineFactory.cc
  11607. * src/PeerListenCommand.cc
  11608. * src/TrackerUpdateCommand.cc
  11609. * src/PeerInitiateConnectionCommand.cc
  11610. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11611. * src/PeerAbstractCommand.cc
  11612. (onAbort): Call PeerStorage::returnPeer()
  11613. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11614. (incomingPeers): New variable.
  11615. (addIncomingPeer): New function.
  11616. (returnPeer): New function.
  11617. (onErasingPeer): New function.
  11618. (addPeer): push_back -> push_front
  11619. (getActivePeers): Rewritten.
  11620. (calculateStat): Rewritten.
  11621. * src/PeerStorage.h
  11622. (TransferStat::copy): New function.
  11623. (TransferStat::TransferStat): New function.
  11624. (TransferStat::operator=): New function.
  11625. (addIncomingPeer): New function.
  11626. (returnPeer): New function.
  11627. * src/PeerListenCommand.cc
  11628. (execute): Use PeerStorage::addIncomingPeer() instead of
  11629. Peer::addPeer().
  11630. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11631. Connect to a peer actively when download speed is lower than specified
  11632. speed in torrent download:
  11633. * src/ActivePeerConnectionCommand.h: New class.
  11634. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11635. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11636. * src/main.cc: Fixed the bug that prevents download if .netrc
  11637. doesn't exist.
  11638. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11639. To cache resolved hostname:
  11640. * src/AbstractCommand.h, src/AbstractCommand.cc
  11641. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11642. Added dns cache.
  11643. * src/FtpInitiateConnectionCommand.cc
  11644. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11645. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11646. NameResolver working without ares.
  11647. * src/TorrentRequestInfo.cc
  11648. (execute): Don't cache dns in torrent download.
  11649. * src/HttpInitiateConnectionCommand.cc
  11650. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11651. * src/DNSCache.h: New class.
  11652. * src/UrlRequestInfo.cc
  11653. (execute): Use dns cache.
  11654. In http request, suppress port number in http request header if port
  11655. is 80 or 443:
  11656. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11657. request header if port is 80 or 443.
  11658. (createProxyRequest): Allways send port number.
  11659. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11660. To add the command-line option which disables netrc support:
  11661. * src/OptionHandlerFactory.cc
  11662. (createOptionHandlers): Added PREF_NO_NETRC.
  11663. * src/main.cc: Added -n option.
  11664. * src/prefs.h (PREF_NO_NETRC): New definition.
  11665. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11666. V_TRUE.
  11667. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11668. is V_FALSE. This may get configurable in the future release.
  11669. To clear peer's error status by time basis:
  11670. * src/PeerAbstractCommand.cc
  11671. (onAbort): Call Peer::startBadCondition().
  11672. * src/Peer.h, src/Peer.cc
  11673. (error): Removed.
  11674. (_badConditionStartTime): New variable.
  11675. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11676. (startBadCondition): New function.
  11677. (isGood): New function.
  11678. * src/DefaultPeerStorage.cc
  11679. (addPeer): Use Peer::isGood().
  11680. (FindFinePeer): Use Peer::isGood().
  11681. Always include port number in http request header:
  11682. * src/HttpRequest.cc (getHostText): Always include port number in
  11683. http request header.
  11684. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11685. To the ability to read options from a config file:
  11686. * src/main.cc: Command-line parameter validation is delegated to
  11687. OptionHandler class.
  11688. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11689. * src/Option.h, src/Option.cc (clear): New function.
  11690. * src/OptionParser.h, src/OptionParser.cc: New class.
  11691. * src/OptionHandler.h: New class.
  11692. * src/NameMatchOptionHandler.h: New class.
  11693. * src/OptionHandlerImpl.h: New classes.
  11694. * src/prefs.h: '_' -> '-'
  11695. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11696. (FTP_PASV): New definition.
  11697. * src/Util.h, src/Util.cc (getRealSize): New function.
  11698. To disable netrc support if .netrc file does not have correct
  11699. permissions:
  11700. * src/File.h, src/File.cc (mode): New function.
  11701. To prevent confidential information to be logged:
  11702. * src/HttpConnection.h, src/HttpConnection.cc
  11703. (eraseConfidentialInfo): New function.
  11704. (sendRequest): Call eraseConfidentialInfo().
  11705. (sendProxyRequest): Call eraseConfidentialInfo().
  11706. * src/main.cc: Validate permissions of .netrc file.
  11707. To add --user-agent command-line option:
  11708. * src/main.cc: Added new command line option: --user-agent
  11709. * src/prefs.h (PREF_USER_AGENT): New definition.
  11710. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11711. parameter to HttpRequest object.
  11712. * src/AbstractProxyRequestCommand.cc
  11713. (executeInternal): Set user-agent option parameter to HttpRequest
  11714. object.
  11715. Marged the patches from Dan Fandrich.
  11716. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11717. Use filename and size from Metalink file instead of sending HEAD
  11718. request:
  11719. * src/UrlRequestInfo.h
  11720. (_filename): New variable.
  11721. (_totalLength): New variable.
  11722. (setTotalLength): New variable.
  11723. (setFilename): New variable.
  11724. * src/MetalinkRequestInfo.cc
  11725. (execute): Set filename and size to UrlRequestInfo
  11726. * src/UrlRequestInfo.cc
  11727. (execute): Use filename and size from Metalink instead of seding
  11728. HEAD request to servers.
  11729. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11730. To add the ability to resume downloading a partially downloaded file
  11731. which is downloaded from the beginning:
  11732. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11733. takes this role.
  11734. * src/main.cc: Added -c option.
  11735. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11736. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11737. * src/prefs.h (PREF_CONTINUE): New definition.
  11738. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11739. * src/DefaultDiskWriter.cc
  11740. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11741. * src/AbstractDiskWriter.h
  11742. (glowFileAllocator): New variable.
  11743. * src/AbstractDiskWriter.cc
  11744. (openExistingFile): Now preallocate file space from the end of the
  11745. existing file if totalLength argument is specified and grater than 0.
  11746. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11747. to download exists in local, continue the download of the file.
  11748. --allow-overwrite=true is assumed in this context.
  11749. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11750. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11751. Throw exception if --check-integrity=true is specified but chunk
  11752. checksums are not provided:
  11753. * src/UrlRequestInfo.cc
  11754. Do not print URLs to stdout:
  11755. * src/UrlRequestInfo.cc
  11756. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11757. * src/Request.h: Use AuthResolver to get authentication information.
  11758. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11759. set to RequestFactory object.
  11760. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11761. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11762. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11763. create Request object.
  11764. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11765. To integrate Netrc into exsiting classes:
  11766. * src/Request.h
  11767. (_userDefinedAuthConfig): New variable.
  11768. (findNetrcAuthenticator): New function.
  11769. (segment): Removed.
  11770. (setUserDefinedAuthConfig): New function.
  11771. (resolveHttpAuthConfigItem): New function.
  11772. (resolveFtpAuthConfigItem): New function.
  11773. (resolveHttpProxyAuthConfigItem): New function.
  11774. * src/HttpRequest.h
  11775. (authConfig): Removed.
  11776. (proxyAuthConfig): Removed.
  11777. (setAuthConfig): Removed.
  11778. (setProxyAuthConfig): Removed.
  11779. * src/UrlRequest.h
  11780. (getHeadResult): Added a parameter: authConfigHandle
  11781. * src/common.h
  11782. (SingletonHolder.h): New include.
  11783. * src/main.cc
  11784. (Netrc.h): New include.
  11785. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11786. Added initial value of PREF_NETRC_PATH.
  11787. Added the initialization of netrc.
  11788. * src/AuthConfig.h: New class.
  11789. * src/prefs.h
  11790. (PREF_NETRC_PATH): New definition.
  11791. * src/HttpAuthConfig.h: Removed.
  11792. * src/Netrc.cc
  11793. (getRequiredNextToken): New function.
  11794. (skipMacdef): New function.
  11795. (parse): Rewritten.
  11796. * src/Netrc.h
  11797. (getRequiredNextToken): New function.
  11798. (skipMacdef): New function.
  11799. * src/Util.h, src/Util.cc
  11800. (getHomeDir): New function.
  11801. * src/TrackerWatcherComand.cc
  11802. (createRequestCommand): Use AuthConfig.
  11803. * src/FtpConnection.cc
  11804. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11805. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11806. * src/Request.cc
  11807. (findNetrcAuthenticator): New function.
  11808. (resolveHttpAuthConfigItem): New function.
  11809. (resolveFtpAuthConfigItem): New function.
  11810. (resolveHttpProxyAuthConfigItem): New function.
  11811. * src/UrlRequestInfo.cc: Use AuthConfig.
  11812. * src/HttpRequest.cc
  11813. (createRequest): Use authConfig.
  11814. (getProxyAuthString): Use authConfig.
  11815. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11816. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11817. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11818. To reduce overhead to find commands whose socket is either
  11819. readable or writable in the download engine loop:
  11820. * src/Command.h, src/Command.cc
  11821. (STATUS): New enum.
  11822. (status): New variable.
  11823. (statusMatch): New function.
  11824. (setStatusActive): New function.
  11825. (setStatusInactive): New function.
  11826. * src/DownloadEngine.h, src/DownloadEngine.cc
  11827. (executeCommand): New function.
  11828. (run): Simplified.
  11829. (waitData): Call Command::setStatusActive() when command's socket is
  11830. readable or writable.
  11831. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11832. To handle Segment as SegmentHandle:
  11833. * src/AbstractCommand.cc (execute): Rewritten.
  11834. * src/SegmentMan.h: Segment -> SegmentHandle
  11835. Introducded HttpResponse class, HttpRequest class to improve code
  11836. extensiveness and make it clear:
  11837. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11838. HttpResponse class.
  11839. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11840. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11841. * src/HttpConnection.cc: Contruction of http request were moved to
  11842. HttpRequest class.
  11843. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11844. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11845. * src/HttpAuthConfig.h: New class.
  11846. * src/Range.h: New class.
  11847. To make FtpTunnel{Request, Response}Command and
  11848. HttpProxy{Request, Response}Command derived from
  11849. AbstractProxy{Request, Response}Command:
  11850. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11851. Derived from AbstractProxyRequestCommand class.
  11852. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11853. Derived from AbstractProxyResponseCommand class.
  11854. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11855. Derived from AbstractProxyRequestCommand class.
  11856. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11857. Derived from AbstractProxyResponseCommand class.
  11858. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11859. : New class.
  11860. * src/AbstractProxyResponseCommand.h,
  11861. src/AbstractProxyResponseCommand.cc: New class.
  11862. To add netrc support:
  11863. * src/Netrc.h, src/Netrc.cc: New class.
  11864. * src/Util.h, src/Util.cc (split): New function.
  11865. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11866. "Content-Range" header instead of "Range" header.
  11867. * src/HttpHeader.h
  11868. (getStatus): Removed.
  11869. (setStatus): Removed.
  11870. * src/Segment.h
  11871. (getPositionToWrite): New function.
  11872. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11873. * src/HttpHeader.h
  11874. (Range.h): New include.
  11875. (status): New variable.
  11876. (HttpHeader): Initialized status with 0.
  11877. (getStatus): New function.
  11878. (setStatus): New function.
  11879. (getRange): New function.
  11880. (HttpHeaderHandle): New function.
  11881. * src/HttpHeader.cc
  11882. (getRange): New function.
  11883. * src/Request.h
  11884. (RequestWeakHandle): New definition.
  11885. * src/HttpConnection.h
  11886. (HttpConnectionHandle): New type definition.
  11887. * src/HttpConnection.cc
  11888. (receiveResponse): Set HTTP status to headers.
  11889. * src/main.cc
  11890. (showUsage): Fixed typo.
  11891. * src/Segment.h
  11892. (SegmentHandle): New type definition.
  11893. * src/BitfieldMan.h
  11894. (getMissingUnusedLength): New function.
  11895. * src/BitfieldMan.cc
  11896. (getMissingUnusedLength): New function.
  11897. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11898. To fix static initialization order problem:
  11899. * src/BitfieldManFactory.h
  11900. (defaultRandomizer): Removed.
  11901. (factory): New variable.
  11902. (getNewFactory): Removed.
  11903. (getFactoryInstance): New function.
  11904. (setDefaultRandomizer): Rewritten.
  11905. (getDefaultRandomizer): Rewritten.
  11906. * src/BitfieldManFactory.cc
  11907. (defaultRandomizer): Removed.
  11908. (factory): Initialized to 0.
  11909. (BitfieldManFactory): Initialized randomizer to 0.
  11910. * src/DefaultPieceStorage.cc
  11911. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11912. * src/Peer.cc
  11913. (Peer): getNewFactory() -> getFactoryInstance()
  11914. * src/SegmentMan.cc
  11915. (initBitfield): getNewFactory() -> getFactoryInstance()
  11916. * src/Piece.cc
  11917. (Piece): getNewFactory() -> getFactoryInstance()
  11918. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11919. To fix the bug that causes crash on Max OS X:
  11920. * src/SimpleRandomizer.h
  11921. (getInstance): Create new instance if the static variable is null.
  11922. * src/SimpleRandomizer.cc
  11923. (randomizer): Initialized to 0.
  11924. * src/BitfieldManFactory.h
  11925. (getNewFactory): Removed the call to setRandomizer().
  11926. To fix the miscalculation of the range of checksum:
  11927. * src/BitfieldMan.h
  11928. (isBitSetOffsetRange): New function.
  11929. * src/BitfieldMan.cc
  11930. (isBitSetOffsetRange): New function.
  11931. * src/SegmentMan.cc
  11932. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11933. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11934. * Release 0.10.1
  11935. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11936. To lower CPU usage in BitTorrent download when --max-upload-limit
  11937. command-line option specified:
  11938. * src/DefaultBtMessageDispatcher.cc
  11939. (sendMessages): Calculate uploading speed only when current message
  11940. is uploading data and is not sent yet.
  11941. * src/DefaultPeerStorage.h
  11942. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11943. * src/HttpResponseCommand.cc
  11944. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11945. This fixes compile error in Soralis 10.
  11946. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11947. To fix segfault in Metalink download:
  11948. * src/UrlRequestInfo.h
  11949. (filename): Removed.
  11950. (totalLength): Removed.
  11951. (setTotalLength): Removed.
  11952. (setFilename): Removed.
  11953. * src/MetalinkRequestInfo.cc
  11954. (execute): Do not set filename and totalLength to reqInfo.
  11955. Set chunk checksum to reqInfo if it is not null.
  11956. * src/HttpResponseCommand.cc
  11957. (executeInternal): Fixed filename in log.
  11958. (handleDefaultEncoding): Removed the call to initBitfield() and
  11959. markAllPiecesDone().
  11960. (handleOtherEncoding): Added HEAD method handling.
  11961. * src/FtpNegotiateCommand.cc
  11962. (executeInternal): Added SEQ_HEAD_OK handling.
  11963. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11964. return false.
  11965. * src/FtpNegotiateCommand.h
  11966. (SEQ_HEAD_OK): New definition.
  11967. * src/SegmentMan.cc
  11968. (initBitfield): Delete bitfield.
  11969. (isChunkChecksumValidationReady): Fixed the condition.
  11970. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11971. works fine.
  11972. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11973. * src/Xml2MetalinkProcessor.h
  11974. (xpathExists): New function.
  11975. * src/Xml2MetalinkProcessor.cc
  11976. (xpathExists): New function.
  11977. Not to send HEAD request if filename and size are available in Metalink
  11978. file:
  11979. * src/UrlRequestInfo.h
  11980. (filename): New variable.
  11981. (totalLength): New variable.
  11982. (setTotalLength): New function.
  11983. (setFilename): New function.
  11984. * src/MetalinkRequestInfo.cc
  11985. (execute): Set filename and size to UrlRequestInfo.
  11986. * src/MetalinkEntry.cc
  11987. (MetalinkEntry): Initialize size with 0.
  11988. * src/UrlRequestInfo.cc
  11989. (execute): Set filename and size to SegmentMan.
  11990. Not to download rest of the files after selected files are downloaded
  11991. in BitTorrent:
  11992. * src/PieceStorage.h
  11993. (allDownloadFinished): New function.
  11994. * src/DefaultBtAnnounce.cc
  11995. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11996. downloadFinished.
  11997. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11998. * src/DefaultPieceStorage.cc
  11999. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12000. Commented out the call to finishSelectiveDownloadingMode().
  12001. (downloadFinished): Call isFilteredAllBitSet() instead of
  12002. isAllBitSet().
  12003. (allDownloadFinished): New function.
  12004. * src/DefaultBtInteractive.cc
  12005. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12006. downloadFinished().
  12007. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12008. * src/TorrentDownloadEngine.cc
  12009. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12010. * src/BitfieldMan.h
  12011. (isFilteredAllBitSet): New function.
  12012. * src/ShareRatioSeedCriteria.h
  12013. (PieceStorage.h): New include.
  12014. (pieceStorage): New variable.
  12015. (evaluate):
  12016. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12017. * src/BitfieldMan.cc
  12018. (isFilteredAllBitSet): New function.
  12019. (isAllBitSet): Filter is not took into account.
  12020. Rename --force-truncate as --allow-overwrite:
  12021. * src/TorrentRequestInfo.cc
  12022. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12023. * src/main.cc
  12024. (showUsage): --force-truncate -> --allow-overwrite
  12025. * src/message.h
  12026. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12027. * src/prefs.h
  12028. (PREF_FORCE_TRUNCATE): Removed.
  12029. (PREF_ALLOW_OVERWRITE): New definition.
  12030. * src/SegmentMan.cc
  12031. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12032. * src/MetalinkRequestInfo.cc
  12033. (execute): Queueing message are now logged in info level.
  12034. * src/common.h
  12035. (LONG_LONG_MAX): Removed.
  12036. (LONG_LONG_MIN): Removed.
  12037. * src/HttpResponseCommand.cc
  12038. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12039. * src/FtpNegotiateCommand.cc
  12040. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12041. * src/main.cc
  12042. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12043. command-line option.
  12044. (main): Added --check-integriy and --realtime-chunk-checksum
  12045. command-line option.
  12046. --force-truncate -> --allow-overwrite
  12047. Set initial value of --check-integrity option to false.
  12048. Don't show usage when error occurs while persing command-line options.
  12049. Removed deprecated --upload-limit option.
  12050. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12051. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12052. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12053. * src/BtAllowedFastMessage.cc:
  12054. * src/BtBitfieldMessage.cc
  12055. * src/BtCancelMessage.cc
  12056. * src/BtChokeMessage.cc
  12057. * src/BtHaveAllMessage.cc
  12058. * src/BtHaveMessage.cc
  12059. * src/BtHaveNoneMessage.cc
  12060. * src/BtInterestedMessage.cc
  12061. * src/BtNotInterestedMessage.cc
  12062. * src/BtPieceMessage.cc
  12063. * src/BtPortMessage.cc
  12064. * src/BtRejectMessage.cc
  12065. * src/BtRequestMessage.cc
  12066. * src/BtSuggestPieceMessage.cc
  12067. * src/BtUnchokeMessage.cc
  12068. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12069. files are affected.
  12070. * src/ChunkChecksumValidator.cc
  12071. * src/SegmentMan.cc
  12072. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12073. To add chunk checksum validation:
  12074. * src/MetalinkEntry.h
  12075. (MetalinkChunkChecksum.h): New include.
  12076. (chunkChecksum): New variable.
  12077. * src/Request.h
  12078. (method): New variable.
  12079. (setMethod): New function.
  12080. (getMethod): New function.
  12081. (METHOD_GET): New static constant.
  12082. (METHOD_HEAD): New static constant.
  12083. * src/Xml2MetalinkProcessor.h
  12084. (getPieceHash): New function.
  12085. * src/PieceStorage.h
  12086. (markAllPiecesDone): New function.
  12087. (checkIntegrity): New function.
  12088. * src/FileAllocator.h
  12089. (NullFileAllocationMonitor.h): New include.
  12090. (FileAllocator): Initialize fileAllocationMonitor with new
  12091. NullFileAllocationMonitor().
  12092. * src/MultiDiskAdaptor.h
  12093. (messageDigest.h): Remove include.
  12094. (ctx): Removed.
  12095. (hashUpdate): Added ctx.
  12096. (MultiDiskAdaptor): Removed ctx.
  12097. (sha1Sum): Renamed as messageDigest.
  12098. (messageDigest): New function.
  12099. * src/UrlRequestInfo.h
  12100. (HeadResult): New class.
  12101. (digestAlgo): New variable.
  12102. (chunkChecksumLength): New variable.
  12103. (chunkChecksums): New variable.
  12104. (getHeadResult): New function.
  12105. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12106. (setDigestAlgo): New function.
  12107. (setChunkChecksumLength): New function.
  12108. (setChunkChecksums): New function.
  12109. * src/DefaultPieceStorage.cc
  12110. (DiskAdaptorWriter.h): New include.
  12111. (ChunkChecksumValidator.h): New include.
  12112. (markAllPiecesDone): New function.
  12113. (checkIntegrity): New function.
  12114. * src/DefaultBtContext.h
  12115. (getPieceHashes): New function.
  12116. * src/TorrentRequestInfo.cc
  12117. (execute): Try to validate chunk checksum if file already exists and
  12118. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12119. * src/messageDigest.h
  12120. (~MessageDigestContext): Added digestFree().
  12121. * src/MetalinkRequestInfo.cc
  12122. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12123. * src/DiskAdaptor.h
  12124. (messageDigest.h): New include.
  12125. (sha1Sum): Renamed as messageDigest.
  12126. (messageDigest): New function.
  12127. * src/DownloadCommand.h
  12128. (PeerStat.h): New include.
  12129. (maxDownloadSpeedLimit): New variable.
  12130. (startupIdleTime): New variable.
  12131. (lowestDownloadSpeedLimit): New variable.
  12132. (peerStat): New variable.
  12133. (setMaxDownloadSpeedLimit): New function.
  12134. (setStartupIdleTime): New function.
  12135. (setLowestDownloadSPeedLimit): New function.
  12136. * src/BtContext.h
  12137. (getPieceHashes): New function.
  12138. * src/main.cc
  12139. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12140. option to true for testing purpose.
  12141. * src/BtPieceMessage.cc
  12142. (checkPieceHash): Use messageDigest
  12143. * src/DownloadEngine.cc
  12144. (SetDescriptor): Removed.
  12145. (AccumulateActiveCommand): Removed.
  12146. (waitData): Rewritten.
  12147. (updateFdSet): Rewritten.
  12148. * src/MultiDiskAdaptor.cc
  12149. (hashUpdate): Added ctx.
  12150. (sha1Sum): Renamed as messageDigest.
  12151. (messageDigest): New function.
  12152. * src/BitfieldMan.h
  12153. (isBitRangeSet): New function.
  12154. (unsetBitRange): New function.
  12155. * src/ByteArrayDiskWriter.h
  12156. (sha1Sum): Renamed as messageDigest.
  12157. (messageDigest): New function.
  12158. * src/ConsoleDownloadEngine.cc
  12159. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12160. * src/DiskWriter.h
  12161. (messageDigest.h): New include.
  12162. (sha1Sum): Renamed as messageDigest.
  12163. (messageDigest): New function.
  12164. * src/ChunkChecksumValidator.h: New class.
  12165. * src/DiskAdaptorWriter.h: New class.
  12166. * src/prefs.h
  12167. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12168. (PREF_CHECK_INTEGRITY): New definition.
  12169. * src/HttpResponseCommand.cc
  12170. (handleDefaultEncoding): Added method "HEAD" handling.
  12171. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12172. (handleOtherEncoding):
  12173. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12174. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12175. startupIdleTime, lowestDownloadSpeedLimit to command.
  12176. * src/SegmentMan.h
  12177. (getSegmentEntryByIndex): New function.
  12178. (getSegmentEntryByCuid): New function.
  12179. (getSegmentEntryIteratorByCuid): New function.
  12180. (diskWriter): DiskWriter -> DiskWriterHandle
  12181. (pieceHashes): New variable.
  12182. (chunkHashLength): New variable.
  12183. (digestAlgo): New variable.
  12184. (FindPeerStat): Removed.
  12185. (getPeerStat): Rewritten.
  12186. (markAllPiecesDone): New function.
  12187. (checkIntegrity): New function.
  12188. (tryChunkChecksumValidation): New function.
  12189. (isChunkChecksumValidationReady): New function.
  12190. * src/BitfieldMan.cc
  12191. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12192. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12193. blocks to 0.
  12194. (isBitRangeSet): New function.
  12195. (unsetBitRange): New function.
  12196. * src/FtpNegotiateCommand.cc
  12197. (executeInternal): Set maxDownloadSpeedLimit,
  12198. startupIdleTime, lowestDownloadSpeedLimit to command.
  12199. (recvSize): Added method "HEAD" handling.
  12200. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12201. * src/AbstractSingleDiskAdaptor.cc
  12202. (sha1Sum): Renamed as messageDigest.
  12203. (messageDigest): New function.
  12204. * src/AbstractSingleDiskAdaptor.h
  12205. (sha1Sum): Renamed as messageDigest.
  12206. (messageDigest): New function.
  12207. * src/Util.h
  12208. (indexRange): New function.
  12209. * src/MetalinkEntry.cc
  12210. (MetalinkEntry): Initialized chunkChecksum to 0.
  12211. * src/ShaVisitor.cc
  12212. (~ShaVisitor): Removed the call to ctx.digestFree().
  12213. * src/SegmentMan.cc
  12214. (ChunkChecksumValidator.h): New include.
  12215. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12216. to DIGEST_ALGO_SHA1.
  12217. (~SegmentMan): Removed diskWriter.
  12218. (FindSegmentEntryByIndex): Removed.
  12219. (FindSegmentEntryByCuid): Removed.
  12220. (checkoutSegment): Rewritten.
  12221. (findSlowerSegmentEntry): Rewritten.
  12222. (getSegment): Rewritten.
  12223. (updateSegment): Rewritten.
  12224. (completeSegment): Rewritten.
  12225. (markAllPiecesDone): New function.
  12226. (checkIntegrity): New function.
  12227. (isChunkChecksumValidationReady): New function.
  12228. (tryChunkChecksumValidation): New function.
  12229. * src/Xml2MetalinkProcessor.cc
  12230. (getEntry): Get size and set it to entry.
  12231. Get chunk checksum and set it to entry.
  12232. (getPieceHash): New function.
  12233. * src/Util.cc
  12234. (sha1Sum): Removed ctx.digestFree()
  12235. (fileChecksum): Removed ctx.digestFree()
  12236. (indexRange): New function.
  12237. * src/Request.cc
  12238. (METHOD_GET): New variable.
  12239. (METHOD_HEAD): New variable.
  12240. (Request): Added method.
  12241. * src/UrlRequestInfo.cc
  12242. (FatalException.h): New include.
  12243. (message.h): New include.
  12244. (operator<<): Added operator<< for class HeadResult.
  12245. (getHeadResult): New function.
  12246. (execute): Get filename and size in separate download engine.
  12247. * src/ChunkChecksumValidator.cc: New class.
  12248. * src/DownloadCommand.cc:
  12249. (DownloadCommand): Added peerStat.
  12250. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12251. the value from Option.
  12252. The buffer size is now 16KB.
  12253. Use peerStat member instead of getting it from SegmentMan.
  12254. Use startupIdleTime member instead of gettingit from Option.
  12255. Added chunk checksum validation.
  12256. * src/AbstractDiskWriter.cc
  12257. (AbstractDiskWriter): Removed ctx.
  12258. (~AbstractDiskWriter): Removed ctx.digestFree()
  12259. (writeDataInternal): Returns the return value of write.
  12260. (readDataInternal): Returns the return value of read.
  12261. (sha1Sum): Renamed as messageDigest
  12262. (messageDigest): New function.
  12263. * src/AbstractDiwkWriter.h
  12264. (messageDigest.h): Removed include.
  12265. (ctx): Removed.
  12266. (sha1Sum): Renamed as messageDigest
  12267. (messageDigest): New function.
  12268. * src/DefaultPieceStorage.h
  12269. (markAllPiecesDone): New function.
  12270. (checkIntegrity): New function.
  12271. * src/NullFileAllocationMonitor.h: New class.
  12272. * src/MetalinkChunkChecksum.h: New class.
  12273. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12274. To decrease CPU usage in bittorrent download, calculation results in
  12275. BitfieldMan were cached and realtime fetching PeerObject was removed
  12276. with WeakHandle introduced. Option values are set to the objects
  12277. by setter before download begins.
  12278. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12279. * src/DefaultBtRequestFactory.h
  12280. (dispatcher): BtMessageDispatcherHandle ->
  12281. BtMessageDispatcherWeakHandle.
  12282. (messageFactory): New variable.
  12283. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12284. BtMessageDispatcherWeakHandle.
  12285. (setBtMessageFactory): New function.
  12286. * src/DefaultBtMessageDispatcher.cc:
  12287. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12288. from Option.
  12289. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12290. feating the value from Option.
  12291. Use messageFactory member.
  12292. * src/PeerInteractionCommand.cc
  12293. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12294. Add reverse dependencies to factory object.
  12295. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12296. dispatcher.
  12297. Set messageFactory to receiver.
  12298. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12299. btInteractive.
  12300. Set receiver to peerObject.
  12301. Set maxDownloadSpeedLimit to this.
  12302. (executeInternal): Use maxDownloadSpeedLimit member.
  12303. * src/BtChokeMessage.cc
  12304. (doReceivedAction): Use dispatcher, requestFactory member.
  12305. (onSendComplete): Use dispatcher member.
  12306. * src/PeerInteractionCommand.h
  12307. (maxDownloadSpeedLimit): New variable.
  12308. * src/DefaultBtMessageReceiver.h
  12309. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12310. (dispatcher):
  12311. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12312. (messageFactory): New variable.
  12313. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12314. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12315. (setDispatcher):
  12316. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12317. (setBtMessageFactory): New function.
  12318. * src/DefaultBtInteractive.cc
  12319. (initiateHandshake): Use messageFactory member.
  12320. (addBitfieldMessageToQueue): Use messageFactory member.
  12321. (addAllowedFastMessageToQueue): Use messageFactory member.
  12322. (decideChoking): Use messageFactory member.
  12323. (checkHave): Use messageFactory member.
  12324. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12325. (receiveMessages): Use maxDownloadSpeedLimit member.
  12326. (decideInterest): Use messageFactory member.
  12327. * src/BtRequestMessage.cc
  12328. (doReceivedAction): Use messageFactory, dispatcher member.
  12329. (onQueued): Use dispatcher member.
  12330. * src/BtPieceMessage.cc
  12331. (doReceivedAction): Use dispatcher member.
  12332. (send): Use peerConnection member.
  12333. (onWrongPiece): Use requestFactory member.
  12334. (handleChokingEvent): Use messageFactory, dispatcher member.
  12335. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12336. * src/BtMessageDispatcher.h
  12337. (BtMessageDispatcherWeakHandle): New type definition.
  12338. * src/SimpleBtMessage.cc
  12339. (send): Use peerConnection member.
  12340. * src/BtRejectMessage.cc
  12341. (doReceivedAction): Use dispatcher member.
  12342. * src/DefaultBtMessageDispatcher.h
  12343. (Option.h): Removed include.
  12344. (messageFactory): New variable.
  12345. (option): Removed.
  12346. (maxUploadSpeedLimit): New variable.
  12347. (requestTimeout): New variable.
  12348. (DefaultBtMessageDispatcher): Removed option.
  12349. Added maxUploadSpeedLimit, requestTimeout.
  12350. (setOption): Removed.
  12351. (getOption): Removed.
  12352. (setMaxUploadSpeedLimit): New function.
  12353. (setRequestTimeout): New function.
  12354. (setBtMessageFactory): New function.
  12355. * src/DefaultBtInteractive.h
  12356. (btMessageReceiver):
  12357. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12358. (dispatcher):
  12359. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12360. (btRequestFactory):
  12361. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12362. (peerConnection):
  12363. PeerConnectionHandle -> PeerConnectionWeakHandle
  12364. (messageFactory): New variable.
  12365. (option): Removed.
  12366. (keepAliveInterval): New variable.
  12367. (maxDownloadSpeedLimit): New variable.
  12368. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12369. (setBtMessageReceiver):
  12370. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12371. (setDispatcher):
  12372. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12373. (setBtRequestFactory):
  12374. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12375. (setPeerConnection):
  12376. PeerConnectionHandle -> PeerConnectionWeakHandle
  12377. (setOption): Removed.
  12378. (setKeepAliveInterval): New function.
  12379. (setMaxDownloadSpeedLimit): New function.
  12380. (setBtMessageFactory): New function.
  12381. * src/BitfieldMan.h
  12382. (cachedNumMissingBlock): New variable.
  12383. (cachedNumFilteredBlock): New variable.
  12384. (cachedCompletedLength): New variable.
  12385. (cachedFilteredComletedLength): New variable.
  12386. (cachedFilteredTotalLength): New variable.
  12387. (countMissingBlockNow): New function.
  12388. (countFilteredBlockNow): New function.
  12389. (getFilteredTotalLengthNow): New function.
  12390. (getCompletedLengthNow): New function.
  12391. (getFilteredCompletedLengthNow): New function.
  12392. (updateCache): New function.
  12393. * src/AbstractBtMessage.h
  12394. (BtMessageDispatcher.h): New include.
  12395. (PeerConnection.h): New include.
  12396. (BtRequestFactory.h): New include
  12397. (BtMessageFactory.h): New include.
  12398. (dispatcher): New variable.
  12399. (messageFactory): New variable.
  12400. (peerConnection: New variable.
  12401. (setBtMessageDispatcher): New function.
  12402. (setPeerConnection): New function.
  12403. (setBtMessageFactory): New function.
  12404. (setBtRequestFactory): New function.
  12405. * src/DefaultBtMessageFactory.cc
  12406. (setCommonProperty): Set dispatcher, requestFactory, this,
  12407. peerConnection to msg.
  12408. * src/BtRegistry.h
  12409. (BT_MESSAGE_RECEIVER): New macro.
  12410. * src/PeerConnection.h
  12411. (PeerConnectionWeakHandle): New type definition.
  12412. * src/BtMessageFactory.h
  12413. (BtMessageFactoryWeakHandle): New type definition.
  12414. * src/BitfieldMan.cc
  12415. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12416. cachedCompletedLength, cachedFilteredComletedLength,
  12417. cachedFilteredTotalLength.
  12418. Call updateCache().
  12419. (countMissingBlock): Return cachedNumMissingBlock.
  12420. (countMissingBlockNow): New function.
  12421. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12422. (countFilteredBlockNow): New function.
  12423. (setBit): Call updateCache().
  12424. (unsetBit): Call updateCache().
  12425. (setBitfield): Call updateCache().
  12426. (clearAllBit): Call updateCache().
  12427. (setAllBit): Use setBitInternal instead of setBit.
  12428. Call updateCache().
  12429. (addFilter): Call updateCache().
  12430. (enableFilter): Call updateCache().
  12431. (disableFilter): Call updateCache().
  12432. (clearFilter): Call updateCache().
  12433. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12434. (getFilteredTotalLengthNow): New function.
  12435. (getCompletedLength): Return cachedCompletedLength.
  12436. (getCompletedLengthNow): New function.
  12437. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12438. (getFilteredCompletedLengthNow): New function.
  12439. (updateCache): New function.
  12440. * src/BtMessageReceiver.h
  12441. (BtMessageReceiverWeakHandle): New type definition.
  12442. * src/DefaultBtMessageReceiver.cc
  12443. (receiveHandshake): Use messageFactory member.
  12444. (sendHandshake): Use messageFactory member.
  12445. (receiveMessage): Use messageFactory member.
  12446. * src/DefaultBtMessageFactory.h
  12447. (dispatcher): New variable.
  12448. (requestFactory): New variable.
  12449. (peerConnection): New variablle.
  12450. (setBtMessageDispatcher): New function.
  12451. (setBtRequestFactory): New function.
  12452. (setPeerConnection): New function.
  12453. * src/SharedHandle.h
  12454. (RefCount): New class.
  12455. (WeakHandle): New class.
  12456. * src/PeerObject.h
  12457. (BtMessageReceiver.h): New include.
  12458. (PeerObject): Added btMessageReceiver.
  12459. (btMessageReceiver): New variable.
  12460. * src/Util.cc
  12461. (countBit): Simplified.
  12462. * src/BtCancelMessage.cc
  12463. (doReceivedAction): Use dispatcher member.
  12464. * src/BtRequestFactory.h
  12465. (BtRequestFactoryWeakHandle): New type definition.
  12466. * src/PeerStorage.h
  12467. (downloadSpeed): int -> uint32_t
  12468. (uploadSpeed): int -> uint32_t
  12469. (sessionDownloadLength): long long int -> uint64_t
  12470. (sessionUploadLength): long long int -> uint64_t
  12471. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12472. To add RecoverableException, FatalException:
  12473. * src/AbstractCommand.cc
  12474. (onAbort): Exception -> RecoverableException
  12475. * src/PeerAbstractCommand.h
  12476. (RecoverableException.h): New include.
  12477. (onAbort): Exception -> RecoverableException.
  12478. * src/PeerInteractionCommand.cc
  12479. (onAbort): Exception -> RecoverableException.
  12480. * src/PeerAbstractCommand.cc
  12481. (execute): Exception -> RecoverableException.
  12482. (onAbort): Exception -> RecoverableException.
  12483. * src/TorrentRequestInfo.cc
  12484. (execute): Exception -> RecoverableException.
  12485. * src/MetalinkRequestInfo.cc
  12486. (execute): Exception -> RecoverableException.
  12487. * src/MetaFileUtil.cc: RecoverableException.
  12488. * src/AbstractCommand.h
  12489. (onAbort): Exception -> RecoverableException.
  12490. * src/DlRetryEx.h: Exception -> RecoverableException.
  12491. * src/DlAbortEx.h: Exception -> RecoverableException.
  12492. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12493. * src/Util.cc: Exception -> RecoverableException.
  12494. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12495. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12496. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12497. To make ID static const int
  12498. * src/BtInterestedMessage.h
  12499. (ID_t): Removed.
  12500. (ID): New variable.
  12501. (getId): Made non-const.
  12502. * src/BtPieceMessage.h
  12503. (ID_t): Removed.
  12504. (ID): New variable.
  12505. (getId): Made non-const.
  12506. * src/BtChokeMessage.h
  12507. (ID_t): Removed.
  12508. (ID): New variable.
  12509. (getId): Made non-const.
  12510. * src/BtHaveAllMessage.h
  12511. (ID_t): Removed.
  12512. (ID): New variable.
  12513. (getId): Made non-const.
  12514. * src/BtKeepAliveMessage.h
  12515. (ID_t): Removed.
  12516. (ID): New variable.
  12517. (getId): Made non-const.
  12518. * src/BtHandshakeMessage.h
  12519. (ID): New variable.
  12520. (getId): Made non-const.
  12521. * src/BtSuggestPieceMessage.h
  12522. (ID_t): Removed.
  12523. (ID): New variable.
  12524. (getId): Made non-const.
  12525. * src/BtPortMessage.h
  12526. (ID_t): Removed.
  12527. (ID): New variable.
  12528. (getId): Made non-const.
  12529. * src/AbstractBtMessage.h
  12530. (id): Removed.
  12531. (AbstractBtMessage): Removed id.
  12532. (getId): Removed.
  12533. * src/BtHaveMessage.h
  12534. (ID_t): Removed.
  12535. (ID): New variable.
  12536. (getId): Made non-const.
  12537. * src/BtAllowedFastMessage.h
  12538. (ID_t): Removed.
  12539. (ID): New variable.
  12540. (getId): Made non-const.
  12541. * src/BtCancelMessage.h
  12542. (ID_t): Removed.
  12543. (ID): New variable.
  12544. (getId): Made non-const.
  12545. * src/BtNotInterestedMessage.h
  12546. (ID_t): Removed.
  12547. (ID): New variable.
  12548. (getId): Made non-const.
  12549. * src/BtChokeMessage.h
  12550. (ID_t): Removed.
  12551. (ID): New variable.
  12552. (getId): Made non-const.
  12553. * src/BtRejectMessage.h
  12554. (ID_t): Removed.
  12555. (ID): New variable.
  12556. (getId): Made non-const.
  12557. * src/BtBitfieldMessage.h
  12558. (ID_t): Removed.
  12559. (ID): New variable.
  12560. (getId): Made non-const.
  12561. * src/BtUnchokeMessage.h
  12562. (ID_t): Removed.
  12563. (ID): New variable.
  12564. (getId): Made non-const.
  12565. * src/BtRequestMessage.h
  12566. (ID_t): Removed.
  12567. (ID): New variable.
  12568. (getId): Made non-const.
  12569. * src/BtHaveMessage.h
  12570. (ID_t): Removed.
  12571. (ID): New variable.
  12572. (getId): Made non-const.
  12573. To add --force-truncate command-line option and a check whether
  12574. the file already exists:
  12575. * src/DirectDiskAdaptor.h
  12576. (getFilePath): Made virtual public.
  12577. * src/MultiDiskAdaptor.h
  12578. (File.h): New include.
  12579. (DiskWriterEntry::fileEntry): Made private.
  12580. (DiskWriterEntry::fileExists): New function.
  12581. (DiskWriterEntry::getFileEntry): New function.
  12582. (fileExists): New function.
  12583. (getFilePath): New function.
  12584. * src/TorrentRequestInfo.cc
  12585. (FatalException.h): New include.
  12586. (message.h): New include.
  12587. (RecoverableException.h): New include.
  12588. (execute): Added a check whether file is already exists or not.
  12589. * src/DiskAdaptor.h
  12590. (fileExists): New function.
  12591. (getFilePath): New function.
  12592. * src/main.cc
  12593. (showUsage): Added an explanation of --force-truncate command-line
  12594. option.
  12595. (main): Added --force-truncate command-line option.
  12596. * src/Exception.h
  12597. (setMsg): buf[256] -> buf[1024]
  12598. * src/CopyDiskWriter.h
  12599. (getFilePath): Made public virtual.
  12600. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12601. (fileExists): New function.
  12602. * src/DownloadEngineFactory.cc
  12603. (newTorrentConsoleEngine): Don't open file here.
  12604. * src/message.h
  12605. (EX_FILE_ALREADY_EXISTS): New definition.
  12606. * src/prefs.h
  12607. (PREF_FOECE_TRUNCATE): New definition.
  12608. * src/HttpResponseCommand.cc
  12609. (handleDefaultEncoding): Added a check whether the file already exists.
  12610. * src/SegmentMan.h
  12611. (fileExists): New function.
  12612. (shouldCancelDownloadForSafety): New function.
  12613. * src/FtpNegotiateCommand.cc
  12614. (recvSize): Added a check whether the file already exists.
  12615. * src/AbstractSingleDiskAdaptor.cc
  12616. (File.h): New include.
  12617. (fileExists): New function.
  12618. * src/AbstractSingleDiskAdaptor.h
  12619. (getFilePath): Removed.
  12620. (fileExists): New function.
  12621. * src/SegmentMan.cc
  12622. (fileExists): New function.
  12623. (shouldCancelDownloadForSafety): New function.
  12624. To fix regression bug in torrent downloading:
  12625. * src/DefaultBtRequestFactory.cc
  12626. (doChokedAction): New function.
  12627. * src/DefaultBtRequestFactory.h
  12628. (doChokedAction): New function.
  12629. * src/DefaultBtMessageDispatcher.cc
  12630. (doChokedAction): Do not delete request if its target is in allowed
  12631. fast set.
  12632. * src/DefaultBtInteractive.cc
  12633. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12634. (sendKeepAlive): Send keep alive message even if the outgoing message
  12635. queue is not empty.
  12636. (decideInterest): Simplified the code.
  12637. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12638. it is already called when BtChokeMessage is received from a peer.
  12639. * src/BtRequestFactory.h
  12640. (doChokedAction): New function.
  12641. To clean up code:
  12642. * src/PeerInteractionCommand.h
  12643. (executeInternal): Added virtual keyword explicitly.
  12644. (prepareForRetry): Added virtual keyword explicitly.
  12645. (prepareForNextPeer): Added virtual keyword explicitly.
  12646. (onAbort): Added virtual keyword explicitly.
  12647. * src/RequestSlot.cc
  12648. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12649. * src/BtPieceMessage.cc
  12650. (doReceivedAction): Added a debug log of piece's bitfield.
  12651. * src/Piece.h
  12652. (getBitfieldLength): New function.
  12653. * src/ByteArrayDiskWriter.cc
  12654. (clear): Added buf = 0 to avoid double free corruption.
  12655. * src/FileAllocator.cc
  12656. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12657. Added cp.reset().
  12658. * src/BitfieldMan.h
  12659. (operator=): Rewritten.
  12660. * src/BitfieldMan.cc
  12661. (BitfieldMan): Initialized bitfield, useBitfield.
  12662. * src/PeerConnection.cc
  12663. (receiveMessage): Added a call to socket->readable() after getting
  12664. message length to avoid possible EOF.
  12665. * src/Util.cc
  12666. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12667. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12668. To add an ability to pre-allocate file space:
  12669. * src/DirectDiskAdaptor.h: Rewritten.
  12670. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12671. * src/MultiDiskAdaptor.h: Rewritten.
  12672. * src/DefaultPieceStorage.cc
  12673. (MultiDiskWriter.h): Removed include.
  12674. (PreAllocationDiskWriter.h): Removed include.
  12675. (FileAllocationMonitor.h): New include.
  12676. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12677. (initStorage): Rewritten.
  12678. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12679. * src/FileAllocator.h: New class.
  12680. * src/FileAllocator.cc: New class.
  12681. * src/FileAllocationMonitor.h: New class.
  12682. * src/FileAllocationMonitor.cc: New class.
  12683. * src/ConsoleFileAllocationMonitor.h: New class.
  12684. * src/ConsoleFileAllocationMonitor.cc: New class.
  12685. * src/AbstractSingleDiskAdaptor.h: New class.
  12686. * src/AbstractSingleDiskAdaptor.cc: New class.
  12687. * src/DiskAdaptor.h
  12688. (Directory.h): Removed include.
  12689. (DiskWriter.h): Removed include.
  12690. (FileEntry.h): Removed include.
  12691. (diskWriter): Removed.
  12692. (DiskAdaptor): Removed diskWriter.
  12693. (openFile): Made pure virtual.
  12694. (closeFile): Made pure virtual.
  12695. (openExistingFile): Made pure virtual.
  12696. (initAndOpenFile): Made pure virtual.
  12697. (writeData): Made pure virtual.
  12698. (readData): Made pure virtual.
  12699. (sha1Sum): Made pure virtual.
  12700. (getStoreDir): Returns const reference of storeDir.
  12701. (DiskAdaptorHandle): New type definition.
  12702. * src/main.cc
  12703. (ConsoleFileAllocationMonitor.h): New include.
  12704. (showUsage): Added default value description of -s option.
  12705. Added the description of --file-allocation option.
  12706. (main): Set default value of --file-allocation option to 'none'.
  12707. Added --file-allocation command-line option.
  12708. Setup FileAllocationMonitorFactory.
  12709. * src/FtpInitiateConnectionCommand.cc
  12710. (executeInternal): Removed diskWriter related processing, which was
  12711. moved to FtpNegotiationCommand.cc.
  12712. * src/DirectDiskAdaptor.cc
  12713. (getFilePath): Made non-const.
  12714. * src/CopyDiskAdaptor.h
  12715. (DiskAdaptor.h): Removed include.
  12716. (DiskWriter.h): Removed include.
  12717. (AbstractSingleDiskAdaptor.h): New include.
  12718. (getFilePath): Made non-const. Added virtual keyword.
  12719. (CopyDiskAdaptor): Removed diskWriter.
  12720. (getTempFile): Returns const reference.
  12721. (CopyDiskAdaptorHandle): New type definition.
  12722. * src/ByteArrayDiskWriter.cc
  12723. (clear): Simplified.
  12724. (initAndOpenFile): Rewritten.
  12725. (openFile): Call initAndOpenFile()
  12726. * src/MultiDiskAdaptor.cc: Rewritten.
  12727. * src/DownloadEngineFactory.cc
  12728. (FileAllocator.h): New include.
  12729. (FileAllocationMonitor.h): New include.
  12730. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12731. create DefaultDiskWriter with file allocator.
  12732. * src/DiskWriter.h
  12733. (initAndOpenFile): Added totalLength argument.
  12734. (openFile): Added totalLength argument.
  12735. * src/prefs.h
  12736. (PREF_FILE_ALLOCATION): New definition.
  12737. (V_PREALLOC): New definition.
  12738. (V_NONE): New definition.
  12739. * src/HttpResponseCommand.cc
  12740. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12741. size.
  12742. * src/FtpNegotiateCommand.cc
  12743. (Util.h): New include.
  12744. (recvSize): Open file here.
  12745. * src/Util.h
  12746. (ullitos): New function.
  12747. * src/CopyDiskWriter.h
  12748. (getFilePath): Made non-const.
  12749. * src/DefaultDiskWriter.h
  12750. (Option.h): New include.
  12751. (totalLength): Removed.
  12752. (DefaultDiskWriter): Removed totalLength.
  12753. (initAndOpenFile): Added totalLength argument.
  12754. (DefaultDiskWriterHandle): New type definition.
  12755. (createNewDiskWriter): New function.
  12756. * src/Util.cc
  12757. (ullitos): New function.
  12758. * src/DefaultDiskWriter.cc
  12759. (message.h): New include.
  12760. (FileAllocator.h): New include.
  12761. (prefs.h): New include.
  12762. (Util.h): New include.
  12763. (DefaultDiskWriter): Removed totalLength.
  12764. (initAndOpenFile): Added file allocation.
  12765. (createNewDiskWriter): New function. Just for temporary solution.
  12766. It will be rewritten later.
  12767. * src/DiskAdaptor.cc
  12768. (DiskAdaptor): Removed diskWriter.
  12769. * src/AbstractDiskWriter.cc
  12770. (LogFactory.h): New include.
  12771. (AbstractDiskWriter): Added fileAllocator, logger.
  12772. (openFile): Added totalLength argument.
  12773. * src/AbstractDiskWriter.h
  12774. (FileAllocator.h): New include.
  12775. (Logger.h): New include.
  12776. (fileAllocator): New variable.
  12777. (logger): New variable.
  12778. (openFile): Added totalLength argument. Added virtual keyword
  12779. explicitly.
  12780. (openExistingFile): Added totalLength argument. Added virtual keyword
  12781. explicitly.
  12782. (closeFile): Added virtual keyword explicitly.
  12783. (sha1Sum): Added virtual keyword explicitly.
  12784. (writeData): Added virtual keyword explicitly.
  12785. (readData): Added virtual keyword explicitly.
  12786. (setFileAllocator): New function.
  12787. * src/DefaultPieceStorage.h
  12788. (FileAllocator.h): New include.
  12789. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12790. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12791. * src/FileProgressMonitor.h: New class.
  12792. To compile aria2 on PC-BSD:
  12793. * src/DefaultBtContext.cc
  12794. (libgen.h): New include.
  12795. To fix memory leak:
  12796. * src/Exception.h
  12797. (~Exception): Delete cause. Fixed memory leak.
  12798. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12799. Rewritten a portion of bittorrent implementation:
  12800. * src/BtMessageValidator.h: New class.
  12801. * src/BtBitfieldMessageValidator.h: New class.
  12802. * src/BtHandshakeMessageValidator.h: New class.
  12803. * src/BtRequestMessageValidator.h: New class.
  12804. * src/BtSuggestPieceMessageValidator.h: New class.
  12805. * src/BtAllowedFastMessageValidator.h: New class.
  12806. * src/BtRejectMessageValidator.h: New class.
  12807. * src/BtCancelMessageValidator.h: New class.
  12808. * src/BtPieceMessageValidator.h: New class.
  12809. * src/BtHaveMessageValidator.h: New class.
  12810. * src/BtEventListener.h: New class.
  12811. * src/AbstractBtEventListener.h: New class.
  12812. * src/BtEvent.h: New class.
  12813. * src/BtChokingEvent.h: New class.
  12814. * src/BtChokedEvent.h: New class.
  12815. * src/BtCancelSendingPieceEvent.h: New class.
  12816. * src/BtAbortOutstandingRequestEvent.h: New class.
  12817. * src/Randomizer.h: New class.
  12818. * src/SimpleRandomizer.h: New class.
  12819. * src/BtMessage.h: New class.
  12820. * src/AbstractBtMessage.h: New class.
  12821. * src/SimpleBtMessage.h: New class.
  12822. * src/BtHaveMessage.h: New class.
  12823. * src/BtInterestedMessage.h: New class.
  12824. * src/BtAllowedFastMessage.h: New class.
  12825. * src/BtUnchokeMessage.h: New class.
  12826. * src/BtCancelMessage.h: New class.
  12827. * src/BtNotInterestedMessage.h: New class.
  12828. * src/BtChokeMessage.h: New class.
  12829. * src/BtHaveNoneMessage.h: New class.
  12830. * src/BtHandshakeMessage.h: New class.
  12831. * src/BtSuggestPieceMessage.h: New class.
  12832. * src/BtHaveMessage.h: New class.
  12833. * src/BtPieceMessage.h: New class.
  12834. * src/BtHaveAllMessage.h: New class.
  12835. * src/BtKeepAliveMessage.h: New class.
  12836. * src/BtPortMessage.h: New class.
  12837. * src/BtRejectMessage.h: New class.
  12838. * src/BtBitfieldMessage.h: New class.
  12839. * src/BtRequestMessage.h: New class.
  12840. * src/DefaultBtRequestFactory.h: New class.
  12841. * src/DefaultBtMessageReceiver.h: New class.
  12842. * src/BtInteractive.h: New class.
  12843. * src/BtMessageDispatcher.h: New class.
  12844. * src/DefaultBtMessageDispatcher.h: New class.
  12845. * src/DefaultBtInteractive.h: New class.
  12846. * src/BitfieldManFactory.h: New class.
  12847. * src/HandleRegistry.h: New class.
  12848. * src/BtMessageFactory.h: New class.
  12849. * src/BtMessageReceiver.h: New class.
  12850. * src/DefaultBtMessageFactory.h: New class.
  12851. * src/PeerObject.h: New class.
  12852. * src/BtRequestFactory.h: New class.
  12853. * src/SuggestPieceMessage.h: Removed.
  12854. * src/PortMessage.h: Removed.
  12855. * src/SuggestPieceMessage.h: Removed.
  12856. * src/KeepAliveMessage.h: Removed.
  12857. * src/HandshakeMessage.h: Removed.
  12858. * src/PeerInteraction.h: Removed.
  12859. * src/UnchokeMessage.h: Removed.
  12860. * src/PieceMessage.h: Removed.
  12861. * src/RequestMessage.h: Removed.
  12862. * src/InterestedMessage.h: Removed.
  12863. * src/HaveMessage.h: Removed.
  12864. * src/CancelMessage.h: Removed.
  12865. * src/RejectMessage.h: Removed.
  12866. * src/AllowedFastMessage.h: Removed.
  12867. * src/HaveNoneMessage.h: Removed.
  12868. * src/SimplePeerMessage.h: Removed.
  12869. * src/HaveAllMessage.h: Removed.
  12870. * src/BitfieldMessage.h: Removed.
  12871. * src/PeerMessageFactory.h: Removed.
  12872. * src/NotInterestedMessage.h: Removed.
  12873. * src/ChokeMessage.h: Removed.
  12874. * src/PeerMessage.h: Removed.
  12875. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12876. To know root cause of exception:
  12877. * src/Exception.h
  12878. (cause): New variable.
  12879. (Exception): Added a parameter.
  12880. (getMsg): Return const reference to msg.
  12881. (getCause): New function.
  12882. * src/DlRetryEx.h
  12883. (DlRetryEx): Added a parameter 'cause'.
  12884. Added an overloaded constructor.
  12885. (DlAbortEx): Added a parameter 'cause'.
  12886. Added an overloaded constructor.
  12887. * src/SimpleLogger.cc
  12888. (writeLog): Log nested exception messages recursively.
  12889. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12890. * src/DefaultBtProgressInfoFile.cc
  12891. (load): Fixed memory leak when the infohash doesn't match.
  12892. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12893. * src/DefaultPeerStorage.cc
  12894. (calculateStat): Simplified the code by combining 2 loops into 1.
  12895. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12896. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12897. for BitTorrent download:
  12898. * src/PeerAbstractCommand.cc
  12899. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12900. * src/main.cc:
  12901. (timeoutSpecified): Removed.
  12902. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12903. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12904. * src/TorrentRequestInfo.cc
  12905. (timeoutSpecified): Removed.
  12906. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12907. timeout value.
  12908. * src/prefs.h
  12909. (PREF_BT_TIMEOUT): New definition.
  12910. Delete unused variables:
  12911. * src/TorrentRequestInfo.cc
  12912. (requestInfo): Removed.
  12913. Move setSignalHander to Util::setGlobalSignalHandler:
  12914. * src/TorrentRequestInfo.cc:
  12915. setSignalHander -> Util::setGlobalSignalHandler
  12916. * src/main.cc
  12917. (setSignalHander): Removed.
  12918. (main): setSignalHander -> Util::setGlobalSignalHandler
  12919. * src/Util.h
  12920. (setGlobalSignalHandler): New function.
  12921. * src/Util.cc
  12922. (setGlobalSignalHandler): New function.
  12923. * src/UrlRequestInfo.cc:
  12924. setSignalHander -> Util::setGlobalSignalHandler
  12925. Reset peer status in order to exit gracefully:
  12926. * src/PeerAbstractCommand.cc
  12927. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12928. To fix the bug that causes the number of bytes uploaded is not saved
  12929. to .aria2 file:
  12930. * src/DefaultPeerStorage.h
  12931. (removedPeerSessionDownloadLength): New variable.
  12932. (removedPeerSessionUploadLength): New variable.
  12933. * src/DefaultPeerStorage.cc
  12934. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12935. removedPeerSessionUploadLength(0).
  12936. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12937. through all peers, and then add removedPeerSessionDownloadLength(
  12938. removedPeerSessionUploadLength) to it.
  12939. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12940. (to) the peer to removedPeerSessionDownloadLength
  12941. (removedPeerSessionUploadLength).
  12942. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12943. To add Metalink location option:
  12944. * src/MetalinkRequestInfo.cc
  12945. (execute): Call MetalinkEntry::setLocationPreference()
  12946. * src/main.cc
  12947. (showUsage): Added the help message for --metalink-location option.
  12948. (main): Added --metalink-location option.
  12949. * src/prefs.h
  12950. (PREF_METALINK_LOCATION): New definition.
  12951. * src/MetalinkEntry.cc
  12952. (AddLocationPreference): New function object.
  12953. (setLocationPreference): New function.
  12954. * src/Xml2MetalinkProcessor.cc
  12955. (getResource): Set location attribute to MetalinkResource
  12956. To show URLs to download
  12957. * src/UrlRequestInfo.h
  12958. (printUrls): New function.
  12959. To add multiple <file> Metalink support:
  12960. * src/MetalinkEntry.h
  12961. (MetalinkResources): Removed.
  12962. (setLocationPreference): New function.
  12963. (MetalinkEntryHandle): New type definition.
  12964. (MetalinkEntries): New type definition.
  12965. * src/Xml2MetalinkProcessor.h
  12966. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12967. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12968. (parseFile): Metalinker* -> MetalinkerHandle
  12969. * src/UrlRequestInfo.h
  12970. (execute): RequestInfo* -> RequestInfos
  12971. * src/MetalinkRequestInfo.cc
  12972. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12973. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12974. (execute): RequestInfo* -> RequestInfos
  12975. Added multiple <file> support. Print filename when it is queued.
  12976. * src/MetalinkRequestInfo.h
  12977. (execute): RequestInfo* -> RequestInfos
  12978. (getDownloadEngine): Removed.
  12979. * src/RequestInfo.h
  12980. (RequestInfoHandle): New type definition.
  12981. (RequestInfos): New type definition.
  12982. (execute): RequestInfo* -> RequestInfos
  12983. (getDownloadEngine): Removed.
  12984. * src/MetalinkResource.h
  12985. (MetalinkResourceHandle): New type definition.
  12986. (MetalinkResources): New type definition.
  12987. * src/MetalinkEntry.cc
  12988. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12989. because the element is now of type MetalinkResourceHandle.
  12990. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12991. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12992. (dropUnsupportedResource): Removed the deletion of the elements of
  12993. resources because the element is now of type MetalinkResourceHandle.
  12994. * src/Xml2MetalinkProcessor.cc
  12995. (parseFile): Metalinker* -> MetalinkerHandle
  12996. MetalinkEntry* -> MetalinkEntryHandle
  12997. Removed try-catch block.
  12998. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12999. MetalinkResource* -> MetalinkResourceHandle
  13000. Removed try-catch block.
  13001. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13002. Free result by using xmlXPathFreeObject()
  13003. * src/Metalinker.cc
  13004. (~Metalinker): Removed the deletion of entries.
  13005. MetalinkEntry* -> MetalinkEntryHandle
  13006. (queryEntry): Add multiple <file> Metalink support.
  13007. * src/Metalinker.h
  13008. (MetalinkEntries): Removed.
  13009. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13010. * src/MetalinkProcessor.h
  13011. (parseFile): Metalinker* -> MetalinkerHandle
  13012. Bug fixes:
  13013. * src/PeerChokeCommand.cc
  13014. (execute): cat01->cat02
  13015. * src/DefaultPieceStorage.cc
  13016. (DefaultPieceStorage): Added diskAdaptor(0)
  13017. * src/TrackerWatcherComand.cc:
  13018. (execute): Use btAnnounce->noMoreAnnounce()
  13019. to determin whether the function returns true or not.
  13020. * src/TrackerUpdateCommand.cc:
  13021. (execute): Use btAnnounce->noMoreAnnounce()
  13022. to determin whether the function returns true or not.
  13023. * src/FtpConnection.cc
  13024. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13025. This is the fix of the busy loop bug.
  13026. * src/DownloadCommand.cc
  13027. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13028. cached PeerStat.
  13029. The value of "name" entry in torrent file is now set by
  13030. *DiskAdaptor::setTopDir(...) methods.
  13031. * src/MultiDiskAdaptor.h
  13032. (topDir): New variable.
  13033. (setTopDir): New function.
  13034. (getTopDir): New function.
  13035. * src/MultiDiskAdaptor.cc
  13036. (getFilePath): Concat storDir, "/" and topDir.
  13037. (mkdir): Use getFilePath() to get the directory path for output.
  13038. * src/DefaultPieceStorage.cc
  13039. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13040. CopyDiskAdaptor.
  13041. * src/CopyDiskAdaptor.h
  13042. (topDir): New variable.
  13043. (setTopDir): New function.
  13044. (getTopDir): New function.
  13045. * src/CopyDiskAdaptor.cc
  13046. (fixFilename): Updated.
  13047. Misc
  13048. * src/UrlRequestInfo.h
  13049. (e): Removed.
  13050. (UrlRequestInfo): Removed e.
  13051. (getDownloadEngine): Removed.
  13052. * src/UrlRequestInfo.cc
  13053. (handler): Rewritten.
  13054. (printUrls): New function.
  13055. (execute): Call printUrls().
  13056. * src/HandshakeMessage.cc
  13057. (check): peerinteraction->getBtContext() -> btContext
  13058. * src/PeerInteraction.h
  13059. (getBtContext): Removed.
  13060. * src/TorrentRequestInfo.h
  13061. (execute): RequestInfo* -> RequestInfos
  13062. (getDownloadEngine): Removed.
  13063. * src/TorrentRequestInfo.cc
  13064. (haltRequested): Removed.
  13065. (btHaltRequested): New variable.
  13066. (torrentHandler): haltRequested -> btHaltRequested
  13067. (execute): RequestInfo* -> RequestInfos
  13068. * src/TorrentConsoleDownloadEngine.cc
  13069. (afterEachIteration): haltRequested -> btHaltRequested.
  13070. * src/ConsoleDownloadEngine.h
  13071. (initStatistics): Added virtual.
  13072. (calculateStatistics): Added virtual.
  13073. (onEndOfRun): Added virtual.
  13074. (afterEachIteration): Added virtual.
  13075. * src/ConsoleDownloadEngine.cc
  13076. (haltRequested): New variable.
  13077. (afterEachIteration): New function.
  13078. * src/main.cc
  13079. (requestInfo): Removed.
  13080. * src/SegmentMan.cc
  13081. (findSlowerSegmentEntry): Refactored.
  13082. * Release 0.9.0
  13083. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13084. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13085. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13086. * src/TorrentMan.h: Removed.
  13087. * src/TorrentMan.cc: Removed.
  13088. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13089. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13090. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13091. * src/PeerAbstractCommand.cc: Use btRuntime.
  13092. * src/BtContextAwareCommand.h: New class.
  13093. * src/FileEntry.h: Added accessor methods for following variables.
  13094. (path): Made private.
  13095. (length): Made private.
  13096. (offset): Made private.
  13097. (extracted): Made private.
  13098. (requested): Made private.
  13099. (FileEntries): New definition.
  13100. (FileEntryHandle): New definition.
  13101. * src/FileEntry.cc: New file.
  13102. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13103. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13104. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13105. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13106. * src/PieceStorage.h: New file.
  13107. * src/PeerInteractionCommand.h: Use btContext.
  13108. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13109. btRuntime.
  13110. * src/DefaultBtProgressInfoFile.h: New file.
  13111. * src/DefaultBtProgressInfoFile.cc: New file.
  13112. * src/File.cc
  13113. (Util.h): New include.
  13114. (mkdirs): New function.
  13115. * src/MultiDiskAdaptor.h
  13116. (mkdir): New function.
  13117. * src/PeerListProcessor.h
  13118. (Peers): Removed.
  13119. * src/PeerInteraction.h
  13120. (torrentMan): Removed.
  13121. (btContext): New variable.
  13122. (peerStorage): New variable.
  13123. (pieceStorage): New variable.
  13124. (btAnnounce): New variable.
  13125. (getTorrentMan): Removed.
  13126. (getBtContext): New function.
  13127. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13128. btAnnounce.
  13129. * src/HandshakeMessage.h
  13130. (TorrentMan.h): Removed.
  13131. * src/HandshakeMessage.cc: Use btContext.
  13132. * src/DefaultBtAnnounce.cc: New file.
  13133. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13134. * src/DefaultPieceStorage.cc: New file.
  13135. * src/DefaultBtContext.h: New file.
  13136. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13137. Use the accessor methods of FileEntry.
  13138. * src/CookieBox.cc: Updated to use Util::slice().
  13139. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13140. * src/common.h (SharedHandle.h): New include.
  13141. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13142. pieceStorage.
  13143. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13144. * src/DiskAdaptor.h
  13145. (topDir): Removed.
  13146. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13147. (setTopDir): Removed.
  13148. (getTopDir): Removed.
  13149. * src/BtContext.h: New file.
  13150. * src/DefaultPeerStorage.h: New file.
  13151. * src/PieceMessage.h (TorrentMan.h): Removed.
  13152. * src/RequestMessage.h (TorrentMan.h): Removed.
  13153. * src/TorrentDownloadEngine.h
  13154. (uploadLength): New variable.
  13155. (btContext): New variable.
  13156. (btRuntime): New variable.
  13157. (pieceStorage): New variable.
  13158. (peerStorage): New variable.
  13159. (btAnnounce): New variable.
  13160. (btProgressInfoFile): New variable.
  13161. (torrentMan): Removed.
  13162. (setBtContext): New function.
  13163. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13164. peerStorage, btAnnounce, btProgressInfoFile.
  13165. * src/Piece.h
  13166. (toString): New function.
  13167. (Pieces): New type definition.
  13168. * src/Peer.h
  13169. (active): New variable.
  13170. (Peer): Added active.
  13171. (activate): Set active to true.
  13172. (deactivate): Set active to false.
  13173. (isActive): New function.
  13174. (Peers): New type definition.
  13175. * src/DirectDiskAdaptor.cc
  13176. (getFilePath): Use the accessor methods of FileEntry.
  13177. * src/TorrentConsoleDownloadEngine.h
  13178. (afterEachIteration): New function.
  13179. * src/TorrentConsoleDownloadEngine.cc
  13180. (haltRequested): New variable.
  13181. (sendStatistics): Use pieceStorage, btRuntime.
  13182. (afterEachIteration): New function.
  13183. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13184. * src/Directry.h
  13185. (Directory): New function.
  13186. (DirectoryHandle): New type definition.
  13187. * src/BtProgressInfoFile.h: New file.
  13188. * src/RequestMessage.cc: Use pieceStorage.
  13189. * src/BtRuntime.h: New file.
  13190. * src/DefaultBtContext.cc: New file.
  13191. * src/BitfieldMan.h
  13192. (getCompletedLength): New function(private).
  13193. (getCompletedLength): New function.
  13194. (getFilteredCompletedLength): New function.
  13195. * src/BitfieldMan.h
  13196. (getCompletedLength): New function(private).
  13197. (getCompletedLength): New function.
  13198. (getFilteredCompletedLength): New function.
  13199. * src/MultiDiskAdaptor.cc
  13200. (mkdir): New function.
  13201. (openFile): Call mkdir().
  13202. (initAndOpenFile): Call mkdir().
  13203. * src/CancelMessage.h
  13204. (TorrentMan.h): Removed.
  13205. * src/RejectMessage.h
  13206. (TorrentMan.h): Removed.
  13207. * src/DownloadEngineFactory.cc
  13208. (DefaultPieceStorage.h): New include.
  13209. (DefaultPeerStorage.h): New include.
  13210. (DefaultBtAnnounce.h): New include.
  13211. (DefaultBtProgressInfoFile.h): New include.
  13212. (newTorrentConsoleEngine): Rewritten.
  13213. * src/ShareRatioSeedCriteria.h
  13214. (torrentMan): Removed.
  13215. (btContext): New variable.
  13216. (peerStorage): New variable.
  13217. (btRuntime): New variable.
  13218. (evaluate): Use btContext, btRuntime, peerStorage.
  13219. * src/AnnounceTier.h: New file.
  13220. * src/BtAnnounce.h: New file.
  13221. * src/BtRegistry.h: New file.
  13222. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13223. * src/PeerConnection.h (TorrentMan.h): Removed.
  13224. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13225. * src/Util.h
  13226. (slice): Added an argument.
  13227. * src/Util.cc
  13228. (slice): Added an argument to control whether trim is made or not.
  13229. * src/PeerStorage.h: New file.
  13230. * src/BtRegistry.cc: New file.
  13231. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13232. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13233. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13234. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13235. * src/TorrentRequestInfo.h
  13236. (e): Removed.
  13237. (showFileEntry): Added an argument.
  13238. (getDownloadEngine): Return 0.
  13239. * src/DefaultBtAnnounce.h: New file.
  13240. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13241. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13242. * src/PeerMessageFactory.h
  13243. (btContext): New variable.
  13244. (pieceStorage): New variable.
  13245. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13246. btAnnounce.
  13247. * src/DiskAdaptor.cc
  13248. (DiskAdaptor): Removed topDir.
  13249. (~DiskAdaptor): Removed topDir.
  13250. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13251. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13252. * src/File.h (mkdirs): New function.
  13253. * src/DefaultPeerStorage): New file.
  13254. * src/DownloadEngineFactory.h
  13255. (newTorrentConsoleEngine): Use btContext.
  13256. * src/BtContextAwareCommand.cc: New file.
  13257. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13258. * src/PeerMessage.h
  13259. (btContext): New variable.
  13260. (peerStorage): New variable.
  13261. (pieceStorage): New variable.
  13262. (setBtContext): New function.
  13263. * src/Directry.cc
  13264. (Directory): New function.
  13265. (createDir): Do nothing if name.size() == 0.
  13266. * src/AnnounceList.h
  13267. (AnnounceTier): Removed.
  13268. (AnnounceTiers): Removed.
  13269. * src/DefaultPieceStorage.h: New file.
  13270. * src/Piece.cc (toString): New function.
  13271. To fix typo:
  13272. * src/main.cc (showVersion): Fixed typo.
  13273. To fix compile warning:
  13274. * src/DelegatingPeerListProcessor.cc
  13275. (canHandle): Added "return false".
  13276. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13277. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13278. make the process of announce request testable.
  13279. * src/TrackerWatcherCommand.h
  13280. (TimeA2.h): Removed.
  13281. (interval): Removed.
  13282. (checkPoint): Removed.
  13283. (createRequestCommand): Added an argument 'url'.
  13284. (TrackerWatherCommand): Removed interval.
  13285. (createCommand): New function.
  13286. * src/DownloadEngineFactory.cc
  13287. (newTorrentConsoleEngine): Updated according to the changes in
  13288. TrackerWatherCommand.
  13289. * src/TorrentMan.cc
  13290. (DelegatingPeerListProcessor.h): New includes.
  13291. (TorrentMan): Added the initialization of announceInterval.
  13292. (isStoppedAnnounceReady): New function.
  13293. (isCompletedAnnounceReady): New function.
  13294. (isDefaultAnnounceReady): New function.
  13295. (isAnnounceReady): New function.
  13296. (getAnnounceUrl): New function.
  13297. (announceStart): New function.
  13298. (announceFailure): New function.
  13299. (announceSuccess): New function.
  13300. (isAllAnnounceFailed): New function.
  13301. (resetAnnounce): New function.
  13302. (processAnnounceResponse): New function.
  13303. (needMorePeerConnection): New function.
  13304. (noMoreAnnounce): New function.
  13305. * src/TrackerUpdateCommand.h
  13306. (getTrackerResponse): int->size_t
  13307. * src/TorrentMan.h
  13308. (isStoppedAnnounceReady): New function.
  13309. (isCompletedAnnounceReady): New function.
  13310. (isDefaultAnnounceReady): New function.
  13311. (announceInterval): New variable.
  13312. (isAnnounceReady): New function.
  13313. (getAnnounceUrl): New function.
  13314. (announceStart): New function.
  13315. (announceFailure): New function.
  13316. (announceSuccess): New function.
  13317. (isAllAnnounceFailed): New function.
  13318. (resetAnnounce): New function.
  13319. (processAnnounceResponse): New function.
  13320. (needMorePeerConnection): New function.
  13321. (noMoreAnnounce): New function.
  13322. * src/TrackerWatcherCommand.cc
  13323. (TrackerWatherCommand): Removed interval and checkPoint.
  13324. (execute): Rewritten.
  13325. (createCommand): New function.
  13326. (createRequestCommand): Rewritten.
  13327. * src/TrackerUpdateCommand.cc
  13328. (MetaFileUtil.h): Removed.
  13329. (DelegatingPeerListProcessor.h): Removed.
  13330. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13331. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13332. Request -> RequestHandle:
  13333. * src/HttpResponseCommand.h: Request->RequestHandle
  13334. * src/AbstractCommand.cc: Request->RequestHandle
  13335. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13336. * src/HttpRequestCommand.cc: Request->RequestHandle
  13337. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13338. * src/AbstractCommand.h: Request->RequestHandle
  13339. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13340. * src/HttpResponseCommand.cc: Request->RequestHandle
  13341. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13342. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13343. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13344. * src/HttpConnection.h: Request->RequestHandle
  13345. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13346. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13347. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13348. * src/DownloadCommand.h: Request->RequestHandle
  13349. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13350. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13351. * src/HttpRequestCommand.h: Request->RequestHandle
  13352. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13353. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13354. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13355. * src/HttpDownloadCommand.h: Request->RequestHandle
  13356. * src/FtpConnection.cc: Request->RequestHandle
  13357. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13358. * src/UrlRequestInfo.cc: Request->RequestHandle
  13359. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13360. * src/HttpConnection.h: Request->RequestHandle
  13361. * src/DownloadCommand.cc: Request->RequestHandle
  13362. * src/FtpConnection.h: Request->RequestHandle
  13363. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13364. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13365. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13366. * src/Request.h
  13367. (SharedHandle.h): New include.
  13368. (RequestHandle): New type definition.
  13369. (Requests): Redefined.
  13370. To add MULTITRACKER support:
  13371. * src/TrackerWatcherCommand.h
  13372. (createRequestCommand): New function.
  13373. * src/DownloadEngineFactory.cc
  13374. (newTorrentConsoleEngine): Removed req.
  13375. * src/prefs.h
  13376. (PREF_TRACKER_MAX_TRIES): New definition.
  13377. * src/TorrentMan.cc
  13378. (TorrentMan): Removed req. Added trackerNumTry.
  13379. (~TorrentMan): Removed req.
  13380. (setupInternal1): Added announceList.
  13381. * src/TorrentRequestInfo.cc
  13382. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13383. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13384. * src/main.cc
  13385. (main): Added PREF_TRACKER_MAX_TRIES.
  13386. * src/TorrentMan.h
  13387. (Request.h): Removed.
  13388. (AnnounceList.h): New include.
  13389. (trackerNumTry): New variable.
  13390. (req): Removed.
  13391. (announceList): New variable.
  13392. * src/TrackerWatcherCommand.cc
  13393. (execute): Rewritten.
  13394. (createRequestCommand): New function.
  13395. * src/TrackerUpdateCommand.cc
  13396. (execute): Updated with the use of AnnounceList.
  13397. * src/AnnounceList.cc: New class.
  13398. * src/AnnounceList.h: New class.
  13399. To fix typo:
  13400. * src/prefs.h
  13401. (PREF_MAX_TRIES): max_try->max_tries
  13402. To not to decode "+" as space in URL decode:
  13403. * src/Util.cc
  13404. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13405. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13406. To add timeout to async name resolution:
  13407. * src/AbstractCommand.h
  13408. (nameResolveFinished): New function. This is not elegant way. It needs
  13409. to be more refined.
  13410. (nameResolverCheck): New variable.
  13411. * src/AbstractCommand.cc
  13412. (AbstractCommand): Added nameResolverCheck.
  13413. (execute): Added the check whether the name resolution has finished.
  13414. (setNameResolverCheck): Set nameResolverCheck to true.
  13415. (disableNameResolverCheck): Set nameResolverCheck to false.
  13416. (nameResolverFinished): New function.
  13417. * src/FtpInitiateConnectionCommand.h
  13418. (nameResolverFinished): New function.
  13419. * src/FtpInitiateConnectionCommand.cc
  13420. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13421. * src/HttpInitiateConnectionCommand.h
  13422. (nameResolverFinished): New function.
  13423. * src/HttpInitiateConnectionCommand.cc
  13424. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13425. * src/prefs.h
  13426. (PREF_DNS_TIMEOUT): New definition.
  13427. * src/main.cc
  13428. (main): Added PREF_DNS_TIMEOUT.
  13429. To add the support for a non-compact response from a tracker:
  13430. * src/PeerListProcessor.h: New class.
  13431. * src/DefaultPeerListProcessor.h: New class.
  13432. * src/DefaultPeerListProcessor.cc: New class.
  13433. * src/CompactPeerListProcessor.h: New class.
  13434. * src/CompactPeerListProcessor.cc: New class.
  13435. * src/DelegatingPeerListProcessor.h: New class.
  13436. * src/DelegatingPeerListProcessor.cc: New class.
  13437. * src/TorrentMan.cc
  13438. (addPeer): New function(overload).
  13439. (addPeer): Delete unused peers only when new peer is added.
  13440. * src/TorrentMan.h
  13441. (PeerListProcessor.h): Included.
  13442. (Peers): Removed.
  13443. (addPeer): New function(overload).
  13444. * src/TrackerUpdateCommand.cc
  13445. (netinet/in.h): Removed.
  13446. (DelegatingPeerListProcessor.h): Included.
  13447. (execute): Updated to use DelegatingPeerListProcessor.
  13448. To fix the memory leak in TorrentMan::peers:
  13449. * src/PeerAbstractCommand.cc
  13450. (onAbort): Added peer->resetStatus().
  13451. * src/Peer.h
  13452. (resetStatus): Made public.
  13453. To improve the precision of the speed calculation:
  13454. * src/SpeedCalc.h
  13455. (nextInterval): New variable.
  13456. * src/SpeedCalc.cc
  13457. (reset): Added nextInterval.
  13458. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13459. (changeSw): Set nextInterval to 15 seconds relative to the current
  13460. instant time.
  13461. * src/main.cc
  13462. (showVersion): Updated.
  13463. (showUsage): Updated.
  13464. * Release 0.8.1
  13465. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13466. * src/main.cc
  13467. (showUsage): Commented out --min-segment-size option.
  13468. (main): Commented out --min-segment-size option.
  13469. * Release 0.8.0
  13470. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13471. * src/*.{h,cc}:
  13472. Added an exception to the license which allows linking with OpenSSL.
  13473. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13474. * src/AbstractCommand.cc
  13475. (execute): Check whether the download has finished before checking
  13476. socket status.
  13477. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13478. Do not exit even if no segment is available.
  13479. * src/prefs.h
  13480. (PREF_STARTUP_IDLE_TIME): New definition.
  13481. * src/PeerInteractionCommand.cc
  13482. (executeInternal): Removed max speed limit. Because it performs bad.
  13483. (receiveMessages): Added max speed limit. This was better than above,
  13484. but still a little bit to be desired. Sometimes the download speed
  13485. became much faster than I specified.
  13486. * src/SpeedCalc.h
  13487. (start): New variable.
  13488. (accumulatedLength): New variable.
  13489. (getAvgSpeed): New function.
  13490. * src/SpeedCalc.cc
  13491. (reset): Added start, accumulatedLength.
  13492. (update): Added calculation of an average speed.
  13493. (getAvgSpeed): New function.
  13494. * src/DownloadCommand.h
  13495. (sw): Removed.
  13496. * src/main.cc
  13497. (main): Added PREF_STARTUP_IDLE_TIME.
  13498. * src/PeerStat.h
  13499. (STATUS): Added REQUEST_IDLE.
  13500. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13501. (getAvgDownloadSpeed): New function
  13502. (requestIdle): New function.
  13503. * src/SegmentMan.h
  13504. (SegmentEntryHandle): New type definition.
  13505. (SegmentEntries): Now holds SegmentEntryHandle.
  13506. (findSlowerSegmentEntry): New funtion.
  13507. * src/SegmentMan.cc
  13508. (save): Updated according to the changes in SegmentEntries.
  13509. (read): Updated according to the changes in SegmentEntries.
  13510. (FindSegmentEntryByIndex): Updated according to the changes in
  13511. SegmentEntries.
  13512. (FindSegmentEntryByCuid): Updated according to the changes in
  13513. SegmentEntries.
  13514. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13515. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13516. Renamed uitr as itr.
  13517. (findSlowerSegmentEntry): New function.
  13518. (getSegment): Updated according to the changes in SegmentEntries.
  13519. Added the feature that cancels the segment with slow server and fast
  13520. one takes it over.
  13521. (cancelSegment): Updated according to the changes in SegmentEntries.
  13522. (getDownloadLength): Updated according to the changes in
  13523. SegmentEntries.
  13524. (init): Assigned 0 to bitfield after deleting it.
  13525. * src/DownloadCommand.cc
  13526. (STARTUP_IDLE_TIME): Removed.
  13527. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13528. * src/PeerChokeCommand.cc
  13529. (optUnchokingPeer): Updated according to the changes in Peer.
  13530. (ResetDelta): Removed.
  13531. (UploadFaster): Updated according to the changes in Peer.
  13532. (DownloadFaster): Updated according to the changes in Peer.
  13533. (execute): I clarify the meaning of "upload" and "download" here.
  13534. "upload" means the transfer from localhost to remote host.
  13535. "download" means the transfer from remote host to localhost.
  13536. Based on this rule, I swapped orderByUploadRate and
  13537. orderByDownloadRate.
  13538. * src/PeerInteractionCommand.cc
  13539. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13540. (executeInternal): Removed the argument of
  13541. peerInteraction->sendMessages().
  13542. (receiveMessages): Rewritten download speed limit.
  13543. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13544. * src/HttpResponseCommand.cc
  13545. (handleDefaultEncoding): If file size is unknown in torrent request,
  13546. do not call segmentMan->initBitfield() here.
  13547. Disabled persistent connection feature in torrent request.
  13548. * src/UrlRequestInfo.h
  13549. (UrlRequestInfo): Removed const qualifier from option.
  13550. * src/TorrentMan.h
  13551. (TransferStat): New class.
  13552. (deltaDownloadLength): Removed.
  13553. (deltaUploadLength): Removed.
  13554. (addDeltaDownloadLength): Removed.
  13555. (getDeltaDownloadLength): Removed.
  13556. (resetDeltaDownloadLength): Removed.
  13557. (addDeltaUploadLength): Removed.
  13558. (getDeltaUploadLength): Removed.
  13559. (resetDeltaUploadLength): Removed.
  13560. (addActivePeer): Added peer->activate().
  13561. (deleteActivePeer): Added peer->deactivate().
  13562. (calculateStat): New function.
  13563. * src/TorrentMan.cc
  13564. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13565. (calculateStat): New function.
  13566. * src/PeerInteraction.h
  13567. (uploadLimit): Removed.
  13568. (option): New variable.
  13569. (setUploadLimit): Removed.
  13570. (getUploadSpeed): Removed.
  13571. (sendMessages): Removed the argument "currentUploadSpeed".
  13572. * src/PeerInteraction.cc
  13573. (prefs.h): Included.
  13574. (PeerInteraction): Removed uploadLimit. Added option.
  13575. (sendMessages): Rewritten upload speed limit.
  13576. (sendHandshake): Removed the argument from sendMessages().
  13577. (sendBitfield): Removed the argument from sendMessages().
  13578. * src/PeerAbstractCommand.cc
  13579. (execute): Commented out the portion of upload limit.
  13580. (onAbort): Removed peer->resetStatus().
  13581. * src/TorrentRequestInfo.cc
  13582. (timeoutSpecified): Declared extern.
  13583. (execute): Set timeout to 180 if timeout is not specified by.
  13584. command-line.
  13585. * src/PieceMessage.cc
  13586. (receivedAction): Added peer->updateDownloadLength().
  13587. Removed peer->addPeerUpload().
  13588. Removed torrentMan->addDeltaDownloadLength().
  13589. (send): Added peer->updateUploadLength().
  13590. Removed peer->addPeerDownload().
  13591. Removed torrentMan->addDeltaUploadLength().
  13592. * src/main.cc
  13593. (timeoutSpecified): New variable.
  13594. (main): Set timeoutSpecified to false.
  13595. If the command-line option "--upload-limit" is specified, then
  13596. timeoutSpecified is set to true. This option will remain in the next
  13597. release, but be deprecated in the future release.
  13598. * src/TorrentRequestInfo.h
  13599. (TorrentRequestInfo): Removed const qualifier from op.
  13600. * src/PeerStat.h
  13601. (uploadSpeed): New variable.
  13602. (PeerStat): Added default value to cuid.
  13603. (calculateUploadSpeed): New function.
  13604. (updateUploadLength): New function.
  13605. (getMaxUploadSpeed): New function.
  13606. (getAvgUploadSpeed): New function.
  13607. (reset): Added uploadSpeed. Set status to IDLE.
  13608. * src/TorrentDownloadEngine.h
  13609. (cp): Declared as Time.
  13610. (sessionDownloadLengthArray): Removed.
  13611. (sessionUploadLengthArray): Removed.
  13612. (currentCp): Removed.
  13613. (lastCalcStat): New variable
  13614. (lastElapsed): Removed.
  13615. (sessionDownloadLength): Removed.
  13616. (calculateStat): New function.
  13617. * src/TorrentDownloadEngine.cc
  13618. (initStatistics): Removed lastElapsed, cp[],
  13619. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13620. currentCp, sessionDownloadLength.
  13621. Added cp.reset() and lastCalcStat.reset().
  13622. (calculateSpeed): Changed the name of the argument.
  13623. (calculateStatistics): Rewritten.
  13624. (calculateStat): New function.
  13625. * src/Peer.h
  13626. (PeerStat.h): Included.
  13627. (peerUpload): Removed.
  13628. (peerDownload): Removed.
  13629. (peerStat): New variable.
  13630. (sessionUploadLength): New variable.
  13631. (sessionDownloadLength): New variable.
  13632. (deltaUpload): Removed.
  13633. (deltaDownload): Removed.
  13634. (resetStatus): Made private.
  13635. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13636. Removed peerUpload, peerDownload.
  13637. (updateUploadLength): New function.
  13638. (addDeltaUpload): Removed.
  13639. (updateDownloadLength): New function.
  13640. (resetDeltaUpload): Removed.
  13641. (getDeltaUpload): Removed.
  13642. (addDeltaDownload): Removed.
  13643. (calculateUploadSpeed): New function.
  13644. (resetDeltaDownload): Removed.
  13645. (getDeltaDownload): Removed.
  13646. (calculateDownloadSpeed): New function.
  13647. (getSessionUploadLength): New function.
  13648. (getSessionDownloadLength): New function.
  13649. (activate): New function.
  13650. (deactivate): New function.
  13651. (addPeerUpload): Removed.
  13652. (setPeerUpload): Removed.
  13653. (getPeerUpload): Removed.
  13654. (addPeerDownload): Removed.
  13655. (setPeerDownload): Removed.
  13656. (getPeerDownload): Removed.
  13657. * src/Peer.cc
  13658. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13659. * src/MetalinkRequestInfo.h
  13660. (MetalinkRequestInfo): Removed const qualifier from op.
  13661. * src/RequestInfo.h
  13662. (op): Removed const qualifier.
  13663. (RequestInfo): Removed const qualifier from op.
  13664. * src/prefs.h
  13665. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13666. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13667. * src/PeerInteractionCommand.cc
  13668. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13669. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13670. * src/PeerInteraction.cc
  13671. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13672. * src/main.cc
  13673. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13674. Added the description of "--max-download-limit" option.
  13675. Removed the description of "--upload-limit" option.
  13676. Added the description of "--max-upload-limit" option.
  13677. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13678. Added "--max-download-limit" option and "--max-upload-limit" option.
  13679. Added the warning message if "--upload-limit" option is used.
  13680. * src/DownloadCommand.cc
  13681. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13682. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13683. To rewrite segment download mechanism for HTTP/FTP download.
  13684. Use BitfieldMan to manage segment download.
  13685. * src/HttpResponseCommand.h
  13686. (executeInternal): Pass the reference of segment.
  13687. * src/AbstractCommand.cc
  13688. (prepareForRetry): Call segmentMan->cancelSegment here.
  13689. (onAbort): Call segmentMan->cancelSegment here.
  13690. * src/HttpDownloadCommand.cc
  13691. (prepareForNextSegment): New function.
  13692. * src/DownloadEngineFactory.cc
  13693. (newConsoleEngine): Removed splitter.
  13694. (newTorrentConsoleEngine): Removed splitter.
  13695. * src/Request.h
  13696. (segment): Renamed from seg.
  13697. * src/FtpInitiateConnectionCommand.h
  13698. (executeInternal): Pass the reference of segment.
  13699. * src/AbstractCommand.h
  13700. (executeInternal): Pass the reference of segment.
  13701. * src/pref.h
  13702. (PREF_SEGMENT_SIZE): New definition.
  13703. * src/HttpProxyRequestCommand.h
  13704. (executeInternal): Pass the reference of segment.
  13705. * src/HttpResponseCommand.cc
  13706. (checkResponse): Allowed status 206 when a request range starts 0.
  13707. (handleDefaultEncoding): Rewritten the code related to Segment.
  13708. (handleOtherEncoding): Rewritten the code related to Segment.
  13709. * src/SegmentMan.h
  13710. (SegmentEntry): New class.
  13711. (SegmentEntries): New type definition.
  13712. (bitfield): New variable.
  13713. (usedSegmentEntries): New variable.
  13714. (onNullBitfield): New function.
  13715. (checkoutSegment): New function.
  13716. (segments): Removed.
  13717. (splitter): Removed.
  13718. (unregisterId): Removed.
  13719. (getSegment): New function(overload)
  13720. (getDownloadedSize): Removed.
  13721. (cancelSegment): New function.
  13722. (completeSegment): New function.
  13723. (initBitfield): New function.
  13724. (hasSegment): New function.
  13725. (getDownloadLength): New function.
  13726. * src/BitfieldMan.h
  13727. (getStartIndex): New function.
  13728. (getEndIndex): New function.
  13729. (getMissingUnusedIndex): New function(overload).
  13730. (getSparseMissingUnusedIndex): New function.
  13731. * src/BitfieldMan.cc
  13732. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13733. (getMissingUnusedIndex): New function(overload).
  13734. (Range): New class.
  13735. (getStartIndex): New function.
  13736. (getEndIndex): New function.
  13737. (getSparseMissingUnusedIndex): New function.
  13738. (isBitSetInternal): Return false if the given index is less than 0.
  13739. * src/HttpInitiateConnectionCommand.h
  13740. (executeInternal): Pass the reference of segment.
  13741. * src/FtpNegotiateCommand.h
  13742. (executeInternal): Pass the reference of segment.
  13743. * src/FtpNegotiateCommand.cc
  13744. (recvSize): Initialize bitfield here.
  13745. * src/FtpTunnelResponseCommand.h
  13746. (executeInternal): Pass the reference of segment.
  13747. * src/HttpConnection.cc
  13748. (createRequest): Rewritten range header processing.
  13749. * src/DownloadCommand.h
  13750. (executeInternal): Pass the reference of segment.
  13751. (prepareForRetry): Removed.
  13752. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13753. function.
  13754. * src/main.cc
  13755. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13756. * src/SegmentMan.cc
  13757. (SegmentMan): Added bitfield. Removed splitter.
  13758. (~SegmentMan): Added bitfield. Removed splitter.
  13759. (unregisterId): Removed.
  13760. (getSegment): Rewritten.
  13761. (updateSegment): Rewritten.
  13762. (save): Rewritten.
  13763. (read): Rewritten.
  13764. (finished): Rewritten.
  13765. (getDownloadedSize): Removed.
  13766. (initBitfield): New function.
  13767. (FindSegmentEntryByIndex): New function object.
  13768. (FindSegmentEntryByCuid): New function object.
  13769. (checkoutSegment): New function.
  13770. (onNullBitfield): New function.
  13771. (getSegment): New function(overload).
  13772. (CancelSegment): New function object.
  13773. (cancelSegment): New function.
  13774. (completeSegment): New function.
  13775. (hasSegment): New function.
  13776. (getDownloadLength): New function.
  13777. * src/FtpInitiateConnectionCommand.cc
  13778. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13779. * src/Segment.h: Rewritten.
  13780. * src/Segment.cc (operator<<): New function.
  13781. * src/HttpDownloadCommand.h
  13782. (prepareForNextSegment): New function.
  13783. * src/Request.cc
  13784. (resetUrl): Made segment null.
  13785. * src/DownloadEngine.cc
  13786. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13787. * src/HttpProxyRequestCommand.h
  13788. (executeInternal): Pass the reference of segment.
  13789. * src/DownloadCommand.cc
  13790. (executeInternal): Rewritten the code related to Segment.
  13791. (prepareForRetry): Removed.
  13792. (prepareForNextSegment): Rewritten.
  13793. * src/FtpTunnelResponseCommand.h
  13794. (executeInternal): Pass the reference of segment.
  13795. To add HTTP 1.1 persistent connection support(experimental)
  13796. * src/HttpRequestCommand.cc
  13797. (executeInternal): Disable keep alive if it is disabled by
  13798. configuration.
  13799. * src/Request.h
  13800. (keepAlive): New variable.
  13801. (isKeepAlive): New function.
  13802. (setKeepAlive): New function.
  13803. * src/pref.h
  13804. (PREF_HTTP_KEEP_ALIVE): New definition.
  13805. * src/HttpResponseCommand.cc
  13806. (executeInternal): Check the remote server supports keep alive.
  13807. * src/HttpConnection.cc
  13808. (createRequest): Send "Connection: close" only if keep alive is
  13809. disabled.
  13810. * src/main.cc
  13811. (main):
  13812. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13813. To add max download speed limit:
  13814. * src/pref.h
  13815. (PREF_MAX_SPEED_LIMIT): New definition.
  13816. * src/PeerInteractionCommand.cc
  13817. (executeInternal): Added max download speed limit. Not tested yet.
  13818. * src/SegmentMan.h
  13819. (PeerStats): New type definition.
  13820. (peerStats): New variable.
  13821. (registerPeerStat): New function.
  13822. (FindPeerStat): New function object.
  13823. (getPeerStat): New function.
  13824. (calculateDownloadSpeed): New function.
  13825. * src/SpeedCalc.h: New class.
  13826. * src/SpeedCalc.cc: New class.
  13827. * src/main.cc
  13828. (main):
  13829. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13830. download speed is not restricted).
  13831. * src/PeerStat.h: New class.
  13832. * src/SegmentMan.cc
  13833. (registerPeerStat): New function.
  13834. (calculateDownloadSpeed): New function.
  13835. * src/DownloadCommand.cc
  13836. (STARTUP_IDLE_TIME): New definition.
  13837. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13838. downloadStart.
  13839. (~DownloadCommand): Call peerStat->downloadStop.
  13840. (executeInternal): Added download speed limitter. Rewritten lowest
  13841. speed limitter.
  13842. * src/HttpConnection.cc
  13843. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13844. * src/AbstractCommand.cc
  13845. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13846. Added hostname to the error message.
  13847. * src/ConsoleDownloadEngine.cc
  13848. (calculateStatistics): Initialize psize with dlSize.
  13849. * src/PieceMessage.cc
  13850. (receivedAction): Do not call peerInteraction->abortPiece here.
  13851. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13852. * src/BitfieldMan.h
  13853. (clearAllUseBit): New function.
  13854. (setAllUseBit): New function.
  13855. * src/BitfieldMan.cc
  13856. (clearAllBit): Do not clear useBitfield here.
  13857. (clearAllUseBit): New function.
  13858. (setAllUseBit): New function.
  13859. * src/Piece.cc
  13860. (clearAllBlock): Call bitfield->clearAllUseBit().
  13861. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13862. To make filename URL-decoded:
  13863. * src/HttpResponseCommand.h: Updated doc.
  13864. * src/HttpResponseCommand.cc
  13865. (determinFilename): Made filename URL-decoded.
  13866. * src/FtpInitiateConnectionCommand.cc
  13867. (executeInternal): Made filename URL-decoded.
  13868. * src/Util.h (urldecode): New function.
  13869. * src/Util.cc (urldecode): New function.
  13870. To fix a bug that caused assertion failure in ares_strerror:
  13871. * src/NameResolver.cc (callback): Fixed the bug.
  13872. * Release 0.7.3
  13873. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13874. To add --seed-time and --seed-ratio command-line option:
  13875. * src/Option.h (getAsDouble): New function.
  13876. * src/Option.cc (getAsDouble): New function.
  13877. * src/SeedCheckCommand.h: New class.
  13878. * src/SeedCheckCommand.cc: New class.
  13879. * src/DownloadEngineFactory.cc
  13880. (SeedCheckCommand.h): Included.
  13881. (UnionSeedCriteria.h): Included.
  13882. (TimeSeedCriteria.h): Included.
  13883. (ShareRatioSeedCriteria.h): Included.
  13884. (newTorrentConsoleEngine): Added the processing of seed option.
  13885. * src/SeedCriteria.h: New class.
  13886. * src/ShareRatioSeedCriteria.h: New class.
  13887. * src/TimeSeedCriteria.h: New class.
  13888. * src/UnionSeedCriteria.h: New class.
  13889. * src/prefs.h
  13890. (PREF_SEED_TIME): New definition.
  13891. (PREF_SEED_RATIO): New definition.
  13892. * src/main.cc
  13893. (showUsage): Added --seed-time and --seed-ratio option.
  13894. (main): Added --seed-time and --seed-ratio option.
  13895. Made default log file name "/dev/null".
  13896. * src/SharedHandle.h
  13897. (SharedHandle): Copy constructor. Made it assignable from the
  13898. SharedHandle of the subclasses.
  13899. (operator=): Made it assignable from the SharedHandle of the
  13900. subclasses.
  13901. (getRefCount): New function.
  13902. To add notice log level and the switch to write log to stdout. This
  13903. switch is configurable per log level.
  13904. * src/Logger.h
  13905. (notice): New function.
  13906. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13907. constant.
  13908. * src/LogFactory.cc
  13909. (getInstance): The use of NullLogger was removed. A log message with
  13910. notice log level was made written to stdout along with log file.
  13911. * src/NullLogger.h
  13912. (notice): New function.
  13913. * src/SimpleLogger.h
  13914. (writeHeader): Added the 'file' argument.
  13915. (writeLog): Added the 'file' argument.
  13916. (writeFile): New function.
  13917. (stdoutField): New variable.
  13918. (SimpleLogger): Removed the default constructor.
  13919. (SimpleLogger): Made the default value of logfile 0.
  13920. (debug): Added 'virtual' keyword.
  13921. (info): Added 'virtual' keyword.
  13922. (warn): Added 'virtual' keyword.
  13923. (error): Added 'virtual' keyword.
  13924. (notice): New function.
  13925. (setStdout): New function.
  13926. * src/SimpleLogger.cc
  13927. (WRITE_LOG): Replaced writeLog with writeFile.
  13928. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13929. (SimpleLogger): Removed the default constructor.
  13930. (setStdout): New function.
  13931. (writeLog): Added the handling of NOTICE log level.
  13932. (writeFile): New function.
  13933. (notice): New function.
  13934. * src/TorrentMan.h: Updated doc.
  13935. * src/BitfieldMan.h: Updated doc.
  13936. * src/TrackerWatcherCommand.cc
  13937. (execute): Return true if error occurred in the request to the tracker
  13938. and halt is requested.
  13939. * src/TrackerUpdateCommand.cc
  13940. (execute): Return true if error occurred in the request to the tracker
  13941. and halt is requested.
  13942. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13943. DownloadEngine:
  13944. * src/TorrentConsoleDownloadEngine.h
  13945. (onSelectiveDownloadingCompletes): Removed.
  13946. * src/TorrentConsoleDownloadEngine.cc
  13947. (onSelectiveDownloadingCompletes): Removed.
  13948. * src/TorrentDownloadEngine.h
  13949. (onEndOfRun): Added 'virtual' keyword.
  13950. (afterEachIteration): Removed.
  13951. (onSelectiveDownloadingCompletes): Removed.
  13952. * src/TorrentDownloadEngine.cc
  13953. (onEndOfRun): Removed filenameFixed.
  13954. (afterEachIteration): Removed.
  13955. * src/TorrentMan.cc
  13956. (completePiece): Call onDownloadComplete here.
  13957. (onDownloadComplete): Added 2 log messages.
  13958. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13959. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13960. * src/NameResolver.h: Added the prototype declaration of callback().
  13961. To support c-ares library:
  13962. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13963. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13964. * src/FtpInitiateConnectionCommand.h:
  13965. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13966. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13967. * src/HttpInitiateConnectionCommand.h:
  13968. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13969. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13970. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13971. #1542285 by tizianomueller)
  13972. * src/HttpInitiateConnectionCommand.cc:
  13973. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13974. * src/FtpInitiateConnectionCommand.cc:
  13975. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13976. * src/DownloadEngine.h:
  13977. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13978. * src/DownloadEngine.cc:
  13979. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13980. To fix the bug that causes compilation failure with metalink-support
  13981. disabled(bug#1543587):
  13982. * src/main.cc: Fixed with the patch by tizianomueller.
  13983. * Release 0.7.2
  13984. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13985. * src/main.cc
  13986. (main): Added a message to inform users that aria2 is starting to
  13987. verify checksum.
  13988. * src/RequestInfo.cc
  13989. (printDownloadAbortMessage): Added a message to inform users that
  13990. transfer can be resumed.
  13991. * src/FeatureConfig.cc
  13992. (FEATURE_ASYNC_DNS): New definition.
  13993. (FeatureConfig): Added aysnc DNS entry.
  13994. To replace CommandUuid with Command* in SocketEntry and
  13995. NameResolverEntry:
  13996. * src/DownloadEngine.h
  13997. (CommandUuids): Removed.
  13998. (SocketEntry::commandUuid): Removed.
  13999. (SocketEntry::command): New variable.
  14000. (SocketEntry::SocketEntry): Updated.
  14001. (SocketEntry::operator==): Updated.
  14002. (NameResolverEntry::commandUuid): Removed.
  14003. (NameResolverEntry::command): New variable.
  14004. (NameResolverEntry::NameResolverEntry): Updated.
  14005. (NameResolverEntry::operator==): Updated.
  14006. (waitData): Changed the argument type.
  14007. (addSocketForReadCheck): Changed the argument type.
  14008. (deleteSocketForReadCheck): Changed the argument type.
  14009. (addSocketForWriteCheck): Changed the argument type.
  14010. (deleteSocketForWriteCheck): Changed the argument type.
  14011. (addNameResolverCheck): Changed the argument type.
  14012. (deleteNameResolverCheck): Changed the argument type.
  14013. * src/DownloadEngine.cc
  14014. (FindCommand): Removed.
  14015. (run): Removed activeUuid. Added activeCommands instead.
  14016. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14017. (AccumulateActiveCommand): New function object.
  14018. (waitData): Use AccumulateActiveCommand.
  14019. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14020. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14021. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14022. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14023. (addNameResolverCheck): Use Command instead of CommandUuid.
  14024. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14025. * src/AbstractCommand.cc
  14026. (disableReadCheckSocket): Updated according to the changes in
  14027. DownloadEngine.
  14028. (setReadCheckSocket): Updated according to the changes in
  14029. DownloadEngine.
  14030. (disableWriteCheckSocket): Updated according to the changes in
  14031. DownloadEngine.
  14032. (setWriteCheckSocket): Updated according to the changes in
  14033. DownloadEngine.
  14034. (setNameResolverCheck): Updated according to the changes in
  14035. DownloadEngine.
  14036. (disableNameResolverCheck): Updated according to the changes in
  14037. DownloadEngine.
  14038. * src/AbstractCommand.cc
  14039. (disableReadCheckSocket): Updated according to the changes in
  14040. DownloadEngine.
  14041. (setReadCheckSocket): Updated according to the changes in
  14042. DownloadEngine.
  14043. (disableWriteCheckSocket): Updated according to the changes in
  14044. DownloadEngine.
  14045. (setWriteCheckSocket): Updated according to the changes in
  14046. DownloadEngine.
  14047. * release 0.7.1
  14048. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14049. To handle the case where some BitTorrent tracker requires all letters
  14050. except for [A-Za-z0-9] is URL encoded.
  14051. * src/Util.h
  14052. (torrentUrlencode): New function.
  14053. * src/Util.cc
  14054. (ctype.h): Included.
  14055. (torrentUrlencode): New function.
  14056. * src/TrackerWatcherCommand.cc
  14057. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14058. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14059. To add asynchronous DNS support(libares):
  14060. * src/AbstractCommand.h
  14061. (setNameResolverCheck): New function.
  14062. (disableNameResolverCheck): New function
  14063. (resolveHostname): New function.
  14064. * src/AbstractCommand.cc
  14065. (setNameResolverCheck): New function.
  14066. (disableNameResolverCheck): New function
  14067. (resolveHostname): New function.
  14068. * src/FtpInitiateConnectionCommand.h
  14069. (nameResolver): New function.
  14070. * src/FtpInitiateConnectionCommand.cc
  14071. (Util.h): Included.
  14072. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14073. disableWriteCheckSocket.
  14074. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14075. (executeInternal): Added async DNS support.
  14076. * src/HttpInitiateConnectionCommand.h
  14077. (nameResolver): New function.
  14078. * src/HttpInitiateConnectionCommand.cc
  14079. (DlRetryEx.h): Included.
  14080. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14081. disableWriteCheckSocket.
  14082. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14083. (executeInternal): Added async DNS support.
  14084. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14085. by extern "C" declaration.
  14086. * src/NameResolver.cc: New class.
  14087. * src/Util.h:
  14088. (isNumberAndDotsNotation): New function
  14089. * src/Util.cc
  14090. (isNumberAndDotsNotation): New function.
  14091. * src/DownloadEngine.h
  14092. (NameResolver.h): Included.
  14093. (NameResolverEntry): New class.
  14094. (NameResolverEntries): New type definition.
  14095. (addNameResolverCheck): New function.
  14096. (deleteNameResolverCheck): New function.
  14097. * src/DownloadEngine.cc
  14098. (run): Initialize cp with 0.
  14099. (SetDescriptor::operator()): Added for NameResolverEntry.
  14100. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14101. (waitData): Check nameResolver entries.
  14102. (updateFdSet): Update fds in nameResolver entries.
  14103. (addNameResolverCheck): New function.
  14104. (deleteNameResolverCheck): new function.
  14105. * src/PeerInteractionCommand.cc
  14106. (executeInternal): Fixed wrong socket handling.
  14107. * src/main.cc
  14108. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14109. * src/Util.cc
  14110. (fileChecksum): Removed the call to ctx.digestReset().
  14111. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14112. * po/ru.po: Azamat sent me Russian translation.
  14113. * src/FtpNegotiateCommand.cc
  14114. (recvGreeting): Call disableWriteCheckSocket just after
  14115. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14116. (recvRetr): Recognized status code 125 as a acceptable response code.
  14117. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14118. case-insesitive filesystem(BUG#1531057).
  14119. * src/Time.h: Renamed as TimeA2.h.
  14120. * src/Time.cc: Renamed as TimeA2.cc.
  14121. * src/TimeA2.h: New class.
  14122. * src/TimeA2.cc: New class.
  14123. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14124. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14125. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14126. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14127. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14128. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14129. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14130. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14131. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14132. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14133. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14134. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14135. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14136. * release 0.7.0
  14137. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14138. * src/PeerChokeCommand.h
  14139. (PeerChokeCommand): Rearranged the arguments.
  14140. * src/PeerChokeCommand.cc
  14141. (PeerChokeCommand): Rearranged the arguments.
  14142. * src/MetalinkEntry.h
  14143. (Checksum.h): Included.
  14144. (md5): Removed.
  14145. (sha1): Removed.
  14146. (checksum): New variable.
  14147. (operator=): Updated.
  14148. (check): Removed.
  14149. * src/prefs.h
  14150. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14151. (PREF_FOLLOW_TORRENT): New definition.
  14152. (PREF_SELECT_FILE): New definition.
  14153. (PREF_FOLLOW_METALINK): New definition.
  14154. * src/MetalinkResource.h
  14155. (TYPE_HTTPS): Added to enum TYPE.
  14156. * src/TorrentMan.cc
  14157. (~TorrentMan): Rewritten.
  14158. * src/MultiDiskWriter.cc
  14159. (MultiDiskAdaptor): Updated according to the changes in
  14160. MessageDigestContext.
  14161. (~MultiDiskAdaptor): Updated according to the changes in
  14162. MessageDigestContext.
  14163. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14164. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14165. * src/Util.h
  14166. (fileChecksum): Updated according to the changes in
  14167. MessageDigestContext.
  14168. * src/Util.cc
  14169. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14170. (fileChecksum): Updated according to the changes in
  14171. MessageDigestContext.
  14172. * src/messageDigest.h: Rewritten.
  14173. * src/MetalinkEntry.cc
  14174. (check): Removed.
  14175. (Supported): Updated.
  14176. (dropUnsupportedResource): Fixed a memory leak.
  14177. * src/ShaVisitor.cc
  14178. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14179. (~ShaVisitor): Updated according to the changes in
  14180. MessageDigestContext.
  14181. (visit): Updated according to the changes in MessageDigestContext.
  14182. * src/main.cc
  14183. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14184. command-line option added.
  14185. * src/DownloadEngine.h
  14186. (SocketEntry): New class.
  14187. (SocketEntries): New definition.
  14188. (PairFind): Removed.
  14189. (SockCmdMap): Removed.
  14190. * src/DownloadEngine.cc
  14191. (DownloadEngine): Rewritten.
  14192. (~DownloadEngine): Rewritten.
  14193. (run): Renamed activeCommandUuids as activeUuids.
  14194. (SetDescriptor): Rewritten.
  14195. (AccumulateActiveCommandUuid): Removed.
  14196. (AccumulateActiveUuid): New function object.
  14197. (waitData): Rewritten.
  14198. (updateFdSet): Rewritten.
  14199. (addSocket): Rewritten.
  14200. (deleteSocket): Rewritten.
  14201. (addSocketForReadCheck): Rewritten.
  14202. (deleteSocketForReadCheck): Rewritten.
  14203. (addSocketForWriteCheck): Rewritten.
  14204. (deleteSocketForWriteCheck): Rewritten.
  14205. * src/Xml2MetalinkProcessor.cc
  14206. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14207. * src/DownloadCommand.cc
  14208. (executeInternal): Added the check routine for lowest speed limit.
  14209. * src/AbstractDiskWriter.cc
  14210. (AbstractDiskWriter): Updated according to the changes in
  14211. MessageDigestContext.
  14212. (~AbstractDiskWriter): Updated according to the changes in
  14213. MessageDigestContext.
  14214. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14215. * src/RequestInfo.h: New class.
  14216. * src/UrlRequestInfo.h: New class.
  14217. * src/UrlRequestInfo.cc: New class.
  14218. * src/TorrentRequestInfo.h: New class.
  14219. * src/TorrentRequestInfo.cc: New class.
  14220. * src/MetalinkRequestInfo.h: New class.
  14221. * src/MetalinkRequestInfo.cc: New class.
  14222. * src/Checksum.h: New class.
  14223. * src/DownloadEngineFactory.h: New class.
  14224. * src/DownloadEngineFactory.cc: New class.
  14225. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14226. * src/Option.h
  14227. (getAsBool): New function.
  14228. * src/Option.cc
  14229. (prefs.h): Included.
  14230. (defined): 0-length value is now recognized as undefined.
  14231. (getAsInt): Rewritten.
  14232. (getAsLLInt): Rewritten.
  14233. (getAsBool): New function.
  14234. * src/FeatureConfig.h: Rewritten.
  14235. * src/FeatureConfig.cc: Rewritten.
  14236. * src/prefs.h
  14237. (PREF_STDOUT_LOG): New definition.
  14238. (PREF_LOG): New definition.
  14239. (PREF_DIR): New definition.
  14240. (PREF_OUT): New definition.
  14241. (PREF_SPLIT): New definition.
  14242. (PREF_DAEMON): New definition.
  14243. (PREF_REFERER): New definition.
  14244. (PREF_TORRENT_FILE): New definition.
  14245. (PREF_LISTEN_PORT): New definition.
  14246. (PREF_METALINK_FILE): New definition.
  14247. (PREF_METALINK_VERSION): New definition.
  14248. (PREF_METALINK_LANGUAGE): New definition.
  14249. (PREF_METALINK_OS): New definition.
  14250. (PREF_METALINK_SERVERS): New definition.
  14251. * src/main.cc
  14252. (main): Following command-line parameters are now put into Option
  14253. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14254. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14255. metalinkLanguage, metalinkOs, metalinkServers
  14256. To fix the bug that aria2 can not handle http response header properly.
  14257. * src/HttpHeader.cc
  14258. (put): Made name lowercased.
  14259. (defined): Made name lowercased.
  14260. (getFirst): Made name lowercased.
  14261. (get): Made name lowercased.
  14262. (getFirstAsInt): Rewritten.
  14263. (getFirstAsLLInt): Rewritten.
  14264. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14265. * src/TorrentMan.h:
  14266. (advertisePiece): Updated doc.
  14267. (getAdvertisedPieceIndexes): Updated doc.
  14268. (removeAdvertisedPiece); New function.
  14269. * src/TorrentMan.cc
  14270. (FindElapsedHave): New function object.
  14271. (removeAdvertisedPiece): New function.
  14272. * src/HaveEraseCommand.h: New class.
  14273. * src/HaveEraseCommand.cc: New class.
  14274. * src/FeatureConfig.h: New class.
  14275. * src/FeatureConfig.cc: New class.
  14276. * src/Request.h
  14277. (defaultPorts): Removed.
  14278. * src/Request.cc
  14279. (FeatureConfig.h): Included.
  14280. (Request): Removed the statements related to defaultPorts.
  14281. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14282. A default port number is now retrieved from FeatureConfig.
  14283. * src/main.cc
  14284. (HaveEraseCommand.h): Included.
  14285. (showVersion): Added the output of feature list.
  14286. (main): Added HaveEraseCommand to command queue in BitTorrent
  14287. downloading.
  14288. * src/PeerInteractionCommand.h
  14289. (chokeCheckPoint): Commented out.
  14290. (periodicExecPoint): New variable.
  14291. * src/PeerInteractionCommand.cc
  14292. (executeInternal): Following methods are now called in at least every
  14293. 0.5 seconds to reduce CPU usage:
  14294. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14295. checkHave(), sendKeepAlive().
  14296. (checkLongTimePeerChoking): Commented out.
  14297. * src/BitfieldMan.h
  14298. (getNthBitIndex): Changed the method signature.
  14299. (getMissingIndexRandomly): Changed the method signature.
  14300. * src/BitfieldMan.cc
  14301. (getNthBitIndex): Rewritten
  14302. (getMissingIndexRandomly): Rewritten.
  14303. (hasMissingPiece): Rewritten.
  14304. (getMissingIndex): Refactored.
  14305. (getMissingUnusedIndex); Refactored.
  14306. (getMissingIndex): Refactored.
  14307. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14308. * src/PeerMessage.h
  14309. (Piece.h): Included.
  14310. (SharedHandle.h): Included.
  14311. (invalidate): New variable.
  14312. (uploading): New variable.
  14313. (isInvalidate): New function.
  14314. (isUploading): New function.
  14315. (onPush): New function.
  14316. (onChoked): New function.
  14317. (onCanceled): New function.
  14318. (onAbortPiece): New function.
  14319. (PeerMessageHandle): New type definition.
  14320. * src/PeerMessage.cc
  14321. (PeerMessage): Added the initialization for invalidate and uploading.
  14322. * src/CancelMessage.h
  14323. (CancelMessage): Rewritten.
  14324. * src/RejectMessage.h
  14325. (RejectMessage): Rewritten.
  14326. * src/Metalinker.h
  14327. (operator=): Defined.
  14328. * src/MetaEntry.h
  14329. (operator=): Defined.
  14330. * src/MetalinkResource.h
  14331. (operator=): Defined.
  14332. * src/AllowedFastMessage.h
  14333. (AllowedFastMessage): Rewritten.
  14334. * src/HandshakeMessage.h
  14335. (HandshakeMessage): New function(overload).
  14336. * src/HandshakeMessage.cc
  14337. (HandshakeMessage): Rewritten.
  14338. (init): New function.
  14339. * src/HaveMessage.h
  14340. (HaveMessage): Rewritten.
  14341. * src/Time.h
  14342. (operator=): Defined the function body here.
  14343. * src/Time.cc
  14344. (operator=): Removed.
  14345. * src/SocketCore.h
  14346. (operator==): Defined here.
  14347. (operator!=): Defined here.
  14348. (operator<): Defined here.
  14349. * src/SocketCore.cc
  14350. (operator==): Removed.
  14351. (operator<): Removed.
  14352. * src/BitfieldMan.h
  14353. (operator=): Defined the function body here.
  14354. * src/BitfieldMan.cc
  14355. (operator=): Removed.
  14356. * src/TorrentMan.h
  14357. (deleteErrorPeer): Removed.
  14358. (deleteUnusedPeer); New function.
  14359. * src/TorrentMan.cc
  14360. (addPeer): Call deleteUnusedPeer.
  14361. (deleteErrorPeer): Removed.
  14362. (deleteUnusedPeer): New function.
  14363. * src/PeerAbstractCommand.h
  14364. (setNoCheck): New function.
  14365. (noCheck): New variable.
  14366. * src/PeerAbstractCommand.cc
  14367. (PeerAbstractCommand): Added the initialization of noCheck.
  14368. (execute): Added a check for noCheck.
  14369. (setNoCheck): New function.
  14370. * src/Util.h
  14371. (stdio.h): Included.
  14372. * src/Util.cc
  14373. (unistd.h): Included.
  14374. * src/DefaultDiskWriter.cc
  14375. (unistd.h): Included.
  14376. * src/Peer.h
  14377. (operator==): Defined the function body here.
  14378. (operator!=): Defined the function body here.
  14379. * src/Peer.cc
  14380. (operator==): Removed.
  14381. (operator!=): Removed.
  14382. * src/Piece.h
  14383. (Piece): Defined the function body here(copy constructor).
  14384. (operator=): Defined the function body here.
  14385. (operator==): Defined the function body here.
  14386. * src/Piece.cc
  14387. (Piece): Removed(copy constructor).
  14388. (operator=): Removed.
  14389. (operator==): Removed.
  14390. * src/PeerMessageUtil.h
  14391. (ChokeMessage.h): Removed.
  14392. (UnchokeMessage.h): Removed.
  14393. (InterestedMessage.h): Removed.
  14394. (NotInterestedMessage.h): Removed.
  14395. (HaveMessage.h): Removed.
  14396. (BitfieldMessage.h): Removed.
  14397. (RequestMessage.h): Removed.
  14398. (CancelMessage.h): Removed.
  14399. (PieceMessage.h): Removed.
  14400. (HandshakeMessage.h): Removed.
  14401. (KeepAliveMessage.h): Removed.
  14402. (PortMessage.h): Removed.
  14403. (HaveAllMessage.h): Removed.
  14404. (HaveNoneMessage.h): Removed.
  14405. (PeerConnection.h): Removed.
  14406. (HandshakeMessage.h): Included.
  14407. * src/BitfieldMessage.h
  14408. (init): New function.
  14409. (BitfieldMessage): Rewritten.
  14410. (BitfieldMessage): New function(overload).
  14411. * src/RequestSlot.h
  14412. (operator=): Defined the function body here.
  14413. (operator==): Defined the function body here.
  14414. * src/RequestSlot.cc
  14415. (operator=): Removed.
  14416. (operator==): Removed.
  14417. To remove the dependency on the PeerMessage subclass from
  14418. PeerInteraction:
  14419. * src/PeerMessageFactory.h: New class.
  14420. * src/PeerMessageFactory.cc: New class.
  14421. * src/SimplePeerMessage.cc
  14422. (send): If invalidate is true then do nothing.
  14423. * src/PeerInteractionCommand.cc
  14424. (HandshakeMessage.h): Included.
  14425. (KeepAliveMessage.h): Included.
  14426. (ChokeMessage.h): Included.
  14427. (UnchokeMessage.h): Included.
  14428. (HaveMessage.h): Included.
  14429. (executeInternal): Call setNoCheck().
  14430. Removed setWriteCheckSocket(socket).
  14431. * src/PeerInteraction.h
  14432. (ChokeMessage.h): Removed.
  14433. (UnchokeMessage.h): Removed.
  14434. (InterestedMessage.h): Removed.
  14435. (NotInterestedMessage.h): Removed.
  14436. (HaveMessage.h): Removed.
  14437. (BitfieldMessage.h): Removed.
  14438. (RequestMessage.h): Removed.
  14439. (CancelMessage.h): Removed.
  14440. (PieceMessage.h): Removed.
  14441. (HandshakeMessage.h): Removed.
  14442. (KeepAliveMessage.h): Removed.
  14443. (PortMessage.h): Removed.
  14444. (HaveAllMessage.h): Removed.
  14445. (HaveNoneMessage.h): Removed.
  14446. (RejectMessage.h): Removed.
  14447. (AllowedFastMessage.h): Removed.
  14448. (SuggestPieceMessage.h): Removed.
  14449. (PeerMessageFactory.h): Included.
  14450. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14451. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14452. (PeerMessageFactory): New variable.
  14453. (createPeerMessage): Removed.
  14454. (createHandshakeMessage): Removed.
  14455. (setPeerMessageCommonProperty): Removed.
  14456. (addRequestSlot): New function.
  14457. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14458. (getPeerMessageFactory): New function.
  14459. (createRequestMessage): Removed.
  14460. (createCancelMessage): Removed.
  14461. (createPieceMessage): Removed.
  14462. (createHaveMessage): Removed.
  14463. (createChokeMessage): Removed.
  14464. (createUnchokeMessage): Removed.
  14465. (createInterestedMessage): Removed.
  14466. (createNotInterestedMessage): Removed.
  14467. (createBitfieldMessage): Removed.
  14468. (createKeepAliveMessage): Removed.
  14469. (createHaveAllMessage): Removed.
  14470. (createHaveNoneMessage): Removed.
  14471. (createRejectMessage): Removed.
  14472. (createAllowedFastMessage): Removed.
  14473. * src/PeerInteraction.cc
  14474. (PeerInteraction): Allocate PeerMessageFactory here.
  14475. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14476. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14477. PieceMessage::ID.
  14478. (addMessage): Simplified by using PeerMessage::onPush().
  14479. (addRequestSlot): New function.
  14480. (rejectAllPieceMessageInQueue): Simplified by using
  14481. PeerMessage::onChoked().
  14482. (rejectPieceMessageInQueue): Simplified by using
  14483. PeerMessage::onCanceled().
  14484. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14485. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14486. (createHandshakeMessage): Removed.
  14487. (createPeerMessage): Removed.
  14488. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14489. (setPeerMessageCommonProperty): Removed.
  14490. (createRequestMessage): Removed.
  14491. (createCancelMessage): Removed.
  14492. (createPieceMessage): Removed.
  14493. (createHaveMessage): Removed.
  14494. (createChokeMessage): Removed.
  14495. (createUnchokeMessage): Removed.
  14496. (createInterestedMessage): Removed.
  14497. (createNotInterestedMessage): Removed.
  14498. (createBitfieldMessage): Removed.
  14499. (createKeepAliveMessage): Removed.
  14500. (createHaveAllMessage): Removed.
  14501. (createHaveNoneMessage): Removed.
  14502. (createRejectMessage): Removed.
  14503. (createAllowedFastMessage): Removed.
  14504. * src/PieceMessage.h
  14505. (createRejectMessage): New function.
  14506. (PieceMessage): Rewritten.
  14507. (onChoked): New function.
  14508. (onCanceled): New function.
  14509. * src/PieceMessage.cc
  14510. (send): If invalidate is true then do nothing, just return.
  14511. (createRejectMessage): New function.
  14512. (onChoked): New function.
  14513. (onCanceled): New function.
  14514. * src/RequestMessage.h
  14515. (RequestMessage): Rewritten.
  14516. (onPush): New function.
  14517. (onAbortPiece): New function.
  14518. * src/RequestMessage.cc
  14519. (onPush): New function.
  14520. (onAbortPiece): New function.
  14521. Update fd_set when a socket is added or deleted in order to improve
  14522. performance:
  14523. * src/DownloadEngine.h
  14524. (rfdset): New variable.
  14525. (wfdset): New variable.
  14526. (updateFdSet): New function.
  14527. * src/DownloadEngine.cc
  14528. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14529. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14530. (waitData): Copy rfdset and wfdset.
  14531. (updateFdSet): New function.
  14532. (addSocket): Call updateFdSet.
  14533. (deleteSocket): Call updateFdSet.
  14534. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14535. To add the support for Metalink3.0 backward compatible links:
  14536. * src/Request.h
  14537. (SAFE_CHARS): Added '#'.
  14538. (METALINK_MARK): New definition.
  14539. * src/Request.cc
  14540. (parseUrl): Added the support for Metalink3.0 backward compatible
  14541. links.
  14542. etc
  14543. * src/PeerInteraction.cc
  14544. (MsgPushBack): Removed.
  14545. (sendMessages): Use STL copy and back_inserter.
  14546. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14547. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14548. * src/TorrentMan.h
  14549. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14550. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14551. * src/SharedHandle.h: New class.
  14552. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14553. * src/HttpResponseCommand.h
  14554. (HttpResponseCommand): Wrapped Socket.
  14555. * src/SocketCore.h
  14556. (operator==): New function.
  14557. (operator!=): New function.
  14558. (operator<): New function.
  14559. (getSockfd): New function.
  14560. (isOpen): New function.
  14561. (writeData): New function.
  14562. * src/SocketCore.cc
  14563. (operator==): New function.
  14564. (operator!=): New function.
  14565. (operator<): New function.
  14566. * src/AbstractCommand.h
  14567. (socket): Changed its type to SocketHandle.
  14568. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14569. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14570. (disableReadCheckSocket): New function.
  14571. (disableWriteCheckSocket): New function.
  14572. (readCheckTarget): Changed its type to SocketHandle.
  14573. (writeCheckTarget): Changed its type to SocketHandle.
  14574. (AbstractCommand): Replaced Socket with SocketHandle.
  14575. * src/AbstractCommand.cc
  14576. (AbstractCommand): Replaced Socket with SocketHandle.
  14577. (~AbstractCommand): Removed the deallocation for Socket object.
  14578. (disableReadCheckSocket): New function.
  14579. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14580. (disableWriteCheckSocket): New function.
  14581. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14582. * src/HttpDownloadCommand.cc
  14583. (DownloadCommand): Replaced Socket with SocketHandle.
  14584. * src/PeerAbstractCommand.h
  14585. (socket): Changed its type to SocketHandle.
  14586. (peer): Changed its type to PeerHandle.
  14587. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14588. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14589. (disableReadCheckSocket): New function.
  14590. (disableWriteCheckSocket): New function.
  14591. (readCheckTarget): Changed its type to SocketHandle.
  14592. (writeCheckTarget): Changed its type to SocketHandle.
  14593. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14594. Replaced Peer with PeerHandle.
  14595. * src/HttpRequestCommand.cc
  14596. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14597. Use disableReadCheckSocket.
  14598. * src/PeerInitiateConnectionCommand.h
  14599. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14600. * src/PeerChokeCommand.cc
  14601. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14602. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14603. (execute): Use PeerHandle.
  14604. * src/PeerConnection.h
  14605. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14606. (socket): Changed its type to SocketHandle.
  14607. (PeerConnection): Replaced Socket with SocketHandle.
  14608. * src/PeerConnection.cc
  14609. (PeerConnection): Replaced Socket with SocketHandle.
  14610. * src/PeerInteractionCommand.h
  14611. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14612. Replaced Peer with PeerHandle.
  14613. * src/PeerInteractionCommand.cc
  14614. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14615. Replaced Peer with PeerHandle.
  14616. (executeInternal): Use disableWriteCheckSocket.
  14617. Use HandshakeMessageHandle.
  14618. (receiveMessages): Use PeerMessageHandle.
  14619. (prepareForNextPeer): Use PeerHandle.
  14620. * src/HttpProxyRequestCommand.h
  14621. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14622. * src/HttpResponseCommand.cc
  14623. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14624. * src/TorrentMan.cc
  14625. (nullPeer): Added external reference.
  14626. (~TorrentMan): Removed the deallocation of the elements of peers.
  14627. (addPeer): Rewritten.
  14628. (isPeerAvailable): Use nullPeer.
  14629. (deleteOldpeers): Replaced with deleteErrorPeer.
  14630. (deleteErrorPeer): New function.
  14631. (getPeer): Use PeerHandle and nullPeer.
  14632. (hasMissingPiece): Replaced Peer with PeerHandle.
  14633. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14634. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14635. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14636. (getMissingPiece): Replaced Peer with PeerHandle.
  14637. * src/FtpNegotiateCommand.cc
  14638. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14639. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14640. (recvGreeting): Use disableWriteCheckSocket.
  14641. (recvPasv): Removed the allocation of Socket.
  14642. Use disableReadCheckSocket.
  14643. (sendRestPasv): Use disableWriteCheckSocket.
  14644. (recvRetr): Changed assertion.
  14645. * src/PeerInteraction.h
  14646. (SharedHandle.h): Included SharedHandle.h.
  14647. (PeerMessageHandle): New type definition.
  14648. (HandshakeMessageHandle): New type definition.
  14649. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14650. (peer): Changed its type to PeerHandle.
  14651. (createHandshakeMessage): Replaced HandshakeMessage with
  14652. HandshakeMessageHandle.
  14653. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14654. (PeerInteraction): Replaced Peer with PeerHandle.
  14655. Replaced Socket with SocketHandle.
  14656. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14657. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14658. (receiveHandshake): Replaced HandshakeMessage with
  14659. HandshakeMessageHandle.
  14660. * src/PeerInteraction.cc
  14661. (PeerInteraction): Replaced Peer with PeerHandle.
  14662. Replaced Socket with SocketHandle.
  14663. (~PeerInteraction): Removed the deallocation of the elements of
  14664. messageQueue.
  14665. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14666. (isSendingMessageInProgress): Replaced PeerMessage with
  14667. PeerMessageHandle.
  14668. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14669. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14670. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14671. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14672. (abortPiece): Use PeerMessageHandle.
  14673. (receiveHandshake): Replaced HandshakeMessage with
  14674. HandshakeMessageHandle. Removed try-catch block.
  14675. (createHandshakeMessage): Replaced HandshakeMessage with
  14676. HandshakeMessageHandle.
  14677. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14678. Removed try-catch block.
  14679. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14680. * src/HttpProxyResponseCommand.cc
  14681. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14682. * src/FtpTunnelResponseCommand.h
  14683. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14684. * src/HttpConnection.cc
  14685. (HttpConnection): Replaced Socket with SocketHandle.
  14686. * src/PeerAbstractCommand.cc
  14687. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14688. (~PeerAbstractCommand): Removed the deallocation of socket.
  14689. Use disableReadCheckSocket, disableWriteCheckSocket.
  14690. (disableReadCheckSocket): New function.
  14691. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14692. (disableWriteCheckSocket): New function.
  14693. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14694. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14695. * src/FtpTunnelRequestCommand.cc
  14696. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14697. (~FtpTunnelRequestCommand): Corrected indentation.
  14698. * src/DownloadCommand.h
  14699. (DownloadCommand): Replaced Socket with SocketHandle.
  14700. * src/PeerListenCommand.cc
  14701. (PeerListenCommand): Removed the initialization of socket.
  14702. (~PeerListenCommand): Removed the deallocation of socket.
  14703. (bindPort): Use SocketHandle.
  14704. (execute): Use SocketHandle and PeerHandle.
  14705. * src/FtpDowndloadCommand.cc
  14706. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14707. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14708. * src/main.cc
  14709. (main): Corrected indentation.
  14710. * src/HttpInitiateConnectionCommand.cc
  14711. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14712. (executeInternal): Removed the allocation of socket.
  14713. * src/HttpRequestCommand.h
  14714. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14715. * src/FtpNegotiationCommand.h
  14716. (dataSocket): Changed its type to SocketHandle.
  14717. (serverSocket): Changed its type to SocketHandle.
  14718. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14719. * src/TorrentMan.h
  14720. (MAX_PEER_UPDATE): Removed.
  14721. (MAX_PEERS): New definition.
  14722. (Peers): The element is now of type PeerHandle.
  14723. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14724. (getPeer): Replaced Peer with PeerHandle.
  14725. (deleteOldErrorPeers): Removed.
  14726. (deleteErrorPeer): New function.
  14727. (hasMissingPiece): Replaced Peer with PeerHandle.
  14728. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14729. (getMissingPiece): Replaced Peer with PeerHandle.
  14730. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14731. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14732. (addActivePeer): Replaced Peer with PeerHandle.
  14733. (deleteActivePeer): Replaced Peer with PeerHandle.
  14734. Added a check for the return value of find.
  14735. * src/FtpTunnelResponseCommand.cc
  14736. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14737. * src/FtpInitiateConnectionCommand.cc
  14738. (executeInternal): Removed the allocation of socket.
  14739. * src/DownloadEngine.h
  14740. (Sockets): An element is now of type SocketHandle.
  14741. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14742. (CommandUuids): New type definition.
  14743. (rsockets): Changed its type to SockCmdMap.
  14744. (wsockets): Changed its type to SockCmdMap.
  14745. (addSocket): Rewritten.
  14746. (deleteSocket): Rewritten.
  14747. (addSocketForReadCheck): Rewritten.
  14748. (deleteSocketForReadCheck): Rewritten.
  14749. (addSocketForWriteCheck): Rewritten.
  14750. (deleteSocketForWriteCheck): Rewritten.
  14751. (PairFind): New template class.
  14752. * src/HttpDownloadCommand.h
  14753. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14754. * src/FtpConnection.cc
  14755. (FtpConnection): Replaced Socket with SocketHandle.
  14756. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14757. block.
  14758. * src/InitiateConnectionCommandFactory.cc
  14759. (DlAbortEx.h): Included DlAbortEx.h.
  14760. (createInitiateConnectionCommand): Throw exception if the protocol of
  14761. requested URI is not supported.
  14762. * src/Peer.cc
  14763. (nullPeer): Changed its type to PeerHandle.
  14764. (operator==): New function.
  14765. (operator!=): New function.
  14766. * src/Peer.h
  14767. (SharedHandle.h): Included SharedHandle.h.
  14768. (operator==): New function.
  14769. (operator!=): New function.
  14770. (Peer): Added the default constructor.
  14771. Use resetStatus() to initialize member variables.
  14772. (nullPeer): Removed.
  14773. * src/TrackerUpdateCommand.cc
  14774. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14775. with MIN_PEERS.
  14776. * src/PeerListenCommand.h
  14777. (socket): Changed its type to SocketHandle.
  14778. * src/Command.h
  14779. (CommandUuid): New type definition.
  14780. (uuid): New variable.
  14781. (uuidGen): New variable.
  14782. (Command): Added the initialization of uuid.
  14783. (getUuid): New function.
  14784. * src/Socket.h
  14785. (Socket): Removed.
  14786. (SocketHandle): New type definition.
  14787. * src/DownloadEngine.h
  14788. (FindCommand): New function object.
  14789. (run): The portion of socket check was rewritten.
  14790. (SetDescriptor): New function object.
  14791. (AccumulateActiveCommandUuid): New function object.
  14792. (waitData): Rewritten.
  14793. (addSocket): Rewritten.
  14794. (deleteSocket): Rewritten.
  14795. (addSocketForReadCheck): Rewritten.
  14796. (addSocketForWriteCheck): Rewritten.
  14797. (deleteSocketForReadCheck): Rewritten.
  14798. (deleteSocketForWriteCheck): Rewritten.
  14799. * src/HttpProxyResponseCommand.h
  14800. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14801. * src/HttpConnection.h
  14802. (socket): Changed its type to SocketHandle.
  14803. (HttpConnection): Replaced Socket with SocketHandle.
  14804. * src/PeerInitiateConnectionCommand.cc
  14805. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14806. (executeInternal): Removed the allocation of socket.
  14807. (prepareForNextPeer): Use PeerHandle.
  14808. * src/PeerMessage.h
  14809. (peer): Changed its type to PeerHandle.
  14810. (getPeer): Replaced Peer with PeerHandle.
  14811. (setPeer): Replaced Peer with PeerHandle.
  14812. * src/DownloadCommand.cc
  14813. (DownloadCommand): Replaced Socket with SocketHandle.
  14814. * src/FtpConnection.h
  14815. (socket): Changed its type to SocketHandle.
  14816. (FtpConnection): Replaced Socket with SocketHandle.
  14817. (sendPort); Replaced Socket with SocketHandle.
  14818. * src/FtpDowndloadCommand.h
  14819. (ctrlSocket): Changed its type to SocketHandle.
  14820. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14821. * src/HttpProxyRequestCommand.cc
  14822. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14823. * src/FtpTunnelRequestCommand.h
  14824. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14825. etc
  14826. * src/PeerChokeCommand.h
  14827. (setAllPeerChoked): Removed.
  14828. (setAllPeerResetDelta): Removed.
  14829. * src/PeerChokeCommand.cc
  14830. (setAllPeerChoked): Removed.
  14831. (ChokePeer): New function object.
  14832. (setAllPeerResetDelta): Removed.
  14833. (ResetDelta): New function object.
  14834. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14835. (execute): Show download speed when the local node is a seeder.
  14836. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14837. using STL.
  14838. * src/TrackerWatcherCommand.h
  14839. (MIN_PEERS): Removed.
  14840. * src/TorrentMan.cc
  14841. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14842. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14843. To fix the bug that .aria2 file is not saved if downloading is stopped
  14844. by the errors:it results that aria2 can not resume downloading:
  14845. * src/main.cc
  14846. (normalDownload): Added the call to save().
  14847. (main): Added the deletion of the elements in 'reserved'.
  14848. To fix log:
  14849. * src/PeerInteraction.cc
  14850. (receiveHandshake): Fixed log.
  14851. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14852. To improve download performance in BitTorrent:
  14853. * src/TorrentMan.cc
  14854. (getPeer): Check the number of connections. Return nullPeer if
  14855. it is greater than MAX_PEER_UPDATE.
  14856. This code was originally here, but was removed in 0.5.1.
  14857. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14858. To improve the conditional compilation:
  14859. * src/MultiDiskWriter.h:
  14860. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14861. * src/MultiDiskWriter.cc:
  14862. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14863. * src/Util.h:
  14864. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14865. Added ENABLE_BITTORRENT around computeFastSet().
  14866. * src/Util.cc:
  14867. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14868. Added ENABLE_BITTORRENT around computeFastSet().
  14869. * src/messageDigest.h:
  14870. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14871. * src/ShaVisitor.h:
  14872. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14873. * src/ShaVisitor.cc:
  14874. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14875. * src/main.cc:
  14876. Added ENABLE_BITTORRENT around includes and blocks related to
  14877. BitTorrent.
  14878. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14879. digest support is not available.
  14880. * src/AbstractDiskWriter.h:
  14881. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14882. * src/AbstractDiskWriter.cc:
  14883. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14884. * src/MetalinkEntry.cc
  14885. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14886. support is not available.
  14887. To add command-line options for Metalink:
  14888. * src/main.cc:
  14889. Added metalink-version, metalink-language, metalink-os,
  14890. follow-metalink.
  14891. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14892. * src/main.cc: Use these definition.
  14893. * Release 0.6.0
  14894. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14895. To add Metalink support(http/ftp only):
  14896. * src/AbstractCommand.h
  14897. (tryReserved): New function.
  14898. * src/AbstractCommand.cc
  14899. (execute): Call tryReserved().
  14900. (tryReserved): New function.
  14901. * src/Request.h
  14902. (Requests): New type definition.
  14903. * src/SegmentMan.h
  14904. (reserved): New variable.
  14905. * src/Util.h
  14906. (fileChecksum): New function.
  14907. (toUpper): New function.
  14908. (toLower): New function.
  14909. * src/Util.cc
  14910. (messageDigest.h): Included.
  14911. (trim): Trim \r\n\t.
  14912. (fileChecksum): New function.
  14913. (toUpper): New function.
  14914. (toLower): New function.
  14915. * src/main.cc
  14916. (normalDownload): New function.
  14917. (main): Added 2 command-line options: metalink-file,
  14918. metalink-connection. Their usage has not been written yet.
  14919. * src/MetalinkProcessor.h: New class.
  14920. * src/Xml2MetalinkProcessor.h: New class.
  14921. * src/Xml2MetalinkProcessor.cc: New class.
  14922. * src/MetalinkEntry.h: New class.
  14923. * src/MetalinkEntry.cc: New class.
  14924. * src/MetalinkResource.h: New class.
  14925. * src/MetalinkResource.cc: New class.
  14926. To add md5 message digest checking:
  14927. * src/messageDigest.h: Rewritten.
  14928. * src/MultiDiskWriter.cc: Updated according to the changes in
  14929. messageDigest.h.
  14930. * src/ShaVisitor.cc: Updated according to the changes in
  14931. messageDigest.h.
  14932. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14933. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14934. messageDigest.h.
  14935. To fix a bug that causes segfault when the payload length in peer
  14936. message is less than 0:
  14937. * src/PeerConnection.cc:
  14938. (receiveMessage): Fixed the bug.
  14939. * src/PeerMessageUtil.cc
  14940. (checkLength): Throw an exception if length is less than or equals to
  14941. 0.
  14942. To add new interfaces to Base64 encoding/decoding:
  14943. * src/Base64.h
  14944. (part_encode): Changed the method signature.
  14945. (encode): New function(overload).
  14946. (decode): New function(overload).
  14947. * src/Base64.cc
  14948. (part_encode): Rewritten.
  14949. (encode): Rewritten.
  14950. (encode): New function(overload).
  14951. To prevent a peer to download same piece if there is an error in
  14952. checksum:
  14953. * src/PieceMessage.cc
  14954. (receivedAction): Call peerInteraction->abortPiece().
  14955. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14956. To fix the bug that causes same have message is sent many times to
  14957. a single peer.
  14958. * src/Time.cc
  14959. (isNewer): Use Util::difftv().
  14960. * src/Util.cc
  14961. (difftv): Added a cast to (long long int).
  14962. * src/TorrentMan.cc
  14963. (advertisePiece): Use push_front.
  14964. (getAdvertisedPieceIndexes): A performance improvement was made.
  14965. To fix the bug that sends tracker requests without a sleep interval
  14966. when the number of connections is less than 15.
  14967. * src/TrackerWatcherCommand.cc
  14968. (execute): Now the number of connections is not a factor to decide
  14969. whether or not a tracker request should be sent or not.
  14970. * src/Time.h
  14971. (setTimeInSec): New function.
  14972. * src/Time.cc
  14973. (setTimeInSec): New function.
  14974. etc.
  14975. * src/ChokeMessage.cc
  14976. (receivedAction): Removed peer->snubbing = false
  14977. * src/PeerConnection.h
  14978. (receiveHandshake): Updated doc.
  14979. * src/TorrentMan.h
  14980. (getAdvertisedPieceIndexes): Updated the method signature.
  14981. * src/TorrentMan.cc
  14982. (getAdvertisedPieceIndexes): Updated the method signature.
  14983. * src/Time.h
  14984. (getTimeInMicros): Added a cast to (long long int).
  14985. (getTimeInMillis): Added a cast to (long long int).
  14986. * Release 0.5.2
  14987. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14988. To make a listening socket non-block:
  14989. * src/SocketCore.h
  14990. (setNonBlockingMode): New function.
  14991. * src/SocketCore.cc
  14992. (setNonBlockingMode): New function.
  14993. (beginListen): Added a call to setNonBlockingMode().
  14994. (acceptConnection): Call setNonBlockingMode().
  14995. (setBlockingMode): Updated.
  14996. To handle tracker's NAT-checking:
  14997. * src/PeerConnection.cc
  14998. (receiveHandshake): 'msg' param is filled with received data and
  14999. its length is assigned to 'length' param, even if all handshake
  15000. message is not yet received.
  15001. * src/PeerInteractionCommand.cc
  15002. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15003. a new peer connects to localhost.
  15004. A call to peerInteraction->sendHandshake() was removed because
  15005. it is called from peerInteraction->receiveHandshake(true).
  15006. * src/PeerInteraction.h
  15007. (quickReplied): New variable.
  15008. (receiveHandshake): Added an argument.
  15009. * src/PeerInteraction.cc
  15010. (PeerInteraction): Added the initialization of quickReplied.
  15011. (receiveHandshake): Send handshake message as soon as the info hash
  15012. in a handshake message from a peer is correct.
  15013. To change the random part of peer id and key parameter:
  15014. * src/TorrentMan.h
  15015. (key): New variable.
  15016. * src/TorrentMan.cc
  15017. (setupInternal1): Use Util::randomAlpha() to generate random part
  15018. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15019. key is also generated by Util::randomAlpha() and it is now 8 character
  15020. long.
  15021. * src/Util.h
  15022. (randomAlpha): New function.
  15023. * src/Util.cc
  15024. (randomAlpha): New function.
  15025. * src/TrackerWatcherCommand.cc
  15026. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15027. Added no_peer_id=1.
  15028. Set snubbing flag to false when a choke message is received from a
  15029. snubbed peer.
  15030. * src/ChokeMessage.cc
  15031. (receivedAction): Set snubbing flag to false.
  15032. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15033. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15034. * src/SimpleLogger.h (writeHeader): New function.
  15035. * src/SimpleLogger.cc (writeHeader): New function.
  15036. (writeLog): Fixed the bug that causes segfaults if exception message
  15037. contains an unescaped "%" character.
  15038. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15039. when a tracker request fails.
  15040. * src/Request.cc (parseUrl): Query string is now handled properly.
  15041. * Release 0.5.1
  15042. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15043. To add Time class which represents a specific instant in time and
  15044. its precision is microseconds. Time checking procedures were rewritten
  15045. using this object.
  15046. * src/Time.h: New class.
  15047. * src/Time.cc: New class.
  15048. * src/AbstractCommand.h
  15049. (updateCheckPoint): Removed.
  15050. (isTimeoutDetected): Removed.
  15051. (checkPoint): Changed the type to Time.
  15052. (timeout): New variable.
  15053. (setTimeout): New function.
  15054. * src/AbstractCommand.cc
  15055. (AbstractCommand): Removed the initialization of checkPoint.
  15056. Added the initialization of timeout.
  15057. (updateCheckPoint): Removed.
  15058. (isTimeoutDetected): Removed.
  15059. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15060. * src/PeerChokeCommand.h
  15061. (checkPoint): Changed the type to Time.
  15062. * src/PeerChokeCommand.cc
  15063. (PeerChokeCommand): Removed the initialization of checkPoint.
  15064. (execute): Rewritten using Time object.
  15065. * src/TrackerWatcherCommand.h
  15066. (checkPoint): Changed the type to Time.
  15067. * src/TrackerWatcherCommand.cc
  15068. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15069. (execute): Rewritten.
  15070. * src/ConsoleDownloadEngine.h
  15071. (cp): Changed the type to Time.
  15072. (startup): Changed the type to Time.
  15073. * src/ConsoleDownloadEngine.cc
  15074. (initStatistics): Use cp.reset(), startup.reset().
  15075. (calculateStatistics): Rewritten using Time object.
  15076. * src/PeerAbstractCommand.h
  15077. (updateCheckPoint): Removed.
  15078. (isTimeoutDetected): Removed.
  15079. (checkPoint): Changed the type to Time.
  15080. * src/PeerAbstractCommand.cc
  15081. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15082. (updateCheckPoint): Removed.
  15083. (isTimeoutDetected): Removed.
  15084. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15085. * src/PeerInteractionCommand.cc
  15086. (PeerInteractionCommand): Removed the initializations of struct
  15087. timeval variables.
  15088. * src/PeerInteractionCommand.h
  15089. (keepAliveCheckPoint): Changed the type to Time.
  15090. (chokeCheckPoint): Changed the type to Time.
  15091. (freqCheckPoint): Changed the type to Time.
  15092. (haveCheckTime): Changed the type to Time.
  15093. * src/PeerInteractionCommand.cc
  15094. (executeInternal): Rewritten using Time object.
  15095. (detectMessageFlooding): Rewritten using Time object.
  15096. (checkLongTimePeerChoking): Rewritten using Time object.
  15097. (sendKeepAlive): Rewritten using Time object.
  15098. (checkHave): Rewritten using Time object.
  15099. * src/SleepCommand.h
  15100. (checkPoint): Changed the type to Time.
  15101. * src/SleepCommand.cc
  15102. (SleepCommand): Removed the initialization of checkPoint.
  15103. (execute): Rewritten using Time object.
  15104. * src/TorrentAutoSaveCommand.h
  15105. (checkPoint): Changed the type to Time.
  15106. * src/TorrentAutoSaveCommand.cc
  15107. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15108. (execute): Rewritten.
  15109. * src/DownloadCommand.h
  15110. (sw): Changed the type to Time.
  15111. * src/DownloadCommand.cc
  15112. (DownloadCommand): Removed the initialization of sw.
  15113. (executeInternal): Rewritten.
  15114. * src/RequestSlot.h
  15115. (dispatchedTime): Changed the type to Time.
  15116. * src/RequestSlot.cc
  15117. (RequestSlot): Removed the call to setDispatchedTime().
  15118. (setDispatchedTime): Rewirtten.
  15119. (isTimeout): Rewritten.
  15120. (getLatencyInMillis): Rewritten.
  15121. * src/TorrentDownloadEngine.h
  15122. (cp): Changed the type to Time[2].
  15123. (startup): Changed the type to Time.
  15124. * src/TorrentDownloadEngine.cc
  15125. (initStatistics): Rewritten.
  15126. (calculateStatistics): Rewritten.
  15127. * src/DownloadEngine.cc
  15128. (run): Rewritten.
  15129. To detect all attempts to connect to the tracker are failed:
  15130. * src/AbstractCommand.cc
  15131. (execute): Increment e->segmentMan->errors if a command aborted.
  15132. * src/SegmentMan.h
  15133. (errors): New variable.
  15134. * src/SegmentMan.cc
  15135. (SegmentMan): Added the initialization of errors.
  15136. (init): Added the initialization of errors.
  15137. * src/TrackerWatcherCommand.cc
  15138. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15139. request was failed.
  15140. To handle snubbed peers:
  15141. * src/PeerChokeCommand.cc
  15142. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15143. (execute): Snubbed peers don't get unchoked.
  15144. * src/PeerInteraction.h
  15145. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15146. * src/PeerInteraction.cc
  15147. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15148. back the requested 16k block in 60 seconds.
  15149. * src/PieceMessage.cc
  15150. (receivedAction): A peer's snubbed state is cleard if it sends
  15151. the requested 16k block in 60 seconds.
  15152. * src/Peer.h
  15153. (snubbing): New variable.
  15154. * src/Peer.cc
  15155. (resetStatus): Added snubbed = false.
  15156. To fix the bug that causes have message is not sent:
  15157. * src/PeerInteractionCommand.cc
  15158. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15159. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15160. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15161. * src/TorrentMan.h
  15162. (HaveEntry): New class.
  15163. (advertisePiece): Rewritten.
  15164. (getAdvertisedPieceIndexes): Rewritten.
  15165. (Haves): Changed the type.
  15166. (getAdvertisedPieceIndexes): Added an argument.
  15167. Others:
  15168. * src/TorrentMan.h
  15169. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15170. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15171. * src/TorrentMan.cc
  15172. (getPeer): Don't check the number of connections here.
  15173. (setupInternal1): Changed peerId.
  15174. * src/PeerInteractionCommand.h
  15175. (KEEP_ALIVE_INTERVAL): New definition.
  15176. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15177. * src/main.cc
  15178. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15179. * src/DownloadEngine.h: Removed unnecessary header includes.
  15180. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15181. To fix the bug that causes segfaults if a tracker returns a zero-length
  15182. list as "peers":
  15183. * src/TrackerUpdateCommand.cc
  15184. (execute): Added a check to see wether the type of peers is Data*.
  15185. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15186. * Release 0.5.0
  15187. To fix compile issue with gcc3:
  15188. * src/CancelMessage.h
  15189. (ID): Renamed as ID_t
  15190. (ID_t): New enum.
  15191. * src/RejectMessage.h
  15192. (ID): Renamed as ID_t
  15193. (ID_t): New enum.
  15194. * src/SuggestPieceMessage.h
  15195. (ID): Renamed as ID_t
  15196. (ID_t): New enum.
  15197. * src/AllowedFastMessage.h
  15198. (ID): Renamed as ID_t
  15199. (ID_t): New enum.
  15200. * src/PortMessage.h
  15201. (ID): Renamed as ID_t
  15202. (ID_t): New enum.
  15203. * src/HaveNoneMessage.h
  15204. (ID): Renamed as ID_t
  15205. (ID_t): New enum.
  15206. * src/KeepAliveMessage.h
  15207. (ID): Renamed as ID_t
  15208. (ID_t): New enum.
  15209. * src/HaveAllMessage.h
  15210. (ID): Renamed as ID_t
  15211. (ID_t): New enum.
  15212. * src/UnchokeMessage.h
  15213. (ID): Renamed as ID_t
  15214. (ID_t): New enum.
  15215. * src/BitfieldMessage.h
  15216. (ID): Renamed as ID_t
  15217. (ID_t): New enum.
  15218. * src/PieceMessage.h
  15219. (ID): Renamed as ID_t
  15220. (ID_t): New enum.
  15221. * src/RequestMessage.h
  15222. (ID): Renamed as ID_t
  15223. (ID_t): New enum.
  15224. * src/NotInterestedMessage.h
  15225. (ID): Renamed as ID_t
  15226. (ID_t): New enum.
  15227. * src/ChokeMessage.h
  15228. (ID): Renamed as ID_t
  15229. (ID_t): New enum.
  15230. * src/InterestedMessage.h
  15231. (ID): Renamed as ID_t
  15232. (ID_t): New enum.
  15233. * src/HaveMessage.h
  15234. (ID): Renamed as ID_t
  15235. (ID_t): New enum.
  15236. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15237. * src/PeerAbstractCommand.h
  15238. (beforeSocketCheck): Removed.
  15239. * src/PeerAbstractCommand.cc
  15240. Modified in order to call executeInternal() even if socket check
  15241. and upload limit check fail.
  15242. * src/PeerInteractionCommand.h
  15243. (keepAlive): Removed.
  15244. (sendKeepAlive): New function.
  15245. (checkHave): New function.
  15246. (beforeSocketCheck): Removed.
  15247. * src/PeerInteractionCommand.cc
  15248. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15249. calls to checkHave() and sendKeepAlive().
  15250. (keepAlive): Renamed to sendKeepAlive().
  15251. (sendKeepAlive): New function.
  15252. (beforeSocketCheck): Removed.
  15253. (checkHave): New function.
  15254. * src/BitfieldMan.cc
  15255. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15256. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15257. 0.
  15258. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15259. * src/TorrentMan.h
  15260. (UsedPieces): Removed.
  15261. (Pieces): New type definition.
  15262. * src/Piece.h: Updated doc.
  15263. * src/Peer.h
  15264. (totalLength): Removed.
  15265. * src/Peer.cc
  15266. (updateLatency): Fixed the latency calculation.
  15267. * src/TorrentMan.cc
  15268. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15269. than or equal to MAX_PEER_LIST_SIZE.
  15270. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15271. then return false.
  15272. (deleteOldErrorPeers): Rewritten.
  15273. (deleteUsedPiece): Fixed the miss use of STL remove.
  15274. * src/PeerInteraction.h
  15275. (Pieces): Removed.
  15276. (deleteTimeoutRequestSlot): Removed.
  15277. (deleteCompletedRequestSlot): Removed.
  15278. (checkRequestSlot): New function.
  15279. * src/PeerInteraction.cc
  15280. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15281. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15282. (checkRequestSlot): New function.
  15283. * src/DownloadEngine.cc
  15284. (run): Clear activeSockets before calling waitData().
  15285. (waitData): Removed a call to activeSockets.clear().
  15286. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15287. To attempt to handle EINTR:
  15288. * src/SocketCore.cc
  15289. (isReadable): Added EINTR handling.
  15290. (isWritable): Added EINTR handling.
  15291. To improve the performance:
  15292. * src/AbstractCommand.cc
  15293. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15294. * src/PeerInteractionCommand.h
  15295. (receiveMessage): Renamed as receiveMessages().
  15296. (receiveMessages): New function.
  15297. * src/PeerInteractionCommand.cc
  15298. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15299. () function. detectMessageFlooding() is moved here.
  15300. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15301. (). The flooding detection for have message is comment out.
  15302. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15303. Util::difftv().
  15304. (receiveMessage): Renamed as receiveMessages().
  15305. (receiveMessages): New function.
  15306. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15307. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15308. * src/SleepCommand.cc
  15309. (execute): Use Util::difftvsec() instead of Util::difftv().
  15310. * src/BitfieldMan.h
  15311. (getNthBitIndex): New function.
  15312. (hasMissingPiece): New function.
  15313. (getAllMissingIndexes): New function.
  15314. * src/BitfieldMan.cc
  15315. (countSetBit): Rewritten.
  15316. (getNthBitIndex): New function.
  15317. (getMissingIndexRandomly): Rewritten.
  15318. (hasMissingPiece): New function.
  15319. (getAllMissingIndexes): New function.
  15320. * src/TorrentMan.cc
  15321. (hasMissingPiece): New function.
  15322. (deleteUsedPiece): Rewritten using STL.
  15323. * src/PeerInteraction.cc
  15324. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15325. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15326. (addRequests): Updated the number of pending requests.
  15327. * src/PeerAbstractCommand.cc
  15328. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15329. (execute): Returns true if TorrentMan::isHalt() is true.
  15330. Corrected the condition of upload limit checking.
  15331. * src/Util.h
  15332. (countBit): New function.
  15333. * src/Util.cc
  15334. (nbits): New variable.
  15335. (countBit): New function.
  15336. * src/DownloadEngine.h
  15337. (SockCmdMap): New type definition.
  15338. (waitData): Added an argument.
  15339. (addSocket): Added an argument.
  15340. (addSocketForReadCheck): Added an argument.
  15341. (addSocketForWriteCheck): Added an argument.
  15342. * src/DownloadEngine.cc
  15343. (run): Executes only commands whose sockets are ready to read or write.
  15344. All commands are executed in every 1 second.
  15345. (waitData): Calls select() again if it returned
  15346. EINTR.
  15347. (addSocket): Saves socket and command object pair to the map.
  15348. (deleteSocket): Deletes socket and command object pair from the map.
  15349. (addSocketForReadCheck): Added an argument.
  15350. (addSocketForWriteCheck): Added an argument.
  15351. * src/DownloadCommand.cc
  15352. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15353. To send "event=stopped" to the tracker when the application finishes:
  15354. * src/PeerChokeCommand.h
  15355. (checkPoint): New variable.
  15356. * src/PeerChokeCommand.cc
  15357. (PeerChokeCommand): Added the initialization of checkPoint.
  15358. (execute): The interval check is now done by checkPoint, not
  15359. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15360. * src/TorrentMan.h
  15361. (halt): New function.
  15362. (hasMissingPiece): New function.
  15363. (isHalt): New function.
  15364. (setHalt): New function.
  15365. * src/TorrentMan.cc
  15366. (TorrentMan): Added the initialization of halt.
  15367. * src/TorrentAutoSaveCommand.h
  15368. (checkPoint): New variable.
  15369. * src/PeerListenCommand.cc
  15370. (execute): Returns true if TorrentMan::isHalt() is true.
  15371. * src/main.cc
  15372. (setSignalHander): Added flags argument.
  15373. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15374. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15375. Removed printDownloadAbortMessage() after torrent downloading loop.
  15376. * src/TorrentAutoSaveCommand.cc
  15377. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15378. (execute): Returns true if TorrentMan::isHalt() is true.
  15379. The interval check is now done by checkPoint, not SleepCommand.
  15380. * src/TrackerWatcherCommand.cc
  15381. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15382. event=stopped.
  15383. * src/TrackerUpdateCommand.cc
  15384. (prepareForRetry): Do not use SleepCommand here.
  15385. (execute): Returns true if TorrentMan::isHalt() is true.
  15386. Others:
  15387. * src/TorrentMan.cc
  15388. (getMissingPieceIndex): Updated log message.
  15389. * src/PeerInteraction.cc
  15390. (createPeerMessag): Updated log message.
  15391. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15392. To add the ability to download several pieces in mix in a command and
  15393. increase the number of request slots according to request-cancel
  15394. latency:
  15395. * src/PeerInteractionCommand.cc
  15396. (executeInternal): The number of messages to be received at a time
  15397. is increased from 10 to 50.
  15398. * src/LogFactory
  15399. (getInstance): Added NullLogger.
  15400. * src/NullLogger.h: New class.
  15401. * src/BitfieldMan.h
  15402. (getMissingIndex): New function.
  15403. * src/BitfieldMan.cc
  15404. (getMissingIndex): New function.
  15405. * src/TorrentMan.h
  15406. (checkOutPiece): New function.
  15407. (getMissingPieceIndex): New function.
  15408. (getMissingFastPieceIndex): New function.
  15409. (getMissingFastPiece): New function.
  15410. * src/TorrentMan.cc
  15411. (updatePiece): Rewritten using STL.
  15412. (syncPiece): Rewritten using STL.
  15413. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15414. checkOutPiece().
  15415. (getMissingPieceIndex): New function.
  15416. (getMissingFastPieceIndex): New function.
  15417. (getMissingFastPiece): New function.
  15418. (checkOutPiece): New function.
  15419. * src/PeerInteraction.h
  15420. (Pieces): New type definition.
  15421. (piece): Removed.
  15422. (pieces): New variable.
  15423. (getNewPieceAndSendInterest): Added the "piece" argument.
  15424. (abortPiece): Added the "piece" argument.
  15425. (abortAllPieces): New function.
  15426. (isInRequestSlot): New function.
  15427. (hasDownloadPiece): Added the "index" argument.
  15428. (setDownloadPiece): Removed.
  15429. (getDownloadPiece): Added the "index" argument.
  15430. (updatePiece): New function.
  15431. (createRequestMessage): Added the "index" argument.
  15432. * src/PeerInteraction.cc
  15433. (onChoked): Rewritten.
  15434. (abortPiece): Rewirtten.
  15435. (abortAllPieces): New function.
  15436. (deleteTimeoutRequestSlot): Rewritten.
  15437. Clarified code a little bit.
  15438. (deleteCompletedRequestSlot): Rewritten.
  15439. (isInRequestSlot): New function.
  15440. (syncPiece): Rewritten.
  15441. (updatePiece): New function.
  15442. (getNewPieceAndSendInterest): Rewritten.
  15443. (addRequests): Rewritten.
  15444. (getDownloadPiece): Rewritten.
  15445. (hasDownloadPiece): Rewritten.
  15446. (createRequestMessage): Added the "index" argument.
  15447. * src/common.h
  15448. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15449. (DIV_FLOOR): New definition.
  15450. * src/PieceMessage.cc
  15451. (receivedAction): Update request-piece latency here.
  15452. * src/RequestSlot.h
  15453. (getLatencyInMillis): New function.
  15454. * src/RequestSlot.cc
  15455. (isTimeout): Rewritten using getLatencyInMillis.
  15456. (getLatencyInMillis): New function.
  15457. * src/Piece.h
  15458. (operator==): New function.
  15459. (getMissingBlockIndex): New function.
  15460. * src/Piece.cc
  15461. (operator==): New function.
  15462. (getMissingBlockIndex): New function.
  15463. * src/Peer.h
  15464. (DEFAULT_LATENCY): New definition.
  15465. (latency): New variable.
  15466. (updateLatency): New function.
  15467. (getLatency): New function.
  15468. * src/Peer.cc
  15469. (resetStatus): Reset latecy.
  15470. (updateLatency): New function.
  15471. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15472. * src/SocketCore.cc
  15473. (isReadable): Added secure to the condition.
  15474. * src/HttpConnection.cc
  15475. (receiveResponse): Fixed a bug that causes no response header
  15476. exception.
  15477. * src/Peer.h
  15478. (getFastSet): Fixed the return value type.
  15479. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15480. To remove a wait from download loop:
  15481. * src/DownloadEngine.cc
  15482. (run): Comment out shortSleep.
  15483. To rewrite the message handling:
  15484. * src/SimplePeerMessage.h: New class.
  15485. * src/SimplePeerMessage.cc: New class.
  15486. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15487. (msg): New variable.
  15488. (create): New function.
  15489. (send): Removed.
  15490. (getMessage): New function.
  15491. (getMessageLength): New function.
  15492. * src/CancelMessage.cc
  15493. (create): New function.
  15494. (receivedAction): Replaced deleteRequestMessageInQueue with
  15495. rejectPieceMessageInQueue.
  15496. (send): Removed.
  15497. (getMessage): New function.
  15498. (getMessageLength): New function.
  15499. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15500. (msg): New variable.
  15501. (msgLength): New variable.
  15502. (~BitfieldMessage): Deleted msg.
  15503. (send): Removed.
  15504. (getMessage): New function.
  15505. (getMessageLength): New function.
  15506. * src/BitfieldMessage.cc
  15507. (create): New function.
  15508. (send): Removed.
  15509. (getMessage): New function.
  15510. (getMessageLength): New function.
  15511. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15512. (msg): New variable.
  15513. (sendPredicate): New function.
  15514. (onSendComplete): New function.
  15515. (send): Removed.
  15516. (getMessage): New function.
  15517. (getMessageLength): New function.
  15518. (create): New function.
  15519. * src/ChokeMessage.cc
  15520. (create): New function.
  15521. (send): Removed.
  15522. (sendPredicate): New function.
  15523. (getMessage): New function.
  15524. (getMessageLength): New function.
  15525. (onSendComplete): New function.
  15526. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15527. (msg): New variable.
  15528. (send): Removed.
  15529. (getMessage): New function.
  15530. (getMessageLength): New function.
  15531. * src/KeepAliveMessage.cc
  15532. (send): Removed.
  15533. (getMessage): New function.
  15534. (getMessageLength): New function.
  15535. * src/PortMessage.h
  15536. (create): New function.
  15537. (receivedAction): Updated log message.
  15538. * src/PortMessage.cc: New file.
  15539. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15540. (msg): New variable.
  15541. (sendPredicate): New function.
  15542. (onSendComplete): New function.
  15543. (create): New function.
  15544. (send): Removed.
  15545. (getMessage): New function.
  15546. (getMessageLength): New function.
  15547. * src/UnchokeMessage.cc
  15548. (create): New function.
  15549. (send): Removed.
  15550. (sendPredicate): New function.
  15551. (getMessage): New function.
  15552. (getMessageLength): New function.
  15553. (onSendComplete): New function.
  15554. * src/PieceMessage.h
  15555. (leftPieceDataLength): Removed.
  15556. (leftDataLength): New variable.
  15557. (headerSend): New variable.
  15558. (pendingCount): New variable.
  15559. (msgHeader): New variable.
  15560. (sendPieceData): New function.
  15561. (incrementPendingCount): New function.
  15562. (isPendingCountMax): New function.
  15563. (create): New function.
  15564. (getMessageHeader): New function.
  15565. (getMessageHeaderLength): New function.
  15566. * src/PieceMessage.cc
  15567. (create): New function.
  15568. (getMessageHeader): New function.
  15569. (getMessageHeaderLength): New function.
  15570. (send): Rewritten.
  15571. (sendPieceData): New function.
  15572. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15573. (msg): New variable.
  15574. (create): New function.
  15575. (getMessage): New function.
  15576. (getMessageLength): New function.
  15577. * src/HaveMessage.cc
  15578. (create): New function.
  15579. (send): Removed.
  15580. (sendPieceData): New function.
  15581. (getMessage): New function.
  15582. (getMessageLength): New function.
  15583. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15584. (msg): New variable.
  15585. (create): New function.
  15586. (send): Removed.
  15587. (getMessage): New function.
  15588. (getMessageLength): New function.
  15589. * src/RequestMessage.cc
  15590. (create): New function.
  15591. (receivedAction): Added the handling of fast extension.
  15592. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15593. (send): Removed.
  15594. (getMessage): New function.
  15595. (getMessageLength): New function.
  15596. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15597. (msg): New variable.
  15598. (sendPredicate): New function.
  15599. (onSendComplete): New function.
  15600. (create): New function.
  15601. (getMessage): New function.
  15602. (getMessageLength): New function.
  15603. * src/InterestedMessage.cc
  15604. (create): New function.
  15605. (send): Removed.
  15606. (sendPieceData): New function.
  15607. (getMessage): New function.
  15608. (getMessageLength): New function.
  15609. (onSendComplete): New function.
  15610. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15611. (msg): New variable.
  15612. (sendPieceData): New function.
  15613. (onSendComplete): New function.
  15614. (create): New function.
  15615. (send): Removed.
  15616. (getMessage): New function.
  15617. (getMessageLength): New function.
  15618. * src/NotInterestedMessage.cc
  15619. (create): New function.
  15620. (send): Removed.
  15621. (sendPredicate): New function.
  15622. (getMessage): New function.
  15623. (getMessageLength): New function.
  15624. (onSendComplete): New function.
  15625. * src/AllowedFastMessage.h: New class.
  15626. * src/AllowedFastMessage.cc: New class.
  15627. * src/RejectMessage.h: New class.
  15628. * src/RejectMessage.cc: New class.
  15629. * src/SuggestPieceMessage.h: New class.
  15630. * src/SuggestPieceMessage.cc: New class.
  15631. * src/HaveAllMessage.h: New class.
  15632. * src/HaveAllMessage.cc: New class.
  15633. * src/HaveNoneMessage.h: New class.
  15634. * src/HaveNoneMessage.cc: New class.
  15635. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15636. (msg): New variable.
  15637. (reserved): New variable.
  15638. (create): New function.
  15639. (getId): New function.
  15640. (receivedAction): New function.
  15641. (getMessage): New function.
  15642. (getMessageLength): New function.
  15643. (isFastExtensionSupported): New function.
  15644. * src/HandshakeMessage.cc
  15645. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15646. (create): New function.
  15647. (getMessage): New function.
  15648. (getMessageLength): New function.
  15649. (toString): Added the output of reserved field.
  15650. (check): Added const qualifier.
  15651. (isFastExtensionSupported): New function.
  15652. * src/PeerMessageUtil.h
  15653. (createChokeMessage): Removed.
  15654. (createUnchokeMessage): Removed.
  15655. (createInterestedMessage): Removed.
  15656. (createNotInterestedMessage): Removed.
  15657. (createHaveMessage): Removed.
  15658. (createBitfieldMessage): Removed.
  15659. (createRequestMessage): Removed.
  15660. (createCancelMessage): Removed.
  15661. (createPieceMessage): Removed.
  15662. (createPortMessage): Removed.
  15663. (createChokeMessage): Removed.
  15664. (createUnchokeMessage): Removed.
  15665. (createInterestedMessage): Removed.
  15666. (createNotInterestedMessage): Removed.
  15667. (createHaveMessage): Removed.
  15668. (createBitfieldMessage): Removed.
  15669. (createRequestMessage): Removed.
  15670. (createCancelMessage): Removed.
  15671. (createPieceMessage): Removed.
  15672. (createKeepAliveMessage): Removed.
  15673. (createHandshakeMessage): Removed.
  15674. (setIntParam): New function.
  15675. (createPeerMessageString): New function.
  15676. * src/PeerMessageUtil.cc
  15677. (createChokeMessage): Removed.
  15678. (createUnchokeMessage): Removed.
  15679. (createInterestedMessage): Removed.
  15680. (createNotInterestedMessage): Removed.
  15681. (createHaveMessage): Removed.
  15682. (createBitfieldMessage): Removed.
  15683. (createRequestMessage): Removed.
  15684. (createCancelMessage): Removed.
  15685. (createPieceMessage): Removed.
  15686. (createPortMessage): Removed.
  15687. (createRequestMessage): Removed.
  15688. (createCancelMessage): Removed.
  15689. (createPieceMessage): Removed.
  15690. (createHaveMessage): Removed.
  15691. (createChokeMessage): Removed.
  15692. (createUnchokeMessage): Removed.
  15693. (createInterestedMessage): Removed.
  15694. (createNotInterestedMessage): Removed.
  15695. (createBitfieldMessage): Removed.
  15696. (createKeepAliveMessage): Removed.
  15697. (createHandshakeMessage): Removed.
  15698. (setIntParam): New function.
  15699. (createPeerMessageString): New function.
  15700. * src/PeerConnection.h
  15701. (peer): Removed.
  15702. (torrentMan): Removed.
  15703. (createNLengthMessage): Removed.
  15704. (setIntParam): Removed.
  15705. (writeOutgoingMessageLog): Removed all overloaded functions.
  15706. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15707. (sendMessage): New function.
  15708. (sendHandshake): Removed.
  15709. (sendKeepAlive): Removed.
  15710. (sendChoke): Removed.
  15711. (sendUnchoke): Removed.
  15712. (sendInterested): Removed.
  15713. (sendNotInterested): Removed.
  15714. (sendHave): Removed.
  15715. (sendBitfield): Removed.
  15716. (sendRequest): Removed.
  15717. (sendPiece): Removed.
  15718. (sendPieceHeader): Removed.
  15719. (sendPieceData): Removed.
  15720. (sendCancel): Removed.
  15721. (getPeer): Removed.
  15722. * src/PeerConnection.cc
  15723. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15724. (sendHandshake): Removed.
  15725. (sendKeepAlive): Removed.
  15726. (createNLengthMessage): Removed.
  15727. (setIntParam): Removed.
  15728. (writeOutgoingMessageLog): Removed all overloaded functions.
  15729. (sendChoke): Removed.
  15730. (sendUnchoke): Removed.
  15731. (sendInterested): Removed.
  15732. (sendNotInterested): Removed.
  15733. (sendHave): Removed.
  15734. (sendBitfield): Removed.
  15735. (sendRequest): Removed.
  15736. (sendPiece): Removed.
  15737. (sendPieceHeader): Removed.
  15738. (sendPieceData): Removed.
  15739. (sendMessage): New function.
  15740. (sendCancel): Removed.
  15741. * src/PeerInteractionCommand.cc
  15742. (PeerInteractionCommand): Call setUploadLimit.
  15743. (executeInternal): Call setUploadLimit.
  15744. Added the handling of "inProgress" state of handshake message.
  15745. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15746. sendNow().
  15747. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15748. sendNow().
  15749. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15750. * src/TorrentMan.h
  15751. (PEER_ID_LENGTH): New definition.
  15752. (hasAllPieces): New function.
  15753. * src/TorrentMan.cc
  15754. (getMissingPiece): Added the handling of fast extension.
  15755. (cancelPiece): Call updatePiece().
  15756. (hasAllPieces): New function.
  15757. * src/PeerInteraction.h
  15758. (fastSet): New variable.
  15759. (getNewPieceAndSendInterest): Changed the return type to void.
  15760. (send): Renamed as sendMessages.
  15761. (deleteAllRequestSlot): Removed.
  15762. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15763. (cancelAllRequest): Removed all overloaded functions.
  15764. (deleteAllRequestSlot): Removed.
  15765. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15766. (rejectPieceMessageInQueue): New function.
  15767. (rejectAllPieceMessageInQueue): New function.
  15768. (onChoked): New function.
  15769. (isSendingMessageInProgress): New function.
  15770. (getCorrespondingRequestSlot): Changed its arguments.
  15771. (isInFastSet): New function.
  15772. (addFastSetIndex): New function.
  15773. (addRequests): New function.
  15774. (sendNow): Removed.
  15775. (trySendNow): Removed.
  15776. (sendBitfield): New function.
  15777. (sendAllowdFast): New function.
  15778. (createHaveAllMessage): New function.
  15779. (createHaveNoneMessage): New function.
  15780. (createRejectMessage): New function.
  15781. (createAllowedFastMessage): New function.
  15782. * src/PeerInteraction.cc
  15783. (send): Renamed as sendMessages.
  15784. (sendMessages): New function.
  15785. (MsgPushBack): New class.
  15786. (isSendingMessageInProgress): New function.
  15787. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15788. (rejectAllPieceMessageInQueue): New function.
  15789. Added the handling of fast extension.
  15790. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15791. (rejectPieceMessageInQueue): New function.
  15792. Added the handling of fast extension.
  15793. (deleteRequestSlot): Replaced for loop with std::find.
  15794. (onChoked): New function.
  15795. (deleteAllRequestSlot): Removed.
  15796. (abortPiece): Rewirtten.
  15797. (deleteTimeoutRequestSlot): Updated log messages.
  15798. (getCorrespondingRequestSlot): Changed its arguments.
  15799. (cancelAllRequest): Removed all overloaded functions.
  15800. (receiveHandshake): Added the check to see whether an incoming peer
  15801. supports fast extension.
  15802. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15803. PeerMessageUtil.
  15804. (createPeerMessage): Use create() of each message class instead of
  15805. PeerMessageUtil.
  15806. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15807. AllowedFastMessage were added.
  15808. (getNewPieceAndSendInterest): Changed its return value type to void.
  15809. Added the handling of fast extension.
  15810. (addRequests): New function.
  15811. (sendNow): Removed.
  15812. (sendHandshake): Rewritten.
  15813. (trySendNow): Removed.
  15814. (sendBitfield): New function.
  15815. (sendAllowdFast): New function.
  15816. (isInFastSet): New function.
  15817. (addFastSetIndex): New function.
  15818. (createRequestMessage): Use RequestMessage::create instead of
  15819. PeerMessageUtil.
  15820. (createCancelMessage): Use CancelMessage::create instead of
  15821. PeerMessageUtil.
  15822. (createPieceMessage): Use PieceMessage::create instead of
  15823. PeerMessageUtil.
  15824. (createHaveMessage): Use HaveMessage::create instead of
  15825. PeerMessageUtil.
  15826. (createChokeMessage): Use ChokeMessage::create instead of
  15827. PeerMessageUtil.
  15828. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15829. PeerMessageUtil.
  15830. (createInterestedMessage): Use InterestedMessage::create instead of
  15831. PeerMessageUtil.
  15832. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15833. of PeerMessageUtil.
  15834. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15835. PeerMessageUtil.
  15836. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15837. PeerMessageUtil.
  15838. (createHaveAllMessage): New function.
  15839. (createHaveNoneMessage): New function.
  15840. (createRejectMessage): New function.
  15841. (createAllowedFastMessage: New function.
  15842. * src/Util.h
  15843. (sha1Sum): New function.
  15844. (computeFastSet): New function.
  15845. * src/Util.cc
  15846. (sha1Sum): New function.
  15847. (computeFastSet): New function.
  15848. * src/Peer.h
  15849. (fastExtensionEnabled): New variable.
  15850. (fastSet): New variable.
  15851. (setAllBitfield): New function.
  15852. (setFastExtensionEnabled): New function.
  15853. (isFastExtensionEnabled): New function.
  15854. (addFastSetIndex): New function.
  15855. (getFastSet): New function.
  15856. (isInFastSet): New function.
  15857. (countFastSet): New function.
  15858. * src/Peer.cc
  15859. (isInFastSet): New function.
  15860. (addFastSetIndex): New function.
  15861. (setAllBitfield): New function.
  15862. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15863. sockets.
  15864. * src/PeerAbstractCommand.cc
  15865. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15866. and uploadLimit.
  15867. (execute): Changed the procedure of checking sockets. The upload speed
  15868. checking were added.
  15869. (setUploadLimit): New function.
  15870. (setUploadLimitCheck): New function.
  15871. * src/PeerAbstractCommand.h
  15872. (setUploadLimit): New function.
  15873. (setUploadLimitCheck): New function.
  15874. (uploadLimit): New variable.
  15875. (uploadLimitCheck): New variable.
  15876. To contact a tracker regularly:
  15877. * src/TrackerWatcherCommand.h (interval): New variable.
  15878. (checkPoint): New variable.
  15879. (TrackerWatcherCommand): Added interval argument.
  15880. * src/TrackerWatcherCommand.cc
  15881. (TrackerWatcherCommand): Initialized checkPoint.
  15882. (execute): Now a tracker is contacted in every specified period.
  15883. If peer list is not needed, send request with numwant=0.
  15884. * src/TrackerUpdateCommand.cc
  15885. (execute): Updated log messages.
  15886. * src/DownloadEngine.cc
  15887. (~DownloadEngine): Removed two asserts.
  15888. (waitData): Uncommented wfds. May be a bug fix.
  15889. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15890. * src/PeerInteractionCommand.h
  15891. (checkInactiveConnection): Removed.
  15892. * src/PeerInteractionCommand.cc
  15893. (executeInternal): Removed following function calls:
  15894. detectMessageFlooding(), checkLongTimePeerChoking and
  15895. checkInactiveConnection().
  15896. (checkInactiveConnection): Removed.
  15897. (detectMessageFlooding): Removed function call to
  15898. checkInactiveConnection().
  15899. * src/PeerMessageUtil.h
  15900. (createChokeMessage): New function. Overload.
  15901. (createUnchokeMessage): New function. Overload.
  15902. (createInterestedMessage): New function. Overload.
  15903. (createNotInterestedMessage): New function. Overload.
  15904. (createHaveMessage): New function. Overload.
  15905. (createBitfieldMessage): New function. Overload.
  15906. (createRequestMessage): New function. Overload.
  15907. (createCancelMessage): New function. Overload.
  15908. (createPieceMessage): New function. Overload.
  15909. (createKeepAliveMessage): New function. Overload.
  15910. * src/PeerMessageUtil.cc
  15911. (createChokeMessage): New function. Overload.
  15912. (createUnchokeMessage): New function. Overload.
  15913. (createInterestedMessage): New function. Overload.
  15914. (createNotInterestedMessage): New function. Overload.
  15915. (createHaveMessage): New function. Overload.
  15916. (createBitfieldMessage): New function. Overload.
  15917. (createRequestMessage): New function. Overload.
  15918. (createCancelMessage): New function. Overload.
  15919. (createPieceMessage): New function. Overload.
  15920. (createKeepAliveMessage): New function. Overload.
  15921. * src/SendMessageQueue.cc
  15922. (createRequestMessage): Use PeerMessageUtil.
  15923. (createCancelMessage): Use PeerMessageUtil.
  15924. (createPieceMessage): Use PeerMessageUtil.
  15925. (createHaveMessage): Use PeerMessageUtil.
  15926. (createChokeMessage): Use PeerMessageUtil.
  15927. (createUnchokeMessage): Use PeerMessageUtil.
  15928. (createInterestedMessage): Use PeerMessageUtil.
  15929. (createNotInterestedMessage): Use PeerMessageUtil.
  15930. (createBitfieldMessage): Use PeerMessageUtil.
  15931. (createKeepAliveMessage): Use PeerMessageUtil.
  15932. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15933. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15934. * src/PeerInteraction.h: New class.
  15935. * src/PeerInteraction.cc: New class.
  15936. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15937. Each peer message has its own class.
  15938. * src/PendingMessages.h: Removed.
  15939. * src/PendingMessages.cc: Removed. The sending process was moved to
  15940. each message class.
  15941. * src/RequestSlotMan.h: Removed.
  15942. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15943. SendMessageQueue.
  15944. * src/RequestMessage.h: New class.
  15945. * src/RequestMessage.cc: New class.
  15946. * src/CancelMessage.h: New class.
  15947. * src/CancelMessage.cc: New class.
  15948. * src/BitfieldMessage.h: New class.
  15949. * src/BitfieldMessage.cc: New class.
  15950. * src/ChokeMessage.h: New class.
  15951. * src/ChokeMessage.cc: New class.
  15952. * src/KeepAliveMessage.h: New class.
  15953. * src/KeepAliveMessage.cc: New class.
  15954. * src/PortMessage.h: New class.
  15955. * src/UnchokeMessage.h: New class.
  15956. * src/UnchokeMessage.cc: New class.
  15957. * src/PieceMessage.h: New class.
  15958. * src/PieceMessage.cc: New class.
  15959. * src/HaveMessage.h: New class.
  15960. * src/HaveMessage.cc: New class.
  15961. * src/BitfieldMessage.h: New class.
  15962. * src/BitfieldMessage.cc: New class.
  15963. * src/NotInterestedMessage.h: New class.
  15964. * src/NotInterestedMessage.cc: New class.
  15965. * src/InterestedMessage.h: New class.
  15966. * src/InterestedMessage.cc: New class.
  15967. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15968. (getSendMessageQueue): New function.
  15969. (setSendMessageQueue): New function.
  15970. * src/HandshakeMessage.cc: New class.
  15971. * src/PeerConnection.h (receiveMessage): Changed return value and
  15972. arguments.
  15973. (receiveHandshake): Changed return value and arguments.
  15974. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15975. here.
  15976. (receiveHandshake): Do not create handshake class here.
  15977. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15978. (piece): Removed.
  15979. (syncPiece): Removed.
  15980. (sendInterest): Removed.
  15981. (sendMessages): Removed.
  15982. (createRequestPendingMessage): Removed.
  15983. (checkPieceHash): Removed.
  15984. (erasePieceOnDisk): Removed.
  15985. (getNewPieceAndSendInterest): Removed.
  15986. (onGotNewPice): Removed.
  15987. (onGotWrongPiece): Removed.
  15988. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15989. Removed peerConnection, piece.
  15990. (~PeerInteractionCommand): Removed peerConnection.
  15991. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15992. (syncPiece): Moved to SendMessageQueue.
  15993. (decideChoking): Removed PendingMessage.
  15994. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15995. The action after receiving peer message was moved to each message
  15996. class.
  15997. (onGotNewPice): Moved to SendMessageQueue.
  15998. (onGotWrongPiece): Moved to SendMessageQueue.
  15999. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16000. (sendInterest): Moved to SendMessageQueue.
  16001. (createRequestPendingMessage): Removed.
  16002. (sendMessages): Moved to SendMessageQueue.
  16003. (onAbort): Use SendMessageQueue::abortPiece()
  16004. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16005. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16006. (checkPieceHash): Moved to SendMessageQueue.
  16007. (erasePieceOnDisk): Moved to SendMessageQueue.
  16008. * src/PeerMessageUtil.h
  16009. (createBitfieldMessage): Removed.
  16010. (createHaveMessage): Changed return value and arguments.
  16011. (createBitfieldMessage): Changed return value and arguments.
  16012. (createRequestCancelMessage): Removed.
  16013. (createPieceMessage): Changed return value and arguments.
  16014. (getShortIntParam): New function.
  16015. (checkIndex): Changed arguments.
  16016. (checkBegin): Changed arguments.
  16017. (checkLength): Changed arguments.
  16018. (checkPieceOffset): Removed.
  16019. (checkRange): New function.
  16020. (checkBitfield): Changed arguments.
  16021. (createPeerMessage): Removed.
  16022. (checkIntegrity): Removed.
  16023. (createHandshakeMessage): Changed arguments.
  16024. (createChokeMessage): New function.
  16025. (createUnchokeMessage): New function.
  16026. (createInterestedMessage): New function.
  16027. (createNotInterestedMessage): New function.
  16028. (createRequestMessage): New function.
  16029. (createCancelMessage): New function.
  16030. (createPortMessage): New function.
  16031. * src/PeerMessageUtil.cc
  16032. (createBitfieldMessage): Removed.
  16033. (createHaveMessage): Changed return value and arguments.
  16034. (createBitfieldMessage): Changed return value and arguments.
  16035. (createRequestCancelMessage): Removed.
  16036. (createPieceMessage): Changed return value and arguments.
  16037. (getShortIntParam): New function.
  16038. (checkIndex): Changed arguments.
  16039. (checkBegin): Changed arguments.
  16040. (checkLength): Changed arguments.
  16041. (checkPieceOffset): Removed.
  16042. (checkRange): New function.
  16043. (checkBitfield): Changed arguments.
  16044. (createPeerMessage): Removed.
  16045. (checkIntegrity): Removed.
  16046. (createHandshakeMessage): Changed arguments.
  16047. (createChokeMessage): New function.
  16048. (createUnchokeMessage): New function.
  16049. (createInterestedMessage): New function.
  16050. (createNotInterestedMessage): New function.
  16051. (createRequestMessage): New function.
  16052. (createCancelMessage): New function.
  16053. (createPortMessage): New function.
  16054. * src/PeerMessage.h
  16055. (id): Removed.
  16056. (index): Removed.
  16057. (begin): Removed.
  16058. (length): Removed.
  16059. (bitfield): Removed.
  16060. (bitfieldLength): Removed.
  16061. (block): Removed.
  16062. (blockLength): Removed.
  16063. (inProgress): New variable.
  16064. (cuid): New variable.
  16065. (peer): New variable.
  16066. (sendMessageQueue): New variable.
  16067. (logger): New variable.
  16068. (setBitfield): Removed.
  16069. (getBitfield): Removed.
  16070. (setBlock): Removed.
  16071. (getBlock): Removed.
  16072. (getBitfieldLength): Removed.
  16073. (getBlockLength): Removed.
  16074. (isInProgress): New function.
  16075. (toString): Made pure virtual.
  16076. (check): New function.
  16077. (send): New function.
  16078. (receivedAction): New function.
  16079. (getId): Made pure virtual.
  16080. (setId): Removed.
  16081. (getIndex): Removed.
  16082. (setIndex): Removed.
  16083. (getBegin): Removed.
  16084. (setBegin): Removed.
  16085. (getLength): Removed.
  16086. (setLength): Removed.
  16087. (getCuid): New function.
  16088. (setCuid): New function.
  16089. (getPeer): New function.
  16090. (setPeer): New function.
  16091. (getSendMessageQueue): New function.
  16092. (setSendMessageQueue): New function.
  16093. (ID): Removed.
  16094. * src/PeerMessage.cc
  16095. (setBitfield): Removed.
  16096. (setBlock): Removed.
  16097. (toString): Removed.
  16098. * src/TorrentMan.h
  16099. (getPieceLength): New function.
  16100. (getPieceLength): New function.
  16101. * src/SendMessageQueue.h
  16102. (REQUEST_TIME_OUT): New definition.
  16103. (RequestSlots): New definition.
  16104. (MessageQueue): New definition.
  16105. (requestSlotMan): Removed.
  16106. (pendingMessages): Removed.
  16107. (requestSlots): New variable.
  16108. (messageQueue): New variable.
  16109. (torrentMan): New variable.
  16110. (peerConnection): New variable.
  16111. (peer): New variable.
  16112. (piece): New variable.
  16113. (getNewPieceAndSendInterest): New function.
  16114. (createPeerMessage): New function.
  16115. (createHandshakeMessage): New function.
  16116. (send): Made private.
  16117. (setPeerMessageCommonProperty): New function.
  16118. (deleteAllRequestSlot): New function.
  16119. (deleteRequestMessageInQueue): New function.
  16120. (cancelAllRequest): Made private.
  16121. (cancelAllRequest): Made private.
  16122. (countRequestSlot): Made private.
  16123. (addPendingMessage): Removed.
  16124. (deletePendingPieceMessage): Removed.
  16125. (deletePendingRequestMessage): Removed.
  16126. (addMessage): New function.
  16127. (deletePieceMessageInQueue): New function.
  16128. (deleteTimeoutRequestSlot): Changed argument.
  16129. (deleteCompletedRequestSlot): Changed argument.
  16130. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16131. (getCorrespondingRequestSlot): New function.
  16132. (countPendingMessage): Removed.
  16133. (countMessageInQueue): New function.
  16134. (getTorrentMan): New function.
  16135. (getPeerConnection): New function.
  16136. (hasDownloadPiece): New function.
  16137. (getDownloadPiece): New function.
  16138. (setDownloadPiece): New function.
  16139. (syncPiece): New function.
  16140. (sendMessages): New function.
  16141. (sendNow): New function.
  16142. (trySendNow): New function.
  16143. (abortPiece): New function.
  16144. (sendHandshake): New function.
  16145. (receiveMessage): New function.
  16146. (receiveHandshake): New function.
  16147. (createRequestMessage): New function.
  16148. (createCancelMessage): New function.
  16149. (createPieceMessage): New function.
  16150. (createHaveMessage): New function.
  16151. (createChokeMessage): New function.
  16152. (createUnchokeMessage): New function.
  16153. (createInterestedMessage): New function.
  16154. (createNotInterestedMessage): New function.
  16155. (createBitfieldMessage): New function.
  16156. (createKeepAliveMessage): New function.
  16157. * src/SendMessageQueue.cc
  16158. (SendMessageQueue): Removed requestSlotMan.
  16159. Instantiated peerConnection here.
  16160. (~SendMessageQueue): Removed requestSlotMan.
  16161. Added deletion of peerConnection and the contents of messageQueue.
  16162. (send): Updated according to the change of messageQueue.
  16163. (addPendingMessage): Renamed to addMessage.
  16164. (addMessage): New function.
  16165. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16166. (deletePieceMessageInQueue): New function.
  16167. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16168. (deleteRequestMessageInQueue): New function.
  16169. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16170. here.
  16171. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16172. (...) was moved here.
  16173. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16174. moved here.
  16175. (deleteCompletedRequestSlot):
  16176. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16177. (getCorrespondingRequestSlot):
  16178. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16179. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16180. (countPendingMessage): Renamed to countMessageInQueue.
  16181. (countMessageInQueue): New function.
  16182. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16183. (receiveHandshake): New function.
  16184. (createHandshakeMessage): New function.
  16185. (receiveMessage): New function.
  16186. (createPeerMessage): New function.
  16187. (syncPiece): New function.
  16188. (getNewPieceAndSendInterest): New function.
  16189. (sendMessages): New function.
  16190. (sendNow): New function.
  16191. (trySendNow): New function.
  16192. (sendHandshake): New function.
  16193. (abortPiece): New function.
  16194. (getDownloadPiece): New function.
  16195. (getPeerMessageCommonProperty): New function.
  16196. (createRequestMessage): New function.
  16197. (createCancelMessage): New function.
  16198. (createPieceMessage): New function.
  16199. (createHaveMessage): New function.
  16200. (createChokeMessage): New function.
  16201. (createUnchokeMessage): New function.
  16202. (createInterestedMessage): New function.
  16203. (createNotInterestedMessage): New function.
  16204. (createBitfieldMessage): New function.
  16205. (createKeepAliveMessage): New function.
  16206. To add simple Content-Disposition support:
  16207. * src/HttpResponseCommand.h (determinFilename): New function.
  16208. * src/HttpResponseCommand.cc (executeInternal):
  16209. Use determinFilename(headers) instead of req->getFile() when comparing
  16210. filename.
  16211. (determinFilename): New function.
  16212. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16213. req->getFile().
  16214. (handleOtherEncoding): Use determinFilename(headers) instead of
  16215. req->getFile().
  16216. * src/Util.h (getContentDispositionFilename): New function.
  16217. * src/Util.cc (getContentDispositionFilename): New function.
  16218. * src/LogFactory.h (release): New function.
  16219. * src/LogFactory.cc (release): New function.
  16220. To fix a bug that causes out-of-bound exception when HTTP status
  16221. line is wrong:
  16222. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16223. size.
  16224. * src/common.h (Deleter): New class.
  16225. * src/SegmentMan.cc
  16226. (~SegmentMan): Added deletion of splitter and diskWriter.
  16227. * src/DownloadEngine.h
  16228. (Commands): Use deque.
  16229. (clearQueue): New function.
  16230. * src/DownloadEngine.cc
  16231. (~DownloadEngine): Added deletion of segmentMan.
  16232. (cleanQueue): New function.
  16233. * src/TorrentDownloadEngine.h
  16234. (TorrentDownloadEngine): The implementation was moved to
  16235. TorrentDownloadEngine.cc.
  16236. (~TorrentDownloadEngine): The implementation was moved to
  16237. TorrentDownloadEngine.cc.
  16238. * src/TorrentDownloadEngine.cc
  16239. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16240. * src/main.cc
  16241. (clearRequest): Removed.
  16242. (handler): Added deletion of e.
  16243. (torrentHandler): Added deletion of te.
  16244. (main): Do not share splitter.
  16245. Use Deleter instead of clearRequest.
  16246. Deletion of classes were updated.
  16247. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16248. * src/main.cc (main): Fixed typo.
  16249. * src/message.h: Fixed typo.
  16250. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16251. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16252. To add --select-file command-line option:
  16253. * src/Util.cc
  16254. (unfoldRange): New function.
  16255. (getNum): New function.
  16256. (unfoldSubRange): New function
  16257. * src/main.cc
  16258. (showUsage): Added help message.
  16259. (main): Added --select-file command-line option. Updated the layout of
  16260. file listing.
  16261. * src/common.h
  16262. (Integers): New definition.
  16263. * src/SocketCore.cc
  16264. (writeData): Removed timeout argument.
  16265. (readData): Removed timeout argument.
  16266. (peekData): Removed timeout argument.
  16267. * src/Socket.cc
  16268. (writeData): Removed timeout argument.
  16269. (readData): Removed timeout argument.
  16270. (peekData): Removed timeout argument.
  16271. * Release 0.4.1
  16272. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16273. To deploy upload rate based choking algorithm:
  16274. * src/PeerInteractionCommand.cc
  16275. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16276. peer currently used.
  16277. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16278. download completes. Simplified.
  16279. (receiveMessage): Updated.
  16280. * src/TorrentMan.h
  16281. (activePeers): New variable.
  16282. (addActivePeer): New function.
  16283. (getActivePeers): New function.
  16284. (deleteActivePeer): New function.
  16285. * src/TorrentMan.cc
  16286. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16287. * src/PeerAbstractCommand.cc
  16288. (onAbort): Use peer->resetStatus().
  16289. * src/main.cc
  16290. (PeerChokeCommand.h): Included.
  16291. (main): Added the instance of ChokingCommand to the command queue.
  16292. * src/Peer.h
  16293. (amChoking): Renamed from amChocking
  16294. (chokingRequired): New variable.
  16295. (optUnchoking): New variable.
  16296. (deltaUpload): New variable.
  16297. (deltaDownload): New variable.
  16298. (addDeltaUpload): New function.
  16299. (resetDeltaUpload): New function.
  16300. (addDeltaDownload): New function.
  16301. (resetDeltaDownload): New function.
  16302. (addPeerUpload): Added a call to addDeltaUpload.
  16303. (addPeerDownload): Added a call to addDeltaDownload.
  16304. * src/Peer.cc
  16305. (shouldBeChoking): Renamed from shouldChoke.
  16306. (resetStatus): New function.
  16307. * src/PeerChokeCommand.h: New class.
  16308. * src/PeerChokeCommand.cc: New class.
  16309. To add lazy upload speed limiter:
  16310. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16311. statistics calculation to TorrentDownloadEngine.
  16312. * src/TorrentConsoleDownloadEngine.cc
  16313. (sendStatistics): Renamed from printStatistics.
  16314. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16315. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16316. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16317. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16318. calculation.
  16319. (sendStatistics): New function as pure virtual function.
  16320. (getUploadSpeed): New function.
  16321. * src/TorrentDownloadEngine.cc
  16322. (initStatistics): New function.
  16323. (calculateSpeed): New function.
  16324. (calculateStatistics): New function.
  16325. * src/SendMessageQueue.h
  16326. (uploadLength): New variable.
  16327. (send): Added an argument.
  16328. (setUploadLimit): New function.
  16329. (getUploadLimit): New function.
  16330. * src/SendMessageQueue.cc
  16331. (send): Added upload speed limiter.
  16332. * src/prefs.h
  16333. (PREF_UPLOAD_LIMIT): New definition.
  16334. * src/PeerInteractionCommand.cc
  16335. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16336. * src/main.cc
  16337. (main): Added --upload-limit option
  16338. For bug fixes:
  16339. * src/main.cc
  16340. (showUsage): Corrected --listen-port help
  16341. Other changes:
  16342. * src/TorrentMan.cc
  16343. (getPeer): Return nullPeer if connection is grather than
  16344. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16345. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16346. To add some useful information to the exception message:
  16347. * src/SocketCore.cc : Updated messages.
  16348. * src/SegmentMan.cc :
  16349. * src/TorrentMan.cc : Updated messages.
  16350. * src/MultiDiskWriter.cc : Updated messages.
  16351. * src/Util.cc : Updated messages.
  16352. * src/AbstractDiskWriter.cc : Updated messages.
  16353. * src/PreAllocationDiskWriter.cc : Updated messages.
  16354. * src/message.cc : Added new messages. Updated some messages.
  16355. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16356. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16357. Updated threshold from 30 to 15.
  16358. * src/AbstractDiskWriter.h (filename): New variable.
  16359. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16360. (createFile): Assigned filename.
  16361. * src/main.cc: Updated the help message for http-auth-scheme.
  16362. * Release 0.4.0
  16363. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16364. To add TrackerUpdateCommand with which replaces
  16365. CompactTrackerResponseProcessor:
  16366. * src/TrackerWatcherCommand.h (req): Removed.
  16367. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16368. if the number of peer connections are less than 30.
  16369. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16370. * src/SegmentMan.h (diskWriter): New function.
  16371. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16372. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16373. (main): Use TrackerUpdateCommand.
  16374. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16375. (req): New variable.
  16376. (setTrackerResponseProcessor): Removed.
  16377. (getTrackerResponseProcessor): Removed.
  16378. (processTrackerResponse): Removed.
  16379. * src/DownloadEngine.h (diskWriter): Removed.
  16380. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16381. to torrentMan->processTrackerResponse().
  16382. To add Util::expandBuffer:
  16383. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16384. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16385. * src/Util.h (expandBuffer): New function.
  16386. To fix the bug that causes segmentation fault when "-l ." is specified
  16387. in command-line option:
  16388. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16389. (openFile): New function.
  16390. (closeFile): New function.
  16391. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16392. (~SimpleLogger): Call closeFile();
  16393. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16394. * src/main.cc (main): Added a check to see logger is configured
  16395. properly.
  16396. To enable HTTP authentication without specifying "--http-auth-scheme"
  16397. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16398. * src/HttpConnection.cc (createRequest): Send Authorization header
  16399. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16400. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16401. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16402. * src/Peer.cc (shouldChoke): Updated algorithm.
  16403. * src/message.h (EX_AUTH_FAILED): New definition.
  16404. (EX_FILE_OPEN): New definition.
  16405. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16406. if status == 401.
  16407. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16408. if req->isTorrent == true.
  16409. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16410. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16411. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16412. (createFile): Updated message.
  16413. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16414. To add a readout of estimated remaining time to normal HTTP/FTP
  16415. downloads:
  16416. * src/ConsoleDownloadEngine.h (startup): New variable.
  16417. (startupLength): New variable.
  16418. (isStartupLengthSet): New variable.
  16419. (avgSpeed): New variable.
  16420. (eta): New variable.
  16421. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16422. estimated remaining time.
  16423. (initStatistics): Initialized newly added variables.
  16424. (calculateStatistics): Calculate average speed and estimated remaining
  16425. time.
  16426. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16427. * src/TrackerDownloadCommand.h: Removed.
  16428. * src/TrackerDownloadCommand.cc: Removed.
  16429. * src/TrackerInitCommand.h: Removed.
  16430. * src/TrackerInitCommand.cc: Removed.
  16431. * src/TrackerUpdateCommand.h: Removed.
  16432. * src/TrackerUpdateCommand.cc: Removed.
  16433. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16434. url written in TrackerInitCommand was moved here. Do not create
  16435. tracker request command if torrentMan->trackers != 0.
  16436. * src/CompactTrackerResponseProcessor.h: New class.
  16437. * src/CompactTrackerResponseProcessor.cc: New class.
  16438. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16439. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16440. Decoupled TorrentDownloadEngine from this.
  16441. * src/SegmentMan.h (init): New function.
  16442. * src/SegmentMan.cc (init): New function.
  16443. * src/TorrentMan.h (responseProcessor): New variable.
  16444. (trackers): New variable.
  16445. (setTrackerResponseProcessor): New function.
  16446. (getTrackerResponseProcessor): New function.
  16447. (processTrackerResponse): New function.
  16448. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16449. (processTrackerResponse): New function.
  16450. * src/main.cc (main): Use ByteArrayDiskWriter and
  16451. CompactTrackerResponseProcessor.
  16452. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16453. processTrackerResponse().
  16454. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16455. readout.
  16456. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16457. which indicates download has completed.
  16458. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16459. (closeFile): fd >= 0, not fd > 0
  16460. * src/main.cc (main): Added short cut for show-files.
  16461. Added short cut for torrent-file.
  16462. Added new command-line option listen-port.
  16463. Updated i18n messages.
  16464. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16465. To add LogFactory which creates singleton logger:
  16466. * src/LogFactory.h: New class.
  16467. * src/LogFactory.cc: New class.
  16468. * src/Command.h (logger): New variable.
  16469. (Constructor): Use LogFactory.
  16470. * src/AbstractCommand.cc: Use Command::logger
  16471. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16472. Use LogFactory.
  16473. * src/SegmentSplitter.h : Made logger protected.
  16474. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16475. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16476. * src/DownloadEngine.h : Made logger protected.
  16477. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16478. * src/PeerInteractionCommand.cc : Use Command::logger.
  16479. * src/HttpResponseCommand.cc : Use Command::logger.
  16480. * src/SegmentMan.h : Made logger private.
  16481. * src/TorrentMan.h : Made logger private.
  16482. * src/TorrentMan.cc : Use LogFactory.
  16483. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16484. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16485. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16486. Use LogFactory.
  16487. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16488. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16489. Use LogFactory.
  16490. * src/DownloadCommand.cc : Use Command::logger.
  16491. * src/PeerAbstractCommand.cc : Use Command::logger.
  16492. * src/PeerListenCommand.cc : Use Command::logger.
  16493. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16494. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16495. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16496. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16497. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16498. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16499. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16500. Use LogFactory.
  16501. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16502. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16503. Use LogFactory.
  16504. * src/main.cc (main): Use LogFactory.
  16505. * src/DiskAdaptor.h (logger): New variable.
  16506. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16507. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16508. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16509. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16510. parameter to a tracker request.
  16511. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16512. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16513. * src/main.cc (setSignalHander): New function.
  16514. (main): Added a handler for SIGTERM.
  16515. (handler): Updated message.
  16516. (torrentHandler): Updated message.
  16517. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16518. * src/TorrentConsoleDownloadEngine.cc
  16519. (onPartialDownloadingCompletes): Renamed as
  16520. onSelectiveDownloadingCompletes.
  16521. (onSelectiveDownloadingCompletes): Updated message.
  16522. To add DiskAdaptor which abstract DiskWriter family:
  16523. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16524. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16525. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16526. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16527. MultiDiskAdaptor.h.
  16528. (readFileEntry): Changed its arguments.
  16529. (setup): setupDiskWriter is merged into this function.
  16530. (setupDiskWriter): Removed.
  16531. (setFileFilter): New function.
  16532. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16533. made in readFileEntry.
  16534. (getFilePath): Removed.
  16535. (getTempFilePath): Removed.
  16536. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16537. (fixFilename): Removed.
  16538. (copySingleFile): Removed.
  16539. (splitMultiFile): Removed.
  16540. (deleteTempFile): Removed.
  16541. (setFileEntriesToDownload): Removed.
  16542. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16543. (isSelectiveDownloadingMode): New function.
  16544. (setAllMultiFileRequestedState): Removed.
  16545. (finishPartialDownloadingMode): Renamed as
  16546. finishSelectiveDownloadingMode.
  16547. (finishSelectiveDownloadingMode): New function.
  16548. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16549. (getSelectedTotalLength): New function.
  16550. (onDownloadComplete): Use diskAdaptor.
  16551. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16552. (Range): Removed.
  16553. (setMultiFileEntries): Renamed as setFileEntries.
  16554. (setFileEntries): New function.
  16555. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16556. (pieceLength): New variable.
  16557. * src/main.cc (printDownloadCompeleteMessage): New function.
  16558. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16559. (main): Renamed torrent-show-files to show-files.
  16560. Rewritten file contents listing.
  16561. * src/TorrentMan.h (FileEntry): Removed.
  16562. (multiFileTopDir): Removed.
  16563. (multiFileEntries): Removed.
  16564. (diskWriter): Removed.
  16565. (diskAdaptor): New variable.
  16566. * src/DefaultDiskWriter.h (totalLength): New variable.
  16567. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16568. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16569. diskWriter.
  16570. * src/TorrentConsoleDownloadEngine.h
  16571. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16572. (partialTotalLength): Renamed as selectedTotalLength.
  16573. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16574. openExistingFile, otherwise call initAndOpenFile.
  16575. (closeFile): fd > 0, not fd != 0.
  16576. * src/DirectDiskAdaptor.h: New class.
  16577. * src/DirectDiskAdaptor.cc: New class.
  16578. * src/MultiDiskAdaptor.h: New class.
  16579. * src/MultiDiskAdaptor.cc: New class.
  16580. * src/CopyDiskAdaptor.h: New class.
  16581. * src/CopyDiskAdaptor.cc: New class.
  16582. * src/DiskAdaptor.h: New class.
  16583. * src/DiskAdaptor.cc: New class.
  16584. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16585. (PREF_SHOW_FILES): New definition.
  16586. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16587. To add the ability to download multi torrent into respective files
  16588. directly:
  16589. * src/DiskWriter.h (openFile): New function.
  16590. (seek): Removed.
  16591. * src/MultiDiskWriter.h: New class.
  16592. * src/MultiDiskWriter.cc: New class.
  16593. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16594. protected.
  16595. (openFile): New function.
  16596. * src/AbstractDiskWriter.cc (openFile): New function.
  16597. * src/prefs.h (V_FALSE): New definition.
  16598. (PREF_DIRECT_FILE_MAPPING): New definition.
  16599. * src/TorrentMan.h (setupDiskWriter): New function.
  16600. (setAllMultiFileRequestedState): New function.
  16601. (onDownloadComplete): New function.
  16602. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16603. (setupDiskWriter): New function.
  16604. (getFilePath): Updated.
  16605. (getTempFilePath): Updated.
  16606. (getSegmentFilePath): Updated.
  16607. (fixFilename): Updated.
  16608. (deleteTempFile): Updated.
  16609. (setAllMultiFileRequestedState): New function.
  16610. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16611. (finishPartialDownloadingMode): Reset requested flags.
  16612. (onDownloadComplete): New function.
  16613. * src/main.cc: Added --direct-file-mapping option.
  16614. Use TorrentMan::setupDiskWriter().
  16615. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16616. onDownloadComplete().
  16617. To fix ETA bug:
  16618. * src/Util.h (difftvsec): New function.
  16619. * src/Util.cc (difftvsec): New function.
  16620. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16621. type of "elapsed" instead of long long int.
  16622. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16623. The updates of statistics takes place every 1 seconds.
  16624. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16625. (calculateSpeed): Changed its argument signature.
  16626. * src/PeerMessage.cc (toString): Fixed message.
  16627. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16628. To print ETA:
  16629. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16630. completion handling when dealing with
  16631. TorrentMan::isPartialDownloadingMode() == true.
  16632. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16633. New function.
  16634. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16635. (sessionDownloadLength): New variable.
  16636. (avgSpeed): New variable.
  16637. (eta): New variable.
  16638. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16639. new variables: eta, avgSpeed, startup.
  16640. (calculateSpeed): Calculate average speed and ETA.
  16641. (printStatistics): Added ETA.
  16642. * src/Util.h (secfmt): New function.
  16643. * src/Util.cc (secfmt): New function.
  16644. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16645. To detect "keep alive" flooding:
  16646. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16647. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16648. variable: keepAliveCount.
  16649. (detectMessageFlooding): Added "keep alive" flooding detection.
  16650. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16651. received.
  16652. To add the ability to download only specified files in multi-file
  16653. torrent:
  16654. * src/BitfieldMan.h (filterBitfield): New variable.
  16655. (filterEnabled): New variable.
  16656. (setFilterBit): New function.
  16657. (enableFilter): New function.
  16658. (disableFilter): New function.
  16659. (isFilterEnabled): New function.
  16660. (getFilteredTotalLength): New function.
  16661. (getCompletedLength): New function.
  16662. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16663. filterBitfield, filterEnabled.
  16664. (CopyConstructor): Added filterBitfield and filterEnabled.
  16665. (operator==): Added filterBitfield and filterEnabled.
  16666. (Destructor): Added filterBitfield.
  16667. (getMissingIndex): Use filterBitfield.
  16668. (getMissingUnusedIndex): Use filterBitfield.
  16669. (getFirstMissingUnusedIndex): Use filterBitfield.
  16670. (getFirstMissingUnusedIndex): Use filterBitfield.
  16671. (getAllMissingIndexes): Use filterBitfield.
  16672. (countMissingBlock): Use filterBitfield.
  16673. (countBlock): Use filterBitfield.
  16674. (setBitInternal): Added new argument on.
  16675. (setUseBit): Use setBitInternal.
  16676. (unsetUseBit): Use setBitInternal.
  16677. (setBit): Use setBitInternal.
  16678. (unsetBit): Use setBitInternal.
  16679. (isAllBitSet): Use filterBitfield.
  16680. (setFilterBit): New function.
  16681. (addFilter): New function.
  16682. (enableFilter): New function.
  16683. (disableFilter): New function.
  16684. (clearFilter): New function.
  16685. (isFilterEnabled): New function.
  16686. (getFilteredTotalLength): New function.
  16687. (getCompletedLength): New function.
  16688. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16689. Initalized newly added variables.
  16690. [FileEntry](offset): New variable.
  16691. [FileEntry](extracted): New variable.
  16692. [FileEntry](requested): New variable.
  16693. (readFileEntry): New function.
  16694. (option): New variable.
  16695. (splitMultiFile): Removed const qualifier.
  16696. (fixFilename): Removed const qualifier.
  16697. (readFileEntryFromMetaInfoFile): New function.
  16698. (finishPartialDownloadingMode): New function.
  16699. (isPartialDownloadingMode): New function.
  16700. (setFileEntriesToDownload): New function.
  16701. (getCompletedLength): New function.
  16702. (getPartialTotalLength): New function.
  16703. * src/TorrentMan.cc (readFileEntry): New function.
  16704. (setup): Use readFileEntry. If no-preallocation option is specified,
  16705. use DefaultDiskWriter.
  16706. (readFileEntryFromMetaInfoFile): New function.
  16707. (fixFilename): Removed const qualifier.
  16708. (splitMultiFile): Removed const qualifier.
  16709. (setFileEntriesToDownload): New function.
  16710. (isPartialDownloadingMode): New function.
  16711. (finishPartialDownloadingMode): New function.
  16712. (getCompletedLength): New function.
  16713. (getPartialTotalLength): New function.
  16714. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16715. New variable.
  16716. (partialTotalLength): New variable.
  16717. (downloadLength): New variable.
  16718. (totalLength): New variable.
  16719. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16720. Added log.
  16721. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16722. partialTotalLength, downloadLength, totalLength.
  16723. (calculate): Calculate downloadLength and totalLength.
  16724. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16725. * src/main.cc (addCommand): Changed argument signature.
  16726. (main): Added new variable: args. Added new option "torrent-show-files"
  16727. "no-preallocation". Usage is not updated yet.
  16728. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16729. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16730. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16731. Attempt to add the ability to listing file entries in a .torrent file.
  16732. This feature is not yet complete.
  16733. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16734. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16735. (getName): New function.
  16736. * src/TorrentMan.h (getMultiFileEntries): New function.
  16737. (getName): New function.
  16738. * src/main.cc (main): Use above 2 funtion.
  16739. * Release 0.3.2
  16740. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16741. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16742. (detectMessageFlooding): Updated threshold value.
  16743. (checkLongTimePeerChoking): Updated timeout value.
  16744. (getNewPieceAndSendInterest): Added debug log.
  16745. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16746. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16747. (getPeer): Updated.
  16748. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16749. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16750. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16751. is localhost.
  16752. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16753. * src/PendingMessage.cc (processMessage): Not to send piece message
  16754. if peer is not interested in the pieces localhost has.
  16755. * src/Peer.cc (shouldChoke): Updated.
  16756. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16757. * src/Util.cc (isPowerOf): New function.
  16758. * src/Util.h (isPowerOf): New function.
  16759. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16760. whether or not it is power of 2.
  16761. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16762. Added new class SendMessageQueue that includes PendingMessages and
  16763. RequestSlotMan.
  16764. * src/SendMessageQueue.h: New class.
  16765. * src/SendMessageQueue.cc: New class.
  16766. * src/PendingMessage.h: Added new member variable blockIndex and its
  16767. accessors.
  16768. (createRequestMessage): Updated.
  16769. * src/PendingMessage.cc (createRequestMessage): Updated.
  16770. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16771. SendMessageQueue.
  16772. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16773. (receiveMessage): Updated with SendMessageQueue.
  16774. (deletePendingPieceMessage): Removed.
  16775. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16776. (sendInterest): Updated with SendMessageQueue.
  16777. (createRequestPendingMessage): Updated with SendMessageQueue.
  16778. (sendMessages): Updated with SendMessageQueue.
  16779. (onAbort): Updated with SendMessageQueue.
  16780. (keepAlive): Updated with SendMessageQueue.
  16781. (beforeSocketCheck): Updated SendMessageQueue.
  16782. * src/PeerInteractionCommand (sendMessages): Shuffle
  16783. missingBLockIndexes before using it.
  16784. Added its own timeout for peer connection.
  16785. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16786. setter.
  16787. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16788. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16789. Added setTimeout() call.
  16790. (executeInternal): Added setTimeout() call.
  16791. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16792. Added timeout.
  16793. (isTimeoutDetected): Updated.
  16794. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16795. option.
  16796. Added *simple* message flooding checker.
  16797. * src/PeerInteractionCommand.cc (executeInternal):
  16798. Added detectMessageFlooding() call.
  16799. (detectMessageFlooding): New function.
  16800. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16801. (beforeSocketCheck): Added detectMessageFlooding() call.
  16802. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16803. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16804. Removed deletePendingPieceMessage(), getRequestSlot(),
  16805. deleteRequestSlot(), deleteAllRequestSlot().
  16806. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16807. Added checkLongTimePeerChoking() call.
  16808. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16809. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16810. if duplicate == false.
  16811. The parameter "uploaded" and "downloaded" in the tracker request are
  16812. the size since the client sent the "started" event to the tracker.
  16813. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16814. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16815. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16816. getSessionDownloadedSize(), getSessionUploadedSize().
  16817. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16818. getSessionUploadedSize() instead of getDownloadedSize(),
  16819. getUploadedSize().
  16820. * src/PendingMessage.cc (processMessage): Do not send request message
  16821. if the peer is choking the client.
  16822. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16823. less than interval.
  16824. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16825. * configure.in: Added gnutls support. Added several CPP macros.
  16826. * m4/openssl.m4: Added.
  16827. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16828. readData(), peekData(). Added gnutls support.
  16829. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16830. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16831. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16832. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16833. Instead, added a check for whether setup method has executed
  16834. successfully.
  16835. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16836. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16837. * src/Makefile.am: Updated.
  16838. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16839. using whether OpenSSL or gcrypt, depending on the result of configure
  16840. script.
  16841. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16842. messageDigest.h.
  16843. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16844. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16845. Fixed memory leak.
  16846. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16847. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16848. Removed instantiation of TrackerInitCommand. Instead,
  16849. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16850. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16851. ENABLE_SSL.
  16852. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16853. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16854. If a piece is already acquired by another command, delete the request
  16855. slots for the piece.
  16856. * src/TrackerUpdateCommand.cc (execute):
  16857. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16858. Added a check whether peer list is null.
  16859. Fixed the bug that causes sending completed event to the tracker
  16860. several times.
  16861. * src/TrackerInitCommand.cc (execute):
  16862. Fixed the bug that causes sending completed event to the tracker
  16863. several times.
  16864. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16865. by using messageDigest.h.
  16866. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16867. * PeerConnection.cc: Replaced log message "keep-alive" with
  16868. "keep alive".
  16869. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16870. localhost long time.
  16871. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16872. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16873. at most 100 failure entry from the list. If with duplicate = false,
  16874. MAX_PEER_LIST is not checked.
  16875. * PeerListenCommand.cc: Fixed the argument order of log message.
  16876. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16877. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16878. Added warn().
  16879. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16880. Implemented warn().
  16881. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16882. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16883. * Request.h: Added AFTER_COMPLETED event.
  16884. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16885. instead of downloaded size and progress(%) after download completes.
  16886. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16887. message to the peer if it is interested in what localhost has
  16888. downloaded.
  16889. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16890. destination instead of just renaming it.
  16891. * TorrentMan.cc: Added deleteTempFile().
  16892. * PeerAbstractCommand.cc: do not stop execution after download
  16893. completes. This makes localhost a seeder.
  16894. * Util.{h,cc}: Added fileCopy().
  16895. * PeerListenCommand.cc: do not stop execution after download completes.
  16896. This makes localhost a seeder.
  16897. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16898. Added TorrentMan::deleteTempFile() to torrentHandler.
  16899. Initialized the variable dir as ".".
  16900. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16901. Deleted renameSingleFile().
  16902. Added copySingleFile(), deleteTempFile().
  16903. * DownloadEngine.h: Added virtual function afterEachIteration().
  16904. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16905. in onEndOfRun() to afterEachIteration().
  16906. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16907. true.
  16908. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16909. In rangedFileCopy(), added try-catch block to properly close file
  16910. descriptors.
  16911. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16912. Added afterEachIteration(), isFilenameFixed().
  16913. * Peer.cc: Changed choking strategy.
  16914. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16915. * TrackerInitCommand.cc: Send completed event only once.
  16916. * DownloadEngine.cc: Added a call to afterEachIteration().
  16917. * TrackerUpdateCommand.cc: Do not stop execution after download
  16918. completes.
  16919. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16920. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16921. received from a tracker.
  16922. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16923. Decreased the number of failure peers to delete to 0(just comment out
  16924. the line).
  16925. * Release 0.3.1
  16926. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16927. * PeerInteractionCommand.cc: added a call to
  16928. TorrentMan::unadvertisePiece in Destructor.
  16929. * PeerInteractionCommand.cc: make have message sent immediately
  16930. if the size of pending message queue is zero.
  16931. * TorrentMan.cc: set the maximum size of peer list to 250.
  16932. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16933. to deque.
  16934. * Util.cc: fixed rangedFileCopy.
  16935. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16936. to Constructor. Also, moved digest cleanup to Destructor.
  16937. * MetaFileUtil.cc: fixed memory leak
  16938. * replaced std::vector with std::deque.
  16939. * AbstractCommand.cc: casted timeout value to long long int.
  16940. * ChunkedEncoding.cc: fixed memory leak.
  16941. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16942. * SleepCommand.cc: casted timeout value to long long int.
  16943. * Data.cc: fixed memory leak.
  16944. * Data.cc: fixed toLLInt().
  16945. * BitfieldMan.cc: fixed memory leak.
  16946. * TorrentMan.cc: initialized storeDir to ".".
  16947. * TorrentMan.cc: fixed memory leak.
  16948. * TorrentMan.cc: corrected file paths of splitted files.
  16949. * PeerAbstractCommand.cc: casted timeout to long long int.
  16950. * main.cc: added delete(req) and delete(te->diskWriter).
  16951. * RequestSlot.cc: casted timeout value to long long int.
  16952. * Request.cc: fixed memory leak.
  16953. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16954. have the piece.
  16955. * Peer.{h,cc}: added hasPiece(int index).
  16956. * main.cc: corrected addCommand.
  16957. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16958. * BitTorrent protocol support added.
  16959. * Release 0.3.0
  16960. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16961. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16962. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16963. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16964. decoding did not work properly.
  16965. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16966. * DownloadEngine.h: included sys/time.h
  16967. * DownloadEngine.cc: remove sys/time.h
  16968. * Makefile.am (SUBDIRS): Add intl.
  16969. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16970. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16971. * main.cc: correct help message for --http-auth-scheme.
  16972. * main.cc: changed e-mail address for bug reports.
  16973. * ja.po: added japanese translation.
  16974. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16975. * SimpleLogger.cc: flush log file instead of stdout.
  16976. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16977. * main.cc: Fixed command-line option: max-tries
  16978. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16979. does not equal to seg.sp.
  16980. * DownloadCommand.cc: If EOF is got from the server and the total size
  16981. of file is not zero, then throw DlRetryEx.
  16982. * main.cc: Set the minium value of min-segment-size to 1024.
  16983. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16984. fails because of a regression since 0.2.0 release.
  16985. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16986. * HttpConnection.cc:
  16987. * common.h: defined the user agent name as macro
  16988. * DownloadEngine.{h, cc}:
  16989. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16990. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16991. * main.cc: Download complete/abort message is now generated by main.
  16992. * Makefile.am (SUBDIRS): Add m4.
  16993. (ACLOCAL_AMFLAGS): New variable.
  16994. (EXTRA_DIST): New variable.
  16995. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16996. * gettext: added gettext functionality
  16997. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16998. * AbstractCommand.cc:
  16999. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17000. unregister its cuid from SegmentMan.
  17001. * DownloadEngine.cc: .aria2 file was written when a downloading
  17002. failed with errors.
  17003. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17004. Added "User-Agent" header to CONNECT proxy request.
  17005. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17006. properly.
  17007. * Logger.h:
  17008. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17009. * ChunkedEncoding.cc: Added #include directive for strings.h
  17010. * Release 0.2.1
  17011. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17012. * Util.{h,cc}: added startsWith().
  17013. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17014. Util::endsWith().
  17015. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17016. * common.h: added #include directive of limit.h.
  17017. * DownloadEngine.cc: added #include directive of sys/time.h and
  17018. algorithm.
  17019. * Exception.h: added #include directive of stdio.h.
  17020. * AbstractCommand.h: added #include directive of sys/time.h.
  17021. * DownloadCommand.h: added #include directive of sys/time.h.
  17022. * *.h: added #include directive of common.h to all base classes.
  17023. subclasses' one was removed.
  17024. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17025. does not define these macros.
  17026. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17027. * Release 0.2.0
  17028. * main.cc:
  17029. * HttpInitiateConnectionCommand.{h,cc}:
  17030. * prefs.h:
  17031. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17032. We can now use GET command in http proxy.
  17033. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17034. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17035. that splits slowest segment of SegmentMan::commands vector.
  17036. This is the default split algorithm of aria2.
  17037. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17038. that splits first segment of SegmentMan::commands vector.
  17039. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17040. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17041. * Segment.h:
  17042. * SegmentMan.cc: Added speed field to Segment.h
  17043. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17044. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17045. * message.h: Change file size related %d to %lld.
  17046. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17047. * FtpInitiateConnectionCommand.{h,cc}:
  17048. * FtpNegotiationCommand.{h,cc}:
  17049. * FtpDownloadCommand.{h,cc}:
  17050. * FtpConnection.{h,cc}: Added FTP support
  17051. * SimpleLogger.cc: Log message now includes time information.
  17052. * main.cc: The value of --http-auth-scheme option is chagned from
  17053. 'BASIC' to 'basic'
  17054. * main.cc: Added --timeout command-line option.
  17055. * main.cc: Added --min-segment-size command-line option.
  17056. * main.cc: Added --max-retries command-line option.
  17057. * prefs.h: option string constants are now defined in prefs.h
  17058. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17059. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17060. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17061. with version 0.1.0's one.
  17062. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17063. * configure.in: Added --enable-ssl option to configure script.
  17064. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17065. cannot permit absoluteURI as Request-URI.
  17066. * HttpConnection.cc: Added Referer support.
  17067. * main.cc: Added referer command-line option.
  17068. * main.cc: Added rety-wait command-line option.
  17069. * Exception.h: Fixed formating bug in Exception::setMsg()
  17070. * SocketCore.{h,cc}:
  17071. * Socket.{h, cc}:
  17072. * Request.cc:
  17073. * InitiateConnectionCommandFactory.cc:
  17074. * HttpRequestCommand.cc: Added HTTPS support.
  17075. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17076. for SocketCore.
  17077. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17078. size is wrong
  17079. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17080. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17081. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17082. * Release 0.1.0