ChangeLog 658 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172
  1. 2009-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2. Fixed the bug that line separator is missing in horizontal bar.
  3. * doc/xmlrpc/aria2mon
  4. 2009-12-09 Tatsuhiro Tsujikawa <[email protected]>
  5. Updated usage text for --metalink-file option.
  6. * src/usage_text.h
  7. 2009-12-09 Tatsuhiro Tsujikawa <[email protected]>
  8. If '-' is given as an argument to --metalink-file option, aria2
  9. reads Metalink file from stdin.
  10. * src/OptionHandlerFactory.cc
  11. * src/OptionHandlerImpl.h
  12. * src/a2io.h
  13. 2009-12-08 Tatsuhiro Tsujikawa <[email protected]>
  14. Fixed the bug that aria2 listens wrong port if --interface option
  15. is used.
  16. * src/SocketCore.cc
  17. 2009-12-07 Tatsuhiro Tsujikawa <[email protected]>
  18. Fixed the bug that query parameter in magnet URI is not decoded.
  19. * src/magnet.cc
  20. * test/MagnetTest.cc
  21. 2009-12-07 Tatsuhiro Tsujikawa <[email protected]>
  22. Specified defaultSize as an argument for easy testing.
  23. * src/util.cc
  24. * src/util.h
  25. * test/UtilTest.cc
  26. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  27. Release 1.7.1
  28. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  29. Bump up version number to 1.7.1
  30. * configure.ac
  31. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  32. Fixed the bug --bt-prioritize-piece=tail is not working.
  33. * src/util.cc
  34. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  35. Release 1.7.0
  36. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  37. Updated po templates.
  38. * po/aria2.pot
  39. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  40. Updated help message for --bt-prioritize-piece. Some cosmetic
  41. changes.
  42. * doc/aria2c.1.txt
  43. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  44. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  45. * src/usage_text.h
  46. * src/util.cc
  47. * test/UtilTest.cc
  48. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  49. Updated Russian, Ukrainian, German and French translations.
  50. Thanks to all translators involved.
  51. * po/de.po
  52. * po/fr.po
  53. * po/ru.po
  54. * po/uk.po
  55. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  56. Mentioned about pkg-config
  57. * README
  58. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  59. Fixed typo. Referred --index-out option in BitTorrent notes.
  60. * README
  61. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  62. Store all addresses found by getifaddrs() and getaddrinfo(). In
  63. bind, try all addresses until success
  64. * src/SocketCore.cc
  65. * src/SocketCore.h
  66. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  67. Updated po templates.
  68. * po/aria2.pot
  69. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  70. Bump up version number to 1.7.0
  71. * configure.ac
  72. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  73. Fixed compile error if ENABLE_BITTORRENT is undefined.
  74. * src/DefaultPieceStorage.cc
  75. * src/DefaultPieceStorage.h
  76. * src/PieceStorage.h
  77. * src/UnknownLengthPieceStorage.cc
  78. * src/UnknownLengthPieceStorage.h
  79. * test/MockPieceStorage.h
  80. * test/ProtocolDetectorTest.cc
  81. * test/XmlRpcMethodTest.cc
  82. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  83. Documented in man page that if getifaddrs() is missing,
  84. --interface option doesn't accept interface name.
  85. * doc/aria2c.1.txt
  86. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  87. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  88. * src/DefaultBtAnnounce.cc
  89. * src/DefaultBtAnnounce.h
  90. * test/DefaultBtAnnounceTest.cc
  91. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  92. Fixed the bug that connection is always dropped if handshake
  93. message in extension protocol don't have metadata_size.
  94. src/HandshakeExtensionMessage.cc
  95. * src/HandshakeExtensionMessage.cc
  96. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  97. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  98. text saying DHT is recommended when Magnet URI is provided.
  99. * doc/aria2c.1.txt
  100. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  101. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  102. URI is supplied. Notify user that they should consider enabling
  103. DHT if they use Magnet URI.
  104. * src/RequestGroup.cc
  105. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  106. Added --disable-ipv6 option to disable IPv6.
  107. * doc/aria2c.1.txt
  108. * src/InitiateConnectionCommand.cc
  109. * src/NameResolver.cc
  110. * src/NameResolver.h
  111. * src/OptionHandlerFactory.cc
  112. * src/main.cc
  113. * src/prefs.cc
  114. * src/prefs.h
  115. * src/usage_text.h
  116. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  117. Updated usage text for --bt-prioritize-piece option.
  118. * doc/aria2c.1.txt
  119. * src/usage_text.h
  120. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  121. In configure script, if --with-PACKAGE and --enable-FEATURE are
  122. given and PACKAGE is missing in the system or FEATURE cannot be
  123. enabled, print error message and stop the script.
  124. * configure.ac
  125. * m4/aria2_arg.m4
  126. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  127. Halt metadata download immediately when metadata download is done.
  128. Don't wait unresponsive tracker.
  129. * src/ByteArrayDiskWriter.h
  130. * src/DefaultBtInteractive.cc
  131. * src/DefaultExtensionMessageFactory.cc
  132. * src/DefaultExtensionMessageFactory.h
  133. * src/PeerInteractionCommand.cc
  134. * src/UTMetadataDataExtensionMessage.cc
  135. * src/UTMetadataDataExtensionMessage.h
  136. * src/UTMetadataRequestExtensionMessage.cc
  137. * test/UTMetadataDataExtensionMessageTest.cc
  138. * test/UTMetadataRequestExtensionMessageTest.cc
  139. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  140. Documented --interface option in man page.
  141. * doc/aria2c.1.txt
  142. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  143. Try resolved address in the order received from the resolver.
  144. * src/DNSCache.h
  145. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  146. Added debug logs.
  147. * src/SocketCore.cc
  148. 2009-12-03 Tatsuhiro Tsujikawa <[email protected]>
  149. Fixed type of tail to uint64_t
  150. * src/util.cc
  151. 2009-12-03 Tatsuhiro Tsujikawa <[email protected]>
  152. Added --interface option. This feature binds sockets to given
  153. interface. You can specify interface name, IP address and
  154. hostname.
  155. * configure.ac
  156. * src/OptionHandlerFactory.cc
  157. * src/SocketCore.cc
  158. * src/SocketCore.h
  159. * src/main.cc
  160. * src/message.h
  161. * src/prefs.cc
  162. * src/prefs.h
  163. * src/usage_text.h
  164. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  165. Updated man page for bt-prioritize-piece option in -i list.
  166. * doc/aria2c.1.txt
  167. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  168. Added bt-prioritize-piece option to -i list.
  169. * src/download_helper.cc
  170. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  171. Removed --http-auth-scheme option from man page.
  172. * doc/aria2c.1.txt
  173. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  174. Removed --http-auth-scheme option since it doesn't do nothing.
  175. * src/OptionHandlerFactory.cc
  176. * src/prefs.cc
  177. * src/prefs.h
  178. * src/usage_text.h
  179. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  180. Adjusted the number of peer info which get_peers reply message can
  181. carry.
  182. * src/DHTGetPeersReplyMessage.cc
  183. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  184. Added extension_message_test_helper.h to aria2c_SOURCES.
  185. * test/Makefile.am
  186. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  187. Documented --bt-prioritize-piece option in man page.
  188. * doc/aria2c.1.txt
  189. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  190. Added option --bt-prioritize-piece. This option instruct aria2 to
  191. try to download first and last pieces of each file first. The
  192. argument can contain 2 keywords:head and tail. To include both
  193. keywords, they must be separated by comma. These keywords can take
  194. one parameter, SIZE. For example , if head=SIZE is specified,
  195. pieces in the range of first SIZE bytes of each file get higher
  196. priority. tail=SIZE means the range of last SIZE bytes of each
  197. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  198. * src/DefaultPieceStorage.h
  199. * src/Makefile.am
  200. * src/OptionHandlerFactory.cc
  201. * src/OptionHandlerImpl.h
  202. * src/PriorityPieceSelector.cc
  203. * src/PriorityPieceSelector.h
  204. * src/RequestGroup.cc
  205. * src/prefs.cc
  206. * src/prefs.h
  207. * src/usage_text.h
  208. * src/util.cc
  209. * src/util.h
  210. * test/Makefile.am
  211. * test/MockPieceSelector.h
  212. * test/PriorityPieceSelectorTest.cc
  213. * test/UtilTest.cc
  214. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  215. Fixed typo
  216. * src/HttpRequest.h
  217. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  218. In Magnet URI with tr parameter, put each announce URI in separate
  219. tier.
  220. * src/bittorrent_helper.cc
  221. * test/BittorrentHelperTest.cc
  222. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  223. Renamed ExtensionMessage::getBencodedData() as
  224. ExtensionMessage::getPayload()
  225. * src/BtExtendedMessage.cc
  226. * src/ExtensionMessage.h
  227. * src/HandshakeExtensionMessage.cc
  228. * src/HandshakeExtensionMessage.h
  229. * src/UTMetadataDataExtensionMessage.cc
  230. * src/UTMetadataDataExtensionMessage.h
  231. * src/UTMetadataRejectExtensionMessage.cc
  232. * src/UTMetadataRejectExtensionMessage.h
  233. * src/UTMetadataRequestExtensionMessage.cc
  234. * src/UTMetadataRequestExtensionMessage.h
  235. * src/UTPexExtensionMessage.cc
  236. * src/UTPexExtensionMessage.h
  237. * test/HandshakeExtensionMessageTest.cc
  238. * test/MockExtensionMessage.h
  239. * test/UTMetadataDataExtensionMessageTest.cc
  240. * test/UTMetadataRejectExtensionMessageTest.cc
  241. * test/UTMetadataRequestExtensionMessageTest.cc
  242. * test/UTPexExtensionMessageTest.cc
  243. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  244. Updated man page for BitTorrent Magnet URI.
  245. * doc/aria2c.1.txt
  246. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  247. Call DownloadContext::setOwnerRequestGroup() in
  248. RequestGroup::setDownloadContext().
  249. * src/BtDependency.cc
  250. * src/RequestGroup.cc
  251. * src/RequestGroup.h
  252. * src/download_helper.cc
  253. * test/DefaultBtMessageDispatcherTest.cc
  254. * test/DefaultExtensionMessageFactoryTest.cc
  255. * test/HandshakeExtensionMessageTest.cc
  256. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  257. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  258. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  259. from metadata, use new metadata2Torrent() function.
  260. * src/BtDependency.cc
  261. * src/UTMetadataPostDownloadHandler.cc
  262. * src/bittorrent_helper.cc
  263. * src/bittorrent_helper.h
  264. * test/BittorrentHelperTest.cc
  265. * test/BtDependencyTest.cc
  266. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  267. Use createRequestGroupForUri to create the download for torrent
  268. file.
  269. * src/Metalink2RequestGroup.cc
  270. * test/Metalink2RequestGroupTest.cc
  271. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  272. Fixed typo
  273. * src/DownloadContext.h
  274. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  275. Use createRequestGroupForBitTorrent()
  276. * src/BtPostDownloadHandler.cc
  277. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  278. Added remove().
  279. * src/Option.cc
  280. * src/Option.h
  281. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  282. Removed options which is only valid for URIs specified in
  283. command-line. If they are left, because op is used as a template
  284. for new RequestGroup(such as created in XML-RPC command,
  285. BtPostDownloadHandler etc), they causes unintentional effect.
  286. * src/main.cc
  287. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  288. Refer to option value of PREF_OUT only in download_helper.
  289. * src/FtpNegotiationCommand.cc
  290. * src/HttpResponseCommand.cc
  291. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  292. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  293. * src/download_helper.cc
  294. * src/download_helper.h
  295. * src/XmlRpcMethodImpl.cc
  296. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  297. Updated man page for changeOption XML-RPC method.
  298. * doc/aria2c.1.txt
  299. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  300. Added --bt-max-peers option to changeOption XML-RPC method.
  301. * src/XmlRpcMethod.cc
  302. * src/XmlRpcMethodImpl.cc
  303. * test/XmlRpcMethodTest.cc
  304. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  305. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  306. * test/XmlRpcMethodTest.cc
  307. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  308. Removed redundant DownloadContext::hasAttribute(...) calls.
  309. * src/ConsoleStatCalc.cc
  310. * src/RequestGroup.cc
  311. * src/XmlRpcMethodImpl.cc
  312. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  313. Changed the number of tracker request attempt from 5 to 2.
  314. * src/TrackerWatcherCommand.cc
  315. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  316. Use host and protocol in original URI, because URI selector
  317. selects URI based on original URI, not redirected one.
  318. * src/Request.cc
  319. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  320. Fixed the bug which causes segmentation fault with tellWaiting
  321. XML-RPC method when BitTorrent download is waiting. The key of
  322. BtRegistry is changed from info hash to GID, because it is
  323. registered per RequestGroup, not info hash.
  324. * src/BtRegistry.cc
  325. * src/BtRegistry.h
  326. * src/BtSetup.cc
  327. * src/ConsoleStatCalc.cc
  328. * src/InitiatorMSEHandshakeCommand.cc
  329. * src/PeerInitiateConnectionCommand.cc
  330. * src/PeerInteractionCommand.cc
  331. * src/PeerInteractionCommand.h
  332. * src/PeerReceiveHandshakeCommand.cc
  333. * src/RequestGroup.cc
  334. * src/XmlRpcMethodImpl.cc
  335. * test/BtRegistryTest.cc
  336. * test/XmlRpcMethodTest.cc
  337. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  338. Updated man page for changeOption XML-RPC method.
  339. * doc/aria2c.1.txt
  340. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  341. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  342. method.
  343. * src/XmlRpcMethod.cc
  344. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  345. Documented about BitTorrent Magnet URI in man page.
  346. * doc/aria2c.1.txt
  347. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  348. Fixed the bug that trackers in BitTorrent Magnet URI are not
  349. inherited to generated RequestGroup.
  350. * src/UTMetadataPostDownloadHandler.cc
  351. * test/UTMetadataPostDownloadHandlerTest.cc
  352. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  353. Prepended "[METADATA]" before dn.
  354. * src/bittorrent_helper.cc
  355. * test/BittorrentHelperTest.cc
  356. 2009-11-24 Tatsuhiro Tsujikawa <[email protected]>
  357. Rewritten Magnet URI parser.
  358. * src/Makefile.am
  359. * src/ProtocolDetector.cc
  360. * src/bittorrent_helper.cc
  361. * src/bittorrent_helper.h
  362. * src/download_helper.cc
  363. * src/magnet.cc
  364. * src/magnet.h
  365. * test/BittorrentHelperTest.cc
  366. * test/MagnetTest.cc
  367. * test/Makefile.am
  368. * test/ProtocolDetectorTest.cc
  369. 2009-11-24 Tatsuhiro Tsujikawa <[email protected]>
  370. Use hton64
  371. * src/base32.cc
  372. 2009-11-24 Tatsuhiro Tsujikawa <[email protected]>
  373. Added Base32 encoded BitTorrent Magnet Link support.
  374. * src/Makefile.am
  375. * src/base32.cc
  376. * src/base32.h
  377. * src/bittorrent_helper.cc
  378. * test/Base32Test.cc
  379. * test/BittorrentHelperTest.cc
  380. * test/Makefile.am
  381. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  382. Added BitTorrent Magnet Link support. Base32 encoded link is not
  383. supported yet. Fixed typo in method name in RequestGroup. In
  384. metadataGetMode, don't show "Your share ratio was ..." message.
  385. * src/DefaultBtInteractive.cc
  386. * src/DefaultBtInteractive.h
  387. * src/DownloadHandlerFactory.cc
  388. * src/DownloadHandlerFactory.h
  389. * src/HandshakeExtensionMessage.cc
  390. * src/Makefile.am
  391. * src/Metalink2RequestGroup.cc
  392. * src/PeerInteractionCommand.cc
  393. * src/RequestGroup.cc
  394. * src/RequestGroup.h
  395. * src/UTMetadataPostDownloadHandler.cc
  396. * src/UTMetadataPostDownloadHandler.h
  397. * src/download_helper.cc
  398. * test/HandshakeExtensionMessageTest.cc
  399. * test/Makefile.am
  400. * test/UTMetadataPostDownloadHandlerTest.cc
  401. * test/UTMetadataRejectExtensionMessageTest.cc
  402. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  403. In metadataGetMode, don't show SEEDING.
  404. * src/ConsoleStatCalc.cc
  405. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  406. Fixed ut_metadata data handling. Implemented
  407. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  408. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  409. metadata_size is received.
  410. * src/DefaultExtensionMessageFactory.cc
  411. * src/DefaultExtensionMessageFactory.h
  412. * src/HandshakeExtensionMessage.cc
  413. * src/HandshakeExtensionMessage.h
  414. * src/UTMetadataDataExtensionMessage.cc
  415. * src/UTMetadataDataExtensionMessage.h
  416. * src/UTMetadataRequestExtensionMessage.cc
  417. * src/UTMetadataRequestFactory.cc
  418. * src/UTMetadataRequestFactory.h
  419. * src/UTMetadataRequestTracker.cc
  420. * src/UTMetadataRequestTracker.h
  421. * test/DefaultExtensionMessageFactoryTest.cc
  422. * test/HandshakeExtensionMessageTest.cc
  423. * test/MockBtMessage.h
  424. * test/UTMetadataDataExtensionMessageTest.cc
  425. * test/UTMetadataRequestExtensionMessageTest.cc
  426. * test/UTMetadataRequestFactoryTest.cc
  427. * test/UTMetadataRequestTrackerTest.cc
  428. * test/extension_message_test_helper.h
  429. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  430. Drop connection if ut_metadata reject message is received.
  431. * src/UTMetadataRejectExtensionMessage.cc
  432. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  433. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  434. get high enough in that mode.
  435. * src/ActivePeerConnectionCommand.cc
  436. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  437. Added BitTorrent magnet link support to ProtocolDetector.
  438. * src/ProtocolDetector.cc
  439. * src/ProtocolDetector.h
  440. * test/ProtocolDetectorTest.cc
  441. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  442. Don't inject validator into BtMessage in metadataGetMode because
  443. most of the checks depends on the total length of download but it
  444. is unknown. Delegate metadataGetMode to BtMessage.
  445. * src/DefaultBtMessageFactory.cc
  446. * src/DefaultBtMessageFactory.h
  447. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  448. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  449. * src/DefaultPieceStorage.h
  450. * src/PieceStorage.h
  451. * src/UnknownLengthPieceStorage.h
  452. * test/MockPieceStorage.h
  453. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  454. Added markTotalLengthIsKnown().
  455. * src/DownloadContext.h
  456. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  457. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  458. missing. If metadata is missing, always use DHT when it is ready.
  459. * src/BtSetup.cc
  460. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  461. Added parseMagnetLink(). Hex encoded info hash is supported.
  462. Base32 encoded info hash is not supported yet.
  463. * src/bittorrent_helper.cc
  464. * src/bittorrent_helper.h
  465. * test/BittorrentHelperTest.cc
  466. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  467. Added FromHex()
  468. * src/util.cc
  469. * src/util.h
  470. * test/UtilTest.cc
  471. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  472. Added _metadataGetMode member variable. It toggles the action when
  473. messages are received: usually they almost do nothing if
  474. _metadataGetMode is true.
  475. * src/AbstractBtMessage.cc
  476. * src/AbstractBtMessage.h
  477. * src/BtAllowedFastMessage.cc
  478. * src/BtBitfieldMessage.cc
  479. * src/BtCancelMessage.cc
  480. * src/BtChokeMessage.cc
  481. * src/BtHaveAllMessage.cc
  482. * src/BtHaveMessage.cc
  483. * src/BtInterestedMessage.cc
  484. * src/BtNotInterestedMessage.cc
  485. * src/BtPieceMessage.cc
  486. * src/BtRejectMessage.cc
  487. * src/BtRequestMessage.cc
  488. * src/BtUnchokeMessage.cc
  489. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  490. Added bencode::decode overload functions. They have extra argument
  491. 'end', passed by reference. 'end' points to the beyond the last
  492. position of data used in decoding process.
  493. * src/bencode.cc
  494. * src/bencode.h
  495. * test/BencodeTest.cc
  496. 2009-11-21 Tatsuhiro Tsujikawa <[email protected]>
  497. Initial support of Extension for Peers to Send Metadata
  498. Files(BEP9). Currently aria2 only serves metadata and cannot get
  499. metadata from swarm.
  500. * src/BtConstants.h
  501. * src/DefaultBtInteractive.cc
  502. * src/DefaultExtensionMessageFactory.cc
  503. * src/DefaultExtensionMessageFactory.h
  504. * src/ExtensionMessage.h
  505. * src/ExtensionMessageRegistry.h
  506. * src/HandshakeExtensionMessage.cc
  507. * src/HandshakeExtensionMessage.h
  508. * src/Makefile.am
  509. * src/PeerConnection.h
  510. * src/PeerInteractionCommand.cc
  511. * src/UTMetadataDataExtensionMessage.cc
  512. * src/UTMetadataDataExtensionMessage.h
  513. * src/UTMetadataExtensionMessage.cc
  514. * src/UTMetadataExtensionMessage.h
  515. * src/UTMetadataRejectExtensionMessage.cc
  516. * src/UTMetadataRejectExtensionMessage.h
  517. * src/UTMetadataRequestExtensionMessage.cc
  518. * src/UTMetadataRequestExtensionMessage.h
  519. * src/bittorrent_helper.cc
  520. * src/bittorrent_helper.h
  521. * test/BittorrentHelperTest.cc
  522. * test/DefaultExtensionMessageFactoryTest.cc
  523. * test/HandshakeExtensionMessageTest.cc
  524. * test/Makefile.am
  525. * test/UTMetadataDataExtensionMessageTest.cc
  526. * test/UTMetadataRejectExtensionMessageTest.cc
  527. * test/UTMetadataRequestExtensionMessageTest.cc
  528. 2009-11-21 Tatsuhiro Tsujikawa <[email protected]>
  529. Cancel segment in prepareForRetry() because there is a chance that
  530. the command has segments.
  531. * src/CreateRequestCommand.cc
  532. 2009-11-20 Tatsuhiro Tsujikawa <[email protected]>
  533. Fixed the bug that slow server is not knocked down in favor of
  534. faster one.
  535. * src/AbstractCommand.cc
  536. * src/DefaultPieceStorage.cc
  537. * src/DefaultPieceStorage.h
  538. * src/PieceStorage.h
  539. * src/UnknownLengthPieceStorage.cc
  540. * src/UnknownLengthPieceStorage.h
  541. * test/MockPieceStorage.h
  542. 2009-11-20 Tatsuhiro Tsujikawa <[email protected]>
  543. Fixed the bug that Request object is not added to
  544. _inFlightRequests in findFasterRequest().
  545. * src/FileEntry.cc
  546. 2009-11-18 Tatsuhiro Tsujikawa <[email protected]>
  547. Changed the strategry of how to increase the number of outstanding
  548. requests. Now the number is doubled if there are no outstanding
  549. requests after receiving messages.
  550. * src/BtConstants.h
  551. * src/DefaultBtInteractive.cc
  552. * src/DefaultBtInteractive.h
  553. 2009-11-18 Tatsuhiro Tsujikawa <[email protected]>
  554. Check socket for reading if there are outstanding requests.
  555. * src/PeerInteractionCommand.cc
  556. 2009-11-17 Tatsuhiro Tsujikawa <[email protected]>
  557. Moved frequently called methods to header file so they get
  558. inlined.
  559. * src/RequestSlot.cc
  560. * src/RequestSlot.h
  561. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  562. Copied in_addr instead of just casting from char* which might
  563. violate strict aliasing rules.
  564. * src/AsyncNameResolver.cc
  565. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  566. Use dynamic_pointer_cast
  567. * test/BtPieceMessageTest.cc
  568. * test/BtRequestMessageTest.cc
  569. * test/DefaultBtRequestFactoryTest.cc
  570. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  571. Added testSetUrl20()
  572. * test/RequestTest.cc
  573. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  574. Code cleanup
  575. * src/bittorrent_helper.cc
  576. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  577. Use C++ style cast
  578. * src/AsyncNameResolver.cc
  579. * src/Base64.h
  580. * src/BtBitfieldMessage.cc
  581. * src/BtHandshakeMessage.cc
  582. * src/DefaultBtMessageFactory.cc
  583. * src/DefaultBtProgressInfoFile.cc
  584. * src/EpollEventPoll.cc
  585. * src/ExpatMetalinkProcessor.cc
  586. * src/IteratableChecksumValidator.cc
  587. * src/IteratableChunkChecksumValidator.cc
  588. * src/MessageDigestHelper.cc
  589. * src/Platform.cc
  590. * src/RequestGroupMan.cc
  591. * src/SingleFileAllocationIterator.cc
  592. * src/Sqlite3MozCookieParser.cc
  593. * src/XML2SAXMetalinkProcessor.cc
  594. * src/Xml2XmlRpcRequestProcessor.cc
  595. * src/util.cc
  596. * src/util.h
  597. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  598. Fixed integer potential alignment problem.
  599. * src/bitfield.h
  600. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  601. Applied a patch from tizianomueller to fix sigbus errors on Linux
  602. sparc. I modified the patch to eliminate a cast to uint32_t* and
  603. include file ordering.
  604. * src/PeerListProcessor.h
  605. * src/bittorrent_helper.cc
  606. 2009-11-13 Tatsuhiro Tsujikawa <[email protected]>
  607. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  608. * src/Request.cc
  609. * src/util.cc
  610. * src/util.h
  611. * test/RequestTest.cc
  612. 2009-11-13 Tatsuhiro Tsujikawa <[email protected]>
  613. Rewritten util::uitos()
  614. * src/util.h
  615. 2009-11-13 Tatsuhiro Tsujikawa <[email protected]>
  616. Code cleanup
  617. * src/Request.cc
  618. * src/Request.h
  619. 2009-11-12 Tatsuhiro Tsujikawa <[email protected]>
  620. Rewritten Request::parseUrl()
  621. * src/Request.cc
  622. * test/RequestTest.cc
  623. 2009-11-11 Tatsuhiro Tsujikawa <[email protected]>
  624. Removed unused macro SAFE_CHARS
  625. * src/Request.cc
  626. 2009-11-11 Tatsuhiro Tsujikawa <[email protected]>
  627. Updated doc
  628. * src/DHTRoutingTableDeserializer.cc
  629. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  630. Release 1.6.3
  631. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  632. Removed unused function.
  633. * test/DHTPeerAnnounceStorageTest.cc
  634. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  635. Only decrement cols if cols > 0
  636. * src/ConsoleStatCalc.cc
  637. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  638. Updated Polish, Catalan, French, Italian, Russian and Japanese
  639. translations. Thanks to all translators.
  640. * po/ca.po
  641. * po/fr.po
  642. * po/it.po
  643. * po/ja.po
  644. * po/pl.po
  645. * po/ru.po
  646. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  647. Updated translation template
  648. * po
  649. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  650. Fixed compile error without ssl library.
  651. * src/util.cc
  652. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  653. Logged received nodes in get_peers reply message.
  654. * src/DHTAbstractNodeLookupTask.cc
  655. * src/DHTAbstractNodeLookupTask.h
  656. 2009-11-01 Tatsuhiro Tsujikawa <[email protected]>
  657. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  658. error occurred in DHTMessageDispatcherImpl::sendMessage().
  659. * src/DHTMessageDispatcherImpl.cc
  660. 2009-11-01 Tatsuhiro Tsujikawa <[email protected]>
  661. Don't reuse URI if Request pool is not empty.
  662. * src/CreateRequestCommand.cc
  663. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  664. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  665. receive get_peers request for torrent which the client is now
  666. downloading.
  667. * src/BtSetup.cc
  668. * src/DHTPeerAnnounceEntry.cc
  669. * src/DHTPeerAnnounceEntry.h
  670. * src/DHTPeerAnnounceStorage.cc
  671. * src/DHTPeerAnnounceStorage.h
  672. * src/RequestGroup.cc
  673. * test/DHTPeerAnnounceEntryTest.cc
  674. * test/DHTPeerAnnounceStorageTest.cc
  675. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  676. Fixed the bug that in Windows environment new blank line is
  677. inserted when console readout is updated.
  678. * src/ConsoleStatCalc.cc
  679. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  680. Throw exception if binding listening port is failed. Removed
  681. RequestGroupMan::getInitialCommand(). Use
  682. fillRequestGroupFromReserver() instead. Delete commands for
  683. RequestGroup which has errors when it is being added.
  684. * src/BtSetup.cc
  685. * src/DownloadEngine.cc
  686. * src/DownloadEngine.h
  687. * src/DownloadEngineFactory.cc
  688. * src/MultiUrlRequestInfo.cc
  689. * src/RequestGroupMan.cc
  690. * src/RequestGroupMan.h
  691. * test/RequestGroupManTest.cc
  692. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  693. Fixed the bug that when downloading more than one torrent,
  694. listening port is not reported properly to tracker for 2nd or
  695. later torrents.
  696. * src/BtSetup.cc
  697. * src/PeerListenCommand.cc
  698. * src/PeerListenCommand.h
  699. * src/RequestGroup.cc
  700. 2009-10-29 Tatsuhiro Tsujikawa <[email protected]>
  701. Bump up version number to 1.6.3
  702. * configure.ac
  703. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  704. Removed Util.cc from POTFILES.in
  705. * po/POTFILES.in
  706. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  707. Updated man page for previous change.
  708. * doc/aria2c.1.txt
  709. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  710. If user name is embedded but password is missing in URI, first
  711. resolve password using .netrc. If password is found in .netrc,
  712. then use it as password. If not, use the password specified in
  713. --ftp-passwd.
  714. * src/AuthConfigFactory.cc
  715. * src/Request.cc
  716. * src/Request.h
  717. * test/AuthConfigFactoryTest.cc
  718. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  719. Fixed typo
  720. * doc/aria2c.1.txt
  721. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  722. Fixed typo
  723. * src/usage_text.h
  724. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  725. Added missing bitfield.cc
  726. * src/bitfield.cc
  727. 2009-10-23 Tatsuhiro Tsujikawa <[email protected]>
  728. Renamed Util.{cc,h} as util.{cc,h}
  729. * src/Util.cc
  730. * src/Util.h
  731. * src/util.cc
  732. * src/util.h
  733. 2009-10-22 Tatsuhiro Tsujikawa <[email protected]>
  734. Moved static functions in Util class to namespace util.
  735. * src
  736. * test
  737. 2009-10-22 Tatsuhiro Tsujikawa <[email protected]>
  738. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  739. Moved generateRandomKey to bittorrent_helper.cc.
  740. * src/DHTBucket.cc
  741. * src/DHTGetPeersMessage.cc
  742. * src/DHTGetPeersReplyMessage.cc
  743. * src/DHTMessage.cc
  744. * src/DHTNode.cc
  745. * src/DHTTokenTracker.cc
  746. * src/DHTUtil.cc: Removed.
  747. * src/DHTUtil.h: Removed.
  748. * src/Makefile.am
  749. * src/Util.cc
  750. * src/Util.h
  751. * src/bitfield.h
  752. * src/bittorrent_helper.cc
  753. * src/bittorrent_helper.h
  754. * test/ARC4Test.cc
  755. * test/BNodeTest.cc
  756. * test/DHTAnnouncePeerMessageTest.cc
  757. * test/DHTAnnouncePeerReplyMessageTest.cc
  758. * test/DHTFindNodeMessageTest.cc
  759. * test/DHTFindNodeReplyMessageTest.cc
  760. * test/DHTGetPeersMessageTest.cc
  761. * test/DHTGetPeersReplyMessageTest.cc
  762. * test/DHTPingMessageTest.cc
  763. * test/DHTPingReplyMessageTest.cc
  764. * test/DHTTokenTrackerTest.cc
  765. * test/DHTUtilTest.cc: Removed.
  766. * test/Makefile.am
  767. * test/UtilTest.cc
  768. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  769. Removed the call to trim() because trim() is called for each
  770. element in split().
  771. * src/CookieParser.cc
  772. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  773. Replaced Util::slice() with split()
  774. * src/AbstractCommand.cc
  775. * src/CookieParser.cc
  776. * src/File.cc
  777. * src/HttpHeaderProcessor.cc
  778. * src/HttpRequest.cc
  779. * src/Metalink2RequestGroup.cc
  780. * src/MetalinkParserController.cc
  781. * src/Netrc.cc
  782. * src/NsCookieParser.cc
  783. * src/ParameterizedStringParser.cc
  784. * src/ServerStatMan.cc
  785. * src/UriListParser.cc
  786. * src/Util.cc
  787. * src/Util.h
  788. * src/bittorrent_helper.cc
  789. * test/UtilTest.cc
  790. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  791. Use request->getDir() instead of "/" for embedded user/pass in
  792. URI.
  793. * src/AuthConfigFactory.cc
  794. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  795. Fixed wrong insertion point for BasicCred.
  796. * src/AuthConfigFactory.cc
  797. 2009-10-17 Tatsuhiro Tsujikawa <[email protected]>
  798. Allowed non-regular file in LocalFilePathOptionHandler
  799. * src/OptionHandlerImpl.h
  800. * src/message.h
  801. 2009-10-17 Tatsuhiro Tsujikawa <[email protected]>
  802. Fixed the bug that Netrc::parse() cannot recognize comment line.
  803. * src/Netrc.cc
  804. * src/Util.h
  805. * test/NetrcTest.cc
  806. * test/sample.netrc
  807. 2009-10-13 Tatsuhiro Tsujikawa <[email protected]>
  808. Fixed typo
  809. * src/BtDependency.cc
  810. * src/BtRejectMessage.cc
  811. * src/FtpConnection.cc
  812. * src/HttpHeaderProcessor.h
  813. 2009-10-13 Tatsuhiro Tsujikawa <[email protected]>
  814. Fixed lintian report in man page
  815. * doc/aria2c.1.txt
  816. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  817. Release 1.6.2
  818. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  819. Updated Ukrainian translation. Thanks to all translators.
  820. * po/uk.po
  821. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  822. Updated translation template
  823. * po
  824. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  825. Bump up version number to 1.6.2
  826. * configure.ac
  827. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  828. Updated licence message in -v output.
  829. * src/version_usage.cc
  830. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  831. Replaced aria2 with aria2c in help message.
  832. * src/version_usage.cc
  833. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  834. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  835. * src/version_usage.cc
  836. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  837. Quoted localedir
  838. * src/Makefile.am
  839. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  840. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  841. utime. Check header for utime.h.
  842. * configure.ac
  843. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  844. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  845. * configure.ac
  846. * src/daemon.cc
  847. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  848. Don't set localedir manually. Leave it to autoconf.
  849. * configure.ac
  850. * src/Makefile.am
  851. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  852. Added --install to ACLOCAL_AMFLAGS.
  853. Removed m4 from SUBDIRS.
  854. Updated automake 1.11 and autoconf 2.64.
  855. Replaced some obsolute macros with new one.
  856. * Makefile.am
  857. * configure.ac
  858. * m4/aria2_arg.m4
  859. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  860. Removed Makefile.am in m4 directory.
  861. * configure.ac
  862. * m4/ChangeLog
  863. * m4/Makefile.am
  864. * m4/Makefile.in
  865. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  866. Removed unused m4 macros.
  867. * m4/intldir.m4
  868. * m4/inttypes.m4
  869. * m4/isc-posix.m4
  870. * m4/libgnutls-extra.m4
  871. * m4/ulonglong.m4
  872. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  873. Fixed the bug that causes segmentation fault if
  874. req->getCurrentUrl() contains printf formatting characters such as
  875. %d. The statement that causes this bug is useless and removed.
  876. * src/AbstractCommand.cc
  877. 2009-10-07 Tatsuhiro Tsujikawa <[email protected]>
  878. * Release 1.6.1
  879. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  880. Updated Simplified Chinese translation. Thanks to translators.
  881. * po/zh_CN.po
  882. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  883. Updated translation template
  884. * po
  885. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  886. Bump up version number to 1.6.1
  887. * configure.ac
  888. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  889. Changed interval from 120 to 60 for dropping inactive peer.
  890. * src/DefaultBtInteractive.cc
  891. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  892. Updated man page for --user-agent and --peer-id-prefix option.
  893. * doc/aria2c.1.txt
  894. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  895. Code clean up
  896. * src/BtPostDownloadHandler.cc
  897. * src/ContentTypeRequestGroupCriteria.cc
  898. * src/ContentTypeRequestGroupCriteria.h
  899. * src/DownloadHandlerConstants.cc
  900. * src/DownloadHandlerConstants.h
  901. * src/DownloadHandlerFactory.cc
  902. * src/MetalinkPostDownloadHandler.cc
  903. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  904. Don't save control file when aria2 exists while checking piece
  905. hash(behavior of -V option). If control file doesn't exist when
  906. aria2 launched, the completed length in saved control file will be
  907. 0 byte and this confuses user. disableSaveControlFile() is called
  908. in RequestGroup::processCheckIntegrityEntry().
  909. enableSaveControlFile() will be called after hash checking is
  910. done. See CheckIntegrityCommand.
  911. * src/CheckIntegrityCommand.cc
  912. * src/RequestGroup.cc
  913. * src/RequestGroup.h
  914. * src/RequestGroupMan.cc
  915. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  916. Included version number in Peer ID and client version. Peer ID
  917. now starts with "aria2/VERSION-", where VERSION is
  918. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  919. * src/DefaultBtInteractive.cc
  920. * src/OptionHandlerFactory.cc
  921. * src/bittorrent_helper.cc
  922. * src/bittorrent_helper.h
  923. * src/main.cc
  924. * src/usage_text.h
  925. * test/BittorrentHelperTest.cc
  926. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  927. Fixed memory leak.
  928. * src/DownloadCommand.cc
  929. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  930. Removed server, port, user and passwd key from options before
  931. XMLRPC::Client.call since they are not options of aria2.
  932. * doc/xmlrpc/aria2mon
  933. * doc/xmlrpc/aria2rpc
  934. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  935. Included version number in user-agent string.
  936. * src/OptionHandlerFactory.cc
  937. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  938. Fixed the bug that the option values changed by XML-RPC
  939. method(changeOption and changeGlobalOption) are overwritten to the
  940. previous value by the next these request which doesn't contain
  941. that option value. Supporse max-download-limit is initially 0. You
  942. changed this value to 100K by changeOption. Then you issue
  943. changeOption request to change max-upload-limit to 50K. This
  944. second request doesn't contain xml-download-limit, so it is back
  945. to initial value, 0. Another improvement is that exception is
  946. thrown when changeOption and changeGlobalOption request contains
  947. option name which doesn't allowed in each request.
  948. * src/DownloadEngine.h
  949. * src/XmlRpcMethod.cc
  950. * src/XmlRpcMethod.h
  951. * src/XmlRpcMethodImpl.cc
  952. * src/download_helper.cc
  953. * src/download_helper.h
  954. * test/XmlRpcMethodTest.cc
  955. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  956. Added missing MetalinkParserStateImpl.{cc,h}
  957. * src/MetalinkParserStateImpl.cc
  958. * src/MetalinkParserStateImpl.h
  959. 2009-10-03 Tatsuhiro Tsujikawa <[email protected]>
  960. Put all MetalinkParserState subclasses into
  961. MetalinkParserStateImpl.cc. Use stack to track element structure.
  962. * src/FileMetalinkParserState.cc: Removed
  963. * src/FileMetalinkParserState.h: Removed
  964. * src/FilesMetalinkParserState.cc: Removed
  965. * src/FilesMetalinkParserState.h: Removed
  966. * src/FinMetalinkParserState.cc: Removed
  967. * src/FinMetalinkParserState.h: Removed
  968. * src/HashMetalinkParserState.cc: Removed
  969. * src/HashMetalinkParserState.h: Removed
  970. * src/InitialMetalinkParserState.cc: Removed
  971. * src/InitialMetalinkParserState.h: Removed
  972. * src/LanguageMetalinkParserState.cc: Removed
  973. * src/LanguageMetalinkParserState.h: Removed
  974. * src/Makefile.am
  975. * src/MetalinkMetalinkParserState.cc: Removed
  976. * src/MetalinkMetalinkParserState.h: Removed
  977. * src/MetalinkParserState.h
  978. * src/MetalinkParserStateMachine.cc
  979. * src/MetalinkParserStateMachine.h
  980. * src/OSMetalinkParserState.cc: Removed
  981. * src/OSMetalinkParserState.h: Removed
  982. * src/PieceHashMetalinkParserState.cc: Removed
  983. * src/PieceHashMetalinkParserState.h: Removed
  984. * src/PiecesMetalinkParserState.cc: Removed
  985. * src/PiecesMetalinkParserState.h: Removed
  986. * src/ResourcesMetalinkParserState.cc: Removed
  987. * src/ResourcesMetalinkParserState.h: Removed
  988. * src/SignatureMetalinkParserState.cc: Removed
  989. * src/SignatureMetalinkParserState.h: Removed
  990. * src/SizeMetalinkParserState.cc: Removed
  991. * src/SizeMetalinkParserState.h: Removed
  992. * src/SkipTagMetalinkParserState.cc: Removed
  993. * src/SkipTagMetalinkParserState.h: Removed
  994. * src/URLMetalinkParserState.cc: Removed
  995. * src/URLMetalinkParserState.h: Removed
  996. * src/VerificationMetalinkParserState.cc: Removed
  997. * src/VerificationMetalinkParserState.h: Removed
  998. * src/VersionMetalinkParserState.cc: Removed
  999. * src/VersionMetalinkParserState.h: Removed
  1000. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  1001. Move all functions in PeerMessageUtil to bittorrent_helper.
  1002. * src/BtBitfieldMessage.cc
  1003. * src/BtBitfieldMessageValidator.h
  1004. * src/BtExtendedMessage.cc
  1005. * src/BtHandshakeMessage.cc
  1006. * src/BtHandshakeMessageValidator.h
  1007. * src/BtPieceMessage.cc
  1008. * src/BtPieceMessageValidator.h
  1009. * src/BtPortMessage.cc
  1010. * src/DHTFindNodeReplyMessage.cc
  1011. * src/DHTGetPeersReplyMessage.cc
  1012. * src/DHTMessageFactoryImpl.cc
  1013. * src/DHTRoutingTableDeserializer.cc
  1014. * src/DHTRoutingTableSerializer.cc
  1015. * src/DHTTokenTracker.cc
  1016. * src/DefaultBtMessageFactory.cc
  1017. * src/IndexBtMessage.cc
  1018. * src/IndexBtMessage.h
  1019. * src/IndexBtMessageValidator.h
  1020. * src/Makefile.am
  1021. * src/PeerMessageUtil.cc: Removed.
  1022. * src/PeerMessageUtil.h: Removed.
  1023. * src/RangeBtMessage.cc
  1024. * src/RangeBtMessage.h
  1025. * src/RangeBtMessageValidator.h
  1026. * src/UTPexExtensionMessage.cc
  1027. * src/ZeroBtMessage.cc
  1028. * src/ZeroBtMessage.h
  1029. * src/bittorrent_helper.cc
  1030. * src/bittorrent_helper.h
  1031. * test/BittorrentHelperTest.cc
  1032. * test/BtAllowedFastMessageTest.cc
  1033. * test/BtBitfieldMessageTest.cc
  1034. * test/BtCancelMessageTest.cc
  1035. * test/BtChokeMessageTest.cc
  1036. * test/BtExtendedMessageTest.cc
  1037. * test/BtHandshakeMessageTest.cc
  1038. * test/BtHaveAllMessageTest.cc
  1039. * test/BtHaveMessageTest.cc
  1040. * test/BtHaveNoneMessageTest.cc
  1041. * test/BtInterestedMessageTest.cc
  1042. * test/BtNotInterestedMessageTest.cc
  1043. * test/BtPieceMessageTest.cc
  1044. * test/BtPortMessageTest.cc
  1045. * test/BtRejectMessageTest.cc
  1046. * test/BtRequestMessageTest.cc
  1047. * test/BtSuggestPieceMessageTest.cc
  1048. * test/BtUnchokeMessageTest.cc
  1049. * test/DHTFindNodeReplyMessageTest.cc
  1050. * test/DHTGetPeersReplyMessageTest.cc
  1051. * test/DHTMessageFactoryImplTest.cc
  1052. * test/DHTRoutingTableDeserializerTest.cc
  1053. * test/DHTRoutingTableSerializerTest.cc
  1054. * test/DefaultBtMessageFactoryTest.cc
  1055. * test/DefaultExtensionMessageFactoryTest.cc
  1056. * test/Makefile.am
  1057. * test/PeerListProcessorTest.cc
  1058. * test/PeerMessageUtilTest.cc: Removed.
  1059. * test/UTPexExtensionMessageTest.cc
  1060. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  1061. Limit the size of values list when sending get_peers reply.
  1062. * src/DHTGetPeersReplyMessage.cc
  1063. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  1064. Updated banner
  1065. * doc/xmlrpc/aria2rpc
  1066. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  1067. Added missing help message for remove command.
  1068. * doc/xmlrpc/aria2rpc
  1069. 2009-09-24 Tatsuhiro Tsujikawa <[email protected]>
  1070. Generated configure and config.h.in
  1071. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1072. Add check for fork(), which is missing on MinGW
  1073. * src/daemon.cc
  1074. * configure.ac
  1075. 2009-09-23 Tatsuhiro Tsujikawa <[email protected]>
  1076. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1077. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1078. Util::httpGMT().
  1079. * src/Util.cc
  1080. * src/Util.h
  1081. * test/UtilTest.cc
  1082. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1083. * Release 1.6.0
  1084. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1085. Fixed a path to xmlrpc/README.txt
  1086. * doc/Makefile.am
  1087. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1088. Added XML-RPC in -v Configuration output.
  1089. * src/FeatureConfig.cc
  1090. * src/FeatureConfig.h
  1091. * test/FeatureConfigTest.cc
  1092. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1093. Updated Bulgarian, Russian, Slovak and Japanese
  1094. translations. Thanks to all translators.
  1095. * po/bg.po
  1096. * po/ja.po
  1097. * po/ru.po
  1098. * po/sk.po
  1099. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1100. Removed --retry-wait option from aria2rpc
  1101. * doc/xmlrpc/aria2rpc
  1102. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1103. Removed --retry-wait option from man page.
  1104. * doc/aria2c.1.txt
  1105. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1106. Removed --retry-wait option since the current architecture doesn't
  1107. allow sleep for particular URI.
  1108. * src/AbstractCommand.cc
  1109. * src/OptionHandlerFactory.cc
  1110. * src/download_helper.cc
  1111. * src/prefs.cc
  1112. * src/prefs.h
  1113. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  1114. Removed Retry-After header support. Since the current architecture
  1115. doesn't allow sleep for particular URI.
  1116. * src/HttpSkipResponseCommand.cc
  1117. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  1118. Updated the help message for --daemon option.
  1119. * doc/aria2c.1.txt
  1120. * src/usage_text.h
  1121. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  1122. Added our own daemon() function for systems which desn't have
  1123. daemon(3).
  1124. * configure.ac
  1125. * src/Makefile.am
  1126. * src/daemon.cc
  1127. * src/daemon.h
  1128. * src/option_processing.cc
  1129. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  1130. Simplified File::getCurrentDir()
  1131. * src/File.cc
  1132. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  1133. Use exit() instead of _exit
  1134. * src/RequestGroupMan.cc
  1135. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  1136. Replaced "CATEGORY" with "TAGS".
  1137. * src/usage_text.h
  1138. * doc/aria2c.1.txt
  1139. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  1140. Updated the help message for --help option.
  1141. * src/usage_text.h
  1142. * doc/aria2c.1.txt
  1143. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  1144. Updated man page for added help tags.
  1145. * doc/aria2c.1.txt
  1146. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  1147. Added help category #file. Added #file tag to the options related
  1148. to downloaded file.
  1149. * src/OptionHandlerFactory.cc
  1150. * src/help_tags.h
  1151. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  1152. Added help categories: #cookie and #hook. Added #https tag to
  1153. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1154. * src/OptionHandlerFactory.cc
  1155. * src/help_tags.h
  1156. 2009-09-16 Tatsuhiro Tsujikawa <[email protected]>
  1157. Made MSG_NOT_FILE translatable.
  1158. * src/message.h
  1159. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  1160. Updated man page for --help option.
  1161. * doc/aria2c.1.txt
  1162. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  1163. Updated doc.
  1164. * src/XmlRpcMethod.h
  1165. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  1166. Help category now starts with "#" to distinguish a category from
  1167. keyword search. For example, "http" categroy is now "#http". You
  1168. can type "--help=#http" to get explanation of options related to
  1169. http. If '#' is omitted, then the argument is treated as a keyword
  1170. and aria2 searches options whose name includes the keyword and
  1171. print matched ones. For example, "--help=http" will show options
  1172. whose name includes "http".
  1173. * src/OptionHandlerFactory.cc
  1174. * src/help_tags.h
  1175. * src/usage_text.h
  1176. * src/version_usage.cc
  1177. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  1178. Documented missing experimental tag and newly added xml-rpc tag in
  1179. man page.
  1180. * doc/aria2c.1.txt
  1181. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  1182. Added xml-rpc help tag. Tagged xml-rpc related options with
  1183. xml-rpc tag.
  1184. * src/OptionHandlerFactory.cc
  1185. * src/help_tags.h
  1186. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  1187. Updated message when a path is not a file. Updated common message
  1188. for wrong option.
  1189. * src/OptionHandlerException.cc
  1190. * src/message.h
  1191. 2009-09-10 Tatsuhiro Tsujikawa <[email protected]>
  1192. Use File::isFile() instead of File::exists(). Updated message when
  1193. a path is not a file.
  1194. * src/OptionHandlerImpl.cc
  1195. * src/message.h
  1196. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  1197. Fixed the bug that server performence profile is not updated when
  1198. aria2c was terminated by emergency shutdown.
  1199. * src/TrackerWatcherCommand.cc
  1200. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  1201. Use LocalFilePathOptionHandler for -T and -M option.
  1202. Updated message of MSG_FILE_NOT_EXIST.
  1203. * src/OptionHandlerFactory.cc
  1204. * src/message.h
  1205. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  1206. Added LocalFilePathOptionHandler which check whether the specified
  1207. file path does exist or not.
  1208. * src/OptionHandlerImpl.cc
  1209. * src/message.h
  1210. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  1211. Updated wiki page URI.
  1212. * README
  1213. * doc/aria2c.1.txt
  1214. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  1215. Added README.txt for xmlrpc directory.
  1216. * doc/Makefile.am
  1217. * doc/xmlrpc/README.txt
  1218. 2009-09-06 Tatsuhiro Tsujikawa <[email protected]>
  1219. Bump up version number to 1.6.0.
  1220. * configure.ac
  1221. 2009-09-01 Tatsuhiro Tsujikawa <[email protected]>
  1222. Added XML-RPC client scripts written in ruby.
  1223. * doc/Makefile.am
  1224. * doc/xmlrpc/aria2mon
  1225. * doc/xmlrpc/aria2rpc
  1226. 2009-08-31 Tatsuhiro Tsujikawa <[email protected]>
  1227. Added support for IPv6 literal address in URI. Now aria2 can
  1228. handle URI such as http://[::1]/
  1229. * src/HttpRequest.cc
  1230. * src/HttpRequest.h
  1231. * src/Request.cc
  1232. * src/Request.h
  1233. * test/HttpRequestTest.cc
  1234. * test/OptionHandlerTest.cc
  1235. * test/RequestTest.cc
  1236. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  1237. Fixed the bug that HTTP request header for XML-RPC request is not
  1238. parsed properly.
  1239. * src/HttpHeader.cc
  1240. * src/HttpHeaderProcessor.cc
  1241. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  1242. Fixed the bug that XML-RPC authorization might be done before HTTP
  1243. request header is fully received.
  1244. * src/HttpServerCommand.cc
  1245. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  1246. Documented --xml-rpc-listen-all option in man page.
  1247. * doc/aria2c.1.txt
  1248. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  1249. Added --xml-rpc-listen-all option. If true is given to this
  1250. option, aria2 listens incoming XML-RPC requests on all network
  1251. interfaces. If false is given, listens only on local loopback
  1252. interface. The default value is false.
  1253. * src/HttpListenCommand.cc
  1254. * src/OptionHandlerFactory.cc
  1255. * src/SocketCore.cc
  1256. * src/SocketCore.h
  1257. * src/prefs.cc
  1258. * src/prefs.h
  1259. * src/usage_text.h
  1260. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  1261. * Release 1.5.2
  1262. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  1263. Updated Ukrainian and Russian translations. Thanks to all
  1264. translators.
  1265. * po/ru.po
  1266. * po/uk.po
  1267. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  1268. Bump up version number to 1.5.2
  1269. * configure.ac
  1270. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  1271. Get comment, comment.utf-8, created by and creation date from
  1272. .torrent file and print them in -S output.
  1273. * src/bittorrent_helper.cc
  1274. * src/bittorrent_helper.h
  1275. * test/BittorrentHelperTest.cc
  1276. * test/test.torrent
  1277. * test/utf8.torrent
  1278. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  1279. Show exact file size along in -S option output.
  1280. * src/Util.h
  1281. * src/bittorrent_helper.cc
  1282. * test/UtilTest.cc
  1283. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  1284. Avoided unnecessary memory allocation in
  1285. BitfieldMan::getCompletedLength().
  1286. * src/BitfieldMan.cc
  1287. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  1288. Fixed the bug that download fails if
  1289. SocketCore::establishConnection() throws exception and aria2
  1290. doesn't try another address.
  1291. * src/AbstractCommand.cc
  1292. * src/InitiateConnectionCommand.cc
  1293. * src/message.h
  1294. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  1295. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1296. detected properly.
  1297. * m4/sqlite3.m4
  1298. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  1299. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1300. because it causes compile error if PARAMS macro is defined.
  1301. * src/XmlRpcElements.cc
  1302. * src/XmlRpcElements.h
  1303. * src/XmlRpcRequestParserStateImpl.cc
  1304. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  1305. * Release 1.5.1
  1306. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  1307. Bump up version number to 1.5.1
  1308. * configure.ac
  1309. 2009-07-25 Tatsuhiro Tsujikawa <[email protected]>
  1310. Fixed compile error without BitTorrent support
  1311. * src/DefaultBtProgressInfoFile.cc
  1312. * src/DownloadEngine.cc
  1313. * src/DownloadEngine.h
  1314. 2009-07-24 Tatsuhiro Tsujikawa <[email protected]>
  1315. Added missing '=' in Download Results
  1316. * src/RequestGroupMan.cc
  1317. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1318. Fixed compiler warning
  1319. * src/DefaultBtProgressInfoFile.cc
  1320. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1321. Fixed compiler warning on 32bit systems.
  1322. * src/DownloadCommand.cc
  1323. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1324. Call flush from ServerStatMan::save()
  1325. * src/ServerStatMan.cc
  1326. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1327. Check stream status after file is opened.
  1328. * src/CookieStorage.cc
  1329. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1330. Rewritten Signature::save()
  1331. * src/Signature.cc
  1332. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1333. Rewritten RequestGroupMan::saveServerStat()
  1334. * src/RequestGroupMan.cc
  1335. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1336. Rewritten stream error handling
  1337. * src/DHTAutoSaveCommand.cc
  1338. * src/DHTRoutingTableDeserializer.cc
  1339. * src/DHTRoutingTableSerializer.cc
  1340. * src/DHTSetup.cc
  1341. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1342. Check stream status after file is opened.
  1343. * src/DefaultBtProgressInfoFile.cc
  1344. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1345. Rewritten stream error handling
  1346. * src/DefaultBtProgressInfoFile.cc
  1347. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1348. Make sure that stream is closed before renaming file. Unit test
  1349. fails on mingw32 in the previous implementation.
  1350. * src/CookieStorage.cc
  1351. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1352. Fixed the unit test error without sqlite3
  1353. * test/CookieStorageTest.cc
  1354. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  1355. Fixed the undefined reference error
  1356. * test/HttpResponseTest.cc
  1357. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  1358. * Release 1.5.0
  1359. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  1360. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1361. Ukrainian translations. Thanks to all translators.
  1362. * po/ru.po
  1363. * po/it.po
  1364. * po/da.po
  1365. * po/bg.po
  1366. * po/ja.po
  1367. * po/uk.po
  1368. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  1369. Added missing src/Logger.cc
  1370. * src/Logger.cc
  1371. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  1372. Rewritten Logger to avoiding constly virtual call.
  1373. * src/LogFactory.cc
  1374. * src/LogFactory.h
  1375. * src/Logger.h
  1376. * src/Makefile.am
  1377. * src/Makefile.in
  1378. * src/NullLogger.h: Removed.
  1379. * src/SimpleLogger.cc
  1380. * src/SimpleLogger.h
  1381. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  1382. Updated doc
  1383. * src/main.cc
  1384. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  1385. Updated debug log message
  1386. * src/AbstractCommand.cc
  1387. * src/message.h
  1388. 2009-07-16 Tatsuhiro Tsujikawa <[email protected]>
  1389. Avoid to create zombie process when commands specified in
  1390. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1391. X and NetBSD.
  1392. * src/main.cc
  1393. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1394. Fixed typo
  1395. * src/usage_text.h
  1396. * doc/aria2c.1.txt
  1397. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1398. Documented 'errorCode' of tellStatus in man page.
  1399. * doc/aria2c.1.txt
  1400. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1401. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1402. This key is only available for stopped/completed downloads and its
  1403. value is the error code defined in EXIT STATUS in man page.
  1404. * src/XmlRpcMethodImpl.cc
  1405. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1406. Fixed the bug that session download length is not updated when
  1407. PeerStat is not fastest one.
  1408. * src/SegmentMan.cc
  1409. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1410. Updated doc.
  1411. * doc/aria2c.1.txt
  1412. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1413. Updated doc.
  1414. * src/AbstractCommand.cc
  1415. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  1416. Handle the case when DownloadContext has no FileEntry.
  1417. * src/XmlRpcMethodImpl.cc
  1418. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  1419. Handle the situation where struct option.name is char *.
  1420. * configure.ac
  1421. * src/OptionParser.cc
  1422. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  1423. Code cleanup
  1424. * src/AbstractCommand.cc
  1425. * src/DownloadCommand.cc
  1426. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  1427. Use option of each download to create AuthConfig instead of global
  1428. option.
  1429. * src/AuthConfigFactory.cc
  1430. * src/AuthConfigFactory.h
  1431. * src/FtpNegotiationCommand.cc
  1432. * src/HttpRequest.cc
  1433. * src/HttpRequest.h
  1434. * src/HttpRequestCommand.cc
  1435. * src/HttpSkipResponseCommand.cc
  1436. * src/MultiUrlRequestInfo.cc
  1437. * test/AuthConfigFactoryTest.cc
  1438. * test/FtpConnectionTest.cc
  1439. * test/HttpRequestTest.cc
  1440. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  1441. Don't call prepareForRetry(1) if all segments are ignored in
  1442. SegmentMan.
  1443. * src/AbstractCommand.cc
  1444. * src/BitfieldMan.cc
  1445. * src/BitfieldMan.h
  1446. * src/SegmentMan.cc
  1447. * src/SegmentMan.h
  1448. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  1449. Removed FileEntry::getAssociatedUris()
  1450. * src/FileEntry.h
  1451. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  1452. Updated doc: TODO1.5 -> TODO
  1453. * src/FileEntry.cc
  1454. * src/HttpResponseCommand.cc
  1455. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  1456. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1457. involved.
  1458. * src/RequestGroup.cc
  1459. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  1460. Eliminated duplicated filterBitfield initialization code.
  1461. * src/BitfieldMan.cc
  1462. * src/BitfieldMan.h
  1463. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  1464. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1465. relatively naive approach, though). For DownloadFailureException,
  1466. we handle the case when req is null properly.
  1467. * src/AbstractCommand.cc
  1468. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  1469. Added function returning suffix of control file to
  1470. DefaultBtProgressInfoFile.
  1471. * src/DefaultBtProgressInfoFile.cc
  1472. * src/DefaultBtProgressInfoFile.h
  1473. * src/RequestGroup.cc
  1474. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  1475. Documented getVersion in man page.
  1476. * doc/aria2c.1.txt
  1477. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  1478. Documented type of offset and num for tellWaiting xml-rpc method.
  1479. * doc/aria2c.1.txt
  1480. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  1481. Implemented getVersion xml-rpc method. This method returns struct
  1482. which has 2 key-value pairs: "version" key is associated to the
  1483. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1484. associated to the list of enabled features, such as "Async DNS",
  1485. "BitTorrent".
  1486. * src/FeatureConfig.h
  1487. * src/XmlRpcMethodFactory.cc
  1488. * src/XmlRpcMethodImpl.cc
  1489. * src/XmlRpcMethodImpl.h
  1490. * test/XmlRpcMethodTest.cc
  1491. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  1492. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1493. for compatibility issue.
  1494. * src/SocketCore.cc
  1495. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  1496. Fixed compile error with openSSL
  1497. * src/bittorrent_helper.cc
  1498. * src/messageDigest.h
  1499. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  1500. Removed bad code: setting certificate type priority to key
  1501. exchange priority.
  1502. * src/SocketCore.cc
  1503. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  1504. Disconnect seeder if client is also in seed state.
  1505. * src/BtBitfieldMessage.cc
  1506. * src/BtHaveAllMessage.cc
  1507. * src/BtHaveMessage.cc
  1508. * src/message.h
  1509. * test/BtBitfieldMessageTest.cc
  1510. * test/BtHaveAllMessageTest.cc
  1511. * test/BtHaveMessageTest.cc
  1512. * test/MockPieceStorage.h
  1513. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  1514. Keep CreateRequestCommand in queue when no segment is available so
  1515. that they can pick up pieces which slow BitTorrent peers are
  1516. downloading.
  1517. * src/AbstractCommand.cc
  1518. * src/CreateRequestCommand.cc
  1519. * src/CreateRequestCommand.h
  1520. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  1521. --bt-stop-timeout now only checks download speed.
  1522. * src/BtStopDownloadCommand.cc
  1523. * src/BtStopDownloadCommand.h
  1524. * src/BtSetup.cc
  1525. * src/usage_text.h
  1526. * doc/aria2c.1.txt
  1527. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1528. Fixed compile error regarding BUFSIZE.
  1529. * src/DownloadCommand.cc
  1530. * src/DownloadCommand.h
  1531. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1532. Documented tellWaiting xml-rpc method in man page.
  1533. * doc/aria2c.1.txt
  1534. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1535. Bump up version number to 1.5.0
  1536. * configure.ac
  1537. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1538. Removed resolved TODO1.5
  1539. * src/AbstractCommand.cc
  1540. * src/DownloadCommand.cc
  1541. * src/RequestGroup.cc
  1542. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1543. Release pooled and in-flight Request objectsand URIResult objects
  1544. in FileEntry after download completed.
  1545. * src/DownloadContext.cc
  1546. * src/DownloadContext.h
  1547. * src/FileEntry.cc
  1548. * src/FileEntry.h
  1549. * src/RequestGroup.cc
  1550. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1551. Set manual and source attribute in aria2c.1.txt
  1552. * doc/aria2c.1.txt
  1553. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1554. Documented that the default value of --use-head is 'false' in man
  1555. page.
  1556. * doc/aria2c.1.txt
  1557. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1558. Added bt-stop-timeout option to -i list.
  1559. * doc/aria2c.1.txt
  1560. * src/download_helper.cc
  1561. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1562. Fixed typo
  1563. * doc/aria2c.1.txt
  1564. * src/usage_text.h
  1565. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1566. Removed peer-id-prefix option from -i list.
  1567. * doc/aria2c.1.txt
  1568. * src/download_helper.cc
  1569. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1570. Fixed typo
  1571. * doc/aria2c.1.txt
  1572. * src/usage_text.h
  1573. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1574. Documented --bt-stop-timeout option in man page.
  1575. * doc/aria2c.1.txt
  1576. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1577. Updated README regarding multi-file torrent web-seeding.
  1578. * doc/README.txt
  1579. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1580. Updated man page regarding multi-file torrent web-seeding.
  1581. * doc/aria2c.1.txt
  1582. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1583. Updated doc
  1584. * src/version_usage.cc
  1585. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1586. Winsock select() doesn't work if no socket is in FD_SET. To
  1587. overcome this problem, a dummy socket is added to FD_SET and it is
  1588. given to select().
  1589. * src/SelectEventPoll.cc
  1590. * src/SelectEventPoll.h
  1591. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1592. Disabled --use-head option by default because --use-head=true
  1593. causes problems on some web sites.
  1594. * src/OptionHandlerFactory.cc
  1595. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1596. Print URL List in -S option for torrent.
  1597. * src/bittorrent_helper.cc
  1598. * src/bittorrent_helper.h
  1599. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1600. Allocate buffer in ctor of DownloadCommand.
  1601. * src/DownloadCommand.cc
  1602. * src/DownloadCommand.h
  1603. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1604. Removed DiskAdaptor::onDownloadComplete()
  1605. * src/DirectDiskAdaptor.cc
  1606. * src/DirectDiskAdaptor.h
  1607. * src/DiskAdaptor.h
  1608. * src/MultiDiskAdaptor.cc
  1609. * src/MultiDiskAdaptor.h
  1610. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1611. Committed missing BtStopDownloadCommand.{cc,h}
  1612. * src/BtStopDownloadCommand.cc
  1613. * src/BtStopDownloadCommand.h
  1614. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1615. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1616. download if the download speed is 0 and the number of seeder is 0
  1617. in consecutive SEC seconds. By default, this function is disabled.
  1618. * src/BtSetup.cc
  1619. * src/Makefile.am
  1620. * src/OptionHandlerFactory.cc
  1621. * src/prefs.cc
  1622. * src/prefs.h
  1623. * src/usage_text.h
  1624. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1625. Removed the call to DiskAdaptor::onDownloadComplete() from
  1626. BtCheckIntegrityEntry and DefaultPieceStorage.
  1627. * src/BtCheckIntegrityEntry.cc
  1628. * src/DefaultPieceStorage.cc
  1629. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1630. Commented out throw statements when number of piece is 0 to
  1631. download 0 length torrent.
  1632. * src/bittorrent_helper.cc
  1633. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1634. Call RequestGroup::createNextCommandWithAdj() from
  1635. BtFileAllocationEntry if at least one FileEntry has URI. The
  1636. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1637. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1638. * src/BtFileAllocationEntry.cc
  1639. * src/FileEntry.h
  1640. * src/RequestGroup.cc
  1641. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  1642. Generate peer ID after SimpleRandomizer is initialized.
  1643. * src/main.cc
  1644. * src/option_processing.cc
  1645. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1646. Removed unused method argument.
  1647. * src/CreateRequestCommand.cc
  1648. * src/RequestGroup.cc
  1649. * src/RequestGroup.h
  1650. * src/RequestGroupMan.cc
  1651. * src/TrackerWatcherCommand.cc
  1652. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1653. Made URI reusing function work.
  1654. * src/CreateRequestCommand.cc
  1655. * src/FileEntry.cc
  1656. * src/FileEntry.h
  1657. * test/FileEntryTest.cc
  1658. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1659. Add formerly fastest PeerStat's sessionDownloadLength to new
  1660. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1661. bytes in a session.
  1662. * src/PeerStat.cc
  1663. * src/SegmentMan.cc
  1664. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1665. If pipelining is enabled, we can always pool socket.
  1666. * src/HttpDownloadCommand.cc
  1667. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1668. In a single file download, file size becomes known just after
  1669. downloading, set total length to FileEntry object when download
  1670. completed.
  1671. * src/DownloadCommand.cc
  1672. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1673. Use std::vector::reserve() for fileEntries and pieceHashes in
  1674. bittorrent_helper
  1675. * src/bittorrent_helper.cc
  1676. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  1677. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1678. Removed hidden option PREF_RESET_URI.
  1679. * src/AbstractCommand.cc
  1680. * src/OptionHandlerFactory.cc
  1681. * src/prefs.cc
  1682. * src/prefs.h
  1683. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1684. Removed unused variable/function.
  1685. * src/PeerStat.h
  1686. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1687. Show first URL in Download Results if file path is not available.
  1688. * src/FileEntry.h
  1689. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1690. Throw exception if file path doesn't exist in FTP URL.
  1691. * src/InitiateConnectionCommandFactory.cc
  1692. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1693. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1694. * src/BitfieldMan.cc
  1695. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1696. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1697. of PeerStat in SegmentMan. peerStats is used for calculating
  1698. download speed. Therefore all active PeerStats should be in
  1699. there. Another one is _fastestPeerStats and it only contains
  1700. fastest PeerStat for each hostname/protocol pair. They are used
  1701. for updating ServerStat.
  1702. * src/DownloadCommand.cc
  1703. * src/Request.h
  1704. * src/RequestGroupMan.cc
  1705. * src/SegmentMan.cc
  1706. * src/SegmentMan.h
  1707. * test/SegmentManTest.cc
  1708. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  1709. Try all available addresses returned by DNS until it gets
  1710. connected in HTTP(S)/FTP download
  1711. * src/AbstractCommand.cc
  1712. * src/AbstractCommand.h
  1713. * src/AbstractProxyRequestCommand.cc
  1714. * src/AbstractProxyRequestCommand.h
  1715. * src/DNSCache.h
  1716. * src/DownloadEngine.cc
  1717. * src/DownloadEngine.h
  1718. * src/FtpInitiateConnectionCommand.cc
  1719. * src/FtpInitiateConnectionCommand.h
  1720. * src/FtpNegotiationCommand.cc
  1721. * src/FtpNegotiationCommand.h
  1722. * src/HttpInitiateConnectionCommand.cc
  1723. * src/HttpInitiateConnectionCommand.h
  1724. * src/HttpRequestCommand.cc
  1725. * src/HttpRequestCommand.h
  1726. * src/InitiateConnectionCommand.cc
  1727. * src/InitiateConnectionCommand.h
  1728. * test/DNSCacheTest.cc
  1729. * test/Makefile.am
  1730. * test/SimpleDNSCacheTest.cc
  1731. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1732. Updated doc
  1733. * src/download_helper.cc
  1734. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1735. Refactored fieldMan ctor.
  1736. * src/BitfieldMan.cc
  1737. * src/BitfieldMan.h
  1738. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1739. Don't print "No files to download." message if -S is given.
  1740. * src/main.cc
  1741. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1742. Set referer and method to newly created Request object.
  1743. * src/CreateRequestCommand.cc
  1744. * src/FileEntry.cc
  1745. * src/FileEntry.h
  1746. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1747. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1748. * src/AbstractCommand.cc
  1749. * src/AbstractCommand.h
  1750. * src/CreateRequestCommand.cc
  1751. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1752. Get proxy download working
  1753. * src/AbstractProxyRequestCommand.cc
  1754. * src/AbstractProxyRequestCommand.h
  1755. * src/AbstractProxyResponseCommand.cc
  1756. * src/AbstractProxyResponseCommand.h
  1757. * src/FtpInitiateConnectionCommand.cc
  1758. * src/FtpTunnelRequestCommand.cc
  1759. * src/FtpTunnelRequestCommand.h
  1760. * src/FtpTunnelResponseCommand.cc
  1761. * src/FtpTunnelResponseCommand.h
  1762. * src/HttpInitiateConnectionCommand.cc
  1763. * src/HttpProxyRequestCommand.cc
  1764. * src/HttpProxyRequestCommand.h
  1765. * src/HttpProxyResponseCommand.cc
  1766. * src/HttpProxyResponseCommand.h
  1767. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1768. Use SegmentMan::getSegment(cuid) for single file download.
  1769. * src/AbstractCommand.cc
  1770. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1771. Fixed bufSize calculation
  1772. * src/DownloadCommand.cc
  1773. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1774. Don't append "/" if base URI ends with "/".
  1775. * src/bittorrent_helper.cc
  1776. * test/url-list-multiFile.torrent
  1777. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  1778. HTTP pipelining is now working. Fixed Segmention fault in
  1779. BitfieldMan's copy ctor.
  1780. * src/AbstractCommand.cc
  1781. * src/BitfieldMan.cc
  1782. * src/BitfieldMan.h
  1783. * src/DownloadCommand.cc
  1784. * src/HttpDownloadCommand.cc
  1785. * src/HttpRequest.cc
  1786. * src/SegmentMan.cc
  1787. * src/SegmentMan.h
  1788. * test/BitfieldManTest.cc
  1789. * test/SegmentManTest.cc
  1790. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  1791. Removed ServerHost. Same functionality is implemented using
  1792. FileEntry's in-flight Request objects.
  1793. * src/AbstractCommand.cc
  1794. * src/BtDependency.cc
  1795. * src/CreateRequestCommand.cc
  1796. * src/FileEntry.cc
  1797. * src/FileEntry.h
  1798. * src/FtpNegotiationCommand.cc
  1799. * src/HttpResponseCommand.cc
  1800. * src/Makefile.am
  1801. * src/Metalink2RequestGroup.cc
  1802. * src/RequestGroup.cc
  1803. * src/RequestGroup.h
  1804. * src/ServerHost.cc: Removed
  1805. * src/ServerHost.h: Removed
  1806. * test/BtDependencyTest.cc
  1807. * test/FileEntryTest.cc
  1808. * test/RequestGroupTest.cc
  1809. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  1810. Rewritten PeerStat handling. In the previous implementation,
  1811. faster command tries to find slower command. In this new
  1812. implementation, slower command tries to find faster command.
  1813. PeerStat is now created in each HTTP/FTP request to get download
  1814. rate correctly. If the download range is small, the download rate
  1815. tends to small and this will occur at the later stage of download.
  1816. * src/AbstractCommand.cc
  1817. * src/DownloadCommand.cc
  1818. * src/FileEntry.cc
  1819. * src/FileEntry.h
  1820. * src/Request.cc
  1821. * src/Request.h
  1822. * src/RequestGroup.h
  1823. * src/RequestGroupMan.cc
  1824. * src/SegmentMan.cc
  1825. * src/SegmentMan.h
  1826. * test/SegmentManTest.cc
  1827. 2009-06-29 Tatsuhiro Tsujikawa <[email protected]>
  1828. Removed _uris from RequestGroup. All functions that refer to _uris
  1829. were moved to FileEntry. Exit status code are now defined in
  1830. DownloadResultCode.h.
  1831. * src/AbstractCommand.cc
  1832. * src/AdaptiveURISelector.cc
  1833. * src/AdaptiveURISelector.h
  1834. * src/AutoSaveCommand.cc
  1835. * src/BtPostDownloadHandler.cc
  1836. * src/CheckIntegrityDispatcherCommand.cc
  1837. * src/CookieStorage.cc
  1838. * src/DHTAutoSaveCommand.cc
  1839. * src/DHTBucketRefreshCommand.cc
  1840. * src/DHTEntryPointNameResolveCommand.cc
  1841. * src/DHTInteractionCommand.cc
  1842. * src/DHTPeerAnnounceCommand.cc
  1843. * src/DHTTokenUpdateCommand.cc
  1844. * src/DlAbortEx.h
  1845. * src/DlRetryEx.h
  1846. * src/DownloadCommand.cc
  1847. * src/DownloadContext.h
  1848. * src/DownloadFailureException.h
  1849. * src/DownloadResult.h
  1850. * src/DownloadResultCode.h
  1851. * src/FeedbackURISelector.cc
  1852. * src/FeedbackURISelector.h
  1853. * src/FileEntry.cc
  1854. * src/FileEntry.h
  1855. * src/FtpNegotiationCommand.cc
  1856. * src/HttpListenCommand.cc
  1857. * src/HttpResponseCommand.cc
  1858. * src/HttpServerResponseCommand.cc
  1859. * src/HttpSkipResponseCommand.cc
  1860. * src/InOrderURISelector.cc
  1861. * src/InOrderURISelector.h
  1862. * src/Makefile.am
  1863. * src/Makefile.in
  1864. * src/Metalink2RequestGroup.cc
  1865. * src/MultiUrlRequestInfo.cc
  1866. * src/MultiUrlRequestInfo.h
  1867. * src/OptionHandlerFactory.cc
  1868. * src/PeerListenCommand.cc
  1869. * src/RecoverableException.h
  1870. * src/RequestGroup.cc
  1871. * src/RequestGroup.h
  1872. * src/RequestGroupMan.cc
  1873. * src/RequestGroupMan.h
  1874. * src/TimedHaltCommand.cc
  1875. * src/TrackerWatcherCommand.cc
  1876. * src/URIResult.cc
  1877. * src/URIResult.h
  1878. * src/URISelector.h
  1879. * src/XmlRpcMethodImpl.cc
  1880. * src/bittorrent_helper.cc
  1881. * src/bittorrent_helper.h
  1882. * src/download_helper.cc
  1883. * src/main.cc
  1884. * src/option_processing.cc
  1885. * test/BtDependencyTest.cc
  1886. * test/BtPostDownloadHandlerTest.cc
  1887. * test/CookieStorageTest.cc
  1888. * test/DefaultBtMessageDispatcherTest.cc
  1889. * test/DownloadHandlerFactoryTest.cc
  1890. * test/DownloadHelperTest.cc
  1891. * test/FeedbackURISelectorTest.cc
  1892. * test/FileEntryTest.cc
  1893. * test/InOrderURISelectorTest.cc
  1894. * test/Metalink2RequestGroupTest.cc
  1895. * test/MetalinkPostDownloadHandlerTest.cc
  1896. * test/RequestGroupManTest.cc
  1897. * test/RequestGroupTest.cc
  1898. * test/XmlRpcMethodTest.cc
  1899. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  1900. Removed MockBtContext.h
  1901. * test/Makefile.am
  1902. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  1903. Removed _currentRequest from StreamCheckIntegrityEntry and
  1904. StreamFileAllocationEntry.
  1905. * src/AbstractCommand.cc
  1906. * src/HttpResponseCommand.cc
  1907. * src/RequestGroup.cc
  1908. * src/StreamCheckIntegrityEntry.cc
  1909. * src/StreamCheckIntegrityEntry.h
  1910. * src/StreamFileAllocationEntry.cc
  1911. * src/StreamFileAllocationEntry.h
  1912. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  1913. Rewritten DownloadContext and removed SingleFileDownloadContext
  1914. and BtContext and its derived classes. BitTorrent specific
  1915. attributes are now set by DownloadContext::setAttribute() with key
  1916. bittorrent::BITTORRENT.
  1917. * src/AbstractBtMessage.cc
  1918. * src/AbstractBtMessage.h
  1919. * src/AbstractCommand.cc
  1920. * src/AbstractCommand.h
  1921. * src/AbstractProxyRequestCommand.cc
  1922. * src/AbstractProxyResponseCommand.cc
  1923. * src/ActivePeerConnectionCommand.cc
  1924. * src/ActivePeerConnectionCommand.h
  1925. * src/AnnounceList.cc
  1926. * src/BtCheckIntegrityEntry.cc
  1927. * src/BtConstants.h
  1928. * src/BtContext.h: Removed
  1929. * src/BtDependency.cc
  1930. * src/BtExtendedMessage.cc
  1931. * src/BtPieceMessage.cc
  1932. * src/BtPieceMessage.h
  1933. * src/BtPostDownloadHandler.cc
  1934. * src/BtRegistry.cc
  1935. * src/BtRegistry.h
  1936. * src/BtSetup.cc
  1937. * src/CheckIntegrityCommand.cc
  1938. * src/CheckIntegrityEntry.cc
  1939. * src/ChecksumCheckIntegrityEntry.cc
  1940. * src/ConsoleStatCalc.cc
  1941. * src/ContentTypeRequestGroupCriteria.cc
  1942. * src/DHTGetPeersCommand.cc
  1943. * src/DHTGetPeersCommand.h
  1944. * src/DHTPeerLookupTask.cc
  1945. * src/DHTPeerLookupTask.h
  1946. * src/DHTTaskFactory.h
  1947. * src/DHTTaskFactoryImpl.cc
  1948. * src/DHTTaskFactoryImpl.h
  1949. * src/DefaultBtAnnounce.cc
  1950. * src/DefaultBtAnnounce.h
  1951. * src/DefaultBtContext.cc: Removed
  1952. * src/DefaultBtContext.h: Removed
  1953. * src/DefaultBtInteractive.cc
  1954. * src/DefaultBtInteractive.h
  1955. * src/DefaultBtMessageDispatcher.cc
  1956. * src/DefaultBtMessageDispatcher.h
  1957. * src/DefaultBtMessageFactory.cc
  1958. * src/DefaultBtMessageFactory.h
  1959. * src/DefaultBtMessageReceiver.cc
  1960. * src/DefaultBtMessageReceiver.h
  1961. * src/DefaultBtProgressInfoFile.cc
  1962. * src/DefaultBtRequestFactory.cc
  1963. * src/DefaultBtRequestFactory.h
  1964. * src/DefaultExtensionMessageFactory.cc
  1965. * src/DefaultExtensionMessageFactory.h
  1966. * src/DefaultPeerStorage.cc
  1967. * src/DefaultPeerStorage.h
  1968. * src/DefaultPieceStorage.cc
  1969. * src/DefaultSegmentManFactory.cc
  1970. * src/DiskAdaptor.cc
  1971. * src/DiskAdaptor.h
  1972. * src/DownloadContext.cc
  1973. * src/DownloadContext.h
  1974. * src/DownloadEngine.cc
  1975. * src/DownloadEngineFactory.cc
  1976. * src/DownloadHandler.cc
  1977. * src/DownloadResult.h
  1978. * src/FileAllocationCommand.cc
  1979. * src/FileAllocationDispatcherCommand.cc
  1980. * src/FileAllocationEntry.cc
  1981. * src/FileEntry.h
  1982. * src/FillRequestGroupCommand.cc
  1983. * src/FtpDownloadCommand.cc
  1984. * src/FtpFinishDownloadCommand.cc
  1985. * src/FtpInitiateConnectionCommand.cc
  1986. * src/FtpNegotiationCommand.cc
  1987. * src/FtpTunnelRequestCommand.cc
  1988. * src/FtpTunnelResponseCommand.cc
  1989. * src/HandshakeExtensionMessage.cc
  1990. * src/HandshakeExtensionMessage.h
  1991. * src/HaveEraseCommand.cc
  1992. * src/HttpDownloadCommand.cc
  1993. * src/HttpInitiateConnectionCommand.cc
  1994. * src/HttpProxyRequestCommand.cc
  1995. * src/HttpProxyResponseCommand.cc
  1996. * src/HttpRequest.cc
  1997. * src/HttpRequest.h
  1998. * src/HttpRequestCommand.cc
  1999. * src/HttpResponseCommand.cc
  2000. * src/HttpServerBodyCommand.cc
  2001. * src/HttpServerCommand.cc
  2002. * src/HttpSkipResponseCommand.cc
  2003. * src/InitiateConnectionCommandFactory.cc
  2004. * src/InitiatorMSEHandshakeCommand.cc
  2005. * src/InitiatorMSEHandshakeCommand.h
  2006. * src/IteratableChecksumValidator.cc
  2007. * src/IteratableChecksumValidator.h
  2008. * src/IteratableChunkChecksumValidator.cc
  2009. * src/MSEHandshake.cc
  2010. * src/MSEHandshake.h
  2011. * src/Makefile.am
  2012. * src/Makefile.in
  2013. * src/Metalink2RequestGroup.cc
  2014. * src/MetalinkPostDownloadHandler.cc
  2015. * src/MultiDiskAdaptor.cc
  2016. * src/MultiDiskAdaptor.h
  2017. * src/MultiFileAllocationIterator.cc
  2018. * src/MultiUrlRequestInfo.cc
  2019. * src/PeerChokeCommand.cc
  2020. * src/PeerChokeCommand.h
  2021. * src/PeerInitiateConnectionCommand.cc
  2022. * src/PeerInitiateConnectionCommand.h
  2023. * src/PeerInteractionCommand.cc
  2024. * src/PeerInteractionCommand.h
  2025. * src/PeerReceiveHandshakeCommand.cc
  2026. * src/PieceHashCheckIntegrityEntry.cc
  2027. * src/RealtimeCommand.cc
  2028. * src/ReceiverMSEHandshakeCommand.cc
  2029. * src/RequestGroup.cc
  2030. * src/RequestGroup.h
  2031. * src/RequestGroupEntry.cc
  2032. * src/RequestGroupMan.cc
  2033. * src/SeedCheckCommand.cc
  2034. * src/SeedCheckCommand.h
  2035. * src/SegmentMan.cc
  2036. * src/ShareRatioSeedCriteria.h
  2037. * src/SingleFileDownloadContext.cc: Removed
  2038. * src/SingleFileDownloadContext.h: Removed
  2039. * src/SleepCommand.cc
  2040. * src/StreamCheckIntegrityEntry.cc
  2041. * src/TrackerWatcherCommand.cc
  2042. * src/TrackerWatcherCommand.h
  2043. * src/UnknownLengthPieceStorage.cc
  2044. * src/Util.cc
  2045. * src/Util.h
  2046. * src/XmlRpcMethodImpl.cc
  2047. * src/bittorrent_helper.cc
  2048. * src/bittorrent_helper.h
  2049. * src/download_helper.cc
  2050. * src/main.cc
  2051. * src/option_processing.cc
  2052. * test/BitfieldManTest.cc
  2053. * test/BittorrentHelperTest.cc
  2054. * test/BtCancelMessageTest.cc
  2055. * test/BtChokeMessageTest.cc
  2056. * test/BtDependencyTest.cc
  2057. * test/BtPieceMessageTest.cc
  2058. * test/BtPostDownloadHandlerTest.cc
  2059. * test/BtRegistryTest.cc
  2060. * test/BtRejectMessageTest.cc
  2061. * test/BtRequestMessageTest.cc
  2062. * test/DHTPeerAnnounceStorageTest.cc
  2063. * test/DefaultBtAnnounceTest.cc
  2064. * test/DefaultBtContextTest.cc: Removed
  2065. * test/DefaultBtMessageDispatcherTest.cc
  2066. * test/DefaultBtMessageFactoryTest.cc
  2067. * test/DefaultBtProgressInfoFileTest.cc
  2068. * test/DefaultBtRequestFactoryTest.cc
  2069. * test/DefaultExtensionMessageFactoryTest.cc
  2070. * test/DefaultPeerStorageTest.cc
  2071. * test/DefaultPieceStorageTest.cc
  2072. * test/DirectDiskAdaptorTest.cc
  2073. * test/DownloadContextTest.cc
  2074. * test/DownloadHandlerFactoryTest.cc
  2075. * test/DownloadHelperTest.cc
  2076. * test/HandshakeExtensionMessageTest.cc
  2077. * test/HttpRequestTest.cc
  2078. * test/HttpResponseTest.cc
  2079. * test/IteratableChecksumValidatorTest.cc
  2080. * test/IteratableChunkChecksumValidatorTest.cc
  2081. * test/MSEHandshakeTest.cc
  2082. * test/Makefile.am
  2083. * test/Makefile.in
  2084. * test/Metalink2RequestGroupTest.cc
  2085. * test/MetalinkPostDownloadHandlerTest.cc
  2086. * test/MockBtContext.h: Removed
  2087. * test/MockDHTTaskFactory.h
  2088. * test/MockDownloadContext.h: Removed
  2089. * test/MockPieceStorage.h
  2090. * test/MultiDiskAdaptorTest.cc
  2091. * test/MultiFileAllocationIteratorTest.cc
  2092. * test/RequestGroupManTest.cc
  2093. * test/RequestGroupTest.cc
  2094. * test/SegmentManTest.cc
  2095. * test/ShareRatioSeedCriteriaTest.cc
  2096. * test/SingleFileDownloadContextTest.cc: Removed
  2097. * test/UtilTest.cc
  2098. * test/XmlRpcMethodTest.cc
  2099. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  2100. Added experimental support of WEB-Seeding for multi-file torrent.
  2101. Due to fundamental changes in file handling in HTTP/FTP code, many
  2102. functions are not working: PeerStat, ServerHost, proxy..etc
  2103. * src/AbstractCommand.cc
  2104. * src/AbstractCommand.h
  2105. * src/BitfieldMan.cc
  2106. * src/BitfieldMan.h
  2107. * src/CreateRequestCommand.cc
  2108. * src/CreateRequestCommand.h
  2109. * src/DefaultPieceStorage.cc
  2110. * src/DefaultPieceStorage.h
  2111. * src/DownloadCommand.cc
  2112. * src/DownloadCommand.h
  2113. * src/DownloadContext.cc
  2114. * src/DownloadContext.h
  2115. * src/FileEntry.cc
  2116. * src/FileEntry.h
  2117. * src/FtpDownloadCommand.cc
  2118. * src/FtpDownloadCommand.h
  2119. * src/FtpFinishDownloadCommand.cc
  2120. * src/FtpFinishDownloadCommand.h
  2121. * src/FtpInitiateConnectionCommand.cc
  2122. * src/FtpInitiateConnectionCommand.h
  2123. * src/FtpNegotiationCommand.cc
  2124. * src/FtpNegotiationCommand.h
  2125. * src/FtpTunnelResponseCommand.cc
  2126. * src/HttpDownloadCommand.cc
  2127. * src/HttpDownloadCommand.h
  2128. * src/HttpInitiateConnectionCommand.cc
  2129. * src/HttpInitiateConnectionCommand.h
  2130. * src/HttpProxyResponseCommand.cc
  2131. * src/HttpRequest.cc
  2132. * src/HttpRequest.h
  2133. * src/HttpRequestCommand.cc
  2134. * src/HttpRequestCommand.h
  2135. * src/HttpResponseCommand.cc
  2136. * src/HttpResponseCommand.h
  2137. * src/HttpSkipResponseCommand.cc
  2138. * src/HttpSkipResponseCommand.h
  2139. * src/InitiateConnectionCommand.cc
  2140. * src/InitiateConnectionCommand.h
  2141. * src/InitiateConnectionCommandFactory.cc
  2142. * src/InitiateConnectionCommandFactory.h
  2143. * src/Makefile.am
  2144. * src/PieceStorage.h
  2145. * src/RequestGroup.cc
  2146. * src/RequestGroup.h
  2147. * src/RequestGroupMan.cc
  2148. * src/SegmentMan.cc
  2149. * src/SegmentMan.h
  2150. * src/SingleFileDownloadContext.h
  2151. * src/StreamFileAllocationEntry.cc
  2152. * src/TrackerWatcherCommand.cc
  2153. * src/UnknownLengthPieceStorage.cc
  2154. * src/UnknownLengthPieceStorage.h
  2155. * src/array_fun.h
  2156. * src/bitfield.h
  2157. * src/download_helper.cc
  2158. * test/DownloadContextTest.cc
  2159. * test/Makefile.am
  2160. * test/MockDownloadContext.h
  2161. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  2162. Added tellWaiting XML-RPC method.
  2163. * src/SingleFileDownloadContext.cc
  2164. * src/XmlRpcMethodFactory.cc
  2165. * src/XmlRpcMethodImpl.cc
  2166. * src/XmlRpcMethodImpl.h
  2167. * test/XmlRpcMethodTest.cc
  2168. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  2169. Updated CookieStorageTest
  2170. * test/CookieStorageTest.cc
  2171. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2172. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2173. handle excepion inside these functions.
  2174. * src/LibgnutlsTLSContext.cc
  2175. * src/LibgnutlsTLSContext.h
  2176. * src/LibsslTLSContext.cc
  2177. * src/LibsslTLSContext.h
  2178. * src/MultiUrlRequestInfo.cc
  2179. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2180. Added comment
  2181. * src/RequestGroup.cc
  2182. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2183. In CookieStorage::load() and saveNsFormat(), handle exception
  2184. inside the functions. When saving Cookies, first write temporary
  2185. file and after successful writes, then renames it to final
  2186. destination.
  2187. * src/CookieStorage.cc
  2188. * src/CookieStorage.h
  2189. * src/MultiUrlRequestInfo.cc
  2190. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2191. The default value of --dir option is the absolute path to the
  2192. current directory. If getcwd() is failed, then it is ".", which is
  2193. the same value with old implementation. This change is necessary
  2194. because after daemon() call, the current working directory is
  2195. changed to /.
  2196. * src/File.cc
  2197. * src/File.h
  2198. * src/OptionHandlerFactory.cc
  2199. * src/option_processing.cc
  2200. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2201. Call daemon() with arguments(0,0), which means daemon() changes
  2202. current working directory to / and redirects stdin, stdout and
  2203. stderr to /dev/null.
  2204. * src/option_processing.cc
  2205. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2206. Small performance optimizations.
  2207. * src/RequestGroupMan.cc
  2208. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  2209. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2210. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2211. * src/RequestGroupMan.cc
  2212. * src/RequestGroupMan.h
  2213. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  2214. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2215. setNoWiat(true) if newly created command calls
  2216. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2217. * src/HttpListenCommand.cc
  2218. * src/HttpServerBodyCommand.cc
  2219. * src/HttpServerCommand.cc
  2220. * src/HttpServerResponseCommand.cc
  2221. * src/InitiateConnectionCommand.cc
  2222. * src/RequestGroup.cc
  2223. * src/StreamFileAllocationEntry.cc
  2224. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  2225. Removed include vector
  2226. * src/BtRegistry.h
  2227. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  2228. Rewritten BtRegistry
  2229. * src/BtRegistry.cc
  2230. * src/BtRegistry.h
  2231. * src/BtSetup.cc
  2232. * src/ConsoleStatCalc.cc
  2233. * src/PeerInteractionCommand.cc
  2234. * src/PeerReceiveHandshakeCommand.cc
  2235. * src/ReceiverMSEHandshakeCommand.cc
  2236. * src/RequestGroup.cc
  2237. * src/XmlRpcMethodImpl.cc
  2238. * test/BtRegistryTest.cc
  2239. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2240. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2241. * src/DefaultBtProgressInfoFile.cc
  2242. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2243. Throw an exception if position is less than 0.
  2244. * src/XmlRpcMethodImpl.cc
  2245. * test/XmlRpcMethodTest.cc
  2246. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2247. Use writeFilePath() in ConsoleStatCalc.cc
  2248. * src/ConsoleStatCalc.cc
  2249. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2250. Receive the return value as const reference from
  2251. DownloadContext::getFileEntries().
  2252. * src/DefaultPieceStorage.cc
  2253. * src/RequestGroupMan.cc
  2254. * src/XmlRpcMethodImpl.cc
  2255. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2256. DownloadContext now has _fileEntries so that
  2257. DownloadContext::getFileEntries() can returns its const reference.
  2258. * src/DefaultBtContext.cc
  2259. * src/DefaultBtContext.h
  2260. * src/DownloadContext.cc
  2261. * src/DownloadContext.h
  2262. * src/SingleFileDownloadContext.cc
  2263. * src/SingleFileDownloadContext.h
  2264. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2265. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2266. writeFilePath() function template from RequestGroupMan.cc to
  2267. FileEntry.h
  2268. * src/FileEntry.h
  2269. * src/RequestGroupMan.cc
  2270. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  2271. Documented 'position' parameter is starting from 0 in man page.
  2272. * doc/aria2c.1.txt
  2273. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  2274. Updated doc.
  2275. * src/MSEHandshake.cc
  2276. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  2277. Removed _acceptFeatures and its accessor functions from
  2278. RequestGroup since they are not used practically.
  2279. * src/HttpRequestCommand.cc
  2280. * src/RequestGroup.cc
  2281. * src/RequestGroup.h
  2282. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  2283. Removed member _maxTries from RequestGroup class to avoid
  2284. duplicate option value. Those classes who refer this variable
  2285. should use option value of PREF_MAX_TRIES directly.
  2286. * src/AbstractCommand.cc
  2287. * src/RequestGroup.cc
  2288. * src/RequestGroup.h
  2289. * src/TrackerWatcherCommand.cc
  2290. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2291. * Release 1.4.1
  2292. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2293. Fixed compiler warnings on netbsd
  2294. * src/DHTConnectionImpl.cc
  2295. * src/PeerListenCommand.cc
  2296. * src/PeerSessionResource.cc
  2297. * src/SegmentMan.cc
  2298. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2299. Updated Ukrainian translation. Thanks to all translators.
  2300. * po/uk.po
  2301. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2302. Bump up version number to 1.4.1.
  2303. * configure.ac
  2304. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2305. Added unit tests for strjoin, strconcat and strappend.
  2306. * test/a2functionalTest.cc
  2307. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2308. Rewritten strconcat and strappend using operator+ instead of
  2309. append().
  2310. * src/a2functional.h
  2311. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2312. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2313. is enabled.
  2314. * src/Makefile.am
  2315. * test/Makefile.am
  2316. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  2317. Added countSeeder() function which counts seeder in the given
  2318. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2319. * src/ConsoleStatCalc.cc
  2320. * src/Peer.h
  2321. * src/XmlRpcMethodImpl.cc
  2322. * test/PeerTest.cc
  2323. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  2324. Documented missing seeder in getPeers xml-rpc method.
  2325. Documented uploadLength and numSeeders.
  2326. * doc/aria2c.1.txt
  2327. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  2328. Added uploadLength and numSeeders to the response of tellStatus
  2329. xml-rpc method. Assert that PeerStorage instance is not null
  2330. instead of checking if statement. It should be non-null in this
  2331. context.
  2332. * src/XmlRpcMethodImpl.cc
  2333. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  2334. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2335. * src/XmlRpcResponse.cc
  2336. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  2337. Avoid intermediate object during string concatenation.
  2338. * src/HttpRequest.cc
  2339. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  2340. Added strjoin function template. Use it in pathJoin()
  2341. * src/Util.h
  2342. * src/a2functional.h
  2343. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  2344. Avoid intermediate object during string concatenation. Replaced
  2345. post-increment unary operator with pre-increment one in for loop.
  2346. * src/AdaptiveURISelector.cc
  2347. * src/AnnounceList.cc
  2348. * src/AuthConfig.h
  2349. * src/BtBitfieldMessage.cc
  2350. * src/BtExtendedMessage.cc
  2351. * src/BtHandshakeMessage.cc
  2352. * src/BtPieceMessage.cc
  2353. * src/BtPortMessage.cc
  2354. * src/Cookie.cc
  2355. * src/DHTAnnouncePeerMessage.cc
  2356. * src/DHTAutoSaveCommand.cc
  2357. * src/DHTGetPeersReplyMessage.cc
  2358. * src/DHTNode.cc
  2359. * src/DHTQueryMessage.cc
  2360. * src/DHTResponseMessage.cc
  2361. * src/DHTUnknownMessage.cc
  2362. * src/DefaultBtAnnounce.cc
  2363. * src/DefaultBtContext.cc
  2364. * src/DefaultBtInteractive.cc
  2365. * src/DefaultBtProgressInfoFile.cc
  2366. * src/DefaultPeerStorage.cc
  2367. * src/DownloadEngine.cc
  2368. * src/FeatureConfig.cc
  2369. * src/File.cc
  2370. * src/FtpConnection.cc
  2371. * src/FtpNegotiationCommand.cc
  2372. * src/HandshakeExtensionMessage.cc
  2373. * src/HttpConnection.cc
  2374. * src/HttpRequest.cc
  2375. * src/HttpResponseCommand.cc
  2376. * src/HttpServer.cc
  2377. * src/IndexBtMessage.cc
  2378. * src/Metalink2RequestGroup.cc
  2379. * src/OptionHandlerImpl.h
  2380. * src/PStringBuildVisitor.cc
  2381. * src/Peer.cc
  2382. * src/PeerListenCommand.cc
  2383. * src/Piece.cc
  2384. * src/RangeBtMessage.cc
  2385. * src/Request.cc
  2386. * src/Request.h
  2387. * src/RequestGroup.cc
  2388. * src/RequestGroupMan.cc
  2389. * src/ServerStat.cc
  2390. * src/ServerStatMan.cc
  2391. * src/UTPexExtensionMessage.cc
  2392. * src/Util.cc
  2393. * src/a2functional.h
  2394. * src/download_helper.cc
  2395. * src/messageDigest.cc
  2396. 2009-06-04 Tatsuhiro Tsujikawa <[email protected]>
  2397. Unchoke a peer randomly at first and second choke round in seed
  2398. state.
  2399. * src/BtSeederStateChoke.cc
  2400. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2401. Added (sock_t) to quiet compiler warnings in MinGW
  2402. * src/SocketCore.cc
  2403. * src/SocketCore.h
  2404. 2009-06-02 Tatsuhiro Tsujikawa <[email protected]>
  2405. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2406. * src/EpollEventPoll.h
  2407. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2408. Added fork() emulation using CreateProcess() in MinGW
  2409. * src/RequestGroupMan.cc
  2410. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  2411. * Release 1.4.0
  2412. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  2413. Added utf8.torrent to EXTRA_DIST
  2414. * test/Makefile.am
  2415. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  2416. Fixed docs of aria2.addMetalink xml-rpc method.
  2417. * doc/aria2c.1.txt
  2418. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  2419. Added Slovak translation. Updated Ukrainian and Brazilian
  2420. Portuguese translation. Thanks to all translators.
  2421. * po/sk.po
  2422. * po/uk.po
  2423. * po/pt_BR.po
  2424. * po/LINGUAS
  2425. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  2426. Added test case for XmlRpcProcessor to fail to parse malformed
  2427. document.
  2428. * test/XmlRpcRequestProcessorTest.cc
  2429. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  2430. Removed *.gmo files in po because they are generated on 'make
  2431. dist'
  2432. * po/*.gmo
  2433. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  2434. Documented max-concurrent-downloads of changeGlobalOption method
  2435. in man page.
  2436. * doc/aria2c.1.txt
  2437. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  2438. Added max-concurrent-downloads option to changeGlobalOption
  2439. xml-rpc method. Rewritten loop conditional in
  2440. RequestGroupMan::fillRequestGroupFromReserver().
  2441. * src/RequestGroupMan.cc
  2442. * src/RequestGroupMan.h
  2443. * src/XmlRpcMethod.cc
  2444. * src/XmlRpcMethodImpl.cc
  2445. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  2446. Documented position parameter in man page.
  2447. * doc/aria2c.1.txt
  2448. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  2449. Added 'position' parameter to addUri, addTorrent and addMetalink
  2450. xml-rpc method.
  2451. * src/RequestGroupMan.cc
  2452. * src/RequestGroupMan.h
  2453. * src/XmlRpcMethodImpl.cc
  2454. * test/XmlRpcMethodTest.cc
  2455. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  2456. Removed Peer.cc from compile source list when --disable-bittorrent
  2457. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2458. takes Peer.
  2459. * src/DefaultPieceStorage.cc
  2460. * src/DefaultPieceStorage.h
  2461. * src/Makefile.am
  2462. * src/PieceStorage.h
  2463. * src/UnknownLengthPieceStorage.cc
  2464. * src/UnknownLengthPieceStorage.h
  2465. * test/MockPieceStorage.h
  2466. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  2467. Implemented getter methods in header files to give them more
  2468. chance of optimization.
  2469. Return const reference for SharadHandle if possible.
  2470. * src/AbstractAuthResolver.cc
  2471. * src/AbstractAuthResolver.h
  2472. * src/AbstractBtMessage.cc
  2473. * src/AbstractBtMessage.h
  2474. * src/AbstractSingleDiskAdaptor.cc
  2475. * src/AbstractSingleDiskAdaptor.h
  2476. * src/AsyncNameResolver.cc
  2477. * src/AsyncNameResolver.h
  2478. * src/BNode.cc
  2479. * src/BNode.h
  2480. * src/BitfieldMan.cc
  2481. * src/BitfieldMan.h
  2482. * src/BtAbortOutstandingRequestEvent.h
  2483. * src/BtExtendedMessage.cc
  2484. * src/BtExtendedMessage.h
  2485. * src/BtSeederStateChoke.cc
  2486. * src/BtSeederStateChoke.h
  2487. * src/Cookie.cc
  2488. * src/Cookie.h
  2489. * src/DHTBucket.cc
  2490. * src/DHTBucket.h
  2491. * src/DHTConnectionImpl.cc
  2492. * src/DHTConnectionImpl.h
  2493. * src/DHTFindNodeReplyMessage.cc
  2494. * src/DHTFindNodeReplyMessage.h
  2495. * src/DHTGetPeersReplyMessage.cc
  2496. * src/DHTGetPeersReplyMessage.h
  2497. * src/DHTInteractionCommand.cc
  2498. * src/DHTMessage.cc
  2499. * src/DHTMessage.h
  2500. * src/DHTMessageDispatcherImpl.cc
  2501. * src/DHTMessageEntry.cc
  2502. * src/DHTMessageReceiver.cc
  2503. * src/DHTMessageReceiver.h
  2504. * src/DHTMessageTrackerEntry.cc
  2505. * src/DHTMessageTrackerEntry.h
  2506. * src/DHTPeerAnnounceEntry.cc
  2507. * src/DHTPeerAnnounceEntry.h
  2508. * src/DHTPeerLookupTask.cc
  2509. * src/DHTPeerLookupTask.h
  2510. * src/DHTRoutingTableDeserializer.cc
  2511. * src/DHTRoutingTableDeserializer.h
  2512. * src/DefaultBtAnnounce.cc
  2513. * src/DefaultBtAnnounce.h
  2514. * src/DefaultBtMessageDispatcher.cc
  2515. * src/DefaultBtMessageDispatcher.h
  2516. * src/DefaultBtRequestFactory.cc
  2517. * src/DefaultBtRequestFactory.h
  2518. * src/DiskAdaptor.cc
  2519. * src/DiskAdaptor.h
  2520. * src/DownloadContext.cc
  2521. * src/DownloadContext.h
  2522. * src/DownloadEngine.cc
  2523. * src/DownloadEngine.h
  2524. * src/EpollEventPoll.cc
  2525. * src/EpollEventPoll.h
  2526. * src/FtpConnection.cc
  2527. * src/FtpConnection.h
  2528. * src/HttpConnection.cc
  2529. * src/HttpConnection.h
  2530. * src/HttpHeader.cc
  2531. * src/HttpHeader.h
  2532. * src/HttpRequest.cc
  2533. * src/HttpRequest.h
  2534. * src/HttpResponse.cc
  2535. * src/HttpResponse.h
  2536. * src/LibsslTLSContext.cc
  2537. * src/LibsslTLSContext.h
  2538. * src/MSEHandshake.cc
  2539. * src/MSEHandshake.h
  2540. * src/MetalinkEntry.cc
  2541. * src/MetalinkEntry.h
  2542. * src/MetalinkParserController.cc
  2543. * src/MetalinkParserController.h
  2544. * src/MetalinkParserStateMachine.cc
  2545. * src/MetalinkParserStateMachine.h
  2546. * src/MultiDiskAdaptor.cc
  2547. * src/MultiDiskAdaptor.h
  2548. * src/NetrcAuthResolver.cc
  2549. * src/NetrcAuthResolver.h
  2550. * src/Peer.cc
  2551. * src/Peer.h
  2552. * src/PeerSessionResource.cc
  2553. * src/PeerSessionResource.h
  2554. * src/Piece.cc
  2555. * src/Piece.h
  2556. * src/PieceStatMan.cc
  2557. * src/PieceStatMan.h
  2558. * src/Request.cc
  2559. * src/Request.h
  2560. * src/RequestGroup.cc
  2561. * src/RequestGroup.h
  2562. * src/RequestGroupMan.cc
  2563. * src/RequestGroupMan.h
  2564. * src/RequestSlot.cc
  2565. * src/RequestSlot.h
  2566. * src/SegmentMan.cc
  2567. * src/SegmentMan.h
  2568. * src/SelectEventPoll.cc
  2569. * src/SelectEventPoll.h
  2570. * src/ServerStat.cc
  2571. * src/ServerStat.h
  2572. * src/Signature.cc
  2573. * src/Signature.h
  2574. * src/URIResult.cc
  2575. * src/URIResult.h
  2576. * src/UTPexExtensionMessage.cc
  2577. * src/UTPexExtensionMessage.h
  2578. 2009-05-28 Tatsuhiro Tsujikawa <[email protected]>
  2579. Fixed compile error without BitTorrent and Metalink support.
  2580. * src/XmlRpcMethod.cc
  2581. * src/XmlRpcMethodFactory.cc
  2582. * src/XmlRpcMethodImpl.cc
  2583. * src/XmlRpcMethodImpl.h
  2584. * test/XmlRpcMethodTest.cc
  2585. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  2586. Rewritten the help message for --allow-overwrite option.
  2587. * doc/aria2c.1.txt
  2588. * src/usage_text.h
  2589. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  2590. Fixed typo
  2591. * doc/aria2c.1.txt
  2592. * src/usage_text.h
  2593. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  2594. Updated README for 1.4.0 release. Use new table syntax of
  2595. asciidoc.
  2596. * README
  2597. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  2598. Documented --xml-rpc-max-request-size option in man page.
  2599. * doc/aria2c.1.txt
  2600. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  2601. Moved C_* constants from BtContext to DefaultBtContext.
  2602. * src/BtContext.cc: Removed.
  2603. * src/BtContext.h
  2604. * src/DefaultBtContext.cc
  2605. * src/DefaultBtContext.h
  2606. * src/Makefile.am
  2607. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  2608. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2609. path key respectively when persing .torrent file.
  2610. * src/BtContext.cc
  2611. * src/BtContext.h
  2612. * src/DefaultBtContext.cc
  2613. * test/DefaultBtContextTest.cc
  2614. * test/utf8.torrent
  2615. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  2616. Added --xml-rpc-max-request-size option to limit the size of
  2617. XML-RPC request.
  2618. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  2619. Documented XML-RPC API in man page.
  2620. * doc/aria2c.1.txt
  2621. 2009-05-24 Tatsuhiro Tsujikawa <[email protected]>
  2622. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2623. will break strict-aliasing rules
  2624. * src/PeerConnection.cc
  2625. * test/DHTRoutingTableSerializerTest.cc
  2626. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2627. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2628. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2629. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2630. PKG_CHECK_MODULES macro uses latter name.
  2631. * m4/sqlite3.m4
  2632. * src/Makefile.am
  2633. * test/Makefile.am
  2634. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2635. Fixed typo
  2636. * configure.ac
  2637. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2638. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2639. presence of libgnutls using pkg-config first. If it fails, fall
  2640. back to old macro libgnutls.m4.
  2641. * configure.ac
  2642. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2643. Use s itself instead of !s.bad()
  2644. * src/CookieStorage.cc
  2645. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2646. Documented --on-download-* option and --save-cookies option in man
  2647. page.
  2648. * doc/aria2c.1.txt
  2649. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  2650. Set possible values for --load-cookie option to "/path/to/file".
  2651. * src/OptionHandlerFactory.cc
  2652. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2653. Added --save-cookies option.
  2654. * src/Cookie.cc
  2655. * src/Cookie.h
  2656. * src/CookieStorage.cc
  2657. * src/CookieStorage.h
  2658. * src/MultiUrlRequestInfo.cc
  2659. * src/OptionHandlerFactory.cc
  2660. * src/prefs.cc
  2661. * src/prefs.h
  2662. * src/usage_text.h
  2663. * test/CookieStorageTest.cc
  2664. * test/CookieTest.cc
  2665. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2666. Removed tellAll XML-RPC command because its reponse tends to be
  2667. big if stopped/waiting downloads pile up.
  2668. * src/XmlRpcMethodFactory.cc
  2669. * src/XmlRpcMethodImpl.cc
  2670. * src/XmlRpcMethodImpl.h
  2671. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2672. Added the ability to execute command when download starts and
  2673. stops. You can also specify command for particular cases such as
  2674. complete/error download. Added --on-download-start,
  2675. --on-download-stop, --on-download-complete and --on-download-error
  2676. option.
  2677. * src/OptionHandlerFactory.cc
  2678. * src/RequestGroupMan.cc
  2679. * src/prefs.cc
  2680. * src/prefs.h
  2681. * src/usage_text.h
  2682. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2683. Fixed test error
  2684. * test/BencodeTest.cc
  2685. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2686. Added unit tests.
  2687. * test/XmlRpcMethodTest.cc
  2688. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  2689. Made exception message more verbose.
  2690. * src/bencode.cc
  2691. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  2692. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2693. space in console readout. Also they are now shown in MiB/s if
  2694. speed > 1024KiB/s.
  2695. * src/ConsoleStatCalc.cc
  2696. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  2697. Added SEED to console output, which represents the number of
  2698. seeders currently the client is connecting to.
  2699. * src/ConsoleStatCalc.cc
  2700. * src/ConsoleStatCalc.h
  2701. * src/DownloadEngine.cc
  2702. * src/NullStatCalc.h
  2703. * src/StatCalc.h
  2704. 2009-05-18 Tatsuhiro Tsujikawa <[email protected]>
  2705. Added source filename(__FILE__) and line number(__LINE__) to
  2706. exception message.
  2707. * src/AbstractCommand.cc
  2708. * src/AbstractDiskWriter.cc
  2709. * src/AbstractProxyResponseCommand.cc
  2710. * src/BDE.h
  2711. * src/BtAllowedFastMessage.cc
  2712. * src/BtHandshakeMessageValidator.h
  2713. * src/BtHaveAllMessage.cc
  2714. * src/BtHaveNoneMessage.cc
  2715. * src/BtPieceMessage.cc
  2716. * src/BtRejectMessage.cc
  2717. * src/ChunkedDecoder.cc
  2718. * src/CookieStorage.cc
  2719. * src/DHTAnnouncePeerMessage.cc
  2720. * src/DHTEntryPointNameResolveCommand.cc
  2721. * src/DHTMessageFactoryImpl.cc
  2722. * src/DHTMessageTracker.cc
  2723. * src/DHTRoutingTableDeserializer.cc
  2724. * src/DHTRoutingTableSerializer.cc
  2725. * src/DHTSetup.cc
  2726. * src/DHTTokenTracker.cc
  2727. * src/DefaultBtAnnounce.cc
  2728. * src/DefaultBtContext.cc
  2729. * src/DefaultBtInteractive.cc
  2730. * src/DefaultBtMessageFactory.cc
  2731. * src/DefaultBtProgressInfoFile.cc
  2732. * src/DefaultExtensionMessageFactory.cc
  2733. * src/DlAbortEx.h
  2734. * src/DlRetryEx.h
  2735. * src/DownloadCommand.cc
  2736. * src/DownloadEngineFactory.cc
  2737. * src/DownloadFailureException.h
  2738. * src/Exception.cc
  2739. * src/Exception.h
  2740. * src/ExpatMetalinkProcessor.cc
  2741. * src/ExpatXmlRpcRequestProcessor.cc
  2742. * src/FallocFileAllocationIterator.cc
  2743. * src/FatalException.h
  2744. * src/FtpConnection.cc
  2745. * src/FtpFinishDownloadCommand.cc
  2746. * src/FtpInitiateConnectionCommand.cc
  2747. * src/FtpNegotiationCommand.cc
  2748. * src/GZipDecoder.cc
  2749. * src/HandshakeExtensionMessage.cc
  2750. * src/HttpConnection.cc
  2751. * src/HttpHeaderProcessor.cc
  2752. * src/HttpInitiateConnectionCommand.cc
  2753. * src/HttpResponse.cc
  2754. * src/HttpResponseCommand.cc
  2755. * src/HttpServer.cc
  2756. * src/HttpSkipResponseCommand.cc
  2757. * src/InitiateConnectionCommandFactory.cc
  2758. * src/IteratableChunkChecksumValidator.cc
  2759. * src/LibgcryptARC4Context.h
  2760. * src/LibgcryptARC4Decryptor.h
  2761. * src/LibgcryptARC4Encryptor.h
  2762. * src/LibgcryptDHKeyExchange.h
  2763. * src/LibgnutlsTLSContext.cc
  2764. * src/LibsslARC4Context.h
  2765. * src/LibsslARC4Decryptor.h
  2766. * src/LibsslARC4Encryptor.h
  2767. * src/LibsslDHKeyExchange.h
  2768. * src/LibsslTLSContext.cc
  2769. * src/MSEHandshake.cc
  2770. * src/MessageDigestHelper.cc
  2771. * src/MetalinkHelper.cc
  2772. * src/MultiDiskAdaptor.cc
  2773. * src/NameMatchOptionHandler.h
  2774. * src/NameResolver.cc
  2775. * src/Netrc.cc
  2776. * src/NsCookieParser.cc
  2777. * src/OptionHandlerException.cc
  2778. * src/OptionHandlerException.h
  2779. * src/OptionHandlerImpl.h
  2780. * src/OptionParser.cc
  2781. * src/ParameterizedStringParser.cc
  2782. * src/PeerAbstractCommand.cc
  2783. * src/PeerConnection.cc
  2784. * src/PeerMessageUtil.cc
  2785. * src/PeerReceiveHandshakeCommand.cc
  2786. * src/Platform.cc
  2787. * src/ReceiverMSEHandshakeCommand.cc
  2788. * src/RecoverableException.h
  2789. * src/RequestGroup.cc
  2790. * src/SimpleLogger.cc
  2791. * src/SocketCore.cc
  2792. * src/Sqlite3MozCookieParser.cc
  2793. * src/UTPexExtensionMessage.cc
  2794. * src/Util.cc
  2795. * src/XML2SAXMetalinkProcessor.cc
  2796. * src/Xml2XmlRpcRequestProcessor.cc
  2797. * src/XmlRpcMethodImpl.cc
  2798. * src/bencode.cc
  2799. * src/download_helper.cc
  2800. * src/messageDigest.h
  2801. * test/ExceptionTest.cc
  2802. * test/TestUtil.cc
  2803. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  2804. Bump up version number to 1.4.0
  2805. * configure.ac
  2806. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  2807. Added 2files.metalink to EXTRA_DIST
  2808. * test/Makefile.am
  2809. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2810. Added missing 2files.metalink
  2811. * test/2files.metalink
  2812. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2813. Show "[MEMORY]" prefix before filename in download summary if it
  2814. is downloaded into memory.
  2815. * src/DownloadResult.h
  2816. * src/RequestGroup.cc
  2817. * src/RequestGroupMan.cc
  2818. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2819. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2820. * src/ExpatXmlRpcRequestProcessor.cc
  2821. * src/Xml2XmlRpcRequestProcessor.cc
  2822. * src/message.h
  2823. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2824. Defined const BDEs to avoid duplicate instantiation.
  2825. Defined MSG_GID_NOT_PROVIDED.
  2826. * src/XmlRpcMethodImpl.cc
  2827. * src/message.h
  2828. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2829. Code cleanup
  2830. * src/Xml2XmlRpcRequestProcessor.cc
  2831. * src/Xml2XmlRpcRequestProcessor.h
  2832. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2833. Defined ENABLE_XML_RPC
  2834. * configure.ac
  2835. * configure
  2836. * config.h.in
  2837. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2838. Added ExpatXmlRpcRequestProcessor
  2839. * src/ExpatXmlRpcRequestProcessor.cc
  2840. * src/ExpatXmlRpcRequestProcessor.h
  2841. * src/Makefile.am
  2842. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2843. Added tests for addTorrent and addMetalink command.
  2844. * test/TestUtil.cc
  2845. * test/TestUtil.h
  2846. * test/XmlRpcMethodTest.cc
  2847. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2848. Corrected the description of --file-allocation option.
  2849. * doc/aria2c.1.txt
  2850. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2851. Added tellAll command.
  2852. * src/XmlRpcMethodFactory.cc
  2853. * src/XmlRpcMethodImpl.cc
  2854. * src/XmlRpcMethodImpl.h
  2855. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2856. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2857. * src/XmlRpcMethodImpl.cc
  2858. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2859. Added changeGlobalOption command. Currently,
  2860. max-overall-download-limit and max-overall-upload-limit option are
  2861. available.
  2862. * src/RequestGroupMan.h
  2863. * src/XmlRpcMethod.cc
  2864. * src/XmlRpcMethod.h
  2865. * src/XmlRpcMethodFactory.cc
  2866. * src/XmlRpcMethodImpl.cc
  2867. * src/XmlRpcMethodImpl.h
  2868. * test/XmlRpcMethodTest.cc
  2869. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  2870. Added changeOption command. Currently, max-download-limit,
  2871. max-upload-limit option are available in this command.
  2872. * src/RequestGroup.h
  2873. * src/XmlRpcMethod.cc
  2874. * src/XmlRpcMethod.h
  2875. * src/XmlRpcMethodFactory.cc
  2876. * src/XmlRpcMethodImpl.cc
  2877. * src/XmlRpcMethodImpl.h
  2878. * test/XmlRpcMethodTest.cc
  2879. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  2880. Added purgeDownloadResult command.
  2881. * src/RequestGroupMan.cc
  2882. * src/RequestGroupMan.h
  2883. * src/XmlRpcMethodFactory.cc
  2884. * src/XmlRpcMethodImpl.cc
  2885. * src/XmlRpcMethodImpl.h
  2886. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  2887. Refactored.
  2888. * src/XmlRpcMethod.cc
  2889. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  2890. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2891. XmlRpcResponse.
  2892. * src/HttpServerBodyCommand.cc
  2893. * src/Makefile.am
  2894. * src/XmlRpcMethod.cc
  2895. * src/XmlRpcMethod.h
  2896. * src/XmlRpcMethodImpl.cc
  2897. * src/XmlRpcResponse.cc
  2898. * src/XmlRpcResponse.h
  2899. * test/XmlRpcMethodTest.cc
  2900. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  2901. In XML-RPC option struct, header and index-out option can take
  2902. array as value.
  2903. * src/XmlRpcMethod.cc
  2904. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2905. Removed unused option member from PeerConnection.
  2906. * src/InitiatorMSEHandshakeCommand.cc
  2907. * src/PeerConnection.cc
  2908. * src/PeerConnection.h
  2909. * src/PeerInteractionCommand.cc
  2910. * src/PeerReceiveHandshakeCommand.cc
  2911. * src/ReceiverMSEHandshakeCommand.cc
  2912. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2913. Added "seeder" key to getPeers response.
  2914. * src/XmlRpcMethodImpl.cc
  2915. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2916. Added addMetalink XML-RPC command.
  2917. * src/XmlRpcMethodFactory.cc
  2918. * src/XmlRpcMethodImpl.cc
  2919. * src/XmlRpcMethodImpl.h
  2920. * src/download_helper.cc
  2921. * src/download_helper.h
  2922. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2923. Fixed the bug that POU peers are never choked in seeding.
  2924. * src/BtSeederStateChoke.cc
  2925. * src/BtSeederStateChoke.h
  2926. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2927. Added web-seeding URI handling in addTorrent command.
  2928. * src/XmlRpcMethodImpl.cc
  2929. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2930. Added "length" key to getFiles response.
  2931. * src/XmlRpcMethodImpl.cc
  2932. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2933. Moved --no-netrc option from ftp option section to http/ftp option
  2934. section.
  2935. * doc/aria2c.1.txt
  2936. * src/OptionHandlerFactory.cc
  2937. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2938. Removed garbage "\" character before '
  2939. * doc/aria2c.1.txt
  2940. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2941. Removed garbage "\" character before http.
  2942. * doc/aria2c.1.txt
  2943. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2944. Documented additional options that can be specified in -i list.
  2945. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2946. and --xml-rpc-passwd. Removed --enable-http-server and
  2947. --http-server-listen-port.
  2948. * doc/aria2c.1.txt
  2949. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2950. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2951. * src/DefaultPeerStorage.cc
  2952. * src/DefaultPeerStorage.h
  2953. * src/PeerStorage.h
  2954. * src/XmlRpcMethodImpl.cc
  2955. * test/MockPeerStorage.h
  2956. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  2957. Put a call to Socket::isReadable() in try block.
  2958. * src/HttpServerBodyCommand.cc
  2959. * src/HttpServerCommand.cc
  2960. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2961. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2962. exception , so it is now in try block.
  2963. * src/HttpServerResponseCommand.cc
  2964. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2965. Added "amChoking" and "peerChoking" key in getPeers response.
  2966. * src/XmlRpcMethodImpl.cc
  2967. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2968. Added test case for zero-length filter.
  2969. * test/BitfieldManTest.cc
  2970. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2971. getFiles command now returns file data for finished/stopped
  2972. downloads.
  2973. * src/XmlRpcMethodImpl.cc
  2974. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2975. DownloadResult now has the list of FileEntry. The download
  2976. summary displays the path of first selected file and the number of
  2977. remaining files for multi-file torrent.
  2978. * src/DownloadResult.h
  2979. * src/RequestGroup.cc
  2980. * src/RequestGroupMan.cc
  2981. * test/RequestGroupTest.cc
  2982. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2983. Fixed segmentation fault error when no file is selected in
  2984. multi-file torrent.
  2985. * src/BitfieldMan.cc
  2986. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2987. Escaped <,>,& character in XML-RPC response.
  2988. * src/XmlRpcMethod.cc
  2989. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  2990. Throw DlAbortEx instead of FatalException during parsing options
  2991. because we don't want for aria2 to quit when bad option is passed
  2992. via XML-RPC.
  2993. * src/OptionHandlerException.cc
  2994. * src/OptionHandlerException.h
  2995. * src/OptionHandlerImpl.h
  2996. * src/OptionParser.cc
  2997. * src/OptionParser.h
  2998. * src/PStringSegment.cc
  2999. * src/ParameterizedStringParser.cc
  3000. * src/download_helper.cc
  3001. * test/ParameterizedStringParserTest.cc
  3002. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  3003. Selecting files are now done in
  3004. DefaultBtContext::setFileFileter().
  3005. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3006. functions are removed because they are no longer used. Creating
  3007. filter in BitfieldMan is done in new funtion
  3008. PieceStorage::setupFileFilter()
  3009. * src/BtContext.cc
  3010. * src/BtContext.h
  3011. * src/DefaultBtContext.cc
  3012. * src/DefaultBtContext.h
  3013. * src/DefaultPieceStorage.cc
  3014. * src/DefaultPieceStorage.h
  3015. * src/DiskAdaptor.cc
  3016. * src/DiskAdaptor.h
  3017. * src/PieceStorage.h
  3018. * src/RequestGroup.cc
  3019. * src/UnknownLengthPieceStorage.h
  3020. * src/XmlRpcMethodImpl.cc
  3021. * test/DefaultBtContextTest.cc
  3022. * test/MockBtContext.h
  3023. * test/MockPieceStorage.h
  3024. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3025. Fixed compile error on Mac OS X
  3026. * src/HttpServer.cc
  3027. * src/XmlRpcMethod.h
  3028. * src/XmlRpcMethodImpl.cc
  3029. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3030. Use std::binary_search instead of std::find
  3031. * src/DefaultPieceStorage.cc
  3032. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3033. Removed unnecessary BDE() call; leave them to implicit conversion.
  3034. * src/XmlRpcMethodImpl.cc
  3035. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3036. Return connections and gid in string
  3037. * src/XmlRpcMethodImpl.cc
  3038. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3039. Renamed addURI as addUri
  3040. * src/XmlRpcMethodFactory.cc
  3041. * src/XmlRpcMethodImpl.cc
  3042. * src/XmlRpcMethodImpl.h
  3043. * test/XmlRpcMethodTest.cc
  3044. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3045. Renamed addTorrentFile as addTorrent
  3046. * src/XmlRpcMethodFactory.cc
  3047. * src/XmlRpcMethodImpl.cc
  3048. * src/XmlRpcMethodImpl.h
  3049. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3050. The information for files, URIs, peers are removed from the
  3051. reponse of TellaActive, TellStatus command because they tend to be
  3052. large. Instead they can be retrieved by the dedicated commands:
  3053. getFiles, getUris and getPeers respectively.
  3054. * src/XmlRpcMethodFactory.cc
  3055. * src/XmlRpcMethodImpl.cc
  3056. * src/XmlRpcMethodImpl.h
  3057. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3058. Removed --max-overall-upload-limit and
  3059. --max-overall-download-limit option from listRequestOptions.
  3060. * src/download_helper.cc
  3061. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3062. Log incoming host in HttpListenCommand.
  3063. * src/HttpListenCommand.cc
  3064. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3065. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3066. --xml-rpc-passwd option.
  3067. * src/HttpServer.cc
  3068. * src/HttpServer.h
  3069. * src/HttpServerCommand.cc
  3070. * src/OptionHandlerFactory.cc
  3071. * src/prefs.cc
  3072. * src/prefs.h
  3073. * src/usage_text.h
  3074. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  3075. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3076. processing 0 length request.
  3077. * src/HttpServerBodyCommand.cc
  3078. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3079. Removed --enable-http-server and --http-server-listen-port
  3080. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3081. instead. The original feature for --enable-http-server that
  3082. reports download progress in HTML was officially removed. Persist
  3083. XML-RPC connection if client supports keep-alive.
  3084. * src/DownloadEngineFactory.cc
  3085. * src/HttpServerCommand.cc
  3086. * src/HttpServerResponseCommand.cc
  3087. * src/Makefile.am
  3088. * src/Makefile.in
  3089. * src/OptionHandlerFactory.cc
  3090. * src/RequestGroupMan.cc
  3091. * src/main.cc
  3092. * src/option_processing.cc
  3093. * src/prefs.cc
  3094. * src/prefs.h
  3095. * src/usage_text.h
  3096. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3097. Added "uris" key to the response of tellStatus command. Added
  3098. "connections" key to the response of tellStatus and tellActive
  3099. command.
  3100. * src/XmlRpcMethodImpl.cc
  3101. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3102. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3103. Added TellStatusXmlRpcMethod. Remove command can now remove
  3104. waiting RequestGroup.
  3105. * src/RequestGroupMan.cc
  3106. * src/RequestGroupMan.h
  3107. * src/XmlRpcMethodFactory.cc
  3108. * src/XmlRpcMethodImpl.cc
  3109. * src/XmlRpcMethodImpl.h
  3110. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3111. Initialized _peerId
  3112. * src/Peer.cc
  3113. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3114. Return fault structure for error. FailXmlRpcMethod is renamed as
  3115. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3116. in non-torrent download. Return single param value.
  3117. * src/XmlRpcMethod.cc
  3118. * src/XmlRpcMethodFactory.cc
  3119. * src/XmlRpcMethodImpl.cc
  3120. * src/XmlRpcMethodImpl.h
  3121. * test/XmlRpcMethodTest.cc
  3122. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3123. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3124. command.
  3125. * src/RequestGroup.cc
  3126. * src/RequestGroup.h
  3127. * src/RequestGroupMan.cc
  3128. * src/XmlRpcMethodImpl.cc
  3129. * test/RequestGroupTest.cc
  3130. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3131. Added more options that can be specified in -i list and xml-rpc
  3132. add* command.
  3133. * src/download_helper.h
  3134. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3135. The available options in -i list should be listed in
  3136. listRequestOptions().
  3137. * src/download_helper.cc
  3138. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3139. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3140. command.
  3141. * src/XmlRpcMethodImpl.cc
  3142. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  3143. Now RequestGroup has its own copy of Option object. This will help
  3144. to give custom option for each RequestGroup.
  3145. addTorrentFile command now takes options.
  3146. * src/AbstractCommand.cc
  3147. * src/AbstractCommand.h
  3148. * src/AbstractProxyRequestCommand.cc
  3149. * src/ActivePeerConnectionCommand.cc
  3150. * src/ActivePeerConnectionCommand.h
  3151. * src/AdaptiveURISelector.cc
  3152. * src/BtCheckIntegrityEntry.cc
  3153. * src/BtDependency.cc
  3154. * src/BtDependency.h
  3155. * src/BtFileAllocationEntry.cc
  3156. * src/BtPostDownloadHandler.cc
  3157. * src/CheckIntegrityEntry.cc
  3158. * src/DownloadCommand.cc
  3159. * src/FtpDownloadCommand.cc
  3160. * src/FtpFinishDownloadCommand.cc
  3161. * src/FtpInitiateConnectionCommand.cc
  3162. * src/FtpNegotiationCommand.cc
  3163. * src/HttpInitiateConnectionCommand.cc
  3164. * src/HttpRequestCommand.cc
  3165. * src/HttpResponseCommand.cc
  3166. * src/HttpSkipResponseCommand.cc
  3167. * src/InitiateConnectionCommand.cc
  3168. * src/InitiateConnectionCommandFactory.cc
  3169. * src/InitiatorMSEHandshakeCommand.cc
  3170. * src/InitiatorMSEHandshakeCommand.h
  3171. * src/Metalink2RequestGroup.cc
  3172. * src/Metalink2RequestGroup.h
  3173. * src/MetalinkPostDownloadHandler.cc
  3174. * src/MultiUrlRequestInfo.cc
  3175. * src/MultiUrlRequestInfo.h
  3176. * src/PeerAbstractCommand.cc
  3177. * src/PeerInteractionCommand.cc
  3178. * src/PeerInteractionCommand.h
  3179. * src/PeerReceiveHandshakeCommand.cc
  3180. * src/PeerReceiveHandshakeCommand.h
  3181. * src/RequestGroup.cc
  3182. * src/RequestGroup.h
  3183. * src/TrackerWatcherCommand.cc
  3184. * src/TrackerWatcherCommand.h
  3185. * src/XmlRpcMethod.cc
  3186. * src/XmlRpcMethod.h
  3187. * src/XmlRpcMethodImpl.cc
  3188. * src/download_helper.cc
  3189. * src/download_helper.h
  3190. * src/main.cc
  3191. * test/BtDependencyTest.cc
  3192. * test/BtPostDownloadHandlerTest.cc
  3193. * test/DefaultBtMessageDispatcherTest.cc
  3194. * test/DownloadHandlerFactoryTest.cc
  3195. * test/DownloadHelperTest.cc
  3196. * test/Metalink2RequestGroupTest.cc
  3197. * test/MetalinkPostDownloadHandlerTest.cc
  3198. * test/RequestGroupManTest.cc
  3199. * test/RequestGroupTest.cc
  3200. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3201. Added tellActiveStatus xml-rpc command which reports download
  3202. status of active downloads.
  3203. * src/XmlRpcMethodFactory.cc
  3204. * src/XmlRpcMethodImpl.cc
  3205. * src/XmlRpcMethodImpl.h
  3206. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3207. Added addTorrentFile xml-rpc command which receives uploaded
  3208. torrent file and add download for it.
  3209. * src/RequestGroupMan.cc
  3210. * src/XmlRpcMethodFactory.cc
  3211. * src/XmlRpcMethodImpl.cc
  3212. * src/XmlRpcMethodImpl.h
  3213. * src/download_helper.cc
  3214. * src/download_helper.h
  3215. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3216. Added remove xml-rpc command which removes specified download.
  3217. There is a known issue: the removed unfinished downloads are
  3218. reported ERR when aria2 exits. They should be reported as INPR.
  3219. * src/RequestGroupMan.cc
  3220. * src/RequestGroupMan.h
  3221. * src/XmlRpcMethodFactory.cc
  3222. * src/XmlRpcMethodImpl.cc
  3223. * src/XmlRpcMethodImpl.h
  3224. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3225. If --enable-http-server is enabled, don't stop aria2 when all
  3226. download finished and don't quit when no files to download at
  3227. start up.
  3228. * src/RequestGroupMan.cc
  3229. * src/main.cc
  3230. * src/option_processing.cc
  3231. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3232. Added missing AM_CONDITIONAL
  3233. * configure.ac
  3234. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3235. Added xml-rpc functionality. Currently only addURI commad is
  3236. supported. To enable xml-rpc, run aria2 with
  3237. --enable-http-server. This option name is temporal and will be
  3238. changed. The feature that reports download progress in html format
  3239. is temporarily disabled.
  3240. * src/HttpServer.cc
  3241. * src/HttpServer.h
  3242. * src/HttpServerBodyCommand.cc
  3243. * src/HttpServerBodyCommand.h
  3244. * src/HttpServerCommand.cc
  3245. * src/HttpServerResponseCommand.cc
  3246. * src/Makefile.am
  3247. * src/OptionParser.cc
  3248. * src/OptionParser.h
  3249. * src/RequestGroupMan.cc
  3250. * src/RequestGroupMan.h
  3251. * src/XmlRpcMethod.cc
  3252. * src/XmlRpcMethod.h
  3253. * src/XmlRpcMethodFactory.cc
  3254. * src/XmlRpcMethodFactory.h
  3255. * src/XmlRpcMethodImpl.cc
  3256. * src/XmlRpcMethodImpl.h
  3257. * src/download_helper.cc
  3258. * src/download_helper.h
  3259. * test/Makefile.am
  3260. * test/XmlRpcMethodTest.cc
  3261. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3262. Added xml-rpc request parser. The supported value types are:
  3263. i4/int, string, double, struct, array, base64. Currently only
  3264. libxml2 version is provided.
  3265. * src/Xml2XmlRpcRequestProcessor.cc
  3266. * src/Xml2XmlRpcRequestProcessor.h
  3267. * src/XmlRpcElements.cc
  3268. * src/XmlRpcElements.h
  3269. * src/XmlRpcRequest.h
  3270. * src/XmlRpcRequestParserController.cc
  3271. * src/XmlRpcRequestParserController.h
  3272. * src/XmlRpcRequestParserState.h
  3273. * src/XmlRpcRequestParserStateImpl.cc
  3274. * src/XmlRpcRequestParserStateImpl.h
  3275. * src/XmlRpcRequestParserStateMachine.cc
  3276. * src/XmlRpcRequestParserStateMachine.h
  3277. * src/XmlRpcRequestProcessor.h
  3278. * test/XmlRpcRequestParserControllerTest.cc
  3279. * test/XmlRpcRequestProcessorTest.cc
  3280. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3281. * Release 1.3.3
  3282. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3283. Fixed compile error since r1202.
  3284. * src/ExpatMetalinkProcessor.cc
  3285. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  3286. Updated Ukrainian, Russian and Simplified Chinese
  3287. translations. Thanks to all translators.
  3288. * po/ru.po
  3289. * po/uk.po
  3290. * po/zh_CN.po
  3291. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  3292. Pass reference of Option object instead of pointer.
  3293. * src/download_helper.cc
  3294. * src/download_helper.h
  3295. * src/main.cc
  3296. * test/DownloadHelperTest.cc
  3297. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  3298. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3299. from option directly. Instead, get them from RequestGroup.
  3300. * src/ActivePeerConnectionCommand.cc
  3301. * src/ActivePeerConnectionCommand.h
  3302. * src/PeerReceiveHandshakeCommand.cc
  3303. * src/RequestGroup.h
  3304. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  3305. Removed unused uploadLimitCheck and uploadLimit from
  3306. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3307. PeerInteractionCommand.
  3308. * src/PeerAbstractCommand.cc
  3309. * src/PeerAbstractCommand.h
  3310. * src/PeerInteractionCommand.cc
  3311. * src/PeerInteractionCommand.h
  3312. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  3313. Fixed broken file renaming feature since r1202.
  3314. * src/FtpNegotiationCommand.cc
  3315. * src/FtpNegotiationCommand.h
  3316. * src/HttpResponseCommand.cc
  3317. * src/RequestGroup.cc
  3318. * src/RequestGroup.h
  3319. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  3320. Removed unused debug log
  3321. * src/SocketCore.cc
  3322. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  3323. Generated configure and Makefile.in using autoconf 2.63 and
  3324. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3325. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3326. * configure.ac
  3327. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  3328. Moved piece statistics stuff to new PieceStatMan class.
  3329. Refactored PieceSelector interface.
  3330. * src/DefaultPieceStorage.cc
  3331. * src/DefaultPieceStorage.h
  3332. * src/LongestSequencePieceSelector.cc
  3333. * src/LongestSequencePieceSelector.h
  3334. * src/Makefile.am
  3335. * src/PieceSelector.h
  3336. * src/PieceStatMan.cc
  3337. * src/PieceStatMan.h
  3338. * src/RarestPieceSelector.cc
  3339. * src/RarestPieceSelector.h
  3340. * src/RequestGroup.cc
  3341. * test/DefaultPieceStorageTest.cc
  3342. * test/InOrderPieceSelector.h
  3343. * test/Makefile.am
  3344. * test/PieceStatManTest.cc
  3345. * test/RarestPieceSelectorTest.cc
  3346. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  3347. Added static member _protocolFamily to SocketCore. By default,
  3348. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3349. address. Sometime SocketCore::bind() and
  3350. SocketCore::establishConnection() use difference protocl family
  3351. and latter cannot connect to former. To avoid this situation, we
  3352. limit protocol family to AF_INET for unit tests.
  3353. * src/SocketCore.cc
  3354. * src/SocketCore.h
  3355. * test/AllTest.cc
  3356. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  3357. Avoid std::bad_alloc for negative bencode string length.
  3358. * src/bencode.cc
  3359. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  3360. Supported segmented downloading with chunked transfer encoding and
  3361. content-length.
  3362. * src/DownloadCommand.cc
  3363. * src/HttpResponseCommand.cc
  3364. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  3365. Bump up version number to 1.3.3
  3366. * configure.ac
  3367. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  3368. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3369. from 4096 to 65536 (for insanely large ftp login banners)
  3370. * src/FtpConnection.h
  3371. * test/FtpConnectionTest.cc
  3372. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  3373. In DefaultBtContext::getActualBasePath(), return first
  3374. FileEntry::getPath() for single file torrent.
  3375. * src/DefaultBtContext.cc
  3376. * test/DefaultBtContextTest.cc
  3377. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  3378. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3379. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3380. Removed _directIOAllowed member from DiskWriter.
  3381. * src/AbstractDiskWriter.cc
  3382. * src/AbstractDiskWriter.h
  3383. * src/AbstractSingleDiskAdaptor.cc
  3384. * src/AbstractSingleDiskAdaptor.h
  3385. * src/BinaryStream.h
  3386. * src/ByteArrayDiskWriter.h
  3387. * src/DefaultPieceStorage.cc
  3388. * src/DiskWriter.h
  3389. * src/MultiDiskAdaptor.cc
  3390. * src/MultiDiskAdaptor.h
  3391. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  3392. Now the constructor of AbstractDiskWriter takes filename as an
  3393. argument and filename argument is removed from openFile(),
  3394. initAndOpenFile(), openExistingFile() interface. storeDir member
  3395. and its accessor functions are removed from DiskAdaptor because it
  3396. is not used anymore. size() member function of DefaultDiskWriter,
  3397. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3398. opening file.
  3399. * src/AbstractDiskWriter.cc
  3400. * src/AbstractDiskWriter.h
  3401. * src/AbstractSingleDiskAdaptor.cc
  3402. * src/AbstractSingleDiskAdaptor.h
  3403. * src/ByteArrayDiskWriter.cc
  3404. * src/ByteArrayDiskWriter.h
  3405. * src/ByteArrayDiskWriterFactory.cc
  3406. * src/ByteArrayDiskWriterFactory.h
  3407. * src/DefaultDiskWriter.cc
  3408. * src/DefaultDiskWriter.h
  3409. * src/DefaultDiskWriterFactory.cc
  3410. * src/DefaultDiskWriterFactory.h
  3411. * src/DefaultPieceStorage.cc
  3412. * src/DirectDiskAdaptor.cc
  3413. * src/DirectDiskAdaptor.h
  3414. * src/DiskAdaptor.h
  3415. * src/DiskWriter.h
  3416. * src/DiskWriterFactory.h
  3417. * src/MessageDigestHelper.cc
  3418. * src/MultiDiskAdaptor.cc
  3419. * src/RequestGroup.cc
  3420. * src/UnknownLengthPieceStorage.cc
  3421. * src/Util.cc
  3422. * test/DefaultDiskWriterTest.cc
  3423. * test/DirectDiskAdaptorTest.cc
  3424. * test/FallocFileAllocationIteratorTest.cc
  3425. * test/MessageDigestHelperTest.cc
  3426. * test/MetalinkProcessorTest.cc
  3427. * test/MultiDiskAdaptorTest.cc
  3428. * test/MultiFileAllocationIteratorTest.cc
  3429. * test/SingleFileAllocationIteratorTest.cc
  3430. * test/UtilTest.cc
  3431. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  3432. Fixed the bug that aria2 aborts when --select-file is used. This
  3433. bug was introduced in r1199.
  3434. * src/MultiDiskAdaptor.cc
  3435. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  3436. Code cleanup
  3437. * test/MockPieceStorage.cc
  3438. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  3439. Fixed the bug that read-only file with wrong file size will cause
  3440. error because it cannot be truncated to the correct size. Now if
  3441. file size is different than the expected one, re-open file in
  3442. writable mode.
  3443. * src/AbstractSingleDiskAdaptor.cc
  3444. * src/AbstractSingleDiskAdaptor.h
  3445. * src/BtCheckIntegrityEntry.cc
  3446. * src/DiskAdaptor.h
  3447. * src/MultiDiskAdaptor.h
  3448. * src/RequestGroup.cc
  3449. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  3450. Fixed the bug that with --check-integrity option aria2 reports
  3451. downloaded file size is 0 even if some parts of file is correctly
  3452. downloaded. This bug is reproducible for the download that a file
  3453. includes last piece is missing. This bug doesn't reveal for
  3454. single-torrent with file allocation on.
  3455. * src/IteratableChecksumValidator.cc
  3456. * test/IteratableChecksumValidatorTest.cc
  3457. 2009-05-01 Tatsuhiro Tsujikawa <[email protected]>
  3458. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3459. * src/RequestGroupMan.cc
  3460. * src/AdaptiveURISelector.cc
  3461. * src/AdaptiveURISelector.h
  3462. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  3463. * Release 1.3.2
  3464. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  3465. Updated README
  3466. * README
  3467. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  3468. Updated Ukrainian translations. Thanks to Alexander10.
  3469. * po/uk.po
  3470. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  3471. Code cleanup
  3472. * src/MetalinkParserStateMachine.cc
  3473. * src/MetalinkParserStateMachine.h
  3474. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  3475. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3476. and expat simultaneously, MetalinkProcessor is now not base class
  3477. and it is directly implemented in XML2SAXMetalinkProcessor and
  3478. ExpatMetalinkProcessor.
  3479. * src/ExpatMetalinkProcessor.cc
  3480. * src/ExpatMetalinkProcessor.h
  3481. * src/Makefile.am
  3482. * src/MetalinkHelper.cc
  3483. * src/MetalinkProcessor.h
  3484. * src/MetalinkProcessorFactory.cc: Removed.
  3485. * src/MetalinkProcessorFactory.h: Removed
  3486. * src/XML2SAXMetalinkProcessor.cc
  3487. * src/XML2SAXMetalinkProcessor.h
  3488. * test/MetalinkProcessorTest.cc
  3489. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  3490. Bump up version number to 1.3.2
  3491. * configure.ac
  3492. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  3493. Added missing file.
  3494. * test/Makefile.am
  3495. * test/url-list-singleFileEndsWithSlash.torrent
  3496. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  3497. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3498. request.
  3499. * src/AnnounceList.cc
  3500. * src/AnnounceList.h
  3501. * src/BDE.cc: Added
  3502. * src/BDE.h: Added
  3503. * src/DHTAbstractMessage.cc
  3504. * src/DHTAbstractMessage.h
  3505. * src/DHTAnnouncePeerMessage.cc
  3506. * src/DHTAnnouncePeerMessage.h
  3507. * src/DHTAnnouncePeerReplyMessage.cc
  3508. * src/DHTAnnouncePeerReplyMessage.h
  3509. * src/DHTFindNodeMessage.cc
  3510. * src/DHTFindNodeMessage.h
  3511. * src/DHTFindNodeReplyMessage.cc
  3512. * src/DHTFindNodeReplyMessage.h
  3513. * src/DHTGetPeersMessage.cc
  3514. * src/DHTGetPeersMessage.h
  3515. * src/DHTGetPeersReplyMessage.cc
  3516. * src/DHTGetPeersReplyMessage.h
  3517. * src/DHTMessageFactory.h
  3518. * src/DHTMessageFactoryImpl.cc
  3519. * src/DHTMessageFactoryImpl.h
  3520. * src/DHTMessageReceiver.cc
  3521. * src/DHTMessageTracker.cc
  3522. * src/DHTMessageTracker.h
  3523. * src/DHTPingMessage.cc
  3524. * src/DHTPingMessage.h
  3525. * src/DHTPingReplyMessage.cc
  3526. * src/DHTPingReplyMessage.h
  3527. * src/DHTQueryMessage.cc
  3528. * src/DHTQueryMessage.h
  3529. * src/DHTResponseMessage.cc
  3530. * src/DHTResponseMessage.h
  3531. * src/DefaultBtAnnounce.cc
  3532. * src/DefaultBtContext.cc
  3533. * src/DefaultBtContext.h
  3534. * src/HandshakeExtensionMessage.cc
  3535. * src/Makefile.am
  3536. * src/PeerListProcessor.h
  3537. * src/UTPexExtensionMessage.cc
  3538. * src/bencode.cc
  3539. * src/bencode.h
  3540. * test/AnnounceListTest.cc
  3541. * test/BDETest.cc: Added
  3542. * test/BencodeTest.cc
  3543. * test/DHTAnnouncePeerMessageTest.cc
  3544. * test/DHTAnnouncePeerReplyMessageTest.cc
  3545. * test/DHTFindNodeMessageTest.cc
  3546. * test/DHTFindNodeReplyMessageTest.cc
  3547. * test/DHTGetPeersMessageTest.cc
  3548. * test/DHTGetPeersReplyMessageTest.cc
  3549. * test/DHTMessageFactoryImplTest.cc
  3550. * test/DHTMessageTrackerTest.cc
  3551. * test/DHTPingMessageTest.cc
  3552. * test/DHTPingReplyMessageTest.cc
  3553. * test/Makefile.am
  3554. * test/MockDHTMessageFactory.h
  3555. * test/PeerListProcessorTest.cc
  3556. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  3557. Use url-list (web-seeding) only for single-file torrent. This is
  3558. basically the same behavior with Metalink file with torrent and
  3559. URIs.
  3560. * src/RequestGroup.cc
  3561. * src/DefaultBtContext.cc
  3562. * test/DefaultBtContextTest.cc
  3563. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  3564. Rewritten expr
  3565. * src/array_fun.h
  3566. * test/array_funTest.cc
  3567. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  3568. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3569. * src/DefaultBtMessageDispatcher.cc
  3570. * src/a2algo.h
  3571. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  3572. Removed ExtendedMessagingAware. Instead of using inheritance,
  3573. added ExtensionMessageRegistry and it is passed to
  3574. DefaultExtensionMessageFactory.
  3575. * src/DefaultBtInteractive.cc
  3576. * src/DefaultBtInteractive.h
  3577. * src/DefaultExtensionMessageFactory.cc
  3578. * src/DefaultExtensionMessageFactory.h
  3579. * src/ExtendedMessagingAware.h: Removed.
  3580. * src/ExtensionMessageFactory.h
  3581. * src/ExtensionMessageRegistry.h: Added.
  3582. * src/Makefile.am
  3583. * src/PeerInteractionCommand.cc
  3584. * test/DefaultExtensionMessageFactoryTest.cc
  3585. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  3586. Fixed typo in log messages
  3587. * src/MSEHandshake.cc
  3588. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  3589. Fixed the bug that prevents torrent download from finishing. The
  3590. bug doesn't reveal for all torrents. The torrents affected this
  3591. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3592. of pieces.
  3593. * src/bitfield.h
  3594. * test/bitfieldTest.cc
  3595. 2009-04-24 Tatsuhiro Tsujikawa <[email protected]>
  3596. Code cleanup
  3597. * src/PeerListProcessor.h
  3598. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  3599. Removed RequestGroupAware
  3600. * src/AbstractCommand.cc
  3601. * src/AbstractCommand.h
  3602. * src/ActivePeerConnectionCommand.cc
  3603. * src/ActivePeerConnectionCommand.h
  3604. * src/DHTGetPeersCommand.cc
  3605. * src/DHTGetPeersCommand.h
  3606. * src/InitiatorMSEHandshakeCommand.cc
  3607. * src/InitiatorMSEHandshakeCommand.h
  3608. * src/Makefile.am
  3609. * src/PeerInitiateConnectionCommand.cc
  3610. * src/PeerInitiateConnectionCommand.h
  3611. * src/PeerInteractionCommand.cc
  3612. * src/PeerInteractionCommand.h
  3613. * src/RealtimeCommand.cc
  3614. * src/RealtimeCommand.h
  3615. * src/RequestGroupAware.cc: Removed
  3616. * src/RequestGroupAware.h: Removed
  3617. * src/SeedCheckCommand.cc
  3618. * src/SeedCheckCommand.h
  3619. * src/SleepCommand.cc
  3620. * src/TrackerWatcherCommand.cc
  3621. * src/TrackerWatcherCommand.h
  3622. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  3623. Rewritten PeerListProcessor
  3624. * src/PeerListProcessor.h
  3625. * src/CompactPeerListProcessor.h: Removed
  3626. * src/CompactPeerListProcessor.cc: Removed
  3627. * src/DelegatingPeerListProcessor.cc: Removed.
  3628. * src/DefaultBtAnnounce.cc
  3629. * src/Makefile.am
  3630. * src/UTPexExtensionMessage.cc
  3631. * src/DefaultPeerListProcessor.h: Removed.
  3632. * src/DefaultPeerListProcessor.cc: Removed.
  3633. * src/DelegatingPeerListProcessor.h: Removed.
  3634. * test/Makefile.am
  3635. * test/PeerListProcessorTest.cc
  3636. * test/DefaultPeerListProcessorTest.cc: Removed.
  3637. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  3638. Rewritten RequestGroupMan::calculateStat()
  3639. * src/RequestGroupMan.cc
  3640. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  3641. Removed unnecessary virtual destructor for Request class.
  3642. * src/Request.cc
  3643. * src/Request.h
  3644. 2009-04-22 Tatsuhiro Tsujikawa <[email protected]>
  3645. Avoid dynamic_pointer_cast.
  3646. * src/DHTGetPeersCommand.cc
  3647. * src/DHTGetPeersCommand.h
  3648. 2009-04-21 Tatsuhiro Tsujikawa <[email protected]>
  3649. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3650. BtEvent.
  3651. * src/AbstractBtEventListener.h: Removed.
  3652. * src/AbstractBtMessage.cc
  3653. * src/AbstractBtMessage.h
  3654. * src/BtAbortOutstandingRequestEvent.h
  3655. * src/BtCancelSendingPieceEvent.h
  3656. * src/BtChokedEvent.h: Removed.
  3657. * src/BtChokingEvent.h
  3658. * src/BtEvent.h: Removed
  3659. * src/BtEventListener.h: Removed.
  3660. * src/BtMessage.h
  3661. * src/BtPieceMessage.cc
  3662. * src/BtPieceMessage.h
  3663. * src/BtRequestMessage.cc
  3664. * src/BtRequestMessage.h
  3665. * src/DefaultBtMessageDispatcher.cc
  3666. * src/Makefile.am
  3667. * src/a2functional.h
  3668. * test/BtPieceMessageTest.cc
  3669. * test/BtRequestMessageTest.cc
  3670. * test/DefaultBtMessageDispatcherTest.cc
  3671. * test/MockBtMessage.h
  3672. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  3673. Code cleanup
  3674. * src/RequestGroupMan.cc
  3675. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  3676. Code cleanup
  3677. * src/DownloadCommand.cc
  3678. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  3679. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3680. byte.
  3681. * src/DownloadCommand.cc
  3682. * src/bitfield.h
  3683. * test/bitfieldTest.cc
  3684. Fixed the bug that causes infinite loop if broken web server
  3685. returns chunked response without last "0" chunk-size marker and
  3686. closes connection.
  3687. * src/DownloadCommand.cc
  3688. Instantiate properly configured HttpDownloadCommand for
  3689. non-resumable downlaods.
  3690. * src/HttpResponseCommand.cc
  3691. 2009-04-16 Tatsuhiro Tsujikawa <[email protected]>
  3692. Rewritten array operation functions.
  3693. * src/BitfieldMan.cc
  3694. * src/array_fun.h
  3695. * test/array_funTest.cc
  3696. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  3697. Removed unused variable 'query'
  3698. * src/Request.cc
  3699. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  3700. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3701. accidentally set to false in r1162.
  3702. * configure.ac
  3703. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  3704. Code cleanup
  3705. * src/BNode.cc
  3706. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  3707. Increase prefixLength for the bucket which doesn't own local node
  3708. ID when splitting bucket.
  3709. * src/DHTBucket.cc
  3710. * test/DHTBucketTest.cc
  3711. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  3712. * Release 1.3.1
  3713. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  3714. Bump up version number to 1.3.1
  3715. * configure.ac
  3716. 2009-04-08 Tatsuhiro Tsujikawa <[email protected]>
  3717. Removed unused variable checkPoint. Also removed include directive
  3718. for TimeA2.h.
  3719. * src/SeedCheckCommand.h
  3720. 2009-04-07 Tatsuhiro Tsujikawa <[email protected]>
  3721. Fixed the bug that upload limit exceeds the value specified in
  3722. --seed-ratio option depending on the timing of the execution of
  3723. SeedCheckCommand.
  3724. * src/SeedCheckCommand.cc
  3725. 2009-04-05 Tatsuhiro Tsujikawa <[email protected]>
  3726. Fixed the bug that removed peer's session upload/download length
  3727. are counted twice in _cachedTransferStat before it is
  3728. re-calculated. This affected the calculation of shara ratio,
  3729. resulting aria2 wrongly determines that specified share ratio is
  3730. reached. Also fixed the typo in calculateStatFor function name.
  3731. * src/BtSetup.cc
  3732. * src/DefaultPeerStorage.cc
  3733. * src/ShareRatioSeedCriteria.h
  3734. * test/ShareRatioSeedCriteriaTest.cc
  3735. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  3736. * Release 1.3.0
  3737. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  3738. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3739. Nynorsk translations. Thanks to all translators.
  3740. * po/es.po
  3741. * po/ja.po
  3742. * po/nn.po
  3743. * po/ru.po
  3744. * po/uk.po
  3745. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  3746. Rewritten isInRange()
  3747. * src/DHTBucket.cc
  3748. * test/DHTBucketTest.cc
  3749. 2009-03-30 Tatsuhiro Tsujikawa <[email protected]>
  3750. Fixed typo
  3751. * doc/aria2c.1.txt
  3752. 2009-03-29 Tatsuhiro Tsujikawa <[email protected]>
  3753. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3754. malloc/realloc is not used.
  3755. * src/configure.ac
  3756. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  3757. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3758. char* bitfield instead of stl container for efficiency.
  3759. PieceSelector::select now takes this
  3760. bitfield. RarestPieceSelector::select now also performs
  3761. efficiently for this change. bitfield namespace is introduced and
  3762. it has several helper functions to handle basic bitfield
  3763. operations such as test, count set bits, etc.
  3764. * src/BitfieldMan.cc
  3765. * src/BitfieldMan.h
  3766. * src/DefaultBtRequestFactory.cc
  3767. * src/DefaultPieceStorage.cc
  3768. * src/DefaultPieceStorage.h
  3769. * src/LongestSequencePieceSelector.cc
  3770. * src/LongestSequencePieceSelector.h
  3771. * src/Makefile.am
  3772. * src/Piece.cc
  3773. * src/Piece.h
  3774. * src/PieceSelector.h
  3775. * src/RarestPieceSelector.cc
  3776. * src/RarestPieceSelector.h
  3777. * src/Util.cc
  3778. * src/Util.h
  3779. * src/bitfield.h
  3780. * test/BitfieldManTest.cc
  3781. * test/LongestSequencePieceSelectorTest.cc
  3782. * test/Makefile.am
  3783. * test/RarestPieceSelectorTest.cc
  3784. * test/UtilTest.cc
  3785. * test/bitfieldTest.cc
  3786. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  3787. Made accepted socket non-block.
  3788. * src/FtpNegotiationCommand.cc
  3789. * src/HttpListenCommand.cc
  3790. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  3791. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3792. * src/AbstractSingleDiskAdaptor.cc
  3793. * src/DefaultPieceStorage.cc
  3794. * src/DiskAdaptor.h
  3795. * src/DiskAdaptor.h
  3796. * src/MultiFileAllocationIterator.cc
  3797. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  3798. Run
  3799. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3800. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3801. it doesn't need to be called every time when
  3802. DefaultBtInteractive::doInteractionProcessing() is called.
  3803. * src/DefaultBtInteractive.cc
  3804. * src/DefaultBtInteractive.h
  3805. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3806. Documented 'falloc' in man page.
  3807. * doc/aria2c.1.txt
  3808. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3809. Updated doc
  3810. * src/usage_text.h
  3811. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3812. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3813. allocation mode uses posix_fallocate() system call to allocate
  3814. file on disk. If you are using newer file systems such as ext4
  3815. (with extents support), btrfs or xfs, 'falloc' is your best
  3816. choice. It allocates large(few GiB) files almost instantly. Don't
  3817. use 'falloc' with legacy file systems such as ext3 because it
  3818. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3819. until allocation finishes. 'falloc' may not be available if your
  3820. system doesn't have posix_fallocate() system call.
  3821. * configure.ac
  3822. * src/AbstractDiskWriter.cc
  3823. * src/AbstractDiskWriter.h
  3824. * src/AbstractSingleDiskAdaptor.cc
  3825. * src/BinaryStream.h
  3826. * src/BtCheckIntegrityEntry.cc
  3827. * src/ByteArrayDiskWriter.h
  3828. * src/CheckIntegrityEntry.cc
  3829. * src/CheckIntegrityEntry.h
  3830. * src/DefaultPieceStorage.cc
  3831. * src/DiskAdaptor.cc
  3832. * src/DiskAdaptor.h
  3833. * src/DiskWriter.h
  3834. * src/FallocFileAllocationIterator.cc
  3835. * src/FallocFileAllocationIterator.h
  3836. * src/FileAllocationEntry.cc
  3837. * src/FileAllocationEntry.h
  3838. * src/Makefile.am
  3839. * src/MultiFileAllocationIterator.cc
  3840. * src/MultiFileAllocationIterator.h
  3841. * src/OptionHandlerFactory.cc
  3842. * src/RequestGroup.cc
  3843. * src/StreamCheckIntegrityEntry.cc
  3844. * src/prefs.cc
  3845. * src/prefs.h
  3846. * src/usage_text.h
  3847. * test/FallocFileAllocationIteratorTest.cc
  3848. * test/Makefile.am
  3849. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3850. Removed duplicate enableDirectIO() call.
  3851. * src/MultiFileAllocationIterator.cc
  3852. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  3853. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3854. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3855. cost of std::rotate().
  3856. * src/RarestPieceSelector.cc
  3857. * src/RarestPieceSelector.h
  3858. * test/RarestPieceSelectorTest.cc
  3859. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  3860. Updated usage doc for --bt-tracker-interval option.
  3861. * src/usage_text.h
  3862. * doc/aria2c.1.txt
  3863. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  3864. Documented --bt-tracker-interval option in man page.
  3865. * doc/aria2c.1.txt
  3866. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  3867. Added an option to specify the interval between tracker requests.
  3868. If non-zero value is specified, aria2 uses it and ignores the
  3869. interval value in the response of tracker. If zero is specified,
  3870. aria2 determines the inteval value based on the tarcker response
  3871. and download progress.
  3872. * src/DefaultBtAnnounce.cc
  3873. * src/DefaultBtAnnounce.h
  3874. * src/OptionHandlerFactory.cc
  3875. * src/RequestGroup.cc
  3876. * src/prefs.cc
  3877. * src/prefs.h
  3878. * src/usage_text.h
  3879. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  3880. Added operator+=, operator-=, operator-
  3881. * src/TransferStat.cc
  3882. * src/TransferStat.h
  3883. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  3884. Refactored RarestPieceSelector to reduce CPU load, especially for
  3885. addPieceStats.
  3886. * src/RarestPieceSelector.cc
  3887. * src/RarestPieceSelector.h
  3888. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  3889. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3890. getAllMissingBlockIndexes to reduce a call to
  3891. array_function_base::operator[].
  3892. * src/BitfieldMan.cc
  3893. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  3894. Cached TransferStat/download speed to avoid to sum them up in each
  3895. call.
  3896. * src/DefaultPeerStorage.cc
  3897. * src/DefaultPeerStorage.h
  3898. * src/SegmentMan.cc
  3899. * src/SegmentMan.h
  3900. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  3901. Typedefed cuid_t as int32_t in Command.h
  3902. * src/CUIDCounter.h
  3903. * src/Command.cc
  3904. * src/Command.h
  3905. * src/DownloadEngine.cc
  3906. * src/DownloadEngine.h
  3907. * src/PeerStat.h
  3908. * src/SegmentMan.cc
  3909. * src/SegmentMan.h
  3910. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  3911. Reduced the number of calls to PeerStorage::calculateStat() and
  3912. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3913. transfer rate.
  3914. * src/DefaultBtInteractive.cc
  3915. * src/DefaultBtMessageDispatcher.cc
  3916. * src/DefaultPeerStorage.cc
  3917. * src/DefaultPeerStorage.h
  3918. * src/DownloadCommand.cc
  3919. * src/DownloadEngine.cc
  3920. * src/PeerStorage.h
  3921. * src/SegmentMan.cc
  3922. * src/SegmentMan.h
  3923. * test/MockPeerStorage.h
  3924. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3925. Prepended _dir+"/" after joining path elements in torrent file.
  3926. * src/DefaultBtContext.cc
  3927. * test/DefaultBtContextTest.cc
  3928. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3929. Added missing IndexBtMessageValidator.h
  3930. * src/Makefile.am
  3931. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3932. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3933. Chinese translations. Thank you for contributing our project.
  3934. * po/id.po
  3935. * po/it.po
  3936. * po/ru.po
  3937. * po/uk.po
  3938. * po/zh_CN.po
  3939. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3940. Updated README
  3941. * README
  3942. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3943. Bump up version number to 1.3.0
  3944. * configure.ac
  3945. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3946. Updated doc
  3947. * src/DefaultBtContext.h
  3948. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3949. Slice/joinPath for name of single torrent.
  3950. * src/DefaultBtContext.cc
  3951. * test/DefaultBtContextTest.cc
  3952. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3953. Updated man page: Documented --dry-run and --index-out
  3954. options. Changed the default value of --uri-selector and
  3955. --http-auth-challenge options. Removed --direct-file-mapping
  3956. option. Added example for --index-out
  3957. * doc/aria2c.1.txt
  3958. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3959. Updated TEXT_DRY_RUN
  3960. * src/usage_text.h
  3961. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3962. Changed the default value of --uri-selector option from 'inorder'
  3963. to 'feedback'
  3964. * src/OptionHandlerFactory.cc
  3965. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3966. Included current URI in exception message.
  3967. * src/AbstractCommand.cc
  3968. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3969. Renamed ServerStatURISelector as FeedbackURISelector.
  3970. * src/FeedbackURISelector.cc
  3971. * src/FeedbackURISelector.h
  3972. * src/Makefile.am
  3973. * src/RequestGroupMan.cc
  3974. * src/ServerStatURISelector.cc
  3975. * src/ServerStatURISelector.h
  3976. * test/FeedbackURISelectorTest.cc
  3977. * test/Makefile.am
  3978. * test/ServerStatURISelectorTest.cc
  3979. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3980. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3981. all URIs are tested and their timeout is not reached.
  3982. * src/AdaptiveURISelector.cc
  3983. * src/AdaptiveURISelector.h
  3984. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3985. Changed the default value of --http-auth-challenge option to false.
  3986. * src/OptionHandlerFactory.cc
  3987. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3988. Reuse URIs when all unused URIs run out.
  3989. * src/OptionHandlerFactory.cc
  3990. * src/RequestGroup.cc
  3991. * src/prefs.cc
  3992. * src/prefs.h
  3993. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  3994. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3995. and BtRejectMessage are derived from RangeBtMessage class.
  3996. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3997. derived from IndexBtMessage class. BtChokeMessage,
  3998. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3999. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4000. ZeroBtMessage class.
  4001. * src/AbstractBtMessage.cc
  4002. * src/AbstractBtMessage.h
  4003. * src/BtAllowedFastMessage.cc
  4004. * src/BtAllowedFastMessage.h
  4005. * src/BtAllowedFastMessageValidator.h: Removed
  4006. * src/BtBitfieldMessage.cc
  4007. * src/BtBitfieldMessage.h
  4008. * src/BtCancelMessage.cc
  4009. * src/BtCancelMessage.h
  4010. * src/BtCancelMessageValidator.h: Removed
  4011. * src/BtChokeMessage.cc
  4012. * src/BtChokeMessage.h
  4013. * src/BtExtendedMessage.cc
  4014. * src/BtExtendedMessage.h
  4015. * src/BtHandshakeMessage.cc
  4016. * src/BtHandshakeMessage.h
  4017. * src/BtHaveAllMessage.cc
  4018. * src/BtHaveAllMessage.h
  4019. * src/BtHaveMessage.cc
  4020. * src/BtHaveMessage.h
  4021. * src/BtHaveMessageValidator.h: Removed
  4022. * src/BtHaveNoneMessage.cc
  4023. * src/BtHaveNoneMessage.h
  4024. * src/BtInterestedMessage.cc
  4025. * src/BtInterestedMessage.h
  4026. * src/BtKeepAliveMessage.cc
  4027. * src/BtKeepAliveMessage.h
  4028. * src/BtNotInterestedMessage.cc
  4029. * src/BtNotInterestedMessage.h
  4030. * src/BtPieceMessage.cc
  4031. * src/BtPieceMessage.h
  4032. * src/BtPortMessage.cc
  4033. * src/BtPortMessage.h
  4034. * src/BtRejectMessage.cc
  4035. * src/BtRejectMessage.h
  4036. * src/BtRejectMessageValidator.h: Removed
  4037. * src/BtRequestMessage.cc
  4038. * src/BtRequestMessage.h
  4039. * src/BtRequestMessageValidator.h: Removed
  4040. * src/BtSuggestPieceMessage.cc
  4041. * src/BtSuggestPieceMessage.h
  4042. * src/BtSuggestPieceMessageValidator.h: Removed
  4043. * src/BtUnchokeMessage.cc
  4044. * src/BtUnchokeMessage.h
  4045. * src/DefaultBtMessageFactory.cc
  4046. * src/IndexBtMessage.cc
  4047. * src/IndexBtMessage.h
  4048. * src/IndexBtMessageValidator.h
  4049. * src/Makefile.am
  4050. * src/PeerMessageUtil.cc
  4051. * src/PeerMessageUtil.h
  4052. * src/RangeBtMessage.cc
  4053. * src/RangeBtMessage.h
  4054. * src/RangeBtMessageValidator.h
  4055. * src/SimpleBtMessage.cc
  4056. * src/SimpleBtMessage.h
  4057. * src/ZeroBtMessage.cc
  4058. * src/ZeroBtMessage.h
  4059. * test/BtRequestMessageTest.cc
  4060. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  4061. Reverted usage_text.h to r1093 to avoid to lose translated
  4062. messages.
  4063. * src/usage_text.h
  4064. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  4065. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4066. declared as non-const previously is now const and defined in class
  4067. definition.
  4068. * src/AbstractBtMessage.cc
  4069. * src/AbstractBtMessage.h
  4070. * src/BtAllowedFastMessage.cc
  4071. * src/BtAllowedFastMessage.h
  4072. * src/BtBitfieldMessage.h
  4073. * src/BtCancelMessage.cc
  4074. * src/BtCancelMessage.h
  4075. * src/BtChokeMessage.cc
  4076. * src/BtChokeMessage.h
  4077. * src/BtExtendedMessage.cc
  4078. * src/BtExtendedMessage.h
  4079. * src/BtHandshakeMessage.cc
  4080. * src/BtHandshakeMessage.h
  4081. * src/BtHaveAllMessage.cc
  4082. * src/BtHaveAllMessage.h
  4083. * src/BtHaveMessage.cc
  4084. * src/BtHaveMessage.h
  4085. * src/BtHaveNoneMessage.cc
  4086. * src/BtHaveNoneMessage.h
  4087. * src/BtInterestedMessage.cc
  4088. * src/BtInterestedMessage.h
  4089. * src/BtKeepAliveMessage.cc
  4090. * src/BtKeepAliveMessage.h
  4091. * src/BtMessage.h
  4092. * src/BtNotInterestedMessage.cc
  4093. * src/BtNotInterestedMessage.h
  4094. * src/BtPieceMessage.h
  4095. * src/BtPortMessage.cc
  4096. * src/BtPortMessage.h
  4097. * src/BtRejectMessage.cc
  4098. * src/BtRejectMessage.h
  4099. * src/BtRequestMessage.cc
  4100. * src/BtRequestMessage.h
  4101. * src/BtSuggestPieceMessage.cc
  4102. * src/BtSuggestPieceMessage.h
  4103. * src/BtUnchokeMessage.cc
  4104. * src/BtUnchokeMessage.h
  4105. * src/SimpleBtMessage.cc
  4106. * src/SimpleBtMessage.h
  4107. * test/MockBtMessage.h
  4108. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  4109. Use FileEntry::exists()
  4110. * src/MultiDiskAdaptor.cc
  4111. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  4112. Added exists()
  4113. * src/FileEntry.cc
  4114. * src/FileEntry.h
  4115. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  4116. Added missing prefix dir.
  4117. * src/download_helper.cc
  4118. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  4119. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4120. * src/CopyDiskAdaptor.cc: Removed
  4121. * src/CopyDiskAdaptor.h: Removed
  4122. * src/DefaultPieceStorage.cc
  4123. * src/Makefile.am
  4124. * src/OptionHandlerFactory.cc
  4125. * src/prefs.cc
  4126. * src/prefs.h
  4127. * src/usage_text.h
  4128. * test/CopyDiskAdaptorTest.cc: Removed
  4129. * test/Makefile.am
  4130. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  4131. Rewritten isSameFileBeingDownloaded()
  4132. * src/RequestGroupMan.cc
  4133. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  4134. Removed getName() from DownloadContext. getName() is declared in
  4135. BtContext.
  4136. * src/BtContext.h
  4137. * src/DownloadContext.h
  4138. * src/SingleFileDownloadContext.cc
  4139. * src/SingleFileDownloadContext.h
  4140. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4141. in AbstractSingleDiskAdaptor.
  4142. * src/AbstractSingleDiskAdaptor.h
  4143. * src/DiskAdaptor.h
  4144. * src/MultiDiskAdaptor.h
  4145. * src/RequestGroup.cc
  4146. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4147. MultiDiskAdaptor.
  4148. * src/DefaultPieceStorage.cc
  4149. * src/MultiDiskAdaptor.cc
  4150. * src/MultiDiskAdaptor.h
  4151. * test/MultiDiskAdaptorTest.cc
  4152. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  4153. FileEntry::getPath() contains store(top level) directory to
  4154. simplify path handling operation. In the previous implementation,
  4155. store directory is concatenated to FileEntry::getPath() in
  4156. DownloadContext.
  4157. * src/BtDependency.cc
  4158. * src/BtPostDownloadHandler.cc
  4159. * src/CopyDiskAdaptor.cc
  4160. * src/DefaultBtContext.cc
  4161. * src/DirectDiskAdaptor.cc
  4162. * src/FileEntry.cc
  4163. * src/FileEntry.h
  4164. * src/FtpNegotiationCommand.cc
  4165. * src/HttpResponse.cc
  4166. * src/HttpResponseCommand.cc
  4167. * src/Metalink2RequestGroup.cc
  4168. * src/MultiDiskAdaptor.cc
  4169. * src/MultiDiskAdaptor.h
  4170. * src/MultiFileAllocationIterator.cc
  4171. * src/RequestGroup.cc
  4172. * src/SingleFileDownloadContext.cc
  4173. * src/SingleFileDownloadContext.h
  4174. * src/download_helper.cc
  4175. * test/BtDependencyTest.cc
  4176. * test/CopyDiskAdaptorTest.cc
  4177. * test/DefaultBtContextTest.cc
  4178. * test/DefaultBtProgressInfoFileTest.cc
  4179. * test/DirectDiskAdaptorTest.cc
  4180. * test/DownloadHelperTest.cc
  4181. * test/FileEntryTest.cc
  4182. * test/MultiDiskAdaptorTest.cc
  4183. * test/MultiFileAllocationIteratorTest.cc
  4184. * test/RequestGroupTest.cc
  4185. * test/SingleFileDownloadContextTest.cc
  4186. 2009-03-09 Tatsuhiro Tsujikawa <[email protected]>
  4187. Fixed compiler warning
  4188. * src/download_helper.cc
  4189. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4190. Throw exception if same infohash torrent is now downloading.
  4191. * src/RequestGroup.cc
  4192. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4193. Added --dry-run option. In this mode, aria2 just checks whether
  4194. the remote file is available and doesn't download data. This
  4195. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4196. are canceled in this mode.
  4197. * src/FtpNegotiationCommand.cc
  4198. * src/HttpResponseCommand.cc
  4199. * src/HttpResponseCommand.h
  4200. * src/OptionHandlerFactory.cc
  4201. * src/RequestGroup.cc
  4202. * src/RequestGroupMan.cc
  4203. * src/prefs.cc
  4204. * src/prefs.h
  4205. * src/usage_text.h
  4206. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4207. Fixed compiler waring
  4208. * test/UriListParserTest.cc
  4209. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4210. Parse options in -i list using OptionParser.
  4211. * src/UriListParser.cc
  4212. * src/UriListParser.h
  4213. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4214. Don't reset URI in retry to avoid additional round trips because
  4215. of redirects.
  4216. * src/AbstractCommand.cc
  4217. * src/OptionHandlerFactory.cc
  4218. * src/prefs.cc
  4219. * src/prefs.h
  4220. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4221. Declared hide() in OptionHandler.
  4222. * src/NameMatchOptionHandler.h
  4223. * src/OptionHandler.h
  4224. * src/OptionHandlerImpl.h
  4225. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  4226. Updated doc
  4227. * src/Peer.h
  4228. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  4229. Added log message in setStatusInternal()
  4230. * src/ServerStat.cc
  4231. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  4232. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4233. effectively exclude failed server.
  4234. * src/AbstractCommand.cc
  4235. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  4236. Added --index-out option to specify each file path for torrent.
  4237. Here index shown in --show-files option is used to specify which
  4238. file path should be altered. For example, to change the file path
  4239. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4240. option multiple times: --index-out=1=aria2.tar.bz2
  4241. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4242. available. This option can be specified in -i list.
  4243. * src/DefaultBtContext.cc
  4244. * src/DefaultBtContext.h
  4245. * src/MultiDiskAdaptor.cc
  4246. * src/MultiDiskAdaptor.h
  4247. * src/MultiFileAllocationIterator.cc
  4248. * src/OptionHandlerFactory.cc
  4249. * src/OptionHandlerImpl.h
  4250. * src/Util.cc
  4251. * src/Util.h
  4252. * src/download_helper.cc
  4253. * src/prefs.cc
  4254. * src/prefs.h
  4255. * src/usage_text.h
  4256. * test/DefaultBtContextTest.cc
  4257. * test/MultiDiskAdaptorTest.cc
  4258. * test/MultiFileAllocationIteratorTest.cc
  4259. * test/UtilTest.cc
  4260. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  4261. Use Util::pathJoin()
  4262. * src/MetalinkParserController.cc
  4263. * test/test.xml
  4264. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  4265. Use Util::pathJoin()
  4266. * src/DefaultBtContext.cc
  4267. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  4268. Added Util::pathJoin()
  4269. * src/Util.h
  4270. * test/UtilTest.cc
  4271. 2009-03-04 Tatsuhiro Tsujikawa <[email protected]>
  4272. Applied basename function to remove directory element in
  4273. content-disposition value.
  4274. Return empty string if content-disposition value is ".." or ".".
  4275. * src/Util.cc
  4276. * test/UtilTest.cc
  4277. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  4278. Added --max-overall-download-limit in man page.
  4279. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4280. * doc/aria2c.1.txt
  4281. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  4282. Added --max-overall-download-limit option. Now --max-upload-limit
  4283. option is not ignored when --max-overall-upload-limit option has
  4284. non-zero value. aria2 checks download(upload) speed in the order:
  4285. first checks overall speed limit and if it is not exceeded, then
  4286. checks speed limit per download. Thus you can specify both
  4287. value. For example, set --max-overall-download-limit=1M and
  4288. --max-download-limit=500K to prevent from one download from eating
  4289. all overall speed limit.
  4290. * src/DefaultBtInteractive.cc
  4291. * src/DefaultBtInteractive.h
  4292. * src/DefaultBtMessageDispatcher.cc
  4293. * src/DefaultBtMessageDispatcher.h
  4294. * src/DownloadCommand.cc
  4295. * src/DownloadCommand.h
  4296. * src/FtpNegotiationCommand.cc
  4297. * src/HttpResponseCommand.cc
  4298. * src/OptionHandlerFactory.cc
  4299. * src/PeerInteractionCommand.cc
  4300. * src/RequestGroup.cc
  4301. * src/RequestGroup.h
  4302. * src/RequestGroupMan.cc
  4303. * src/RequestGroupMan.h
  4304. * src/prefs.cc
  4305. * src/prefs.h
  4306. * src/usage_text.h
  4307. * test/DefaultBtMessageDispatcherTest.cc
  4308. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  4309. Documented select-file option in Input File section.
  4310. Documented --http-auth-challenge option.
  4311. * doc/aria2c.1.txt
  4312. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  4313. Now select-file can be specified in the uri list(-i list).
  4314. * src/BtContext.cc
  4315. * src/BtContext.h
  4316. * src/RequestGroup.cc
  4317. * src/Sequence.h
  4318. * src/download_helper.cc
  4319. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  4320. Made the upper value of --max-concurrent-downloads options unlimited.
  4321. * src/OptionHandlerFactory.cc
  4322. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  4323. Fixed the bug that disk writer is not created even if it shares
  4324. same piece with the preceding file if the length of previous file
  4325. is 0.
  4326. * src/MultiDiskAdaptor.cc
  4327. * test/MultiDiskAdaptorTest.cc
  4328. 2009-02-23 Tatsuhiro Tsujikawa <[email protected]>
  4329. In BitTorrent, Open files in read-only mode for hash check. After
  4330. that, re-open file in read/write mode only when the download is
  4331. not finished.
  4332. * src/AbstractDiskWriter.cc
  4333. * src/AbstractDiskWriter.h
  4334. * src/AbstractSingleDiskAdaptor.cc
  4335. * src/AbstractSingleDiskAdaptor.h
  4336. * src/BtCheckIntegrityEntry.cc
  4337. * src/DiskAdaptor.h
  4338. * src/DiskWriter.h
  4339. * src/MultiDiskAdaptor.cc
  4340. * src/MultiDiskAdaptor.h
  4341. * src/RequestGroup.cc
  4342. 2009-02-19 Tatsuhiro Tsujikawa <[email protected]>
  4343. Added --http-auth-challenge option. If it is set to true(by
  4344. default), aria2 sends HTTP authorization header only when it is
  4345. requested by the server. If false is set, then authorization
  4346. header is always sent to the server. This is useful for servers
  4347. that don't respond 401 code when authentication is required.
  4348. There is an exception: if username and password are embedded in
  4349. URI, authorization header is always sent to the server regardless
  4350. of this option.
  4351. * src/AuthConfigFactory.cc
  4352. * src/HttpSkipResponseCommand.cc
  4353. * src/OptionHandlerFactory.cc
  4354. * src/prefs.cc
  4355. * src/prefs.h
  4356. * src/usage_text.h
  4357. * test/AuthConfigFactoryTest.cc
  4358. * test/HttpRequestTest.cc
  4359. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4360. * Release 1.2.0
  4361. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4362. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4363. Thanks to all translators.
  4364. * po/es.po
  4365. * po/ja.po
  4366. * po/ru.po
  4367. * po/uk.po
  4368. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4369. Call deleteSocketForReadCheck() before socket is closed.
  4370. * src/HttpListenCommand.cc
  4371. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4372. Defined virtual destructor for BObject.
  4373. * src/bencode.h
  4374. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4375. Rewritten BDE to make it efficient.
  4376. * src/bencode.cc
  4377. * src/bencode.h
  4378. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4379. Removed function throw list.
  4380. * src/bencode.cc
  4381. * src/bencode.h
  4382. * test/BencodeTest.cc
  4383. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4384. Enclosed all URLs in double quotes in command-line examples.
  4385. * doc/aria2c.1.txt
  4386. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  4387. Updated reference/see also section.
  4388. * README
  4389. * doc/aria2c.1.txt
  4390. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  4391. Reorganized man page based on man man-pages.
  4392. * doc/aria2c.1.txt
  4393. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  4394. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4395. because same documents are available in man page. Added
  4396. References section.
  4397. * README
  4398. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  4399. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4400. PERFORMANCE PROFILE section.
  4401. * doc/aria2c.1.txt
  4402. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  4403. Rewritten the section for configuration file.
  4404. * README
  4405. * doc/aria2c.1.txt
  4406. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  4407. Fixed the segmentation fault during execution of choking algorithm
  4408. in leecher state because of broken compare operator
  4409. implementation.
  4410. * src/BtLeecherStateChoke.cc
  4411. * src/BtLeecherStateChoke.h
  4412. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  4413. Open file in binary mode.
  4414. * src/CookieStorage.cc
  4415. * src/DHTSetup.cc
  4416. * src/DHTUtil.cc
  4417. * src/Netrc.cc
  4418. * src/NsCookieParser.cc
  4419. * src/ProtocolDetector.cc
  4420. * src/RequestGroupMan.cc
  4421. * src/Signature.cc
  4422. * src/bencode.cc
  4423. * src/download_helper.cc
  4424. * src/option_processing.cc
  4425. * test/CookieParserTest.cc
  4426. * test/DefaultBtProgressInfoFileTest.cc
  4427. * test/FileTest.cc
  4428. * test/GZipDecoderTest.cc
  4429. * test/RequestGroupManTest.cc
  4430. * test/SignatureTest.cc
  4431. * test/SingleFileAllocationIteratorTest.cc
  4432. * test/UriListParserTest.cc
  4433. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  4434. Removed operator[] because it is ambiguous with built-in []
  4435. operator.
  4436. * src/array_fun.h
  4437. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  4438. Fixed compile error
  4439. * src/OptionParser.cc
  4440. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  4441. Added missing call to arrayWrapperConst
  4442. * test/array_funTest.cc
  4443. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4444. Use array_wrapper instead of array_ptr.
  4445. * src/DHTRoutingTableDeserializer.cc
  4446. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4447. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4448. * src/array_fun.h
  4449. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4450. Added array_wrapper template.
  4451. * src/array_fun.h
  4452. * test/array_funTest.cc
  4453. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4454. Use operator T* of array_ptr.
  4455. * src/OptionParser.cc
  4456. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4457. Use localhost instead of 127.0.0.1
  4458. * test/FtpConnectionTest.cc
  4459. * test/MSEHandshakeTest.cc
  4460. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4461. Added operator T*
  4462. * src/array_fun.h
  4463. * test/array_funTest.cc
  4464. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4465. Use dynamically allocated char array to detect memory access
  4466. violation.
  4467. * src/DHTRoutingTableDeserializer.cc
  4468. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4469. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4470. defined.
  4471. * src/PeerMessageUtil.cc
  4472. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4473. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4474. * configure.ac
  4475. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4476. Added a check to see struct sockaddr_in has sin_len member.
  4477. * configure.ac
  4478. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4479. Fixed buffer overrun.
  4480. * src/DHTRoutingTableDeserializer.cc
  4481. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4482. Added LL for long long int constant.
  4483. * test/FtpConnectionTest.cc
  4484. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4485. Casted to unsigned int to suppress compiler warning on netbsd.
  4486. * src/BtRuntime.h
  4487. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  4488. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4489. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4490. type time_t.
  4491. * src/SimpleLogger.cc
  4492. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4493. Added test for FtpConnection::receiveSizeResponse().
  4494. * test/FtpConnectionTest.cc
  4495. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4496. Fix epoll error on the old kernel 2.6.8 or ealier.
  4497. * src/EpollEventPoll.cc
  4498. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4499. Use Util::parseLLInt instead of sscanf for portability. The
  4500. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4501. * src/FtpConnection.cc
  4502. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4503. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4504. block. It should not filter anything.
  4505. * src/BitfieldMan.cc
  4506. * src/ConsoleStatCalc.cc
  4507. * test/BitfieldManTest.cc
  4508. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4509. Fixed the bug that the boolean options that don't take arguments
  4510. don't work.
  4511. * src/OptionHandlerImpl.h
  4512. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4513. Fixed broken selected file BitTorrent download.
  4514. * src/MultiDiskAdaptor.cc
  4515. * test/MultiDiskAdaptorTest.cc
  4516. * test/MultiFileAllocationIteratorTest.cc
  4517. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  4518. Fixed #define guard for EpollEventPoll
  4519. * src/EpollEventPoll.h
  4520. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4521. Wait 2 seconds. 1 second is sometimes not enough.
  4522. * test/TimeSeedCriteriaTest.cc
  4523. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4524. Use localhost instead of 127.0.0.1.
  4525. * test/DHTConnectionImplTest.cc
  4526. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4527. Suppressed compiler warning.
  4528. * src/AdaptiveURISelector.cc
  4529. * src/DefaultPieceStorage.cc
  4530. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4531. Defined virtual destructor.
  4532. * src/MetalinkParserState.h
  4533. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4534. Give NULL for second argument of getaddrinfo instead of "0".
  4535. * src/NameResolver.cc
  4536. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4537. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4538. included strptime doesn't parse data for this format.
  4539. * src/FtpConnection.cc
  4540. * test/FtpConnectionTest.cc
  4541. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4542. Removed tests giving -1 for unsigned argument.
  4543. * test/SingleFileDownloadContextTest.cc
  4544. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4545. Don't use sha256 in tests because it might not be supported by the
  4546. SSL library.
  4547. * test/MetalinkProcessorTest.cc
  4548. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4549. Removed tests giving -1 for unsigned argument.
  4550. * test/AlphaNumberDecoratorTest
  4551. * test/BitfieldManTest.cc
  4552. * test/DefaultBtContextTest.cc
  4553. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  4554. Fixed compile error without libcares when epoll is available.
  4555. * src/EpollEventPoll.cc
  4556. 2009-02-09 Tatsuhiro Tsujikawa <[email protected]>
  4557. Included fstream instead of iostream.
  4558. * test/SignatureTest.cc
  4559. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  4560. Removed #include <algorithm>
  4561. * test/RequestGroupTest.cc
  4562. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  4563. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4564. using RequestGroup::extractURIResult().
  4565. * src/AdaptiveURISelector.cc
  4566. * src/RequestGroup.cc
  4567. * src/RequestGroup.h
  4568. * test/RequestGroupTest.cc
  4569. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  4570. Added tests for array_ptr.
  4571. * test/array_funTest.cc
  4572. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  4573. Don't send ip parameter to a tracker if ip parameter is empty
  4574. string.
  4575. * src/DefaultBtAnnounce.cc
  4576. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4577. Adjusted line feed.
  4578. * src/version_usage.cc
  4579. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4580. Print tags, possible values when OptionHandlerException is caught.
  4581. * src/option_processing.cc
  4582. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4583. Changed the message for FatalException.
  4584. * src/OptionParser.cc
  4585. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4586. Documented --bt-external-ip option in man page. Updated man pages
  4587. for --proxy-method option.
  4588. * doc/aria2c.1.txt
  4589. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4590. Use GET method for FTP via HTTP proxy.
  4591. * src/FtpInitiateConnectionCommand.cc
  4592. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4593. Changed the default value of --proxy-method option from 'tunnel'
  4594. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4595. option.
  4596. * src/AbstractCommand.cc
  4597. * src/AbstractCommand.h
  4598. * src/FtpInitiateConnectionCommand.cc
  4599. * src/HttpDownloadCommand.cc
  4600. * src/HttpInitiateConnectionCommand.cc
  4601. * src/HttpInitiateConnectionCommand.h
  4602. * src/OptionHandlerFactory.cc
  4603. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4604. Initialized _logger
  4605. * src/SelectEventPoll.cc
  4606. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4607. Defined a copy constructor for the same type.
  4608. * src/SharedHandle.h
  4609. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4610. Added OptionParser::parseArg() which internally uses getopt_long
  4611. to parse command-line options. All command-line options are now
  4612. configured by OptionHandler. No manual editing of struct option*
  4613. is required any more.
  4614. * src/NameMatchOptionHandler.h
  4615. * src/OptionHandler.h
  4616. * src/OptionHandlerFactory.cc
  4617. * src/OptionHandlerImpl.h
  4618. * src/OptionParser.cc
  4619. * src/OptionParser.h
  4620. * src/array_fun.h
  4621. * src/main.cc
  4622. * src/option_processing.cc
  4623. * test/OptionHandlerTest.cc
  4624. * test/OptionParserTest.cc
  4625. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4626. Fixed configure error with --disable-epoll
  4627. * configure.ac
  4628. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  4629. Fixed compile error when HAVE_EPOLL is not defined.
  4630. Fixed linker error on bigendian systems.
  4631. * src/SocketCore.cc
  4632. * src/SocketCore.h
  4633. * test/DefaultBtProgressInfoFileTest.cc
  4634. 2009-02-04 Tatsuhiro Tsujikawa <[email protected]>
  4635. Added --bt-external-ip option. You can specify the external IP
  4636. address to report to a BitTorrent tracker. Although this function
  4637. is named 'external', it can accept any kind of IP addresses.
  4638. * src/DefaultBtAnnounce.cc
  4639. * src/OptionHandlerFactory.cc
  4640. * src/option_processing.cc
  4641. * src/prefs.cc
  4642. * src/prefs.h
  4643. * src/usage_text.h
  4644. * test/DefaultBtAnnounceTest.cc
  4645. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  4646. Extracted the algorithm to find the longest incremental sequence
  4647. as max_sequence template.
  4648. * src/LongestSequencePieceSelector.cc
  4649. * src/a2algo.h
  4650. * test/Makefile.am
  4651. * test/a2algoTest.cc
  4652. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  4653. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4654. * src/usage_text.h
  4655. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  4656. Updated doc for --uri-selector, --http-server-listen-port and
  4657. --enable-http-server option. Documented --event-poll option.
  4658. * doc/aria2c.1.txt
  4659. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  4660. Updated doc for --enable-http-server.
  4661. * src/usage_text.h
  4662. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  4663. Documented --http-server-listen-port and --enable-http-server in
  4664. man page.
  4665. * doc/aria2c.1.txt
  4666. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4667. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4668. translations. Thanks to all translators.
  4669. * po/es.po
  4670. * po/id.po
  4671. * po/it.po
  4672. * po/ru.po
  4673. * po/uk.po
  4674. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4675. Bump up version number to 1.2.0
  4676. * configure.ac
  4677. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4678. BtContext::getAnnounceTiers() now returns const reference.
  4679. * src/BtContext.h
  4680. * src/DefaultBtContext.cc
  4681. * src/DefaultBtContext.h
  4682. * test/MockBtContext.h
  4683. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4684. Change the number of retries for tracker request based on the
  4685. number of available tracker in a torrent file.
  4686. * src/TrackerWatcherCommand.cc
  4687. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4688. Added _maxTries property to RequestGroup and assign the option
  4689. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4690. RequestGroup::getMaxTries() instead of
  4691. Option::getAsInt(PREF_MAX_TRIES).
  4692. * src/AbstractCommand.cc
  4693. * src/RequestGroup.cc
  4694. * src/RequestGroup.h
  4695. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4696. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4697. Mandriva. I modified the patch: make RequestGroup have the
  4698. timeout value and AdaptiveURISelector directly modifies that
  4699. value.
  4700. * src/AbstractCommand.cc
  4701. * src/AdaptiveURISelector.cc
  4702. * src/AdaptiveURISelector.h
  4703. * src/FtpNegotiationCommand.cc
  4704. * src/RequestGroup.cc
  4705. * src/RequestGroup.h
  4706. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  4707. Fixed compiler warning
  4708. * test/IteratableChecksumValidatorTest.cc
  4709. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  4710. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4711. integrated downloads. This PieceSelector subclass finds the
  4712. longest continuous sequence in the available missing pieces and
  4713. selects the last index of such sequence. This makes HTTP/FTP
  4714. connections less interrupted by the pieces obtained by BitTorrent
  4715. peers.
  4716. * src/DefaultPieceStorage.cc
  4717. * src/DefaultPieceStorage.h
  4718. * src/LongestSequencePieceSelector.cc
  4719. * src/LongestSequencePieceSelector.h
  4720. * src/Makefile.am
  4721. * src/PieceSelector.h
  4722. * src/RarestPieceSelector.h
  4723. * src/RequestGroup.cc
  4724. * test/BtDependencyTest.cc
  4725. * test/DefaultPieceStorageTest.cc
  4726. * test/IteratableChecksumValidatorTest.cc
  4727. * test/LongestSequencePieceSelectorTest.cc
  4728. * test/Makefile.am
  4729. * test/SegmentManTest.cc
  4730. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  4731. Fixed the bug that the average speed is wrong in
  4732. http/ftp/BitTorrent integrated download. Only the download bytes
  4733. in BitTorrent were considered.
  4734. * src/RequestGroup.cc
  4735. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  4736. Choose port for BitTorrent/DHT randomly from the specified range.
  4737. * src/DHTConnectionImpl.cc
  4738. * src/PeerListenCommand.cc
  4739. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  4740. Send HTTP Authorization header only if it is requested by the
  4741. server(response 401). There are some exceptions. The authorization
  4742. header for proxy is always sent if it is available without request
  4743. by the server. If username/password is specified in the URI, it
  4744. is immediately sent to the server without request by the server.
  4745. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4746. SharedHandle<AuthConfig>().
  4747. NetrcAuthResolver::resolveAuthConfig() returns
  4748. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4749. * src/AbstractAuthResolver.cc
  4750. * src/AbstractProxyRequestCommand.cc
  4751. * src/AuthConfigFactory.cc
  4752. * src/AuthConfigFactory.h
  4753. * src/HttpConnection.cc
  4754. * src/HttpRequest.cc
  4755. * src/HttpRequest.h
  4756. * src/HttpResponse.cc
  4757. * src/HttpResponseCommand.cc
  4758. * src/HttpSkipResponseCommand.cc
  4759. * test/AuthConfigFactoryTest.cc
  4760. * test/HttpRequestTest.cc
  4761. * test/HttpResponseTest.cc
  4762. 2009-01-27 Tatsuhiro Tsujikawa <[email protected]>
  4763. Remove leading "--" from help keyword and a substring after "="
  4764. from help keyword, so that one can query options by '-h--max-' or
  4765. '-hmax-peers=10'.
  4766. * src/option_processing.cc
  4767. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  4768. Rewritten PStringVisitor and its implementation.
  4769. * src/PStringBuildVisitor.cc
  4770. * src/PStringBuildVisitor.h
  4771. * src/PStringDatum.h
  4772. * src/PStringNumLoop.h
  4773. * src/PStringSegment.cc
  4774. * src/PStringSegment.h
  4775. * src/PStringSelect.h
  4776. * src/PStringVisitor.h
  4777. * src/download_helper.cc
  4778. * test/PStringBuildVisitorTest.cc
  4779. * test/ParameterizedStringParserTest.cc
  4780. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  4781. Persist connection between the built-in HTTP server and a client
  4782. if a client supports keep-alive. Fixed the bug that aria2 exits
  4783. when the HTTP server receives EOF from a client.
  4784. * src/HttpServer.cc
  4785. * src/HttpServer.h
  4786. * src/HttpServerCommand.cc
  4787. * src/HttpServerCommand.h
  4788. * src/HttpServerResponseCommand.cc
  4789. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  4790. Added experimental built-in HTTP server. Currently, when a client
  4791. accesses to the server, it responds with the current download
  4792. progress. By default, it is disabled. To enable the server, give
  4793. --enable-http-server option. To change the default port number
  4794. for the server to listen to, use --http-server-listen-port option.
  4795. The response HTML is very simple and refreshes it self each 1
  4796. second. Because of this refresh, you see flicker in normal web
  4797. browser such as Firefox. I recommend to use console-based browser
  4798. such as elinks, w3m. To connect to the server, run 'elinks
  4799. http://localhost:6800/' while running aria2. Please replace port
  4800. number '6800'(which is default) with your preference.
  4801. * src/DownloadEngineFactory.cc
  4802. * src/HttpHeader.cc
  4803. * src/HttpHeader.h
  4804. * src/HttpHeaderProcessor.cc
  4805. * src/HttpHeaderProcessor.h
  4806. * src/HttpListenCommand.cc
  4807. * src/HttpListenCommand.h
  4808. * src/HttpServer.cc
  4809. * src/HttpServer.h
  4810. * src/HttpServerCommand.cc
  4811. * src/HttpServerCommand.h
  4812. * src/HttpServerResponseCommand.cc
  4813. * src/HttpServerResponseCommand.h
  4814. * src/Makefile.am
  4815. * src/OptionHandlerFactory.cc
  4816. * src/Util.cc
  4817. * src/Util.h
  4818. * src/help_tags.h
  4819. * src/option_processing.cc
  4820. * src/prefs.cc
  4821. * src/prefs.h
  4822. * src/usage_text.h
  4823. * test/HttpHeaderProcessorTest.cc
  4824. * test/UtilTest.cc
  4825. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4826. Removed.
  4827. * src/CheckIntegrityMan.cc
  4828. * src/FileAllocationMan.cc
  4829. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4830. Made (piece) hash check sequential for each RequestGroup because
  4831. simultaneous hash check is slower than sequential execution.
  4832. * src/CheckIntegrityCommand.cc
  4833. * src/CheckIntegrityDispatcherCommand.cc
  4834. * src/CheckIntegrityDispatcherCommand.h
  4835. * src/CheckIntegrityMan.h
  4836. * src/ConsoleStatCalc.cc
  4837. * src/DownloadCommand.cc
  4838. * src/DownloadEngine.cc
  4839. * src/DownloadEngine.h
  4840. * src/DownloadEngineFactory.cc
  4841. * src/Makefile.am
  4842. * src/Makefile.in
  4843. * src/RequestGroup.cc
  4844. * src/StatCalc.h
  4845. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4846. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4847. SequentialDispatcherCommand.
  4848. * src/FileAllocationDispatcherCommand.cc
  4849. * src/SequentialDispatcherCommand.h
  4850. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4851. Rewritten FileAllocationDispatcherCommand using brand new
  4852. SequentialDispatcherCommand.
  4853. * src/DownloadEngineFactory.cc
  4854. * src/FileAllocationCommand.cc
  4855. * src/FileAllocationDispatcherCommand.cc
  4856. * src/FileAllocationDispatcherCommand.h
  4857. * src/Makefile.am
  4858. * src/SequentialDispatcherCommand.h
  4859. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  4860. Replaced FileAllocationMan with
  4861. SequentialPicker<FileAllocationEntry>.
  4862. * src/BtCheckIntegrityEntry.cc
  4863. * src/ConsoleStatCalc.cc
  4864. * src/DownloadEngine.cc
  4865. * src/DownloadEngine.h
  4866. * src/DownloadEngineFactory.cc
  4867. * src/FileAllocationCommand.cc
  4868. * src/FileAllocationDispatcherCommand.cc
  4869. * src/FileAllocationMan.h
  4870. * src/Makefile.am
  4871. * src/SequentialPicker.h
  4872. * src/StatCalc.h
  4873. * src/StreamCheckIntegrityEntry.cc
  4874. * test/Makefile.am
  4875. * test/SequentialPickerTest.cc
  4876. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  4877. Added doc for adaptive URI selector.
  4878. * doc/aria2c.1.txt
  4879. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  4880. Added doc for adaptive URI selector.
  4881. * src/usage_text.h
  4882. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  4883. Added doc for --bt-max-peers option.
  4884. * doc/aria2c.1.txt
  4885. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  4886. Added doc for --bt-hash-check-seed option.
  4887. * doc/aria2c.1.txt
  4888. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  4889. Documented exit codes.
  4890. * doc/aria2c.1.txt
  4891. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  4892. Added --bt-max-peers option to specify the maximum number of peers
  4893. per torrent. 0 means unlimited number of peers.
  4894. * src/ActivePeerConnectionCommand.cc
  4895. * src/BtRuntime.h
  4896. * src/DefaultPeerStorage.cc
  4897. * src/DefaultPeerStorage.h
  4898. * src/OptionHandlerFactory.cc
  4899. * src/RequestGroup.cc
  4900. * src/option_processing.cc
  4901. * src/prefs.cc
  4902. * src/prefs.h
  4903. * src/usage_text.h
  4904. * test/DefaultPeerStorageTest.cc
  4905. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  4906. Added --bt-hash-check-seed option. If true is given to this
  4907. option, after hash check using --check-integrity option and file
  4908. is complete, continue to seed file. If you want to check file and
  4909. download it only when it is damaged or incomplete, set this option
  4910. to false. This option has effect only on BitTorrent download.
  4911. The default value is true(This is the same behavior with the
  4912. previous release).
  4913. * src/BtCheckIntegrityEntry.cc
  4914. * src/OptionHandlerFactory.cc
  4915. * src/option_processing.cc
  4916. * src/prefs.cc
  4917. * src/prefs.h
  4918. * src/usage_text.h
  4919. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  4920. Updated copyright year.
  4921. * src/version_usage.cc
  4922. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  4923. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4924. * doc/aria2c.1.txt
  4925. * src/usage_text.h
  4926. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  4927. Made the max value of split option unlimited.
  4928. * doc/aria2c.1.txt
  4929. * src/OptionHandlerFactory.cc
  4930. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  4931. Fixed compile warning/error.
  4932. * src/DownloadResult.h
  4933. * src/HttpDownloadCommand.cc
  4934. * src/ServerStat.cc
  4935. * test/RequestGroupTest.cc
  4936. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  4937. Added --event-poll option to select the method for polling events.
  4938. The available methods are "select" and "epoll". "epoll" is
  4939. available on Linux only. The earlier release has the compile
  4940. option to choose from these methods.
  4941. * configure.ac
  4942. * src/RequestGroupMan.cc
  4943. * src/OptionHandlerFactory.cc
  4944. * src/EpollEventPoll.h
  4945. * src/StreamFileAllocationEntry.cc
  4946. * src/a2io.h
  4947. * src/SelectEventPoll.h
  4948. * src/option_processing.cc
  4949. * src/prefs.h
  4950. * src/EpollEventPoll.cc
  4951. * src/EventPoll.h
  4952. * src/SocketCore.h
  4953. * src/Makefile.am
  4954. * src/main.cc
  4955. * src/DownloadEngine.h
  4956. * src/SelectEventPoll.cc
  4957. * src/DownloadEngine.cc
  4958. * src/SocketCore.cc
  4959. * src/DownloadEngineFactory.cc
  4960. * src/Makefile.in
  4961. * src/prefs.cc
  4962. * src/usage_text.h
  4963. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  4964. Included RecoverableException.h from main.cc
  4965. * src/main.cc
  4966. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  4967. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4968. now returns last error encountered in the HTTP/FTP downloads as a
  4969. exit status value. If all downloads finished successfully, aria2
  4970. returns 0. The error code is defined in src/DownloadResult.h.
  4971. The error occurred in the download currently in progress is not
  4972. reported as a last error. If no error has encountered but there
  4973. are in progress or waiting downloads, aria2 returns 7.
  4974. * src/AbstractCommand.cc
  4975. * src/DlAbortEx.h
  4976. * src/DlRetryEx.h
  4977. * src/DownloadCommand.cc
  4978. * src/DownloadFailureException.h
  4979. * src/DownloadResult.h
  4980. * src/FtpNegotiationCommand.cc
  4981. * src/HttpSkipResponseCommand.cc
  4982. * src/Makefile.am
  4983. * src/MultiUrlRequestInfo.cc
  4984. * src/MultiUrlRequestInfo.h
  4985. * src/RecoverableException.h
  4986. * src/RequestGroup.cc
  4987. * src/RequestGroup.h
  4988. * src/RequestGroupMan.cc
  4989. * src/RequestGroupMan.h
  4990. * src/URIResult.cc
  4991. * src/URIResult.h
  4992. * src/main.cc
  4993. * src/option_processing.cc
  4994. * test/RequestGroupTest.cc
  4995. 2009-01-06 Tatsuhiro Tsujikawa <[email protected]>
  4996. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4997. patch adds AdaptiveURISelector, which selects one of the bests
  4998. mirrors for first and reserved connections. For supplementary
  4999. ones, it returns mirrors which has not been tested yet, and if
  5000. each of them already tested, returns mirrors which has to be
  5001. tested again. Otherwise, it doesn't return anymore mirrors.
  5002. * src/AdaptiveURISelector.cc
  5003. * src/AdaptiveURISelector.h
  5004. * src/FtpNegotiationCommand.cc
  5005. * src/HttpResponseCommand.cc
  5006. * src/Makefile.am
  5007. * src/Makefile.in
  5008. * src/OptionHandlerFactory.cc
  5009. * src/RequestGroup.cc
  5010. * src/RequestGroup.h
  5011. * src/RequestGroupMan.cc
  5012. * src/ServerStat.cc
  5013. * src/ServerStat.h
  5014. * src/ServerStatMan.cc
  5015. * src/SpeedCalc.cc
  5016. * src/URISelector.h
  5017. * src/prefs.cc
  5018. * src/prefs.h
  5019. * test/RequestGroupManTest.cc
  5020. * test/ServerStatManTest.cc
  5021. * test/ServerStatTest.cc
  5022. 2009-01-04 Tatsuhiro Tsujikawa <[email protected]>
  5023. Fixed unit test error.
  5024. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5025. 2008-12-30 Tatsuhiro Tsujikawa <[email protected]>
  5026. * Release 1.1.2
  5027. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  5028. Updated Russian translation. Thanks to the translators.
  5029. * po/ru.po
  5030. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  5031. Added the description of --use-head option to man page.
  5032. * doc/aria2c.1.txt
  5033. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  5034. Bump up version number to 1.1.2
  5035. * configure.ac
  5036. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  5037. Added --use-head option to toggle whether HEAD method should be
  5038. used in the first HTTP request. By default aria2 uses HEAD method
  5039. as the first request. When the server doesn't recognize HEAD, then
  5040. give aria2 --use-head=false to force aria2 to use GET method
  5041. instead.
  5042. * src/OptionHandlerFactory.cc
  5043. * src/RequestGroupMan.cc
  5044. * src/option_processing.cc
  5045. * src/prefs.cc
  5046. * src/prefs.h
  5047. * src/usage_text.h
  5048. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  5049. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5050. message is received before CHOKE message. The old implementation
  5051. doen't clear the use-bit of the piece when recieved REJECT
  5052. message.
  5053. * src/DefaultBtMessageDispatcher.cc
  5054. * test/DefaultBtMessageDispatcherTest.cc
  5055. 2008-12-25 Tatsuhiro Tsujikawa <[email protected]>
  5056. * Release 1.1.1
  5057. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  5058. Bump up version number to 1.1.1.
  5059. * configure.ac
  5060. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  5061. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5062. is printed repeatedly.
  5063. * src/ConsoleStatCalc.cc
  5064. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  5065. * Release 1.1.0
  5066. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  5067. Added ifdef clause for conditional compilation.
  5068. * src/main.cc
  5069. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  5070. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5071. translations. Thanks to all translators.
  5072. * po/ja.po
  5073. * po/ru.po
  5074. * po/uk.po
  5075. * po/zh_CN.po
  5076. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  5077. Added the preceding ">>> " before the message "Printing the
  5078. contents of file..." to make the output more readable.
  5079. * src/main.cc
  5080. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  5081. Added try-catch block in the loop in showFiles() to continue the
  5082. operation even if the exception occurred in one file.
  5083. * src/main.cc (showFiles)
  5084. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  5085. Made messages in showFiles() translatable.
  5086. * po/aria2.pot
  5087. * src/main.cc
  5088. * src/message.h
  5089. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  5090. Print the contents of Torrent/Metalink files are printed without
  5091. -T/-M options.
  5092. * src/main.cc
  5093. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5094. Escaped '--' with '\--'
  5095. * README
  5096. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5097. Updated "How to build" section in README. Mentioned about
  5098. --with-ca-bundle compile option.
  5099. * README
  5100. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5101. Bump up version number to 1.1.0.
  5102. * configure.ac
  5103. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5104. Added a note for --dht-listen-port option.
  5105. * doc/aria2c.1.txt
  5106. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5107. Update doc for --realtime-chunk-checksum option.
  5108. * doc/aria2c.1.txt
  5109. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5110. Update doc for --realtime-chunk-checksum option.
  5111. * src/usage_text.h
  5112. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5113. Updated French, Japanese, Russian and Ukrainian translations.
  5114. Thanks to all translators.
  5115. * po/fr.po
  5116. * po/ja.po
  5117. * po/ru.po
  5118. * po/uk.po
  5119. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5120. Renamed aria2c.pot to aria2.pot
  5121. * po/aria2.pot
  5122. * po/aria2c.pot: Removed.
  5123. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5124. Removed MetaEntry.h
  5125. * src/Makefile.am
  5126. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  5127. Rename file by appending digits if a local file exists and its
  5128. file size is larger than that of remote file with --continue
  5129. option. The old implementation just throws exception in such case.
  5130. * src/RequestGroup.cc
  5131. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  5132. Fixed the bug that download progress summary is not printed in the
  5133. interval specified by the option.
  5134. * src/ConsoleStatCalc.cc
  5135. * src/ConsoleStatCalc.h
  5136. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  5137. Fixed compiler warning
  5138. * src/Cookie.cc
  5139. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  5140. Fixed the cookie implementation based on RFC2965.
  5141. Now if a value in domain field is not started with dot, then
  5142. prepend dot. That means a cookie with domain=sf.net is sent to
  5143. wiki.sf.net.
  5144. * src/Cookie.cc
  5145. * test/CookieParserTest.cc
  5146. * test/CookieStorageTest.cc
  5147. * test/CookieTest.cc
  5148. * test/NsCookieParserTest.cc
  5149. * test/Sqlite3MozCookieParserTest.cc
  5150. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  5151. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5152. is enabled and the server doesn't support keep-alive.
  5153. * src/AbstractCommand.cc
  5154. * src/DownloadCommand.cc
  5155. * src/HttpDownloadCommand.cc
  5156. * src/HttpDownloadCommand.h
  5157. * src/HttpResponseCommand.cc
  5158. * src/Request.cc
  5159. * src/Request.h
  5160. * test/RequestTest.cc
  5161. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5162. Removed Dictionary/List/Data and its related classes.
  5163. * src/BencodeVisitor.cc: Removed.
  5164. * src/BencodeVisitor.h: Removed.
  5165. * src/Data.cc: Removed.
  5166. * src/Data.h: Removed.
  5167. * src/Dictionary.cc: Removed.
  5168. * src/Dictionary.h: Removed.
  5169. * src/List.cc: Removed.
  5170. * src/List.h: Removed.
  5171. * src/Makefile.am
  5172. * src/MetaEntry.h: Removed.
  5173. * src/MetaEntryVisitor.h: Removed.
  5174. * src/MetaFileUtil.cc: Removed.
  5175. * src/MetaFileUtil.h: Removed.
  5176. * test/BencodeVisitorTest.cc: Removed.
  5177. * test/DataTest.cc: Removed.
  5178. * test/DictionaryTest.cc: Removed.
  5179. * test/ListTest.cc: Removed.
  5180. * test/Makefile.am
  5181. * test/MetaFileUtilTest.cc: Removed.
  5182. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5183. Removed include of MetaEntry.h
  5184. * test/DHTMessageTrackerEntryTest.cc
  5185. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5186. Use BDE instead of Dictionary/List/Data.
  5187. * src/AnnounceList.cc
  5188. * src/AnnounceList.h
  5189. * test/AnnounceListTest.cc
  5190. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5191. Use BDE instead of Dictionary/List/Data.
  5192. * src/DHTAbstractMessage.cc
  5193. * src/DHTAbstractMessage.h
  5194. * src/DHTAnnouncePeerMessage.cc
  5195. * src/DHTAnnouncePeerMessage.h
  5196. * src/DHTAnnouncePeerReplyMessage.cc
  5197. * src/DHTAnnouncePeerReplyMessage.h
  5198. * src/DHTFindNodeMessage.cc
  5199. * src/DHTFindNodeMessage.h
  5200. * src/DHTFindNodeReplyMessage.cc
  5201. * src/DHTFindNodeReplyMessage.h
  5202. * src/DHTGetPeersMessage.cc
  5203. * src/DHTGetPeersMessage.h
  5204. * src/DHTGetPeersReplyMessage.cc
  5205. * src/DHTGetPeersReplyMessage.h
  5206. * src/DHTMessageFactory.h
  5207. * src/DHTMessageFactoryImpl.cc
  5208. * src/DHTMessageFactoryImpl.h
  5209. * src/DHTMessageReceiver.cc
  5210. * src/DHTMessageTracker.cc
  5211. * src/DHTMessageTracker.h
  5212. * src/DHTPingMessage.cc
  5213. * src/DHTPingMessage.h
  5214. * src/DHTPingReplyMessage.cc
  5215. * src/DHTPingReplyMessage.h
  5216. * src/DHTQueryMessage.cc
  5217. * src/DHTQueryMessage.h
  5218. * src/DHTResponseMessage.cc
  5219. * src/DHTResponseMessage.h
  5220. * test/DHTAnnouncePeerMessageTest.cc
  5221. * test/DHTAnnouncePeerReplyMessageTest.cc
  5222. * test/DHTFindNodeMessageTest.cc
  5223. * test/DHTFindNodeReplyMessageTest.cc
  5224. * test/DHTGetPeersMessageTest.cc
  5225. * test/DHTGetPeersReplyMessageTest.cc
  5226. * test/DHTMessageFactoryImplTest.cc
  5227. * test/DHTMessageTrackerTest.cc
  5228. * test/DHTPingMessageTest.cc
  5229. * test/DHTPingReplyMessageTest.cc
  5230. * test/MockDHTMessageFactory.h
  5231. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5232. Added tests the case where length < 0 is specified.
  5233. * test/BencodeTest.cc
  5234. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5235. Fixed memory leak in decoderawstring()
  5236. * src/bencode.cc
  5237. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  5238. Added missing #ifdef guard. Added uc() function for String and
  5239. removeKey() for Dict.
  5240. * src/bencode.cc
  5241. * src/bencode.h
  5242. * test/BencodeTest.cc
  5243. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  5244. Use BDE instead of Dictionary/List/Data.
  5245. * src/HandshakeExtensionMessage.cc
  5246. * src/HandshakeExtensionMessage.h
  5247. * test/HandshakeExtensionMessageTest.cc
  5248. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  5249. Added --max-overall-upload-limit option. This option limits the
  5250. overall upload speed. Stated in help message that the existing
  5251. --max-upload-limit option limits the upload speed per each
  5252. torrent. Man page is also updated.
  5253. * doc/aria2c.1.txt
  5254. * src/DefaultBtMessageDispatcher.cc
  5255. * src/DefaultBtMessageDispatcher.h
  5256. * src/OptionHandlerFactory.cc
  5257. * src/PeerInteractionCommand.cc
  5258. * src/option_processing.cc
  5259. * src/prefs.cc
  5260. * src/prefs.h
  5261. * src/usage_text.h
  5262. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  5263. Use BDE instead of Dictionary/List/Data classes.
  5264. * src/CompactPeerListProcessor.cc
  5265. * src/CompactPeerListProcessor.h
  5266. * src/DefaultBtAnnounce.cc
  5267. * src/DefaultBtContext.cc
  5268. * src/DefaultBtContext.h
  5269. * src/DefaultPeerListProcessor.cc
  5270. * src/DefaultPeerListProcessor.h
  5271. * src/DelegatingPeerListProcessor.cc
  5272. * src/DelegatingPeerListProcessor.h
  5273. * src/PeerListProcessor.h
  5274. * src/UTPexExtensionMessage.cc
  5275. * src/Util.h
  5276. * src/message.h
  5277. * test/DefaultBtContextTest.cc
  5278. * test/DefaultPeerListProcessorTest.cc
  5279. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  5280. Added bencode helper functions and BDE class.
  5281. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5282. * src/Makefile.am
  5283. * src/bencode.cc
  5284. * src/bencode.h
  5285. * test/BencodeTest.cc
  5286. * test/Makefile.am
  5287. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  5288. Fixed the bug that bad URI is sent to the tracker when the announe
  5289. URI in torrent file includes query.
  5290. * src/DefaultBtAnnounce.cc
  5291. * test/DefaultBtAnnounceTest.cc
  5292. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  5293. Added Option::blank().
  5294. Use !Option::blank(name) instead of Option::defined(name) for
  5295. the options that take filename.
  5296. * src/MultiUrlRequestInfo.cc
  5297. * src/Option.cc
  5298. * src/Option.h
  5299. * src/main.cc
  5300. * src/option_processing.cc
  5301. * test/OptionTest.cc
  5302. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  5303. Documented the default value of --check-certificate option in man
  5304. page.
  5305. * doc/aria2c.1.txt
  5306. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  5307. Enabled --check-certificate by default. Added compile
  5308. time(configure) option --with-ca-bundle to specify CA bundle.
  5309. Warn if --check-certificate=true and --ca-certificate is not
  5310. specified or loading CA certificate is failed.
  5311. * configure.ac
  5312. * src/MultiUrlRequestInfo.cc
  5313. * src/OptionHandlerFactory.cc
  5314. * src/message.h
  5315. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  5316. Mentioned https tag in help option.
  5317. * doc/aria2c.1.txt
  5318. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  5319. Added `https' tag to help option category. Added https tag to
  5320. --ca-certificate, --certificate, --check-certificate and
  5321. --private-key option.
  5322. * src/OptionHandlerFactory.cc
  5323. * src/help_tags.h
  5324. * src/option_processing.cc
  5325. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  5326. Changed the package name from `aria2c' to `aria2' in order to fix
  5327. the packaging issue in Debian and Fedora. The name of the
  5328. executable is not changed.
  5329. * configure.ac
  5330. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  5331. Fixed typos
  5332. * src/usage_text.h
  5333. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  5334. Fixed typos and updated doc.
  5335. * README
  5336. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  5337. Fixed typos
  5338. * doc/aria2c.1.txt
  5339. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  5340. Fixed typos
  5341. * src/usage_text.h
  5342. 2008-11-30 Tatsuhiro Tsujikawa <[email protected]>
  5343. Print a message when no files to download.
  5344. * src/download_helper.cc
  5345. * src/main.cc
  5346. * src/message.h
  5347. 2008-11-28 Tatsuhiro Tsujikawa <[email protected]>
  5348. RFC3986 complied Percent-Encoding(urlencode).
  5349. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5350. ones.
  5351. * src/Request.cc
  5352. * src/Util.cc
  5353. * src/Util.h
  5354. * test/BtHandshakeMessageTest.cc
  5355. * test/DefaultBtAnnounceTest.cc
  5356. * test/DefaultBtContextTest.cc
  5357. * test/RequestTest.cc
  5358. * test/UtilTest.cc
  5359. 2008-11-27 Tatsuhiro Tsujikawa <[email protected]>
  5360. Fixed the bug that prevents aria2 from downloading 0-length files
  5361. via HTTP/FTP.
  5362. * src/DefaultBtContext.cc
  5363. * src/DefaultBtContext.h
  5364. * src/DownloadContext.h
  5365. * src/FtpNegotiationCommand.cc
  5366. * src/HttpResponseCommand.cc
  5367. * src/HttpResponseCommand.h
  5368. * src/RequestGroup.cc
  5369. * src/SingleFileDownloadContext.cc
  5370. * src/SingleFileDownloadContext.h
  5371. * test/BtPostDownloadHandlerTest.cc
  5372. * test/MetalinkPostDownloadHandlerTest.cc
  5373. * test/MockBtContext.h
  5374. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  5375. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5376. * src/option_processing.cc
  5377. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  5378. Applied aria2-1.0.1-mingw.patch.
  5379. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5380. mingw.
  5381. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5382. * src/SocketCore.cc
  5383. * src/a2netcompat.h
  5384. * test/SocketCoreTest.cc
  5385. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  5386. * Release 1.0.1
  5387. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  5388. Updated Ukrainian and Norwegian Nynorsk translations.
  5389. Thanks to all translators.
  5390. * po/nn.po
  5391. * po/uk.po
  5392. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  5393. Don't show download result when -S option is used.
  5394. * src/main.cc
  5395. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  5396. Bump up version number to 1.0.1
  5397. * configure.ac
  5398. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  5399. Closed files after the test cases in MultiDiskWriterTest::
  5400. testResetDiskWriterEntries(). This will fix the unit test error
  5401. in mingw32 build.
  5402. * test/MultiDiskWriterTest.cc
  5403. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  5404. Use HEAD method to get file size from HTTP server for segmented
  5405. downloading.
  5406. The request to the BitTorrent Tracker always uses GET method because
  5407. the response of the tracker is small and it doesn't need segmented
  5408. download.
  5409. * src/FtpNegotiationCommand.cc
  5410. * src/HttpRequest.cc
  5411. * src/HttpResponseCommand.cc
  5412. * src/HttpSkipResponseCommand.cc
  5413. * src/RequestGroup.cc
  5414. * src/RequestGroup.h
  5415. * src/TrackerWatcherCommand.cc
  5416. * test/HttpRequestTest.cc
  5417. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  5418. Fixed the bug that causes floating exception when -T option is used and
  5419. no URIs are given.
  5420. * src/download_helper.cc
  5421. * test/DownloadHelperTest.cc
  5422. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5423. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5424. errors in MinGW:
  5425. Closed file after saving server stats (RequestGroupMan.cc)
  5426. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5427. Ignored case & handled 2-digit years (strptime.c)
  5428. Added missing suseconds_t definition (a2time.h)
  5429. Fixed socket CLOSE() define (SocketCore.cc)
  5430. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5431. Changed utime() test values from x000 to x00000 as MinGW failed on
  5432. values less than timezone offset from Unix epoch
  5433. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5434. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5435. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5436. handle negative dates (CookieParserTest.cc)
  5437. * src/a2time.h
  5438. * src/FtpConnection.cc
  5439. * src/RequestGroupMan.cc
  5440. * src/SocketCore.cc
  5441. * src/strptime.c
  5442. * test/CookieParserTest.cc
  5443. * test/CopyDiskAdaptorTest.cc
  5444. * test/FileTest.cc
  5445. * test/FtpConnectionTest.cc
  5446. * test/MultiDiskAdaptorTest.cc
  5447. 2008-11-20 Tatsuhiro Tsujikawa <[email protected]>
  5448. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5449. * doc/aria2c.1.txt
  5450. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  5451. * Release 1.0.0
  5452. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  5453. Added '~' to reserved characters.
  5454. * src/Util.cc
  5455. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  5456. Do not urlencode Request::url in setUrl() because we want unmodified
  5457. URL using Request::getUrl()
  5458. * src/Request.cc
  5459. * src/Request.h
  5460. * test/RequestTest.cc
  5461. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  5462. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5463. Thanks to all translators.
  5464. * po/bg.po
  5465. * po/fr.po
  5466. * po/ja.po
  5467. * po/ru.po
  5468. * po/uk.po
  5469. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  5470. Bump up version number to 1.0.0
  5471. * configure.ac
  5472. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  5473. Added nosqlite3 build to build_test.sh.
  5474. Renamed noxml as expat.
  5475. * build_test.sh
  5476. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  5477. Updated INPUT FILE section.
  5478. * doc/aria2c.1.txt
  5479. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  5480. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5481. on big endian systems because test .aria2 files are made for little
  5482. endian systems.
  5483. * test/DefaultBtProgressInfoFileTest.cc
  5484. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  5485. Dropped ares support.
  5486. * README
  5487. * configure.ac
  5488. * m4/libares.m4: Removed.
  5489. * src/AsyncNameResolver.cc
  5490. * src/Makefile.am
  5491. * test/Makefile.am
  5492. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  5493. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5494. Removed const qualifier from DiskWriter::size().
  5495. * src/AbstractDiskWriter.cc
  5496. * src/AbstractDiskWriter.h
  5497. * src/ByteArrayDiskWriter.cc
  5498. * src/ByteArrayDiskWriter.h
  5499. * src/DiskWriter.h
  5500. * test/ByteArrayDiskWriterTest.cc
  5501. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  5502. Fixed the bug that causes segmentation fault/bus error during executing
  5503. choking algorithm while seeding. This is caused by improper
  5504. implementation of compare function which returns inconsistent results
  5505. depending on the timing of last unchoke.
  5506. * src/BtSeederStateChoke.cc
  5507. * src/BtSeederStateChoke.h
  5508. * src/DefaultPeerStorage.cc
  5509. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  5510. Removed TODO
  5511. * TODO
  5512. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  5513. Added a section that explains how to pass argument to options that
  5514. takes optional arguments with its short form.
  5515. * doc/aria2c.1.txt
  5516. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  5517. Added -u for the short form of --max-upload-limit option.
  5518. * doc/aria2c.1.txt
  5519. * src/option_processing.cc
  5520. * src/usage_text.h
  5521. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  5522. Added -V for the short form of --check-integrity option.
  5523. Now the argument of --check-integrity option is optional:
  5524. if it is omitted, it is evaluated as true.
  5525. * doc/aria2c.1.txt
  5526. * src/option_processing.cc
  5527. * src/usage_text.h
  5528. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  5529. Made the default value of --ftp-pasv option set to true and it can take
  5530. true/false values.
  5531. * src/OptionHandlerFactory.cc
  5532. * src/option_processing.cc
  5533. * src/usage_text.h
  5534. * doc/aria2c.1.txt
  5535. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  5536. Given custom random number generator to std::random_shuffle.
  5537. * src/AnnounceList.cc
  5538. * src/BtLeecherStateChoke.cc
  5539. * src/BtSeederStateChoke.cc
  5540. * src/DefaultBtRequestFactory.cc
  5541. * src/MetalinkEntry.cc
  5542. * src/RarestPieceSelector.cc
  5543. * src/SimpleRandomizer.cc
  5544. * src/SimpleRandomizer.h
  5545. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  5546. Now the default value of --enable-direct-io is true.
  5547. * src/OptionHandlerFactory.cc
  5548. * doc/aria2c.1.txt
  5549. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  5550. Erase peer before executing onReturningPeer and onErasingPeer
  5551. because choking algorithm called from onReturningPeer doesn't
  5552. like erasing peer in the active peer list.
  5553. * src/DefaultPeerStorage.cc
  5554. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5555. Instead of creating special filename in createDownloadResult() if
  5556. inMemoryDownload() is true, now it is done in getFilePath().
  5557. * src/RequestGroup.cc
  5558. * test/RequestGroupTest.cc
  5559. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5560. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5561. processed in memory. This is the fix for previous comment out.
  5562. * src/MemoryBufferPreDownloadHandler.cc
  5563. * src/RequestGroup.cc
  5564. * src/RequestGroup.h
  5565. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5566. Commented out the code which sets virtual directory path "[MEMORY]"
  5567. propagate directory to store to following RequestGroup.
  5568. * src/MemoryBufferPreDownloadHandler.cc
  5569. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5570. Bump up version number to 1.0.0b
  5571. * configure.ac
  5572. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5573. Added input_uris.txt to EXTRA_DIST
  5574. * test/Makefile.am
  5575. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5576. Removed PeerObject.h from Makefile.am
  5577. * src/Makefile.am
  5578. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5579. Avoid slow seeding
  5580. * src/PeerInteractionCommand.cc
  5581. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5582. Updated usage for -i option.
  5583. * src/usage_text.h (TEXT_INPUT_FILE)
  5584. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5585. Added INPUT FILE section to man page.
  5586. Escaped fake URLs.
  5587. * doc/aria2c.1.txt
  5588. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5589. Fixed wrong note position for -o option.
  5590. * doc/aria2c.1.txt
  5591. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  5592. Fixed compile error without SSL/XML library.
  5593. * src/DefaultBtProgressInfoFile.cc
  5594. * src/DefaultBtProgressInfoFile.h
  5595. * src/FileMetalinkParserState.cc
  5596. * src/RequestGroup.h
  5597. * src/SocketCore.cc
  5598. * src/SocketCore.h
  5599. * src/VerificationMetalinkParserState.cc
  5600. * src/download_helper.h
  5601. * src/main.cc
  5602. * test/DefaultBtProgressInfoFileTest.cc
  5603. * test/DownloadHelperTest.cc
  5604. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  5605. Rewritten URI handling functions. They are now provided as a testable
  5606. functions.
  5607. * src/Makefile.am
  5608. * src/RequestGroup.cc
  5609. * src/RequestGroup.h
  5610. * src/download_helper.cc
  5611. * src/download_helper.h
  5612. * src/main.cc
  5613. * test/DownloadHelperTest.cc
  5614. * test/Makefile.am
  5615. * test/input_uris.txt
  5616. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  5617. Quickly terminate commands when ctrl-c is pressed.
  5618. * src/DownloadEngine.cc
  5619. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  5620. Quickly terminate idle commands when download finished.
  5621. * src/AbstractCommand.cc
  5622. * src/DownloadCommand.cc
  5623. * src/DownloadEngine.cc
  5624. * src/DownloadEngine.h
  5625. * src/SleepCommand.cc
  5626. * src/SleepCommand.h
  5627. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5628. Added the ability to specify output filename and directory in input
  5629. file.
  5630. Additional parameters are added in the following line of URIs
  5631. with proceeding white space(s), 1 parameter in 1 line.
  5632. The parameter names are the same with the command-line option name
  5633. without proceeding "--". Not all the options are available here:
  5634. at the moment, 'dir' and 'out' options are avialable.
  5635. Please note that out option has no effect against Metalink or BitTorrent
  5636. downloads.
  5637. Example input file:
  5638. http://host/foo-1.1.tar.bz2
  5639. out=foo.tar.bz2
  5640. dir=/tmp/downloads
  5641. http://host/thundermonkey-2.0.tar.bz2
  5642. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5643. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5644. thundermonkey-2.0.tar.bz2 is saved as
  5645. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5646. * src/BtPostDownloadHandler.cc
  5647. * src/Metalink2RequestGroup.cc
  5648. * src/Metalink2RequestGroup.h
  5649. * src/MetalinkPostDownloadHandler.cc
  5650. * src/UriListParser.cc
  5651. * src/UriListParser.h
  5652. * src/main.cc
  5653. * test/Metalink2RequestGroupTest.cc
  5654. * test/UriListParserTest.cc
  5655. * test/filelist1.txt
  5656. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5657. Fixed error when SSL library is not found.
  5658. * configure.ac
  5659. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5660. Cross referenced among -s, -C and -j options.
  5661. Updated usage of -C and -s options.
  5662. * src/usage_text.h
  5663. * doc/aria2c.1.txt
  5664. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5665. Fixed bad cast in 32bit platforms.
  5666. * test/DefaultPieceStorageTest.cc
  5667. (DefaultPieceStorageTest::testGetCompletedLength)
  5668. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5669. Fixed unit test fails on 32bit platforms.
  5670. * test/CookieParserTest.cc
  5671. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5672. Show an average download speed in Download results.
  5673. * src/BtFileAllocationEntry.cc
  5674. * src/DefaultPieceStorage.cc
  5675. * src/DownloadContext.cc
  5676. * src/DownloadContext.h
  5677. * src/DownloadResult.h
  5678. * src/RequestGroup.cc
  5679. * src/RequestGroupMan.cc
  5680. * src/StreamFileAllocationEntry.cc
  5681. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  5682. Fixed the bug that metalink file is not processed if Content-Type
  5683. field has a paramter.
  5684. * src/HttpResponse.cc
  5685. * src/HttpResponse.h
  5686. * test/HttpResponseTest.cc
  5687. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  5688. Removed unused code.
  5689. * src/DefaultBtAnnounce.cc
  5690. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  5691. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5692. the value larger than DefaultPieceStorage::getTotalLength() when
  5693. in flight pieces are involved.
  5694. * src/DefaultPieceStorage.cc
  5695. * test/DefaultPieceStorageTest.cc
  5696. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5697. Bump up version number to 1.0.0a.
  5698. * configure.ac
  5699. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5700. Updated configure.ac
  5701. * configure.ac
  5702. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5703. Added usege for proxy.
  5704. * doc/aria2c.1.txt
  5705. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5706. Added usage for --ca-certificate, --certificate, --private-key and
  5707. --check-certificate options.
  5708. * doc/aria2c.1.txt
  5709. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5710. Updated man page
  5711. * doc/aria2c.1.txt
  5712. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5713. Added --no-proxy option. It receives comman separated hostname or
  5714. domains to which proxy should not be used.
  5715. aria2 honors the environment variable no_proxy to override no-proxy
  5716. value in configuration file. The user can override the environment
  5717. variable no_proxy with --no-proxy command-line option.
  5718. * src/AbstractCommand.cc
  5719. * src/OptionHandlerFactory.cc
  5720. * src/option_processing.cc
  5721. * src/prefs.cc
  5722. * src/prefs.h
  5723. * src/usage_text.h
  5724. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  5725. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5726. The CA certificates are specified in --ca-certificate option.
  5727. By default, the verification is disabled. Use --check-certificate
  5728. option to enable it.
  5729. * src/HttpRequestCommand.cc
  5730. * src/LibgnutlsTLSContext.cc
  5731. * src/LibgnutlsTLSContext.h
  5732. * src/LibsslTLSContext.cc
  5733. * src/LibsslTLSContext.h
  5734. * src/MultiUrlRequestInfo.cc
  5735. * src/OptionHandlerFactory.cc
  5736. * src/SocketCore.cc
  5737. * src/SocketCore.h
  5738. * src/a2functional.h
  5739. * src/message.h
  5740. * src/option_processing.cc
  5741. * src/prefs.cc
  5742. * src/prefs.h
  5743. * src/usage_text.h
  5744. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  5745. Added client certificate authentication for SSL/TLS.
  5746. Currently a private key must be decrypted for use with aria2.
  5747. If a user accidentally gives encrypted file to aria2 then following
  5748. thing happens:
  5749. If encrypted private key is given to aria2, it behaves differently
  5750. depending on the ssl library it uses. If aria2 built with openssl then
  5751. openssl prompts the user for password. If aria2 build with gnutls then
  5752. aria2 exists with error at start up.
  5753. * src/DownloadEngineFactory.cc
  5754. * src/MultiUrlRequestInfo.cc
  5755. * src/OptionHandlerFactory.cc
  5756. * src/option_processing.cc
  5757. * src/prefs.cc
  5758. * src/prefs.h
  5759. * src/usage_text.h
  5760. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  5761. Introduced TLSContext that holds TLS related data that can be shared
  5762. with multiple SSL connections.
  5763. * src/DownloadEngineFactory.cc
  5764. * src/LibgnutlsTLSContext.cc
  5765. * src/LibgnutlsTLSContext.h
  5766. * src/LibsslTLSContext.cc
  5767. * src/LibsslTLSContext.h
  5768. * src/Makefile.am
  5769. * src/SocketCore.cc
  5770. * src/SocketCore.h
  5771. * src/TLSContext.h
  5772. * src/message.h
  5773. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  5774. Fixed the bug that the DiskWriter of the first FileEntry whose
  5775. `needsFileAllocation' property is false is not created
  5776. even if it shares a piece with next FileEntry which `requested' property
  5777. is true.
  5778. Fixed the bug that zero-length file is not created if pre file
  5779. allocation is not done.
  5780. * src/MultiDiskAdaptor.cc
  5781. * src/MultiDiskAdaptor.h
  5782. * test/MultiDiskAdaptorTest.cc
  5783. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Added the ability to pool proxy connection.
  5785. The conneciton in FTP with proxy-method=GET is not pooled.
  5786. Proxy-Connection header will not be sent when sending CONNECT method.
  5787. * src/DownloadEngine.cc
  5788. * src/DownloadEngine.h
  5789. * src/FtpFinishDownloadCommand.cc
  5790. * src/FtpInitiateConnectionCommand.cc
  5791. * src/FtpNegotiationCommand.cc
  5792. * src/HttpDownloadCommand.cc
  5793. * src/HttpInitiateConnectionCommand.cc
  5794. * src/HttpRequest.cc
  5795. * src/HttpRequest.h
  5796. * src/HttpResponse.cc
  5797. * src/HttpSkipResponseCommand.cc
  5798. * test/HttpRequestTest.cc
  5799. * test/HttpResponseTest.cc
  5800. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. Handle date before epoch.
  5802. To create *bad* Time object, call Time::null().
  5803. * src/CookieParser.cc
  5804. * src/FtpConnection.cc
  5805. * src/FtpConnection.h
  5806. * src/FtpNegotiationCommand.cc
  5807. * src/RequestGroup.cc
  5808. * src/TimeA2.cc
  5809. * src/TimeA2.h
  5810. * test/CookieParserTest.cc
  5811. * test/FtpConnectionTest.cc
  5812. * test/TimeTest.cc
  5813. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. Added support for following envrionment variables: http_proxy,
  5815. https_proxy, ftp_proxy and all_proxy.
  5816. Each variable is equivalent to the aria2 option whose name is the
  5817. variable name with '_' replaced with '-'.
  5818. They overrides options specified in aria2.conf file.
  5819. The envrionment variables can be overrode using command-line option.
  5820. * src/option_processing.cc
  5821. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5822. Renamed --http-proxy-method as --proxy-method.
  5823. * src/AbstractCommand.cc
  5824. * src/FtpInitiateConnectionCommand.cc
  5825. * src/HttpInitiateConnectionCommand.cc
  5826. * src/OptionHandlerFactory.cc
  5827. * src/option_processing.cc
  5828. * src/prefs.cc
  5829. * src/prefs.h
  5830. * src/usage_text.h
  5831. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5832. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5833. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5834. Above 3 options and --http-proxy option can handle proxy in URL format
  5835. like: http://user:passwd@host:port.
  5836. If a proxy requires user/password, they must be specified in a URL.
  5837. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5838. instead.
  5839. * src/AbstractCommand.cc
  5840. * src/AbstractCommand.h
  5841. * src/AbstractProxyRequestCommand.cc
  5842. * src/AbstractProxyRequestCommand.h
  5843. * src/AuthConfigFactory.cc
  5844. * src/AuthConfigFactory.h
  5845. * src/FtpFinishDownloadCommand.cc
  5846. * src/FtpInitiateConnectionCommand.cc
  5847. * src/FtpInitiateConnectionCommand.h
  5848. * src/FtpNegotiationCommand.cc
  5849. * src/FtpTunnelRequestCommand.cc
  5850. * src/FtpTunnelRequestCommand.h
  5851. * src/HttpDownloadCommand.cc
  5852. * src/HttpInitiateConnectionCommand.cc
  5853. * src/HttpInitiateConnectionCommand.h
  5854. * src/HttpProxyRequestCommand.cc
  5855. * src/HttpProxyRequestCommand.h
  5856. * src/HttpRequest.cc
  5857. * src/HttpRequest.h
  5858. * src/HttpRequestCommand.cc
  5859. * src/HttpRequestCommand.h
  5860. * src/HttpSkipResponseCommand.cc
  5861. * src/InitiateConnectionCommand.cc
  5862. * src/InitiateConnectionCommand.h
  5863. * src/OptionHandlerFactory.cc
  5864. * src/OptionHandlerImpl.h
  5865. * src/Request.cc
  5866. * src/option_processing.cc
  5867. * src/prefs.cc
  5868. * src/prefs.h
  5869. * src/usage_text.h
  5870. * test/AuthConfigFactoryTest.cc
  5871. * test/HttpRequestTest.cc
  5872. * test/OptionHandlerTest.cc
  5873. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5874. Execute choking algorithm when unchoked and interested peer is
  5875. disconected.
  5876. * src/DefaultPeerStorage.cc
  5877. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Added testcase for BtNotInterestedMessage from unchoked peer.
  5879. * test/BtNotInterestedMessageTest.cc
  5880. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. Execute choking algorithm when BtInterestedMessage arrives from
  5882. unchoked peer.
  5883. * src/BtInterestedMessage.cc
  5884. * src/BtInterestedMessage.h
  5885. * src/DefaultBtMessageFactory.cc
  5886. * test/BtInterestedMessageTest.cc
  5887. * test/MockPeerStorage.h
  5888. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5889. AuthConfigFactory is now part of DownloadEngine.
  5890. * src/AbstractProxyRequestCommand.cc
  5891. * src/AuthConfigFactory.h
  5892. * src/DownloadEngine.cc
  5893. * src/DownloadEngine.h
  5894. * src/FtpConnection.cc
  5895. * src/FtpConnection.h
  5896. * src/FtpNegotiationCommand.cc
  5897. * src/HttpConnection.cc
  5898. * src/HttpRequest.cc
  5899. * src/HttpRequest.h
  5900. * src/HttpRequestCommand.cc
  5901. * src/HttpResponse.cc
  5902. * src/HttpResponseCommand.cc
  5903. * src/HttpSkipResponseCommand.cc
  5904. * src/MultiUrlRequestInfo.cc
  5905. * src/main.cc
  5906. * test/FtpConnectionTest.cc
  5907. * test/HttpRequestTest.cc
  5908. * test/HttpResponseTest.cc
  5909. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5910. Corrected catched exception type.
  5911. * src/ServerStatMan.cc
  5912. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5913. DNSCache is now part of DownloadEngine.
  5914. * src/DNSCache.h
  5915. * src/DownloadEngine.cc
  5916. * src/DownloadEngine.h
  5917. * src/InitiateConnectionCommand.cc
  5918. * src/MultiUrlRequestInfo.cc
  5919. * test/Makefile.am
  5920. * test/Makefile.in
  5921. * test/SimpleDNSCacheTest.cc
  5922. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5923. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5924. DownloadEngine.
  5925. * src/ActivePeerConnectionCommand.cc
  5926. * src/BtSetup.cc
  5927. * src/CUIDCounter.h
  5928. * src/DHTSetup.cc
  5929. * src/DownloadCommand.cc
  5930. * src/DownloadEngine.cc
  5931. * src/DownloadEngine.h
  5932. * src/DownloadEngineFactory.cc
  5933. * src/FileAllocationDispatcherCommand.cc
  5934. * src/InitiatorMSEHandshakeCommand.cc
  5935. * src/PeerInitiateConnectionCommand.cc
  5936. * src/PeerInteractionCommand.cc
  5937. * src/PeerListenCommand.cc
  5938. * src/RequestGroup.cc
  5939. * src/StreamFileAllocationEntry.cc
  5940. * src/TrackerWatcherCommand.cc
  5941. * src/main.cc
  5942. * test/RequestGroupManTest.cc
  5943. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Implemented commented code in BtSeederStateChoke
  5945. * src/BtSeederStateChoke.cc
  5946. * src/Peer.cc
  5947. * src/Peer.h
  5948. * src/PeerInteractionCommand.cc
  5949. * src/PeerSessionResource.cc
  5950. * src/PeerSessionResource.h
  5951. * test/MockBtMessageDispatcher.h
  5952. * test/PeerSessionResourceTest.cc
  5953. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5954. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5955. its object.
  5956. * src/AbstractBtMessage.cc
  5957. * src/ActivePeerConnectionCommand.cc
  5958. * src/ActivePeerConnectionCommand.h
  5959. * src/BtContextAwareCommand.cc
  5960. * src/BtContextAwareCommand.h
  5961. * src/BtExtendedMessage.cc
  5962. * src/BtExtendedMessage.h
  5963. * src/BtInterestedMessage.cc
  5964. * src/BtInterestedMessage.h
  5965. * src/BtNotInterestedMessage.cc
  5966. * src/BtNotInterestedMessage.h
  5967. * src/BtRegistry.cc
  5968. * src/BtRegistry.h
  5969. * src/BtSeederStateChoke.cc
  5970. * src/BtSetup.cc
  5971. * src/DHTGetPeersCommand.cc
  5972. * src/DHTGetPeersCommand.h
  5973. * src/DHTPeerAnnounceEntry.cc
  5974. * src/DHTPeerAnnounceEntry.h
  5975. * src/DHTPeerAnnounceStorage.cc
  5976. * src/DHTPeerAnnounceStorage.h
  5977. * src/DHTPeerLookupTask.cc
  5978. * src/DHTPeerLookupTask.h
  5979. * src/DHTSetup.cc
  5980. * src/DHTSetup.h
  5981. * src/DHTTaskFactory.h
  5982. * src/DHTTaskFactoryImpl.cc
  5983. * src/DHTTaskFactoryImpl.h
  5984. * src/DefaultBtAnnounce.cc
  5985. * src/DefaultBtInteractive.cc
  5986. * src/DefaultBtInteractive.h
  5987. * src/DefaultBtMessageDispatcher.cc
  5988. * src/DefaultBtMessageDispatcher.h
  5989. * src/DefaultBtMessageFactory.cc
  5990. * src/DefaultBtMessageFactory.h
  5991. * src/DefaultBtMessageReceiver.cc
  5992. * src/DefaultBtProgressInfoFile.cc
  5993. * src/DefaultBtProgressInfoFile.h
  5994. * src/DefaultBtRequestFactory.cc
  5995. * src/DefaultBtRequestFactory.h
  5996. * src/DefaultExtensionMessageFactory.cc
  5997. * src/DefaultExtensionMessageFactory.h
  5998. * src/DefaultPeerStorage.cc
  5999. * src/DefaultPeerStorage.h
  6000. * src/DownloadEngine.cc
  6001. * src/DownloadEngine.h
  6002. * src/InitiatorMSEHandshakeCommand.cc
  6003. * src/InitiatorMSEHandshakeCommand.h
  6004. * src/MSEHandshake.cc
  6005. * src/MSEHandshake.h
  6006. * src/Makefile.am
  6007. * src/Makefile.in
  6008. * src/PeerChokeCommand.cc
  6009. * src/PeerChokeCommand.h
  6010. * src/PeerInitiateConnectionCommand.cc
  6011. * src/PeerInitiateConnectionCommand.h
  6012. * src/PeerInteractionCommand.cc
  6013. * src/PeerInteractionCommand.h
  6014. * src/PeerObject.h
  6015. * src/PeerReceiveHandshakeCommand.cc
  6016. * src/PeerReceiveHandshakeCommand.h
  6017. * src/ReceiverMSEHandshakeCommand.cc
  6018. * src/RequestGroup.cc
  6019. * src/RequestGroup.h
  6020. * src/RequestGroupMan.cc
  6021. * src/RequestGroupMan.h
  6022. * src/SeedCheckCommand.cc
  6023. * src/SeedCheckCommand.h
  6024. * src/ShareRatioSeedCriteria.h
  6025. * src/SimpleBtMessage.cc
  6026. * src/TrackerWatcherCommand.cc
  6027. * src/TrackerWatcherCommand.h
  6028. * src/UTPexExtensionMessage.cc
  6029. * src/UTPexExtensionMessage.h
  6030. * test/BtCancelMessageTest.cc
  6031. * test/BtChokeMessageTest.cc
  6032. * test/BtExtendedMessageTest.cc
  6033. * test/BtInterestedMessageTest.cc
  6034. * test/BtNotInterestedMessageTest.cc
  6035. * test/BtPieceMessageTest.cc
  6036. * test/BtPortMessageTest.cc
  6037. * test/BtRegistryTest.cc
  6038. * test/BtRejectMessageTest.cc
  6039. * test/BtRequestMessageTest.cc
  6040. * test/DHTPeerAnnounceEntryTest.cc
  6041. * test/DHTPeerAnnounceStorageTest.cc
  6042. * test/DefaultBtMessageDispatcherTest.cc
  6043. * test/DefaultBtMessageFactoryTest.cc
  6044. * test/DefaultBtProgressInfoFileTest.cc
  6045. * test/DefaultBtRequestFactoryTest.cc
  6046. * test/DefaultExtensionMessageFactoryTest.cc
  6047. * test/MSEHandshakeTest.cc
  6048. * test/MockDHTTaskFactory.h
  6049. * test/ShareRatioSeedCriteriaTest.cc
  6050. * test/UTPexExtensionMessageTest.cc
  6051. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6052. Fixed compiler warning.
  6053. * test/UtilTest.cc
  6054. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6055. Treat Cookie object as session cookie if expiry = 0 is given.
  6056. With this change, you can specify session scoped cookies in an external
  6057. file setting expiry value to 0.
  6058. * src/Cookie.cc
  6059. * src/Cookie.h
  6060. * test/CookieParserTest.cc
  6061. * test/CookieStorageTest.cc
  6062. * test/CookieTest.cc
  6063. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6064. Changed signature of DHTMessageFactory::createResponseMessage().
  6065. Removed unused validateIDMatch.
  6066. * src/DHTMessageFactory.h
  6067. * src/DHTMessageFactoryImpl.cc
  6068. * src/DHTMessageFactoryImpl.h
  6069. * src/DHTMessageTracker.cc
  6070. * test/DHTMessageFactoryImplTest.cc
  6071. * test/MockDHTMessageFactory.h
  6072. Dropped DHT message coming from same ID of localhost.
  6073. * src/DHTMessageReceiver.cc
  6074. Rejected adding node whose ID is the same as localhost's.
  6075. * src/DHTRoutingTable.cc
  6076. * test/BtPortMessageTest.cc
  6077. * test/DHTRoutingTableTest.cc
  6078. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. Pool connection when redirection occurs with Content-Length = 0.
  6080. * src/HttpSkipResponseCommand.cc
  6081. * src/HttpSkipResponseCommand.h
  6082. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Fixed the bug that causes time out when redirection occurs with
  6084. content-length 0.
  6085. * src/HttpResponseCommand.cc
  6086. * src/HttpSkipResponseCommand.cc
  6087. * src/HttpSkipResponseCommand.h
  6088. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Now each status legends is shown only when it appears in Download
  6090. Result. If Download Result has no item, then status legend will not
  6091. be printed.
  6092. * src/RequestGroupMan.cc
  6093. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6094. Removed duplicate creation of OptionHandlers.
  6095. * src/option_processing.cc
  6096. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6097. Fixed the bug that causes segmentation fault when accessing files which
  6098. don't exist or are not included in --select-file option while
  6099. validating chunk checksum.
  6100. * src/MultiDiskAdaptor.cc
  6101. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6102. Fixed compiler warning.
  6103. * test/UtilTest.cc
  6104. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6105. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6106. * src/IteratableChecksumValidator.cc
  6107. * src/IteratableChunkChecksumValidator.cc
  6108. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6109. * Release 0.16.2
  6110. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6111. Added Serbian translation. Updated Ukrainian translation.
  6112. Thanks to all translators.
  6113. * po/sr.po
  6114. * po/uk.po
  6115. * po/LINGUAS
  6116. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6117. Bump up version number to 0.16.2
  6118. * configure.ac
  6119. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Added length equality test to operator== to drop a piece message
  6121. whose length does not match to the requested one.
  6122. * src/RequestSlot.cc
  6123. * test/DefaultBtMessageDispatcherTest.cc
  6124. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6125. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6126. recieved.
  6127. In this fix, if a request larger than 16KiB length is received, aria2
  6128. disconnects the peer.
  6129. * src/BtConstants.h
  6130. * src/PeerMessageUtil.cc
  6131. * src/PeerMessageUtil.h
  6132. * test/BtRequestMessageTest.cc
  6133. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6134. * Release 0.16.1
  6135. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6136. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6137. * doc/aria2c.1.txt
  6138. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6139. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6140. Updated French, Simplified Chinese and Japanese translations.
  6141. Thanks to all translators.
  6142. en@quot and en@boldquot are also added.
  6143. * po/LINGUAS
  6144. * po/fr.po
  6145. * po/ja.po
  6146. * po/uk.po
  6147. * po/vi.po
  6148. * po/zh_CN.po
  6149. * po/zh_TW.po
  6150. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6151. Bump up version number to 0.16.1.
  6152. * configure.ac
  6153. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6154. Updated README.
  6155. * README
  6156. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6158. not to replace '--' with em dash character.
  6159. * doc/aria2c.1.txt
  6160. * doc/makeman
  6161. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6162. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6163. every SEC seconds.
  6164. * src/DownloadEngineFactory.cc
  6165. * src/OptionHandlerFactory.cc
  6166. * src/option_processing.cc
  6167. * src/usage_text.h
  6168. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Fixed compile warning on linux-amd64
  6170. * src/FtpConnection.cc
  6171. * src/IteratableChunkChecksumValidator.cc
  6172. * src/MultiDiskAdaptor.cc
  6173. Fixed the bug that unit test fails on linux-amd64
  6174. * test/UtilTest.cc
  6175. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6176. Added --dht-file-path option to change the path to dht.dat, which is a
  6177. serialized DHT routing table.
  6178. * src/OptionHandlerFactory.cc
  6179. * src/option_processing.cc
  6180. * src/usage_text.h
  6181. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Fixed possible underflow.
  6183. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6184. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Fixed the bug that last character in URI is not encoded.
  6186. * src/Request.cc
  6187. * test/RequestTest.cc
  6188. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Fixed the bug that referer header field contains fragment.
  6190. Now Request class removes fragment part of URI and encodes it
  6191. in Request::setUri() and setReferer().
  6192. * src/Request.h
  6193. * src/Request.cc
  6194. * test/RequestTest.cc
  6195. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Added missing m4 macros.
  6197. * m4/cppunit.m4
  6198. * m4/libgcrypt.m4
  6199. * m4/libgnutls-extra.m4
  6200. * m4/libgnutls.m4
  6201. * m4/libxml2.m4
  6202. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6203. Fixed compile error with gcc-4.4(snapshot)
  6204. * src/File.cc
  6205. * src/FtpConnection.cc
  6206. * src/OptionHandlerImpl.h
  6207. * src/Util.cc
  6208. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6209. Removed assert()
  6210. * src/SocketBuffer.cc (SocketBuffer::send)
  6211. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. Changed the type of _numNewConnection to unsigned int.
  6213. * src/ActivePeerConnectionCommand.cc
  6214. * src/ActivePeerConnectionCommand.h
  6215. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. * Release 0.16.0
  6217. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Updated doc
  6219. * README
  6220. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6221. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6222. translations. Thanks to all translators.
  6223. * po/bg.po
  6224. * po/de.po
  6225. * po/fr.po
  6226. * po/ja.po
  6227. * po/zh_CN.po
  6228. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6229. Bump up version number to 0.16.0.
  6230. * configure.ac
  6231. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6233. int32_t.
  6234. Changed the type of count to int32_t.
  6235. * src/Metalink2RequestGroup.cc
  6236. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6237. Added test for Time::elapsed(time_t).
  6238. * test/TimeTest.cc
  6239. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6241. Util::difftv() should be used instead.
  6242. * src/TimeA2.cc
  6243. * src/TimeA2.h
  6244. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Made socket for dht connections non-blocking
  6246. * src/DHTAbstractMessage.cc
  6247. * src/DHTAbstractMessage.h
  6248. * src/DHTConnection.h
  6249. * src/DHTConnectionImpl.cc
  6250. * src/DHTConnectionImpl.h
  6251. * src/DHTMessage.h
  6252. * src/DHTMessageDispatcherImpl.cc
  6253. * src/DHTMessageDispatcherImpl.h
  6254. * src/DHTUnknownMessage.cc
  6255. * src/DHTUnknownMessage.h
  6256. * src/SocketCore.cc
  6257. * src/SocketCore.h
  6258. * test/MockDHTMessage.h
  6259. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6260. Changed the type of offset to int.
  6261. * src/ParameterizedStringParser.cc
  6262. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6263. Made getAsInt() return int32_t
  6264. * src/Option.h
  6265. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6266. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6267. build.
  6268. * configure.ac
  6269. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. Use sqlite3_open if sqlite3_open_v2 is not available.
  6271. * src/Sqlite3MozCookieParser.cc
  6272. * src/Sqlite3MozCookieParser.h
  6273. * m4/sqlite3.m4
  6274. * test/Sqlite3MozCookieParserTest.cc
  6275. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6277. * src/BtPieceMessage.cc
  6278. * src/DHTPeerAnnounceStorage.cc
  6279. * src/DefaultPieceStorage.cc
  6280. * src/DownloadCommand.cc
  6281. * src/DownloadEngine.cc
  6282. * src/FtpConnection.cc
  6283. * src/PeerConnection.cc
  6284. * src/PeerMessageUtil.cc
  6285. * src/RequestGroup.cc
  6286. * src/RequestGroupMan.cc
  6287. * src/SimpleBtMessage.cc
  6288. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6289. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6290. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6291. * src/AbstractDiskWriter.cc
  6292. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6293. Don't set Request::supportsPersistentConnection() in HttpConnection
  6294. since this code is also used in AbstractProxyResponseCommand.
  6295. Moved those code to HttpResponse.
  6296. * src/HttpResponse.cc
  6297. * src/HttpResponse.h
  6298. * src/HttpConnection.cc
  6299. * src/HttpConnection.h
  6300. * src/HttpResponseCommand.cc
  6301. * test/HttpResponseTest.cc
  6302. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6303. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6304. The configuration is minimum: no torrent, no metalink, so there may be
  6305. other compile error on their code.
  6306. * src/a2netcompat.h
  6307. * src/File.cc
  6308. * src/File.h
  6309. * src/SocketCore.cc
  6310. * src/SocketCore.h
  6311. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. Made a socket of incoming peer non-blocking.
  6313. * src/PeerListenCommand.cc
  6314. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6316. whole message data is not sent in one send() call.
  6317. * src/BtPieceMessage.cc
  6318. * src/BtPieceMessage.h
  6319. * src/PeerConnection.cc
  6320. * src/PeerConnection.h
  6321. * src/SimpleBtMessage.cc
  6322. * src/SimpleBtMessage.h
  6323. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6324. Fixed the bug that aria2 downloads faster than max-download-limit when
  6325. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6326. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6327. , instead of sum of them.
  6328. * src/ActivePeerConnectionCommand.cc
  6329. * src/DefaultBtInteractive.cc
  6330. * src/DownloadCommand.cc
  6331. * src/PeerInteractionCommand.cc
  6332. * src/PeerReceiveHandshakeCommand.cc
  6333. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6334. Fixed the bug that HTTPS download fails.
  6335. * src/AbstractCommand.cc
  6336. * src/AbstractCommand.h
  6337. * src/DownloadCommand.cc
  6338. * src/FtpConnection.cc
  6339. * src/HttpConnection.cc
  6340. * src/HttpRequestCommand.cc
  6341. * src/HttpResponseCommand.cc
  6342. * src/HttpSkipResponseCommand.cc
  6343. * src/MSEHandshake.cc
  6344. * src/PeerConnection.cc
  6345. * src/SocketCore.cc
  6346. * src/SocketCore.h
  6347. Fixed the bug that aria2 doesn't download whole content body and cannot
  6348. reuse connection if chunked transfer encoding and gzip content encoding
  6349. are set.
  6350. * src/DownloadCommand.cc
  6351. * src/HttpSkipResponseCommand.cc
  6352. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Updated man page.
  6354. * doc/aria2c.1.txt
  6355. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. When error occurred while aria2 was parsing an .aria2.conf file, print
  6357. the usage of the option that caused error.
  6358. * src/option_processing.cc
  6359. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Fixed compile error on OptionHandlerException
  6361. * src/Makefile.am
  6362. * src/OptionHandlerException.cc
  6363. * src/OptionHandlerException.h
  6364. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. Moved message of the error to OptionHandlerException.h
  6366. * src/NameMatchOptionHandler.h
  6367. * src/OptionHandlerException.h
  6368. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6369. When error occurs while aria2 is parsing an command-line option, print
  6370. the usage of the option.
  6371. * src/Makefile.am
  6372. * src/NameMatchOptionHandler.h
  6373. * src/OptionHandlerException.h
  6374. * src/option_processing.cc
  6375. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Reverted previous change.
  6377. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6378. username is not in URI.
  6379. * src/HttpRequest.cc
  6380. * src/Request.cc
  6381. * test/HttpRequestTest.cc
  6382. * test/RequestTest.cc
  6383. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6384. Now colon is required for username and password in FTP URL, like:
  6385. ftp://username:password@host.
  6386. If colon is not there, aria2 don't parse it as a username. For example,
  6387. aria2 don't retrieve username from ftp://username@host.
  6388. This fix was made in order to login FTP server via non-transparent ftp
  6389. proxy.
  6390. * src/Request.cc
  6391. * test/RequestTest.cc
  6392. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6393. Use netrc for HTTP.
  6394. Now FTP user/password is sent in Authorization header when
  6395. --ftp-via-http-proxy=get is given.
  6396. * src/AuthConfigFactory.cc
  6397. * src/HttpRequest.cc
  6398. * src/HttpRequest.h
  6399. * src/NetrcAuthResolver.cc
  6400. * src/NetrcAuthResolver.h
  6401. * src/OptionHandlerFactory.cc
  6402. * src/option_processing.cc
  6403. * src/prefs.cc
  6404. * src/prefs.h
  6405. * test/AuthConfigFactoryTest.cc
  6406. * test/HttpRequestTest.cc
  6407. * test/NetrcAuthResolverTest.cc
  6408. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6409. Issue PWD command first and get working directory and use it as a prefix
  6410. for CWD command.
  6411. * src/DownloadEngine.cc
  6412. * src/DownloadEngine.h
  6413. * src/FtpConnection.cc
  6414. * src/FtpConnection.h
  6415. * src/FtpFinishDownloadCommand.cc
  6416. * src/FtpInitiateConnectionCommand.cc
  6417. * src/FtpNegotiationCommand.cc
  6418. * src/FtpNegotiationCommand.h
  6419. * test/FtpConnectionTest.cc
  6420. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. Removed default user/pass for FTP user/pass, since it should not have
  6422. precedence over netrc configuration by default.
  6423. * src/OptionHandlerFactory.cc
  6424. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6425. Added debug log for socket event.
  6426. * src/AbstractCommand.cc
  6427. * src/PeerAbstractCommand.cc
  6428. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. Log microseconds.
  6430. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6431. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Replaced HelpItem.cc with OptionHandler.cc.
  6433. * po/POTFILES.in
  6434. Updated po files with 'make update-po'
  6435. * po/aria2c.pot
  6436. * po/*.po
  6437. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Removed possible values from the text.
  6439. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6440. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6441. Removed unused preferences:
  6442. PREF_NO_PREALLOCATION
  6443. PREF_STDOUT_LOG
  6444. PREF_TRACKER_MAX_TRIES
  6445. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6446. PREF_MIN_SEGMENT_SIZE
  6447. * src/option_processing.cc
  6448. * src/prefs.cc
  6449. * src/prefs.h
  6450. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6451. Integrated HelpItem into OptionParser to ease the workload for adding
  6452. new options. Removed default value from usage text.
  6453. * src/HelpItem.cc: Removed.
  6454. * src/HelpItem.h: Removed.
  6455. * src/HelpItemFactory.cc: Removed.
  6456. * src/HelpItemFactory.h: Removed.
  6457. * src/Makefile.am
  6458. * src/Makefile.in
  6459. * src/NameMatchOptionHandler.h
  6460. * src/OptionHandler.cc
  6461. * src/OptionHandler.h
  6462. * src/OptionHandlerFactory.cc
  6463. * src/OptionHandlerImpl.h
  6464. * src/OptionParser.cc
  6465. * src/OptionParser.h
  6466. * src/TagContainer.cc: Removed.
  6467. * src/TagContainer.h: Removed.
  6468. * src/TaggedItem.cc: Removed.
  6469. * src/TaggedItem.h: Removed.
  6470. * src/main.cc
  6471. * src/option_processing.cc
  6472. * src/usage_text.h
  6473. * src/version_usage.cc
  6474. * test/HelpItemTest.cc: Removed.
  6475. * test/Makefile.am
  6476. * test/Makefile.in
  6477. * test/OptionHandlerTest.cc
  6478. * test/OptionParserTest.cc
  6479. * test/TagContainerTest.cc: Removed.
  6480. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6481. Moved `TransferStat stat = ...' to inside the `if' clause.
  6482. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6483. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6484. Fixed the bug that a block in a piece is requested when same block is
  6485. already requested to the same peer in end game mode.
  6486. * src/BtRequestFactory.h
  6487. * src/DefaultBtInteractive.cc
  6488. * src/DefaultBtRequestFactory.cc
  6489. * src/DefaultBtRequestFactory.h
  6490. * src/DefaultPieceStorage.cc
  6491. * src/DefaultPieceStorage.h
  6492. * src/PieceStorage.h
  6493. * src/UnknownLengthPieceStorage.cc
  6494. * src/UnknownLengthPieceStorage.h
  6495. * test/DefaultBtRequestFactoryTest.cc
  6496. * test/DefaultPieceStorageTest.cc
  6497. * test/MockBtRequestFactory.h
  6498. * test/MockPieceStorage.h
  6499. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6500. Removed _uploadLength and _downloadLength from PeerSessionResource
  6501. and use PeerStat::_sessionUploadLength and
  6502. PeerStat::_sessionDownloadLength.
  6503. * src/PeerSessionResource.cc
  6504. * src/PeerSessionResource.h
  6505. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Fixed the bug that prefixLength of split bucket which doesn't include
  6507. local node ID is incremented.
  6508. * src/DHTBucket.cc
  6509. * src/DHTBucket.h
  6510. * test/DHTBucketTest.cc
  6511. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6512. Added cookies.sqlite to EXTRA_DIST
  6513. * test/Makefile.am
  6514. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6515. Added Turkish translation. Updated French, German, Russian and
  6516. Simplified Chinese translations. Thanks to all translators.
  6517. * po/LINGUAS
  6518. * po/de.po
  6519. * po/fr.po
  6520. * po/ru.po
  6521. * po/tr.po
  6522. * po/zh_CN.po
  6523. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Added deliminating text to the beginning of the log so that one can find
  6525. where the log starts easily.
  6526. * src/main.cc
  6527. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6528. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6529. to fix compile error when async DNS is not enabled by configuration.
  6530. * src/AbstractCommand.cc
  6531. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6532. If establishing conneciton to a server is failed, then mark error on
  6533. its ServerStat.
  6534. Added the cause of error to log when error event occurred.
  6535. Moved message string to message.h for translation.
  6536. * src/AbstractCommand.cc
  6537. * src/AbstractCommand.h
  6538. * src/FtpNegotiationCommand.cc
  6539. * src/HttpRequestCommand.cc
  6540. * src/PeerAbstractCommand.cc
  6541. * src/message.h
  6542. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6543. Added the function to get error message from socket.
  6544. * src/SocketCore.cc
  6545. * src/SocketCore.h
  6546. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6547. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6548. * src/RequestGroupMan.cc
  6549. * src/RequestGroupMan.h
  6550. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6551. If error event is received in epoll, then abort download immediately.
  6552. * src/AbstractCommand.cc
  6553. * src/Command.cc
  6554. * src/Command.h
  6555. * src/DownloadEngine.cc
  6556. * src/PeerAbstractCommand.cc
  6557. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6558. Added usage message for --uri-selector, --server-stat-of,
  6559. --server-stat-in, --server-stat-timeout options.
  6560. * src/HelpItemFactory.cc
  6561. * src/usage_text.h
  6562. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6563. Added upper limit of FTP response buffer. The current implementation
  6564. uses 4096bytes as a limit.
  6565. * src/FtpConnection.cc
  6566. * src/FtpConnection.h
  6567. * test/FtpConnectionTest.cc
  6568. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6569. Use non-blocking socket for TCP communication to avoid possible
  6570. blocking due to buffer full.
  6571. * src/AbstractProxyRequestCommand.cc
  6572. * src/FtpConnection.cc
  6573. * src/FtpConnection.h
  6574. * src/FtpNegotiationCommand.cc
  6575. * src/FtpNegotiationCommand.h
  6576. * src/HttpConnection.cc
  6577. * src/HttpConnection.h
  6578. * src/HttpRequestCommand.cc
  6579. * src/InitiatorMSEHandshakeCommand.cc
  6580. * src/InitiatorMSEHandshakeCommand.h
  6581. * src/MSEHandshake.cc
  6582. * src/MSEHandshake.h
  6583. * src/Makefile.am
  6584. * src/PeerConnection.cc
  6585. * src/PeerConnection.h
  6586. * src/PeerInteractionCommand.cc
  6587. * src/PeerListenCommand.cc
  6588. * src/ReceiverMSEHandshakeCommand.cc
  6589. * src/ReceiverMSEHandshakeCommand.h
  6590. * src/SocketBuffer.cc
  6591. * src/SocketBuffer.h
  6592. * src/SocketCore.cc
  6593. * src/SocketCore.h
  6594. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. Call setStatusRealtime() in constructor.
  6596. * src/RealtimeCommand.cc
  6597. * src/RealtimeCommand.h
  6598. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6599. Call Download::setNoWait(true) to execute newly created command without
  6600. a pause.
  6601. * src/AbstractCommand.cc
  6602. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6603. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6604. found' error from HTTP/FTP server NUM times without getting single
  6605. bytes of data, then force the download to fail.
  6606. Basically aria2 tris all URIs available. So if long list of URIs are
  6607. specified in Metalink, then aria2 will take a long time to fail
  6608. eventually if all URIs are outdated. This option eases this situation
  6609. to limit the number of servers to try.
  6610. * src/FtpNegotiationCommand.cc
  6611. * src/HelpItemFactory.cc
  6612. * src/HttpResponseCommand.cc
  6613. * src/OptionHandlerFactory.cc
  6614. * src/PeerStat.h
  6615. * src/RequestGroup.cc
  6616. * src/RequestGroup.h
  6617. * src/SegmentMan.cc
  6618. * src/SegmentMan.h
  6619. * src/option_processing.cc
  6620. * src/prefs.cc
  6621. * src/prefs.h
  6622. * src/usage_text.h
  6623. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6624. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6625. response even if more than one response is in it.
  6626. * src/FtpConnection.cc
  6627. * src/FtpConnection.h
  6628. * test/FtpConnectionTest.cc
  6629. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6630. Merged from stable-0.15
  6631. * m4/libcares.m4
  6632. Use pkg-config
  6633. * m4/sqlite3.m4
  6634. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6635. Removed unnecessary if statement.
  6636. * src/DefaultPieceStorage.cc (initPieceStorage)
  6637. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6638. Added --connect-timeout option to specify connect timeout in seconds.
  6639. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6640. connecting to BitTorrent peer is not controlled by this option.
  6641. * src/AbstractProxyRequestCommand.cc
  6642. * src/FtpNegotiationCommand.cc
  6643. * src/HelpItemFactory.cc
  6644. * src/HttpRequestCommand.cc
  6645. * src/OptionHandlerFactory.cc
  6646. * src/option_processing.cc
  6647. * src/prefs.cc
  6648. * src/prefs.h
  6649. * src/usage_text.h
  6650. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Added help message for -R option.
  6652. * src/HelpItemFactory.cc
  6653. * src/usage_text.h
  6654. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6655. Added the message that the time is in local time zone.
  6656. * src/RequestGroup.cc
  6657. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6658. Implemented the ability to get timestamp from remote FTP server using
  6659. MDTM command described in RFC3659.
  6660. * src/FtpConnection.cc
  6661. * src/FtpConnection.h
  6662. * src/FtpNegotiationCommand.cc
  6663. * src/FtpNegotiationCommand.h
  6664. * test/FtpConnectionTest.cc
  6665. * test/Makefile.am
  6666. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6667. Implemented the ability to get timestamp from remote HTTP server and
  6668. apply it to local file. To enable this feature, --remote-time option
  6669. is added. No usage text has been written yet.
  6670. If several servers returns difference timestamp, then aria2 uses latest
  6671. one.
  6672. * src/CopyDiskAdaptor.cc
  6673. * src/CopyDiskAdaptor.h
  6674. * src/DirectDiskAdaptor.cc
  6675. * src/DirectDiskAdaptor.h
  6676. * src/DiskAdaptor.h
  6677. * src/File.cc
  6678. * src/File.h
  6679. * src/HttpHeader.cc
  6680. * src/HttpHeader.h
  6681. * src/HttpResponse.cc
  6682. * src/HttpResponse.h
  6683. * src/HttpResponseCommand.cc
  6684. * src/HttpResponseCommand.h
  6685. * src/MultiDiskAdaptor.cc
  6686. * src/MultiDiskAdaptor.h
  6687. * src/OptionHandlerFactory.cc
  6688. * src/RequestGroup.cc
  6689. * src/RequestGroup.h
  6690. * src/RequestGroupMan.cc
  6691. * src/option_processing.cc
  6692. * src/prefs.cc
  6693. * src/prefs.h
  6694. * test/CopyDiskAdaptorTest.cc
  6695. * test/FileTest.cc
  6696. * test/Makefile.am
  6697. * test/Makefile.in
  6698. * test/MultiDiskAdaptorTest.cc
  6699. * test/TestUtil.cc
  6700. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Fixed the bug that DiskWriterEntry is not created when its
  6702. FileEntry.isRequested() is false and it doesn't share a piece with
  6703. other FileEntries that are requested. This bug causes segmentation fault
  6704. in the end.
  6705. * src/MultiDiskAdaptor.cc
  6706. * src/MultiDiskAdaptor.h
  6707. * src/MultiFileAllocationIterator.cc
  6708. * test/MultiDiskAdaptorTest.cc
  6709. * test/MultiFileAllocationIteratorTest.cc
  6710. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6711. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6712. called if the number of file entries are greater than max open files.
  6713. * src/AbstractSingleDiskAdaptor.cc
  6714. * src/AbstractSingleDiskAdaptor.h
  6715. * src/DiskAdaptor.h
  6716. * src/MultiDiskAdaptor.cc
  6717. * src/MultiDiskAdaptor.h
  6718. * test/MultiDiskAdaptorTest.cc
  6719. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Added a constuctor that receives struct timeval.
  6721. Added operator<.
  6722. * src/TimeA2.cc
  6723. * src/TimeA2.h
  6724. * test/TimeTest.cc
  6725. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6726. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6727. * src/CookieParser.cc
  6728. * test/CookieParserTest.cc
  6729. * test/HttpResponseTest.cc
  6730. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6731. Implmented the functions to parse date.
  6732. * src/TimeA2.cc
  6733. * src/TimeA2.h
  6734. * test/TimeTest.cc
  6735. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Added "Firefox3 Cookie" feature to FeatureConfig
  6737. * src/FeatureConfig.cc
  6738. * src/FeatureConfig.h
  6739. * test/FeatureConfigTest.cc
  6740. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6741. Bump up version number to 0.16.0b
  6742. * configure.ac
  6743. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6744. Use pkg-config if is is available.
  6745. * m4/openssl.m4
  6746. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6747. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6748. * src/BtAnnounce.h
  6749. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6750. If an error occurred with a URI, remove identical URI from remaining
  6751. URI list because it is likely that same error occurred in the end and it
  6752. is waste of time.
  6753. * src/AbstractCommand.cc
  6754. * src/RequestGroup.cc
  6755. * src/RequestGroup.h
  6756. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Removed wrong comment.
  6758. * src/DefaultPeerStorage.cc
  6759. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6761. Added return value of getpid() to argument of srand() to achieve more
  6762. randomized value.
  6763. * src/SimpleRandomizer.cc
  6764. * src/SimpleRandomizer.h
  6765. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. Contact tracker frequently when the number of connections are 0 and
  6767. download is not finished yet.
  6768. * src/ActivePeerConnectionCommand.cc
  6769. * src/BtAnnounce.h
  6770. * src/DefaultBtAnnounce.cc
  6771. * src/DefaultBtAnnounce.h
  6772. * test/MockBtAnnounce.h
  6773. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. Moved threshold values to UTPexExtensionMessage.
  6775. * src/DefaultBtInteractive.cc
  6776. * src/Peer.cc
  6777. * src/Peer.h
  6778. * src/UTPexExtensionMessage.cc
  6779. * src/UTPexExtensionMessage.h
  6780. * test/UTPexExtensionMessageTest.cc
  6781. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6782. Added _incoming member to Peer class and made it true if the peer
  6783. initiated connection. Don't add those peer to UTPex message.
  6784. If extended handshake is received, assign _incoming to false.
  6785. * src/DefaultBtInteractive.cc
  6786. * src/HandshakeExtensionMessage.cc
  6787. * src/Peer.cc
  6788. * src/Peer.h
  6789. * src/PeerListenCommand.cc
  6790. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6792. Encoding Decoder. Removed size threshold for turning off on the fly
  6793. inflation because resulting file may or may not be inflated depending
  6794. on the file size and I think it is not expected by users.
  6795. This change fixes segmentation fault when Metalink file contains gzipped
  6796. file and its filesize is provided.
  6797. * src/HttpResponseCommand.cc
  6798. * src/HttpResponseCommand.h
  6799. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6800. Made Cookie immutable.
  6801. * src/Cookie.cc
  6802. * src/Cookie.h
  6803. * src/CookieParser.cc
  6804. * src/CookieParser.h
  6805. * src/CookieStorage.cc
  6806. * test/CookieParserTest.cc
  6807. * test/CookieStorageTest.cc
  6808. * test/NsCookieParserTest.cc
  6809. * test/Sqlite3MozCookieParserTest.cc
  6810. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Removed CookieBox, CookieBoxFactory.
  6812. * src/CookieBox.cc
  6813. * src/CookieBox.h
  6814. * src/CookieBoxFactory.cc
  6815. * src/CookieBoxFactory.h
  6816. * src/Makefile.am
  6817. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. Use CookieStorage class instead of CookieBox class.
  6819. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6820. * src/AbstractProxyRequestCommand.cc
  6821. * src/CookieStorage.cc
  6822. * src/DownloadEngine.cc
  6823. * src/DownloadEngine.h
  6824. * src/HttpConnection.cc
  6825. * src/HttpConnection.h
  6826. * src/HttpRequest.cc
  6827. * src/HttpRequest.h
  6828. * src/HttpRequestCommand.cc
  6829. * src/HttpResponse.cc
  6830. * src/HttpResponseCommand.cc
  6831. * src/HttpSkipResponseCommand.cc
  6832. * src/Makefile.am
  6833. * src/MultiUrlRequestInfo.cc
  6834. * src/Request.cc
  6835. * src/Request.h
  6836. * src/main.cc
  6837. * test/AllTest.cc
  6838. * test/CookieStorageTest.cc
  6839. * test/CookieTest.cc
  6840. * test/HttpRequestTest.cc
  6841. * test/HttpResponseTest.cc
  6842. * test/Makefile.am
  6843. * test/NsCookieParserTest.cc
  6844. * test/Sqlite3MozCookieParserTest.cc
  6845. * test/nscookietest.txt
  6846. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6847. Updated
  6848. * test/Cookies.sqlite
  6849. * test/nscookietest.txt
  6850. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6851. Added tests for CookieStorage::load()
  6852. * test/CookieStorageTest.cc
  6853. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6854. Added CookieStorage class which is based on RFC2109 and manages cookies
  6855. more strictly than CookieBox and CookieBoxFactory class.
  6856. * src/CookieStorage.cc
  6857. * src/CookieStorage.h
  6858. * src/Cookie.cc
  6859. * src/Cookie.h
  6860. * test/CookieStorageTest.cc
  6861. * test/CookieTest.cc
  6862. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Fixed the bug that commands are created more than the number of pieces.
  6864. * src/RequestGroup.cc
  6865. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Fixed infinite loop bug in FTP when SIZE command failed.
  6867. * src/FtpNegotiationCommand.cc
  6868. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6869. Removed DirectDiskAdaptorTest.h
  6870. * test/Makefile.am
  6871. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. Fixed chunk checksum validation cannot detect trailing garbage data.
  6873. BUG#2074141
  6874. * src/AbstractSingleDiskAdaptor.cc
  6875. * src/AbstractSingleDiskAdaptor.h
  6876. * src/CheckIntegrityEntry.cc
  6877. * src/CheckIntegrityEntry.h
  6878. * src/DiskAdaptor.h
  6879. * src/MultiDiskAdaptor.cc
  6880. * src/MultiDiskAdaptor.h
  6881. * src/RequestGroup.cc
  6882. * test/DirectDiskAdaptorTest.cc
  6883. * test/MultiDiskAdaptorTest.cc
  6884. * test/TestUtil.cc
  6885. * test/TestUtil.h
  6886. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6887. Bump up version number of dht.dat file to 3. In version 3 format, time
  6888. is stored in 64bit, network byte order.
  6889. New build can load old format(version 2) but it saves the file in new
  6890. format. It means once you used new build, your dht.dat becomes
  6891. incompatible with older build.
  6892. * src/DHTRoutingTableDeserializer.cc
  6893. * src/DHTRoutingTableSerializer.cc
  6894. * test/DHTRoutingTableSerializerTest.cc
  6895. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6896. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6897. * test/Makefile.am
  6898. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6899. Bump up version number of .aria2 control file to 0001.
  6900. New aria2 can still load version 0000 file but it saves the file in
  6901. version 0001 format. It means that new aria2 can resume download
  6902. started by old aria2 but the opposite is not true.
  6903. * src/DefaultBtProgressInfoFile.cc
  6904. * src/DefaultBtProgressInfoFile.h
  6905. * test/DefaultBtProgressInfoFileTest.cc
  6906. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. Added ntoh64 and hton64 as inline functions.
  6908. * src/Util.cc
  6909. * test/UtilTest.cc
  6910. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Added sqlite3 depenency and Firefox3 cookie support.
  6912. * README
  6913. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6914. State that firefox3 cookie is supported explicitly in the usage.
  6915. * src/usage_text.h
  6916. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Externalized message.
  6918. * src/RequestGroupMan.cc
  6919. * src/message.h
  6920. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6921. Save temporary file first and rename to the destination on success.
  6922. Added test cases.
  6923. * src/RequestGroupMan.cc
  6924. * test/RequestGroupManTest.cc
  6925. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6926. Fixed the bug that the number of connected peer is exceeding the limit
  6927. (55 by default) in seeding mode.
  6928. Multiplied 0.8 to _maxUploadSpeedLimit.
  6929. * src/ActivePeerConnectionCommand.cc
  6930. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6931. Clear table item.
  6932. * src/Dictionary.cc
  6933. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6934. Fixed error handling of lseek.
  6935. * src/AbstractDiskWriter.cc
  6936. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6938. style cookie file.
  6939. * src/usage_text.h
  6940. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6941. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6942. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6943. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6944. * src/Util.cc
  6945. * src/Util.h
  6946. * src/CookieParser.cc
  6947. * test/UtilTest.cc
  6948. * test/CookieParserTest.cc
  6949. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6950. Separate the implementation to load old mozilla format of cookie to
  6951. NsCookieParser class.
  6952. * src/CookieBoxFactory.cc
  6953. * src/CookieBoxFactory.h
  6954. * src/NsCookieParser.cc
  6955. * src/NsCookieParser.h
  6956. * test/NsCookieParserTest.cc
  6957. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6958. Made parse() const
  6959. * src/Sqlite3MozCookieParser.cc
  6960. * src/Sqlite3MozCookieParser.h
  6961. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6962. Added firefox3 cookie support based on the patch submitted by
  6963. tizianomueller.
  6964. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6965. this functionality.
  6966. * configure.ac
  6967. * m4/sqlite3.m4
  6968. * src/CookieBoxFactory.cc
  6969. * src/CookieBoxFactory.h
  6970. * src/Makefile.am
  6971. * src/Makefile.in
  6972. * src/Sqlite3MozCookieParser.cc
  6973. * src/Sqlite3MozCookieParser.h
  6974. * src/main.cc
  6975. * test/CookieBoxFactoryTest.cc
  6976. * test/Makefile.am
  6977. * test/Makefile.in
  6978. * test/Sqlite3MozCookieParserTest.cc
  6979. * test/badcookies.sqlite
  6980. * test/cookies.sqlite
  6981. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6982. Added Danish and Greek translations.
  6983. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6984. Great thanks to all translators.
  6985. * po/LINGUAS
  6986. * po/el.po
  6987. * po/da.po
  6988. * po/es.po
  6989. * po/ca.po
  6990. * po/nn.po
  6991. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. Fixed man page: --follow-bittorrent should be --follow-torrent
  6993. * doc/aria2c.1.txt
  6994. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6995. Fixed: numCommand is less than the value specified in -C option.
  6996. * src/RequestGroup.cc
  6997. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. Fixed occasional assertion failure in PieceSegment.
  6999. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7000. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7001. creation of duplicate segments and one of the segment was finished then
  7002. assertion failure was caused.
  7003. * src/SegmentMan.cc
  7004. * test/SegmentManTest.cc
  7005. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Added options to load/save the server's performance/status to a file
  7007. and the timeout to drop their data.
  7008. --server-stat-of=FILE specifies the file to which performance data
  7009. is saved.
  7010. --server-stat-if=FILE specifies the file to read previously saved
  7011. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7012. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7013. TIMEOUT is specified in seconds and the default value is 24hours.
  7014. * src/MultiUrlRequestInfo.cc
  7015. * src/OptionHandlerFactory.cc
  7016. * src/RequestGroupMan.cc
  7017. * src/RequestGroupMan.h
  7018. * src/ServerStatMan.cc
  7019. * src/ServerStatMan.h
  7020. * src/option_processing.cc
  7021. * src/prefs.cc
  7022. * src/prefs.h
  7023. * test/ServerStatManTest.cc
  7024. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7026. * src/ServerStatMan.cc
  7027. * src/ServerStatMan.h
  7028. * test/ServerStatManTest.cc
  7029. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7030. Implemented ServerStatMan::load(...) function and its test case.
  7031. * src/ServerStat.cc
  7032. * src/ServerStat.h
  7033. * src/ServerStatMan.cc
  7034. * test/ServerStatManTest.cc
  7035. * test/ServerStatTest.cc
  7036. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7037. Use time_t instead of int32_t. Use int64_t where milli second is
  7038. expected.
  7039. * src/TimeA2.cc
  7040. * src/TimeA2.h
  7041. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Implemented ServerStatMan::save(...) function and its test case.
  7043. * src/ServerStat.cc
  7044. * src/ServerStat.h
  7045. * src/ServerStatMan.cc
  7046. * src/ServerStatMan.h
  7047. * test/ServerStatManTest.cc
  7048. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7049. Now aria2 uses name attribute in Metalink as local filename in
  7050. BitTorrent downloads. BUG#2033999
  7051. * src/BtContext.h
  7052. * src/BtDependency.cc
  7053. * src/DefaultBtContext.cc
  7054. * src/DefaultBtContext.h
  7055. * src/SingleFileDownloadContext.cc
  7056. * src/SingleFileDownloadContext.h
  7057. * test/BtDependencyTest.cc
  7058. * test/DefaultBtContextTest.cc
  7059. * test/MockBtContext.h
  7060. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7061. Added AC_C_BIGENDIAN
  7062. * src/configure.ac
  7063. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7064. Limited numCommand less than or equal to the number of piece.
  7065. * src/RequestGroup.cc
  7066. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7068. directive.
  7069. * test/DefaultPieceStorageTest.cc
  7070. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Fixed memory leak in test code
  7072. * test/AnnounceListTest.cc
  7073. * test/DefaultPeerListProcessorTest.cc
  7074. * test/DefaultPeerStorageTest.cc
  7075. * test/MetaFileUtilTest.cc
  7076. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7077. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7078. * src/DefaultPieceStorage.cc
  7079. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7080. Initialized _directIOAllowed
  7081. * src/MultiDiskAdaptor.cc
  7082. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7083. Fixed memory leak
  7084. * src/GZipDecoder.cc
  7085. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. Fixed memory leak
  7087. * src/MetalinkParserStateMachine.cc
  7088. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Fixed memory leak
  7090. * src/Dictionary.cc
  7091. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7092. Fixed memory leak
  7093. * src/IteratableChunkChecksumValidator.h
  7094. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7095. Fixed unmatched malloc/free.
  7096. * src/IteratableChunkChecksumValidator.cc
  7097. * src/IteratableChecksumValidator.cc
  7098. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7099. Removed max chunk size check. This change fixes BUG#2040169
  7100. * src/ChunkedDecoder.cc
  7101. * src/ChunkedDecoder.h
  7102. * test/ChunkedDecoderTest.cc
  7103. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7104. Implemented download speed based URI selection algorithm.
  7105. Introduced new option --uri-selector.
  7106. If --uri-selector=feedback is given, aria2 uses download speed observed
  7107. in the previous downloads and chooses fastest server in the URI list.
  7108. Currently at most 10 URIs are considered to introduce randomeness for
  7109. finding better servers. The speed is average download speed in the
  7110. downloads.
  7111. On the other hand, if --uri-selector=inorder is given, which is default,
  7112. URI is tried in order in URI list.
  7113. The usage text for the new option has not been written yet.
  7114. * src/AbstractCommand.cc
  7115. * src/DownloadCommand.cc
  7116. * src/DownloadEngine.cc
  7117. * src/DownloadEngineFactory.cc
  7118. * src/InOrderURISelector.cc
  7119. * src/InOrderURISelector.h
  7120. * src/OptionHandlerFactory.cc
  7121. * src/PeerStat.h
  7122. * src/RequestGroup.cc
  7123. * src/RequestGroup.h
  7124. * src/RequestGroupMan.cc
  7125. * src/RequestGroupMan.h
  7126. * src/SegmentMan.cc
  7127. * src/SegmentMan.h
  7128. * src/ServerStat.cc
  7129. * src/ServerStat.h
  7130. * src/ServerStatMan.cc
  7131. * src/ServerStatMan.h
  7132. * src/ServerStatURISelector.cc
  7133. * src/ServerStatURISelector.h
  7134. * src/URISelector.h
  7135. * src/option_processing.cc
  7136. * src/prefs.cc
  7137. * src/prefs.h
  7138. * test/InOrderURISelectorTest.cc
  7139. * test/RequestGroupManTest.cc
  7140. * test/ServerStatManTest.cc
  7141. * test/ServerStatURISelectorTest.cc
  7142. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. * Release 0.15.1+2
  7144. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Bump up version number to 0.15.1+2
  7146. * configure.ac
  7147. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7149. * m4/aria2_arg.m4
  7150. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7151. * Release 0.15.1+1
  7152. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Bump up version number to 0.15.1+1
  7154. * configure.ac
  7155. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Fixed the bug that causes segmentaion fault when resuming download
  7157. using metalink without size tag. Reproducible only using HTTP URI.
  7158. * src/HttpResponseCommand.cc
  7159. * src/FtpNegotiationCommand.cc
  7160. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. * Release 0.15.1
  7162. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7163. Updated Bulgarian and French translations, thanks to all translators.
  7164. * po/bg.po
  7165. * po/fr.po
  7166. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Bump up version number to 0.15.1
  7168. * configure.ac
  7169. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7170. Avoid repeated call of gettimeofday() when calculating speed.
  7171. * src/SpeedCalc.cc
  7172. * src/SpeedCalc.h
  7173. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7174. Removed writable check when socket's send buffer is full in BitTorrent
  7175. downloads to lower CPU usage.
  7176. * src/PeerInteractionCommand.cc
  7177. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7178. Fixed broken gzip inflation.
  7179. Turn off segmented downloading if gzip content is smaller than or equal
  7180. to 1MiB and inflate the data on the fly, because HTTP response header
  7181. doesn't contain the length of inflated file we can't determin where
  7182. the chunk of data should be written.
  7183. On the other hand, if gzip content is larger than 1MB, then turn off
  7184. on the fly inflation, because some servers returns "content-type: gzip"
  7185. for *.tgz, *.gz files.
  7186. * src/DownloadCommand.cc
  7187. * src/HttpResponseCommand.cc
  7188. * src/HttpResponseCommand.h
  7189. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. Applied tizianomueller's patch to fix compile error.
  7191. * test/BitfieldManTest.cc
  7192. * test/BtRequestMessageTest.cc
  7193. * test/DefaultBtContextTest.cc
  7194. * test/DefaultDiskWriterTest.cc
  7195. * test/DefaultPieceStorageTest.cc
  7196. * test/HttpHeaderProcessorTest.cc
  7197. * test/HttpResponseTest.cc
  7198. * test/Metalink2RequestGroupTest.cc
  7199. * test/MetalinkParserControllerTest.cc
  7200. * test/MetalinkProcessorTest.cc
  7201. * test/PeerSessionResourceTest.cc
  7202. * test/UtilTest.cc
  7203. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. * Release 0.15.0
  7205. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. Reordered src files in POTFILES.in so that usage text appears first.
  7207. * po/POTFILES.in
  7208. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. Bump up version number to 0.15.0
  7210. * configure.ac
  7211. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7212. Added Bulgarian translation.
  7213. Updated Catalan, Spanish, French and Japanese translations.
  7214. Thanks to all translators.
  7215. * po/LINGUAS
  7216. * po/bg.po
  7217. * po/ca.po
  7218. * po/es.po
  7219. * po/fr.po
  7220. * po/ja.po
  7221. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Updated feature list. Added libz for dependency section.
  7223. Added a description about unit testing using CppUnit.
  7224. * README
  7225. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Added a test for libz. Quoted where it is necessary.
  7227. * build_test.sh
  7228. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. Added GZip to `Enabled Features' list.
  7230. * src/FeatureConfig.cc
  7231. * src/FeatureConfig.h
  7232. * test/FeatureConfigTest.cc
  7233. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7235. the transfer has not yet started.
  7236. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7237. * src/SegmentMan.cc
  7238. * src/SegmentMan.h
  7239. * test/SegmentManTest.cc
  7240. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7241. Cache last calculated average download/upload speed.
  7242. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7243. cached value.
  7244. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7245. * src/PeerStat.h
  7246. * src/SpeedCalc.cc
  7247. * src/SpeedCalc.h
  7248. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7249. Call parseUrl directly.
  7250. * src/Request.cc (resetUrl)
  7251. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7252. Supported absolute/relative path in Location header field.
  7253. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7254. * src/HttpHeader.cc
  7255. * src/HttpHeader.h
  7256. * src/HttpResponse.cc
  7257. * src/HttpSkipResponseCommand.cc
  7258. * src/Request.cc
  7259. * test/HttpHeaderTest.cc
  7260. * test/HttpResponseTest.cc
  7261. * test/RequestTest.cc
  7262. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7263. Changed help text for --load-cookie option.
  7264. * doc/aria2c.1.txt
  7265. * src/usage_text.h
  7266. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. Regenerated test/Makefile.in to remove stale ChangeLog.
  7268. * test/Makefile.in
  7269. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Updated po files.
  7271. * po/aria2c.pot
  7272. * po/*.po
  7273. * po/*.gmo
  7274. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7275. Bump up version number to 0.15.0b
  7276. * configure.ac
  7277. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7278. Externalize messages.
  7279. * src/RequestGroupMan.cc
  7280. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7281. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7282. Use File::exists() instead of File::isFile() to allow non-regular file
  7283. such as block special files.
  7284. * src/AbstractDiskWriter.cc
  7285. * src/MultiDiskWriter.cc
  7286. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7287. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7288. * src/gai_strerror.h
  7289. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7290. Fixed compile error. Thanks gknauf for the patch.
  7291. * src/asctime_r.c
  7292. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. Included asctime_r.h from a2time.h.
  7294. * src/a2time.h
  7295. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7296. Added a message "aria2 doesn't verify signature" to log message when
  7297. signature file is saved.
  7298. * src/RequestGroupMan.cc
  7299. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Added the ability to save signature when download is completed if
  7301. signature is available. The filename of signature file is the path to
  7302. download file followed by ".sig". If it already exists, then signature
  7303. will not be saved.
  7304. * src/RequestGroupMan.cc
  7305. * src/Signature.cc
  7306. * test/SignatureTest.cc
  7307. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Updated the descriptions for --bt-seed-unverified.
  7309. * doc/aria2c.1
  7310. * doc/aria2c.1.html
  7311. * doc/aria2c.1.txt
  7312. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7314. that this is not going to verify files using piece hashes.
  7315. * src/HelpItemFactory.cc
  7316. * src/OptionHandlerFactory.cc
  7317. * src/RequestGroup.cc
  7318. * src/option_processing.cc
  7319. * src/prefs.cc
  7320. * src/prefs.h
  7321. * src/usage_text.h
  7322. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. Added the ability to retrieve signature from Metalink file.
  7324. A retrieved signature is stored in Signature class and it is held by
  7325. DownloadContext class. Note that aria2 doesn't verify signature.
  7326. * src/DownloadContext.cc
  7327. * src/DownloadContext.h
  7328. * src/Makefile.am
  7329. * src/Makefile.in
  7330. * src/Metalink2RequestGroup.cc
  7331. * src/MetalinkEntry.cc
  7332. * src/MetalinkEntry.h
  7333. * src/MetalinkParserController.cc
  7334. * src/MetalinkParserController.h
  7335. * src/MetalinkParserStateMachine.cc
  7336. * src/MetalinkParserStateMachine.h
  7337. * src/Signature.cc
  7338. * src/Signature.h
  7339. * src/SignatureMetalinkParserState.cc
  7340. * src/SignatureMetalinkParserState.h
  7341. * src/VerificationMetalinkParserState.cc
  7342. * src/VerificationMetalinkParserState.h
  7343. * test/Metalink2RequestGroupTest.cc
  7344. * test/MetalinkParserControllerTest.cc
  7345. * test/MetalinkProcessorTest.cc
  7346. * test/test.xml
  7347. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Close DiskAdaptor after renaming file.
  7349. * src/RequestGroup.cc
  7350. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Corrected indentation
  7352. * src/DefaultBtProgressInfoFile.cc
  7353. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Moved the calls of std::ios::exceptions() inside of try-catch block
  7355. because if an error occurred in constructor of std::fstream, then
  7356. exception is thrown immediately when std::ios::exceptions() is called
  7357. which results unhandled exception and aria2c aborts.
  7358. * src/DefaultBtProgressInfoFile.cc
  7359. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7360. Added the test for the previous change in DefaultBtContext.cc
  7361. * test/DefaultBtContextTest.cc
  7362. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Fixed the bug that causes infinite loop when the number of pieces are
  7364. fewer than allowed fast set size which is 10 by default.
  7365. * src/DefaultBtContext.cc
  7366. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Updated the descriptions for -j, -s. Added --bt-seed.
  7368. * doc/aria2c.1
  7369. * doc/aria2c.1.html
  7370. * doc/aria2c.1.txt
  7371. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7372. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7373. aria2 seeds previously downloaded files without validating piece hashs.
  7374. * src/HelpItemFactory.cc
  7375. * src/OptionHandlerFactory.cc
  7376. * src/RequestGroup.cc
  7377. * src/option_processing.cc
  7378. * src/prefs.cc
  7379. * src/prefs.h
  7380. * src/usage_text.h
  7381. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7382. Updated DESCRIPTION of man page.
  7383. * doc/aria2c.1
  7384. * doc/aria2c.1.html
  7385. * doc/aria2c.1.txt
  7386. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7388. Don't define `struct addrinfo' when __sun is defined.
  7389. * src/getaddrinfo.h
  7390. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7392. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7393. second argument is of type `struct _stati64'. Otherwise it is defined as
  7394. `struct stat'.
  7395. * src/AbstractDiskWriter.cc
  7396. * src/File.cc
  7397. * src/File.h
  7398. * src/a2io.h
  7399. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7400. Fixed the compile error in hurd-i386
  7401. See the original bug report:
  7402. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7403. * src/a2io.h
  7404. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. Code cleanup.
  7406. * src/PeerAbstractCommand.cc
  7407. * src/PeerAbstractCommand.h
  7408. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. Removed TransferEncoding.
  7410. * src/DownloadCommand.cc
  7411. * src/DownloadCommand.h
  7412. * src/HttpResponseCommand.cc
  7413. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Updated po files.
  7415. * po/aria2c.pot
  7416. * po/*.po
  7417. * po/*.gmo
  7418. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7419. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7420. * src/A2STR.cc
  7421. * src/A2STR.h
  7422. * src/ChunkedDecoder.cc
  7423. * src/ChunkedDecoder.h
  7424. * src/ChunkedEncoding.cc: Removed
  7425. * src/ChunkedEncoding.h: Removed
  7426. * src/DownloadCommand.cc
  7427. * src/DownloadCommand.h
  7428. * src/HttpDownloadCommand.cc
  7429. * src/HttpResponse.cc
  7430. * src/HttpResponse.h
  7431. * src/HttpResponseCommand.cc
  7432. * src/HttpSkipResponseCommand.cc
  7433. * src/HttpSkipResponseCommand.h
  7434. * src/Makefile.am
  7435. * src/TransferEncoding.h: Removed
  7436. * test/ChunkedDecoderTest.cc
  7437. * test/ChunkedEncodingTest.cc: Removed
  7438. * test/HttpResponseTest.cc
  7439. * test/Makefile.am
  7440. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. Use append instead of insert.
  7442. * src/GZipDecoder.cc
  7443. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Updated doc
  7445. * src/Decoder.h
  7446. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7447. Updated usage text for -s option.
  7448. * src/usage_text.h
  7449. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7451. * src/Request.cc
  7452. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7453. Cleaned up configure.ac.
  7454. * configure.ac
  7455. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7456. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7457. AC_ARG_ENABLE.
  7458. * configure.ac
  7459. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7461. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7462. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7463. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7464. fly and writes decoded data to a local disk.
  7465. * README
  7466. * README.html
  7467. * configure.ac
  7468. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7469. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7470. * m4/libz.m4
  7471. * src/Decoder.h
  7472. * src/DownloadCommand.cc
  7473. * src/DownloadCommand.h
  7474. * src/Exception.h
  7475. * src/GZipDecoder.cc
  7476. * src/GZipDecoder.h
  7477. * src/HttpHeader.cc
  7478. * src/HttpHeader.h
  7479. * src/HttpRequest.cc
  7480. * src/HttpRequest.h
  7481. * src/HttpResponse.cc
  7482. * src/HttpResponse.h
  7483. * src/HttpResponseCommand.cc
  7484. * src/Makefile.am
  7485. * test/GZipDecoderTest.cc
  7486. * test/HttpRequestTest.cc
  7487. * test/HttpResponseTest.cc
  7488. * test/Makefile.am
  7489. * test/Makefile.in
  7490. * test/gzip_decode_test.gz
  7491. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7492. Clarified usage of -j option.
  7493. * src/usage_text.h
  7494. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. Disabled getting size from the response of RETR.
  7496. If SIZE command failed, then disable resuming and segmented downloading.
  7497. * src/FtpConnection.cc
  7498. * src/FtpConnection.h
  7499. * src/FtpNegotiationCommand.cc
  7500. * src/FtpNegotiationCommand.h
  7501. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7502. Use digits to find first byte of file size, which makes the intention
  7503. of the code clearer.
  7504. * src/FtpConnection.cc
  7505. Don't call validateTotalLength() when size is 0.
  7506. * src/FtpNegotiationCommand.cc
  7507. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Updated po files.
  7509. * po/aria2c.pot
  7510. * po/*.gmo
  7511. * po/*.po
  7512. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. Clarified usage text for --split option.
  7514. * src/usage_text.h
  7515. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7516. Bump up version number to 0.15.0dev. "dev" means "development"
  7517. version, which means I started the development of the next release!
  7518. * src/configure.ac
  7519. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7520. If FTP server returns negative response with REST raw command and
  7521. requested range is not 0, throw exception. If requested range is 0,
  7522. continue download a file from 0 byte.
  7523. * src/FtpNegotiationCommand.cc
  7524. * src/FtpNegotiationCommand.h
  7525. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7526. Supported FTP server which don't recognize SIZE raw command.
  7527. If SIZE raw command is failed, aria2 will try to get file size
  7528. from the response of RETR raw command. If both attempts are failed,
  7529. then resuming and segmented downloading are disabled.
  7530. * src/FtpConnection.cc
  7531. * src/FtpConnection.h
  7532. * src/FtpNegotiationCommand.cc
  7533. * src/FtpNegotiationCommand.h
  7534. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. * Release 0.14.0+1
  7536. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. Bump up version number to 0.14.0+1
  7538. * src/configure.ac
  7539. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Fixed the code that refers static member variable from non-static
  7541. context.
  7542. * src/DefaultPeerStorage.cc
  7543. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. * Release 0.14.0
  7545. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7546. Added build test script
  7547. * build_test.sh
  7548. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7549. Updated ja.po
  7550. * src/ja.po
  7551. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7552. Bump up version number to 0.14.0
  7553. * src/configure.ac
  7554. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7555. Updated ja.po and fr.po. Great thanks for french translators and
  7556. Sebastien WILLEMIJNS.
  7557. * po/fr.po
  7558. * po/ja.po
  7559. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. Added configure option to enable/disable epoll support.
  7561. * configure.ac
  7562. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7563. Updated man page.
  7564. * doc/aria2c.1.txt
  7565. * doc/aria2c.1
  7566. * doc/aria2c.1.html
  7567. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7568. Added missing default value '5' to the usage of --split option.
  7569. * src/HelpItemFactory.cc
  7570. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Filled up pieces based on the number of missing blocks, rather than
  7572. simplay the number of piece * block length.
  7573. * src/BtRequestFactory.h
  7574. * src/DefaultBtInteractive.cc
  7575. * src/DefaultBtInteractive.h
  7576. * src/DefaultBtRequestFactory.cc
  7577. * src/DefaultBtRequestFactory.h
  7578. * src/Piece.cc
  7579. * src/Piece.h
  7580. * test/BitfieldManTest.cc
  7581. * test/DefaultBtRequestFactoryTest.cc
  7582. * test/MockBtRequestFactory.h
  7583. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7584. Made _epEvents a member variable.
  7585. * src/DownloadEngine.cc
  7586. * src/DownloadEngine.h
  7587. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7588. Cancel download if http redirect is bounded more than 20 times.
  7589. * src/AbstractCommand.cc
  7590. * src/HttpSkipResponseCommand.cc
  7591. * src/Request.cc
  7592. * src/Request.h
  7593. * test/RequestTest.cc
  7594. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. Fixed unhandled exception(removed keyword `new').
  7596. * src/SocketCore.cc (initEPOLL)
  7597. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Removed visit(const MetaEntry*)
  7599. * src/MetaEntryVisitor.h:
  7600. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7601. and made them virtual.
  7602. * src/BencodeVisitor.h
  7603. * src/BencodeVisitor.cc
  7604. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Updated po files.
  7606. * po/aria2c.pot
  7607. * po/*.po
  7608. * po/*.gmo
  7609. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7611. the number of socket to watch out.
  7612. * src/PeerInteractionCommand.cc
  7613. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. When there is not enough space in disk when writing a chunk of data,
  7615. aria2 now prints the message to the console to warn user and aborts
  7616. its download. Not all downloads are canceled because some downloads
  7617. may use another disk or partition. BUG#1640332
  7618. * src/AbstractDiskWriter.cc
  7619. * src/PeerAbstractCommand.cc
  7620. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7621. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7622. setHaltRequested(true) to cancel download.
  7623. * src/PeerInteractionCommand.h
  7624. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7626. socket from int to sock_t as sockets are unsigned in Windows.
  7627. For AsyncNameResolver, DownloadEngine, I did additional modification
  7628. for the portion of the code changed according to epoll support.
  7629. I defined sock_t in a2netcompat.h to use sock_t without including
  7630. SocketCore.h.
  7631. * src/AsyncNameResolver.cc
  7632. * src/AsyncNameResolver.h
  7633. * src/DownloadEngine.cc
  7634. * src/DownloadEngine.h
  7635. * src/SocketCore.cc
  7636. * src/SocketCore.h
  7637. * src/a2netcompat.h
  7638. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7639. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7640. changes in the patch were applied.
  7641. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7642. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7643. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7644. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7645. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7646. a2io.h and common.h were modified.
  7647. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7648. MinGW.
  7649. * src/common.h: Changed off_t to 64 bit in MinGW.
  7650. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7652. only a2netcompat.h is modified.
  7653. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7654. directives.
  7655. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7656. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7657. only gai_strerror.h is modified.
  7658. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7659. winsock errors in MinGW.
  7660. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7662. follow sources are applied.
  7663. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7664. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7665. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7666. I included locale.h from Platform.cc.
  7667. * src/main.cc: Moved common setup/teardown code to Platform class.
  7668. * test/AllTest.cc: Use Platform class.
  7669. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7670. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7672. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7673. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7674. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7675. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7676. aria2-0.13.2+1-mingw-2.patch.
  7677. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7678. systems which don't have termious.h. I moved the directive inside of
  7679. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7680. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7681. anyway.
  7682. * src/asctime_r.h
  7683. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7684. I added 2nd argument to the prototype declaration.
  7685. * src/StringFormat.cc: Get rid of vasprintf.
  7686. * src/getaddrinfo.h: Fixed constants.
  7687. * configure.ac: Added the check for asctime_r function.
  7688. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7689. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7690. Added writable test for Socket when the sending message is in progress.
  7691. Usually the sending message is piece message. Without wriable check,
  7692. upload latency is dropped to more than 1sec.
  7693. * src/PeerInteractionCommand.cc
  7694. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7695. Create only requested files and files which shares a piece with
  7696. requested file in multi-torrent downloads. Directory structures are
  7697. also created in the same rule.
  7698. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7699. DiskWriterEntry as in the previous implementation.
  7700. * src/MultiDiskWriter.cc
  7701. * src/MultiFileAllocationIterator.cc
  7702. * src/MultiFileAllocationIterator.h
  7703. * test/MultiFileAllocationIteratorTest.cc
  7704. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7705. Commented out -lprofiler
  7706. * src/Makefile.am
  7707. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Bump up version number to 0.14.0b.
  7709. * src/configure.ac
  7710. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Actively establish connection to peers in seeding, when peer cache
  7712. is not full and max upload speed limit is not reached.
  7713. * src/ActivePeerConnectionCommand.cc
  7714. * src/ActivePeerConnectionCommand.h
  7715. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7717. to make room more fleshy, recently found peers.
  7718. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7719. it.
  7720. * src/DefaultPeerStorage.cc
  7721. * test/DefaultPeerStorageTest.cc
  7722. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. Returns cached data only when the previous receiveHandshake() is called
  7724. with peek = true.
  7725. * src/PeerConnection.cc (receiveHandshake)
  7726. * src/PeerConnection.h (receiveHandshake)
  7727. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Changed default value of -s option from 1 to 5.
  7729. Also max value of -s option is changed from 5 to 16.
  7730. * src/HelpItemFactory.cc
  7731. * src/OptionHandlerFactory.cc
  7732. * src/option_processing.cc
  7733. * src/usage_text.h
  7734. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Changed -s options behavior. Now it means the number of connections
  7736. made simultaneously in each http/ftp download.
  7737. If 1 URL is specified, the behavior is the same with old implementation.
  7738. If -s N is given and more than N URLs are specified, first N URLs are
  7739. used and remaining URLs are used for backup. If less than N URLs are
  7740. specified, some of URLs are used more than once so that totally N
  7741. connections are made simultaneously.
  7742. * src/main.cc
  7743. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7744. Included missing iosfwd or ostream header.
  7745. * src/RequestGroupMan.cc
  7746. * src/TaggedItem.cc
  7747. * src/TaggedItem.h
  7748. * src/Util.cc
  7749. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7750. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7751. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7752. * src/HttpConnection.cc: Included missing sstream.
  7753. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7754. Added --bt-max-open-files option.
  7755. * src/DefaultPieceStorage.cc
  7756. * src/HelpItemFactory.cc
  7757. * src/MultiDiskAdaptor.cc
  7758. * src/MultiDiskAdaptor.h
  7759. * src/OptionHandlerFactory.cc
  7760. * src/option_processing.cc
  7761. * src/prefs.cc
  7762. * src/prefs.h
  7763. * src/usage_text.h
  7764. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7765. Fixed the bug that aria2 aborts when a path to a directory is given
  7766. in command-line.
  7767. * src/ProtocolDetector.cc
  7768. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7769. Limited the number files opened in each BitTorrent download. The default
  7770. value is 100. The option to change this value will be added.
  7771. * src/MultiDiskAdaptor.cc
  7772. * src/MultiDiskAdaptor.h
  7773. * src/MultiFileAllocationIterator.cc
  7774. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Fixed the bug that HTTP downloads don't start with old libraries.
  7776. * src/HttpHeaderProcessor.cc
  7777. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7778. Use empty() instead of size() > 0.
  7779. * src/HttpConnection.cc
  7780. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. Drop connection if the incoming peer ID is the same with localhost's
  7782. one. The previous implementation drops connection when incoming peer's
  7783. IP address is the same with localhost's one.
  7784. * src/PeerListenCommand.cc
  7785. * src/DefaultBtInteractive.cc
  7786. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Returns cached data without checking whether socket is readable
  7788. if the cache is available.
  7789. * src/PeerConnection.cc (receiveHandshake)
  7790. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Included stdint.h
  7792. * src/common.h
  7793. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7794. Removed duplicate HAVE_GETTIMEOFDAY
  7795. * src/Makefile.am
  7796. * src/Makefile.in
  7797. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Use interval as a minInterval when minInterval is not supplied.
  7799. * src/DefaultBtAnnounce.cc
  7800. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7801. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7802. attempt is failed, then 2nd attempt get kicked out more quickly.
  7803. And it is now static const member of DefaultBtAnnounce.
  7804. * src/DefaultBtAnnounce.h
  7805. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7807. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7808. * src/ActivePeerConnectionCommand.cc
  7809. * src/BtConstants.h
  7810. * src/BtRuntime.h
  7811. * src/DHTGetPeersCommand.cc
  7812. * src/DefaultBtAnnounce.cc
  7813. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7814. BtRuntime::MAX_PEERS.
  7815. * src/DefaultPeerStorage.h
  7816. * src/InitiatorMSEHandshakeCommand.cc
  7817. * src/PeerInitiateConnectionCommand.cc
  7818. * src/PeerInteractionCommand.cc
  7819. * src/PeerReceiveHandshakeCommand.cc
  7820. * src/TrackerWatcherCommand.cc
  7821. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7822. Always Connect to _numNewConnection
  7823. * src/ActivePeerConnectionCommand.cc
  7824. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7825. Made `begin' unsigned int.
  7826. * src/GrowSegment.h
  7827. * src/Piece.cc
  7828. * src/Piece.h
  7829. * src/PiecedSegment.cc
  7830. * src/PiecedSegment.h
  7831. * src/Segment.h
  7832. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Calculate piece hash when data is arrived if the data is arrived in
  7834. order. This removes additional read operation for hash calculation.
  7835. If the data is arrived in out of order, the hash is calucated when the
  7836. piece is completed. This is the same behavior as the old implementation.
  7837. * src/BtPieceMessage.cc
  7838. * src/DefaultBtProgressInfoFile.cc
  7839. * src/DefaultPieceStorage.cc
  7840. * src/DownloadCommand.cc
  7841. * src/DownloadCommand.h
  7842. * src/DownloadEngine.cc
  7843. * src/GrowSegment.cc
  7844. * src/GrowSegment.h
  7845. * src/Piece.cc
  7846. * src/Piece.h
  7847. * src/PiecedSegment.cc
  7848. * src/PiecedSegment.h
  7849. * src/Segment.h
  7850. * test/PieceTest.cc
  7851. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Try to keep the ordering of outgoing piece message.
  7853. * src/DefaultBtMessageDispatcher.cc
  7854. (DefaultBtMessageDispatcher::sendMessages)
  7855. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Fixed busy loop when error/hup epoll events occur.
  7857. * src/AbstractCommand.cc
  7858. * src/PeerAbstractCommand.cc
  7859. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Added --bt-request-peer-speed-limit option, which was a constant
  7861. SLOW_SPEED_THRESHOLD.
  7862. * src/ActivePeerConnectionCommand.cc
  7863. * src/ActivePeerConnectionCommand.h
  7864. * src/BtConstants.h
  7865. * src/HelpItemFactory.cc
  7866. * src/OptionHandlerFactory.cc
  7867. * src/PeerReceiveHandshakeCommand.cc
  7868. * src/option_processing.cc
  7869. * src/prefs.cc
  7870. * src/prefs.h
  7871. * src/usage_text.h
  7872. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7873. Removed repeated call of getTopDirPath(). Instead, call it once and
  7874. cache the result.
  7875. * src/MultiDiskAdaptor.cc
  7876. * src/MultiDiskAdaptor.h
  7877. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7878. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7879. Fixed compile error on debian etch.
  7880. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7881. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7882. it is undefined.
  7883. * src/Util.cc (ULLONG_MAX)
  7884. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7885. Added epoll support. Use epoll if it is available. If not, use select.
  7886. When async dns is enabled in compile time, epoll support is enabled
  7887. only when aria2 is built with c-ares. This condition statement is
  7888. defined in a2io.h.
  7889. Currently aria2 supports both c-ares and ares, but ares is maintained
  7890. for quite a while and debian already has c-ares package, ares support
  7891. will be dropped in the future version.
  7892. * configure.ac
  7893. * src/AbstractCommand.cc
  7894. * src/AsyncNameResolver.cc
  7895. * src/AsyncNameResolver.h
  7896. * src/Command.cc
  7897. * src/Command.h
  7898. * src/DownloadEngine.cc
  7899. * src/DownloadEngine.h
  7900. * src/PeerAbstractCommand.cc
  7901. * src/SocketCore.cc
  7902. * src/SocketCore.h
  7903. * src/a2io.h
  7904. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7905. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7906. directive.
  7907. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Do not do write operation to /dev/null file.
  7909. * src/LogFactory.cc
  7910. * src/SimpleLogger.cc
  7911. Replaced vasprintf with vsnprintf
  7912. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7913. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. * src/BtRequestMessage.cc
  7915. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7916. for segmentation fault caused by previous commit.
  7917. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7918. Reduced the usage of gettimeofday().
  7919. * src/DefaultBtMessageDispatcher.cc
  7920. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7921. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7922. * src/RequestSlot.cc
  7923. * src/RequestSlot.h
  7924. (RequestSlot::isTimeout)
  7925. Made RequestSlot have a reference to Piece object to avoid find
  7926. Piece repeatedly.
  7927. * src/DefaultBtMessageDispatcher.cc
  7928. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7929. * src/RequestSlot.cc
  7930. * src/RequestSlot.h
  7931. (RequestSlot::getPiece)
  7932. * test/DefaultBtMessageDispatcherTest.cc
  7933. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. * src/TimeA2.cc
  7935. * src/TimeA2.h
  7936. (Time::difference): New function.
  7937. (Time::elapsed): Done optimization.
  7938. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7939. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7940. directive.
  7941. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. * src/option_processing.cc: Added missing `defined' keyword to #if
  7943. directive.
  7944. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7945. Bump up version number to 0.13.2+1
  7946. * src/configure.ac
  7947. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Refactored broken outstanding piece handling.
  7949. * src/DefaultPieceStorage.cc
  7950. * src/DefaultPieceStorage.h
  7951. * src/Piece.cc
  7952. * src/Piece.h
  7953. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7954. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7955. name collision of static variable and predefined macro.
  7956. * src/BtContext.cc
  7957. * src/BtContext.h
  7958. * src/CookieBoxFactory.cc
  7959. * src/CookieBoxFactory.h
  7960. * src/CookieParser.cc
  7961. * src/CookieParser.h
  7962. * src/DefaultBtContext.cc
  7963. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7964. * src/RequestGroup.cc
  7965. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7966. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7967. * Release 0.13.2
  7968. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7969. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7970. * po/fr.po
  7971. * po/ja.po
  7972. * po/aria2c.pot
  7973. * po/*.po
  7974. * po/*.gmo
  7975. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7976. Bump up version number to 0.13.2
  7977. * src/configure.ac
  7978. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7979. Refactord.
  7980. * src/RequestGroupMan.cc
  7981. (removeStoppedGroup)
  7982. (fillRequestGroupFromReserver)
  7983. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7984. Fixed compile error on Ubuntu.
  7985. * src/BtPieceMessage.cc
  7986. * src/MessageDigestHelper.cc
  7987. * src/Util.cc
  7988. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7989. Fixed compile error when configured with --disable-bittorrent
  7990. * test/DownloadHandlerFactoryTest.cc
  7991. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7992. Done make update-po
  7993. * po/aria2c.pot
  7994. * po/*.po
  7995. * po/*.gmo
  7996. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7997. Bump up version number to 0.13.2rc.
  7998. * src/configure.ac
  7999. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. Made option name bold. Updated SYNOPSIS to make it more readable.
  8001. * doc/aria2c.1.txt
  8002. * doc/aria2c.1
  8003. * doc/aria2c.1.html
  8004. * src/version_usage.cc
  8005. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Refactored. Use std::string instead of size and char*.
  8007. * Data.cc
  8008. * Data.h
  8009. * test/Data.cc
  8010. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. Added trimSelf(). Rewritten trim() to use trimSelf().
  8012. * Util.cc
  8013. * Util.h
  8014. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8016. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Fixed compile error when configured with --disable-metalink.
  8018. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8019. * test/FeatureConfigTest.cc
  8020. * test/DownloadHandlerFactoryTest.cc
  8021. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8022. Fixed compile error when configured with --without-gnutls
  8023. --without-openssl
  8024. * src/main.cc
  8025. * test/DefaultBtProgressInfoFileTest.cc
  8026. * test/SegmentManTest.cc
  8027. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8028. Fixed compile error with OpenSSL.
  8029. * src/IteratableChunkChecksumValidator.cc
  8030. * src/LibsslDHKeyExchange.h
  8031. * src/MessageDigestHelper.cc
  8032. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8033. Revert the default value of --max-concurrent-downloads to 5.
  8034. Revert the default value of --metalink-servers to 5.
  8035. Man pages was also updated.
  8036. * src/option_processing.cc
  8037. * doc/aria2c.1.txt
  8038. * doc/aria2c.1.html
  8039. * doc/aria2c.1
  8040. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Returns const reference:
  8042. DownloadContext::getPieceHash, DownloadContext::getName,
  8043. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8044. BtContext::getInfoHashAsString,
  8045. * src/BtContext.h
  8046. * src/DefaultBtContext.cc
  8047. * src/DefaultBtContext.h
  8048. * src/DownloadContext.h
  8049. * src/SingleFileDownloadContext.h
  8050. * test/MockBtContext.h
  8051. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. * src/RequestGroup.h (getDir): Removed.
  8053. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8054. Returns const reference. The internal urlencode function was optimized
  8055. a little bit.
  8056. * src/Request.cc
  8057. * src/Request.h
  8058. * src/HttpRequest.cc
  8059. * src/HttpRequest.h
  8060. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Defined option name and possible values as std::string to reduce
  8062. temporary string object creation in runtime.
  8063. * src/HelpItemFactory.cc
  8064. * src/LogFactory.cc
  8065. * src/Option.cc
  8066. * src/OptionHandlerFactory.cc
  8067. * src/option_processing.cc
  8068. * src/prefs.cc
  8069. * src/prefs.h
  8070. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8071. Return const reference.
  8072. * src/DownloadHandlerConstants.cc
  8073. * src/DownloadHandlerConstants.h
  8074. (getMetalinkExtensions)
  8075. (getMetalinkContentTypes)
  8076. (getBtExtensions)
  8077. (getBtContentTypes)
  8078. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. * src/HttpHeader.cc (get): Rewritten.
  8080. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8081. Make HttpHeader::getFirst(...) return const reference.
  8082. * src/HttpHeader.cc
  8083. * src/HttpHeader.h
  8084. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8086. it with V_TRUE.
  8087. * src/DefaultPieceStorage.cc
  8088. * src/DownloadCommand.cc
  8089. * src/FtpNegotiationCommand.cc
  8090. * src/HttpRequest.cc
  8091. * src/InitiateConnectionCommand.cc
  8092. * src/RequestGroup.cc
  8093. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. Made Option::get(...) return const reference of std::string.
  8095. * src/Option.cc
  8096. * src/Option.h
  8097. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. Replaced std:copy with insert.
  8099. * src/DefaultBtMessageDispatcher.cc
  8100. * src/DefaultPieceStorage.cc
  8101. * src/DownloadEngineFactory.cc
  8102. * src/RequestGroup.cc
  8103. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Included SocketCore.h to fix compiler warning.
  8105. * src/InitiateConnectionCommand.cc
  8106. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8107. Put piece selection strategy algorithm to RarestPieceSelector class,
  8108. Added a switch to choose whether randomized selection so that unit
  8109. tests emit same results in, possibly, win32.
  8110. * src/DefaultPieceStorage.cc
  8111. * src/DefaultPieceStorage.h
  8112. * src/RarestPieceSelector.cc
  8113. * src/RarestPieceSelector.h
  8114. * test/DefaultPieceStorageTest.cc
  8115. * test/RarestPieceSelectorTest.cc
  8116. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. Don't pool connection if HTTP proxy is enabled.
  8118. * src/FtpFinishDownloadCommand.cc
  8119. * src/FtpNegotiationCommand.cc
  8120. * src/HttpSkipResponseCommand.cc
  8121. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8123. * src/AbstractCommand.cc
  8124. * src/AbstractCommand.h
  8125. * src/ActivePeerConnectionCommand.cc
  8126. * src/FtpInitiateConnectionCommand.cc
  8127. * src/HttpInitiateConnectionCommand.cc
  8128. * src/InitiateConnectionCommandFactory.cc
  8129. * src/PeerAbstractCommand.cc
  8130. * src/PeerAbstractCommand.h
  8131. * src/PeerInitiateConnectionCommand.cc
  8132. * src/TrackerWatcherCommand.cc
  8133. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8134. Sort RequestSlot in ascending order and manipulate them using
  8135. lower_bound.
  8136. * src/DefaultBtMessageDispatcher.cc
  8137. * src/DefaultBtMessageDispatcher.h
  8138. (getMessageQueue): Added const qualifier.
  8139. (getRequestSlots): Added const qualifier.
  8140. (sendMessages): Use empty() instead of size().
  8141. (doCancelSendingPieceAction): Use HandleEvent object.
  8142. (doAbortOutstandingRequestAction): Rewritten.
  8143. (doChokedAction): Rewritten.
  8144. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8145. (isOutstandingRequest): Rewritten.
  8146. (getOutstandingRequest): Rewritten.
  8147. (removeOutstandingRequest): Rewritten.
  8148. (addOutstandingRequest): Rewritten.
  8149. * src/RequestSlot.cc
  8150. * src/RequestSlot.h
  8151. (operator=): Rewritten.
  8152. (operator!=): New function.
  8153. (operator<): New function.
  8154. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8155. * src/DefaultBtRequestFactory.cc
  8156. (doChokedAction): Rewritten.
  8157. (removeCompletedPiece): Rewritten.
  8158. (removeTargetPiece): Rewritten.
  8159. (createRequestMessages): Added the debug log.
  8160. (createRequestMessagesOnEndGame: Added the debug log.
  8161. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. Added the debug log message.
  8163. * src/BtPieceMessage.cc (doReceivedAction)
  8164. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8166. used lower_bound to process them rather than linear search.
  8167. * src/DHTPeerAnnounceStorage.cc
  8168. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8169. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8170. peer has at least one completed piece.
  8171. * src/Peer.cc
  8172. * src/Peer.h
  8173. * src/PeerInteractionCommand.cc
  8174. * src/PeerSessionResource.cc
  8175. * src/PeerSessionResource.h
  8176. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8177. Removed unnecessary sorting
  8178. * src/DefaultPieceStorage (DefaultPieceStorage)
  8179. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8180. Rewritten the portion of the code that mangaes allowed fast indexes.
  8181. * src/PeerSessionResource.cc
  8182. * src/PeerSessionResource.h
  8183. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8184. Removed the invalid string including '\r' from ru.po and
  8185. did make update-po.
  8186. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Added --log-level and --summary-interval to man page.
  8188. * doc/aria2c.1.txt
  8189. * doc/aria2c.1.html
  8190. * doc/aria2c.1
  8191. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8192. Added --log-level option to specify log level. Log messages under
  8193. the specified level are not output. Default value is `debug'.
  8194. * src/HelpItemFactory.cc
  8195. * src/LogFactory.cc
  8196. * src/LogFactory.h
  8197. * src/Logger.h
  8198. * src/OptionHandlerFactory.cc
  8199. * src/SimpleLogger.cc
  8200. * src/SimpleLogger.h
  8201. * src/main.cc
  8202. * src/option_processing.cc
  8203. * src/prefs.h
  8204. * src/usage_text.h
  8205. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8206. Print download progress summary of all parallel downloads in specified
  8207. interval, default 60 secs. While aria2 could download several files
  8208. in parallel (see -j option), it displayed just first download progress,
  8209. and the other downloads are hidden from the users. This new feature
  8210. prints all downloads currently in-progress to the console so that you
  8211. can check the status of all downloads. The interval can be adjusted
  8212. by --summary-interval option.
  8213. The progress readout is now cut so that all fits in the one line of
  8214. console.
  8215. * src/ConsoleStatCalc.cc
  8216. * src/ConsoleStatCalc.h
  8217. * src/HelpItemFactory.cc
  8218. * src/OptionHandlerFactory.cc
  8219. * src/RequestGroupMan.cc
  8220. * src/RequestGroupMan.h
  8221. * src/main.cc
  8222. * src/option_processing.cc
  8223. * src/prefs.h
  8224. * src/usage_text.h
  8225. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8227. * src/DownloadEngine.cc (DownloadEngine)
  8228. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8230. defined.
  8231. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8232. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Use erase+lower_bound+insert instead of sort.
  8234. * src/DefaultPieceStorage.cc (addPieceStats)
  8235. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8236. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8237. * src/A2STR.cc
  8238. * src/A2STR.h
  8239. * src/OptionParser.cc (parse)
  8240. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8241. Defined fake filename `[tracker.announce]' as static const std::string.
  8242. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8243. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8244. Defined default filename `index.html' as static const std::string
  8245. * src/SingleFileDownloadContext.cc
  8246. * src/SingleFileDownloadContext.h
  8247. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Defined "[MEMORY]" as static const std::string.
  8249. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8250. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Defined control file's version number as static const std::string.
  8252. * src/DefaultBtProgressInfoFile.cc
  8253. * src/DefaultBtProgressInfoFile.h
  8254. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8255. Use Request::METHOD_GET
  8256. * src/RequestGroup.cc (createNextCommandWithAdj)
  8257. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8258. Defined "OK", "ERR", "INPR" as static const std::string
  8259. * src/RequestGroupMan.cc (showDownloadResults)
  8260. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8261. Defined default client used in extended handshake as static const
  8262. std::string
  8263. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8264. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8265. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8266. * src/HttpConnection.cc (eraseConfidentialInfo)
  8267. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8268. Defined default ftp user and password as static const std::string
  8269. * src/AuthConfigFactory.cc
  8270. * src/AuthConfigFactory.h
  8271. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8272. Defined strings used in netrc as static const std::string
  8273. * src/Netrc.cc
  8274. * src/Netrc.h
  8275. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8276. Defined HTTP status as static const std::string
  8277. * src/AbstractProxyResponseCommand.cc
  8278. * src/HttpHeader.cc
  8279. * src/HttpHeader.h
  8280. * src/HttpResponse.cc
  8281. * src/HttpResponseCommand.cc
  8282. * src/HttpSkipResponseCommand.cc
  8283. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8284. Defined "\r\n", "A", "I" as static const std::string
  8285. * src/A2STR.cc
  8286. * src/A2STR.h
  8287. * src/FtpConnection.cc
  8288. * src/FtpConnection.h
  8289. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Added COLON_C(".") and used it in Request::parseUrl()
  8291. * src/A2STR.cc
  8292. * src/A2STR.h
  8293. * src/Request.cc (parseUrl)
  8294. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8295. Changed the type of padName from `const std::string&' to `const char*'.
  8296. * src/MSEHandshake.cc (verifyPadLength)
  8297. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. Defined "sha1" as static const std::string.
  8299. * src/MetalinkParserController.cc
  8300. * src/MetalinkParserController.h
  8301. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Defined message digest algorithm name as static const std::string
  8303. * src/DHTTokenTracker.cc
  8304. * src/DHTUtil.cc
  8305. * src/DefaultBtContext.cc
  8306. * src/MSEHandshake.cc
  8307. * src/MessageDigestHelper.cc
  8308. * src/Peer.cc
  8309. * src/messageDigest.cc
  8310. * src/messageDigest.h
  8311. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. Made string literals used in SAX parser static const std::string.
  8313. * src/FileMetalinkParserState.cc
  8314. * src/FileMetalinkParserState.h
  8315. * src/FilesMetalinkParserState.cc
  8316. * src/FilesMetalinkParserState.h
  8317. * src/InitialMetalinkParserState.cc
  8318. * src/InitialMetalinkParserState.h
  8319. * src/MetalinkMetalinkParserState.cc
  8320. * src/MetalinkMetalinkParserState.h
  8321. * src/PiecesMetalinkParserState.cc
  8322. * src/PiecesMetalinkParserState.h
  8323. * src/ResourcesMetalinkParserState.cc
  8324. * src/ResourcesMetalinkParserState.h
  8325. * src/VerificationMetalinkParserState.cc
  8326. * src/VerificationMetalinkParserState.h
  8327. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8328. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8329. * src/A2STR.cc
  8330. * src/A2STR.h
  8331. * src/File.cc
  8332. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Defined static const std::string IP("ip"), PORT("port") and use them
  8334. instead of string literals.
  8335. * src/DefaultPeerListProcessor.cc
  8336. * src/DefaultPeerListProcessor.h
  8337. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8338. Made string literals for torrent file processing static const
  8339. std::string.
  8340. * src/BtContext.cc
  8341. * src/BtContext.h
  8342. * src/DefaultBtContext.cc
  8343. * src/DefaultBtContext.h
  8344. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8345. Made string literal for tracker response static const std::string
  8346. * src/BtAnnounce.cc
  8347. * src/BtAnnounce.h
  8348. * src/DefaultBtAnnounce.cc
  8349. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8350. Use DHTMessage::T instead of "t".
  8351. * src/DHTMessageTracker.cc (messageArrived)
  8352. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Made keyName static const. Made trimmed charset static const
  8354. std::string.
  8355. * src/Util.cc (getContentDispositionFilename)
  8356. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Made USER_AGENT const. Made "/" static const std::string.
  8358. * src/A2STR.cc
  8359. * src/A2STR.h
  8360. * src/HttpRequest.cc
  8361. * src/HttpRequest.h
  8362. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8363. Made string listeral to static const std::string:
  8364. "Content-Range", "Content-Length"
  8365. * src/HttpHeader.cc
  8366. * src/HttpHeader.h
  8367. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Made string listeral to static const std::string.
  8369. * src/HttpConnection.cc
  8370. * src/HttpHeader.cc
  8371. * src/HttpHeader.h
  8372. * src/HttpResponse.cc
  8373. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. Made string listeral to static const std::string.
  8375. * src/A2STR.cc
  8376. * src/A2STR.h
  8377. * src/SimpleLogger.cc
  8378. * src/SimpleLogger.h
  8379. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8380. Made string literal to static const std::string.
  8381. Rewritten CookieParser::setField.
  8382. * src/A2STR.cc
  8383. * src/A2STR.h
  8384. * src/CookieBoxFactory.cc
  8385. * src/CookieBoxFactory.h
  8386. * src/CookieParser.cc
  8387. * src/CookieParser.h
  8388. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8389. Made string literal to static const std::string
  8390. * src/DHTAbstractMessage.cc
  8391. * src/DHTAnnouncePeerMessage.cc
  8392. * src/DHTAnnouncePeerMessage.h
  8393. * src/DHTAnnouncePeerReplyMessage.cc
  8394. * src/DHTAnnouncePeerReplyMessage.h
  8395. * src/DHTFindNodeMessage.cc
  8396. * src/DHTFindNodeMessage.h
  8397. * src/DHTFindNodeReplyMessage.cc
  8398. * src/DHTFindNodeReplyMessage.h
  8399. * src/DHTGetPeersMessage.cc
  8400. * src/DHTGetPeersMessage.h
  8401. * src/DHTGetPeersReplyMessage.cc
  8402. * src/DHTGetPeersReplyMessage.h
  8403. * src/DHTMessage.cc
  8404. * src/DHTMessage.h
  8405. * src/DHTMessageFactoryImpl.cc
  8406. * src/DHTMessageReceiver.cc
  8407. * src/DHTPingMessage.cc
  8408. * src/DHTPingMessage.h
  8409. * src/DHTPingReplyMessage.cc
  8410. * src/DHTPingReplyMessage.h
  8411. * src/DHTQueryMessage.cc
  8412. * src/DHTQueryMessage.h
  8413. * src/DHTResponseMessage.cc
  8414. * src/DHTResponseMessage.h
  8415. * src/DHTUnknownMessage.cc
  8416. * src/DHTUnknownMessage.h
  8417. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Made string literal to static const std::string
  8419. * src/BtChokeMessage.cc (toString)
  8420. * src/BtHaveAllMessage.cc (toString)
  8421. * src/BtHaveNoneMessage.cc (toString)
  8422. * src/BtInterestedMessage.cc (toString)
  8423. * src/BtNotInterestedMessage.cc (toString)
  8424. * src/BtUnchokeMessage.cc (toString)
  8425. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8426. Replaced "" with static const variable A2STR::NIL.
  8427. Replaced string comparison against "" with std::string::empty().
  8428. Added PROTO_* to Request class and use them as a protocol string
  8429. constant.
  8430. Made "started", "stopped", "completed" static const variable in
  8431. AnnounceList class.
  8432. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. Updated translations. Great thanks to translators.
  8434. * po/ca.po
  8435. * po/de.po
  8436. * po/fr.po
  8437. * po/it.po
  8438. * po/ja.po
  8439. * po/ru.po
  8440. * po/zh_CN.po
  8441. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. Updated man page; categorized options and fixed typo.
  8443. * doc/aria2c.1.txt
  8444. * doc/aria2c.1.html
  8445. * doc/aria2c.1
  8446. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. Removed const ref
  8448. * src/MetalinkEntry.cc (AddProtocolPreference)
  8449. * src/RequestGroup.cc (FindServerHostByHostname)
  8450. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. Rewritten Accept-Features handling.
  8452. * src/HttpRequestCommand.cc (createHttpRequest)
  8453. * src/a2functional.h
  8454. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8455. Changed method signature:
  8456. DHTAbstractNodeLookupTask::toEntries
  8457. * src/DHTAbstractNodeLookupTask.cc
  8458. * src/DHTAbstractNodeLookupTask.h
  8459. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. Changed method signature:
  8461. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8462. * src/BtContext.h
  8463. * src/DefaultBtContext.cc
  8464. * src/DefaultBtContext.h
  8465. * src/DefaultBtInteractive.cc
  8466. * test/DefaultBtContextTest.cc
  8467. * test/MockBtContext.h
  8468. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8469. Changed method signature:
  8470. MultiFileAllocationIterator::makeDiskWriterEntries
  8471. * src/MultiFileAllocationIterator.cc
  8472. * src/MultiFileAllocationIterator.h
  8473. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8474. Changed method sinature:
  8475. MetalinkEntry::toFileEntry,
  8476. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8477. Metalinker::queryEntry
  8478. * src/Metalink2RequestGroup.cc
  8479. * src/MetalinkEntry.cc
  8480. * src/MetalinkEntry.h
  8481. * src/MetalinkHelper.cc
  8482. * src/MetalinkHelper.h
  8483. * src/Metalinker.cc
  8484. * src/Metalinker.h
  8485. * src/main.cc
  8486. * test/MetalinkHelperTest.cc
  8487. * test/MetalinkerTest.cc
  8488. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Changed method sinature:
  8490. RequestGroup::getURIs
  8491. * src/RequestGroup.cc
  8492. * src/RequestGroup.h
  8493. * test/Metalink2RequestGroupTest.cc
  8494. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Changed method signature:
  8496. PeerListProcessor::extractPeer
  8497. * src/CompactPeerListProcessor.cc
  8498. * src/CompactPeerListProcessor.h
  8499. * src/DefaultBtAnnounce.cc
  8500. * src/DefaultPeerListProcessor.cc
  8501. * src/DefaultPeerListProcessor.h
  8502. * src/DelegatingPeerListProcessor.cc
  8503. * src/DelegatingPeerListProcessor.h
  8504. * src/PeerListProcessor.h
  8505. * src/UTPexExtensionMessage.cc
  8506. * test/DefaultPeerListProcessorTest.cc
  8507. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8508. Changed method signature:
  8509. BtRequestFactory::createRequestMessages,
  8510. BtRequestFactory::createRequestMessagesOnEndGame
  8511. * src/BtRequestFactory.h
  8512. * src/DefaultBtInteractive.cc
  8513. * src/DefaultBtRequestFactory.cc
  8514. * src/DefaultBtRequestFactory.h
  8515. * test/DefaultBtRequestFactoryTest.cc
  8516. * test/MockBtRequestFactory.h
  8517. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8518. Changed method signature:
  8519. PieceStorage::getInFlightPieces
  8520. * src/DefaultBtProgressInfoFile.cc
  8521. * src/DefaultPieceStorage.cc
  8522. * src/DefaultPieceStorage.h
  8523. * src/PieceStorage.h
  8524. * src/UnknownLengthPieceStorage.cc
  8525. * src/UnknownLengthPieceStorage.h
  8526. * test/DefaultBtProgressInfoFileTest.cc
  8527. * test/MockPieceStorage.h
  8528. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8529. Changed method signature:
  8530. PostDownloadHandler::getNextRequestGroups
  8531. Metalink2RequestGroup::generate
  8532. RequestGroup::postDownloadProcessing
  8533. * src/BtPostDownloadHandler.cc
  8534. * src/BtPostDownloadHandler.h
  8535. * src/Metalink2RequestGroup.cc
  8536. * src/Metalink2RequestGroup.h
  8537. * src/MetalinkPostDownloadHandler.cc
  8538. * src/MetalinkPostDownloadHandler.h
  8539. * src/PostDownloadHandler.h
  8540. * src/RequestGroup.cc
  8541. * src/RequestGroup.h
  8542. * src/RequestGroupMan.cc
  8543. * src/main.cc
  8544. * test/BtPostDownloadHandlerTest.cc
  8545. * test/Metalink2RequestGroupTest.cc
  8546. * test/MetalinkPostDownloadHandlerTest.cc
  8547. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8548. Rewritten AccRequestGroup
  8549. * src/main.cc
  8550. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. Rewritten.
  8552. * src/TaggedItem.cc (toTagString)
  8553. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Rewritten Accept-Features handling.
  8555. * src/HttpRequestCommand.cc (createHttpRequest)
  8556. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Rewritten accept types handling.
  8558. * HttpRequest.cc (createRequest)
  8559. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8560. Rewritten
  8561. * src/FeatureConfig.cc (featureSummary)
  8562. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. Changed method signature:
  8564. PeerStorage::getActivePeers
  8565. * src/DHTPeerAnnounceEntry.cc
  8566. * src/DefaultPeerStorage.cc
  8567. * src/DefaultPeerStorage.h
  8568. * src/PeerStorage.h
  8569. * test/DefaultPeerStorageTest.cc
  8570. * test/MockPeerStorage.h
  8571. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8572. Changed method signature:
  8573. DHTPeerAnnounceStorage::getPeers,
  8574. DHTPeerAnnounceEntry::getPeers
  8575. * src/DHTGetPeersMessage.cc
  8576. * src/DHTPeerAnnounceEntry.cc
  8577. * src/DHTPeerAnnounceEntry.h
  8578. * src/DHTPeerAnnounceStorage.cc
  8579. * src/DHTPeerAnnounceStorage.h
  8580. * test/DHTAnnouncePeerMessageTest.cc
  8581. * test/DHTPeerAnnounceEntryTest.cc
  8582. * test/DHTPeerAnnounceStorageTest.cc
  8583. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Changed method signature:
  8585. NameResolver::resolve
  8586. * src/DHTEntryPointNameResolveCommand.cc
  8587. * src/InitiateConnectionCommand.cc
  8588. * src/NameResolver.cc
  8589. * src/NameResolver.h
  8590. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Changed method signature:
  8592. PieceStorage::getAdvertisedPieceIndexes
  8593. * src/DefaultBtInteractive.cc
  8594. * src/DefaultPieceStorage.cc
  8595. * src/DefaultPieceStorage.h
  8596. * src/PieceStorage.h
  8597. * src/UnknownLengthPieceStorage.h
  8598. * test/MockPieceStorage.h
  8599. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8600. Changed method signature:
  8601. SegmentMan::getInFlightSegment
  8602. * src/AbstractCommand.cc
  8603. * src/SegmentMan.cc
  8604. * src/SegmentMan.h
  8605. * test/SegmentManTest.cc
  8606. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8607. Changed method signature:
  8608. DHTAbstractNodeLookupTask::getNodesFromMessage
  8609. * src/DHTAbstractNodeLookupTask.cc
  8610. * src/DHTAbstractNodeLookupTask.h
  8611. * src/DHTNodeLookupTask.cc
  8612. * src/DHTNodeLookupTask.h
  8613. * src/DHTPeerLookupTask.cc
  8614. * src/DHTPeerLookupTask.h
  8615. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8617. * src/AbstractCommand.cc
  8618. * src/BtCheckIntegrityEntry.cc
  8619. * src/BtCheckIntegrityEntry.h
  8620. * src/BtFileAllocationEntry.cc
  8621. * src/BtFileAllocationEntry.h
  8622. * src/BtSetup.cc
  8623. * src/BtSetup.h
  8624. * src/CheckIntegrityCommand.cc
  8625. * src/CheckIntegrityEntry.h
  8626. * src/ChecksumCheckIntegrityEntry.cc
  8627. * src/ChecksumCheckIntegrityEntry.h
  8628. * src/DHTSetup.cc
  8629. * src/DHTSetup.h
  8630. * src/DownloadEngine.cc
  8631. * src/FileAllocationCommand.cc
  8632. * src/FileAllocationEntry.h
  8633. * src/RequestGroup.cc
  8634. * src/RequestGroup.h
  8635. * src/RequestGroupMan.cc
  8636. * src/RequestGroupMan.h
  8637. * src/StreamCheckIntegrityEntry.cc
  8638. * src/StreamCheckIntegrityEntry.h
  8639. * src/StreamFileAllocationEntry.cc
  8640. * src/StreamFileAllocationEntry.h
  8641. * src/TrackerWatcherCommand.cc
  8642. * src/a2functional.h
  8643. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8644. Changed method signature:
  8645. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8646. DHTBucket::getGoodNodes,
  8647. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8648. * src/BNode.cc
  8649. * src/BNode.h
  8650. * src/DHTAbstractNodeLookupTask.cc
  8651. * src/DHTAutoSaveCommand.cc
  8652. * src/DHTBucket.cc
  8653. * src/DHTBucket.h
  8654. * src/DHTBucketRefreshTask.cc
  8655. * src/DHTFindNodeMessage.cc
  8656. * src/DHTGetPeersMessage.cc
  8657. * src/DHTRoutingTable.cc
  8658. * src/DHTRoutingTable.h
  8659. * test/BNodeTest.cc
  8660. * test/DHTBucketTest.cc
  8661. * test/DHTRoutingTableTest.cc
  8662. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. In piece selection functions, Pass std::deque<...> by reference rather
  8664. than returning it.
  8665. * src/BitfieldMan.cc
  8666. * src/BitfieldMan.h
  8667. * src/DefaultBtRequestFactory.cc
  8668. * src/DefaultPieceStorage.cc
  8669. * src/Piece.cc
  8670. * src/Piece.h
  8671. * test/BitfieldManTest.cc
  8672. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8673. Implemented rarest piece first piece selection strategy.
  8674. * src/AbstractBtMessage.cc
  8675. * src/AbstractBtMessage.h
  8676. * src/BitfieldMan.cc
  8677. * src/BitfieldMan.h
  8678. * src/BtBitfieldMessage.cc
  8679. * src/BtHaveAllMessage.cc
  8680. * src/BtHaveMessage.cc
  8681. * src/DefaultPieceStorage.cc
  8682. * src/DefaultPieceStorage.h
  8683. * src/PeerInteractionCommand.cc
  8684. * src/PieceStorage.h
  8685. * src/UnknownLengthPieceStorage.h
  8686. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8687. Rewritten readData and writeData.
  8688. * src/MultiDiskAdaptor.cc
  8689. * src/MultiDiskAdaptor.h
  8690. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Move \n out of the message "Usage: ...".
  8692. * src/version_usage.cc
  8693. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8694. Bump up version number to 0.13.2b.
  8695. * configure.ac
  8696. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Added const qualifier to argument Exception& e.
  8698. * src/Logger.h
  8699. * src/SimpleLogger.cc
  8700. * src/SimpleLogger.h
  8701. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8702. Pool connection when CWD, SIZE command fails.
  8703. * src/FtpNegotiationCommand.cc
  8704. * src/FtpNegotiationCommand.h
  8705. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8706. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8707. * src/HttpResponseCommand.cc
  8708. * src/HttpSkipResponseCommand.cc
  8709. * src/HttpSkipResponseCommand.h
  8710. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. Pool connection when a server returns 4xx, 5xx responses.
  8712. * src/HttpNullDownloadCommand.cc
  8713. * src/HttpNullDownloadCommand.h
  8714. * src/HttpResponse.cc
  8715. * src/HttpResponse.h
  8716. * src/HttpResponseCommand.cc
  8717. * src/HttpResponseCommand.h
  8718. * test/HttpResponseTest.cc
  8719. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8720. Print usage when no URL is specifed or bad command-line option is
  8721. specified.
  8722. * src/HelpItemFactory.cc
  8723. * src/help_tags.h
  8724. * src/option_processing.cc
  8725. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8726. Removed duplicate log message.
  8727. * src/AbstractCommand.cc (asyncResolveHostname)
  8728. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8730. Changed -j option's default value from 5 to 1.
  8731. Added new examples using protocol auto detection feature.
  8732. Removed -T, -M usage where it can be omitted.
  8733. * doc/aria2c.1.txt
  8734. * doc/aria2c.1.html
  8735. * doc/aria2c.1.txt
  8736. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8737. Updated command-line usage text, so that it tells users that they
  8738. can specify any number of torrent files and metalink files in
  8739. command-line.
  8740. * src/version_usage.cc
  8741. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8742. Changed the default value of -j option to 1.
  8743. * src/HelpItemFactory.cc
  8744. * src/option_processing.cc
  8745. * src/usage_text.h
  8746. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8747. Added the ability to reuse connection in FTP and it is enabled by
  8748. default. It can be disabled by --ftp-reuse-connection=false option.
  8749. * src/Command.cc
  8750. * src/DownloadCommand.cc
  8751. * src/FtpDownloadCommand.cc
  8752. * src/FtpDownloadCommand.h
  8753. * src/FtpFinishDownloadCommand.cc
  8754. * src/FtpFinishDownloadCommand.h
  8755. * src/FtpInitiateConnectionCommand.cc
  8756. * src/FtpNegotiationCommand.cc
  8757. * src/FtpNegotiationCommand.h
  8758. * src/HelpItemFactory.cc
  8759. * src/Makefile.am
  8760. * src/Makefile.in
  8761. * src/OptionHandlerFactory.cc
  8762. * src/option_processing.cc
  8763. * src/prefs.h
  8764. * src/usage_text.h
  8765. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8766. Call Command::transitStatus() before calling Command::execute(),
  8767. so that the status change made in execute() is not cleared.
  8768. * src/DownloadEngine.cc
  8769. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8770. Removed forward declaration of SocketCore class.
  8771. * src/HttpDownloadCommand.h
  8772. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8773. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8774. in InitiateConnectionCommandFactory. They should be set only when
  8775. the protocol is HTTP or HTTPS.
  8776. * src/InitiateConnectionCommandFactory.cc
  8777. * src/RequestGroup.cc
  8778. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Fixed infinite loop in checksum checking.
  8780. * src/IteratableChecksumValidator.cc
  8781. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. Set _supportsPersistentConnection to true by default.
  8783. * src/Request.cc
  8784. * src/RequestGroup.cc
  8785. * test/HttpRequestTest.cc
  8786. * test/RequestTest.cc
  8787. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. Added timeout to socket pool. The default timeout is 15 seconds,
  8789. which is the same value Apache uses.
  8790. * src/DownloadEngine.cc
  8791. * src/DownloadEngine.h
  8792. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Fixed misuse of multimap::find()
  8794. * src/HttpHeader.cc
  8795. * test/HttpHeaderTest.cc
  8796. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8798. option.
  8799. The asynchronous DNS is not capable of IPv6 yet.
  8800. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8801. least for HTTP download.
  8802. * src/AbstractCommand.cc
  8803. * src/AbstractCommand.h
  8804. * src/AsyncNameResolver.cc
  8805. * src/AsyncNameResolver.h
  8806. * src/DHTEntryPointNameResolveCommand.cc
  8807. * src/DHTEntryPointNameResolveCommand.h
  8808. * src/DownloadEngine.cc
  8809. * src/DownloadEngine.h
  8810. * src/FtpInitiateConnectionCommand.cc
  8811. * src/FtpInitiateConnectionCommand.h
  8812. * src/HelpItemFactory.cc
  8813. * src/HttpInitiateConnectionCommand.cc
  8814. * src/HttpInitiateConnectionCommand.h
  8815. * src/InitiateConnectionCommand.cc
  8816. * src/InitiateConnectionCommand.h
  8817. * src/Makefile.am
  8818. * src/Makefile.in
  8819. * src/NameResolver.cc
  8820. * src/NameResolver.h
  8821. * src/OptionHandlerFactory.cc
  8822. * src/SocketCore.cc
  8823. * src/SocketCore.h
  8824. * src/Util.cc
  8825. * src/Util.h
  8826. * src/option_processing.cc
  8827. * src/prefs.h
  8828. * src/usage_text.h
  8829. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Updated man page: --quiet, --header were added.
  8831. --metalink-servers and --enable-http-keep-alive option were updated.
  8832. * doc/aria2c.1
  8833. * doc/aria2c.1.html
  8834. * doc/aria2c.1.txt
  8835. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. Enable HTTP keep-alive by default.
  8837. * src/HelpItemFactory.cc
  8838. * src/option_processing.cc
  8839. * src/usage_text.h
  8840. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Disable http keep-alive if the remote server is not HTTP/1.1.
  8842. * src/HttpConnection.cc
  8843. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. Receive content body of 302 response so that the connection can be
  8845. reused later when http keep-alive is enabled.
  8846. * src/HttpNullDownloadCommand.cc
  8847. * src/HttpNullDownloadCommand.h
  8848. * src/HttpResponseCommand.cc
  8849. * src/HttpResponseCommand.h
  8850. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8851. const SharedHandle<Request> -> const SharedHandle<Request>&
  8852. * src/FtpDowndloadCommand.cc
  8853. * src/FtpDowndloadCommand.h
  8854. * src/HttpDownloadCommand.cc
  8855. * src/HttpDownloadCommand.h
  8856. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Fixed the bug that the control file(.aria2 file) is not renamed
  8858. according to tryAutoFileRenaming().
  8859. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8860. its control file exist, use them and continue download.
  8861. The old implementation didn't take into account of control file's
  8862. existence, so basically you couldn't continue download of renamed file.
  8863. * src/BtProgressInfoFile.h
  8864. * src/DefaultBtProgressInfoFile.cc
  8865. * src/DefaultBtProgressInfoFile.h
  8866. * src/NullProgressInfoFile.h
  8867. * src/RequestGroup.cc
  8868. * test/DefaultBtProgressInfoFileTest.cc
  8869. * test/MockBtProgressInfoFile.h
  8870. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8871. Change the default value of --metalink-servers option from `5' to `1'.
  8872. * src/HelpItemFactory.cc
  8873. * src/option_processing.cc
  8874. * src/usage_text.h
  8875. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8876. Reimplemented transparent metalink using Accept request header.
  8877. * src/HttpRequest.cc
  8878. * src/HttpRequest.h
  8879. * src/HttpRequestCommand.cc
  8880. * src/Metalink2RequestGroup.cc
  8881. * src/RequestGroup.cc
  8882. * src/RequestGroup.h
  8883. * test/HttpRequestTest.cc
  8884. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. Bump up version number to 0.13.2a
  8886. * configure.ac
  8887. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8888. Updated configure.ac using the result of autoscan.
  8889. * configure.ac
  8890. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8891. Fixed compilation error without gcrypt/openssl.
  8892. * src/DownloadCommand.cc
  8893. * src/DownloadCommand.h
  8894. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8895. Reorganized version information so that it can be displayed in a
  8896. standard terminal screen without scrolling.
  8897. Removed http, ftp from Configuration section, because they are always
  8898. enabled.
  8899. * src/FeatureConfig.cc
  8900. * src/FeatureConfig.h
  8901. * src/main.cc
  8902. * src/messageDigest.cc
  8903. * src/messageDigest.h
  8904. * src/version_usage.cc
  8905. * test/FeatureConfigTest.cc
  8906. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8907. Masked user ID in log.
  8908. * src/FtpConnection.cc (sendUser)
  8909. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8910. Removed query part from filename in HTTP download. The query part means
  8911. the substring after "?" in URL. Firefox seems do the same thing.
  8912. A query part is sometimes very long and not suitable to filename,
  8913. so I think it is better to remove it from filename.
  8914. * src/HttpRequest.cc
  8915. * src/HttpRequest.h
  8916. * src/Request.cc
  8917. * src/Request.h
  8918. * test/HttpRequestTest.cc
  8919. * test/RequestTest.cc
  8920. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. Rewritten Exception class. Throw exception object, not its pointer and
  8922. catch by reference, so that remove problematic delete operator for
  8923. catched exception.
  8924. * src/Exception.cc
  8925. * src/Exception.h
  8926. * test/ExceptionTest.cc
  8927. * src/*: All files throwing/catching exception.
  8928. * test/*: All files throwing/catching exception.
  8929. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8930. Now auto protocol detection is enabled without -Z option.
  8931. But there is a important difference between with/without -Z optoin.
  8932. For example, if you type:
  8933. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8934. then, aria2 interprets there are 3 request groups:
  8935. (1) http://host/file, http://mirror/file <-- multi-source download
  8936. (2) file1.torrent
  8937. (3) file2.metalink
  8938. On the other hand, if you invoke above command with -Z option, it is
  8939. interpreted as 4 request groups:
  8940. (1) http://host/file
  8941. (2) file1.torrent
  8942. (3) file2.metalink
  8943. (4) http://mirror/file
  8944. I think usually user don't mix multi-source URLs and torrent files, so
  8945. there is no big problem here.
  8946. * src/main.cc
  8947. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Fixed the bug that causes segmentaion fault when reading XML containing
  8949. unescapsed character like '&'.
  8950. Also a modification was made which avoids adding unnecessary
  8951. characters stack and appending unused string.
  8952. * src/ExpatMetalinkProcessor.cc
  8953. * src/FileMetalinkParserState.h
  8954. * src/FilesMetalinkParserState.h
  8955. * src/FinMetalinkParserState.h
  8956. * src/HashMetalinkParserState.h
  8957. * src/InitialMetalinkParserState.h
  8958. * src/LanguageMetalinkParserState.h
  8959. * src/MetalinkMetalinkParserState.h
  8960. * src/MetalinkParserState.h
  8961. * src/MetalinkParserStateMachine.cc
  8962. * src/MetalinkParserStateMachine.h
  8963. * src/OSMetalinkParserState.h
  8964. * src/PieceHashMetalinkParserState.h
  8965. * src/PiecesMetalinkParserState.h
  8966. * src/ResourcesMetalinkParserState.h
  8967. * src/SizeMetalinkParserState.h
  8968. * src/SkipTagMetalinkParserState.h
  8969. * src/URLMetalinkParserState.h
  8970. * src/VerificationMetalinkParserState.h
  8971. * src/VersionMetalinkParserState.h
  8972. * src/XML2SAXMetalinkProcessor.cc
  8973. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8974. Added StringFormat class, which internally calls vasprintf.
  8975. operator<< is defined for this class, so it can be used with iostream
  8976. classes nicely. SimpleLogger and following functions are rewritten
  8977. using StringFormat class.
  8978. Besides, now Logger class's methods are non-const, many classes
  8979. that has a const Logger* as a member variable are modified to remove
  8980. const qualifier from the variable declaration.
  8981. * src/HelpItemFactory.cc
  8982. * src/Request.cc
  8983. * src/SimpleLogger.cc
  8984. * src/StringFormat.cc
  8985. * src/StringFormat.h
  8986. * src/Util.cc
  8987. * src/option_processing.cc
  8988. * src/version_usage.cc
  8989. * test/StringFormatTest.cc
  8990. * src/*.h: The classes that has const Logger* as a member variable.
  8991. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8993. failed. Also fixed memory link when exception is thrown there.
  8994. * src/main.cc (AccRequestGroup)
  8995. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8996. Added build-in "Accept-Features" support. For now only "metalink" is
  8997. used in this header field.
  8998. This "metalink" value is removed from the list when connecting URLs
  8999. fed by metalink file to avoid loop in "transparent" metlaink.
  9000. * src/HttpRequest.cc
  9001. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9002. header is also held in this variable. Also renamed setUserHeaders as
  9003. addHeader and it was rewritten to add header not just to clear the old
  9004. value.
  9005. * src/HttpRequestCommand.cc
  9006. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9007. from "Accept-Features" list.
  9008. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9009. default.
  9010. * src/RequestGroup.h
  9011. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9012. * src/a2functional.h: Included <string> because Concat class depends on
  9013. it.
  9014. * test/HttpRequestTest.cc
  9015. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9016. Added comment
  9017. * src/RequestGroup.cc (createNextCommand)
  9018. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9019. Capitalized METHOD_GET and METHOD_HEAD
  9020. * src/Request.cc
  9021. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9022. Added getDownloadResults() method
  9023. * src/RequestGroupMan.cc
  9024. * src/RequestGroupMan.h
  9025. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9026. Fixed the bug that aria2 exits when commands is empty() but
  9027. _routineCommands are not.
  9028. * src/DownloadEngine.cc
  9029. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9030. Use the default value pulled from Option object in HelpItemFactory.
  9031. except options whose defualt value is embedded in a usage text.
  9032. * src/HelpItemFactory.cc
  9033. * src/HelpItemFactory.h
  9034. * src/option_processing.cc
  9035. * src/version_usage.cc
  9036. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9037. Added --quiet option to make aria2 quiet (no console output).
  9038. --quiet option is tagged with ADVANCED.
  9039. * src/HelpItemFactory.cc
  9040. * src/LogFactory.cc
  9041. * src/LogFactory.h
  9042. * src/MultiUrlRequestInfo.cc
  9043. * src/MultiUrlRequestInfo.h
  9044. * src/NullStatCalc.h: New class. This class prints nothing.
  9045. * src/OptionHandlerFactory.cc
  9046. * src/main.cc
  9047. * src/option_processing.cc
  9048. * src/prefs.h
  9049. * src/usage_text.h
  9050. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9052. * src/HelpItemFactory.cc (createHelpItems):
  9053. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9054. Fixed compilation error in ExpatMetalinkProcessor.cc
  9055. * src/ExpatMetalinkProcessor.cc
  9056. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9057. Reuse socket if the origin server supports HTTP keep-alive and
  9058. --enable-http-keep-alive or --enable-http-pipelining is given.
  9059. The current implementation doesn't reuse the connections established
  9060. against proxy server.
  9061. * src/AbstractCommand.cc
  9062. * src/DownloadEngine.cc
  9063. * src/DownloadEngine.h
  9064. * src/HttpDownloadCommand.cc
  9065. * src/HttpInitiateConnectionCommand.cc
  9066. * src/HttpResponseCommand.cc
  9067. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9068. Rewritten HTTP keep-alive and pipelining routine.
  9069. * src/AbstractCommand.cc
  9070. * src/HttpConnection.cc
  9071. * src/HttpDownloadCommand.cc
  9072. * src/HttpRequest.cc
  9073. * src/HttpRequestCommand.cc
  9074. * src/HttpResponseCommand.cc
  9075. * src/Request.cc
  9076. * src/Request.h
  9077. * src/RequestGroup.cc
  9078. * test/HttpRequestTest.cc
  9079. * test/HttpResponseTest.cc
  9080. * test/RequestTest.cc
  9081. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. Added missing setUserHeaders call
  9083. * src/HttpRequestCommand.cc
  9084. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9085. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9086. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9087. waste of time because it is more likey false.
  9088. * src/FileAllocationDispatcherCommand.cc (execute)
  9089. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. Now HTTP status and version are a member variable of HttpHeader.
  9091. HTTP status is processed as a string, not integer.
  9092. * src/AbstractProxyResponseCommand.cc
  9093. * src/HttpConnection.cc
  9094. * src/HttpHeader.cc
  9095. * src/HttpHeader.h
  9096. * src/HttpHeaderProcessor.cc
  9097. * src/HttpHeaderProcessor.h
  9098. * src/HttpResponse.cc
  9099. * src/HttpResponse.h
  9100. * test/HttpHeaderProcessorTest.cc
  9101. * test/HttpResponseTest.cc
  9102. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Added --header option. You can specify any number of additional HTTP headers
  9104. like:
  9105. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9106. Unlike other commad-line option, you can use --header option multiple times.
  9107. * src/HelpItemFactory.cc
  9108. * src/HttpRequest.{cc, h}
  9109. * src/HttpRequestCommand.cc
  9110. * src/OptionHandlerFactory.cc
  9111. * src/OptionHandlerImpl.h
  9112. * src/option_processing.cc
  9113. * src/prefs.h
  9114. * src/usage_text.h
  9115. * test/HttpRequestTest.cc (testUserHeaders)
  9116. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Eliminates the time lag between sequential downloads and commands in
  9118. the same RequestGroup.
  9119. In old implementation, aria2 occasionally waits 1 seconds before
  9120. executing next command or RequestGroup.
  9121. This is really a waste of time, and new implementation eliminates
  9122. this unnecessary time lag.
  9123. * src/AbstractCommand.cc
  9124. * src/AutoSaveCommand.cc
  9125. * src/CheckIntegrityCommand.cc
  9126. * src/Command.{cc, h}
  9127. * src/DownloadEngine.{cc, h}
  9128. * src/DownloadEngineFactory.cc
  9129. * src/FileAllocationCommand.cc
  9130. * src/FileAllocationDispatcherCommand.cc
  9131. * src/FillRequestGroupCommand.cc
  9132. * src/FtpInitiateConnectionCommand.cc
  9133. * src/HaveEraseCommand.cc
  9134. * src/HttpInitiateConnectionCommand.cc
  9135. * src/HttpResponseCommand.cc
  9136. * src/RealtimeCommand.cc
  9137. * src/RequestGroup.cc
  9138. * src/RequestGroupMan.cc
  9139. * src/StreamFileAllocationEntry.cc
  9140. * src/TimeBasedCommand.{cc, h}
  9141. * src/TimedHaltCommand.cc
  9142. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9144. keyword explicit and SharedHandle's default constructor initializes
  9145. its internal obj to null, old implementation initializes it using
  9146. obj's default constructor.
  9147. To assign null, write SharedHandle<T> x(...); x.reset();
  9148. TODO: test/SharedHandleTest.cc needs more tests.
  9149. * src/SharedHandle.h
  9150. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Fixed type in man page.
  9152. * doc/aria2c.1.txt
  9153. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9155. * src/SimpleLogger.{cc, h}
  9156. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Implemented auto protocol detection.
  9158. Now you can do:
  9159. aria2c -Z http://host/file file1.torrent file2.metalink
  9160. (Note: -Z option is required for auto protcol detection.)
  9161. Then aria2c downloads 3 files simultaneously:
  9162. 1. http://host/file
  9163. 2. file1.torrent <-- read local torrent file
  9164. 3. file2.metalink <-- read local Metalink file.
  9165. Same thing goes with -i option. Assume your uris.txt contans:
  9166. http://host/file
  9167. file1.torrent
  9168. file2.metalink
  9169. Then you can do: aria2c -i uris.txt
  9170. (Note: -Z option is not needed if -i option is given.)
  9171. * src/main.cc
  9172. * src/ProtocolDetector.{cc, h}
  9173. * test/ProtocolDetectorTest.cc
  9174. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9175. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9176. installed
  9177. * src/ARC4Encryptor.h
  9178. * src/ARC4Decryptor.h
  9179. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9180. Renamed argument from 'errno' to 'err', since errno is confused with
  9181. errno defined in errno.h.
  9182. * src/LibgcryptARC4Decryptor.h
  9183. * src/LibgcryptARC4Context.h
  9184. * src/LibgcryptDHKeyExchange.h
  9185. * src/LibgcryptARC4Encryptor.h
  9186. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9187. Rewritten choking algorithm.
  9188. * src/PeerChokeCommand.{cc, h}
  9189. * src/BtInterestedMessage.cc
  9190. * src/PeerSessionResource.{cc, h}
  9191. * src/DefaultPeerStorage.{cc, h}
  9192. * src/BtNotInterestedMessage.cc
  9193. * src/DefaultBtMessageDispatcher.{cc, h}
  9194. * src/BtMessageDispatcher.h
  9195. * src/Peer.{cc, h}
  9196. * src/BtLeecherStateChoke.{cc, h}
  9197. * src/BtSetup.cc
  9198. * src/BtSeederStateChoke.{cc, h}
  9199. * src/PeerStorage.h
  9200. * test/MockPeerStorage.h
  9201. * test/MockBtMessageDispatcher.h
  9202. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Fixed compilation error on x84-64 platform.
  9204. * src/AuthConfig.cc: Included ostream.
  9205. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9206. Rewritten getBasename() and getDirname(), without standard library
  9207. basename(), dirname().
  9208. * src/File.cc
  9209. * test/FileTest.cc
  9210. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. Added Simplified Chinese translation. Also updated the following
  9212. translations: Polish, Dutch, German. Great thanks to all translators.
  9213. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9214. Suppress content-range error when 'Content-Range' response header
  9215. doesn't contains bytes-unit specifier 'bytes'
  9216. * src/HttpHeader.cc (getRange)
  9217. * test/HttpHeaderTest.cc
  9218. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. Fixed compilation error with g++-4.3
  9220. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9221. Added missing include files for MinGW
  9222. * test/HttpHeaderProcessorTest.cc
  9223. * test/DHTRoutingTableSerializerTest.cc
  9224. * test/DHTRoutingTableDeserializerTest.cc
  9225. * test/UriListParserTest.cc
  9226. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Now download line is printed nicely with no garbage at the end of
  9228. line. I use ioctl to get the columns of terminal.
  9229. If stdout is redirected to another device, instead of carriage return,
  9230. end of line '\n' character is used. This is feature request#1909659
  9231. * src/ConsoleStatCalc.cc (calculateStat)
  9232. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9233. Included a2time.h
  9234. * src/DHTMessageDispatcher.h
  9235. * src/DHTMessageEntry.h
  9236. * src/DHTReplaceNodeTask.h
  9237. * src/DHTMessageTracker.h
  9238. * src/Util.h
  9239. * src/CookieBox.h
  9240. * src/SocketCore.h
  9241. * src/DefaultBtMessageDispatcher.h
  9242. * src/SocketCore.cc
  9243. * src/Util.cc
  9244. * src/DHTPingTask.h
  9245. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. Fixed high memory footprint when DHT is enabled.
  9247. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9248. queued than it is processed and the queue is getting longer. As a
  9249. consequence, momory usage is increased.
  9250. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9251. replacement cache in DHTBucket which is described in Kademlia paper.
  9252. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9253. DHTReplaceNodeTask.
  9254. * src/DHTBucket.{h, cc}
  9255. (cacheNode): New function.
  9256. (getCachedNodes): New function.
  9257. (dropNode): Push back cached node to _nodes.
  9258. * test/DHTBucketTest.cc
  9259. (testCacheNode): New test
  9260. (testDropNode): New test
  9261. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9262. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9263. the unused 4KB memory when ssl is not used.
  9264. * src/SocketCore.cc
  9265. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. Added summary log for peer announce storage.
  9267. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9268. Removed cast
  9269. * src/DefaultPeerStorage.cc (addPeer)
  9270. Log exception message
  9271. * src/DHTMessageTracker.cc (handleTimeout)
  9272. Fixed casting
  9273. * test/HttpRequestTest.cc
  9274. * test/MetalinkProcessorTest.cc
  9275. * test/PieceTest.cc
  9276. * test/MetalinkEntryTest.cc
  9277. * test/SequenceTest.cc
  9278. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9279. * src/ParameterizedStringParser.cc (createLoop):
  9280. Removed unused variable sstep.
  9281. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9282. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9283. * src/Util.{h, cc}
  9284. (parseUInt): New function.
  9285. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9286. The actual range is uint32_t.
  9287. * test/UtilTest.cc
  9288. * src/ParameterizedStringParser.cc:
  9289. Use Util::parseUInt() for loop variables.
  9290. * test/ParameterizedStringParserTest.cc
  9291. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9292. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Rewritten the functions for binding port.
  9294. * src/DHTConnectionImpl.{h, cc}
  9295. * src/PeerListenCommand.{h, cc}
  9296. * src/DHTSetup.cc
  9297. * src/BtSetup.cc
  9298. * test/DHTConnectionImplTest.cc
  9299. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9300. type cleanup for allmost all remaining files.
  9301. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9302. Type clarification
  9303. * src/PeerSessionResource.{h, cc}
  9304. * src/DefaultPieceStorage.{h, cc}
  9305. * src/Peer.{h, cc}
  9306. * test/PeerSessionResourceTest.cc
  9307. Use div function
  9308. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9309. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9310. Type clarification
  9311. * src/DefaultPeerStorage.{h, cc}
  9312. * test/DefaultPeerStorageTest.cc
  9313. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Type clarification: size_t for length or size, uint64_t for file
  9315. length, off_t for file offset.
  9316. * src/DefaultBtProgressInfoFile.cc
  9317. * src/DefaultBtContext.{h, cc}
  9318. * src/DefaultBtInteractive.cc
  9319. * src/DownloadCommand.{h, cc}
  9320. * src/IteratableChunkChecksumValidator.{h, cc}
  9321. * src/SegmentMan.{h, cc}
  9322. * src/SingleFileDownloadContext.{h, cc}
  9323. * src/IteratableChecksumValidator.{h, cc}
  9324. * src/BtContext.h
  9325. * src/IteratableValidator.h
  9326. * src/DownloadContext.h
  9327. * test/SingleFileDownloadContextTest.cc
  9328. * test/DefaultBtContextTest.cc
  9329. * test/MockBtContext.h
  9330. * test/Metalink2RequestGroupTest.cc
  9331. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Type clarification: size_t for length or size, uint64_t for file
  9333. length, off_t for file offset.
  9334. * src/PiecedSegment.cc
  9335. * src/GrowSegment.h
  9336. * src/DefaultBtRequestFactory.h
  9337. * src/DefaultBtProgressInfoFile.cc
  9338. * src/UnknownLengthPieceStorage.h
  9339. * src/DefaultPieceStorage.cc
  9340. * src/UnknownLengthPieceStorage.cc
  9341. * src/DefaultBtInteractive.cc
  9342. * src/GrowSegment.cc
  9343. * src/BitfieldMan.h
  9344. * src/DownloadCommand.cc
  9345. * src/BtRequestFactory.h
  9346. * src/PiecedSegment.h
  9347. * src/DefaultPieceStorage.h
  9348. * src/Piece.cc
  9349. * src/DefaultBtRequestFactory.cc
  9350. * src/PieceStorage.h
  9351. * src/Segment.h
  9352. * src/Piece.h
  9353. * src/BitfieldMan.cc
  9354. * src/Util.cc
  9355. * test/DefaultBtProgressInfoFileTest.cc
  9356. * test/DefaultPieceStorageTest.cc
  9357. * test/MockPieceStorage.h
  9358. * test/BtRequestMessageTest.cc
  9359. * test/DefaultBtMessageDispatcherTest.cc
  9360. * test/BitfieldManTest.cc
  9361. * test/GrowSegmentTest.cc
  9362. * test/PieceTest.cc
  9363. * test/SegmentTest.cc
  9364. * test/SegmentManTest.cc
  9365. * test/DefaultBtRequestFactoryTest.cc
  9366. * test/MockBtRequestFactory.h
  9367. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9368. Fixed compilation error with --disable-nls
  9369. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9370. in gettext.h causes the problem.
  9371. * src/common.h
  9372. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9373. Removed subPiece related functions.
  9374. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9375. * src/DefaultPieceStorage.{h, cc}
  9376. * test/PieceTest.cc
  9377. * test/DefaultPieceStorageTest.cc
  9378. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9379. Use unsigned char for data store.
  9380. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9381. Bump up version number to 0.13.0+1
  9382. * configure.ac
  9383. * Release 0.13.0+1
  9384. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9385. Changed inactive connection timeout to 120.
  9386. To accept more mulually interested peers, disconnect peer when there
  9387. is no interest between us after certain time passed.
  9388. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9389. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9391. when compiled with async DNS support.
  9392. * src/DownloadEngine.cc
  9393. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9394. value '10' will be a little bit short when some DNS servers are
  9395. offline and several DNS servers are tried. It should be configured
  9396. by command-line option.
  9397. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9398. Merged Ross's mingw patch.
  9399. * src/DHTRoutingTableDeserializer.cc
  9400. * src/DHTRoutingTableSerializer.cc
  9401. * src/Platform.{h, cc}
  9402. * src/timegm.h
  9403. * src/gettimeofday.h
  9404. * src/getaddrinfo.h
  9405. * src/SocketCore.h
  9406. * src/common.h
  9407. * src/inet_aton.h
  9408. * src/DownloadEngine.h
  9409. * src/gai_strerror.h
  9410. * src/a2netcompat.h
  9411. * configure.ac
  9412. * configure
  9413. * aclocal.m4
  9414. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9415. Included missing iostream.
  9416. * test/AllTest.cc
  9417. * test/BtDependencyTest.cc
  9418. * test/BtExtendedMessageTest.cc
  9419. * test/DHTConnectionImplTest.cc
  9420. * test/DHTMessageFactoryImplTest.cc
  9421. * test/DHTMessageTrackerEntryTest.cc
  9422. * test/DHTNodeTest.cc
  9423. * test/DHTRoutingTableSerializerTest.cc
  9424. * test/DefaultBtAnnounceTest.cc
  9425. * test/DefaultBtContextTest.cc
  9426. * test/DefaultBtMessageFactoryTest.cc
  9427. * test/DefaultExtensionMessageFactoryTest.cc
  9428. * test/HandshakeExtensionMessageTest.cc
  9429. * test/HttpResponseTest.cc
  9430. * test/MetalinkProcessorTest.cc
  9431. * test/MultiFileAllocationIteratorTest.cc
  9432. * test/SocketCoreTest.cc
  9433. * test/UTPexExtensionMessageTest.cc
  9434. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. Reorganized includes.
  9436. * src/NameResolver.cc
  9437. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9438. Fixed compilation error without ares/c-ares
  9439. * src/NameResolver.h:
  9440. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Added a test for large file.
  9442. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9443. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9444. Fixed the bug that file size is ignored if size > INT32_MAX
  9445. * src/SizeMetalinkParserState.cc (endElement):
  9446. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. Bump up version number to 0.13.0
  9448. * configure.ac
  9449. * Release 0.13.0
  9450. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9451. Updated Makfefile.am to make 'make dist' work.
  9452. Now packaged filename is aria2c-VERSION.tar.bz2.
  9453. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9454. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9455. Large file support is now configured by configure script.
  9456. * configure.ac
  9457. Removed unsused source files
  9458. * src/
  9459. * test/
  9460. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9461. Peer.h and BtContext.h respectively.
  9462. * src/Peer.h
  9463. * src/BtContext.h
  9464. Updated translations.
  9465. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9466. translations. Great thanks to all translators!;)
  9467. * po/*.{po, gmo}
  9468. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9469. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9470. statically declared sha1 MessageDigestContext.
  9471. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9472. initialization of short-lived MessageDigestContext.
  9473. * src/MessageDigestHelper.{h, cc}
  9474. * src/main.cc
  9475. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9476. the initialization of MessageDigestContext every time in validating
  9477. chunk checksum.
  9478. * src/DownloadCommand.{h, cc}
  9479. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9480. Add a file descriptor which connected to fast peer(latency<1500) to
  9481. select(). This change reduced CPU load.
  9482. * src/PeerInteractionCommand.cc
  9483. * src/DefaultBtInteractive.{h, cc}
  9484. * src/BtInteractive.h
  9485. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Fixed the previous insufficient fix for possible busy loop.
  9487. * src/MSEHandshake.cc (identifyHandshakeType)
  9488. Removed unused functions.
  9489. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9490. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9491. Fixed possible busy loop if first 20 bytes are not received for a few
  9492. minutes.
  9493. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9494. * src/ReceiverMSEHandshakeCommand.cc
  9495. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9496. Fixed compilation error
  9497. * src/ExpatMetalinkProcessor.cc
  9498. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9499. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9500. * src/DHTBucket.cc
  9501. Removed unnecessary cast.
  9502. * src/HandshakeExtensionMessage.cc
  9503. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9505. is missing.
  9506. * src/OptionHandlerFactory.cc
  9507. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9508. Fixed the bug that HAVE message is not sent for a piece they are
  9509. downloaded fom http/ftp server before any BitTorrent handshake is done
  9510. with peers.
  9511. * src/DefaultBtInteractive.cc
  9512. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9513. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9514. * src/Makefile.am
  9515. * src/Makefile.in
  9516. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9517. Updated README. Added html version of README and man page.
  9518. * README
  9519. * README.html
  9520. * readme2html: Shell script to generate README.html from README using
  9521. asciidoc.
  9522. * doc/aria2c.1.html
  9523. * doc/makeman: Added the line to generate aria2c.1.html
  9524. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9525. Fixed offset calculation.
  9526. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9527. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9528. Rewritten itos and uitos using template. llitos and ullitos are
  9529. replaced with itos and uitos respectively.
  9530. * src/Util.{h, cc}
  9531. * test/UtilTest.cc
  9532. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9534. of the number of bytes required for storing public key and shared
  9535. secret.
  9536. * src/LibgcryptDHKeyExchange.h
  9537. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9538. * src/MSEHandshake.cc
  9539. * test/DHKeyExchangeTest.cc
  9540. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. Removed since they are not used.
  9542. * src/Xml2MetalinkProcessor.{h, cc}
  9543. * src/Socket.cc
  9544. * src/SegmentSplitter.{h, cc}
  9545. * test/Xml2MetalinkProcessorTest.cc
  9546. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9547. Fixed the bug that prevents aria2 from stopping other than by pressing
  9548. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9549. option. aria2 doesn't stop even after --seed-time is satisfied and
  9550. continues to output blank lines in the console.
  9551. * src/ReceiverMSEHandshakeCommand.cc
  9552. * src/PeerReceiveHandshakeCommand.cc
  9553. * src/PeerListenCommand.cc
  9554. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9555. Bump up version number to 0.13.0rc
  9556. * configure.ac
  9557. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. Updated man page and some usage text.
  9559. * doc/aria2c.1.txt
  9560. * src/usage_text.h
  9561. * po/*.{po, gmo}
  9562. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. Updated translations. Added Finnish and Hebrew translations.
  9564. Great thanks to all translators!
  9565. * po/*.{po, gmo}
  9566. * po/LINGUAS
  9567. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Log more detailed information about each message.
  9569. * src/DHTQueryMessage.{h, cc}
  9570. * src/DHTGetPeersMessage.{h, cc}
  9571. * src/DHTFindNodeReplyMessage.{h, cc}
  9572. * src/DHTGetPeersReplyMessage.{h, cc}
  9573. * src/DHTAnnouncePeerMessage.{h, cc}
  9574. * src/DHTResponseMessage.{h, cc}
  9575. * src/DHTFindNodeMessage.{h, cc}
  9576. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9577. Use constants defined in prefs.h
  9578. * src/option_processing.cc
  9579. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9580. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9581. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9582. Make room for future enchancements for IPv6 addresses.
  9583. Bump up version number of dht.dat file format to 2.
  9584. Not compatible with previous version.
  9585. * src/DHTRoutingTableSerializer.cc
  9586. * src/DHTRoutingTableDeserializer.cc
  9587. * test/DHTRoutingTableSerializerTest.cc
  9588. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9589. Added handling for the return values from
  9590. PeerMessageUtil::createcompact().
  9591. * src/DefaultBtContext.cc (computeFastSet):
  9592. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9593. Fixed abort when peer's ip address is IPv4-mapped address.
  9594. * src/DefaultBtContext.cc (computeFastSet)
  9595. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9596. cannot handle IPv4-mapped addresses.
  9597. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9598. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9599. Proper return value handling for OpenSSL functions.
  9600. * src/LibsslDHKeyExchange.h
  9601. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9602. Random bytes generation using libgcrypt and OpenSSL.
  9603. * src/DHTUtil.{h, cc}
  9604. * test/DHTUtilTest.cc
  9605. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9606. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9607. received.
  9608. * src/DHTMessageReceiver.cc (receiveMessage)
  9609. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9610. Fixed the bug that a return code is always 0. BUG#1897704
  9611. If error occurred during the download or there exist unfinished
  9612. downloads, aria2 returns with code 1.
  9613. * src/RequestGroupMan.{h, cc}
  9614. * src/MultiUrlRequestInfo.{h, cc}
  9615. * src/main.cc
  9616. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9617. IPv6 support for SocketCore class.
  9618. TODO: In SocketCore::establishConnection(), this is insufficient to
  9619. determin the failure of connect() here because the socket is
  9620. non-blocking state. The next addresses should be tried after select().
  9621. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9622. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9623. instead which address family independent.
  9624. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9625. information in a compact peer format which is for IPv4 only.
  9626. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9627. this is a spec of BitTorrent protocol.
  9628. * src/SocketCore.{h, cc}
  9629. * src/PeerMessageUtil.cc
  9630. * test/SocketCoreTest.cc
  9631. * test/PeerMessageUtilTest.cc
  9632. * test/DHTConnectionImplTest.cc
  9633. Handle IPv4-mapped addresses.
  9634. * src/DHTNode.cc: Now identity is determined by node id.
  9635. * src/DHTMessageTrackerEntry.cc
  9636. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9637. should handle it.
  9638. * src/DHTRoutingTableDeserializer.cc
  9639. * src/DHTMessageFactoryImpl.cc
  9640. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9641. Change the unit of --stop option from a minute to a second.
  9642. * src/usage_text.h
  9643. * src/DownloadEngineFactory.cc
  9644. * src/OptionHandlerFactory.cc
  9645. * src/message.h
  9646. * src/TimedHaltCommand.cc
  9647. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9648. Make listening socket non-block mode.
  9649. * src/FtpConnection.cc
  9650. * src/FtpNegotiationCommand.{h, cc}
  9651. * src/PeerListenCommand.cc
  9652. Fixed the bug that cause slow ftp negotiation.
  9653. * src/FtpNegotiationCommand.{h, cc}
  9654. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9655. Added basic tag to --enable-dht, --dht-listen-port option.
  9656. * src/HelpItemFactory.cc (createHelpItems)
  9657. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9658. Updated text.
  9659. * src/usage_text.h
  9660. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9661. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9662. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Determin _threadtholdSpeed in each constructor for
  9664. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9665. * src/ActivePeerConnectionCommand.{h, cc}
  9666. * src/PeerReceiveHandshakeCommand.{h, cc}
  9667. * src/BtSetup.cc
  9668. * src/BtConstants.h
  9669. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. Added --bt-min-crypto-level and --bt-require-crypto options.
  9671. * src/OptionHandlerFactory.cc
  9672. * src/MSEHandshake.cc
  9673. * src/HelpItemFactory.cc
  9674. * src/option_processing.cc
  9675. * src/ReceiverMSEHandshakeCommand.cc
  9676. * src/prefs.h
  9677. * src/DefaultBtAnnounce.cc
  9678. * src/InitiatorMSEHandshakeCommand.cc
  9679. * src/usage_text.h
  9680. * test/MSEHandshakeTest.cc
  9681. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9682. Bump version number to 0.13.0b
  9683. * configure.ac
  9684. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9685. Updated doc.
  9686. * src/MessageDigestHelper.h:
  9687. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9688. Use raw message digest as a token instead of its hexadecimal
  9689. representation.
  9690. * src/DHTTokenTracker.cc (generateToken)
  9691. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9692. Added Message Stream Encryption(MSE) support.
  9693. Currently, aria2 accepts incoming connections with Obfuscation Header
  9694. and legacy BitTorrent Header and establishes connections with
  9695. Obfuscation Header first and if failed then retry with legacy
  9696. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9697. choose ARC4. The new option to change the default behavior is planned.
  9698. For tracker extension, "supportcrypto=1" is added statically.
  9699. * src/PeerInitiateConnectionCommand.{h, cc}
  9700. * src/PeerConnection.{h, cc}
  9701. * src/HandleRegistry.h
  9702. * src/SocketCore.h
  9703. * src/PeerReceiveHandshakeCommand.{h, cc}
  9704. * src/BtRegistry.{h, cc}
  9705. * src/PeerListenCommand.cc
  9706. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9707. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9708. * src/MSEHandshake.{h, cc}
  9709. * src/ARC4Encryptor.h
  9710. * src/ARC4Decryptor.h
  9711. * src/LibgcryptARC4Encryptor.h
  9712. * src/LibgcryptARC4Decryptor.h
  9713. * src/LibgcryptARC4Context.h
  9714. * src/LibsslARC4Encryptor.h
  9715. * src/LibsslARC4Decryptor.h
  9716. * src/LibsslARC4Context.h
  9717. * src/DHKeyExchange.h
  9718. * src/LibgcryptDHKeyExchange.h
  9719. * src/LibsslDHKeyExchange.h
  9720. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9721. * test/DefaultBtAnnounceTest.cc
  9722. * test/ARC4Test.cc
  9723. * test/DHKeyExchangeTest.cc
  9724. Removed prepareForRetry() because it is not used.
  9725. * src/PeerAbstractCommand.{h, cc}
  9726. * src/PeerInteractionCommand.{h, cc}
  9727. * src/PeerInitiateConnectionCommand.{h, cc}
  9728. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9729. Added the ability to load nodes from torrent file. These nodes are
  9730. added to the routing table when downloading that torrent.
  9731. * src/BtContext.h
  9732. * src/DefaultBtContext.{h, cc}
  9733. * src/DHTSetup.cc
  9734. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9735. hostname and port pair, and resolves all of them.
  9736. * src/NameResolver.{h, cc}: Added reset().
  9737. * src/RequestGroup.cc
  9738. * test/DefaultBtContextTest.cc
  9739. * test/MockBtContext.h
  9740. Removed assert() from DefaultBtContext and throw exception instead.
  9741. * src/DefaultBtContext.cc
  9742. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. Fixed segmentation fault bug when exiting if dht is disabled.
  9744. * src/RequestGroup.cc
  9745. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9746. Fixed typo in log message and define the message in message.h
  9747. * src/TimedHaltCommand.cc
  9748. * src/message.h
  9749. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. Included RecoverableException.h to fix compilation error.
  9751. * test/DHTMessageFactoryImplTest.cc
  9752. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9753. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9754. * test/DHTPingMessageTest.cc
  9755. * test/DHTGetPeersMessageTest.cc
  9756. * test/DHTFindNodeMessageTest.cc
  9757. * test/DHTAnnouncePeerMessageTest.cc
  9758. * test/MockDHTMessage.h
  9759. * test/MockDHTMessageFactory.h
  9760. * test/MockDHTMessageDispatcher.h: New class.
  9761. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9762. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9763. virtual.
  9764. * src/DHTMessageDispatcher.h
  9765. * src/DHTMessageDispatcherImpl.{h, cc}
  9766. * src/DHTSetup.cc
  9767. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9768. Adding handling of DHT error message. Just log error message and
  9769. throw exception.
  9770. * src/DHTMessageFactoryImpl.cc
  9771. * test/DHTMessageFactoryImplTest.cc
  9772. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9773. Added handling of dynamic cast failure.
  9774. * src/DHTNodeLookupTask.cc
  9775. * src/DHTPeerLookupTask.cc
  9776. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9777. Added the ability to stop aria2 itself when given time has passed
  9778. from start. Use --stop option to specify time in minutes.
  9779. When 0 is given, this feature is disabled.
  9780. * src/OptionHandlerFactory.cc
  9781. * src/TimeBasedCommand.h: Make _interval protected scope.
  9782. * src/HelpItemFactory.cc
  9783. * src/option_processing.cc
  9784. * src/prefs.h
  9785. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9786. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9787. Without this modification, the result list shows "ERR" when aria2 is
  9788. stopped by --stop option. It should be "INPR".
  9789. * src/DownloadEngine.{h, cc}
  9790. * src/DownloadEngineFactory.cc
  9791. * src/usage_text.h
  9792. * src/TimedHaltCommand.{h, cc}: New class.
  9793. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9794. Bootstrap through node added by port message.
  9795. Currently bootstrap is executed if the number of buckets in routing
  9796. table is 1.
  9797. * src/BtPortMessage.{h, cc}
  9798. * src/DefaultBtMessageFactory.{h, cc}
  9799. * src/PeerInteractionCommand.cc
  9800. * test/BtPortMessageTest.cc
  9801. * test/MockDHTTask.h
  9802. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9803. Extract the Peer class's member variables, which are only needed after
  9804. PeerInteractionCommand, into PeerSessionResource class.
  9805. This class is instantiated in PeerInteractionCommand class's ctor and
  9806. released in its dtor.
  9807. This will make Peer class lightweight and uses less memory for peers
  9808. which are not connected and wait in the queue.
  9809. * src/PeerChokeCommand.cc
  9810. * src/PeerSessionResource.{h, cc}
  9811. * src/PeerInteractionCommand.cc
  9812. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9813. * src/DefaultBtInteractive.cc
  9814. * src/BtPieceMessage.cc
  9815. * src/BtInterestedMessage.cc
  9816. * src/BtUnchokeMessage.cc
  9817. * src/DefaultPeerStorage.{h, cc}
  9818. * src/PeerInitiateConnectionCommand.cc
  9819. * src/ActivePeerConnectionCommand.cc
  9820. * src/BtNotInterestedMessage.cc
  9821. * src/DefaultBtMessageDispatcher.cc
  9822. * src/BtChokeMessage.cc
  9823. * src/BtRequestMessage.cc
  9824. * src/Peer.{h, cc}
  9825. * src/BtRegistry.h
  9826. * src/TrackerWatcherCommand.cc
  9827. * src/PeerReceiveHandshakeCommand.cc
  9828. * test/BtExtendedMessageTest.cc
  9829. * test/BtAllowedFastMessageTest.cc
  9830. * test/BtCancelMessageTest.cc
  9831. * test/DefaultPieceStorageTest.cc
  9832. * test/BtBitfieldMessageTest.cc
  9833. * test/BtHaveMessageTest.cc
  9834. * test/BtNotInterestedMessageTest.cc
  9835. * test/BtRequestMessageTest.cc
  9836. * test/PeerSessionResourceTest.cc
  9837. * test/DefaultBtMessageDispatcherTest.cc
  9838. * test/PeerTest.cc
  9839. * test/BtInterestedMessageTest.cc
  9840. * test/BtRejectMessageTest.cc
  9841. * test/BtChokeMessageTest.cc
  9842. * test/DefaultPeerStorageTest.cc
  9843. * test/BtHaveNoneMessageTest.cc
  9844. * test/BtHaveAllMessageTest.cc
  9845. * test/DefaultExtensionMessageFactoryTest.cc
  9846. * test/BtUnchokeMessageTest.cc
  9847. * test/DefaultBtMessageFactoryTest.cc
  9848. * test/HandshakeExtensionMessageTest.cc
  9849. * test/UTPexExtensionMessageTest.cc
  9850. * test/DefaultBtRequestFactoryTest.cc
  9851. * test/BtPieceMessageTest.cc
  9852. Removed typedef PeerStats.
  9853. * src/PeerStat.h
  9854. * src/SegmentMan.cc
  9855. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9856. Added std namespace to copy, remove_copy, back_inserter,
  9857. front_inserter.
  9858. * src/RequestGroupMan.cc
  9859. * src/DefaultPieceStorage.cc
  9860. * src/StreamFileAllocationEntry.cc
  9861. * src/BtFileAllocationEntry.cc
  9862. * src/RequestGroup.cc
  9863. * src/MetalinkEntry.cc
  9864. * src/DelegatingPeerListProcessor.cc
  9865. * src/DefaultBtRequestFactory.cc
  9866. * src/DefaultBtMessageDispatcher.cc
  9867. * src/version_usage.cc: Included <algorithm>
  9868. * src/main.cc
  9869. * src/MetalinkParserController.cc
  9870. * src/DefaultBtContext.cc
  9871. * src/DownloadEngineFactory.cc
  9872. * src/a2algo.h
  9873. Removed.
  9874. * test/StreamUriListParserTest.cc
  9875. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9877. ActivePeerConnectionCommand when it is given and
  9878. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9879. * src/ActivePeerConnectionCommand.{h, cc}
  9880. * src/BtSetup.cc
  9881. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9882. Only add socket to DownloadEngine's select routine when peer or
  9883. localhost is unchoked and interested. This lowers CPU usage a
  9884. little bit.
  9885. * src/PeerInteractionCommand.cc
  9886. * src/PeerAbstractCommand.{h, cc}
  9887. * src/BtInteractive.h
  9888. * src/DefaultBtInteractive.{h, cc}
  9889. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9890. Revert previous change because get_peers message is needed for
  9891. announce_peer anyway.
  9892. * src/DHTGetPeersCommand.cc
  9893. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9894. Request peers thought DHT only when download hasn't finished.
  9895. * src/DHTGetPeersCommand.cc
  9896. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9897. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9898. * src/DHTBucketRefreshTask.{h, cc}
  9899. * src/DHTSetup.cc
  9900. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9902. standard classes.
  9903. Included string.h where mem* function are used.
  9904. Added namespace aria2.
  9905. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9906. Create directory before saving DHT routing table.
  9907. Now ios::failure is now handled properly.
  9908. * src/DHTAutoSaveCommand.cc
  9909. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9910. Removed unnecessary cerr.
  9911. * src/DownloadEngine.cc
  9912. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9913. Catch exception inside DHTMessageReceiver::receiveMessage().
  9914. Log unknown message.
  9915. * src/DHTMessageReceiver.{h, cc}
  9916. * src/DHTMessageFactory.h
  9917. * src/DHTMessageFactoryImpl.{h, cc}
  9918. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9919. * src/DHTInteractionCommand.cc
  9920. * src/DHTUnknownMessage.{h, cc}
  9921. * test/DHTUnknownMessageTest.cc
  9922. * test/MockDHTMessageFactory.h
  9923. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9924. Commented out ip address comparison because a host can have multiple
  9925. ip addresses and it is hard to predict the hostname is resolved into
  9926. which one.
  9927. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9928. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9929. * po/Makefile.in: Removed since this is generated by configure.
  9930. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Fixed compiler warning about redefinition of SIZE_MAX.
  9932. Use common.h instead of config.h directly here.
  9933. * src/Platform.{h, cc}
  9934. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9935. here.
  9936. * common.h
  9937. 2008-02-02 gettextize <[email protected]>
  9938. Updated gettext related files.
  9939. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9940. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9941. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9942. Added DHT functionality, compatible with mainline.
  9943. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9944. You may need to specify entry point to DHT network using
  9945. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9946. Use --dht-listen-port to specify port number. Make sure that your
  9947. firewall configuration can pass through UDP traffic to the port.
  9948. The routing table is saved in $HOME/.aria2/dht.dat.
  9949. * src/DHT*
  9950. * src/BNode.{h, cc}
  9951. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9952. particular torrent.
  9953. * src/Data.cc: Rewritten ctor.
  9954. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9955. --dht-entry-point.
  9956. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9957. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9958. ends, remove BtContext from DHTPeerAnnounceStorage.
  9959. * src/BtPortMessage.{h, cc}: Rewritten.
  9960. * src/message.h
  9961. * src/OptionHandlerImpl.cc
  9962. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9963. --dht-entry-point.
  9964. * src/Dictionary.{h, cc} (remove): New function.
  9965. * src/prefs.h
  9966. * src/DefaultBtMessageFactory.h
  9967. * src/BtHandshakeMessage.cc
  9968. * src/ActivePeerConnectionCommand.cc
  9969. * src/SocketCore.{h, cc}: Added datagram socket support.
  9970. * src/DefaultBtMessageFactory.cc
  9971. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9972. Create DHT commands.
  9973. * src/BtMessageFactory.h
  9974. * src/PeerMessageUtil.{h, cc}
  9975. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9976. Fixed the bug that log file is not written when configuration file doesn't exist.
  9977. This is caused by using Logger class before LogFactory is not configured.
  9978. BUG #1875079
  9979. * src/option_processing.cc
  9980. Warning message "configuration doesn't exist" is only printed when --conf is
  9981. given.
  9982. * src/option_processing.cc
  9983. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9984. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9985. ShaVisitor is now deprecated and slated to be removed.
  9986. * src/DefaultBtContext.cc
  9987. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Externalize message to message.h
  9989. * src/Platform.cc
  9990. * src/message.h
  9991. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9992. Set default domain and default path to cookie.
  9993. * src/HttpResponse.cc
  9994. * src/CookieBox.{h, cc}
  9995. * src/CookieParser.{h, cc}
  9996. * test/CookieParserTest.cc
  9997. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9998. Added --no-conf and --conf-path command-line option.
  9999. --no-conf option disables loading aria2.conf file.
  10000. --conf-path option changes the configuration file path. The default
  10001. file path is $HOME/.aria2/aria2.conf
  10002. Added a warning message when the configuration file is not found.
  10003. * src/HelpItemFactory.cc
  10004. * src/option_processing.cc
  10005. * src/prefs.h
  10006. * src/usage_text.h
  10007. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Added the message to inform users that other help categories are
  10009. available in -h option.
  10010. * src/version_usage.cc
  10011. * src/TagContainer.{h, cc}
  10012. * test/TagContainerTest.cc
  10013. * src/TaggedItem.{h, cc}
  10014. * test/TaggedItemTest.cc
  10015. * src/HelpItem.h
  10016. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10017. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10018. from PiecedSegment's ctor.
  10019. Previously Piece::getAllMissingBlockIndexes() is called from
  10020. PiecedSegment() but it is rather expensive since only first element is
  10021. used.
  10022. * src/PiecedSegment.cc
  10023. * src/Piece.{h, cc}
  10024. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10025. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10026. each time these functions are called.
  10027. * src/BitfieldMan.{h, cc}
  10028. * test/BitfieldManTest.cc
  10029. * src/array_fun.h
  10030. * test/array_funTest.cc
  10031. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10032. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10033. filtered. Removed unnecessary cast to int32_t.
  10034. * src/BitfieldMan.{h, cc}
  10035. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10036. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10037. payload length(4bytes) are received. This happens because lenbufLength
  10038. is not updated in this particular case and successive call of
  10039. receiveMessage() overwrites payload length with bytes recieved which
  10040. are payload body.
  10041. * src/PeerConnection.{h, cc}
  10042. * src/message.h
  10043. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10044. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10045. peer if there are peers that have same ipaddr and port.
  10046. I've experiened segmentation fault and "pure virtual function was
  10047. called" error.
  10048. * src/Peer.h
  10049. * test/PeerTest.cc
  10050. * src/DefaultPeerStorage.cc
  10051. * test/DefaultPeerStorageTest.cc
  10052. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10053. Removed a call to isPowerOf() because it is no longer necessary here
  10054. and a request block is not always power of 2.
  10055. BUG#1866924
  10056. * src/PeerMessageUtil.cc (checkLength)
  10057. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10058. Fixed the bug that always first found Segment is removed from
  10059. usedSegmentEntries. Removed unused functions.
  10060. * src/SegmentMan.{h, cc}
  10061. * test/SegmentManTest.cc
  10062. Fixed the bug that ServerHost is not removed.
  10063. * src/RequestGroup.cc
  10064. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10065. Fixed the bug that SegmentMan::completeSegment() is not called
  10066. even if Segment is complete when --lowest-speed-limit is enabled.
  10067. BUG#1864525
  10068. * src/DownloadCommand.{h, cc}
  10069. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10070. Fixed: hash algorithm 'sha1' is always used.
  10071. * src/DownloadCommand.cc (validatePieceHash)
  10072. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. Added --enable-peer-exchange command-line option.
  10074. * src/OptionHandlerFactory.cc
  10075. * src/HelpItemFactory.cc
  10076. * src/option_processing.cc
  10077. * src/usage_text.h
  10078. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Move extension from BtRuntime to ExtensionMessageFactory, because
  10080. extension can be specified per peer, not per torrent.
  10081. * src/DefaultBtInteractive.cc
  10082. * src/BtRuntime.h
  10083. * src/ExtendedMessagingAware.h
  10084. * src/ExtensionMessageFactory.h
  10085. * src/DefaultExtensionMessageFactory.cc
  10086. * test/DefaultExtensionMessageFactoryTest.cc
  10087. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10088. Added categorized option help. Specify category using --help option.
  10089. Also added the ability to search options in forward match.
  10090. * src/HelpItem.{h, cc}
  10091. * test/HelpItemTest.cc
  10092. * src/HelpItemFactory.{h, cc}
  10093. * src/TagContainer.{h, cc}
  10094. * test/TagContainerTest.cc
  10095. * src/option_processing.cc
  10096. * src/prefs.h
  10097. * src/TaggedItem.{h, cc}
  10098. * test/TaggedItemTest.cc
  10099. * src/version_usage.cc
  10100. * src/help_tags.h
  10101. * src/usage_text.h
  10102. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10103. Fixed segmentation fault when bad torrent metainfo is parsed.
  10104. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10105. and then throw exception or skip it.
  10106. * src/DefaultBtContext.{h, cc}
  10107. * test/DefaultBtContextTest.cc
  10108. * src/AnnounceList.cc
  10109. * src/CompactPeerListProcessor.cc
  10110. * src/message.h
  10111. * src/DefaultBtAnnounce.{h, cc}
  10112. * test/DefaultBtAnnounceTest.cc
  10113. * src/BencodeVisitor.cc
  10114. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10115. Added missing "B"(=Byte). So now the message looks like this:
  10116. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10117. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10118. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. Show the seed ratio after torrent downloads.
  10120. For example, after torrent download completed and --seed-time and
  10121. --seed-ratio conditions are fulfilled, following message is printed
  10122. right after "Download complete: .....":
  10123. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10124. * src/RequestGroupMan.cc
  10125. * src/RequestGroup.{h, cc}
  10126. * src/message.h
  10127. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10128. Remove a defunct control file. A defunct control file means that while
  10129. it exists, but the corresponding download file is missing.
  10130. After its removal, a download restarts from the beginning.
  10131. * src/RequestGroup.cc
  10132. * src/message.h
  10133. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10134. Allocate bitfield in Peer when it is really used. More specifically,
  10135. bitfield in Peer is allocated after the connection is established and
  10136. deallocated when the connection is dropped.
  10137. Since 2 parameters(piece length and total length) was removed from the
  10138. constructor of Peer class, many test classes were modified accordingly.
  10139. See svn log for more detailed information.
  10140. * src/PeerInteractionCommand.cc
  10141. * src/CompactPeerListProcessor.cc
  10142. * src/Peer.cc
  10143. * src/DefaultPeerListProcessor.cc
  10144. * src/PeerListenCommand.cc
  10145. * src/PeerReceiveHandshakeCommand.cc
  10146. Fixed memory leak
  10147. * src/Piece.cc
  10148. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10149. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10150. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10151. command-line options.
  10152. * src/option_processing.cc
  10153. * src/ActivePeerConnectionCommand.cc
  10154. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. Send have message to peer if it already has the piece.
  10156. * src/BtHaveMessage.{h, cc}
  10157. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10158. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10159. port.
  10160. * src/DefaultPeerStorage.{h, cc}
  10161. * test/DefaultPeerStorageTest.cc
  10162. * src/HandshakeExtensionMessage.cc
  10163. * test/HandshakeExtensionMessageTest.cc
  10164. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10165. * src/PeerStorage.h
  10166. * test/MockPeerStorage.h
  10167. * src/PeerListenCommand.cc
  10168. * src/PeerReceiveHandshakeCommand.cc
  10169. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10170. Added --metalink-enable-unique-protocol option.
  10171. * src/Metalink2RequestGroup.cc
  10172. * src/option_processing.cc
  10173. * src/prefs.h
  10174. * src/version_usage.cc
  10175. * doc/aria2c.1.txt
  10176. * doc/aria2c.1
  10177. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10178. Allow a peer in incomingPeer to be added peers.
  10179. * src/DefaultPeerStorage.cc
  10180. * test/DefaultPeerStorageTest.cc
  10181. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10182. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10183. I could reproduce this bug in following procedure:
  10184. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10185. 2. Restart aria2.
  10186. 3. You see the download stopped around 99%.
  10187. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10188. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10189. If timeout is reached, then _nextCommand is unused and it may contains
  10190. segments and they won't be canceled. Actually, timeout is not needed
  10191. here because if the server dropped connection, then retry is made.
  10192. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10193. Added uTorrent compatible Peer Exchange.
  10194. * src/BencodeVisitor.{h, cc}
  10195. * test/BencodeVisitorTest.cc
  10196. * src/BtConstants.h
  10197. * src/BtContext.h: Added 'private' flag.
  10198. * src/BtExtendedMessage.{h, cc}
  10199. * test/BtExtendedMessageTest.cc
  10200. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10201. reserved field.
  10202. * test/BtHandshakeMessageTest.cc
  10203. * src/BtMessageFactory.h
  10204. * src/BtRegistry.h
  10205. * src/BtRuntime.h: This class holds default extension message IDs for
  10206. aria2. By default, aria2 uses ID 8 for ut_pex.
  10207. * src/DefaultBtContext.cc
  10208. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10209. When it is true, aria2 enables ut_pex. This value is set by
  10210. PeerInteractionCommand.
  10211. * src/DefaultBtMessageFactory.{h, cc}
  10212. * test/DefaultBtMessageFactoryTest.cc
  10213. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10214. handling to DefaultBtInteractive class.
  10215. * src/DefaultExtensionMessageFactory.{h, cc}
  10216. * test/DefaultExtensionMessageFactoryTest.cc
  10217. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10218. the container(peers and incomingPeers. The equality is determined by
  10219. Peer::id).
  10220. * test/DefaultPeerStorageTest.cc
  10221. * src/ExtensionMessage.h
  10222. * test/MockExtensionMessage.h
  10223. * src/ExtensionMessageFactory.h
  10224. * test/MockExtensionMessageFactory.h
  10225. * src/HandshakeExtensionMessage.{h, cc}
  10226. * test/HandshakeExtensionMessageTest.cc
  10227. * src/MetaEntry.h
  10228. * src/Peer.{h, cc}
  10229. * src/PeerInteractionCommand.cc
  10230. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10231. addIncomingPeer.
  10232. * src/PeerMessageUtil.{h, cc}
  10233. * src/PeerObject.h
  10234. * src/UTPexExtensionMessage.{h, cc}
  10235. * test/UTPexExtensionMessageTest.cc
  10236. * src/message.h
  10237. * src/prefs.h
  10238. Fixed the bug that returns incomplete data when it contains null
  10239. character. A convenient constructor was also added.
  10240. * src/Data.{h, cc}
  10241. Rewritten.
  10242. * src/CompactPeerListProcessor.cc
  10243. Fixed typos.
  10244. * src/message.h
  10245. * src/MetaFileUtil.cc
  10246. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10247. Added "Status Legend" label to the explanation text of 'stat' in
  10248. download result and moved it to the last. BUG#1848214
  10249. * src/RequestGroupMan.cc
  10250. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10251. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10252. * src/Makefie.am
  10253. * test/Makefile.am
  10254. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10255. Fixed the bug that prevents aria2 from loading cookie file when expire
  10256. value is greater than 2^31-1. BUG#1851066
  10257. * src/CookieBoxFactory.cc
  10258. * test/CookieBoxFactoryTest.cc
  10259. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10260. Fixed possible memory leak when an exception is thrown.
  10261. * src/XML2SAXMetalinkProcessor.cc
  10262. Added Expat support. If both libxml2 and Expat are installed, then
  10263. libxml2 is used by default.
  10264. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10265. ExpatMetalinkProcessor according to the configuration.
  10266. * src/ExpatMetalinkProcessor.{h, cc}
  10267. * src/main.cc: Removed libxml2 specific header and init/free function.
  10268. * src/MetalinkProcessorFactory.{h, cc}
  10269. * src/MetalinkHelper.cc
  10270. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10271. * src/MetalinkProcessor.h
  10272. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10273. MetalinkProcessorTest is used instead.
  10274. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10275. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10276. MetalinkProcessorFactory::newInstance().
  10277. * m4/libexpat.m4
  10278. * configure.ac: Added configuration options for libexpat.
  10279. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. Disabled -s option in metalink download.
  10281. * src/Metalink2RequestGroup.cc
  10282. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10283. If several protocols are available for a mirror in metalink file,
  10284. aria2 now use one of them. --metalink-preferred-protocol option was
  10285. added to specify the preference of protocol.
  10286. * src/AbstractCommand.cc
  10287. * src/OptionHandlerFactory.cc
  10288. * src/ServerHost.{h, cc}
  10289. * src/Metalink2RequestGroup.cc
  10290. * src/RequestGroup.{h, cc}
  10291. * test/RequestGroupTest.cc
  10292. * src/option_processing.cc
  10293. * src/prefs.h
  10294. * src/HttpResponseCommand.cc
  10295. * src/MetalinkResource.{h, cc}
  10296. * src/FtpNegotiationCommand.cc
  10297. * src/MetalinkEntry.{h, cc}
  10298. * src/MetalinkEntryTest.cc
  10299. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10300. Code cleanup and added debug log.
  10301. * src/PeerConnection.cc
  10302. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10303. Compiler error fix: applied the patch by Tiziano Mueller
  10304. * src/RequestGroup.cc
  10305. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10306. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10307. in stopped and completed event.
  10308. * src/AnnounceList.{h, cc}
  10309. * test/AnnounceListTest.cc
  10310. * src/DefaultBtAnnounce.cc
  10311. * test/DefaultBtAnnounceTest.cc
  10312. Sorted URLs.
  10313. * test/Metalink2RequestGroupTest.cc
  10314. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10315. Removed unnecessary string copy. Updated doc and corrected indentation.
  10316. * src/Base64.cc
  10317. Fixed compilation warnings
  10318. * test/DataTest.cc
  10319. * test/HttpRequestTest.cc
  10320. * test/MetaFileUtilTest.cc
  10321. * test/RequestTest.cc
  10322. * Release 0.12.0
  10323. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. Updated translations
  10325. * po/{de,fr,ja,nl,ru}.po
  10326. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10327. translations. Many thanks to translators.
  10328. * po/{ca,es,it,pt_BR,sv}.po
  10329. * po/LINGUAS
  10330. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10331. Added a notice about URL
  10332. * src/version_usage.cc
  10333. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10334. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10335. aria2 repeatedly sends stopped request when tracker returns error code.
  10336. * src/AnnounceList.cc
  10337. * test/AnnounceListTest.cc
  10338. * src/AnnounceTier.h
  10339. Added a message when ctrl-c is hit.
  10340. Now second ctrl-c is also handled in signal handler.
  10341. * src/RequestGroupMan.{h, cc}
  10342. * src/RequestGroup.{h, cc}
  10343. * src/MultiUrlRequestInfo.cc
  10344. * src/DownloadEngine.cc
  10345. * src/TrackerWatcherCommand.cc
  10346. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10347. Code cleanup
  10348. * src/Base64.cc (encode)
  10349. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10350. Changed Direct/IO enable/disable procesure in file allocation routine.
  10351. * src/SingleFileAllocationIterator.cc
  10352. (SingleFileAllocationIterator):
  10353. Disable directIO if offset is not multiple of 512.
  10354. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10355. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10356. Enable created SingleFileAllocationIterator's directIO.
  10357. * src/FileAllocationEntry.cc
  10358. (FileAllocationEntry): Enable directIO here.
  10359. (~FileAllocationEntry): Disable directIO here.
  10360. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10362. * src/Peer.{h, cc}
  10363. * src/DefaultPieceStorage.cc
  10364. * test/DefaultPieceStorageTest.cc
  10365. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10366. Rewritten direct I/O support routine
  10367. * src/SingleFileAllocationIterator.cc
  10368. * src/MultiDiskAdaptor.{h, cc}
  10369. * src/ByteArrayDiskWriter.h
  10370. * src/AbstractSingleDiskAdaptor.h
  10371. * src/AbstractDiskWriter.cc
  10372. * src/DefaultPieceStorage.cc
  10373. * src/DiskWriter.h
  10374. * src/BinaryStream.h
  10375. * src/IteratableChunkChecksumValidator.cc
  10376. * src/IteratableChecksumValidator.cc
  10377. * src/CheckIntegrityEntry.cc
  10378. * src/FileAllocationEntry.cc
  10379. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10380. Fixed typo
  10381. * src/version_usage.cc
  10382. Updated doc
  10383. * doc/aria2c.1.txt
  10384. * doc/aria2c.1
  10385. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10386. Fixed compile error without message digest support.
  10387. * src/FileMetalinkParserState.cc
  10388. * src/MetalinkParserController.{h, cc}
  10389. * test/XML2SAXMetalinkProcessorTest.cc
  10390. * test/MetalinkParserControllerTest.cc
  10391. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. Enable direct I/O support in checksum checking.
  10393. * src/IteratableChunkChecksumValidator.{h, cc}
  10394. * test/IteratableChunkChecksumValidatorTest.cc
  10395. * src/CheckIntegrityEntry.cc
  10396. * src/PieceHashCheckIntegrityEntry.cc
  10397. * src/IteratableChecksumValidator.{h, cc}
  10398. * src/BtCheckIntegrityEntry.cc: Added doc.
  10399. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. Added --allow-piece-length-change option.
  10401. * src/DefaultBtProgressInfoFile.cc
  10402. * test/DefaultBtProgressInfoFileTest.cc
  10403. * src/OptionHandlerFactory.cc
  10404. * src/option_processing.cc
  10405. * src/prefs.h
  10406. * src/version_usage.cc
  10407. * doc/aria2c.1.txt
  10408. * doc/aria2c.1
  10409. Fixed: duplicated result entry appears when exception is thrown in
  10410. RequestGroup::createInitiateConnectionCommand().
  10411. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10412. Add RequestGroup to _requestGroup after RequetGroup::
  10413. createInitiateConnectionCommand() succeeds.
  10414. Externalized message
  10415. * src/XML2SAXMetalinkProcessor.cc
  10416. * src/message.h
  10417. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10418. Forced download abort when received negative response from http/ftp
  10419. server.
  10420. * src/HttpResponseCommand.cc
  10421. * src/FtpNegotiationCommand.cc
  10422. * src/HttpResponse.cc
  10423. * src/FtpConnection.cc
  10424. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10425. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10426. the predecessor, Xml2MetalinkParser class.
  10427. I tested them against 94KB metalink file with 1234 chunk checksums.
  10428. The new one parsed it in 22msec, while it took 6000msec with old one.
  10429. * src/XML2SAXMetalinkProcessor.{h, cc}
  10430. * test/XML2SAXMetalinkProcessorTest.cc
  10431. * src/MetalinkParserController.{h, cc}
  10432. * test/MetalinkParserControllerTest.cc
  10433. * src/MetalinkParserState.h: Also added 16 subclasses.
  10434. * src/main.cc
  10435. * src/Metalink2RequestGroup.cc
  10436. * src/MetalinkHelper.cc
  10437. * src/MetalinkEntry.cc
  10438. * src/ChunkChecksum.h
  10439. Rewritten Base64 class for better performance.
  10440. * src/Base64.{h, cc}
  10441. * test/Base64Test.cc
  10442. * src/HttpRequest.cc
  10443. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10444. Fixed the bug#1841757: aria2 will connect to server to only get
  10445. file size.
  10446. * src/StreamFileAllocationEntry.cc
  10447. * src/option_processing.cc
  10448. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10449. downloads.
  10450. * src/FtpNegotiationCommand.cc
  10451. Suppressed wrong message when finding PreDownloadHandler
  10452. * src/RequestGroup.cc
  10453. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10454. Updated usage
  10455. * src/version_usage.cc
  10456. Updated man page
  10457. * doc/aria2c.1.txt
  10458. * doc/aria2c.1
  10459. Updated po files
  10460. * po/aria2c.pot
  10461. * po/*.po
  10462. * po/*.gmo
  10463. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10464. Eliminated g++-4.2 warning
  10465. * src/DownloadHandlerConstants.{h, cc}
  10466. * src/Util.cc
  10467. * test/MetaFileUtilTest.cc
  10468. * test/PStringBuildVisitorTest.cc
  10469. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10470. * src/RequestGroup.cc
  10471. * src/BtCheckIntegrityEntry.cc
  10472. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10473. Fixed a2io.h
  10474. * src/a2io.h
  10475. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. Added direct I/O support. The current implementation uses O_DIRECT,
  10477. which is not posix standard and is tested on linux 2.6.21.
  10478. Currently only file allocation uses direct I/O.
  10479. * src/SingleFileAllocationIterator.{h, cc}
  10480. * test/SingleFileAllocationIteratorTest.cc
  10481. * src/MultiFileAllocationIterator.{h, cc}
  10482. * test/MultiFileAllocationIteratorTest.cc
  10483. * src/BinaryStream.h
  10484. * src/DiskWriter.h
  10485. * src/AbstractDiskWriter.{h, cc}
  10486. * src/ByteArrayDiskWriter.h
  10487. * src/DiskAdaptor.h
  10488. * src/AbstractSingleDiskAdaptor.{h, cc}
  10489. * src/MultiDiskAdaptor.{h, cc}
  10490. * src/FileAllocationEntry.cc
  10491. * src/Util.{h, cc}
  10492. * src/OptionHandlerFactory.cc
  10493. * src/prefs.h
  10494. * src/version_usage.cc
  10495. * src/option_processing.cc
  10496. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10497. handleException.
  10498. * src/MultiFileAllocationIterator.cc
  10499. Added EINTR handling
  10500. * src/SocketCore.cc
  10501. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10502. Updated usage
  10503. * src/version_usage.cc
  10504. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10505. Applied Ross's patch for MinGW port.
  10506. * src/DownloadEngine.h
  10507. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10508. Set Content-Type to SingleFileDownloadContext when http response is
  10509. received.
  10510. * src/HttpResponseCommand.cc
  10511. * src/HttpResponse.{h, cc}
  10512. * test/HttpResponseTest.cc
  10513. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10514. Rewritten to add content-type support.
  10515. * src/DownloadHandler.{h, cc}
  10516. * src/BtPostDownloadHandler.{h, cc}
  10517. * test/BtPostDownloadHandlerTest.cc
  10518. * src/MetalinkPostDownloadHandler.{h, cc}
  10519. * test/MetalinkPostDownloadHandlerTest.cc
  10520. * src/PostDownloadHandler.{h, cc}
  10521. * src/DownloadHandlerConstants.{h, cc}
  10522. * src/RequestGroup.cc
  10523. * src/HttpResponseCommand.cc
  10524. * src/FtpNegotiationCommand.cc
  10525. * src/SingleFileDownloadContext.{h, cc}
  10526. * src/RequestGroup.h
  10527. * src/RequestGroupCriteria.h
  10528. * src/ContentTypeRequestGroupCriteria.h
  10529. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10530. If it is give, metalink/torrent file is not written to the disk, but
  10531. just is kept in memory. Parsing is occurred on memory.
  10532. * src/MetalinkHelper.{h, cc}
  10533. * src/MetalinkProcessor.h
  10534. * src/Xml2MetalinkProcessor.{h, cc}
  10535. * test/Xml2MetalinkProcessorTest.cc
  10536. * src/DownloadHandlerFactory.{h, cc}
  10537. * test/DownloadHandlerFactoryTest.cc
  10538. * src/PreDownloadHandler.{h, cc}
  10539. * src/OptionHandlerFactory.cc
  10540. * src/DefaultBtContext.{h, cc}
  10541. * test/DefaultBtContextTest.cc
  10542. * src/version_usage.cc
  10543. * src/Metalink2RequestGroup.{h, cc}
  10544. * src/RequestGroup.{h, cc}
  10545. * src/a2functional.h
  10546. * test/a2functionalTest.cc
  10547. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10548. * src/OptionHandlerImpl.h
  10549. * src/prefs.h
  10550. * src/Util.{h, cc}
  10551. * test/UtilTest.cc
  10552. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10553. memory usage.
  10554. * src/RequestGroupMan.{h, cc}
  10555. * src/DownloadEngine.cc
  10556. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10557. WeakHandle to SharedHandle because WeakHandle could be null.
  10558. * src/RequestGroup.{h, cc}
  10559. * src/DownloadEngineFactory.cc
  10560. * src/DownloadResult.h
  10561. Set totalLength after download finished
  10562. * src/UnknownLengthPieceStorage.{h, cc}
  10563. Keep torrent file specified in metalink in memory.
  10564. * src/Metalink2RequestGroup.cc
  10565. * src/BtDependency.cc
  10566. * src/TrueRequestGroupCriteria.h
  10567. Fixed the bug: seekg is used where seekp should be used.
  10568. * src/ByteArrayDiskWriter.cc
  10569. * test/ByteArraydiskWriterTest.cc
  10570. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10571. Fixed syntax error
  10572. * test/SequenceTest.cc
  10573. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10574. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10575. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10576. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10577. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10578. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10579. Added the check to see whether ares_host_callback accepts timeouts
  10580. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10581. * src/NameResolver.{h, cc}
  10582. * m4/libcares.m4
  10583. * configure.ac: Set C++ for language choice.
  10584. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10585. Fixed: compilation fails without c-ares/ares
  10586. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10587. Generate http/ftp commands only when download is incomplete.
  10588. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10589. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10590. Corrected typo. Examples are removed since they are available in man
  10591. page.
  10592. * src/version_usage.cc
  10593. Updated man page.
  10594. * doc/aria2c.1
  10595. * doc/aria2c.1.txt
  10596. * doc/makeman: Commented out sed command.
  10597. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10598. Throw DlAbortEx when a remote file is not found.
  10599. * src/HttpResponse.cc
  10600. * src/FtpNegotiationCommand.cc
  10601. * src/message.h
  10602. Overwrite an existing file if --allow-overwrite=true is given.
  10603. * src/RequestGroup.cc
  10604. Removed unused functions
  10605. * src/AbstractCommand.h
  10606. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10607. Removed 'extern' from 'extern typedef ...' in src/*.h
  10608. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10609. Updated usage
  10610. * src/version_usage.cc
  10611. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10612. Trim announce URL
  10613. * src/DefaultBtContext.cc
  10614. * test/ShaVisitorTest.cc
  10615. Trim argument s. Give trimed s to exception constructor.
  10616. * src/Util.cc (parseInt)(parseLLInt)
  10617. * test/UtilTest.cc
  10618. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10619. Set precision back to 1.
  10620. * src/ConsoleStatCalc.cc (calculateStat)
  10621. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10622. Replaced strtol with Util::parseInt
  10623. * src/ChunkedEncoding.cc
  10624. * src/HttpConnection.cc
  10625. * src/CookieBoxFactory.cc
  10626. * src/ParameterizedStringParser.cc
  10627. * src/Util.cc
  10628. * test/UtilTest.cc
  10629. * test/OptionHandlerTest.cc
  10630. * src/Request.cc
  10631. Throw exception when empty string is given. The message for exception
  10632. changed.
  10633. * src/Util.cc (parseInt)(parseLLInt)
  10634. * src/message.h
  10635. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10636. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10637. set to 1.
  10638. * src/ConsoleStatCalc.cc (calculateStat)
  10639. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10640. Preallocate non-requested file which is adjacent forward to requested
  10641. file('requested' files means the files given in --select-file option)
  10642. if they share a same piece.
  10643. This fixes long pause in the file system which doesn't support sparse
  10644. files like FAT32 while downloading.
  10645. * src/MultiFileAllocationIterator.{h, cc}
  10646. * test/MultiFileAllocationIteratorTest.cc
  10647. * src/FileEntry.{h, cc}
  10648. Removed unused _option.
  10649. * src/MultiDiskAdaptor.h
  10650. * test/MultiDiskAdaptorTest.cc
  10651. * src/DefaultPieceStorage.cc
  10652. Set the default value of --seed-ratio to 1.0.
  10653. If 0.0 is given, then seeding continues regardless of share ratio.
  10654. * src/version_usage.cc
  10655. * src/option_processing.cc
  10656. * src/BtSetup.cc
  10657. * doc/aria2c.1.txt
  10658. * doc/aria2c.1
  10659. Fixed: Selective download is not working in BitTorrent
  10660. * src/RequestGroup.cc
  10661. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10662. * src/PieceStorage.h
  10663. * test/MockPieceStorage.h
  10664. * src/UnknownLengthPieceStorage.h
  10665. * src/DefaultPieceStorage.{h, cc}
  10666. * src/Metalink2RequestGroup.cc
  10667. * src/RequestGroup.cc
  10668. * src/Sequence.h
  10669. * test/SequenceTest.cc
  10670. * src/IntSequence.h
  10671. * src/message.h
  10672. * src/Util.{h, cc}
  10673. * test/UtilTest.cc
  10674. Added new function 'parse' to catch exception thrown by subclass's
  10675. parseArg
  10676. * src/OptionHandler.h
  10677. * src/OptionParser.cc
  10678. * src/NameMatchOptionHandler.h
  10679. * src/OptionHandlerImpl.h
  10680. * test/OptionHandlerTest.cc
  10681. Added IntegerRangeOptionHandler. Used for --listen-port and
  10682. --select-file. Now --listen-port accepts range of port.
  10683. * src/OptionHandlerFactory.cc
  10684. * src/version_usage.cc
  10685. * src/OptionHandlerImpl.h
  10686. * src/option_processing.cc
  10687. * src/BtSetup.cc
  10688. * src/PeerListenCommand.{h, cc}
  10689. * doc/aria2c.1.txt
  10690. * doc/aria2c.1
  10691. Implemented operator< for Exception class to provide easy way to print
  10692. exception stack trace.
  10693. * src/Exception.{h, cc}
  10694. * src/main.cc
  10695. * src/option_processing.cc
  10696. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10697. * src/version_usage.cc
  10698. (showVersion): Reworked.
  10699. (showUsage): Added examples.
  10700. Removed Hint for total length and file name.
  10701. * src/Metalink2RequestGroup.cc
  10702. * src/RequestGroup.{h, cc}
  10703. * src/HttpResponseCommand.cc
  10704. * src/FtpNegotiationCommand.cc
  10705. Now --follow-torrent and --follow-metalink option work properly.
  10706. * src/RequestGroup.cc
  10707. Updated man page
  10708. * doc/aria2c.1.txt
  10709. * doc/aria2c.1
  10710. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10711. Removed.
  10712. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10713. Use Segment::operator==()
  10714. * src/HttpConnection.cc
  10715. * src/Segment.h
  10716. Updated usage
  10717. * src/version_usage.cc
  10718. Added EINTR treatment.
  10719. * src/SocketCore.cc
  10720. * src/AbstractDiskWriter.cc
  10721. Rewritten.
  10722. * src/Util.cc (rangedFileCopy)
  10723. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10724. Fixed typo.
  10725. * src/version_usage.cc
  10726. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10727. Implemented. Now -c option works fine.
  10728. * src/DefaultPieceStorage.cc (markPiecesDone)
  10729. * test/DefaultPieceStorageTest.cc
  10730. Removed.
  10731. * src/SegmentMan.{h, cc}
  10732. (markAllPiecesDone)
  10733. (markPieceDone)
  10734. Synchronized po files with
  10735. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10736. * src/fr.po
  10737. * src/ru.po
  10738. * src/de.po
  10739. * src/ja.po
  10740. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10741. Added ifdef and some modifications to compile without BitTorrent,
  10742. Metalink, MessageDigest
  10743. support.
  10744. * src/PieceHashCheckIntegrityEntry.cc
  10745. * src/MetalinkEntry.h
  10746. * src/version_usage.cc
  10747. * src/main.cc
  10748. * src/DownloadEngine.{h, cc}
  10749. * src/Metalink2RequestGroup.cc
  10750. * src/Peer.cc
  10751. * src/RequestGroup.cc
  10752. * src/MetalinkHelper.cc
  10753. * test/DefaultPieceStorageTest.cc
  10754. * test/MetalinkPostDownloadHandlerTest.cc
  10755. * test/Metalink2RequestGroupTest.cc
  10756. Hide TOTAL SPD when all downloads complete.
  10757. * src/ConsoleStatCalc.cc
  10758. Log target system information.
  10759. * src/main.cc
  10760. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10761. Now --metalink-location accepts a comma-deliminated list of locations.
  10762. * src/MetalinkEntry.{h, cc}
  10763. * test/MetalinkEntryTest.cc
  10764. * src/version_usage.cc
  10765. * src/Metalink2RequestGroup.cc
  10766. * src/Xml2MetalinkProcessor.cc
  10767. * test/Xml2MetalinkProcessorTest.cc
  10768. * doc/aria2c.1.txt
  10769. * doc/aria2c.1
  10770. * src/Util.cc (toUpper)(toLower): Rewritten.
  10771. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. Added the ability to detect duplicate download entry which is about to
  10773. download the same file other RequestGroup is downloading.
  10774. * src/RequestGroup.cc
  10775. * src/HttpResponseCommand.cc
  10776. * src/FtpNegotiationCommand.cc
  10777. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10778. Recalculates download progress when loading a control file,
  10779. if the piece length of DownloadContext is different from the one saved
  10780. in the control file. Currently in-flight pieces are ignored.
  10781. * src/DefaultBtProgressInfoFile.cc
  10782. * test/DefaultBtProgressInfoFileTest.cc
  10783. * src/Util.{h, cc}
  10784. * test/UtilTest.cc
  10785. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10786. Do not rotate tiers in announce-list.
  10787. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10788. AnnounceList::allTiersFailed() used instead to detect whether all
  10789. tiers are tried and failed.
  10790. * test/DefaultBtAnnounceTest.cc
  10791. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10792. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10793. * test/AnnounceListTest.cc
  10794. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10795. clause. Catch RecoverableException instead of DlRetryEx instead.
  10796. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10797. Implemented checksum validation feature(1 checksum for each file)
  10798. The validation takes place after the download.
  10799. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10800. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10801. * src/CheckIntegrityCommand.cc: Changed log message.
  10802. * src/Metalink2RequestGroup.cc: Set checksum to
  10803. SingleFileDownloadContext.
  10804. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10805. PieceHashCheckIntegrity class.
  10806. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10807. PieceHashCheckIntegrity class.
  10808. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10809. * src/IteratableValidator.h: New class.
  10810. * src/message.h
  10811. * src/CheckIntegrityEntry.{h, cc}
  10812. * src/IteratableChunkChecksumValidator.{h, cc}
  10813. * src/SingleFileDownloadContext.h
  10814. * src/DownloadCommand.cc
  10815. --allow-overwrite=true is no longer needed to check file integrity
  10816. before download in BitTorrent download.
  10817. * src/RequestGroup.cc (getInitialCommand)
  10818. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10819. throws exception.
  10820. * src/RequestGroupMan.cc (getInitialCommands)
  10821. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10822. urlencode the given url inside Request::parseUrl(...)
  10823. * src/Request.{h, cc}
  10824. * src/Util.{h, cc}
  10825. * test/RequestTest.cc
  10826. Removed #!metalink3! notation support because it is deleted from
  10827. the metalink specification.
  10828. * src/Request.{h, cc}
  10829. * test/RequestTest.cc
  10830. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10831. Don't connect server before checking file integrity at startup, if
  10832. filesize and output file path are known.
  10833. * src/AbstractCommand.cc
  10834. * src/StreamFileAllocationEntry.cc
  10835. * src/Metalink2RequestGroup.cc
  10836. * src/RequestGroup.{h, cc}
  10837. * src/HttpResponseCommand.cc
  10838. * src/FtpNegotiationCommand.cc
  10839. Added DownloadFailureException. If it is thrown, RequestGroup should
  10840. halt.
  10841. * src/AbstractCommand.cc
  10842. * src/DownloadFailureException.h
  10843. * src/RequestGroup.cc
  10844. Catch RecoverableException, instead of DlAbortEx.
  10845. * src/RequestGroupMan.cc
  10846. * src/FillRequestGroupCommand.cc
  10847. * src/MetaFileUtil.cc
  10848. * src/IteratableChunkChecksumValidator.cc
  10849. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10850. getGID())
  10851. * src/CheckIntegrityCommand.cc
  10852. * src/message.h
  10853. Print gid instead of idx.
  10854. * src/RequestGroupMan.cc
  10855. Removed exception throwers declaration.
  10856. * src/DirectDiskAdaptor.{h, cc}
  10857. * src/SocketCore.{h, cc}
  10858. * src/MultiDiskAdaptor.{h, cc}
  10859. * src/HttpConnection.{h, cc}
  10860. * src/HttpResponse.{h, cc}
  10861. * src/DiskAdaptor.{h, cc}
  10862. * src/CopyDiskAdaptor.{h, cc}
  10863. * src/MultiDiskAdaptor.{h, cc}
  10864. * src/HttpHeaderProcessor.{h, cc}
  10865. * src/AbstractSingleDiskAdaptor.{h, cc}
  10866. * src/Util.{h, cc}
  10867. * test/UtilTest.cc
  10868. * src/DefaultDiskWriter.{h, cc}
  10869. * src/FtpConnection.{h, cc}
  10870. * src/AbstractDiskWriter.{h, cc}
  10871. Removed duplicate code.
  10872. * src/StreamCheckIntegrityEntry.cc
  10873. Removed unnecessary include.
  10874. * src/DiskWriter.h
  10875. Included Exception.h
  10876. * src/option_processing.cc
  10877. Included 2 files and added doc
  10878. * src/TrackerWatcherCommand.cc
  10879. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10880. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10881. Changed CheckIntegrityEntry interface so that it can define
  10882. the action when all the chunk checksums are valid.
  10883. * src/CheckIntegrityEntry.h
  10884. * src/StreamCheckIntegrityEntry.{h, cc}
  10885. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10886. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10887. to exit rather than doing seeding. So, it would be good to toggle this
  10888. behavior.
  10889. * src/CheckIntegrityCommand.cc
  10890. * src/AbstractCommand.cc
  10891. * src/RequestGroup.cc
  10892. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10893. Reflect the download length of in-flight pieces.
  10894. It makes the download length readout more precise.
  10895. * src/DefaultPieceStorage.{h, cc}
  10896. * test/DefaultPieceStorageTest.cc
  10897. * src/a2functional.h
  10898. * test/a2functionalTest.cc
  10899. Lower CPU load when --max-download-limit is used.
  10900. There is up and down in speed indicator when enabling
  10901. http-pipelining but a download goes well. I think the problem is that
  10902. because http-pipelining is enabled, DownloadCommand is created for
  10903. each segment and in its constructor, PeerStat::downloadStart() is
  10904. called. In PeerStat::downloadStart(), speed calculation object is
  10905. reseted, which makes download speed zero.
  10906. * src/DownloadCommand.cc
  10907. Rewritten using accumulate.
  10908. * src/RequestGroupMan.cc (calculateStat)
  10909. Code clearnup.
  10910. * src/FtpNegotiationCommand.cc
  10911. * src/HttpResponseCommand.cc
  10912. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10913. Fixed: Can not resume: aria2 reports download already finished.
  10914. * src/AbstractCommand.{h, cc}
  10915. * src/HttpResponseCommand.cc
  10916. * src/FtpNegotiateCommand.cc
  10917. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10918. Now a file is stored in the directory specified in .metalnk file
  10919. (file[@name]).
  10920. * src/Metalink2RequestGroup.cc
  10921. Create the directory structure when opening the file if it doesn't
  10922. exist.
  10923. * src/AbstractDiskWriter.cc
  10924. * src/Util.{h, cc}
  10925. * src/File.h
  10926. * test/UtilTest.cc
  10927. Removed file name comparison
  10928. * src/Metalink2RequestGroup.cc
  10929. * src/HttpResponseCommand.cc
  10930. Rewritten using Util::mkdirs()
  10931. * src/FileEntry.cc (setupDir)
  10932. * test/FileEntryTest.cc
  10933. Updated doc
  10934. * src/SingleFileDownloadContext.h
  10935. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10936. Now SleepCommand dispatches nextCommand when halt is requested.
  10937. It avoids a possible long wait after hitting CTRL-C.
  10938. * src/SleepCommand.{h, cc}
  10939. * src/RequestGroupAware.{h, cc}
  10940. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10941. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10942. to open listen port, then remove the port number from the tracker
  10943. request.
  10944. * src/DefaultBtAnnounce.cc
  10945. * test/DefaultBtAnnounceTest.cc
  10946. * test/MockPieceStorage.h
  10947. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10948. them more testable.
  10949. * src/DefaultBtAnnounce.{h, cc}
  10950. * src/DefaultBtContext.{h, cc}
  10951. * src/Util.{h, cc}
  10952. * test/DefaultBtAnnounceTest.cc
  10953. * test/DefaultBtContextTest.cc
  10954. * test/UtilTest.cc
  10955. Added 'B' to upload bytes readout.
  10956. * src/ConsoleStatCalc.cc
  10957. Now the listen port for BitTorrent download is opened when it is
  10958. needed.
  10959. * src/DownloadEngineFactory.cc
  10960. * src/BtSetup.{h, cc}
  10961. * src/PeerListenCommand.{h, cc}
  10962. Now an exception thrown while parsing tracker response is now logged.
  10963. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10964. called, which means no retry is made in this case, assuming a tracker
  10965. has a problem.
  10966. * src/TrackerWatcherCommand.cc
  10967. Fixed: downloading a file whose length is unkown fails.
  10968. * src/DownloadCommand.cc
  10969. Simplified prepareForNextSegment()
  10970. * src/DownloadCommand.cc
  10971. Updated
  10972. * po/POTFILES.in
  10973. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10974. Re-implemented a file listing for Metalink, which was dropped while
  10975. http/ftp/torrent integration was being implemented.
  10976. * src/MetalinkHelper.{h, cc}: New class.
  10977. * test/MetalinkHelperTest.cc
  10978. * src/main.cc
  10979. * src/Metalink2RequestGroup.cc
  10980. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10981. Added the ability to display the detailed torrent file information.
  10982. Now -S option gives not only a file listing, but also total download
  10983. length, info hash, announce URI, piece length, the number of pieces,
  10984. and mode(single or multi-torrent).
  10985. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10986. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10987. KiB)
  10988. * test/UtilTest.cc
  10989. * src/main.cc
  10990. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10991. Added ftp://USER:PASSWD@Servername automatic parsing.
  10992. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10993. _password. Recognize username and password in URI.
  10994. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10995. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10996. * src/RequestFactory.{h, cc}: Removed.
  10997. * src/AuthConfigFactory.{h, cc}: New class.
  10998. * src/FtpConnection.cc: Use AuthConfigFactory.
  10999. * src/HttpRequest.cc: Use AuthConfigFactory.
  11000. * test/HttpRequestTest.cc: Updated.
  11001. * test/RequestTest.cc: Updated.
  11002. * test/AuthConfigFactoryTest.cc: New class.
  11003. * test/RequestFactoryTest.cc: Removed.
  11004. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11005. Use RequestGroup::allDownloadFinished() to decide whether the control
  11006. file should be removed or saved.
  11007. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11008. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11009. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11010. Use File::renameTo()
  11011. * src/DefaultBtProgressInfoFile.cc
  11012. Added --no-file-allocation-limit command-line option.
  11013. * src/version_usage.cc
  11014. * src/option_processing.cc
  11015. * src/OptionHandlerFactory.cc
  11016. * src/RequestGroup.{h, cc}
  11017. * src/BtCheckIntegrityEntry.cc
  11018. * src/StreamCheckIntegrityEntry.cc
  11019. * src/prefs.h
  11020. * doc/aria2c.1.txt
  11021. * doc/aria2c.1
  11022. Now prealloc is the default value for --file-allocation option.
  11023. * src/version_usage.cc
  11024. * src/option_processing.cc
  11025. * doc/aria2c.1.txt
  11026. * doc/aria2c.1
  11027. Don't URL-encode user-agent.
  11028. * src/HttpRequest.cc
  11029. Updated translations
  11030. * po/LINGUAS: Added nl for Dutch translation.
  11031. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11032. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11033. * po/POTFILES.in: Updated.
  11034. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11035. Added the ability to recognize url-list in a torrent file.
  11036. The retrieved URLs are attached to the corresponding FileEntry.
  11037. * src/DefaultBtContext.{h, cc}
  11038. * src/FileEntry.{h, cc}
  11039. * test/DefaultBtContextTest.cc
  11040. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11041. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11042. after the download finishes.
  11043. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11044. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11045. the data smaller than block length.
  11046. A block length can be specified by constructor's argument.
  11047. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11048. Get a missing piece in the range of given FileEntry. This function is
  11049. not used in the program yet.
  11050. * src/Util.h: Added some macros.
  11051. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11052. Added HTTP/1.1 keep alive and pipelining support.
  11053. See --enable-http-keep-alive and --enable-http-pipelining option.
  11054. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11055. Segment.
  11056. * src/HttpDownloadCommand.{h, cc}
  11057. * src/OptionHandlerFactory.cc
  11058. * src/HttpConnection.{h, cc}
  11059. * src/version_usage.cc
  11060. * src/HttpInitiateConnectionCommand.cc
  11061. * src/FtpInitiateConnectionCommand.cc
  11062. * src/Segment.h
  11063. * src/HttpRequestCommand.{h, cc}
  11064. * src/option_processing.cc
  11065. * src/prefs.h
  11066. * src/HttpResponseCommand.cc
  11067. * src/SegmentMan.{h, cc}
  11068. * src/FtpNegotiateCommand.cc
  11069. * src/HttpProxyResponseCommand.cc
  11070. * src/Request.cc
  11071. * src/HttpRequest.cc
  11072. * src/DownloadCommand.cc
  11073. * test/HttpRequestTest.cc
  11074. * test/RequestTest.cc
  11075. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11076. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11077. finished.
  11078. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11079. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11080. catching it inside the method.
  11081. When no file entry is found in a metalink without querying user
  11082. preferences, throw the exception with the error message that suggests
  11083. metalink file is probably broken.
  11084. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11085. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11086. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11087. processed.
  11088. * src/RequestGroupMan.cc (removeStoppedGroup)
  11089. Added debug message.
  11090. * src/BtPostDownloadHandler.cc
  11091. * src/MetalinkPostDownloadHandler.cc
  11092. * src/PostDownloadHandler.{h, cc}
  11093. * src/RequestGroup.cc
  11094. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11095. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11096. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11097. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11098. stops and there are any unfinished or in-progress downloads.
  11099. Added the legend of "stat".
  11100. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11101. Throw exception when chunck checksum verification fails.
  11102. * src/DownloadCommand.cc (validatePieceHash): New function.
  11103. * src/PiecedSegment.{h, cc} (clear): New function.
  11104. * src/GrowSegment.{h, cc} (clear): New function.
  11105. * src/Segment.h (clear): New function.
  11106. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11107. * test/SegmentTest.cc
  11108. * test/GrowSegmentTest.cc
  11109. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11110. Do not send referer when redirected.
  11111. * src/Request.cc (redirectUrl)
  11112. * test/RequestTest.cc
  11113. * test/HttpRequestTest.cc
  11114. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11115. Implemented BitTorrent/http/ftp integrated download.
  11116. I've rewritten lots of files and now some headers have forward
  11117. class declarations to reduce compile time.
  11118. The implementation is extremely alpha stage, I recommend to use this
  11119. for testing purpose only.
  11120. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11121. Fixed the compilation error on 64bit platform.
  11122. * test/HttpHeaderProcessorTest.cc
  11123. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11124. Merged Ross's patch that fixes compilation problem in MinGW
  11125. * test/DefaultBtProgressInfoFileTest.cc
  11126. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11127. Updated fr.po by sebone
  11128. * po/fr.po
  11129. Updated man page.
  11130. * doc/aria2c.1.txt
  11131. * Release 0.11.3
  11132. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11133. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11134. failure in Metalink.
  11135. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11136. Automatically save *.aria2 control file of http/ftp download in every
  11137. 60 seconds.
  11138. * src/AutoSaveCommand.{h, cc}: New class.
  11139. * src/TimeBasedCommand.{h, cc}: New class.
  11140. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11141. Disable parameterized URI support by default. Added -P option to
  11142. enable the feature.
  11143. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11144. * src/OptionHandlerFactory.cc
  11145. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11146. Updated Japanese translation.
  11147. * po/ja.po
  11148. Updated man page.
  11149. * doc/aria2c.1.txt
  11150. * Release 0.11.3-rc
  11151. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11152. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11153. it is successful, then renamed to *.aria2.
  11154. This prevents *.aria2 file from being truncated or corrupted when
  11155. file system becomes out of space.
  11156. * src/DefaultBtProgressInfoFile.cc (save)
  11157. * src/SegmentMan.cc (save)
  11158. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11159. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11160. Reduced the fragmentation of bitfield in http/ftp download.
  11161. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11162. * test/BitfieldManTest.cc
  11163. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11164. Added the ability to disable segmented download in .metalink.
  11165. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11166. 'url' tag.
  11167. * src/MetalinkEntry.{h, cc}
  11168. * src/RequestResource.{h, cc}
  11169. * src/MetalinkRequestInfo.cc
  11170. * src/Xml2MetalinkProcessor.cc
  11171. * test/Xml2MetalinkProcessorTest.cc
  11172. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Added parameterized URI support.
  11174. * src/main.cc: -Z option added.
  11175. * src/OptionHandlerFactory.cc
  11176. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11177. * src/PStringDatum.h: New class.
  11178. * src/PStringSegment.{h,cc}: New class.
  11179. * src/PStringNumLoop.h: New class.
  11180. * src/PStringSelect.h: New class.
  11181. * src/NumberDecorator.h: New class.
  11182. * src/FixedWidthNumberDecorator.h: New class.
  11183. * src/AlphaNumberDecorator.h: New class.
  11184. * src/PStringVisitor.h: New class.
  11185. * src/PStringBuildVisitor.{h,cc}: New class.
  11186. * src/ParameterizedStringParser.{h,cc}: New class.
  11187. * src/Util.{h,cc}
  11188. (isNumber): New function.
  11189. (isLowercase): New function.
  11190. (isUppercase): New function.
  11191. (alphaToNum): New function.
  11192. * test/ParameterizedStringParserTest.cc: New class.
  11193. * test/AlphaNumberDecoratorTest.cc: New class.
  11194. * test/PStringBuildVisitorTest.cc: New class.
  11195. * test/UtilTest.cc
  11196. (testIsNumber): New function.
  11197. (testIsLowercase): New function.
  11198. (testIsUppercase): New function.
  11199. (testAlphaToNum): New function.
  11200. Added '\n' after the error message
  11201. * src/RequestInfo.h (printDownloadAbortMessage)
  11202. Added auto file renaming feature in http(s)/ftp download.
  11203. * src/main.cc: Added --auto-file-renaming command-line option.
  11204. * src/OptionHandlerFactory.cc
  11205. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11206. * src/RequestGroup.{h, cc}
  11207. (shouldCancelDownloadForSafety): Rewritten
  11208. (tryAutoFileRenaming): New function.
  11209. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11210. * src/HttpResponseCommand.cc
  11211. (executeInternal): Removed the call to RequestGroupMan::
  11212. isSameFileBeingDownloaded()
  11213. * src/FtpNegotiateCommand.cc
  11214. (recvSize): Removed the call to RequestGroupMan::
  11215. isSameFileBeingDownloaded()
  11216. * test/RequestGroupTest.cc: New class.
  11217. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11218. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11219. IO.
  11220. * src/DefaultBtProgressInfoFile.cc
  11221. * src/MetaFileUtil.cc
  11222. * src/SimpleLogger.cc
  11223. * src/SegmentMan.cc
  11224. * src/Util.cc
  11225. * src/Platform.cc
  11226. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11227. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11228. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11229. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11230. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11231. Fixed the bug that prevents file allocation is not done when
  11232. dowloading multi-torrent file.
  11233. * src/AbstractDiskWriter.cc (openFile)
  11234. Increase the maximum number of -j option from 15 to 45.
  11235. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11236. Added fr.po, thanks to Charles Landemaine.
  11237. * po/fr.po
  11238. * po/LINGUAS
  11239. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11240. gcc 3.4.4 support:
  11241. * src/DefaultBtContext.cc: int32_t -> int
  11242. * src/main.cc: int -> int32_t, int32_t -> int
  11243. * src/messageDigest.h: uint32_t -> unsigned int
  11244. * src/NameResolver.h: int32_t -> int
  11245. * src/PeerConnection.cc: int -> int32_t
  11246. * src/SpeedCalc.cc: int32_t -> int
  11247. * src/TrackerUpdateCommand.h: int -> int32_t
  11248. * src/Util.cc: int32_t -> int
  11249. * src/Util.h: int32_t -> int
  11250. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11251. * test/AnnounceListTest.cc: int -> int32_t
  11252. * test/ChunkedEncodingTest.cc: int -> int32_t
  11253. * test/DataTest.cc: int -> int32_t
  11254. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11255. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11256. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11257. * test/FeatureConfigTest.cc: int -> int32_t
  11258. * test/MetalinkEntryTest.cc: int -> int32_t
  11259. * test/MockBtRequestFactory.h: int -> int32_t
  11260. * test/MockPieceStorage.h: int -> int32_t
  11261. * test/OptionTest.cc: int -> int32_t
  11262. * test/RequestTest.cc: int -> int32_t
  11263. * test/SegmentManTest.cc: int -> int32_t
  11264. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11265. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11266. Move sleep functions to Util class:
  11267. * src/Util.cc
  11268. (sleep): New function.
  11269. (usleep): New function.
  11270. * src/DownloadCommand.cc: sleep -> Util::sleep
  11271. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11272. MinGW build enhancements. The following files are added:
  11273. * src/timegm.{c,h}
  11274. Changes to support the above new files:
  11275. * configure.ac
  11276. * src/Makefile.am
  11277. * src/a2time.h
  11278. * src/Util.cc:
  11279. * src/strptime.c: Added support for %Z option.
  11280. Fixed MinGW non-blocking bug.
  11281. * src/SocketCore.cc
  11282. * src/HttpRequestCommand.cc
  11283. Miscellenous build fixes/enhancements.
  11284. * configure.ac: Added summary report.
  11285. * src/Platform.h: Tweaked #include's.
  11286. * src/a2netcompat.h: Tweaked #include's.
  11287. * src/strptime.h: Tweaked #include's.
  11288. * src/gai_strerror.c: Tweaked #include's.
  11289. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11290. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11291. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11292. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11293. Increased the initial connection size in BitTorrent download to 40.
  11294. * src/BtRuntime.h
  11295. Added the usage message of --peer-id-prefix option.
  11296. * src/main.cc
  11297. * Release 0.11.2
  11298. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11299. MessageDigestHelper is introduced in order to simplify the use
  11300. of message digest. Removed repeated code.
  11301. The message digest algorithm is now specified by string, like "sha1",
  11302. "md5".
  11303. * src/messageDigest.{h, cc}
  11304. * src/MessageDigestHelper.{h, cc}: New class.
  11305. * src/DefaultPieceStorage.cc
  11306. * src/DefaultBtContext.{h, cc}
  11307. (computeFastSet): New function.
  11308. (setInfoHash): Added for unit testing.
  11309. (setNumPieces): Added for unit testing.
  11310. * src/DefaultBtInteractive.cc
  11311. * src/BtPieceMessage.cc
  11312. * src/Peer.cc
  11313. * src/Checksum.h
  11314. * src/message.h
  11315. * src/IteratableChecksumValidator.h
  11316. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11317. inside it.
  11318. * src/SegmentMan.{h, cc}
  11319. (checkIntegrity): Removed.
  11320. * src/IteratableChunkChecksumValidator.{h, cc}
  11321. * src/Util.h
  11322. (sha1Sum): Removed.
  11323. (simpleMessageDigest): Removed.
  11324. (fileChecksum): Removed.
  11325. (computeFastSet): Removed.
  11326. * src/ShaVisitor.cc
  11327. * src/ChunkChecksum.h
  11328. * src/DownloadCommand.cc
  11329. Removed messageDigest virtual functions.
  11330. * src/MultiDiskAdaptor.{h, cc}
  11331. * src/DiskAdaptor.h
  11332. * src/ByteArrayDiskWriter.h
  11333. * src/DiskWriter.h
  11334. * src/DiskAdaptorWriter.h
  11335. * src/AbstractSingleDiskAdaptor.{h, cc}
  11336. * src/AbstractDiskWriter.{h, cc}
  11337. Fixed comilation error when message digest is disabled.
  11338. * src/MetalinkEntry.{h, cc}
  11339. * src/MetalinkRequestInfo.cc
  11340. Removed srandom and random.
  11341. * src/SimpleRandomizer.h
  11342. Added size() virtual function to DiskAdaptor
  11343. * src/MultiDiskAdaptor.h
  11344. Fixed the bug that causes that files are not opened correctly in
  11345. multi-file torrent.
  11346. * src/TorrentRequestInfo.cc
  11347. * src/MultiDiskAdaptor.cc
  11348. Added SHA256 support
  11349. * src/messageDigest.cc
  11350. * src/Xml2MetalinkProcessor.cc
  11351. Show supported message digest algorithms
  11352. * src/main.cc
  11353. Updated contact info.
  11354. * src/main.cc
  11355. Applied Ross's patch
  11356. * src/a2netcompat.h
  11357. * src/main.cc
  11358. Fixed the bug that prevents a remote metalink from not being processed
  11359. even if '-o foo.metalink' is specified.
  11360. * src/MetalinkRequestInfo.cc
  11361. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11362. Merged Dan's patch:
  11363. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11364. Use va_copy to avoid core dump on amd64:
  11365. * src/SimpleLogger.cc
  11366. Updated contact info.
  11367. * src/main.cc
  11368. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11369. digest is not available.
  11370. * src/MetalinkEntry.h
  11371. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11372. Make a2netcompat.h include a2io.h to fix compilation error:
  11373. * src/a2netcompat.h
  11374. * src/SocketCore.cc: Removed include of a2io.h
  11375. * src/Util.cc: Removed include of a2io.h
  11376. Gather time related functions to a2time.h:
  11377. * src/a2time.h: New file.
  11378. * src/DefaultPeerStorage.cc
  11379. * src/SimpleLogger.cc
  11380. * src/Util.{h, cc}
  11381. * src/SimpleRandomizer.h
  11382. * src/TimeA2.{h,cc}
  11383. * src/DownloadCommand.cc
  11384. * src/main.cc
  11385. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11386. a2netcompat.h:
  11387. * src/NameResolver.cc
  11388. Fixed compilation error without openssl:
  11389. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11390. Added default block to suppress compiler warnings:
  11391. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11392. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11393. MinGW build enhancements. The following files are added:
  11394. * src/gai_strerror.{c,h}
  11395. * src/gettimeofday.{c,h}
  11396. Changes to support the above new files:
  11397. * configure.ac
  11398. * src/Makefile.am
  11399. * src/a2netcompat.h
  11400. * src/TimeA2.cc
  11401. * src/DefaultPeerStorage.cc
  11402. * src/NameResolver.cc: removed mingw_strerror() function.
  11403. * src/SocketCore.cc: removed mingw_strerror() function.
  11404. Miscellaneous MinGW build fixes.
  11405. * src/a2io.h: Use _lseeki64() instead of lseek()
  11406. * src/common.h
  11407. * src/DefaultFileAllocator.cc
  11408. * src/GlowFileAllocator.cc
  11409. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11410. * src/NameResolver.cc
  11411. (callback): Changed int32_t to int.
  11412. (resolve): Changed int32_t to int.
  11413. * src/Platform.cc
  11414. * src/Platform.h
  11415. * test/MultiDiskWriterTest.cc
  11416. * test/PeerMessageUtilTest.cc
  11417. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11418. Other enhancements and fixes.
  11419. * src/HttpRequestCommand.cc
  11420. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11421. * src/SocketCore.cc:
  11422. (error): New function to abstract errno/WSAGetLastError().
  11423. (errorMsg): New function to abstract errno/WSAGetLastError().
  11424. (initiateSecureConnection): Added more detailed error reporting.
  11425. * src/SocketCore.h: Added private variable blocking, to allow
  11426. proper handling of OpenSSL psuedo-errors.
  11427. * src/message.h
  11428. (EX_SSL_INIT_FAILURE)
  11429. (EX_SSL_IO_ERROR)
  11430. (EX_SSL_PROTOCOL_ERROR)
  11431. (EX_SSL_UNKNOWN_ERROR)
  11432. (EX_SSL_CONNECT_ERROR)
  11433. (EX_SOCKET_BLOCKING)
  11434. (EX_SOCKET_NONBLOCKING)
  11435. (EX_SOCKET_UNKNOWN_ERROR)
  11436. * src/Util.cc
  11437. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11438. reserved name.
  11439. (httpGMT): Fixed typo.
  11440. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11441. Merged Ross's win32 patch(manually)
  11442. In the course of merging, following files are added.
  11443. * src/strptime.{h,c}
  11444. * src/libgen.{h,c}
  11445. * src/inet_aton.{h,c}
  11446. * src/Platform.{h,cc}
  11447. * src/localtime_r.{h,c}
  11448. * src/getaddrinfo.{h,c}
  11449. I've gethered network related things, and put them to following file:
  11450. * src/a2netcompat.h
  11451. Also io related things are put to following file:
  11452. * src/a2io.h
  11453. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11454. * src/message.h
  11455. (MSG_ALLOCATION_COMPLETED)
  11456. (EX_TOO_LARGE_FILE)
  11457. (EX_SIZE_MISMATCH)
  11458. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11459. (EX_INVALID_CHUNK_CHECKSUM)
  11460. (EX_INVALID_RANGE_HEADER)
  11461. * src/FileAllocationCommand.cc
  11462. * src/HttpResponse.cc
  11463. * src/RequestGroup.cc
  11464. * src/MultiDiskAdaptor.cc
  11465. * src/OptionHandlerImpl.h
  11466. * src/HttpResponseCommand.cc
  11467. * src/FtpNegotiateCommand.cc
  11468. * src/IteratableChecksumValidator.cc
  11469. * src/SegmentMan.cc
  11470. * src/ChunkChecksumValidator.cc
  11471. Added Randomizer::getRandomNumber(long int)
  11472. * src/Randomizer.h (getRandomNumber)
  11473. * src/SimpleRandomizer.h (getRandomNumber)
  11474. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11475. * src/Util.cc (randomAlpha): Use this new function.
  11476. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11477. Converted int's to in32_t. long long int's are also converted to
  11478. int64_t
  11479. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11480. Fixed the bug that prevents cookies from being sent to the server
  11481. if the domain of cookie is FQDN and starts with ".".
  11482. * src/Cookie.cc (match)
  11483. To add the ability to change peer id.
  11484. * src/DefaultBtContext.h
  11485. (_peerIdPrefix): New variable
  11486. (setPeerIdPrefix): New function.
  11487. * src/torrentRequestInfo.cc
  11488. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11489. DefaultBtContext.
  11490. * src/main.cc (main): Added peer-id-prefix command-line option.
  11491. The usage message is not added yet.
  11492. * src/DefaultBtContext.cc
  11493. (generatePeerId): Use _peerIdPrefix.
  11494. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11495. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11496. Fixed the bug that prevents filename in content-disposition from
  11497. being retrieved when filename is not quoted.
  11498. * src/Util.cc (getContentDispositionFilename)
  11499. Fixed the bug that causes infinate loop and memory leak when file open
  11500. operation failed.
  11501. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11502. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11503. Fixed the bug that causes segfault when all URIs specified are
  11504. unsupported.
  11505. * src/RequestGroupMan.cc (getInitialCommands)
  11506. Check if RequestGroup::createNextCommand() returns empty list of
  11507. commands.
  11508. * src/RequestGroup.cc (createNextCommand)
  11509. Change log level from info to error so that users can notice that
  11510. an error occurred.
  11511. Fixed the bug that causes segfault when a zero-sized file is
  11512. downloaded.
  11513. * src/BitfieldMan.cc (isAllBitSet)
  11514. Return true if bitfieldLength is 0.
  11515. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11516. * src/main.cc
  11517. (showUsage): Added 3 usage examples for metalink download.
  11518. Replace MetalinkChunkChecksum with ChunkChecksum.
  11519. * src/MetalinkChunkChecksum.h: Removed.
  11520. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11521. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11522. * src/Xml2MetalinkProcessor.cc
  11523. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11524. * src/MetalinkRequestInfo.cc (execute)
  11525. * Release 0.11.1
  11526. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11527. Reads URIs from stdin when "-i -" is specified.
  11528. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11529. * src/UriListParser.h, src/UriListParser.cc: New class.
  11530. * src/StreamUriListParser.h: New class.
  11531. * src/FileUriListParser.h: New class.
  11532. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11533. instead of UriFileListParser.
  11534. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11535. Made console readout more readable.
  11536. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11537. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11538. Fix the bug that causes -s option not to work.
  11539. * src/main.cc (main)
  11540. * src/a2algo.h: New file.
  11541. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11542. Create directory structure specified in metalink file.
  11543. * src/RequestGroup.h, src/RequestGroup.cc
  11544. (initAndOpenFile): Create a directory to store files if it does not
  11545. exist.
  11546. (getDir): New function.
  11547. Added ETA and download speed for an individual file to readout.
  11548. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11549. * src/RequestGroup.h
  11550. (calculateDownloadSpeed): New function.
  11551. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11552. Made -S option work with metalink file and provided selective download
  11553. to metalink.
  11554. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11555. (filename): Removed.
  11556. (file): New variable.
  11557. (size): Removed.
  11558. (operator=): Updated.
  11559. (getPath): New function.
  11560. (getLength): New function.
  11561. (toFileEntry): New function.
  11562. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11563. (execute): Use toStream.
  11564. (showFileEntry): Removed.
  11565. * src/MetalinkRequestInfo.h
  11566. (targetFiles): New variable.
  11567. (setTargetFiles): New variable.
  11568. * src/MetalinkRequestInfo.cc
  11569. (execute): Added the ability to print file information included in
  11570. a metalink file.
  11571. Added selective download mode to metalink.
  11572. * src/main.cc
  11573. (showUsage): Updated to denote that -S and --select-file options are
  11574. applicable to metalink.
  11575. * src/FileEntry.h
  11576. (operator=): New function.
  11577. (getBasename): New function.
  11578. (getDirname): New function.
  11579. * src/Util.h, src/Util.cc
  11580. (toStream): New function.
  11581. * src/Xml2MetalinkProcessor.cc: Updated.
  11582. Made aria2 work with metalink with directory structure.
  11583. * src/File.h, src/File.cc
  11584. (getBasename): New function.
  11585. (getDirname): New function.
  11586. * src/RequestGroup.h, src/RequestGroup.cc
  11587. (_topDir): New variable.
  11588. (setTopDir): New function.
  11589. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11590. Rewrote HTTP header parsing with stringstream.
  11591. * src/HttpConnection.h, src/HttpConnection.cc
  11592. (HttpRequestEntry): New class.
  11593. (headerBuf): Removed.
  11594. (headerBufLength): Removed.
  11595. (outstandingHttpRequests): Now its element type is
  11596. HttpRequestEntryHandle.
  11597. (findEndOfHeader): Removed.
  11598. (receiveResponse): Rewritten.
  11599. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11600. Updated doc for -j option to notice that it should be used with -i
  11601. option.
  11602. * src/main.cc (showUsage)
  11603. Removed unused classes.
  11604. * src/RequestInfo.h
  11605. (FileInfo): Removed.
  11606. (checksum): Removed.
  11607. (fileInfo): Removed.
  11608. (setChecksum): Removed.
  11609. (getChecksum): Removed.
  11610. (getFileInfo): Removed.
  11611. Use ISO units.
  11612. * src/ConsoleDownloadEngine.cc
  11613. * src/TorrentConsoleDownloadEngine.cc
  11614. * src/Util.cc (abbrevSize)
  11615. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11616. Added the default listening ports to the help message.
  11617. * src/main.cc (showUsage)
  11618. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11619. Reduce the number of calls to gettimeofday to lower CPU load.
  11620. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11621. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11622. * src/Peer.h (calculateUploadSpeed): New function.
  11623. (calculateDownloadSpeed): New function.
  11624. * src/DefaultPeerStorage.cc
  11625. (CalculateStat): Added _now variable.
  11626. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11627. and Peer::calculateUploadSpeed(const struct timeval&)
  11628. Drop connection if no request or piece message is exchanged in
  11629. a certain interval.
  11630. * src/DefaultBtInteractive.h
  11631. (btRuntime): New variable.
  11632. (inactiveCheckPoint): New variable.
  11633. (checkActiveInteraction): New function.
  11634. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11635. request or piece message is received.
  11636. (checkActiveInteraction): New function.
  11637. (doInteractionProcessing): Call checkActiveInteraction.
  11638. Fixed the bug that causes remote Metalink and Torrent files are not
  11639. processed.
  11640. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11641. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11642. Changed format of log file.
  11643. * src/SimpleLogger.cc
  11644. * Release 0.11.0
  11645. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11646. * src/AbstractCommand.cc
  11647. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11648. MSG_MAX_TRY from error to info.
  11649. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11650. * src/message.h
  11651. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11652. (MSG_DOWNLOAD_ABORTED): Added %s.
  11653. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11654. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11655. * src/PeerAbstractCommand.cc
  11656. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11657. * src/Request.h
  11658. (cookieBox): Made ShardHandle.
  11659. * src/RequestGroup.h, src/RequestGroup.cc
  11660. (createNextCommandWithAdj): New function.
  11661. * src/FileAllocationCommand.cc
  11662. (executeInternal): Use createNextCommandWithAdj().
  11663. * src/CheckIntegrityCommand.cc
  11664. (executeInternal): Use createNextCommandWithAdj().
  11665. Added --load-cookies command-option.
  11666. * src/OptionHandlerFactory.cc
  11667. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11668. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11669. Now aria2 can handle cookie's expiration date.
  11670. * src/Cookie.h (expires): Changed its type to time_t.
  11671. * src/main.cc: Added --load-cookies command-line option.
  11672. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11673. * src/Util.h, src/Util.cc (httpGMT): New function.
  11674. * src/Request.cc (Request): Initialize cookieBox using
  11675. CookieBoxFactory.
  11676. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11677. * src/CookieParser.h, src/CookieParser.cc: New class.
  11678. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11679. * src/HttpResponseCommand.cc
  11680. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11681. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11682. download.
  11683. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11684. Added -j command-line option.
  11685. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11686. * src/main.cc
  11687. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11688. Rewritten using stringstream.
  11689. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11690. Rewritten using stringstream.
  11691. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11692. Make download size shown in MB, KB.
  11693. * src/ConsoleDownloadEngine.h (sendStatistics)
  11694. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11695. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11696. Accept incoming connections if download rate is low.
  11697. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11698. (_lowestSpeedLimit): New variable.
  11699. (setLowestSpeedLimit): New function.
  11700. (execute): Accept incoming connections if download rate is low.
  11701. MAX_PEERS is ignored in this case.
  11702. Disable PREF_OUT in multiple concurrent download:
  11703. * src/RequestGroup.h, src/RequestGroup.cc
  11704. (setUserDefinedFilename): New function.
  11705. * src/DownloadEngineFactory.cc
  11706. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11707. concurrent download.
  11708. * src/DefaultSegmentManFactory.cc
  11709. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11710. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11711. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11712. Added its overloaded method.
  11713. * src/RequestGroup.h
  11714. (_numConcurrentCommand): New variable.
  11715. (setNumConcurrentCommand): New function.
  11716. * src/RequestGroup.cc
  11717. Abort download if same file is being downloaded concurrently.
  11718. * src/RequestGroup.h, src/RequestGroupMan.cc
  11719. (isSameFileBeingDownloaded): New function.
  11720. * src/HttpResponseCommand.cc (executeInternal)
  11721. * src/FtpNegotiateCommand.cc (recvSize)
  11722. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11723. * main.cc: Added help message for -i option.
  11724. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11725. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11726. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11727. * src/MetalinkEntry.h
  11728. (checksum): Changed to ChecksumHandle
  11729. * src/MetalinkRequestInfo.cc
  11730. (checksum): Changed to ChecksumHandle
  11731. * src/File.cc
  11732. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11733. * src/common.h
  11734. (DIR_OPEN_MODE): New definition
  11735. * src/RequestGroup.cc
  11736. (prepareForNextAction): Added an argument.
  11737. * src/message.h
  11738. (MSG_GOOD_CHECKSUM): New definition
  11739. (MSG_BAD_CHECKSUM): New definition
  11740. * src/HttpResponseCommand.cc
  11741. (handleDefaultEncoding): Continue download sequence in new
  11742. non-segmented download.
  11743. * src/FileAllocationEntry.h
  11744. (_nextDownloadCommand): New variable.
  11745. * src/DownloadCommand.cc
  11746. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11747. available.
  11748. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11749. * src/IteratableChecksumValidator.h,
  11750. src/IteratableChecksumValidator.cc: New class.
  11751. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11752. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11753. Change file mode to 666:
  11754. * src/common.h (OPEN_MODE): New definition.
  11755. * src/File.cc
  11756. * src/Util.cc
  11757. * src/Directry.cc
  11758. * src/AbstractDiskWriter.cc
  11759. Change the level of log message "download aborted" to debug:
  11760. * src/PeerAbstractCommand.cc (execute)
  11761. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11762. * src/TrackerWatcherCommand.cc
  11763. (createCommand): Sleep some seconds after request failed.
  11764. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11765. then abort tracker request.
  11766. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11767. * Added the simultaneous download feature.
  11768. * src/main.cc: Print "Exception caught: " when exception is caught.
  11769. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11770. * src/ActivePeerConnectionCommand.cc
  11771. * src/PeerInteractionCommand.cc
  11772. * src/BtRuntime.h
  11773. (cuidCounter): Removed.
  11774. (getNewCuid): Removed.
  11775. * src/DownloadEngineFactory.cc
  11776. * src/PeerListenCommand.cc
  11777. * src/TrackerUpdateCommand.cc
  11778. * src/PeerInitiateConnectionCommand.cc
  11779. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11780. * src/PeerAbstractCommand.cc
  11781. (onAbort): Call PeerStorage::returnPeer()
  11782. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11783. (incomingPeers): New variable.
  11784. (addIncomingPeer): New function.
  11785. (returnPeer): New function.
  11786. (onErasingPeer): New function.
  11787. (addPeer): push_back -> push_front
  11788. (getActivePeers): Rewritten.
  11789. (calculateStat): Rewritten.
  11790. * src/PeerStorage.h
  11791. (TransferStat::copy): New function.
  11792. (TransferStat::TransferStat): New function.
  11793. (TransferStat::operator=): New function.
  11794. (addIncomingPeer): New function.
  11795. (returnPeer): New function.
  11796. * src/PeerListenCommand.cc
  11797. (execute): Use PeerStorage::addIncomingPeer() instead of
  11798. Peer::addPeer().
  11799. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11800. Connect to a peer actively when download speed is lower than specified
  11801. speed in torrent download:
  11802. * src/ActivePeerConnectionCommand.h: New class.
  11803. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11804. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11805. * src/main.cc: Fixed the bug that prevents download if .netrc
  11806. doesn't exist.
  11807. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11808. To cache resolved hostname:
  11809. * src/AbstractCommand.h, src/AbstractCommand.cc
  11810. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11811. Added dns cache.
  11812. * src/FtpInitiateConnectionCommand.cc
  11813. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11814. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11815. NameResolver working without ares.
  11816. * src/TorrentRequestInfo.cc
  11817. (execute): Don't cache dns in torrent download.
  11818. * src/HttpInitiateConnectionCommand.cc
  11819. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11820. * src/DNSCache.h: New class.
  11821. * src/UrlRequestInfo.cc
  11822. (execute): Use dns cache.
  11823. In http request, suppress port number in http request header if port
  11824. is 80 or 443:
  11825. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11826. request header if port is 80 or 443.
  11827. (createProxyRequest): Allways send port number.
  11828. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11829. To add the command-line option which disables netrc support:
  11830. * src/OptionHandlerFactory.cc
  11831. (createOptionHandlers): Added PREF_NO_NETRC.
  11832. * src/main.cc: Added -n option.
  11833. * src/prefs.h (PREF_NO_NETRC): New definition.
  11834. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11835. V_TRUE.
  11836. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11837. is V_FALSE. This may get configurable in the future release.
  11838. To clear peer's error status by time basis:
  11839. * src/PeerAbstractCommand.cc
  11840. (onAbort): Call Peer::startBadCondition().
  11841. * src/Peer.h, src/Peer.cc
  11842. (error): Removed.
  11843. (_badConditionStartTime): New variable.
  11844. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11845. (startBadCondition): New function.
  11846. (isGood): New function.
  11847. * src/DefaultPeerStorage.cc
  11848. (addPeer): Use Peer::isGood().
  11849. (FindFinePeer): Use Peer::isGood().
  11850. Always include port number in http request header:
  11851. * src/HttpRequest.cc (getHostText): Always include port number in
  11852. http request header.
  11853. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11854. To the ability to read options from a config file:
  11855. * src/main.cc: Command-line parameter validation is delegated to
  11856. OptionHandler class.
  11857. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11858. * src/Option.h, src/Option.cc (clear): New function.
  11859. * src/OptionParser.h, src/OptionParser.cc: New class.
  11860. * src/OptionHandler.h: New class.
  11861. * src/NameMatchOptionHandler.h: New class.
  11862. * src/OptionHandlerImpl.h: New classes.
  11863. * src/prefs.h: '_' -> '-'
  11864. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11865. (FTP_PASV): New definition.
  11866. * src/Util.h, src/Util.cc (getRealSize): New function.
  11867. To disable netrc support if .netrc file does not have correct
  11868. permissions:
  11869. * src/File.h, src/File.cc (mode): New function.
  11870. To prevent confidential information to be logged:
  11871. * src/HttpConnection.h, src/HttpConnection.cc
  11872. (eraseConfidentialInfo): New function.
  11873. (sendRequest): Call eraseConfidentialInfo().
  11874. (sendProxyRequest): Call eraseConfidentialInfo().
  11875. * src/main.cc: Validate permissions of .netrc file.
  11876. To add --user-agent command-line option:
  11877. * src/main.cc: Added new command line option: --user-agent
  11878. * src/prefs.h (PREF_USER_AGENT): New definition.
  11879. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11880. parameter to HttpRequest object.
  11881. * src/AbstractProxyRequestCommand.cc
  11882. (executeInternal): Set user-agent option parameter to HttpRequest
  11883. object.
  11884. Marged the patches from Dan Fandrich.
  11885. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11886. Use filename and size from Metalink file instead of sending HEAD
  11887. request:
  11888. * src/UrlRequestInfo.h
  11889. (_filename): New variable.
  11890. (_totalLength): New variable.
  11891. (setTotalLength): New variable.
  11892. (setFilename): New variable.
  11893. * src/MetalinkRequestInfo.cc
  11894. (execute): Set filename and size to UrlRequestInfo
  11895. * src/UrlRequestInfo.cc
  11896. (execute): Use filename and size from Metalink instead of seding
  11897. HEAD request to servers.
  11898. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11899. To add the ability to resume downloading a partially downloaded file
  11900. which is downloaded from the beginning:
  11901. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11902. takes this role.
  11903. * src/main.cc: Added -c option.
  11904. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11905. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11906. * src/prefs.h (PREF_CONTINUE): New definition.
  11907. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11908. * src/DefaultDiskWriter.cc
  11909. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11910. * src/AbstractDiskWriter.h
  11911. (glowFileAllocator): New variable.
  11912. * src/AbstractDiskWriter.cc
  11913. (openExistingFile): Now preallocate file space from the end of the
  11914. existing file if totalLength argument is specified and grater than 0.
  11915. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11916. to download exists in local, continue the download of the file.
  11917. --allow-overwrite=true is assumed in this context.
  11918. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11919. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11920. Throw exception if --check-integrity=true is specified but chunk
  11921. checksums are not provided:
  11922. * src/UrlRequestInfo.cc
  11923. Do not print URLs to stdout:
  11924. * src/UrlRequestInfo.cc
  11925. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11926. * src/Request.h: Use AuthResolver to get authentication information.
  11927. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11928. set to RequestFactory object.
  11929. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11930. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11931. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11932. create Request object.
  11933. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11934. To integrate Netrc into exsiting classes:
  11935. * src/Request.h
  11936. (_userDefinedAuthConfig): New variable.
  11937. (findNetrcAuthenticator): New function.
  11938. (segment): Removed.
  11939. (setUserDefinedAuthConfig): New function.
  11940. (resolveHttpAuthConfigItem): New function.
  11941. (resolveFtpAuthConfigItem): New function.
  11942. (resolveHttpProxyAuthConfigItem): New function.
  11943. * src/HttpRequest.h
  11944. (authConfig): Removed.
  11945. (proxyAuthConfig): Removed.
  11946. (setAuthConfig): Removed.
  11947. (setProxyAuthConfig): Removed.
  11948. * src/UrlRequest.h
  11949. (getHeadResult): Added a parameter: authConfigHandle
  11950. * src/common.h
  11951. (SingletonHolder.h): New include.
  11952. * src/main.cc
  11953. (Netrc.h): New include.
  11954. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11955. Added initial value of PREF_NETRC_PATH.
  11956. Added the initialization of netrc.
  11957. * src/AuthConfig.h: New class.
  11958. * src/prefs.h
  11959. (PREF_NETRC_PATH): New definition.
  11960. * src/HttpAuthConfig.h: Removed.
  11961. * src/Netrc.cc
  11962. (getRequiredNextToken): New function.
  11963. (skipMacdef): New function.
  11964. (parse): Rewritten.
  11965. * src/Netrc.h
  11966. (getRequiredNextToken): New function.
  11967. (skipMacdef): New function.
  11968. * src/Util.h, src/Util.cc
  11969. (getHomeDir): New function.
  11970. * src/TrackerWatcherComand.cc
  11971. (createRequestCommand): Use AuthConfig.
  11972. * src/FtpConnection.cc
  11973. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11974. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11975. * src/Request.cc
  11976. (findNetrcAuthenticator): New function.
  11977. (resolveHttpAuthConfigItem): New function.
  11978. (resolveFtpAuthConfigItem): New function.
  11979. (resolveHttpProxyAuthConfigItem): New function.
  11980. * src/UrlRequestInfo.cc: Use AuthConfig.
  11981. * src/HttpRequest.cc
  11982. (createRequest): Use authConfig.
  11983. (getProxyAuthString): Use authConfig.
  11984. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11985. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11986. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11987. To reduce overhead to find commands whose socket is either
  11988. readable or writable in the download engine loop:
  11989. * src/Command.h, src/Command.cc
  11990. (STATUS): New enum.
  11991. (status): New variable.
  11992. (statusMatch): New function.
  11993. (setStatusActive): New function.
  11994. (setStatusInactive): New function.
  11995. * src/DownloadEngine.h, src/DownloadEngine.cc
  11996. (executeCommand): New function.
  11997. (run): Simplified.
  11998. (waitData): Call Command::setStatusActive() when command's socket is
  11999. readable or writable.
  12000. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12001. To handle Segment as SegmentHandle:
  12002. * src/AbstractCommand.cc (execute): Rewritten.
  12003. * src/SegmentMan.h: Segment -> SegmentHandle
  12004. Introducded HttpResponse class, HttpRequest class to improve code
  12005. extensiveness and make it clear:
  12006. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12007. HttpResponse class.
  12008. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12009. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12010. * src/HttpConnection.cc: Contruction of http request were moved to
  12011. HttpRequest class.
  12012. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12013. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12014. * src/HttpAuthConfig.h: New class.
  12015. * src/Range.h: New class.
  12016. To make FtpTunnel{Request, Response}Command and
  12017. HttpProxy{Request, Response}Command derived from
  12018. AbstractProxy{Request, Response}Command:
  12019. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12020. Derived from AbstractProxyRequestCommand class.
  12021. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12022. Derived from AbstractProxyResponseCommand class.
  12023. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12024. Derived from AbstractProxyRequestCommand class.
  12025. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12026. Derived from AbstractProxyResponseCommand class.
  12027. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12028. : New class.
  12029. * src/AbstractProxyResponseCommand.h,
  12030. src/AbstractProxyResponseCommand.cc: New class.
  12031. To add netrc support:
  12032. * src/Netrc.h, src/Netrc.cc: New class.
  12033. * src/Util.h, src/Util.cc (split): New function.
  12034. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12035. "Content-Range" header instead of "Range" header.
  12036. * src/HttpHeader.h
  12037. (getStatus): Removed.
  12038. (setStatus): Removed.
  12039. * src/Segment.h
  12040. (getPositionToWrite): New function.
  12041. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12042. * src/HttpHeader.h
  12043. (Range.h): New include.
  12044. (status): New variable.
  12045. (HttpHeader): Initialized status with 0.
  12046. (getStatus): New function.
  12047. (setStatus): New function.
  12048. (getRange): New function.
  12049. (HttpHeaderHandle): New function.
  12050. * src/HttpHeader.cc
  12051. (getRange): New function.
  12052. * src/Request.h
  12053. (RequestWeakHandle): New definition.
  12054. * src/HttpConnection.h
  12055. (HttpConnectionHandle): New type definition.
  12056. * src/HttpConnection.cc
  12057. (receiveResponse): Set HTTP status to headers.
  12058. * src/main.cc
  12059. (showUsage): Fixed typo.
  12060. * src/Segment.h
  12061. (SegmentHandle): New type definition.
  12062. * src/BitfieldMan.h
  12063. (getMissingUnusedLength): New function.
  12064. * src/BitfieldMan.cc
  12065. (getMissingUnusedLength): New function.
  12066. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12067. To fix static initialization order problem:
  12068. * src/BitfieldManFactory.h
  12069. (defaultRandomizer): Removed.
  12070. (factory): New variable.
  12071. (getNewFactory): Removed.
  12072. (getFactoryInstance): New function.
  12073. (setDefaultRandomizer): Rewritten.
  12074. (getDefaultRandomizer): Rewritten.
  12075. * src/BitfieldManFactory.cc
  12076. (defaultRandomizer): Removed.
  12077. (factory): Initialized to 0.
  12078. (BitfieldManFactory): Initialized randomizer to 0.
  12079. * src/DefaultPieceStorage.cc
  12080. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12081. * src/Peer.cc
  12082. (Peer): getNewFactory() -> getFactoryInstance()
  12083. * src/SegmentMan.cc
  12084. (initBitfield): getNewFactory() -> getFactoryInstance()
  12085. * src/Piece.cc
  12086. (Piece): getNewFactory() -> getFactoryInstance()
  12087. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12088. To fix the bug that causes crash on Max OS X:
  12089. * src/SimpleRandomizer.h
  12090. (getInstance): Create new instance if the static variable is null.
  12091. * src/SimpleRandomizer.cc
  12092. (randomizer): Initialized to 0.
  12093. * src/BitfieldManFactory.h
  12094. (getNewFactory): Removed the call to setRandomizer().
  12095. To fix the miscalculation of the range of checksum:
  12096. * src/BitfieldMan.h
  12097. (isBitSetOffsetRange): New function.
  12098. * src/BitfieldMan.cc
  12099. (isBitSetOffsetRange): New function.
  12100. * src/SegmentMan.cc
  12101. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12102. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12103. * Release 0.10.1
  12104. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12105. To lower CPU usage in BitTorrent download when --max-upload-limit
  12106. command-line option specified:
  12107. * src/DefaultBtMessageDispatcher.cc
  12108. (sendMessages): Calculate uploading speed only when current message
  12109. is uploading data and is not sent yet.
  12110. * src/DefaultPeerStorage.h
  12111. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12112. * src/HttpResponseCommand.cc
  12113. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12114. This fixes compile error in Soralis 10.
  12115. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12116. To fix segfault in Metalink download:
  12117. * src/UrlRequestInfo.h
  12118. (filename): Removed.
  12119. (totalLength): Removed.
  12120. (setTotalLength): Removed.
  12121. (setFilename): Removed.
  12122. * src/MetalinkRequestInfo.cc
  12123. (execute): Do not set filename and totalLength to reqInfo.
  12124. Set chunk checksum to reqInfo if it is not null.
  12125. * src/HttpResponseCommand.cc
  12126. (executeInternal): Fixed filename in log.
  12127. (handleDefaultEncoding): Removed the call to initBitfield() and
  12128. markAllPiecesDone().
  12129. (handleOtherEncoding): Added HEAD method handling.
  12130. * src/FtpNegotiateCommand.cc
  12131. (executeInternal): Added SEQ_HEAD_OK handling.
  12132. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12133. return false.
  12134. * src/FtpNegotiateCommand.h
  12135. (SEQ_HEAD_OK): New definition.
  12136. * src/SegmentMan.cc
  12137. (initBitfield): Delete bitfield.
  12138. (isChunkChecksumValidationReady): Fixed the condition.
  12139. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12140. works fine.
  12141. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12142. * src/Xml2MetalinkProcessor.h
  12143. (xpathExists): New function.
  12144. * src/Xml2MetalinkProcessor.cc
  12145. (xpathExists): New function.
  12146. Not to send HEAD request if filename and size are available in Metalink
  12147. file:
  12148. * src/UrlRequestInfo.h
  12149. (filename): New variable.
  12150. (totalLength): New variable.
  12151. (setTotalLength): New function.
  12152. (setFilename): New function.
  12153. * src/MetalinkRequestInfo.cc
  12154. (execute): Set filename and size to UrlRequestInfo.
  12155. * src/MetalinkEntry.cc
  12156. (MetalinkEntry): Initialize size with 0.
  12157. * src/UrlRequestInfo.cc
  12158. (execute): Set filename and size to SegmentMan.
  12159. Not to download rest of the files after selected files are downloaded
  12160. in BitTorrent:
  12161. * src/PieceStorage.h
  12162. (allDownloadFinished): New function.
  12163. * src/DefaultBtAnnounce.cc
  12164. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12165. downloadFinished.
  12166. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12167. * src/DefaultPieceStorage.cc
  12168. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12169. Commented out the call to finishSelectiveDownloadingMode().
  12170. (downloadFinished): Call isFilteredAllBitSet() instead of
  12171. isAllBitSet().
  12172. (allDownloadFinished): New function.
  12173. * src/DefaultBtInteractive.cc
  12174. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12175. downloadFinished().
  12176. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12177. * src/TorrentDownloadEngine.cc
  12178. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12179. * src/BitfieldMan.h
  12180. (isFilteredAllBitSet): New function.
  12181. * src/ShareRatioSeedCriteria.h
  12182. (PieceStorage.h): New include.
  12183. (pieceStorage): New variable.
  12184. (evaluate):
  12185. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12186. * src/BitfieldMan.cc
  12187. (isFilteredAllBitSet): New function.
  12188. (isAllBitSet): Filter is not took into account.
  12189. Rename --force-truncate as --allow-overwrite:
  12190. * src/TorrentRequestInfo.cc
  12191. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12192. * src/main.cc
  12193. (showUsage): --force-truncate -> --allow-overwrite
  12194. * src/message.h
  12195. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12196. * src/prefs.h
  12197. (PREF_FORCE_TRUNCATE): Removed.
  12198. (PREF_ALLOW_OVERWRITE): New definition.
  12199. * src/SegmentMan.cc
  12200. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12201. * src/MetalinkRequestInfo.cc
  12202. (execute): Queueing message are now logged in info level.
  12203. * src/common.h
  12204. (LONG_LONG_MAX): Removed.
  12205. (LONG_LONG_MIN): Removed.
  12206. * src/HttpResponseCommand.cc
  12207. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12208. * src/FtpNegotiateCommand.cc
  12209. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12210. * src/main.cc
  12211. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12212. command-line option.
  12213. (main): Added --check-integriy and --realtime-chunk-checksum
  12214. command-line option.
  12215. --force-truncate -> --allow-overwrite
  12216. Set initial value of --check-integrity option to false.
  12217. Don't show usage when error occurs while persing command-line options.
  12218. Removed deprecated --upload-limit option.
  12219. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12220. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12221. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12222. * src/BtAllowedFastMessage.cc:
  12223. * src/BtBitfieldMessage.cc
  12224. * src/BtCancelMessage.cc
  12225. * src/BtChokeMessage.cc
  12226. * src/BtHaveAllMessage.cc
  12227. * src/BtHaveMessage.cc
  12228. * src/BtHaveNoneMessage.cc
  12229. * src/BtInterestedMessage.cc
  12230. * src/BtNotInterestedMessage.cc
  12231. * src/BtPieceMessage.cc
  12232. * src/BtPortMessage.cc
  12233. * src/BtRejectMessage.cc
  12234. * src/BtRequestMessage.cc
  12235. * src/BtSuggestPieceMessage.cc
  12236. * src/BtUnchokeMessage.cc
  12237. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12238. files are affected.
  12239. * src/ChunkChecksumValidator.cc
  12240. * src/SegmentMan.cc
  12241. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12242. To add chunk checksum validation:
  12243. * src/MetalinkEntry.h
  12244. (MetalinkChunkChecksum.h): New include.
  12245. (chunkChecksum): New variable.
  12246. * src/Request.h
  12247. (method): New variable.
  12248. (setMethod): New function.
  12249. (getMethod): New function.
  12250. (METHOD_GET): New static constant.
  12251. (METHOD_HEAD): New static constant.
  12252. * src/Xml2MetalinkProcessor.h
  12253. (getPieceHash): New function.
  12254. * src/PieceStorage.h
  12255. (markAllPiecesDone): New function.
  12256. (checkIntegrity): New function.
  12257. * src/FileAllocator.h
  12258. (NullFileAllocationMonitor.h): New include.
  12259. (FileAllocator): Initialize fileAllocationMonitor with new
  12260. NullFileAllocationMonitor().
  12261. * src/MultiDiskAdaptor.h
  12262. (messageDigest.h): Remove include.
  12263. (ctx): Removed.
  12264. (hashUpdate): Added ctx.
  12265. (MultiDiskAdaptor): Removed ctx.
  12266. (sha1Sum): Renamed as messageDigest.
  12267. (messageDigest): New function.
  12268. * src/UrlRequestInfo.h
  12269. (HeadResult): New class.
  12270. (digestAlgo): New variable.
  12271. (chunkChecksumLength): New variable.
  12272. (chunkChecksums): New variable.
  12273. (getHeadResult): New function.
  12274. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12275. (setDigestAlgo): New function.
  12276. (setChunkChecksumLength): New function.
  12277. (setChunkChecksums): New function.
  12278. * src/DefaultPieceStorage.cc
  12279. (DiskAdaptorWriter.h): New include.
  12280. (ChunkChecksumValidator.h): New include.
  12281. (markAllPiecesDone): New function.
  12282. (checkIntegrity): New function.
  12283. * src/DefaultBtContext.h
  12284. (getPieceHashes): New function.
  12285. * src/TorrentRequestInfo.cc
  12286. (execute): Try to validate chunk checksum if file already exists and
  12287. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12288. * src/messageDigest.h
  12289. (~MessageDigestContext): Added digestFree().
  12290. * src/MetalinkRequestInfo.cc
  12291. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12292. * src/DiskAdaptor.h
  12293. (messageDigest.h): New include.
  12294. (sha1Sum): Renamed as messageDigest.
  12295. (messageDigest): New function.
  12296. * src/DownloadCommand.h
  12297. (PeerStat.h): New include.
  12298. (maxDownloadSpeedLimit): New variable.
  12299. (startupIdleTime): New variable.
  12300. (lowestDownloadSpeedLimit): New variable.
  12301. (peerStat): New variable.
  12302. (setMaxDownloadSpeedLimit): New function.
  12303. (setStartupIdleTime): New function.
  12304. (setLowestDownloadSPeedLimit): New function.
  12305. * src/BtContext.h
  12306. (getPieceHashes): New function.
  12307. * src/main.cc
  12308. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12309. option to true for testing purpose.
  12310. * src/BtPieceMessage.cc
  12311. (checkPieceHash): Use messageDigest
  12312. * src/DownloadEngine.cc
  12313. (SetDescriptor): Removed.
  12314. (AccumulateActiveCommand): Removed.
  12315. (waitData): Rewritten.
  12316. (updateFdSet): Rewritten.
  12317. * src/MultiDiskAdaptor.cc
  12318. (hashUpdate): Added ctx.
  12319. (sha1Sum): Renamed as messageDigest.
  12320. (messageDigest): New function.
  12321. * src/BitfieldMan.h
  12322. (isBitRangeSet): New function.
  12323. (unsetBitRange): New function.
  12324. * src/ByteArrayDiskWriter.h
  12325. (sha1Sum): Renamed as messageDigest.
  12326. (messageDigest): New function.
  12327. * src/ConsoleDownloadEngine.cc
  12328. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12329. * src/DiskWriter.h
  12330. (messageDigest.h): New include.
  12331. (sha1Sum): Renamed as messageDigest.
  12332. (messageDigest): New function.
  12333. * src/ChunkChecksumValidator.h: New class.
  12334. * src/DiskAdaptorWriter.h: New class.
  12335. * src/prefs.h
  12336. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12337. (PREF_CHECK_INTEGRITY): New definition.
  12338. * src/HttpResponseCommand.cc
  12339. (handleDefaultEncoding): Added method "HEAD" handling.
  12340. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12341. (handleOtherEncoding):
  12342. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12343. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12344. startupIdleTime, lowestDownloadSpeedLimit to command.
  12345. * src/SegmentMan.h
  12346. (getSegmentEntryByIndex): New function.
  12347. (getSegmentEntryByCuid): New function.
  12348. (getSegmentEntryIteratorByCuid): New function.
  12349. (diskWriter): DiskWriter -> DiskWriterHandle
  12350. (pieceHashes): New variable.
  12351. (chunkHashLength): New variable.
  12352. (digestAlgo): New variable.
  12353. (FindPeerStat): Removed.
  12354. (getPeerStat): Rewritten.
  12355. (markAllPiecesDone): New function.
  12356. (checkIntegrity): New function.
  12357. (tryChunkChecksumValidation): New function.
  12358. (isChunkChecksumValidationReady): New function.
  12359. * src/BitfieldMan.cc
  12360. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12361. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12362. blocks to 0.
  12363. (isBitRangeSet): New function.
  12364. (unsetBitRange): New function.
  12365. * src/FtpNegotiateCommand.cc
  12366. (executeInternal): Set maxDownloadSpeedLimit,
  12367. startupIdleTime, lowestDownloadSpeedLimit to command.
  12368. (recvSize): Added method "HEAD" handling.
  12369. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12370. * src/AbstractSingleDiskAdaptor.cc
  12371. (sha1Sum): Renamed as messageDigest.
  12372. (messageDigest): New function.
  12373. * src/AbstractSingleDiskAdaptor.h
  12374. (sha1Sum): Renamed as messageDigest.
  12375. (messageDigest): New function.
  12376. * src/Util.h
  12377. (indexRange): New function.
  12378. * src/MetalinkEntry.cc
  12379. (MetalinkEntry): Initialized chunkChecksum to 0.
  12380. * src/ShaVisitor.cc
  12381. (~ShaVisitor): Removed the call to ctx.digestFree().
  12382. * src/SegmentMan.cc
  12383. (ChunkChecksumValidator.h): New include.
  12384. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12385. to DIGEST_ALGO_SHA1.
  12386. (~SegmentMan): Removed diskWriter.
  12387. (FindSegmentEntryByIndex): Removed.
  12388. (FindSegmentEntryByCuid): Removed.
  12389. (checkoutSegment): Rewritten.
  12390. (findSlowerSegmentEntry): Rewritten.
  12391. (getSegment): Rewritten.
  12392. (updateSegment): Rewritten.
  12393. (completeSegment): Rewritten.
  12394. (markAllPiecesDone): New function.
  12395. (checkIntegrity): New function.
  12396. (isChunkChecksumValidationReady): New function.
  12397. (tryChunkChecksumValidation): New function.
  12398. * src/Xml2MetalinkProcessor.cc
  12399. (getEntry): Get size and set it to entry.
  12400. Get chunk checksum and set it to entry.
  12401. (getPieceHash): New function.
  12402. * src/Util.cc
  12403. (sha1Sum): Removed ctx.digestFree()
  12404. (fileChecksum): Removed ctx.digestFree()
  12405. (indexRange): New function.
  12406. * src/Request.cc
  12407. (METHOD_GET): New variable.
  12408. (METHOD_HEAD): New variable.
  12409. (Request): Added method.
  12410. * src/UrlRequestInfo.cc
  12411. (FatalException.h): New include.
  12412. (message.h): New include.
  12413. (operator<<): Added operator<< for class HeadResult.
  12414. (getHeadResult): New function.
  12415. (execute): Get filename and size in separate download engine.
  12416. * src/ChunkChecksumValidator.cc: New class.
  12417. * src/DownloadCommand.cc:
  12418. (DownloadCommand): Added peerStat.
  12419. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12420. the value from Option.
  12421. The buffer size is now 16KB.
  12422. Use peerStat member instead of getting it from SegmentMan.
  12423. Use startupIdleTime member instead of gettingit from Option.
  12424. Added chunk checksum validation.
  12425. * src/AbstractDiskWriter.cc
  12426. (AbstractDiskWriter): Removed ctx.
  12427. (~AbstractDiskWriter): Removed ctx.digestFree()
  12428. (writeDataInternal): Returns the return value of write.
  12429. (readDataInternal): Returns the return value of read.
  12430. (sha1Sum): Renamed as messageDigest
  12431. (messageDigest): New function.
  12432. * src/AbstractDiwkWriter.h
  12433. (messageDigest.h): Removed include.
  12434. (ctx): Removed.
  12435. (sha1Sum): Renamed as messageDigest
  12436. (messageDigest): New function.
  12437. * src/DefaultPieceStorage.h
  12438. (markAllPiecesDone): New function.
  12439. (checkIntegrity): New function.
  12440. * src/NullFileAllocationMonitor.h: New class.
  12441. * src/MetalinkChunkChecksum.h: New class.
  12442. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12443. To decrease CPU usage in bittorrent download, calculation results in
  12444. BitfieldMan were cached and realtime fetching PeerObject was removed
  12445. with WeakHandle introduced. Option values are set to the objects
  12446. by setter before download begins.
  12447. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12448. * src/DefaultBtRequestFactory.h
  12449. (dispatcher): BtMessageDispatcherHandle ->
  12450. BtMessageDispatcherWeakHandle.
  12451. (messageFactory): New variable.
  12452. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12453. BtMessageDispatcherWeakHandle.
  12454. (setBtMessageFactory): New function.
  12455. * src/DefaultBtMessageDispatcher.cc:
  12456. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12457. from Option.
  12458. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12459. feating the value from Option.
  12460. Use messageFactory member.
  12461. * src/PeerInteractionCommand.cc
  12462. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12463. Add reverse dependencies to factory object.
  12464. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12465. dispatcher.
  12466. Set messageFactory to receiver.
  12467. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12468. btInteractive.
  12469. Set receiver to peerObject.
  12470. Set maxDownloadSpeedLimit to this.
  12471. (executeInternal): Use maxDownloadSpeedLimit member.
  12472. * src/BtChokeMessage.cc
  12473. (doReceivedAction): Use dispatcher, requestFactory member.
  12474. (onSendComplete): Use dispatcher member.
  12475. * src/PeerInteractionCommand.h
  12476. (maxDownloadSpeedLimit): New variable.
  12477. * src/DefaultBtMessageReceiver.h
  12478. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12479. (dispatcher):
  12480. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12481. (messageFactory): New variable.
  12482. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12483. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12484. (setDispatcher):
  12485. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12486. (setBtMessageFactory): New function.
  12487. * src/DefaultBtInteractive.cc
  12488. (initiateHandshake): Use messageFactory member.
  12489. (addBitfieldMessageToQueue): Use messageFactory member.
  12490. (addAllowedFastMessageToQueue): Use messageFactory member.
  12491. (decideChoking): Use messageFactory member.
  12492. (checkHave): Use messageFactory member.
  12493. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12494. (receiveMessages): Use maxDownloadSpeedLimit member.
  12495. (decideInterest): Use messageFactory member.
  12496. * src/BtRequestMessage.cc
  12497. (doReceivedAction): Use messageFactory, dispatcher member.
  12498. (onQueued): Use dispatcher member.
  12499. * src/BtPieceMessage.cc
  12500. (doReceivedAction): Use dispatcher member.
  12501. (send): Use peerConnection member.
  12502. (onWrongPiece): Use requestFactory member.
  12503. (handleChokingEvent): Use messageFactory, dispatcher member.
  12504. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12505. * src/BtMessageDispatcher.h
  12506. (BtMessageDispatcherWeakHandle): New type definition.
  12507. * src/SimpleBtMessage.cc
  12508. (send): Use peerConnection member.
  12509. * src/BtRejectMessage.cc
  12510. (doReceivedAction): Use dispatcher member.
  12511. * src/DefaultBtMessageDispatcher.h
  12512. (Option.h): Removed include.
  12513. (messageFactory): New variable.
  12514. (option): Removed.
  12515. (maxUploadSpeedLimit): New variable.
  12516. (requestTimeout): New variable.
  12517. (DefaultBtMessageDispatcher): Removed option.
  12518. Added maxUploadSpeedLimit, requestTimeout.
  12519. (setOption): Removed.
  12520. (getOption): Removed.
  12521. (setMaxUploadSpeedLimit): New function.
  12522. (setRequestTimeout): New function.
  12523. (setBtMessageFactory): New function.
  12524. * src/DefaultBtInteractive.h
  12525. (btMessageReceiver):
  12526. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12527. (dispatcher):
  12528. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12529. (btRequestFactory):
  12530. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12531. (peerConnection):
  12532. PeerConnectionHandle -> PeerConnectionWeakHandle
  12533. (messageFactory): New variable.
  12534. (option): Removed.
  12535. (keepAliveInterval): New variable.
  12536. (maxDownloadSpeedLimit): New variable.
  12537. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12538. (setBtMessageReceiver):
  12539. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12540. (setDispatcher):
  12541. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12542. (setBtRequestFactory):
  12543. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12544. (setPeerConnection):
  12545. PeerConnectionHandle -> PeerConnectionWeakHandle
  12546. (setOption): Removed.
  12547. (setKeepAliveInterval): New function.
  12548. (setMaxDownloadSpeedLimit): New function.
  12549. (setBtMessageFactory): New function.
  12550. * src/BitfieldMan.h
  12551. (cachedNumMissingBlock): New variable.
  12552. (cachedNumFilteredBlock): New variable.
  12553. (cachedCompletedLength): New variable.
  12554. (cachedFilteredComletedLength): New variable.
  12555. (cachedFilteredTotalLength): New variable.
  12556. (countMissingBlockNow): New function.
  12557. (countFilteredBlockNow): New function.
  12558. (getFilteredTotalLengthNow): New function.
  12559. (getCompletedLengthNow): New function.
  12560. (getFilteredCompletedLengthNow): New function.
  12561. (updateCache): New function.
  12562. * src/AbstractBtMessage.h
  12563. (BtMessageDispatcher.h): New include.
  12564. (PeerConnection.h): New include.
  12565. (BtRequestFactory.h): New include
  12566. (BtMessageFactory.h): New include.
  12567. (dispatcher): New variable.
  12568. (messageFactory): New variable.
  12569. (peerConnection: New variable.
  12570. (setBtMessageDispatcher): New function.
  12571. (setPeerConnection): New function.
  12572. (setBtMessageFactory): New function.
  12573. (setBtRequestFactory): New function.
  12574. * src/DefaultBtMessageFactory.cc
  12575. (setCommonProperty): Set dispatcher, requestFactory, this,
  12576. peerConnection to msg.
  12577. * src/BtRegistry.h
  12578. (BT_MESSAGE_RECEIVER): New macro.
  12579. * src/PeerConnection.h
  12580. (PeerConnectionWeakHandle): New type definition.
  12581. * src/BtMessageFactory.h
  12582. (BtMessageFactoryWeakHandle): New type definition.
  12583. * src/BitfieldMan.cc
  12584. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12585. cachedCompletedLength, cachedFilteredComletedLength,
  12586. cachedFilteredTotalLength.
  12587. Call updateCache().
  12588. (countMissingBlock): Return cachedNumMissingBlock.
  12589. (countMissingBlockNow): New function.
  12590. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12591. (countFilteredBlockNow): New function.
  12592. (setBit): Call updateCache().
  12593. (unsetBit): Call updateCache().
  12594. (setBitfield): Call updateCache().
  12595. (clearAllBit): Call updateCache().
  12596. (setAllBit): Use setBitInternal instead of setBit.
  12597. Call updateCache().
  12598. (addFilter): Call updateCache().
  12599. (enableFilter): Call updateCache().
  12600. (disableFilter): Call updateCache().
  12601. (clearFilter): Call updateCache().
  12602. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12603. (getFilteredTotalLengthNow): New function.
  12604. (getCompletedLength): Return cachedCompletedLength.
  12605. (getCompletedLengthNow): New function.
  12606. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12607. (getFilteredCompletedLengthNow): New function.
  12608. (updateCache): New function.
  12609. * src/BtMessageReceiver.h
  12610. (BtMessageReceiverWeakHandle): New type definition.
  12611. * src/DefaultBtMessageReceiver.cc
  12612. (receiveHandshake): Use messageFactory member.
  12613. (sendHandshake): Use messageFactory member.
  12614. (receiveMessage): Use messageFactory member.
  12615. * src/DefaultBtMessageFactory.h
  12616. (dispatcher): New variable.
  12617. (requestFactory): New variable.
  12618. (peerConnection): New variablle.
  12619. (setBtMessageDispatcher): New function.
  12620. (setBtRequestFactory): New function.
  12621. (setPeerConnection): New function.
  12622. * src/SharedHandle.h
  12623. (RefCount): New class.
  12624. (WeakHandle): New class.
  12625. * src/PeerObject.h
  12626. (BtMessageReceiver.h): New include.
  12627. (PeerObject): Added btMessageReceiver.
  12628. (btMessageReceiver): New variable.
  12629. * src/Util.cc
  12630. (countBit): Simplified.
  12631. * src/BtCancelMessage.cc
  12632. (doReceivedAction): Use dispatcher member.
  12633. * src/BtRequestFactory.h
  12634. (BtRequestFactoryWeakHandle): New type definition.
  12635. * src/PeerStorage.h
  12636. (downloadSpeed): int -> uint32_t
  12637. (uploadSpeed): int -> uint32_t
  12638. (sessionDownloadLength): long long int -> uint64_t
  12639. (sessionUploadLength): long long int -> uint64_t
  12640. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12641. To add RecoverableException, FatalException:
  12642. * src/AbstractCommand.cc
  12643. (onAbort): Exception -> RecoverableException
  12644. * src/PeerAbstractCommand.h
  12645. (RecoverableException.h): New include.
  12646. (onAbort): Exception -> RecoverableException.
  12647. * src/PeerInteractionCommand.cc
  12648. (onAbort): Exception -> RecoverableException.
  12649. * src/PeerAbstractCommand.cc
  12650. (execute): Exception -> RecoverableException.
  12651. (onAbort): Exception -> RecoverableException.
  12652. * src/TorrentRequestInfo.cc
  12653. (execute): Exception -> RecoverableException.
  12654. * src/MetalinkRequestInfo.cc
  12655. (execute): Exception -> RecoverableException.
  12656. * src/MetaFileUtil.cc: RecoverableException.
  12657. * src/AbstractCommand.h
  12658. (onAbort): Exception -> RecoverableException.
  12659. * src/DlRetryEx.h: Exception -> RecoverableException.
  12660. * src/DlAbortEx.h: Exception -> RecoverableException.
  12661. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12662. * src/Util.cc: Exception -> RecoverableException.
  12663. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12664. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12665. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12666. To make ID static const int
  12667. * src/BtInterestedMessage.h
  12668. (ID_t): Removed.
  12669. (ID): New variable.
  12670. (getId): Made non-const.
  12671. * src/BtPieceMessage.h
  12672. (ID_t): Removed.
  12673. (ID): New variable.
  12674. (getId): Made non-const.
  12675. * src/BtChokeMessage.h
  12676. (ID_t): Removed.
  12677. (ID): New variable.
  12678. (getId): Made non-const.
  12679. * src/BtHaveAllMessage.h
  12680. (ID_t): Removed.
  12681. (ID): New variable.
  12682. (getId): Made non-const.
  12683. * src/BtKeepAliveMessage.h
  12684. (ID_t): Removed.
  12685. (ID): New variable.
  12686. (getId): Made non-const.
  12687. * src/BtHandshakeMessage.h
  12688. (ID): New variable.
  12689. (getId): Made non-const.
  12690. * src/BtSuggestPieceMessage.h
  12691. (ID_t): Removed.
  12692. (ID): New variable.
  12693. (getId): Made non-const.
  12694. * src/BtPortMessage.h
  12695. (ID_t): Removed.
  12696. (ID): New variable.
  12697. (getId): Made non-const.
  12698. * src/AbstractBtMessage.h
  12699. (id): Removed.
  12700. (AbstractBtMessage): Removed id.
  12701. (getId): Removed.
  12702. * src/BtHaveMessage.h
  12703. (ID_t): Removed.
  12704. (ID): New variable.
  12705. (getId): Made non-const.
  12706. * src/BtAllowedFastMessage.h
  12707. (ID_t): Removed.
  12708. (ID): New variable.
  12709. (getId): Made non-const.
  12710. * src/BtCancelMessage.h
  12711. (ID_t): Removed.
  12712. (ID): New variable.
  12713. (getId): Made non-const.
  12714. * src/BtNotInterestedMessage.h
  12715. (ID_t): Removed.
  12716. (ID): New variable.
  12717. (getId): Made non-const.
  12718. * src/BtChokeMessage.h
  12719. (ID_t): Removed.
  12720. (ID): New variable.
  12721. (getId): Made non-const.
  12722. * src/BtRejectMessage.h
  12723. (ID_t): Removed.
  12724. (ID): New variable.
  12725. (getId): Made non-const.
  12726. * src/BtBitfieldMessage.h
  12727. (ID_t): Removed.
  12728. (ID): New variable.
  12729. (getId): Made non-const.
  12730. * src/BtUnchokeMessage.h
  12731. (ID_t): Removed.
  12732. (ID): New variable.
  12733. (getId): Made non-const.
  12734. * src/BtRequestMessage.h
  12735. (ID_t): Removed.
  12736. (ID): New variable.
  12737. (getId): Made non-const.
  12738. * src/BtHaveMessage.h
  12739. (ID_t): Removed.
  12740. (ID): New variable.
  12741. (getId): Made non-const.
  12742. To add --force-truncate command-line option and a check whether
  12743. the file already exists:
  12744. * src/DirectDiskAdaptor.h
  12745. (getFilePath): Made virtual public.
  12746. * src/MultiDiskAdaptor.h
  12747. (File.h): New include.
  12748. (DiskWriterEntry::fileEntry): Made private.
  12749. (DiskWriterEntry::fileExists): New function.
  12750. (DiskWriterEntry::getFileEntry): New function.
  12751. (fileExists): New function.
  12752. (getFilePath): New function.
  12753. * src/TorrentRequestInfo.cc
  12754. (FatalException.h): New include.
  12755. (message.h): New include.
  12756. (RecoverableException.h): New include.
  12757. (execute): Added a check whether file is already exists or not.
  12758. * src/DiskAdaptor.h
  12759. (fileExists): New function.
  12760. (getFilePath): New function.
  12761. * src/main.cc
  12762. (showUsage): Added an explanation of --force-truncate command-line
  12763. option.
  12764. (main): Added --force-truncate command-line option.
  12765. * src/Exception.h
  12766. (setMsg): buf[256] -> buf[1024]
  12767. * src/CopyDiskWriter.h
  12768. (getFilePath): Made public virtual.
  12769. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12770. (fileExists): New function.
  12771. * src/DownloadEngineFactory.cc
  12772. (newTorrentConsoleEngine): Don't open file here.
  12773. * src/message.h
  12774. (EX_FILE_ALREADY_EXISTS): New definition.
  12775. * src/prefs.h
  12776. (PREF_FOECE_TRUNCATE): New definition.
  12777. * src/HttpResponseCommand.cc
  12778. (handleDefaultEncoding): Added a check whether the file already exists.
  12779. * src/SegmentMan.h
  12780. (fileExists): New function.
  12781. (shouldCancelDownloadForSafety): New function.
  12782. * src/FtpNegotiateCommand.cc
  12783. (recvSize): Added a check whether the file already exists.
  12784. * src/AbstractSingleDiskAdaptor.cc
  12785. (File.h): New include.
  12786. (fileExists): New function.
  12787. * src/AbstractSingleDiskAdaptor.h
  12788. (getFilePath): Removed.
  12789. (fileExists): New function.
  12790. * src/SegmentMan.cc
  12791. (fileExists): New function.
  12792. (shouldCancelDownloadForSafety): New function.
  12793. To fix regression bug in torrent downloading:
  12794. * src/DefaultBtRequestFactory.cc
  12795. (doChokedAction): New function.
  12796. * src/DefaultBtRequestFactory.h
  12797. (doChokedAction): New function.
  12798. * src/DefaultBtMessageDispatcher.cc
  12799. (doChokedAction): Do not delete request if its target is in allowed
  12800. fast set.
  12801. * src/DefaultBtInteractive.cc
  12802. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12803. (sendKeepAlive): Send keep alive message even if the outgoing message
  12804. queue is not empty.
  12805. (decideInterest): Simplified the code.
  12806. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12807. it is already called when BtChokeMessage is received from a peer.
  12808. * src/BtRequestFactory.h
  12809. (doChokedAction): New function.
  12810. To clean up code:
  12811. * src/PeerInteractionCommand.h
  12812. (executeInternal): Added virtual keyword explicitly.
  12813. (prepareForRetry): Added virtual keyword explicitly.
  12814. (prepareForNextPeer): Added virtual keyword explicitly.
  12815. (onAbort): Added virtual keyword explicitly.
  12816. * src/RequestSlot.cc
  12817. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12818. * src/BtPieceMessage.cc
  12819. (doReceivedAction): Added a debug log of piece's bitfield.
  12820. * src/Piece.h
  12821. (getBitfieldLength): New function.
  12822. * src/ByteArrayDiskWriter.cc
  12823. (clear): Added buf = 0 to avoid double free corruption.
  12824. * src/FileAllocator.cc
  12825. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12826. Added cp.reset().
  12827. * src/BitfieldMan.h
  12828. (operator=): Rewritten.
  12829. * src/BitfieldMan.cc
  12830. (BitfieldMan): Initialized bitfield, useBitfield.
  12831. * src/PeerConnection.cc
  12832. (receiveMessage): Added a call to socket->readable() after getting
  12833. message length to avoid possible EOF.
  12834. * src/Util.cc
  12835. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12836. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12837. To add an ability to pre-allocate file space:
  12838. * src/DirectDiskAdaptor.h: Rewritten.
  12839. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12840. * src/MultiDiskAdaptor.h: Rewritten.
  12841. * src/DefaultPieceStorage.cc
  12842. (MultiDiskWriter.h): Removed include.
  12843. (PreAllocationDiskWriter.h): Removed include.
  12844. (FileAllocationMonitor.h): New include.
  12845. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12846. (initStorage): Rewritten.
  12847. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12848. * src/FileAllocator.h: New class.
  12849. * src/FileAllocator.cc: New class.
  12850. * src/FileAllocationMonitor.h: New class.
  12851. * src/FileAllocationMonitor.cc: New class.
  12852. * src/ConsoleFileAllocationMonitor.h: New class.
  12853. * src/ConsoleFileAllocationMonitor.cc: New class.
  12854. * src/AbstractSingleDiskAdaptor.h: New class.
  12855. * src/AbstractSingleDiskAdaptor.cc: New class.
  12856. * src/DiskAdaptor.h
  12857. (Directory.h): Removed include.
  12858. (DiskWriter.h): Removed include.
  12859. (FileEntry.h): Removed include.
  12860. (diskWriter): Removed.
  12861. (DiskAdaptor): Removed diskWriter.
  12862. (openFile): Made pure virtual.
  12863. (closeFile): Made pure virtual.
  12864. (openExistingFile): Made pure virtual.
  12865. (initAndOpenFile): Made pure virtual.
  12866. (writeData): Made pure virtual.
  12867. (readData): Made pure virtual.
  12868. (sha1Sum): Made pure virtual.
  12869. (getStoreDir): Returns const reference of storeDir.
  12870. (DiskAdaptorHandle): New type definition.
  12871. * src/main.cc
  12872. (ConsoleFileAllocationMonitor.h): New include.
  12873. (showUsage): Added default value description of -s option.
  12874. Added the description of --file-allocation option.
  12875. (main): Set default value of --file-allocation option to 'none'.
  12876. Added --file-allocation command-line option.
  12877. Setup FileAllocationMonitorFactory.
  12878. * src/FtpInitiateConnectionCommand.cc
  12879. (executeInternal): Removed diskWriter related processing, which was
  12880. moved to FtpNegotiationCommand.cc.
  12881. * src/DirectDiskAdaptor.cc
  12882. (getFilePath): Made non-const.
  12883. * src/CopyDiskAdaptor.h
  12884. (DiskAdaptor.h): Removed include.
  12885. (DiskWriter.h): Removed include.
  12886. (AbstractSingleDiskAdaptor.h): New include.
  12887. (getFilePath): Made non-const. Added virtual keyword.
  12888. (CopyDiskAdaptor): Removed diskWriter.
  12889. (getTempFile): Returns const reference.
  12890. (CopyDiskAdaptorHandle): New type definition.
  12891. * src/ByteArrayDiskWriter.cc
  12892. (clear): Simplified.
  12893. (initAndOpenFile): Rewritten.
  12894. (openFile): Call initAndOpenFile()
  12895. * src/MultiDiskAdaptor.cc: Rewritten.
  12896. * src/DownloadEngineFactory.cc
  12897. (FileAllocator.h): New include.
  12898. (FileAllocationMonitor.h): New include.
  12899. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12900. create DefaultDiskWriter with file allocator.
  12901. * src/DiskWriter.h
  12902. (initAndOpenFile): Added totalLength argument.
  12903. (openFile): Added totalLength argument.
  12904. * src/prefs.h
  12905. (PREF_FILE_ALLOCATION): New definition.
  12906. (V_PREALLOC): New definition.
  12907. (V_NONE): New definition.
  12908. * src/HttpResponseCommand.cc
  12909. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12910. size.
  12911. * src/FtpNegotiateCommand.cc
  12912. (Util.h): New include.
  12913. (recvSize): Open file here.
  12914. * src/Util.h
  12915. (ullitos): New function.
  12916. * src/CopyDiskWriter.h
  12917. (getFilePath): Made non-const.
  12918. * src/DefaultDiskWriter.h
  12919. (Option.h): New include.
  12920. (totalLength): Removed.
  12921. (DefaultDiskWriter): Removed totalLength.
  12922. (initAndOpenFile): Added totalLength argument.
  12923. (DefaultDiskWriterHandle): New type definition.
  12924. (createNewDiskWriter): New function.
  12925. * src/Util.cc
  12926. (ullitos): New function.
  12927. * src/DefaultDiskWriter.cc
  12928. (message.h): New include.
  12929. (FileAllocator.h): New include.
  12930. (prefs.h): New include.
  12931. (Util.h): New include.
  12932. (DefaultDiskWriter): Removed totalLength.
  12933. (initAndOpenFile): Added file allocation.
  12934. (createNewDiskWriter): New function. Just for temporary solution.
  12935. It will be rewritten later.
  12936. * src/DiskAdaptor.cc
  12937. (DiskAdaptor): Removed diskWriter.
  12938. * src/AbstractDiskWriter.cc
  12939. (LogFactory.h): New include.
  12940. (AbstractDiskWriter): Added fileAllocator, logger.
  12941. (openFile): Added totalLength argument.
  12942. * src/AbstractDiskWriter.h
  12943. (FileAllocator.h): New include.
  12944. (Logger.h): New include.
  12945. (fileAllocator): New variable.
  12946. (logger): New variable.
  12947. (openFile): Added totalLength argument. Added virtual keyword
  12948. explicitly.
  12949. (openExistingFile): Added totalLength argument. Added virtual keyword
  12950. explicitly.
  12951. (closeFile): Added virtual keyword explicitly.
  12952. (sha1Sum): Added virtual keyword explicitly.
  12953. (writeData): Added virtual keyword explicitly.
  12954. (readData): Added virtual keyword explicitly.
  12955. (setFileAllocator): New function.
  12956. * src/DefaultPieceStorage.h
  12957. (FileAllocator.h): New include.
  12958. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12959. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12960. * src/FileProgressMonitor.h: New class.
  12961. To compile aria2 on PC-BSD:
  12962. * src/DefaultBtContext.cc
  12963. (libgen.h): New include.
  12964. To fix memory leak:
  12965. * src/Exception.h
  12966. (~Exception): Delete cause. Fixed memory leak.
  12967. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12968. Rewritten a portion of bittorrent implementation:
  12969. * src/BtMessageValidator.h: New class.
  12970. * src/BtBitfieldMessageValidator.h: New class.
  12971. * src/BtHandshakeMessageValidator.h: New class.
  12972. * src/BtRequestMessageValidator.h: New class.
  12973. * src/BtSuggestPieceMessageValidator.h: New class.
  12974. * src/BtAllowedFastMessageValidator.h: New class.
  12975. * src/BtRejectMessageValidator.h: New class.
  12976. * src/BtCancelMessageValidator.h: New class.
  12977. * src/BtPieceMessageValidator.h: New class.
  12978. * src/BtHaveMessageValidator.h: New class.
  12979. * src/BtEventListener.h: New class.
  12980. * src/AbstractBtEventListener.h: New class.
  12981. * src/BtEvent.h: New class.
  12982. * src/BtChokingEvent.h: New class.
  12983. * src/BtChokedEvent.h: New class.
  12984. * src/BtCancelSendingPieceEvent.h: New class.
  12985. * src/BtAbortOutstandingRequestEvent.h: New class.
  12986. * src/Randomizer.h: New class.
  12987. * src/SimpleRandomizer.h: New class.
  12988. * src/BtMessage.h: New class.
  12989. * src/AbstractBtMessage.h: New class.
  12990. * src/SimpleBtMessage.h: New class.
  12991. * src/BtHaveMessage.h: New class.
  12992. * src/BtInterestedMessage.h: New class.
  12993. * src/BtAllowedFastMessage.h: New class.
  12994. * src/BtUnchokeMessage.h: New class.
  12995. * src/BtCancelMessage.h: New class.
  12996. * src/BtNotInterestedMessage.h: New class.
  12997. * src/BtChokeMessage.h: New class.
  12998. * src/BtHaveNoneMessage.h: New class.
  12999. * src/BtHandshakeMessage.h: New class.
  13000. * src/BtSuggestPieceMessage.h: New class.
  13001. * src/BtHaveMessage.h: New class.
  13002. * src/BtPieceMessage.h: New class.
  13003. * src/BtHaveAllMessage.h: New class.
  13004. * src/BtKeepAliveMessage.h: New class.
  13005. * src/BtPortMessage.h: New class.
  13006. * src/BtRejectMessage.h: New class.
  13007. * src/BtBitfieldMessage.h: New class.
  13008. * src/BtRequestMessage.h: New class.
  13009. * src/DefaultBtRequestFactory.h: New class.
  13010. * src/DefaultBtMessageReceiver.h: New class.
  13011. * src/BtInteractive.h: New class.
  13012. * src/BtMessageDispatcher.h: New class.
  13013. * src/DefaultBtMessageDispatcher.h: New class.
  13014. * src/DefaultBtInteractive.h: New class.
  13015. * src/BitfieldManFactory.h: New class.
  13016. * src/HandleRegistry.h: New class.
  13017. * src/BtMessageFactory.h: New class.
  13018. * src/BtMessageReceiver.h: New class.
  13019. * src/DefaultBtMessageFactory.h: New class.
  13020. * src/PeerObject.h: New class.
  13021. * src/BtRequestFactory.h: New class.
  13022. * src/SuggestPieceMessage.h: Removed.
  13023. * src/PortMessage.h: Removed.
  13024. * src/SuggestPieceMessage.h: Removed.
  13025. * src/KeepAliveMessage.h: Removed.
  13026. * src/HandshakeMessage.h: Removed.
  13027. * src/PeerInteraction.h: Removed.
  13028. * src/UnchokeMessage.h: Removed.
  13029. * src/PieceMessage.h: Removed.
  13030. * src/RequestMessage.h: Removed.
  13031. * src/InterestedMessage.h: Removed.
  13032. * src/HaveMessage.h: Removed.
  13033. * src/CancelMessage.h: Removed.
  13034. * src/RejectMessage.h: Removed.
  13035. * src/AllowedFastMessage.h: Removed.
  13036. * src/HaveNoneMessage.h: Removed.
  13037. * src/SimplePeerMessage.h: Removed.
  13038. * src/HaveAllMessage.h: Removed.
  13039. * src/BitfieldMessage.h: Removed.
  13040. * src/PeerMessageFactory.h: Removed.
  13041. * src/NotInterestedMessage.h: Removed.
  13042. * src/ChokeMessage.h: Removed.
  13043. * src/PeerMessage.h: Removed.
  13044. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13045. To know root cause of exception:
  13046. * src/Exception.h
  13047. (cause): New variable.
  13048. (Exception): Added a parameter.
  13049. (getMsg): Return const reference to msg.
  13050. (getCause): New function.
  13051. * src/DlRetryEx.h
  13052. (DlRetryEx): Added a parameter 'cause'.
  13053. Added an overloaded constructor.
  13054. (DlAbortEx): Added a parameter 'cause'.
  13055. Added an overloaded constructor.
  13056. * src/SimpleLogger.cc
  13057. (writeLog): Log nested exception messages recursively.
  13058. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13059. * src/DefaultBtProgressInfoFile.cc
  13060. (load): Fixed memory leak when the infohash doesn't match.
  13061. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13062. * src/DefaultPeerStorage.cc
  13063. (calculateStat): Simplified the code by combining 2 loops into 1.
  13064. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13065. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13066. for BitTorrent download:
  13067. * src/PeerAbstractCommand.cc
  13068. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13069. * src/main.cc:
  13070. (timeoutSpecified): Removed.
  13071. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13072. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13073. * src/TorrentRequestInfo.cc
  13074. (timeoutSpecified): Removed.
  13075. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13076. timeout value.
  13077. * src/prefs.h
  13078. (PREF_BT_TIMEOUT): New definition.
  13079. Delete unused variables:
  13080. * src/TorrentRequestInfo.cc
  13081. (requestInfo): Removed.
  13082. Move setSignalHander to Util::setGlobalSignalHandler:
  13083. * src/TorrentRequestInfo.cc:
  13084. setSignalHander -> Util::setGlobalSignalHandler
  13085. * src/main.cc
  13086. (setSignalHander): Removed.
  13087. (main): setSignalHander -> Util::setGlobalSignalHandler
  13088. * src/Util.h
  13089. (setGlobalSignalHandler): New function.
  13090. * src/Util.cc
  13091. (setGlobalSignalHandler): New function.
  13092. * src/UrlRequestInfo.cc:
  13093. setSignalHander -> Util::setGlobalSignalHandler
  13094. Reset peer status in order to exit gracefully:
  13095. * src/PeerAbstractCommand.cc
  13096. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13097. To fix the bug that causes the number of bytes uploaded is not saved
  13098. to .aria2 file:
  13099. * src/DefaultPeerStorage.h
  13100. (removedPeerSessionDownloadLength): New variable.
  13101. (removedPeerSessionUploadLength): New variable.
  13102. * src/DefaultPeerStorage.cc
  13103. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13104. removedPeerSessionUploadLength(0).
  13105. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13106. through all peers, and then add removedPeerSessionDownloadLength(
  13107. removedPeerSessionUploadLength) to it.
  13108. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13109. (to) the peer to removedPeerSessionDownloadLength
  13110. (removedPeerSessionUploadLength).
  13111. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13112. To add Metalink location option:
  13113. * src/MetalinkRequestInfo.cc
  13114. (execute): Call MetalinkEntry::setLocationPreference()
  13115. * src/main.cc
  13116. (showUsage): Added the help message for --metalink-location option.
  13117. (main): Added --metalink-location option.
  13118. * src/prefs.h
  13119. (PREF_METALINK_LOCATION): New definition.
  13120. * src/MetalinkEntry.cc
  13121. (AddLocationPreference): New function object.
  13122. (setLocationPreference): New function.
  13123. * src/Xml2MetalinkProcessor.cc
  13124. (getResource): Set location attribute to MetalinkResource
  13125. To show URLs to download
  13126. * src/UrlRequestInfo.h
  13127. (printUrls): New function.
  13128. To add multiple <file> Metalink support:
  13129. * src/MetalinkEntry.h
  13130. (MetalinkResources): Removed.
  13131. (setLocationPreference): New function.
  13132. (MetalinkEntryHandle): New type definition.
  13133. (MetalinkEntries): New type definition.
  13134. * src/Xml2MetalinkProcessor.h
  13135. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13136. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13137. (parseFile): Metalinker* -> MetalinkerHandle
  13138. * src/UrlRequestInfo.h
  13139. (execute): RequestInfo* -> RequestInfos
  13140. * src/MetalinkRequestInfo.cc
  13141. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13142. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13143. (execute): RequestInfo* -> RequestInfos
  13144. Added multiple <file> support. Print filename when it is queued.
  13145. * src/MetalinkRequestInfo.h
  13146. (execute): RequestInfo* -> RequestInfos
  13147. (getDownloadEngine): Removed.
  13148. * src/RequestInfo.h
  13149. (RequestInfoHandle): New type definition.
  13150. (RequestInfos): New type definition.
  13151. (execute): RequestInfo* -> RequestInfos
  13152. (getDownloadEngine): Removed.
  13153. * src/MetalinkResource.h
  13154. (MetalinkResourceHandle): New type definition.
  13155. (MetalinkResources): New type definition.
  13156. * src/MetalinkEntry.cc
  13157. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13158. because the element is now of type MetalinkResourceHandle.
  13159. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13160. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13161. (dropUnsupportedResource): Removed the deletion of the elements of
  13162. resources because the element is now of type MetalinkResourceHandle.
  13163. * src/Xml2MetalinkProcessor.cc
  13164. (parseFile): Metalinker* -> MetalinkerHandle
  13165. MetalinkEntry* -> MetalinkEntryHandle
  13166. Removed try-catch block.
  13167. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13168. MetalinkResource* -> MetalinkResourceHandle
  13169. Removed try-catch block.
  13170. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13171. Free result by using xmlXPathFreeObject()
  13172. * src/Metalinker.cc
  13173. (~Metalinker): Removed the deletion of entries.
  13174. MetalinkEntry* -> MetalinkEntryHandle
  13175. (queryEntry): Add multiple <file> Metalink support.
  13176. * src/Metalinker.h
  13177. (MetalinkEntries): Removed.
  13178. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13179. * src/MetalinkProcessor.h
  13180. (parseFile): Metalinker* -> MetalinkerHandle
  13181. Bug fixes:
  13182. * src/PeerChokeCommand.cc
  13183. (execute): cat01->cat02
  13184. * src/DefaultPieceStorage.cc
  13185. (DefaultPieceStorage): Added diskAdaptor(0)
  13186. * src/TrackerWatcherComand.cc:
  13187. (execute): Use btAnnounce->noMoreAnnounce()
  13188. to determin whether the function returns true or not.
  13189. * src/TrackerUpdateCommand.cc:
  13190. (execute): Use btAnnounce->noMoreAnnounce()
  13191. to determin whether the function returns true or not.
  13192. * src/FtpConnection.cc
  13193. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13194. This is the fix of the busy loop bug.
  13195. * src/DownloadCommand.cc
  13196. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13197. cached PeerStat.
  13198. The value of "name" entry in torrent file is now set by
  13199. *DiskAdaptor::setTopDir(...) methods.
  13200. * src/MultiDiskAdaptor.h
  13201. (topDir): New variable.
  13202. (setTopDir): New function.
  13203. (getTopDir): New function.
  13204. * src/MultiDiskAdaptor.cc
  13205. (getFilePath): Concat storDir, "/" and topDir.
  13206. (mkdir): Use getFilePath() to get the directory path for output.
  13207. * src/DefaultPieceStorage.cc
  13208. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13209. CopyDiskAdaptor.
  13210. * src/CopyDiskAdaptor.h
  13211. (topDir): New variable.
  13212. (setTopDir): New function.
  13213. (getTopDir): New function.
  13214. * src/CopyDiskAdaptor.cc
  13215. (fixFilename): Updated.
  13216. Misc
  13217. * src/UrlRequestInfo.h
  13218. (e): Removed.
  13219. (UrlRequestInfo): Removed e.
  13220. (getDownloadEngine): Removed.
  13221. * src/UrlRequestInfo.cc
  13222. (handler): Rewritten.
  13223. (printUrls): New function.
  13224. (execute): Call printUrls().
  13225. * src/HandshakeMessage.cc
  13226. (check): peerinteraction->getBtContext() -> btContext
  13227. * src/PeerInteraction.h
  13228. (getBtContext): Removed.
  13229. * src/TorrentRequestInfo.h
  13230. (execute): RequestInfo* -> RequestInfos
  13231. (getDownloadEngine): Removed.
  13232. * src/TorrentRequestInfo.cc
  13233. (haltRequested): Removed.
  13234. (btHaltRequested): New variable.
  13235. (torrentHandler): haltRequested -> btHaltRequested
  13236. (execute): RequestInfo* -> RequestInfos
  13237. * src/TorrentConsoleDownloadEngine.cc
  13238. (afterEachIteration): haltRequested -> btHaltRequested.
  13239. * src/ConsoleDownloadEngine.h
  13240. (initStatistics): Added virtual.
  13241. (calculateStatistics): Added virtual.
  13242. (onEndOfRun): Added virtual.
  13243. (afterEachIteration): Added virtual.
  13244. * src/ConsoleDownloadEngine.cc
  13245. (haltRequested): New variable.
  13246. (afterEachIteration): New function.
  13247. * src/main.cc
  13248. (requestInfo): Removed.
  13249. * src/SegmentMan.cc
  13250. (findSlowerSegmentEntry): Refactored.
  13251. * Release 0.9.0
  13252. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13253. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13254. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13255. * src/TorrentMan.h: Removed.
  13256. * src/TorrentMan.cc: Removed.
  13257. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13258. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13259. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13260. * src/PeerAbstractCommand.cc: Use btRuntime.
  13261. * src/BtContextAwareCommand.h: New class.
  13262. * src/FileEntry.h: Added accessor methods for following variables.
  13263. (path): Made private.
  13264. (length): Made private.
  13265. (offset): Made private.
  13266. (extracted): Made private.
  13267. (requested): Made private.
  13268. (FileEntries): New definition.
  13269. (FileEntryHandle): New definition.
  13270. * src/FileEntry.cc: New file.
  13271. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13272. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13273. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13274. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13275. * src/PieceStorage.h: New file.
  13276. * src/PeerInteractionCommand.h: Use btContext.
  13277. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13278. btRuntime.
  13279. * src/DefaultBtProgressInfoFile.h: New file.
  13280. * src/DefaultBtProgressInfoFile.cc: New file.
  13281. * src/File.cc
  13282. (Util.h): New include.
  13283. (mkdirs): New function.
  13284. * src/MultiDiskAdaptor.h
  13285. (mkdir): New function.
  13286. * src/PeerListProcessor.h
  13287. (Peers): Removed.
  13288. * src/PeerInteraction.h
  13289. (torrentMan): Removed.
  13290. (btContext): New variable.
  13291. (peerStorage): New variable.
  13292. (pieceStorage): New variable.
  13293. (btAnnounce): New variable.
  13294. (getTorrentMan): Removed.
  13295. (getBtContext): New function.
  13296. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13297. btAnnounce.
  13298. * src/HandshakeMessage.h
  13299. (TorrentMan.h): Removed.
  13300. * src/HandshakeMessage.cc: Use btContext.
  13301. * src/DefaultBtAnnounce.cc: New file.
  13302. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13303. * src/DefaultPieceStorage.cc: New file.
  13304. * src/DefaultBtContext.h: New file.
  13305. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13306. Use the accessor methods of FileEntry.
  13307. * src/CookieBox.cc: Updated to use Util::slice().
  13308. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13309. * src/common.h (SharedHandle.h): New include.
  13310. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13311. pieceStorage.
  13312. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13313. * src/DiskAdaptor.h
  13314. (topDir): Removed.
  13315. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13316. (setTopDir): Removed.
  13317. (getTopDir): Removed.
  13318. * src/BtContext.h: New file.
  13319. * src/DefaultPeerStorage.h: New file.
  13320. * src/PieceMessage.h (TorrentMan.h): Removed.
  13321. * src/RequestMessage.h (TorrentMan.h): Removed.
  13322. * src/TorrentDownloadEngine.h
  13323. (uploadLength): New variable.
  13324. (btContext): New variable.
  13325. (btRuntime): New variable.
  13326. (pieceStorage): New variable.
  13327. (peerStorage): New variable.
  13328. (btAnnounce): New variable.
  13329. (btProgressInfoFile): New variable.
  13330. (torrentMan): Removed.
  13331. (setBtContext): New function.
  13332. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13333. peerStorage, btAnnounce, btProgressInfoFile.
  13334. * src/Piece.h
  13335. (toString): New function.
  13336. (Pieces): New type definition.
  13337. * src/Peer.h
  13338. (active): New variable.
  13339. (Peer): Added active.
  13340. (activate): Set active to true.
  13341. (deactivate): Set active to false.
  13342. (isActive): New function.
  13343. (Peers): New type definition.
  13344. * src/DirectDiskAdaptor.cc
  13345. (getFilePath): Use the accessor methods of FileEntry.
  13346. * src/TorrentConsoleDownloadEngine.h
  13347. (afterEachIteration): New function.
  13348. * src/TorrentConsoleDownloadEngine.cc
  13349. (haltRequested): New variable.
  13350. (sendStatistics): Use pieceStorage, btRuntime.
  13351. (afterEachIteration): New function.
  13352. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13353. * src/Directry.h
  13354. (Directory): New function.
  13355. (DirectoryHandle): New type definition.
  13356. * src/BtProgressInfoFile.h: New file.
  13357. * src/RequestMessage.cc: Use pieceStorage.
  13358. * src/BtRuntime.h: New file.
  13359. * src/DefaultBtContext.cc: New file.
  13360. * src/BitfieldMan.h
  13361. (getCompletedLength): New function(private).
  13362. (getCompletedLength): New function.
  13363. (getFilteredCompletedLength): New function.
  13364. * src/BitfieldMan.h
  13365. (getCompletedLength): New function(private).
  13366. (getCompletedLength): New function.
  13367. (getFilteredCompletedLength): New function.
  13368. * src/MultiDiskAdaptor.cc
  13369. (mkdir): New function.
  13370. (openFile): Call mkdir().
  13371. (initAndOpenFile): Call mkdir().
  13372. * src/CancelMessage.h
  13373. (TorrentMan.h): Removed.
  13374. * src/RejectMessage.h
  13375. (TorrentMan.h): Removed.
  13376. * src/DownloadEngineFactory.cc
  13377. (DefaultPieceStorage.h): New include.
  13378. (DefaultPeerStorage.h): New include.
  13379. (DefaultBtAnnounce.h): New include.
  13380. (DefaultBtProgressInfoFile.h): New include.
  13381. (newTorrentConsoleEngine): Rewritten.
  13382. * src/ShareRatioSeedCriteria.h
  13383. (torrentMan): Removed.
  13384. (btContext): New variable.
  13385. (peerStorage): New variable.
  13386. (btRuntime): New variable.
  13387. (evaluate): Use btContext, btRuntime, peerStorage.
  13388. * src/AnnounceTier.h: New file.
  13389. * src/BtAnnounce.h: New file.
  13390. * src/BtRegistry.h: New file.
  13391. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13392. * src/PeerConnection.h (TorrentMan.h): Removed.
  13393. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13394. * src/Util.h
  13395. (slice): Added an argument.
  13396. * src/Util.cc
  13397. (slice): Added an argument to control whether trim is made or not.
  13398. * src/PeerStorage.h: New file.
  13399. * src/BtRegistry.cc: New file.
  13400. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13401. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13402. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13403. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13404. * src/TorrentRequestInfo.h
  13405. (e): Removed.
  13406. (showFileEntry): Added an argument.
  13407. (getDownloadEngine): Return 0.
  13408. * src/DefaultBtAnnounce.h: New file.
  13409. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13410. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13411. * src/PeerMessageFactory.h
  13412. (btContext): New variable.
  13413. (pieceStorage): New variable.
  13414. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13415. btAnnounce.
  13416. * src/DiskAdaptor.cc
  13417. (DiskAdaptor): Removed topDir.
  13418. (~DiskAdaptor): Removed topDir.
  13419. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13420. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13421. * src/File.h (mkdirs): New function.
  13422. * src/DefaultPeerStorage): New file.
  13423. * src/DownloadEngineFactory.h
  13424. (newTorrentConsoleEngine): Use btContext.
  13425. * src/BtContextAwareCommand.cc: New file.
  13426. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13427. * src/PeerMessage.h
  13428. (btContext): New variable.
  13429. (peerStorage): New variable.
  13430. (pieceStorage): New variable.
  13431. (setBtContext): New function.
  13432. * src/Directry.cc
  13433. (Directory): New function.
  13434. (createDir): Do nothing if name.size() == 0.
  13435. * src/AnnounceList.h
  13436. (AnnounceTier): Removed.
  13437. (AnnounceTiers): Removed.
  13438. * src/DefaultPieceStorage.h: New file.
  13439. * src/Piece.cc (toString): New function.
  13440. To fix typo:
  13441. * src/main.cc (showVersion): Fixed typo.
  13442. To fix compile warning:
  13443. * src/DelegatingPeerListProcessor.cc
  13444. (canHandle): Added "return false".
  13445. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13446. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13447. make the process of announce request testable.
  13448. * src/TrackerWatcherCommand.h
  13449. (TimeA2.h): Removed.
  13450. (interval): Removed.
  13451. (checkPoint): Removed.
  13452. (createRequestCommand): Added an argument 'url'.
  13453. (TrackerWatherCommand): Removed interval.
  13454. (createCommand): New function.
  13455. * src/DownloadEngineFactory.cc
  13456. (newTorrentConsoleEngine): Updated according to the changes in
  13457. TrackerWatherCommand.
  13458. * src/TorrentMan.cc
  13459. (DelegatingPeerListProcessor.h): New includes.
  13460. (TorrentMan): Added the initialization of announceInterval.
  13461. (isStoppedAnnounceReady): New function.
  13462. (isCompletedAnnounceReady): New function.
  13463. (isDefaultAnnounceReady): New function.
  13464. (isAnnounceReady): New function.
  13465. (getAnnounceUrl): New function.
  13466. (announceStart): New function.
  13467. (announceFailure): New function.
  13468. (announceSuccess): New function.
  13469. (isAllAnnounceFailed): New function.
  13470. (resetAnnounce): New function.
  13471. (processAnnounceResponse): New function.
  13472. (needMorePeerConnection): New function.
  13473. (noMoreAnnounce): New function.
  13474. * src/TrackerUpdateCommand.h
  13475. (getTrackerResponse): int->size_t
  13476. * src/TorrentMan.h
  13477. (isStoppedAnnounceReady): New function.
  13478. (isCompletedAnnounceReady): New function.
  13479. (isDefaultAnnounceReady): New function.
  13480. (announceInterval): New variable.
  13481. (isAnnounceReady): New function.
  13482. (getAnnounceUrl): New function.
  13483. (announceStart): New function.
  13484. (announceFailure): New function.
  13485. (announceSuccess): New function.
  13486. (isAllAnnounceFailed): New function.
  13487. (resetAnnounce): New function.
  13488. (processAnnounceResponse): New function.
  13489. (needMorePeerConnection): New function.
  13490. (noMoreAnnounce): New function.
  13491. * src/TrackerWatcherCommand.cc
  13492. (TrackerWatherCommand): Removed interval and checkPoint.
  13493. (execute): Rewritten.
  13494. (createCommand): New function.
  13495. (createRequestCommand): Rewritten.
  13496. * src/TrackerUpdateCommand.cc
  13497. (MetaFileUtil.h): Removed.
  13498. (DelegatingPeerListProcessor.h): Removed.
  13499. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13500. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13501. Request -> RequestHandle:
  13502. * src/HttpResponseCommand.h: Request->RequestHandle
  13503. * src/AbstractCommand.cc: Request->RequestHandle
  13504. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13505. * src/HttpRequestCommand.cc: Request->RequestHandle
  13506. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13507. * src/AbstractCommand.h: Request->RequestHandle
  13508. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13509. * src/HttpResponseCommand.cc: Request->RequestHandle
  13510. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13511. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13512. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13513. * src/HttpConnection.h: Request->RequestHandle
  13514. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13515. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13516. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13517. * src/DownloadCommand.h: Request->RequestHandle
  13518. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13519. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13520. * src/HttpRequestCommand.h: Request->RequestHandle
  13521. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13522. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13523. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13524. * src/HttpDownloadCommand.h: Request->RequestHandle
  13525. * src/FtpConnection.cc: Request->RequestHandle
  13526. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13527. * src/UrlRequestInfo.cc: Request->RequestHandle
  13528. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13529. * src/HttpConnection.h: Request->RequestHandle
  13530. * src/DownloadCommand.cc: Request->RequestHandle
  13531. * src/FtpConnection.h: Request->RequestHandle
  13532. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13533. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13534. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13535. * src/Request.h
  13536. (SharedHandle.h): New include.
  13537. (RequestHandle): New type definition.
  13538. (Requests): Redefined.
  13539. To add MULTITRACKER support:
  13540. * src/TrackerWatcherCommand.h
  13541. (createRequestCommand): New function.
  13542. * src/DownloadEngineFactory.cc
  13543. (newTorrentConsoleEngine): Removed req.
  13544. * src/prefs.h
  13545. (PREF_TRACKER_MAX_TRIES): New definition.
  13546. * src/TorrentMan.cc
  13547. (TorrentMan): Removed req. Added trackerNumTry.
  13548. (~TorrentMan): Removed req.
  13549. (setupInternal1): Added announceList.
  13550. * src/TorrentRequestInfo.cc
  13551. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13552. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13553. * src/main.cc
  13554. (main): Added PREF_TRACKER_MAX_TRIES.
  13555. * src/TorrentMan.h
  13556. (Request.h): Removed.
  13557. (AnnounceList.h): New include.
  13558. (trackerNumTry): New variable.
  13559. (req): Removed.
  13560. (announceList): New variable.
  13561. * src/TrackerWatcherCommand.cc
  13562. (execute): Rewritten.
  13563. (createRequestCommand): New function.
  13564. * src/TrackerUpdateCommand.cc
  13565. (execute): Updated with the use of AnnounceList.
  13566. * src/AnnounceList.cc: New class.
  13567. * src/AnnounceList.h: New class.
  13568. To fix typo:
  13569. * src/prefs.h
  13570. (PREF_MAX_TRIES): max_try->max_tries
  13571. To not to decode "+" as space in URL decode:
  13572. * src/Util.cc
  13573. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13574. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13575. To add timeout to async name resolution:
  13576. * src/AbstractCommand.h
  13577. (nameResolveFinished): New function. This is not elegant way. It needs
  13578. to be more refined.
  13579. (nameResolverCheck): New variable.
  13580. * src/AbstractCommand.cc
  13581. (AbstractCommand): Added nameResolverCheck.
  13582. (execute): Added the check whether the name resolution has finished.
  13583. (setNameResolverCheck): Set nameResolverCheck to true.
  13584. (disableNameResolverCheck): Set nameResolverCheck to false.
  13585. (nameResolverFinished): New function.
  13586. * src/FtpInitiateConnectionCommand.h
  13587. (nameResolverFinished): New function.
  13588. * src/FtpInitiateConnectionCommand.cc
  13589. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13590. * src/HttpInitiateConnectionCommand.h
  13591. (nameResolverFinished): New function.
  13592. * src/HttpInitiateConnectionCommand.cc
  13593. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13594. * src/prefs.h
  13595. (PREF_DNS_TIMEOUT): New definition.
  13596. * src/main.cc
  13597. (main): Added PREF_DNS_TIMEOUT.
  13598. To add the support for a non-compact response from a tracker:
  13599. * src/PeerListProcessor.h: New class.
  13600. * src/DefaultPeerListProcessor.h: New class.
  13601. * src/DefaultPeerListProcessor.cc: New class.
  13602. * src/CompactPeerListProcessor.h: New class.
  13603. * src/CompactPeerListProcessor.cc: New class.
  13604. * src/DelegatingPeerListProcessor.h: New class.
  13605. * src/DelegatingPeerListProcessor.cc: New class.
  13606. * src/TorrentMan.cc
  13607. (addPeer): New function(overload).
  13608. (addPeer): Delete unused peers only when new peer is added.
  13609. * src/TorrentMan.h
  13610. (PeerListProcessor.h): Included.
  13611. (Peers): Removed.
  13612. (addPeer): New function(overload).
  13613. * src/TrackerUpdateCommand.cc
  13614. (netinet/in.h): Removed.
  13615. (DelegatingPeerListProcessor.h): Included.
  13616. (execute): Updated to use DelegatingPeerListProcessor.
  13617. To fix the memory leak in TorrentMan::peers:
  13618. * src/PeerAbstractCommand.cc
  13619. (onAbort): Added peer->resetStatus().
  13620. * src/Peer.h
  13621. (resetStatus): Made public.
  13622. To improve the precision of the speed calculation:
  13623. * src/SpeedCalc.h
  13624. (nextInterval): New variable.
  13625. * src/SpeedCalc.cc
  13626. (reset): Added nextInterval.
  13627. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13628. (changeSw): Set nextInterval to 15 seconds relative to the current
  13629. instant time.
  13630. * src/main.cc
  13631. (showVersion): Updated.
  13632. (showUsage): Updated.
  13633. * Release 0.8.1
  13634. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13635. * src/main.cc
  13636. (showUsage): Commented out --min-segment-size option.
  13637. (main): Commented out --min-segment-size option.
  13638. * Release 0.8.0
  13639. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13640. * src/*.{h,cc}:
  13641. Added an exception to the license which allows linking with OpenSSL.
  13642. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13643. * src/AbstractCommand.cc
  13644. (execute): Check whether the download has finished before checking
  13645. socket status.
  13646. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13647. Do not exit even if no segment is available.
  13648. * src/prefs.h
  13649. (PREF_STARTUP_IDLE_TIME): New definition.
  13650. * src/PeerInteractionCommand.cc
  13651. (executeInternal): Removed max speed limit. Because it performs bad.
  13652. (receiveMessages): Added max speed limit. This was better than above,
  13653. but still a little bit to be desired. Sometimes the download speed
  13654. became much faster than I specified.
  13655. * src/SpeedCalc.h
  13656. (start): New variable.
  13657. (accumulatedLength): New variable.
  13658. (getAvgSpeed): New function.
  13659. * src/SpeedCalc.cc
  13660. (reset): Added start, accumulatedLength.
  13661. (update): Added calculation of an average speed.
  13662. (getAvgSpeed): New function.
  13663. * src/DownloadCommand.h
  13664. (sw): Removed.
  13665. * src/main.cc
  13666. (main): Added PREF_STARTUP_IDLE_TIME.
  13667. * src/PeerStat.h
  13668. (STATUS): Added REQUEST_IDLE.
  13669. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13670. (getAvgDownloadSpeed): New function
  13671. (requestIdle): New function.
  13672. * src/SegmentMan.h
  13673. (SegmentEntryHandle): New type definition.
  13674. (SegmentEntries): Now holds SegmentEntryHandle.
  13675. (findSlowerSegmentEntry): New funtion.
  13676. * src/SegmentMan.cc
  13677. (save): Updated according to the changes in SegmentEntries.
  13678. (read): Updated according to the changes in SegmentEntries.
  13679. (FindSegmentEntryByIndex): Updated according to the changes in
  13680. SegmentEntries.
  13681. (FindSegmentEntryByCuid): Updated according to the changes in
  13682. SegmentEntries.
  13683. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13684. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13685. Renamed uitr as itr.
  13686. (findSlowerSegmentEntry): New function.
  13687. (getSegment): Updated according to the changes in SegmentEntries.
  13688. Added the feature that cancels the segment with slow server and fast
  13689. one takes it over.
  13690. (cancelSegment): Updated according to the changes in SegmentEntries.
  13691. (getDownloadLength): Updated according to the changes in
  13692. SegmentEntries.
  13693. (init): Assigned 0 to bitfield after deleting it.
  13694. * src/DownloadCommand.cc
  13695. (STARTUP_IDLE_TIME): Removed.
  13696. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13697. * src/PeerChokeCommand.cc
  13698. (optUnchokingPeer): Updated according to the changes in Peer.
  13699. (ResetDelta): Removed.
  13700. (UploadFaster): Updated according to the changes in Peer.
  13701. (DownloadFaster): Updated according to the changes in Peer.
  13702. (execute): I clarify the meaning of "upload" and "download" here.
  13703. "upload" means the transfer from localhost to remote host.
  13704. "download" means the transfer from remote host to localhost.
  13705. Based on this rule, I swapped orderByUploadRate and
  13706. orderByDownloadRate.
  13707. * src/PeerInteractionCommand.cc
  13708. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13709. (executeInternal): Removed the argument of
  13710. peerInteraction->sendMessages().
  13711. (receiveMessages): Rewritten download speed limit.
  13712. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13713. * src/HttpResponseCommand.cc
  13714. (handleDefaultEncoding): If file size is unknown in torrent request,
  13715. do not call segmentMan->initBitfield() here.
  13716. Disabled persistent connection feature in torrent request.
  13717. * src/UrlRequestInfo.h
  13718. (UrlRequestInfo): Removed const qualifier from option.
  13719. * src/TorrentMan.h
  13720. (TransferStat): New class.
  13721. (deltaDownloadLength): Removed.
  13722. (deltaUploadLength): Removed.
  13723. (addDeltaDownloadLength): Removed.
  13724. (getDeltaDownloadLength): Removed.
  13725. (resetDeltaDownloadLength): Removed.
  13726. (addDeltaUploadLength): Removed.
  13727. (getDeltaUploadLength): Removed.
  13728. (resetDeltaUploadLength): Removed.
  13729. (addActivePeer): Added peer->activate().
  13730. (deleteActivePeer): Added peer->deactivate().
  13731. (calculateStat): New function.
  13732. * src/TorrentMan.cc
  13733. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13734. (calculateStat): New function.
  13735. * src/PeerInteraction.h
  13736. (uploadLimit): Removed.
  13737. (option): New variable.
  13738. (setUploadLimit): Removed.
  13739. (getUploadSpeed): Removed.
  13740. (sendMessages): Removed the argument "currentUploadSpeed".
  13741. * src/PeerInteraction.cc
  13742. (prefs.h): Included.
  13743. (PeerInteraction): Removed uploadLimit. Added option.
  13744. (sendMessages): Rewritten upload speed limit.
  13745. (sendHandshake): Removed the argument from sendMessages().
  13746. (sendBitfield): Removed the argument from sendMessages().
  13747. * src/PeerAbstractCommand.cc
  13748. (execute): Commented out the portion of upload limit.
  13749. (onAbort): Removed peer->resetStatus().
  13750. * src/TorrentRequestInfo.cc
  13751. (timeoutSpecified): Declared extern.
  13752. (execute): Set timeout to 180 if timeout is not specified by.
  13753. command-line.
  13754. * src/PieceMessage.cc
  13755. (receivedAction): Added peer->updateDownloadLength().
  13756. Removed peer->addPeerUpload().
  13757. Removed torrentMan->addDeltaDownloadLength().
  13758. (send): Added peer->updateUploadLength().
  13759. Removed peer->addPeerDownload().
  13760. Removed torrentMan->addDeltaUploadLength().
  13761. * src/main.cc
  13762. (timeoutSpecified): New variable.
  13763. (main): Set timeoutSpecified to false.
  13764. If the command-line option "--upload-limit" is specified, then
  13765. timeoutSpecified is set to true. This option will remain in the next
  13766. release, but be deprecated in the future release.
  13767. * src/TorrentRequestInfo.h
  13768. (TorrentRequestInfo): Removed const qualifier from op.
  13769. * src/PeerStat.h
  13770. (uploadSpeed): New variable.
  13771. (PeerStat): Added default value to cuid.
  13772. (calculateUploadSpeed): New function.
  13773. (updateUploadLength): New function.
  13774. (getMaxUploadSpeed): New function.
  13775. (getAvgUploadSpeed): New function.
  13776. (reset): Added uploadSpeed. Set status to IDLE.
  13777. * src/TorrentDownloadEngine.h
  13778. (cp): Declared as Time.
  13779. (sessionDownloadLengthArray): Removed.
  13780. (sessionUploadLengthArray): Removed.
  13781. (currentCp): Removed.
  13782. (lastCalcStat): New variable
  13783. (lastElapsed): Removed.
  13784. (sessionDownloadLength): Removed.
  13785. (calculateStat): New function.
  13786. * src/TorrentDownloadEngine.cc
  13787. (initStatistics): Removed lastElapsed, cp[],
  13788. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13789. currentCp, sessionDownloadLength.
  13790. Added cp.reset() and lastCalcStat.reset().
  13791. (calculateSpeed): Changed the name of the argument.
  13792. (calculateStatistics): Rewritten.
  13793. (calculateStat): New function.
  13794. * src/Peer.h
  13795. (PeerStat.h): Included.
  13796. (peerUpload): Removed.
  13797. (peerDownload): Removed.
  13798. (peerStat): New variable.
  13799. (sessionUploadLength): New variable.
  13800. (sessionDownloadLength): New variable.
  13801. (deltaUpload): Removed.
  13802. (deltaDownload): Removed.
  13803. (resetStatus): Made private.
  13804. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13805. Removed peerUpload, peerDownload.
  13806. (updateUploadLength): New function.
  13807. (addDeltaUpload): Removed.
  13808. (updateDownloadLength): New function.
  13809. (resetDeltaUpload): Removed.
  13810. (getDeltaUpload): Removed.
  13811. (addDeltaDownload): Removed.
  13812. (calculateUploadSpeed): New function.
  13813. (resetDeltaDownload): Removed.
  13814. (getDeltaDownload): Removed.
  13815. (calculateDownloadSpeed): New function.
  13816. (getSessionUploadLength): New function.
  13817. (getSessionDownloadLength): New function.
  13818. (activate): New function.
  13819. (deactivate): New function.
  13820. (addPeerUpload): Removed.
  13821. (setPeerUpload): Removed.
  13822. (getPeerUpload): Removed.
  13823. (addPeerDownload): Removed.
  13824. (setPeerDownload): Removed.
  13825. (getPeerDownload): Removed.
  13826. * src/Peer.cc
  13827. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13828. * src/MetalinkRequestInfo.h
  13829. (MetalinkRequestInfo): Removed const qualifier from op.
  13830. * src/RequestInfo.h
  13831. (op): Removed const qualifier.
  13832. (RequestInfo): Removed const qualifier from op.
  13833. * src/prefs.h
  13834. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13835. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13836. * src/PeerInteractionCommand.cc
  13837. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13838. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13839. * src/PeerInteraction.cc
  13840. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13841. * src/main.cc
  13842. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13843. Added the description of "--max-download-limit" option.
  13844. Removed the description of "--upload-limit" option.
  13845. Added the description of "--max-upload-limit" option.
  13846. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13847. Added "--max-download-limit" option and "--max-upload-limit" option.
  13848. Added the warning message if "--upload-limit" option is used.
  13849. * src/DownloadCommand.cc
  13850. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13851. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13852. To rewrite segment download mechanism for HTTP/FTP download.
  13853. Use BitfieldMan to manage segment download.
  13854. * src/HttpResponseCommand.h
  13855. (executeInternal): Pass the reference of segment.
  13856. * src/AbstractCommand.cc
  13857. (prepareForRetry): Call segmentMan->cancelSegment here.
  13858. (onAbort): Call segmentMan->cancelSegment here.
  13859. * src/HttpDownloadCommand.cc
  13860. (prepareForNextSegment): New function.
  13861. * src/DownloadEngineFactory.cc
  13862. (newConsoleEngine): Removed splitter.
  13863. (newTorrentConsoleEngine): Removed splitter.
  13864. * src/Request.h
  13865. (segment): Renamed from seg.
  13866. * src/FtpInitiateConnectionCommand.h
  13867. (executeInternal): Pass the reference of segment.
  13868. * src/AbstractCommand.h
  13869. (executeInternal): Pass the reference of segment.
  13870. * src/pref.h
  13871. (PREF_SEGMENT_SIZE): New definition.
  13872. * src/HttpProxyRequestCommand.h
  13873. (executeInternal): Pass the reference of segment.
  13874. * src/HttpResponseCommand.cc
  13875. (checkResponse): Allowed status 206 when a request range starts 0.
  13876. (handleDefaultEncoding): Rewritten the code related to Segment.
  13877. (handleOtherEncoding): Rewritten the code related to Segment.
  13878. * src/SegmentMan.h
  13879. (SegmentEntry): New class.
  13880. (SegmentEntries): New type definition.
  13881. (bitfield): New variable.
  13882. (usedSegmentEntries): New variable.
  13883. (onNullBitfield): New function.
  13884. (checkoutSegment): New function.
  13885. (segments): Removed.
  13886. (splitter): Removed.
  13887. (unregisterId): Removed.
  13888. (getSegment): New function(overload)
  13889. (getDownloadedSize): Removed.
  13890. (cancelSegment): New function.
  13891. (completeSegment): New function.
  13892. (initBitfield): New function.
  13893. (hasSegment): New function.
  13894. (getDownloadLength): New function.
  13895. * src/BitfieldMan.h
  13896. (getStartIndex): New function.
  13897. (getEndIndex): New function.
  13898. (getMissingUnusedIndex): New function(overload).
  13899. (getSparseMissingUnusedIndex): New function.
  13900. * src/BitfieldMan.cc
  13901. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13902. (getMissingUnusedIndex): New function(overload).
  13903. (Range): New class.
  13904. (getStartIndex): New function.
  13905. (getEndIndex): New function.
  13906. (getSparseMissingUnusedIndex): New function.
  13907. (isBitSetInternal): Return false if the given index is less than 0.
  13908. * src/HttpInitiateConnectionCommand.h
  13909. (executeInternal): Pass the reference of segment.
  13910. * src/FtpNegotiateCommand.h
  13911. (executeInternal): Pass the reference of segment.
  13912. * src/FtpNegotiateCommand.cc
  13913. (recvSize): Initialize bitfield here.
  13914. * src/FtpTunnelResponseCommand.h
  13915. (executeInternal): Pass the reference of segment.
  13916. * src/HttpConnection.cc
  13917. (createRequest): Rewritten range header processing.
  13918. * src/DownloadCommand.h
  13919. (executeInternal): Pass the reference of segment.
  13920. (prepareForRetry): Removed.
  13921. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13922. function.
  13923. * src/main.cc
  13924. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13925. * src/SegmentMan.cc
  13926. (SegmentMan): Added bitfield. Removed splitter.
  13927. (~SegmentMan): Added bitfield. Removed splitter.
  13928. (unregisterId): Removed.
  13929. (getSegment): Rewritten.
  13930. (updateSegment): Rewritten.
  13931. (save): Rewritten.
  13932. (read): Rewritten.
  13933. (finished): Rewritten.
  13934. (getDownloadedSize): Removed.
  13935. (initBitfield): New function.
  13936. (FindSegmentEntryByIndex): New function object.
  13937. (FindSegmentEntryByCuid): New function object.
  13938. (checkoutSegment): New function.
  13939. (onNullBitfield): New function.
  13940. (getSegment): New function(overload).
  13941. (CancelSegment): New function object.
  13942. (cancelSegment): New function.
  13943. (completeSegment): New function.
  13944. (hasSegment): New function.
  13945. (getDownloadLength): New function.
  13946. * src/FtpInitiateConnectionCommand.cc
  13947. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13948. * src/Segment.h: Rewritten.
  13949. * src/Segment.cc (operator<<): New function.
  13950. * src/HttpDownloadCommand.h
  13951. (prepareForNextSegment): New function.
  13952. * src/Request.cc
  13953. (resetUrl): Made segment null.
  13954. * src/DownloadEngine.cc
  13955. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13956. * src/HttpProxyRequestCommand.h
  13957. (executeInternal): Pass the reference of segment.
  13958. * src/DownloadCommand.cc
  13959. (executeInternal): Rewritten the code related to Segment.
  13960. (prepareForRetry): Removed.
  13961. (prepareForNextSegment): Rewritten.
  13962. * src/FtpTunnelResponseCommand.h
  13963. (executeInternal): Pass the reference of segment.
  13964. To add HTTP 1.1 persistent connection support(experimental)
  13965. * src/HttpRequestCommand.cc
  13966. (executeInternal): Disable keep alive if it is disabled by
  13967. configuration.
  13968. * src/Request.h
  13969. (keepAlive): New variable.
  13970. (isKeepAlive): New function.
  13971. (setKeepAlive): New function.
  13972. * src/pref.h
  13973. (PREF_HTTP_KEEP_ALIVE): New definition.
  13974. * src/HttpResponseCommand.cc
  13975. (executeInternal): Check the remote server supports keep alive.
  13976. * src/HttpConnection.cc
  13977. (createRequest): Send "Connection: close" only if keep alive is
  13978. disabled.
  13979. * src/main.cc
  13980. (main):
  13981. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13982. To add max download speed limit:
  13983. * src/pref.h
  13984. (PREF_MAX_SPEED_LIMIT): New definition.
  13985. * src/PeerInteractionCommand.cc
  13986. (executeInternal): Added max download speed limit. Not tested yet.
  13987. * src/SegmentMan.h
  13988. (PeerStats): New type definition.
  13989. (peerStats): New variable.
  13990. (registerPeerStat): New function.
  13991. (FindPeerStat): New function object.
  13992. (getPeerStat): New function.
  13993. (calculateDownloadSpeed): New function.
  13994. * src/SpeedCalc.h: New class.
  13995. * src/SpeedCalc.cc: New class.
  13996. * src/main.cc
  13997. (main):
  13998. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13999. download speed is not restricted).
  14000. * src/PeerStat.h: New class.
  14001. * src/SegmentMan.cc
  14002. (registerPeerStat): New function.
  14003. (calculateDownloadSpeed): New function.
  14004. * src/DownloadCommand.cc
  14005. (STARTUP_IDLE_TIME): New definition.
  14006. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14007. downloadStart.
  14008. (~DownloadCommand): Call peerStat->downloadStop.
  14009. (executeInternal): Added download speed limitter. Rewritten lowest
  14010. speed limitter.
  14011. * src/HttpConnection.cc
  14012. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14013. * src/AbstractCommand.cc
  14014. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14015. Added hostname to the error message.
  14016. * src/ConsoleDownloadEngine.cc
  14017. (calculateStatistics): Initialize psize with dlSize.
  14018. * src/PieceMessage.cc
  14019. (receivedAction): Do not call peerInteraction->abortPiece here.
  14020. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14021. * src/BitfieldMan.h
  14022. (clearAllUseBit): New function.
  14023. (setAllUseBit): New function.
  14024. * src/BitfieldMan.cc
  14025. (clearAllBit): Do not clear useBitfield here.
  14026. (clearAllUseBit): New function.
  14027. (setAllUseBit): New function.
  14028. * src/Piece.cc
  14029. (clearAllBlock): Call bitfield->clearAllUseBit().
  14030. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14031. To make filename URL-decoded:
  14032. * src/HttpResponseCommand.h: Updated doc.
  14033. * src/HttpResponseCommand.cc
  14034. (determinFilename): Made filename URL-decoded.
  14035. * src/FtpInitiateConnectionCommand.cc
  14036. (executeInternal): Made filename URL-decoded.
  14037. * src/Util.h (urldecode): New function.
  14038. * src/Util.cc (urldecode): New function.
  14039. To fix a bug that caused assertion failure in ares_strerror:
  14040. * src/NameResolver.cc (callback): Fixed the bug.
  14041. * Release 0.7.3
  14042. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14043. To add --seed-time and --seed-ratio command-line option:
  14044. * src/Option.h (getAsDouble): New function.
  14045. * src/Option.cc (getAsDouble): New function.
  14046. * src/SeedCheckCommand.h: New class.
  14047. * src/SeedCheckCommand.cc: New class.
  14048. * src/DownloadEngineFactory.cc
  14049. (SeedCheckCommand.h): Included.
  14050. (UnionSeedCriteria.h): Included.
  14051. (TimeSeedCriteria.h): Included.
  14052. (ShareRatioSeedCriteria.h): Included.
  14053. (newTorrentConsoleEngine): Added the processing of seed option.
  14054. * src/SeedCriteria.h: New class.
  14055. * src/ShareRatioSeedCriteria.h: New class.
  14056. * src/TimeSeedCriteria.h: New class.
  14057. * src/UnionSeedCriteria.h: New class.
  14058. * src/prefs.h
  14059. (PREF_SEED_TIME): New definition.
  14060. (PREF_SEED_RATIO): New definition.
  14061. * src/main.cc
  14062. (showUsage): Added --seed-time and --seed-ratio option.
  14063. (main): Added --seed-time and --seed-ratio option.
  14064. Made default log file name "/dev/null".
  14065. * src/SharedHandle.h
  14066. (SharedHandle): Copy constructor. Made it assignable from the
  14067. SharedHandle of the subclasses.
  14068. (operator=): Made it assignable from the SharedHandle of the
  14069. subclasses.
  14070. (getRefCount): New function.
  14071. To add notice log level and the switch to write log to stdout. This
  14072. switch is configurable per log level.
  14073. * src/Logger.h
  14074. (notice): New function.
  14075. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14076. constant.
  14077. * src/LogFactory.cc
  14078. (getInstance): The use of NullLogger was removed. A log message with
  14079. notice log level was made written to stdout along with log file.
  14080. * src/NullLogger.h
  14081. (notice): New function.
  14082. * src/SimpleLogger.h
  14083. (writeHeader): Added the 'file' argument.
  14084. (writeLog): Added the 'file' argument.
  14085. (writeFile): New function.
  14086. (stdoutField): New variable.
  14087. (SimpleLogger): Removed the default constructor.
  14088. (SimpleLogger): Made the default value of logfile 0.
  14089. (debug): Added 'virtual' keyword.
  14090. (info): Added 'virtual' keyword.
  14091. (warn): Added 'virtual' keyword.
  14092. (error): Added 'virtual' keyword.
  14093. (notice): New function.
  14094. (setStdout): New function.
  14095. * src/SimpleLogger.cc
  14096. (WRITE_LOG): Replaced writeLog with writeFile.
  14097. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14098. (SimpleLogger): Removed the default constructor.
  14099. (setStdout): New function.
  14100. (writeLog): Added the handling of NOTICE log level.
  14101. (writeFile): New function.
  14102. (notice): New function.
  14103. * src/TorrentMan.h: Updated doc.
  14104. * src/BitfieldMan.h: Updated doc.
  14105. * src/TrackerWatcherCommand.cc
  14106. (execute): Return true if error occurred in the request to the tracker
  14107. and halt is requested.
  14108. * src/TrackerUpdateCommand.cc
  14109. (execute): Return true if error occurred in the request to the tracker
  14110. and halt is requested.
  14111. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14112. DownloadEngine:
  14113. * src/TorrentConsoleDownloadEngine.h
  14114. (onSelectiveDownloadingCompletes): Removed.
  14115. * src/TorrentConsoleDownloadEngine.cc
  14116. (onSelectiveDownloadingCompletes): Removed.
  14117. * src/TorrentDownloadEngine.h
  14118. (onEndOfRun): Added 'virtual' keyword.
  14119. (afterEachIteration): Removed.
  14120. (onSelectiveDownloadingCompletes): Removed.
  14121. * src/TorrentDownloadEngine.cc
  14122. (onEndOfRun): Removed filenameFixed.
  14123. (afterEachIteration): Removed.
  14124. * src/TorrentMan.cc
  14125. (completePiece): Call onDownloadComplete here.
  14126. (onDownloadComplete): Added 2 log messages.
  14127. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14128. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14129. * src/NameResolver.h: Added the prototype declaration of callback().
  14130. To support c-ares library:
  14131. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14132. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14133. * src/FtpInitiateConnectionCommand.h:
  14134. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14135. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14136. * src/HttpInitiateConnectionCommand.h:
  14137. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14138. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14139. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14140. #1542285 by tizianomueller)
  14141. * src/HttpInitiateConnectionCommand.cc:
  14142. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14143. * src/FtpInitiateConnectionCommand.cc:
  14144. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14145. * src/DownloadEngine.h:
  14146. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14147. * src/DownloadEngine.cc:
  14148. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14149. To fix the bug that causes compilation failure with metalink-support
  14150. disabled(bug#1543587):
  14151. * src/main.cc: Fixed with the patch by tizianomueller.
  14152. * Release 0.7.2
  14153. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14154. * src/main.cc
  14155. (main): Added a message to inform users that aria2 is starting to
  14156. verify checksum.
  14157. * src/RequestInfo.cc
  14158. (printDownloadAbortMessage): Added a message to inform users that
  14159. transfer can be resumed.
  14160. * src/FeatureConfig.cc
  14161. (FEATURE_ASYNC_DNS): New definition.
  14162. (FeatureConfig): Added aysnc DNS entry.
  14163. To replace CommandUuid with Command* in SocketEntry and
  14164. NameResolverEntry:
  14165. * src/DownloadEngine.h
  14166. (CommandUuids): Removed.
  14167. (SocketEntry::commandUuid): Removed.
  14168. (SocketEntry::command): New variable.
  14169. (SocketEntry::SocketEntry): Updated.
  14170. (SocketEntry::operator==): Updated.
  14171. (NameResolverEntry::commandUuid): Removed.
  14172. (NameResolverEntry::command): New variable.
  14173. (NameResolverEntry::NameResolverEntry): Updated.
  14174. (NameResolverEntry::operator==): Updated.
  14175. (waitData): Changed the argument type.
  14176. (addSocketForReadCheck): Changed the argument type.
  14177. (deleteSocketForReadCheck): Changed the argument type.
  14178. (addSocketForWriteCheck): Changed the argument type.
  14179. (deleteSocketForWriteCheck): Changed the argument type.
  14180. (addNameResolverCheck): Changed the argument type.
  14181. (deleteNameResolverCheck): Changed the argument type.
  14182. * src/DownloadEngine.cc
  14183. (FindCommand): Removed.
  14184. (run): Removed activeUuid. Added activeCommands instead.
  14185. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14186. (AccumulateActiveCommand): New function object.
  14187. (waitData): Use AccumulateActiveCommand.
  14188. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14189. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14190. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14191. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14192. (addNameResolverCheck): Use Command instead of CommandUuid.
  14193. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14194. * src/AbstractCommand.cc
  14195. (disableReadCheckSocket): Updated according to the changes in
  14196. DownloadEngine.
  14197. (setReadCheckSocket): Updated according to the changes in
  14198. DownloadEngine.
  14199. (disableWriteCheckSocket): Updated according to the changes in
  14200. DownloadEngine.
  14201. (setWriteCheckSocket): Updated according to the changes in
  14202. DownloadEngine.
  14203. (setNameResolverCheck): Updated according to the changes in
  14204. DownloadEngine.
  14205. (disableNameResolverCheck): Updated according to the changes in
  14206. DownloadEngine.
  14207. * src/AbstractCommand.cc
  14208. (disableReadCheckSocket): Updated according to the changes in
  14209. DownloadEngine.
  14210. (setReadCheckSocket): Updated according to the changes in
  14211. DownloadEngine.
  14212. (disableWriteCheckSocket): Updated according to the changes in
  14213. DownloadEngine.
  14214. (setWriteCheckSocket): Updated according to the changes in
  14215. DownloadEngine.
  14216. * release 0.7.1
  14217. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14218. To handle the case where some BitTorrent tracker requires all letters
  14219. except for [A-Za-z0-9] is URL encoded.
  14220. * src/Util.h
  14221. (torrentUrlencode): New function.
  14222. * src/Util.cc
  14223. (ctype.h): Included.
  14224. (torrentUrlencode): New function.
  14225. * src/TrackerWatcherCommand.cc
  14226. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14227. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14228. To add asynchronous DNS support(libares):
  14229. * src/AbstractCommand.h
  14230. (setNameResolverCheck): New function.
  14231. (disableNameResolverCheck): New function
  14232. (resolveHostname): New function.
  14233. * src/AbstractCommand.cc
  14234. (setNameResolverCheck): New function.
  14235. (disableNameResolverCheck): New function
  14236. (resolveHostname): New function.
  14237. * src/FtpInitiateConnectionCommand.h
  14238. (nameResolver): New function.
  14239. * src/FtpInitiateConnectionCommand.cc
  14240. (Util.h): Included.
  14241. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14242. disableWriteCheckSocket.
  14243. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14244. (executeInternal): Added async DNS support.
  14245. * src/HttpInitiateConnectionCommand.h
  14246. (nameResolver): New function.
  14247. * src/HttpInitiateConnectionCommand.cc
  14248. (DlRetryEx.h): Included.
  14249. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14250. disableWriteCheckSocket.
  14251. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14252. (executeInternal): Added async DNS support.
  14253. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14254. by extern "C" declaration.
  14255. * src/NameResolver.cc: New class.
  14256. * src/Util.h:
  14257. (isNumberAndDotsNotation): New function
  14258. * src/Util.cc
  14259. (isNumberAndDotsNotation): New function.
  14260. * src/DownloadEngine.h
  14261. (NameResolver.h): Included.
  14262. (NameResolverEntry): New class.
  14263. (NameResolverEntries): New type definition.
  14264. (addNameResolverCheck): New function.
  14265. (deleteNameResolverCheck): New function.
  14266. * src/DownloadEngine.cc
  14267. (run): Initialize cp with 0.
  14268. (SetDescriptor::operator()): Added for NameResolverEntry.
  14269. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14270. (waitData): Check nameResolver entries.
  14271. (updateFdSet): Update fds in nameResolver entries.
  14272. (addNameResolverCheck): New function.
  14273. (deleteNameResolverCheck): new function.
  14274. * src/PeerInteractionCommand.cc
  14275. (executeInternal): Fixed wrong socket handling.
  14276. * src/main.cc
  14277. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14278. * src/Util.cc
  14279. (fileChecksum): Removed the call to ctx.digestReset().
  14280. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14281. * po/ru.po: Azamat sent me Russian translation.
  14282. * src/FtpNegotiateCommand.cc
  14283. (recvGreeting): Call disableWriteCheckSocket just after
  14284. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14285. (recvRetr): Recognized status code 125 as a acceptable response code.
  14286. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14287. case-insesitive filesystem(BUG#1531057).
  14288. * src/Time.h: Renamed as TimeA2.h.
  14289. * src/Time.cc: Renamed as TimeA2.cc.
  14290. * src/TimeA2.h: New class.
  14291. * src/TimeA2.cc: New class.
  14292. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14293. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14294. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14295. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14296. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14297. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14298. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14299. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14300. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14301. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14302. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14303. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14304. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14305. * release 0.7.0
  14306. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14307. * src/PeerChokeCommand.h
  14308. (PeerChokeCommand): Rearranged the arguments.
  14309. * src/PeerChokeCommand.cc
  14310. (PeerChokeCommand): Rearranged the arguments.
  14311. * src/MetalinkEntry.h
  14312. (Checksum.h): Included.
  14313. (md5): Removed.
  14314. (sha1): Removed.
  14315. (checksum): New variable.
  14316. (operator=): Updated.
  14317. (check): Removed.
  14318. * src/prefs.h
  14319. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14320. (PREF_FOLLOW_TORRENT): New definition.
  14321. (PREF_SELECT_FILE): New definition.
  14322. (PREF_FOLLOW_METALINK): New definition.
  14323. * src/MetalinkResource.h
  14324. (TYPE_HTTPS): Added to enum TYPE.
  14325. * src/TorrentMan.cc
  14326. (~TorrentMan): Rewritten.
  14327. * src/MultiDiskWriter.cc
  14328. (MultiDiskAdaptor): Updated according to the changes in
  14329. MessageDigestContext.
  14330. (~MultiDiskAdaptor): Updated according to the changes in
  14331. MessageDigestContext.
  14332. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14333. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14334. * src/Util.h
  14335. (fileChecksum): Updated according to the changes in
  14336. MessageDigestContext.
  14337. * src/Util.cc
  14338. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14339. (fileChecksum): Updated according to the changes in
  14340. MessageDigestContext.
  14341. * src/messageDigest.h: Rewritten.
  14342. * src/MetalinkEntry.cc
  14343. (check): Removed.
  14344. (Supported): Updated.
  14345. (dropUnsupportedResource): Fixed a memory leak.
  14346. * src/ShaVisitor.cc
  14347. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14348. (~ShaVisitor): Updated according to the changes in
  14349. MessageDigestContext.
  14350. (visit): Updated according to the changes in MessageDigestContext.
  14351. * src/main.cc
  14352. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14353. command-line option added.
  14354. * src/DownloadEngine.h
  14355. (SocketEntry): New class.
  14356. (SocketEntries): New definition.
  14357. (PairFind): Removed.
  14358. (SockCmdMap): Removed.
  14359. * src/DownloadEngine.cc
  14360. (DownloadEngine): Rewritten.
  14361. (~DownloadEngine): Rewritten.
  14362. (run): Renamed activeCommandUuids as activeUuids.
  14363. (SetDescriptor): Rewritten.
  14364. (AccumulateActiveCommandUuid): Removed.
  14365. (AccumulateActiveUuid): New function object.
  14366. (waitData): Rewritten.
  14367. (updateFdSet): Rewritten.
  14368. (addSocket): Rewritten.
  14369. (deleteSocket): Rewritten.
  14370. (addSocketForReadCheck): Rewritten.
  14371. (deleteSocketForReadCheck): Rewritten.
  14372. (addSocketForWriteCheck): Rewritten.
  14373. (deleteSocketForWriteCheck): Rewritten.
  14374. * src/Xml2MetalinkProcessor.cc
  14375. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14376. * src/DownloadCommand.cc
  14377. (executeInternal): Added the check routine for lowest speed limit.
  14378. * src/AbstractDiskWriter.cc
  14379. (AbstractDiskWriter): Updated according to the changes in
  14380. MessageDigestContext.
  14381. (~AbstractDiskWriter): Updated according to the changes in
  14382. MessageDigestContext.
  14383. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14384. * src/RequestInfo.h: New class.
  14385. * src/UrlRequestInfo.h: New class.
  14386. * src/UrlRequestInfo.cc: New class.
  14387. * src/TorrentRequestInfo.h: New class.
  14388. * src/TorrentRequestInfo.cc: New class.
  14389. * src/MetalinkRequestInfo.h: New class.
  14390. * src/MetalinkRequestInfo.cc: New class.
  14391. * src/Checksum.h: New class.
  14392. * src/DownloadEngineFactory.h: New class.
  14393. * src/DownloadEngineFactory.cc: New class.
  14394. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14395. * src/Option.h
  14396. (getAsBool): New function.
  14397. * src/Option.cc
  14398. (prefs.h): Included.
  14399. (defined): 0-length value is now recognized as undefined.
  14400. (getAsInt): Rewritten.
  14401. (getAsLLInt): Rewritten.
  14402. (getAsBool): New function.
  14403. * src/FeatureConfig.h: Rewritten.
  14404. * src/FeatureConfig.cc: Rewritten.
  14405. * src/prefs.h
  14406. (PREF_STDOUT_LOG): New definition.
  14407. (PREF_LOG): New definition.
  14408. (PREF_DIR): New definition.
  14409. (PREF_OUT): New definition.
  14410. (PREF_SPLIT): New definition.
  14411. (PREF_DAEMON): New definition.
  14412. (PREF_REFERER): New definition.
  14413. (PREF_TORRENT_FILE): New definition.
  14414. (PREF_LISTEN_PORT): New definition.
  14415. (PREF_METALINK_FILE): New definition.
  14416. (PREF_METALINK_VERSION): New definition.
  14417. (PREF_METALINK_LANGUAGE): New definition.
  14418. (PREF_METALINK_OS): New definition.
  14419. (PREF_METALINK_SERVERS): New definition.
  14420. * src/main.cc
  14421. (main): Following command-line parameters are now put into Option
  14422. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14423. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14424. metalinkLanguage, metalinkOs, metalinkServers
  14425. To fix the bug that aria2 can not handle http response header properly.
  14426. * src/HttpHeader.cc
  14427. (put): Made name lowercased.
  14428. (defined): Made name lowercased.
  14429. (getFirst): Made name lowercased.
  14430. (get): Made name lowercased.
  14431. (getFirstAsInt): Rewritten.
  14432. (getFirstAsLLInt): Rewritten.
  14433. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14434. * src/TorrentMan.h:
  14435. (advertisePiece): Updated doc.
  14436. (getAdvertisedPieceIndexes): Updated doc.
  14437. (removeAdvertisedPiece); New function.
  14438. * src/TorrentMan.cc
  14439. (FindElapsedHave): New function object.
  14440. (removeAdvertisedPiece): New function.
  14441. * src/HaveEraseCommand.h: New class.
  14442. * src/HaveEraseCommand.cc: New class.
  14443. * src/FeatureConfig.h: New class.
  14444. * src/FeatureConfig.cc: New class.
  14445. * src/Request.h
  14446. (defaultPorts): Removed.
  14447. * src/Request.cc
  14448. (FeatureConfig.h): Included.
  14449. (Request): Removed the statements related to defaultPorts.
  14450. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14451. A default port number is now retrieved from FeatureConfig.
  14452. * src/main.cc
  14453. (HaveEraseCommand.h): Included.
  14454. (showVersion): Added the output of feature list.
  14455. (main): Added HaveEraseCommand to command queue in BitTorrent
  14456. downloading.
  14457. * src/PeerInteractionCommand.h
  14458. (chokeCheckPoint): Commented out.
  14459. (periodicExecPoint): New variable.
  14460. * src/PeerInteractionCommand.cc
  14461. (executeInternal): Following methods are now called in at least every
  14462. 0.5 seconds to reduce CPU usage:
  14463. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14464. checkHave(), sendKeepAlive().
  14465. (checkLongTimePeerChoking): Commented out.
  14466. * src/BitfieldMan.h
  14467. (getNthBitIndex): Changed the method signature.
  14468. (getMissingIndexRandomly): Changed the method signature.
  14469. * src/BitfieldMan.cc
  14470. (getNthBitIndex): Rewritten
  14471. (getMissingIndexRandomly): Rewritten.
  14472. (hasMissingPiece): Rewritten.
  14473. (getMissingIndex): Refactored.
  14474. (getMissingUnusedIndex); Refactored.
  14475. (getMissingIndex): Refactored.
  14476. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14477. * src/PeerMessage.h
  14478. (Piece.h): Included.
  14479. (SharedHandle.h): Included.
  14480. (invalidate): New variable.
  14481. (uploading): New variable.
  14482. (isInvalidate): New function.
  14483. (isUploading): New function.
  14484. (onPush): New function.
  14485. (onChoked): New function.
  14486. (onCanceled): New function.
  14487. (onAbortPiece): New function.
  14488. (PeerMessageHandle): New type definition.
  14489. * src/PeerMessage.cc
  14490. (PeerMessage): Added the initialization for invalidate and uploading.
  14491. * src/CancelMessage.h
  14492. (CancelMessage): Rewritten.
  14493. * src/RejectMessage.h
  14494. (RejectMessage): Rewritten.
  14495. * src/Metalinker.h
  14496. (operator=): Defined.
  14497. * src/MetaEntry.h
  14498. (operator=): Defined.
  14499. * src/MetalinkResource.h
  14500. (operator=): Defined.
  14501. * src/AllowedFastMessage.h
  14502. (AllowedFastMessage): Rewritten.
  14503. * src/HandshakeMessage.h
  14504. (HandshakeMessage): New function(overload).
  14505. * src/HandshakeMessage.cc
  14506. (HandshakeMessage): Rewritten.
  14507. (init): New function.
  14508. * src/HaveMessage.h
  14509. (HaveMessage): Rewritten.
  14510. * src/Time.h
  14511. (operator=): Defined the function body here.
  14512. * src/Time.cc
  14513. (operator=): Removed.
  14514. * src/SocketCore.h
  14515. (operator==): Defined here.
  14516. (operator!=): Defined here.
  14517. (operator<): Defined here.
  14518. * src/SocketCore.cc
  14519. (operator==): Removed.
  14520. (operator<): Removed.
  14521. * src/BitfieldMan.h
  14522. (operator=): Defined the function body here.
  14523. * src/BitfieldMan.cc
  14524. (operator=): Removed.
  14525. * src/TorrentMan.h
  14526. (deleteErrorPeer): Removed.
  14527. (deleteUnusedPeer); New function.
  14528. * src/TorrentMan.cc
  14529. (addPeer): Call deleteUnusedPeer.
  14530. (deleteErrorPeer): Removed.
  14531. (deleteUnusedPeer): New function.
  14532. * src/PeerAbstractCommand.h
  14533. (setNoCheck): New function.
  14534. (noCheck): New variable.
  14535. * src/PeerAbstractCommand.cc
  14536. (PeerAbstractCommand): Added the initialization of noCheck.
  14537. (execute): Added a check for noCheck.
  14538. (setNoCheck): New function.
  14539. * src/Util.h
  14540. (stdio.h): Included.
  14541. * src/Util.cc
  14542. (unistd.h): Included.
  14543. * src/DefaultDiskWriter.cc
  14544. (unistd.h): Included.
  14545. * src/Peer.h
  14546. (operator==): Defined the function body here.
  14547. (operator!=): Defined the function body here.
  14548. * src/Peer.cc
  14549. (operator==): Removed.
  14550. (operator!=): Removed.
  14551. * src/Piece.h
  14552. (Piece): Defined the function body here(copy constructor).
  14553. (operator=): Defined the function body here.
  14554. (operator==): Defined the function body here.
  14555. * src/Piece.cc
  14556. (Piece): Removed(copy constructor).
  14557. (operator=): Removed.
  14558. (operator==): Removed.
  14559. * src/PeerMessageUtil.h
  14560. (ChokeMessage.h): Removed.
  14561. (UnchokeMessage.h): Removed.
  14562. (InterestedMessage.h): Removed.
  14563. (NotInterestedMessage.h): Removed.
  14564. (HaveMessage.h): Removed.
  14565. (BitfieldMessage.h): Removed.
  14566. (RequestMessage.h): Removed.
  14567. (CancelMessage.h): Removed.
  14568. (PieceMessage.h): Removed.
  14569. (HandshakeMessage.h): Removed.
  14570. (KeepAliveMessage.h): Removed.
  14571. (PortMessage.h): Removed.
  14572. (HaveAllMessage.h): Removed.
  14573. (HaveNoneMessage.h): Removed.
  14574. (PeerConnection.h): Removed.
  14575. (HandshakeMessage.h): Included.
  14576. * src/BitfieldMessage.h
  14577. (init): New function.
  14578. (BitfieldMessage): Rewritten.
  14579. (BitfieldMessage): New function(overload).
  14580. * src/RequestSlot.h
  14581. (operator=): Defined the function body here.
  14582. (operator==): Defined the function body here.
  14583. * src/RequestSlot.cc
  14584. (operator=): Removed.
  14585. (operator==): Removed.
  14586. To remove the dependency on the PeerMessage subclass from
  14587. PeerInteraction:
  14588. * src/PeerMessageFactory.h: New class.
  14589. * src/PeerMessageFactory.cc: New class.
  14590. * src/SimplePeerMessage.cc
  14591. (send): If invalidate is true then do nothing.
  14592. * src/PeerInteractionCommand.cc
  14593. (HandshakeMessage.h): Included.
  14594. (KeepAliveMessage.h): Included.
  14595. (ChokeMessage.h): Included.
  14596. (UnchokeMessage.h): Included.
  14597. (HaveMessage.h): Included.
  14598. (executeInternal): Call setNoCheck().
  14599. Removed setWriteCheckSocket(socket).
  14600. * src/PeerInteraction.h
  14601. (ChokeMessage.h): Removed.
  14602. (UnchokeMessage.h): Removed.
  14603. (InterestedMessage.h): Removed.
  14604. (NotInterestedMessage.h): Removed.
  14605. (HaveMessage.h): Removed.
  14606. (BitfieldMessage.h): Removed.
  14607. (RequestMessage.h): Removed.
  14608. (CancelMessage.h): Removed.
  14609. (PieceMessage.h): Removed.
  14610. (HandshakeMessage.h): Removed.
  14611. (KeepAliveMessage.h): Removed.
  14612. (PortMessage.h): Removed.
  14613. (HaveAllMessage.h): Removed.
  14614. (HaveNoneMessage.h): Removed.
  14615. (RejectMessage.h): Removed.
  14616. (AllowedFastMessage.h): Removed.
  14617. (SuggestPieceMessage.h): Removed.
  14618. (PeerMessageFactory.h): Included.
  14619. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14620. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14621. (PeerMessageFactory): New variable.
  14622. (createPeerMessage): Removed.
  14623. (createHandshakeMessage): Removed.
  14624. (setPeerMessageCommonProperty): Removed.
  14625. (addRequestSlot): New function.
  14626. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14627. (getPeerMessageFactory): New function.
  14628. (createRequestMessage): Removed.
  14629. (createCancelMessage): Removed.
  14630. (createPieceMessage): Removed.
  14631. (createHaveMessage): Removed.
  14632. (createChokeMessage): Removed.
  14633. (createUnchokeMessage): Removed.
  14634. (createInterestedMessage): Removed.
  14635. (createNotInterestedMessage): Removed.
  14636. (createBitfieldMessage): Removed.
  14637. (createKeepAliveMessage): Removed.
  14638. (createHaveAllMessage): Removed.
  14639. (createHaveNoneMessage): Removed.
  14640. (createRejectMessage): Removed.
  14641. (createAllowedFastMessage): Removed.
  14642. * src/PeerInteraction.cc
  14643. (PeerInteraction): Allocate PeerMessageFactory here.
  14644. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14645. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14646. PieceMessage::ID.
  14647. (addMessage): Simplified by using PeerMessage::onPush().
  14648. (addRequestSlot): New function.
  14649. (rejectAllPieceMessageInQueue): Simplified by using
  14650. PeerMessage::onChoked().
  14651. (rejectPieceMessageInQueue): Simplified by using
  14652. PeerMessage::onCanceled().
  14653. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14654. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14655. (createHandshakeMessage): Removed.
  14656. (createPeerMessage): Removed.
  14657. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14658. (setPeerMessageCommonProperty): Removed.
  14659. (createRequestMessage): Removed.
  14660. (createCancelMessage): Removed.
  14661. (createPieceMessage): Removed.
  14662. (createHaveMessage): Removed.
  14663. (createChokeMessage): Removed.
  14664. (createUnchokeMessage): Removed.
  14665. (createInterestedMessage): Removed.
  14666. (createNotInterestedMessage): Removed.
  14667. (createBitfieldMessage): Removed.
  14668. (createKeepAliveMessage): Removed.
  14669. (createHaveAllMessage): Removed.
  14670. (createHaveNoneMessage): Removed.
  14671. (createRejectMessage): Removed.
  14672. (createAllowedFastMessage): Removed.
  14673. * src/PieceMessage.h
  14674. (createRejectMessage): New function.
  14675. (PieceMessage): Rewritten.
  14676. (onChoked): New function.
  14677. (onCanceled): New function.
  14678. * src/PieceMessage.cc
  14679. (send): If invalidate is true then do nothing, just return.
  14680. (createRejectMessage): New function.
  14681. (onChoked): New function.
  14682. (onCanceled): New function.
  14683. * src/RequestMessage.h
  14684. (RequestMessage): Rewritten.
  14685. (onPush): New function.
  14686. (onAbortPiece): New function.
  14687. * src/RequestMessage.cc
  14688. (onPush): New function.
  14689. (onAbortPiece): New function.
  14690. Update fd_set when a socket is added or deleted in order to improve
  14691. performance:
  14692. * src/DownloadEngine.h
  14693. (rfdset): New variable.
  14694. (wfdset): New variable.
  14695. (updateFdSet): New function.
  14696. * src/DownloadEngine.cc
  14697. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14698. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14699. (waitData): Copy rfdset and wfdset.
  14700. (updateFdSet): New function.
  14701. (addSocket): Call updateFdSet.
  14702. (deleteSocket): Call updateFdSet.
  14703. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14704. To add the support for Metalink3.0 backward compatible links:
  14705. * src/Request.h
  14706. (SAFE_CHARS): Added '#'.
  14707. (METALINK_MARK): New definition.
  14708. * src/Request.cc
  14709. (parseUrl): Added the support for Metalink3.0 backward compatible
  14710. links.
  14711. etc
  14712. * src/PeerInteraction.cc
  14713. (MsgPushBack): Removed.
  14714. (sendMessages): Use STL copy and back_inserter.
  14715. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14716. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14717. * src/TorrentMan.h
  14718. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14719. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14720. * src/SharedHandle.h: New class.
  14721. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14722. * src/HttpResponseCommand.h
  14723. (HttpResponseCommand): Wrapped Socket.
  14724. * src/SocketCore.h
  14725. (operator==): New function.
  14726. (operator!=): New function.
  14727. (operator<): New function.
  14728. (getSockfd): New function.
  14729. (isOpen): New function.
  14730. (writeData): New function.
  14731. * src/SocketCore.cc
  14732. (operator==): New function.
  14733. (operator!=): New function.
  14734. (operator<): New function.
  14735. * src/AbstractCommand.h
  14736. (socket): Changed its type to SocketHandle.
  14737. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14738. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14739. (disableReadCheckSocket): New function.
  14740. (disableWriteCheckSocket): New function.
  14741. (readCheckTarget): Changed its type to SocketHandle.
  14742. (writeCheckTarget): Changed its type to SocketHandle.
  14743. (AbstractCommand): Replaced Socket with SocketHandle.
  14744. * src/AbstractCommand.cc
  14745. (AbstractCommand): Replaced Socket with SocketHandle.
  14746. (~AbstractCommand): Removed the deallocation for Socket object.
  14747. (disableReadCheckSocket): New function.
  14748. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14749. (disableWriteCheckSocket): New function.
  14750. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14751. * src/HttpDownloadCommand.cc
  14752. (DownloadCommand): Replaced Socket with SocketHandle.
  14753. * src/PeerAbstractCommand.h
  14754. (socket): Changed its type to SocketHandle.
  14755. (peer): Changed its type to PeerHandle.
  14756. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14757. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14758. (disableReadCheckSocket): New function.
  14759. (disableWriteCheckSocket): New function.
  14760. (readCheckTarget): Changed its type to SocketHandle.
  14761. (writeCheckTarget): Changed its type to SocketHandle.
  14762. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14763. Replaced Peer with PeerHandle.
  14764. * src/HttpRequestCommand.cc
  14765. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14766. Use disableReadCheckSocket.
  14767. * src/PeerInitiateConnectionCommand.h
  14768. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14769. * src/PeerChokeCommand.cc
  14770. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14771. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14772. (execute): Use PeerHandle.
  14773. * src/PeerConnection.h
  14774. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14775. (socket): Changed its type to SocketHandle.
  14776. (PeerConnection): Replaced Socket with SocketHandle.
  14777. * src/PeerConnection.cc
  14778. (PeerConnection): Replaced Socket with SocketHandle.
  14779. * src/PeerInteractionCommand.h
  14780. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14781. Replaced Peer with PeerHandle.
  14782. * src/PeerInteractionCommand.cc
  14783. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14784. Replaced Peer with PeerHandle.
  14785. (executeInternal): Use disableWriteCheckSocket.
  14786. Use HandshakeMessageHandle.
  14787. (receiveMessages): Use PeerMessageHandle.
  14788. (prepareForNextPeer): Use PeerHandle.
  14789. * src/HttpProxyRequestCommand.h
  14790. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14791. * src/HttpResponseCommand.cc
  14792. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14793. * src/TorrentMan.cc
  14794. (nullPeer): Added external reference.
  14795. (~TorrentMan): Removed the deallocation of the elements of peers.
  14796. (addPeer): Rewritten.
  14797. (isPeerAvailable): Use nullPeer.
  14798. (deleteOldpeers): Replaced with deleteErrorPeer.
  14799. (deleteErrorPeer): New function.
  14800. (getPeer): Use PeerHandle and nullPeer.
  14801. (hasMissingPiece): Replaced Peer with PeerHandle.
  14802. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14803. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14804. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14805. (getMissingPiece): Replaced Peer with PeerHandle.
  14806. * src/FtpNegotiateCommand.cc
  14807. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14808. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14809. (recvGreeting): Use disableWriteCheckSocket.
  14810. (recvPasv): Removed the allocation of Socket.
  14811. Use disableReadCheckSocket.
  14812. (sendRestPasv): Use disableWriteCheckSocket.
  14813. (recvRetr): Changed assertion.
  14814. * src/PeerInteraction.h
  14815. (SharedHandle.h): Included SharedHandle.h.
  14816. (PeerMessageHandle): New type definition.
  14817. (HandshakeMessageHandle): New type definition.
  14818. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14819. (peer): Changed its type to PeerHandle.
  14820. (createHandshakeMessage): Replaced HandshakeMessage with
  14821. HandshakeMessageHandle.
  14822. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14823. (PeerInteraction): Replaced Peer with PeerHandle.
  14824. Replaced Socket with SocketHandle.
  14825. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14826. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14827. (receiveHandshake): Replaced HandshakeMessage with
  14828. HandshakeMessageHandle.
  14829. * src/PeerInteraction.cc
  14830. (PeerInteraction): Replaced Peer with PeerHandle.
  14831. Replaced Socket with SocketHandle.
  14832. (~PeerInteraction): Removed the deallocation of the elements of
  14833. messageQueue.
  14834. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14835. (isSendingMessageInProgress): Replaced PeerMessage with
  14836. PeerMessageHandle.
  14837. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14838. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14839. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14840. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14841. (abortPiece): Use PeerMessageHandle.
  14842. (receiveHandshake): Replaced HandshakeMessage with
  14843. HandshakeMessageHandle. Removed try-catch block.
  14844. (createHandshakeMessage): Replaced HandshakeMessage with
  14845. HandshakeMessageHandle.
  14846. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14847. Removed try-catch block.
  14848. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14849. * src/HttpProxyResponseCommand.cc
  14850. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14851. * src/FtpTunnelResponseCommand.h
  14852. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14853. * src/HttpConnection.cc
  14854. (HttpConnection): Replaced Socket with SocketHandle.
  14855. * src/PeerAbstractCommand.cc
  14856. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14857. (~PeerAbstractCommand): Removed the deallocation of socket.
  14858. Use disableReadCheckSocket, disableWriteCheckSocket.
  14859. (disableReadCheckSocket): New function.
  14860. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14861. (disableWriteCheckSocket): New function.
  14862. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14863. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14864. * src/FtpTunnelRequestCommand.cc
  14865. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14866. (~FtpTunnelRequestCommand): Corrected indentation.
  14867. * src/DownloadCommand.h
  14868. (DownloadCommand): Replaced Socket with SocketHandle.
  14869. * src/PeerListenCommand.cc
  14870. (PeerListenCommand): Removed the initialization of socket.
  14871. (~PeerListenCommand): Removed the deallocation of socket.
  14872. (bindPort): Use SocketHandle.
  14873. (execute): Use SocketHandle and PeerHandle.
  14874. * src/FtpDowndloadCommand.cc
  14875. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14876. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14877. * src/main.cc
  14878. (main): Corrected indentation.
  14879. * src/HttpInitiateConnectionCommand.cc
  14880. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14881. (executeInternal): Removed the allocation of socket.
  14882. * src/HttpRequestCommand.h
  14883. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14884. * src/FtpNegotiationCommand.h
  14885. (dataSocket): Changed its type to SocketHandle.
  14886. (serverSocket): Changed its type to SocketHandle.
  14887. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14888. * src/TorrentMan.h
  14889. (MAX_PEER_UPDATE): Removed.
  14890. (MAX_PEERS): New definition.
  14891. (Peers): The element is now of type PeerHandle.
  14892. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14893. (getPeer): Replaced Peer with PeerHandle.
  14894. (deleteOldErrorPeers): Removed.
  14895. (deleteErrorPeer): New function.
  14896. (hasMissingPiece): Replaced Peer with PeerHandle.
  14897. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14898. (getMissingPiece): Replaced Peer with PeerHandle.
  14899. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14900. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14901. (addActivePeer): Replaced Peer with PeerHandle.
  14902. (deleteActivePeer): Replaced Peer with PeerHandle.
  14903. Added a check for the return value of find.
  14904. * src/FtpTunnelResponseCommand.cc
  14905. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14906. * src/FtpInitiateConnectionCommand.cc
  14907. (executeInternal): Removed the allocation of socket.
  14908. * src/DownloadEngine.h
  14909. (Sockets): An element is now of type SocketHandle.
  14910. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14911. (CommandUuids): New type definition.
  14912. (rsockets): Changed its type to SockCmdMap.
  14913. (wsockets): Changed its type to SockCmdMap.
  14914. (addSocket): Rewritten.
  14915. (deleteSocket): Rewritten.
  14916. (addSocketForReadCheck): Rewritten.
  14917. (deleteSocketForReadCheck): Rewritten.
  14918. (addSocketForWriteCheck): Rewritten.
  14919. (deleteSocketForWriteCheck): Rewritten.
  14920. (PairFind): New template class.
  14921. * src/HttpDownloadCommand.h
  14922. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14923. * src/FtpConnection.cc
  14924. (FtpConnection): Replaced Socket with SocketHandle.
  14925. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14926. block.
  14927. * src/InitiateConnectionCommandFactory.cc
  14928. (DlAbortEx.h): Included DlAbortEx.h.
  14929. (createInitiateConnectionCommand): Throw exception if the protocol of
  14930. requested URI is not supported.
  14931. * src/Peer.cc
  14932. (nullPeer): Changed its type to PeerHandle.
  14933. (operator==): New function.
  14934. (operator!=): New function.
  14935. * src/Peer.h
  14936. (SharedHandle.h): Included SharedHandle.h.
  14937. (operator==): New function.
  14938. (operator!=): New function.
  14939. (Peer): Added the default constructor.
  14940. Use resetStatus() to initialize member variables.
  14941. (nullPeer): Removed.
  14942. * src/TrackerUpdateCommand.cc
  14943. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14944. with MIN_PEERS.
  14945. * src/PeerListenCommand.h
  14946. (socket): Changed its type to SocketHandle.
  14947. * src/Command.h
  14948. (CommandUuid): New type definition.
  14949. (uuid): New variable.
  14950. (uuidGen): New variable.
  14951. (Command): Added the initialization of uuid.
  14952. (getUuid): New function.
  14953. * src/Socket.h
  14954. (Socket): Removed.
  14955. (SocketHandle): New type definition.
  14956. * src/DownloadEngine.h
  14957. (FindCommand): New function object.
  14958. (run): The portion of socket check was rewritten.
  14959. (SetDescriptor): New function object.
  14960. (AccumulateActiveCommandUuid): New function object.
  14961. (waitData): Rewritten.
  14962. (addSocket): Rewritten.
  14963. (deleteSocket): Rewritten.
  14964. (addSocketForReadCheck): Rewritten.
  14965. (addSocketForWriteCheck): Rewritten.
  14966. (deleteSocketForReadCheck): Rewritten.
  14967. (deleteSocketForWriteCheck): Rewritten.
  14968. * src/HttpProxyResponseCommand.h
  14969. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14970. * src/HttpConnection.h
  14971. (socket): Changed its type to SocketHandle.
  14972. (HttpConnection): Replaced Socket with SocketHandle.
  14973. * src/PeerInitiateConnectionCommand.cc
  14974. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14975. (executeInternal): Removed the allocation of socket.
  14976. (prepareForNextPeer): Use PeerHandle.
  14977. * src/PeerMessage.h
  14978. (peer): Changed its type to PeerHandle.
  14979. (getPeer): Replaced Peer with PeerHandle.
  14980. (setPeer): Replaced Peer with PeerHandle.
  14981. * src/DownloadCommand.cc
  14982. (DownloadCommand): Replaced Socket with SocketHandle.
  14983. * src/FtpConnection.h
  14984. (socket): Changed its type to SocketHandle.
  14985. (FtpConnection): Replaced Socket with SocketHandle.
  14986. (sendPort); Replaced Socket with SocketHandle.
  14987. * src/FtpDowndloadCommand.h
  14988. (ctrlSocket): Changed its type to SocketHandle.
  14989. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14990. * src/HttpProxyRequestCommand.cc
  14991. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14992. * src/FtpTunnelRequestCommand.h
  14993. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14994. etc
  14995. * src/PeerChokeCommand.h
  14996. (setAllPeerChoked): Removed.
  14997. (setAllPeerResetDelta): Removed.
  14998. * src/PeerChokeCommand.cc
  14999. (setAllPeerChoked): Removed.
  15000. (ChokePeer): New function object.
  15001. (setAllPeerResetDelta): Removed.
  15002. (ResetDelta): New function object.
  15003. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15004. (execute): Show download speed when the local node is a seeder.
  15005. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15006. using STL.
  15007. * src/TrackerWatcherCommand.h
  15008. (MIN_PEERS): Removed.
  15009. * src/TorrentMan.cc
  15010. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15011. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15012. To fix the bug that .aria2 file is not saved if downloading is stopped
  15013. by the errors:it results that aria2 can not resume downloading:
  15014. * src/main.cc
  15015. (normalDownload): Added the call to save().
  15016. (main): Added the deletion of the elements in 'reserved'.
  15017. To fix log:
  15018. * src/PeerInteraction.cc
  15019. (receiveHandshake): Fixed log.
  15020. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15021. To improve download performance in BitTorrent:
  15022. * src/TorrentMan.cc
  15023. (getPeer): Check the number of connections. Return nullPeer if
  15024. it is greater than MAX_PEER_UPDATE.
  15025. This code was originally here, but was removed in 0.5.1.
  15026. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15027. To improve the conditional compilation:
  15028. * src/MultiDiskWriter.h:
  15029. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15030. * src/MultiDiskWriter.cc:
  15031. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15032. * src/Util.h:
  15033. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15034. Added ENABLE_BITTORRENT around computeFastSet().
  15035. * src/Util.cc:
  15036. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15037. Added ENABLE_BITTORRENT around computeFastSet().
  15038. * src/messageDigest.h:
  15039. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15040. * src/ShaVisitor.h:
  15041. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15042. * src/ShaVisitor.cc:
  15043. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15044. * src/main.cc:
  15045. Added ENABLE_BITTORRENT around includes and blocks related to
  15046. BitTorrent.
  15047. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15048. digest support is not available.
  15049. * src/AbstractDiskWriter.h:
  15050. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15051. * src/AbstractDiskWriter.cc:
  15052. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15053. * src/MetalinkEntry.cc
  15054. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15055. support is not available.
  15056. To add command-line options for Metalink:
  15057. * src/main.cc:
  15058. Added metalink-version, metalink-language, metalink-os,
  15059. follow-metalink.
  15060. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15061. * src/main.cc: Use these definition.
  15062. * Release 0.6.0
  15063. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15064. To add Metalink support(http/ftp only):
  15065. * src/AbstractCommand.h
  15066. (tryReserved): New function.
  15067. * src/AbstractCommand.cc
  15068. (execute): Call tryReserved().
  15069. (tryReserved): New function.
  15070. * src/Request.h
  15071. (Requests): New type definition.
  15072. * src/SegmentMan.h
  15073. (reserved): New variable.
  15074. * src/Util.h
  15075. (fileChecksum): New function.
  15076. (toUpper): New function.
  15077. (toLower): New function.
  15078. * src/Util.cc
  15079. (messageDigest.h): Included.
  15080. (trim): Trim \r\n\t.
  15081. (fileChecksum): New function.
  15082. (toUpper): New function.
  15083. (toLower): New function.
  15084. * src/main.cc
  15085. (normalDownload): New function.
  15086. (main): Added 2 command-line options: metalink-file,
  15087. metalink-connection. Their usage has not been written yet.
  15088. * src/MetalinkProcessor.h: New class.
  15089. * src/Xml2MetalinkProcessor.h: New class.
  15090. * src/Xml2MetalinkProcessor.cc: New class.
  15091. * src/MetalinkEntry.h: New class.
  15092. * src/MetalinkEntry.cc: New class.
  15093. * src/MetalinkResource.h: New class.
  15094. * src/MetalinkResource.cc: New class.
  15095. To add md5 message digest checking:
  15096. * src/messageDigest.h: Rewritten.
  15097. * src/MultiDiskWriter.cc: Updated according to the changes in
  15098. messageDigest.h.
  15099. * src/ShaVisitor.cc: Updated according to the changes in
  15100. messageDigest.h.
  15101. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15102. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15103. messageDigest.h.
  15104. To fix a bug that causes segfault when the payload length in peer
  15105. message is less than 0:
  15106. * src/PeerConnection.cc:
  15107. (receiveMessage): Fixed the bug.
  15108. * src/PeerMessageUtil.cc
  15109. (checkLength): Throw an exception if length is less than or equals to
  15110. 0.
  15111. To add new interfaces to Base64 encoding/decoding:
  15112. * src/Base64.h
  15113. (part_encode): Changed the method signature.
  15114. (encode): New function(overload).
  15115. (decode): New function(overload).
  15116. * src/Base64.cc
  15117. (part_encode): Rewritten.
  15118. (encode): Rewritten.
  15119. (encode): New function(overload).
  15120. To prevent a peer to download same piece if there is an error in
  15121. checksum:
  15122. * src/PieceMessage.cc
  15123. (receivedAction): Call peerInteraction->abortPiece().
  15124. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15125. To fix the bug that causes same have message is sent many times to
  15126. a single peer.
  15127. * src/Time.cc
  15128. (isNewer): Use Util::difftv().
  15129. * src/Util.cc
  15130. (difftv): Added a cast to (long long int).
  15131. * src/TorrentMan.cc
  15132. (advertisePiece): Use push_front.
  15133. (getAdvertisedPieceIndexes): A performance improvement was made.
  15134. To fix the bug that sends tracker requests without a sleep interval
  15135. when the number of connections is less than 15.
  15136. * src/TrackerWatcherCommand.cc
  15137. (execute): Now the number of connections is not a factor to decide
  15138. whether or not a tracker request should be sent or not.
  15139. * src/Time.h
  15140. (setTimeInSec): New function.
  15141. * src/Time.cc
  15142. (setTimeInSec): New function.
  15143. etc.
  15144. * src/ChokeMessage.cc
  15145. (receivedAction): Removed peer->snubbing = false
  15146. * src/PeerConnection.h
  15147. (receiveHandshake): Updated doc.
  15148. * src/TorrentMan.h
  15149. (getAdvertisedPieceIndexes): Updated the method signature.
  15150. * src/TorrentMan.cc
  15151. (getAdvertisedPieceIndexes): Updated the method signature.
  15152. * src/Time.h
  15153. (getTimeInMicros): Added a cast to (long long int).
  15154. (getTimeInMillis): Added a cast to (long long int).
  15155. * Release 0.5.2
  15156. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15157. To make a listening socket non-block:
  15158. * src/SocketCore.h
  15159. (setNonBlockingMode): New function.
  15160. * src/SocketCore.cc
  15161. (setNonBlockingMode): New function.
  15162. (beginListen): Added a call to setNonBlockingMode().
  15163. (acceptConnection): Call setNonBlockingMode().
  15164. (setBlockingMode): Updated.
  15165. To handle tracker's NAT-checking:
  15166. * src/PeerConnection.cc
  15167. (receiveHandshake): 'msg' param is filled with received data and
  15168. its length is assigned to 'length' param, even if all handshake
  15169. message is not yet received.
  15170. * src/PeerInteractionCommand.cc
  15171. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15172. a new peer connects to localhost.
  15173. A call to peerInteraction->sendHandshake() was removed because
  15174. it is called from peerInteraction->receiveHandshake(true).
  15175. * src/PeerInteraction.h
  15176. (quickReplied): New variable.
  15177. (receiveHandshake): Added an argument.
  15178. * src/PeerInteraction.cc
  15179. (PeerInteraction): Added the initialization of quickReplied.
  15180. (receiveHandshake): Send handshake message as soon as the info hash
  15181. in a handshake message from a peer is correct.
  15182. To change the random part of peer id and key parameter:
  15183. * src/TorrentMan.h
  15184. (key): New variable.
  15185. * src/TorrentMan.cc
  15186. (setupInternal1): Use Util::randomAlpha() to generate random part
  15187. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15188. key is also generated by Util::randomAlpha() and it is now 8 character
  15189. long.
  15190. * src/Util.h
  15191. (randomAlpha): New function.
  15192. * src/Util.cc
  15193. (randomAlpha): New function.
  15194. * src/TrackerWatcherCommand.cc
  15195. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15196. Added no_peer_id=1.
  15197. Set snubbing flag to false when a choke message is received from a
  15198. snubbed peer.
  15199. * src/ChokeMessage.cc
  15200. (receivedAction): Set snubbing flag to false.
  15201. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15202. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15203. * src/SimpleLogger.h (writeHeader): New function.
  15204. * src/SimpleLogger.cc (writeHeader): New function.
  15205. (writeLog): Fixed the bug that causes segfaults if exception message
  15206. contains an unescaped "%" character.
  15207. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15208. when a tracker request fails.
  15209. * src/Request.cc (parseUrl): Query string is now handled properly.
  15210. * Release 0.5.1
  15211. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15212. To add Time class which represents a specific instant in time and
  15213. its precision is microseconds. Time checking procedures were rewritten
  15214. using this object.
  15215. * src/Time.h: New class.
  15216. * src/Time.cc: New class.
  15217. * src/AbstractCommand.h
  15218. (updateCheckPoint): Removed.
  15219. (isTimeoutDetected): Removed.
  15220. (checkPoint): Changed the type to Time.
  15221. (timeout): New variable.
  15222. (setTimeout): New function.
  15223. * src/AbstractCommand.cc
  15224. (AbstractCommand): Removed the initialization of checkPoint.
  15225. Added the initialization of timeout.
  15226. (updateCheckPoint): Removed.
  15227. (isTimeoutDetected): Removed.
  15228. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15229. * src/PeerChokeCommand.h
  15230. (checkPoint): Changed the type to Time.
  15231. * src/PeerChokeCommand.cc
  15232. (PeerChokeCommand): Removed the initialization of checkPoint.
  15233. (execute): Rewritten using Time object.
  15234. * src/TrackerWatcherCommand.h
  15235. (checkPoint): Changed the type to Time.
  15236. * src/TrackerWatcherCommand.cc
  15237. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15238. (execute): Rewritten.
  15239. * src/ConsoleDownloadEngine.h
  15240. (cp): Changed the type to Time.
  15241. (startup): Changed the type to Time.
  15242. * src/ConsoleDownloadEngine.cc
  15243. (initStatistics): Use cp.reset(), startup.reset().
  15244. (calculateStatistics): Rewritten using Time object.
  15245. * src/PeerAbstractCommand.h
  15246. (updateCheckPoint): Removed.
  15247. (isTimeoutDetected): Removed.
  15248. (checkPoint): Changed the type to Time.
  15249. * src/PeerAbstractCommand.cc
  15250. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15251. (updateCheckPoint): Removed.
  15252. (isTimeoutDetected): Removed.
  15253. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15254. * src/PeerInteractionCommand.cc
  15255. (PeerInteractionCommand): Removed the initializations of struct
  15256. timeval variables.
  15257. * src/PeerInteractionCommand.h
  15258. (keepAliveCheckPoint): Changed the type to Time.
  15259. (chokeCheckPoint): Changed the type to Time.
  15260. (freqCheckPoint): Changed the type to Time.
  15261. (haveCheckTime): Changed the type to Time.
  15262. * src/PeerInteractionCommand.cc
  15263. (executeInternal): Rewritten using Time object.
  15264. (detectMessageFlooding): Rewritten using Time object.
  15265. (checkLongTimePeerChoking): Rewritten using Time object.
  15266. (sendKeepAlive): Rewritten using Time object.
  15267. (checkHave): Rewritten using Time object.
  15268. * src/SleepCommand.h
  15269. (checkPoint): Changed the type to Time.
  15270. * src/SleepCommand.cc
  15271. (SleepCommand): Removed the initialization of checkPoint.
  15272. (execute): Rewritten using Time object.
  15273. * src/TorrentAutoSaveCommand.h
  15274. (checkPoint): Changed the type to Time.
  15275. * src/TorrentAutoSaveCommand.cc
  15276. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15277. (execute): Rewritten.
  15278. * src/DownloadCommand.h
  15279. (sw): Changed the type to Time.
  15280. * src/DownloadCommand.cc
  15281. (DownloadCommand): Removed the initialization of sw.
  15282. (executeInternal): Rewritten.
  15283. * src/RequestSlot.h
  15284. (dispatchedTime): Changed the type to Time.
  15285. * src/RequestSlot.cc
  15286. (RequestSlot): Removed the call to setDispatchedTime().
  15287. (setDispatchedTime): Rewirtten.
  15288. (isTimeout): Rewritten.
  15289. (getLatencyInMillis): Rewritten.
  15290. * src/TorrentDownloadEngine.h
  15291. (cp): Changed the type to Time[2].
  15292. (startup): Changed the type to Time.
  15293. * src/TorrentDownloadEngine.cc
  15294. (initStatistics): Rewritten.
  15295. (calculateStatistics): Rewritten.
  15296. * src/DownloadEngine.cc
  15297. (run): Rewritten.
  15298. To detect all attempts to connect to the tracker are failed:
  15299. * src/AbstractCommand.cc
  15300. (execute): Increment e->segmentMan->errors if a command aborted.
  15301. * src/SegmentMan.h
  15302. (errors): New variable.
  15303. * src/SegmentMan.cc
  15304. (SegmentMan): Added the initialization of errors.
  15305. (init): Added the initialization of errors.
  15306. * src/TrackerWatcherCommand.cc
  15307. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15308. request was failed.
  15309. To handle snubbed peers:
  15310. * src/PeerChokeCommand.cc
  15311. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15312. (execute): Snubbed peers don't get unchoked.
  15313. * src/PeerInteraction.h
  15314. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15315. * src/PeerInteraction.cc
  15316. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15317. back the requested 16k block in 60 seconds.
  15318. * src/PieceMessage.cc
  15319. (receivedAction): A peer's snubbed state is cleard if it sends
  15320. the requested 16k block in 60 seconds.
  15321. * src/Peer.h
  15322. (snubbing): New variable.
  15323. * src/Peer.cc
  15324. (resetStatus): Added snubbed = false.
  15325. To fix the bug that causes have message is not sent:
  15326. * src/PeerInteractionCommand.cc
  15327. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15328. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15329. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15330. * src/TorrentMan.h
  15331. (HaveEntry): New class.
  15332. (advertisePiece): Rewritten.
  15333. (getAdvertisedPieceIndexes): Rewritten.
  15334. (Haves): Changed the type.
  15335. (getAdvertisedPieceIndexes): Added an argument.
  15336. Others:
  15337. * src/TorrentMan.h
  15338. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15339. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15340. * src/TorrentMan.cc
  15341. (getPeer): Don't check the number of connections here.
  15342. (setupInternal1): Changed peerId.
  15343. * src/PeerInteractionCommand.h
  15344. (KEEP_ALIVE_INTERVAL): New definition.
  15345. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15346. * src/main.cc
  15347. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15348. * src/DownloadEngine.h: Removed unnecessary header includes.
  15349. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15350. To fix the bug that causes segfaults if a tracker returns a zero-length
  15351. list as "peers":
  15352. * src/TrackerUpdateCommand.cc
  15353. (execute): Added a check to see wether the type of peers is Data*.
  15354. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15355. * Release 0.5.0
  15356. To fix compile issue with gcc3:
  15357. * src/CancelMessage.h
  15358. (ID): Renamed as ID_t
  15359. (ID_t): New enum.
  15360. * src/RejectMessage.h
  15361. (ID): Renamed as ID_t
  15362. (ID_t): New enum.
  15363. * src/SuggestPieceMessage.h
  15364. (ID): Renamed as ID_t
  15365. (ID_t): New enum.
  15366. * src/AllowedFastMessage.h
  15367. (ID): Renamed as ID_t
  15368. (ID_t): New enum.
  15369. * src/PortMessage.h
  15370. (ID): Renamed as ID_t
  15371. (ID_t): New enum.
  15372. * src/HaveNoneMessage.h
  15373. (ID): Renamed as ID_t
  15374. (ID_t): New enum.
  15375. * src/KeepAliveMessage.h
  15376. (ID): Renamed as ID_t
  15377. (ID_t): New enum.
  15378. * src/HaveAllMessage.h
  15379. (ID): Renamed as ID_t
  15380. (ID_t): New enum.
  15381. * src/UnchokeMessage.h
  15382. (ID): Renamed as ID_t
  15383. (ID_t): New enum.
  15384. * src/BitfieldMessage.h
  15385. (ID): Renamed as ID_t
  15386. (ID_t): New enum.
  15387. * src/PieceMessage.h
  15388. (ID): Renamed as ID_t
  15389. (ID_t): New enum.
  15390. * src/RequestMessage.h
  15391. (ID): Renamed as ID_t
  15392. (ID_t): New enum.
  15393. * src/NotInterestedMessage.h
  15394. (ID): Renamed as ID_t
  15395. (ID_t): New enum.
  15396. * src/ChokeMessage.h
  15397. (ID): Renamed as ID_t
  15398. (ID_t): New enum.
  15399. * src/InterestedMessage.h
  15400. (ID): Renamed as ID_t
  15401. (ID_t): New enum.
  15402. * src/HaveMessage.h
  15403. (ID): Renamed as ID_t
  15404. (ID_t): New enum.
  15405. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15406. * src/PeerAbstractCommand.h
  15407. (beforeSocketCheck): Removed.
  15408. * src/PeerAbstractCommand.cc
  15409. Modified in order to call executeInternal() even if socket check
  15410. and upload limit check fail.
  15411. * src/PeerInteractionCommand.h
  15412. (keepAlive): Removed.
  15413. (sendKeepAlive): New function.
  15414. (checkHave): New function.
  15415. (beforeSocketCheck): Removed.
  15416. * src/PeerInteractionCommand.cc
  15417. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15418. calls to checkHave() and sendKeepAlive().
  15419. (keepAlive): Renamed to sendKeepAlive().
  15420. (sendKeepAlive): New function.
  15421. (beforeSocketCheck): Removed.
  15422. (checkHave): New function.
  15423. * src/BitfieldMan.cc
  15424. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15425. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15426. 0.
  15427. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15428. * src/TorrentMan.h
  15429. (UsedPieces): Removed.
  15430. (Pieces): New type definition.
  15431. * src/Piece.h: Updated doc.
  15432. * src/Peer.h
  15433. (totalLength): Removed.
  15434. * src/Peer.cc
  15435. (updateLatency): Fixed the latency calculation.
  15436. * src/TorrentMan.cc
  15437. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15438. than or equal to MAX_PEER_LIST_SIZE.
  15439. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15440. then return false.
  15441. (deleteOldErrorPeers): Rewritten.
  15442. (deleteUsedPiece): Fixed the miss use of STL remove.
  15443. * src/PeerInteraction.h
  15444. (Pieces): Removed.
  15445. (deleteTimeoutRequestSlot): Removed.
  15446. (deleteCompletedRequestSlot): Removed.
  15447. (checkRequestSlot): New function.
  15448. * src/PeerInteraction.cc
  15449. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15450. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15451. (checkRequestSlot): New function.
  15452. * src/DownloadEngine.cc
  15453. (run): Clear activeSockets before calling waitData().
  15454. (waitData): Removed a call to activeSockets.clear().
  15455. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15456. To attempt to handle EINTR:
  15457. * src/SocketCore.cc
  15458. (isReadable): Added EINTR handling.
  15459. (isWritable): Added EINTR handling.
  15460. To improve the performance:
  15461. * src/AbstractCommand.cc
  15462. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15463. * src/PeerInteractionCommand.h
  15464. (receiveMessage): Renamed as receiveMessages().
  15465. (receiveMessages): New function.
  15466. * src/PeerInteractionCommand.cc
  15467. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15468. () function. detectMessageFlooding() is moved here.
  15469. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15470. (). The flooding detection for have message is comment out.
  15471. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15472. Util::difftv().
  15473. (receiveMessage): Renamed as receiveMessages().
  15474. (receiveMessages): New function.
  15475. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15476. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15477. * src/SleepCommand.cc
  15478. (execute): Use Util::difftvsec() instead of Util::difftv().
  15479. * src/BitfieldMan.h
  15480. (getNthBitIndex): New function.
  15481. (hasMissingPiece): New function.
  15482. (getAllMissingIndexes): New function.
  15483. * src/BitfieldMan.cc
  15484. (countSetBit): Rewritten.
  15485. (getNthBitIndex): New function.
  15486. (getMissingIndexRandomly): Rewritten.
  15487. (hasMissingPiece): New function.
  15488. (getAllMissingIndexes): New function.
  15489. * src/TorrentMan.cc
  15490. (hasMissingPiece): New function.
  15491. (deleteUsedPiece): Rewritten using STL.
  15492. * src/PeerInteraction.cc
  15493. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15494. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15495. (addRequests): Updated the number of pending requests.
  15496. * src/PeerAbstractCommand.cc
  15497. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15498. (execute): Returns true if TorrentMan::isHalt() is true.
  15499. Corrected the condition of upload limit checking.
  15500. * src/Util.h
  15501. (countBit): New function.
  15502. * src/Util.cc
  15503. (nbits): New variable.
  15504. (countBit): New function.
  15505. * src/DownloadEngine.h
  15506. (SockCmdMap): New type definition.
  15507. (waitData): Added an argument.
  15508. (addSocket): Added an argument.
  15509. (addSocketForReadCheck): Added an argument.
  15510. (addSocketForWriteCheck): Added an argument.
  15511. * src/DownloadEngine.cc
  15512. (run): Executes only commands whose sockets are ready to read or write.
  15513. All commands are executed in every 1 second.
  15514. (waitData): Calls select() again if it returned
  15515. EINTR.
  15516. (addSocket): Saves socket and command object pair to the map.
  15517. (deleteSocket): Deletes socket and command object pair from the map.
  15518. (addSocketForReadCheck): Added an argument.
  15519. (addSocketForWriteCheck): Added an argument.
  15520. * src/DownloadCommand.cc
  15521. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15522. To send "event=stopped" to the tracker when the application finishes:
  15523. * src/PeerChokeCommand.h
  15524. (checkPoint): New variable.
  15525. * src/PeerChokeCommand.cc
  15526. (PeerChokeCommand): Added the initialization of checkPoint.
  15527. (execute): The interval check is now done by checkPoint, not
  15528. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15529. * src/TorrentMan.h
  15530. (halt): New function.
  15531. (hasMissingPiece): New function.
  15532. (isHalt): New function.
  15533. (setHalt): New function.
  15534. * src/TorrentMan.cc
  15535. (TorrentMan): Added the initialization of halt.
  15536. * src/TorrentAutoSaveCommand.h
  15537. (checkPoint): New variable.
  15538. * src/PeerListenCommand.cc
  15539. (execute): Returns true if TorrentMan::isHalt() is true.
  15540. * src/main.cc
  15541. (setSignalHander): Added flags argument.
  15542. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15543. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15544. Removed printDownloadAbortMessage() after torrent downloading loop.
  15545. * src/TorrentAutoSaveCommand.cc
  15546. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15547. (execute): Returns true if TorrentMan::isHalt() is true.
  15548. The interval check is now done by checkPoint, not SleepCommand.
  15549. * src/TrackerWatcherCommand.cc
  15550. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15551. event=stopped.
  15552. * src/TrackerUpdateCommand.cc
  15553. (prepareForRetry): Do not use SleepCommand here.
  15554. (execute): Returns true if TorrentMan::isHalt() is true.
  15555. Others:
  15556. * src/TorrentMan.cc
  15557. (getMissingPieceIndex): Updated log message.
  15558. * src/PeerInteraction.cc
  15559. (createPeerMessag): Updated log message.
  15560. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15561. To add the ability to download several pieces in mix in a command and
  15562. increase the number of request slots according to request-cancel
  15563. latency:
  15564. * src/PeerInteractionCommand.cc
  15565. (executeInternal): The number of messages to be received at a time
  15566. is increased from 10 to 50.
  15567. * src/LogFactory
  15568. (getInstance): Added NullLogger.
  15569. * src/NullLogger.h: New class.
  15570. * src/BitfieldMan.h
  15571. (getMissingIndex): New function.
  15572. * src/BitfieldMan.cc
  15573. (getMissingIndex): New function.
  15574. * src/TorrentMan.h
  15575. (checkOutPiece): New function.
  15576. (getMissingPieceIndex): New function.
  15577. (getMissingFastPieceIndex): New function.
  15578. (getMissingFastPiece): New function.
  15579. * src/TorrentMan.cc
  15580. (updatePiece): Rewritten using STL.
  15581. (syncPiece): Rewritten using STL.
  15582. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15583. checkOutPiece().
  15584. (getMissingPieceIndex): New function.
  15585. (getMissingFastPieceIndex): New function.
  15586. (getMissingFastPiece): New function.
  15587. (checkOutPiece): New function.
  15588. * src/PeerInteraction.h
  15589. (Pieces): New type definition.
  15590. (piece): Removed.
  15591. (pieces): New variable.
  15592. (getNewPieceAndSendInterest): Added the "piece" argument.
  15593. (abortPiece): Added the "piece" argument.
  15594. (abortAllPieces): New function.
  15595. (isInRequestSlot): New function.
  15596. (hasDownloadPiece): Added the "index" argument.
  15597. (setDownloadPiece): Removed.
  15598. (getDownloadPiece): Added the "index" argument.
  15599. (updatePiece): New function.
  15600. (createRequestMessage): Added the "index" argument.
  15601. * src/PeerInteraction.cc
  15602. (onChoked): Rewritten.
  15603. (abortPiece): Rewirtten.
  15604. (abortAllPieces): New function.
  15605. (deleteTimeoutRequestSlot): Rewritten.
  15606. Clarified code a little bit.
  15607. (deleteCompletedRequestSlot): Rewritten.
  15608. (isInRequestSlot): New function.
  15609. (syncPiece): Rewritten.
  15610. (updatePiece): New function.
  15611. (getNewPieceAndSendInterest): Rewritten.
  15612. (addRequests): Rewritten.
  15613. (getDownloadPiece): Rewritten.
  15614. (hasDownloadPiece): Rewritten.
  15615. (createRequestMessage): Added the "index" argument.
  15616. * src/common.h
  15617. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15618. (DIV_FLOOR): New definition.
  15619. * src/PieceMessage.cc
  15620. (receivedAction): Update request-piece latency here.
  15621. * src/RequestSlot.h
  15622. (getLatencyInMillis): New function.
  15623. * src/RequestSlot.cc
  15624. (isTimeout): Rewritten using getLatencyInMillis.
  15625. (getLatencyInMillis): New function.
  15626. * src/Piece.h
  15627. (operator==): New function.
  15628. (getMissingBlockIndex): New function.
  15629. * src/Piece.cc
  15630. (operator==): New function.
  15631. (getMissingBlockIndex): New function.
  15632. * src/Peer.h
  15633. (DEFAULT_LATENCY): New definition.
  15634. (latency): New variable.
  15635. (updateLatency): New function.
  15636. (getLatency): New function.
  15637. * src/Peer.cc
  15638. (resetStatus): Reset latecy.
  15639. (updateLatency): New function.
  15640. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15641. * src/SocketCore.cc
  15642. (isReadable): Added secure to the condition.
  15643. * src/HttpConnection.cc
  15644. (receiveResponse): Fixed a bug that causes no response header
  15645. exception.
  15646. * src/Peer.h
  15647. (getFastSet): Fixed the return value type.
  15648. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15649. To remove a wait from download loop:
  15650. * src/DownloadEngine.cc
  15651. (run): Comment out shortSleep.
  15652. To rewrite the message handling:
  15653. * src/SimplePeerMessage.h: New class.
  15654. * src/SimplePeerMessage.cc: New class.
  15655. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15656. (msg): New variable.
  15657. (create): New function.
  15658. (send): Removed.
  15659. (getMessage): New function.
  15660. (getMessageLength): New function.
  15661. * src/CancelMessage.cc
  15662. (create): New function.
  15663. (receivedAction): Replaced deleteRequestMessageInQueue with
  15664. rejectPieceMessageInQueue.
  15665. (send): Removed.
  15666. (getMessage): New function.
  15667. (getMessageLength): New function.
  15668. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15669. (msg): New variable.
  15670. (msgLength): New variable.
  15671. (~BitfieldMessage): Deleted msg.
  15672. (send): Removed.
  15673. (getMessage): New function.
  15674. (getMessageLength): New function.
  15675. * src/BitfieldMessage.cc
  15676. (create): New function.
  15677. (send): Removed.
  15678. (getMessage): New function.
  15679. (getMessageLength): New function.
  15680. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15681. (msg): New variable.
  15682. (sendPredicate): New function.
  15683. (onSendComplete): New function.
  15684. (send): Removed.
  15685. (getMessage): New function.
  15686. (getMessageLength): New function.
  15687. (create): New function.
  15688. * src/ChokeMessage.cc
  15689. (create): New function.
  15690. (send): Removed.
  15691. (sendPredicate): New function.
  15692. (getMessage): New function.
  15693. (getMessageLength): New function.
  15694. (onSendComplete): New function.
  15695. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15696. (msg): New variable.
  15697. (send): Removed.
  15698. (getMessage): New function.
  15699. (getMessageLength): New function.
  15700. * src/KeepAliveMessage.cc
  15701. (send): Removed.
  15702. (getMessage): New function.
  15703. (getMessageLength): New function.
  15704. * src/PortMessage.h
  15705. (create): New function.
  15706. (receivedAction): Updated log message.
  15707. * src/PortMessage.cc: New file.
  15708. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15709. (msg): New variable.
  15710. (sendPredicate): New function.
  15711. (onSendComplete): New function.
  15712. (create): New function.
  15713. (send): Removed.
  15714. (getMessage): New function.
  15715. (getMessageLength): New function.
  15716. * src/UnchokeMessage.cc
  15717. (create): New function.
  15718. (send): Removed.
  15719. (sendPredicate): New function.
  15720. (getMessage): New function.
  15721. (getMessageLength): New function.
  15722. (onSendComplete): New function.
  15723. * src/PieceMessage.h
  15724. (leftPieceDataLength): Removed.
  15725. (leftDataLength): New variable.
  15726. (headerSend): New variable.
  15727. (pendingCount): New variable.
  15728. (msgHeader): New variable.
  15729. (sendPieceData): New function.
  15730. (incrementPendingCount): New function.
  15731. (isPendingCountMax): New function.
  15732. (create): New function.
  15733. (getMessageHeader): New function.
  15734. (getMessageHeaderLength): New function.
  15735. * src/PieceMessage.cc
  15736. (create): New function.
  15737. (getMessageHeader): New function.
  15738. (getMessageHeaderLength): New function.
  15739. (send): Rewritten.
  15740. (sendPieceData): New function.
  15741. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15742. (msg): New variable.
  15743. (create): New function.
  15744. (getMessage): New function.
  15745. (getMessageLength): New function.
  15746. * src/HaveMessage.cc
  15747. (create): New function.
  15748. (send): Removed.
  15749. (sendPieceData): New function.
  15750. (getMessage): New function.
  15751. (getMessageLength): New function.
  15752. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15753. (msg): New variable.
  15754. (create): New function.
  15755. (send): Removed.
  15756. (getMessage): New function.
  15757. (getMessageLength): New function.
  15758. * src/RequestMessage.cc
  15759. (create): New function.
  15760. (receivedAction): Added the handling of fast extension.
  15761. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15762. (send): Removed.
  15763. (getMessage): New function.
  15764. (getMessageLength): New function.
  15765. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15766. (msg): New variable.
  15767. (sendPredicate): New function.
  15768. (onSendComplete): New function.
  15769. (create): New function.
  15770. (getMessage): New function.
  15771. (getMessageLength): New function.
  15772. * src/InterestedMessage.cc
  15773. (create): New function.
  15774. (send): Removed.
  15775. (sendPieceData): New function.
  15776. (getMessage): New function.
  15777. (getMessageLength): New function.
  15778. (onSendComplete): New function.
  15779. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15780. (msg): New variable.
  15781. (sendPieceData): New function.
  15782. (onSendComplete): New function.
  15783. (create): New function.
  15784. (send): Removed.
  15785. (getMessage): New function.
  15786. (getMessageLength): New function.
  15787. * src/NotInterestedMessage.cc
  15788. (create): New function.
  15789. (send): Removed.
  15790. (sendPredicate): New function.
  15791. (getMessage): New function.
  15792. (getMessageLength): New function.
  15793. (onSendComplete): New function.
  15794. * src/AllowedFastMessage.h: New class.
  15795. * src/AllowedFastMessage.cc: New class.
  15796. * src/RejectMessage.h: New class.
  15797. * src/RejectMessage.cc: New class.
  15798. * src/SuggestPieceMessage.h: New class.
  15799. * src/SuggestPieceMessage.cc: New class.
  15800. * src/HaveAllMessage.h: New class.
  15801. * src/HaveAllMessage.cc: New class.
  15802. * src/HaveNoneMessage.h: New class.
  15803. * src/HaveNoneMessage.cc: New class.
  15804. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15805. (msg): New variable.
  15806. (reserved): New variable.
  15807. (create): New function.
  15808. (getId): New function.
  15809. (receivedAction): New function.
  15810. (getMessage): New function.
  15811. (getMessageLength): New function.
  15812. (isFastExtensionSupported): New function.
  15813. * src/HandshakeMessage.cc
  15814. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15815. (create): New function.
  15816. (getMessage): New function.
  15817. (getMessageLength): New function.
  15818. (toString): Added the output of reserved field.
  15819. (check): Added const qualifier.
  15820. (isFastExtensionSupported): New function.
  15821. * src/PeerMessageUtil.h
  15822. (createChokeMessage): Removed.
  15823. (createUnchokeMessage): Removed.
  15824. (createInterestedMessage): Removed.
  15825. (createNotInterestedMessage): Removed.
  15826. (createHaveMessage): Removed.
  15827. (createBitfieldMessage): Removed.
  15828. (createRequestMessage): Removed.
  15829. (createCancelMessage): Removed.
  15830. (createPieceMessage): Removed.
  15831. (createPortMessage): Removed.
  15832. (createChokeMessage): Removed.
  15833. (createUnchokeMessage): Removed.
  15834. (createInterestedMessage): Removed.
  15835. (createNotInterestedMessage): Removed.
  15836. (createHaveMessage): Removed.
  15837. (createBitfieldMessage): Removed.
  15838. (createRequestMessage): Removed.
  15839. (createCancelMessage): Removed.
  15840. (createPieceMessage): Removed.
  15841. (createKeepAliveMessage): Removed.
  15842. (createHandshakeMessage): Removed.
  15843. (setIntParam): New function.
  15844. (createPeerMessageString): New function.
  15845. * src/PeerMessageUtil.cc
  15846. (createChokeMessage): Removed.
  15847. (createUnchokeMessage): Removed.
  15848. (createInterestedMessage): Removed.
  15849. (createNotInterestedMessage): Removed.
  15850. (createHaveMessage): Removed.
  15851. (createBitfieldMessage): Removed.
  15852. (createRequestMessage): Removed.
  15853. (createCancelMessage): Removed.
  15854. (createPieceMessage): Removed.
  15855. (createPortMessage): Removed.
  15856. (createRequestMessage): Removed.
  15857. (createCancelMessage): Removed.
  15858. (createPieceMessage): Removed.
  15859. (createHaveMessage): Removed.
  15860. (createChokeMessage): Removed.
  15861. (createUnchokeMessage): Removed.
  15862. (createInterestedMessage): Removed.
  15863. (createNotInterestedMessage): Removed.
  15864. (createBitfieldMessage): Removed.
  15865. (createKeepAliveMessage): Removed.
  15866. (createHandshakeMessage): Removed.
  15867. (setIntParam): New function.
  15868. (createPeerMessageString): New function.
  15869. * src/PeerConnection.h
  15870. (peer): Removed.
  15871. (torrentMan): Removed.
  15872. (createNLengthMessage): Removed.
  15873. (setIntParam): Removed.
  15874. (writeOutgoingMessageLog): Removed all overloaded functions.
  15875. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15876. (sendMessage): New function.
  15877. (sendHandshake): Removed.
  15878. (sendKeepAlive): Removed.
  15879. (sendChoke): Removed.
  15880. (sendUnchoke): Removed.
  15881. (sendInterested): Removed.
  15882. (sendNotInterested): Removed.
  15883. (sendHave): Removed.
  15884. (sendBitfield): Removed.
  15885. (sendRequest): Removed.
  15886. (sendPiece): Removed.
  15887. (sendPieceHeader): Removed.
  15888. (sendPieceData): Removed.
  15889. (sendCancel): Removed.
  15890. (getPeer): Removed.
  15891. * src/PeerConnection.cc
  15892. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15893. (sendHandshake): Removed.
  15894. (sendKeepAlive): Removed.
  15895. (createNLengthMessage): Removed.
  15896. (setIntParam): Removed.
  15897. (writeOutgoingMessageLog): Removed all overloaded functions.
  15898. (sendChoke): Removed.
  15899. (sendUnchoke): Removed.
  15900. (sendInterested): Removed.
  15901. (sendNotInterested): Removed.
  15902. (sendHave): Removed.
  15903. (sendBitfield): Removed.
  15904. (sendRequest): Removed.
  15905. (sendPiece): Removed.
  15906. (sendPieceHeader): Removed.
  15907. (sendPieceData): Removed.
  15908. (sendMessage): New function.
  15909. (sendCancel): Removed.
  15910. * src/PeerInteractionCommand.cc
  15911. (PeerInteractionCommand): Call setUploadLimit.
  15912. (executeInternal): Call setUploadLimit.
  15913. Added the handling of "inProgress" state of handshake message.
  15914. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15915. sendNow().
  15916. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15917. sendNow().
  15918. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15919. * src/TorrentMan.h
  15920. (PEER_ID_LENGTH): New definition.
  15921. (hasAllPieces): New function.
  15922. * src/TorrentMan.cc
  15923. (getMissingPiece): Added the handling of fast extension.
  15924. (cancelPiece): Call updatePiece().
  15925. (hasAllPieces): New function.
  15926. * src/PeerInteraction.h
  15927. (fastSet): New variable.
  15928. (getNewPieceAndSendInterest): Changed the return type to void.
  15929. (send): Renamed as sendMessages.
  15930. (deleteAllRequestSlot): Removed.
  15931. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15932. (cancelAllRequest): Removed all overloaded functions.
  15933. (deleteAllRequestSlot): Removed.
  15934. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15935. (rejectPieceMessageInQueue): New function.
  15936. (rejectAllPieceMessageInQueue): New function.
  15937. (onChoked): New function.
  15938. (isSendingMessageInProgress): New function.
  15939. (getCorrespondingRequestSlot): Changed its arguments.
  15940. (isInFastSet): New function.
  15941. (addFastSetIndex): New function.
  15942. (addRequests): New function.
  15943. (sendNow): Removed.
  15944. (trySendNow): Removed.
  15945. (sendBitfield): New function.
  15946. (sendAllowdFast): New function.
  15947. (createHaveAllMessage): New function.
  15948. (createHaveNoneMessage): New function.
  15949. (createRejectMessage): New function.
  15950. (createAllowedFastMessage): New function.
  15951. * src/PeerInteraction.cc
  15952. (send): Renamed as sendMessages.
  15953. (sendMessages): New function.
  15954. (MsgPushBack): New class.
  15955. (isSendingMessageInProgress): New function.
  15956. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15957. (rejectAllPieceMessageInQueue): New function.
  15958. Added the handling of fast extension.
  15959. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15960. (rejectPieceMessageInQueue): New function.
  15961. Added the handling of fast extension.
  15962. (deleteRequestSlot): Replaced for loop with std::find.
  15963. (onChoked): New function.
  15964. (deleteAllRequestSlot): Removed.
  15965. (abortPiece): Rewirtten.
  15966. (deleteTimeoutRequestSlot): Updated log messages.
  15967. (getCorrespondingRequestSlot): Changed its arguments.
  15968. (cancelAllRequest): Removed all overloaded functions.
  15969. (receiveHandshake): Added the check to see whether an incoming peer
  15970. supports fast extension.
  15971. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15972. PeerMessageUtil.
  15973. (createPeerMessage): Use create() of each message class instead of
  15974. PeerMessageUtil.
  15975. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15976. AllowedFastMessage were added.
  15977. (getNewPieceAndSendInterest): Changed its return value type to void.
  15978. Added the handling of fast extension.
  15979. (addRequests): New function.
  15980. (sendNow): Removed.
  15981. (sendHandshake): Rewritten.
  15982. (trySendNow): Removed.
  15983. (sendBitfield): New function.
  15984. (sendAllowdFast): New function.
  15985. (isInFastSet): New function.
  15986. (addFastSetIndex): New function.
  15987. (createRequestMessage): Use RequestMessage::create instead of
  15988. PeerMessageUtil.
  15989. (createCancelMessage): Use CancelMessage::create instead of
  15990. PeerMessageUtil.
  15991. (createPieceMessage): Use PieceMessage::create instead of
  15992. PeerMessageUtil.
  15993. (createHaveMessage): Use HaveMessage::create instead of
  15994. PeerMessageUtil.
  15995. (createChokeMessage): Use ChokeMessage::create instead of
  15996. PeerMessageUtil.
  15997. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15998. PeerMessageUtil.
  15999. (createInterestedMessage): Use InterestedMessage::create instead of
  16000. PeerMessageUtil.
  16001. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16002. of PeerMessageUtil.
  16003. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16004. PeerMessageUtil.
  16005. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16006. PeerMessageUtil.
  16007. (createHaveAllMessage): New function.
  16008. (createHaveNoneMessage): New function.
  16009. (createRejectMessage): New function.
  16010. (createAllowedFastMessage: New function.
  16011. * src/Util.h
  16012. (sha1Sum): New function.
  16013. (computeFastSet): New function.
  16014. * src/Util.cc
  16015. (sha1Sum): New function.
  16016. (computeFastSet): New function.
  16017. * src/Peer.h
  16018. (fastExtensionEnabled): New variable.
  16019. (fastSet): New variable.
  16020. (setAllBitfield): New function.
  16021. (setFastExtensionEnabled): New function.
  16022. (isFastExtensionEnabled): New function.
  16023. (addFastSetIndex): New function.
  16024. (getFastSet): New function.
  16025. (isInFastSet): New function.
  16026. (countFastSet): New function.
  16027. * src/Peer.cc
  16028. (isInFastSet): New function.
  16029. (addFastSetIndex): New function.
  16030. (setAllBitfield): New function.
  16031. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16032. sockets.
  16033. * src/PeerAbstractCommand.cc
  16034. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16035. and uploadLimit.
  16036. (execute): Changed the procedure of checking sockets. The upload speed
  16037. checking were added.
  16038. (setUploadLimit): New function.
  16039. (setUploadLimitCheck): New function.
  16040. * src/PeerAbstractCommand.h
  16041. (setUploadLimit): New function.
  16042. (setUploadLimitCheck): New function.
  16043. (uploadLimit): New variable.
  16044. (uploadLimitCheck): New variable.
  16045. To contact a tracker regularly:
  16046. * src/TrackerWatcherCommand.h (interval): New variable.
  16047. (checkPoint): New variable.
  16048. (TrackerWatcherCommand): Added interval argument.
  16049. * src/TrackerWatcherCommand.cc
  16050. (TrackerWatcherCommand): Initialized checkPoint.
  16051. (execute): Now a tracker is contacted in every specified period.
  16052. If peer list is not needed, send request with numwant=0.
  16053. * src/TrackerUpdateCommand.cc
  16054. (execute): Updated log messages.
  16055. * src/DownloadEngine.cc
  16056. (~DownloadEngine): Removed two asserts.
  16057. (waitData): Uncommented wfds. May be a bug fix.
  16058. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16059. * src/PeerInteractionCommand.h
  16060. (checkInactiveConnection): Removed.
  16061. * src/PeerInteractionCommand.cc
  16062. (executeInternal): Removed following function calls:
  16063. detectMessageFlooding(), checkLongTimePeerChoking and
  16064. checkInactiveConnection().
  16065. (checkInactiveConnection): Removed.
  16066. (detectMessageFlooding): Removed function call to
  16067. checkInactiveConnection().
  16068. * src/PeerMessageUtil.h
  16069. (createChokeMessage): New function. Overload.
  16070. (createUnchokeMessage): New function. Overload.
  16071. (createInterestedMessage): New function. Overload.
  16072. (createNotInterestedMessage): New function. Overload.
  16073. (createHaveMessage): New function. Overload.
  16074. (createBitfieldMessage): New function. Overload.
  16075. (createRequestMessage): New function. Overload.
  16076. (createCancelMessage): New function. Overload.
  16077. (createPieceMessage): New function. Overload.
  16078. (createKeepAliveMessage): New function. Overload.
  16079. * src/PeerMessageUtil.cc
  16080. (createChokeMessage): New function. Overload.
  16081. (createUnchokeMessage): New function. Overload.
  16082. (createInterestedMessage): New function. Overload.
  16083. (createNotInterestedMessage): New function. Overload.
  16084. (createHaveMessage): New function. Overload.
  16085. (createBitfieldMessage): New function. Overload.
  16086. (createRequestMessage): New function. Overload.
  16087. (createCancelMessage): New function. Overload.
  16088. (createPieceMessage): New function. Overload.
  16089. (createKeepAliveMessage): New function. Overload.
  16090. * src/SendMessageQueue.cc
  16091. (createRequestMessage): Use PeerMessageUtil.
  16092. (createCancelMessage): Use PeerMessageUtil.
  16093. (createPieceMessage): Use PeerMessageUtil.
  16094. (createHaveMessage): Use PeerMessageUtil.
  16095. (createChokeMessage): Use PeerMessageUtil.
  16096. (createUnchokeMessage): Use PeerMessageUtil.
  16097. (createInterestedMessage): Use PeerMessageUtil.
  16098. (createNotInterestedMessage): Use PeerMessageUtil.
  16099. (createBitfieldMessage): Use PeerMessageUtil.
  16100. (createKeepAliveMessage): Use PeerMessageUtil.
  16101. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16102. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16103. * src/PeerInteraction.h: New class.
  16104. * src/PeerInteraction.cc: New class.
  16105. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16106. Each peer message has its own class.
  16107. * src/PendingMessages.h: Removed.
  16108. * src/PendingMessages.cc: Removed. The sending process was moved to
  16109. each message class.
  16110. * src/RequestSlotMan.h: Removed.
  16111. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16112. SendMessageQueue.
  16113. * src/RequestMessage.h: New class.
  16114. * src/RequestMessage.cc: New class.
  16115. * src/CancelMessage.h: New class.
  16116. * src/CancelMessage.cc: New class.
  16117. * src/BitfieldMessage.h: New class.
  16118. * src/BitfieldMessage.cc: New class.
  16119. * src/ChokeMessage.h: New class.
  16120. * src/ChokeMessage.cc: New class.
  16121. * src/KeepAliveMessage.h: New class.
  16122. * src/KeepAliveMessage.cc: New class.
  16123. * src/PortMessage.h: New class.
  16124. * src/UnchokeMessage.h: New class.
  16125. * src/UnchokeMessage.cc: New class.
  16126. * src/PieceMessage.h: New class.
  16127. * src/PieceMessage.cc: New class.
  16128. * src/HaveMessage.h: New class.
  16129. * src/HaveMessage.cc: New class.
  16130. * src/BitfieldMessage.h: New class.
  16131. * src/BitfieldMessage.cc: New class.
  16132. * src/NotInterestedMessage.h: New class.
  16133. * src/NotInterestedMessage.cc: New class.
  16134. * src/InterestedMessage.h: New class.
  16135. * src/InterestedMessage.cc: New class.
  16136. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16137. (getSendMessageQueue): New function.
  16138. (setSendMessageQueue): New function.
  16139. * src/HandshakeMessage.cc: New class.
  16140. * src/PeerConnection.h (receiveMessage): Changed return value and
  16141. arguments.
  16142. (receiveHandshake): Changed return value and arguments.
  16143. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16144. here.
  16145. (receiveHandshake): Do not create handshake class here.
  16146. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16147. (piece): Removed.
  16148. (syncPiece): Removed.
  16149. (sendInterest): Removed.
  16150. (sendMessages): Removed.
  16151. (createRequestPendingMessage): Removed.
  16152. (checkPieceHash): Removed.
  16153. (erasePieceOnDisk): Removed.
  16154. (getNewPieceAndSendInterest): Removed.
  16155. (onGotNewPice): Removed.
  16156. (onGotWrongPiece): Removed.
  16157. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16158. Removed peerConnection, piece.
  16159. (~PeerInteractionCommand): Removed peerConnection.
  16160. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16161. (syncPiece): Moved to SendMessageQueue.
  16162. (decideChoking): Removed PendingMessage.
  16163. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16164. The action after receiving peer message was moved to each message
  16165. class.
  16166. (onGotNewPice): Moved to SendMessageQueue.
  16167. (onGotWrongPiece): Moved to SendMessageQueue.
  16168. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16169. (sendInterest): Moved to SendMessageQueue.
  16170. (createRequestPendingMessage): Removed.
  16171. (sendMessages): Moved to SendMessageQueue.
  16172. (onAbort): Use SendMessageQueue::abortPiece()
  16173. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16174. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16175. (checkPieceHash): Moved to SendMessageQueue.
  16176. (erasePieceOnDisk): Moved to SendMessageQueue.
  16177. * src/PeerMessageUtil.h
  16178. (createBitfieldMessage): Removed.
  16179. (createHaveMessage): Changed return value and arguments.
  16180. (createBitfieldMessage): Changed return value and arguments.
  16181. (createRequestCancelMessage): Removed.
  16182. (createPieceMessage): Changed return value and arguments.
  16183. (getShortIntParam): New function.
  16184. (checkIndex): Changed arguments.
  16185. (checkBegin): Changed arguments.
  16186. (checkLength): Changed arguments.
  16187. (checkPieceOffset): Removed.
  16188. (checkRange): New function.
  16189. (checkBitfield): Changed arguments.
  16190. (createPeerMessage): Removed.
  16191. (checkIntegrity): Removed.
  16192. (createHandshakeMessage): Changed arguments.
  16193. (createChokeMessage): New function.
  16194. (createUnchokeMessage): New function.
  16195. (createInterestedMessage): New function.
  16196. (createNotInterestedMessage): New function.
  16197. (createRequestMessage): New function.
  16198. (createCancelMessage): New function.
  16199. (createPortMessage): New function.
  16200. * src/PeerMessageUtil.cc
  16201. (createBitfieldMessage): Removed.
  16202. (createHaveMessage): Changed return value and arguments.
  16203. (createBitfieldMessage): Changed return value and arguments.
  16204. (createRequestCancelMessage): Removed.
  16205. (createPieceMessage): Changed return value and arguments.
  16206. (getShortIntParam): New function.
  16207. (checkIndex): Changed arguments.
  16208. (checkBegin): Changed arguments.
  16209. (checkLength): Changed arguments.
  16210. (checkPieceOffset): Removed.
  16211. (checkRange): New function.
  16212. (checkBitfield): Changed arguments.
  16213. (createPeerMessage): Removed.
  16214. (checkIntegrity): Removed.
  16215. (createHandshakeMessage): Changed arguments.
  16216. (createChokeMessage): New function.
  16217. (createUnchokeMessage): New function.
  16218. (createInterestedMessage): New function.
  16219. (createNotInterestedMessage): New function.
  16220. (createRequestMessage): New function.
  16221. (createCancelMessage): New function.
  16222. (createPortMessage): New function.
  16223. * src/PeerMessage.h
  16224. (id): Removed.
  16225. (index): Removed.
  16226. (begin): Removed.
  16227. (length): Removed.
  16228. (bitfield): Removed.
  16229. (bitfieldLength): Removed.
  16230. (block): Removed.
  16231. (blockLength): Removed.
  16232. (inProgress): New variable.
  16233. (cuid): New variable.
  16234. (peer): New variable.
  16235. (sendMessageQueue): New variable.
  16236. (logger): New variable.
  16237. (setBitfield): Removed.
  16238. (getBitfield): Removed.
  16239. (setBlock): Removed.
  16240. (getBlock): Removed.
  16241. (getBitfieldLength): Removed.
  16242. (getBlockLength): Removed.
  16243. (isInProgress): New function.
  16244. (toString): Made pure virtual.
  16245. (check): New function.
  16246. (send): New function.
  16247. (receivedAction): New function.
  16248. (getId): Made pure virtual.
  16249. (setId): Removed.
  16250. (getIndex): Removed.
  16251. (setIndex): Removed.
  16252. (getBegin): Removed.
  16253. (setBegin): Removed.
  16254. (getLength): Removed.
  16255. (setLength): Removed.
  16256. (getCuid): New function.
  16257. (setCuid): New function.
  16258. (getPeer): New function.
  16259. (setPeer): New function.
  16260. (getSendMessageQueue): New function.
  16261. (setSendMessageQueue): New function.
  16262. (ID): Removed.
  16263. * src/PeerMessage.cc
  16264. (setBitfield): Removed.
  16265. (setBlock): Removed.
  16266. (toString): Removed.
  16267. * src/TorrentMan.h
  16268. (getPieceLength): New function.
  16269. (getPieceLength): New function.
  16270. * src/SendMessageQueue.h
  16271. (REQUEST_TIME_OUT): New definition.
  16272. (RequestSlots): New definition.
  16273. (MessageQueue): New definition.
  16274. (requestSlotMan): Removed.
  16275. (pendingMessages): Removed.
  16276. (requestSlots): New variable.
  16277. (messageQueue): New variable.
  16278. (torrentMan): New variable.
  16279. (peerConnection): New variable.
  16280. (peer): New variable.
  16281. (piece): New variable.
  16282. (getNewPieceAndSendInterest): New function.
  16283. (createPeerMessage): New function.
  16284. (createHandshakeMessage): New function.
  16285. (send): Made private.
  16286. (setPeerMessageCommonProperty): New function.
  16287. (deleteAllRequestSlot): New function.
  16288. (deleteRequestMessageInQueue): New function.
  16289. (cancelAllRequest): Made private.
  16290. (cancelAllRequest): Made private.
  16291. (countRequestSlot): Made private.
  16292. (addPendingMessage): Removed.
  16293. (deletePendingPieceMessage): Removed.
  16294. (deletePendingRequestMessage): Removed.
  16295. (addMessage): New function.
  16296. (deletePieceMessageInQueue): New function.
  16297. (deleteTimeoutRequestSlot): Changed argument.
  16298. (deleteCompletedRequestSlot): Changed argument.
  16299. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16300. (getCorrespondingRequestSlot): New function.
  16301. (countPendingMessage): Removed.
  16302. (countMessageInQueue): New function.
  16303. (getTorrentMan): New function.
  16304. (getPeerConnection): New function.
  16305. (hasDownloadPiece): New function.
  16306. (getDownloadPiece): New function.
  16307. (setDownloadPiece): New function.
  16308. (syncPiece): New function.
  16309. (sendMessages): New function.
  16310. (sendNow): New function.
  16311. (trySendNow): New function.
  16312. (abortPiece): New function.
  16313. (sendHandshake): New function.
  16314. (receiveMessage): New function.
  16315. (receiveHandshake): New function.
  16316. (createRequestMessage): New function.
  16317. (createCancelMessage): New function.
  16318. (createPieceMessage): New function.
  16319. (createHaveMessage): New function.
  16320. (createChokeMessage): New function.
  16321. (createUnchokeMessage): New function.
  16322. (createInterestedMessage): New function.
  16323. (createNotInterestedMessage): New function.
  16324. (createBitfieldMessage): New function.
  16325. (createKeepAliveMessage): New function.
  16326. * src/SendMessageQueue.cc
  16327. (SendMessageQueue): Removed requestSlotMan.
  16328. Instantiated peerConnection here.
  16329. (~SendMessageQueue): Removed requestSlotMan.
  16330. Added deletion of peerConnection and the contents of messageQueue.
  16331. (send): Updated according to the change of messageQueue.
  16332. (addPendingMessage): Renamed to addMessage.
  16333. (addMessage): New function.
  16334. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16335. (deletePieceMessageInQueue): New function.
  16336. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16337. (deleteRequestMessageInQueue): New function.
  16338. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16339. here.
  16340. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16341. (...) was moved here.
  16342. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16343. moved here.
  16344. (deleteCompletedRequestSlot):
  16345. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16346. (getCorrespondingRequestSlot):
  16347. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16348. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16349. (countPendingMessage): Renamed to countMessageInQueue.
  16350. (countMessageInQueue): New function.
  16351. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16352. (receiveHandshake): New function.
  16353. (createHandshakeMessage): New function.
  16354. (receiveMessage): New function.
  16355. (createPeerMessage): New function.
  16356. (syncPiece): New function.
  16357. (getNewPieceAndSendInterest): New function.
  16358. (sendMessages): New function.
  16359. (sendNow): New function.
  16360. (trySendNow): New function.
  16361. (sendHandshake): New function.
  16362. (abortPiece): New function.
  16363. (getDownloadPiece): New function.
  16364. (getPeerMessageCommonProperty): New function.
  16365. (createRequestMessage): New function.
  16366. (createCancelMessage): New function.
  16367. (createPieceMessage): New function.
  16368. (createHaveMessage): New function.
  16369. (createChokeMessage): New function.
  16370. (createUnchokeMessage): New function.
  16371. (createInterestedMessage): New function.
  16372. (createNotInterestedMessage): New function.
  16373. (createBitfieldMessage): New function.
  16374. (createKeepAliveMessage): New function.
  16375. To add simple Content-Disposition support:
  16376. * src/HttpResponseCommand.h (determinFilename): New function.
  16377. * src/HttpResponseCommand.cc (executeInternal):
  16378. Use determinFilename(headers) instead of req->getFile() when comparing
  16379. filename.
  16380. (determinFilename): New function.
  16381. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16382. req->getFile().
  16383. (handleOtherEncoding): Use determinFilename(headers) instead of
  16384. req->getFile().
  16385. * src/Util.h (getContentDispositionFilename): New function.
  16386. * src/Util.cc (getContentDispositionFilename): New function.
  16387. * src/LogFactory.h (release): New function.
  16388. * src/LogFactory.cc (release): New function.
  16389. To fix a bug that causes out-of-bound exception when HTTP status
  16390. line is wrong:
  16391. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16392. size.
  16393. * src/common.h (Deleter): New class.
  16394. * src/SegmentMan.cc
  16395. (~SegmentMan): Added deletion of splitter and diskWriter.
  16396. * src/DownloadEngine.h
  16397. (Commands): Use deque.
  16398. (clearQueue): New function.
  16399. * src/DownloadEngine.cc
  16400. (~DownloadEngine): Added deletion of segmentMan.
  16401. (cleanQueue): New function.
  16402. * src/TorrentDownloadEngine.h
  16403. (TorrentDownloadEngine): The implementation was moved to
  16404. TorrentDownloadEngine.cc.
  16405. (~TorrentDownloadEngine): The implementation was moved to
  16406. TorrentDownloadEngine.cc.
  16407. * src/TorrentDownloadEngine.cc
  16408. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16409. * src/main.cc
  16410. (clearRequest): Removed.
  16411. (handler): Added deletion of e.
  16412. (torrentHandler): Added deletion of te.
  16413. (main): Do not share splitter.
  16414. Use Deleter instead of clearRequest.
  16415. Deletion of classes were updated.
  16416. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16417. * src/main.cc (main): Fixed typo.
  16418. * src/message.h: Fixed typo.
  16419. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16420. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16421. To add --select-file command-line option:
  16422. * src/Util.cc
  16423. (unfoldRange): New function.
  16424. (getNum): New function.
  16425. (unfoldSubRange): New function
  16426. * src/main.cc
  16427. (showUsage): Added help message.
  16428. (main): Added --select-file command-line option. Updated the layout of
  16429. file listing.
  16430. * src/common.h
  16431. (Integers): New definition.
  16432. * src/SocketCore.cc
  16433. (writeData): Removed timeout argument.
  16434. (readData): Removed timeout argument.
  16435. (peekData): Removed timeout argument.
  16436. * src/Socket.cc
  16437. (writeData): Removed timeout argument.
  16438. (readData): Removed timeout argument.
  16439. (peekData): Removed timeout argument.
  16440. * Release 0.4.1
  16441. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16442. To deploy upload rate based choking algorithm:
  16443. * src/PeerInteractionCommand.cc
  16444. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16445. peer currently used.
  16446. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16447. download completes. Simplified.
  16448. (receiveMessage): Updated.
  16449. * src/TorrentMan.h
  16450. (activePeers): New variable.
  16451. (addActivePeer): New function.
  16452. (getActivePeers): New function.
  16453. (deleteActivePeer): New function.
  16454. * src/TorrentMan.cc
  16455. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16456. * src/PeerAbstractCommand.cc
  16457. (onAbort): Use peer->resetStatus().
  16458. * src/main.cc
  16459. (PeerChokeCommand.h): Included.
  16460. (main): Added the instance of ChokingCommand to the command queue.
  16461. * src/Peer.h
  16462. (amChoking): Renamed from amChocking
  16463. (chokingRequired): New variable.
  16464. (optUnchoking): New variable.
  16465. (deltaUpload): New variable.
  16466. (deltaDownload): New variable.
  16467. (addDeltaUpload): New function.
  16468. (resetDeltaUpload): New function.
  16469. (addDeltaDownload): New function.
  16470. (resetDeltaDownload): New function.
  16471. (addPeerUpload): Added a call to addDeltaUpload.
  16472. (addPeerDownload): Added a call to addDeltaDownload.
  16473. * src/Peer.cc
  16474. (shouldBeChoking): Renamed from shouldChoke.
  16475. (resetStatus): New function.
  16476. * src/PeerChokeCommand.h: New class.
  16477. * src/PeerChokeCommand.cc: New class.
  16478. To add lazy upload speed limiter:
  16479. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16480. statistics calculation to TorrentDownloadEngine.
  16481. * src/TorrentConsoleDownloadEngine.cc
  16482. (sendStatistics): Renamed from printStatistics.
  16483. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16484. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16485. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16486. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16487. calculation.
  16488. (sendStatistics): New function as pure virtual function.
  16489. (getUploadSpeed): New function.
  16490. * src/TorrentDownloadEngine.cc
  16491. (initStatistics): New function.
  16492. (calculateSpeed): New function.
  16493. (calculateStatistics): New function.
  16494. * src/SendMessageQueue.h
  16495. (uploadLength): New variable.
  16496. (send): Added an argument.
  16497. (setUploadLimit): New function.
  16498. (getUploadLimit): New function.
  16499. * src/SendMessageQueue.cc
  16500. (send): Added upload speed limiter.
  16501. * src/prefs.h
  16502. (PREF_UPLOAD_LIMIT): New definition.
  16503. * src/PeerInteractionCommand.cc
  16504. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16505. * src/main.cc
  16506. (main): Added --upload-limit option
  16507. For bug fixes:
  16508. * src/main.cc
  16509. (showUsage): Corrected --listen-port help
  16510. Other changes:
  16511. * src/TorrentMan.cc
  16512. (getPeer): Return nullPeer if connection is grather than
  16513. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16514. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16515. To add some useful information to the exception message:
  16516. * src/SocketCore.cc : Updated messages.
  16517. * src/SegmentMan.cc :
  16518. * src/TorrentMan.cc : Updated messages.
  16519. * src/MultiDiskWriter.cc : Updated messages.
  16520. * src/Util.cc : Updated messages.
  16521. * src/AbstractDiskWriter.cc : Updated messages.
  16522. * src/PreAllocationDiskWriter.cc : Updated messages.
  16523. * src/message.cc : Added new messages. Updated some messages.
  16524. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16525. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16526. Updated threshold from 30 to 15.
  16527. * src/AbstractDiskWriter.h (filename): New variable.
  16528. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16529. (createFile): Assigned filename.
  16530. * src/main.cc: Updated the help message for http-auth-scheme.
  16531. * Release 0.4.0
  16532. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16533. To add TrackerUpdateCommand with which replaces
  16534. CompactTrackerResponseProcessor:
  16535. * src/TrackerWatcherCommand.h (req): Removed.
  16536. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16537. if the number of peer connections are less than 30.
  16538. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16539. * src/SegmentMan.h (diskWriter): New function.
  16540. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16541. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16542. (main): Use TrackerUpdateCommand.
  16543. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16544. (req): New variable.
  16545. (setTrackerResponseProcessor): Removed.
  16546. (getTrackerResponseProcessor): Removed.
  16547. (processTrackerResponse): Removed.
  16548. * src/DownloadEngine.h (diskWriter): Removed.
  16549. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16550. to torrentMan->processTrackerResponse().
  16551. To add Util::expandBuffer:
  16552. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16553. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16554. * src/Util.h (expandBuffer): New function.
  16555. To fix the bug that causes segmentation fault when "-l ." is specified
  16556. in command-line option:
  16557. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16558. (openFile): New function.
  16559. (closeFile): New function.
  16560. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16561. (~SimpleLogger): Call closeFile();
  16562. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16563. * src/main.cc (main): Added a check to see logger is configured
  16564. properly.
  16565. To enable HTTP authentication without specifying "--http-auth-scheme"
  16566. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16567. * src/HttpConnection.cc (createRequest): Send Authorization header
  16568. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16569. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16570. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16571. * src/Peer.cc (shouldChoke): Updated algorithm.
  16572. * src/message.h (EX_AUTH_FAILED): New definition.
  16573. (EX_FILE_OPEN): New definition.
  16574. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16575. if status == 401.
  16576. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16577. if req->isTorrent == true.
  16578. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16579. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16580. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16581. (createFile): Updated message.
  16582. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16583. To add a readout of estimated remaining time to normal HTTP/FTP
  16584. downloads:
  16585. * src/ConsoleDownloadEngine.h (startup): New variable.
  16586. (startupLength): New variable.
  16587. (isStartupLengthSet): New variable.
  16588. (avgSpeed): New variable.
  16589. (eta): New variable.
  16590. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16591. estimated remaining time.
  16592. (initStatistics): Initialized newly added variables.
  16593. (calculateStatistics): Calculate average speed and estimated remaining
  16594. time.
  16595. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16596. * src/TrackerDownloadCommand.h: Removed.
  16597. * src/TrackerDownloadCommand.cc: Removed.
  16598. * src/TrackerInitCommand.h: Removed.
  16599. * src/TrackerInitCommand.cc: Removed.
  16600. * src/TrackerUpdateCommand.h: Removed.
  16601. * src/TrackerUpdateCommand.cc: Removed.
  16602. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16603. url written in TrackerInitCommand was moved here. Do not create
  16604. tracker request command if torrentMan->trackers != 0.
  16605. * src/CompactTrackerResponseProcessor.h: New class.
  16606. * src/CompactTrackerResponseProcessor.cc: New class.
  16607. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16608. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16609. Decoupled TorrentDownloadEngine from this.
  16610. * src/SegmentMan.h (init): New function.
  16611. * src/SegmentMan.cc (init): New function.
  16612. * src/TorrentMan.h (responseProcessor): New variable.
  16613. (trackers): New variable.
  16614. (setTrackerResponseProcessor): New function.
  16615. (getTrackerResponseProcessor): New function.
  16616. (processTrackerResponse): New function.
  16617. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16618. (processTrackerResponse): New function.
  16619. * src/main.cc (main): Use ByteArrayDiskWriter and
  16620. CompactTrackerResponseProcessor.
  16621. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16622. processTrackerResponse().
  16623. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16624. readout.
  16625. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16626. which indicates download has completed.
  16627. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16628. (closeFile): fd >= 0, not fd > 0
  16629. * src/main.cc (main): Added short cut for show-files.
  16630. Added short cut for torrent-file.
  16631. Added new command-line option listen-port.
  16632. Updated i18n messages.
  16633. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16634. To add LogFactory which creates singleton logger:
  16635. * src/LogFactory.h: New class.
  16636. * src/LogFactory.cc: New class.
  16637. * src/Command.h (logger): New variable.
  16638. (Constructor): Use LogFactory.
  16639. * src/AbstractCommand.cc: Use Command::logger
  16640. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16641. Use LogFactory.
  16642. * src/SegmentSplitter.h : Made logger protected.
  16643. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16644. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16645. * src/DownloadEngine.h : Made logger protected.
  16646. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16647. * src/PeerInteractionCommand.cc : Use Command::logger.
  16648. * src/HttpResponseCommand.cc : Use Command::logger.
  16649. * src/SegmentMan.h : Made logger private.
  16650. * src/TorrentMan.h : Made logger private.
  16651. * src/TorrentMan.cc : Use LogFactory.
  16652. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16653. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16654. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16655. Use LogFactory.
  16656. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16657. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16658. Use LogFactory.
  16659. * src/DownloadCommand.cc : Use Command::logger.
  16660. * src/PeerAbstractCommand.cc : Use Command::logger.
  16661. * src/PeerListenCommand.cc : Use Command::logger.
  16662. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16663. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16664. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16665. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16666. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16667. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16668. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16669. Use LogFactory.
  16670. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16671. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16672. Use LogFactory.
  16673. * src/main.cc (main): Use LogFactory.
  16674. * src/DiskAdaptor.h (logger): New variable.
  16675. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16676. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16677. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16678. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16679. parameter to a tracker request.
  16680. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16681. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16682. * src/main.cc (setSignalHander): New function.
  16683. (main): Added a handler for SIGTERM.
  16684. (handler): Updated message.
  16685. (torrentHandler): Updated message.
  16686. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16687. * src/TorrentConsoleDownloadEngine.cc
  16688. (onPartialDownloadingCompletes): Renamed as
  16689. onSelectiveDownloadingCompletes.
  16690. (onSelectiveDownloadingCompletes): Updated message.
  16691. To add DiskAdaptor which abstract DiskWriter family:
  16692. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16693. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16694. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16695. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16696. MultiDiskAdaptor.h.
  16697. (readFileEntry): Changed its arguments.
  16698. (setup): setupDiskWriter is merged into this function.
  16699. (setupDiskWriter): Removed.
  16700. (setFileFilter): New function.
  16701. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16702. made in readFileEntry.
  16703. (getFilePath): Removed.
  16704. (getTempFilePath): Removed.
  16705. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16706. (fixFilename): Removed.
  16707. (copySingleFile): Removed.
  16708. (splitMultiFile): Removed.
  16709. (deleteTempFile): Removed.
  16710. (setFileEntriesToDownload): Removed.
  16711. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16712. (isSelectiveDownloadingMode): New function.
  16713. (setAllMultiFileRequestedState): Removed.
  16714. (finishPartialDownloadingMode): Renamed as
  16715. finishSelectiveDownloadingMode.
  16716. (finishSelectiveDownloadingMode): New function.
  16717. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16718. (getSelectedTotalLength): New function.
  16719. (onDownloadComplete): Use diskAdaptor.
  16720. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16721. (Range): Removed.
  16722. (setMultiFileEntries): Renamed as setFileEntries.
  16723. (setFileEntries): New function.
  16724. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16725. (pieceLength): New variable.
  16726. * src/main.cc (printDownloadCompeleteMessage): New function.
  16727. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16728. (main): Renamed torrent-show-files to show-files.
  16729. Rewritten file contents listing.
  16730. * src/TorrentMan.h (FileEntry): Removed.
  16731. (multiFileTopDir): Removed.
  16732. (multiFileEntries): Removed.
  16733. (diskWriter): Removed.
  16734. (diskAdaptor): New variable.
  16735. * src/DefaultDiskWriter.h (totalLength): New variable.
  16736. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16737. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16738. diskWriter.
  16739. * src/TorrentConsoleDownloadEngine.h
  16740. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16741. (partialTotalLength): Renamed as selectedTotalLength.
  16742. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16743. openExistingFile, otherwise call initAndOpenFile.
  16744. (closeFile): fd > 0, not fd != 0.
  16745. * src/DirectDiskAdaptor.h: New class.
  16746. * src/DirectDiskAdaptor.cc: New class.
  16747. * src/MultiDiskAdaptor.h: New class.
  16748. * src/MultiDiskAdaptor.cc: New class.
  16749. * src/CopyDiskAdaptor.h: New class.
  16750. * src/CopyDiskAdaptor.cc: New class.
  16751. * src/DiskAdaptor.h: New class.
  16752. * src/DiskAdaptor.cc: New class.
  16753. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16754. (PREF_SHOW_FILES): New definition.
  16755. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16756. To add the ability to download multi torrent into respective files
  16757. directly:
  16758. * src/DiskWriter.h (openFile): New function.
  16759. (seek): Removed.
  16760. * src/MultiDiskWriter.h: New class.
  16761. * src/MultiDiskWriter.cc: New class.
  16762. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16763. protected.
  16764. (openFile): New function.
  16765. * src/AbstractDiskWriter.cc (openFile): New function.
  16766. * src/prefs.h (V_FALSE): New definition.
  16767. (PREF_DIRECT_FILE_MAPPING): New definition.
  16768. * src/TorrentMan.h (setupDiskWriter): New function.
  16769. (setAllMultiFileRequestedState): New function.
  16770. (onDownloadComplete): New function.
  16771. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16772. (setupDiskWriter): New function.
  16773. (getFilePath): Updated.
  16774. (getTempFilePath): Updated.
  16775. (getSegmentFilePath): Updated.
  16776. (fixFilename): Updated.
  16777. (deleteTempFile): Updated.
  16778. (setAllMultiFileRequestedState): New function.
  16779. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16780. (finishPartialDownloadingMode): Reset requested flags.
  16781. (onDownloadComplete): New function.
  16782. * src/main.cc: Added --direct-file-mapping option.
  16783. Use TorrentMan::setupDiskWriter().
  16784. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16785. onDownloadComplete().
  16786. To fix ETA bug:
  16787. * src/Util.h (difftvsec): New function.
  16788. * src/Util.cc (difftvsec): New function.
  16789. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16790. type of "elapsed" instead of long long int.
  16791. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16792. The updates of statistics takes place every 1 seconds.
  16793. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16794. (calculateSpeed): Changed its argument signature.
  16795. * src/PeerMessage.cc (toString): Fixed message.
  16796. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16797. To print ETA:
  16798. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16799. completion handling when dealing with
  16800. TorrentMan::isPartialDownloadingMode() == true.
  16801. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16802. New function.
  16803. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16804. (sessionDownloadLength): New variable.
  16805. (avgSpeed): New variable.
  16806. (eta): New variable.
  16807. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16808. new variables: eta, avgSpeed, startup.
  16809. (calculateSpeed): Calculate average speed and ETA.
  16810. (printStatistics): Added ETA.
  16811. * src/Util.h (secfmt): New function.
  16812. * src/Util.cc (secfmt): New function.
  16813. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16814. To detect "keep alive" flooding:
  16815. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16816. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16817. variable: keepAliveCount.
  16818. (detectMessageFlooding): Added "keep alive" flooding detection.
  16819. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16820. received.
  16821. To add the ability to download only specified files in multi-file
  16822. torrent:
  16823. * src/BitfieldMan.h (filterBitfield): New variable.
  16824. (filterEnabled): New variable.
  16825. (setFilterBit): New function.
  16826. (enableFilter): New function.
  16827. (disableFilter): New function.
  16828. (isFilterEnabled): New function.
  16829. (getFilteredTotalLength): New function.
  16830. (getCompletedLength): New function.
  16831. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16832. filterBitfield, filterEnabled.
  16833. (CopyConstructor): Added filterBitfield and filterEnabled.
  16834. (operator==): Added filterBitfield and filterEnabled.
  16835. (Destructor): Added filterBitfield.
  16836. (getMissingIndex): Use filterBitfield.
  16837. (getMissingUnusedIndex): Use filterBitfield.
  16838. (getFirstMissingUnusedIndex): Use filterBitfield.
  16839. (getFirstMissingUnusedIndex): Use filterBitfield.
  16840. (getAllMissingIndexes): Use filterBitfield.
  16841. (countMissingBlock): Use filterBitfield.
  16842. (countBlock): Use filterBitfield.
  16843. (setBitInternal): Added new argument on.
  16844. (setUseBit): Use setBitInternal.
  16845. (unsetUseBit): Use setBitInternal.
  16846. (setBit): Use setBitInternal.
  16847. (unsetBit): Use setBitInternal.
  16848. (isAllBitSet): Use filterBitfield.
  16849. (setFilterBit): New function.
  16850. (addFilter): New function.
  16851. (enableFilter): New function.
  16852. (disableFilter): New function.
  16853. (clearFilter): New function.
  16854. (isFilterEnabled): New function.
  16855. (getFilteredTotalLength): New function.
  16856. (getCompletedLength): New function.
  16857. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16858. Initalized newly added variables.
  16859. [FileEntry](offset): New variable.
  16860. [FileEntry](extracted): New variable.
  16861. [FileEntry](requested): New variable.
  16862. (readFileEntry): New function.
  16863. (option): New variable.
  16864. (splitMultiFile): Removed const qualifier.
  16865. (fixFilename): Removed const qualifier.
  16866. (readFileEntryFromMetaInfoFile): New function.
  16867. (finishPartialDownloadingMode): New function.
  16868. (isPartialDownloadingMode): New function.
  16869. (setFileEntriesToDownload): New function.
  16870. (getCompletedLength): New function.
  16871. (getPartialTotalLength): New function.
  16872. * src/TorrentMan.cc (readFileEntry): New function.
  16873. (setup): Use readFileEntry. If no-preallocation option is specified,
  16874. use DefaultDiskWriter.
  16875. (readFileEntryFromMetaInfoFile): New function.
  16876. (fixFilename): Removed const qualifier.
  16877. (splitMultiFile): Removed const qualifier.
  16878. (setFileEntriesToDownload): New function.
  16879. (isPartialDownloadingMode): New function.
  16880. (finishPartialDownloadingMode): New function.
  16881. (getCompletedLength): New function.
  16882. (getPartialTotalLength): New function.
  16883. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16884. New variable.
  16885. (partialTotalLength): New variable.
  16886. (downloadLength): New variable.
  16887. (totalLength): New variable.
  16888. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16889. Added log.
  16890. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16891. partialTotalLength, downloadLength, totalLength.
  16892. (calculate): Calculate downloadLength and totalLength.
  16893. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16894. * src/main.cc (addCommand): Changed argument signature.
  16895. (main): Added new variable: args. Added new option "torrent-show-files"
  16896. "no-preallocation". Usage is not updated yet.
  16897. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16898. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16899. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16900. Attempt to add the ability to listing file entries in a .torrent file.
  16901. This feature is not yet complete.
  16902. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16903. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16904. (getName): New function.
  16905. * src/TorrentMan.h (getMultiFileEntries): New function.
  16906. (getName): New function.
  16907. * src/main.cc (main): Use above 2 funtion.
  16908. * Release 0.3.2
  16909. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16910. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16911. (detectMessageFlooding): Updated threshold value.
  16912. (checkLongTimePeerChoking): Updated timeout value.
  16913. (getNewPieceAndSendInterest): Added debug log.
  16914. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16915. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16916. (getPeer): Updated.
  16917. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16918. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16919. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16920. is localhost.
  16921. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16922. * src/PendingMessage.cc (processMessage): Not to send piece message
  16923. if peer is not interested in the pieces localhost has.
  16924. * src/Peer.cc (shouldChoke): Updated.
  16925. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16926. * src/Util.cc (isPowerOf): New function.
  16927. * src/Util.h (isPowerOf): New function.
  16928. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16929. whether or not it is power of 2.
  16930. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16931. Added new class SendMessageQueue that includes PendingMessages and
  16932. RequestSlotMan.
  16933. * src/SendMessageQueue.h: New class.
  16934. * src/SendMessageQueue.cc: New class.
  16935. * src/PendingMessage.h: Added new member variable blockIndex and its
  16936. accessors.
  16937. (createRequestMessage): Updated.
  16938. * src/PendingMessage.cc (createRequestMessage): Updated.
  16939. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16940. SendMessageQueue.
  16941. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16942. (receiveMessage): Updated with SendMessageQueue.
  16943. (deletePendingPieceMessage): Removed.
  16944. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16945. (sendInterest): Updated with SendMessageQueue.
  16946. (createRequestPendingMessage): Updated with SendMessageQueue.
  16947. (sendMessages): Updated with SendMessageQueue.
  16948. (onAbort): Updated with SendMessageQueue.
  16949. (keepAlive): Updated with SendMessageQueue.
  16950. (beforeSocketCheck): Updated SendMessageQueue.
  16951. * src/PeerInteractionCommand (sendMessages): Shuffle
  16952. missingBLockIndexes before using it.
  16953. Added its own timeout for peer connection.
  16954. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16955. setter.
  16956. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16957. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16958. Added setTimeout() call.
  16959. (executeInternal): Added setTimeout() call.
  16960. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16961. Added timeout.
  16962. (isTimeoutDetected): Updated.
  16963. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16964. option.
  16965. Added *simple* message flooding checker.
  16966. * src/PeerInteractionCommand.cc (executeInternal):
  16967. Added detectMessageFlooding() call.
  16968. (detectMessageFlooding): New function.
  16969. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16970. (beforeSocketCheck): Added detectMessageFlooding() call.
  16971. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16972. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16973. Removed deletePendingPieceMessage(), getRequestSlot(),
  16974. deleteRequestSlot(), deleteAllRequestSlot().
  16975. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16976. Added checkLongTimePeerChoking() call.
  16977. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16978. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16979. if duplicate == false.
  16980. The parameter "uploaded" and "downloaded" in the tracker request are
  16981. the size since the client sent the "started" event to the tracker.
  16982. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16983. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16984. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16985. getSessionDownloadedSize(), getSessionUploadedSize().
  16986. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16987. getSessionUploadedSize() instead of getDownloadedSize(),
  16988. getUploadedSize().
  16989. * src/PendingMessage.cc (processMessage): Do not send request message
  16990. if the peer is choking the client.
  16991. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16992. less than interval.
  16993. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16994. * configure.in: Added gnutls support. Added several CPP macros.
  16995. * m4/openssl.m4: Added.
  16996. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16997. readData(), peekData(). Added gnutls support.
  16998. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16999. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17000. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17001. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17002. Instead, added a check for whether setup method has executed
  17003. successfully.
  17004. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17005. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17006. * src/Makefile.am: Updated.
  17007. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17008. using whether OpenSSL or gcrypt, depending on the result of configure
  17009. script.
  17010. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17011. messageDigest.h.
  17012. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17013. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17014. Fixed memory leak.
  17015. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17016. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17017. Removed instantiation of TrackerInitCommand. Instead,
  17018. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17019. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17020. ENABLE_SSL.
  17021. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17022. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17023. If a piece is already acquired by another command, delete the request
  17024. slots for the piece.
  17025. * src/TrackerUpdateCommand.cc (execute):
  17026. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17027. Added a check whether peer list is null.
  17028. Fixed the bug that causes sending completed event to the tracker
  17029. several times.
  17030. * src/TrackerInitCommand.cc (execute):
  17031. Fixed the bug that causes sending completed event to the tracker
  17032. several times.
  17033. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17034. by using messageDigest.h.
  17035. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17036. * PeerConnection.cc: Replaced log message "keep-alive" with
  17037. "keep alive".
  17038. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17039. localhost long time.
  17040. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17041. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17042. at most 100 failure entry from the list. If with duplicate = false,
  17043. MAX_PEER_LIST is not checked.
  17044. * PeerListenCommand.cc: Fixed the argument order of log message.
  17045. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17046. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17047. Added warn().
  17048. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17049. Implemented warn().
  17050. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17051. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17052. * Request.h: Added AFTER_COMPLETED event.
  17053. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17054. instead of downloaded size and progress(%) after download completes.
  17055. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17056. message to the peer if it is interested in what localhost has
  17057. downloaded.
  17058. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17059. destination instead of just renaming it.
  17060. * TorrentMan.cc: Added deleteTempFile().
  17061. * PeerAbstractCommand.cc: do not stop execution after download
  17062. completes. This makes localhost a seeder.
  17063. * Util.{h,cc}: Added fileCopy().
  17064. * PeerListenCommand.cc: do not stop execution after download completes.
  17065. This makes localhost a seeder.
  17066. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17067. Added TorrentMan::deleteTempFile() to torrentHandler.
  17068. Initialized the variable dir as ".".
  17069. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17070. Deleted renameSingleFile().
  17071. Added copySingleFile(), deleteTempFile().
  17072. * DownloadEngine.h: Added virtual function afterEachIteration().
  17073. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17074. in onEndOfRun() to afterEachIteration().
  17075. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17076. true.
  17077. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17078. In rangedFileCopy(), added try-catch block to properly close file
  17079. descriptors.
  17080. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17081. Added afterEachIteration(), isFilenameFixed().
  17082. * Peer.cc: Changed choking strategy.
  17083. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17084. * TrackerInitCommand.cc: Send completed event only once.
  17085. * DownloadEngine.cc: Added a call to afterEachIteration().
  17086. * TrackerUpdateCommand.cc: Do not stop execution after download
  17087. completes.
  17088. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17089. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17090. received from a tracker.
  17091. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17092. Decreased the number of failure peers to delete to 0(just comment out
  17093. the line).
  17094. * Release 0.3.1
  17095. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17096. * PeerInteractionCommand.cc: added a call to
  17097. TorrentMan::unadvertisePiece in Destructor.
  17098. * PeerInteractionCommand.cc: make have message sent immediately
  17099. if the size of pending message queue is zero.
  17100. * TorrentMan.cc: set the maximum size of peer list to 250.
  17101. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17102. to deque.
  17103. * Util.cc: fixed rangedFileCopy.
  17104. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17105. to Constructor. Also, moved digest cleanup to Destructor.
  17106. * MetaFileUtil.cc: fixed memory leak
  17107. * replaced std::vector with std::deque.
  17108. * AbstractCommand.cc: casted timeout value to long long int.
  17109. * ChunkedEncoding.cc: fixed memory leak.
  17110. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17111. * SleepCommand.cc: casted timeout value to long long int.
  17112. * Data.cc: fixed memory leak.
  17113. * Data.cc: fixed toLLInt().
  17114. * BitfieldMan.cc: fixed memory leak.
  17115. * TorrentMan.cc: initialized storeDir to ".".
  17116. * TorrentMan.cc: fixed memory leak.
  17117. * TorrentMan.cc: corrected file paths of splitted files.
  17118. * PeerAbstractCommand.cc: casted timeout to long long int.
  17119. * main.cc: added delete(req) and delete(te->diskWriter).
  17120. * RequestSlot.cc: casted timeout value to long long int.
  17121. * Request.cc: fixed memory leak.
  17122. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17123. have the piece.
  17124. * Peer.{h,cc}: added hasPiece(int index).
  17125. * main.cc: corrected addCommand.
  17126. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17127. * BitTorrent protocol support added.
  17128. * Release 0.3.0
  17129. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17130. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17131. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17132. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17133. decoding did not work properly.
  17134. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17135. * DownloadEngine.h: included sys/time.h
  17136. * DownloadEngine.cc: remove sys/time.h
  17137. * Makefile.am (SUBDIRS): Add intl.
  17138. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17139. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17140. * main.cc: correct help message for --http-auth-scheme.
  17141. * main.cc: changed e-mail address for bug reports.
  17142. * ja.po: added japanese translation.
  17143. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17144. * SimpleLogger.cc: flush log file instead of stdout.
  17145. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17146. * main.cc: Fixed command-line option: max-tries
  17147. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17148. does not equal to seg.sp.
  17149. * DownloadCommand.cc: If EOF is got from the server and the total size
  17150. of file is not zero, then throw DlRetryEx.
  17151. * main.cc: Set the minium value of min-segment-size to 1024.
  17152. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17153. fails because of a regression since 0.2.0 release.
  17154. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17155. * HttpConnection.cc:
  17156. * common.h: defined the user agent name as macro
  17157. * DownloadEngine.{h, cc}:
  17158. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17159. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17160. * main.cc: Download complete/abort message is now generated by main.
  17161. * Makefile.am (SUBDIRS): Add m4.
  17162. (ACLOCAL_AMFLAGS): New variable.
  17163. (EXTRA_DIST): New variable.
  17164. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17165. * gettext: added gettext functionality
  17166. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17167. * AbstractCommand.cc:
  17168. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17169. unregister its cuid from SegmentMan.
  17170. * DownloadEngine.cc: .aria2 file was written when a downloading
  17171. failed with errors.
  17172. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17173. Added "User-Agent" header to CONNECT proxy request.
  17174. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17175. properly.
  17176. * Logger.h:
  17177. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17178. * ChunkedEncoding.cc: Added #include directive for strings.h
  17179. * Release 0.2.1
  17180. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17181. * Util.{h,cc}: added startsWith().
  17182. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17183. Util::endsWith().
  17184. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17185. * common.h: added #include directive of limit.h.
  17186. * DownloadEngine.cc: added #include directive of sys/time.h and
  17187. algorithm.
  17188. * Exception.h: added #include directive of stdio.h.
  17189. * AbstractCommand.h: added #include directive of sys/time.h.
  17190. * DownloadCommand.h: added #include directive of sys/time.h.
  17191. * *.h: added #include directive of common.h to all base classes.
  17192. subclasses' one was removed.
  17193. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17194. does not define these macros.
  17195. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17196. * Release 0.2.0
  17197. * main.cc:
  17198. * HttpInitiateConnectionCommand.{h,cc}:
  17199. * prefs.h:
  17200. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17201. We can now use GET command in http proxy.
  17202. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17203. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17204. that splits slowest segment of SegmentMan::commands vector.
  17205. This is the default split algorithm of aria2.
  17206. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17207. that splits first segment of SegmentMan::commands vector.
  17208. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17209. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17210. * Segment.h:
  17211. * SegmentMan.cc: Added speed field to Segment.h
  17212. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17213. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17214. * message.h: Change file size related %d to %lld.
  17215. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17216. * FtpInitiateConnectionCommand.{h,cc}:
  17217. * FtpNegotiationCommand.{h,cc}:
  17218. * FtpDownloadCommand.{h,cc}:
  17219. * FtpConnection.{h,cc}: Added FTP support
  17220. * SimpleLogger.cc: Log message now includes time information.
  17221. * main.cc: The value of --http-auth-scheme option is chagned from
  17222. 'BASIC' to 'basic'
  17223. * main.cc: Added --timeout command-line option.
  17224. * main.cc: Added --min-segment-size command-line option.
  17225. * main.cc: Added --max-retries command-line option.
  17226. * prefs.h: option string constants are now defined in prefs.h
  17227. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17228. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17229. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17230. with version 0.1.0's one.
  17231. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17232. * configure.in: Added --enable-ssl option to configure script.
  17233. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17234. cannot permit absoluteURI as Request-URI.
  17235. * HttpConnection.cc: Added Referer support.
  17236. * main.cc: Added referer command-line option.
  17237. * main.cc: Added rety-wait command-line option.
  17238. * Exception.h: Fixed formating bug in Exception::setMsg()
  17239. * SocketCore.{h,cc}:
  17240. * Socket.{h, cc}:
  17241. * Request.cc:
  17242. * InitiateConnectionCommandFactory.cc:
  17243. * HttpRequestCommand.cc: Added HTTPS support.
  17244. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17245. for SocketCore.
  17246. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17247. size is wrong
  17248. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17249. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17250. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17251. * Release 0.1.0