ChangeLog 744 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136
  1. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Return const reference.
  3. * src/LpdMessageReceiver.h
  4. * src/LpdReceiveMessageCommand.h
  5. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Removed useless pathJoin
  7. * src/MetalinkParserController.cc
  8. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Fixed the bug that name attribute of file element in Metalink file
  10. is not properly sanitized.
  11. * src/Metalink2RequestGroup.cc
  12. * src/MetalinkParserController.cc
  13. * test/Makefile.am
  14. * test/Metalink2RequestGroupTest.cc
  15. * test/metalink4-dosdirtraversal.xml
  16. 2010-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Fixed the bug that if filename in Content-Disposition header
  18. includes ';', aria2 cuts filename after ';'.
  19. * src/util.cc
  20. * test/UtilTest.cc
  21. 2010-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Release 1.9.2
  23. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Fixed compiler warning on opensolaris.
  25. * src/StringFormat.h
  26. * src/XORCloser.h
  27. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Updated doc
  29. * test/array_funTest.cc
  30. 2010-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Fixed segmentation fault when running unit tests on opensolaris.
  32. * src/SocketCore.cc
  33. * src/bittorrent_helper.cc
  34. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Updated Russian translation. Thanks to all translators.
  36. * po/ru.po
  37. 2010-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Updated po templates.
  39. * po/aria2.pot
  40. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Print warning when trying to add file descriptor >= FD_SET or < 0
  42. to fd_set for other than MinGW32 build. For MinGW32 build, print
  43. warning when trying to add file descriptor to fd_set when it
  44. already contains FD_SET file descriptors.
  45. * src/SelectEventPoll.cc
  46. * src/SocketCore.cc
  47. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  48. Updated doc for --event-poll option.
  49. * doc/aria2c.1.txt
  50. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Bump up version number to 1.9.2
  52. * configure.ac
  53. * doc/aria2c.1.txt
  54. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Defined FD_SETSIZE 1024 for MinGW32.
  56. * src/a2netcompat.h
  57. 2010-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  58. Fixed compile error on the system which lacks poll()
  59. * src/DownloadEngineFactory.cc
  60. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  61. In SocketCore::isReadable()/isWritable(), use poll() if it is
  62. available otherwise use select(). Removed epoll/port from there
  63. because poll() does the good enough job for single socket event
  64. notification.
  65. * src/SocketCore.cc
  66. * src/SocketCore.h
  67. * src/main.cc
  68. 2010-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  69. Added kqueue support. We use poll() for
  70. SocketCore::isReadable()/isWritable() when kqueue is used.
  71. * configure.ac
  72. * src/DownloadEngineFactory.cc
  73. * src/KqueueEventPoll.cc
  74. * src/KqueueEventPoll.h
  75. * src/Makefile.am
  76. * src/Makefile.in
  77. * src/OptionHandlerFactory.cc
  78. * src/main.cc
  79. * src/prefs.cc
  80. * src/prefs.h
  81. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Added missing timespec.h to SRCS
  83. * src/Makefile.am
  84. 2010-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. Fixed the bug that aria2.unpause fails with -s1.
  86. * src/FileEntry.cc
  87. * src/XmlRpcMethodImpl.cc
  88. 2010-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Added missing #ifdef HAVE_PORT_ASSOCIATE
  90. * src/DownloadEngineFactory.cc
  91. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Added opensolaris port_associate() support.
  93. * src/DownloadEngineFactory.cc
  94. * src/Makefile.am
  95. * src/OptionHandlerFactory.cc
  96. * src/PortEventPoll.cc
  97. * src/PortEventPoll.h
  98. * src/SocketCore.cc
  99. * src/SocketCore.h
  100. * src/configure.ac
  101. * src/main.cc
  102. * src/prefs.cc
  103. * src/prefs.h
  104. 2010-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Fixed the bug that _e is passed where e should be passed.
  106. * src/HttpListenCommand.cc
  107. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Increased _epEvents size if necessary.
  109. * src/EpollEventPoll.cc
  110. * src/EpollEventPoll.h
  111. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Removed EventRType template parameter
  113. * src/EpollEventPoll.cc
  114. * src/EpollEventPoll.h
  115. * src/Event.h
  116. * src/PollEventPoll.cc
  117. * src/PollEventPoll.h
  118. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Use Event in EpollEventPoll
  120. * src/EpollEventPoll.cc
  121. * src/EpollEventPoll.h
  122. 2010-04-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Externalized Event, CommandEvent, ADNSEvent, SocketEntry and
  124. AsyncNameResolverEntry class.
  125. * src/Event.h
  126. * src/Makefile.am
  127. * src/PollEventPoll.cc
  128. * src/PollEventPoll.h
  129. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Supported poll() for socket event notification. --event-poll can
  131. take value "poll". Fixed the bug that timeout for
  132. SocketCore::isReadable()/isWritable() is ignored when epoll is
  133. used.
  134. * src/OptionHandlerFactory.cc
  135. * src/a2io.h
  136. * src/prefs.h
  137. * src/SocketCore.h
  138. * src/Makefile.am
  139. * src/main.cc
  140. * src/PollEventPoll.h
  141. * src/SocketCore.cc
  142. * src/DownloadEngineFactory.cc
  143. * src/PollEventPoll.cc
  144. * src/prefs.cc
  145. * configure.ac
  146. 2010-04-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Reverted previous change to DownloadCommand.cc with additional
  148. commentary.
  149. * src/DownloadCommand.cc
  150. 2010-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Fixed compile error with openssl 1.1.0 and mingw32.
  152. * src/AsyncNameResolver.cc
  153. * src/LogFactory.cc
  154. * src/Logger.cc
  155. * src/Logger.h
  156. * src/SocketCore.cc
  157. * src/SocketCore.h
  158. * src/a2netcompat.h
  159. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Release 1.9.1
  161. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Bump up version number to 1.9.0
  163. * doc/aria2c.1.txt
  164. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. Updated Ukrainian, Russian, Simplified Chinese, German and Greek
  166. translation. Thanks to all translators.
  167. * po/de.po
  168. * po/el.po
  169. * po/ru.po
  170. * po/uk.po
  171. * po/zh_CN.po
  172. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Added AC_SEARCH_LIBS for inet_aton on opensolaris. opensolaris
  174. needs -lnsl for inet_aton.
  175. * configure.ac
  176. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Updated po templates.
  178. * po/aria2.pot
  179. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  180. Added aria2.pause, aria2.forcePause, aria2.pauseAll,
  181. aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC
  182. method to aria2rpc
  183. * doc/xmlrpc/aria2rpc
  184. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Use elapsed time between two mach_absolute_time() calls.
  186. Fixed compile error in Mac OS X.
  187. * src/clock_gettime_osx.cc
  188. * src/timespec.h
  189. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Implemented clock_gettime() using mach_absolute_time in Mac OS X.
  191. * configure.ac
  192. * src/Makefile.am
  193. * src/a2time.h
  194. * src/clock_gettime_osx.cc
  195. * src/clock_gettime_osx.h
  196. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Implemented clock_gettime() using timeGetTime in mingw.
  198. * configure.ac
  199. * src/Makefile.am
  200. * src/a2time.h
  201. * src/clock_gettime_mingw.cc
  202. * src/clock_gettime_mingw.h
  203. * src/timespec.h
  204. * test/Makefile.am
  205. 2010-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Ensure that std::ofstream is destroyed before renaming.
  207. * src/SessionSerializer.cc
  208. * src/util.cc
  209. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Fixed the bug that user specified path is escaped using
  211. util::escapePath() where it should not.
  212. * src/DownloadContext.cc
  213. * src/DownloadContext.h
  214. 2010-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. Hold reference to PieceStorage when paused in order to provide
  216. progress information via XML-RPC.
  217. * src/RequestGroup.cc
  218. * src/RequestGroup.h
  219. * src/RequestGroupMan.cc
  220. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Defined struct timespec if it is not available.
  222. * src/a2time.h
  223. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. Added missing serialize_session.meta4 to EXTRA_DIST
  225. * test/Makefile.am
  226. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  227. Fixed compile error without BitTorrent support.
  228. * src/Metalink2RequestGroup.cc
  229. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Fixed compile error on Mac OS X
  231. * src/TimerA2.h
  232. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. Added warning for the system which lacks clock_gettime with
  234. CLOCK_MONOTONIC.
  235. * src/MultiUrlRequestInfo.cc
  236. * src/TimerA2.cc
  237. * src/TimerA2.h
  238. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Removed redundant method call for DownloadEngine.
  240. * src/DownloadCommand.cc
  241. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Fixed the bug that hash check hangs when aria2.pause is issued
  243. while aria2 is checking piece hashes. Fixed the bug that the
  244. download is paused after file allocation completion even if
  245. aria2.pause is issued during file allocation.
  246. * src/CheckIntegrityCommand.cc
  247. * src/FileAllocationCommand.cc
  248. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Added nsl to search-libs for getaddrinfo on opensolaris
  250. * configure.ac
  251. 2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  252. Fixed compile error on opensolaris
  253. * configure.ac
  254. * src/Logger.h
  255. * src/GZipEncoder.h
  256. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Added aria2.pauseAll, aria2.forcePauseAll and aria2.unpauseAll
  258. XML-RPC method.
  259. * doc/aria2c.1.txt
  260. * src/XmlRpcMethodFactory.cc
  261. * src/XmlRpcMethodImpl.cc
  262. * src/XmlRpcMethodImpl.h
  263. * test/XmlRpcMethodTest.cc
  264. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Added aria2.forcePause XML-RPC command.
  266. * src/XmlRpcMethodFactory.cc
  267. * src/XmlRpcMethodImpl.cc
  268. * src/XmlRpcMethodImpl.h
  269. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  270. Use global::wallclock
  271. * src/DHTBucket.cc
  272. * src/DHTMessageTrackerEntry.cc
  273. * src/DHTMessageTrackerEntry.h
  274. * src/DefaultBtInteractive.cc
  275. * src/Peer.cc
  276. * src/PeerAbstractCommand.cc
  277. * src/PeerStat.h
  278. * src/RequestSlot.h
  279. * src/TimeBasedCommand.cc
  280. 2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
  282. usable to prevent from aria2 from being affected by system time
  283. change.
  284. 2010-04-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Added aria2.pause and aria2.unpause XML-RPC method. aria2.pause
  286. pauses the download denoted by gid. gid is of type string. The
  287. status of paused download becomes "paused" and the download is
  288. placed on the first position of waiting queue. As long as the
  289. status is "paused", the download is not started. To change status
  290. to "waiting", use aria2.unpause method. This method returns GID of
  291. paused download. aria2.unpause changes the status of the download
  292. denoted by gid from "paused" to "waiting". This makes the download
  293. eligible to restart. gid is of type string. This method returns
  294. GID of unpaused download.
  295. * doc/aria2c.1.txt
  296. * src/DownloadContext.cc
  297. * src/FileEntry.cc
  298. * src/OptionHandlerFactory.cc
  299. * src/RequestGroup.cc
  300. * src/RequestGroup.h
  301. * src/RequestGroupMan.cc
  302. * src/XmlRpcMethodFactory.cc
  303. * src/XmlRpcMethodImpl.cc
  304. * src/XmlRpcMethodImpl.h
  305. * src/prefs.cc
  306. * src/prefs.h
  307. * src/usage_text.h
  308. 2010-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Added --save-session=FILE option. This option saves
  310. error/unfinished downloads to FILE on exit. You can pass this
  311. output file to aria2c with -i option on restart. Please note that
  312. downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
  313. method are not saved.
  314. * src/BtPostDownloadHandler.cc
  315. * src/DownloadResult.h
  316. * src/Makefile.am
  317. * src/MetadataInfo.cc
  318. * src/MetadataInfo.h
  319. * src/Metalink2RequestGroup.cc
  320. * src/MetalinkPostDownloadHandler.cc
  321. * src/MultiUrlRequestInfo.cc
  322. * src/OptionHandlerFactory.cc
  323. * src/RequestGroup.cc
  324. * src/RequestGroup.h
  325. * src/SessionSerializer.cc
  326. * src/SessionSerializer.h
  327. * src/UTMetadataPostDownloadHandler.cc
  328. * src/download_helper.cc
  329. * src/download_helper.h
  330. * src/prefs.cc
  331. * src/prefs.h
  332. * src/usage_text.h
  333. * test/Makefile.am
  334. * test/SessionSerializerTest.cc
  335. * test/XmlRpcMethodTest.cc
  336. * test/serialize_session.meta4
  337. 2010-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  338. Fixed the bug that FTP data connection is not established via
  339. proxy when --ftp-proxy is defined and --ftp-pasv=true and
  340. --proxy-method=tunnel.
  341. * src/AbstractCommand.cc
  342. * src/AbstractCommand.h
  343. * src/FtpNegotiationCommand.cc
  344. * src/FtpNegotiationCommand.h
  345. * src/InitiateConnectionCommand.cc
  346. 2010-04-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Updated po templates.
  348. * po/aria2.pot
  349. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  350. Bump up version number to 1.9.1
  351. * configure.ac
  352. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Added shutdown and forceShutdown to aria2rpc
  354. * doc/xmlrpc/aria2rpc
  355. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Changed error message.
  357. * src/XmlRpcMethod.cc
  358. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Added bt-tracker-timeout, bt-tracker-connect-timeout,
  360. always-resume, max-resume-failure-tries and http-accept-gzip to -i
  361. list options.
  362. * doc/aria2c.1.txt
  363. * doc/xmlrpc/aria2rpc
  364. * src/download_helper.cc
  365. 2010-04-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. Fixed the bug that web-seed URI is not percent-encoded.
  367. * src/a2functional.h
  368. * src/bittorrent_helper.cc
  369. * test/BittorrentHelperTest.cc
  370. * test/url-list-multiFile.torrent
  371. * test/url-list-singleFileEndsWithSlash.torrent
  372. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  374. These methods, as their name implies, shutdown aria2. These
  375. methods are useful for Windows because it lacks signal mechanism.
  376. * doc/aria2c.1.txt
  377. * src/TimedHaltCommand.cc
  378. * src/XmlRpcMethodFactory.cc
  379. * src/XmlRpcMethodImpl.cc
  380. * src/XmlRpcMethodImpl.h
  381. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Added forceHalt argument to TimedHaltCommand.
  383. Added requestForceHalt() to DownloadEngine.
  384. * src/DownloadEngine.cc
  385. * src/DownloadEngine.h
  386. * src/TimedHaltCommand.cc
  387. * src/TimedHaltCommand.h
  388. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  389. Possible fix for chunked encoding with Content-Length.
  390. * src/HttpResponseCommand.cc
  391. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Don't send "Accept: default, gzip" by default. This is because
  393. some server responds with "Content-Encoding: gzip" for files which
  394. itself is gzipped file and aria2 inflates them. This is a problem
  395. if user don't want to inflate the file. Apparently this is server
  396. configuration error, but I cannot do anything about this. So turn
  397. this off. Added --http-accept-gzip option. If true is given to
  398. this option, aria2 sends 'Accept: deflate, gzip' request header
  399. and inflates response if remote server responds with
  400. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  401. indicates we removed extension tgz hack in order not to inflate
  402. files with tgz extensions.
  403. * doc/aria2c.1.txt
  404. * src/HttpRequest.cc
  405. * src/HttpRequest.h
  406. * src/HttpRequestCommand.cc
  407. * src/HttpResponseCommand.cc
  408. * src/OptionHandlerFactory.cc
  409. * src/prefs.cc
  410. * src/prefs.h
  411. * src/usage_text.h
  412. * test/HttpRequestTest.cc
  413. 2010-04-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Made aria2 not send
  415. "application/metalink4+xml,application/metalink+xml" in Accept
  416. header for web-seeding URIs and tracker request.
  417. * src/Metalink2RequestGroup.cc
  418. * src/TrackerWatcherCommand.cc
  419. * src/download_helper.cc
  420. * src/util.cc
  421. * src/util.h
  422. 2010-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  423. Added download_helper.{cc,h} to SRCS
  424. * src/Makefile.am
  425. * test/Makefile.am
  426. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  427. Added --dht-message-timeout option.
  428. * doc/aria2c.1.txt
  429. * src/DHTConstants.h
  430. * src/DHTMessageDispatcherImpl.cc
  431. * src/DHTMessageDispatcherImpl.h
  432. * src/DHTMessageTracker.cc
  433. * src/DHTMessageTracker.h
  434. * src/DHTReplaceNodeTask.h
  435. * src/DHTSetup.cc
  436. * src/DHTTaskFactoryImpl.cc
  437. * src/DHTTaskFactoryImpl.h
  438. * src/OptionHandlerFactory.cc
  439. * src/prefs.cc
  440. * src/prefs.h
  441. * src/usage_text.h
  442. * test/DHTMessageTrackerTest.cc
  443. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  445. option.
  446. * doc/aria2c.1.txt
  447. * src/OptionHandlerFactory.cc
  448. * src/TrackerWatcherCommand.cc
  449. * src/prefs.cc
  450. * src/prefs.h
  451. * src/usage_text.h
  452. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  453. Documented that specifying --seed-time=0 disables seeding after
  454. download completed.
  455. * doc/aria2c.1.txt
  456. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  457. Code cleanup
  458. * src/BtSetup.cc
  459. 2010-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Drop connection if same Peer ID has been already seen.
  461. * src/DefaultBtInteractive.cc
  462. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  463. Fixed the bug that waiting download unintentionally starts when
  464. URIs are added to it using aria2.changeUri XML-RPC method. This
  465. also fixes the bug that causes segmentation fault when adding URIs
  466. to waiting download, which is a regression introduced by the
  467. previous change made to src/XmlRpcMethodImpl.cc
  468. * src/XmlRpcMethodImpl.cc
  469. 2010-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Fixed compile error with g++-4.4 on FreeBSD.
  471. * src/util.h
  472. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  473. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  474. is not used immediately if there is no URIs remaining before
  475. calling aria2.changeUri and the number of connection is less than
  476. the value in -s(or -C for Metalink downloads).
  477. * src/XmlRpcMethodImpl.cc
  478. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Documented --always-resume and --max-resume-failure-tries option
  480. and exit status 8 in man page. Fixed typo.
  481. * doc/aria2c.1.txt
  482. * src/OptionHandlerFactory.cc
  483. 2010-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Added --always-resume and --max-resume-failure-tries option. If
  485. --always-resume=false is given, when all given URIs does not
  486. support resume or aria2 encounters N URIs which does not support
  487. resume
  488. (N is the value specified using --max-resume-failure-tries
  489. option), aria2 download file from scratch. The default behavior
  490. is --always-resume=true, which means if all URIs do not support
  491. resume, download fails. I think this is OK because user normally
  492. don't like to see that partially downloaded file is
  493. overwritten(this is particularly true if file size is big). This
  494. option is useful when aria2 is used as download backend and
  495. graceful falling back to overwritten behavior is preferable.
  496. Added exit status value 8, which means download failed because
  497. server did not support resume.
  498. * src/AbstractCommand.cc
  499. * src/DefaultPieceStorage.cc
  500. * src/DownloadCommand.cc
  501. * src/DownloadResultCode.h
  502. * src/FileEntry.h
  503. * src/FtpNegotiationCommand.cc
  504. * src/HttpResponse.cc
  505. * src/HttpResponseCommand.cc
  506. * src/OptionHandlerFactory.cc
  507. * src/RequestGroup.cc
  508. * src/RequestGroup.h
  509. * src/SegmentMan.cc
  510. * src/SegmentMan.h
  511. * src/prefs.cc
  512. * src/prefs.h
  513. * src/usage_text.h
  514. * test/DefaultPieceStorageTest.cc
  515. * test/SegmentManTest.cc
  516. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Added --remove-control-file option to -i list options.
  518. * doc/aria2c.1.txt
  519. * doc/xmlrpc/aria2rpc
  520. * src/download_helper.cc
  521. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Added --remove-control-file option. This option removes control
  523. file(*.aria2 file) before download. Using with
  524. --allow-overwrite=true, download always starts from scratch. This
  525. will be useful for users behind proxy server which disables
  526. resume. For such proxy user, -C1 is also recommended for Metalink
  527. downloads to avoid establishing unnecessary connections.
  528. * doc/aria2c.1.txt
  529. * src/OptionHandlerFactory.cc
  530. * src/RequestGroup.cc
  531. * src/prefs.cc
  532. * src/prefs.h
  533. * src/usage_text.h
  534. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  536. size of array at compile time.
  537. * src/array_fun.h
  538. * test/BitfieldManTest.cc
  539. * test/BtPortMessageTest.cc
  540. * test/DHTRoutingTableDeserializerTest.cc
  541. * test/DHTRoutingTableSerializerTest.cc
  542. * test/DownloadHelperTest.cc
  543. * test/LongestSequencePieceSelectorTest.cc
  544. * test/MultiDiskAdaptorTest.cc
  545. * test/OptionParserTest.cc
  546. * test/PriorityPieceSelectorTest.cc
  547. * test/array_funTest.cc
  548. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. Added vbegin() and vend() for fixed sized array.
  550. * src/DownloadHandlerConstants.cc
  551. * src/FeatureConfig.cc
  552. * src/OptionHandlerFactory.cc
  553. * src/ServerStat.cc
  554. * src/TimeA2.cc
  555. * src/XmlRpcMethod.cc
  556. * src/array_fun.h
  557. * src/download_helper.cc
  558. * src/messageDigest.cc
  559. * src/util.cc
  560. * test/BittorrentHelperTest.cc
  561. * test/DHTRoutingTableDeserializerTest.cc
  562. * test/DHTRoutingTableSerializerTest.cc
  563. * test/DefaultBtAnnounceTest.cc
  564. * test/DefaultBtProgressInfoFileTest.cc
  565. * test/DownloadContextTest.cc
  566. * test/DownloadHelperTest.cc
  567. * test/FeatureConfigTest.cc
  568. * test/FeedbackURISelectorTest.cc
  569. * test/HttpRequestTest.cc
  570. * test/InOrderURISelectorTest.cc
  571. * test/MSEHandshakeTest.cc
  572. * test/MultiDiskAdaptorTest.cc
  573. * test/MultiFileAllocationIteratorTest.cc
  574. * test/PriorityPieceSelectorTest.cc
  575. * test/RequestGroupManTest.cc
  576. * test/UtilTest.cc
  577. * test/XmlRpcMethodTest.cc
  578. * test/a2algoTest.cc
  579. * test/array_funTest.cc
  580. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  581. Simplified code using lastByteMask
  582. * src/BitfieldMan.cc
  583. * src/PieceStatMan.cc
  584. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Rewritten lastByteMask
  586. * src/bitfield.h
  587. 2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Redefined the maximum length of buffer used for HTTP header.
  589. * src/HttpHeaderProcessor.cc
  590. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Code cleanup
  592. * src/SleepCommand.cc
  593. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  594. Do exact match if IP address is specified in --no-proxy.
  595. * src/AbstractCommand.cc
  596. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Fixed the bug that socket is added to EventPoll object twice. This
  598. is because derived class FtpFinishDownloadCommand adds socket to
  599. EventPoll object while base class AbstractCommand does that
  600. already.
  601. * src/FtpFinishDownloadCommand.cc
  602. * src/FtpFinishDownloadCommand.h
  603. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Defined gid_t as int64_t.
  605. * src/BtDependency.cc
  606. * src/BtStopDownloadCommand.cc
  607. * src/FtpNegotiationCommand.cc
  608. * src/HttpResponseCommand.cc
  609. * src/RequestGroup.cc
  610. * src/RequestGroup.h
  611. * src/RequestGroupMan.cc
  612. * src/TrackerWatcherCommand.cc
  613. * src/XmlRpcMethodImpl.cc
  614. * src/message.h
  615. * test/XmlRpcMethodTest.cc
  616. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  618. translatable texts because it is used in log and debugging
  619. purpose.
  620. * src/AbstractCommand.cc
  621. * src/ActivePeerConnectionCommand.cc
  622. * src/BtPieceMessage.cc
  623. * src/CUIDCounter.h
  624. * src/CheckIntegrityCommand.cc
  625. * src/CheckIntegrityDispatcherCommand.cc
  626. * src/Command.h
  627. * src/CreateRequestCommand.cc
  628. * src/DHTEntryPointNameResolveCommand.cc
  629. * src/DefaultBtInteractive.cc
  630. * src/DefaultBtMessageDispatcher.cc
  631. * src/DownloadCommand.cc
  632. * src/FileAllocationCommand.cc
  633. * src/FileAllocationDispatcherCommand.cc
  634. * src/FtpConnection.cc
  635. * src/FtpInitiateConnectionCommand.cc
  636. * src/FtpNegotiationCommand.cc
  637. * src/HttpConnection.cc
  638. * src/HttpInitiateConnectionCommand.cc
  639. * src/HttpListenCommand.cc
  640. * src/HttpResponse.cc
  641. * src/HttpServerBodyCommand.cc
  642. * src/HttpServerCommand.cc
  643. * src/HttpServerResponseCommand.cc
  644. * src/InitiateConnectionCommand.cc
  645. * src/InitiatorMSEHandshakeCommand.cc
  646. * src/MSEHandshake.cc
  647. * src/PeerAbstractCommand.cc
  648. * src/PeerConnection.cc
  649. * src/PeerInitiateConnectionCommand.cc
  650. * src/PeerInteractionCommand.cc
  651. * src/PeerListenCommand.cc
  652. * src/PeerReceiveHandshakeCommand.cc
  653. * src/SegmentMan.cc
  654. * src/SimpleBtMessage.cc
  655. * src/TrackerWatcherCommand.cc
  656. * src/message.h
  657. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Use gid_t type for gid.
  659. * src/BtRegistry.cc
  660. * src/BtRegistry.h
  661. * src/DownloadResult.h
  662. * src/RequestGroup.cc
  663. * src/RequestGroup.h
  664. * src/RequestGroupMan.cc
  665. * src/RequestGroupMan.h
  666. * src/XmlRpcMethodImpl.cc
  667. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Use cuid_t type for cuid.
  669. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Added v key in DHT message. aria2's DHT version is independent of
  671. the package version and we defined it as 1 at the moment. It is
  672. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  673. scheme is "A2"+2bytes DHT version number in network byte order.
  674. * src/DHTAbstractMessage.cc
  675. * src/DHTConstants.h
  676. * src/DHTMessage.cc
  677. * src/DHTMessage.h
  678. * src/DHTMessageFactoryImpl.cc
  679. * src/DHTQueryMessage.cc
  680. * src/DHTResponseMessage.cc
  681. * src/util.h
  682. * test/DHTAnnouncePeerMessageTest.cc
  683. * test/DHTAnnouncePeerReplyMessageTest.cc
  684. * test/DHTFindNodeMessageTest.cc
  685. * test/DHTFindNodeReplyMessageTest.cc
  686. * test/DHTGetPeersMessageTest.cc
  687. * test/DHTGetPeersReplyMessageTest.cc
  688. * test/DHTPingMessageTest.cc
  689. * test/DHTPingReplyMessageTest.cc
  690. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  692. method response is integer, while manual says it is string. When
  693. peer's port is not listening port, set '0' to port in
  694. aria2.getPeers response.
  695. * src/XmlRpcMethodImpl.cc
  696. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. Lines starting "#" in -i list are treated as comments.
  698. Example:
  699. # this is comment
  700. http://example.org/file
  701. http://example.org/file2
  702. dir=/tmp
  703. # another comment
  704. out=myfile
  705. * doc/aria2c.1.txt
  706. * src/UriListParser.cc
  707. * test/filelist1.txt
  708. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. Accept IPv4 network address with CIDR block in --no-proxy option
  710. and no_proxy environment variable. Current implementation does
  711. not resolve hostname in URI to compare network address. So it is
  712. only effecive if URI has numeric IP addresses.
  713. * doc/aria2c.1.txt
  714. * src/AbstractCommand.cc
  715. * src/OptionHandlerFactory.cc
  716. * src/bitfield.h
  717. * src/usage_text.h
  718. * src/util.cc
  719. * src/util.h
  720. * test/UtilTest.cc
  721. * test/bitfieldTest.cc
  722. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Reduced interval for metadatagetmode to quickly gather metadata.
  724. * src/BtSetup.cc
  725. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Release 1.9.0
  727. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Updated po templates.
  729. * po/aria2.pot
  730. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Updated doc.
  732. * doc/aria2c.1.txt
  733. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  734. Documented about Metalink4 and LPD in README
  735. * RADME
  736. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Few adjustment for timeouts in DHT. DHT message timeout is changed
  738. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  739. it adds another 5 seconds in each retry.
  740. * src/DHTConstants.h
  741. * src/DHTGetPeersCommand.cc
  742. * src/DHTGetPeersCommand.h
  743. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Changed log level from error to info for DHT message send error.
  745. * src/DHTMessageDispatcherImpl.cc
  746. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Inspect all xt in magnet to find urn:btih.
  748. * src/bittorrent_helper.cc
  749. * test/BittorrentHelperTest.cc
  750. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Use global option for DHTSetup.
  752. * src/DHTSetup.cc
  753. * src/DHTSetup.h
  754. * src/RequestGroup.cc
  755. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Added bt-enable-lpt, reuse-uri
  757. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  758. options.
  759. * doc/aria2c.1.txt
  760. * doc/xmlrpc/aria2rpc
  761. * src/download_helper.cc
  762. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  764. * src/BtSetup.cc
  765. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Resurrected --http-proxy-user and --http-proxy-passwd option.
  767. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  768. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  769. * doc/aria2c.1.txt
  770. * src/OptionHandlerFactory.cc
  771. * src/OptionHandlerImpl.h
  772. * src/prefs.cc
  773. * src/prefs.h
  774. * src/usage_text.h
  775. * test/OptionHandlerTest.cc
  776. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  777. Updated Russian and Simplified Chinese translation. Thanks to all
  778. translators.
  779. * po/ru.po
  780. * po/zh_CN.po
  781. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Updated po templates.
  783. * po/aria2.pot
  784. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  785. For LPD sockets, bind IN_ADDRANY because binding multicast address
  786. fails under Windows.
  787. * src/LpdMessageReceiver.cc
  788. * test/LpdMessageDispatcherTest.cc
  789. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Fixed the bug that error message is not propagated to Exception.
  791. * src/SocketCore.cc
  792. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. Documented --bt-lpd-interface option in man page.
  794. * doc/aria2c.1.txt
  795. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Bump up version number to 1.9.0
  797. * configure.ac
  798. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Fixed the bug that FillRequestGroupCommand is not invoked when
  800. RequestGroupMan::createInitialCommand() creates no Command object.
  801. * src/FillRequestGroupCommand.cc
  802. * src/RequestGroupMan.cc
  803. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Added debug logs.
  805. * src/FileEntry.cc
  806. * src/SegmentMan.cc
  807. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Fixed unit test error with mingw32 build.
  809. * test/LpdMessageReceiverTest.cc
  810. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Updated automake-1.11.1
  812. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Fixed compile error and unit test error without openssl and
  814. gnutls.
  815. * src/MetalinkParserController.cc
  816. * test/MetalinkProcessorTest.cc
  817. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Fixed unitest fails if openssl doesn't support sha-256.
  819. * src/MetalinkParserStateV4Impl.cc
  820. * test/MetalinkProcessorTest.cc
  821. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Wait until message arrives(again)
  823. * test/LpdMessageReceiverTest.cc
  824. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Added missing wallclock.h to SRCS.
  826. * src/Makefile.am
  827. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Fixed compile error with --disable-bittorrent
  829. * test/Metalink2RequestGroupTest.cc
  830. * test/MetalinkParserControllerTest.cc
  831. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Added --reuse-uri option. This option has existed quite long, but
  833. been hidden.
  834. * doc/aria2c.1.txt
  835. * src/OptionHandlerFactory.cc
  836. * src/usage_text.h
  837. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Ignore filename parameter if it contains directory traversal
  839. directives.
  840. * src/util.cc
  841. * test/UtilTest.cc
  842. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. urldecode -> percentDecode
  844. * src/FtpConnection.cc
  845. * src/FtpNegotiationCommand.cc
  846. * src/HttpResponse.cc
  847. * src/Request.cc
  848. * src/magnet.cc
  849. * src/util.cc
  850. * src/util.h
  851. * test/UtilTest.cc
  852. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. urlencode -> percentEncode,
  854. torrentUrlencode -> torrentPercentEncode
  855. * src/BtHandshakeMessage.cc
  856. * src/BtHandshakeMessageValidator.h
  857. * src/DHTMessageFactoryImpl.cc
  858. * src/DefaultBtAnnounce.cc
  859. * src/HandshakeExtensionMessage.cc
  860. * src/HttpRequest.cc
  861. * src/XmlRpcMethodImpl.cc
  862. * src/bittorrent_helper.cc
  863. * src/util.cc
  864. * src/util.h
  865. * test/DHTAnnouncePeerMessageTest.cc
  866. * test/DHTGetPeersMessageTest.cc
  867. * test/DHTGetPeersReplyMessageTest.cc
  868. * test/UTPexExtensionMessageTest.cc
  869. * test/UtilTest.cc
  870. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  871. Fixed the bug that filename is percent encoded where it must be
  872. percent decoded in sendMdtm().
  873. * src/FtpConnection.cc
  874. * test/FtpConnectionTest.cc
  875. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  876. url -> uri in Request class.
  877. * src/AbstractCommand.cc
  878. * src/AdaptiveURISelector.cc
  879. * src/DefaultBtAnnounce.cc
  880. * src/FeedbackURISelector.cc
  881. * src/FileEntry.cc
  882. * src/FileEntry.h
  883. * src/HttpRequest.h
  884. * src/HttpResponse.cc
  885. * src/InitiateConnectionCommandFactory.cc
  886. * src/Metalink2RequestGroup.cc
  887. * src/OptionHandlerImpl.h
  888. * src/ProtocolDetector.cc
  889. * src/Request.cc
  890. * src/Request.h
  891. * src/XmlRpcMethodImpl.cc
  892. * test/AuthConfigFactoryTest.cc
  893. * test/FtpConnectionTest.cc
  894. * test/HttpRequestTest.cc
  895. * test/HttpResponseTest.cc
  896. * test/RequestTest.cc
  897. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Added getServers XML-RPC method.
  899. * doc/aria2c.1.txt
  900. * src/FileEntry.h
  901. * src/XmlRpcMethodFactory.cc
  902. * src/XmlRpcMethodImpl.cc
  903. * src/XmlRpcMethodImpl.h
  904. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  905. Pool request when download finished.
  906. * src/DownloadCommand.cc
  907. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  908. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  909. 1-based.
  910. * doc/aria2c.1.txt
  911. * src/XmlRpcMethodImpl.cc
  912. * test/XmlRpcMethodTest.cc
  913. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Call RequestGroupMan::requestQueueCheck() when
  915. max-concurrent-downloads option is changed or new downloads are
  916. added/inserted into reserved list.
  917. * src/RequestGroupMan.cc
  918. * src/XmlRpcMethodImpl.cc
  919. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Added aria2.forceRemove XML-RPC method.
  921. * doc/aria2c.1.txt
  922. * src/XmlRpcMethodFactory.cc
  923. * src/XmlRpcMethodImpl.cc
  924. * src/XmlRpcMethodImpl.h
  925. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Added debug log.
  927. * src/AbstractCommand.cc
  928. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Create CreateRequestCommand to the number of -s/-C when URIs are
  930. added by XML-RPC.
  931. * src/RequestGroup.cc
  932. * src/RequestGroup.h
  933. * src/XmlRpcMethodImpl.cc
  934. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  935. Added 'status' key to the response of getUri XML-RPC method.
  936. * doc/aria2c.1.txt
  937. * src/XmlRpcMethodImpl.cc
  938. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Replaced Time::reset() call with assigning of global::wallclock.
  940. * src/BtLeecherStateChoke.cc
  941. * src/BtSeederStateChoke.cc
  942. * src/PeerSessionResource.cc
  943. * src/RequestSlot.cc
  944. * src/ServerStat.cc
  945. * src/SpeedCalc.cc
  946. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Added changeUri XML-RPC method. This method removes/adds URIs
  948. dynamically.
  949. * doc/aria2c.1.txt
  950. * src/AbstractCommand.cc
  951. * src/DownloadContext.cc
  952. * src/DownloadContext.h
  953. * src/FileEntry.cc
  954. * src/FileEntry.h
  955. * src/Request.cc
  956. * src/Request.h
  957. * src/RequestGroup.cc
  958. * src/RequestGroupMan.cc
  959. * src/XmlRpcMethodFactory.cc
  960. * src/XmlRpcMethodImpl.cc
  961. * src/XmlRpcMethodImpl.h
  962. * test/FileEntryTest.cc
  963. * test/XmlRpcMethodTest.cc
  964. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Rewritten copy ctor of RequestSlot to use initialization list.
  966. * src/RequestSlot.h
  967. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Added Time global::wallclock to cache "current time" to reduce the
  969. call gettimeofday(). Global variables are now in namespace global.
  970. * src/AbstractCommand.cc
  971. * src/ActivePeerConnectionCommand.cc
  972. * src/AdaptiveURISelector.cc
  973. * src/BtLeecherStateChoke.cc
  974. * src/BtLeecherStateChoke.h
  975. * src/BtSeederStateChoke.cc
  976. * src/BtSeederStateChoke.h
  977. * src/BtStopDownloadCommand.cc
  978. * src/ConsoleStatCalc.cc
  979. * src/DHTBucket.cc
  980. * src/DHTGetPeersCommand.cc
  981. * src/DHTMessageTrackerEntry.cc
  982. * src/DHTNode.cc
  983. * src/DHTPeerAnnounceEntry.cc
  984. * src/DHTPeerAnnounceStorage.cc
  985. * src/DHTSetup.cc
  986. * src/DefaultBtAnnounce.cc
  987. * src/DefaultBtInteractive.cc
  988. * src/DefaultBtMessageDispatcher.cc
  989. * src/DefaultPeerStorage.cc
  990. * src/DefaultPieceStorage.cc
  991. * src/DownloadCommand.cc
  992. * src/DownloadEngine.cc
  993. * src/FileEntry.cc
  994. * src/HttpServerBodyCommand.cc
  995. * src/HttpServerCommand.cc
  996. * src/HttpServerResponseCommand.cc
  997. * src/LpdMessageDispatcher.cc
  998. * src/MultiUrlRequestInfo.cc
  999. * src/Peer.cc
  1000. * src/Peer.h
  1001. * src/PeerAbstractCommand.cc
  1002. * src/PeerStat.h
  1003. * src/RequestSlot.cc
  1004. * src/RequestSlot.h
  1005. * src/SegmentMan.cc
  1006. * src/ServerStatMan.cc
  1007. * src/SleepCommand.cc
  1008. * src/SpeedCalc.cc
  1009. * src/SpeedCalc.h
  1010. * src/TimeA2.cc
  1011. * src/TimeA2.h
  1012. * src/TimeBasedCommand.cc
  1013. * src/TimeSeedCriteria.h
  1014. * src/UTMetadataRequestTracker.h
  1015. * src/UTPexExtensionMessage.cc
  1016. * src/wallclock.h
  1017. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Fixed the bug that util::itos(INT64_MIN) fails.
  1019. * src/util.cc
  1020. * src/util.h
  1021. * test/UtilTest.cc
  1022. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Fixed memory leak in SocketBuffer when _bufq is not empty when
  1024. SocketBuffer is deleted. Added BufEntry constructor and deleted
  1025. static factory functions.
  1026. * src/SocketBuffer.cc
  1027. * src/SocketBuffer.h
  1028. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  1030. queue maintenance is requested by RequestGroup to avoid to call
  1031. the function unnecessarily.
  1032. * src/FillRequestGroupCommand.cc
  1033. * src/RequestGroup.cc
  1034. * src/RequestGroup.h
  1035. * src/RequestGroupMan.cc
  1036. * src/RequestGroupMan.h
  1037. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Don't use hash for Peer::id. Simple concatenation of ip address
  1039. and port is enough.
  1040. * src/Peer.cc
  1041. * test/PeerTest.cc
  1042. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1043. Enclosed log of DHTMessage::toString() with Logger::info().
  1044. * src/DHTMessageDispatcherImpl.cc
  1045. * src/DHTMessageReceiver.cc
  1046. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Rewritten util::toHex().
  1048. * src/util.cc
  1049. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Removed SocketBuffer::feedAndSend(). Renamed
  1051. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  1052. * src/FtpConnection.cc
  1053. * src/HttpConnection.cc
  1054. * src/HttpServer.cc
  1055. * src/MSEHandshake.cc
  1056. * src/PeerConnection.cc
  1057. * src/SocketBuffer.cc
  1058. * src/SocketBuffer.h
  1059. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Removed unused PeerConnection::sendMessage(). Updated doc.
  1061. * src/PeerConnection.cc
  1062. * src/PeerConnection.h
  1063. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Reduced copying/std::string instantiation in sending/receiving
  1065. BitTorrent messages.
  1066. * src/BtBitfieldMessage.cc
  1067. * src/BtBitfieldMessage.h
  1068. * src/BtExtendedMessage.cc
  1069. * src/BtExtendedMessage.h
  1070. * src/BtHandshakeMessage.cc
  1071. * src/BtHandshakeMessage.h
  1072. * src/BtKeepAliveMessage.cc
  1073. * src/BtKeepAliveMessage.h
  1074. * src/BtPieceMessage.cc
  1075. * src/BtPieceMessage.h
  1076. * src/BtPortMessage.cc
  1077. * src/BtPortMessage.h
  1078. * src/BtUnchokeMessage.h
  1079. * src/DefaultBtMessageReceiver.cc
  1080. * src/IndexBtMessage.cc
  1081. * src/IndexBtMessage.h
  1082. * src/PeerConnection.cc
  1083. * src/PeerConnection.h
  1084. * src/RangeBtMessage.cc
  1085. * src/RangeBtMessage.h
  1086. * src/SimpleBtMessage.cc
  1087. * src/SimpleBtMessage.h
  1088. * src/SocketBuffer.cc
  1089. * src/SocketBuffer.h
  1090. * src/ZeroBtMessage.cc
  1091. * src/ZeroBtMessage.h
  1092. * test/BtAllowedFastMessageTest.cc
  1093. * test/BtBitfieldMessageTest.cc
  1094. * test/BtCancelMessageTest.cc
  1095. * test/BtChokeMessageTest.cc
  1096. * test/BtExtendedMessageTest.cc
  1097. * test/BtHandshakeMessageTest.cc
  1098. * test/BtHaveAllMessageTest.cc
  1099. * test/BtHaveMessageTest.cc
  1100. * test/BtHaveNoneMessageTest.cc
  1101. * test/BtInterestedMessageTest.cc
  1102. * test/BtKeepAliveMessageTest.cc
  1103. * test/BtNotInterestedMessageTest.cc
  1104. * test/BtPieceMessageTest.cc
  1105. * test/BtPortMessageTest.cc
  1106. * test/BtRejectMessageTest.cc
  1107. * test/BtRequestMessageTest.cc
  1108. * test/BtSuggestPieceMessageTest.cc
  1109. * test/BtUnchokeMessageTest.cc
  1110. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Rewritten SocketBuffer. Old implementation uses single std::string
  1112. to store data and erase sent data, which is costly. New
  1113. implementation uses deque to hold each data to avoid to mutate
  1114. string.
  1115. * src/SocketBuffer.cc
  1116. * src/SocketBuffer.h
  1117. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. Removed unused FileEntry::extracted
  1119. * src/FileEntry.cc
  1120. * src/FileEntry.h
  1121. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Wait until data arrives.
  1123. * test/LpdMessageReceiverTest.cc
  1124. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. In Metalink4, if size element contains invalid size, discard whole
  1126. document. Added strict hash value check for metalink3/4.
  1127. * src/MetalinkParserController.cc
  1128. * src/MetalinkParserStateMachine.cc
  1129. * src/MetalinkParserStateMachine.h
  1130. * src/MetalinkParserStateV3Impl.cc
  1131. * src/MetalinkParserStateV4Impl.cc
  1132. * src/util.cc
  1133. * src/util.h
  1134. * test/MetalinkParserControllerTest.cc
  1135. * test/MetalinkProcessorTest.cc
  1136. * test/metalink4.xml
  1137. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1138. Added strict attribute validation for metalink4. When
  1139. specification violation is found, discard the whole document.
  1140. * src/ExpatMetalinkProcessor.cc
  1141. * src/MetalinkParserStateMachine.cc
  1142. * src/MetalinkParserStateMachine.h
  1143. * src/MetalinkParserStateV4Impl.cc
  1144. * src/XML2SAXMetalinkProcessor.cc
  1145. * test/Makefile.am
  1146. * test/MetalinkProcessorTest.cc
  1147. * test/metalink4-attrs.xml: Removed
  1148. * test/metalink4-dirtraversal.xml: Removed
  1149. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Added test for Metaurl transaction.
  1151. * src/MetalinkParserController.cc
  1152. * test/MetalinkParserControllerTest.cc
  1153. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Avoid costly BtMessage::toString() if info level log is not
  1155. required.
  1156. * src/DefaultBtInteractive.cc
  1157. * src/Logger.h
  1158. * src/SimpleBtMessage.cc
  1159. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1160. Reserved vector elements based on profiler results.
  1161. * src/DefaultBtInteractive.cc
  1162. * src/DefaultBtProgressInfoFile.cc
  1163. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Avoid to calculate end() iterator in each loop. std::deque is
  1165. particularly slow. Make sure that recalculate end iterator if
  1166. element is erased during loop.
  1167. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1168. Use vector instead of deque for containers which is used for
  1169. mostly read-only purpose.
  1170. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1171. Fixed typo
  1172. * test/Makefile.am
  1173. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1174. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  1175. * test/Makefile.am
  1176. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Small optimization: In updateTransferStatFor(), don't search peer
  1178. ID twice.
  1179. * src/DefaultPeerStorage.cc
  1180. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Use vector instead of deque for MetalinkEntry and MetalinkResource
  1182. objects.
  1183. * src/Metalink2RequestGroup.cc
  1184. * src/Metalink2RequestGroup.h
  1185. * src/MetalinkEntry.cc
  1186. * src/MetalinkEntry.h
  1187. * src/MetalinkHelper.cc
  1188. * src/MetalinkHelper.h
  1189. * src/Metalinker.cc
  1190. * src/Metalinker.h
  1191. * src/main.cc
  1192. * test/MetalinkEntryTest.cc
  1193. * test/MetalinkHelperTest.cc
  1194. * test/MetalinkProcessorTest.cc
  1195. * test/MetalinkerTest.cc
  1196. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Fixed the bug that grouped FileEntry objects are not used but
  1198. instead all FileEntry objects are used for each metaurl group.
  1199. * src/Metalink2RequestGroup.cc
  1200. * test/Metalink2RequestGroupTest.cc
  1201. * test/metalink4-groupbymetaurl.xml
  1202. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Use vector instead of deque for ChunkChecksum.
  1204. * src/ChunkChecksum.h
  1205. * src/MetalinkParserController.cc
  1206. * src/MetalinkParserController.h
  1207. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  1209. algorithm in Metalink properly
  1210. * src/MetalinkParserController.cc
  1211. * src/MetalinkParserController.h
  1212. * src/messageDigest.cc
  1213. * src/messageDigest.h
  1214. * test/MetalinkProcessorTest.cc
  1215. * test/metalink4.xml
  1216. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Replaced null or control characters in file path with '_'. For
  1218. MinGW32 build, additional characters which is not allowed in
  1219. Windows kernel are also replaced. util::detectDirTraversal() now
  1220. returns true if given string contains null or control characters.
  1221. * src/DownloadContext.cc
  1222. * src/DownloadContext.h
  1223. * src/Metalink2RequestGroup.cc
  1224. * src/MetalinkParserController.cc
  1225. * src/bittorrent_helper.cc
  1226. * src/util.cc
  1227. * src/util.h
  1228. * test/UtilTest.cc
  1229. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Discard metalink:file if its name attribute is empty string.
  1231. Removed FileEntry instantiation in
  1232. MetalinkParserController::setFileLengthOfEntry()
  1233. * src/MetalinkParserController.cc
  1234. * src/MetalinkParserStateV3Impl.cc
  1235. * src/MetalinkParserStateV4Impl.cc
  1236. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Discard torrent file if path data in it contains directory
  1238. traversal directives. Discard metalink:file element in Metalink3
  1239. format if its name attribute contains directory traversal
  1240. directives. Ignore name attribute of metalink:signature element
  1241. in Metalink3 format if it contains directory traversal directives.
  1242. * src/MetalinkParserStateV3Impl.cc
  1243. * src/bittorrent_helper.cc
  1244. * src/message.h
  1245. * test/BittorrentHelperTest.cc
  1246. * test/Makefile.am
  1247. * test/MetalinkProcessorTest.cc
  1248. * test/metalink3-dirtraversal.xml
  1249. * test/test.xml
  1250. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. Removed useless comment
  1252. * src/MetalinkParserStateV4Impl.cc
  1253. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1254. Supported name attribute of metalink::metaurl element and
  1255. multi-file torrent with Metalink4. Files with same metaurl are
  1256. grouped and downloaded in one RequestGroup.
  1257. * src/BtDependency.cc
  1258. * src/FileEntry.h
  1259. * src/Metalink2RequestGroup.cc
  1260. * src/Metalink2RequestGroup.h
  1261. * src/MetalinkEntry.cc
  1262. * src/MetalinkEntry.h
  1263. * src/MetalinkHelper.cc
  1264. * src/MetalinkHelper.h
  1265. * src/MetalinkMetaurl.cc
  1266. * src/MetalinkMetaurl.h
  1267. * src/MetalinkParserController.cc
  1268. * src/RequestGroup.cc
  1269. * src/RequestGroup.h
  1270. * src/bittorrent_helper.cc
  1271. * test/BittorrentHelperTest.cc
  1272. * test/BtDependencyTest.cc
  1273. * test/MetalinkHelperTest.cc
  1274. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  1276. * src/MetalinkMetaurl.h
  1277. * src/MetalinkParserController.cc
  1278. * src/MetalinkParserController.h
  1279. * src/MetalinkParserStateMachine.cc
  1280. * src/MetalinkParserStateMachine.h
  1281. * src/MetalinkParserStateV4Impl.cc
  1282. * test/MetalinkProcessorTest.cc
  1283. * test/metalink4-dirtraversal.xml
  1284. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  1286. element.
  1287. * src/Makefile.am
  1288. * src/Metalink2RequestGroup.cc
  1289. * src/MetalinkEntry.cc
  1290. * src/MetalinkEntry.h
  1291. * src/MetalinkMetaurl.cc
  1292. * src/MetalinkMetaurl.h
  1293. * src/MetalinkParserController.cc
  1294. * src/MetalinkParserController.h
  1295. * src/MetalinkParserStateMachine.cc
  1296. * src/MetalinkParserStateMachine.h
  1297. * src/MetalinkParserStateV4Impl.cc
  1298. * src/MetalinkParserStateV4Impl.h
  1299. * test/MetalinkProcessorTest.cc
  1300. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Added Metalink4 support. Currently, name attribute of
  1302. metalink::metaurl is ignored and multi-file torrent cannot be used
  1303. with Metalink4.
  1304. * doc/aria2c.1.txt
  1305. * src/DownloadHandlerConstants.cc
  1306. * src/ExpatMetalinkProcessor.cc
  1307. * src/Makefile.am
  1308. * src/Metalink2RequestGroup.cc
  1309. * src/MetalinkEntry.cc
  1310. * src/MetalinkEntry.h
  1311. * src/MetalinkParserController.cc
  1312. * src/MetalinkParserController.h
  1313. * src/MetalinkParserState.h
  1314. * src/MetalinkParserStateImpl.cc
  1315. * src/MetalinkParserStateImpl.h
  1316. * src/MetalinkParserStateMachine.cc
  1317. * src/MetalinkParserStateMachine.h
  1318. * src/MetalinkParserStateV3Impl.cc
  1319. * src/MetalinkParserStateV3Impl.h
  1320. * src/MetalinkParserStateV4Impl.cc
  1321. * src/MetalinkParserStateV4Impl.h
  1322. * src/MetalinkResource.cc
  1323. * src/MetalinkResource.h
  1324. * src/Metalinker.cc
  1325. * src/RequestGroup.cc
  1326. * src/RequestGroup.h
  1327. * src/XML2SAXMetalinkProcessor.cc
  1328. * src/messageDigest.cc
  1329. * src/util.cc
  1330. * src/util.h
  1331. * test/Makefile.am
  1332. * test/MetalinkEntryTest.cc
  1333. * test/MetalinkParserControllerTest.cc
  1334. * test/MetalinkProcessorTest.cc
  1335. * test/MetalinkerTest.cc
  1336. * test/UtilTest.cc
  1337. * test/metalink4-attrs.xml
  1338. * test/metalink4-dirtraversal.xml
  1339. * test/metalink4.xml
  1340. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Added aiFlags argument to getInterfaceAddress(). Use
  1342. AI_NUMERICHOST to find interface specified using
  1343. --bt-lpd-interface option to avoid time-consuming address lookup.
  1344. * src/BtSetup.cc
  1345. * src/SocketCore.cc
  1346. * src/SocketCore.h
  1347. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  1349. is bad in LpdMessageReceiver.
  1350. * src/LpdMessage.h
  1351. * src/LpdMessageReceiver.cc
  1352. * src/LpdMessageReceiver.h
  1353. * src/LpdReceiveMessageCommand.cc
  1354. * test/LpdMessageReceiverTest.cc
  1355. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1356. Added --bt-lpd-interface option to specify the interface to use
  1357. for Local Peer Discovery. LpdMessageDispatcher object now has its
  1358. own socket. LpdMessageReceiver's socket is binded to multicast
  1359. address to only receive multicast packets.
  1360. * src/BtSetup.cc
  1361. * src/LpdMessageDispatcher.cc
  1362. * src/LpdMessageDispatcher.h
  1363. * src/LpdMessageReceiver.cc
  1364. * src/LpdMessageReceiver.h
  1365. * src/LpdReceiveMessageCommand.cc
  1366. * src/LpdReceiveMessageCommand.h
  1367. * src/OptionHandlerFactory.cc
  1368. * src/SocketCore.cc
  1369. * src/SocketCore.h
  1370. * src/prefs.cc
  1371. * src/prefs.h
  1372. * src/usage_text.h
  1373. * test/LpdMessageDispatcherTest.cc
  1374. * test/LpdMessageReceiverTest.cc
  1375. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Put the portion of code to get interface addresses in
  1377. SocketCore::bindAddress() into newly added getInterfaceAddress().
  1378. * src/SocketCore.cc
  1379. * src/SocketCore.h
  1380. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Rewritten util::parseInt() and parseUInt()
  1382. * src/util.cc
  1383. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Fixed compile error with mingw32 cross compiler. Defined
  1385. a2_sockopt_t as void* for the target systems other than mingw32.
  1386. * src/SocketCore.cc
  1387. * src/a2netcompat.h
  1388. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Removed 'always true' condition
  1390. * src/util.cc
  1391. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1392. Documented --bt-enable-lpd option in man page.
  1393. * doc/aria2c.1.txt
  1394. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Added Local Peer Discovery. It is disabled by default. Use
  1396. --bt-enable-lpd to enable the function.
  1397. * src/BtConstants.h
  1398. * src/BtSetup.cc
  1399. * src/LpdDispatchMessageCommand.cc
  1400. * src/LpdDispatchMessageCommand.h
  1401. * src/LpdMessage.h
  1402. * src/LpdMessageDispatcher.cc
  1403. * src/LpdMessageDispatcher.h
  1404. * src/LpdMessageReceiver.cc
  1405. * src/LpdMessageReceiver.h
  1406. * src/LpdReceiveMessageCommand.cc
  1407. * src/LpdReceiveMessageCommand.h
  1408. * src/Makefile.am
  1409. * src/OptionHandlerFactory.cc
  1410. * src/Peer.cc
  1411. * src/Peer.h
  1412. * src/PeerInteractionCommand.cc
  1413. * src/SocketCore.cc
  1414. * src/SocketCore.h
  1415. * src/prefs.cc
  1416. * src/prefs.h
  1417. * src/usage_text.h
  1418. * src/util.cc
  1419. * src/util.h
  1420. * test/LpdMessageDispatcherTest.cc
  1421. * test/LpdMessageReceiverTest.cc
  1422. * test/Makefile.am
  1423. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. User-defined custom request headers specified by --header option
  1425. now override builtin headers if they have same name.
  1426. * src/HttpRequest.cc
  1427. * src/HttpRequest.h
  1428. * test/HttpRequestTest.cc
  1429. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Rewirtten util::isNumber()
  1431. * src/util.cc
  1432. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  1434. because without it localized error messages are not printed
  1435. correctly.
  1436. * src/Platform.cc
  1437. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1438. Added unit tests for util::getContentDispositionFilename() from
  1439. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  1440. tests are passed.
  1441. * src/util.cc
  1442. * test/UtilTest.cc
  1443. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  1445. util.cc
  1446. * src/Platform.cc
  1447. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. Support RFC2231 "Parameter Value Character Set and Language
  1449. Information" in Content-Disposition header.
  1450. * src/HttpResponse.cc
  1451. * src/util.cc
  1452. * src/util.h
  1453. * test/UtilTest.cc
  1454. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1455. Print CXXFLAGS
  1456. * configure.ac
  1457. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Small optimization for A2_WOULDBLOCK(e)
  1459. * src/SocketCore.cc
  1460. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1461. Removed test file
  1462. * test/CookieStorageTest.cc
  1463. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Check both EAGAIN and EWOULDBLOCK
  1465. * src/SocketCore.cc
  1466. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1467. Removed ret == 0 checking for SSL_read(), SSL_write() and
  1468. SSL_peek() because the checks are done in the caller. In
  1469. SocketBuffer::send(), throw exception if nothing could be written
  1470. and socket error was not EWOULDBLOCK
  1471. * src/SocketBuffer.cc
  1472. * src/SocketCore.cc
  1473. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Fixed error code handling so that it can handle Winsock2 error
  1475. code.
  1476. * src/SocketCore.cc
  1477. * src/SocketCore.h
  1478. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Bump up version number to 1.9.0a
  1480. * configure.ac
  1481. * doc/aria2c.1.txt
  1482. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1483. Fixed the bug that aria2 doesn't handle return value if error
  1484. occurred before download begins.
  1485. * src/MultiUrlRequestInfo.cc
  1486. * src/main.cc
  1487. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Removed SegmentManFactory class.
  1489. * src/AbstractSegmentManFactory.h
  1490. * src/DefaultSegmentManFactory.cc
  1491. * src/DefaultSegmentManFactory.h
  1492. * src/Makefile.am
  1493. * src/RequestGroup.cc
  1494. * src/RequestGroup.h
  1495. * src/SegmentManFactory.h
  1496. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Destroyed digest context after getting calculated hash.
  1498. * src/Piece.cc
  1499. * src/Piece.h
  1500. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1501. Removed BitfieldManFactory class.
  1502. * src/BitfieldManFactory.cc
  1503. * src/BitfieldManFactory.h
  1504. * src/DefaultPieceStorage.cc
  1505. * src/Makefile.am
  1506. * src/PeerSessionResource.cc
  1507. * src/Piece.cc
  1508. * src/main.cc
  1509. * test/DefaultPieceStorageTest.cc
  1510. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Removed unused methods from BitfieldMan class. Moved
  1512. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  1513. class.
  1514. * src/BitfieldMan.cc
  1515. * src/BitfieldMan.h
  1516. * src/BitfieldManFactory.cc
  1517. * src/BitfieldManFactory.h
  1518. * src/bitfield.h
  1519. * src/main.cc
  1520. * test/BitfieldManTest.cc
  1521. * test/DefaultPieceStorageTest.cc
  1522. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. Moved getFirstNMissingIndex to bitfield.h and made it return the
  1524. number of appended indexes.
  1525. * src/BitfieldMan.cc
  1526. * src/BitfieldMan.h
  1527. * src/Piece.cc
  1528. * src/Piece.h
  1529. * src/bitfield.h
  1530. * test/BitfieldManTest.cc
  1531. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Added more tests.
  1533. * test/BitfieldManTest.cc
  1534. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1535. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  1536. unused block indexes at once instead of calling
  1537. getFirstMissingUnusedIndex() multiple times. Made use of it in
  1538. Piece class and DefaultBtRequestFactory class via Piece class.
  1539. * src/BitfieldMan.cc
  1540. * src/BitfieldMan.h
  1541. * src/DefaultBtRequestFactory.cc
  1542. * src/Piece.cc
  1543. * src/Piece.h
  1544. * test/BitfieldManTest.cc
  1545. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Use std::make_pair(...)
  1547. * src/DHTMessageTracker.cc
  1548. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Use std::make_pair(...)
  1550. * src/bittorrent_helper.cc
  1551. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1552. urlencode(removeFragment(...)) in parseUrl(...)
  1553. * src/Request.cc
  1554. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1555. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1556. * src/AbstractCommand.cc
  1557. * src/AdaptiveURISelector.cc
  1558. * src/BtPieceMessage.cc
  1559. * src/BtPortMessage.cc
  1560. * src/CreateRequestCommand.cc
  1561. * src/DHTAbstractNodeLookupTask.cc
  1562. * src/DHTBucket.cc
  1563. * src/DHTGetPeersCommand.cc
  1564. * src/DHTMessageDispatcherImpl.cc
  1565. * src/DHTMessageFactoryImpl.cc
  1566. * src/DHTMessageTracker.cc
  1567. * src/DHTPeerAnnounceStorage.cc
  1568. * src/DHTRoutingTable.cc
  1569. * src/DHTSetup.cc
  1570. * src/DefaultBtAnnounce.cc
  1571. * src/DefaultBtInteractive.cc
  1572. * src/DefaultBtMessageDispatcher.cc
  1573. * src/DefaultBtMessageReceiver.cc
  1574. * src/DefaultBtProgressInfoFile.cc
  1575. * src/DefaultBtRequestFactory.cc
  1576. * src/DefaultPeerStorage.cc
  1577. * src/DefaultPieceStorage.cc
  1578. * src/DownloadCommand.cc
  1579. * src/DownloadEngine.cc
  1580. * src/EpollEventPoll.cc
  1581. * src/FileAllocationCommand.cc
  1582. * src/FileEntry.cc
  1583. * src/FtpNegotiationCommand.cc
  1584. * src/HandshakeExtensionMessage.cc
  1585. * src/HttpListenCommand.cc
  1586. * src/HttpServer.cc
  1587. * src/HttpSkipResponseCommand.cc
  1588. * src/IteratableChunkChecksumValidator.cc
  1589. * src/Logger.h
  1590. * src/MSEHandshake.cc
  1591. * src/MetalinkPostDownloadHandler.cc
  1592. * src/MultiDiskAdaptor.cc
  1593. * src/PeerAbstractCommand.cc
  1594. * src/PeerConnection.cc
  1595. * src/PeerListenCommand.cc
  1596. * src/PeerReceiveHandshakeCommand.cc
  1597. * src/RequestGroup.cc
  1598. * src/RequestGroupMan.cc
  1599. * src/SegmentMan.cc
  1600. * src/SelectEventPoll.cc
  1601. * src/ServerStat.cc
  1602. * src/SimpleBtMessage.cc
  1603. * src/SocketCore.cc
  1604. * src/TrackerWatcherCommand.cc
  1605. * src/UTMetadataDataExtensionMessage.cc
  1606. * src/UTMetadataRequestFactory.cc
  1607. * src/UTMetadataRequestTracker.cc
  1608. * src/XmlRpcMethod.cc
  1609. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Changed log level from debug to info
  1611. * src/BtDependency.cc
  1612. * src/BtPostDownloadHandler.cc
  1613. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Removed unused PeerSessionResource::_latency.
  1615. * src/BtConstants.h
  1616. * src/BtPieceMessage.cc
  1617. * src/Peer.cc
  1618. * src/Peer.h
  1619. * src/PeerSessionResource.cc
  1620. * src/PeerSessionResource.h
  1621. * test/PeerSessionResourceTest.cc
  1622. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Fixed the bug that --file-allocation=falloc doesn't work with
  1624. single file download.
  1625. * src/AbstractSingleDiskAdaptor.cc
  1626. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1627. Release 1.8.2
  1628. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1629. Added Portuguese translation. Updated Ukrainian and Spanish
  1630. translation. Thanks to all translators.
  1631. * po/LINGUAS
  1632. * po/es.po
  1633. * po/pt.po
  1634. * po/uk.po
  1635. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Remove fragment from redirected URI.
  1637. * src/Request.cc
  1638. * test/RequestTest.cc
  1639. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Updated po templates.
  1641. * po/aria2.pot
  1642. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Drop legacy ifdef for ares support and code cleanup.
  1644. * src/AsyncNameResolver.cc
  1645. * src/AsyncNameResolver.h
  1646. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Call ares_library_init and ares_library_cleanup if they are
  1648. available. Some code cleanups.
  1649. * src/Platform.cc
  1650. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1651. Call ares_process_fd() each time after epoll to handle timeout.
  1652. * src/EpollEventPoll.cc
  1653. * src/EpollEventPoll.h
  1654. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Suppressed type-cast compiler warning
  1656. * src/CookieStorage.cc
  1657. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Fixed compile error on Mac OS X.
  1659. * src/CookieStorage.h
  1660. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Removed cookietest.txt from Makefile.am
  1662. * test/Makefile.am
  1663. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Updated version number in man page.
  1665. * doc/aria2c.1.txt
  1666. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Rewritten help message for --allow-overwrite option.
  1668. * doc/aria2c.1.txt
  1669. * src/usage_text.h
  1670. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1671. Added bittorrent key to the response of tellStatus XML-RPC method.
  1672. The associated value of the key is a struct and contains data
  1673. retrieved from .torrent file, such as name, announce-list,
  1674. comment, etc.
  1675. * doc/aria2c.1.txt
  1676. * src/XmlRpcMethodImpl.cc
  1677. * src/XmlRpcMethodImpl.h
  1678. * test/XmlRpcMethodTest.cc
  1679. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Removed parse(std::istream&) and parse(const std::string&) from
  1681. CookieParser.
  1682. * src/CookieParser.cc
  1683. * src/CookieParser.h
  1684. * test/CookieParserTest.cc
  1685. * test/cookietest.txt: Removed
  1686. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1688. a.b.c if no other cookies are stored. Fixed the bug that
  1689. Cookie::markOriginServerOnly() is not called when cookies are
  1690. loaded from file/sqlite3 database.
  1691. * src/Cookie.h
  1692. * src/CookieStorage.cc
  1693. * src/NsCookieParser.cc
  1694. * src/Sqlite3MozCookieParser.cc
  1695. * test/CookieStorageTest.cc
  1696. * test/NsCookieParserTest.cc
  1697. * test/Sqlite3MozCookieParserTest.cc
  1698. * test/cookies.sqlite
  1699. * test/nscookietest.txt
  1700. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1702. both _pieceStorage and _segmentMan are initialized or they are
  1703. not.
  1704. * src/RequestGroup.cc
  1705. * src/RequestGroup.h
  1706. * test/BtDependencyTest.cc
  1707. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Bump up version number to 1.8.2
  1709. * configure.ac
  1710. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1711. Replaced "." with A2STR::DOT_C
  1712. * src/AbstractCommand.cc
  1713. * src/Cookie.cc
  1714. * src/DownloadContext.cc
  1715. * src/FtpConnection.cc
  1716. * src/RequestGroup.cc
  1717. * src/util.cc
  1718. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1719. Replaced isNumberAndDotsNotation() with isNumericHost().
  1720. isNumericHost() can handle IPv6 address.
  1721. * src/Cookie.cc
  1722. * src/CookieStorage.cc
  1723. * src/util.cc
  1724. * src/util.h
  1725. * test/CookieTest.cc
  1726. * test/UtilTest.cc
  1727. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Included A2STR.h
  1729. * src/CookieStorage.cc
  1730. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Rewritten Cookie storage.
  1732. * src/Cookie.cc
  1733. * src/Cookie.h
  1734. * src/CookieParser.cc
  1735. * src/CookieStorage.cc
  1736. * src/CookieStorage.h
  1737. * src/a2functional.h
  1738. * test/CookieParserTest.cc
  1739. * test/CookieStorageTest.cc
  1740. * test/CookieTest.cc
  1741. * test/HttpResponseTest.cc
  1742. * test/TestUtil.h
  1743. * test/a2functionalTest.cc
  1744. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1745. Handle redirected URI which is not properly percent encoded.
  1746. * src/Request.cc
  1747. * test/RequestTest.cc
  1748. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1749. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1750. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1751. in a row without single '200 OK' response.
  1752. * src/RequestGroup.cc.
  1753. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1754. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1755. readout by 80 characters in mingw32 build. Catch exception in
  1756. DHTMessageReceiver::receiveMessage().
  1757. * src/AbstractDiskWriter.cc
  1758. * src/ConsoleStatCalc.cc
  1759. * src/DHTMessageReceiver.cc
  1760. * src/File.cc
  1761. * src/RequestGroupMan.cc
  1762. * src/a2io.h
  1763. * test/FileTest.cc
  1764. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Fixed compile error with intel compiler
  1766. * src/XmlRpcMethodImpl.cc
  1767. * src/XmlRpcMethodImpl.h
  1768. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Release 1.8.1
  1770. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1771. Updated Swedish, Russian and Italian translations. Thanks to all
  1772. translators.
  1773. * po/it.po
  1774. * po/ru.po
  1775. * po/sv.po
  1776. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Fixed broken OptionParser::findByName().
  1778. * src/OptionParser.cc
  1779. * test/OptionParserTest.cc
  1780. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Fixed test error without BitTorrent support.
  1782. * test/XmlRpcMethodTest.cc
  1783. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1784. Fixed compile error without GNUTLS/OpenSSL.
  1785. * src/util.cc
  1786. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1787. Changed compression level to Z_DEFAULT_COMPRESSION.
  1788. * src/GZipEncoder.cc
  1789. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Added missing command line options: --http-no-cache,
  1791. --bt-save-metadata and --bt-metadata-only.
  1792. * doc/xmlrpc/aria2rpc
  1793. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1794. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1795. client accepts gzip content encoding.
  1796. * src/A2STR.cc
  1797. * src/A2STR.h
  1798. * src/GZipEncoder.cc
  1799. * src/GZipEncoder.h
  1800. * src/HttpHeader.cc
  1801. * src/HttpHeader.h
  1802. * src/HttpServer.cc
  1803. * src/HttpServer.h
  1804. * src/HttpServerBodyCommand.cc
  1805. * src/HttpServerCommand.cc
  1806. * src/Makefile.am
  1807. * src/XmlRpcResponse.cc
  1808. * src/XmlRpcResponse.h
  1809. * test/GZipEncoderTest.cc
  1810. * test/Makefile.am
  1811. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. Added XML-RPC client sample code in Python.
  1813. * doc/aria2c.1.txt
  1814. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Updated po templates.
  1816. * po/aria2.pot
  1817. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Bump up version number to 1.8.1
  1819. * configure.ac
  1820. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1821. Added version number to man page. Updated copyright year in man
  1822. page.
  1823. * doc/aria2c.1.txt
  1824. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Rewritten toTagString
  1826. * src/NameMatchOptionHandler.cc
  1827. * test/OptionHandlerTest.cc
  1828. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1829. Added dir and files key to the response struct of aria2.tellStatus
  1830. XML-RPC method. The value associated with files key is the list
  1831. of files. Its element is the same struct used in aria2.getFiles
  1832. XML-RPC method. Added uris key to the response struct of
  1833. aria2.getFiles XML-RPC method. The value associated with uris key
  1834. is the list of URIs. Its element is the same struct used in
  1835. aria2.getUris XML-RPC method.
  1836. * doc/aria2c.1.txt
  1837. * src/XmlRpcMethodImpl.cc
  1838. * test/XmlRpcMethodTest.cc
  1839. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1840. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1841. struct containing Session ID, which is generated each time when
  1842. aria2 is invoked.
  1843. * doc/aria2c.1.txt
  1844. * doc/xmlrpc/aria2rpc
  1845. * src/DownloadEngine.cc
  1846. * src/DownloadEngine.h
  1847. * src/XmlRpcMethodFactory.cc
  1848. * src/XmlRpcMethodImpl.cc
  1849. * src/XmlRpcMethodImpl.h
  1850. * test/XmlRpcMethodTest.cc
  1851. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1852. Moved generateRandomKey() from bittorrent_helper to util.
  1853. * src/DHTBucket.cc
  1854. * src/DHTNode.cc
  1855. * src/bittorrent_helper.cc
  1856. * src/bittorrent_helper.h
  1857. * src/util.cc
  1858. * src/util.h
  1859. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1860. Updated doc about GID.
  1861. * doc/aria2c.1.txt
  1862. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1864. accepts a negative integer. 'offset' == -1 points last download
  1865. in the waiting queue and 'offset' == -2 points the download before
  1866. the last download, and so on. The downloads in the response are in
  1867. reversed order.
  1868. * doc/aria2c.1.txt
  1869. * src/XmlRpcMethodImpl.cc
  1870. * src/XmlRpcMethodImpl.h
  1871. * test/XmlRpcMethodTest.cc
  1872. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1873. Added --human-readable option. This option, when true is given,
  1874. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1875. 3.4Mi) in the console readout. The default value is true and it
  1876. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1877. appears when false is given. In this case, sizes and speed are
  1878. printed without in bytes. No Ki, Mi units conversion is used.
  1879. This may be useful for a program to parse the output of aria2.
  1880. * doc/aria2c.1.txt
  1881. * src/ConsoleStatCalc.cc
  1882. * src/ConsoleStatCalc.h
  1883. * src/OptionHandlerFactory.cc
  1884. * src/main.cc
  1885. * src/prefs.cc
  1886. * src/prefs.h
  1887. * src/usage_text.h
  1888. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1890. option accepts empty string "". When "" is given, it erases
  1891. previously defined proxy.
  1892. * doc/aria2c.1.txt
  1893. * src/OptionHandlerImpl.h
  1894. * src/usage_text.h
  1895. * test/OptionHandlerTest.cc
  1896. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1897. Code cleanup for proxy URI handling.
  1898. * src/AbstractCommand.cc
  1899. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1900. Added --bt-metadata-only option. If true is given to this option,
  1901. aria2 downloads metadata only. The file(s) described in metadata
  1902. will not be downloaded. This option has effect only when
  1903. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1904. * doc/aria2c.1.txt
  1905. * src/OptionHandlerFactory.cc
  1906. * src/UTMetadataPostDownloadHandler.cc
  1907. * src/download_helper.cc
  1908. * src/prefs.cc
  1909. * src/prefs.h
  1910. * src/usage_text.h
  1911. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1913. deleted when exception is thrown. Make sure that when passing
  1914. std::deque<Command*> to function to store Commands, handle
  1915. exception and delete these Commands.
  1916. * src/AbstractCommand.cc
  1917. * src/CheckIntegrityCommand.cc
  1918. * src/FileAllocationCommand.cc
  1919. * src/RequestGroup.cc
  1920. * src/TrackerWatcherCommand.cc
  1921. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1922. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1923. * src/A2STR.cc
  1924. * src/A2STR.h
  1925. * src/FtpNegotiationCommand.cc
  1926. * src/HttpResponseCommand.cc
  1927. * src/util.cc
  1928. * src/util.h
  1929. * test/UtilTest.cc
  1930. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1931. Treat --dir="" as --dir="."
  1932. * src/FtpNegotiationCommand.cc
  1933. * src/HttpResponseCommand.cc
  1934. * src/Metalink2RequestGroup.cc
  1935. * src/UTMetadataPostDownloadHandler.cc
  1936. * src/bittorrent_helper.cc
  1937. * src/download_helper.cc
  1938. * src/util.cc
  1939. * src/util.h
  1940. * test/UtilTest.cc
  1941. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1942. Code clean up.
  1943. * src/main.cc
  1944. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Reset GID to 1 when they reach maximum value. Rewritten
  1946. CUIDCounter::newID()
  1947. * src/CUIDCounter.h
  1948. * src/RequestGroup.cc
  1949. * src/RequestGroup.h
  1950. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Documented --http-no-cache option in man page.
  1952. * doc/aria2c.1.txt
  1953. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1954. Added --http-no-cache option. When true is given, aria2 sends
  1955. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1956. cached content. If false is given , these headers are not sent
  1957. and you can add Cache-Control header with a directive you like
  1958. using --header option.
  1959. * src/HttpRequest.cc
  1960. * src/HttpRequest.h
  1961. * src/HttpRequestCommand.cc
  1962. * src/OptionHandlerFactory.cc
  1963. * src/download_helper.cc
  1964. * src/prefs.cc
  1965. * src/prefs.h
  1966. * src/usage_text.h
  1967. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1968. Removed Logger from OptionParser. When OptionParser is used to
  1969. parse options at bootstrap, LogFactory is not configured yet
  1970. properly. When LogFactory is used in OptionParser, it initializes
  1971. itself to return a logger which has no ability to write log to the
  1972. disk.
  1973. * src/OptionParser.cc
  1974. * src/OptionParser.h
  1975. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Added following sentance to the help message of --out option:
  1977. --out option is ignored when -Z is used.
  1978. * doc/aria2c.1.txt
  1979. * src/usage_text.h
  1980. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. Added --bt-save-metadata option to -i list options.
  1982. * doc/aria2c.1.txt
  1983. * src/download_helper.cc
  1984. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1985. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1986. additional libraries.
  1987. * src/MultiUrlRequestInfo.cc
  1988. * src/NameResolver.cc
  1989. * src/SelectEventPoll.cc
  1990. * src/SelectEventPoll.h
  1991. * src/SocketCore.cc
  1992. * src/SocketCore.h
  1993. * src/a2netcompat.h
  1994. * src/daemon.cc
  1995. * src/main.cc
  1996. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1997. Fixed typo.
  1998. * src/DHTMessageReceiver.cc
  1999. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2000. Fixed the bug that causes segmentation fault if unknown option is
  2001. put in aria2.conf file. BUG#2928303
  2002. * src/OptionParser.cc
  2003. * src/OptionParser.h
  2004. * src/option_processing.cc
  2005. * test/OptionParserTest.cc
  2006. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Ignore port message with port=0.
  2008. * src/BtPortMessage.cc
  2009. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2010. Run autoupdate
  2011. * configure.ac
  2012. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2013. Updated autoconf/automake auxiliary files.
  2014. * INSTALL
  2015. * config.guess
  2016. * config.sub
  2017. * depcomp
  2018. * install-sh
  2019. * m4/intldir.m4
  2020. * missing
  2021. * mkinstalldirs
  2022. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Removed unused function.
  2024. * src/SharedHandle.h
  2025. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Find pooled socket using all cached addresses.
  2027. * src/DNSCache.h
  2028. * src/DownloadEngine.cc
  2029. * src/DownloadEngine.h
  2030. * src/InitiateConnectionCommand.cc
  2031. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2032. Updated copyright year.
  2033. * src/version_usage.cc
  2034. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. Pool connection if _contentEncodingDecoder is used and server
  2036. supports persistent connection.
  2037. * src/HttpDownloadCommand.cc
  2038. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. Updated doc.
  2040. * src/DownloadCommand.cc
  2041. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2042. Untabify. Fixed one line in copyright which is longer than 80
  2043. columns.
  2044. * src
  2045. * test
  2046. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2047. Release 1.8.0
  2048. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2049. Updated po templates.
  2050. * po/aria2.pot
  2051. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Documented --bt-save-metadata option in man page.
  2053. * doc/aria2c.1.txt
  2054. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Fixed usage of --bt-save-metadata option.
  2056. * src/usage_text.h
  2057. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Updated po templates.
  2059. * po/aria2.pot
  2060. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  2062. causes name resolution error when none of network interface has
  2063. IPv4 address.
  2064. * src/main.cc
  2065. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. Bump up version number to 1.8.0.
  2067. * configure.ac
  2068. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Use info hash as a filename when saving BitTorrent metadata.
  2070. * src/UTMetadataPostDownloadHandler.cc
  2071. * test/UTMetadataPostDownloadHandlerTest.cc
  2072. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Documented system.multicall XML-RPC method in man page.
  2074. * doc/aria2c.1.txt
  2075. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2076. Added signal handler for SIGHUP to save .aria2 file when terminal
  2077. is closed. The handler is the same one for SIGINT and SIGTERM.
  2078. * src/MultiUrlRequestInfo.cc
  2079. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. Defined method name in XmlRpcMethod subclasses.
  2081. * src/XmlRpcMethodFactory.cc
  2082. * src/XmlRpcMethodImpl.cc
  2083. * src/XmlRpcMethodImpl.h
  2084. * test/XmlRpcMethodTest.cc
  2085. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2086. Added system.multicall XML-RPC method.
  2087. * src/XmlRpcMethod.cc
  2088. * src/XmlRpcMethod.h
  2089. * src/XmlRpcMethodFactory.cc
  2090. * src/XmlRpcMethodImpl.cc
  2091. * src/XmlRpcMethodImpl.h
  2092. * test/XmlRpcMethodTest.cc
  2093. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2094. Check structure depth when decoding.
  2095. * src/bencode.cc
  2096. * src/bencode.h
  2097. * test/BencodeTest.cc
  2098. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Documented tellStopped XML-RPC method in man page.
  2100. * doc/aria2c.1.txt
  2101. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2102. Added tellStopped XML-RPC method to aria2rpc.
  2103. * doc/xmlrpc/aria2rpc
  2104. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2105. Added tellStopped XML-RPC method. This method returns stopped
  2106. download in the specified range. It takes same parameters with
  2107. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  2108. * src/XmlRpcMethodFactory.cc
  2109. * src/XmlRpcMethodImpl.cc
  2110. * src/XmlRpcMethodImpl.h
  2111. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  2113. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  2114. when conducting unit tests because they fail if networking
  2115. interface is not configured with IPv4 address.
  2116. * src/NameResolver.cc
  2117. * src/SocketCore.cc
  2118. * src/SocketCore.h
  2119. * src/a2netcompat.h
  2120. * test/AllTest.cc
  2121. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Fixed unit test error
  2123. * test/UTMetadataPostDownloadHandlerTest.cc
  2124. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2125. Defined static string constants for efficiency.
  2126. * src/XmlRpcMethodImpl.cc
  2127. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Added --bt-save-metadata option. When true is given, it saves
  2129. metadata as .torrent file. This option has effect only when
  2130. BitTorrent Magnet URI is used. The filename is name in metadata
  2131. with suffix .torrent. The directory to be saved is the same
  2132. directory where download file is saved. If the same file already
  2133. exists, metdata is not saved.
  2134. * src/OptionHandlerFactory.cc
  2135. * src/UTMetadataPostDownloadHandler.cc
  2136. * src/UTMetadataPostDownloadHandler.h
  2137. * src/message.h
  2138. * src/prefs.cc
  2139. * src/prefs.h
  2140. * src/usage_text.h
  2141. * test/UTMetadataDataExtensionMessageTest.cc
  2142. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Added util::saveAs() function. Use it in Signature::save().
  2144. * src/Signature.cc
  2145. * src/util.cc
  2146. * src/util.h
  2147. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Upcase info hash in Magnet URI.
  2149. * doc/aria2c.1.txt
  2150. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Refactored RequestGroupMan::changeReservedGroupPosition()
  2152. * src/RequestGroupMan.cc
  2153. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Updated the description for aria2.addTorrent XML-RPC method.
  2155. * doc/aria2c.1.txt
  2156. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2157. Added changePosition to aria2rpc.
  2158. * doc/xmlrpc/aria2rpc
  2159. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Documented changePosition XML-RPC method in man page.
  2161. * doc/aria2c.1.txt
  2162. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  2164. pos and how. This method changes the position of download denoted
  2165. by gid. If how is POS_SET, it moves the download to a position
  2166. relative to the beginning of the queue. If how is POS_CUR, it
  2167. moves the download to a position relative to the current
  2168. position. If how is POS_END, it moves the download to a position
  2169. relative to the end of the queue. If the destination position is
  2170. less than 0 or beyond the end of the queue, it moves the download
  2171. to the beginning or the end of the queue respectively. Returns
  2172. the destination position.
  2173. * src/RequestGroupMan.cc
  2174. * src/RequestGroupMan.h
  2175. * src/XmlRpcMethodFactory.cc
  2176. * src/XmlRpcMethodImpl.cc
  2177. * src/XmlRpcMethodImpl.h
  2178. * test/RequestGroupManTest.cc
  2179. * test/XmlRpcMethodTest.cc
  2180. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Added getOption and getGlobalOption to aria2rpc.
  2182. * doc/xmlrpc/aria2rpc
  2183. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Documented getOption and getGlobalOption XML-RPC method in man
  2185. page
  2186. * doc/aria2c.1.txt
  2187. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2188. Added getOption and getGlobalOption XML-RPC method. getOption
  2189. takes GID as a parameter and returns its options as struct.
  2190. getGlobalOption takes no parameter and returns global
  2191. options. Because global option is used as a template for the
  2192. option of newly added downloads, it includes options returned by
  2193. getOption.
  2194. * src/Option.h
  2195. * src/XmlRpcMethodFactory.cc
  2196. * src/XmlRpcMethodImpl.cc
  2197. * src/XmlRpcMethodImpl.h
  2198. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Sort _optionHandlers in OptionParser by name in ascending order.
  2200. Use vector instead of deque for efficiency.
  2201. * src/OptionHandler.h
  2202. * src/OptionHandlerFactory.h
  2203. * src/OptionParser.cc
  2204. * src/OptionParser.h
  2205. * src/version_usage.cc
  2206. * test/OptionParserTest.cc
  2207. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Code cleanup
  2209. * src/XmlRpcMethod.cc
  2210. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Documented about followedBy and belongsTo in man page.
  2212. * doc/aria2c.1.txt
  2213. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2214. Added following 2 keys, followedBy and belongsTo, to the response
  2215. of tellStatus.
  2216. followedBy: List of GIDs which are generated by the consequence of
  2217. this download. For example, when aria2 downloaded Metalink file,
  2218. it generates downloads described in it(see *--follow-metalink*
  2219. option). This value is useful to track these auto generated
  2220. downloads. If there is no such downloads, this key will not be
  2221. included in the response.
  2222. belongsTo: GID of a parent download. Some downloads are a part of
  2223. another download. For example, if a file in Metalink has
  2224. BitTorrent resource, the download of .torrent is a part of that
  2225. file. If this download has no parent, this key will not be
  2226. included in the response.
  2227. * src/BtPostDownloadHandler.cc
  2228. * src/DownloadResult.h
  2229. * src/Metalink2RequestGroup.cc
  2230. * src/MetalinkPostDownloadHandler.cc
  2231. * src/RequestGroup.cc
  2232. * src/RequestGroup.h
  2233. * src/UTMetadataPostDownloadHandler.cc
  2234. * src/XmlRpcMethodImpl.cc
  2235. * src/XmlRpcMethodImpl.h
  2236. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Assigned BObject in BDE() to avoid segmentation fault when calling
  2238. methods of BDE::none().
  2239. * src/BDE.cc
  2240. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Show info hash in Magnet URI in upper case letters in -S output.
  2242. * src/bittorrent_helper.cc
  2243. * test/BittorrentHelperTest.cc
  2244. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2245. Removed old useless comment
  2246. * src/MultiUrlRequestInfo.cc
  2247. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  2249. not properly used in configure script and failed to detect gnutls.
  2250. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  2251. and the initialization of pkg-config is done in first occurrence
  2252. of PKG_CHECK_MODULES which is not executed because it is inside of
  2253. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  2254. * configure.ac
  2255. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2256. Release 1.7.2
  2257. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Fixed the bug that RequestGroupMan::downloadFinished() returns
  2259. true even if all downloads haven't finished, especially when
  2260. PostDownloadHandler is involved. Changed the condition so that it
  2261. only returns true if both _requestGroups and _reservedGroups are
  2262. empty.
  2263. * src/RequestGroupMan.cc
  2264. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2265. Log listening port for BitTorrent/DHT in notice level.
  2266. * src/DHTConnectionImpl.cc
  2267. * src/PeerListenCommand.cc
  2268. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Updated po templates.
  2270. * po/aria2.pot
  2271. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2272. Bump up version number to 1.7.2
  2273. * configure.ac
  2274. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2275. Changed default value of --enable-dht from 'false' to 'true'.
  2276. * doc/aria2c.1.txt
  2277. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2278. Enabled DHT by default because of Magnet URI support. To disable
  2279. DHT, use --enable-dht=false
  2280. * src/OptionHandlerFactory.cc
  2281. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2282. Print Magnet URI in -S output.
  2283. * src/AnnounceList.cc
  2284. * src/bittorrent_helper.cc
  2285. * src/bittorrent_helper.h
  2286. * test/BittorrentHelperTest.cc
  2287. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Added --bt-prioritize-piece option to aria2rpc.
  2289. * doc/xmlrpc/aria2rpc
  2290. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2291. Refer Magnet URI in --help. Made some cosmetic changes.
  2292. * src/version_usage.cc
  2293. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2294. Updated -T and -M option.
  2295. * doc/aria2c.1.txt
  2296. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. Fixed typo
  2298. * doc/aria2c.1.txt
  2299. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Fixed the bug that line separator is missing in horizontal bar.
  2301. * doc/xmlrpc/aria2mon
  2302. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2303. Updated usage text for --metalink-file option.
  2304. * src/usage_text.h
  2305. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2306. If '-' is given as an argument to --metalink-file option, aria2
  2307. reads Metalink file from stdin.
  2308. * src/OptionHandlerFactory.cc
  2309. * src/OptionHandlerImpl.h
  2310. * src/a2io.h
  2311. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2312. Fixed the bug that aria2 listens wrong port if --interface option
  2313. is used.
  2314. * src/SocketCore.cc
  2315. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2316. Fixed the bug that query parameter in magnet URI is not decoded.
  2317. * src/magnet.cc
  2318. * test/MagnetTest.cc
  2319. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Specified defaultSize as an argument for easy testing.
  2321. * src/util.cc
  2322. * src/util.h
  2323. * test/UtilTest.cc
  2324. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2325. Release 1.7.1
  2326. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2327. Bump up version number to 1.7.1
  2328. * configure.ac
  2329. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. Fixed the bug --bt-prioritize-piece=tail is not working.
  2331. * src/util.cc
  2332. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2333. Release 1.7.0
  2334. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Updated po templates.
  2336. * po/aria2.pot
  2337. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2338. Updated help message for --bt-prioritize-piece. Some cosmetic
  2339. changes.
  2340. * doc/aria2c.1.txt
  2341. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  2343. * src/usage_text.h
  2344. * src/util.cc
  2345. * test/UtilTest.cc
  2346. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2347. Updated Russian, Ukrainian, German and French translations.
  2348. Thanks to all translators involved.
  2349. * po/de.po
  2350. * po/fr.po
  2351. * po/ru.po
  2352. * po/uk.po
  2353. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2354. Mentioned about pkg-config
  2355. * README
  2356. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Fixed typo. Referred --index-out option in BitTorrent notes.
  2358. * README
  2359. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2360. Store all addresses found by getifaddrs() and getaddrinfo(). In
  2361. bind, try all addresses until success
  2362. * src/SocketCore.cc
  2363. * src/SocketCore.h
  2364. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Updated po templates.
  2366. * po/aria2.pot
  2367. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. Bump up version number to 1.7.0
  2369. * configure.ac
  2370. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Fixed compile error if ENABLE_BITTORRENT is undefined.
  2372. * src/DefaultPieceStorage.cc
  2373. * src/DefaultPieceStorage.h
  2374. * src/PieceStorage.h
  2375. * src/UnknownLengthPieceStorage.cc
  2376. * src/UnknownLengthPieceStorage.h
  2377. * test/MockPieceStorage.h
  2378. * test/ProtocolDetectorTest.cc
  2379. * test/XmlRpcMethodTest.cc
  2380. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Documented in man page that if getifaddrs() is missing,
  2382. --interface option doesn't accept interface name.
  2383. * doc/aria2c.1.txt
  2384. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  2386. * src/DefaultBtAnnounce.cc
  2387. * src/DefaultBtAnnounce.h
  2388. * test/DefaultBtAnnounceTest.cc
  2389. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Fixed the bug that connection is always dropped if handshake
  2391. message in extension protocol don't have metadata_size.
  2392. src/HandshakeExtensionMessage.cc
  2393. * src/HandshakeExtensionMessage.cc
  2394. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  2396. text saying DHT is recommended when Magnet URI is provided.
  2397. * doc/aria2c.1.txt
  2398. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  2400. URI is supplied. Notify user that they should consider enabling
  2401. DHT if they use Magnet URI.
  2402. * src/RequestGroup.cc
  2403. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2404. Added --disable-ipv6 option to disable IPv6.
  2405. * doc/aria2c.1.txt
  2406. * src/InitiateConnectionCommand.cc
  2407. * src/NameResolver.cc
  2408. * src/NameResolver.h
  2409. * src/OptionHandlerFactory.cc
  2410. * src/main.cc
  2411. * src/prefs.cc
  2412. * src/prefs.h
  2413. * src/usage_text.h
  2414. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2415. Updated usage text for --bt-prioritize-piece option.
  2416. * doc/aria2c.1.txt
  2417. * src/usage_text.h
  2418. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. In configure script, if --with-PACKAGE and --enable-FEATURE are
  2420. given and PACKAGE is missing in the system or FEATURE cannot be
  2421. enabled, print error message and stop the script.
  2422. * configure.ac
  2423. * m4/aria2_arg.m4
  2424. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Halt metadata download immediately when metadata download is done.
  2426. Don't wait unresponsive tracker.
  2427. * src/ByteArrayDiskWriter.h
  2428. * src/DefaultBtInteractive.cc
  2429. * src/DefaultExtensionMessageFactory.cc
  2430. * src/DefaultExtensionMessageFactory.h
  2431. * src/PeerInteractionCommand.cc
  2432. * src/UTMetadataDataExtensionMessage.cc
  2433. * src/UTMetadataDataExtensionMessage.h
  2434. * src/UTMetadataRequestExtensionMessage.cc
  2435. * test/UTMetadataDataExtensionMessageTest.cc
  2436. * test/UTMetadataRequestExtensionMessageTest.cc
  2437. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2438. Documented --interface option in man page.
  2439. * doc/aria2c.1.txt
  2440. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2441. Try resolved address in the order received from the resolver.
  2442. * src/DNSCache.h
  2443. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Added debug logs.
  2445. * src/SocketCore.cc
  2446. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2447. Fixed type of tail to uint64_t
  2448. * src/util.cc
  2449. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Added --interface option. This feature binds sockets to given
  2451. interface. You can specify interface name, IP address and
  2452. hostname.
  2453. * configure.ac
  2454. * src/OptionHandlerFactory.cc
  2455. * src/SocketCore.cc
  2456. * src/SocketCore.h
  2457. * src/main.cc
  2458. * src/message.h
  2459. * src/prefs.cc
  2460. * src/prefs.h
  2461. * src/usage_text.h
  2462. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Updated man page for bt-prioritize-piece option in -i list.
  2464. * doc/aria2c.1.txt
  2465. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2466. Added bt-prioritize-piece option to -i list.
  2467. * src/download_helper.cc
  2468. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Removed --http-auth-scheme option from man page.
  2470. * doc/aria2c.1.txt
  2471. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Removed --http-auth-scheme option since it doesn't do nothing.
  2473. * src/OptionHandlerFactory.cc
  2474. * src/prefs.cc
  2475. * src/prefs.h
  2476. * src/usage_text.h
  2477. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2478. Adjusted the number of peer info which get_peers reply message can
  2479. carry.
  2480. * src/DHTGetPeersReplyMessage.cc
  2481. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Added extension_message_test_helper.h to aria2c_SOURCES.
  2483. * test/Makefile.am
  2484. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2485. Documented --bt-prioritize-piece option in man page.
  2486. * doc/aria2c.1.txt
  2487. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2488. Added option --bt-prioritize-piece. This option instruct aria2 to
  2489. try to download first and last pieces of each file first. The
  2490. argument can contain 2 keywords:head and tail. To include both
  2491. keywords, they must be separated by comma. These keywords can take
  2492. one parameter, SIZE. For example , if head=SIZE is specified,
  2493. pieces in the range of first SIZE bytes of each file get higher
  2494. priority. tail=SIZE means the range of last SIZE bytes of each
  2495. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  2496. * src/DefaultPieceStorage.h
  2497. * src/Makefile.am
  2498. * src/OptionHandlerFactory.cc
  2499. * src/OptionHandlerImpl.h
  2500. * src/PriorityPieceSelector.cc
  2501. * src/PriorityPieceSelector.h
  2502. * src/RequestGroup.cc
  2503. * src/prefs.cc
  2504. * src/prefs.h
  2505. * src/usage_text.h
  2506. * src/util.cc
  2507. * src/util.h
  2508. * test/Makefile.am
  2509. * test/MockPieceSelector.h
  2510. * test/PriorityPieceSelectorTest.cc
  2511. * test/UtilTest.cc
  2512. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Fixed typo
  2514. * src/HttpRequest.h
  2515. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. In Magnet URI with tr parameter, put each announce URI in separate
  2517. tier.
  2518. * src/bittorrent_helper.cc
  2519. * test/BittorrentHelperTest.cc
  2520. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. Renamed ExtensionMessage::getBencodedData() as
  2522. ExtensionMessage::getPayload()
  2523. * src/BtExtendedMessage.cc
  2524. * src/ExtensionMessage.h
  2525. * src/HandshakeExtensionMessage.cc
  2526. * src/HandshakeExtensionMessage.h
  2527. * src/UTMetadataDataExtensionMessage.cc
  2528. * src/UTMetadataDataExtensionMessage.h
  2529. * src/UTMetadataRejectExtensionMessage.cc
  2530. * src/UTMetadataRejectExtensionMessage.h
  2531. * src/UTMetadataRequestExtensionMessage.cc
  2532. * src/UTMetadataRequestExtensionMessage.h
  2533. * src/UTPexExtensionMessage.cc
  2534. * src/UTPexExtensionMessage.h
  2535. * test/HandshakeExtensionMessageTest.cc
  2536. * test/MockExtensionMessage.h
  2537. * test/UTMetadataDataExtensionMessageTest.cc
  2538. * test/UTMetadataRejectExtensionMessageTest.cc
  2539. * test/UTMetadataRequestExtensionMessageTest.cc
  2540. * test/UTPexExtensionMessageTest.cc
  2541. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Updated man page for BitTorrent Magnet URI.
  2543. * doc/aria2c.1.txt
  2544. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Call DownloadContext::setOwnerRequestGroup() in
  2546. RequestGroup::setDownloadContext().
  2547. * src/BtDependency.cc
  2548. * src/RequestGroup.cc
  2549. * src/RequestGroup.h
  2550. * src/download_helper.cc
  2551. * test/DefaultBtMessageDispatcherTest.cc
  2552. * test/DefaultExtensionMessageFactoryTest.cc
  2553. * test/HandshakeExtensionMessageTest.cc
  2554. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2556. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2557. from metadata, use new metadata2Torrent() function.
  2558. * src/BtDependency.cc
  2559. * src/UTMetadataPostDownloadHandler.cc
  2560. * src/bittorrent_helper.cc
  2561. * src/bittorrent_helper.h
  2562. * test/BittorrentHelperTest.cc
  2563. * test/BtDependencyTest.cc
  2564. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2565. Use createRequestGroupForUri to create the download for torrent
  2566. file.
  2567. * src/Metalink2RequestGroup.cc
  2568. * test/Metalink2RequestGroupTest.cc
  2569. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2570. Fixed typo
  2571. * src/DownloadContext.h
  2572. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2573. Use createRequestGroupForBitTorrent()
  2574. * src/BtPostDownloadHandler.cc
  2575. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2576. Added remove().
  2577. * src/Option.cc
  2578. * src/Option.h
  2579. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. Removed options which is only valid for URIs specified in
  2581. command-line. If they are left, because op is used as a template
  2582. for new RequestGroup(such as created in XML-RPC command,
  2583. BtPostDownloadHandler etc), they causes unintentional effect.
  2584. * src/main.cc
  2585. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Refer to option value of PREF_OUT only in download_helper.
  2587. * src/FtpNegotiationCommand.cc
  2588. * src/HttpResponseCommand.cc
  2589. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2590. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2591. * src/download_helper.cc
  2592. * src/download_helper.h
  2593. * src/XmlRpcMethodImpl.cc
  2594. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Updated man page for changeOption XML-RPC method.
  2596. * doc/aria2c.1.txt
  2597. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Added --bt-max-peers option to changeOption XML-RPC method.
  2599. * src/XmlRpcMethod.cc
  2600. * src/XmlRpcMethodImpl.cc
  2601. * test/XmlRpcMethodTest.cc
  2602. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  2604. * test/XmlRpcMethodTest.cc
  2605. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2606. Removed redundant DownloadContext::hasAttribute(...) calls.
  2607. * src/ConsoleStatCalc.cc
  2608. * src/RequestGroup.cc
  2609. * src/XmlRpcMethodImpl.cc
  2610. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2611. Changed the number of tracker request attempt from 5 to 2.
  2612. * src/TrackerWatcherCommand.cc
  2613. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2614. Use host and protocol in original URI, because URI selector
  2615. selects URI based on original URI, not redirected one.
  2616. * src/Request.cc
  2617. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Fixed the bug which causes segmentation fault with tellWaiting
  2619. XML-RPC method when BitTorrent download is waiting. The key of
  2620. BtRegistry is changed from info hash to GID, because it is
  2621. registered per RequestGroup, not info hash.
  2622. * src/BtRegistry.cc
  2623. * src/BtRegistry.h
  2624. * src/BtSetup.cc
  2625. * src/ConsoleStatCalc.cc
  2626. * src/InitiatorMSEHandshakeCommand.cc
  2627. * src/PeerInitiateConnectionCommand.cc
  2628. * src/PeerInteractionCommand.cc
  2629. * src/PeerInteractionCommand.h
  2630. * src/PeerReceiveHandshakeCommand.cc
  2631. * src/RequestGroup.cc
  2632. * src/XmlRpcMethodImpl.cc
  2633. * test/BtRegistryTest.cc
  2634. * test/XmlRpcMethodTest.cc
  2635. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Updated man page for changeOption XML-RPC method.
  2637. * doc/aria2c.1.txt
  2638. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2639. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  2640. method.
  2641. * src/XmlRpcMethod.cc
  2642. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Documented about BitTorrent Magnet URI in man page.
  2644. * doc/aria2c.1.txt
  2645. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Fixed the bug that trackers in BitTorrent Magnet URI are not
  2647. inherited to generated RequestGroup.
  2648. * src/UTMetadataPostDownloadHandler.cc
  2649. * test/UTMetadataPostDownloadHandlerTest.cc
  2650. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Prepended "[METADATA]" before dn.
  2652. * src/bittorrent_helper.cc
  2653. * test/BittorrentHelperTest.cc
  2654. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Rewritten Magnet URI parser.
  2656. * src/Makefile.am
  2657. * src/ProtocolDetector.cc
  2658. * src/bittorrent_helper.cc
  2659. * src/bittorrent_helper.h
  2660. * src/download_helper.cc
  2661. * src/magnet.cc
  2662. * src/magnet.h
  2663. * test/BittorrentHelperTest.cc
  2664. * test/MagnetTest.cc
  2665. * test/Makefile.am
  2666. * test/ProtocolDetectorTest.cc
  2667. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Use hton64
  2669. * src/base32.cc
  2670. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2671. Added Base32 encoded BitTorrent Magnet Link support.
  2672. * src/Makefile.am
  2673. * src/base32.cc
  2674. * src/base32.h
  2675. * src/bittorrent_helper.cc
  2676. * test/Base32Test.cc
  2677. * test/BittorrentHelperTest.cc
  2678. * test/Makefile.am
  2679. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2681. supported yet. Fixed typo in method name in RequestGroup. In
  2682. metadataGetMode, don't show "Your share ratio was ..." message.
  2683. * src/DefaultBtInteractive.cc
  2684. * src/DefaultBtInteractive.h
  2685. * src/DownloadHandlerFactory.cc
  2686. * src/DownloadHandlerFactory.h
  2687. * src/HandshakeExtensionMessage.cc
  2688. * src/Makefile.am
  2689. * src/Metalink2RequestGroup.cc
  2690. * src/PeerInteractionCommand.cc
  2691. * src/RequestGroup.cc
  2692. * src/RequestGroup.h
  2693. * src/UTMetadataPostDownloadHandler.cc
  2694. * src/UTMetadataPostDownloadHandler.h
  2695. * src/download_helper.cc
  2696. * test/HandshakeExtensionMessageTest.cc
  2697. * test/Makefile.am
  2698. * test/UTMetadataPostDownloadHandlerTest.cc
  2699. * test/UTMetadataRejectExtensionMessageTest.cc
  2700. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. In metadataGetMode, don't show SEEDING.
  2702. * src/ConsoleStatCalc.cc
  2703. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2704. Fixed ut_metadata data handling. Implemented
  2705. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2706. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2707. metadata_size is received.
  2708. * src/DefaultExtensionMessageFactory.cc
  2709. * src/DefaultExtensionMessageFactory.h
  2710. * src/HandshakeExtensionMessage.cc
  2711. * src/HandshakeExtensionMessage.h
  2712. * src/UTMetadataDataExtensionMessage.cc
  2713. * src/UTMetadataDataExtensionMessage.h
  2714. * src/UTMetadataRequestExtensionMessage.cc
  2715. * src/UTMetadataRequestFactory.cc
  2716. * src/UTMetadataRequestFactory.h
  2717. * src/UTMetadataRequestTracker.cc
  2718. * src/UTMetadataRequestTracker.h
  2719. * test/DefaultExtensionMessageFactoryTest.cc
  2720. * test/HandshakeExtensionMessageTest.cc
  2721. * test/MockBtMessage.h
  2722. * test/UTMetadataDataExtensionMessageTest.cc
  2723. * test/UTMetadataRequestExtensionMessageTest.cc
  2724. * test/UTMetadataRequestFactoryTest.cc
  2725. * test/UTMetadataRequestTrackerTest.cc
  2726. * test/extension_message_test_helper.h
  2727. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. Drop connection if ut_metadata reject message is received.
  2729. * src/UTMetadataRejectExtensionMessage.cc
  2730. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2732. get high enough in that mode.
  2733. * src/ActivePeerConnectionCommand.cc
  2734. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Added BitTorrent magnet link support to ProtocolDetector.
  2736. * src/ProtocolDetector.cc
  2737. * src/ProtocolDetector.h
  2738. * test/ProtocolDetectorTest.cc
  2739. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Don't inject validator into BtMessage in metadataGetMode because
  2741. most of the checks depends on the total length of download but it
  2742. is unknown. Delegate metadataGetMode to BtMessage.
  2743. * src/DefaultBtMessageFactory.cc
  2744. * src/DefaultBtMessageFactory.h
  2745. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2746. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2747. * src/DefaultPieceStorage.h
  2748. * src/PieceStorage.h
  2749. * src/UnknownLengthPieceStorage.h
  2750. * test/MockPieceStorage.h
  2751. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Added markTotalLengthIsKnown().
  2753. * src/DownloadContext.h
  2754. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2756. missing. If metadata is missing, always use DHT when it is ready.
  2757. * src/BtSetup.cc
  2758. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. Added parseMagnetLink(). Hex encoded info hash is supported.
  2760. Base32 encoded info hash is not supported yet.
  2761. * src/bittorrent_helper.cc
  2762. * src/bittorrent_helper.h
  2763. * test/BittorrentHelperTest.cc
  2764. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2765. Added FromHex()
  2766. * src/util.cc
  2767. * src/util.h
  2768. * test/UtilTest.cc
  2769. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2770. Added _metadataGetMode member variable. It toggles the action when
  2771. messages are received: usually they almost do nothing if
  2772. _metadataGetMode is true.
  2773. * src/AbstractBtMessage.cc
  2774. * src/AbstractBtMessage.h
  2775. * src/BtAllowedFastMessage.cc
  2776. * src/BtBitfieldMessage.cc
  2777. * src/BtCancelMessage.cc
  2778. * src/BtChokeMessage.cc
  2779. * src/BtHaveAllMessage.cc
  2780. * src/BtHaveMessage.cc
  2781. * src/BtInterestedMessage.cc
  2782. * src/BtNotInterestedMessage.cc
  2783. * src/BtPieceMessage.cc
  2784. * src/BtRejectMessage.cc
  2785. * src/BtRequestMessage.cc
  2786. * src/BtUnchokeMessage.cc
  2787. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Added bencode::decode overload functions. They have extra argument
  2789. 'end', passed by reference. 'end' points to the beyond the last
  2790. position of data used in decoding process.
  2791. * src/bencode.cc
  2792. * src/bencode.h
  2793. * test/BencodeTest.cc
  2794. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2795. Initial support of Extension for Peers to Send Metadata
  2796. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2797. metadata from swarm.
  2798. * src/BtConstants.h
  2799. * src/DefaultBtInteractive.cc
  2800. * src/DefaultExtensionMessageFactory.cc
  2801. * src/DefaultExtensionMessageFactory.h
  2802. * src/ExtensionMessage.h
  2803. * src/ExtensionMessageRegistry.h
  2804. * src/HandshakeExtensionMessage.cc
  2805. * src/HandshakeExtensionMessage.h
  2806. * src/Makefile.am
  2807. * src/PeerConnection.h
  2808. * src/PeerInteractionCommand.cc
  2809. * src/UTMetadataDataExtensionMessage.cc
  2810. * src/UTMetadataDataExtensionMessage.h
  2811. * src/UTMetadataExtensionMessage.cc
  2812. * src/UTMetadataExtensionMessage.h
  2813. * src/UTMetadataRejectExtensionMessage.cc
  2814. * src/UTMetadataRejectExtensionMessage.h
  2815. * src/UTMetadataRequestExtensionMessage.cc
  2816. * src/UTMetadataRequestExtensionMessage.h
  2817. * src/bittorrent_helper.cc
  2818. * src/bittorrent_helper.h
  2819. * test/BittorrentHelperTest.cc
  2820. * test/DefaultExtensionMessageFactoryTest.cc
  2821. * test/HandshakeExtensionMessageTest.cc
  2822. * test/Makefile.am
  2823. * test/UTMetadataDataExtensionMessageTest.cc
  2824. * test/UTMetadataRejectExtensionMessageTest.cc
  2825. * test/UTMetadataRequestExtensionMessageTest.cc
  2826. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Cancel segment in prepareForRetry() because there is a chance that
  2828. the command has segments.
  2829. * src/CreateRequestCommand.cc
  2830. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Fixed the bug that slow server is not knocked down in favor of
  2832. faster one.
  2833. * src/AbstractCommand.cc
  2834. * src/DefaultPieceStorage.cc
  2835. * src/DefaultPieceStorage.h
  2836. * src/PieceStorage.h
  2837. * src/UnknownLengthPieceStorage.cc
  2838. * src/UnknownLengthPieceStorage.h
  2839. * test/MockPieceStorage.h
  2840. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2841. Fixed the bug that Request object is not added to
  2842. _inFlightRequests in findFasterRequest().
  2843. * src/FileEntry.cc
  2844. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2845. Changed the strategry of how to increase the number of outstanding
  2846. requests. Now the number is doubled if there are no outstanding
  2847. requests after receiving messages.
  2848. * src/BtConstants.h
  2849. * src/DefaultBtInteractive.cc
  2850. * src/DefaultBtInteractive.h
  2851. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. Check socket for reading if there are outstanding requests.
  2853. * src/PeerInteractionCommand.cc
  2854. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2855. Moved frequently called methods to header file so they get
  2856. inlined.
  2857. * src/RequestSlot.cc
  2858. * src/RequestSlot.h
  2859. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2860. Copied in_addr instead of just casting from char* which might
  2861. violate strict aliasing rules.
  2862. * src/AsyncNameResolver.cc
  2863. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Use dynamic_pointer_cast
  2865. * test/BtPieceMessageTest.cc
  2866. * test/BtRequestMessageTest.cc
  2867. * test/DefaultBtRequestFactoryTest.cc
  2868. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Added testSetUrl20()
  2870. * test/RequestTest.cc
  2871. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2872. Code cleanup
  2873. * src/bittorrent_helper.cc
  2874. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. Use C++ style cast
  2876. * src/AsyncNameResolver.cc
  2877. * src/Base64.h
  2878. * src/BtBitfieldMessage.cc
  2879. * src/BtHandshakeMessage.cc
  2880. * src/DefaultBtMessageFactory.cc
  2881. * src/DefaultBtProgressInfoFile.cc
  2882. * src/EpollEventPoll.cc
  2883. * src/ExpatMetalinkProcessor.cc
  2884. * src/IteratableChecksumValidator.cc
  2885. * src/IteratableChunkChecksumValidator.cc
  2886. * src/MessageDigestHelper.cc
  2887. * src/Platform.cc
  2888. * src/RequestGroupMan.cc
  2889. * src/SingleFileAllocationIterator.cc
  2890. * src/Sqlite3MozCookieParser.cc
  2891. * src/XML2SAXMetalinkProcessor.cc
  2892. * src/Xml2XmlRpcRequestProcessor.cc
  2893. * src/util.cc
  2894. * src/util.h
  2895. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Fixed integer potential alignment problem.
  2897. * src/bitfield.h
  2898. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2899. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2900. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2901. include file ordering.
  2902. * src/PeerListProcessor.h
  2903. * src/bittorrent_helper.cc
  2904. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2905. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2906. * src/Request.cc
  2907. * src/util.cc
  2908. * src/util.h
  2909. * test/RequestTest.cc
  2910. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Rewritten util::uitos()
  2912. * src/util.h
  2913. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2914. Code cleanup
  2915. * src/Request.cc
  2916. * src/Request.h
  2917. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Rewritten Request::parseUrl()
  2919. * src/Request.cc
  2920. * test/RequestTest.cc
  2921. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. Removed unused macro SAFE_CHARS
  2923. * src/Request.cc
  2924. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Updated doc
  2926. * src/DHTRoutingTableDeserializer.cc
  2927. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Release 1.6.3
  2929. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2930. Removed unused function.
  2931. * test/DHTPeerAnnounceStorageTest.cc
  2932. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Only decrement cols if cols > 0
  2934. * src/ConsoleStatCalc.cc
  2935. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2936. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2937. translations. Thanks to all translators.
  2938. * po/ca.po
  2939. * po/fr.po
  2940. * po/it.po
  2941. * po/ja.po
  2942. * po/pl.po
  2943. * po/ru.po
  2944. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2945. Updated translation template
  2946. * po
  2947. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2948. Fixed compile error without ssl library.
  2949. * src/util.cc
  2950. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2951. Logged received nodes in get_peers reply message.
  2952. * src/DHTAbstractNodeLookupTask.cc
  2953. * src/DHTAbstractNodeLookupTask.h
  2954. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2955. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2956. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2957. * src/DHTMessageDispatcherImpl.cc
  2958. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Don't reuse URI if Request pool is not empty.
  2960. * src/CreateRequestCommand.cc
  2961. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2963. receive get_peers request for torrent which the client is now
  2964. downloading.
  2965. * src/BtSetup.cc
  2966. * src/DHTPeerAnnounceEntry.cc
  2967. * src/DHTPeerAnnounceEntry.h
  2968. * src/DHTPeerAnnounceStorage.cc
  2969. * src/DHTPeerAnnounceStorage.h
  2970. * src/RequestGroup.cc
  2971. * test/DHTPeerAnnounceEntryTest.cc
  2972. * test/DHTPeerAnnounceStorageTest.cc
  2973. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Fixed the bug that in Windows environment new blank line is
  2975. inserted when console readout is updated.
  2976. * src/ConsoleStatCalc.cc
  2977. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. Throw exception if binding listening port is failed. Removed
  2979. RequestGroupMan::getInitialCommand(). Use
  2980. fillRequestGroupFromReserver() instead. Delete commands for
  2981. RequestGroup which has errors when it is being added.
  2982. * src/BtSetup.cc
  2983. * src/DownloadEngine.cc
  2984. * src/DownloadEngine.h
  2985. * src/DownloadEngineFactory.cc
  2986. * src/MultiUrlRequestInfo.cc
  2987. * src/RequestGroupMan.cc
  2988. * src/RequestGroupMan.h
  2989. * test/RequestGroupManTest.cc
  2990. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2991. Fixed the bug that when downloading more than one torrent,
  2992. listening port is not reported properly to tracker for 2nd or
  2993. later torrents.
  2994. * src/BtSetup.cc
  2995. * src/PeerListenCommand.cc
  2996. * src/PeerListenCommand.h
  2997. * src/RequestGroup.cc
  2998. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2999. Bump up version number to 1.6.3
  3000. * configure.ac
  3001. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3002. Removed Util.cc from POTFILES.in
  3003. * po/POTFILES.in
  3004. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3005. Updated man page for previous change.
  3006. * doc/aria2c.1.txt
  3007. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3008. If user name is embedded but password is missing in URI, first
  3009. resolve password using .netrc. If password is found in .netrc,
  3010. then use it as password. If not, use the password specified in
  3011. --ftp-passwd.
  3012. * src/AuthConfigFactory.cc
  3013. * src/Request.cc
  3014. * src/Request.h
  3015. * test/AuthConfigFactoryTest.cc
  3016. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Fixed typo
  3018. * doc/aria2c.1.txt
  3019. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3020. Fixed typo
  3021. * src/usage_text.h
  3022. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3023. Added missing bitfield.cc
  3024. * src/bitfield.cc
  3025. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3026. Renamed Util.{cc,h} as util.{cc,h}
  3027. * src/Util.cc
  3028. * src/Util.h
  3029. * src/util.cc
  3030. * src/util.h
  3031. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Moved static functions in Util class to namespace util.
  3033. * src
  3034. * test
  3035. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3036. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  3037. Moved generateRandomKey to bittorrent_helper.cc.
  3038. * src/DHTBucket.cc
  3039. * src/DHTGetPeersMessage.cc
  3040. * src/DHTGetPeersReplyMessage.cc
  3041. * src/DHTMessage.cc
  3042. * src/DHTNode.cc
  3043. * src/DHTTokenTracker.cc
  3044. * src/DHTUtil.cc: Removed.
  3045. * src/DHTUtil.h: Removed.
  3046. * src/Makefile.am
  3047. * src/Util.cc
  3048. * src/Util.h
  3049. * src/bitfield.h
  3050. * src/bittorrent_helper.cc
  3051. * src/bittorrent_helper.h
  3052. * test/ARC4Test.cc
  3053. * test/BNodeTest.cc
  3054. * test/DHTAnnouncePeerMessageTest.cc
  3055. * test/DHTAnnouncePeerReplyMessageTest.cc
  3056. * test/DHTFindNodeMessageTest.cc
  3057. * test/DHTFindNodeReplyMessageTest.cc
  3058. * test/DHTGetPeersMessageTest.cc
  3059. * test/DHTGetPeersReplyMessageTest.cc
  3060. * test/DHTPingMessageTest.cc
  3061. * test/DHTPingReplyMessageTest.cc
  3062. * test/DHTTokenTrackerTest.cc
  3063. * test/DHTUtilTest.cc: Removed.
  3064. * test/Makefile.am
  3065. * test/UtilTest.cc
  3066. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Removed the call to trim() because trim() is called for each
  3068. element in split().
  3069. * src/CookieParser.cc
  3070. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3071. Replaced Util::slice() with split()
  3072. * src/AbstractCommand.cc
  3073. * src/CookieParser.cc
  3074. * src/File.cc
  3075. * src/HttpHeaderProcessor.cc
  3076. * src/HttpRequest.cc
  3077. * src/Metalink2RequestGroup.cc
  3078. * src/MetalinkParserController.cc
  3079. * src/Netrc.cc
  3080. * src/NsCookieParser.cc
  3081. * src/ParameterizedStringParser.cc
  3082. * src/ServerStatMan.cc
  3083. * src/UriListParser.cc
  3084. * src/Util.cc
  3085. * src/Util.h
  3086. * src/bittorrent_helper.cc
  3087. * test/UtilTest.cc
  3088. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. Use request->getDir() instead of "/" for embedded user/pass in
  3090. URI.
  3091. * src/AuthConfigFactory.cc
  3092. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3093. Fixed wrong insertion point for BasicCred.
  3094. * src/AuthConfigFactory.cc
  3095. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3096. Allowed non-regular file in LocalFilePathOptionHandler
  3097. * src/OptionHandlerImpl.h
  3098. * src/message.h
  3099. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3100. Fixed the bug that Netrc::parse() cannot recognize comment line.
  3101. * src/Netrc.cc
  3102. * src/Util.h
  3103. * test/NetrcTest.cc
  3104. * test/sample.netrc
  3105. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3106. Fixed typo
  3107. * src/BtDependency.cc
  3108. * src/BtRejectMessage.cc
  3109. * src/FtpConnection.cc
  3110. * src/HttpHeaderProcessor.h
  3111. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3112. Fixed lintian report in man page
  3113. * doc/aria2c.1.txt
  3114. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3115. Release 1.6.2
  3116. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Updated Ukrainian translation. Thanks to all translators.
  3118. * po/uk.po
  3119. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3120. Updated translation template
  3121. * po
  3122. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3123. Bump up version number to 1.6.2
  3124. * configure.ac
  3125. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3126. Updated licence message in -v output.
  3127. * src/version_usage.cc
  3128. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3129. Replaced aria2 with aria2c in help message.
  3130. * src/version_usage.cc
  3131. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3132. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  3133. * src/version_usage.cc
  3134. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3135. Quoted localedir
  3136. * src/Makefile.am
  3137. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  3139. utime. Check header for utime.h.
  3140. * configure.ac
  3141. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3142. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  3143. * configure.ac
  3144. * src/daemon.cc
  3145. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3146. Don't set localedir manually. Leave it to autoconf.
  3147. * configure.ac
  3148. * src/Makefile.am
  3149. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3150. Added --install to ACLOCAL_AMFLAGS.
  3151. Removed m4 from SUBDIRS.
  3152. Updated automake 1.11 and autoconf 2.64.
  3153. Replaced some obsolute macros with new one.
  3154. * Makefile.am
  3155. * configure.ac
  3156. * m4/aria2_arg.m4
  3157. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3158. Removed Makefile.am in m4 directory.
  3159. * configure.ac
  3160. * m4/ChangeLog
  3161. * m4/Makefile.am
  3162. * m4/Makefile.in
  3163. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3164. Removed unused m4 macros.
  3165. * m4/intldir.m4
  3166. * m4/inttypes.m4
  3167. * m4/isc-posix.m4
  3168. * m4/libgnutls-extra.m4
  3169. * m4/ulonglong.m4
  3170. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3171. Fixed the bug that causes segmentation fault if
  3172. req->getCurrentUrl() contains printf formatting characters such as
  3173. %d. The statement that causes this bug is useless and removed.
  3174. * src/AbstractCommand.cc
  3175. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3176. * Release 1.6.1
  3177. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. Updated Simplified Chinese translation. Thanks to translators.
  3179. * po/zh_CN.po
  3180. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3181. Updated translation template
  3182. * po
  3183. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3184. Bump up version number to 1.6.1
  3185. * configure.ac
  3186. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3187. Changed interval from 120 to 60 for dropping inactive peer.
  3188. * src/DefaultBtInteractive.cc
  3189. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3190. Updated man page for --user-agent and --peer-id-prefix option.
  3191. * doc/aria2c.1.txt
  3192. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3193. Code clean up
  3194. * src/BtPostDownloadHandler.cc
  3195. * src/ContentTypeRequestGroupCriteria.cc
  3196. * src/ContentTypeRequestGroupCriteria.h
  3197. * src/DownloadHandlerConstants.cc
  3198. * src/DownloadHandlerConstants.h
  3199. * src/DownloadHandlerFactory.cc
  3200. * src/MetalinkPostDownloadHandler.cc
  3201. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3202. Don't save control file when aria2 exists while checking piece
  3203. hash(behavior of -V option). If control file doesn't exist when
  3204. aria2 launched, the completed length in saved control file will be
  3205. 0 byte and this confuses user. disableSaveControlFile() is called
  3206. in RequestGroup::processCheckIntegrityEntry().
  3207. enableSaveControlFile() will be called after hash checking is
  3208. done. See CheckIntegrityCommand.
  3209. * src/CheckIntegrityCommand.cc
  3210. * src/RequestGroup.cc
  3211. * src/RequestGroup.h
  3212. * src/RequestGroupMan.cc
  3213. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3214. Included version number in Peer ID and client version. Peer ID
  3215. now starts with "aria2/VERSION-", where VERSION is
  3216. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  3217. * src/DefaultBtInteractive.cc
  3218. * src/OptionHandlerFactory.cc
  3219. * src/bittorrent_helper.cc
  3220. * src/bittorrent_helper.h
  3221. * src/main.cc
  3222. * src/usage_text.h
  3223. * test/BittorrentHelperTest.cc
  3224. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3225. Fixed memory leak.
  3226. * src/DownloadCommand.cc
  3227. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3228. Removed server, port, user and passwd key from options before
  3229. XMLRPC::Client.call since they are not options of aria2.
  3230. * doc/xmlrpc/aria2mon
  3231. * doc/xmlrpc/aria2rpc
  3232. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3233. Included version number in user-agent string.
  3234. * src/OptionHandlerFactory.cc
  3235. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3236. Fixed the bug that the option values changed by XML-RPC
  3237. method(changeOption and changeGlobalOption) are overwritten to the
  3238. previous value by the next these request which doesn't contain
  3239. that option value. Supporse max-download-limit is initially 0. You
  3240. changed this value to 100K by changeOption. Then you issue
  3241. changeOption request to change max-upload-limit to 50K. This
  3242. second request doesn't contain xml-download-limit, so it is back
  3243. to initial value, 0. Another improvement is that exception is
  3244. thrown when changeOption and changeGlobalOption request contains
  3245. option name which doesn't allowed in each request.
  3246. * src/DownloadEngine.h
  3247. * src/XmlRpcMethod.cc
  3248. * src/XmlRpcMethod.h
  3249. * src/XmlRpcMethodImpl.cc
  3250. * src/download_helper.cc
  3251. * src/download_helper.h
  3252. * test/XmlRpcMethodTest.cc
  3253. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. Added missing MetalinkParserStateImpl.{cc,h}
  3255. * src/MetalinkParserStateImpl.cc
  3256. * src/MetalinkParserStateImpl.h
  3257. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3258. Put all MetalinkParserState subclasses into
  3259. MetalinkParserStateImpl.cc. Use stack to track element structure.
  3260. * src/FileMetalinkParserState.cc: Removed
  3261. * src/FileMetalinkParserState.h: Removed
  3262. * src/FilesMetalinkParserState.cc: Removed
  3263. * src/FilesMetalinkParserState.h: Removed
  3264. * src/FinMetalinkParserState.cc: Removed
  3265. * src/FinMetalinkParserState.h: Removed
  3266. * src/HashMetalinkParserState.cc: Removed
  3267. * src/HashMetalinkParserState.h: Removed
  3268. * src/InitialMetalinkParserState.cc: Removed
  3269. * src/InitialMetalinkParserState.h: Removed
  3270. * src/LanguageMetalinkParserState.cc: Removed
  3271. * src/LanguageMetalinkParserState.h: Removed
  3272. * src/Makefile.am
  3273. * src/MetalinkMetalinkParserState.cc: Removed
  3274. * src/MetalinkMetalinkParserState.h: Removed
  3275. * src/MetalinkParserState.h
  3276. * src/MetalinkParserStateMachine.cc
  3277. * src/MetalinkParserStateMachine.h
  3278. * src/OSMetalinkParserState.cc: Removed
  3279. * src/OSMetalinkParserState.h: Removed
  3280. * src/PieceHashMetalinkParserState.cc: Removed
  3281. * src/PieceHashMetalinkParserState.h: Removed
  3282. * src/PiecesMetalinkParserState.cc: Removed
  3283. * src/PiecesMetalinkParserState.h: Removed
  3284. * src/ResourcesMetalinkParserState.cc: Removed
  3285. * src/ResourcesMetalinkParserState.h: Removed
  3286. * src/SignatureMetalinkParserState.cc: Removed
  3287. * src/SignatureMetalinkParserState.h: Removed
  3288. * src/SizeMetalinkParserState.cc: Removed
  3289. * src/SizeMetalinkParserState.h: Removed
  3290. * src/SkipTagMetalinkParserState.cc: Removed
  3291. * src/SkipTagMetalinkParserState.h: Removed
  3292. * src/URLMetalinkParserState.cc: Removed
  3293. * src/URLMetalinkParserState.h: Removed
  3294. * src/VerificationMetalinkParserState.cc: Removed
  3295. * src/VerificationMetalinkParserState.h: Removed
  3296. * src/VersionMetalinkParserState.cc: Removed
  3297. * src/VersionMetalinkParserState.h: Removed
  3298. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3299. Move all functions in PeerMessageUtil to bittorrent_helper.
  3300. * src/BtBitfieldMessage.cc
  3301. * src/BtBitfieldMessageValidator.h
  3302. * src/BtExtendedMessage.cc
  3303. * src/BtHandshakeMessage.cc
  3304. * src/BtHandshakeMessageValidator.h
  3305. * src/BtPieceMessage.cc
  3306. * src/BtPieceMessageValidator.h
  3307. * src/BtPortMessage.cc
  3308. * src/DHTFindNodeReplyMessage.cc
  3309. * src/DHTGetPeersReplyMessage.cc
  3310. * src/DHTMessageFactoryImpl.cc
  3311. * src/DHTRoutingTableDeserializer.cc
  3312. * src/DHTRoutingTableSerializer.cc
  3313. * src/DHTTokenTracker.cc
  3314. * src/DefaultBtMessageFactory.cc
  3315. * src/IndexBtMessage.cc
  3316. * src/IndexBtMessage.h
  3317. * src/IndexBtMessageValidator.h
  3318. * src/Makefile.am
  3319. * src/PeerMessageUtil.cc: Removed.
  3320. * src/PeerMessageUtil.h: Removed.
  3321. * src/RangeBtMessage.cc
  3322. * src/RangeBtMessage.h
  3323. * src/RangeBtMessageValidator.h
  3324. * src/UTPexExtensionMessage.cc
  3325. * src/ZeroBtMessage.cc
  3326. * src/ZeroBtMessage.h
  3327. * src/bittorrent_helper.cc
  3328. * src/bittorrent_helper.h
  3329. * test/BittorrentHelperTest.cc
  3330. * test/BtAllowedFastMessageTest.cc
  3331. * test/BtBitfieldMessageTest.cc
  3332. * test/BtCancelMessageTest.cc
  3333. * test/BtChokeMessageTest.cc
  3334. * test/BtExtendedMessageTest.cc
  3335. * test/BtHandshakeMessageTest.cc
  3336. * test/BtHaveAllMessageTest.cc
  3337. * test/BtHaveMessageTest.cc
  3338. * test/BtHaveNoneMessageTest.cc
  3339. * test/BtInterestedMessageTest.cc
  3340. * test/BtNotInterestedMessageTest.cc
  3341. * test/BtPieceMessageTest.cc
  3342. * test/BtPortMessageTest.cc
  3343. * test/BtRejectMessageTest.cc
  3344. * test/BtRequestMessageTest.cc
  3345. * test/BtSuggestPieceMessageTest.cc
  3346. * test/BtUnchokeMessageTest.cc
  3347. * test/DHTFindNodeReplyMessageTest.cc
  3348. * test/DHTGetPeersReplyMessageTest.cc
  3349. * test/DHTMessageFactoryImplTest.cc
  3350. * test/DHTRoutingTableDeserializerTest.cc
  3351. * test/DHTRoutingTableSerializerTest.cc
  3352. * test/DefaultBtMessageFactoryTest.cc
  3353. * test/DefaultExtensionMessageFactoryTest.cc
  3354. * test/Makefile.am
  3355. * test/PeerListProcessorTest.cc
  3356. * test/PeerMessageUtilTest.cc: Removed.
  3357. * test/UTPexExtensionMessageTest.cc
  3358. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3359. Limit the size of values list when sending get_peers reply.
  3360. * src/DHTGetPeersReplyMessage.cc
  3361. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3362. Updated banner
  3363. * doc/xmlrpc/aria2rpc
  3364. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3365. Added missing help message for remove command.
  3366. * doc/xmlrpc/aria2rpc
  3367. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3368. Generated configure and config.h.in
  3369. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  3370. Add check for fork(), which is missing on MinGW
  3371. * src/daemon.cc
  3372. * configure.ac
  3373. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3374. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  3375. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  3376. Util::httpGMT().
  3377. * src/Util.cc
  3378. * src/Util.h
  3379. * test/UtilTest.cc
  3380. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3381. * Release 1.6.0
  3382. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3383. Fixed a path to xmlrpc/README.txt
  3384. * doc/Makefile.am
  3385. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3386. Added XML-RPC in -v Configuration output.
  3387. * src/FeatureConfig.cc
  3388. * src/FeatureConfig.h
  3389. * test/FeatureConfigTest.cc
  3390. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3391. Updated Bulgarian, Russian, Slovak and Japanese
  3392. translations. Thanks to all translators.
  3393. * po/bg.po
  3394. * po/ja.po
  3395. * po/ru.po
  3396. * po/sk.po
  3397. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3398. Removed --retry-wait option from aria2rpc
  3399. * doc/xmlrpc/aria2rpc
  3400. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3401. Removed --retry-wait option from man page.
  3402. * doc/aria2c.1.txt
  3403. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3404. Removed --retry-wait option since the current architecture doesn't
  3405. allow sleep for particular URI.
  3406. * src/AbstractCommand.cc
  3407. * src/OptionHandlerFactory.cc
  3408. * src/download_helper.cc
  3409. * src/prefs.cc
  3410. * src/prefs.h
  3411. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3412. Removed Retry-After header support. Since the current architecture
  3413. doesn't allow sleep for particular URI.
  3414. * src/HttpSkipResponseCommand.cc
  3415. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3416. Updated the help message for --daemon option.
  3417. * doc/aria2c.1.txt
  3418. * src/usage_text.h
  3419. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3420. Added our own daemon() function for systems which desn't have
  3421. daemon(3).
  3422. * configure.ac
  3423. * src/Makefile.am
  3424. * src/daemon.cc
  3425. * src/daemon.h
  3426. * src/option_processing.cc
  3427. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3428. Simplified File::getCurrentDir()
  3429. * src/File.cc
  3430. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3431. Use exit() instead of _exit
  3432. * src/RequestGroupMan.cc
  3433. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3434. Replaced "CATEGORY" with "TAGS".
  3435. * src/usage_text.h
  3436. * doc/aria2c.1.txt
  3437. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3438. Updated the help message for --help option.
  3439. * src/usage_text.h
  3440. * doc/aria2c.1.txt
  3441. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3442. Updated man page for added help tags.
  3443. * doc/aria2c.1.txt
  3444. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3445. Added help category #file. Added #file tag to the options related
  3446. to downloaded file.
  3447. * src/OptionHandlerFactory.cc
  3448. * src/help_tags.h
  3449. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3450. Added help categories: #cookie and #hook. Added #https tag to
  3451. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  3452. * src/OptionHandlerFactory.cc
  3453. * src/help_tags.h
  3454. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3455. Made MSG_NOT_FILE translatable.
  3456. * src/message.h
  3457. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3458. Updated man page for --help option.
  3459. * doc/aria2c.1.txt
  3460. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3461. Updated doc.
  3462. * src/XmlRpcMethod.h
  3463. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3464. Help category now starts with "#" to distinguish a category from
  3465. keyword search. For example, "http" categroy is now "#http". You
  3466. can type "--help=#http" to get explanation of options related to
  3467. http. If '#' is omitted, then the argument is treated as a keyword
  3468. and aria2 searches options whose name includes the keyword and
  3469. print matched ones. For example, "--help=http" will show options
  3470. whose name includes "http".
  3471. * src/OptionHandlerFactory.cc
  3472. * src/help_tags.h
  3473. * src/usage_text.h
  3474. * src/version_usage.cc
  3475. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Documented missing experimental tag and newly added xml-rpc tag in
  3477. man page.
  3478. * doc/aria2c.1.txt
  3479. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3480. Added xml-rpc help tag. Tagged xml-rpc related options with
  3481. xml-rpc tag.
  3482. * src/OptionHandlerFactory.cc
  3483. * src/help_tags.h
  3484. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3485. Updated message when a path is not a file. Updated common message
  3486. for wrong option.
  3487. * src/OptionHandlerException.cc
  3488. * src/message.h
  3489. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3490. Use File::isFile() instead of File::exists(). Updated message when
  3491. a path is not a file.
  3492. * src/OptionHandlerImpl.cc
  3493. * src/message.h
  3494. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3495. Fixed the bug that server performence profile is not updated when
  3496. aria2c was terminated by emergency shutdown.
  3497. * src/TrackerWatcherCommand.cc
  3498. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3499. Use LocalFilePathOptionHandler for -T and -M option.
  3500. Updated message of MSG_FILE_NOT_EXIST.
  3501. * src/OptionHandlerFactory.cc
  3502. * src/message.h
  3503. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. Added LocalFilePathOptionHandler which check whether the specified
  3505. file path does exist or not.
  3506. * src/OptionHandlerImpl.cc
  3507. * src/message.h
  3508. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3509. Updated wiki page URI.
  3510. * README
  3511. * doc/aria2c.1.txt
  3512. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3513. Added README.txt for xmlrpc directory.
  3514. * doc/Makefile.am
  3515. * doc/xmlrpc/README.txt
  3516. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3517. Bump up version number to 1.6.0.
  3518. * configure.ac
  3519. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3520. Added XML-RPC client scripts written in ruby.
  3521. * doc/Makefile.am
  3522. * doc/xmlrpc/aria2mon
  3523. * doc/xmlrpc/aria2rpc
  3524. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3525. Added support for IPv6 literal address in URI. Now aria2 can
  3526. handle URI such as http://[::1]/
  3527. * src/HttpRequest.cc
  3528. * src/HttpRequest.h
  3529. * src/Request.cc
  3530. * src/Request.h
  3531. * test/HttpRequestTest.cc
  3532. * test/OptionHandlerTest.cc
  3533. * test/RequestTest.cc
  3534. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3535. Fixed the bug that HTTP request header for XML-RPC request is not
  3536. parsed properly.
  3537. * src/HttpHeader.cc
  3538. * src/HttpHeaderProcessor.cc
  3539. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3540. Fixed the bug that XML-RPC authorization might be done before HTTP
  3541. request header is fully received.
  3542. * src/HttpServerCommand.cc
  3543. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3544. Documented --xml-rpc-listen-all option in man page.
  3545. * doc/aria2c.1.txt
  3546. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3547. Added --xml-rpc-listen-all option. If true is given to this
  3548. option, aria2 listens incoming XML-RPC requests on all network
  3549. interfaces. If false is given, listens only on local loopback
  3550. interface. The default value is false.
  3551. * src/HttpListenCommand.cc
  3552. * src/OptionHandlerFactory.cc
  3553. * src/SocketCore.cc
  3554. * src/SocketCore.h
  3555. * src/prefs.cc
  3556. * src/prefs.h
  3557. * src/usage_text.h
  3558. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. * Release 1.5.2
  3560. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3561. Updated Ukrainian and Russian translations. Thanks to all
  3562. translators.
  3563. * po/ru.po
  3564. * po/uk.po
  3565. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3566. Bump up version number to 1.5.2
  3567. * configure.ac
  3568. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3569. Get comment, comment.utf-8, created by and creation date from
  3570. .torrent file and print them in -S output.
  3571. * src/bittorrent_helper.cc
  3572. * src/bittorrent_helper.h
  3573. * test/BittorrentHelperTest.cc
  3574. * test/test.torrent
  3575. * test/utf8.torrent
  3576. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3577. Show exact file size along in -S option output.
  3578. * src/Util.h
  3579. * src/bittorrent_helper.cc
  3580. * test/UtilTest.cc
  3581. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. Avoided unnecessary memory allocation in
  3583. BitfieldMan::getCompletedLength().
  3584. * src/BitfieldMan.cc
  3585. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3586. Fixed the bug that download fails if
  3587. SocketCore::establishConnection() throws exception and aria2
  3588. doesn't try another address.
  3589. * src/AbstractCommand.cc
  3590. * src/InitiateConnectionCommand.cc
  3591. * src/message.h
  3592. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3593. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3594. detected properly.
  3595. * m4/sqlite3.m4
  3596. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3597. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  3598. because it causes compile error if PARAMS macro is defined.
  3599. * src/XmlRpcElements.cc
  3600. * src/XmlRpcElements.h
  3601. * src/XmlRpcRequestParserStateImpl.cc
  3602. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3603. * Release 1.5.1
  3604. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3605. Bump up version number to 1.5.1
  3606. * configure.ac
  3607. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3608. Fixed compile error without BitTorrent support
  3609. * src/DefaultBtProgressInfoFile.cc
  3610. * src/DownloadEngine.cc
  3611. * src/DownloadEngine.h
  3612. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3613. Added missing '=' in Download Results
  3614. * src/RequestGroupMan.cc
  3615. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3616. Fixed compiler warning
  3617. * src/DefaultBtProgressInfoFile.cc
  3618. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3619. Fixed compiler warning on 32bit systems.
  3620. * src/DownloadCommand.cc
  3621. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3622. Call flush from ServerStatMan::save()
  3623. * src/ServerStatMan.cc
  3624. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3625. Check stream status after file is opened.
  3626. * src/CookieStorage.cc
  3627. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3628. Rewritten Signature::save()
  3629. * src/Signature.cc
  3630. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3631. Rewritten RequestGroupMan::saveServerStat()
  3632. * src/RequestGroupMan.cc
  3633. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3634. Rewritten stream error handling
  3635. * src/DHTAutoSaveCommand.cc
  3636. * src/DHTRoutingTableDeserializer.cc
  3637. * src/DHTRoutingTableSerializer.cc
  3638. * src/DHTSetup.cc
  3639. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3640. Check stream status after file is opened.
  3641. * src/DefaultBtProgressInfoFile.cc
  3642. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Rewritten stream error handling
  3644. * src/DefaultBtProgressInfoFile.cc
  3645. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3646. Make sure that stream is closed before renaming file. Unit test
  3647. fails on mingw32 in the previous implementation.
  3648. * src/CookieStorage.cc
  3649. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3650. Fixed the unit test error without sqlite3
  3651. * test/CookieStorageTest.cc
  3652. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3653. Fixed the undefined reference error
  3654. * test/HttpResponseTest.cc
  3655. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. * Release 1.5.0
  3657. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3658. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3659. Ukrainian translations. Thanks to all translators.
  3660. * po/ru.po
  3661. * po/it.po
  3662. * po/da.po
  3663. * po/bg.po
  3664. * po/ja.po
  3665. * po/uk.po
  3666. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3667. Added missing src/Logger.cc
  3668. * src/Logger.cc
  3669. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3670. Rewritten Logger to avoiding constly virtual call.
  3671. * src/LogFactory.cc
  3672. * src/LogFactory.h
  3673. * src/Logger.h
  3674. * src/Makefile.am
  3675. * src/Makefile.in
  3676. * src/NullLogger.h: Removed.
  3677. * src/SimpleLogger.cc
  3678. * src/SimpleLogger.h
  3679. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3680. Updated doc
  3681. * src/main.cc
  3682. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3683. Updated debug log message
  3684. * src/AbstractCommand.cc
  3685. * src/message.h
  3686. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Avoid to create zombie process when commands specified in
  3688. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3689. X and NetBSD.
  3690. * src/main.cc
  3691. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3692. Fixed typo
  3693. * src/usage_text.h
  3694. * doc/aria2c.1.txt
  3695. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3696. Documented 'errorCode' of tellStatus in man page.
  3697. * doc/aria2c.1.txt
  3698. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3699. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3700. This key is only available for stopped/completed downloads and its
  3701. value is the error code defined in EXIT STATUS in man page.
  3702. * src/XmlRpcMethodImpl.cc
  3703. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3704. Fixed the bug that session download length is not updated when
  3705. PeerStat is not fastest one.
  3706. * src/SegmentMan.cc
  3707. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3708. Updated doc.
  3709. * doc/aria2c.1.txt
  3710. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3711. Updated doc.
  3712. * src/AbstractCommand.cc
  3713. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3714. Handle the case when DownloadContext has no FileEntry.
  3715. * src/XmlRpcMethodImpl.cc
  3716. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3717. Handle the situation where struct option.name is char *.
  3718. * configure.ac
  3719. * src/OptionParser.cc
  3720. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3721. Code cleanup
  3722. * src/AbstractCommand.cc
  3723. * src/DownloadCommand.cc
  3724. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3725. Use option of each download to create AuthConfig instead of global
  3726. option.
  3727. * src/AuthConfigFactory.cc
  3728. * src/AuthConfigFactory.h
  3729. * src/FtpNegotiationCommand.cc
  3730. * src/HttpRequest.cc
  3731. * src/HttpRequest.h
  3732. * src/HttpRequestCommand.cc
  3733. * src/HttpSkipResponseCommand.cc
  3734. * src/MultiUrlRequestInfo.cc
  3735. * test/AuthConfigFactoryTest.cc
  3736. * test/FtpConnectionTest.cc
  3737. * test/HttpRequestTest.cc
  3738. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3739. Don't call prepareForRetry(1) if all segments are ignored in
  3740. SegmentMan.
  3741. * src/AbstractCommand.cc
  3742. * src/BitfieldMan.cc
  3743. * src/BitfieldMan.h
  3744. * src/SegmentMan.cc
  3745. * src/SegmentMan.h
  3746. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Removed FileEntry::getAssociatedUris()
  3748. * src/FileEntry.h
  3749. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3750. Updated doc: TODO1.5 -> TODO
  3751. * src/FileEntry.cc
  3752. * src/HttpResponseCommand.cc
  3753. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3754. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3755. involved.
  3756. * src/RequestGroup.cc
  3757. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3758. Eliminated duplicated filterBitfield initialization code.
  3759. * src/BitfieldMan.cc
  3760. * src/BitfieldMan.h
  3761. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3763. relatively naive approach, though). For DownloadFailureException,
  3764. we handle the case when req is null properly.
  3765. * src/AbstractCommand.cc
  3766. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. Added function returning suffix of control file to
  3768. DefaultBtProgressInfoFile.
  3769. * src/DefaultBtProgressInfoFile.cc
  3770. * src/DefaultBtProgressInfoFile.h
  3771. * src/RequestGroup.cc
  3772. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3773. Documented getVersion in man page.
  3774. * doc/aria2c.1.txt
  3775. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3776. Documented type of offset and num for tellWaiting xml-rpc method.
  3777. * doc/aria2c.1.txt
  3778. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3779. Implemented getVersion xml-rpc method. This method returns struct
  3780. which has 2 key-value pairs: "version" key is associated to the
  3781. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3782. associated to the list of enabled features, such as "Async DNS",
  3783. "BitTorrent".
  3784. * src/FeatureConfig.h
  3785. * src/XmlRpcMethodFactory.cc
  3786. * src/XmlRpcMethodImpl.cc
  3787. * src/XmlRpcMethodImpl.h
  3788. * test/XmlRpcMethodTest.cc
  3789. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3790. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3791. for compatibility issue.
  3792. * src/SocketCore.cc
  3793. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Fixed compile error with openSSL
  3795. * src/bittorrent_helper.cc
  3796. * src/messageDigest.h
  3797. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3798. Removed bad code: setting certificate type priority to key
  3799. exchange priority.
  3800. * src/SocketCore.cc
  3801. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3802. Disconnect seeder if client is also in seed state.
  3803. * src/BtBitfieldMessage.cc
  3804. * src/BtHaveAllMessage.cc
  3805. * src/BtHaveMessage.cc
  3806. * src/message.h
  3807. * test/BtBitfieldMessageTest.cc
  3808. * test/BtHaveAllMessageTest.cc
  3809. * test/BtHaveMessageTest.cc
  3810. * test/MockPieceStorage.h
  3811. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3812. Keep CreateRequestCommand in queue when no segment is available so
  3813. that they can pick up pieces which slow BitTorrent peers are
  3814. downloading.
  3815. * src/AbstractCommand.cc
  3816. * src/CreateRequestCommand.cc
  3817. * src/CreateRequestCommand.h
  3818. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. --bt-stop-timeout now only checks download speed.
  3820. * src/BtStopDownloadCommand.cc
  3821. * src/BtStopDownloadCommand.h
  3822. * src/BtSetup.cc
  3823. * src/usage_text.h
  3824. * doc/aria2c.1.txt
  3825. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3826. Fixed compile error regarding BUFSIZE.
  3827. * src/DownloadCommand.cc
  3828. * src/DownloadCommand.h
  3829. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3830. Documented tellWaiting xml-rpc method in man page.
  3831. * doc/aria2c.1.txt
  3832. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3833. Bump up version number to 1.5.0
  3834. * configure.ac
  3835. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3836. Removed resolved TODO1.5
  3837. * src/AbstractCommand.cc
  3838. * src/DownloadCommand.cc
  3839. * src/RequestGroup.cc
  3840. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Release pooled and in-flight Request objectsand URIResult objects
  3842. in FileEntry after download completed.
  3843. * src/DownloadContext.cc
  3844. * src/DownloadContext.h
  3845. * src/FileEntry.cc
  3846. * src/FileEntry.h
  3847. * src/RequestGroup.cc
  3848. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3849. Set manual and source attribute in aria2c.1.txt
  3850. * doc/aria2c.1.txt
  3851. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3852. Documented that the default value of --use-head is 'false' in man
  3853. page.
  3854. * doc/aria2c.1.txt
  3855. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3856. Added bt-stop-timeout option to -i list.
  3857. * doc/aria2c.1.txt
  3858. * src/download_helper.cc
  3859. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3860. Fixed typo
  3861. * doc/aria2c.1.txt
  3862. * src/usage_text.h
  3863. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Removed peer-id-prefix option from -i list.
  3865. * doc/aria2c.1.txt
  3866. * src/download_helper.cc
  3867. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3868. Fixed typo
  3869. * doc/aria2c.1.txt
  3870. * src/usage_text.h
  3871. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3872. Documented --bt-stop-timeout option in man page.
  3873. * doc/aria2c.1.txt
  3874. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Updated README regarding multi-file torrent web-seeding.
  3876. * doc/README.txt
  3877. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Updated man page regarding multi-file torrent web-seeding.
  3879. * doc/aria2c.1.txt
  3880. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Updated doc
  3882. * src/version_usage.cc
  3883. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3884. Winsock select() doesn't work if no socket is in FD_SET. To
  3885. overcome this problem, a dummy socket is added to FD_SET and it is
  3886. given to select().
  3887. * src/SelectEventPoll.cc
  3888. * src/SelectEventPoll.h
  3889. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3890. Disabled --use-head option by default because --use-head=true
  3891. causes problems on some web sites.
  3892. * src/OptionHandlerFactory.cc
  3893. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3894. Print URL List in -S option for torrent.
  3895. * src/bittorrent_helper.cc
  3896. * src/bittorrent_helper.h
  3897. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3898. Allocate buffer in ctor of DownloadCommand.
  3899. * src/DownloadCommand.cc
  3900. * src/DownloadCommand.h
  3901. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3902. Removed DiskAdaptor::onDownloadComplete()
  3903. * src/DirectDiskAdaptor.cc
  3904. * src/DirectDiskAdaptor.h
  3905. * src/DiskAdaptor.h
  3906. * src/MultiDiskAdaptor.cc
  3907. * src/MultiDiskAdaptor.h
  3908. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3909. Committed missing BtStopDownloadCommand.{cc,h}
  3910. * src/BtStopDownloadCommand.cc
  3911. * src/BtStopDownloadCommand.h
  3912. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3913. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3914. download if the download speed is 0 and the number of seeder is 0
  3915. in consecutive SEC seconds. By default, this function is disabled.
  3916. * src/BtSetup.cc
  3917. * src/Makefile.am
  3918. * src/OptionHandlerFactory.cc
  3919. * src/prefs.cc
  3920. * src/prefs.h
  3921. * src/usage_text.h
  3922. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. Removed the call to DiskAdaptor::onDownloadComplete() from
  3924. BtCheckIntegrityEntry and DefaultPieceStorage.
  3925. * src/BtCheckIntegrityEntry.cc
  3926. * src/DefaultPieceStorage.cc
  3927. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Commented out throw statements when number of piece is 0 to
  3929. download 0 length torrent.
  3930. * src/bittorrent_helper.cc
  3931. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3932. Call RequestGroup::createNextCommandWithAdj() from
  3933. BtFileAllocationEntry if at least one FileEntry has URI. The
  3934. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3935. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3936. * src/BtFileAllocationEntry.cc
  3937. * src/FileEntry.h
  3938. * src/RequestGroup.cc
  3939. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3940. Generate peer ID after SimpleRandomizer is initialized.
  3941. * src/main.cc
  3942. * src/option_processing.cc
  3943. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3944. Removed unused method argument.
  3945. * src/CreateRequestCommand.cc
  3946. * src/RequestGroup.cc
  3947. * src/RequestGroup.h
  3948. * src/RequestGroupMan.cc
  3949. * src/TrackerWatcherCommand.cc
  3950. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3951. Made URI reusing function work.
  3952. * src/CreateRequestCommand.cc
  3953. * src/FileEntry.cc
  3954. * src/FileEntry.h
  3955. * test/FileEntryTest.cc
  3956. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3957. Add formerly fastest PeerStat's sessionDownloadLength to new
  3958. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3959. bytes in a session.
  3960. * src/PeerStat.cc
  3961. * src/SegmentMan.cc
  3962. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3963. If pipelining is enabled, we can always pool socket.
  3964. * src/HttpDownloadCommand.cc
  3965. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3966. In a single file download, file size becomes known just after
  3967. downloading, set total length to FileEntry object when download
  3968. completed.
  3969. * src/DownloadCommand.cc
  3970. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3971. Use std::vector::reserve() for fileEntries and pieceHashes in
  3972. bittorrent_helper
  3973. * src/bittorrent_helper.cc
  3974. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3975. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3976. Removed hidden option PREF_RESET_URI.
  3977. * src/AbstractCommand.cc
  3978. * src/OptionHandlerFactory.cc
  3979. * src/prefs.cc
  3980. * src/prefs.h
  3981. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3982. Removed unused variable/function.
  3983. * src/PeerStat.h
  3984. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Show first URL in Download Results if file path is not available.
  3986. * src/FileEntry.h
  3987. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Throw exception if file path doesn't exist in FTP URL.
  3989. * src/InitiateConnectionCommandFactory.cc
  3990. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3991. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3992. * src/BitfieldMan.cc
  3993. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3994. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3995. of PeerStat in SegmentMan. peerStats is used for calculating
  3996. download speed. Therefore all active PeerStats should be in
  3997. there. Another one is _fastestPeerStats and it only contains
  3998. fastest PeerStat for each hostname/protocol pair. They are used
  3999. for updating ServerStat.
  4000. * src/DownloadCommand.cc
  4001. * src/Request.h
  4002. * src/RequestGroupMan.cc
  4003. * src/SegmentMan.cc
  4004. * src/SegmentMan.h
  4005. * test/SegmentManTest.cc
  4006. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4007. Try all available addresses returned by DNS until it gets
  4008. connected in HTTP(S)/FTP download
  4009. * src/AbstractCommand.cc
  4010. * src/AbstractCommand.h
  4011. * src/AbstractProxyRequestCommand.cc
  4012. * src/AbstractProxyRequestCommand.h
  4013. * src/DNSCache.h
  4014. * src/DownloadEngine.cc
  4015. * src/DownloadEngine.h
  4016. * src/FtpInitiateConnectionCommand.cc
  4017. * src/FtpInitiateConnectionCommand.h
  4018. * src/FtpNegotiationCommand.cc
  4019. * src/FtpNegotiationCommand.h
  4020. * src/HttpInitiateConnectionCommand.cc
  4021. * src/HttpInitiateConnectionCommand.h
  4022. * src/HttpRequestCommand.cc
  4023. * src/HttpRequestCommand.h
  4024. * src/InitiateConnectionCommand.cc
  4025. * src/InitiateConnectionCommand.h
  4026. * test/DNSCacheTest.cc
  4027. * test/Makefile.am
  4028. * test/SimpleDNSCacheTest.cc
  4029. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4030. Updated doc
  4031. * src/download_helper.cc
  4032. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4033. Refactored fieldMan ctor.
  4034. * src/BitfieldMan.cc
  4035. * src/BitfieldMan.h
  4036. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4037. Don't print "No files to download." message if -S is given.
  4038. * src/main.cc
  4039. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4040. Set referer and method to newly created Request object.
  4041. * src/CreateRequestCommand.cc
  4042. * src/FileEntry.cc
  4043. * src/FileEntry.h
  4044. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4045. Removed ctor of AbstractCommand which doesn't take FileEntry.
  4046. * src/AbstractCommand.cc
  4047. * src/AbstractCommand.h
  4048. * src/CreateRequestCommand.cc
  4049. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4050. Get proxy download working
  4051. * src/AbstractProxyRequestCommand.cc
  4052. * src/AbstractProxyRequestCommand.h
  4053. * src/AbstractProxyResponseCommand.cc
  4054. * src/AbstractProxyResponseCommand.h
  4055. * src/FtpInitiateConnectionCommand.cc
  4056. * src/FtpTunnelRequestCommand.cc
  4057. * src/FtpTunnelRequestCommand.h
  4058. * src/FtpTunnelResponseCommand.cc
  4059. * src/FtpTunnelResponseCommand.h
  4060. * src/HttpInitiateConnectionCommand.cc
  4061. * src/HttpProxyRequestCommand.cc
  4062. * src/HttpProxyRequestCommand.h
  4063. * src/HttpProxyResponseCommand.cc
  4064. * src/HttpProxyResponseCommand.h
  4065. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4066. Use SegmentMan::getSegment(cuid) for single file download.
  4067. * src/AbstractCommand.cc
  4068. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4069. Fixed bufSize calculation
  4070. * src/DownloadCommand.cc
  4071. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4072. Don't append "/" if base URI ends with "/".
  4073. * src/bittorrent_helper.cc
  4074. * test/url-list-multiFile.torrent
  4075. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4076. HTTP pipelining is now working. Fixed Segmention fault in
  4077. BitfieldMan's copy ctor.
  4078. * src/AbstractCommand.cc
  4079. * src/BitfieldMan.cc
  4080. * src/BitfieldMan.h
  4081. * src/DownloadCommand.cc
  4082. * src/HttpDownloadCommand.cc
  4083. * src/HttpRequest.cc
  4084. * src/SegmentMan.cc
  4085. * src/SegmentMan.h
  4086. * test/BitfieldManTest.cc
  4087. * test/SegmentManTest.cc
  4088. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4089. Removed ServerHost. Same functionality is implemented using
  4090. FileEntry's in-flight Request objects.
  4091. * src/AbstractCommand.cc
  4092. * src/BtDependency.cc
  4093. * src/CreateRequestCommand.cc
  4094. * src/FileEntry.cc
  4095. * src/FileEntry.h
  4096. * src/FtpNegotiationCommand.cc
  4097. * src/HttpResponseCommand.cc
  4098. * src/Makefile.am
  4099. * src/Metalink2RequestGroup.cc
  4100. * src/RequestGroup.cc
  4101. * src/RequestGroup.h
  4102. * src/ServerHost.cc: Removed
  4103. * src/ServerHost.h: Removed
  4104. * test/BtDependencyTest.cc
  4105. * test/FileEntryTest.cc
  4106. * test/RequestGroupTest.cc
  4107. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4108. Rewritten PeerStat handling. In the previous implementation,
  4109. faster command tries to find slower command. In this new
  4110. implementation, slower command tries to find faster command.
  4111. PeerStat is now created in each HTTP/FTP request to get download
  4112. rate correctly. If the download range is small, the download rate
  4113. tends to small and this will occur at the later stage of download.
  4114. * src/AbstractCommand.cc
  4115. * src/DownloadCommand.cc
  4116. * src/FileEntry.cc
  4117. * src/FileEntry.h
  4118. * src/Request.cc
  4119. * src/Request.h
  4120. * src/RequestGroup.h
  4121. * src/RequestGroupMan.cc
  4122. * src/SegmentMan.cc
  4123. * src/SegmentMan.h
  4124. * test/SegmentManTest.cc
  4125. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4126. Removed _uris from RequestGroup. All functions that refer to _uris
  4127. were moved to FileEntry. Exit status code are now defined in
  4128. DownloadResultCode.h.
  4129. * src/AbstractCommand.cc
  4130. * src/AdaptiveURISelector.cc
  4131. * src/AdaptiveURISelector.h
  4132. * src/AutoSaveCommand.cc
  4133. * src/BtPostDownloadHandler.cc
  4134. * src/CheckIntegrityDispatcherCommand.cc
  4135. * src/CookieStorage.cc
  4136. * src/DHTAutoSaveCommand.cc
  4137. * src/DHTBucketRefreshCommand.cc
  4138. * src/DHTEntryPointNameResolveCommand.cc
  4139. * src/DHTInteractionCommand.cc
  4140. * src/DHTPeerAnnounceCommand.cc
  4141. * src/DHTTokenUpdateCommand.cc
  4142. * src/DlAbortEx.h
  4143. * src/DlRetryEx.h
  4144. * src/DownloadCommand.cc
  4145. * src/DownloadContext.h
  4146. * src/DownloadFailureException.h
  4147. * src/DownloadResult.h
  4148. * src/DownloadResultCode.h
  4149. * src/FeedbackURISelector.cc
  4150. * src/FeedbackURISelector.h
  4151. * src/FileEntry.cc
  4152. * src/FileEntry.h
  4153. * src/FtpNegotiationCommand.cc
  4154. * src/HttpListenCommand.cc
  4155. * src/HttpResponseCommand.cc
  4156. * src/HttpServerResponseCommand.cc
  4157. * src/HttpSkipResponseCommand.cc
  4158. * src/InOrderURISelector.cc
  4159. * src/InOrderURISelector.h
  4160. * src/Makefile.am
  4161. * src/Makefile.in
  4162. * src/Metalink2RequestGroup.cc
  4163. * src/MultiUrlRequestInfo.cc
  4164. * src/MultiUrlRequestInfo.h
  4165. * src/OptionHandlerFactory.cc
  4166. * src/PeerListenCommand.cc
  4167. * src/RecoverableException.h
  4168. * src/RequestGroup.cc
  4169. * src/RequestGroup.h
  4170. * src/RequestGroupMan.cc
  4171. * src/RequestGroupMan.h
  4172. * src/TimedHaltCommand.cc
  4173. * src/TrackerWatcherCommand.cc
  4174. * src/URIResult.cc
  4175. * src/URIResult.h
  4176. * src/URISelector.h
  4177. * src/XmlRpcMethodImpl.cc
  4178. * src/bittorrent_helper.cc
  4179. * src/bittorrent_helper.h
  4180. * src/download_helper.cc
  4181. * src/main.cc
  4182. * src/option_processing.cc
  4183. * test/BtDependencyTest.cc
  4184. * test/BtPostDownloadHandlerTest.cc
  4185. * test/CookieStorageTest.cc
  4186. * test/DefaultBtMessageDispatcherTest.cc
  4187. * test/DownloadHandlerFactoryTest.cc
  4188. * test/DownloadHelperTest.cc
  4189. * test/FeedbackURISelectorTest.cc
  4190. * test/FileEntryTest.cc
  4191. * test/InOrderURISelectorTest.cc
  4192. * test/Metalink2RequestGroupTest.cc
  4193. * test/MetalinkPostDownloadHandlerTest.cc
  4194. * test/RequestGroupManTest.cc
  4195. * test/RequestGroupTest.cc
  4196. * test/XmlRpcMethodTest.cc
  4197. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4198. Removed MockBtContext.h
  4199. * test/Makefile.am
  4200. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4201. Removed _currentRequest from StreamCheckIntegrityEntry and
  4202. StreamFileAllocationEntry.
  4203. * src/AbstractCommand.cc
  4204. * src/HttpResponseCommand.cc
  4205. * src/RequestGroup.cc
  4206. * src/StreamCheckIntegrityEntry.cc
  4207. * src/StreamCheckIntegrityEntry.h
  4208. * src/StreamFileAllocationEntry.cc
  4209. * src/StreamFileAllocationEntry.h
  4210. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4211. Rewritten DownloadContext and removed SingleFileDownloadContext
  4212. and BtContext and its derived classes. BitTorrent specific
  4213. attributes are now set by DownloadContext::setAttribute() with key
  4214. bittorrent::BITTORRENT.
  4215. * src/AbstractBtMessage.cc
  4216. * src/AbstractBtMessage.h
  4217. * src/AbstractCommand.cc
  4218. * src/AbstractCommand.h
  4219. * src/AbstractProxyRequestCommand.cc
  4220. * src/AbstractProxyResponseCommand.cc
  4221. * src/ActivePeerConnectionCommand.cc
  4222. * src/ActivePeerConnectionCommand.h
  4223. * src/AnnounceList.cc
  4224. * src/BtCheckIntegrityEntry.cc
  4225. * src/BtConstants.h
  4226. * src/BtContext.h: Removed
  4227. * src/BtDependency.cc
  4228. * src/BtExtendedMessage.cc
  4229. * src/BtPieceMessage.cc
  4230. * src/BtPieceMessage.h
  4231. * src/BtPostDownloadHandler.cc
  4232. * src/BtRegistry.cc
  4233. * src/BtRegistry.h
  4234. * src/BtSetup.cc
  4235. * src/CheckIntegrityCommand.cc
  4236. * src/CheckIntegrityEntry.cc
  4237. * src/ChecksumCheckIntegrityEntry.cc
  4238. * src/ConsoleStatCalc.cc
  4239. * src/ContentTypeRequestGroupCriteria.cc
  4240. * src/DHTGetPeersCommand.cc
  4241. * src/DHTGetPeersCommand.h
  4242. * src/DHTPeerLookupTask.cc
  4243. * src/DHTPeerLookupTask.h
  4244. * src/DHTTaskFactory.h
  4245. * src/DHTTaskFactoryImpl.cc
  4246. * src/DHTTaskFactoryImpl.h
  4247. * src/DefaultBtAnnounce.cc
  4248. * src/DefaultBtAnnounce.h
  4249. * src/DefaultBtContext.cc: Removed
  4250. * src/DefaultBtContext.h: Removed
  4251. * src/DefaultBtInteractive.cc
  4252. * src/DefaultBtInteractive.h
  4253. * src/DefaultBtMessageDispatcher.cc
  4254. * src/DefaultBtMessageDispatcher.h
  4255. * src/DefaultBtMessageFactory.cc
  4256. * src/DefaultBtMessageFactory.h
  4257. * src/DefaultBtMessageReceiver.cc
  4258. * src/DefaultBtMessageReceiver.h
  4259. * src/DefaultBtProgressInfoFile.cc
  4260. * src/DefaultBtRequestFactory.cc
  4261. * src/DefaultBtRequestFactory.h
  4262. * src/DefaultExtensionMessageFactory.cc
  4263. * src/DefaultExtensionMessageFactory.h
  4264. * src/DefaultPeerStorage.cc
  4265. * src/DefaultPeerStorage.h
  4266. * src/DefaultPieceStorage.cc
  4267. * src/DefaultSegmentManFactory.cc
  4268. * src/DiskAdaptor.cc
  4269. * src/DiskAdaptor.h
  4270. * src/DownloadContext.cc
  4271. * src/DownloadContext.h
  4272. * src/DownloadEngine.cc
  4273. * src/DownloadEngineFactory.cc
  4274. * src/DownloadHandler.cc
  4275. * src/DownloadResult.h
  4276. * src/FileAllocationCommand.cc
  4277. * src/FileAllocationDispatcherCommand.cc
  4278. * src/FileAllocationEntry.cc
  4279. * src/FileEntry.h
  4280. * src/FillRequestGroupCommand.cc
  4281. * src/FtpDownloadCommand.cc
  4282. * src/FtpFinishDownloadCommand.cc
  4283. * src/FtpInitiateConnectionCommand.cc
  4284. * src/FtpNegotiationCommand.cc
  4285. * src/FtpTunnelRequestCommand.cc
  4286. * src/FtpTunnelResponseCommand.cc
  4287. * src/HandshakeExtensionMessage.cc
  4288. * src/HandshakeExtensionMessage.h
  4289. * src/HaveEraseCommand.cc
  4290. * src/HttpDownloadCommand.cc
  4291. * src/HttpInitiateConnectionCommand.cc
  4292. * src/HttpProxyRequestCommand.cc
  4293. * src/HttpProxyResponseCommand.cc
  4294. * src/HttpRequest.cc
  4295. * src/HttpRequest.h
  4296. * src/HttpRequestCommand.cc
  4297. * src/HttpResponseCommand.cc
  4298. * src/HttpServerBodyCommand.cc
  4299. * src/HttpServerCommand.cc
  4300. * src/HttpSkipResponseCommand.cc
  4301. * src/InitiateConnectionCommandFactory.cc
  4302. * src/InitiatorMSEHandshakeCommand.cc
  4303. * src/InitiatorMSEHandshakeCommand.h
  4304. * src/IteratableChecksumValidator.cc
  4305. * src/IteratableChecksumValidator.h
  4306. * src/IteratableChunkChecksumValidator.cc
  4307. * src/MSEHandshake.cc
  4308. * src/MSEHandshake.h
  4309. * src/Makefile.am
  4310. * src/Makefile.in
  4311. * src/Metalink2RequestGroup.cc
  4312. * src/MetalinkPostDownloadHandler.cc
  4313. * src/MultiDiskAdaptor.cc
  4314. * src/MultiDiskAdaptor.h
  4315. * src/MultiFileAllocationIterator.cc
  4316. * src/MultiUrlRequestInfo.cc
  4317. * src/PeerChokeCommand.cc
  4318. * src/PeerChokeCommand.h
  4319. * src/PeerInitiateConnectionCommand.cc
  4320. * src/PeerInitiateConnectionCommand.h
  4321. * src/PeerInteractionCommand.cc
  4322. * src/PeerInteractionCommand.h
  4323. * src/PeerReceiveHandshakeCommand.cc
  4324. * src/PieceHashCheckIntegrityEntry.cc
  4325. * src/RealtimeCommand.cc
  4326. * src/ReceiverMSEHandshakeCommand.cc
  4327. * src/RequestGroup.cc
  4328. * src/RequestGroup.h
  4329. * src/RequestGroupEntry.cc
  4330. * src/RequestGroupMan.cc
  4331. * src/SeedCheckCommand.cc
  4332. * src/SeedCheckCommand.h
  4333. * src/SegmentMan.cc
  4334. * src/ShareRatioSeedCriteria.h
  4335. * src/SingleFileDownloadContext.cc: Removed
  4336. * src/SingleFileDownloadContext.h: Removed
  4337. * src/SleepCommand.cc
  4338. * src/StreamCheckIntegrityEntry.cc
  4339. * src/TrackerWatcherCommand.cc
  4340. * src/TrackerWatcherCommand.h
  4341. * src/UnknownLengthPieceStorage.cc
  4342. * src/Util.cc
  4343. * src/Util.h
  4344. * src/XmlRpcMethodImpl.cc
  4345. * src/bittorrent_helper.cc
  4346. * src/bittorrent_helper.h
  4347. * src/download_helper.cc
  4348. * src/main.cc
  4349. * src/option_processing.cc
  4350. * test/BitfieldManTest.cc
  4351. * test/BittorrentHelperTest.cc
  4352. * test/BtCancelMessageTest.cc
  4353. * test/BtChokeMessageTest.cc
  4354. * test/BtDependencyTest.cc
  4355. * test/BtPieceMessageTest.cc
  4356. * test/BtPostDownloadHandlerTest.cc
  4357. * test/BtRegistryTest.cc
  4358. * test/BtRejectMessageTest.cc
  4359. * test/BtRequestMessageTest.cc
  4360. * test/DHTPeerAnnounceStorageTest.cc
  4361. * test/DefaultBtAnnounceTest.cc
  4362. * test/DefaultBtContextTest.cc: Removed
  4363. * test/DefaultBtMessageDispatcherTest.cc
  4364. * test/DefaultBtMessageFactoryTest.cc
  4365. * test/DefaultBtProgressInfoFileTest.cc
  4366. * test/DefaultBtRequestFactoryTest.cc
  4367. * test/DefaultExtensionMessageFactoryTest.cc
  4368. * test/DefaultPeerStorageTest.cc
  4369. * test/DefaultPieceStorageTest.cc
  4370. * test/DirectDiskAdaptorTest.cc
  4371. * test/DownloadContextTest.cc
  4372. * test/DownloadHandlerFactoryTest.cc
  4373. * test/DownloadHelperTest.cc
  4374. * test/HandshakeExtensionMessageTest.cc
  4375. * test/HttpRequestTest.cc
  4376. * test/HttpResponseTest.cc
  4377. * test/IteratableChecksumValidatorTest.cc
  4378. * test/IteratableChunkChecksumValidatorTest.cc
  4379. * test/MSEHandshakeTest.cc
  4380. * test/Makefile.am
  4381. * test/Makefile.in
  4382. * test/Metalink2RequestGroupTest.cc
  4383. * test/MetalinkPostDownloadHandlerTest.cc
  4384. * test/MockBtContext.h: Removed
  4385. * test/MockDHTTaskFactory.h
  4386. * test/MockDownloadContext.h: Removed
  4387. * test/MockPieceStorage.h
  4388. * test/MultiDiskAdaptorTest.cc
  4389. * test/MultiFileAllocationIteratorTest.cc
  4390. * test/RequestGroupManTest.cc
  4391. * test/RequestGroupTest.cc
  4392. * test/SegmentManTest.cc
  4393. * test/ShareRatioSeedCriteriaTest.cc
  4394. * test/SingleFileDownloadContextTest.cc: Removed
  4395. * test/UtilTest.cc
  4396. * test/XmlRpcMethodTest.cc
  4397. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4398. Added experimental support of WEB-Seeding for multi-file torrent.
  4399. Due to fundamental changes in file handling in HTTP/FTP code, many
  4400. functions are not working: PeerStat, ServerHost, proxy..etc
  4401. * src/AbstractCommand.cc
  4402. * src/AbstractCommand.h
  4403. * src/BitfieldMan.cc
  4404. * src/BitfieldMan.h
  4405. * src/CreateRequestCommand.cc
  4406. * src/CreateRequestCommand.h
  4407. * src/DefaultPieceStorage.cc
  4408. * src/DefaultPieceStorage.h
  4409. * src/DownloadCommand.cc
  4410. * src/DownloadCommand.h
  4411. * src/DownloadContext.cc
  4412. * src/DownloadContext.h
  4413. * src/FileEntry.cc
  4414. * src/FileEntry.h
  4415. * src/FtpDownloadCommand.cc
  4416. * src/FtpDownloadCommand.h
  4417. * src/FtpFinishDownloadCommand.cc
  4418. * src/FtpFinishDownloadCommand.h
  4419. * src/FtpInitiateConnectionCommand.cc
  4420. * src/FtpInitiateConnectionCommand.h
  4421. * src/FtpNegotiationCommand.cc
  4422. * src/FtpNegotiationCommand.h
  4423. * src/FtpTunnelResponseCommand.cc
  4424. * src/HttpDownloadCommand.cc
  4425. * src/HttpDownloadCommand.h
  4426. * src/HttpInitiateConnectionCommand.cc
  4427. * src/HttpInitiateConnectionCommand.h
  4428. * src/HttpProxyResponseCommand.cc
  4429. * src/HttpRequest.cc
  4430. * src/HttpRequest.h
  4431. * src/HttpRequestCommand.cc
  4432. * src/HttpRequestCommand.h
  4433. * src/HttpResponseCommand.cc
  4434. * src/HttpResponseCommand.h
  4435. * src/HttpSkipResponseCommand.cc
  4436. * src/HttpSkipResponseCommand.h
  4437. * src/InitiateConnectionCommand.cc
  4438. * src/InitiateConnectionCommand.h
  4439. * src/InitiateConnectionCommandFactory.cc
  4440. * src/InitiateConnectionCommandFactory.h
  4441. * src/Makefile.am
  4442. * src/PieceStorage.h
  4443. * src/RequestGroup.cc
  4444. * src/RequestGroup.h
  4445. * src/RequestGroupMan.cc
  4446. * src/SegmentMan.cc
  4447. * src/SegmentMan.h
  4448. * src/SingleFileDownloadContext.h
  4449. * src/StreamFileAllocationEntry.cc
  4450. * src/TrackerWatcherCommand.cc
  4451. * src/UnknownLengthPieceStorage.cc
  4452. * src/UnknownLengthPieceStorage.h
  4453. * src/array_fun.h
  4454. * src/bitfield.h
  4455. * src/download_helper.cc
  4456. * test/DownloadContextTest.cc
  4457. * test/Makefile.am
  4458. * test/MockDownloadContext.h
  4459. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4460. Added tellWaiting XML-RPC method.
  4461. * src/SingleFileDownloadContext.cc
  4462. * src/XmlRpcMethodFactory.cc
  4463. * src/XmlRpcMethodImpl.cc
  4464. * src/XmlRpcMethodImpl.h
  4465. * test/XmlRpcMethodTest.cc
  4466. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4467. Updated CookieStorageTest
  4468. * test/CookieStorageTest.cc
  4469. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4470. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  4471. handle excepion inside these functions.
  4472. * src/LibgnutlsTLSContext.cc
  4473. * src/LibgnutlsTLSContext.h
  4474. * src/LibsslTLSContext.cc
  4475. * src/LibsslTLSContext.h
  4476. * src/MultiUrlRequestInfo.cc
  4477. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4478. Added comment
  4479. * src/RequestGroup.cc
  4480. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4481. In CookieStorage::load() and saveNsFormat(), handle exception
  4482. inside the functions. When saving Cookies, first write temporary
  4483. file and after successful writes, then renames it to final
  4484. destination.
  4485. * src/CookieStorage.cc
  4486. * src/CookieStorage.h
  4487. * src/MultiUrlRequestInfo.cc
  4488. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4489. The default value of --dir option is the absolute path to the
  4490. current directory. If getcwd() is failed, then it is ".", which is
  4491. the same value with old implementation. This change is necessary
  4492. because after daemon() call, the current working directory is
  4493. changed to /.
  4494. * src/File.cc
  4495. * src/File.h
  4496. * src/OptionHandlerFactory.cc
  4497. * src/option_processing.cc
  4498. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4499. Call daemon() with arguments(0,0), which means daemon() changes
  4500. current working directory to / and redirects stdin, stdout and
  4501. stderr to /dev/null.
  4502. * src/option_processing.cc
  4503. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4504. Small performance optimizations.
  4505. * src/RequestGroupMan.cc
  4506. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4507. Added _xmlRpc member variable to RequestGroupMan to reduce the
  4508. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  4509. * src/RequestGroupMan.cc
  4510. * src/RequestGroupMan.h
  4511. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  4513. setNoWiat(true) if newly created command calls
  4514. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  4515. * src/HttpListenCommand.cc
  4516. * src/HttpServerBodyCommand.cc
  4517. * src/HttpServerCommand.cc
  4518. * src/HttpServerResponseCommand.cc
  4519. * src/InitiateConnectionCommand.cc
  4520. * src/RequestGroup.cc
  4521. * src/StreamFileAllocationEntry.cc
  4522. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4523. Removed include vector
  4524. * src/BtRegistry.h
  4525. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4526. Rewritten BtRegistry
  4527. * src/BtRegistry.cc
  4528. * src/BtRegistry.h
  4529. * src/BtSetup.cc
  4530. * src/ConsoleStatCalc.cc
  4531. * src/PeerInteractionCommand.cc
  4532. * src/PeerReceiveHandshakeCommand.cc
  4533. * src/ReceiverMSEHandshakeCommand.cc
  4534. * src/RequestGroup.cc
  4535. * src/XmlRpcMethodImpl.cc
  4536. * test/BtRegistryTest.cc
  4537. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4538. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  4539. * src/DefaultBtProgressInfoFile.cc
  4540. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4541. Throw an exception if position is less than 0.
  4542. * src/XmlRpcMethodImpl.cc
  4543. * test/XmlRpcMethodTest.cc
  4544. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4545. Use writeFilePath() in ConsoleStatCalc.cc
  4546. * src/ConsoleStatCalc.cc
  4547. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Receive the return value as const reference from
  4549. DownloadContext::getFileEntries().
  4550. * src/DefaultPieceStorage.cc
  4551. * src/RequestGroupMan.cc
  4552. * src/XmlRpcMethodImpl.cc
  4553. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4554. DownloadContext now has _fileEntries so that
  4555. DownloadContext::getFileEntries() can returns its const reference.
  4556. * src/DefaultBtContext.cc
  4557. * src/DefaultBtContext.h
  4558. * src/DownloadContext.cc
  4559. * src/DownloadContext.h
  4560. * src/SingleFileDownloadContext.cc
  4561. * src/SingleFileDownloadContext.h
  4562. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4563. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4564. writeFilePath() function template from RequestGroupMan.cc to
  4565. FileEntry.h
  4566. * src/FileEntry.h
  4567. * src/RequestGroupMan.cc
  4568. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4569. Documented 'position' parameter is starting from 0 in man page.
  4570. * doc/aria2c.1.txt
  4571. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4572. Updated doc.
  4573. * src/MSEHandshake.cc
  4574. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4575. Removed _acceptFeatures and its accessor functions from
  4576. RequestGroup since they are not used practically.
  4577. * src/HttpRequestCommand.cc
  4578. * src/RequestGroup.cc
  4579. * src/RequestGroup.h
  4580. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4581. Removed member _maxTries from RequestGroup class to avoid
  4582. duplicate option value. Those classes who refer this variable
  4583. should use option value of PREF_MAX_TRIES directly.
  4584. * src/AbstractCommand.cc
  4585. * src/RequestGroup.cc
  4586. * src/RequestGroup.h
  4587. * src/TrackerWatcherCommand.cc
  4588. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. * Release 1.4.1
  4590. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4591. Fixed compiler warnings on netbsd
  4592. * src/DHTConnectionImpl.cc
  4593. * src/PeerListenCommand.cc
  4594. * src/PeerSessionResource.cc
  4595. * src/SegmentMan.cc
  4596. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4597. Updated Ukrainian translation. Thanks to all translators.
  4598. * po/uk.po
  4599. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4600. Bump up version number to 1.4.1.
  4601. * configure.ac
  4602. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4603. Added unit tests for strjoin, strconcat and strappend.
  4604. * test/a2functionalTest.cc
  4605. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4606. Rewritten strconcat and strappend using operator+ instead of
  4607. append().
  4608. * src/a2functional.h
  4609. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4610. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  4611. is enabled.
  4612. * src/Makefile.am
  4613. * test/Makefile.am
  4614. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4615. Added countSeeder() function which counts seeder in the given
  4616. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  4617. * src/ConsoleStatCalc.cc
  4618. * src/Peer.h
  4619. * src/XmlRpcMethodImpl.cc
  4620. * test/PeerTest.cc
  4621. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4622. Documented missing seeder in getPeers xml-rpc method.
  4623. Documented uploadLength and numSeeders.
  4624. * doc/aria2c.1.txt
  4625. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4626. Added uploadLength and numSeeders to the response of tellStatus
  4627. xml-rpc method. Assert that PeerStorage instance is not null
  4628. instead of checking if statement. It should be non-null in this
  4629. context.
  4630. * src/XmlRpcMethodImpl.cc
  4631. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4632. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  4633. * src/XmlRpcResponse.cc
  4634. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Avoid intermediate object during string concatenation.
  4636. * src/HttpRequest.cc
  4637. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4638. Added strjoin function template. Use it in pathJoin()
  4639. * src/Util.h
  4640. * src/a2functional.h
  4641. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4642. Avoid intermediate object during string concatenation. Replaced
  4643. post-increment unary operator with pre-increment one in for loop.
  4644. * src/AdaptiveURISelector.cc
  4645. * src/AnnounceList.cc
  4646. * src/AuthConfig.h
  4647. * src/BtBitfieldMessage.cc
  4648. * src/BtExtendedMessage.cc
  4649. * src/BtHandshakeMessage.cc
  4650. * src/BtPieceMessage.cc
  4651. * src/BtPortMessage.cc
  4652. * src/Cookie.cc
  4653. * src/DHTAnnouncePeerMessage.cc
  4654. * src/DHTAutoSaveCommand.cc
  4655. * src/DHTGetPeersReplyMessage.cc
  4656. * src/DHTNode.cc
  4657. * src/DHTQueryMessage.cc
  4658. * src/DHTResponseMessage.cc
  4659. * src/DHTUnknownMessage.cc
  4660. * src/DefaultBtAnnounce.cc
  4661. * src/DefaultBtContext.cc
  4662. * src/DefaultBtInteractive.cc
  4663. * src/DefaultBtProgressInfoFile.cc
  4664. * src/DefaultPeerStorage.cc
  4665. * src/DownloadEngine.cc
  4666. * src/FeatureConfig.cc
  4667. * src/File.cc
  4668. * src/FtpConnection.cc
  4669. * src/FtpNegotiationCommand.cc
  4670. * src/HandshakeExtensionMessage.cc
  4671. * src/HttpConnection.cc
  4672. * src/HttpRequest.cc
  4673. * src/HttpResponseCommand.cc
  4674. * src/HttpServer.cc
  4675. * src/IndexBtMessage.cc
  4676. * src/Metalink2RequestGroup.cc
  4677. * src/OptionHandlerImpl.h
  4678. * src/PStringBuildVisitor.cc
  4679. * src/Peer.cc
  4680. * src/PeerListenCommand.cc
  4681. * src/Piece.cc
  4682. * src/RangeBtMessage.cc
  4683. * src/Request.cc
  4684. * src/Request.h
  4685. * src/RequestGroup.cc
  4686. * src/RequestGroupMan.cc
  4687. * src/ServerStat.cc
  4688. * src/ServerStatMan.cc
  4689. * src/UTPexExtensionMessage.cc
  4690. * src/Util.cc
  4691. * src/a2functional.h
  4692. * src/download_helper.cc
  4693. * src/messageDigest.cc
  4694. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4695. Unchoke a peer randomly at first and second choke round in seed
  4696. state.
  4697. * src/BtSeederStateChoke.cc
  4698. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4699. Added (sock_t) to quiet compiler warnings in MinGW
  4700. * src/SocketCore.cc
  4701. * src/SocketCore.h
  4702. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4703. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4704. * src/EpollEventPoll.h
  4705. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4706. Added fork() emulation using CreateProcess() in MinGW
  4707. * src/RequestGroupMan.cc
  4708. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4709. * Release 1.4.0
  4710. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4711. Added utf8.torrent to EXTRA_DIST
  4712. * test/Makefile.am
  4713. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4714. Fixed docs of aria2.addMetalink xml-rpc method.
  4715. * doc/aria2c.1.txt
  4716. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4717. Added Slovak translation. Updated Ukrainian and Brazilian
  4718. Portuguese translation. Thanks to all translators.
  4719. * po/sk.po
  4720. * po/uk.po
  4721. * po/pt_BR.po
  4722. * po/LINGUAS
  4723. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4724. Added test case for XmlRpcProcessor to fail to parse malformed
  4725. document.
  4726. * test/XmlRpcRequestProcessorTest.cc
  4727. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4728. Removed *.gmo files in po because they are generated on 'make
  4729. dist'
  4730. * po/*.gmo
  4731. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4732. Documented max-concurrent-downloads of changeGlobalOption method
  4733. in man page.
  4734. * doc/aria2c.1.txt
  4735. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4736. Added max-concurrent-downloads option to changeGlobalOption
  4737. xml-rpc method. Rewritten loop conditional in
  4738. RequestGroupMan::fillRequestGroupFromReserver().
  4739. * src/RequestGroupMan.cc
  4740. * src/RequestGroupMan.h
  4741. * src/XmlRpcMethod.cc
  4742. * src/XmlRpcMethodImpl.cc
  4743. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4744. Documented position parameter in man page.
  4745. * doc/aria2c.1.txt
  4746. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4747. Added 'position' parameter to addUri, addTorrent and addMetalink
  4748. xml-rpc method.
  4749. * src/RequestGroupMan.cc
  4750. * src/RequestGroupMan.h
  4751. * src/XmlRpcMethodImpl.cc
  4752. * test/XmlRpcMethodTest.cc
  4753. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4754. Removed Peer.cc from compile source list when --disable-bittorrent
  4755. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4756. takes Peer.
  4757. * src/DefaultPieceStorage.cc
  4758. * src/DefaultPieceStorage.h
  4759. * src/Makefile.am
  4760. * src/PieceStorage.h
  4761. * src/UnknownLengthPieceStorage.cc
  4762. * src/UnknownLengthPieceStorage.h
  4763. * test/MockPieceStorage.h
  4764. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4765. Implemented getter methods in header files to give them more
  4766. chance of optimization.
  4767. Return const reference for SharadHandle if possible.
  4768. * src/AbstractAuthResolver.cc
  4769. * src/AbstractAuthResolver.h
  4770. * src/AbstractBtMessage.cc
  4771. * src/AbstractBtMessage.h
  4772. * src/AbstractSingleDiskAdaptor.cc
  4773. * src/AbstractSingleDiskAdaptor.h
  4774. * src/AsyncNameResolver.cc
  4775. * src/AsyncNameResolver.h
  4776. * src/BNode.cc
  4777. * src/BNode.h
  4778. * src/BitfieldMan.cc
  4779. * src/BitfieldMan.h
  4780. * src/BtAbortOutstandingRequestEvent.h
  4781. * src/BtExtendedMessage.cc
  4782. * src/BtExtendedMessage.h
  4783. * src/BtSeederStateChoke.cc
  4784. * src/BtSeederStateChoke.h
  4785. * src/Cookie.cc
  4786. * src/Cookie.h
  4787. * src/DHTBucket.cc
  4788. * src/DHTBucket.h
  4789. * src/DHTConnectionImpl.cc
  4790. * src/DHTConnectionImpl.h
  4791. * src/DHTFindNodeReplyMessage.cc
  4792. * src/DHTFindNodeReplyMessage.h
  4793. * src/DHTGetPeersReplyMessage.cc
  4794. * src/DHTGetPeersReplyMessage.h
  4795. * src/DHTInteractionCommand.cc
  4796. * src/DHTMessage.cc
  4797. * src/DHTMessage.h
  4798. * src/DHTMessageDispatcherImpl.cc
  4799. * src/DHTMessageEntry.cc
  4800. * src/DHTMessageReceiver.cc
  4801. * src/DHTMessageReceiver.h
  4802. * src/DHTMessageTrackerEntry.cc
  4803. * src/DHTMessageTrackerEntry.h
  4804. * src/DHTPeerAnnounceEntry.cc
  4805. * src/DHTPeerAnnounceEntry.h
  4806. * src/DHTPeerLookupTask.cc
  4807. * src/DHTPeerLookupTask.h
  4808. * src/DHTRoutingTableDeserializer.cc
  4809. * src/DHTRoutingTableDeserializer.h
  4810. * src/DefaultBtAnnounce.cc
  4811. * src/DefaultBtAnnounce.h
  4812. * src/DefaultBtMessageDispatcher.cc
  4813. * src/DefaultBtMessageDispatcher.h
  4814. * src/DefaultBtRequestFactory.cc
  4815. * src/DefaultBtRequestFactory.h
  4816. * src/DiskAdaptor.cc
  4817. * src/DiskAdaptor.h
  4818. * src/DownloadContext.cc
  4819. * src/DownloadContext.h
  4820. * src/DownloadEngine.cc
  4821. * src/DownloadEngine.h
  4822. * src/EpollEventPoll.cc
  4823. * src/EpollEventPoll.h
  4824. * src/FtpConnection.cc
  4825. * src/FtpConnection.h
  4826. * src/HttpConnection.cc
  4827. * src/HttpConnection.h
  4828. * src/HttpHeader.cc
  4829. * src/HttpHeader.h
  4830. * src/HttpRequest.cc
  4831. * src/HttpRequest.h
  4832. * src/HttpResponse.cc
  4833. * src/HttpResponse.h
  4834. * src/LibsslTLSContext.cc
  4835. * src/LibsslTLSContext.h
  4836. * src/MSEHandshake.cc
  4837. * src/MSEHandshake.h
  4838. * src/MetalinkEntry.cc
  4839. * src/MetalinkEntry.h
  4840. * src/MetalinkParserController.cc
  4841. * src/MetalinkParserController.h
  4842. * src/MetalinkParserStateMachine.cc
  4843. * src/MetalinkParserStateMachine.h
  4844. * src/MultiDiskAdaptor.cc
  4845. * src/MultiDiskAdaptor.h
  4846. * src/NetrcAuthResolver.cc
  4847. * src/NetrcAuthResolver.h
  4848. * src/Peer.cc
  4849. * src/Peer.h
  4850. * src/PeerSessionResource.cc
  4851. * src/PeerSessionResource.h
  4852. * src/Piece.cc
  4853. * src/Piece.h
  4854. * src/PieceStatMan.cc
  4855. * src/PieceStatMan.h
  4856. * src/Request.cc
  4857. * src/Request.h
  4858. * src/RequestGroup.cc
  4859. * src/RequestGroup.h
  4860. * src/RequestGroupMan.cc
  4861. * src/RequestGroupMan.h
  4862. * src/RequestSlot.cc
  4863. * src/RequestSlot.h
  4864. * src/SegmentMan.cc
  4865. * src/SegmentMan.h
  4866. * src/SelectEventPoll.cc
  4867. * src/SelectEventPoll.h
  4868. * src/ServerStat.cc
  4869. * src/ServerStat.h
  4870. * src/Signature.cc
  4871. * src/Signature.h
  4872. * src/URIResult.cc
  4873. * src/URIResult.h
  4874. * src/UTPexExtensionMessage.cc
  4875. * src/UTPexExtensionMessage.h
  4876. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4877. Fixed compile error without BitTorrent and Metalink support.
  4878. * src/XmlRpcMethod.cc
  4879. * src/XmlRpcMethodFactory.cc
  4880. * src/XmlRpcMethodImpl.cc
  4881. * src/XmlRpcMethodImpl.h
  4882. * test/XmlRpcMethodTest.cc
  4883. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4884. Rewritten the help message for --allow-overwrite option.
  4885. * doc/aria2c.1.txt
  4886. * src/usage_text.h
  4887. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4888. Fixed typo
  4889. * doc/aria2c.1.txt
  4890. * src/usage_text.h
  4891. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4892. Updated README for 1.4.0 release. Use new table syntax of
  4893. asciidoc.
  4894. * README
  4895. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4896. Documented --xml-rpc-max-request-size option in man page.
  4897. * doc/aria2c.1.txt
  4898. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4899. Moved C_* constants from BtContext to DefaultBtContext.
  4900. * src/BtContext.cc: Removed.
  4901. * src/BtContext.h
  4902. * src/DefaultBtContext.cc
  4903. * src/DefaultBtContext.h
  4904. * src/Makefile.am
  4905. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4906. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4907. path key respectively when persing .torrent file.
  4908. * src/BtContext.cc
  4909. * src/BtContext.h
  4910. * src/DefaultBtContext.cc
  4911. * test/DefaultBtContextTest.cc
  4912. * test/utf8.torrent
  4913. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4914. Added --xml-rpc-max-request-size option to limit the size of
  4915. XML-RPC request.
  4916. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4917. Documented XML-RPC API in man page.
  4918. * doc/aria2c.1.txt
  4919. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4920. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4921. will break strict-aliasing rules
  4922. * src/PeerConnection.cc
  4923. * test/DHTRoutingTableSerializerTest.cc
  4924. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4925. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4926. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4927. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4928. PKG_CHECK_MODULES macro uses latter name.
  4929. * m4/sqlite3.m4
  4930. * src/Makefile.am
  4931. * test/Makefile.am
  4932. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4933. Fixed typo
  4934. * configure.ac
  4935. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4936. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4937. presence of libgnutls using pkg-config first. If it fails, fall
  4938. back to old macro libgnutls.m4.
  4939. * configure.ac
  4940. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4941. Use s itself instead of !s.bad()
  4942. * src/CookieStorage.cc
  4943. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4944. Documented --on-download-* option and --save-cookies option in man
  4945. page.
  4946. * doc/aria2c.1.txt
  4947. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4948. Set possible values for --load-cookie option to "/path/to/file".
  4949. * src/OptionHandlerFactory.cc
  4950. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4951. Added --save-cookies option.
  4952. * src/Cookie.cc
  4953. * src/Cookie.h
  4954. * src/CookieStorage.cc
  4955. * src/CookieStorage.h
  4956. * src/MultiUrlRequestInfo.cc
  4957. * src/OptionHandlerFactory.cc
  4958. * src/prefs.cc
  4959. * src/prefs.h
  4960. * src/usage_text.h
  4961. * test/CookieStorageTest.cc
  4962. * test/CookieTest.cc
  4963. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4964. Removed tellAll XML-RPC command because its reponse tends to be
  4965. big if stopped/waiting downloads pile up.
  4966. * src/XmlRpcMethodFactory.cc
  4967. * src/XmlRpcMethodImpl.cc
  4968. * src/XmlRpcMethodImpl.h
  4969. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4970. Added the ability to execute command when download starts and
  4971. stops. You can also specify command for particular cases such as
  4972. complete/error download. Added --on-download-start,
  4973. --on-download-stop, --on-download-complete and --on-download-error
  4974. option.
  4975. * src/OptionHandlerFactory.cc
  4976. * src/RequestGroupMan.cc
  4977. * src/prefs.cc
  4978. * src/prefs.h
  4979. * src/usage_text.h
  4980. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4981. Fixed test error
  4982. * test/BencodeTest.cc
  4983. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4984. Added unit tests.
  4985. * test/XmlRpcMethodTest.cc
  4986. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4987. Made exception message more verbose.
  4988. * src/bencode.cc
  4989. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4990. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4991. space in console readout. Also they are now shown in MiB/s if
  4992. speed > 1024KiB/s.
  4993. * src/ConsoleStatCalc.cc
  4994. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4995. Added SEED to console output, which represents the number of
  4996. seeders currently the client is connecting to.
  4997. * src/ConsoleStatCalc.cc
  4998. * src/ConsoleStatCalc.h
  4999. * src/DownloadEngine.cc
  5000. * src/NullStatCalc.h
  5001. * src/StatCalc.h
  5002. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5003. Added source filename(__FILE__) and line number(__LINE__) to
  5004. exception message.
  5005. * src/AbstractCommand.cc
  5006. * src/AbstractDiskWriter.cc
  5007. * src/AbstractProxyResponseCommand.cc
  5008. * src/BDE.h
  5009. * src/BtAllowedFastMessage.cc
  5010. * src/BtHandshakeMessageValidator.h
  5011. * src/BtHaveAllMessage.cc
  5012. * src/BtHaveNoneMessage.cc
  5013. * src/BtPieceMessage.cc
  5014. * src/BtRejectMessage.cc
  5015. * src/ChunkedDecoder.cc
  5016. * src/CookieStorage.cc
  5017. * src/DHTAnnouncePeerMessage.cc
  5018. * src/DHTEntryPointNameResolveCommand.cc
  5019. * src/DHTMessageFactoryImpl.cc
  5020. * src/DHTMessageTracker.cc
  5021. * src/DHTRoutingTableDeserializer.cc
  5022. * src/DHTRoutingTableSerializer.cc
  5023. * src/DHTSetup.cc
  5024. * src/DHTTokenTracker.cc
  5025. * src/DefaultBtAnnounce.cc
  5026. * src/DefaultBtContext.cc
  5027. * src/DefaultBtInteractive.cc
  5028. * src/DefaultBtMessageFactory.cc
  5029. * src/DefaultBtProgressInfoFile.cc
  5030. * src/DefaultExtensionMessageFactory.cc
  5031. * src/DlAbortEx.h
  5032. * src/DlRetryEx.h
  5033. * src/DownloadCommand.cc
  5034. * src/DownloadEngineFactory.cc
  5035. * src/DownloadFailureException.h
  5036. * src/Exception.cc
  5037. * src/Exception.h
  5038. * src/ExpatMetalinkProcessor.cc
  5039. * src/ExpatXmlRpcRequestProcessor.cc
  5040. * src/FallocFileAllocationIterator.cc
  5041. * src/FatalException.h
  5042. * src/FtpConnection.cc
  5043. * src/FtpFinishDownloadCommand.cc
  5044. * src/FtpInitiateConnectionCommand.cc
  5045. * src/FtpNegotiationCommand.cc
  5046. * src/GZipDecoder.cc
  5047. * src/HandshakeExtensionMessage.cc
  5048. * src/HttpConnection.cc
  5049. * src/HttpHeaderProcessor.cc
  5050. * src/HttpInitiateConnectionCommand.cc
  5051. * src/HttpResponse.cc
  5052. * src/HttpResponseCommand.cc
  5053. * src/HttpServer.cc
  5054. * src/HttpSkipResponseCommand.cc
  5055. * src/InitiateConnectionCommandFactory.cc
  5056. * src/IteratableChunkChecksumValidator.cc
  5057. * src/LibgcryptARC4Context.h
  5058. * src/LibgcryptARC4Decryptor.h
  5059. * src/LibgcryptARC4Encryptor.h
  5060. * src/LibgcryptDHKeyExchange.h
  5061. * src/LibgnutlsTLSContext.cc
  5062. * src/LibsslARC4Context.h
  5063. * src/LibsslARC4Decryptor.h
  5064. * src/LibsslARC4Encryptor.h
  5065. * src/LibsslDHKeyExchange.h
  5066. * src/LibsslTLSContext.cc
  5067. * src/MSEHandshake.cc
  5068. * src/MessageDigestHelper.cc
  5069. * src/MetalinkHelper.cc
  5070. * src/MultiDiskAdaptor.cc
  5071. * src/NameMatchOptionHandler.h
  5072. * src/NameResolver.cc
  5073. * src/Netrc.cc
  5074. * src/NsCookieParser.cc
  5075. * src/OptionHandlerException.cc
  5076. * src/OptionHandlerException.h
  5077. * src/OptionHandlerImpl.h
  5078. * src/OptionParser.cc
  5079. * src/ParameterizedStringParser.cc
  5080. * src/PeerAbstractCommand.cc
  5081. * src/PeerConnection.cc
  5082. * src/PeerMessageUtil.cc
  5083. * src/PeerReceiveHandshakeCommand.cc
  5084. * src/Platform.cc
  5085. * src/ReceiverMSEHandshakeCommand.cc
  5086. * src/RecoverableException.h
  5087. * src/RequestGroup.cc
  5088. * src/SimpleLogger.cc
  5089. * src/SocketCore.cc
  5090. * src/Sqlite3MozCookieParser.cc
  5091. * src/UTPexExtensionMessage.cc
  5092. * src/Util.cc
  5093. * src/XML2SAXMetalinkProcessor.cc
  5094. * src/Xml2XmlRpcRequestProcessor.cc
  5095. * src/XmlRpcMethodImpl.cc
  5096. * src/bencode.cc
  5097. * src/download_helper.cc
  5098. * src/messageDigest.h
  5099. * test/ExceptionTest.cc
  5100. * test/TestUtil.cc
  5101. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5102. Bump up version number to 1.4.0
  5103. * configure.ac
  5104. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5105. Added 2files.metalink to EXTRA_DIST
  5106. * test/Makefile.am
  5107. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5108. Added missing 2files.metalink
  5109. * test/2files.metalink
  5110. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5111. Show "[MEMORY]" prefix before filename in download summary if it
  5112. is downloaded into memory.
  5113. * src/DownloadResult.h
  5114. * src/RequestGroup.cc
  5115. * src/RequestGroupMan.cc
  5116. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5117. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  5118. * src/ExpatXmlRpcRequestProcessor.cc
  5119. * src/Xml2XmlRpcRequestProcessor.cc
  5120. * src/message.h
  5121. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5122. Defined const BDEs to avoid duplicate instantiation.
  5123. Defined MSG_GID_NOT_PROVIDED.
  5124. * src/XmlRpcMethodImpl.cc
  5125. * src/message.h
  5126. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5127. Code cleanup
  5128. * src/Xml2XmlRpcRequestProcessor.cc
  5129. * src/Xml2XmlRpcRequestProcessor.h
  5130. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5131. Defined ENABLE_XML_RPC
  5132. * configure.ac
  5133. * configure
  5134. * config.h.in
  5135. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5136. Added ExpatXmlRpcRequestProcessor
  5137. * src/ExpatXmlRpcRequestProcessor.cc
  5138. * src/ExpatXmlRpcRequestProcessor.h
  5139. * src/Makefile.am
  5140. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5141. Added tests for addTorrent and addMetalink command.
  5142. * test/TestUtil.cc
  5143. * test/TestUtil.h
  5144. * test/XmlRpcMethodTest.cc
  5145. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5146. Corrected the description of --file-allocation option.
  5147. * doc/aria2c.1.txt
  5148. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5149. Added tellAll command.
  5150. * src/XmlRpcMethodFactory.cc
  5151. * src/XmlRpcMethodImpl.cc
  5152. * src/XmlRpcMethodImpl.h
  5153. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5154. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  5155. * src/XmlRpcMethodImpl.cc
  5156. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5157. Added changeGlobalOption command. Currently,
  5158. max-overall-download-limit and max-overall-upload-limit option are
  5159. available.
  5160. * src/RequestGroupMan.h
  5161. * src/XmlRpcMethod.cc
  5162. * src/XmlRpcMethod.h
  5163. * src/XmlRpcMethodFactory.cc
  5164. * src/XmlRpcMethodImpl.cc
  5165. * src/XmlRpcMethodImpl.h
  5166. * test/XmlRpcMethodTest.cc
  5167. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5168. Added changeOption command. Currently, max-download-limit,
  5169. max-upload-limit option are available in this command.
  5170. * src/RequestGroup.h
  5171. * src/XmlRpcMethod.cc
  5172. * src/XmlRpcMethod.h
  5173. * src/XmlRpcMethodFactory.cc
  5174. * src/XmlRpcMethodImpl.cc
  5175. * src/XmlRpcMethodImpl.h
  5176. * test/XmlRpcMethodTest.cc
  5177. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5178. Added purgeDownloadResult command.
  5179. * src/RequestGroupMan.cc
  5180. * src/RequestGroupMan.h
  5181. * src/XmlRpcMethodFactory.cc
  5182. * src/XmlRpcMethodImpl.cc
  5183. * src/XmlRpcMethodImpl.h
  5184. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5185. Refactored.
  5186. * src/XmlRpcMethod.cc
  5187. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5188. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  5189. XmlRpcResponse.
  5190. * src/HttpServerBodyCommand.cc
  5191. * src/Makefile.am
  5192. * src/XmlRpcMethod.cc
  5193. * src/XmlRpcMethod.h
  5194. * src/XmlRpcMethodImpl.cc
  5195. * src/XmlRpcResponse.cc
  5196. * src/XmlRpcResponse.h
  5197. * test/XmlRpcMethodTest.cc
  5198. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5199. In XML-RPC option struct, header and index-out option can take
  5200. array as value.
  5201. * src/XmlRpcMethod.cc
  5202. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5203. Removed unused option member from PeerConnection.
  5204. * src/InitiatorMSEHandshakeCommand.cc
  5205. * src/PeerConnection.cc
  5206. * src/PeerConnection.h
  5207. * src/PeerInteractionCommand.cc
  5208. * src/PeerReceiveHandshakeCommand.cc
  5209. * src/ReceiverMSEHandshakeCommand.cc
  5210. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5211. Added "seeder" key to getPeers response.
  5212. * src/XmlRpcMethodImpl.cc
  5213. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5214. Added addMetalink XML-RPC command.
  5215. * src/XmlRpcMethodFactory.cc
  5216. * src/XmlRpcMethodImpl.cc
  5217. * src/XmlRpcMethodImpl.h
  5218. * src/download_helper.cc
  5219. * src/download_helper.h
  5220. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5221. Fixed the bug that POU peers are never choked in seeding.
  5222. * src/BtSeederStateChoke.cc
  5223. * src/BtSeederStateChoke.h
  5224. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5225. Added web-seeding URI handling in addTorrent command.
  5226. * src/XmlRpcMethodImpl.cc
  5227. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5228. Added "length" key to getFiles response.
  5229. * src/XmlRpcMethodImpl.cc
  5230. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5231. Moved --no-netrc option from ftp option section to http/ftp option
  5232. section.
  5233. * doc/aria2c.1.txt
  5234. * src/OptionHandlerFactory.cc
  5235. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5236. Removed garbage "\" character before '
  5237. * doc/aria2c.1.txt
  5238. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5239. Removed garbage "\" character before http.
  5240. * doc/aria2c.1.txt
  5241. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5242. Documented additional options that can be specified in -i list.
  5243. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  5244. and --xml-rpc-passwd. Removed --enable-http-server and
  5245. --http-server-listen-port.
  5246. * doc/aria2c.1.txt
  5247. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5248. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  5249. * src/DefaultPeerStorage.cc
  5250. * src/DefaultPeerStorage.h
  5251. * src/PeerStorage.h
  5252. * src/XmlRpcMethodImpl.cc
  5253. * test/MockPeerStorage.h
  5254. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5255. Put a call to Socket::isReadable() in try block.
  5256. * src/HttpServerBodyCommand.cc
  5257. * src/HttpServerCommand.cc
  5258. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5259. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  5260. exception , so it is now in try block.
  5261. * src/HttpServerResponseCommand.cc
  5262. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5263. Added "amChoking" and "peerChoking" key in getPeers response.
  5264. * src/XmlRpcMethodImpl.cc
  5265. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5266. Added test case for zero-length filter.
  5267. * test/BitfieldManTest.cc
  5268. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5269. getFiles command now returns file data for finished/stopped
  5270. downloads.
  5271. * src/XmlRpcMethodImpl.cc
  5272. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5273. DownloadResult now has the list of FileEntry. The download
  5274. summary displays the path of first selected file and the number of
  5275. remaining files for multi-file torrent.
  5276. * src/DownloadResult.h
  5277. * src/RequestGroup.cc
  5278. * src/RequestGroupMan.cc
  5279. * test/RequestGroupTest.cc
  5280. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5281. Fixed segmentation fault error when no file is selected in
  5282. multi-file torrent.
  5283. * src/BitfieldMan.cc
  5284. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5285. Escaped <,>,& character in XML-RPC response.
  5286. * src/XmlRpcMethod.cc
  5287. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5288. Throw DlAbortEx instead of FatalException during parsing options
  5289. because we don't want for aria2 to quit when bad option is passed
  5290. via XML-RPC.
  5291. * src/OptionHandlerException.cc
  5292. * src/OptionHandlerException.h
  5293. * src/OptionHandlerImpl.h
  5294. * src/OptionParser.cc
  5295. * src/OptionParser.h
  5296. * src/PStringSegment.cc
  5297. * src/ParameterizedStringParser.cc
  5298. * src/download_helper.cc
  5299. * test/ParameterizedStringParserTest.cc
  5300. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. Selecting files are now done in
  5302. DefaultBtContext::setFileFileter().
  5303. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  5304. functions are removed because they are no longer used. Creating
  5305. filter in BitfieldMan is done in new funtion
  5306. PieceStorage::setupFileFilter()
  5307. * src/BtContext.cc
  5308. * src/BtContext.h
  5309. * src/DefaultBtContext.cc
  5310. * src/DefaultBtContext.h
  5311. * src/DefaultPieceStorage.cc
  5312. * src/DefaultPieceStorage.h
  5313. * src/DiskAdaptor.cc
  5314. * src/DiskAdaptor.h
  5315. * src/PieceStorage.h
  5316. * src/RequestGroup.cc
  5317. * src/UnknownLengthPieceStorage.h
  5318. * src/XmlRpcMethodImpl.cc
  5319. * test/DefaultBtContextTest.cc
  5320. * test/MockBtContext.h
  5321. * test/MockPieceStorage.h
  5322. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5323. Fixed compile error on Mac OS X
  5324. * src/HttpServer.cc
  5325. * src/XmlRpcMethod.h
  5326. * src/XmlRpcMethodImpl.cc
  5327. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5328. Use std::binary_search instead of std::find
  5329. * src/DefaultPieceStorage.cc
  5330. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5331. Removed unnecessary BDE() call; leave them to implicit conversion.
  5332. * src/XmlRpcMethodImpl.cc
  5333. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5334. Return connections and gid in string
  5335. * src/XmlRpcMethodImpl.cc
  5336. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5337. Renamed addURI as addUri
  5338. * src/XmlRpcMethodFactory.cc
  5339. * src/XmlRpcMethodImpl.cc
  5340. * src/XmlRpcMethodImpl.h
  5341. * test/XmlRpcMethodTest.cc
  5342. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5343. Renamed addTorrentFile as addTorrent
  5344. * src/XmlRpcMethodFactory.cc
  5345. * src/XmlRpcMethodImpl.cc
  5346. * src/XmlRpcMethodImpl.h
  5347. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5348. The information for files, URIs, peers are removed from the
  5349. reponse of TellaActive, TellStatus command because they tend to be
  5350. large. Instead they can be retrieved by the dedicated commands:
  5351. getFiles, getUris and getPeers respectively.
  5352. * src/XmlRpcMethodFactory.cc
  5353. * src/XmlRpcMethodImpl.cc
  5354. * src/XmlRpcMethodImpl.h
  5355. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5356. Removed --max-overall-upload-limit and
  5357. --max-overall-download-limit option from listRequestOptions.
  5358. * src/download_helper.cc
  5359. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5360. Log incoming host in HttpListenCommand.
  5361. * src/HttpListenCommand.cc
  5362. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5363. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  5364. --xml-rpc-passwd option.
  5365. * src/HttpServer.cc
  5366. * src/HttpServer.h
  5367. * src/HttpServerCommand.cc
  5368. * src/OptionHandlerFactory.cc
  5369. * src/prefs.cc
  5370. * src/prefs.h
  5371. * src/usage_text.h
  5372. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5373. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  5374. processing 0 length request.
  5375. * src/HttpServerBodyCommand.cc
  5376. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5377. Removed --enable-http-server and --http-server-listen-port
  5378. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  5379. instead. The original feature for --enable-http-server that
  5380. reports download progress in HTML was officially removed. Persist
  5381. XML-RPC connection if client supports keep-alive.
  5382. * src/DownloadEngineFactory.cc
  5383. * src/HttpServerCommand.cc
  5384. * src/HttpServerResponseCommand.cc
  5385. * src/Makefile.am
  5386. * src/Makefile.in
  5387. * src/OptionHandlerFactory.cc
  5388. * src/RequestGroupMan.cc
  5389. * src/main.cc
  5390. * src/option_processing.cc
  5391. * src/prefs.cc
  5392. * src/prefs.h
  5393. * src/usage_text.h
  5394. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5395. Added "uris" key to the response of tellStatus command. Added
  5396. "connections" key to the response of tellStatus and tellActive
  5397. command.
  5398. * src/XmlRpcMethodImpl.cc
  5399. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5400. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  5401. Added TellStatusXmlRpcMethod. Remove command can now remove
  5402. waiting RequestGroup.
  5403. * src/RequestGroupMan.cc
  5404. * src/RequestGroupMan.h
  5405. * src/XmlRpcMethodFactory.cc
  5406. * src/XmlRpcMethodImpl.cc
  5407. * src/XmlRpcMethodImpl.h
  5408. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5409. Initialized _peerId
  5410. * src/Peer.cc
  5411. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5412. Return fault structure for error. FailXmlRpcMethod is renamed as
  5413. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  5414. in non-torrent download. Return single param value.
  5415. * src/XmlRpcMethod.cc
  5416. * src/XmlRpcMethodFactory.cc
  5417. * src/XmlRpcMethodImpl.cc
  5418. * src/XmlRpcMethodImpl.h
  5419. * test/XmlRpcMethodTest.cc
  5420. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5421. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  5422. command.
  5423. * src/RequestGroup.cc
  5424. * src/RequestGroup.h
  5425. * src/RequestGroupMan.cc
  5426. * src/XmlRpcMethodImpl.cc
  5427. * test/RequestGroupTest.cc
  5428. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5429. Added more options that can be specified in -i list and xml-rpc
  5430. add* command.
  5431. * src/download_helper.h
  5432. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5433. The available options in -i list should be listed in
  5434. listRequestOptions().
  5435. * src/download_helper.cc
  5436. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5437. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  5438. command.
  5439. * src/XmlRpcMethodImpl.cc
  5440. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5441. Now RequestGroup has its own copy of Option object. This will help
  5442. to give custom option for each RequestGroup.
  5443. addTorrentFile command now takes options.
  5444. * src/AbstractCommand.cc
  5445. * src/AbstractCommand.h
  5446. * src/AbstractProxyRequestCommand.cc
  5447. * src/ActivePeerConnectionCommand.cc
  5448. * src/ActivePeerConnectionCommand.h
  5449. * src/AdaptiveURISelector.cc
  5450. * src/BtCheckIntegrityEntry.cc
  5451. * src/BtDependency.cc
  5452. * src/BtDependency.h
  5453. * src/BtFileAllocationEntry.cc
  5454. * src/BtPostDownloadHandler.cc
  5455. * src/CheckIntegrityEntry.cc
  5456. * src/DownloadCommand.cc
  5457. * src/FtpDownloadCommand.cc
  5458. * src/FtpFinishDownloadCommand.cc
  5459. * src/FtpInitiateConnectionCommand.cc
  5460. * src/FtpNegotiationCommand.cc
  5461. * src/HttpInitiateConnectionCommand.cc
  5462. * src/HttpRequestCommand.cc
  5463. * src/HttpResponseCommand.cc
  5464. * src/HttpSkipResponseCommand.cc
  5465. * src/InitiateConnectionCommand.cc
  5466. * src/InitiateConnectionCommandFactory.cc
  5467. * src/InitiatorMSEHandshakeCommand.cc
  5468. * src/InitiatorMSEHandshakeCommand.h
  5469. * src/Metalink2RequestGroup.cc
  5470. * src/Metalink2RequestGroup.h
  5471. * src/MetalinkPostDownloadHandler.cc
  5472. * src/MultiUrlRequestInfo.cc
  5473. * src/MultiUrlRequestInfo.h
  5474. * src/PeerAbstractCommand.cc
  5475. * src/PeerInteractionCommand.cc
  5476. * src/PeerInteractionCommand.h
  5477. * src/PeerReceiveHandshakeCommand.cc
  5478. * src/PeerReceiveHandshakeCommand.h
  5479. * src/RequestGroup.cc
  5480. * src/RequestGroup.h
  5481. * src/TrackerWatcherCommand.cc
  5482. * src/TrackerWatcherCommand.h
  5483. * src/XmlRpcMethod.cc
  5484. * src/XmlRpcMethod.h
  5485. * src/XmlRpcMethodImpl.cc
  5486. * src/download_helper.cc
  5487. * src/download_helper.h
  5488. * src/main.cc
  5489. * test/BtDependencyTest.cc
  5490. * test/BtPostDownloadHandlerTest.cc
  5491. * test/DefaultBtMessageDispatcherTest.cc
  5492. * test/DownloadHandlerFactoryTest.cc
  5493. * test/DownloadHelperTest.cc
  5494. * test/Metalink2RequestGroupTest.cc
  5495. * test/MetalinkPostDownloadHandlerTest.cc
  5496. * test/RequestGroupManTest.cc
  5497. * test/RequestGroupTest.cc
  5498. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5499. Added tellActiveStatus xml-rpc command which reports download
  5500. status of active downloads.
  5501. * src/XmlRpcMethodFactory.cc
  5502. * src/XmlRpcMethodImpl.cc
  5503. * src/XmlRpcMethodImpl.h
  5504. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5505. Added addTorrentFile xml-rpc command which receives uploaded
  5506. torrent file and add download for it.
  5507. * src/RequestGroupMan.cc
  5508. * src/XmlRpcMethodFactory.cc
  5509. * src/XmlRpcMethodImpl.cc
  5510. * src/XmlRpcMethodImpl.h
  5511. * src/download_helper.cc
  5512. * src/download_helper.h
  5513. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5514. Added remove xml-rpc command which removes specified download.
  5515. There is a known issue: the removed unfinished downloads are
  5516. reported ERR when aria2 exits. They should be reported as INPR.
  5517. * src/RequestGroupMan.cc
  5518. * src/RequestGroupMan.h
  5519. * src/XmlRpcMethodFactory.cc
  5520. * src/XmlRpcMethodImpl.cc
  5521. * src/XmlRpcMethodImpl.h
  5522. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5523. If --enable-http-server is enabled, don't stop aria2 when all
  5524. download finished and don't quit when no files to download at
  5525. start up.
  5526. * src/RequestGroupMan.cc
  5527. * src/main.cc
  5528. * src/option_processing.cc
  5529. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5530. Added missing AM_CONDITIONAL
  5531. * configure.ac
  5532. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5533. Added xml-rpc functionality. Currently only addURI commad is
  5534. supported. To enable xml-rpc, run aria2 with
  5535. --enable-http-server. This option name is temporal and will be
  5536. changed. The feature that reports download progress in html format
  5537. is temporarily disabled.
  5538. * src/HttpServer.cc
  5539. * src/HttpServer.h
  5540. * src/HttpServerBodyCommand.cc
  5541. * src/HttpServerBodyCommand.h
  5542. * src/HttpServerCommand.cc
  5543. * src/HttpServerResponseCommand.cc
  5544. * src/Makefile.am
  5545. * src/OptionParser.cc
  5546. * src/OptionParser.h
  5547. * src/RequestGroupMan.cc
  5548. * src/RequestGroupMan.h
  5549. * src/XmlRpcMethod.cc
  5550. * src/XmlRpcMethod.h
  5551. * src/XmlRpcMethodFactory.cc
  5552. * src/XmlRpcMethodFactory.h
  5553. * src/XmlRpcMethodImpl.cc
  5554. * src/XmlRpcMethodImpl.h
  5555. * src/download_helper.cc
  5556. * src/download_helper.h
  5557. * test/Makefile.am
  5558. * test/XmlRpcMethodTest.cc
  5559. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5560. Added xml-rpc request parser. The supported value types are:
  5561. i4/int, string, double, struct, array, base64. Currently only
  5562. libxml2 version is provided.
  5563. * src/Xml2XmlRpcRequestProcessor.cc
  5564. * src/Xml2XmlRpcRequestProcessor.h
  5565. * src/XmlRpcElements.cc
  5566. * src/XmlRpcElements.h
  5567. * src/XmlRpcRequest.h
  5568. * src/XmlRpcRequestParserController.cc
  5569. * src/XmlRpcRequestParserController.h
  5570. * src/XmlRpcRequestParserState.h
  5571. * src/XmlRpcRequestParserStateImpl.cc
  5572. * src/XmlRpcRequestParserStateImpl.h
  5573. * src/XmlRpcRequestParserStateMachine.cc
  5574. * src/XmlRpcRequestParserStateMachine.h
  5575. * src/XmlRpcRequestProcessor.h
  5576. * test/XmlRpcRequestParserControllerTest.cc
  5577. * test/XmlRpcRequestProcessorTest.cc
  5578. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5579. * Release 1.3.3
  5580. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5581. Fixed compile error since r1202.
  5582. * src/ExpatMetalinkProcessor.cc
  5583. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5584. Updated Ukrainian, Russian and Simplified Chinese
  5585. translations. Thanks to all translators.
  5586. * po/ru.po
  5587. * po/uk.po
  5588. * po/zh_CN.po
  5589. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5590. Pass reference of Option object instead of pointer.
  5591. * src/download_helper.cc
  5592. * src/download_helper.h
  5593. * src/main.cc
  5594. * test/DownloadHelperTest.cc
  5595. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5596. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  5597. from option directly. Instead, get them from RequestGroup.
  5598. * src/ActivePeerConnectionCommand.cc
  5599. * src/ActivePeerConnectionCommand.h
  5600. * src/PeerReceiveHandshakeCommand.cc
  5601. * src/RequestGroup.h
  5602. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5603. Removed unused uploadLimitCheck and uploadLimit from
  5604. PeerAbstractCommand. Removed unused maxDownloadLimit from
  5605. PeerInteractionCommand.
  5606. * src/PeerAbstractCommand.cc
  5607. * src/PeerAbstractCommand.h
  5608. * src/PeerInteractionCommand.cc
  5609. * src/PeerInteractionCommand.h
  5610. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5611. Fixed broken file renaming feature since r1202.
  5612. * src/FtpNegotiationCommand.cc
  5613. * src/FtpNegotiationCommand.h
  5614. * src/HttpResponseCommand.cc
  5615. * src/RequestGroup.cc
  5616. * src/RequestGroup.h
  5617. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5618. Removed unused debug log
  5619. * src/SocketCore.cc
  5620. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5621. Generated configure and Makefile.in using autoconf 2.63 and
  5622. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  5623. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  5624. * configure.ac
  5625. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5626. Moved piece statistics stuff to new PieceStatMan class.
  5627. Refactored PieceSelector interface.
  5628. * src/DefaultPieceStorage.cc
  5629. * src/DefaultPieceStorage.h
  5630. * src/LongestSequencePieceSelector.cc
  5631. * src/LongestSequencePieceSelector.h
  5632. * src/Makefile.am
  5633. * src/PieceSelector.h
  5634. * src/PieceStatMan.cc
  5635. * src/PieceStatMan.h
  5636. * src/RarestPieceSelector.cc
  5637. * src/RarestPieceSelector.h
  5638. * src/RequestGroup.cc
  5639. * test/DefaultPieceStorageTest.cc
  5640. * test/InOrderPieceSelector.h
  5641. * test/Makefile.am
  5642. * test/PieceStatManTest.cc
  5643. * test/RarestPieceSelectorTest.cc
  5644. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5645. Added static member _protocolFamily to SocketCore. By default,
  5646. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  5647. address. Sometime SocketCore::bind() and
  5648. SocketCore::establishConnection() use difference protocl family
  5649. and latter cannot connect to former. To avoid this situation, we
  5650. limit protocol family to AF_INET for unit tests.
  5651. * src/SocketCore.cc
  5652. * src/SocketCore.h
  5653. * test/AllTest.cc
  5654. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5655. Avoid std::bad_alloc for negative bencode string length.
  5656. * src/bencode.cc
  5657. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5658. Supported segmented downloading with chunked transfer encoding and
  5659. content-length.
  5660. * src/DownloadCommand.cc
  5661. * src/HttpResponseCommand.cc
  5662. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5663. Bump up version number to 1.3.3
  5664. * configure.ac
  5665. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5667. from 4096 to 65536 (for insanely large ftp login banners)
  5668. * src/FtpConnection.h
  5669. * test/FtpConnectionTest.cc
  5670. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5671. In DefaultBtContext::getActualBasePath(), return first
  5672. FileEntry::getPath() for single file torrent.
  5673. * src/DefaultBtContext.cc
  5674. * test/DefaultBtContextTest.cc
  5675. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5676. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5677. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5678. Removed _directIOAllowed member from DiskWriter.
  5679. * src/AbstractDiskWriter.cc
  5680. * src/AbstractDiskWriter.h
  5681. * src/AbstractSingleDiskAdaptor.cc
  5682. * src/AbstractSingleDiskAdaptor.h
  5683. * src/BinaryStream.h
  5684. * src/ByteArrayDiskWriter.h
  5685. * src/DefaultPieceStorage.cc
  5686. * src/DiskWriter.h
  5687. * src/MultiDiskAdaptor.cc
  5688. * src/MultiDiskAdaptor.h
  5689. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5690. Now the constructor of AbstractDiskWriter takes filename as an
  5691. argument and filename argument is removed from openFile(),
  5692. initAndOpenFile(), openExistingFile() interface. storeDir member
  5693. and its accessor functions are removed from DiskAdaptor because it
  5694. is not used anymore. size() member function of DefaultDiskWriter,
  5695. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5696. opening file.
  5697. * src/AbstractDiskWriter.cc
  5698. * src/AbstractDiskWriter.h
  5699. * src/AbstractSingleDiskAdaptor.cc
  5700. * src/AbstractSingleDiskAdaptor.h
  5701. * src/ByteArrayDiskWriter.cc
  5702. * src/ByteArrayDiskWriter.h
  5703. * src/ByteArrayDiskWriterFactory.cc
  5704. * src/ByteArrayDiskWriterFactory.h
  5705. * src/DefaultDiskWriter.cc
  5706. * src/DefaultDiskWriter.h
  5707. * src/DefaultDiskWriterFactory.cc
  5708. * src/DefaultDiskWriterFactory.h
  5709. * src/DefaultPieceStorage.cc
  5710. * src/DirectDiskAdaptor.cc
  5711. * src/DirectDiskAdaptor.h
  5712. * src/DiskAdaptor.h
  5713. * src/DiskWriter.h
  5714. * src/DiskWriterFactory.h
  5715. * src/MessageDigestHelper.cc
  5716. * src/MultiDiskAdaptor.cc
  5717. * src/RequestGroup.cc
  5718. * src/UnknownLengthPieceStorage.cc
  5719. * src/Util.cc
  5720. * test/DefaultDiskWriterTest.cc
  5721. * test/DirectDiskAdaptorTest.cc
  5722. * test/FallocFileAllocationIteratorTest.cc
  5723. * test/MessageDigestHelperTest.cc
  5724. * test/MetalinkProcessorTest.cc
  5725. * test/MultiDiskAdaptorTest.cc
  5726. * test/MultiFileAllocationIteratorTest.cc
  5727. * test/SingleFileAllocationIteratorTest.cc
  5728. * test/UtilTest.cc
  5729. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5730. Fixed the bug that aria2 aborts when --select-file is used. This
  5731. bug was introduced in r1199.
  5732. * src/MultiDiskAdaptor.cc
  5733. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5734. Code cleanup
  5735. * test/MockPieceStorage.cc
  5736. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5737. Fixed the bug that read-only file with wrong file size will cause
  5738. error because it cannot be truncated to the correct size. Now if
  5739. file size is different than the expected one, re-open file in
  5740. writable mode.
  5741. * src/AbstractSingleDiskAdaptor.cc
  5742. * src/AbstractSingleDiskAdaptor.h
  5743. * src/BtCheckIntegrityEntry.cc
  5744. * src/DiskAdaptor.h
  5745. * src/MultiDiskAdaptor.h
  5746. * src/RequestGroup.cc
  5747. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5748. Fixed the bug that with --check-integrity option aria2 reports
  5749. downloaded file size is 0 even if some parts of file is correctly
  5750. downloaded. This bug is reproducible for the download that a file
  5751. includes last piece is missing. This bug doesn't reveal for
  5752. single-torrent with file allocation on.
  5753. * src/IteratableChecksumValidator.cc
  5754. * test/IteratableChecksumValidatorTest.cc
  5755. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5756. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5757. * src/RequestGroupMan.cc
  5758. * src/AdaptiveURISelector.cc
  5759. * src/AdaptiveURISelector.h
  5760. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5761. * Release 1.3.2
  5762. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5763. Updated README
  5764. * README
  5765. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5766. Updated Ukrainian translations. Thanks to Alexander10.
  5767. * po/uk.po
  5768. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5769. Code cleanup
  5770. * src/MetalinkParserStateMachine.cc
  5771. * src/MetalinkParserStateMachine.h
  5772. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5773. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5774. and expat simultaneously, MetalinkProcessor is now not base class
  5775. and it is directly implemented in XML2SAXMetalinkProcessor and
  5776. ExpatMetalinkProcessor.
  5777. * src/ExpatMetalinkProcessor.cc
  5778. * src/ExpatMetalinkProcessor.h
  5779. * src/Makefile.am
  5780. * src/MetalinkHelper.cc
  5781. * src/MetalinkProcessor.h
  5782. * src/MetalinkProcessorFactory.cc: Removed.
  5783. * src/MetalinkProcessorFactory.h: Removed
  5784. * src/XML2SAXMetalinkProcessor.cc
  5785. * src/XML2SAXMetalinkProcessor.h
  5786. * test/MetalinkProcessorTest.cc
  5787. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5788. Bump up version number to 1.3.2
  5789. * configure.ac
  5790. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5791. Added missing file.
  5792. * test/Makefile.am
  5793. * test/url-list-singleFileEndsWithSlash.torrent
  5794. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5795. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5796. request.
  5797. * src/AnnounceList.cc
  5798. * src/AnnounceList.h
  5799. * src/BDE.cc: Added
  5800. * src/BDE.h: Added
  5801. * src/DHTAbstractMessage.cc
  5802. * src/DHTAbstractMessage.h
  5803. * src/DHTAnnouncePeerMessage.cc
  5804. * src/DHTAnnouncePeerMessage.h
  5805. * src/DHTAnnouncePeerReplyMessage.cc
  5806. * src/DHTAnnouncePeerReplyMessage.h
  5807. * src/DHTFindNodeMessage.cc
  5808. * src/DHTFindNodeMessage.h
  5809. * src/DHTFindNodeReplyMessage.cc
  5810. * src/DHTFindNodeReplyMessage.h
  5811. * src/DHTGetPeersMessage.cc
  5812. * src/DHTGetPeersMessage.h
  5813. * src/DHTGetPeersReplyMessage.cc
  5814. * src/DHTGetPeersReplyMessage.h
  5815. * src/DHTMessageFactory.h
  5816. * src/DHTMessageFactoryImpl.cc
  5817. * src/DHTMessageFactoryImpl.h
  5818. * src/DHTMessageReceiver.cc
  5819. * src/DHTMessageTracker.cc
  5820. * src/DHTMessageTracker.h
  5821. * src/DHTPingMessage.cc
  5822. * src/DHTPingMessage.h
  5823. * src/DHTPingReplyMessage.cc
  5824. * src/DHTPingReplyMessage.h
  5825. * src/DHTQueryMessage.cc
  5826. * src/DHTQueryMessage.h
  5827. * src/DHTResponseMessage.cc
  5828. * src/DHTResponseMessage.h
  5829. * src/DefaultBtAnnounce.cc
  5830. * src/DefaultBtContext.cc
  5831. * src/DefaultBtContext.h
  5832. * src/HandshakeExtensionMessage.cc
  5833. * src/Makefile.am
  5834. * src/PeerListProcessor.h
  5835. * src/UTPexExtensionMessage.cc
  5836. * src/bencode.cc
  5837. * src/bencode.h
  5838. * test/AnnounceListTest.cc
  5839. * test/BDETest.cc: Added
  5840. * test/BencodeTest.cc
  5841. * test/DHTAnnouncePeerMessageTest.cc
  5842. * test/DHTAnnouncePeerReplyMessageTest.cc
  5843. * test/DHTFindNodeMessageTest.cc
  5844. * test/DHTFindNodeReplyMessageTest.cc
  5845. * test/DHTGetPeersMessageTest.cc
  5846. * test/DHTGetPeersReplyMessageTest.cc
  5847. * test/DHTMessageFactoryImplTest.cc
  5848. * test/DHTMessageTrackerTest.cc
  5849. * test/DHTPingMessageTest.cc
  5850. * test/DHTPingReplyMessageTest.cc
  5851. * test/Makefile.am
  5852. * test/MockDHTMessageFactory.h
  5853. * test/PeerListProcessorTest.cc
  5854. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5855. Use url-list (web-seeding) only for single-file torrent. This is
  5856. basically the same behavior with Metalink file with torrent and
  5857. URIs.
  5858. * src/RequestGroup.cc
  5859. * src/DefaultBtContext.cc
  5860. * test/DefaultBtContextTest.cc
  5861. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5862. Rewritten expr
  5863. * src/array_fun.h
  5864. * test/array_funTest.cc
  5865. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5866. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5867. * src/DefaultBtMessageDispatcher.cc
  5868. * src/a2algo.h
  5869. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5870. Removed ExtendedMessagingAware. Instead of using inheritance,
  5871. added ExtensionMessageRegistry and it is passed to
  5872. DefaultExtensionMessageFactory.
  5873. * src/DefaultBtInteractive.cc
  5874. * src/DefaultBtInteractive.h
  5875. * src/DefaultExtensionMessageFactory.cc
  5876. * src/DefaultExtensionMessageFactory.h
  5877. * src/ExtendedMessagingAware.h: Removed.
  5878. * src/ExtensionMessageFactory.h
  5879. * src/ExtensionMessageRegistry.h: Added.
  5880. * src/Makefile.am
  5881. * src/PeerInteractionCommand.cc
  5882. * test/DefaultExtensionMessageFactoryTest.cc
  5883. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5884. Fixed typo in log messages
  5885. * src/MSEHandshake.cc
  5886. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5887. Fixed the bug that prevents torrent download from finishing. The
  5888. bug doesn't reveal for all torrents. The torrents affected this
  5889. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5890. of pieces.
  5891. * src/bitfield.h
  5892. * test/bitfieldTest.cc
  5893. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5894. Code cleanup
  5895. * src/PeerListProcessor.h
  5896. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5897. Removed RequestGroupAware
  5898. * src/AbstractCommand.cc
  5899. * src/AbstractCommand.h
  5900. * src/ActivePeerConnectionCommand.cc
  5901. * src/ActivePeerConnectionCommand.h
  5902. * src/DHTGetPeersCommand.cc
  5903. * src/DHTGetPeersCommand.h
  5904. * src/InitiatorMSEHandshakeCommand.cc
  5905. * src/InitiatorMSEHandshakeCommand.h
  5906. * src/Makefile.am
  5907. * src/PeerInitiateConnectionCommand.cc
  5908. * src/PeerInitiateConnectionCommand.h
  5909. * src/PeerInteractionCommand.cc
  5910. * src/PeerInteractionCommand.h
  5911. * src/RealtimeCommand.cc
  5912. * src/RealtimeCommand.h
  5913. * src/RequestGroupAware.cc: Removed
  5914. * src/RequestGroupAware.h: Removed
  5915. * src/SeedCheckCommand.cc
  5916. * src/SeedCheckCommand.h
  5917. * src/SleepCommand.cc
  5918. * src/TrackerWatcherCommand.cc
  5919. * src/TrackerWatcherCommand.h
  5920. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5921. Rewritten PeerListProcessor
  5922. * src/PeerListProcessor.h
  5923. * src/CompactPeerListProcessor.h: Removed
  5924. * src/CompactPeerListProcessor.cc: Removed
  5925. * src/DelegatingPeerListProcessor.cc: Removed.
  5926. * src/DefaultBtAnnounce.cc
  5927. * src/Makefile.am
  5928. * src/UTPexExtensionMessage.cc
  5929. * src/DefaultPeerListProcessor.h: Removed.
  5930. * src/DefaultPeerListProcessor.cc: Removed.
  5931. * src/DelegatingPeerListProcessor.h: Removed.
  5932. * test/Makefile.am
  5933. * test/PeerListProcessorTest.cc
  5934. * test/DefaultPeerListProcessorTest.cc: Removed.
  5935. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5936. Rewritten RequestGroupMan::calculateStat()
  5937. * src/RequestGroupMan.cc
  5938. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5939. Removed unnecessary virtual destructor for Request class.
  5940. * src/Request.cc
  5941. * src/Request.h
  5942. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5943. Avoid dynamic_pointer_cast.
  5944. * src/DHTGetPeersCommand.cc
  5945. * src/DHTGetPeersCommand.h
  5946. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5947. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5948. BtEvent.
  5949. * src/AbstractBtEventListener.h: Removed.
  5950. * src/AbstractBtMessage.cc
  5951. * src/AbstractBtMessage.h
  5952. * src/BtAbortOutstandingRequestEvent.h
  5953. * src/BtCancelSendingPieceEvent.h
  5954. * src/BtChokedEvent.h: Removed.
  5955. * src/BtChokingEvent.h
  5956. * src/BtEvent.h: Removed
  5957. * src/BtEventListener.h: Removed.
  5958. * src/BtMessage.h
  5959. * src/BtPieceMessage.cc
  5960. * src/BtPieceMessage.h
  5961. * src/BtRequestMessage.cc
  5962. * src/BtRequestMessage.h
  5963. * src/DefaultBtMessageDispatcher.cc
  5964. * src/Makefile.am
  5965. * src/a2functional.h
  5966. * test/BtPieceMessageTest.cc
  5967. * test/BtRequestMessageTest.cc
  5968. * test/DefaultBtMessageDispatcherTest.cc
  5969. * test/MockBtMessage.h
  5970. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5971. Code cleanup
  5972. * src/RequestGroupMan.cc
  5973. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5974. Code cleanup
  5975. * src/DownloadCommand.cc
  5976. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5977. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5978. byte.
  5979. * src/DownloadCommand.cc
  5980. * src/bitfield.h
  5981. * test/bitfieldTest.cc
  5982. Fixed the bug that causes infinite loop if broken web server
  5983. returns chunked response without last "0" chunk-size marker and
  5984. closes connection.
  5985. * src/DownloadCommand.cc
  5986. Instantiate properly configured HttpDownloadCommand for
  5987. non-resumable downlaods.
  5988. * src/HttpResponseCommand.cc
  5989. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5990. Rewritten array operation functions.
  5991. * src/BitfieldMan.cc
  5992. * src/array_fun.h
  5993. * test/array_funTest.cc
  5994. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5995. Removed unused variable 'query'
  5996. * src/Request.cc
  5997. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5998. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5999. accidentally set to false in r1162.
  6000. * configure.ac
  6001. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6002. Code cleanup
  6003. * src/BNode.cc
  6004. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6005. Increase prefixLength for the bucket which doesn't own local node
  6006. ID when splitting bucket.
  6007. * src/DHTBucket.cc
  6008. * test/DHTBucketTest.cc
  6009. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6010. * Release 1.3.1
  6011. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6012. Bump up version number to 1.3.1
  6013. * configure.ac
  6014. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6015. Removed unused variable checkPoint. Also removed include directive
  6016. for TimeA2.h.
  6017. * src/SeedCheckCommand.h
  6018. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6019. Fixed the bug that upload limit exceeds the value specified in
  6020. --seed-ratio option depending on the timing of the execution of
  6021. SeedCheckCommand.
  6022. * src/SeedCheckCommand.cc
  6023. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6024. Fixed the bug that removed peer's session upload/download length
  6025. are counted twice in _cachedTransferStat before it is
  6026. re-calculated. This affected the calculation of shara ratio,
  6027. resulting aria2 wrongly determines that specified share ratio is
  6028. reached. Also fixed the typo in calculateStatFor function name.
  6029. * src/BtSetup.cc
  6030. * src/DefaultPeerStorage.cc
  6031. * src/ShareRatioSeedCriteria.h
  6032. * test/ShareRatioSeedCriteriaTest.cc
  6033. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6034. * Release 1.3.0
  6035. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6036. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  6037. Nynorsk translations. Thanks to all translators.
  6038. * po/es.po
  6039. * po/ja.po
  6040. * po/nn.po
  6041. * po/ru.po
  6042. * po/uk.po
  6043. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6044. Rewritten isInRange()
  6045. * src/DHTBucket.cc
  6046. * test/DHTBucketTest.cc
  6047. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6048. Fixed typo
  6049. * doc/aria2c.1.txt
  6050. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6051. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  6052. malloc/realloc is not used.
  6053. * src/configure.ac
  6054. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6055. BitfieldMan::getMissingIndexes family functions now takes unsigned
  6056. char* bitfield instead of stl container for efficiency.
  6057. PieceSelector::select now takes this
  6058. bitfield. RarestPieceSelector::select now also performs
  6059. efficiently for this change. bitfield namespace is introduced and
  6060. it has several helper functions to handle basic bitfield
  6061. operations such as test, count set bits, etc.
  6062. * src/BitfieldMan.cc
  6063. * src/BitfieldMan.h
  6064. * src/DefaultBtRequestFactory.cc
  6065. * src/DefaultPieceStorage.cc
  6066. * src/DefaultPieceStorage.h
  6067. * src/LongestSequencePieceSelector.cc
  6068. * src/LongestSequencePieceSelector.h
  6069. * src/Makefile.am
  6070. * src/Piece.cc
  6071. * src/Piece.h
  6072. * src/PieceSelector.h
  6073. * src/RarestPieceSelector.cc
  6074. * src/RarestPieceSelector.h
  6075. * src/Util.cc
  6076. * src/Util.h
  6077. * src/bitfield.h
  6078. * test/BitfieldManTest.cc
  6079. * test/LongestSequencePieceSelectorTest.cc
  6080. * test/Makefile.am
  6081. * test/RarestPieceSelectorTest.cc
  6082. * test/UtilTest.cc
  6083. * test/bitfieldTest.cc
  6084. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6085. Made accepted socket non-block.
  6086. * src/FtpNegotiationCommand.cc
  6087. * src/HttpListenCommand.cc
  6088. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6089. Guarded #ifdef HAVE_POSIX_FALLOCATE
  6090. * src/AbstractSingleDiskAdaptor.cc
  6091. * src/DefaultPieceStorage.cc
  6092. * src/DiskAdaptor.h
  6093. * src/DiskAdaptor.h
  6094. * src/MultiFileAllocationIterator.cc
  6095. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6096. Run
  6097. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  6098. in every 1 sec. The timeout of RequestSlot is 60s by default and
  6099. it doesn't need to be called every time when
  6100. DefaultBtInteractive::doInteractionProcessing() is called.
  6101. * src/DefaultBtInteractive.cc
  6102. * src/DefaultBtInteractive.h
  6103. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6104. Documented 'falloc' in man page.
  6105. * doc/aria2c.1.txt
  6106. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6107. Updated doc
  6108. * src/usage_text.h
  6109. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6110. Added 'falloc' parameter for --file-allocation option. 'falloc'
  6111. allocation mode uses posix_fallocate() system call to allocate
  6112. file on disk. If you are using newer file systems such as ext4
  6113. (with extents support), btrfs or xfs, 'falloc' is your best
  6114. choice. It allocates large(few GiB) files almost instantly. Don't
  6115. use 'falloc' with legacy file systems such as ext3 because it
  6116. takes almost same time as 'prealloc' and it blocks aria2 entirely
  6117. until allocation finishes. 'falloc' may not be available if your
  6118. system doesn't have posix_fallocate() system call.
  6119. * configure.ac
  6120. * src/AbstractDiskWriter.cc
  6121. * src/AbstractDiskWriter.h
  6122. * src/AbstractSingleDiskAdaptor.cc
  6123. * src/BinaryStream.h
  6124. * src/BtCheckIntegrityEntry.cc
  6125. * src/ByteArrayDiskWriter.h
  6126. * src/CheckIntegrityEntry.cc
  6127. * src/CheckIntegrityEntry.h
  6128. * src/DefaultPieceStorage.cc
  6129. * src/DiskAdaptor.cc
  6130. * src/DiskAdaptor.h
  6131. * src/DiskWriter.h
  6132. * src/FallocFileAllocationIterator.cc
  6133. * src/FallocFileAllocationIterator.h
  6134. * src/FileAllocationEntry.cc
  6135. * src/FileAllocationEntry.h
  6136. * src/Makefile.am
  6137. * src/MultiFileAllocationIterator.cc
  6138. * src/MultiFileAllocationIterator.h
  6139. * src/OptionHandlerFactory.cc
  6140. * src/RequestGroup.cc
  6141. * src/StreamCheckIntegrityEntry.cc
  6142. * src/prefs.cc
  6143. * src/prefs.h
  6144. * src/usage_text.h
  6145. * test/FallocFileAllocationIteratorTest.cc
  6146. * test/Makefile.am
  6147. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6148. Removed duplicate enableDirectIO() call.
  6149. * src/MultiFileAllocationIterator.cc
  6150. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6151. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  6152. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  6153. cost of std::rotate().
  6154. * src/RarestPieceSelector.cc
  6155. * src/RarestPieceSelector.h
  6156. * test/RarestPieceSelectorTest.cc
  6157. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6158. Updated usage doc for --bt-tracker-interval option.
  6159. * src/usage_text.h
  6160. * doc/aria2c.1.txt
  6161. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6162. Documented --bt-tracker-interval option in man page.
  6163. * doc/aria2c.1.txt
  6164. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6165. Added an option to specify the interval between tracker requests.
  6166. If non-zero value is specified, aria2 uses it and ignores the
  6167. interval value in the response of tracker. If zero is specified,
  6168. aria2 determines the inteval value based on the tarcker response
  6169. and download progress.
  6170. * src/DefaultBtAnnounce.cc
  6171. * src/DefaultBtAnnounce.h
  6172. * src/OptionHandlerFactory.cc
  6173. * src/RequestGroup.cc
  6174. * src/prefs.cc
  6175. * src/prefs.h
  6176. * src/usage_text.h
  6177. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6178. Added operator+=, operator-=, operator-
  6179. * src/TransferStat.cc
  6180. * src/TransferStat.h
  6181. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6182. Refactored RarestPieceSelector to reduce CPU load, especially for
  6183. addPieceStats.
  6184. * src/RarestPieceSelector.cc
  6185. * src/RarestPieceSelector.h
  6186. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6187. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  6188. getAllMissingBlockIndexes to reduce a call to
  6189. array_function_base::operator[].
  6190. * src/BitfieldMan.cc
  6191. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6192. Cached TransferStat/download speed to avoid to sum them up in each
  6193. call.
  6194. * src/DefaultPeerStorage.cc
  6195. * src/DefaultPeerStorage.h
  6196. * src/SegmentMan.cc
  6197. * src/SegmentMan.h
  6198. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6199. Typedefed cuid_t as int32_t in Command.h
  6200. * src/CUIDCounter.h
  6201. * src/Command.cc
  6202. * src/Command.h
  6203. * src/DownloadEngine.cc
  6204. * src/DownloadEngine.h
  6205. * src/PeerStat.h
  6206. * src/SegmentMan.cc
  6207. * src/SegmentMan.h
  6208. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6209. Reduced the number of calls to PeerStorage::calculateStat() and
  6210. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  6211. transfer rate.
  6212. * src/DefaultBtInteractive.cc
  6213. * src/DefaultBtMessageDispatcher.cc
  6214. * src/DefaultPeerStorage.cc
  6215. * src/DefaultPeerStorage.h
  6216. * src/DownloadCommand.cc
  6217. * src/DownloadEngine.cc
  6218. * src/PeerStorage.h
  6219. * src/SegmentMan.cc
  6220. * src/SegmentMan.h
  6221. * test/MockPeerStorage.h
  6222. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6223. Prepended _dir+"/" after joining path elements in torrent file.
  6224. * src/DefaultBtContext.cc
  6225. * test/DefaultBtContextTest.cc
  6226. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6227. Added missing IndexBtMessageValidator.h
  6228. * src/Makefile.am
  6229. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6230. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  6231. Chinese translations. Thank you for contributing our project.
  6232. * po/id.po
  6233. * po/it.po
  6234. * po/ru.po
  6235. * po/uk.po
  6236. * po/zh_CN.po
  6237. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6238. Updated README
  6239. * README
  6240. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6241. Bump up version number to 1.3.0
  6242. * configure.ac
  6243. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6244. Updated doc
  6245. * src/DefaultBtContext.h
  6246. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6247. Slice/joinPath for name of single torrent.
  6248. * src/DefaultBtContext.cc
  6249. * test/DefaultBtContextTest.cc
  6250. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6251. Updated man page: Documented --dry-run and --index-out
  6252. options. Changed the default value of --uri-selector and
  6253. --http-auth-challenge options. Removed --direct-file-mapping
  6254. option. Added example for --index-out
  6255. * doc/aria2c.1.txt
  6256. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6257. Updated TEXT_DRY_RUN
  6258. * src/usage_text.h
  6259. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6260. Changed the default value of --uri-selector option from 'inorder'
  6261. to 'feedback'
  6262. * src/OptionHandlerFactory.cc
  6263. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6264. Included current URI in exception message.
  6265. * src/AbstractCommand.cc
  6266. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6267. Renamed ServerStatURISelector as FeedbackURISelector.
  6268. * src/FeedbackURISelector.cc
  6269. * src/FeedbackURISelector.h
  6270. * src/Makefile.am
  6271. * src/RequestGroupMan.cc
  6272. * src/ServerStatURISelector.cc
  6273. * src/ServerStatURISelector.h
  6274. * test/FeedbackURISelectorTest.cc
  6275. * test/Makefile.am
  6276. * test/ServerStatURISelectorTest.cc
  6277. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6278. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  6279. all URIs are tested and their timeout is not reached.
  6280. * src/AdaptiveURISelector.cc
  6281. * src/AdaptiveURISelector.h
  6282. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6283. Changed the default value of --http-auth-challenge option to false.
  6284. * src/OptionHandlerFactory.cc
  6285. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6286. Reuse URIs when all unused URIs run out.
  6287. * src/OptionHandlerFactory.cc
  6288. * src/RequestGroup.cc
  6289. * src/prefs.cc
  6290. * src/prefs.h
  6291. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6292. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  6293. and BtRejectMessage are derived from RangeBtMessage class.
  6294. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  6295. derived from IndexBtMessage class. BtChokeMessage,
  6296. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  6297. BtNotInterestedMessage and BtUnchokeMessage are derived from
  6298. ZeroBtMessage class.
  6299. * src/AbstractBtMessage.cc
  6300. * src/AbstractBtMessage.h
  6301. * src/BtAllowedFastMessage.cc
  6302. * src/BtAllowedFastMessage.h
  6303. * src/BtAllowedFastMessageValidator.h: Removed
  6304. * src/BtBitfieldMessage.cc
  6305. * src/BtBitfieldMessage.h
  6306. * src/BtCancelMessage.cc
  6307. * src/BtCancelMessage.h
  6308. * src/BtCancelMessageValidator.h: Removed
  6309. * src/BtChokeMessage.cc
  6310. * src/BtChokeMessage.h
  6311. * src/BtExtendedMessage.cc
  6312. * src/BtExtendedMessage.h
  6313. * src/BtHandshakeMessage.cc
  6314. * src/BtHandshakeMessage.h
  6315. * src/BtHaveAllMessage.cc
  6316. * src/BtHaveAllMessage.h
  6317. * src/BtHaveMessage.cc
  6318. * src/BtHaveMessage.h
  6319. * src/BtHaveMessageValidator.h: Removed
  6320. * src/BtHaveNoneMessage.cc
  6321. * src/BtHaveNoneMessage.h
  6322. * src/BtInterestedMessage.cc
  6323. * src/BtInterestedMessage.h
  6324. * src/BtKeepAliveMessage.cc
  6325. * src/BtKeepAliveMessage.h
  6326. * src/BtNotInterestedMessage.cc
  6327. * src/BtNotInterestedMessage.h
  6328. * src/BtPieceMessage.cc
  6329. * src/BtPieceMessage.h
  6330. * src/BtPortMessage.cc
  6331. * src/BtPortMessage.h
  6332. * src/BtRejectMessage.cc
  6333. * src/BtRejectMessage.h
  6334. * src/BtRejectMessageValidator.h: Removed
  6335. * src/BtRequestMessage.cc
  6336. * src/BtRequestMessage.h
  6337. * src/BtRequestMessageValidator.h: Removed
  6338. * src/BtSuggestPieceMessage.cc
  6339. * src/BtSuggestPieceMessage.h
  6340. * src/BtSuggestPieceMessageValidator.h: Removed
  6341. * src/BtUnchokeMessage.cc
  6342. * src/BtUnchokeMessage.h
  6343. * src/DefaultBtMessageFactory.cc
  6344. * src/IndexBtMessage.cc
  6345. * src/IndexBtMessage.h
  6346. * src/IndexBtMessageValidator.h
  6347. * src/Makefile.am
  6348. * src/PeerMessageUtil.cc
  6349. * src/PeerMessageUtil.h
  6350. * src/RangeBtMessage.cc
  6351. * src/RangeBtMessage.h
  6352. * src/RangeBtMessageValidator.h
  6353. * src/SimpleBtMessage.cc
  6354. * src/SimpleBtMessage.h
  6355. * src/ZeroBtMessage.cc
  6356. * src/ZeroBtMessage.h
  6357. * test/BtRequestMessageTest.cc
  6358. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6359. Reverted usage_text.h to r1093 to avoid to lose translated
  6360. messages.
  6361. * src/usage_text.h
  6362. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6363. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  6364. declared as non-const previously is now const and defined in class
  6365. definition.
  6366. * src/AbstractBtMessage.cc
  6367. * src/AbstractBtMessage.h
  6368. * src/BtAllowedFastMessage.cc
  6369. * src/BtAllowedFastMessage.h
  6370. * src/BtBitfieldMessage.h
  6371. * src/BtCancelMessage.cc
  6372. * src/BtCancelMessage.h
  6373. * src/BtChokeMessage.cc
  6374. * src/BtChokeMessage.h
  6375. * src/BtExtendedMessage.cc
  6376. * src/BtExtendedMessage.h
  6377. * src/BtHandshakeMessage.cc
  6378. * src/BtHandshakeMessage.h
  6379. * src/BtHaveAllMessage.cc
  6380. * src/BtHaveAllMessage.h
  6381. * src/BtHaveMessage.cc
  6382. * src/BtHaveMessage.h
  6383. * src/BtHaveNoneMessage.cc
  6384. * src/BtHaveNoneMessage.h
  6385. * src/BtInterestedMessage.cc
  6386. * src/BtInterestedMessage.h
  6387. * src/BtKeepAliveMessage.cc
  6388. * src/BtKeepAliveMessage.h
  6389. * src/BtMessage.h
  6390. * src/BtNotInterestedMessage.cc
  6391. * src/BtNotInterestedMessage.h
  6392. * src/BtPieceMessage.h
  6393. * src/BtPortMessage.cc
  6394. * src/BtPortMessage.h
  6395. * src/BtRejectMessage.cc
  6396. * src/BtRejectMessage.h
  6397. * src/BtRequestMessage.cc
  6398. * src/BtRequestMessage.h
  6399. * src/BtSuggestPieceMessage.cc
  6400. * src/BtSuggestPieceMessage.h
  6401. * src/BtUnchokeMessage.cc
  6402. * src/BtUnchokeMessage.h
  6403. * src/SimpleBtMessage.cc
  6404. * src/SimpleBtMessage.h
  6405. * test/MockBtMessage.h
  6406. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6407. Use FileEntry::exists()
  6408. * src/MultiDiskAdaptor.cc
  6409. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6410. Added exists()
  6411. * src/FileEntry.cc
  6412. * src/FileEntry.h
  6413. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6414. Added missing prefix dir.
  6415. * src/download_helper.cc
  6416. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6417. Removed --direct-file-mapping option and CopyDiskAdaptor.
  6418. * src/CopyDiskAdaptor.cc: Removed
  6419. * src/CopyDiskAdaptor.h: Removed
  6420. * src/DefaultPieceStorage.cc
  6421. * src/Makefile.am
  6422. * src/OptionHandlerFactory.cc
  6423. * src/prefs.cc
  6424. * src/prefs.h
  6425. * src/usage_text.h
  6426. * test/CopyDiskAdaptorTest.cc: Removed
  6427. * test/Makefile.am
  6428. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6429. Rewritten isSameFileBeingDownloaded()
  6430. * src/RequestGroupMan.cc
  6431. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6432. Removed getName() from DownloadContext. getName() is declared in
  6433. BtContext.
  6434. * src/BtContext.h
  6435. * src/DownloadContext.h
  6436. * src/SingleFileDownloadContext.cc
  6437. * src/SingleFileDownloadContext.h
  6438. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  6439. in AbstractSingleDiskAdaptor.
  6440. * src/AbstractSingleDiskAdaptor.h
  6441. * src/DiskAdaptor.h
  6442. * src/MultiDiskAdaptor.h
  6443. * src/RequestGroup.cc
  6444. Removed setTopDir() and getTopDir() and getTopDirPath() from
  6445. MultiDiskAdaptor.
  6446. * src/DefaultPieceStorage.cc
  6447. * src/MultiDiskAdaptor.cc
  6448. * src/MultiDiskAdaptor.h
  6449. * test/MultiDiskAdaptorTest.cc
  6450. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6451. FileEntry::getPath() contains store(top level) directory to
  6452. simplify path handling operation. In the previous implementation,
  6453. store directory is concatenated to FileEntry::getPath() in
  6454. DownloadContext.
  6455. * src/BtDependency.cc
  6456. * src/BtPostDownloadHandler.cc
  6457. * src/CopyDiskAdaptor.cc
  6458. * src/DefaultBtContext.cc
  6459. * src/DirectDiskAdaptor.cc
  6460. * src/FileEntry.cc
  6461. * src/FileEntry.h
  6462. * src/FtpNegotiationCommand.cc
  6463. * src/HttpResponse.cc
  6464. * src/HttpResponseCommand.cc
  6465. * src/Metalink2RequestGroup.cc
  6466. * src/MultiDiskAdaptor.cc
  6467. * src/MultiDiskAdaptor.h
  6468. * src/MultiFileAllocationIterator.cc
  6469. * src/RequestGroup.cc
  6470. * src/SingleFileDownloadContext.cc
  6471. * src/SingleFileDownloadContext.h
  6472. * src/download_helper.cc
  6473. * test/BtDependencyTest.cc
  6474. * test/CopyDiskAdaptorTest.cc
  6475. * test/DefaultBtContextTest.cc
  6476. * test/DefaultBtProgressInfoFileTest.cc
  6477. * test/DirectDiskAdaptorTest.cc
  6478. * test/DownloadHelperTest.cc
  6479. * test/FileEntryTest.cc
  6480. * test/MultiDiskAdaptorTest.cc
  6481. * test/MultiFileAllocationIteratorTest.cc
  6482. * test/RequestGroupTest.cc
  6483. * test/SingleFileDownloadContextTest.cc
  6484. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6485. Fixed compiler warning
  6486. * src/download_helper.cc
  6487. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6488. Throw exception if same infohash torrent is now downloading.
  6489. * src/RequestGroup.cc
  6490. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6491. Added --dry-run option. In this mode, aria2 just checks whether
  6492. the remote file is available and doesn't download data. This
  6493. option has effect on HTTP/FTP downloads and BitTorrent downloads
  6494. are canceled in this mode.
  6495. * src/FtpNegotiationCommand.cc
  6496. * src/HttpResponseCommand.cc
  6497. * src/HttpResponseCommand.h
  6498. * src/OptionHandlerFactory.cc
  6499. * src/RequestGroup.cc
  6500. * src/RequestGroupMan.cc
  6501. * src/prefs.cc
  6502. * src/prefs.h
  6503. * src/usage_text.h
  6504. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6505. Fixed compiler waring
  6506. * test/UriListParserTest.cc
  6507. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6508. Parse options in -i list using OptionParser.
  6509. * src/UriListParser.cc
  6510. * src/UriListParser.h
  6511. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6512. Don't reset URI in retry to avoid additional round trips because
  6513. of redirects.
  6514. * src/AbstractCommand.cc
  6515. * src/OptionHandlerFactory.cc
  6516. * src/prefs.cc
  6517. * src/prefs.h
  6518. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6519. Declared hide() in OptionHandler.
  6520. * src/NameMatchOptionHandler.h
  6521. * src/OptionHandler.h
  6522. * src/OptionHandlerImpl.h
  6523. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6524. Updated doc
  6525. * src/Peer.h
  6526. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6527. Added log message in setStatusInternal()
  6528. * src/ServerStat.cc
  6529. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6530. Call ServerStat::setError() in AbstractCommand::onAbort() to
  6531. effectively exclude failed server.
  6532. * src/AbstractCommand.cc
  6533. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6534. Added --index-out option to specify each file path for torrent.
  6535. Here index shown in --show-files option is used to specify which
  6536. file path should be altered. For example, to change the file path
  6537. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  6538. option multiple times: --index-out=1=aria2.tar.bz2
  6539. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  6540. available. This option can be specified in -i list.
  6541. * src/DefaultBtContext.cc
  6542. * src/DefaultBtContext.h
  6543. * src/MultiDiskAdaptor.cc
  6544. * src/MultiDiskAdaptor.h
  6545. * src/MultiFileAllocationIterator.cc
  6546. * src/OptionHandlerFactory.cc
  6547. * src/OptionHandlerImpl.h
  6548. * src/Util.cc
  6549. * src/Util.h
  6550. * src/download_helper.cc
  6551. * src/prefs.cc
  6552. * src/prefs.h
  6553. * src/usage_text.h
  6554. * test/DefaultBtContextTest.cc
  6555. * test/MultiDiskAdaptorTest.cc
  6556. * test/MultiFileAllocationIteratorTest.cc
  6557. * test/UtilTest.cc
  6558. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6559. Use Util::pathJoin()
  6560. * src/MetalinkParserController.cc
  6561. * test/test.xml
  6562. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6563. Use Util::pathJoin()
  6564. * src/DefaultBtContext.cc
  6565. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6566. Added Util::pathJoin()
  6567. * src/Util.h
  6568. * test/UtilTest.cc
  6569. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6570. Applied basename function to remove directory element in
  6571. content-disposition value.
  6572. Return empty string if content-disposition value is ".." or ".".
  6573. * src/Util.cc
  6574. * test/UtilTest.cc
  6575. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6576. Added --max-overall-download-limit in man page.
  6577. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6578. * doc/aria2c.1.txt
  6579. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6580. Added --max-overall-download-limit option. Now --max-upload-limit
  6581. option is not ignored when --max-overall-upload-limit option has
  6582. non-zero value. aria2 checks download(upload) speed in the order:
  6583. first checks overall speed limit and if it is not exceeded, then
  6584. checks speed limit per download. Thus you can specify both
  6585. value. For example, set --max-overall-download-limit=1M and
  6586. --max-download-limit=500K to prevent from one download from eating
  6587. all overall speed limit.
  6588. * src/DefaultBtInteractive.cc
  6589. * src/DefaultBtInteractive.h
  6590. * src/DefaultBtMessageDispatcher.cc
  6591. * src/DefaultBtMessageDispatcher.h
  6592. * src/DownloadCommand.cc
  6593. * src/DownloadCommand.h
  6594. * src/FtpNegotiationCommand.cc
  6595. * src/HttpResponseCommand.cc
  6596. * src/OptionHandlerFactory.cc
  6597. * src/PeerInteractionCommand.cc
  6598. * src/RequestGroup.cc
  6599. * src/RequestGroup.h
  6600. * src/RequestGroupMan.cc
  6601. * src/RequestGroupMan.h
  6602. * src/prefs.cc
  6603. * src/prefs.h
  6604. * src/usage_text.h
  6605. * test/DefaultBtMessageDispatcherTest.cc
  6606. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6607. Documented select-file option in Input File section.
  6608. Documented --http-auth-challenge option.
  6609. * doc/aria2c.1.txt
  6610. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6611. Now select-file can be specified in the uri list(-i list).
  6612. * src/BtContext.cc
  6613. * src/BtContext.h
  6614. * src/RequestGroup.cc
  6615. * src/Sequence.h
  6616. * src/download_helper.cc
  6617. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6618. Made the upper value of --max-concurrent-downloads options unlimited.
  6619. * src/OptionHandlerFactory.cc
  6620. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6621. Fixed the bug that disk writer is not created even if it shares
  6622. same piece with the preceding file if the length of previous file
  6623. is 0.
  6624. * src/MultiDiskAdaptor.cc
  6625. * test/MultiDiskAdaptorTest.cc
  6626. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6627. In BitTorrent, Open files in read-only mode for hash check. After
  6628. that, re-open file in read/write mode only when the download is
  6629. not finished.
  6630. * src/AbstractDiskWriter.cc
  6631. * src/AbstractDiskWriter.h
  6632. * src/AbstractSingleDiskAdaptor.cc
  6633. * src/AbstractSingleDiskAdaptor.h
  6634. * src/BtCheckIntegrityEntry.cc
  6635. * src/DiskAdaptor.h
  6636. * src/DiskWriter.h
  6637. * src/MultiDiskAdaptor.cc
  6638. * src/MultiDiskAdaptor.h
  6639. * src/RequestGroup.cc
  6640. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6641. Added --http-auth-challenge option. If it is set to true(by
  6642. default), aria2 sends HTTP authorization header only when it is
  6643. requested by the server. If false is set, then authorization
  6644. header is always sent to the server. This is useful for servers
  6645. that don't respond 401 code when authentication is required.
  6646. There is an exception: if username and password are embedded in
  6647. URI, authorization header is always sent to the server regardless
  6648. of this option.
  6649. * src/AuthConfigFactory.cc
  6650. * src/HttpSkipResponseCommand.cc
  6651. * src/OptionHandlerFactory.cc
  6652. * src/prefs.cc
  6653. * src/prefs.h
  6654. * src/usage_text.h
  6655. * test/AuthConfigFactoryTest.cc
  6656. * test/HttpRequestTest.cc
  6657. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6658. * Release 1.2.0
  6659. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6660. Updated Spanish, Ukrainian, Russian and Japanese translations.
  6661. Thanks to all translators.
  6662. * po/es.po
  6663. * po/ja.po
  6664. * po/ru.po
  6665. * po/uk.po
  6666. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6667. Call deleteSocketForReadCheck() before socket is closed.
  6668. * src/HttpListenCommand.cc
  6669. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6670. Defined virtual destructor for BObject.
  6671. * src/bencode.h
  6672. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6673. Rewritten BDE to make it efficient.
  6674. * src/bencode.cc
  6675. * src/bencode.h
  6676. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6677. Removed function throw list.
  6678. * src/bencode.cc
  6679. * src/bencode.h
  6680. * test/BencodeTest.cc
  6681. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6682. Enclosed all URLs in double quotes in command-line examples.
  6683. * doc/aria2c.1.txt
  6684. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6685. Updated reference/see also section.
  6686. * README
  6687. * doc/aria2c.1.txt
  6688. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6689. Reorganized man page based on man man-pages.
  6690. * doc/aria2c.1.txt
  6691. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6692. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6693. because same documents are available in man page. Added
  6694. References section.
  6695. * README
  6696. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6697. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6698. PERFORMANCE PROFILE section.
  6699. * doc/aria2c.1.txt
  6700. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6701. Rewritten the section for configuration file.
  6702. * README
  6703. * doc/aria2c.1.txt
  6704. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6705. Fixed the segmentation fault during execution of choking algorithm
  6706. in leecher state because of broken compare operator
  6707. implementation.
  6708. * src/BtLeecherStateChoke.cc
  6709. * src/BtLeecherStateChoke.h
  6710. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6711. Open file in binary mode.
  6712. * src/CookieStorage.cc
  6713. * src/DHTSetup.cc
  6714. * src/DHTUtil.cc
  6715. * src/Netrc.cc
  6716. * src/NsCookieParser.cc
  6717. * src/ProtocolDetector.cc
  6718. * src/RequestGroupMan.cc
  6719. * src/Signature.cc
  6720. * src/bencode.cc
  6721. * src/download_helper.cc
  6722. * src/option_processing.cc
  6723. * test/CookieParserTest.cc
  6724. * test/DefaultBtProgressInfoFileTest.cc
  6725. * test/FileTest.cc
  6726. * test/GZipDecoderTest.cc
  6727. * test/RequestGroupManTest.cc
  6728. * test/SignatureTest.cc
  6729. * test/SingleFileAllocationIteratorTest.cc
  6730. * test/UriListParserTest.cc
  6731. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6732. Removed operator[] because it is ambiguous with built-in []
  6733. operator.
  6734. * src/array_fun.h
  6735. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6736. Fixed compile error
  6737. * src/OptionParser.cc
  6738. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6739. Added missing call to arrayWrapperConst
  6740. * test/array_funTest.cc
  6741. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6742. Use array_wrapper instead of array_ptr.
  6743. * src/DHTRoutingTableDeserializer.cc
  6744. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6745. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6746. * src/array_fun.h
  6747. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6748. Added array_wrapper template.
  6749. * src/array_fun.h
  6750. * test/array_funTest.cc
  6751. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6752. Use operator T* of array_ptr.
  6753. * src/OptionParser.cc
  6754. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6755. Use localhost instead of 127.0.0.1
  6756. * test/FtpConnectionTest.cc
  6757. * test/MSEHandshakeTest.cc
  6758. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6759. Added operator T*
  6760. * src/array_fun.h
  6761. * test/array_funTest.cc
  6762. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6763. Use dynamically allocated char array to detect memory access
  6764. violation.
  6765. * src/DHTRoutingTableDeserializer.cc
  6766. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6767. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6768. defined.
  6769. * src/PeerMessageUtil.cc
  6770. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6771. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6772. * configure.ac
  6773. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6774. Added a check to see struct sockaddr_in has sin_len member.
  6775. * configure.ac
  6776. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6777. Fixed buffer overrun.
  6778. * src/DHTRoutingTableDeserializer.cc
  6779. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6780. Added LL for long long int constant.
  6781. * test/FtpConnectionTest.cc
  6782. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6783. Casted to unsigned int to suppress compiler warning on netbsd.
  6784. * src/BtRuntime.h
  6785. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6786. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6787. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6788. type time_t.
  6789. * src/SimpleLogger.cc
  6790. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6791. Added test for FtpConnection::receiveSizeResponse().
  6792. * test/FtpConnectionTest.cc
  6793. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6794. Fix epoll error on the old kernel 2.6.8 or ealier.
  6795. * src/EpollEventPoll.cc
  6796. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6797. Use Util::parseLLInt instead of sscanf for portability. The
  6798. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6799. * src/FtpConnection.cc
  6800. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6801. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6802. block. It should not filter anything.
  6803. * src/BitfieldMan.cc
  6804. * src/ConsoleStatCalc.cc
  6805. * test/BitfieldManTest.cc
  6806. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6807. Fixed the bug that the boolean options that don't take arguments
  6808. don't work.
  6809. * src/OptionHandlerImpl.h
  6810. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6811. Fixed broken selected file BitTorrent download.
  6812. * src/MultiDiskAdaptor.cc
  6813. * test/MultiDiskAdaptorTest.cc
  6814. * test/MultiFileAllocationIteratorTest.cc
  6815. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6816. Fixed #define guard for EpollEventPoll
  6817. * src/EpollEventPoll.h
  6818. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6819. Wait 2 seconds. 1 second is sometimes not enough.
  6820. * test/TimeSeedCriteriaTest.cc
  6821. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6822. Use localhost instead of 127.0.0.1.
  6823. * test/DHTConnectionImplTest.cc
  6824. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6825. Suppressed compiler warning.
  6826. * src/AdaptiveURISelector.cc
  6827. * src/DefaultPieceStorage.cc
  6828. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6829. Defined virtual destructor.
  6830. * src/MetalinkParserState.h
  6831. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6832. Give NULL for second argument of getaddrinfo instead of "0".
  6833. * src/NameResolver.cc
  6834. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6835. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6836. included strptime doesn't parse data for this format.
  6837. * src/FtpConnection.cc
  6838. * test/FtpConnectionTest.cc
  6839. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6840. Removed tests giving -1 for unsigned argument.
  6841. * test/SingleFileDownloadContextTest.cc
  6842. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6843. Don't use sha256 in tests because it might not be supported by the
  6844. SSL library.
  6845. * test/MetalinkProcessorTest.cc
  6846. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6847. Removed tests giving -1 for unsigned argument.
  6848. * test/AlphaNumberDecoratorTest
  6849. * test/BitfieldManTest.cc
  6850. * test/DefaultBtContextTest.cc
  6851. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6852. Fixed compile error without libcares when epoll is available.
  6853. * src/EpollEventPoll.cc
  6854. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6855. Included fstream instead of iostream.
  6856. * test/SignatureTest.cc
  6857. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6858. Removed #include <algorithm>
  6859. * test/RequestGroupTest.cc
  6860. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6861. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6862. using RequestGroup::extractURIResult().
  6863. * src/AdaptiveURISelector.cc
  6864. * src/RequestGroup.cc
  6865. * src/RequestGroup.h
  6866. * test/RequestGroupTest.cc
  6867. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6868. Added tests for array_ptr.
  6869. * test/array_funTest.cc
  6870. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6871. Don't send ip parameter to a tracker if ip parameter is empty
  6872. string.
  6873. * src/DefaultBtAnnounce.cc
  6874. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6875. Adjusted line feed.
  6876. * src/version_usage.cc
  6877. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6878. Print tags, possible values when OptionHandlerException is caught.
  6879. * src/option_processing.cc
  6880. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6881. Changed the message for FatalException.
  6882. * src/OptionParser.cc
  6883. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6884. Documented --bt-external-ip option in man page. Updated man pages
  6885. for --proxy-method option.
  6886. * doc/aria2c.1.txt
  6887. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6888. Use GET method for FTP via HTTP proxy.
  6889. * src/FtpInitiateConnectionCommand.cc
  6890. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6891. Changed the default value of --proxy-method option from 'tunnel'
  6892. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6893. option.
  6894. * src/AbstractCommand.cc
  6895. * src/AbstractCommand.h
  6896. * src/FtpInitiateConnectionCommand.cc
  6897. * src/HttpDownloadCommand.cc
  6898. * src/HttpInitiateConnectionCommand.cc
  6899. * src/HttpInitiateConnectionCommand.h
  6900. * src/OptionHandlerFactory.cc
  6901. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6902. Initialized _logger
  6903. * src/SelectEventPoll.cc
  6904. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6905. Defined a copy constructor for the same type.
  6906. * src/SharedHandle.h
  6907. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6908. Added OptionParser::parseArg() which internally uses getopt_long
  6909. to parse command-line options. All command-line options are now
  6910. configured by OptionHandler. No manual editing of struct option*
  6911. is required any more.
  6912. * src/NameMatchOptionHandler.h
  6913. * src/OptionHandler.h
  6914. * src/OptionHandlerFactory.cc
  6915. * src/OptionHandlerImpl.h
  6916. * src/OptionParser.cc
  6917. * src/OptionParser.h
  6918. * src/array_fun.h
  6919. * src/main.cc
  6920. * src/option_processing.cc
  6921. * test/OptionHandlerTest.cc
  6922. * test/OptionParserTest.cc
  6923. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6924. Fixed configure error with --disable-epoll
  6925. * configure.ac
  6926. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6927. Fixed compile error when HAVE_EPOLL is not defined.
  6928. Fixed linker error on bigendian systems.
  6929. * src/SocketCore.cc
  6930. * src/SocketCore.h
  6931. * test/DefaultBtProgressInfoFileTest.cc
  6932. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6933. Added --bt-external-ip option. You can specify the external IP
  6934. address to report to a BitTorrent tracker. Although this function
  6935. is named 'external', it can accept any kind of IP addresses.
  6936. * src/DefaultBtAnnounce.cc
  6937. * src/OptionHandlerFactory.cc
  6938. * src/option_processing.cc
  6939. * src/prefs.cc
  6940. * src/prefs.h
  6941. * src/usage_text.h
  6942. * test/DefaultBtAnnounceTest.cc
  6943. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6944. Extracted the algorithm to find the longest incremental sequence
  6945. as max_sequence template.
  6946. * src/LongestSequencePieceSelector.cc
  6947. * src/a2algo.h
  6948. * test/Makefile.am
  6949. * test/a2algoTest.cc
  6950. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6951. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6952. * src/usage_text.h
  6953. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6954. Updated doc for --uri-selector, --http-server-listen-port and
  6955. --enable-http-server option. Documented --event-poll option.
  6956. * doc/aria2c.1.txt
  6957. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6958. Updated doc for --enable-http-server.
  6959. * src/usage_text.h
  6960. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6961. Documented --http-server-listen-port and --enable-http-server in
  6962. man page.
  6963. * doc/aria2c.1.txt
  6964. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6965. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6966. translations. Thanks to all translators.
  6967. * po/es.po
  6968. * po/id.po
  6969. * po/it.po
  6970. * po/ru.po
  6971. * po/uk.po
  6972. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6973. Bump up version number to 1.2.0
  6974. * configure.ac
  6975. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6976. BtContext::getAnnounceTiers() now returns const reference.
  6977. * src/BtContext.h
  6978. * src/DefaultBtContext.cc
  6979. * src/DefaultBtContext.h
  6980. * test/MockBtContext.h
  6981. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6982. Change the number of retries for tracker request based on the
  6983. number of available tracker in a torrent file.
  6984. * src/TrackerWatcherCommand.cc
  6985. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6986. Added _maxTries property to RequestGroup and assign the option
  6987. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6988. RequestGroup::getMaxTries() instead of
  6989. Option::getAsInt(PREF_MAX_TRIES).
  6990. * src/AbstractCommand.cc
  6991. * src/RequestGroup.cc
  6992. * src/RequestGroup.h
  6993. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6994. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6995. Mandriva. I modified the patch: make RequestGroup have the
  6996. timeout value and AdaptiveURISelector directly modifies that
  6997. value.
  6998. * src/AbstractCommand.cc
  6999. * src/AdaptiveURISelector.cc
  7000. * src/AdaptiveURISelector.h
  7001. * src/FtpNegotiationCommand.cc
  7002. * src/RequestGroup.cc
  7003. * src/RequestGroup.h
  7004. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7005. Fixed compiler warning
  7006. * test/IteratableChecksumValidatorTest.cc
  7007. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7008. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  7009. integrated downloads. This PieceSelector subclass finds the
  7010. longest continuous sequence in the available missing pieces and
  7011. selects the last index of such sequence. This makes HTTP/FTP
  7012. connections less interrupted by the pieces obtained by BitTorrent
  7013. peers.
  7014. * src/DefaultPieceStorage.cc
  7015. * src/DefaultPieceStorage.h
  7016. * src/LongestSequencePieceSelector.cc
  7017. * src/LongestSequencePieceSelector.h
  7018. * src/Makefile.am
  7019. * src/PieceSelector.h
  7020. * src/RarestPieceSelector.h
  7021. * src/RequestGroup.cc
  7022. * test/BtDependencyTest.cc
  7023. * test/DefaultPieceStorageTest.cc
  7024. * test/IteratableChecksumValidatorTest.cc
  7025. * test/LongestSequencePieceSelectorTest.cc
  7026. * test/Makefile.am
  7027. * test/SegmentManTest.cc
  7028. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7029. Fixed the bug that the average speed is wrong in
  7030. http/ftp/BitTorrent integrated download. Only the download bytes
  7031. in BitTorrent were considered.
  7032. * src/RequestGroup.cc
  7033. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7034. Choose port for BitTorrent/DHT randomly from the specified range.
  7035. * src/DHTConnectionImpl.cc
  7036. * src/PeerListenCommand.cc
  7037. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7038. Send HTTP Authorization header only if it is requested by the
  7039. server(response 401). There are some exceptions. The authorization
  7040. header for proxy is always sent if it is available without request
  7041. by the server. If username/password is specified in the URI, it
  7042. is immediately sent to the server without request by the server.
  7043. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  7044. SharedHandle<AuthConfig>().
  7045. NetrcAuthResolver::resolveAuthConfig() returns
  7046. SharedHandle<AuthConfig>() if no AuthConfig is available.
  7047. * src/AbstractAuthResolver.cc
  7048. * src/AbstractProxyRequestCommand.cc
  7049. * src/AuthConfigFactory.cc
  7050. * src/AuthConfigFactory.h
  7051. * src/HttpConnection.cc
  7052. * src/HttpRequest.cc
  7053. * src/HttpRequest.h
  7054. * src/HttpResponse.cc
  7055. * src/HttpResponseCommand.cc
  7056. * src/HttpSkipResponseCommand.cc
  7057. * test/AuthConfigFactoryTest.cc
  7058. * test/HttpRequestTest.cc
  7059. * test/HttpResponseTest.cc
  7060. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7061. Remove leading "--" from help keyword and a substring after "="
  7062. from help keyword, so that one can query options by '-h--max-' or
  7063. '-hmax-peers=10'.
  7064. * src/option_processing.cc
  7065. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7066. Rewritten PStringVisitor and its implementation.
  7067. * src/PStringBuildVisitor.cc
  7068. * src/PStringBuildVisitor.h
  7069. * src/PStringDatum.h
  7070. * src/PStringNumLoop.h
  7071. * src/PStringSegment.cc
  7072. * src/PStringSegment.h
  7073. * src/PStringSelect.h
  7074. * src/PStringVisitor.h
  7075. * src/download_helper.cc
  7076. * test/PStringBuildVisitorTest.cc
  7077. * test/ParameterizedStringParserTest.cc
  7078. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7079. Persist connection between the built-in HTTP server and a client
  7080. if a client supports keep-alive. Fixed the bug that aria2 exits
  7081. when the HTTP server receives EOF from a client.
  7082. * src/HttpServer.cc
  7083. * src/HttpServer.h
  7084. * src/HttpServerCommand.cc
  7085. * src/HttpServerCommand.h
  7086. * src/HttpServerResponseCommand.cc
  7087. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7088. Added experimental built-in HTTP server. Currently, when a client
  7089. accesses to the server, it responds with the current download
  7090. progress. By default, it is disabled. To enable the server, give
  7091. --enable-http-server option. To change the default port number
  7092. for the server to listen to, use --http-server-listen-port option.
  7093. The response HTML is very simple and refreshes it self each 1
  7094. second. Because of this refresh, you see flicker in normal web
  7095. browser such as Firefox. I recommend to use console-based browser
  7096. such as elinks, w3m. To connect to the server, run 'elinks
  7097. http://localhost:6800/' while running aria2. Please replace port
  7098. number '6800'(which is default) with your preference.
  7099. * src/DownloadEngineFactory.cc
  7100. * src/HttpHeader.cc
  7101. * src/HttpHeader.h
  7102. * src/HttpHeaderProcessor.cc
  7103. * src/HttpHeaderProcessor.h
  7104. * src/HttpListenCommand.cc
  7105. * src/HttpListenCommand.h
  7106. * src/HttpServer.cc
  7107. * src/HttpServer.h
  7108. * src/HttpServerCommand.cc
  7109. * src/HttpServerCommand.h
  7110. * src/HttpServerResponseCommand.cc
  7111. * src/HttpServerResponseCommand.h
  7112. * src/Makefile.am
  7113. * src/OptionHandlerFactory.cc
  7114. * src/Util.cc
  7115. * src/Util.h
  7116. * src/help_tags.h
  7117. * src/option_processing.cc
  7118. * src/prefs.cc
  7119. * src/prefs.h
  7120. * src/usage_text.h
  7121. * test/HttpHeaderProcessorTest.cc
  7122. * test/UtilTest.cc
  7123. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7124. Removed.
  7125. * src/CheckIntegrityMan.cc
  7126. * src/FileAllocationMan.cc
  7127. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7128. Made (piece) hash check sequential for each RequestGroup because
  7129. simultaneous hash check is slower than sequential execution.
  7130. * src/CheckIntegrityCommand.cc
  7131. * src/CheckIntegrityDispatcherCommand.cc
  7132. * src/CheckIntegrityDispatcherCommand.h
  7133. * src/CheckIntegrityMan.h
  7134. * src/ConsoleStatCalc.cc
  7135. * src/DownloadCommand.cc
  7136. * src/DownloadEngine.cc
  7137. * src/DownloadEngine.h
  7138. * src/DownloadEngineFactory.cc
  7139. * src/Makefile.am
  7140. * src/Makefile.in
  7141. * src/RequestGroup.cc
  7142. * src/StatCalc.h
  7143. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7144. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  7145. SequentialDispatcherCommand.
  7146. * src/FileAllocationDispatcherCommand.cc
  7147. * src/SequentialDispatcherCommand.h
  7148. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7149. Rewritten FileAllocationDispatcherCommand using brand new
  7150. SequentialDispatcherCommand.
  7151. * src/DownloadEngineFactory.cc
  7152. * src/FileAllocationCommand.cc
  7153. * src/FileAllocationDispatcherCommand.cc
  7154. * src/FileAllocationDispatcherCommand.h
  7155. * src/Makefile.am
  7156. * src/SequentialDispatcherCommand.h
  7157. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7158. Replaced FileAllocationMan with
  7159. SequentialPicker<FileAllocationEntry>.
  7160. * src/BtCheckIntegrityEntry.cc
  7161. * src/ConsoleStatCalc.cc
  7162. * src/DownloadEngine.cc
  7163. * src/DownloadEngine.h
  7164. * src/DownloadEngineFactory.cc
  7165. * src/FileAllocationCommand.cc
  7166. * src/FileAllocationDispatcherCommand.cc
  7167. * src/FileAllocationMan.h
  7168. * src/Makefile.am
  7169. * src/SequentialPicker.h
  7170. * src/StatCalc.h
  7171. * src/StreamCheckIntegrityEntry.cc
  7172. * test/Makefile.am
  7173. * test/SequentialPickerTest.cc
  7174. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7175. Added doc for adaptive URI selector.
  7176. * doc/aria2c.1.txt
  7177. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7178. Added doc for adaptive URI selector.
  7179. * src/usage_text.h
  7180. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7181. Added doc for --bt-max-peers option.
  7182. * doc/aria2c.1.txt
  7183. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7184. Added doc for --bt-hash-check-seed option.
  7185. * doc/aria2c.1.txt
  7186. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7187. Documented exit codes.
  7188. * doc/aria2c.1.txt
  7189. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7190. Added --bt-max-peers option to specify the maximum number of peers
  7191. per torrent. 0 means unlimited number of peers.
  7192. * src/ActivePeerConnectionCommand.cc
  7193. * src/BtRuntime.h
  7194. * src/DefaultPeerStorage.cc
  7195. * src/DefaultPeerStorage.h
  7196. * src/OptionHandlerFactory.cc
  7197. * src/RequestGroup.cc
  7198. * src/option_processing.cc
  7199. * src/prefs.cc
  7200. * src/prefs.h
  7201. * src/usage_text.h
  7202. * test/DefaultPeerStorageTest.cc
  7203. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7204. Added --bt-hash-check-seed option. If true is given to this
  7205. option, after hash check using --check-integrity option and file
  7206. is complete, continue to seed file. If you want to check file and
  7207. download it only when it is damaged or incomplete, set this option
  7208. to false. This option has effect only on BitTorrent download.
  7209. The default value is true(This is the same behavior with the
  7210. previous release).
  7211. * src/BtCheckIntegrityEntry.cc
  7212. * src/OptionHandlerFactory.cc
  7213. * src/option_processing.cc
  7214. * src/prefs.cc
  7215. * src/prefs.h
  7216. * src/usage_text.h
  7217. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7218. Updated copyright year.
  7219. * src/version_usage.cc
  7220. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7221. Rewritten the usage text for --bt-request-peer-speed-limit option.
  7222. * doc/aria2c.1.txt
  7223. * src/usage_text.h
  7224. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7225. Made the max value of split option unlimited.
  7226. * doc/aria2c.1.txt
  7227. * src/OptionHandlerFactory.cc
  7228. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7229. Fixed compile warning/error.
  7230. * src/DownloadResult.h
  7231. * src/HttpDownloadCommand.cc
  7232. * src/ServerStat.cc
  7233. * test/RequestGroupTest.cc
  7234. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7235. Added --event-poll option to select the method for polling events.
  7236. The available methods are "select" and "epoll". "epoll" is
  7237. available on Linux only. The earlier release has the compile
  7238. option to choose from these methods.
  7239. * configure.ac
  7240. * src/RequestGroupMan.cc
  7241. * src/OptionHandlerFactory.cc
  7242. * src/EpollEventPoll.h
  7243. * src/StreamFileAllocationEntry.cc
  7244. * src/a2io.h
  7245. * src/SelectEventPoll.h
  7246. * src/option_processing.cc
  7247. * src/prefs.h
  7248. * src/EpollEventPoll.cc
  7249. * src/EventPoll.h
  7250. * src/SocketCore.h
  7251. * src/Makefile.am
  7252. * src/main.cc
  7253. * src/DownloadEngine.h
  7254. * src/SelectEventPoll.cc
  7255. * src/DownloadEngine.cc
  7256. * src/SocketCore.cc
  7257. * src/DownloadEngineFactory.cc
  7258. * src/Makefile.in
  7259. * src/prefs.cc
  7260. * src/usage_text.h
  7261. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7262. Included RecoverableException.h from main.cc
  7263. * src/main.cc
  7264. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7265. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  7266. now returns last error encountered in the HTTP/FTP downloads as a
  7267. exit status value. If all downloads finished successfully, aria2
  7268. returns 0. The error code is defined in src/DownloadResult.h.
  7269. The error occurred in the download currently in progress is not
  7270. reported as a last error. If no error has encountered but there
  7271. are in progress or waiting downloads, aria2 returns 7.
  7272. * src/AbstractCommand.cc
  7273. * src/DlAbortEx.h
  7274. * src/DlRetryEx.h
  7275. * src/DownloadCommand.cc
  7276. * src/DownloadFailureException.h
  7277. * src/DownloadResult.h
  7278. * src/FtpNegotiationCommand.cc
  7279. * src/HttpSkipResponseCommand.cc
  7280. * src/Makefile.am
  7281. * src/MultiUrlRequestInfo.cc
  7282. * src/MultiUrlRequestInfo.h
  7283. * src/RecoverableException.h
  7284. * src/RequestGroup.cc
  7285. * src/RequestGroup.h
  7286. * src/RequestGroupMan.cc
  7287. * src/RequestGroupMan.h
  7288. * src/URIResult.cc
  7289. * src/URIResult.h
  7290. * src/main.cc
  7291. * src/option_processing.cc
  7292. * test/RequestGroupTest.cc
  7293. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7294. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  7295. patch adds AdaptiveURISelector, which selects one of the bests
  7296. mirrors for first and reserved connections. For supplementary
  7297. ones, it returns mirrors which has not been tested yet, and if
  7298. each of them already tested, returns mirrors which has to be
  7299. tested again. Otherwise, it doesn't return anymore mirrors.
  7300. * src/AdaptiveURISelector.cc
  7301. * src/AdaptiveURISelector.h
  7302. * src/FtpNegotiationCommand.cc
  7303. * src/HttpResponseCommand.cc
  7304. * src/Makefile.am
  7305. * src/Makefile.in
  7306. * src/OptionHandlerFactory.cc
  7307. * src/RequestGroup.cc
  7308. * src/RequestGroup.h
  7309. * src/RequestGroupMan.cc
  7310. * src/ServerStat.cc
  7311. * src/ServerStat.h
  7312. * src/ServerStatMan.cc
  7313. * src/SpeedCalc.cc
  7314. * src/URISelector.h
  7315. * src/prefs.cc
  7316. * src/prefs.h
  7317. * test/RequestGroupManTest.cc
  7318. * test/ServerStatManTest.cc
  7319. * test/ServerStatTest.cc
  7320. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7321. Fixed unit test error.
  7322. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  7323. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7324. * Release 1.1.2
  7325. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7326. Updated Russian translation. Thanks to the translators.
  7327. * po/ru.po
  7328. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7329. Added the description of --use-head option to man page.
  7330. * doc/aria2c.1.txt
  7331. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7332. Bump up version number to 1.1.2
  7333. * configure.ac
  7334. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7335. Added --use-head option to toggle whether HEAD method should be
  7336. used in the first HTTP request. By default aria2 uses HEAD method
  7337. as the first request. When the server doesn't recognize HEAD, then
  7338. give aria2 --use-head=false to force aria2 to use GET method
  7339. instead.
  7340. * src/OptionHandlerFactory.cc
  7341. * src/RequestGroupMan.cc
  7342. * src/option_processing.cc
  7343. * src/prefs.cc
  7344. * src/prefs.h
  7345. * src/usage_text.h
  7346. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7347. Fixed the bug that BitTorrent download doesn't finish when REJECT
  7348. message is received before CHOKE message. The old implementation
  7349. doen't clear the use-bit of the piece when recieved REJECT
  7350. message.
  7351. * src/DefaultBtMessageDispatcher.cc
  7352. * test/DefaultBtMessageDispatcherTest.cc
  7353. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7354. * Release 1.1.1
  7355. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7356. Bump up version number to 1.1.1.
  7357. * configure.ac
  7358. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7359. Fixed the bug that --summary-interval=0 doesn't work. The summary
  7360. is printed repeatedly.
  7361. * src/ConsoleStatCalc.cc
  7362. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7363. * Release 1.1.0
  7364. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7365. Added ifdef clause for conditional compilation.
  7366. * src/main.cc
  7367. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7368. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  7369. translations. Thanks to all translators.
  7370. * po/ja.po
  7371. * po/ru.po
  7372. * po/uk.po
  7373. * po/zh_CN.po
  7374. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7375. Added the preceding ">>> " before the message "Printing the
  7376. contents of file..." to make the output more readable.
  7377. * src/main.cc
  7378. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7379. Added try-catch block in the loop in showFiles() to continue the
  7380. operation even if the exception occurred in one file.
  7381. * src/main.cc (showFiles)
  7382. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7383. Made messages in showFiles() translatable.
  7384. * po/aria2.pot
  7385. * src/main.cc
  7386. * src/message.h
  7387. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7388. Print the contents of Torrent/Metalink files are printed without
  7389. -T/-M options.
  7390. * src/main.cc
  7391. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7392. Escaped '--' with '\--'
  7393. * README
  7394. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7395. Updated "How to build" section in README. Mentioned about
  7396. --with-ca-bundle compile option.
  7397. * README
  7398. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7399. Bump up version number to 1.1.0.
  7400. * configure.ac
  7401. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7402. Added a note for --dht-listen-port option.
  7403. * doc/aria2c.1.txt
  7404. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7405. Update doc for --realtime-chunk-checksum option.
  7406. * doc/aria2c.1.txt
  7407. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7408. Update doc for --realtime-chunk-checksum option.
  7409. * src/usage_text.h
  7410. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7411. Updated French, Japanese, Russian and Ukrainian translations.
  7412. Thanks to all translators.
  7413. * po/fr.po
  7414. * po/ja.po
  7415. * po/ru.po
  7416. * po/uk.po
  7417. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7418. Renamed aria2c.pot to aria2.pot
  7419. * po/aria2.pot
  7420. * po/aria2c.pot: Removed.
  7421. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7422. Removed MetaEntry.h
  7423. * src/Makefile.am
  7424. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7425. Rename file by appending digits if a local file exists and its
  7426. file size is larger than that of remote file with --continue
  7427. option. The old implementation just throws exception in such case.
  7428. * src/RequestGroup.cc
  7429. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7430. Fixed the bug that download progress summary is not printed in the
  7431. interval specified by the option.
  7432. * src/ConsoleStatCalc.cc
  7433. * src/ConsoleStatCalc.h
  7434. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7435. Fixed compiler warning
  7436. * src/Cookie.cc
  7437. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7438. Fixed the cookie implementation based on RFC2965.
  7439. Now if a value in domain field is not started with dot, then
  7440. prepend dot. That means a cookie with domain=sf.net is sent to
  7441. wiki.sf.net.
  7442. * src/Cookie.cc
  7443. * test/CookieParserTest.cc
  7444. * test/CookieStorageTest.cc
  7445. * test/CookieTest.cc
  7446. * test/NsCookieParserTest.cc
  7447. * test/Sqlite3MozCookieParserTest.cc
  7448. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7449. Fixed the bug that causes corrupted downloads if HTTP pipelining
  7450. is enabled and the server doesn't support keep-alive.
  7451. * src/AbstractCommand.cc
  7452. * src/DownloadCommand.cc
  7453. * src/HttpDownloadCommand.cc
  7454. * src/HttpDownloadCommand.h
  7455. * src/HttpResponseCommand.cc
  7456. * src/Request.cc
  7457. * src/Request.h
  7458. * test/RequestTest.cc
  7459. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7460. Removed Dictionary/List/Data and its related classes.
  7461. * src/BencodeVisitor.cc: Removed.
  7462. * src/BencodeVisitor.h: Removed.
  7463. * src/Data.cc: Removed.
  7464. * src/Data.h: Removed.
  7465. * src/Dictionary.cc: Removed.
  7466. * src/Dictionary.h: Removed.
  7467. * src/List.cc: Removed.
  7468. * src/List.h: Removed.
  7469. * src/Makefile.am
  7470. * src/MetaEntry.h: Removed.
  7471. * src/MetaEntryVisitor.h: Removed.
  7472. * src/MetaFileUtil.cc: Removed.
  7473. * src/MetaFileUtil.h: Removed.
  7474. * test/BencodeVisitorTest.cc: Removed.
  7475. * test/DataTest.cc: Removed.
  7476. * test/DictionaryTest.cc: Removed.
  7477. * test/ListTest.cc: Removed.
  7478. * test/Makefile.am
  7479. * test/MetaFileUtilTest.cc: Removed.
  7480. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7481. Removed include of MetaEntry.h
  7482. * test/DHTMessageTrackerEntryTest.cc
  7483. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7484. Use BDE instead of Dictionary/List/Data.
  7485. * src/AnnounceList.cc
  7486. * src/AnnounceList.h
  7487. * test/AnnounceListTest.cc
  7488. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7489. Use BDE instead of Dictionary/List/Data.
  7490. * src/DHTAbstractMessage.cc
  7491. * src/DHTAbstractMessage.h
  7492. * src/DHTAnnouncePeerMessage.cc
  7493. * src/DHTAnnouncePeerMessage.h
  7494. * src/DHTAnnouncePeerReplyMessage.cc
  7495. * src/DHTAnnouncePeerReplyMessage.h
  7496. * src/DHTFindNodeMessage.cc
  7497. * src/DHTFindNodeMessage.h
  7498. * src/DHTFindNodeReplyMessage.cc
  7499. * src/DHTFindNodeReplyMessage.h
  7500. * src/DHTGetPeersMessage.cc
  7501. * src/DHTGetPeersMessage.h
  7502. * src/DHTGetPeersReplyMessage.cc
  7503. * src/DHTGetPeersReplyMessage.h
  7504. * src/DHTMessageFactory.h
  7505. * src/DHTMessageFactoryImpl.cc
  7506. * src/DHTMessageFactoryImpl.h
  7507. * src/DHTMessageReceiver.cc
  7508. * src/DHTMessageTracker.cc
  7509. * src/DHTMessageTracker.h
  7510. * src/DHTPingMessage.cc
  7511. * src/DHTPingMessage.h
  7512. * src/DHTPingReplyMessage.cc
  7513. * src/DHTPingReplyMessage.h
  7514. * src/DHTQueryMessage.cc
  7515. * src/DHTQueryMessage.h
  7516. * src/DHTResponseMessage.cc
  7517. * src/DHTResponseMessage.h
  7518. * test/DHTAnnouncePeerMessageTest.cc
  7519. * test/DHTAnnouncePeerReplyMessageTest.cc
  7520. * test/DHTFindNodeMessageTest.cc
  7521. * test/DHTFindNodeReplyMessageTest.cc
  7522. * test/DHTGetPeersMessageTest.cc
  7523. * test/DHTGetPeersReplyMessageTest.cc
  7524. * test/DHTMessageFactoryImplTest.cc
  7525. * test/DHTMessageTrackerTest.cc
  7526. * test/DHTPingMessageTest.cc
  7527. * test/DHTPingReplyMessageTest.cc
  7528. * test/MockDHTMessageFactory.h
  7529. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7530. Added tests the case where length < 0 is specified.
  7531. * test/BencodeTest.cc
  7532. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7533. Fixed memory leak in decoderawstring()
  7534. * src/bencode.cc
  7535. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7536. Added missing #ifdef guard. Added uc() function for String and
  7537. removeKey() for Dict.
  7538. * src/bencode.cc
  7539. * src/bencode.h
  7540. * test/BencodeTest.cc
  7541. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7542. Use BDE instead of Dictionary/List/Data.
  7543. * src/HandshakeExtensionMessage.cc
  7544. * src/HandshakeExtensionMessage.h
  7545. * test/HandshakeExtensionMessageTest.cc
  7546. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7547. Added --max-overall-upload-limit option. This option limits the
  7548. overall upload speed. Stated in help message that the existing
  7549. --max-upload-limit option limits the upload speed per each
  7550. torrent. Man page is also updated.
  7551. * doc/aria2c.1.txt
  7552. * src/DefaultBtMessageDispatcher.cc
  7553. * src/DefaultBtMessageDispatcher.h
  7554. * src/OptionHandlerFactory.cc
  7555. * src/PeerInteractionCommand.cc
  7556. * src/option_processing.cc
  7557. * src/prefs.cc
  7558. * src/prefs.h
  7559. * src/usage_text.h
  7560. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7561. Use BDE instead of Dictionary/List/Data classes.
  7562. * src/CompactPeerListProcessor.cc
  7563. * src/CompactPeerListProcessor.h
  7564. * src/DefaultBtAnnounce.cc
  7565. * src/DefaultBtContext.cc
  7566. * src/DefaultBtContext.h
  7567. * src/DefaultPeerListProcessor.cc
  7568. * src/DefaultPeerListProcessor.h
  7569. * src/DelegatingPeerListProcessor.cc
  7570. * src/DelegatingPeerListProcessor.h
  7571. * src/PeerListProcessor.h
  7572. * src/UTPexExtensionMessage.cc
  7573. * src/Util.h
  7574. * src/message.h
  7575. * test/DefaultBtContextTest.cc
  7576. * test/DefaultPeerListProcessorTest.cc
  7577. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7578. Added bencode helper functions and BDE class.
  7579. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7580. * src/Makefile.am
  7581. * src/bencode.cc
  7582. * src/bencode.h
  7583. * test/BencodeTest.cc
  7584. * test/Makefile.am
  7585. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7586. Fixed the bug that bad URI is sent to the tracker when the announe
  7587. URI in torrent file includes query.
  7588. * src/DefaultBtAnnounce.cc
  7589. * test/DefaultBtAnnounceTest.cc
  7590. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7591. Added Option::blank().
  7592. Use !Option::blank(name) instead of Option::defined(name) for
  7593. the options that take filename.
  7594. * src/MultiUrlRequestInfo.cc
  7595. * src/Option.cc
  7596. * src/Option.h
  7597. * src/main.cc
  7598. * src/option_processing.cc
  7599. * test/OptionTest.cc
  7600. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7601. Documented the default value of --check-certificate option in man
  7602. page.
  7603. * doc/aria2c.1.txt
  7604. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7605. Enabled --check-certificate by default. Added compile
  7606. time(configure) option --with-ca-bundle to specify CA bundle.
  7607. Warn if --check-certificate=true and --ca-certificate is not
  7608. specified or loading CA certificate is failed.
  7609. * configure.ac
  7610. * src/MultiUrlRequestInfo.cc
  7611. * src/OptionHandlerFactory.cc
  7612. * src/message.h
  7613. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7614. Mentioned https tag in help option.
  7615. * doc/aria2c.1.txt
  7616. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7617. Added `https' tag to help option category. Added https tag to
  7618. --ca-certificate, --certificate, --check-certificate and
  7619. --private-key option.
  7620. * src/OptionHandlerFactory.cc
  7621. * src/help_tags.h
  7622. * src/option_processing.cc
  7623. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7624. Changed the package name from `aria2c' to `aria2' in order to fix
  7625. the packaging issue in Debian and Fedora. The name of the
  7626. executable is not changed.
  7627. * configure.ac
  7628. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7629. Fixed typos
  7630. * src/usage_text.h
  7631. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7632. Fixed typos and updated doc.
  7633. * README
  7634. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7635. Fixed typos
  7636. * doc/aria2c.1.txt
  7637. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7638. Fixed typos
  7639. * src/usage_text.h
  7640. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7641. Print a message when no files to download.
  7642. * src/download_helper.cc
  7643. * src/main.cc
  7644. * src/message.h
  7645. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7646. RFC3986 complied Percent-Encoding(urlencode).
  7647. Use uppercase hexadecimal digits for encoded text instead of lowercase
  7648. ones.
  7649. * src/Request.cc
  7650. * src/Util.cc
  7651. * src/Util.h
  7652. * test/BtHandshakeMessageTest.cc
  7653. * test/DefaultBtAnnounceTest.cc
  7654. * test/DefaultBtContextTest.cc
  7655. * test/RequestTest.cc
  7656. * test/UtilTest.cc
  7657. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7658. Fixed the bug that prevents aria2 from downloading 0-length files
  7659. via HTTP/FTP.
  7660. * src/DefaultBtContext.cc
  7661. * src/DefaultBtContext.h
  7662. * src/DownloadContext.h
  7663. * src/FtpNegotiationCommand.cc
  7664. * src/HttpResponseCommand.cc
  7665. * src/HttpResponseCommand.h
  7666. * src/RequestGroup.cc
  7667. * src/SingleFileDownloadContext.cc
  7668. * src/SingleFileDownloadContext.h
  7669. * test/BtPostDownloadHandlerTest.cc
  7670. * test/MetalinkPostDownloadHandlerTest.cc
  7671. * test/MockBtContext.h
  7672. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7673. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7674. * src/option_processing.cc
  7675. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7676. Applied aria2-1.0.1-mingw.patch.
  7677. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7678. mingw.
  7679. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7680. * src/SocketCore.cc
  7681. * src/a2netcompat.h
  7682. * test/SocketCoreTest.cc
  7683. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7684. * Release 1.0.1
  7685. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7686. Updated Ukrainian and Norwegian Nynorsk translations.
  7687. Thanks to all translators.
  7688. * po/nn.po
  7689. * po/uk.po
  7690. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7691. Don't show download result when -S option is used.
  7692. * src/main.cc
  7693. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7694. Bump up version number to 1.0.1
  7695. * configure.ac
  7696. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7697. Closed files after the test cases in MultiDiskWriterTest::
  7698. testResetDiskWriterEntries(). This will fix the unit test error
  7699. in mingw32 build.
  7700. * test/MultiDiskWriterTest.cc
  7701. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7702. Use HEAD method to get file size from HTTP server for segmented
  7703. downloading.
  7704. The request to the BitTorrent Tracker always uses GET method because
  7705. the response of the tracker is small and it doesn't need segmented
  7706. download.
  7707. * src/FtpNegotiationCommand.cc
  7708. * src/HttpRequest.cc
  7709. * src/HttpResponseCommand.cc
  7710. * src/HttpSkipResponseCommand.cc
  7711. * src/RequestGroup.cc
  7712. * src/RequestGroup.h
  7713. * src/TrackerWatcherCommand.cc
  7714. * test/HttpRequestTest.cc
  7715. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7716. Fixed the bug that causes floating exception when -T option is used and
  7717. no URIs are given.
  7718. * src/download_helper.cc
  7719. * test/DownloadHelperTest.cc
  7720. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7721. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7722. errors in MinGW:
  7723. Closed file after saving server stats (RequestGroupMan.cc)
  7724. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7725. Ignored case & handled 2-digit years (strptime.c)
  7726. Added missing suseconds_t definition (a2time.h)
  7727. Fixed socket CLOSE() define (SocketCore.cc)
  7728. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7729. Changed utime() test values from x000 to x00000 as MinGW failed on
  7730. values less than timezone offset from Unix epoch
  7731. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7732. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7733. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7734. handle negative dates (CookieParserTest.cc)
  7735. * src/a2time.h
  7736. * src/FtpConnection.cc
  7737. * src/RequestGroupMan.cc
  7738. * src/SocketCore.cc
  7739. * src/strptime.c
  7740. * test/CookieParserTest.cc
  7741. * test/CopyDiskAdaptorTest.cc
  7742. * test/FileTest.cc
  7743. * test/FtpConnectionTest.cc
  7744. * test/MultiDiskAdaptorTest.cc
  7745. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7746. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7747. * doc/aria2c.1.txt
  7748. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7749. * Release 1.0.0
  7750. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7751. Added '~' to reserved characters.
  7752. * src/Util.cc
  7753. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7754. Do not urlencode Request::url in setUrl() because we want unmodified
  7755. URL using Request::getUrl()
  7756. * src/Request.cc
  7757. * src/Request.h
  7758. * test/RequestTest.cc
  7759. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7760. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7761. Thanks to all translators.
  7762. * po/bg.po
  7763. * po/fr.po
  7764. * po/ja.po
  7765. * po/ru.po
  7766. * po/uk.po
  7767. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7768. Bump up version number to 1.0.0
  7769. * configure.ac
  7770. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7771. Added nosqlite3 build to build_test.sh.
  7772. Renamed noxml as expat.
  7773. * build_test.sh
  7774. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7775. Updated INPUT FILE section.
  7776. * doc/aria2c.1.txt
  7777. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7778. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7779. on big endian systems because test .aria2 files are made for little
  7780. endian systems.
  7781. * test/DefaultBtProgressInfoFileTest.cc
  7782. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7783. Dropped ares support.
  7784. * README
  7785. * configure.ac
  7786. * m4/libares.m4: Removed.
  7787. * src/AsyncNameResolver.cc
  7788. * src/Makefile.am
  7789. * test/Makefile.am
  7790. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7791. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7792. Removed const qualifier from DiskWriter::size().
  7793. * src/AbstractDiskWriter.cc
  7794. * src/AbstractDiskWriter.h
  7795. * src/ByteArrayDiskWriter.cc
  7796. * src/ByteArrayDiskWriter.h
  7797. * src/DiskWriter.h
  7798. * test/ByteArrayDiskWriterTest.cc
  7799. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7800. Fixed the bug that causes segmentation fault/bus error during executing
  7801. choking algorithm while seeding. This is caused by improper
  7802. implementation of compare function which returns inconsistent results
  7803. depending on the timing of last unchoke.
  7804. * src/BtSeederStateChoke.cc
  7805. * src/BtSeederStateChoke.h
  7806. * src/DefaultPeerStorage.cc
  7807. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7808. Removed TODO
  7809. * TODO
  7810. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7811. Added a section that explains how to pass argument to options that
  7812. takes optional arguments with its short form.
  7813. * doc/aria2c.1.txt
  7814. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7815. Added -u for the short form of --max-upload-limit option.
  7816. * doc/aria2c.1.txt
  7817. * src/option_processing.cc
  7818. * src/usage_text.h
  7819. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7820. Added -V for the short form of --check-integrity option.
  7821. Now the argument of --check-integrity option is optional:
  7822. if it is omitted, it is evaluated as true.
  7823. * doc/aria2c.1.txt
  7824. * src/option_processing.cc
  7825. * src/usage_text.h
  7826. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7827. Made the default value of --ftp-pasv option set to true and it can take
  7828. true/false values.
  7829. * src/OptionHandlerFactory.cc
  7830. * src/option_processing.cc
  7831. * src/usage_text.h
  7832. * doc/aria2c.1.txt
  7833. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7834. Given custom random number generator to std::random_shuffle.
  7835. * src/AnnounceList.cc
  7836. * src/BtLeecherStateChoke.cc
  7837. * src/BtSeederStateChoke.cc
  7838. * src/DefaultBtRequestFactory.cc
  7839. * src/MetalinkEntry.cc
  7840. * src/RarestPieceSelector.cc
  7841. * src/SimpleRandomizer.cc
  7842. * src/SimpleRandomizer.h
  7843. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7844. Now the default value of --enable-direct-io is true.
  7845. * src/OptionHandlerFactory.cc
  7846. * doc/aria2c.1.txt
  7847. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7848. Erase peer before executing onReturningPeer and onErasingPeer
  7849. because choking algorithm called from onReturningPeer doesn't
  7850. like erasing peer in the active peer list.
  7851. * src/DefaultPeerStorage.cc
  7852. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7853. Instead of creating special filename in createDownloadResult() if
  7854. inMemoryDownload() is true, now it is done in getFilePath().
  7855. * src/RequestGroup.cc
  7856. * test/RequestGroupTest.cc
  7857. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7858. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7859. processed in memory. This is the fix for previous comment out.
  7860. * src/MemoryBufferPreDownloadHandler.cc
  7861. * src/RequestGroup.cc
  7862. * src/RequestGroup.h
  7863. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7864. Commented out the code which sets virtual directory path "[MEMORY]"
  7865. propagate directory to store to following RequestGroup.
  7866. * src/MemoryBufferPreDownloadHandler.cc
  7867. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7868. Bump up version number to 1.0.0b
  7869. * configure.ac
  7870. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7871. Added input_uris.txt to EXTRA_DIST
  7872. * test/Makefile.am
  7873. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7874. Removed PeerObject.h from Makefile.am
  7875. * src/Makefile.am
  7876. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7877. Avoid slow seeding
  7878. * src/PeerInteractionCommand.cc
  7879. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7880. Updated usage for -i option.
  7881. * src/usage_text.h (TEXT_INPUT_FILE)
  7882. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7883. Added INPUT FILE section to man page.
  7884. Escaped fake URLs.
  7885. * doc/aria2c.1.txt
  7886. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7887. Fixed wrong note position for -o option.
  7888. * doc/aria2c.1.txt
  7889. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7890. Fixed compile error without SSL/XML library.
  7891. * src/DefaultBtProgressInfoFile.cc
  7892. * src/DefaultBtProgressInfoFile.h
  7893. * src/FileMetalinkParserState.cc
  7894. * src/RequestGroup.h
  7895. * src/SocketCore.cc
  7896. * src/SocketCore.h
  7897. * src/VerificationMetalinkParserState.cc
  7898. * src/download_helper.h
  7899. * src/main.cc
  7900. * test/DefaultBtProgressInfoFileTest.cc
  7901. * test/DownloadHelperTest.cc
  7902. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7903. Rewritten URI handling functions. They are now provided as a testable
  7904. functions.
  7905. * src/Makefile.am
  7906. * src/RequestGroup.cc
  7907. * src/RequestGroup.h
  7908. * src/download_helper.cc
  7909. * src/download_helper.h
  7910. * src/main.cc
  7911. * test/DownloadHelperTest.cc
  7912. * test/Makefile.am
  7913. * test/input_uris.txt
  7914. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7915. Quickly terminate commands when ctrl-c is pressed.
  7916. * src/DownloadEngine.cc
  7917. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7918. Quickly terminate idle commands when download finished.
  7919. * src/AbstractCommand.cc
  7920. * src/DownloadCommand.cc
  7921. * src/DownloadEngine.cc
  7922. * src/DownloadEngine.h
  7923. * src/SleepCommand.cc
  7924. * src/SleepCommand.h
  7925. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7926. Added the ability to specify output filename and directory in input
  7927. file.
  7928. Additional parameters are added in the following line of URIs
  7929. with proceeding white space(s), 1 parameter in 1 line.
  7930. The parameter names are the same with the command-line option name
  7931. without proceeding "--". Not all the options are available here:
  7932. at the moment, 'dir' and 'out' options are avialable.
  7933. Please note that out option has no effect against Metalink or BitTorrent
  7934. downloads.
  7935. Example input file:
  7936. http://host/foo-1.1.tar.bz2
  7937. out=foo.tar.bz2
  7938. dir=/tmp/downloads
  7939. http://host/thundermonkey-2.0.tar.bz2
  7940. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7941. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7942. thundermonkey-2.0.tar.bz2 is saved as
  7943. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7944. * src/BtPostDownloadHandler.cc
  7945. * src/Metalink2RequestGroup.cc
  7946. * src/Metalink2RequestGroup.h
  7947. * src/MetalinkPostDownloadHandler.cc
  7948. * src/UriListParser.cc
  7949. * src/UriListParser.h
  7950. * src/main.cc
  7951. * test/Metalink2RequestGroupTest.cc
  7952. * test/UriListParserTest.cc
  7953. * test/filelist1.txt
  7954. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7955. Fixed error when SSL library is not found.
  7956. * configure.ac
  7957. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7958. Cross referenced among -s, -C and -j options.
  7959. Updated usage of -C and -s options.
  7960. * src/usage_text.h
  7961. * doc/aria2c.1.txt
  7962. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7963. Fixed bad cast in 32bit platforms.
  7964. * test/DefaultPieceStorageTest.cc
  7965. (DefaultPieceStorageTest::testGetCompletedLength)
  7966. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7967. Fixed unit test fails on 32bit platforms.
  7968. * test/CookieParserTest.cc
  7969. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7970. Show an average download speed in Download results.
  7971. * src/BtFileAllocationEntry.cc
  7972. * src/DefaultPieceStorage.cc
  7973. * src/DownloadContext.cc
  7974. * src/DownloadContext.h
  7975. * src/DownloadResult.h
  7976. * src/RequestGroup.cc
  7977. * src/RequestGroupMan.cc
  7978. * src/StreamFileAllocationEntry.cc
  7979. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7980. Fixed the bug that metalink file is not processed if Content-Type
  7981. field has a paramter.
  7982. * src/HttpResponse.cc
  7983. * src/HttpResponse.h
  7984. * test/HttpResponseTest.cc
  7985. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7986. Removed unused code.
  7987. * src/DefaultBtAnnounce.cc
  7988. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7989. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7990. the value larger than DefaultPieceStorage::getTotalLength() when
  7991. in flight pieces are involved.
  7992. * src/DefaultPieceStorage.cc
  7993. * test/DefaultPieceStorageTest.cc
  7994. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7995. Bump up version number to 1.0.0a.
  7996. * configure.ac
  7997. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7998. Updated configure.ac
  7999. * configure.ac
  8000. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8001. Added usege for proxy.
  8002. * doc/aria2c.1.txt
  8003. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8004. Added usage for --ca-certificate, --certificate, --private-key and
  8005. --check-certificate options.
  8006. * doc/aria2c.1.txt
  8007. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8008. Updated man page
  8009. * doc/aria2c.1.txt
  8010. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8011. Added --no-proxy option. It receives comman separated hostname or
  8012. domains to which proxy should not be used.
  8013. aria2 honors the environment variable no_proxy to override no-proxy
  8014. value in configuration file. The user can override the environment
  8015. variable no_proxy with --no-proxy command-line option.
  8016. * src/AbstractCommand.cc
  8017. * src/OptionHandlerFactory.cc
  8018. * src/option_processing.cc
  8019. * src/prefs.cc
  8020. * src/prefs.h
  8021. * src/usage_text.h
  8022. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8023. Added the ability to verify peer in SSL/TLS using given CA certificates.
  8024. The CA certificates are specified in --ca-certificate option.
  8025. By default, the verification is disabled. Use --check-certificate
  8026. option to enable it.
  8027. * src/HttpRequestCommand.cc
  8028. * src/LibgnutlsTLSContext.cc
  8029. * src/LibgnutlsTLSContext.h
  8030. * src/LibsslTLSContext.cc
  8031. * src/LibsslTLSContext.h
  8032. * src/MultiUrlRequestInfo.cc
  8033. * src/OptionHandlerFactory.cc
  8034. * src/SocketCore.cc
  8035. * src/SocketCore.h
  8036. * src/a2functional.h
  8037. * src/message.h
  8038. * src/option_processing.cc
  8039. * src/prefs.cc
  8040. * src/prefs.h
  8041. * src/usage_text.h
  8042. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8043. Added client certificate authentication for SSL/TLS.
  8044. Currently a private key must be decrypted for use with aria2.
  8045. If a user accidentally gives encrypted file to aria2 then following
  8046. thing happens:
  8047. If encrypted private key is given to aria2, it behaves differently
  8048. depending on the ssl library it uses. If aria2 built with openssl then
  8049. openssl prompts the user for password. If aria2 build with gnutls then
  8050. aria2 exists with error at start up.
  8051. * src/DownloadEngineFactory.cc
  8052. * src/MultiUrlRequestInfo.cc
  8053. * src/OptionHandlerFactory.cc
  8054. * src/option_processing.cc
  8055. * src/prefs.cc
  8056. * src/prefs.h
  8057. * src/usage_text.h
  8058. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8059. Introduced TLSContext that holds TLS related data that can be shared
  8060. with multiple SSL connections.
  8061. * src/DownloadEngineFactory.cc
  8062. * src/LibgnutlsTLSContext.cc
  8063. * src/LibgnutlsTLSContext.h
  8064. * src/LibsslTLSContext.cc
  8065. * src/LibsslTLSContext.h
  8066. * src/Makefile.am
  8067. * src/SocketCore.cc
  8068. * src/SocketCore.h
  8069. * src/TLSContext.h
  8070. * src/message.h
  8071. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8072. Fixed the bug that the DiskWriter of the first FileEntry whose
  8073. `needsFileAllocation' property is false is not created
  8074. even if it shares a piece with next FileEntry which `requested' property
  8075. is true.
  8076. Fixed the bug that zero-length file is not created if pre file
  8077. allocation is not done.
  8078. * src/MultiDiskAdaptor.cc
  8079. * src/MultiDiskAdaptor.h
  8080. * test/MultiDiskAdaptorTest.cc
  8081. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8082. Added the ability to pool proxy connection.
  8083. The conneciton in FTP with proxy-method=GET is not pooled.
  8084. Proxy-Connection header will not be sent when sending CONNECT method.
  8085. * src/DownloadEngine.cc
  8086. * src/DownloadEngine.h
  8087. * src/FtpFinishDownloadCommand.cc
  8088. * src/FtpInitiateConnectionCommand.cc
  8089. * src/FtpNegotiationCommand.cc
  8090. * src/HttpDownloadCommand.cc
  8091. * src/HttpInitiateConnectionCommand.cc
  8092. * src/HttpRequest.cc
  8093. * src/HttpRequest.h
  8094. * src/HttpResponse.cc
  8095. * src/HttpSkipResponseCommand.cc
  8096. * test/HttpRequestTest.cc
  8097. * test/HttpResponseTest.cc
  8098. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8099. Handle date before epoch.
  8100. To create *bad* Time object, call Time::null().
  8101. * src/CookieParser.cc
  8102. * src/FtpConnection.cc
  8103. * src/FtpConnection.h
  8104. * src/FtpNegotiationCommand.cc
  8105. * src/RequestGroup.cc
  8106. * src/TimeA2.cc
  8107. * src/TimeA2.h
  8108. * test/CookieParserTest.cc
  8109. * test/FtpConnectionTest.cc
  8110. * test/TimeTest.cc
  8111. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. Added support for following envrionment variables: http_proxy,
  8113. https_proxy, ftp_proxy and all_proxy.
  8114. Each variable is equivalent to the aria2 option whose name is the
  8115. variable name with '_' replaced with '-'.
  8116. They overrides options specified in aria2.conf file.
  8117. The envrionment variables can be overrode using command-line option.
  8118. * src/option_processing.cc
  8119. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. Renamed --http-proxy-method as --proxy-method.
  8121. * src/AbstractCommand.cc
  8122. * src/FtpInitiateConnectionCommand.cc
  8123. * src/HttpInitiateConnectionCommand.cc
  8124. * src/OptionHandlerFactory.cc
  8125. * src/option_processing.cc
  8126. * src/prefs.cc
  8127. * src/prefs.h
  8128. * src/usage_text.h
  8129. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. Deprecated --http-proxy-user and --http-proxy-passwd options.
  8131. Added --https-proxy, --ftp-proxy and --all-proxy options.
  8132. Above 3 options and --http-proxy option can handle proxy in URL format
  8133. like: http://user:passwd@host:port.
  8134. If a proxy requires user/password, they must be specified in a URL.
  8135. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  8136. instead.
  8137. * src/AbstractCommand.cc
  8138. * src/AbstractCommand.h
  8139. * src/AbstractProxyRequestCommand.cc
  8140. * src/AbstractProxyRequestCommand.h
  8141. * src/AuthConfigFactory.cc
  8142. * src/AuthConfigFactory.h
  8143. * src/FtpFinishDownloadCommand.cc
  8144. * src/FtpInitiateConnectionCommand.cc
  8145. * src/FtpInitiateConnectionCommand.h
  8146. * src/FtpNegotiationCommand.cc
  8147. * src/FtpTunnelRequestCommand.cc
  8148. * src/FtpTunnelRequestCommand.h
  8149. * src/HttpDownloadCommand.cc
  8150. * src/HttpInitiateConnectionCommand.cc
  8151. * src/HttpInitiateConnectionCommand.h
  8152. * src/HttpProxyRequestCommand.cc
  8153. * src/HttpProxyRequestCommand.h
  8154. * src/HttpRequest.cc
  8155. * src/HttpRequest.h
  8156. * src/HttpRequestCommand.cc
  8157. * src/HttpRequestCommand.h
  8158. * src/HttpSkipResponseCommand.cc
  8159. * src/InitiateConnectionCommand.cc
  8160. * src/InitiateConnectionCommand.h
  8161. * src/OptionHandlerFactory.cc
  8162. * src/OptionHandlerImpl.h
  8163. * src/Request.cc
  8164. * src/option_processing.cc
  8165. * src/prefs.cc
  8166. * src/prefs.h
  8167. * src/usage_text.h
  8168. * test/AuthConfigFactoryTest.cc
  8169. * test/HttpRequestTest.cc
  8170. * test/OptionHandlerTest.cc
  8171. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. Execute choking algorithm when unchoked and interested peer is
  8173. disconected.
  8174. * src/DefaultPeerStorage.cc
  8175. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Added testcase for BtNotInterestedMessage from unchoked peer.
  8177. * test/BtNotInterestedMessageTest.cc
  8178. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8179. Execute choking algorithm when BtInterestedMessage arrives from
  8180. unchoked peer.
  8181. * src/BtInterestedMessage.cc
  8182. * src/BtInterestedMessage.h
  8183. * src/DefaultBtMessageFactory.cc
  8184. * test/BtInterestedMessageTest.cc
  8185. * test/MockPeerStorage.h
  8186. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. AuthConfigFactory is now part of DownloadEngine.
  8188. * src/AbstractProxyRequestCommand.cc
  8189. * src/AuthConfigFactory.h
  8190. * src/DownloadEngine.cc
  8191. * src/DownloadEngine.h
  8192. * src/FtpConnection.cc
  8193. * src/FtpConnection.h
  8194. * src/FtpNegotiationCommand.cc
  8195. * src/HttpConnection.cc
  8196. * src/HttpRequest.cc
  8197. * src/HttpRequest.h
  8198. * src/HttpRequestCommand.cc
  8199. * src/HttpResponse.cc
  8200. * src/HttpResponseCommand.cc
  8201. * src/HttpSkipResponseCommand.cc
  8202. * src/MultiUrlRequestInfo.cc
  8203. * src/main.cc
  8204. * test/FtpConnectionTest.cc
  8205. * test/HttpRequestTest.cc
  8206. * test/HttpResponseTest.cc
  8207. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. Corrected catched exception type.
  8209. * src/ServerStatMan.cc
  8210. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. DNSCache is now part of DownloadEngine.
  8212. * src/DNSCache.h
  8213. * src/DownloadEngine.cc
  8214. * src/DownloadEngine.h
  8215. * src/InitiateConnectionCommand.cc
  8216. * src/MultiUrlRequestInfo.cc
  8217. * test/Makefile.am
  8218. * test/Makefile.in
  8219. * test/SimpleDNSCacheTest.cc
  8220. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8221. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  8222. DownloadEngine.
  8223. * src/ActivePeerConnectionCommand.cc
  8224. * src/BtSetup.cc
  8225. * src/CUIDCounter.h
  8226. * src/DHTSetup.cc
  8227. * src/DownloadCommand.cc
  8228. * src/DownloadEngine.cc
  8229. * src/DownloadEngine.h
  8230. * src/DownloadEngineFactory.cc
  8231. * src/FileAllocationDispatcherCommand.cc
  8232. * src/InitiatorMSEHandshakeCommand.cc
  8233. * src/PeerInitiateConnectionCommand.cc
  8234. * src/PeerInteractionCommand.cc
  8235. * src/PeerListenCommand.cc
  8236. * src/RequestGroup.cc
  8237. * src/StreamFileAllocationEntry.cc
  8238. * src/TrackerWatcherCommand.cc
  8239. * src/main.cc
  8240. * test/RequestGroupManTest.cc
  8241. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Implemented commented code in BtSeederStateChoke
  8243. * src/BtSeederStateChoke.cc
  8244. * src/Peer.cc
  8245. * src/Peer.h
  8246. * src/PeerInteractionCommand.cc
  8247. * src/PeerSessionResource.cc
  8248. * src/PeerSessionResource.h
  8249. * test/MockBtMessageDispatcher.h
  8250. * test/PeerSessionResourceTest.cc
  8251. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  8253. its object.
  8254. * src/AbstractBtMessage.cc
  8255. * src/ActivePeerConnectionCommand.cc
  8256. * src/ActivePeerConnectionCommand.h
  8257. * src/BtContextAwareCommand.cc
  8258. * src/BtContextAwareCommand.h
  8259. * src/BtExtendedMessage.cc
  8260. * src/BtExtendedMessage.h
  8261. * src/BtInterestedMessage.cc
  8262. * src/BtInterestedMessage.h
  8263. * src/BtNotInterestedMessage.cc
  8264. * src/BtNotInterestedMessage.h
  8265. * src/BtRegistry.cc
  8266. * src/BtRegistry.h
  8267. * src/BtSeederStateChoke.cc
  8268. * src/BtSetup.cc
  8269. * src/DHTGetPeersCommand.cc
  8270. * src/DHTGetPeersCommand.h
  8271. * src/DHTPeerAnnounceEntry.cc
  8272. * src/DHTPeerAnnounceEntry.h
  8273. * src/DHTPeerAnnounceStorage.cc
  8274. * src/DHTPeerAnnounceStorage.h
  8275. * src/DHTPeerLookupTask.cc
  8276. * src/DHTPeerLookupTask.h
  8277. * src/DHTSetup.cc
  8278. * src/DHTSetup.h
  8279. * src/DHTTaskFactory.h
  8280. * src/DHTTaskFactoryImpl.cc
  8281. * src/DHTTaskFactoryImpl.h
  8282. * src/DefaultBtAnnounce.cc
  8283. * src/DefaultBtInteractive.cc
  8284. * src/DefaultBtInteractive.h
  8285. * src/DefaultBtMessageDispatcher.cc
  8286. * src/DefaultBtMessageDispatcher.h
  8287. * src/DefaultBtMessageFactory.cc
  8288. * src/DefaultBtMessageFactory.h
  8289. * src/DefaultBtMessageReceiver.cc
  8290. * src/DefaultBtProgressInfoFile.cc
  8291. * src/DefaultBtProgressInfoFile.h
  8292. * src/DefaultBtRequestFactory.cc
  8293. * src/DefaultBtRequestFactory.h
  8294. * src/DefaultExtensionMessageFactory.cc
  8295. * src/DefaultExtensionMessageFactory.h
  8296. * src/DefaultPeerStorage.cc
  8297. * src/DefaultPeerStorage.h
  8298. * src/DownloadEngine.cc
  8299. * src/DownloadEngine.h
  8300. * src/InitiatorMSEHandshakeCommand.cc
  8301. * src/InitiatorMSEHandshakeCommand.h
  8302. * src/MSEHandshake.cc
  8303. * src/MSEHandshake.h
  8304. * src/Makefile.am
  8305. * src/Makefile.in
  8306. * src/PeerChokeCommand.cc
  8307. * src/PeerChokeCommand.h
  8308. * src/PeerInitiateConnectionCommand.cc
  8309. * src/PeerInitiateConnectionCommand.h
  8310. * src/PeerInteractionCommand.cc
  8311. * src/PeerInteractionCommand.h
  8312. * src/PeerObject.h
  8313. * src/PeerReceiveHandshakeCommand.cc
  8314. * src/PeerReceiveHandshakeCommand.h
  8315. * src/ReceiverMSEHandshakeCommand.cc
  8316. * src/RequestGroup.cc
  8317. * src/RequestGroup.h
  8318. * src/RequestGroupMan.cc
  8319. * src/RequestGroupMan.h
  8320. * src/SeedCheckCommand.cc
  8321. * src/SeedCheckCommand.h
  8322. * src/ShareRatioSeedCriteria.h
  8323. * src/SimpleBtMessage.cc
  8324. * src/TrackerWatcherCommand.cc
  8325. * src/TrackerWatcherCommand.h
  8326. * src/UTPexExtensionMessage.cc
  8327. * src/UTPexExtensionMessage.h
  8328. * test/BtCancelMessageTest.cc
  8329. * test/BtChokeMessageTest.cc
  8330. * test/BtExtendedMessageTest.cc
  8331. * test/BtInterestedMessageTest.cc
  8332. * test/BtNotInterestedMessageTest.cc
  8333. * test/BtPieceMessageTest.cc
  8334. * test/BtPortMessageTest.cc
  8335. * test/BtRegistryTest.cc
  8336. * test/BtRejectMessageTest.cc
  8337. * test/BtRequestMessageTest.cc
  8338. * test/DHTPeerAnnounceEntryTest.cc
  8339. * test/DHTPeerAnnounceStorageTest.cc
  8340. * test/DefaultBtMessageDispatcherTest.cc
  8341. * test/DefaultBtMessageFactoryTest.cc
  8342. * test/DefaultBtProgressInfoFileTest.cc
  8343. * test/DefaultBtRequestFactoryTest.cc
  8344. * test/DefaultExtensionMessageFactoryTest.cc
  8345. * test/MSEHandshakeTest.cc
  8346. * test/MockDHTTaskFactory.h
  8347. * test/ShareRatioSeedCriteriaTest.cc
  8348. * test/UTPexExtensionMessageTest.cc
  8349. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8350. Fixed compiler warning.
  8351. * test/UtilTest.cc
  8352. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Treat Cookie object as session cookie if expiry = 0 is given.
  8354. With this change, you can specify session scoped cookies in an external
  8355. file setting expiry value to 0.
  8356. * src/Cookie.cc
  8357. * src/Cookie.h
  8358. * test/CookieParserTest.cc
  8359. * test/CookieStorageTest.cc
  8360. * test/CookieTest.cc
  8361. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. Changed signature of DHTMessageFactory::createResponseMessage().
  8363. Removed unused validateIDMatch.
  8364. * src/DHTMessageFactory.h
  8365. * src/DHTMessageFactoryImpl.cc
  8366. * src/DHTMessageFactoryImpl.h
  8367. * src/DHTMessageTracker.cc
  8368. * test/DHTMessageFactoryImplTest.cc
  8369. * test/MockDHTMessageFactory.h
  8370. Dropped DHT message coming from same ID of localhost.
  8371. * src/DHTMessageReceiver.cc
  8372. Rejected adding node whose ID is the same as localhost's.
  8373. * src/DHTRoutingTable.cc
  8374. * test/BtPortMessageTest.cc
  8375. * test/DHTRoutingTableTest.cc
  8376. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. Pool connection when redirection occurs with Content-Length = 0.
  8378. * src/HttpSkipResponseCommand.cc
  8379. * src/HttpSkipResponseCommand.h
  8380. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8381. Fixed the bug that causes time out when redirection occurs with
  8382. content-length 0.
  8383. * src/HttpResponseCommand.cc
  8384. * src/HttpSkipResponseCommand.cc
  8385. * src/HttpSkipResponseCommand.h
  8386. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8387. Now each status legends is shown only when it appears in Download
  8388. Result. If Download Result has no item, then status legend will not
  8389. be printed.
  8390. * src/RequestGroupMan.cc
  8391. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8392. Removed duplicate creation of OptionHandlers.
  8393. * src/option_processing.cc
  8394. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8395. Fixed the bug that causes segmentation fault when accessing files which
  8396. don't exist or are not included in --select-file option while
  8397. validating chunk checksum.
  8398. * src/MultiDiskAdaptor.cc
  8399. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8400. Fixed compiler warning.
  8401. * test/UtilTest.cc
  8402. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8403. Included cstdlib. This fixed the compile error with g++-4.3.2.
  8404. * src/IteratableChecksumValidator.cc
  8405. * src/IteratableChunkChecksumValidator.cc
  8406. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. * Release 0.16.2
  8408. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Added Serbian translation. Updated Ukrainian translation.
  8410. Thanks to all translators.
  8411. * po/sr.po
  8412. * po/uk.po
  8413. * po/LINGUAS
  8414. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Bump up version number to 0.16.2
  8416. * configure.ac
  8417. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Added length equality test to operator== to drop a piece message
  8419. whose length does not match to the requested one.
  8420. * src/RequestSlot.cc
  8421. * test/DefaultBtMessageDispatcherTest.cc
  8422. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8423. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  8424. recieved.
  8425. In this fix, if a request larger than 16KiB length is received, aria2
  8426. disconnects the peer.
  8427. * src/BtConstants.h
  8428. * src/PeerMessageUtil.cc
  8429. * src/PeerMessageUtil.h
  8430. * test/BtRequestMessageTest.cc
  8431. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. * Release 0.16.1
  8433. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8434. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  8435. * doc/aria2c.1.txt
  8436. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  8438. Updated French, Simplified Chinese and Japanese translations.
  8439. Thanks to all translators.
  8440. en@quot and en@boldquot are also added.
  8441. * po/LINGUAS
  8442. * po/fr.po
  8443. * po/ja.po
  8444. * po/uk.po
  8445. * po/vi.po
  8446. * po/zh_CN.po
  8447. * po/zh_TW.po
  8448. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Bump up version number to 0.16.1.
  8450. * configure.ac
  8451. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Updated README.
  8453. * README
  8454. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8455. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  8456. not to replace '--' with em dash character.
  8457. * doc/aria2c.1.txt
  8458. * doc/makeman
  8459. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  8461. every SEC seconds.
  8462. * src/DownloadEngineFactory.cc
  8463. * src/OptionHandlerFactory.cc
  8464. * src/option_processing.cc
  8465. * src/usage_text.h
  8466. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8467. Fixed compile warning on linux-amd64
  8468. * src/FtpConnection.cc
  8469. * src/IteratableChunkChecksumValidator.cc
  8470. * src/MultiDiskAdaptor.cc
  8471. Fixed the bug that unit test fails on linux-amd64
  8472. * test/UtilTest.cc
  8473. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8474. Added --dht-file-path option to change the path to dht.dat, which is a
  8475. serialized DHT routing table.
  8476. * src/OptionHandlerFactory.cc
  8477. * src/option_processing.cc
  8478. * src/usage_text.h
  8479. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8480. Fixed possible underflow.
  8481. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  8482. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Fixed the bug that last character in URI is not encoded.
  8484. * src/Request.cc
  8485. * test/RequestTest.cc
  8486. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Fixed the bug that referer header field contains fragment.
  8488. Now Request class removes fragment part of URI and encodes it
  8489. in Request::setUri() and setReferer().
  8490. * src/Request.h
  8491. * src/Request.cc
  8492. * test/RequestTest.cc
  8493. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. Added missing m4 macros.
  8495. * m4/cppunit.m4
  8496. * m4/libgcrypt.m4
  8497. * m4/libgnutls-extra.m4
  8498. * m4/libgnutls.m4
  8499. * m4/libxml2.m4
  8500. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8501. Fixed compile error with gcc-4.4(snapshot)
  8502. * src/File.cc
  8503. * src/FtpConnection.cc
  8504. * src/OptionHandlerImpl.h
  8505. * src/Util.cc
  8506. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8507. Removed assert()
  8508. * src/SocketBuffer.cc (SocketBuffer::send)
  8509. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8510. Changed the type of _numNewConnection to unsigned int.
  8511. * src/ActivePeerConnectionCommand.cc
  8512. * src/ActivePeerConnectionCommand.h
  8513. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8514. * Release 0.16.0
  8515. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8516. Updated doc
  8517. * README
  8518. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8519. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  8520. translations. Thanks to all translators.
  8521. * po/bg.po
  8522. * po/de.po
  8523. * po/fr.po
  8524. * po/ja.po
  8525. * po/zh_CN.po
  8526. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8527. Bump up version number to 0.16.0.
  8528. * configure.ac
  8529. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Casted entry->maxConnections to int32_t for std::min<T> with T =
  8531. int32_t.
  8532. Changed the type of count to int32_t.
  8533. * src/Metalink2RequestGroup.cc
  8534. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8535. Added test for Time::elapsed(time_t).
  8536. * test/TimeTest.cc
  8537. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  8539. Util::difftv() should be used instead.
  8540. * src/TimeA2.cc
  8541. * src/TimeA2.h
  8542. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. Made socket for dht connections non-blocking
  8544. * src/DHTAbstractMessage.cc
  8545. * src/DHTAbstractMessage.h
  8546. * src/DHTConnection.h
  8547. * src/DHTConnectionImpl.cc
  8548. * src/DHTConnectionImpl.h
  8549. * src/DHTMessage.h
  8550. * src/DHTMessageDispatcherImpl.cc
  8551. * src/DHTMessageDispatcherImpl.h
  8552. * src/DHTUnknownMessage.cc
  8553. * src/DHTUnknownMessage.h
  8554. * src/SocketCore.cc
  8555. * src/SocketCore.h
  8556. * test/MockDHTMessage.h
  8557. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. Changed the type of offset to int.
  8559. * src/ParameterizedStringParser.cc
  8560. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Made getAsInt() return int32_t
  8562. * src/Option.h
  8563. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8564. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8565. build.
  8566. * configure.ac
  8567. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. Use sqlite3_open if sqlite3_open_v2 is not available.
  8569. * src/Sqlite3MozCookieParser.cc
  8570. * src/Sqlite3MozCookieParser.h
  8571. * m4/sqlite3.m4
  8572. * test/Sqlite3MozCookieParserTest.cc
  8573. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8574. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8575. * src/BtPieceMessage.cc
  8576. * src/DHTPeerAnnounceStorage.cc
  8577. * src/DefaultPieceStorage.cc
  8578. * src/DownloadCommand.cc
  8579. * src/DownloadEngine.cc
  8580. * src/FtpConnection.cc
  8581. * src/PeerConnection.cc
  8582. * src/PeerMessageUtil.cc
  8583. * src/RequestGroup.cc
  8584. * src/RequestGroupMan.cc
  8585. * src/SimpleBtMessage.cc
  8586. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8587. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8588. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8589. * src/AbstractDiskWriter.cc
  8590. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Don't set Request::supportsPersistentConnection() in HttpConnection
  8592. since this code is also used in AbstractProxyResponseCommand.
  8593. Moved those code to HttpResponse.
  8594. * src/HttpResponse.cc
  8595. * src/HttpResponse.h
  8596. * src/HttpConnection.cc
  8597. * src/HttpConnection.h
  8598. * src/HttpResponseCommand.cc
  8599. * test/HttpResponseTest.cc
  8600. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8601. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  8602. The configuration is minimum: no torrent, no metalink, so there may be
  8603. other compile error on their code.
  8604. * src/a2netcompat.h
  8605. * src/File.cc
  8606. * src/File.h
  8607. * src/SocketCore.cc
  8608. * src/SocketCore.h
  8609. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Made a socket of incoming peer non-blocking.
  8611. * src/PeerListenCommand.cc
  8612. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8613. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  8614. whole message data is not sent in one send() call.
  8615. * src/BtPieceMessage.cc
  8616. * src/BtPieceMessage.h
  8617. * src/PeerConnection.cc
  8618. * src/PeerConnection.h
  8619. * src/SimpleBtMessage.cc
  8620. * src/SimpleBtMessage.h
  8621. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Fixed the bug that aria2 downloads faster than max-download-limit when
  8623. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  8624. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  8625. , instead of sum of them.
  8626. * src/ActivePeerConnectionCommand.cc
  8627. * src/DefaultBtInteractive.cc
  8628. * src/DownloadCommand.cc
  8629. * src/PeerInteractionCommand.cc
  8630. * src/PeerReceiveHandshakeCommand.cc
  8631. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. Fixed the bug that HTTPS download fails.
  8633. * src/AbstractCommand.cc
  8634. * src/AbstractCommand.h
  8635. * src/DownloadCommand.cc
  8636. * src/FtpConnection.cc
  8637. * src/HttpConnection.cc
  8638. * src/HttpRequestCommand.cc
  8639. * src/HttpResponseCommand.cc
  8640. * src/HttpSkipResponseCommand.cc
  8641. * src/MSEHandshake.cc
  8642. * src/PeerConnection.cc
  8643. * src/SocketCore.cc
  8644. * src/SocketCore.h
  8645. Fixed the bug that aria2 doesn't download whole content body and cannot
  8646. reuse connection if chunked transfer encoding and gzip content encoding
  8647. are set.
  8648. * src/DownloadCommand.cc
  8649. * src/HttpSkipResponseCommand.cc
  8650. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8651. Updated man page.
  8652. * doc/aria2c.1.txt
  8653. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8654. When error occurred while aria2 was parsing an .aria2.conf file, print
  8655. the usage of the option that caused error.
  8656. * src/option_processing.cc
  8657. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Fixed compile error on OptionHandlerException
  8659. * src/Makefile.am
  8660. * src/OptionHandlerException.cc
  8661. * src/OptionHandlerException.h
  8662. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Moved message of the error to OptionHandlerException.h
  8664. * src/NameMatchOptionHandler.h
  8665. * src/OptionHandlerException.h
  8666. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8667. When error occurs while aria2 is parsing an command-line option, print
  8668. the usage of the option.
  8669. * src/Makefile.am
  8670. * src/NameMatchOptionHandler.h
  8671. * src/OptionHandlerException.h
  8672. * src/option_processing.cc
  8673. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. Reverted previous change.
  8675. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8676. username is not in URI.
  8677. * src/HttpRequest.cc
  8678. * src/Request.cc
  8679. * test/HttpRequestTest.cc
  8680. * test/RequestTest.cc
  8681. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. Now colon is required for username and password in FTP URL, like:
  8683. ftp://username:password@host.
  8684. If colon is not there, aria2 don't parse it as a username. For example,
  8685. aria2 don't retrieve username from ftp://username@host.
  8686. This fix was made in order to login FTP server via non-transparent ftp
  8687. proxy.
  8688. * src/Request.cc
  8689. * test/RequestTest.cc
  8690. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Use netrc for HTTP.
  8692. Now FTP user/password is sent in Authorization header when
  8693. --ftp-via-http-proxy=get is given.
  8694. * src/AuthConfigFactory.cc
  8695. * src/HttpRequest.cc
  8696. * src/HttpRequest.h
  8697. * src/NetrcAuthResolver.cc
  8698. * src/NetrcAuthResolver.h
  8699. * src/OptionHandlerFactory.cc
  8700. * src/option_processing.cc
  8701. * src/prefs.cc
  8702. * src/prefs.h
  8703. * test/AuthConfigFactoryTest.cc
  8704. * test/HttpRequestTest.cc
  8705. * test/NetrcAuthResolverTest.cc
  8706. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8707. Issue PWD command first and get working directory and use it as a prefix
  8708. for CWD command.
  8709. * src/DownloadEngine.cc
  8710. * src/DownloadEngine.h
  8711. * src/FtpConnection.cc
  8712. * src/FtpConnection.h
  8713. * src/FtpFinishDownloadCommand.cc
  8714. * src/FtpInitiateConnectionCommand.cc
  8715. * src/FtpNegotiationCommand.cc
  8716. * src/FtpNegotiationCommand.h
  8717. * test/FtpConnectionTest.cc
  8718. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Removed default user/pass for FTP user/pass, since it should not have
  8720. precedence over netrc configuration by default.
  8721. * src/OptionHandlerFactory.cc
  8722. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8723. Added debug log for socket event.
  8724. * src/AbstractCommand.cc
  8725. * src/PeerAbstractCommand.cc
  8726. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. Log microseconds.
  8728. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8729. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8730. Replaced HelpItem.cc with OptionHandler.cc.
  8731. * po/POTFILES.in
  8732. Updated po files with 'make update-po'
  8733. * po/aria2c.pot
  8734. * po/*.po
  8735. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8736. Removed possible values from the text.
  8737. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8738. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8739. Removed unused preferences:
  8740. PREF_NO_PREALLOCATION
  8741. PREF_STDOUT_LOG
  8742. PREF_TRACKER_MAX_TRIES
  8743. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8744. PREF_MIN_SEGMENT_SIZE
  8745. * src/option_processing.cc
  8746. * src/prefs.cc
  8747. * src/prefs.h
  8748. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Integrated HelpItem into OptionParser to ease the workload for adding
  8750. new options. Removed default value from usage text.
  8751. * src/HelpItem.cc: Removed.
  8752. * src/HelpItem.h: Removed.
  8753. * src/HelpItemFactory.cc: Removed.
  8754. * src/HelpItemFactory.h: Removed.
  8755. * src/Makefile.am
  8756. * src/Makefile.in
  8757. * src/NameMatchOptionHandler.h
  8758. * src/OptionHandler.cc
  8759. * src/OptionHandler.h
  8760. * src/OptionHandlerFactory.cc
  8761. * src/OptionHandlerImpl.h
  8762. * src/OptionParser.cc
  8763. * src/OptionParser.h
  8764. * src/TagContainer.cc: Removed.
  8765. * src/TagContainer.h: Removed.
  8766. * src/TaggedItem.cc: Removed.
  8767. * src/TaggedItem.h: Removed.
  8768. * src/main.cc
  8769. * src/option_processing.cc
  8770. * src/usage_text.h
  8771. * src/version_usage.cc
  8772. * test/HelpItemTest.cc: Removed.
  8773. * test/Makefile.am
  8774. * test/Makefile.in
  8775. * test/OptionHandlerTest.cc
  8776. * test/OptionParserTest.cc
  8777. * test/TagContainerTest.cc: Removed.
  8778. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Moved `TransferStat stat = ...' to inside the `if' clause.
  8780. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8781. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. Fixed the bug that a block in a piece is requested when same block is
  8783. already requested to the same peer in end game mode.
  8784. * src/BtRequestFactory.h
  8785. * src/DefaultBtInteractive.cc
  8786. * src/DefaultBtRequestFactory.cc
  8787. * src/DefaultBtRequestFactory.h
  8788. * src/DefaultPieceStorage.cc
  8789. * src/DefaultPieceStorage.h
  8790. * src/PieceStorage.h
  8791. * src/UnknownLengthPieceStorage.cc
  8792. * src/UnknownLengthPieceStorage.h
  8793. * test/DefaultBtRequestFactoryTest.cc
  8794. * test/DefaultPieceStorageTest.cc
  8795. * test/MockBtRequestFactory.h
  8796. * test/MockPieceStorage.h
  8797. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8798. Removed _uploadLength and _downloadLength from PeerSessionResource
  8799. and use PeerStat::_sessionUploadLength and
  8800. PeerStat::_sessionDownloadLength.
  8801. * src/PeerSessionResource.cc
  8802. * src/PeerSessionResource.h
  8803. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8804. Fixed the bug that prefixLength of split bucket which doesn't include
  8805. local node ID is incremented.
  8806. * src/DHTBucket.cc
  8807. * src/DHTBucket.h
  8808. * test/DHTBucketTest.cc
  8809. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. Added cookies.sqlite to EXTRA_DIST
  8811. * test/Makefile.am
  8812. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Added Turkish translation. Updated French, German, Russian and
  8814. Simplified Chinese translations. Thanks to all translators.
  8815. * po/LINGUAS
  8816. * po/de.po
  8817. * po/fr.po
  8818. * po/ru.po
  8819. * po/tr.po
  8820. * po/zh_CN.po
  8821. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8822. Added deliminating text to the beginning of the log so that one can find
  8823. where the log starts easily.
  8824. * src/main.cc
  8825. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8827. to fix compile error when async DNS is not enabled by configuration.
  8828. * src/AbstractCommand.cc
  8829. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. If establishing conneciton to a server is failed, then mark error on
  8831. its ServerStat.
  8832. Added the cause of error to log when error event occurred.
  8833. Moved message string to message.h for translation.
  8834. * src/AbstractCommand.cc
  8835. * src/AbstractCommand.h
  8836. * src/FtpNegotiationCommand.cc
  8837. * src/HttpRequestCommand.cc
  8838. * src/PeerAbstractCommand.cc
  8839. * src/message.h
  8840. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Added the function to get error message from socket.
  8842. * src/SocketCore.cc
  8843. * src/SocketCore.h
  8844. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8846. * src/RequestGroupMan.cc
  8847. * src/RequestGroupMan.h
  8848. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8849. If error event is received in epoll, then abort download immediately.
  8850. * src/AbstractCommand.cc
  8851. * src/Command.cc
  8852. * src/Command.h
  8853. * src/DownloadEngine.cc
  8854. * src/PeerAbstractCommand.cc
  8855. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8856. Added usage message for --uri-selector, --server-stat-of,
  8857. --server-stat-in, --server-stat-timeout options.
  8858. * src/HelpItemFactory.cc
  8859. * src/usage_text.h
  8860. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Added upper limit of FTP response buffer. The current implementation
  8862. uses 4096bytes as a limit.
  8863. * src/FtpConnection.cc
  8864. * src/FtpConnection.h
  8865. * test/FtpConnectionTest.cc
  8866. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Use non-blocking socket for TCP communication to avoid possible
  8868. blocking due to buffer full.
  8869. * src/AbstractProxyRequestCommand.cc
  8870. * src/FtpConnection.cc
  8871. * src/FtpConnection.h
  8872. * src/FtpNegotiationCommand.cc
  8873. * src/FtpNegotiationCommand.h
  8874. * src/HttpConnection.cc
  8875. * src/HttpConnection.h
  8876. * src/HttpRequestCommand.cc
  8877. * src/InitiatorMSEHandshakeCommand.cc
  8878. * src/InitiatorMSEHandshakeCommand.h
  8879. * src/MSEHandshake.cc
  8880. * src/MSEHandshake.h
  8881. * src/Makefile.am
  8882. * src/PeerConnection.cc
  8883. * src/PeerConnection.h
  8884. * src/PeerInteractionCommand.cc
  8885. * src/PeerListenCommand.cc
  8886. * src/ReceiverMSEHandshakeCommand.cc
  8887. * src/ReceiverMSEHandshakeCommand.h
  8888. * src/SocketBuffer.cc
  8889. * src/SocketBuffer.h
  8890. * src/SocketCore.cc
  8891. * src/SocketCore.h
  8892. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8893. Call setStatusRealtime() in constructor.
  8894. * src/RealtimeCommand.cc
  8895. * src/RealtimeCommand.h
  8896. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. Call Download::setNoWait(true) to execute newly created command without
  8898. a pause.
  8899. * src/AbstractCommand.cc
  8900. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8902. found' error from HTTP/FTP server NUM times without getting single
  8903. bytes of data, then force the download to fail.
  8904. Basically aria2 tris all URIs available. So if long list of URIs are
  8905. specified in Metalink, then aria2 will take a long time to fail
  8906. eventually if all URIs are outdated. This option eases this situation
  8907. to limit the number of servers to try.
  8908. * src/FtpNegotiationCommand.cc
  8909. * src/HelpItemFactory.cc
  8910. * src/HttpResponseCommand.cc
  8911. * src/OptionHandlerFactory.cc
  8912. * src/PeerStat.h
  8913. * src/RequestGroup.cc
  8914. * src/RequestGroup.h
  8915. * src/SegmentMan.cc
  8916. * src/SegmentMan.h
  8917. * src/option_processing.cc
  8918. * src/prefs.cc
  8919. * src/prefs.h
  8920. * src/usage_text.h
  8921. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8922. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8923. response even if more than one response is in it.
  8924. * src/FtpConnection.cc
  8925. * src/FtpConnection.h
  8926. * test/FtpConnectionTest.cc
  8927. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8928. Merged from stable-0.15
  8929. * m4/libcares.m4
  8930. Use pkg-config
  8931. * m4/sqlite3.m4
  8932. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Removed unnecessary if statement.
  8934. * src/DefaultPieceStorage.cc (initPieceStorage)
  8935. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. Added --connect-timeout option to specify connect timeout in seconds.
  8937. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8938. connecting to BitTorrent peer is not controlled by this option.
  8939. * src/AbstractProxyRequestCommand.cc
  8940. * src/FtpNegotiationCommand.cc
  8941. * src/HelpItemFactory.cc
  8942. * src/HttpRequestCommand.cc
  8943. * src/OptionHandlerFactory.cc
  8944. * src/option_processing.cc
  8945. * src/prefs.cc
  8946. * src/prefs.h
  8947. * src/usage_text.h
  8948. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Added help message for -R option.
  8950. * src/HelpItemFactory.cc
  8951. * src/usage_text.h
  8952. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8953. Added the message that the time is in local time zone.
  8954. * src/RequestGroup.cc
  8955. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8956. Implemented the ability to get timestamp from remote FTP server using
  8957. MDTM command described in RFC3659.
  8958. * src/FtpConnection.cc
  8959. * src/FtpConnection.h
  8960. * src/FtpNegotiationCommand.cc
  8961. * src/FtpNegotiationCommand.h
  8962. * test/FtpConnectionTest.cc
  8963. * test/Makefile.am
  8964. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. Implemented the ability to get timestamp from remote HTTP server and
  8966. apply it to local file. To enable this feature, --remote-time option
  8967. is added. No usage text has been written yet.
  8968. If several servers returns difference timestamp, then aria2 uses latest
  8969. one.
  8970. * src/CopyDiskAdaptor.cc
  8971. * src/CopyDiskAdaptor.h
  8972. * src/DirectDiskAdaptor.cc
  8973. * src/DirectDiskAdaptor.h
  8974. * src/DiskAdaptor.h
  8975. * src/File.cc
  8976. * src/File.h
  8977. * src/HttpHeader.cc
  8978. * src/HttpHeader.h
  8979. * src/HttpResponse.cc
  8980. * src/HttpResponse.h
  8981. * src/HttpResponseCommand.cc
  8982. * src/HttpResponseCommand.h
  8983. * src/MultiDiskAdaptor.cc
  8984. * src/MultiDiskAdaptor.h
  8985. * src/OptionHandlerFactory.cc
  8986. * src/RequestGroup.cc
  8987. * src/RequestGroup.h
  8988. * src/RequestGroupMan.cc
  8989. * src/option_processing.cc
  8990. * src/prefs.cc
  8991. * src/prefs.h
  8992. * test/CopyDiskAdaptorTest.cc
  8993. * test/FileTest.cc
  8994. * test/Makefile.am
  8995. * test/Makefile.in
  8996. * test/MultiDiskAdaptorTest.cc
  8997. * test/TestUtil.cc
  8998. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8999. Fixed the bug that DiskWriterEntry is not created when its
  9000. FileEntry.isRequested() is false and it doesn't share a piece with
  9001. other FileEntries that are requested. This bug causes segmentation fault
  9002. in the end.
  9003. * src/MultiDiskAdaptor.cc
  9004. * src/MultiDiskAdaptor.h
  9005. * src/MultiFileAllocationIterator.cc
  9006. * test/MultiDiskAdaptorTest.cc
  9007. * test/MultiFileAllocationIteratorTest.cc
  9008. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9009. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  9010. called if the number of file entries are greater than max open files.
  9011. * src/AbstractSingleDiskAdaptor.cc
  9012. * src/AbstractSingleDiskAdaptor.h
  9013. * src/DiskAdaptor.h
  9014. * src/MultiDiskAdaptor.cc
  9015. * src/MultiDiskAdaptor.h
  9016. * test/MultiDiskAdaptorTest.cc
  9017. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9018. Added a constuctor that receives struct timeval.
  9019. Added operator<.
  9020. * src/TimeA2.cc
  9021. * src/TimeA2.h
  9022. * test/TimeTest.cc
  9023. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9024. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  9025. * src/CookieParser.cc
  9026. * test/CookieParserTest.cc
  9027. * test/HttpResponseTest.cc
  9028. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9029. Implmented the functions to parse date.
  9030. * src/TimeA2.cc
  9031. * src/TimeA2.h
  9032. * test/TimeTest.cc
  9033. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9034. Added "Firefox3 Cookie" feature to FeatureConfig
  9035. * src/FeatureConfig.cc
  9036. * src/FeatureConfig.h
  9037. * test/FeatureConfigTest.cc
  9038. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9039. Bump up version number to 0.16.0b
  9040. * configure.ac
  9041. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9042. Use pkg-config if is is available.
  9043. * m4/openssl.m4
  9044. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  9046. * src/BtAnnounce.h
  9047. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9048. If an error occurred with a URI, remove identical URI from remaining
  9049. URI list because it is likely that same error occurred in the end and it
  9050. is waste of time.
  9051. * src/AbstractCommand.cc
  9052. * src/RequestGroup.cc
  9053. * src/RequestGroup.h
  9054. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9055. Removed wrong comment.
  9056. * src/DefaultPeerStorage.cc
  9057. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9058. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  9059. Added return value of getpid() to argument of srand() to achieve more
  9060. randomized value.
  9061. * src/SimpleRandomizer.cc
  9062. * src/SimpleRandomizer.h
  9063. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9064. Contact tracker frequently when the number of connections are 0 and
  9065. download is not finished yet.
  9066. * src/ActivePeerConnectionCommand.cc
  9067. * src/BtAnnounce.h
  9068. * src/DefaultBtAnnounce.cc
  9069. * src/DefaultBtAnnounce.h
  9070. * test/MockBtAnnounce.h
  9071. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9072. Moved threshold values to UTPexExtensionMessage.
  9073. * src/DefaultBtInteractive.cc
  9074. * src/Peer.cc
  9075. * src/Peer.h
  9076. * src/UTPexExtensionMessage.cc
  9077. * src/UTPexExtensionMessage.h
  9078. * test/UTPexExtensionMessageTest.cc
  9079. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9080. Added _incoming member to Peer class and made it true if the peer
  9081. initiated connection. Don't add those peer to UTPex message.
  9082. If extended handshake is received, assign _incoming to false.
  9083. * src/DefaultBtInteractive.cc
  9084. * src/HandshakeExtensionMessage.cc
  9085. * src/Peer.cc
  9086. * src/Peer.h
  9087. * src/PeerListenCommand.cc
  9088. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9089. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  9090. Encoding Decoder. Removed size threshold for turning off on the fly
  9091. inflation because resulting file may or may not be inflated depending
  9092. on the file size and I think it is not expected by users.
  9093. This change fixes segmentation fault when Metalink file contains gzipped
  9094. file and its filesize is provided.
  9095. * src/HttpResponseCommand.cc
  9096. * src/HttpResponseCommand.h
  9097. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9098. Made Cookie immutable.
  9099. * src/Cookie.cc
  9100. * src/Cookie.h
  9101. * src/CookieParser.cc
  9102. * src/CookieParser.h
  9103. * src/CookieStorage.cc
  9104. * test/CookieParserTest.cc
  9105. * test/CookieStorageTest.cc
  9106. * test/NsCookieParserTest.cc
  9107. * test/Sqlite3MozCookieParserTest.cc
  9108. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9109. Removed CookieBox, CookieBoxFactory.
  9110. * src/CookieBox.cc
  9111. * src/CookieBox.h
  9112. * src/CookieBoxFactory.cc
  9113. * src/CookieBoxFactory.h
  9114. * src/Makefile.am
  9115. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9116. Use CookieStorage class instead of CookieBox class.
  9117. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  9118. * src/AbstractProxyRequestCommand.cc
  9119. * src/CookieStorage.cc
  9120. * src/DownloadEngine.cc
  9121. * src/DownloadEngine.h
  9122. * src/HttpConnection.cc
  9123. * src/HttpConnection.h
  9124. * src/HttpRequest.cc
  9125. * src/HttpRequest.h
  9126. * src/HttpRequestCommand.cc
  9127. * src/HttpResponse.cc
  9128. * src/HttpResponseCommand.cc
  9129. * src/HttpSkipResponseCommand.cc
  9130. * src/Makefile.am
  9131. * src/MultiUrlRequestInfo.cc
  9132. * src/Request.cc
  9133. * src/Request.h
  9134. * src/main.cc
  9135. * test/AllTest.cc
  9136. * test/CookieStorageTest.cc
  9137. * test/CookieTest.cc
  9138. * test/HttpRequestTest.cc
  9139. * test/HttpResponseTest.cc
  9140. * test/Makefile.am
  9141. * test/NsCookieParserTest.cc
  9142. * test/Sqlite3MozCookieParserTest.cc
  9143. * test/nscookietest.txt
  9144. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9145. Updated
  9146. * test/Cookies.sqlite
  9147. * test/nscookietest.txt
  9148. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9149. Added tests for CookieStorage::load()
  9150. * test/CookieStorageTest.cc
  9151. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Added CookieStorage class which is based on RFC2109 and manages cookies
  9153. more strictly than CookieBox and CookieBoxFactory class.
  9154. * src/CookieStorage.cc
  9155. * src/CookieStorage.h
  9156. * src/Cookie.cc
  9157. * src/Cookie.h
  9158. * test/CookieStorageTest.cc
  9159. * test/CookieTest.cc
  9160. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9161. Fixed the bug that commands are created more than the number of pieces.
  9162. * src/RequestGroup.cc
  9163. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9164. Fixed infinite loop bug in FTP when SIZE command failed.
  9165. * src/FtpNegotiationCommand.cc
  9166. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Removed DirectDiskAdaptorTest.h
  9168. * test/Makefile.am
  9169. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9170. Fixed chunk checksum validation cannot detect trailing garbage data.
  9171. BUG#2074141
  9172. * src/AbstractSingleDiskAdaptor.cc
  9173. * src/AbstractSingleDiskAdaptor.h
  9174. * src/CheckIntegrityEntry.cc
  9175. * src/CheckIntegrityEntry.h
  9176. * src/DiskAdaptor.h
  9177. * src/MultiDiskAdaptor.cc
  9178. * src/MultiDiskAdaptor.h
  9179. * src/RequestGroup.cc
  9180. * test/DirectDiskAdaptorTest.cc
  9181. * test/MultiDiskAdaptorTest.cc
  9182. * test/TestUtil.cc
  9183. * test/TestUtil.h
  9184. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9185. Bump up version number of dht.dat file to 3. In version 3 format, time
  9186. is stored in 64bit, network byte order.
  9187. New build can load old format(version 2) but it saves the file in new
  9188. format. It means once you used new build, your dht.dat becomes
  9189. incompatible with older build.
  9190. * src/DHTRoutingTableDeserializer.cc
  9191. * src/DHTRoutingTableSerializer.cc
  9192. * test/DHTRoutingTableSerializerTest.cc
  9193. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9194. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  9195. * test/Makefile.am
  9196. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. Bump up version number of .aria2 control file to 0001.
  9198. New aria2 can still load version 0000 file but it saves the file in
  9199. version 0001 format. It means that new aria2 can resume download
  9200. started by old aria2 but the opposite is not true.
  9201. * src/DefaultBtProgressInfoFile.cc
  9202. * src/DefaultBtProgressInfoFile.h
  9203. * test/DefaultBtProgressInfoFileTest.cc
  9204. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Added ntoh64 and hton64 as inline functions.
  9206. * src/Util.cc
  9207. * test/UtilTest.cc
  9208. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9209. Added sqlite3 depenency and Firefox3 cookie support.
  9210. * README
  9211. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9212. State that firefox3 cookie is supported explicitly in the usage.
  9213. * src/usage_text.h
  9214. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. Externalized message.
  9216. * src/RequestGroupMan.cc
  9217. * src/message.h
  9218. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. Save temporary file first and rename to the destination on success.
  9220. Added test cases.
  9221. * src/RequestGroupMan.cc
  9222. * test/RequestGroupManTest.cc
  9223. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9224. Fixed the bug that the number of connected peer is exceeding the limit
  9225. (55 by default) in seeding mode.
  9226. Multiplied 0.8 to _maxUploadSpeedLimit.
  9227. * src/ActivePeerConnectionCommand.cc
  9228. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9229. Clear table item.
  9230. * src/Dictionary.cc
  9231. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9232. Fixed error handling of lseek.
  9233. * src/AbstractDiskWriter.cc
  9234. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9235. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  9236. style cookie file.
  9237. * src/usage_text.h
  9238. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9239. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  9240. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  9241. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  9242. * src/Util.cc
  9243. * src/Util.h
  9244. * src/CookieParser.cc
  9245. * test/UtilTest.cc
  9246. * test/CookieParserTest.cc
  9247. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9248. Separate the implementation to load old mozilla format of cookie to
  9249. NsCookieParser class.
  9250. * src/CookieBoxFactory.cc
  9251. * src/CookieBoxFactory.h
  9252. * src/NsCookieParser.cc
  9253. * src/NsCookieParser.h
  9254. * test/NsCookieParserTest.cc
  9255. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9256. Made parse() const
  9257. * src/Sqlite3MozCookieParser.cc
  9258. * src/Sqlite3MozCookieParser.h
  9259. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9260. Added firefox3 cookie support based on the patch submitted by
  9261. tizianomueller.
  9262. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  9263. this functionality.
  9264. * configure.ac
  9265. * m4/sqlite3.m4
  9266. * src/CookieBoxFactory.cc
  9267. * src/CookieBoxFactory.h
  9268. * src/Makefile.am
  9269. * src/Makefile.in
  9270. * src/Sqlite3MozCookieParser.cc
  9271. * src/Sqlite3MozCookieParser.h
  9272. * src/main.cc
  9273. * test/CookieBoxFactoryTest.cc
  9274. * test/Makefile.am
  9275. * test/Makefile.in
  9276. * test/Sqlite3MozCookieParserTest.cc
  9277. * test/badcookies.sqlite
  9278. * test/cookies.sqlite
  9279. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9280. Added Danish and Greek translations.
  9281. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  9282. Great thanks to all translators.
  9283. * po/LINGUAS
  9284. * po/el.po
  9285. * po/da.po
  9286. * po/es.po
  9287. * po/ca.po
  9288. * po/nn.po
  9289. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. Fixed man page: --follow-bittorrent should be --follow-torrent
  9291. * doc/aria2c.1.txt
  9292. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Fixed: numCommand is less than the value specified in -C option.
  9294. * src/RequestGroup.cc
  9295. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Fixed occasional assertion failure in PieceSegment.
  9297. Calling PieceStorage::getMissingPiece(size_t) was missing after
  9298. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  9299. creation of duplicate segments and one of the segment was finished then
  9300. assertion failure was caused.
  9301. * src/SegmentMan.cc
  9302. * test/SegmentManTest.cc
  9303. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Added options to load/save the server's performance/status to a file
  9305. and the timeout to drop their data.
  9306. --server-stat-of=FILE specifies the file to which performance data
  9307. is saved.
  9308. --server-stat-if=FILE specifies the file to read previously saved
  9309. by --server-stat-of option. Might be used with --uri-selector=feedback.
  9310. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  9311. TIMEOUT is specified in seconds and the default value is 24hours.
  9312. * src/MultiUrlRequestInfo.cc
  9313. * src/OptionHandlerFactory.cc
  9314. * src/RequestGroupMan.cc
  9315. * src/RequestGroupMan.h
  9316. * src/ServerStatMan.cc
  9317. * src/ServerStatMan.h
  9318. * src/option_processing.cc
  9319. * src/prefs.cc
  9320. * src/prefs.h
  9321. * test/ServerStatManTest.cc
  9322. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9323. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  9324. * src/ServerStatMan.cc
  9325. * src/ServerStatMan.h
  9326. * test/ServerStatManTest.cc
  9327. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Implemented ServerStatMan::load(...) function and its test case.
  9329. * src/ServerStat.cc
  9330. * src/ServerStat.h
  9331. * src/ServerStatMan.cc
  9332. * test/ServerStatManTest.cc
  9333. * test/ServerStatTest.cc
  9334. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Use time_t instead of int32_t. Use int64_t where milli second is
  9336. expected.
  9337. * src/TimeA2.cc
  9338. * src/TimeA2.h
  9339. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9340. Implemented ServerStatMan::save(...) function and its test case.
  9341. * src/ServerStat.cc
  9342. * src/ServerStat.h
  9343. * src/ServerStatMan.cc
  9344. * src/ServerStatMan.h
  9345. * test/ServerStatManTest.cc
  9346. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. Now aria2 uses name attribute in Metalink as local filename in
  9348. BitTorrent downloads. BUG#2033999
  9349. * src/BtContext.h
  9350. * src/BtDependency.cc
  9351. * src/DefaultBtContext.cc
  9352. * src/DefaultBtContext.h
  9353. * src/SingleFileDownloadContext.cc
  9354. * src/SingleFileDownloadContext.h
  9355. * test/BtDependencyTest.cc
  9356. * test/DefaultBtContextTest.cc
  9357. * test/MockBtContext.h
  9358. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9359. Added AC_C_BIGENDIAN
  9360. * src/configure.ac
  9361. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9362. Limited numCommand less than or equal to the number of piece.
  9363. * src/RequestGroup.cc
  9364. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  9366. directive.
  9367. * test/DefaultPieceStorageTest.cc
  9368. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. Fixed memory leak in test code
  9370. * test/AnnounceListTest.cc
  9371. * test/DefaultPeerListProcessorTest.cc
  9372. * test/DefaultPeerStorageTest.cc
  9373. * test/MetaFileUtilTest.cc
  9374. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9375. Fixed wrong argument passing to BitfieldMan::isBitSet()
  9376. * src/DefaultPieceStorage.cc
  9377. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9378. Initialized _directIOAllowed
  9379. * src/MultiDiskAdaptor.cc
  9380. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9381. Fixed memory leak
  9382. * src/GZipDecoder.cc
  9383. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9384. Fixed memory leak
  9385. * src/MetalinkParserStateMachine.cc
  9386. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Fixed memory leak
  9388. * src/Dictionary.cc
  9389. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Fixed memory leak
  9391. * src/IteratableChunkChecksumValidator.h
  9392. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. Fixed unmatched malloc/free.
  9394. * src/IteratableChunkChecksumValidator.cc
  9395. * src/IteratableChecksumValidator.cc
  9396. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9397. Removed max chunk size check. This change fixes BUG#2040169
  9398. * src/ChunkedDecoder.cc
  9399. * src/ChunkedDecoder.h
  9400. * test/ChunkedDecoderTest.cc
  9401. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. Implemented download speed based URI selection algorithm.
  9403. Introduced new option --uri-selector.
  9404. If --uri-selector=feedback is given, aria2 uses download speed observed
  9405. in the previous downloads and chooses fastest server in the URI list.
  9406. Currently at most 10 URIs are considered to introduce randomeness for
  9407. finding better servers. The speed is average download speed in the
  9408. downloads.
  9409. On the other hand, if --uri-selector=inorder is given, which is default,
  9410. URI is tried in order in URI list.
  9411. The usage text for the new option has not been written yet.
  9412. * src/AbstractCommand.cc
  9413. * src/DownloadCommand.cc
  9414. * src/DownloadEngine.cc
  9415. * src/DownloadEngineFactory.cc
  9416. * src/InOrderURISelector.cc
  9417. * src/InOrderURISelector.h
  9418. * src/OptionHandlerFactory.cc
  9419. * src/PeerStat.h
  9420. * src/RequestGroup.cc
  9421. * src/RequestGroup.h
  9422. * src/RequestGroupMan.cc
  9423. * src/RequestGroupMan.h
  9424. * src/SegmentMan.cc
  9425. * src/SegmentMan.h
  9426. * src/ServerStat.cc
  9427. * src/ServerStat.h
  9428. * src/ServerStatMan.cc
  9429. * src/ServerStatMan.h
  9430. * src/ServerStatURISelector.cc
  9431. * src/ServerStatURISelector.h
  9432. * src/URISelector.h
  9433. * src/option_processing.cc
  9434. * src/prefs.cc
  9435. * src/prefs.h
  9436. * test/InOrderURISelectorTest.cc
  9437. * test/RequestGroupManTest.cc
  9438. * test/ServerStatManTest.cc
  9439. * test/ServerStatURISelectorTest.cc
  9440. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. * Release 0.15.1+2
  9442. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9443. Bump up version number to 0.15.1+2
  9444. * configure.ac
  9445. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  9447. * m4/aria2_arg.m4
  9448. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9449. * Release 0.15.1+1
  9450. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9451. Bump up version number to 0.15.1+1
  9452. * configure.ac
  9453. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Fixed the bug that causes segmentaion fault when resuming download
  9455. using metalink without size tag. Reproducible only using HTTP URI.
  9456. * src/HttpResponseCommand.cc
  9457. * src/FtpNegotiationCommand.cc
  9458. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9459. * Release 0.15.1
  9460. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Updated Bulgarian and French translations, thanks to all translators.
  9462. * po/bg.po
  9463. * po/fr.po
  9464. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9465. Bump up version number to 0.15.1
  9466. * configure.ac
  9467. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9468. Avoid repeated call of gettimeofday() when calculating speed.
  9469. * src/SpeedCalc.cc
  9470. * src/SpeedCalc.h
  9471. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9472. Removed writable check when socket's send buffer is full in BitTorrent
  9473. downloads to lower CPU usage.
  9474. * src/PeerInteractionCommand.cc
  9475. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. Fixed broken gzip inflation.
  9477. Turn off segmented downloading if gzip content is smaller than or equal
  9478. to 1MiB and inflate the data on the fly, because HTTP response header
  9479. doesn't contain the length of inflated file we can't determin where
  9480. the chunk of data should be written.
  9481. On the other hand, if gzip content is larger than 1MB, then turn off
  9482. on the fly inflation, because some servers returns "content-type: gzip"
  9483. for *.tgz, *.gz files.
  9484. * src/DownloadCommand.cc
  9485. * src/HttpResponseCommand.cc
  9486. * src/HttpResponseCommand.h
  9487. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9488. Applied tizianomueller's patch to fix compile error.
  9489. * test/BitfieldManTest.cc
  9490. * test/BtRequestMessageTest.cc
  9491. * test/DefaultBtContextTest.cc
  9492. * test/DefaultDiskWriterTest.cc
  9493. * test/DefaultPieceStorageTest.cc
  9494. * test/HttpHeaderProcessorTest.cc
  9495. * test/HttpResponseTest.cc
  9496. * test/Metalink2RequestGroupTest.cc
  9497. * test/MetalinkParserControllerTest.cc
  9498. * test/MetalinkProcessorTest.cc
  9499. * test/PeerSessionResourceTest.cc
  9500. * test/UtilTest.cc
  9501. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9502. * Release 0.15.0
  9503. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. Reordered src files in POTFILES.in so that usage text appears first.
  9505. * po/POTFILES.in
  9506. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9507. Bump up version number to 0.15.0
  9508. * configure.ac
  9509. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9510. Added Bulgarian translation.
  9511. Updated Catalan, Spanish, French and Japanese translations.
  9512. Thanks to all translators.
  9513. * po/LINGUAS
  9514. * po/bg.po
  9515. * po/ca.po
  9516. * po/es.po
  9517. * po/fr.po
  9518. * po/ja.po
  9519. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Updated feature list. Added libz for dependency section.
  9521. Added a description about unit testing using CppUnit.
  9522. * README
  9523. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. Added a test for libz. Quoted where it is necessary.
  9525. * build_test.sh
  9526. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9527. Added GZip to `Enabled Features' list.
  9528. * src/FeatureConfig.cc
  9529. * src/FeatureConfig.h
  9530. * test/FeatureConfigTest.cc
  9531. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  9533. the transfer has not yet started.
  9534. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  9535. * src/SegmentMan.cc
  9536. * src/SegmentMan.h
  9537. * test/SegmentManTest.cc
  9538. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9539. Cache last calculated average download/upload speed.
  9540. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  9541. cached value.
  9542. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  9543. * src/PeerStat.h
  9544. * src/SpeedCalc.cc
  9545. * src/SpeedCalc.h
  9546. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9547. Call parseUrl directly.
  9548. * src/Request.cc (resetUrl)
  9549. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. Supported absolute/relative path in Location header field.
  9551. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9552. * src/HttpHeader.cc
  9553. * src/HttpHeader.h
  9554. * src/HttpResponse.cc
  9555. * src/HttpSkipResponseCommand.cc
  9556. * src/Request.cc
  9557. * test/HttpHeaderTest.cc
  9558. * test/HttpResponseTest.cc
  9559. * test/RequestTest.cc
  9560. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9561. Changed help text for --load-cookie option.
  9562. * doc/aria2c.1.txt
  9563. * src/usage_text.h
  9564. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9565. Regenerated test/Makefile.in to remove stale ChangeLog.
  9566. * test/Makefile.in
  9567. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Updated po files.
  9569. * po/aria2c.pot
  9570. * po/*.po
  9571. * po/*.gmo
  9572. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9573. Bump up version number to 0.15.0b
  9574. * configure.ac
  9575. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Externalize messages.
  9577. * src/RequestGroupMan.cc
  9578. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9579. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9580. Use File::exists() instead of File::isFile() to allow non-regular file
  9581. such as block special files.
  9582. * src/AbstractDiskWriter.cc
  9583. * src/MultiDiskWriter.cc
  9584. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9585. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9586. * src/gai_strerror.h
  9587. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Fixed compile error. Thanks gknauf for the patch.
  9589. * src/asctime_r.c
  9590. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9591. Included asctime_r.h from a2time.h.
  9592. * src/a2time.h
  9593. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9594. Added a message "aria2 doesn't verify signature" to log message when
  9595. signature file is saved.
  9596. * src/RequestGroupMan.cc
  9597. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9598. Added the ability to save signature when download is completed if
  9599. signature is available. The filename of signature file is the path to
  9600. download file followed by ".sig". If it already exists, then signature
  9601. will not be saved.
  9602. * src/RequestGroupMan.cc
  9603. * src/Signature.cc
  9604. * test/SignatureTest.cc
  9605. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9606. Updated the descriptions for --bt-seed-unverified.
  9607. * doc/aria2c.1
  9608. * doc/aria2c.1.html
  9609. * doc/aria2c.1.txt
  9610. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9611. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  9612. that this is not going to verify files using piece hashes.
  9613. * src/HelpItemFactory.cc
  9614. * src/OptionHandlerFactory.cc
  9615. * src/RequestGroup.cc
  9616. * src/option_processing.cc
  9617. * src/prefs.cc
  9618. * src/prefs.h
  9619. * src/usage_text.h
  9620. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9621. Added the ability to retrieve signature from Metalink file.
  9622. A retrieved signature is stored in Signature class and it is held by
  9623. DownloadContext class. Note that aria2 doesn't verify signature.
  9624. * src/DownloadContext.cc
  9625. * src/DownloadContext.h
  9626. * src/Makefile.am
  9627. * src/Makefile.in
  9628. * src/Metalink2RequestGroup.cc
  9629. * src/MetalinkEntry.cc
  9630. * src/MetalinkEntry.h
  9631. * src/MetalinkParserController.cc
  9632. * src/MetalinkParserController.h
  9633. * src/MetalinkParserStateMachine.cc
  9634. * src/MetalinkParserStateMachine.h
  9635. * src/Signature.cc
  9636. * src/Signature.h
  9637. * src/SignatureMetalinkParserState.cc
  9638. * src/SignatureMetalinkParserState.h
  9639. * src/VerificationMetalinkParserState.cc
  9640. * src/VerificationMetalinkParserState.h
  9641. * test/Metalink2RequestGroupTest.cc
  9642. * test/MetalinkParserControllerTest.cc
  9643. * test/MetalinkProcessorTest.cc
  9644. * test/test.xml
  9645. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9646. Close DiskAdaptor after renaming file.
  9647. * src/RequestGroup.cc
  9648. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9649. Corrected indentation
  9650. * src/DefaultBtProgressInfoFile.cc
  9651. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9652. Moved the calls of std::ios::exceptions() inside of try-catch block
  9653. because if an error occurred in constructor of std::fstream, then
  9654. exception is thrown immediately when std::ios::exceptions() is called
  9655. which results unhandled exception and aria2c aborts.
  9656. * src/DefaultBtProgressInfoFile.cc
  9657. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9658. Added the test for the previous change in DefaultBtContext.cc
  9659. * test/DefaultBtContextTest.cc
  9660. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9661. Fixed the bug that causes infinite loop when the number of pieces are
  9662. fewer than allowed fast set size which is 10 by default.
  9663. * src/DefaultBtContext.cc
  9664. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9665. Updated the descriptions for -j, -s. Added --bt-seed.
  9666. * doc/aria2c.1
  9667. * doc/aria2c.1.html
  9668. * doc/aria2c.1.txt
  9669. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9671. aria2 seeds previously downloaded files without validating piece hashs.
  9672. * src/HelpItemFactory.cc
  9673. * src/OptionHandlerFactory.cc
  9674. * src/RequestGroup.cc
  9675. * src/option_processing.cc
  9676. * src/prefs.cc
  9677. * src/prefs.h
  9678. * src/usage_text.h
  9679. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9680. Updated DESCRIPTION of man page.
  9681. * doc/aria2c.1
  9682. * doc/aria2c.1.html
  9683. * doc/aria2c.1.txt
  9684. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9685. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9686. Don't define `struct addrinfo' when __sun is defined.
  9687. * src/getaddrinfo.h
  9688. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9690. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9691. second argument is of type `struct _stati64'. Otherwise it is defined as
  9692. `struct stat'.
  9693. * src/AbstractDiskWriter.cc
  9694. * src/File.cc
  9695. * src/File.h
  9696. * src/a2io.h
  9697. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9698. Fixed the compile error in hurd-i386
  9699. See the original bug report:
  9700. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9701. * src/a2io.h
  9702. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9703. Code cleanup.
  9704. * src/PeerAbstractCommand.cc
  9705. * src/PeerAbstractCommand.h
  9706. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9707. Removed TransferEncoding.
  9708. * src/DownloadCommand.cc
  9709. * src/DownloadCommand.h
  9710. * src/HttpResponseCommand.cc
  9711. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9712. Updated po files.
  9713. * po/aria2c.pot
  9714. * po/*.po
  9715. * po/*.gmo
  9716. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9717. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9718. * src/A2STR.cc
  9719. * src/A2STR.h
  9720. * src/ChunkedDecoder.cc
  9721. * src/ChunkedDecoder.h
  9722. * src/ChunkedEncoding.cc: Removed
  9723. * src/ChunkedEncoding.h: Removed
  9724. * src/DownloadCommand.cc
  9725. * src/DownloadCommand.h
  9726. * src/HttpDownloadCommand.cc
  9727. * src/HttpResponse.cc
  9728. * src/HttpResponse.h
  9729. * src/HttpResponseCommand.cc
  9730. * src/HttpSkipResponseCommand.cc
  9731. * src/HttpSkipResponseCommand.h
  9732. * src/Makefile.am
  9733. * src/TransferEncoding.h: Removed
  9734. * test/ChunkedDecoderTest.cc
  9735. * test/ChunkedEncodingTest.cc: Removed
  9736. * test/HttpResponseTest.cc
  9737. * test/Makefile.am
  9738. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9739. Use append instead of insert.
  9740. * src/GZipDecoder.cc
  9741. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9742. Updated doc
  9743. * src/Decoder.h
  9744. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9745. Updated usage text for -s option.
  9746. * src/usage_text.h
  9747. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9748. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9749. * src/Request.cc
  9750. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9751. Cleaned up configure.ac.
  9752. * configure.ac
  9753. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9754. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9755. AC_ARG_ENABLE.
  9756. * configure.ac
  9757. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9758. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9759. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9760. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9761. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9762. fly and writes decoded data to a local disk.
  9763. * README
  9764. * README.html
  9765. * configure.ac
  9766. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9767. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9768. * m4/libz.m4
  9769. * src/Decoder.h
  9770. * src/DownloadCommand.cc
  9771. * src/DownloadCommand.h
  9772. * src/Exception.h
  9773. * src/GZipDecoder.cc
  9774. * src/GZipDecoder.h
  9775. * src/HttpHeader.cc
  9776. * src/HttpHeader.h
  9777. * src/HttpRequest.cc
  9778. * src/HttpRequest.h
  9779. * src/HttpResponse.cc
  9780. * src/HttpResponse.h
  9781. * src/HttpResponseCommand.cc
  9782. * src/Makefile.am
  9783. * test/GZipDecoderTest.cc
  9784. * test/HttpRequestTest.cc
  9785. * test/HttpResponseTest.cc
  9786. * test/Makefile.am
  9787. * test/Makefile.in
  9788. * test/gzip_decode_test.gz
  9789. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Clarified usage of -j option.
  9791. * src/usage_text.h
  9792. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9793. Disabled getting size from the response of RETR.
  9794. If SIZE command failed, then disable resuming and segmented downloading.
  9795. * src/FtpConnection.cc
  9796. * src/FtpConnection.h
  9797. * src/FtpNegotiationCommand.cc
  9798. * src/FtpNegotiationCommand.h
  9799. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9800. Use digits to find first byte of file size, which makes the intention
  9801. of the code clearer.
  9802. * src/FtpConnection.cc
  9803. Don't call validateTotalLength() when size is 0.
  9804. * src/FtpNegotiationCommand.cc
  9805. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9806. Updated po files.
  9807. * po/aria2c.pot
  9808. * po/*.gmo
  9809. * po/*.po
  9810. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9811. Clarified usage text for --split option.
  9812. * src/usage_text.h
  9813. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9814. Bump up version number to 0.15.0dev. "dev" means "development"
  9815. version, which means I started the development of the next release!
  9816. * src/configure.ac
  9817. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9818. If FTP server returns negative response with REST raw command and
  9819. requested range is not 0, throw exception. If requested range is 0,
  9820. continue download a file from 0 byte.
  9821. * src/FtpNegotiationCommand.cc
  9822. * src/FtpNegotiationCommand.h
  9823. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9824. Supported FTP server which don't recognize SIZE raw command.
  9825. If SIZE raw command is failed, aria2 will try to get file size
  9826. from the response of RETR raw command. If both attempts are failed,
  9827. then resuming and segmented downloading are disabled.
  9828. * src/FtpConnection.cc
  9829. * src/FtpConnection.h
  9830. * src/FtpNegotiationCommand.cc
  9831. * src/FtpNegotiationCommand.h
  9832. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9833. * Release 0.14.0+1
  9834. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. Bump up version number to 0.14.0+1
  9836. * src/configure.ac
  9837. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9838. Fixed the code that refers static member variable from non-static
  9839. context.
  9840. * src/DefaultPeerStorage.cc
  9841. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9842. * Release 0.14.0
  9843. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9844. Added build test script
  9845. * build_test.sh
  9846. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9847. Updated ja.po
  9848. * src/ja.po
  9849. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Bump up version number to 0.14.0
  9851. * src/configure.ac
  9852. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9853. Updated ja.po and fr.po. Great thanks for french translators and
  9854. Sebastien WILLEMIJNS.
  9855. * po/fr.po
  9856. * po/ja.po
  9857. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9858. Added configure option to enable/disable epoll support.
  9859. * configure.ac
  9860. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. Updated man page.
  9862. * doc/aria2c.1.txt
  9863. * doc/aria2c.1
  9864. * doc/aria2c.1.html
  9865. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. Added missing default value '5' to the usage of --split option.
  9867. * src/HelpItemFactory.cc
  9868. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9869. Filled up pieces based on the number of missing blocks, rather than
  9870. simplay the number of piece * block length.
  9871. * src/BtRequestFactory.h
  9872. * src/DefaultBtInteractive.cc
  9873. * src/DefaultBtInteractive.h
  9874. * src/DefaultBtRequestFactory.cc
  9875. * src/DefaultBtRequestFactory.h
  9876. * src/Piece.cc
  9877. * src/Piece.h
  9878. * test/BitfieldManTest.cc
  9879. * test/DefaultBtRequestFactoryTest.cc
  9880. * test/MockBtRequestFactory.h
  9881. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9882. Made _epEvents a member variable.
  9883. * src/DownloadEngine.cc
  9884. * src/DownloadEngine.h
  9885. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9886. Cancel download if http redirect is bounded more than 20 times.
  9887. * src/AbstractCommand.cc
  9888. * src/HttpSkipResponseCommand.cc
  9889. * src/Request.cc
  9890. * src/Request.h
  9891. * test/RequestTest.cc
  9892. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9893. Fixed unhandled exception(removed keyword `new').
  9894. * src/SocketCore.cc (initEPOLL)
  9895. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Removed visit(const MetaEntry*)
  9897. * src/MetaEntryVisitor.h:
  9898. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9899. and made them virtual.
  9900. * src/BencodeVisitor.h
  9901. * src/BencodeVisitor.cc
  9902. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9903. Updated po files.
  9904. * po/aria2c.pot
  9905. * po/*.po
  9906. * po/*.gmo
  9907. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9908. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9909. the number of socket to watch out.
  9910. * src/PeerInteractionCommand.cc
  9911. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9912. When there is not enough space in disk when writing a chunk of data,
  9913. aria2 now prints the message to the console to warn user and aborts
  9914. its download. Not all downloads are canceled because some downloads
  9915. may use another disk or partition. BUG#1640332
  9916. * src/AbstractDiskWriter.cc
  9917. * src/PeerAbstractCommand.cc
  9918. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9919. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9920. setHaltRequested(true) to cancel download.
  9921. * src/PeerInteractionCommand.h
  9922. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9923. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9924. socket from int to sock_t as sockets are unsigned in Windows.
  9925. For AsyncNameResolver, DownloadEngine, I did additional modification
  9926. for the portion of the code changed according to epoll support.
  9927. I defined sock_t in a2netcompat.h to use sock_t without including
  9928. SocketCore.h.
  9929. * src/AsyncNameResolver.cc
  9930. * src/AsyncNameResolver.h
  9931. * src/DownloadEngine.cc
  9932. * src/DownloadEngine.h
  9933. * src/SocketCore.cc
  9934. * src/SocketCore.h
  9935. * src/a2netcompat.h
  9936. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9937. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9938. changes in the patch were applied.
  9939. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9940. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9941. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9942. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9943. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9944. a2io.h and common.h were modified.
  9945. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9946. MinGW.
  9947. * src/common.h: Changed off_t to 64 bit in MinGW.
  9948. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9949. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9950. only a2netcompat.h is modified.
  9951. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9952. directives.
  9953. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9955. only gai_strerror.h is modified.
  9956. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9957. winsock errors in MinGW.
  9958. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9959. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9960. follow sources are applied.
  9961. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9962. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9963. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9964. I included locale.h from Platform.cc.
  9965. * src/main.cc: Moved common setup/teardown code to Platform class.
  9966. * test/AllTest.cc: Use Platform class.
  9967. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9968. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9969. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9970. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9971. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9972. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9973. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9974. aria2-0.13.2+1-mingw-2.patch.
  9975. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9976. systems which don't have termious.h. I moved the directive inside of
  9977. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9978. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9979. anyway.
  9980. * src/asctime_r.h
  9981. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9982. I added 2nd argument to the prototype declaration.
  9983. * src/StringFormat.cc: Get rid of vasprintf.
  9984. * src/getaddrinfo.h: Fixed constants.
  9985. * configure.ac: Added the check for asctime_r function.
  9986. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9987. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Added writable test for Socket when the sending message is in progress.
  9989. Usually the sending message is piece message. Without wriable check,
  9990. upload latency is dropped to more than 1sec.
  9991. * src/PeerInteractionCommand.cc
  9992. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9993. Create only requested files and files which shares a piece with
  9994. requested file in multi-torrent downloads. Directory structures are
  9995. also created in the same rule.
  9996. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9997. DiskWriterEntry as in the previous implementation.
  9998. * src/MultiDiskWriter.cc
  9999. * src/MultiFileAllocationIterator.cc
  10000. * src/MultiFileAllocationIterator.h
  10001. * test/MultiFileAllocationIteratorTest.cc
  10002. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10003. Commented out -lprofiler
  10004. * src/Makefile.am
  10005. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. Bump up version number to 0.14.0b.
  10007. * src/configure.ac
  10008. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10009. Actively establish connection to peers in seeding, when peer cache
  10010. is not full and max upload speed limit is not reached.
  10011. * src/ActivePeerConnectionCommand.cc
  10012. * src/ActivePeerConnectionCommand.h
  10013. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  10015. to make room more fleshy, recently found peers.
  10016. Peer::_badConditionStartTime is not used anymore. Consider to remove
  10017. it.
  10018. * src/DefaultPeerStorage.cc
  10019. * test/DefaultPeerStorageTest.cc
  10020. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10021. Returns cached data only when the previous receiveHandshake() is called
  10022. with peek = true.
  10023. * src/PeerConnection.cc (receiveHandshake)
  10024. * src/PeerConnection.h (receiveHandshake)
  10025. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10026. Changed default value of -s option from 1 to 5.
  10027. Also max value of -s option is changed from 5 to 16.
  10028. * src/HelpItemFactory.cc
  10029. * src/OptionHandlerFactory.cc
  10030. * src/option_processing.cc
  10031. * src/usage_text.h
  10032. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10033. Changed -s options behavior. Now it means the number of connections
  10034. made simultaneously in each http/ftp download.
  10035. If 1 URL is specified, the behavior is the same with old implementation.
  10036. If -s N is given and more than N URLs are specified, first N URLs are
  10037. used and remaining URLs are used for backup. If less than N URLs are
  10038. specified, some of URLs are used more than once so that totally N
  10039. connections are made simultaneously.
  10040. * src/main.cc
  10041. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10042. Included missing iosfwd or ostream header.
  10043. * src/RequestGroupMan.cc
  10044. * src/TaggedItem.cc
  10045. * src/TaggedItem.h
  10046. * src/Util.cc
  10047. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10048. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  10049. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  10050. * src/HttpConnection.cc: Included missing sstream.
  10051. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. Added --bt-max-open-files option.
  10053. * src/DefaultPieceStorage.cc
  10054. * src/HelpItemFactory.cc
  10055. * src/MultiDiskAdaptor.cc
  10056. * src/MultiDiskAdaptor.h
  10057. * src/OptionHandlerFactory.cc
  10058. * src/option_processing.cc
  10059. * src/prefs.cc
  10060. * src/prefs.h
  10061. * src/usage_text.h
  10062. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. Fixed the bug that aria2 aborts when a path to a directory is given
  10064. in command-line.
  10065. * src/ProtocolDetector.cc
  10066. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10067. Limited the number files opened in each BitTorrent download. The default
  10068. value is 100. The option to change this value will be added.
  10069. * src/MultiDiskAdaptor.cc
  10070. * src/MultiDiskAdaptor.h
  10071. * src/MultiFileAllocationIterator.cc
  10072. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. Fixed the bug that HTTP downloads don't start with old libraries.
  10074. * src/HttpHeaderProcessor.cc
  10075. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10076. Use empty() instead of size() > 0.
  10077. * src/HttpConnection.cc
  10078. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Drop connection if the incoming peer ID is the same with localhost's
  10080. one. The previous implementation drops connection when incoming peer's
  10081. IP address is the same with localhost's one.
  10082. * src/PeerListenCommand.cc
  10083. * src/DefaultBtInteractive.cc
  10084. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. Returns cached data without checking whether socket is readable
  10086. if the cache is available.
  10087. * src/PeerConnection.cc (receiveHandshake)
  10088. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10089. Included stdint.h
  10090. * src/common.h
  10091. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10092. Removed duplicate HAVE_GETTIMEOFDAY
  10093. * src/Makefile.am
  10094. * src/Makefile.in
  10095. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10096. Use interval as a minInterval when minInterval is not supplied.
  10097. * src/DefaultBtAnnounce.cc
  10098. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10099. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  10100. attempt is failed, then 2nd attempt get kicked out more quickly.
  10101. And it is now static const member of DefaultBtAnnounce.
  10102. * src/DefaultBtAnnounce.h
  10103. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10104. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  10105. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  10106. * src/ActivePeerConnectionCommand.cc
  10107. * src/BtConstants.h
  10108. * src/BtRuntime.h
  10109. * src/DHTGetPeersCommand.cc
  10110. * src/DefaultBtAnnounce.cc
  10111. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  10112. BtRuntime::MAX_PEERS.
  10113. * src/DefaultPeerStorage.h
  10114. * src/InitiatorMSEHandshakeCommand.cc
  10115. * src/PeerInitiateConnectionCommand.cc
  10116. * src/PeerInteractionCommand.cc
  10117. * src/PeerReceiveHandshakeCommand.cc
  10118. * src/TrackerWatcherCommand.cc
  10119. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. Always Connect to _numNewConnection
  10121. * src/ActivePeerConnectionCommand.cc
  10122. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10123. Made `begin' unsigned int.
  10124. * src/GrowSegment.h
  10125. * src/Piece.cc
  10126. * src/Piece.h
  10127. * src/PiecedSegment.cc
  10128. * src/PiecedSegment.h
  10129. * src/Segment.h
  10130. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10131. Calculate piece hash when data is arrived if the data is arrived in
  10132. order. This removes additional read operation for hash calculation.
  10133. If the data is arrived in out of order, the hash is calucated when the
  10134. piece is completed. This is the same behavior as the old implementation.
  10135. * src/BtPieceMessage.cc
  10136. * src/DefaultBtProgressInfoFile.cc
  10137. * src/DefaultPieceStorage.cc
  10138. * src/DownloadCommand.cc
  10139. * src/DownloadCommand.h
  10140. * src/DownloadEngine.cc
  10141. * src/GrowSegment.cc
  10142. * src/GrowSegment.h
  10143. * src/Piece.cc
  10144. * src/Piece.h
  10145. * src/PiecedSegment.cc
  10146. * src/PiecedSegment.h
  10147. * src/Segment.h
  10148. * test/PieceTest.cc
  10149. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10150. Try to keep the ordering of outgoing piece message.
  10151. * src/DefaultBtMessageDispatcher.cc
  10152. (DefaultBtMessageDispatcher::sendMessages)
  10153. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10154. Fixed busy loop when error/hup epoll events occur.
  10155. * src/AbstractCommand.cc
  10156. * src/PeerAbstractCommand.cc
  10157. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10158. Added --bt-request-peer-speed-limit option, which was a constant
  10159. SLOW_SPEED_THRESHOLD.
  10160. * src/ActivePeerConnectionCommand.cc
  10161. * src/ActivePeerConnectionCommand.h
  10162. * src/BtConstants.h
  10163. * src/HelpItemFactory.cc
  10164. * src/OptionHandlerFactory.cc
  10165. * src/PeerReceiveHandshakeCommand.cc
  10166. * src/option_processing.cc
  10167. * src/prefs.cc
  10168. * src/prefs.h
  10169. * src/usage_text.h
  10170. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10171. Removed repeated call of getTopDirPath(). Instead, call it once and
  10172. cache the result.
  10173. * src/MultiDiskAdaptor.cc
  10174. * src/MultiDiskAdaptor.h
  10175. (mkdir, openFile, initAndOpenFile, openExistingFile)
  10176. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10177. Fixed compile error on debian etch.
  10178. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  10179. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  10180. it is undefined.
  10181. * src/Util.cc (ULLONG_MAX)
  10182. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10183. Added epoll support. Use epoll if it is available. If not, use select.
  10184. When async dns is enabled in compile time, epoll support is enabled
  10185. only when aria2 is built with c-ares. This condition statement is
  10186. defined in a2io.h.
  10187. Currently aria2 supports both c-ares and ares, but ares is maintained
  10188. for quite a while and debian already has c-ares package, ares support
  10189. will be dropped in the future version.
  10190. * configure.ac
  10191. * src/AbstractCommand.cc
  10192. * src/AsyncNameResolver.cc
  10193. * src/AsyncNameResolver.h
  10194. * src/Command.cc
  10195. * src/Command.h
  10196. * src/DownloadEngine.cc
  10197. * src/DownloadEngine.h
  10198. * src/PeerAbstractCommand.cc
  10199. * src/SocketCore.cc
  10200. * src/SocketCore.h
  10201. * src/a2io.h
  10202. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10203. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  10204. directive.
  10205. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10206. Do not do write operation to /dev/null file.
  10207. * src/LogFactory.cc
  10208. * src/SimpleLogger.cc
  10209. Replaced vasprintf with vsnprintf
  10210. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  10211. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10212. * src/BtRequestMessage.cc
  10213. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  10214. for segmentation fault caused by previous commit.
  10215. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. Reduced the usage of gettimeofday().
  10217. * src/DefaultBtMessageDispatcher.cc
  10218. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  10219. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10220. * src/RequestSlot.cc
  10221. * src/RequestSlot.h
  10222. (RequestSlot::isTimeout)
  10223. Made RequestSlot have a reference to Piece object to avoid find
  10224. Piece repeatedly.
  10225. * src/DefaultBtMessageDispatcher.cc
  10226. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10227. * src/RequestSlot.cc
  10228. * src/RequestSlot.h
  10229. (RequestSlot::getPiece)
  10230. * test/DefaultBtMessageDispatcherTest.cc
  10231. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10232. * src/TimeA2.cc
  10233. * src/TimeA2.h
  10234. (Time::difference): New function.
  10235. (Time::elapsed): Done optimization.
  10236. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10237. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  10238. directive.
  10239. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10240. * src/option_processing.cc: Added missing `defined' keyword to #if
  10241. directive.
  10242. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10243. Bump up version number to 0.13.2+1
  10244. * src/configure.ac
  10245. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. Refactored broken outstanding piece handling.
  10247. * src/DefaultPieceStorage.cc
  10248. * src/DefaultPieceStorage.h
  10249. * src/Piece.cc
  10250. * src/Piece.h
  10251. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10252. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  10253. name collision of static variable and predefined macro.
  10254. * src/BtContext.cc
  10255. * src/BtContext.h
  10256. * src/CookieBoxFactory.cc
  10257. * src/CookieBoxFactory.h
  10258. * src/CookieParser.cc
  10259. * src/CookieParser.h
  10260. * src/DefaultBtContext.cc
  10261. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10262. * src/RequestGroup.cc
  10263. (RequestGroup::createInitialCommand): Use empty() instead of size().
  10264. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10265. * Release 0.13.2
  10266. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  10268. * po/fr.po
  10269. * po/ja.po
  10270. * po/aria2c.pot
  10271. * po/*.po
  10272. * po/*.gmo
  10273. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10274. Bump up version number to 0.13.2
  10275. * src/configure.ac
  10276. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Refactord.
  10278. * src/RequestGroupMan.cc
  10279. (removeStoppedGroup)
  10280. (fillRequestGroupFromReserver)
  10281. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10282. Fixed compile error on Ubuntu.
  10283. * src/BtPieceMessage.cc
  10284. * src/MessageDigestHelper.cc
  10285. * src/Util.cc
  10286. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10287. Fixed compile error when configured with --disable-bittorrent
  10288. * test/DownloadHandlerFactoryTest.cc
  10289. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. Done make update-po
  10291. * po/aria2c.pot
  10292. * po/*.po
  10293. * po/*.gmo
  10294. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10295. Bump up version number to 0.13.2rc.
  10296. * src/configure.ac
  10297. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10298. Made option name bold. Updated SYNOPSIS to make it more readable.
  10299. * doc/aria2c.1.txt
  10300. * doc/aria2c.1
  10301. * doc/aria2c.1.html
  10302. * src/version_usage.cc
  10303. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10304. Refactored. Use std::string instead of size and char*.
  10305. * Data.cc
  10306. * Data.h
  10307. * test/Data.cc
  10308. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10309. Added trimSelf(). Rewritten trim() to use trimSelf().
  10310. * Util.cc
  10311. * Util.h
  10312. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10313. * src/ChunkChecksum.h (getChecksum): Return const reference.
  10314. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10315. Fixed compile error when configured with --disable-metalink.
  10316. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  10317. * test/FeatureConfigTest.cc
  10318. * test/DownloadHandlerFactoryTest.cc
  10319. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10320. Fixed compile error when configured with --without-gnutls
  10321. --without-openssl
  10322. * src/main.cc
  10323. * test/DefaultBtProgressInfoFileTest.cc
  10324. * test/SegmentManTest.cc
  10325. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10326. Fixed compile error with OpenSSL.
  10327. * src/IteratableChunkChecksumValidator.cc
  10328. * src/LibsslDHKeyExchange.h
  10329. * src/MessageDigestHelper.cc
  10330. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10331. Revert the default value of --max-concurrent-downloads to 5.
  10332. Revert the default value of --metalink-servers to 5.
  10333. Man pages was also updated.
  10334. * src/option_processing.cc
  10335. * doc/aria2c.1.txt
  10336. * doc/aria2c.1.html
  10337. * doc/aria2c.1
  10338. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10339. Returns const reference:
  10340. DownloadContext::getPieceHash, DownloadContext::getName,
  10341. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  10342. BtContext::getInfoHashAsString,
  10343. * src/BtContext.h
  10344. * src/DefaultBtContext.cc
  10345. * src/DefaultBtContext.h
  10346. * src/DownloadContext.h
  10347. * src/SingleFileDownloadContext.h
  10348. * test/MockBtContext.h
  10349. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10350. * src/RequestGroup.h (getDir): Removed.
  10351. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10352. Returns const reference. The internal urlencode function was optimized
  10353. a little bit.
  10354. * src/Request.cc
  10355. * src/Request.h
  10356. * src/HttpRequest.cc
  10357. * src/HttpRequest.h
  10358. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10359. Defined option name and possible values as std::string to reduce
  10360. temporary string object creation in runtime.
  10361. * src/HelpItemFactory.cc
  10362. * src/LogFactory.cc
  10363. * src/Option.cc
  10364. * src/OptionHandlerFactory.cc
  10365. * src/option_processing.cc
  10366. * src/prefs.cc
  10367. * src/prefs.h
  10368. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10369. Return const reference.
  10370. * src/DownloadHandlerConstants.cc
  10371. * src/DownloadHandlerConstants.h
  10372. (getMetalinkExtensions)
  10373. (getMetalinkContentTypes)
  10374. (getBtExtensions)
  10375. (getBtContentTypes)
  10376. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10377. * src/HttpHeader.cc (get): Rewritten.
  10378. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10379. Make HttpHeader::getFirst(...) return const reference.
  10380. * src/HttpHeader.cc
  10381. * src/HttpHeader.h
  10382. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10383. Use Option::getAsBool(...) instead of Option::get(...) and compare
  10384. it with V_TRUE.
  10385. * src/DefaultPieceStorage.cc
  10386. * src/DownloadCommand.cc
  10387. * src/FtpNegotiationCommand.cc
  10388. * src/HttpRequest.cc
  10389. * src/InitiateConnectionCommand.cc
  10390. * src/RequestGroup.cc
  10391. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. Made Option::get(...) return const reference of std::string.
  10393. * src/Option.cc
  10394. * src/Option.h
  10395. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. Replaced std:copy with insert.
  10397. * src/DefaultBtMessageDispatcher.cc
  10398. * src/DefaultPieceStorage.cc
  10399. * src/DownloadEngineFactory.cc
  10400. * src/RequestGroup.cc
  10401. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Included SocketCore.h to fix compiler warning.
  10403. * src/InitiateConnectionCommand.cc
  10404. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10405. Put piece selection strategy algorithm to RarestPieceSelector class,
  10406. Added a switch to choose whether randomized selection so that unit
  10407. tests emit same results in, possibly, win32.
  10408. * src/DefaultPieceStorage.cc
  10409. * src/DefaultPieceStorage.h
  10410. * src/RarestPieceSelector.cc
  10411. * src/RarestPieceSelector.h
  10412. * test/DefaultPieceStorageTest.cc
  10413. * test/RarestPieceSelectorTest.cc
  10414. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10415. Don't pool connection if HTTP proxy is enabled.
  10416. * src/FtpFinishDownloadCommand.cc
  10417. * src/FtpNegotiationCommand.cc
  10418. * src/HttpSkipResponseCommand.cc
  10419. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10420. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  10421. * src/AbstractCommand.cc
  10422. * src/AbstractCommand.h
  10423. * src/ActivePeerConnectionCommand.cc
  10424. * src/FtpInitiateConnectionCommand.cc
  10425. * src/HttpInitiateConnectionCommand.cc
  10426. * src/InitiateConnectionCommandFactory.cc
  10427. * src/PeerAbstractCommand.cc
  10428. * src/PeerAbstractCommand.h
  10429. * src/PeerInitiateConnectionCommand.cc
  10430. * src/TrackerWatcherCommand.cc
  10431. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10432. Sort RequestSlot in ascending order and manipulate them using
  10433. lower_bound.
  10434. * src/DefaultBtMessageDispatcher.cc
  10435. * src/DefaultBtMessageDispatcher.h
  10436. (getMessageQueue): Added const qualifier.
  10437. (getRequestSlots): Added const qualifier.
  10438. (sendMessages): Use empty() instead of size().
  10439. (doCancelSendingPieceAction): Use HandleEvent object.
  10440. (doAbortOutstandingRequestAction): Rewritten.
  10441. (doChokedAction): Rewritten.
  10442. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  10443. (isOutstandingRequest): Rewritten.
  10444. (getOutstandingRequest): Rewritten.
  10445. (removeOutstandingRequest): Rewritten.
  10446. (addOutstandingRequest): Rewritten.
  10447. * src/RequestSlot.cc
  10448. * src/RequestSlot.h
  10449. (operator=): Rewritten.
  10450. (operator!=): New function.
  10451. (operator<): New function.
  10452. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10453. * src/DefaultBtRequestFactory.cc
  10454. (doChokedAction): Rewritten.
  10455. (removeCompletedPiece): Rewritten.
  10456. (removeTargetPiece): Rewritten.
  10457. (createRequestMessages): Added the debug log.
  10458. (createRequestMessagesOnEndGame: Added the debug log.
  10459. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10460. Added the debug log message.
  10461. * src/BtPieceMessage.cc (doReceivedAction)
  10462. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10463. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  10464. used lower_bound to process them rather than linear search.
  10465. * src/DHTPeerAnnounceStorage.cc
  10466. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10467. Call subtractPieceStats from ~PeerInteractionCommand only when the
  10468. peer has at least one completed piece.
  10469. * src/Peer.cc
  10470. * src/Peer.h
  10471. * src/PeerInteractionCommand.cc
  10472. * src/PeerSessionResource.cc
  10473. * src/PeerSessionResource.h
  10474. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. Removed unnecessary sorting
  10476. * src/DefaultPieceStorage (DefaultPieceStorage)
  10477. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10478. Rewritten the portion of the code that mangaes allowed fast indexes.
  10479. * src/PeerSessionResource.cc
  10480. * src/PeerSessionResource.h
  10481. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10482. Removed the invalid string including '\r' from ru.po and
  10483. did make update-po.
  10484. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10485. Added --log-level and --summary-interval to man page.
  10486. * doc/aria2c.1.txt
  10487. * doc/aria2c.1.html
  10488. * doc/aria2c.1
  10489. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10490. Added --log-level option to specify log level. Log messages under
  10491. the specified level are not output. Default value is `debug'.
  10492. * src/HelpItemFactory.cc
  10493. * src/LogFactory.cc
  10494. * src/LogFactory.h
  10495. * src/Logger.h
  10496. * src/OptionHandlerFactory.cc
  10497. * src/SimpleLogger.cc
  10498. * src/SimpleLogger.h
  10499. * src/main.cc
  10500. * src/option_processing.cc
  10501. * src/prefs.h
  10502. * src/usage_text.h
  10503. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10504. Print download progress summary of all parallel downloads in specified
  10505. interval, default 60 secs. While aria2 could download several files
  10506. in parallel (see -j option), it displayed just first download progress,
  10507. and the other downloads are hidden from the users. This new feature
  10508. prints all downloads currently in-progress to the console so that you
  10509. can check the status of all downloads. The interval can be adjusted
  10510. by --summary-interval option.
  10511. The progress readout is now cut so that all fits in the one line of
  10512. console.
  10513. * src/ConsoleStatCalc.cc
  10514. * src/ConsoleStatCalc.h
  10515. * src/HelpItemFactory.cc
  10516. * src/OptionHandlerFactory.cc
  10517. * src/RequestGroupMan.cc
  10518. * src/RequestGroupMan.h
  10519. * src/main.cc
  10520. * src/option_processing.cc
  10521. * src/prefs.h
  10522. * src/usage_text.h
  10523. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10524. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  10525. * src/DownloadEngine.cc (DownloadEngine)
  10526. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  10528. defined.
  10529. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  10530. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10531. Use erase+lower_bound+insert instead of sort.
  10532. * src/DefaultPieceStorage.cc (addPieceStats)
  10533. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10534. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  10535. * src/A2STR.cc
  10536. * src/A2STR.h
  10537. * src/OptionParser.cc (parse)
  10538. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. Defined fake filename `[tracker.announce]' as static const std::string.
  10540. * src/TrackerWatcherCommand.cc (createRequestGroup)
  10541. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10542. Defined default filename `index.html' as static const std::string
  10543. * src/SingleFileDownloadContext.cc
  10544. * src/SingleFileDownloadContext.h
  10545. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10546. Defined "[MEMORY]" as static const std::string.
  10547. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10548. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10549. Defined control file's version number as static const std::string.
  10550. * src/DefaultBtProgressInfoFile.cc
  10551. * src/DefaultBtProgressInfoFile.h
  10552. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10553. Use Request::METHOD_GET
  10554. * src/RequestGroup.cc (createNextCommandWithAdj)
  10555. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10556. Defined "OK", "ERR", "INPR" as static const std::string
  10557. * src/RequestGroupMan.cc (showDownloadResults)
  10558. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10559. Defined default client used in extended handshake as static const
  10560. std::string
  10561. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10562. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10563. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10564. * src/HttpConnection.cc (eraseConfidentialInfo)
  10565. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10566. Defined default ftp user and password as static const std::string
  10567. * src/AuthConfigFactory.cc
  10568. * src/AuthConfigFactory.h
  10569. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10570. Defined strings used in netrc as static const std::string
  10571. * src/Netrc.cc
  10572. * src/Netrc.h
  10573. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10574. Defined HTTP status as static const std::string
  10575. * src/AbstractProxyResponseCommand.cc
  10576. * src/HttpHeader.cc
  10577. * src/HttpHeader.h
  10578. * src/HttpResponse.cc
  10579. * src/HttpResponseCommand.cc
  10580. * src/HttpSkipResponseCommand.cc
  10581. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10582. Defined "\r\n", "A", "I" as static const std::string
  10583. * src/A2STR.cc
  10584. * src/A2STR.h
  10585. * src/FtpConnection.cc
  10586. * src/FtpConnection.h
  10587. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10588. Added COLON_C(".") and used it in Request::parseUrl()
  10589. * src/A2STR.cc
  10590. * src/A2STR.h
  10591. * src/Request.cc (parseUrl)
  10592. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10593. Changed the type of padName from `const std::string&' to `const char*'.
  10594. * src/MSEHandshake.cc (verifyPadLength)
  10595. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10596. Defined "sha1" as static const std::string.
  10597. * src/MetalinkParserController.cc
  10598. * src/MetalinkParserController.h
  10599. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10600. Defined message digest algorithm name as static const std::string
  10601. * src/DHTTokenTracker.cc
  10602. * src/DHTUtil.cc
  10603. * src/DefaultBtContext.cc
  10604. * src/MSEHandshake.cc
  10605. * src/MessageDigestHelper.cc
  10606. * src/Peer.cc
  10607. * src/messageDigest.cc
  10608. * src/messageDigest.h
  10609. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10610. Made string literals used in SAX parser static const std::string.
  10611. * src/FileMetalinkParserState.cc
  10612. * src/FileMetalinkParserState.h
  10613. * src/FilesMetalinkParserState.cc
  10614. * src/FilesMetalinkParserState.h
  10615. * src/InitialMetalinkParserState.cc
  10616. * src/InitialMetalinkParserState.h
  10617. * src/MetalinkMetalinkParserState.cc
  10618. * src/MetalinkMetalinkParserState.h
  10619. * src/PiecesMetalinkParserState.cc
  10620. * src/PiecesMetalinkParserState.h
  10621. * src/ResourcesMetalinkParserState.cc
  10622. * src/ResourcesMetalinkParserState.h
  10623. * src/VerificationMetalinkParserState.cc
  10624. * src/VerificationMetalinkParserState.h
  10625. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10626. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  10627. * src/A2STR.cc
  10628. * src/A2STR.h
  10629. * src/File.cc
  10630. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10631. Defined static const std::string IP("ip"), PORT("port") and use them
  10632. instead of string literals.
  10633. * src/DefaultPeerListProcessor.cc
  10634. * src/DefaultPeerListProcessor.h
  10635. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10636. Made string literals for torrent file processing static const
  10637. std::string.
  10638. * src/BtContext.cc
  10639. * src/BtContext.h
  10640. * src/DefaultBtContext.cc
  10641. * src/DefaultBtContext.h
  10642. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10643. Made string literal for tracker response static const std::string
  10644. * src/BtAnnounce.cc
  10645. * src/BtAnnounce.h
  10646. * src/DefaultBtAnnounce.cc
  10647. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10648. Use DHTMessage::T instead of "t".
  10649. * src/DHTMessageTracker.cc (messageArrived)
  10650. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. Made keyName static const. Made trimmed charset static const
  10652. std::string.
  10653. * src/Util.cc (getContentDispositionFilename)
  10654. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10655. Made USER_AGENT const. Made "/" static const std::string.
  10656. * src/A2STR.cc
  10657. * src/A2STR.h
  10658. * src/HttpRequest.cc
  10659. * src/HttpRequest.h
  10660. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10661. Made string listeral to static const std::string:
  10662. "Content-Range", "Content-Length"
  10663. * src/HttpHeader.cc
  10664. * src/HttpHeader.h
  10665. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10666. Made string listeral to static const std::string.
  10667. * src/HttpConnection.cc
  10668. * src/HttpHeader.cc
  10669. * src/HttpHeader.h
  10670. * src/HttpResponse.cc
  10671. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10672. Made string listeral to static const std::string.
  10673. * src/A2STR.cc
  10674. * src/A2STR.h
  10675. * src/SimpleLogger.cc
  10676. * src/SimpleLogger.h
  10677. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10678. Made string literal to static const std::string.
  10679. Rewritten CookieParser::setField.
  10680. * src/A2STR.cc
  10681. * src/A2STR.h
  10682. * src/CookieBoxFactory.cc
  10683. * src/CookieBoxFactory.h
  10684. * src/CookieParser.cc
  10685. * src/CookieParser.h
  10686. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10687. Made string literal to static const std::string
  10688. * src/DHTAbstractMessage.cc
  10689. * src/DHTAnnouncePeerMessage.cc
  10690. * src/DHTAnnouncePeerMessage.h
  10691. * src/DHTAnnouncePeerReplyMessage.cc
  10692. * src/DHTAnnouncePeerReplyMessage.h
  10693. * src/DHTFindNodeMessage.cc
  10694. * src/DHTFindNodeMessage.h
  10695. * src/DHTFindNodeReplyMessage.cc
  10696. * src/DHTFindNodeReplyMessage.h
  10697. * src/DHTGetPeersMessage.cc
  10698. * src/DHTGetPeersMessage.h
  10699. * src/DHTGetPeersReplyMessage.cc
  10700. * src/DHTGetPeersReplyMessage.h
  10701. * src/DHTMessage.cc
  10702. * src/DHTMessage.h
  10703. * src/DHTMessageFactoryImpl.cc
  10704. * src/DHTMessageReceiver.cc
  10705. * src/DHTPingMessage.cc
  10706. * src/DHTPingMessage.h
  10707. * src/DHTPingReplyMessage.cc
  10708. * src/DHTPingReplyMessage.h
  10709. * src/DHTQueryMessage.cc
  10710. * src/DHTQueryMessage.h
  10711. * src/DHTResponseMessage.cc
  10712. * src/DHTResponseMessage.h
  10713. * src/DHTUnknownMessage.cc
  10714. * src/DHTUnknownMessage.h
  10715. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10716. Made string literal to static const std::string
  10717. * src/BtChokeMessage.cc (toString)
  10718. * src/BtHaveAllMessage.cc (toString)
  10719. * src/BtHaveNoneMessage.cc (toString)
  10720. * src/BtInterestedMessage.cc (toString)
  10721. * src/BtNotInterestedMessage.cc (toString)
  10722. * src/BtUnchokeMessage.cc (toString)
  10723. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10724. Replaced "" with static const variable A2STR::NIL.
  10725. Replaced string comparison against "" with std::string::empty().
  10726. Added PROTO_* to Request class and use them as a protocol string
  10727. constant.
  10728. Made "started", "stopped", "completed" static const variable in
  10729. AnnounceList class.
  10730. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10731. Updated translations. Great thanks to translators.
  10732. * po/ca.po
  10733. * po/de.po
  10734. * po/fr.po
  10735. * po/it.po
  10736. * po/ja.po
  10737. * po/ru.po
  10738. * po/zh_CN.po
  10739. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10740. Updated man page; categorized options and fixed typo.
  10741. * doc/aria2c.1.txt
  10742. * doc/aria2c.1.html
  10743. * doc/aria2c.1
  10744. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10745. Removed const ref
  10746. * src/MetalinkEntry.cc (AddProtocolPreference)
  10747. * src/RequestGroup.cc (FindServerHostByHostname)
  10748. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10749. Rewritten Accept-Features handling.
  10750. * src/HttpRequestCommand.cc (createHttpRequest)
  10751. * src/a2functional.h
  10752. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10753. Changed method signature:
  10754. DHTAbstractNodeLookupTask::toEntries
  10755. * src/DHTAbstractNodeLookupTask.cc
  10756. * src/DHTAbstractNodeLookupTask.h
  10757. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10758. Changed method signature:
  10759. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10760. * src/BtContext.h
  10761. * src/DefaultBtContext.cc
  10762. * src/DefaultBtContext.h
  10763. * src/DefaultBtInteractive.cc
  10764. * test/DefaultBtContextTest.cc
  10765. * test/MockBtContext.h
  10766. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10767. Changed method signature:
  10768. MultiFileAllocationIterator::makeDiskWriterEntries
  10769. * src/MultiFileAllocationIterator.cc
  10770. * src/MultiFileAllocationIterator.h
  10771. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. Changed method sinature:
  10773. MetalinkEntry::toFileEntry,
  10774. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10775. Metalinker::queryEntry
  10776. * src/Metalink2RequestGroup.cc
  10777. * src/MetalinkEntry.cc
  10778. * src/MetalinkEntry.h
  10779. * src/MetalinkHelper.cc
  10780. * src/MetalinkHelper.h
  10781. * src/Metalinker.cc
  10782. * src/Metalinker.h
  10783. * src/main.cc
  10784. * test/MetalinkHelperTest.cc
  10785. * test/MetalinkerTest.cc
  10786. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10787. Changed method sinature:
  10788. RequestGroup::getURIs
  10789. * src/RequestGroup.cc
  10790. * src/RequestGroup.h
  10791. * test/Metalink2RequestGroupTest.cc
  10792. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10793. Changed method signature:
  10794. PeerListProcessor::extractPeer
  10795. * src/CompactPeerListProcessor.cc
  10796. * src/CompactPeerListProcessor.h
  10797. * src/DefaultBtAnnounce.cc
  10798. * src/DefaultPeerListProcessor.cc
  10799. * src/DefaultPeerListProcessor.h
  10800. * src/DelegatingPeerListProcessor.cc
  10801. * src/DelegatingPeerListProcessor.h
  10802. * src/PeerListProcessor.h
  10803. * src/UTPexExtensionMessage.cc
  10804. * test/DefaultPeerListProcessorTest.cc
  10805. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10806. Changed method signature:
  10807. BtRequestFactory::createRequestMessages,
  10808. BtRequestFactory::createRequestMessagesOnEndGame
  10809. * src/BtRequestFactory.h
  10810. * src/DefaultBtInteractive.cc
  10811. * src/DefaultBtRequestFactory.cc
  10812. * src/DefaultBtRequestFactory.h
  10813. * test/DefaultBtRequestFactoryTest.cc
  10814. * test/MockBtRequestFactory.h
  10815. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10816. Changed method signature:
  10817. PieceStorage::getInFlightPieces
  10818. * src/DefaultBtProgressInfoFile.cc
  10819. * src/DefaultPieceStorage.cc
  10820. * src/DefaultPieceStorage.h
  10821. * src/PieceStorage.h
  10822. * src/UnknownLengthPieceStorage.cc
  10823. * src/UnknownLengthPieceStorage.h
  10824. * test/DefaultBtProgressInfoFileTest.cc
  10825. * test/MockPieceStorage.h
  10826. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10827. Changed method signature:
  10828. PostDownloadHandler::getNextRequestGroups
  10829. Metalink2RequestGroup::generate
  10830. RequestGroup::postDownloadProcessing
  10831. * src/BtPostDownloadHandler.cc
  10832. * src/BtPostDownloadHandler.h
  10833. * src/Metalink2RequestGroup.cc
  10834. * src/Metalink2RequestGroup.h
  10835. * src/MetalinkPostDownloadHandler.cc
  10836. * src/MetalinkPostDownloadHandler.h
  10837. * src/PostDownloadHandler.h
  10838. * src/RequestGroup.cc
  10839. * src/RequestGroup.h
  10840. * src/RequestGroupMan.cc
  10841. * src/main.cc
  10842. * test/BtPostDownloadHandlerTest.cc
  10843. * test/Metalink2RequestGroupTest.cc
  10844. * test/MetalinkPostDownloadHandlerTest.cc
  10845. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10846. Rewritten AccRequestGroup
  10847. * src/main.cc
  10848. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10849. Rewritten.
  10850. * src/TaggedItem.cc (toTagString)
  10851. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10852. Rewritten Accept-Features handling.
  10853. * src/HttpRequestCommand.cc (createHttpRequest)
  10854. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10855. Rewritten accept types handling.
  10856. * HttpRequest.cc (createRequest)
  10857. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10858. Rewritten
  10859. * src/FeatureConfig.cc (featureSummary)
  10860. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10861. Changed method signature:
  10862. PeerStorage::getActivePeers
  10863. * src/DHTPeerAnnounceEntry.cc
  10864. * src/DefaultPeerStorage.cc
  10865. * src/DefaultPeerStorage.h
  10866. * src/PeerStorage.h
  10867. * test/DefaultPeerStorageTest.cc
  10868. * test/MockPeerStorage.h
  10869. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10870. Changed method signature:
  10871. DHTPeerAnnounceStorage::getPeers,
  10872. DHTPeerAnnounceEntry::getPeers
  10873. * src/DHTGetPeersMessage.cc
  10874. * src/DHTPeerAnnounceEntry.cc
  10875. * src/DHTPeerAnnounceEntry.h
  10876. * src/DHTPeerAnnounceStorage.cc
  10877. * src/DHTPeerAnnounceStorage.h
  10878. * test/DHTAnnouncePeerMessageTest.cc
  10879. * test/DHTPeerAnnounceEntryTest.cc
  10880. * test/DHTPeerAnnounceStorageTest.cc
  10881. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10882. Changed method signature:
  10883. NameResolver::resolve
  10884. * src/DHTEntryPointNameResolveCommand.cc
  10885. * src/InitiateConnectionCommand.cc
  10886. * src/NameResolver.cc
  10887. * src/NameResolver.h
  10888. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10889. Changed method signature:
  10890. PieceStorage::getAdvertisedPieceIndexes
  10891. * src/DefaultBtInteractive.cc
  10892. * src/DefaultPieceStorage.cc
  10893. * src/DefaultPieceStorage.h
  10894. * src/PieceStorage.h
  10895. * src/UnknownLengthPieceStorage.h
  10896. * test/MockPieceStorage.h
  10897. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10898. Changed method signature:
  10899. SegmentMan::getInFlightSegment
  10900. * src/AbstractCommand.cc
  10901. * src/SegmentMan.cc
  10902. * src/SegmentMan.h
  10903. * test/SegmentManTest.cc
  10904. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. Changed method signature:
  10906. DHTAbstractNodeLookupTask::getNodesFromMessage
  10907. * src/DHTAbstractNodeLookupTask.cc
  10908. * src/DHTAbstractNodeLookupTask.h
  10909. * src/DHTNodeLookupTask.cc
  10910. * src/DHTNodeLookupTask.h
  10911. * src/DHTPeerLookupTask.cc
  10912. * src/DHTPeerLookupTask.h
  10913. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10914. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10915. * src/AbstractCommand.cc
  10916. * src/BtCheckIntegrityEntry.cc
  10917. * src/BtCheckIntegrityEntry.h
  10918. * src/BtFileAllocationEntry.cc
  10919. * src/BtFileAllocationEntry.h
  10920. * src/BtSetup.cc
  10921. * src/BtSetup.h
  10922. * src/CheckIntegrityCommand.cc
  10923. * src/CheckIntegrityEntry.h
  10924. * src/ChecksumCheckIntegrityEntry.cc
  10925. * src/ChecksumCheckIntegrityEntry.h
  10926. * src/DHTSetup.cc
  10927. * src/DHTSetup.h
  10928. * src/DownloadEngine.cc
  10929. * src/FileAllocationCommand.cc
  10930. * src/FileAllocationEntry.h
  10931. * src/RequestGroup.cc
  10932. * src/RequestGroup.h
  10933. * src/RequestGroupMan.cc
  10934. * src/RequestGroupMan.h
  10935. * src/StreamCheckIntegrityEntry.cc
  10936. * src/StreamCheckIntegrityEntry.h
  10937. * src/StreamFileAllocationEntry.cc
  10938. * src/StreamFileAllocationEntry.h
  10939. * src/TrackerWatcherCommand.cc
  10940. * src/a2functional.h
  10941. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. Changed method signature:
  10943. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10944. DHTBucket::getGoodNodes,
  10945. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10946. * src/BNode.cc
  10947. * src/BNode.h
  10948. * src/DHTAbstractNodeLookupTask.cc
  10949. * src/DHTAutoSaveCommand.cc
  10950. * src/DHTBucket.cc
  10951. * src/DHTBucket.h
  10952. * src/DHTBucketRefreshTask.cc
  10953. * src/DHTFindNodeMessage.cc
  10954. * src/DHTGetPeersMessage.cc
  10955. * src/DHTRoutingTable.cc
  10956. * src/DHTRoutingTable.h
  10957. * test/BNodeTest.cc
  10958. * test/DHTBucketTest.cc
  10959. * test/DHTRoutingTableTest.cc
  10960. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10961. In piece selection functions, Pass std::deque<...> by reference rather
  10962. than returning it.
  10963. * src/BitfieldMan.cc
  10964. * src/BitfieldMan.h
  10965. * src/DefaultBtRequestFactory.cc
  10966. * src/DefaultPieceStorage.cc
  10967. * src/Piece.cc
  10968. * src/Piece.h
  10969. * test/BitfieldManTest.cc
  10970. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10971. Implemented rarest piece first piece selection strategy.
  10972. * src/AbstractBtMessage.cc
  10973. * src/AbstractBtMessage.h
  10974. * src/BitfieldMan.cc
  10975. * src/BitfieldMan.h
  10976. * src/BtBitfieldMessage.cc
  10977. * src/BtHaveAllMessage.cc
  10978. * src/BtHaveMessage.cc
  10979. * src/DefaultPieceStorage.cc
  10980. * src/DefaultPieceStorage.h
  10981. * src/PeerInteractionCommand.cc
  10982. * src/PieceStorage.h
  10983. * src/UnknownLengthPieceStorage.h
  10984. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. Rewritten readData and writeData.
  10986. * src/MultiDiskAdaptor.cc
  10987. * src/MultiDiskAdaptor.h
  10988. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10989. Move \n out of the message "Usage: ...".
  10990. * src/version_usage.cc
  10991. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10992. Bump up version number to 0.13.2b.
  10993. * configure.ac
  10994. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10995. Added const qualifier to argument Exception& e.
  10996. * src/Logger.h
  10997. * src/SimpleLogger.cc
  10998. * src/SimpleLogger.h
  10999. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11000. Pool connection when CWD, SIZE command fails.
  11001. * src/FtpNegotiationCommand.cc
  11002. * src/FtpNegotiationCommand.h
  11003. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  11005. * src/HttpResponseCommand.cc
  11006. * src/HttpSkipResponseCommand.cc
  11007. * src/HttpSkipResponseCommand.h
  11008. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11009. Pool connection when a server returns 4xx, 5xx responses.
  11010. * src/HttpNullDownloadCommand.cc
  11011. * src/HttpNullDownloadCommand.h
  11012. * src/HttpResponse.cc
  11013. * src/HttpResponse.h
  11014. * src/HttpResponseCommand.cc
  11015. * src/HttpResponseCommand.h
  11016. * test/HttpResponseTest.cc
  11017. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11018. Print usage when no URL is specifed or bad command-line option is
  11019. specified.
  11020. * src/HelpItemFactory.cc
  11021. * src/help_tags.h
  11022. * src/option_processing.cc
  11023. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11024. Removed duplicate log message.
  11025. * src/AbstractCommand.cc (asyncResolveHostname)
  11026. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11027. Updated man page: --async-dns and --ftp-reuse-connection were added.
  11028. Changed -j option's default value from 5 to 1.
  11029. Added new examples using protocol auto detection feature.
  11030. Removed -T, -M usage where it can be omitted.
  11031. * doc/aria2c.1.txt
  11032. * doc/aria2c.1.html
  11033. * doc/aria2c.1.txt
  11034. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11035. Updated command-line usage text, so that it tells users that they
  11036. can specify any number of torrent files and metalink files in
  11037. command-line.
  11038. * src/version_usage.cc
  11039. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11040. Changed the default value of -j option to 1.
  11041. * src/HelpItemFactory.cc
  11042. * src/option_processing.cc
  11043. * src/usage_text.h
  11044. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11045. Added the ability to reuse connection in FTP and it is enabled by
  11046. default. It can be disabled by --ftp-reuse-connection=false option.
  11047. * src/Command.cc
  11048. * src/DownloadCommand.cc
  11049. * src/FtpDownloadCommand.cc
  11050. * src/FtpDownloadCommand.h
  11051. * src/FtpFinishDownloadCommand.cc
  11052. * src/FtpFinishDownloadCommand.h
  11053. * src/FtpInitiateConnectionCommand.cc
  11054. * src/FtpNegotiationCommand.cc
  11055. * src/FtpNegotiationCommand.h
  11056. * src/HelpItemFactory.cc
  11057. * src/Makefile.am
  11058. * src/Makefile.in
  11059. * src/OptionHandlerFactory.cc
  11060. * src/option_processing.cc
  11061. * src/prefs.h
  11062. * src/usage_text.h
  11063. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11064. Call Command::transitStatus() before calling Command::execute(),
  11065. so that the status change made in execute() is not cleared.
  11066. * src/DownloadEngine.cc
  11067. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11068. Removed forward declaration of SocketCore class.
  11069. * src/HttpDownloadCommand.h
  11070. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11071. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  11072. in InitiateConnectionCommandFactory. They should be set only when
  11073. the protocol is HTTP or HTTPS.
  11074. * src/InitiateConnectionCommandFactory.cc
  11075. * src/RequestGroup.cc
  11076. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11077. Fixed infinite loop in checksum checking.
  11078. * src/IteratableChecksumValidator.cc
  11079. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11080. Set _supportsPersistentConnection to true by default.
  11081. * src/Request.cc
  11082. * src/RequestGroup.cc
  11083. * test/HttpRequestTest.cc
  11084. * test/RequestTest.cc
  11085. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11086. Added timeout to socket pool. The default timeout is 15 seconds,
  11087. which is the same value Apache uses.
  11088. * src/DownloadEngine.cc
  11089. * src/DownloadEngine.h
  11090. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11091. Fixed misuse of multimap::find()
  11092. * src/HttpHeader.cc
  11093. * test/HttpHeaderTest.cc
  11094. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11095. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  11096. option.
  11097. The asynchronous DNS is not capable of IPv6 yet.
  11098. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  11099. least for HTTP download.
  11100. * src/AbstractCommand.cc
  11101. * src/AbstractCommand.h
  11102. * src/AsyncNameResolver.cc
  11103. * src/AsyncNameResolver.h
  11104. * src/DHTEntryPointNameResolveCommand.cc
  11105. * src/DHTEntryPointNameResolveCommand.h
  11106. * src/DownloadEngine.cc
  11107. * src/DownloadEngine.h
  11108. * src/FtpInitiateConnectionCommand.cc
  11109. * src/FtpInitiateConnectionCommand.h
  11110. * src/HelpItemFactory.cc
  11111. * src/HttpInitiateConnectionCommand.cc
  11112. * src/HttpInitiateConnectionCommand.h
  11113. * src/InitiateConnectionCommand.cc
  11114. * src/InitiateConnectionCommand.h
  11115. * src/Makefile.am
  11116. * src/Makefile.in
  11117. * src/NameResolver.cc
  11118. * src/NameResolver.h
  11119. * src/OptionHandlerFactory.cc
  11120. * src/SocketCore.cc
  11121. * src/SocketCore.h
  11122. * src/Util.cc
  11123. * src/Util.h
  11124. * src/option_processing.cc
  11125. * src/prefs.h
  11126. * src/usage_text.h
  11127. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11128. Updated man page: --quiet, --header were added.
  11129. --metalink-servers and --enable-http-keep-alive option were updated.
  11130. * doc/aria2c.1
  11131. * doc/aria2c.1.html
  11132. * doc/aria2c.1.txt
  11133. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11134. Enable HTTP keep-alive by default.
  11135. * src/HelpItemFactory.cc
  11136. * src/option_processing.cc
  11137. * src/usage_text.h
  11138. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11139. Disable http keep-alive if the remote server is not HTTP/1.1.
  11140. * src/HttpConnection.cc
  11141. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11142. Receive content body of 302 response so that the connection can be
  11143. reused later when http keep-alive is enabled.
  11144. * src/HttpNullDownloadCommand.cc
  11145. * src/HttpNullDownloadCommand.h
  11146. * src/HttpResponseCommand.cc
  11147. * src/HttpResponseCommand.h
  11148. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11149. const SharedHandle<Request> -> const SharedHandle<Request>&
  11150. * src/FtpDowndloadCommand.cc
  11151. * src/FtpDowndloadCommand.h
  11152. * src/HttpDownloadCommand.cc
  11153. * src/HttpDownloadCommand.h
  11154. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11155. Fixed the bug that the control file(.aria2 file) is not renamed
  11156. according to tryAutoFileRenaming().
  11157. tryAutoFileRenaming() was rewritten so that if both renamed file and
  11158. its control file exist, use them and continue download.
  11159. The old implementation didn't take into account of control file's
  11160. existence, so basically you couldn't continue download of renamed file.
  11161. * src/BtProgressInfoFile.h
  11162. * src/DefaultBtProgressInfoFile.cc
  11163. * src/DefaultBtProgressInfoFile.h
  11164. * src/NullProgressInfoFile.h
  11165. * src/RequestGroup.cc
  11166. * test/DefaultBtProgressInfoFileTest.cc
  11167. * test/MockBtProgressInfoFile.h
  11168. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11169. Change the default value of --metalink-servers option from `5' to `1'.
  11170. * src/HelpItemFactory.cc
  11171. * src/option_processing.cc
  11172. * src/usage_text.h
  11173. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11174. Reimplemented transparent metalink using Accept request header.
  11175. * src/HttpRequest.cc
  11176. * src/HttpRequest.h
  11177. * src/HttpRequestCommand.cc
  11178. * src/Metalink2RequestGroup.cc
  11179. * src/RequestGroup.cc
  11180. * src/RequestGroup.h
  11181. * test/HttpRequestTest.cc
  11182. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11183. Bump up version number to 0.13.2a
  11184. * configure.ac
  11185. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11186. Updated configure.ac using the result of autoscan.
  11187. * configure.ac
  11188. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11189. Fixed compilation error without gcrypt/openssl.
  11190. * src/DownloadCommand.cc
  11191. * src/DownloadCommand.h
  11192. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11193. Reorganized version information so that it can be displayed in a
  11194. standard terminal screen without scrolling.
  11195. Removed http, ftp from Configuration section, because they are always
  11196. enabled.
  11197. * src/FeatureConfig.cc
  11198. * src/FeatureConfig.h
  11199. * src/main.cc
  11200. * src/messageDigest.cc
  11201. * src/messageDigest.h
  11202. * src/version_usage.cc
  11203. * test/FeatureConfigTest.cc
  11204. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11205. Masked user ID in log.
  11206. * src/FtpConnection.cc (sendUser)
  11207. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11208. Removed query part from filename in HTTP download. The query part means
  11209. the substring after "?" in URL. Firefox seems do the same thing.
  11210. A query part is sometimes very long and not suitable to filename,
  11211. so I think it is better to remove it from filename.
  11212. * src/HttpRequest.cc
  11213. * src/HttpRequest.h
  11214. * src/Request.cc
  11215. * src/Request.h
  11216. * test/HttpRequestTest.cc
  11217. * test/RequestTest.cc
  11218. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11219. Rewritten Exception class. Throw exception object, not its pointer and
  11220. catch by reference, so that remove problematic delete operator for
  11221. catched exception.
  11222. * src/Exception.cc
  11223. * src/Exception.h
  11224. * test/ExceptionTest.cc
  11225. * src/*: All files throwing/catching exception.
  11226. * test/*: All files throwing/catching exception.
  11227. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11228. Now auto protocol detection is enabled without -Z option.
  11229. But there is a important difference between with/without -Z optoin.
  11230. For example, if you type:
  11231. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  11232. then, aria2 interprets there are 3 request groups:
  11233. (1) http://host/file, http://mirror/file <-- multi-source download
  11234. (2) file1.torrent
  11235. (3) file2.metalink
  11236. On the other hand, if you invoke above command with -Z option, it is
  11237. interpreted as 4 request groups:
  11238. (1) http://host/file
  11239. (2) file1.torrent
  11240. (3) file2.metalink
  11241. (4) http://mirror/file
  11242. I think usually user don't mix multi-source URLs and torrent files, so
  11243. there is no big problem here.
  11244. * src/main.cc
  11245. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11246. Fixed the bug that causes segmentaion fault when reading XML containing
  11247. unescapsed character like '&'.
  11248. Also a modification was made which avoids adding unnecessary
  11249. characters stack and appending unused string.
  11250. * src/ExpatMetalinkProcessor.cc
  11251. * src/FileMetalinkParserState.h
  11252. * src/FilesMetalinkParserState.h
  11253. * src/FinMetalinkParserState.h
  11254. * src/HashMetalinkParserState.h
  11255. * src/InitialMetalinkParserState.h
  11256. * src/LanguageMetalinkParserState.h
  11257. * src/MetalinkMetalinkParserState.h
  11258. * src/MetalinkParserState.h
  11259. * src/MetalinkParserStateMachine.cc
  11260. * src/MetalinkParserStateMachine.h
  11261. * src/OSMetalinkParserState.h
  11262. * src/PieceHashMetalinkParserState.h
  11263. * src/PiecesMetalinkParserState.h
  11264. * src/ResourcesMetalinkParserState.h
  11265. * src/SizeMetalinkParserState.h
  11266. * src/SkipTagMetalinkParserState.h
  11267. * src/URLMetalinkParserState.h
  11268. * src/VerificationMetalinkParserState.h
  11269. * src/VersionMetalinkParserState.h
  11270. * src/XML2SAXMetalinkProcessor.cc
  11271. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11272. Added StringFormat class, which internally calls vasprintf.
  11273. operator<< is defined for this class, so it can be used with iostream
  11274. classes nicely. SimpleLogger and following functions are rewritten
  11275. using StringFormat class.
  11276. Besides, now Logger class's methods are non-const, many classes
  11277. that has a const Logger* as a member variable are modified to remove
  11278. const qualifier from the variable declaration.
  11279. * src/HelpItemFactory.cc
  11280. * src/Request.cc
  11281. * src/SimpleLogger.cc
  11282. * src/StringFormat.cc
  11283. * src/StringFormat.h
  11284. * src/Util.cc
  11285. * src/option_processing.cc
  11286. * src/version_usage.cc
  11287. * test/StringFormatTest.cc
  11288. * src/*.h: The classes that has const Logger* as a member variable.
  11289. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11290. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  11291. failed. Also fixed memory link when exception is thrown there.
  11292. * src/main.cc (AccRequestGroup)
  11293. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11294. Added build-in "Accept-Features" support. For now only "metalink" is
  11295. used in this header field.
  11296. This "metalink" value is removed from the list when connecting URLs
  11297. fed by metalink file to avoid loop in "transparent" metlaink.
  11298. * src/HttpRequest.cc
  11299. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  11300. header is also held in this variable. Also renamed setUserHeaders as
  11301. addHeader and it was rewritten to add header not just to clear the old
  11302. value.
  11303. * src/HttpRequestCommand.cc
  11304. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  11305. from "Accept-Features" list.
  11306. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  11307. default.
  11308. * src/RequestGroup.h
  11309. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  11310. * src/a2functional.h: Included <string> because Concat class depends on
  11311. it.
  11312. * test/HttpRequestTest.cc
  11313. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11314. Added comment
  11315. * src/RequestGroup.cc (createNextCommand)
  11316. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11317. Capitalized METHOD_GET and METHOD_HEAD
  11318. * src/Request.cc
  11319. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11320. Added getDownloadResults() method
  11321. * src/RequestGroupMan.cc
  11322. * src/RequestGroupMan.h
  11323. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11324. Fixed the bug that aria2 exits when commands is empty() but
  11325. _routineCommands are not.
  11326. * src/DownloadEngine.cc
  11327. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11328. Use the default value pulled from Option object in HelpItemFactory.
  11329. except options whose defualt value is embedded in a usage text.
  11330. * src/HelpItemFactory.cc
  11331. * src/HelpItemFactory.h
  11332. * src/option_processing.cc
  11333. * src/version_usage.cc
  11334. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11335. Added --quiet option to make aria2 quiet (no console output).
  11336. --quiet option is tagged with ADVANCED.
  11337. * src/HelpItemFactory.cc
  11338. * src/LogFactory.cc
  11339. * src/LogFactory.h
  11340. * src/MultiUrlRequestInfo.cc
  11341. * src/MultiUrlRequestInfo.h
  11342. * src/NullStatCalc.h: New class. This class prints nothing.
  11343. * src/OptionHandlerFactory.cc
  11344. * src/main.cc
  11345. * src/option_processing.cc
  11346. * src/prefs.h
  11347. * src/usage_text.h
  11348. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11349. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  11350. * src/HelpItemFactory.cc (createHelpItems):
  11351. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11352. Fixed compilation error in ExpatMetalinkProcessor.cc
  11353. * src/ExpatMetalinkProcessor.cc
  11354. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11355. Reuse socket if the origin server supports HTTP keep-alive and
  11356. --enable-http-keep-alive or --enable-http-pipelining is given.
  11357. The current implementation doesn't reuse the connections established
  11358. against proxy server.
  11359. * src/AbstractCommand.cc
  11360. * src/DownloadEngine.cc
  11361. * src/DownloadEngine.h
  11362. * src/HttpDownloadCommand.cc
  11363. * src/HttpInitiateConnectionCommand.cc
  11364. * src/HttpResponseCommand.cc
  11365. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11366. Rewritten HTTP keep-alive and pipelining routine.
  11367. * src/AbstractCommand.cc
  11368. * src/HttpConnection.cc
  11369. * src/HttpDownloadCommand.cc
  11370. * src/HttpRequest.cc
  11371. * src/HttpRequestCommand.cc
  11372. * src/HttpResponseCommand.cc
  11373. * src/Request.cc
  11374. * src/Request.h
  11375. * src/RequestGroup.cc
  11376. * test/HttpRequestTest.cc
  11377. * test/HttpResponseTest.cc
  11378. * test/RequestTest.cc
  11379. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11380. Added missing setUserHeaders call
  11381. * src/HttpRequestCommand.cc
  11382. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11383. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  11384. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  11385. waste of time because it is more likey false.
  11386. * src/FileAllocationDispatcherCommand.cc (execute)
  11387. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11388. Now HTTP status and version are a member variable of HttpHeader.
  11389. HTTP status is processed as a string, not integer.
  11390. * src/AbstractProxyResponseCommand.cc
  11391. * src/HttpConnection.cc
  11392. * src/HttpHeader.cc
  11393. * src/HttpHeader.h
  11394. * src/HttpHeaderProcessor.cc
  11395. * src/HttpHeaderProcessor.h
  11396. * src/HttpResponse.cc
  11397. * src/HttpResponse.h
  11398. * test/HttpHeaderProcessorTest.cc
  11399. * test/HttpResponseTest.cc
  11400. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11401. Added --header option. You can specify any number of additional HTTP headers
  11402. like:
  11403. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  11404. Unlike other commad-line option, you can use --header option multiple times.
  11405. * src/HelpItemFactory.cc
  11406. * src/HttpRequest.{cc, h}
  11407. * src/HttpRequestCommand.cc
  11408. * src/OptionHandlerFactory.cc
  11409. * src/OptionHandlerImpl.h
  11410. * src/option_processing.cc
  11411. * src/prefs.h
  11412. * src/usage_text.h
  11413. * test/HttpRequestTest.cc (testUserHeaders)
  11414. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11415. Eliminates the time lag between sequential downloads and commands in
  11416. the same RequestGroup.
  11417. In old implementation, aria2 occasionally waits 1 seconds before
  11418. executing next command or RequestGroup.
  11419. This is really a waste of time, and new implementation eliminates
  11420. this unnecessary time lag.
  11421. * src/AbstractCommand.cc
  11422. * src/AutoSaveCommand.cc
  11423. * src/CheckIntegrityCommand.cc
  11424. * src/Command.{cc, h}
  11425. * src/DownloadEngine.{cc, h}
  11426. * src/DownloadEngineFactory.cc
  11427. * src/FileAllocationCommand.cc
  11428. * src/FileAllocationDispatcherCommand.cc
  11429. * src/FillRequestGroupCommand.cc
  11430. * src/FtpInitiateConnectionCommand.cc
  11431. * src/HaveEraseCommand.cc
  11432. * src/HttpInitiateConnectionCommand.cc
  11433. * src/HttpResponseCommand.cc
  11434. * src/RealtimeCommand.cc
  11435. * src/RequestGroup.cc
  11436. * src/RequestGroupMan.cc
  11437. * src/StreamFileAllocationEntry.cc
  11438. * src/TimeBasedCommand.{cc, h}
  11439. * src/TimedHaltCommand.cc
  11440. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11441. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  11442. keyword explicit and SharedHandle's default constructor initializes
  11443. its internal obj to null, old implementation initializes it using
  11444. obj's default constructor.
  11445. To assign null, write SharedHandle<T> x(...); x.reset();
  11446. TODO: test/SharedHandleTest.cc needs more tests.
  11447. * src/SharedHandle.h
  11448. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11449. Fixed type in man page.
  11450. * doc/aria2c.1.txt
  11451. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11452. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  11453. * src/SimpleLogger.{cc, h}
  11454. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11455. Implemented auto protocol detection.
  11456. Now you can do:
  11457. aria2c -Z http://host/file file1.torrent file2.metalink
  11458. (Note: -Z option is required for auto protcol detection.)
  11459. Then aria2c downloads 3 files simultaneously:
  11460. 1. http://host/file
  11461. 2. file1.torrent <-- read local torrent file
  11462. 3. file2.metalink <-- read local Metalink file.
  11463. Same thing goes with -i option. Assume your uris.txt contans:
  11464. http://host/file
  11465. file1.torrent
  11466. file2.metalink
  11467. Then you can do: aria2c -i uris.txt
  11468. (Note: -Z option is not needed if -i option is given.)
  11469. * src/main.cc
  11470. * src/ProtocolDetector.{cc, h}
  11471. * test/ProtocolDetectorTest.cc
  11472. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11473. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  11474. installed
  11475. * src/ARC4Encryptor.h
  11476. * src/ARC4Decryptor.h
  11477. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11478. Renamed argument from 'errno' to 'err', since errno is confused with
  11479. errno defined in errno.h.
  11480. * src/LibgcryptARC4Decryptor.h
  11481. * src/LibgcryptARC4Context.h
  11482. * src/LibgcryptDHKeyExchange.h
  11483. * src/LibgcryptARC4Encryptor.h
  11484. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11485. Rewritten choking algorithm.
  11486. * src/PeerChokeCommand.{cc, h}
  11487. * src/BtInterestedMessage.cc
  11488. * src/PeerSessionResource.{cc, h}
  11489. * src/DefaultPeerStorage.{cc, h}
  11490. * src/BtNotInterestedMessage.cc
  11491. * src/DefaultBtMessageDispatcher.{cc, h}
  11492. * src/BtMessageDispatcher.h
  11493. * src/Peer.{cc, h}
  11494. * src/BtLeecherStateChoke.{cc, h}
  11495. * src/BtSetup.cc
  11496. * src/BtSeederStateChoke.{cc, h}
  11497. * src/PeerStorage.h
  11498. * test/MockPeerStorage.h
  11499. * test/MockBtMessageDispatcher.h
  11500. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11501. Fixed compilation error on x84-64 platform.
  11502. * src/AuthConfig.cc: Included ostream.
  11503. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11504. Rewritten getBasename() and getDirname(), without standard library
  11505. basename(), dirname().
  11506. * src/File.cc
  11507. * test/FileTest.cc
  11508. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11509. Added Simplified Chinese translation. Also updated the following
  11510. translations: Polish, Dutch, German. Great thanks to all translators.
  11511. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11512. Suppress content-range error when 'Content-Range' response header
  11513. doesn't contains bytes-unit specifier 'bytes'
  11514. * src/HttpHeader.cc (getRange)
  11515. * test/HttpHeaderTest.cc
  11516. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11517. Fixed compilation error with g++-4.3
  11518. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11519. Added missing include files for MinGW
  11520. * test/HttpHeaderProcessorTest.cc
  11521. * test/DHTRoutingTableSerializerTest.cc
  11522. * test/DHTRoutingTableDeserializerTest.cc
  11523. * test/UriListParserTest.cc
  11524. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11525. Now download line is printed nicely with no garbage at the end of
  11526. line. I use ioctl to get the columns of terminal.
  11527. If stdout is redirected to another device, instead of carriage return,
  11528. end of line '\n' character is used. This is feature request#1909659
  11529. * src/ConsoleStatCalc.cc (calculateStat)
  11530. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11531. Included a2time.h
  11532. * src/DHTMessageDispatcher.h
  11533. * src/DHTMessageEntry.h
  11534. * src/DHTReplaceNodeTask.h
  11535. * src/DHTMessageTracker.h
  11536. * src/Util.h
  11537. * src/CookieBox.h
  11538. * src/SocketCore.h
  11539. * src/DefaultBtMessageDispatcher.h
  11540. * src/SocketCore.cc
  11541. * src/Util.cc
  11542. * src/DHTPingTask.h
  11543. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11544. Fixed high memory footprint when DHT is enabled.
  11545. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  11546. queued than it is processed and the queue is getting longer. As a
  11547. consequence, momory usage is increased.
  11548. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11549. replacement cache in DHTBucket which is described in Kademlia paper.
  11550. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11551. DHTReplaceNodeTask.
  11552. * src/DHTBucket.{h, cc}
  11553. (cacheNode): New function.
  11554. (getCachedNodes): New function.
  11555. (dropNode): Push back cached node to _nodes.
  11556. * test/DHTBucketTest.cc
  11557. (testCacheNode): New test
  11558. (testDropNode): New test
  11559. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11560. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11561. the unused 4KB memory when ssl is not used.
  11562. * src/SocketCore.cc
  11563. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11564. Added summary log for peer announce storage.
  11565. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11566. Removed cast
  11567. * src/DefaultPeerStorage.cc (addPeer)
  11568. Log exception message
  11569. * src/DHTMessageTracker.cc (handleTimeout)
  11570. Fixed casting
  11571. * test/HttpRequestTest.cc
  11572. * test/MetalinkProcessorTest.cc
  11573. * test/PieceTest.cc
  11574. * test/MetalinkEntryTest.cc
  11575. * test/SequenceTest.cc
  11576. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11577. * src/ParameterizedStringParser.cc (createLoop):
  11578. Removed unused variable sstep.
  11579. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11580. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11581. * src/Util.{h, cc}
  11582. (parseUInt): New function.
  11583. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11584. The actual range is uint32_t.
  11585. * test/UtilTest.cc
  11586. * src/ParameterizedStringParser.cc:
  11587. Use Util::parseUInt() for loop variables.
  11588. * test/ParameterizedStringParserTest.cc
  11589. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11590. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11591. Rewritten the functions for binding port.
  11592. * src/DHTConnectionImpl.{h, cc}
  11593. * src/PeerListenCommand.{h, cc}
  11594. * src/DHTSetup.cc
  11595. * src/BtSetup.cc
  11596. * test/DHTConnectionImplTest.cc
  11597. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11598. type cleanup for allmost all remaining files.
  11599. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11600. Type clarification
  11601. * src/PeerSessionResource.{h, cc}
  11602. * src/DefaultPieceStorage.{h, cc}
  11603. * src/Peer.{h, cc}
  11604. * test/PeerSessionResourceTest.cc
  11605. Use div function
  11606. * src/BtPieceMessage.cc (erasePieceOnDisk)
  11607. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11608. Type clarification
  11609. * src/DefaultPeerStorage.{h, cc}
  11610. * test/DefaultPeerStorageTest.cc
  11611. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11612. Type clarification: size_t for length or size, uint64_t for file
  11613. length, off_t for file offset.
  11614. * src/DefaultBtProgressInfoFile.cc
  11615. * src/DefaultBtContext.{h, cc}
  11616. * src/DefaultBtInteractive.cc
  11617. * src/DownloadCommand.{h, cc}
  11618. * src/IteratableChunkChecksumValidator.{h, cc}
  11619. * src/SegmentMan.{h, cc}
  11620. * src/SingleFileDownloadContext.{h, cc}
  11621. * src/IteratableChecksumValidator.{h, cc}
  11622. * src/BtContext.h
  11623. * src/IteratableValidator.h
  11624. * src/DownloadContext.h
  11625. * test/SingleFileDownloadContextTest.cc
  11626. * test/DefaultBtContextTest.cc
  11627. * test/MockBtContext.h
  11628. * test/Metalink2RequestGroupTest.cc
  11629. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11630. Type clarification: size_t for length or size, uint64_t for file
  11631. length, off_t for file offset.
  11632. * src/PiecedSegment.cc
  11633. * src/GrowSegment.h
  11634. * src/DefaultBtRequestFactory.h
  11635. * src/DefaultBtProgressInfoFile.cc
  11636. * src/UnknownLengthPieceStorage.h
  11637. * src/DefaultPieceStorage.cc
  11638. * src/UnknownLengthPieceStorage.cc
  11639. * src/DefaultBtInteractive.cc
  11640. * src/GrowSegment.cc
  11641. * src/BitfieldMan.h
  11642. * src/DownloadCommand.cc
  11643. * src/BtRequestFactory.h
  11644. * src/PiecedSegment.h
  11645. * src/DefaultPieceStorage.h
  11646. * src/Piece.cc
  11647. * src/DefaultBtRequestFactory.cc
  11648. * src/PieceStorage.h
  11649. * src/Segment.h
  11650. * src/Piece.h
  11651. * src/BitfieldMan.cc
  11652. * src/Util.cc
  11653. * test/DefaultBtProgressInfoFileTest.cc
  11654. * test/DefaultPieceStorageTest.cc
  11655. * test/MockPieceStorage.h
  11656. * test/BtRequestMessageTest.cc
  11657. * test/DefaultBtMessageDispatcherTest.cc
  11658. * test/BitfieldManTest.cc
  11659. * test/GrowSegmentTest.cc
  11660. * test/PieceTest.cc
  11661. * test/SegmentTest.cc
  11662. * test/SegmentManTest.cc
  11663. * test/DefaultBtRequestFactoryTest.cc
  11664. * test/MockBtRequestFactory.h
  11665. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11666. Fixed compilation error with --disable-nls
  11667. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11668. in gettext.h causes the problem.
  11669. * src/common.h
  11670. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11671. Removed subPiece related functions.
  11672. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11673. * src/DefaultPieceStorage.{h, cc}
  11674. * test/PieceTest.cc
  11675. * test/DefaultPieceStorageTest.cc
  11676. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11677. Use unsigned char for data store.
  11678. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11679. Bump up version number to 0.13.0+1
  11680. * configure.ac
  11681. * Release 0.13.0+1
  11682. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11683. Changed inactive connection timeout to 120.
  11684. To accept more mulually interested peers, disconnect peer when there
  11685. is no interest between us after certain time passed.
  11686. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11687. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11688. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11689. when compiled with async DNS support.
  11690. * src/DownloadEngine.cc
  11691. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11692. value '10' will be a little bit short when some DNS servers are
  11693. offline and several DNS servers are tried. It should be configured
  11694. by command-line option.
  11695. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11696. Merged Ross's mingw patch.
  11697. * src/DHTRoutingTableDeserializer.cc
  11698. * src/DHTRoutingTableSerializer.cc
  11699. * src/Platform.{h, cc}
  11700. * src/timegm.h
  11701. * src/gettimeofday.h
  11702. * src/getaddrinfo.h
  11703. * src/SocketCore.h
  11704. * src/common.h
  11705. * src/inet_aton.h
  11706. * src/DownloadEngine.h
  11707. * src/gai_strerror.h
  11708. * src/a2netcompat.h
  11709. * configure.ac
  11710. * configure
  11711. * aclocal.m4
  11712. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11713. Included missing iostream.
  11714. * test/AllTest.cc
  11715. * test/BtDependencyTest.cc
  11716. * test/BtExtendedMessageTest.cc
  11717. * test/DHTConnectionImplTest.cc
  11718. * test/DHTMessageFactoryImplTest.cc
  11719. * test/DHTMessageTrackerEntryTest.cc
  11720. * test/DHTNodeTest.cc
  11721. * test/DHTRoutingTableSerializerTest.cc
  11722. * test/DefaultBtAnnounceTest.cc
  11723. * test/DefaultBtContextTest.cc
  11724. * test/DefaultBtMessageFactoryTest.cc
  11725. * test/DefaultExtensionMessageFactoryTest.cc
  11726. * test/HandshakeExtensionMessageTest.cc
  11727. * test/HttpResponseTest.cc
  11728. * test/MetalinkProcessorTest.cc
  11729. * test/MultiFileAllocationIteratorTest.cc
  11730. * test/SocketCoreTest.cc
  11731. * test/UTPexExtensionMessageTest.cc
  11732. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11733. Reorganized includes.
  11734. * src/NameResolver.cc
  11735. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11736. Fixed compilation error without ares/c-ares
  11737. * src/NameResolver.h:
  11738. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11739. Added a test for large file.
  11740. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11741. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11742. Fixed the bug that file size is ignored if size > INT32_MAX
  11743. * src/SizeMetalinkParserState.cc (endElement):
  11744. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11745. Bump up version number to 0.13.0
  11746. * configure.ac
  11747. * Release 0.13.0
  11748. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11749. Updated Makfefile.am to make 'make dist' work.
  11750. Now packaged filename is aria2c-VERSION.tar.bz2.
  11751. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11752. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11753. Large file support is now configured by configure script.
  11754. * configure.ac
  11755. Removed unsused source files
  11756. * src/
  11757. * test/
  11758. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11759. Peer.h and BtContext.h respectively.
  11760. * src/Peer.h
  11761. * src/BtContext.h
  11762. Updated translations.
  11763. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11764. translations. Great thanks to all translators!;)
  11765. * po/*.{po, gmo}
  11766. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11767. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11768. statically declared sha1 MessageDigestContext.
  11769. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11770. initialization of short-lived MessageDigestContext.
  11771. * src/MessageDigestHelper.{h, cc}
  11772. * src/main.cc
  11773. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11774. the initialization of MessageDigestContext every time in validating
  11775. chunk checksum.
  11776. * src/DownloadCommand.{h, cc}
  11777. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11778. Add a file descriptor which connected to fast peer(latency<1500) to
  11779. select(). This change reduced CPU load.
  11780. * src/PeerInteractionCommand.cc
  11781. * src/DefaultBtInteractive.{h, cc}
  11782. * src/BtInteractive.h
  11783. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11784. Fixed the previous insufficient fix for possible busy loop.
  11785. * src/MSEHandshake.cc (identifyHandshakeType)
  11786. Removed unused functions.
  11787. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11788. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11789. Fixed possible busy loop if first 20 bytes are not received for a few
  11790. minutes.
  11791. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11792. * src/ReceiverMSEHandshakeCommand.cc
  11793. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11794. Fixed compilation error
  11795. * src/ExpatMetalinkProcessor.cc
  11796. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11797. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11798. * src/DHTBucket.cc
  11799. Removed unnecessary cast.
  11800. * src/HandshakeExtensionMessage.cc
  11801. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11802. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11803. is missing.
  11804. * src/OptionHandlerFactory.cc
  11805. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11806. Fixed the bug that HAVE message is not sent for a piece they are
  11807. downloaded fom http/ftp server before any BitTorrent handshake is done
  11808. with peers.
  11809. * src/DefaultBtInteractive.cc
  11810. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11811. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11812. * src/Makefile.am
  11813. * src/Makefile.in
  11814. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11815. Updated README. Added html version of README and man page.
  11816. * README
  11817. * README.html
  11818. * readme2html: Shell script to generate README.html from README using
  11819. asciidoc.
  11820. * doc/aria2c.1.html
  11821. * doc/makeman: Added the line to generate aria2c.1.html
  11822. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11823. Fixed offset calculation.
  11824. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11825. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11826. Rewritten itos and uitos using template. llitos and ullitos are
  11827. replaced with itos and uitos respectively.
  11828. * src/Util.{h, cc}
  11829. * test/UtilTest.cc
  11830. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11831. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11832. of the number of bytes required for storing public key and shared
  11833. secret.
  11834. * src/LibgcryptDHKeyExchange.h
  11835. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11836. * src/MSEHandshake.cc
  11837. * test/DHKeyExchangeTest.cc
  11838. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11839. Removed since they are not used.
  11840. * src/Xml2MetalinkProcessor.{h, cc}
  11841. * src/Socket.cc
  11842. * src/SegmentSplitter.{h, cc}
  11843. * test/Xml2MetalinkProcessorTest.cc
  11844. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11845. Fixed the bug that prevents aria2 from stopping other than by pressing
  11846. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11847. option. aria2 doesn't stop even after --seed-time is satisfied and
  11848. continues to output blank lines in the console.
  11849. * src/ReceiverMSEHandshakeCommand.cc
  11850. * src/PeerReceiveHandshakeCommand.cc
  11851. * src/PeerListenCommand.cc
  11852. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11853. Bump up version number to 0.13.0rc
  11854. * configure.ac
  11855. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11856. Updated man page and some usage text.
  11857. * doc/aria2c.1.txt
  11858. * src/usage_text.h
  11859. * po/*.{po, gmo}
  11860. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11861. Updated translations. Added Finnish and Hebrew translations.
  11862. Great thanks to all translators!
  11863. * po/*.{po, gmo}
  11864. * po/LINGUAS
  11865. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11866. Log more detailed information about each message.
  11867. * src/DHTQueryMessage.{h, cc}
  11868. * src/DHTGetPeersMessage.{h, cc}
  11869. * src/DHTFindNodeReplyMessage.{h, cc}
  11870. * src/DHTGetPeersReplyMessage.{h, cc}
  11871. * src/DHTAnnouncePeerMessage.{h, cc}
  11872. * src/DHTResponseMessage.{h, cc}
  11873. * src/DHTFindNodeMessage.{h, cc}
  11874. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11875. Use constants defined in prefs.h
  11876. * src/option_processing.cc
  11877. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11878. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11879. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11880. Make room for future enchancements for IPv6 addresses.
  11881. Bump up version number of dht.dat file format to 2.
  11882. Not compatible with previous version.
  11883. * src/DHTRoutingTableSerializer.cc
  11884. * src/DHTRoutingTableDeserializer.cc
  11885. * test/DHTRoutingTableSerializerTest.cc
  11886. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11887. Added handling for the return values from
  11888. PeerMessageUtil::createcompact().
  11889. * src/DefaultBtContext.cc (computeFastSet):
  11890. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11891. Fixed abort when peer's ip address is IPv4-mapped address.
  11892. * src/DefaultBtContext.cc (computeFastSet)
  11893. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11894. cannot handle IPv4-mapped addresses.
  11895. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11896. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11897. Proper return value handling for OpenSSL functions.
  11898. * src/LibsslDHKeyExchange.h
  11899. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11900. Random bytes generation using libgcrypt and OpenSSL.
  11901. * src/DHTUtil.{h, cc}
  11902. * test/DHTUtilTest.cc
  11903. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11904. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11905. received.
  11906. * src/DHTMessageReceiver.cc (receiveMessage)
  11907. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11908. Fixed the bug that a return code is always 0. BUG#1897704
  11909. If error occurred during the download or there exist unfinished
  11910. downloads, aria2 returns with code 1.
  11911. * src/RequestGroupMan.{h, cc}
  11912. * src/MultiUrlRequestInfo.{h, cc}
  11913. * src/main.cc
  11914. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11915. IPv6 support for SocketCore class.
  11916. TODO: In SocketCore::establishConnection(), this is insufficient to
  11917. determin the failure of connect() here because the socket is
  11918. non-blocking state. The next addresses should be tried after select().
  11919. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11920. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11921. instead which address family independent.
  11922. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11923. information in a compact peer format which is for IPv4 only.
  11924. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11925. this is a spec of BitTorrent protocol.
  11926. * src/SocketCore.{h, cc}
  11927. * src/PeerMessageUtil.cc
  11928. * test/SocketCoreTest.cc
  11929. * test/PeerMessageUtilTest.cc
  11930. * test/DHTConnectionImplTest.cc
  11931. Handle IPv4-mapped addresses.
  11932. * src/DHTNode.cc: Now identity is determined by node id.
  11933. * src/DHTMessageTrackerEntry.cc
  11934. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11935. should handle it.
  11936. * src/DHTRoutingTableDeserializer.cc
  11937. * src/DHTMessageFactoryImpl.cc
  11938. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11939. Change the unit of --stop option from a minute to a second.
  11940. * src/usage_text.h
  11941. * src/DownloadEngineFactory.cc
  11942. * src/OptionHandlerFactory.cc
  11943. * src/message.h
  11944. * src/TimedHaltCommand.cc
  11945. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11946. Make listening socket non-block mode.
  11947. * src/FtpConnection.cc
  11948. * src/FtpNegotiationCommand.{h, cc}
  11949. * src/PeerListenCommand.cc
  11950. Fixed the bug that cause slow ftp negotiation.
  11951. * src/FtpNegotiationCommand.{h, cc}
  11952. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11953. Added basic tag to --enable-dht, --dht-listen-port option.
  11954. * src/HelpItemFactory.cc (createHelpItems)
  11955. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11956. Updated text.
  11957. * src/usage_text.h
  11958. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11959. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11960. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11961. Determin _threadtholdSpeed in each constructor for
  11962. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11963. * src/ActivePeerConnectionCommand.{h, cc}
  11964. * src/PeerReceiveHandshakeCommand.{h, cc}
  11965. * src/BtSetup.cc
  11966. * src/BtConstants.h
  11967. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11968. Added --bt-min-crypto-level and --bt-require-crypto options.
  11969. * src/OptionHandlerFactory.cc
  11970. * src/MSEHandshake.cc
  11971. * src/HelpItemFactory.cc
  11972. * src/option_processing.cc
  11973. * src/ReceiverMSEHandshakeCommand.cc
  11974. * src/prefs.h
  11975. * src/DefaultBtAnnounce.cc
  11976. * src/InitiatorMSEHandshakeCommand.cc
  11977. * src/usage_text.h
  11978. * test/MSEHandshakeTest.cc
  11979. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11980. Bump version number to 0.13.0b
  11981. * configure.ac
  11982. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11983. Updated doc.
  11984. * src/MessageDigestHelper.h:
  11985. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11986. Use raw message digest as a token instead of its hexadecimal
  11987. representation.
  11988. * src/DHTTokenTracker.cc (generateToken)
  11989. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11990. Added Message Stream Encryption(MSE) support.
  11991. Currently, aria2 accepts incoming connections with Obfuscation Header
  11992. and legacy BitTorrent Header and establishes connections with
  11993. Obfuscation Header first and if failed then retry with legacy
  11994. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11995. choose ARC4. The new option to change the default behavior is planned.
  11996. For tracker extension, "supportcrypto=1" is added statically.
  11997. * src/PeerInitiateConnectionCommand.{h, cc}
  11998. * src/PeerConnection.{h, cc}
  11999. * src/HandleRegistry.h
  12000. * src/SocketCore.h
  12001. * src/PeerReceiveHandshakeCommand.{h, cc}
  12002. * src/BtRegistry.{h, cc}
  12003. * src/PeerListenCommand.cc
  12004. * src/InitiatorMSEHandshakeCommand.{h, cc}
  12005. * src/ReceiverMSEHandshakeCommand.{h, cc}
  12006. * src/MSEHandshake.{h, cc}
  12007. * src/ARC4Encryptor.h
  12008. * src/ARC4Decryptor.h
  12009. * src/LibgcryptARC4Encryptor.h
  12010. * src/LibgcryptARC4Decryptor.h
  12011. * src/LibgcryptARC4Context.h
  12012. * src/LibsslARC4Encryptor.h
  12013. * src/LibsslARC4Decryptor.h
  12014. * src/LibsslARC4Context.h
  12015. * src/DHKeyExchange.h
  12016. * src/LibgcryptDHKeyExchange.h
  12017. * src/LibsslDHKeyExchange.h
  12018. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  12019. * test/DefaultBtAnnounceTest.cc
  12020. * test/ARC4Test.cc
  12021. * test/DHKeyExchangeTest.cc
  12022. Removed prepareForRetry() because it is not used.
  12023. * src/PeerAbstractCommand.{h, cc}
  12024. * src/PeerInteractionCommand.{h, cc}
  12025. * src/PeerInitiateConnectionCommand.{h, cc}
  12026. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12027. Added the ability to load nodes from torrent file. These nodes are
  12028. added to the routing table when downloading that torrent.
  12029. * src/BtContext.h
  12030. * src/DefaultBtContext.{h, cc}
  12031. * src/DHTSetup.cc
  12032. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  12033. hostname and port pair, and resolves all of them.
  12034. * src/NameResolver.{h, cc}: Added reset().
  12035. * src/RequestGroup.cc
  12036. * test/DefaultBtContextTest.cc
  12037. * test/MockBtContext.h
  12038. Removed assert() from DefaultBtContext and throw exception instead.
  12039. * src/DefaultBtContext.cc
  12040. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12041. Fixed segmentation fault bug when exiting if dht is disabled.
  12042. * src/RequestGroup.cc
  12043. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12044. Fixed typo in log message and define the message in message.h
  12045. * src/TimedHaltCommand.cc
  12046. * src/message.h
  12047. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12048. Included RecoverableException.h to fix compilation error.
  12049. * test/DHTMessageFactoryImplTest.cc
  12050. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12051. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  12052. * test/DHTPingMessageTest.cc
  12053. * test/DHTGetPeersMessageTest.cc
  12054. * test/DHTFindNodeMessageTest.cc
  12055. * test/DHTAnnouncePeerMessageTest.cc
  12056. * test/MockDHTMessage.h
  12057. * test/MockDHTMessageFactory.h
  12058. * test/MockDHTMessageDispatcher.h: New class.
  12059. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12060. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  12061. virtual.
  12062. * src/DHTMessageDispatcher.h
  12063. * src/DHTMessageDispatcherImpl.{h, cc}
  12064. * src/DHTSetup.cc
  12065. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12066. Adding handling of DHT error message. Just log error message and
  12067. throw exception.
  12068. * src/DHTMessageFactoryImpl.cc
  12069. * test/DHTMessageFactoryImplTest.cc
  12070. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12071. Added handling of dynamic cast failure.
  12072. * src/DHTNodeLookupTask.cc
  12073. * src/DHTPeerLookupTask.cc
  12074. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12075. Added the ability to stop aria2 itself when given time has passed
  12076. from start. Use --stop option to specify time in minutes.
  12077. When 0 is given, this feature is disabled.
  12078. * src/OptionHandlerFactory.cc
  12079. * src/TimeBasedCommand.h: Make _interval protected scope.
  12080. * src/HelpItemFactory.cc
  12081. * src/option_processing.cc
  12082. * src/prefs.h
  12083. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  12084. before calling RequestGroupMan::fillRequestGroupFromReserver().
  12085. Without this modification, the result list shows "ERR" when aria2 is
  12086. stopped by --stop option. It should be "INPR".
  12087. * src/DownloadEngine.{h, cc}
  12088. * src/DownloadEngineFactory.cc
  12089. * src/usage_text.h
  12090. * src/TimedHaltCommand.{h, cc}: New class.
  12091. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12092. Bootstrap through node added by port message.
  12093. Currently bootstrap is executed if the number of buckets in routing
  12094. table is 1.
  12095. * src/BtPortMessage.{h, cc}
  12096. * src/DefaultBtMessageFactory.{h, cc}
  12097. * src/PeerInteractionCommand.cc
  12098. * test/BtPortMessageTest.cc
  12099. * test/MockDHTTask.h
  12100. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12101. Extract the Peer class's member variables, which are only needed after
  12102. PeerInteractionCommand, into PeerSessionResource class.
  12103. This class is instantiated in PeerInteractionCommand class's ctor and
  12104. released in its dtor.
  12105. This will make Peer class lightweight and uses less memory for peers
  12106. which are not connected and wait in the queue.
  12107. * src/PeerChokeCommand.cc
  12108. * src/PeerSessionResource.{h, cc}
  12109. * src/PeerInteractionCommand.cc
  12110. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  12111. * src/DefaultBtInteractive.cc
  12112. * src/BtPieceMessage.cc
  12113. * src/BtInterestedMessage.cc
  12114. * src/BtUnchokeMessage.cc
  12115. * src/DefaultPeerStorage.{h, cc}
  12116. * src/PeerInitiateConnectionCommand.cc
  12117. * src/ActivePeerConnectionCommand.cc
  12118. * src/BtNotInterestedMessage.cc
  12119. * src/DefaultBtMessageDispatcher.cc
  12120. * src/BtChokeMessage.cc
  12121. * src/BtRequestMessage.cc
  12122. * src/Peer.{h, cc}
  12123. * src/BtRegistry.h
  12124. * src/TrackerWatcherCommand.cc
  12125. * src/PeerReceiveHandshakeCommand.cc
  12126. * test/BtExtendedMessageTest.cc
  12127. * test/BtAllowedFastMessageTest.cc
  12128. * test/BtCancelMessageTest.cc
  12129. * test/DefaultPieceStorageTest.cc
  12130. * test/BtBitfieldMessageTest.cc
  12131. * test/BtHaveMessageTest.cc
  12132. * test/BtNotInterestedMessageTest.cc
  12133. * test/BtRequestMessageTest.cc
  12134. * test/PeerSessionResourceTest.cc
  12135. * test/DefaultBtMessageDispatcherTest.cc
  12136. * test/PeerTest.cc
  12137. * test/BtInterestedMessageTest.cc
  12138. * test/BtRejectMessageTest.cc
  12139. * test/BtChokeMessageTest.cc
  12140. * test/DefaultPeerStorageTest.cc
  12141. * test/BtHaveNoneMessageTest.cc
  12142. * test/BtHaveAllMessageTest.cc
  12143. * test/DefaultExtensionMessageFactoryTest.cc
  12144. * test/BtUnchokeMessageTest.cc
  12145. * test/DefaultBtMessageFactoryTest.cc
  12146. * test/HandshakeExtensionMessageTest.cc
  12147. * test/UTPexExtensionMessageTest.cc
  12148. * test/DefaultBtRequestFactoryTest.cc
  12149. * test/BtPieceMessageTest.cc
  12150. Removed typedef PeerStats.
  12151. * src/PeerStat.h
  12152. * src/SegmentMan.cc
  12153. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12154. Added std namespace to copy, remove_copy, back_inserter,
  12155. front_inserter.
  12156. * src/RequestGroupMan.cc
  12157. * src/DefaultPieceStorage.cc
  12158. * src/StreamFileAllocationEntry.cc
  12159. * src/BtFileAllocationEntry.cc
  12160. * src/RequestGroup.cc
  12161. * src/MetalinkEntry.cc
  12162. * src/DelegatingPeerListProcessor.cc
  12163. * src/DefaultBtRequestFactory.cc
  12164. * src/DefaultBtMessageDispatcher.cc
  12165. * src/version_usage.cc: Included <algorithm>
  12166. * src/main.cc
  12167. * src/MetalinkParserController.cc
  12168. * src/DefaultBtContext.cc
  12169. * src/DownloadEngineFactory.cc
  12170. * src/a2algo.h
  12171. Removed.
  12172. * test/StreamUriListParserTest.cc
  12173. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12174. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  12175. ActivePeerConnectionCommand when it is given and
  12176. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  12177. * src/ActivePeerConnectionCommand.{h, cc}
  12178. * src/BtSetup.cc
  12179. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12180. Only add socket to DownloadEngine's select routine when peer or
  12181. localhost is unchoked and interested. This lowers CPU usage a
  12182. little bit.
  12183. * src/PeerInteractionCommand.cc
  12184. * src/PeerAbstractCommand.{h, cc}
  12185. * src/BtInteractive.h
  12186. * src/DefaultBtInteractive.{h, cc}
  12187. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12188. Revert previous change because get_peers message is needed for
  12189. announce_peer anyway.
  12190. * src/DHTGetPeersCommand.cc
  12191. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12192. Request peers thought DHT only when download hasn't finished.
  12193. * src/DHTGetPeersCommand.cc
  12194. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12195. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  12196. * src/DHTBucketRefreshTask.{h, cc}
  12197. * src/DHTSetup.cc
  12198. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12199. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  12200. standard classes.
  12201. Included string.h where mem* function are used.
  12202. Added namespace aria2.
  12203. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12204. Create directory before saving DHT routing table.
  12205. Now ios::failure is now handled properly.
  12206. * src/DHTAutoSaveCommand.cc
  12207. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12208. Removed unnecessary cerr.
  12209. * src/DownloadEngine.cc
  12210. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12211. Catch exception inside DHTMessageReceiver::receiveMessage().
  12212. Log unknown message.
  12213. * src/DHTMessageReceiver.{h, cc}
  12214. * src/DHTMessageFactory.h
  12215. * src/DHTMessageFactoryImpl.{h, cc}
  12216. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  12217. * src/DHTInteractionCommand.cc
  12218. * src/DHTUnknownMessage.{h, cc}
  12219. * test/DHTUnknownMessageTest.cc
  12220. * test/MockDHTMessageFactory.h
  12221. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12222. Commented out ip address comparison because a host can have multiple
  12223. ip addresses and it is hard to predict the hostname is resolved into
  12224. which one.
  12225. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  12226. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12227. * po/Makefile.in: Removed since this is generated by configure.
  12228. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12229. Fixed compiler warning about redefinition of SIZE_MAX.
  12230. Use common.h instead of config.h directly here.
  12231. * src/Platform.{h, cc}
  12232. The check of ENABLE_NLS is made in gettext.h, so it is not required
  12233. here.
  12234. * common.h
  12235. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  12236. Updated gettext related files.
  12237. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  12238. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  12239. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12240. Added DHT functionality, compatible with mainline.
  12241. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  12242. You may need to specify entry point to DHT network using
  12243. --dht-entry-point. DHT uses UDP port to listen incoming message.
  12244. Use --dht-listen-port to specify port number. Make sure that your
  12245. firewall configuration can pass through UDP traffic to the port.
  12246. The routing table is saved in $HOME/.aria2/dht.dat.
  12247. * src/DHT*
  12248. * src/BNode.{h, cc}
  12249. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  12250. particular torrent.
  12251. * src/Data.cc: Rewritten ctor.
  12252. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  12253. --dht-entry-point.
  12254. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  12255. * src/RequestGroup.cc: Initialize DHT functionality. When download
  12256. ends, remove BtContext from DHTPeerAnnounceStorage.
  12257. * src/BtPortMessage.{h, cc}: Rewritten.
  12258. * src/message.h
  12259. * src/OptionHandlerImpl.cc
  12260. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  12261. --dht-entry-point.
  12262. * src/Dictionary.{h, cc} (remove): New function.
  12263. * src/prefs.h
  12264. * src/DefaultBtMessageFactory.h
  12265. * src/BtHandshakeMessage.cc
  12266. * src/ActivePeerConnectionCommand.cc
  12267. * src/SocketCore.{h, cc}: Added datagram socket support.
  12268. * src/DefaultBtMessageFactory.cc
  12269. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  12270. Create DHT commands.
  12271. * src/BtMessageFactory.h
  12272. * src/PeerMessageUtil.{h, cc}
  12273. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12274. Fixed the bug that log file is not written when configuration file doesn't exist.
  12275. This is caused by using Logger class before LogFactory is not configured.
  12276. BUG #1875079
  12277. * src/option_processing.cc
  12278. Warning message "configuration doesn't exist" is only printed when --conf is
  12279. given.
  12280. * src/option_processing.cc
  12281. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12282. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  12283. ShaVisitor is now deprecated and slated to be removed.
  12284. * src/DefaultBtContext.cc
  12285. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12286. Externalize message to message.h
  12287. * src/Platform.cc
  12288. * src/message.h
  12289. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12290. Set default domain and default path to cookie.
  12291. * src/HttpResponse.cc
  12292. * src/CookieBox.{h, cc}
  12293. * src/CookieParser.{h, cc}
  12294. * test/CookieParserTest.cc
  12295. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12296. Added --no-conf and --conf-path command-line option.
  12297. --no-conf option disables loading aria2.conf file.
  12298. --conf-path option changes the configuration file path. The default
  12299. file path is $HOME/.aria2/aria2.conf
  12300. Added a warning message when the configuration file is not found.
  12301. * src/HelpItemFactory.cc
  12302. * src/option_processing.cc
  12303. * src/prefs.h
  12304. * src/usage_text.h
  12305. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12306. Added the message to inform users that other help categories are
  12307. available in -h option.
  12308. * src/version_usage.cc
  12309. * src/TagContainer.{h, cc}
  12310. * test/TagContainerTest.cc
  12311. * src/TaggedItem.{h, cc}
  12312. * test/TaggedItemTest.cc
  12313. * src/HelpItem.h
  12314. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12315. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  12316. from PiecedSegment's ctor.
  12317. Previously Piece::getAllMissingBlockIndexes() is called from
  12318. PiecedSegment() but it is rather expensive since only first element is
  12319. used.
  12320. * src/PiecedSegment.cc
  12321. * src/Piece.{h, cc}
  12322. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12323. Rewritten get*Missing*Index functions. Now no need to allocate memory
  12324. each time these functions are called.
  12325. * src/BitfieldMan.{h, cc}
  12326. * test/BitfieldManTest.cc
  12327. * src/array_fun.h
  12328. * test/array_funTest.cc
  12329. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  12330. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  12331. filtered. Removed unnecessary cast to int32_t.
  12332. * src/BitfieldMan.{h, cc}
  12333. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12334. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  12335. payload length(4bytes) are received. This happens because lenbufLength
  12336. is not updated in this particular case and successive call of
  12337. receiveMessage() overwrites payload length with bytes recieved which
  12338. are payload body.
  12339. * src/PeerConnection.{h, cc}
  12340. * src/message.h
  12341. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12342. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  12343. peer if there are peers that have same ipaddr and port.
  12344. I've experiened segmentation fault and "pure virtual function was
  12345. called" error.
  12346. * src/Peer.h
  12347. * test/PeerTest.cc
  12348. * src/DefaultPeerStorage.cc
  12349. * test/DefaultPeerStorageTest.cc
  12350. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12351. Removed a call to isPowerOf() because it is no longer necessary here
  12352. and a request block is not always power of 2.
  12353. BUG#1866924
  12354. * src/PeerMessageUtil.cc (checkLength)
  12355. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12356. Fixed the bug that always first found Segment is removed from
  12357. usedSegmentEntries. Removed unused functions.
  12358. * src/SegmentMan.{h, cc}
  12359. * test/SegmentManTest.cc
  12360. Fixed the bug that ServerHost is not removed.
  12361. * src/RequestGroup.cc
  12362. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12363. Fixed the bug that SegmentMan::completeSegment() is not called
  12364. even if Segment is complete when --lowest-speed-limit is enabled.
  12365. BUG#1864525
  12366. * src/DownloadCommand.{h, cc}
  12367. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12368. Fixed: hash algorithm 'sha1' is always used.
  12369. * src/DownloadCommand.cc (validatePieceHash)
  12370. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12371. Added --enable-peer-exchange command-line option.
  12372. * src/OptionHandlerFactory.cc
  12373. * src/HelpItemFactory.cc
  12374. * src/option_processing.cc
  12375. * src/usage_text.h
  12376. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12377. Move extension from BtRuntime to ExtensionMessageFactory, because
  12378. extension can be specified per peer, not per torrent.
  12379. * src/DefaultBtInteractive.cc
  12380. * src/BtRuntime.h
  12381. * src/ExtendedMessagingAware.h
  12382. * src/ExtensionMessageFactory.h
  12383. * src/DefaultExtensionMessageFactory.cc
  12384. * test/DefaultExtensionMessageFactoryTest.cc
  12385. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12386. Added categorized option help. Specify category using --help option.
  12387. Also added the ability to search options in forward match.
  12388. * src/HelpItem.{h, cc}
  12389. * test/HelpItemTest.cc
  12390. * src/HelpItemFactory.{h, cc}
  12391. * src/TagContainer.{h, cc}
  12392. * test/TagContainerTest.cc
  12393. * src/option_processing.cc
  12394. * src/prefs.h
  12395. * src/TaggedItem.{h, cc}
  12396. * test/TaggedItemTest.cc
  12397. * src/version_usage.cc
  12398. * src/help_tags.h
  12399. * src/usage_text.h
  12400. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12401. Fixed segmentation fault when bad torrent metainfo is parsed.
  12402. Added dynamic_cast properly to detect the misconfiguration of metainfo
  12403. and then throw exception or skip it.
  12404. * src/DefaultBtContext.{h, cc}
  12405. * test/DefaultBtContextTest.cc
  12406. * src/AnnounceList.cc
  12407. * src/CompactPeerListProcessor.cc
  12408. * src/message.h
  12409. * src/DefaultBtAnnounce.{h, cc}
  12410. * test/DefaultBtAnnounceTest.cc
  12411. * src/BencodeVisitor.cc
  12412. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12413. Added missing "B"(=Byte). So now the message looks like this:
  12414. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  12415. * src/message.h (MSG_SHARE_RATIO_REPORT)
  12416. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12417. Show the seed ratio after torrent downloads.
  12418. For example, after torrent download completed and --seed-time and
  12419. --seed-ratio conditions are fulfilled, following message is printed
  12420. right after "Download complete: .....":
  12421. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  12422. * src/RequestGroupMan.cc
  12423. * src/RequestGroup.{h, cc}
  12424. * src/message.h
  12425. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12426. Remove a defunct control file. A defunct control file means that while
  12427. it exists, but the corresponding download file is missing.
  12428. After its removal, a download restarts from the beginning.
  12429. * src/RequestGroup.cc
  12430. * src/message.h
  12431. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12432. Allocate bitfield in Peer when it is really used. More specifically,
  12433. bitfield in Peer is allocated after the connection is established and
  12434. deallocated when the connection is dropped.
  12435. Since 2 parameters(piece length and total length) was removed from the
  12436. constructor of Peer class, many test classes were modified accordingly.
  12437. See svn log for more detailed information.
  12438. * src/PeerInteractionCommand.cc
  12439. * src/CompactPeerListProcessor.cc
  12440. * src/Peer.cc
  12441. * src/DefaultPeerListProcessor.cc
  12442. * src/PeerListenCommand.cc
  12443. * src/PeerReceiveHandshakeCommand.cc
  12444. Fixed memory leak
  12445. * src/Piece.cc
  12446. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12447. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  12448. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  12449. command-line options.
  12450. * src/option_processing.cc
  12451. * src/ActivePeerConnectionCommand.cc
  12452. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12453. Send have message to peer if it already has the piece.
  12454. * src/BtHaveMessage.{h, cc}
  12455. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12456. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  12457. port.
  12458. * src/DefaultPeerStorage.{h, cc}
  12459. * test/DefaultPeerStorageTest.cc
  12460. * src/HandshakeExtensionMessage.cc
  12461. * test/HandshakeExtensionMessageTest.cc
  12462. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  12463. * src/PeerStorage.h
  12464. * test/MockPeerStorage.h
  12465. * src/PeerListenCommand.cc
  12466. * src/PeerReceiveHandshakeCommand.cc
  12467. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12468. Added --metalink-enable-unique-protocol option.
  12469. * src/Metalink2RequestGroup.cc
  12470. * src/option_processing.cc
  12471. * src/prefs.h
  12472. * src/version_usage.cc
  12473. * doc/aria2c.1.txt
  12474. * doc/aria2c.1
  12475. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12476. Allow a peer in incomingPeer to be added peers.
  12477. * src/DefaultPeerStorage.cc
  12478. * test/DefaultPeerStorageTest.cc
  12479. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12480. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  12481. I could reproduce this bug in following procedure:
  12482. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  12483. 2. Restart aria2.
  12484. 3. You see the download stopped around 99%.
  12485. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12486. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  12487. If timeout is reached, then _nextCommand is unused and it may contains
  12488. segments and they won't be canceled. Actually, timeout is not needed
  12489. here because if the server dropped connection, then retry is made.
  12490. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12491. Added uTorrent compatible Peer Exchange.
  12492. * src/BencodeVisitor.{h, cc}
  12493. * test/BencodeVisitorTest.cc
  12494. * src/BtConstants.h
  12495. * src/BtContext.h: Added 'private' flag.
  12496. * src/BtExtendedMessage.{h, cc}
  12497. * test/BtExtendedMessageTest.cc
  12498. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  12499. reserved field.
  12500. * test/BtHandshakeMessageTest.cc
  12501. * src/BtMessageFactory.h
  12502. * src/BtRegistry.h
  12503. * src/BtRuntime.h: This class holds default extension message IDs for
  12504. aria2. By default, aria2 uses ID 8 for ut_pex.
  12505. * src/DefaultBtContext.cc
  12506. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  12507. When it is true, aria2 enables ut_pex. This value is set by
  12508. PeerInteractionCommand.
  12509. * src/DefaultBtMessageFactory.{h, cc}
  12510. * test/DefaultBtMessageFactoryTest.cc
  12511. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  12512. handling to DefaultBtInteractive class.
  12513. * src/DefaultExtensionMessageFactory.{h, cc}
  12514. * test/DefaultExtensionMessageFactoryTest.cc
  12515. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  12516. the container(peers and incomingPeers. The equality is determined by
  12517. Peer::id).
  12518. * test/DefaultPeerStorageTest.cc
  12519. * src/ExtensionMessage.h
  12520. * test/MockExtensionMessage.h
  12521. * src/ExtensionMessageFactory.h
  12522. * test/MockExtensionMessageFactory.h
  12523. * src/HandshakeExtensionMessage.{h, cc}
  12524. * test/HandshakeExtensionMessageTest.cc
  12525. * src/MetaEntry.h
  12526. * src/Peer.{h, cc}
  12527. * src/PeerInteractionCommand.cc
  12528. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  12529. addIncomingPeer.
  12530. * src/PeerMessageUtil.{h, cc}
  12531. * src/PeerObject.h
  12532. * src/UTPexExtensionMessage.{h, cc}
  12533. * test/UTPexExtensionMessageTest.cc
  12534. * src/message.h
  12535. * src/prefs.h
  12536. Fixed the bug that returns incomplete data when it contains null
  12537. character. A convenient constructor was also added.
  12538. * src/Data.{h, cc}
  12539. Rewritten.
  12540. * src/CompactPeerListProcessor.cc
  12541. Fixed typos.
  12542. * src/message.h
  12543. * src/MetaFileUtil.cc
  12544. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12545. Added "Status Legend" label to the explanation text of 'stat' in
  12546. download result and moved it to the last. BUG#1848214
  12547. * src/RequestGroupMan.cc
  12548. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12549. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12550. * src/Makefie.am
  12551. * test/Makefile.am
  12552. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12553. Fixed the bug that prevents aria2 from loading cookie file when expire
  12554. value is greater than 2^31-1. BUG#1851066
  12555. * src/CookieBoxFactory.cc
  12556. * test/CookieBoxFactoryTest.cc
  12557. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12558. Fixed possible memory leak when an exception is thrown.
  12559. * src/XML2SAXMetalinkProcessor.cc
  12560. Added Expat support. If both libxml2 and Expat are installed, then
  12561. libxml2 is used by default.
  12562. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12563. ExpatMetalinkProcessor according to the configuration.
  12564. * src/ExpatMetalinkProcessor.{h, cc}
  12565. * src/main.cc: Removed libxml2 specific header and init/free function.
  12566. * src/MetalinkProcessorFactory.{h, cc}
  12567. * src/MetalinkHelper.cc
  12568. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12569. * src/MetalinkProcessor.h
  12570. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12571. MetalinkProcessorTest is used instead.
  12572. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12573. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12574. MetalinkProcessorFactory::newInstance().
  12575. * m4/libexpat.m4
  12576. * configure.ac: Added configuration options for libexpat.
  12577. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12578. Disabled -s option in metalink download.
  12579. * src/Metalink2RequestGroup.cc
  12580. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12581. If several protocols are available for a mirror in metalink file,
  12582. aria2 now use one of them. --metalink-preferred-protocol option was
  12583. added to specify the preference of protocol.
  12584. * src/AbstractCommand.cc
  12585. * src/OptionHandlerFactory.cc
  12586. * src/ServerHost.{h, cc}
  12587. * src/Metalink2RequestGroup.cc
  12588. * src/RequestGroup.{h, cc}
  12589. * test/RequestGroupTest.cc
  12590. * src/option_processing.cc
  12591. * src/prefs.h
  12592. * src/HttpResponseCommand.cc
  12593. * src/MetalinkResource.{h, cc}
  12594. * src/FtpNegotiationCommand.cc
  12595. * src/MetalinkEntry.{h, cc}
  12596. * src/MetalinkEntryTest.cc
  12597. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12598. Code cleanup and added debug log.
  12599. * src/PeerConnection.cc
  12600. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12601. Compiler error fix: applied the patch by Tiziano Mueller
  12602. * src/RequestGroup.cc
  12603. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12604. Fixed the bug: only first announce URL is tried in AnnounceTier,
  12605. in stopped and completed event.
  12606. * src/AnnounceList.{h, cc}
  12607. * test/AnnounceListTest.cc
  12608. * src/DefaultBtAnnounce.cc
  12609. * test/DefaultBtAnnounceTest.cc
  12610. Sorted URLs.
  12611. * test/Metalink2RequestGroupTest.cc
  12612. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12613. Removed unnecessary string copy. Updated doc and corrected indentation.
  12614. * src/Base64.cc
  12615. Fixed compilation warnings
  12616. * test/DataTest.cc
  12617. * test/HttpRequestTest.cc
  12618. * test/MetaFileUtilTest.cc
  12619. * test/RequestTest.cc
  12620. * Release 0.12.0
  12621. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12622. Updated translations
  12623. * po/{de,fr,ja,nl,ru}.po
  12624. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  12625. translations. Many thanks to translators.
  12626. * po/{ca,es,it,pt_BR,sv}.po
  12627. * po/LINGUAS
  12628. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12629. Added a notice about URL
  12630. * src/version_usage.cc
  12631. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  12632. Fixed the bug#1845750; CTRL+C does not stop torrent.
  12633. aria2 repeatedly sends stopped request when tracker returns error code.
  12634. * src/AnnounceList.cc
  12635. * test/AnnounceListTest.cc
  12636. * src/AnnounceTier.h
  12637. Added a message when ctrl-c is hit.
  12638. Now second ctrl-c is also handled in signal handler.
  12639. * src/RequestGroupMan.{h, cc}
  12640. * src/RequestGroup.{h, cc}
  12641. * src/MultiUrlRequestInfo.cc
  12642. * src/DownloadEngine.cc
  12643. * src/TrackerWatcherCommand.cc
  12644. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12645. Code cleanup
  12646. * src/Base64.cc (encode)
  12647. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12648. Changed Direct/IO enable/disable procesure in file allocation routine.
  12649. * src/SingleFileAllocationIterator.cc
  12650. (SingleFileAllocationIterator):
  12651. Disable directIO if offset is not multiple of 512.
  12652. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  12653. * src/MultiFileAllocationIterator.cc (allocateChunk):
  12654. Enable created SingleFileAllocationIterator's directIO.
  12655. * src/FileAllocationEntry.cc
  12656. (FileAllocationEntry): Enable directIO here.
  12657. (~FileAllocationEntry): Disable directIO here.
  12658. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12659. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  12660. * src/Peer.{h, cc}
  12661. * src/DefaultPieceStorage.cc
  12662. * test/DefaultPieceStorageTest.cc
  12663. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12664. Rewritten direct I/O support routine
  12665. * src/SingleFileAllocationIterator.cc
  12666. * src/MultiDiskAdaptor.{h, cc}
  12667. * src/ByteArrayDiskWriter.h
  12668. * src/AbstractSingleDiskAdaptor.h
  12669. * src/AbstractDiskWriter.cc
  12670. * src/DefaultPieceStorage.cc
  12671. * src/DiskWriter.h
  12672. * src/BinaryStream.h
  12673. * src/IteratableChunkChecksumValidator.cc
  12674. * src/IteratableChecksumValidator.cc
  12675. * src/CheckIntegrityEntry.cc
  12676. * src/FileAllocationEntry.cc
  12677. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12678. Fixed typo
  12679. * src/version_usage.cc
  12680. Updated doc
  12681. * doc/aria2c.1.txt
  12682. * doc/aria2c.1
  12683. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12684. Fixed compile error without message digest support.
  12685. * src/FileMetalinkParserState.cc
  12686. * src/MetalinkParserController.{h, cc}
  12687. * test/XML2SAXMetalinkProcessorTest.cc
  12688. * test/MetalinkParserControllerTest.cc
  12689. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12690. Enable direct I/O support in checksum checking.
  12691. * src/IteratableChunkChecksumValidator.{h, cc}
  12692. * test/IteratableChunkChecksumValidatorTest.cc
  12693. * src/CheckIntegrityEntry.cc
  12694. * src/PieceHashCheckIntegrityEntry.cc
  12695. * src/IteratableChecksumValidator.{h, cc}
  12696. * src/BtCheckIntegrityEntry.cc: Added doc.
  12697. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12698. Added --allow-piece-length-change option.
  12699. * src/DefaultBtProgressInfoFile.cc
  12700. * test/DefaultBtProgressInfoFileTest.cc
  12701. * src/OptionHandlerFactory.cc
  12702. * src/option_processing.cc
  12703. * src/prefs.h
  12704. * src/version_usage.cc
  12705. * doc/aria2c.1.txt
  12706. * doc/aria2c.1
  12707. Fixed: duplicated result entry appears when exception is thrown in
  12708. RequestGroup::createInitiateConnectionCommand().
  12709. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12710. Add RequestGroup to _requestGroup after RequetGroup::
  12711. createInitiateConnectionCommand() succeeds.
  12712. Externalized message
  12713. * src/XML2SAXMetalinkProcessor.cc
  12714. * src/message.h
  12715. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12716. Forced download abort when received negative response from http/ftp
  12717. server.
  12718. * src/HttpResponseCommand.cc
  12719. * src/FtpNegotiationCommand.cc
  12720. * src/HttpResponse.cc
  12721. * src/FtpConnection.cc
  12722. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12723. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12724. the predecessor, Xml2MetalinkParser class.
  12725. I tested them against 94KB metalink file with 1234 chunk checksums.
  12726. The new one parsed it in 22msec, while it took 6000msec with old one.
  12727. * src/XML2SAXMetalinkProcessor.{h, cc}
  12728. * test/XML2SAXMetalinkProcessorTest.cc
  12729. * src/MetalinkParserController.{h, cc}
  12730. * test/MetalinkParserControllerTest.cc
  12731. * src/MetalinkParserState.h: Also added 16 subclasses.
  12732. * src/main.cc
  12733. * src/Metalink2RequestGroup.cc
  12734. * src/MetalinkHelper.cc
  12735. * src/MetalinkEntry.cc
  12736. * src/ChunkChecksum.h
  12737. Rewritten Base64 class for better performance.
  12738. * src/Base64.{h, cc}
  12739. * test/Base64Test.cc
  12740. * src/HttpRequest.cc
  12741. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12742. Fixed the bug#1841757: aria2 will connect to server to only get
  12743. file size.
  12744. * src/StreamFileAllocationEntry.cc
  12745. * src/option_processing.cc
  12746. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12747. downloads.
  12748. * src/FtpNegotiationCommand.cc
  12749. Suppressed wrong message when finding PreDownloadHandler
  12750. * src/RequestGroup.cc
  12751. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12752. Updated usage
  12753. * src/version_usage.cc
  12754. Updated man page
  12755. * doc/aria2c.1.txt
  12756. * doc/aria2c.1
  12757. Updated po files
  12758. * po/aria2c.pot
  12759. * po/*.po
  12760. * po/*.gmo
  12761. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12762. Eliminated g++-4.2 warning
  12763. * src/DownloadHandlerConstants.{h, cc}
  12764. * src/Util.cc
  12765. * test/MetaFileUtilTest.cc
  12766. * test/PStringBuildVisitorTest.cc
  12767. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12768. * src/RequestGroup.cc
  12769. * src/BtCheckIntegrityEntry.cc
  12770. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12771. Fixed a2io.h
  12772. * src/a2io.h
  12773. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12774. Added direct I/O support. The current implementation uses O_DIRECT,
  12775. which is not posix standard and is tested on linux 2.6.21.
  12776. Currently only file allocation uses direct I/O.
  12777. * src/SingleFileAllocationIterator.{h, cc}
  12778. * test/SingleFileAllocationIteratorTest.cc
  12779. * src/MultiFileAllocationIterator.{h, cc}
  12780. * test/MultiFileAllocationIteratorTest.cc
  12781. * src/BinaryStream.h
  12782. * src/DiskWriter.h
  12783. * src/AbstractDiskWriter.{h, cc}
  12784. * src/ByteArrayDiskWriter.h
  12785. * src/DiskAdaptor.h
  12786. * src/AbstractSingleDiskAdaptor.{h, cc}
  12787. * src/MultiDiskAdaptor.{h, cc}
  12788. * src/FileAllocationEntry.cc
  12789. * src/Util.{h, cc}
  12790. * src/OptionHandlerFactory.cc
  12791. * src/prefs.h
  12792. * src/version_usage.cc
  12793. * src/option_processing.cc
  12794. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12795. handleException.
  12796. * src/MultiFileAllocationIterator.cc
  12797. Added EINTR handling
  12798. * src/SocketCore.cc
  12799. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12800. Updated usage
  12801. * src/version_usage.cc
  12802. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12803. Applied Ross's patch for MinGW port.
  12804. * src/DownloadEngine.h
  12805. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12806. Set Content-Type to SingleFileDownloadContext when http response is
  12807. received.
  12808. * src/HttpResponseCommand.cc
  12809. * src/HttpResponse.{h, cc}
  12810. * test/HttpResponseTest.cc
  12811. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12812. Rewritten to add content-type support.
  12813. * src/DownloadHandler.{h, cc}
  12814. * src/BtPostDownloadHandler.{h, cc}
  12815. * test/BtPostDownloadHandlerTest.cc
  12816. * src/MetalinkPostDownloadHandler.{h, cc}
  12817. * test/MetalinkPostDownloadHandlerTest.cc
  12818. * src/PostDownloadHandler.{h, cc}
  12819. * src/DownloadHandlerConstants.{h, cc}
  12820. * src/RequestGroup.cc
  12821. * src/HttpResponseCommand.cc
  12822. * src/FtpNegotiationCommand.cc
  12823. * src/SingleFileDownloadContext.{h, cc}
  12824. * src/RequestGroup.h
  12825. * src/RequestGroupCriteria.h
  12826. * src/ContentTypeRequestGroupCriteria.h
  12827. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12828. If it is give, metalink/torrent file is not written to the disk, but
  12829. just is kept in memory. Parsing is occurred on memory.
  12830. * src/MetalinkHelper.{h, cc}
  12831. * src/MetalinkProcessor.h
  12832. * src/Xml2MetalinkProcessor.{h, cc}
  12833. * test/Xml2MetalinkProcessorTest.cc
  12834. * src/DownloadHandlerFactory.{h, cc}
  12835. * test/DownloadHandlerFactoryTest.cc
  12836. * src/PreDownloadHandler.{h, cc}
  12837. * src/OptionHandlerFactory.cc
  12838. * src/DefaultBtContext.{h, cc}
  12839. * test/DefaultBtContextTest.cc
  12840. * src/version_usage.cc
  12841. * src/Metalink2RequestGroup.{h, cc}
  12842. * src/RequestGroup.{h, cc}
  12843. * src/a2functional.h
  12844. * test/a2functionalTest.cc
  12845. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12846. * src/OptionHandlerImpl.h
  12847. * src/prefs.h
  12848. * src/Util.{h, cc}
  12849. * test/UtilTest.cc
  12850. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12851. memory usage.
  12852. * src/RequestGroupMan.{h, cc}
  12853. * src/DownloadEngine.cc
  12854. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12855. WeakHandle to SharedHandle because WeakHandle could be null.
  12856. * src/RequestGroup.{h, cc}
  12857. * src/DownloadEngineFactory.cc
  12858. * src/DownloadResult.h
  12859. Set totalLength after download finished
  12860. * src/UnknownLengthPieceStorage.{h, cc}
  12861. Keep torrent file specified in metalink in memory.
  12862. * src/Metalink2RequestGroup.cc
  12863. * src/BtDependency.cc
  12864. * src/TrueRequestGroupCriteria.h
  12865. Fixed the bug: seekg is used where seekp should be used.
  12866. * src/ByteArrayDiskWriter.cc
  12867. * test/ByteArraydiskWriterTest.cc
  12868. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12869. Fixed syntax error
  12870. * test/SequenceTest.cc
  12871. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12872. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12873. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12874. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12875. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12876. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12877. Added the check to see whether ares_host_callback accepts timeouts
  12878. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12879. * src/NameResolver.{h, cc}
  12880. * m4/libcares.m4
  12881. * configure.ac: Set C++ for language choice.
  12882. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12883. Fixed: compilation fails without c-ares/ares
  12884. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12885. Generate http/ftp commands only when download is incomplete.
  12886. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12887. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12888. Corrected typo. Examples are removed since they are available in man
  12889. page.
  12890. * src/version_usage.cc
  12891. Updated man page.
  12892. * doc/aria2c.1
  12893. * doc/aria2c.1.txt
  12894. * doc/makeman: Commented out sed command.
  12895. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12896. Throw DlAbortEx when a remote file is not found.
  12897. * src/HttpResponse.cc
  12898. * src/FtpNegotiationCommand.cc
  12899. * src/message.h
  12900. Overwrite an existing file if --allow-overwrite=true is given.
  12901. * src/RequestGroup.cc
  12902. Removed unused functions
  12903. * src/AbstractCommand.h
  12904. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12905. Removed 'extern' from 'extern typedef ...' in src/*.h
  12906. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12907. Updated usage
  12908. * src/version_usage.cc
  12909. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12910. Trim announce URL
  12911. * src/DefaultBtContext.cc
  12912. * test/ShaVisitorTest.cc
  12913. Trim argument s. Give trimed s to exception constructor.
  12914. * src/Util.cc (parseInt)(parseLLInt)
  12915. * test/UtilTest.cc
  12916. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12917. Set precision back to 1.
  12918. * src/ConsoleStatCalc.cc (calculateStat)
  12919. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12920. Replaced strtol with Util::parseInt
  12921. * src/ChunkedEncoding.cc
  12922. * src/HttpConnection.cc
  12923. * src/CookieBoxFactory.cc
  12924. * src/ParameterizedStringParser.cc
  12925. * src/Util.cc
  12926. * test/UtilTest.cc
  12927. * test/OptionHandlerTest.cc
  12928. * src/Request.cc
  12929. Throw exception when empty string is given. The message for exception
  12930. changed.
  12931. * src/Util.cc (parseInt)(parseLLInt)
  12932. * src/message.h
  12933. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12934. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12935. set to 1.
  12936. * src/ConsoleStatCalc.cc (calculateStat)
  12937. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12938. Preallocate non-requested file which is adjacent forward to requested
  12939. file('requested' files means the files given in --select-file option)
  12940. if they share a same piece.
  12941. This fixes long pause in the file system which doesn't support sparse
  12942. files like FAT32 while downloading.
  12943. * src/MultiFileAllocationIterator.{h, cc}
  12944. * test/MultiFileAllocationIteratorTest.cc
  12945. * src/FileEntry.{h, cc}
  12946. Removed unused _option.
  12947. * src/MultiDiskAdaptor.h
  12948. * test/MultiDiskAdaptorTest.cc
  12949. * src/DefaultPieceStorage.cc
  12950. Set the default value of --seed-ratio to 1.0.
  12951. If 0.0 is given, then seeding continues regardless of share ratio.
  12952. * src/version_usage.cc
  12953. * src/option_processing.cc
  12954. * src/BtSetup.cc
  12955. * doc/aria2c.1.txt
  12956. * doc/aria2c.1
  12957. Fixed: Selective download is not working in BitTorrent
  12958. * src/RequestGroup.cc
  12959. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12960. * src/PieceStorage.h
  12961. * test/MockPieceStorage.h
  12962. * src/UnknownLengthPieceStorage.h
  12963. * src/DefaultPieceStorage.{h, cc}
  12964. * src/Metalink2RequestGroup.cc
  12965. * src/RequestGroup.cc
  12966. * src/Sequence.h
  12967. * test/SequenceTest.cc
  12968. * src/IntSequence.h
  12969. * src/message.h
  12970. * src/Util.{h, cc}
  12971. * test/UtilTest.cc
  12972. Added new function 'parse' to catch exception thrown by subclass's
  12973. parseArg
  12974. * src/OptionHandler.h
  12975. * src/OptionParser.cc
  12976. * src/NameMatchOptionHandler.h
  12977. * src/OptionHandlerImpl.h
  12978. * test/OptionHandlerTest.cc
  12979. Added IntegerRangeOptionHandler. Used for --listen-port and
  12980. --select-file. Now --listen-port accepts range of port.
  12981. * src/OptionHandlerFactory.cc
  12982. * src/version_usage.cc
  12983. * src/OptionHandlerImpl.h
  12984. * src/option_processing.cc
  12985. * src/BtSetup.cc
  12986. * src/PeerListenCommand.{h, cc}
  12987. * doc/aria2c.1.txt
  12988. * doc/aria2c.1
  12989. Implemented operator< for Exception class to provide easy way to print
  12990. exception stack trace.
  12991. * src/Exception.{h, cc}
  12992. * src/main.cc
  12993. * src/option_processing.cc
  12994. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12995. * src/version_usage.cc
  12996. (showVersion): Reworked.
  12997. (showUsage): Added examples.
  12998. Removed Hint for total length and file name.
  12999. * src/Metalink2RequestGroup.cc
  13000. * src/RequestGroup.{h, cc}
  13001. * src/HttpResponseCommand.cc
  13002. * src/FtpNegotiationCommand.cc
  13003. Now --follow-torrent and --follow-metalink option work properly.
  13004. * src/RequestGroup.cc
  13005. Updated man page
  13006. * doc/aria2c.1.txt
  13007. * doc/aria2c.1
  13008. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13009. Removed.
  13010. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  13011. Use Segment::operator==()
  13012. * src/HttpConnection.cc
  13013. * src/Segment.h
  13014. Updated usage
  13015. * src/version_usage.cc
  13016. Added EINTR treatment.
  13017. * src/SocketCore.cc
  13018. * src/AbstractDiskWriter.cc
  13019. Rewritten.
  13020. * src/Util.cc (rangedFileCopy)
  13021. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13022. Fixed typo.
  13023. * src/version_usage.cc
  13024. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13025. Implemented. Now -c option works fine.
  13026. * src/DefaultPieceStorage.cc (markPiecesDone)
  13027. * test/DefaultPieceStorageTest.cc
  13028. Removed.
  13029. * src/SegmentMan.{h, cc}
  13030. (markAllPiecesDone)
  13031. (markPieceDone)
  13032. Synchronized po files with
  13033. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  13034. * src/fr.po
  13035. * src/ru.po
  13036. * src/de.po
  13037. * src/ja.po
  13038. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13039. Added ifdef and some modifications to compile without BitTorrent,
  13040. Metalink, MessageDigest
  13041. support.
  13042. * src/PieceHashCheckIntegrityEntry.cc
  13043. * src/MetalinkEntry.h
  13044. * src/version_usage.cc
  13045. * src/main.cc
  13046. * src/DownloadEngine.{h, cc}
  13047. * src/Metalink2RequestGroup.cc
  13048. * src/Peer.cc
  13049. * src/RequestGroup.cc
  13050. * src/MetalinkHelper.cc
  13051. * test/DefaultPieceStorageTest.cc
  13052. * test/MetalinkPostDownloadHandlerTest.cc
  13053. * test/Metalink2RequestGroupTest.cc
  13054. Hide TOTAL SPD when all downloads complete.
  13055. * src/ConsoleStatCalc.cc
  13056. Log target system information.
  13057. * src/main.cc
  13058. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13059. Now --metalink-location accepts a comma-deliminated list of locations.
  13060. * src/MetalinkEntry.{h, cc}
  13061. * test/MetalinkEntryTest.cc
  13062. * src/version_usage.cc
  13063. * src/Metalink2RequestGroup.cc
  13064. * src/Xml2MetalinkProcessor.cc
  13065. * test/Xml2MetalinkProcessorTest.cc
  13066. * doc/aria2c.1.txt
  13067. * doc/aria2c.1
  13068. * src/Util.cc (toUpper)(toLower): Rewritten.
  13069. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13070. Added the ability to detect duplicate download entry which is about to
  13071. download the same file other RequestGroup is downloading.
  13072. * src/RequestGroup.cc
  13073. * src/HttpResponseCommand.cc
  13074. * src/FtpNegotiationCommand.cc
  13075. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13076. Recalculates download progress when loading a control file,
  13077. if the piece length of DownloadContext is different from the one saved
  13078. in the control file. Currently in-flight pieces are ignored.
  13079. * src/DefaultBtProgressInfoFile.cc
  13080. * test/DefaultBtProgressInfoFileTest.cc
  13081. * src/Util.{h, cc}
  13082. * test/UtilTest.cc
  13083. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13084. Do not rotate tiers in announce-list.
  13085. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  13086. AnnounceList::allTiersFailed() used instead to detect whether all
  13087. tiers are tried and failed.
  13088. * test/DefaultBtAnnounceTest.cc
  13089. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  13090. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  13091. * test/AnnounceListTest.cc
  13092. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  13093. clause. Catch RecoverableException instead of DlRetryEx instead.
  13094. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13095. Implemented checksum validation feature(1 checksum for each file)
  13096. The validation takes place after the download.
  13097. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  13098. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  13099. * src/CheckIntegrityCommand.cc: Changed log message.
  13100. * src/Metalink2RequestGroup.cc: Set checksum to
  13101. SingleFileDownloadContext.
  13102. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  13103. PieceHashCheckIntegrity class.
  13104. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  13105. PieceHashCheckIntegrity class.
  13106. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  13107. * src/IteratableValidator.h: New class.
  13108. * src/message.h
  13109. * src/CheckIntegrityEntry.{h, cc}
  13110. * src/IteratableChunkChecksumValidator.{h, cc}
  13111. * src/SingleFileDownloadContext.h
  13112. * src/DownloadCommand.cc
  13113. --allow-overwrite=true is no longer needed to check file integrity
  13114. before download in BitTorrent download.
  13115. * src/RequestGroup.cc (getInitialCommand)
  13116. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  13117. throws exception.
  13118. * src/RequestGroupMan.cc (getInitialCommands)
  13119. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13120. urlencode the given url inside Request::parseUrl(...)
  13121. * src/Request.{h, cc}
  13122. * src/Util.{h, cc}
  13123. * test/RequestTest.cc
  13124. Removed #!metalink3! notation support because it is deleted from
  13125. the metalink specification.
  13126. * src/Request.{h, cc}
  13127. * test/RequestTest.cc
  13128. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13129. Don't connect server before checking file integrity at startup, if
  13130. filesize and output file path are known.
  13131. * src/AbstractCommand.cc
  13132. * src/StreamFileAllocationEntry.cc
  13133. * src/Metalink2RequestGroup.cc
  13134. * src/RequestGroup.{h, cc}
  13135. * src/HttpResponseCommand.cc
  13136. * src/FtpNegotiationCommand.cc
  13137. Added DownloadFailureException. If it is thrown, RequestGroup should
  13138. halt.
  13139. * src/AbstractCommand.cc
  13140. * src/DownloadFailureException.h
  13141. * src/RequestGroup.cc
  13142. Catch RecoverableException, instead of DlAbortEx.
  13143. * src/RequestGroupMan.cc
  13144. * src/FillRequestGroupCommand.cc
  13145. * src/MetaFileUtil.cc
  13146. * src/IteratableChunkChecksumValidator.cc
  13147. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  13148. getGID())
  13149. * src/CheckIntegrityCommand.cc
  13150. * src/message.h
  13151. Print gid instead of idx.
  13152. * src/RequestGroupMan.cc
  13153. Removed exception throwers declaration.
  13154. * src/DirectDiskAdaptor.{h, cc}
  13155. * src/SocketCore.{h, cc}
  13156. * src/MultiDiskAdaptor.{h, cc}
  13157. * src/HttpConnection.{h, cc}
  13158. * src/HttpResponse.{h, cc}
  13159. * src/DiskAdaptor.{h, cc}
  13160. * src/CopyDiskAdaptor.{h, cc}
  13161. * src/MultiDiskAdaptor.{h, cc}
  13162. * src/HttpHeaderProcessor.{h, cc}
  13163. * src/AbstractSingleDiskAdaptor.{h, cc}
  13164. * src/Util.{h, cc}
  13165. * test/UtilTest.cc
  13166. * src/DefaultDiskWriter.{h, cc}
  13167. * src/FtpConnection.{h, cc}
  13168. * src/AbstractDiskWriter.{h, cc}
  13169. Removed duplicate code.
  13170. * src/StreamCheckIntegrityEntry.cc
  13171. Removed unnecessary include.
  13172. * src/DiskWriter.h
  13173. Included Exception.h
  13174. * src/option_processing.cc
  13175. Included 2 files and added doc
  13176. * src/TrackerWatcherCommand.cc
  13177. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  13178. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13179. Changed CheckIntegrityEntry interface so that it can define
  13180. the action when all the chunk checksums are valid.
  13181. * src/CheckIntegrityEntry.h
  13182. * src/StreamCheckIntegrityEntry.{h, cc}
  13183. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  13184. are valid, then aira2 goes to seeding mode. Sometimes it is better
  13185. to exit rather than doing seeding. So, it would be good to toggle this
  13186. behavior.
  13187. * src/CheckIntegrityCommand.cc
  13188. * src/AbstractCommand.cc
  13189. * src/RequestGroup.cc
  13190. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13191. Reflect the download length of in-flight pieces.
  13192. It makes the download length readout more precise.
  13193. * src/DefaultPieceStorage.{h, cc}
  13194. * test/DefaultPieceStorageTest.cc
  13195. * src/a2functional.h
  13196. * test/a2functionalTest.cc
  13197. Lower CPU load when --max-download-limit is used.
  13198. There is up and down in speed indicator when enabling
  13199. http-pipelining but a download goes well. I think the problem is that
  13200. because http-pipelining is enabled, DownloadCommand is created for
  13201. each segment and in its constructor, PeerStat::downloadStart() is
  13202. called. In PeerStat::downloadStart(), speed calculation object is
  13203. reseted, which makes download speed zero.
  13204. * src/DownloadCommand.cc
  13205. Rewritten using accumulate.
  13206. * src/RequestGroupMan.cc (calculateStat)
  13207. Code clearnup.
  13208. * src/FtpNegotiationCommand.cc
  13209. * src/HttpResponseCommand.cc
  13210. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13211. Fixed: Can not resume: aria2 reports download already finished.
  13212. * src/AbstractCommand.{h, cc}
  13213. * src/HttpResponseCommand.cc
  13214. * src/FtpNegotiateCommand.cc
  13215. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13216. Now a file is stored in the directory specified in .metalnk file
  13217. (file[@name]).
  13218. * src/Metalink2RequestGroup.cc
  13219. Create the directory structure when opening the file if it doesn't
  13220. exist.
  13221. * src/AbstractDiskWriter.cc
  13222. * src/Util.{h, cc}
  13223. * src/File.h
  13224. * test/UtilTest.cc
  13225. Removed file name comparison
  13226. * src/Metalink2RequestGroup.cc
  13227. * src/HttpResponseCommand.cc
  13228. Rewritten using Util::mkdirs()
  13229. * src/FileEntry.cc (setupDir)
  13230. * test/FileEntryTest.cc
  13231. Updated doc
  13232. * src/SingleFileDownloadContext.h
  13233. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13234. Now SleepCommand dispatches nextCommand when halt is requested.
  13235. It avoids a possible long wait after hitting CTRL-C.
  13236. * src/SleepCommand.{h, cc}
  13237. * src/RequestGroupAware.{h, cc}
  13238. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13239. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  13240. to open listen port, then remove the port number from the tracker
  13241. request.
  13242. * src/DefaultBtAnnounce.cc
  13243. * test/DefaultBtAnnounceTest.cc
  13244. * test/MockPieceStorage.h
  13245. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  13246. them more testable.
  13247. * src/DefaultBtAnnounce.{h, cc}
  13248. * src/DefaultBtContext.{h, cc}
  13249. * src/Util.{h, cc}
  13250. * test/DefaultBtAnnounceTest.cc
  13251. * test/DefaultBtContextTest.cc
  13252. * test/UtilTest.cc
  13253. Added 'B' to upload bytes readout.
  13254. * src/ConsoleStatCalc.cc
  13255. Now the listen port for BitTorrent download is opened when it is
  13256. needed.
  13257. * src/DownloadEngineFactory.cc
  13258. * src/BtSetup.{h, cc}
  13259. * src/PeerListenCommand.{h, cc}
  13260. Now an exception thrown while parsing tracker response is now logged.
  13261. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  13262. called, which means no retry is made in this case, assuming a tracker
  13263. has a problem.
  13264. * src/TrackerWatcherCommand.cc
  13265. Fixed: downloading a file whose length is unkown fails.
  13266. * src/DownloadCommand.cc
  13267. Simplified prepareForNextSegment()
  13268. * src/DownloadCommand.cc
  13269. Updated
  13270. * po/POTFILES.in
  13271. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13272. Re-implemented a file listing for Metalink, which was dropped while
  13273. http/ftp/torrent integration was being implemented.
  13274. * src/MetalinkHelper.{h, cc}: New class.
  13275. * test/MetalinkHelperTest.cc
  13276. * src/main.cc
  13277. * src/Metalink2RequestGroup.cc
  13278. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13279. Added the ability to display the detailed torrent file information.
  13280. Now -S option gives not only a file listing, but also total download
  13281. length, info hash, announce URI, piece length, the number of pieces,
  13282. and mode(single or multi-torrent).
  13283. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  13284. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  13285. KiB)
  13286. * test/UtilTest.cc
  13287. * src/main.cc
  13288. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13289. Added ftp://USER:PASSWD@Servername automatic parsing.
  13290. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  13291. _password. Recognize username and password in URI.
  13292. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  13293. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  13294. * src/RequestFactory.{h, cc}: Removed.
  13295. * src/AuthConfigFactory.{h, cc}: New class.
  13296. * src/FtpConnection.cc: Use AuthConfigFactory.
  13297. * src/HttpRequest.cc: Use AuthConfigFactory.
  13298. * test/HttpRequestTest.cc: Updated.
  13299. * test/RequestTest.cc: Updated.
  13300. * test/AuthConfigFactoryTest.cc: New class.
  13301. * test/RequestFactoryTest.cc: Removed.
  13302. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13303. Use RequestGroup::allDownloadFinished() to decide whether the control
  13304. file should be removed or saved.
  13305. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  13306. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  13307. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13308. Use File::renameTo()
  13309. * src/DefaultBtProgressInfoFile.cc
  13310. Added --no-file-allocation-limit command-line option.
  13311. * src/version_usage.cc
  13312. * src/option_processing.cc
  13313. * src/OptionHandlerFactory.cc
  13314. * src/RequestGroup.{h, cc}
  13315. * src/BtCheckIntegrityEntry.cc
  13316. * src/StreamCheckIntegrityEntry.cc
  13317. * src/prefs.h
  13318. * doc/aria2c.1.txt
  13319. * doc/aria2c.1
  13320. Now prealloc is the default value for --file-allocation option.
  13321. * src/version_usage.cc
  13322. * src/option_processing.cc
  13323. * doc/aria2c.1.txt
  13324. * doc/aria2c.1
  13325. Don't URL-encode user-agent.
  13326. * src/HttpRequest.cc
  13327. Updated translations
  13328. * po/LINGUAS: Added nl for Dutch translation.
  13329. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  13330. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  13331. * po/POTFILES.in: Updated.
  13332. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13333. Added the ability to recognize url-list in a torrent file.
  13334. The retrieved URLs are attached to the corresponding FileEntry.
  13335. * src/DefaultBtContext.{h, cc}
  13336. * src/FileEntry.{h, cc}
  13337. * test/DefaultBtContextTest.cc
  13338. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13339. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  13340. after the download finishes.
  13341. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13342. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  13343. the data smaller than block length.
  13344. A block length can be specified by constructor's argument.
  13345. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  13346. Get a missing piece in the range of given FileEntry. This function is
  13347. not used in the program yet.
  13348. * src/Util.h: Added some macros.
  13349. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13350. Added HTTP/1.1 keep alive and pipelining support.
  13351. See --enable-http-keep-alive and --enable-http-pipelining option.
  13352. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  13353. Segment.
  13354. * src/HttpDownloadCommand.{h, cc}
  13355. * src/OptionHandlerFactory.cc
  13356. * src/HttpConnection.{h, cc}
  13357. * src/version_usage.cc
  13358. * src/HttpInitiateConnectionCommand.cc
  13359. * src/FtpInitiateConnectionCommand.cc
  13360. * src/Segment.h
  13361. * src/HttpRequestCommand.{h, cc}
  13362. * src/option_processing.cc
  13363. * src/prefs.h
  13364. * src/HttpResponseCommand.cc
  13365. * src/SegmentMan.{h, cc}
  13366. * src/FtpNegotiateCommand.cc
  13367. * src/HttpProxyResponseCommand.cc
  13368. * src/Request.cc
  13369. * src/HttpRequest.cc
  13370. * src/DownloadCommand.cc
  13371. * test/HttpRequestTest.cc
  13372. * test/RequestTest.cc
  13373. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13374. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  13375. finished.
  13376. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13377. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  13378. catching it inside the method.
  13379. When no file entry is found in a metalink without querying user
  13380. preferences, throw the exception with the error message that suggests
  13381. metalink file is probably broken.
  13382. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  13383. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13384. Fixed the bug that prevents remote Metalink/Torrent file from begin
  13385. processed.
  13386. * src/RequestGroupMan.cc (removeStoppedGroup)
  13387. Added debug message.
  13388. * src/BtPostDownloadHandler.cc
  13389. * src/MetalinkPostDownloadHandler.cc
  13390. * src/PostDownloadHandler.{h, cc}
  13391. * src/RequestGroup.cc
  13392. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13393. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  13394. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13395. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  13396. stops and there are any unfinished or in-progress downloads.
  13397. Added the legend of "stat".
  13398. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13399. Throw exception when chunck checksum verification fails.
  13400. * src/DownloadCommand.cc (validatePieceHash): New function.
  13401. * src/PiecedSegment.{h, cc} (clear): New function.
  13402. * src/GrowSegment.{h, cc} (clear): New function.
  13403. * src/Segment.h (clear): New function.
  13404. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  13405. * test/SegmentTest.cc
  13406. * test/GrowSegmentTest.cc
  13407. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13408. Do not send referer when redirected.
  13409. * src/Request.cc (redirectUrl)
  13410. * test/RequestTest.cc
  13411. * test/HttpRequestTest.cc
  13412. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13413. Implemented BitTorrent/http/ftp integrated download.
  13414. I've rewritten lots of files and now some headers have forward
  13415. class declarations to reduce compile time.
  13416. The implementation is extremely alpha stage, I recommend to use this
  13417. for testing purpose only.
  13418. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13419. Fixed the compilation error on 64bit platform.
  13420. * test/HttpHeaderProcessorTest.cc
  13421. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13422. Merged Ross's patch that fixes compilation problem in MinGW
  13423. * test/DefaultBtProgressInfoFileTest.cc
  13424. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13425. Updated fr.po by sebone
  13426. * po/fr.po
  13427. Updated man page.
  13428. * doc/aria2c.1.txt
  13429. * Release 0.11.3
  13430. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13431. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  13432. failure in Metalink.
  13433. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13434. Automatically save *.aria2 control file of http/ftp download in every
  13435. 60 seconds.
  13436. * src/AutoSaveCommand.{h, cc}: New class.
  13437. * src/TimeBasedCommand.{h, cc}: New class.
  13438. * src/DownloadEngineFactory.cc (newConsoleEngine)
  13439. Disable parameterized URI support by default. Added -P option to
  13440. enable the feature.
  13441. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  13442. * src/OptionHandlerFactory.cc
  13443. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  13444. Updated Japanese translation.
  13445. * po/ja.po
  13446. Updated man page.
  13447. * doc/aria2c.1.txt
  13448. * Release 0.11.3-rc
  13449. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13450. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  13451. it is successful, then renamed to *.aria2.
  13452. This prevents *.aria2 file from being truncated or corrupted when
  13453. file system becomes out of space.
  13454. * src/DefaultBtProgressInfoFile.cc (save)
  13455. * src/SegmentMan.cc (save)
  13456. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  13457. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13458. Reduced the fragmentation of bitfield in http/ftp download.
  13459. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  13460. * test/BitfieldManTest.cc
  13461. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13462. Added the ability to disable segmented download in .metalink.
  13463. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  13464. 'url' tag.
  13465. * src/MetalinkEntry.{h, cc}
  13466. * src/RequestResource.{h, cc}
  13467. * src/MetalinkRequestInfo.cc
  13468. * src/Xml2MetalinkProcessor.cc
  13469. * test/Xml2MetalinkProcessorTest.cc
  13470. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13471. Added parameterized URI support.
  13472. * src/main.cc: -Z option added.
  13473. * src/OptionHandlerFactory.cc
  13474. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  13475. * src/PStringDatum.h: New class.
  13476. * src/PStringSegment.{h,cc}: New class.
  13477. * src/PStringNumLoop.h: New class.
  13478. * src/PStringSelect.h: New class.
  13479. * src/NumberDecorator.h: New class.
  13480. * src/FixedWidthNumberDecorator.h: New class.
  13481. * src/AlphaNumberDecorator.h: New class.
  13482. * src/PStringVisitor.h: New class.
  13483. * src/PStringBuildVisitor.{h,cc}: New class.
  13484. * src/ParameterizedStringParser.{h,cc}: New class.
  13485. * src/Util.{h,cc}
  13486. (isNumber): New function.
  13487. (isLowercase): New function.
  13488. (isUppercase): New function.
  13489. (alphaToNum): New function.
  13490. * test/ParameterizedStringParserTest.cc: New class.
  13491. * test/AlphaNumberDecoratorTest.cc: New class.
  13492. * test/PStringBuildVisitorTest.cc: New class.
  13493. * test/UtilTest.cc
  13494. (testIsNumber): New function.
  13495. (testIsLowercase): New function.
  13496. (testIsUppercase): New function.
  13497. (testAlphaToNum): New function.
  13498. Added '\n' after the error message
  13499. * src/RequestInfo.h (printDownloadAbortMessage)
  13500. Added auto file renaming feature in http(s)/ftp download.
  13501. * src/main.cc: Added --auto-file-renaming command-line option.
  13502. * src/OptionHandlerFactory.cc
  13503. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  13504. * src/RequestGroup.{h, cc}
  13505. (shouldCancelDownloadForSafety): Rewritten
  13506. (tryAutoFileRenaming): New function.
  13507. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  13508. * src/HttpResponseCommand.cc
  13509. (executeInternal): Removed the call to RequestGroupMan::
  13510. isSameFileBeingDownloaded()
  13511. * src/FtpNegotiateCommand.cc
  13512. (recvSize): Removed the call to RequestGroupMan::
  13513. isSameFileBeingDownloaded()
  13514. * test/RequestGroupTest.cc: New class.
  13515. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13516. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  13517. IO.
  13518. * src/DefaultBtProgressInfoFile.cc
  13519. * src/MetaFileUtil.cc
  13520. * src/SimpleLogger.cc
  13521. * src/SegmentMan.cc
  13522. * src/Util.cc
  13523. * src/Platform.cc
  13524. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13525. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  13526. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13527. Avoid sparse files if possible, because VFAT32 doesn't support it.
  13528. * src/DefaultDiskWriter.cc (initAndOpenFile)
  13529. Fixed the bug that prevents file allocation is not done when
  13530. dowloading multi-torrent file.
  13531. * src/AbstractDiskWriter.cc (openFile)
  13532. Increase the maximum number of -j option from 15 to 45.
  13533. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13534. Added fr.po, thanks to Charles Landemaine.
  13535. * po/fr.po
  13536. * po/LINGUAS
  13537. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13538. gcc 3.4.4 support:
  13539. * src/DefaultBtContext.cc: int32_t -> int
  13540. * src/main.cc: int -> int32_t, int32_t -> int
  13541. * src/messageDigest.h: uint32_t -> unsigned int
  13542. * src/NameResolver.h: int32_t -> int
  13543. * src/PeerConnection.cc: int -> int32_t
  13544. * src/SpeedCalc.cc: int32_t -> int
  13545. * src/TrackerUpdateCommand.h: int -> int32_t
  13546. * src/Util.cc: int32_t -> int
  13547. * src/Util.h: int32_t -> int
  13548. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13549. * test/AnnounceListTest.cc: int -> int32_t
  13550. * test/ChunkedEncodingTest.cc: int -> int32_t
  13551. * test/DataTest.cc: int -> int32_t
  13552. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13553. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13554. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13555. * test/FeatureConfigTest.cc: int -> int32_t
  13556. * test/MetalinkEntryTest.cc: int -> int32_t
  13557. * test/MockBtRequestFactory.h: int -> int32_t
  13558. * test/MockPieceStorage.h: int -> int32_t
  13559. * test/OptionTest.cc: int -> int32_t
  13560. * test/RequestTest.cc: int -> int32_t
  13561. * test/SegmentManTest.cc: int -> int32_t
  13562. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13563. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13564. Move sleep functions to Util class:
  13565. * src/Util.cc
  13566. (sleep): New function.
  13567. (usleep): New function.
  13568. * src/DownloadCommand.cc: sleep -> Util::sleep
  13569. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13570. MinGW build enhancements. The following files are added:
  13571. * src/timegm.{c,h}
  13572. Changes to support the above new files:
  13573. * configure.ac
  13574. * src/Makefile.am
  13575. * src/a2time.h
  13576. * src/Util.cc:
  13577. * src/strptime.c: Added support for %Z option.
  13578. Fixed MinGW non-blocking bug.
  13579. * src/SocketCore.cc
  13580. * src/HttpRequestCommand.cc
  13581. Miscellenous build fixes/enhancements.
  13582. * configure.ac: Added summary report.
  13583. * src/Platform.h: Tweaked #include's.
  13584. * src/a2netcompat.h: Tweaked #include's.
  13585. * src/strptime.h: Tweaked #include's.
  13586. * src/gai_strerror.c: Tweaked #include's.
  13587. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13588. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13589. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13590. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13591. Increased the initial connection size in BitTorrent download to 40.
  13592. * src/BtRuntime.h
  13593. Added the usage message of --peer-id-prefix option.
  13594. * src/main.cc
  13595. * Release 0.11.2
  13596. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13597. MessageDigestHelper is introduced in order to simplify the use
  13598. of message digest. Removed repeated code.
  13599. The message digest algorithm is now specified by string, like "sha1",
  13600. "md5".
  13601. * src/messageDigest.{h, cc}
  13602. * src/MessageDigestHelper.{h, cc}: New class.
  13603. * src/DefaultPieceStorage.cc
  13604. * src/DefaultBtContext.{h, cc}
  13605. (computeFastSet): New function.
  13606. (setInfoHash): Added for unit testing.
  13607. (setNumPieces): Added for unit testing.
  13608. * src/DefaultBtInteractive.cc
  13609. * src/BtPieceMessage.cc
  13610. * src/Peer.cc
  13611. * src/Checksum.h
  13612. * src/message.h
  13613. * src/IteratableChecksumValidator.h
  13614. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  13615. inside it.
  13616. * src/SegmentMan.{h, cc}
  13617. (checkIntegrity): Removed.
  13618. * src/IteratableChunkChecksumValidator.{h, cc}
  13619. * src/Util.h
  13620. (sha1Sum): Removed.
  13621. (simpleMessageDigest): Removed.
  13622. (fileChecksum): Removed.
  13623. (computeFastSet): Removed.
  13624. * src/ShaVisitor.cc
  13625. * src/ChunkChecksum.h
  13626. * src/DownloadCommand.cc
  13627. Removed messageDigest virtual functions.
  13628. * src/MultiDiskAdaptor.{h, cc}
  13629. * src/DiskAdaptor.h
  13630. * src/ByteArrayDiskWriter.h
  13631. * src/DiskWriter.h
  13632. * src/DiskAdaptorWriter.h
  13633. * src/AbstractSingleDiskAdaptor.{h, cc}
  13634. * src/AbstractDiskWriter.{h, cc}
  13635. Fixed comilation error when message digest is disabled.
  13636. * src/MetalinkEntry.{h, cc}
  13637. * src/MetalinkRequestInfo.cc
  13638. Removed srandom and random.
  13639. * src/SimpleRandomizer.h
  13640. Added size() virtual function to DiskAdaptor
  13641. * src/MultiDiskAdaptor.h
  13642. Fixed the bug that causes that files are not opened correctly in
  13643. multi-file torrent.
  13644. * src/TorrentRequestInfo.cc
  13645. * src/MultiDiskAdaptor.cc
  13646. Added SHA256 support
  13647. * src/messageDigest.cc
  13648. * src/Xml2MetalinkProcessor.cc
  13649. Show supported message digest algorithms
  13650. * src/main.cc
  13651. Updated contact info.
  13652. * src/main.cc
  13653. Applied Ross's patch
  13654. * src/a2netcompat.h
  13655. * src/main.cc
  13656. Fixed the bug that prevents a remote metalink from not being processed
  13657. even if '-o foo.metalink' is specified.
  13658. * src/MetalinkRequestInfo.cc
  13659. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13660. Merged Dan's patch:
  13661. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  13662. Use va_copy to avoid core dump on amd64:
  13663. * src/SimpleLogger.cc
  13664. Updated contact info.
  13665. * src/main.cc
  13666. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13667. digest is not available.
  13668. * src/MetalinkEntry.h
  13669. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13670. Make a2netcompat.h include a2io.h to fix compilation error:
  13671. * src/a2netcompat.h
  13672. * src/SocketCore.cc: Removed include of a2io.h
  13673. * src/Util.cc: Removed include of a2io.h
  13674. Gather time related functions to a2time.h:
  13675. * src/a2time.h: New file.
  13676. * src/DefaultPeerStorage.cc
  13677. * src/SimpleLogger.cc
  13678. * src/Util.{h, cc}
  13679. * src/SimpleRandomizer.h
  13680. * src/TimeA2.{h,cc}
  13681. * src/DownloadCommand.cc
  13682. * src/main.cc
  13683. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13684. a2netcompat.h:
  13685. * src/NameResolver.cc
  13686. Fixed compilation error without openssl:
  13687. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13688. Added default block to suppress compiler warnings:
  13689. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13690. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13691. MinGW build enhancements. The following files are added:
  13692. * src/gai_strerror.{c,h}
  13693. * src/gettimeofday.{c,h}
  13694. Changes to support the above new files:
  13695. * configure.ac
  13696. * src/Makefile.am
  13697. * src/a2netcompat.h
  13698. * src/TimeA2.cc
  13699. * src/DefaultPeerStorage.cc
  13700. * src/NameResolver.cc: removed mingw_strerror() function.
  13701. * src/SocketCore.cc: removed mingw_strerror() function.
  13702. Miscellaneous MinGW build fixes.
  13703. * src/a2io.h: Use _lseeki64() instead of lseek()
  13704. * src/common.h
  13705. * src/DefaultFileAllocator.cc
  13706. * src/GlowFileAllocator.cc
  13707. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13708. * src/NameResolver.cc
  13709. (callback): Changed int32_t to int.
  13710. (resolve): Changed int32_t to int.
  13711. * src/Platform.cc
  13712. * src/Platform.h
  13713. * test/MultiDiskWriterTest.cc
  13714. * test/PeerMessageUtilTest.cc
  13715. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13716. Other enhancements and fixes.
  13717. * src/HttpRequestCommand.cc
  13718. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13719. * src/SocketCore.cc:
  13720. (error): New function to abstract errno/WSAGetLastError().
  13721. (errorMsg): New function to abstract errno/WSAGetLastError().
  13722. (initiateSecureConnection): Added more detailed error reporting.
  13723. * src/SocketCore.h: Added private variable blocking, to allow
  13724. proper handling of OpenSSL psuedo-errors.
  13725. * src/message.h
  13726. (EX_SSL_INIT_FAILURE)
  13727. (EX_SSL_IO_ERROR)
  13728. (EX_SSL_PROTOCOL_ERROR)
  13729. (EX_SSL_UNKNOWN_ERROR)
  13730. (EX_SSL_CONNECT_ERROR)
  13731. (EX_SOCKET_BLOCKING)
  13732. (EX_SOCKET_NONBLOCKING)
  13733. (EX_SOCKET_UNKNOWN_ERROR)
  13734. * src/Util.cc
  13735. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13736. reserved name.
  13737. (httpGMT): Fixed typo.
  13738. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13739. Merged Ross's win32 patch(manually)
  13740. In the course of merging, following files are added.
  13741. * src/strptime.{h,c}
  13742. * src/libgen.{h,c}
  13743. * src/inet_aton.{h,c}
  13744. * src/Platform.{h,cc}
  13745. * src/localtime_r.{h,c}
  13746. * src/getaddrinfo.{h,c}
  13747. I've gethered network related things, and put them to following file:
  13748. * src/a2netcompat.h
  13749. Also io related things are put to following file:
  13750. * src/a2io.h
  13751. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13752. * src/message.h
  13753. (MSG_ALLOCATION_COMPLETED)
  13754. (EX_TOO_LARGE_FILE)
  13755. (EX_SIZE_MISMATCH)
  13756. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13757. (EX_INVALID_CHUNK_CHECKSUM)
  13758. (EX_INVALID_RANGE_HEADER)
  13759. * src/FileAllocationCommand.cc
  13760. * src/HttpResponse.cc
  13761. * src/RequestGroup.cc
  13762. * src/MultiDiskAdaptor.cc
  13763. * src/OptionHandlerImpl.h
  13764. * src/HttpResponseCommand.cc
  13765. * src/FtpNegotiateCommand.cc
  13766. * src/IteratableChecksumValidator.cc
  13767. * src/SegmentMan.cc
  13768. * src/ChunkChecksumValidator.cc
  13769. Added Randomizer::getRandomNumber(long int)
  13770. * src/Randomizer.h (getRandomNumber)
  13771. * src/SimpleRandomizer.h (getRandomNumber)
  13772. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13773. * src/Util.cc (randomAlpha): Use this new function.
  13774. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13775. Converted int's to in32_t. long long int's are also converted to
  13776. int64_t
  13777. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13778. Fixed the bug that prevents cookies from being sent to the server
  13779. if the domain of cookie is FQDN and starts with ".".
  13780. * src/Cookie.cc (match)
  13781. To add the ability to change peer id.
  13782. * src/DefaultBtContext.h
  13783. (_peerIdPrefix): New variable
  13784. (setPeerIdPrefix): New function.
  13785. * src/torrentRequestInfo.cc
  13786. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13787. DefaultBtContext.
  13788. * src/main.cc (main): Added peer-id-prefix command-line option.
  13789. The usage message is not added yet.
  13790. * src/DefaultBtContext.cc
  13791. (generatePeerId): Use _peerIdPrefix.
  13792. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13793. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13794. Fixed the bug that prevents filename in content-disposition from
  13795. being retrieved when filename is not quoted.
  13796. * src/Util.cc (getContentDispositionFilename)
  13797. Fixed the bug that causes infinate loop and memory leak when file open
  13798. operation failed.
  13799. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13800. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13801. Fixed the bug that causes segfault when all URIs specified are
  13802. unsupported.
  13803. * src/RequestGroupMan.cc (getInitialCommands)
  13804. Check if RequestGroup::createNextCommand() returns empty list of
  13805. commands.
  13806. * src/RequestGroup.cc (createNextCommand)
  13807. Change log level from info to error so that users can notice that
  13808. an error occurred.
  13809. Fixed the bug that causes segfault when a zero-sized file is
  13810. downloaded.
  13811. * src/BitfieldMan.cc (isAllBitSet)
  13812. Return true if bitfieldLength is 0.
  13813. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13814. * src/main.cc
  13815. (showUsage): Added 3 usage examples for metalink download.
  13816. Replace MetalinkChunkChecksum with ChunkChecksum.
  13817. * src/MetalinkChunkChecksum.h: Removed.
  13818. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13819. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13820. * src/Xml2MetalinkProcessor.cc
  13821. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13822. * src/MetalinkRequestInfo.cc (execute)
  13823. * Release 0.11.1
  13824. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13825. Reads URIs from stdin when "-i -" is specified.
  13826. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13827. * src/UriListParser.h, src/UriListParser.cc: New class.
  13828. * src/StreamUriListParser.h: New class.
  13829. * src/FileUriListParser.h: New class.
  13830. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13831. instead of UriFileListParser.
  13832. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13833. Made console readout more readable.
  13834. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13835. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13836. Fix the bug that causes -s option not to work.
  13837. * src/main.cc (main)
  13838. * src/a2algo.h: New file.
  13839. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13840. Create directory structure specified in metalink file.
  13841. * src/RequestGroup.h, src/RequestGroup.cc
  13842. (initAndOpenFile): Create a directory to store files if it does not
  13843. exist.
  13844. (getDir): New function.
  13845. Added ETA and download speed for an individual file to readout.
  13846. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13847. * src/RequestGroup.h
  13848. (calculateDownloadSpeed): New function.
  13849. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13850. Made -S option work with metalink file and provided selective download
  13851. to metalink.
  13852. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13853. (filename): Removed.
  13854. (file): New variable.
  13855. (size): Removed.
  13856. (operator=): Updated.
  13857. (getPath): New function.
  13858. (getLength): New function.
  13859. (toFileEntry): New function.
  13860. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13861. (execute): Use toStream.
  13862. (showFileEntry): Removed.
  13863. * src/MetalinkRequestInfo.h
  13864. (targetFiles): New variable.
  13865. (setTargetFiles): New variable.
  13866. * src/MetalinkRequestInfo.cc
  13867. (execute): Added the ability to print file information included in
  13868. a metalink file.
  13869. Added selective download mode to metalink.
  13870. * src/main.cc
  13871. (showUsage): Updated to denote that -S and --select-file options are
  13872. applicable to metalink.
  13873. * src/FileEntry.h
  13874. (operator=): New function.
  13875. (getBasename): New function.
  13876. (getDirname): New function.
  13877. * src/Util.h, src/Util.cc
  13878. (toStream): New function.
  13879. * src/Xml2MetalinkProcessor.cc: Updated.
  13880. Made aria2 work with metalink with directory structure.
  13881. * src/File.h, src/File.cc
  13882. (getBasename): New function.
  13883. (getDirname): New function.
  13884. * src/RequestGroup.h, src/RequestGroup.cc
  13885. (_topDir): New variable.
  13886. (setTopDir): New function.
  13887. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13888. Rewrote HTTP header parsing with stringstream.
  13889. * src/HttpConnection.h, src/HttpConnection.cc
  13890. (HttpRequestEntry): New class.
  13891. (headerBuf): Removed.
  13892. (headerBufLength): Removed.
  13893. (outstandingHttpRequests): Now its element type is
  13894. HttpRequestEntryHandle.
  13895. (findEndOfHeader): Removed.
  13896. (receiveResponse): Rewritten.
  13897. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13898. Updated doc for -j option to notice that it should be used with -i
  13899. option.
  13900. * src/main.cc (showUsage)
  13901. Removed unused classes.
  13902. * src/RequestInfo.h
  13903. (FileInfo): Removed.
  13904. (checksum): Removed.
  13905. (fileInfo): Removed.
  13906. (setChecksum): Removed.
  13907. (getChecksum): Removed.
  13908. (getFileInfo): Removed.
  13909. Use ISO units.
  13910. * src/ConsoleDownloadEngine.cc
  13911. * src/TorrentConsoleDownloadEngine.cc
  13912. * src/Util.cc (abbrevSize)
  13913. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13914. Added the default listening ports to the help message.
  13915. * src/main.cc (showUsage)
  13916. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13917. Reduce the number of calls to gettimeofday to lower CPU load.
  13918. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13919. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13920. * src/Peer.h (calculateUploadSpeed): New function.
  13921. (calculateDownloadSpeed): New function.
  13922. * src/DefaultPeerStorage.cc
  13923. (CalculateStat): Added _now variable.
  13924. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13925. and Peer::calculateUploadSpeed(const struct timeval&)
  13926. Drop connection if no request or piece message is exchanged in
  13927. a certain interval.
  13928. * src/DefaultBtInteractive.h
  13929. (btRuntime): New variable.
  13930. (inactiveCheckPoint): New variable.
  13931. (checkActiveInteraction): New function.
  13932. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13933. request or piece message is received.
  13934. (checkActiveInteraction): New function.
  13935. (doInteractionProcessing): Call checkActiveInteraction.
  13936. Fixed the bug that causes remote Metalink and Torrent files are not
  13937. processed.
  13938. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13939. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13940. Changed format of log file.
  13941. * src/SimpleLogger.cc
  13942. * Release 0.11.0
  13943. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13944. * src/AbstractCommand.cc
  13945. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13946. MSG_MAX_TRY from error to info.
  13947. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13948. * src/message.h
  13949. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13950. (MSG_DOWNLOAD_ABORTED): Added %s.
  13951. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13952. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13953. * src/PeerAbstractCommand.cc
  13954. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13955. * src/Request.h
  13956. (cookieBox): Made ShardHandle.
  13957. * src/RequestGroup.h, src/RequestGroup.cc
  13958. (createNextCommandWithAdj): New function.
  13959. * src/FileAllocationCommand.cc
  13960. (executeInternal): Use createNextCommandWithAdj().
  13961. * src/CheckIntegrityCommand.cc
  13962. (executeInternal): Use createNextCommandWithAdj().
  13963. Added --load-cookies command-option.
  13964. * src/OptionHandlerFactory.cc
  13965. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13966. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13967. Now aria2 can handle cookie's expiration date.
  13968. * src/Cookie.h (expires): Changed its type to time_t.
  13969. * src/main.cc: Added --load-cookies command-line option.
  13970. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13971. * src/Util.h, src/Util.cc (httpGMT): New function.
  13972. * src/Request.cc (Request): Initialize cookieBox using
  13973. CookieBoxFactory.
  13974. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13975. * src/CookieParser.h, src/CookieParser.cc: New class.
  13976. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13977. * src/HttpResponseCommand.cc
  13978. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13979. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13980. download.
  13981. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13982. Added -j command-line option.
  13983. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13984. * src/main.cc
  13985. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13986. Rewritten using stringstream.
  13987. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13988. Rewritten using stringstream.
  13989. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13990. Make download size shown in MB, KB.
  13991. * src/ConsoleDownloadEngine.h (sendStatistics)
  13992. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13993. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13994. Accept incoming connections if download rate is low.
  13995. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13996. (_lowestSpeedLimit): New variable.
  13997. (setLowestSpeedLimit): New function.
  13998. (execute): Accept incoming connections if download rate is low.
  13999. MAX_PEERS is ignored in this case.
  14000. Disable PREF_OUT in multiple concurrent download:
  14001. * src/RequestGroup.h, src/RequestGroup.cc
  14002. (setUserDefinedFilename): New function.
  14003. * src/DownloadEngineFactory.cc
  14004. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  14005. concurrent download.
  14006. * src/DefaultSegmentManFactory.cc
  14007. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  14008. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14009. RequestGroup::getNextCommand() was renamed to createNextCommand().
  14010. Added its overloaded method.
  14011. * src/RequestGroup.h
  14012. (_numConcurrentCommand): New variable.
  14013. (setNumConcurrentCommand): New function.
  14014. * src/RequestGroup.cc
  14015. Abort download if same file is being downloaded concurrently.
  14016. * src/RequestGroup.h, src/RequestGroupMan.cc
  14017. (isSameFileBeingDownloaded): New function.
  14018. * src/HttpResponseCommand.cc (executeInternal)
  14019. * src/FtpNegotiateCommand.cc (recvSize)
  14020. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  14021. * main.cc: Added help message for -i option.
  14022. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14023. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  14024. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  14025. * src/MetalinkEntry.h
  14026. (checksum): Changed to ChecksumHandle
  14027. * src/MetalinkRequestInfo.cc
  14028. (checksum): Changed to ChecksumHandle
  14029. * src/File.cc
  14030. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  14031. * src/common.h
  14032. (DIR_OPEN_MODE): New definition
  14033. * src/RequestGroup.cc
  14034. (prepareForNextAction): Added an argument.
  14035. * src/message.h
  14036. (MSG_GOOD_CHECKSUM): New definition
  14037. (MSG_BAD_CHECKSUM): New definition
  14038. * src/HttpResponseCommand.cc
  14039. (handleDefaultEncoding): Continue download sequence in new
  14040. non-segmented download.
  14041. * src/FileAllocationEntry.h
  14042. (_nextDownloadCommand): New variable.
  14043. * src/DownloadCommand.cc
  14044. (prepareForNextSegment): Create ChecksumCommand if checksum is
  14045. available.
  14046. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  14047. * src/IteratableChecksumValidator.h,
  14048. src/IteratableChecksumValidator.cc: New class.
  14049. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  14050. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14051. Change file mode to 666:
  14052. * src/common.h (OPEN_MODE): New definition.
  14053. * src/File.cc
  14054. * src/Util.cc
  14055. * src/Directry.cc
  14056. * src/AbstractDiskWriter.cc
  14057. Change the level of log message "download aborted" to debug:
  14058. * src/PeerAbstractCommand.cc (execute)
  14059. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  14060. * src/TrackerWatcherCommand.cc
  14061. (createCommand): Sleep some seconds after request failed.
  14062. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  14063. then abort tracker request.
  14064. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14065. * Added the simultaneous download feature.
  14066. * src/main.cc: Print "Exception caught: " when exception is caught.
  14067. Use CUIDCounter instead of BtRuntime::getNewCuid():
  14068. * src/ActivePeerConnectionCommand.cc
  14069. * src/PeerInteractionCommand.cc
  14070. * src/BtRuntime.h
  14071. (cuidCounter): Removed.
  14072. (getNewCuid): Removed.
  14073. * src/DownloadEngineFactory.cc
  14074. * src/PeerListenCommand.cc
  14075. * src/TrackerUpdateCommand.cc
  14076. * src/PeerInitiateConnectionCommand.cc
  14077. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14078. * src/PeerAbstractCommand.cc
  14079. (onAbort): Call PeerStorage::returnPeer()
  14080. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  14081. (incomingPeers): New variable.
  14082. (addIncomingPeer): New function.
  14083. (returnPeer): New function.
  14084. (onErasingPeer): New function.
  14085. (addPeer): push_back -> push_front
  14086. (getActivePeers): Rewritten.
  14087. (calculateStat): Rewritten.
  14088. * src/PeerStorage.h
  14089. (TransferStat::copy): New function.
  14090. (TransferStat::TransferStat): New function.
  14091. (TransferStat::operator=): New function.
  14092. (addIncomingPeer): New function.
  14093. (returnPeer): New function.
  14094. * src/PeerListenCommand.cc
  14095. (execute): Use PeerStorage::addIncomingPeer() instead of
  14096. Peer::addPeer().
  14097. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14098. Connect to a peer actively when download speed is lower than specified
  14099. speed in torrent download:
  14100. * src/ActivePeerConnectionCommand.h: New class.
  14101. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14102. * src/HttpRequest.cc (createRequest): url-encode user-agent
  14103. * src/main.cc: Fixed the bug that prevents download if .netrc
  14104. doesn't exist.
  14105. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14106. To cache resolved hostname:
  14107. * src/AbstractCommand.h, src/AbstractCommand.cc
  14108. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  14109. Added dns cache.
  14110. * src/FtpInitiateConnectionCommand.cc
  14111. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  14112. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  14113. NameResolver working without ares.
  14114. * src/TorrentRequestInfo.cc
  14115. (execute): Don't cache dns in torrent download.
  14116. * src/HttpInitiateConnectionCommand.cc
  14117. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  14118. * src/DNSCache.h: New class.
  14119. * src/UrlRequestInfo.cc
  14120. (execute): Use dns cache.
  14121. In http request, suppress port number in http request header if port
  14122. is 80 or 443:
  14123. * src/HttpRequest.cc (getHostText): Suppress port number in http
  14124. request header if port is 80 or 443.
  14125. (createProxyRequest): Allways send port number.
  14126. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14127. To add the command-line option which disables netrc support:
  14128. * src/OptionHandlerFactory.cc
  14129. (createOptionHandlers): Added PREF_NO_NETRC.
  14130. * src/main.cc: Added -n option.
  14131. * src/prefs.h (PREF_NO_NETRC): New definition.
  14132. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  14133. V_TRUE.
  14134. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  14135. is V_FALSE. This may get configurable in the future release.
  14136. To clear peer's error status by time basis:
  14137. * src/PeerAbstractCommand.cc
  14138. (onAbort): Call Peer::startBadCondition().
  14139. * src/Peer.h, src/Peer.cc
  14140. (error): Removed.
  14141. (_badConditionStartTime): New variable.
  14142. (_badConditionInterval): New variable. Initialized to 10 seconds.
  14143. (startBadCondition): New function.
  14144. (isGood): New function.
  14145. * src/DefaultPeerStorage.cc
  14146. (addPeer): Use Peer::isGood().
  14147. (FindFinePeer): Use Peer::isGood().
  14148. Always include port number in http request header:
  14149. * src/HttpRequest.cc (getHostText): Always include port number in
  14150. http request header.
  14151. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14152. To the ability to read options from a config file:
  14153. * src/main.cc: Command-line parameter validation is delegated to
  14154. OptionHandler class.
  14155. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  14156. * src/Option.h, src/Option.cc (clear): New function.
  14157. * src/OptionParser.h, src/OptionParser.cc: New class.
  14158. * src/OptionHandler.h: New class.
  14159. * src/NameMatchOptionHandler.h: New class.
  14160. * src/OptionHandlerImpl.h: New classes.
  14161. * src/prefs.h: '_' -> '-'
  14162. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  14163. (FTP_PASV): New definition.
  14164. * src/Util.h, src/Util.cc (getRealSize): New function.
  14165. To disable netrc support if .netrc file does not have correct
  14166. permissions:
  14167. * src/File.h, src/File.cc (mode): New function.
  14168. To prevent confidential information to be logged:
  14169. * src/HttpConnection.h, src/HttpConnection.cc
  14170. (eraseConfidentialInfo): New function.
  14171. (sendRequest): Call eraseConfidentialInfo().
  14172. (sendProxyRequest): Call eraseConfidentialInfo().
  14173. * src/main.cc: Validate permissions of .netrc file.
  14174. To add --user-agent command-line option:
  14175. * src/main.cc: Added new command line option: --user-agent
  14176. * src/prefs.h (PREF_USER_AGENT): New definition.
  14177. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  14178. parameter to HttpRequest object.
  14179. * src/AbstractProxyRequestCommand.cc
  14180. (executeInternal): Set user-agent option parameter to HttpRequest
  14181. object.
  14182. Marged the patches from Dan Fandrich.
  14183. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14184. Use filename and size from Metalink file instead of sending HEAD
  14185. request:
  14186. * src/UrlRequestInfo.h
  14187. (_filename): New variable.
  14188. (_totalLength): New variable.
  14189. (setTotalLength): New variable.
  14190. (setFilename): New variable.
  14191. * src/MetalinkRequestInfo.cc
  14192. (execute): Set filename and size to UrlRequestInfo
  14193. * src/UrlRequestInfo.cc
  14194. (execute): Use filename and size from Metalink instead of seding
  14195. HEAD request to servers.
  14196. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14197. To add the ability to resume downloading a partially downloaded file
  14198. which is downloaded from the beginning:
  14199. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  14200. takes this role.
  14201. * src/main.cc: Added -c option.
  14202. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  14203. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  14204. * src/prefs.h (PREF_CONTINUE): New definition.
  14205. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  14206. * src/DefaultDiskWriter.cc
  14207. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  14208. * src/AbstractDiskWriter.h
  14209. (glowFileAllocator): New variable.
  14210. * src/AbstractDiskWriter.cc
  14211. (openExistingFile): Now preallocate file space from the end of the
  14212. existing file if totalLength argument is specified and grater than 0.
  14213. * src/UrlRequestInfo.cc: If -c option is specified and the file
  14214. to download exists in local, continue the download of the file.
  14215. --allow-overwrite=true is assumed in this context.
  14216. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  14217. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  14218. Throw exception if --check-integrity=true is specified but chunk
  14219. checksums are not provided:
  14220. * src/UrlRequestInfo.cc
  14221. Do not print URLs to stdout:
  14222. * src/UrlRequestInfo.cc
  14223. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14224. * src/Request.h: Use AuthResolver to get authentication information.
  14225. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  14226. set to RequestFactory object.
  14227. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  14228. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  14229. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  14230. create Request object.
  14231. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  14232. To integrate Netrc into exsiting classes:
  14233. * src/Request.h
  14234. (_userDefinedAuthConfig): New variable.
  14235. (findNetrcAuthenticator): New function.
  14236. (segment): Removed.
  14237. (setUserDefinedAuthConfig): New function.
  14238. (resolveHttpAuthConfigItem): New function.
  14239. (resolveFtpAuthConfigItem): New function.
  14240. (resolveHttpProxyAuthConfigItem): New function.
  14241. * src/HttpRequest.h
  14242. (authConfig): Removed.
  14243. (proxyAuthConfig): Removed.
  14244. (setAuthConfig): Removed.
  14245. (setProxyAuthConfig): Removed.
  14246. * src/UrlRequest.h
  14247. (getHeadResult): Added a parameter: authConfigHandle
  14248. * src/common.h
  14249. (SingletonHolder.h): New include.
  14250. * src/main.cc
  14251. (Netrc.h): New include.
  14252. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  14253. Added initial value of PREF_NETRC_PATH.
  14254. Added the initialization of netrc.
  14255. * src/AuthConfig.h: New class.
  14256. * src/prefs.h
  14257. (PREF_NETRC_PATH): New definition.
  14258. * src/HttpAuthConfig.h: Removed.
  14259. * src/Netrc.cc
  14260. (getRequiredNextToken): New function.
  14261. (skipMacdef): New function.
  14262. (parse): Rewritten.
  14263. * src/Netrc.h
  14264. (getRequiredNextToken): New function.
  14265. (skipMacdef): New function.
  14266. * src/Util.h, src/Util.cc
  14267. (getHomeDir): New function.
  14268. * src/TrackerWatcherComand.cc
  14269. (createRequestCommand): Use AuthConfig.
  14270. * src/FtpConnection.cc
  14271. (sendUser): Use Request::resolveFtpAuthConfigItem().
  14272. (sendPass): Use Request::resolveFtpAuthConfigItem().
  14273. * src/Request.cc
  14274. (findNetrcAuthenticator): New function.
  14275. (resolveHttpAuthConfigItem): New function.
  14276. (resolveFtpAuthConfigItem): New function.
  14277. (resolveHttpProxyAuthConfigItem): New function.
  14278. * src/UrlRequestInfo.cc: Use AuthConfig.
  14279. * src/HttpRequest.cc
  14280. (createRequest): Use authConfig.
  14281. (getProxyAuthString): Use authConfig.
  14282. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  14283. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  14284. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14285. To reduce overhead to find commands whose socket is either
  14286. readable or writable in the download engine loop:
  14287. * src/Command.h, src/Command.cc
  14288. (STATUS): New enum.
  14289. (status): New variable.
  14290. (statusMatch): New function.
  14291. (setStatusActive): New function.
  14292. (setStatusInactive): New function.
  14293. * src/DownloadEngine.h, src/DownloadEngine.cc
  14294. (executeCommand): New function.
  14295. (run): Simplified.
  14296. (waitData): Call Command::setStatusActive() when command's socket is
  14297. readable or writable.
  14298. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14299. To handle Segment as SegmentHandle:
  14300. * src/AbstractCommand.cc (execute): Rewritten.
  14301. * src/SegmentMan.h: Segment -> SegmentHandle
  14302. Introducded HttpResponse class, HttpRequest class to improve code
  14303. extensiveness and make it clear:
  14304. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  14305. HttpResponse class.
  14306. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  14307. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  14308. * src/HttpConnection.cc: Contruction of http request were moved to
  14309. HttpRequest class.
  14310. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  14311. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  14312. * src/HttpAuthConfig.h: New class.
  14313. * src/Range.h: New class.
  14314. To make FtpTunnel{Request, Response}Command and
  14315. HttpProxy{Request, Response}Command derived from
  14316. AbstractProxy{Request, Response}Command:
  14317. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  14318. Derived from AbstractProxyRequestCommand class.
  14319. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  14320. Derived from AbstractProxyResponseCommand class.
  14321. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  14322. Derived from AbstractProxyRequestCommand class.
  14323. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  14324. Derived from AbstractProxyResponseCommand class.
  14325. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  14326. : New class.
  14327. * src/AbstractProxyResponseCommand.h,
  14328. src/AbstractProxyResponseCommand.cc: New class.
  14329. To add netrc support:
  14330. * src/Netrc.h, src/Netrc.cc: New class.
  14331. * src/Util.h, src/Util.cc (split): New function.
  14332. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  14333. "Content-Range" header instead of "Range" header.
  14334. * src/HttpHeader.h
  14335. (getStatus): Removed.
  14336. (setStatus): Removed.
  14337. * src/Segment.h
  14338. (getPositionToWrite): New function.
  14339. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14340. * src/HttpHeader.h
  14341. (Range.h): New include.
  14342. (status): New variable.
  14343. (HttpHeader): Initialized status with 0.
  14344. (getStatus): New function.
  14345. (setStatus): New function.
  14346. (getRange): New function.
  14347. (HttpHeaderHandle): New function.
  14348. * src/HttpHeader.cc
  14349. (getRange): New function.
  14350. * src/Request.h
  14351. (RequestWeakHandle): New definition.
  14352. * src/HttpConnection.h
  14353. (HttpConnectionHandle): New type definition.
  14354. * src/HttpConnection.cc
  14355. (receiveResponse): Set HTTP status to headers.
  14356. * src/main.cc
  14357. (showUsage): Fixed typo.
  14358. * src/Segment.h
  14359. (SegmentHandle): New type definition.
  14360. * src/BitfieldMan.h
  14361. (getMissingUnusedLength): New function.
  14362. * src/BitfieldMan.cc
  14363. (getMissingUnusedLength): New function.
  14364. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14365. To fix static initialization order problem:
  14366. * src/BitfieldManFactory.h
  14367. (defaultRandomizer): Removed.
  14368. (factory): New variable.
  14369. (getNewFactory): Removed.
  14370. (getFactoryInstance): New function.
  14371. (setDefaultRandomizer): Rewritten.
  14372. (getDefaultRandomizer): Rewritten.
  14373. * src/BitfieldManFactory.cc
  14374. (defaultRandomizer): Removed.
  14375. (factory): Initialized to 0.
  14376. (BitfieldManFactory): Initialized randomizer to 0.
  14377. * src/DefaultPieceStorage.cc
  14378. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  14379. * src/Peer.cc
  14380. (Peer): getNewFactory() -> getFactoryInstance()
  14381. * src/SegmentMan.cc
  14382. (initBitfield): getNewFactory() -> getFactoryInstance()
  14383. * src/Piece.cc
  14384. (Piece): getNewFactory() -> getFactoryInstance()
  14385. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14386. To fix the bug that causes crash on Max OS X:
  14387. * src/SimpleRandomizer.h
  14388. (getInstance): Create new instance if the static variable is null.
  14389. * src/SimpleRandomizer.cc
  14390. (randomizer): Initialized to 0.
  14391. * src/BitfieldManFactory.h
  14392. (getNewFactory): Removed the call to setRandomizer().
  14393. To fix the miscalculation of the range of checksum:
  14394. * src/BitfieldMan.h
  14395. (isBitSetOffsetRange): New function.
  14396. * src/BitfieldMan.cc
  14397. (isBitSetOffsetRange): New function.
  14398. * src/SegmentMan.cc
  14399. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  14400. Use bitfield->getBlockLength() instead of segment.segmentLength.
  14401. * Release 0.10.1
  14402. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14403. To lower CPU usage in BitTorrent download when --max-upload-limit
  14404. command-line option specified:
  14405. * src/DefaultBtMessageDispatcher.cc
  14406. (sendMessages): Calculate uploading speed only when current message
  14407. is uploading data and is not sent yet.
  14408. * src/DefaultPeerStorage.h
  14409. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  14410. * src/HttpResponseCommand.cc
  14411. (handleDefaultEncoding): Added the cast to int32_t to itos.
  14412. This fixes compile error in Soralis 10.
  14413. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14414. To fix segfault in Metalink download:
  14415. * src/UrlRequestInfo.h
  14416. (filename): Removed.
  14417. (totalLength): Removed.
  14418. (setTotalLength): Removed.
  14419. (setFilename): Removed.
  14420. * src/MetalinkRequestInfo.cc
  14421. (execute): Do not set filename and totalLength to reqInfo.
  14422. Set chunk checksum to reqInfo if it is not null.
  14423. * src/HttpResponseCommand.cc
  14424. (executeInternal): Fixed filename in log.
  14425. (handleDefaultEncoding): Removed the call to initBitfield() and
  14426. markAllPiecesDone().
  14427. (handleOtherEncoding): Added HEAD method handling.
  14428. * src/FtpNegotiateCommand.cc
  14429. (executeInternal): Added SEQ_HEAD_OK handling.
  14430. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  14431. return false.
  14432. * src/FtpNegotiateCommand.h
  14433. (SEQ_HEAD_OK): New definition.
  14434. * src/SegmentMan.cc
  14435. (initBitfield): Delete bitfield.
  14436. (isChunkChecksumValidationReady): Fixed the condition.
  14437. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  14438. works fine.
  14439. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14440. * src/Xml2MetalinkProcessor.h
  14441. (xpathExists): New function.
  14442. * src/Xml2MetalinkProcessor.cc
  14443. (xpathExists): New function.
  14444. Not to send HEAD request if filename and size are available in Metalink
  14445. file:
  14446. * src/UrlRequestInfo.h
  14447. (filename): New variable.
  14448. (totalLength): New variable.
  14449. (setTotalLength): New function.
  14450. (setFilename): New function.
  14451. * src/MetalinkRequestInfo.cc
  14452. (execute): Set filename and size to UrlRequestInfo.
  14453. * src/MetalinkEntry.cc
  14454. (MetalinkEntry): Initialize size with 0.
  14455. * src/UrlRequestInfo.cc
  14456. (execute): Set filename and size to SegmentMan.
  14457. Not to download rest of the files after selected files are downloaded
  14458. in BitTorrent:
  14459. * src/PieceStorage.h
  14460. (allDownloadFinished): New function.
  14461. * src/DefaultBtAnnounce.cc
  14462. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  14463. downloadFinished.
  14464. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  14465. * src/DefaultPieceStorage.cc
  14466. (completePiece): Use allDownloadFinished instead of downloadFinished.
  14467. Commented out the call to finishSelectiveDownloadingMode().
  14468. (downloadFinished): Call isFilteredAllBitSet() instead of
  14469. isAllBitSet().
  14470. (allDownloadFinished): New function.
  14471. * src/DefaultBtInteractive.cc
  14472. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  14473. downloadFinished().
  14474. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  14475. * src/TorrentDownloadEngine.cc
  14476. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  14477. * src/BitfieldMan.h
  14478. (isFilteredAllBitSet): New function.
  14479. * src/ShareRatioSeedCriteria.h
  14480. (PieceStorage.h): New include.
  14481. (pieceStorage): New variable.
  14482. (evaluate):
  14483. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  14484. * src/BitfieldMan.cc
  14485. (isFilteredAllBitSet): New function.
  14486. (isAllBitSet): Filter is not took into account.
  14487. Rename --force-truncate as --allow-overwrite:
  14488. * src/TorrentRequestInfo.cc
  14489. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  14490. * src/main.cc
  14491. (showUsage): --force-truncate -> --allow-overwrite
  14492. * src/message.h
  14493. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  14494. * src/prefs.h
  14495. (PREF_FORCE_TRUNCATE): Removed.
  14496. (PREF_ALLOW_OVERWRITE): New definition.
  14497. * src/SegmentMan.cc
  14498. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  14499. * src/MetalinkRequestInfo.cc
  14500. (execute): Queueing message are now logged in info level.
  14501. * src/common.h
  14502. (LONG_LONG_MAX): Removed.
  14503. (LONG_LONG_MIN): Removed.
  14504. * src/HttpResponseCommand.cc
  14505. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  14506. * src/FtpNegotiateCommand.cc
  14507. (recvSize): LONG_LONG_MAX -> INT64_MAX
  14508. * src/main.cc
  14509. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  14510. command-line option.
  14511. (main): Added --check-integriy and --realtime-chunk-checksum
  14512. command-line option.
  14513. --force-truncate -> --allow-overwrite
  14514. Set initial value of --check-integrity option to false.
  14515. Don't show usage when error occurs while persing command-line options.
  14516. Removed deprecated --upload-limit option.
  14517. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14518. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  14519. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  14520. * src/BtAllowedFastMessage.cc:
  14521. * src/BtBitfieldMessage.cc
  14522. * src/BtCancelMessage.cc
  14523. * src/BtChokeMessage.cc
  14524. * src/BtHaveAllMessage.cc
  14525. * src/BtHaveMessage.cc
  14526. * src/BtHaveNoneMessage.cc
  14527. * src/BtInterestedMessage.cc
  14528. * src/BtNotInterestedMessage.cc
  14529. * src/BtPieceMessage.cc
  14530. * src/BtPortMessage.cc
  14531. * src/BtRejectMessage.cc
  14532. * src/BtRequestMessage.cc
  14533. * src/BtSuggestPieceMessage.cc
  14534. * src/BtUnchokeMessage.cc
  14535. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  14536. files are affected.
  14537. * src/ChunkChecksumValidator.cc
  14538. * src/SegmentMan.cc
  14539. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14540. To add chunk checksum validation:
  14541. * src/MetalinkEntry.h
  14542. (MetalinkChunkChecksum.h): New include.
  14543. (chunkChecksum): New variable.
  14544. * src/Request.h
  14545. (method): New variable.
  14546. (setMethod): New function.
  14547. (getMethod): New function.
  14548. (METHOD_GET): New static constant.
  14549. (METHOD_HEAD): New static constant.
  14550. * src/Xml2MetalinkProcessor.h
  14551. (getPieceHash): New function.
  14552. * src/PieceStorage.h
  14553. (markAllPiecesDone): New function.
  14554. (checkIntegrity): New function.
  14555. * src/FileAllocator.h
  14556. (NullFileAllocationMonitor.h): New include.
  14557. (FileAllocator): Initialize fileAllocationMonitor with new
  14558. NullFileAllocationMonitor().
  14559. * src/MultiDiskAdaptor.h
  14560. (messageDigest.h): Remove include.
  14561. (ctx): Removed.
  14562. (hashUpdate): Added ctx.
  14563. (MultiDiskAdaptor): Removed ctx.
  14564. (sha1Sum): Renamed as messageDigest.
  14565. (messageDigest): New function.
  14566. * src/UrlRequestInfo.h
  14567. (HeadResult): New class.
  14568. (digestAlgo): New variable.
  14569. (chunkChecksumLength): New variable.
  14570. (chunkChecksums): New variable.
  14571. (getHeadResult): New function.
  14572. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14573. (setDigestAlgo): New function.
  14574. (setChunkChecksumLength): New function.
  14575. (setChunkChecksums): New function.
  14576. * src/DefaultPieceStorage.cc
  14577. (DiskAdaptorWriter.h): New include.
  14578. (ChunkChecksumValidator.h): New include.
  14579. (markAllPiecesDone): New function.
  14580. (checkIntegrity): New function.
  14581. * src/DefaultBtContext.h
  14582. (getPieceHashes): New function.
  14583. * src/TorrentRequestInfo.cc
  14584. (execute): Try to validate chunk checksum if file already exists and
  14585. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14586. * src/messageDigest.h
  14587. (~MessageDigestContext): Added digestFree().
  14588. * src/MetalinkRequestInfo.cc
  14589. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14590. * src/DiskAdaptor.h
  14591. (messageDigest.h): New include.
  14592. (sha1Sum): Renamed as messageDigest.
  14593. (messageDigest): New function.
  14594. * src/DownloadCommand.h
  14595. (PeerStat.h): New include.
  14596. (maxDownloadSpeedLimit): New variable.
  14597. (startupIdleTime): New variable.
  14598. (lowestDownloadSpeedLimit): New variable.
  14599. (peerStat): New variable.
  14600. (setMaxDownloadSpeedLimit): New function.
  14601. (setStartupIdleTime): New function.
  14602. (setLowestDownloadSPeedLimit): New function.
  14603. * src/BtContext.h
  14604. (getPieceHashes): New function.
  14605. * src/main.cc
  14606. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  14607. option to true for testing purpose.
  14608. * src/BtPieceMessage.cc
  14609. (checkPieceHash): Use messageDigest
  14610. * src/DownloadEngine.cc
  14611. (SetDescriptor): Removed.
  14612. (AccumulateActiveCommand): Removed.
  14613. (waitData): Rewritten.
  14614. (updateFdSet): Rewritten.
  14615. * src/MultiDiskAdaptor.cc
  14616. (hashUpdate): Added ctx.
  14617. (sha1Sum): Renamed as messageDigest.
  14618. (messageDigest): New function.
  14619. * src/BitfieldMan.h
  14620. (isBitRangeSet): New function.
  14621. (unsetBitRange): New function.
  14622. * src/ByteArrayDiskWriter.h
  14623. (sha1Sum): Renamed as messageDigest.
  14624. (messageDigest): New function.
  14625. * src/ConsoleDownloadEngine.cc
  14626. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  14627. * src/DiskWriter.h
  14628. (messageDigest.h): New include.
  14629. (sha1Sum): Renamed as messageDigest.
  14630. (messageDigest): New function.
  14631. * src/ChunkChecksumValidator.h: New class.
  14632. * src/DiskAdaptorWriter.h: New class.
  14633. * src/prefs.h
  14634. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  14635. (PREF_CHECK_INTEGRITY): New definition.
  14636. * src/HttpResponseCommand.cc
  14637. (handleDefaultEncoding): Added method "HEAD" handling.
  14638. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14639. (handleOtherEncoding):
  14640. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  14641. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  14642. startupIdleTime, lowestDownloadSpeedLimit to command.
  14643. * src/SegmentMan.h
  14644. (getSegmentEntryByIndex): New function.
  14645. (getSegmentEntryByCuid): New function.
  14646. (getSegmentEntryIteratorByCuid): New function.
  14647. (diskWriter): DiskWriter -> DiskWriterHandle
  14648. (pieceHashes): New variable.
  14649. (chunkHashLength): New variable.
  14650. (digestAlgo): New variable.
  14651. (FindPeerStat): Removed.
  14652. (getPeerStat): Rewritten.
  14653. (markAllPiecesDone): New function.
  14654. (checkIntegrity): New function.
  14655. (tryChunkChecksumValidation): New function.
  14656. (isChunkChecksumValidationReady): New function.
  14657. * src/BitfieldMan.cc
  14658. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  14659. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  14660. blocks to 0.
  14661. (isBitRangeSet): New function.
  14662. (unsetBitRange): New function.
  14663. * src/FtpNegotiateCommand.cc
  14664. (executeInternal): Set maxDownloadSpeedLimit,
  14665. startupIdleTime, lowestDownloadSpeedLimit to command.
  14666. (recvSize): Added method "HEAD" handling.
  14667. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14668. * src/AbstractSingleDiskAdaptor.cc
  14669. (sha1Sum): Renamed as messageDigest.
  14670. (messageDigest): New function.
  14671. * src/AbstractSingleDiskAdaptor.h
  14672. (sha1Sum): Renamed as messageDigest.
  14673. (messageDigest): New function.
  14674. * src/Util.h
  14675. (indexRange): New function.
  14676. * src/MetalinkEntry.cc
  14677. (MetalinkEntry): Initialized chunkChecksum to 0.
  14678. * src/ShaVisitor.cc
  14679. (~ShaVisitor): Removed the call to ctx.digestFree().
  14680. * src/SegmentMan.cc
  14681. (ChunkChecksumValidator.h): New include.
  14682. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14683. to DIGEST_ALGO_SHA1.
  14684. (~SegmentMan): Removed diskWriter.
  14685. (FindSegmentEntryByIndex): Removed.
  14686. (FindSegmentEntryByCuid): Removed.
  14687. (checkoutSegment): Rewritten.
  14688. (findSlowerSegmentEntry): Rewritten.
  14689. (getSegment): Rewritten.
  14690. (updateSegment): Rewritten.
  14691. (completeSegment): Rewritten.
  14692. (markAllPiecesDone): New function.
  14693. (checkIntegrity): New function.
  14694. (isChunkChecksumValidationReady): New function.
  14695. (tryChunkChecksumValidation): New function.
  14696. * src/Xml2MetalinkProcessor.cc
  14697. (getEntry): Get size and set it to entry.
  14698. Get chunk checksum and set it to entry.
  14699. (getPieceHash): New function.
  14700. * src/Util.cc
  14701. (sha1Sum): Removed ctx.digestFree()
  14702. (fileChecksum): Removed ctx.digestFree()
  14703. (indexRange): New function.
  14704. * src/Request.cc
  14705. (METHOD_GET): New variable.
  14706. (METHOD_HEAD): New variable.
  14707. (Request): Added method.
  14708. * src/UrlRequestInfo.cc
  14709. (FatalException.h): New include.
  14710. (message.h): New include.
  14711. (operator<<): Added operator<< for class HeadResult.
  14712. (getHeadResult): New function.
  14713. (execute): Get filename and size in separate download engine.
  14714. * src/ChunkChecksumValidator.cc: New class.
  14715. * src/DownloadCommand.cc:
  14716. (DownloadCommand): Added peerStat.
  14717. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14718. the value from Option.
  14719. The buffer size is now 16KB.
  14720. Use peerStat member instead of getting it from SegmentMan.
  14721. Use startupIdleTime member instead of gettingit from Option.
  14722. Added chunk checksum validation.
  14723. * src/AbstractDiskWriter.cc
  14724. (AbstractDiskWriter): Removed ctx.
  14725. (~AbstractDiskWriter): Removed ctx.digestFree()
  14726. (writeDataInternal): Returns the return value of write.
  14727. (readDataInternal): Returns the return value of read.
  14728. (sha1Sum): Renamed as messageDigest
  14729. (messageDigest): New function.
  14730. * src/AbstractDiwkWriter.h
  14731. (messageDigest.h): Removed include.
  14732. (ctx): Removed.
  14733. (sha1Sum): Renamed as messageDigest
  14734. (messageDigest): New function.
  14735. * src/DefaultPieceStorage.h
  14736. (markAllPiecesDone): New function.
  14737. (checkIntegrity): New function.
  14738. * src/NullFileAllocationMonitor.h: New class.
  14739. * src/MetalinkChunkChecksum.h: New class.
  14740. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14741. To decrease CPU usage in bittorrent download, calculation results in
  14742. BitfieldMan were cached and realtime fetching PeerObject was removed
  14743. with WeakHandle introduced. Option values are set to the objects
  14744. by setter before download begins.
  14745. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14746. * src/DefaultBtRequestFactory.h
  14747. (dispatcher): BtMessageDispatcherHandle ->
  14748. BtMessageDispatcherWeakHandle.
  14749. (messageFactory): New variable.
  14750. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14751. BtMessageDispatcherWeakHandle.
  14752. (setBtMessageFactory): New function.
  14753. * src/DefaultBtMessageDispatcher.cc:
  14754. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14755. from Option.
  14756. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14757. feating the value from Option.
  14758. Use messageFactory member.
  14759. * src/PeerInteractionCommand.cc
  14760. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14761. Add reverse dependencies to factory object.
  14762. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14763. dispatcher.
  14764. Set messageFactory to receiver.
  14765. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14766. btInteractive.
  14767. Set receiver to peerObject.
  14768. Set maxDownloadSpeedLimit to this.
  14769. (executeInternal): Use maxDownloadSpeedLimit member.
  14770. * src/BtChokeMessage.cc
  14771. (doReceivedAction): Use dispatcher, requestFactory member.
  14772. (onSendComplete): Use dispatcher member.
  14773. * src/PeerInteractionCommand.h
  14774. (maxDownloadSpeedLimit): New variable.
  14775. * src/DefaultBtMessageReceiver.h
  14776. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14777. (dispatcher):
  14778. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14779. (messageFactory): New variable.
  14780. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14781. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14782. (setDispatcher):
  14783. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14784. (setBtMessageFactory): New function.
  14785. * src/DefaultBtInteractive.cc
  14786. (initiateHandshake): Use messageFactory member.
  14787. (addBitfieldMessageToQueue): Use messageFactory member.
  14788. (addAllowedFastMessageToQueue): Use messageFactory member.
  14789. (decideChoking): Use messageFactory member.
  14790. (checkHave): Use messageFactory member.
  14791. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14792. (receiveMessages): Use maxDownloadSpeedLimit member.
  14793. (decideInterest): Use messageFactory member.
  14794. * src/BtRequestMessage.cc
  14795. (doReceivedAction): Use messageFactory, dispatcher member.
  14796. (onQueued): Use dispatcher member.
  14797. * src/BtPieceMessage.cc
  14798. (doReceivedAction): Use dispatcher member.
  14799. (send): Use peerConnection member.
  14800. (onWrongPiece): Use requestFactory member.
  14801. (handleChokingEvent): Use messageFactory, dispatcher member.
  14802. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14803. * src/BtMessageDispatcher.h
  14804. (BtMessageDispatcherWeakHandle): New type definition.
  14805. * src/SimpleBtMessage.cc
  14806. (send): Use peerConnection member.
  14807. * src/BtRejectMessage.cc
  14808. (doReceivedAction): Use dispatcher member.
  14809. * src/DefaultBtMessageDispatcher.h
  14810. (Option.h): Removed include.
  14811. (messageFactory): New variable.
  14812. (option): Removed.
  14813. (maxUploadSpeedLimit): New variable.
  14814. (requestTimeout): New variable.
  14815. (DefaultBtMessageDispatcher): Removed option.
  14816. Added maxUploadSpeedLimit, requestTimeout.
  14817. (setOption): Removed.
  14818. (getOption): Removed.
  14819. (setMaxUploadSpeedLimit): New function.
  14820. (setRequestTimeout): New function.
  14821. (setBtMessageFactory): New function.
  14822. * src/DefaultBtInteractive.h
  14823. (btMessageReceiver):
  14824. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14825. (dispatcher):
  14826. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14827. (btRequestFactory):
  14828. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14829. (peerConnection):
  14830. PeerConnectionHandle -> PeerConnectionWeakHandle
  14831. (messageFactory): New variable.
  14832. (option): Removed.
  14833. (keepAliveInterval): New variable.
  14834. (maxDownloadSpeedLimit): New variable.
  14835. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14836. (setBtMessageReceiver):
  14837. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14838. (setDispatcher):
  14839. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14840. (setBtRequestFactory):
  14841. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14842. (setPeerConnection):
  14843. PeerConnectionHandle -> PeerConnectionWeakHandle
  14844. (setOption): Removed.
  14845. (setKeepAliveInterval): New function.
  14846. (setMaxDownloadSpeedLimit): New function.
  14847. (setBtMessageFactory): New function.
  14848. * src/BitfieldMan.h
  14849. (cachedNumMissingBlock): New variable.
  14850. (cachedNumFilteredBlock): New variable.
  14851. (cachedCompletedLength): New variable.
  14852. (cachedFilteredComletedLength): New variable.
  14853. (cachedFilteredTotalLength): New variable.
  14854. (countMissingBlockNow): New function.
  14855. (countFilteredBlockNow): New function.
  14856. (getFilteredTotalLengthNow): New function.
  14857. (getCompletedLengthNow): New function.
  14858. (getFilteredCompletedLengthNow): New function.
  14859. (updateCache): New function.
  14860. * src/AbstractBtMessage.h
  14861. (BtMessageDispatcher.h): New include.
  14862. (PeerConnection.h): New include.
  14863. (BtRequestFactory.h): New include
  14864. (BtMessageFactory.h): New include.
  14865. (dispatcher): New variable.
  14866. (messageFactory): New variable.
  14867. (peerConnection: New variable.
  14868. (setBtMessageDispatcher): New function.
  14869. (setPeerConnection): New function.
  14870. (setBtMessageFactory): New function.
  14871. (setBtRequestFactory): New function.
  14872. * src/DefaultBtMessageFactory.cc
  14873. (setCommonProperty): Set dispatcher, requestFactory, this,
  14874. peerConnection to msg.
  14875. * src/BtRegistry.h
  14876. (BT_MESSAGE_RECEIVER): New macro.
  14877. * src/PeerConnection.h
  14878. (PeerConnectionWeakHandle): New type definition.
  14879. * src/BtMessageFactory.h
  14880. (BtMessageFactoryWeakHandle): New type definition.
  14881. * src/BitfieldMan.cc
  14882. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14883. cachedCompletedLength, cachedFilteredComletedLength,
  14884. cachedFilteredTotalLength.
  14885. Call updateCache().
  14886. (countMissingBlock): Return cachedNumMissingBlock.
  14887. (countMissingBlockNow): New function.
  14888. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14889. (countFilteredBlockNow): New function.
  14890. (setBit): Call updateCache().
  14891. (unsetBit): Call updateCache().
  14892. (setBitfield): Call updateCache().
  14893. (clearAllBit): Call updateCache().
  14894. (setAllBit): Use setBitInternal instead of setBit.
  14895. Call updateCache().
  14896. (addFilter): Call updateCache().
  14897. (enableFilter): Call updateCache().
  14898. (disableFilter): Call updateCache().
  14899. (clearFilter): Call updateCache().
  14900. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14901. (getFilteredTotalLengthNow): New function.
  14902. (getCompletedLength): Return cachedCompletedLength.
  14903. (getCompletedLengthNow): New function.
  14904. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14905. (getFilteredCompletedLengthNow): New function.
  14906. (updateCache): New function.
  14907. * src/BtMessageReceiver.h
  14908. (BtMessageReceiverWeakHandle): New type definition.
  14909. * src/DefaultBtMessageReceiver.cc
  14910. (receiveHandshake): Use messageFactory member.
  14911. (sendHandshake): Use messageFactory member.
  14912. (receiveMessage): Use messageFactory member.
  14913. * src/DefaultBtMessageFactory.h
  14914. (dispatcher): New variable.
  14915. (requestFactory): New variable.
  14916. (peerConnection): New variablle.
  14917. (setBtMessageDispatcher): New function.
  14918. (setBtRequestFactory): New function.
  14919. (setPeerConnection): New function.
  14920. * src/SharedHandle.h
  14921. (RefCount): New class.
  14922. (WeakHandle): New class.
  14923. * src/PeerObject.h
  14924. (BtMessageReceiver.h): New include.
  14925. (PeerObject): Added btMessageReceiver.
  14926. (btMessageReceiver): New variable.
  14927. * src/Util.cc
  14928. (countBit): Simplified.
  14929. * src/BtCancelMessage.cc
  14930. (doReceivedAction): Use dispatcher member.
  14931. * src/BtRequestFactory.h
  14932. (BtRequestFactoryWeakHandle): New type definition.
  14933. * src/PeerStorage.h
  14934. (downloadSpeed): int -> uint32_t
  14935. (uploadSpeed): int -> uint32_t
  14936. (sessionDownloadLength): long long int -> uint64_t
  14937. (sessionUploadLength): long long int -> uint64_t
  14938. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14939. To add RecoverableException, FatalException:
  14940. * src/AbstractCommand.cc
  14941. (onAbort): Exception -> RecoverableException
  14942. * src/PeerAbstractCommand.h
  14943. (RecoverableException.h): New include.
  14944. (onAbort): Exception -> RecoverableException.
  14945. * src/PeerInteractionCommand.cc
  14946. (onAbort): Exception -> RecoverableException.
  14947. * src/PeerAbstractCommand.cc
  14948. (execute): Exception -> RecoverableException.
  14949. (onAbort): Exception -> RecoverableException.
  14950. * src/TorrentRequestInfo.cc
  14951. (execute): Exception -> RecoverableException.
  14952. * src/MetalinkRequestInfo.cc
  14953. (execute): Exception -> RecoverableException.
  14954. * src/MetaFileUtil.cc: RecoverableException.
  14955. * src/AbstractCommand.h
  14956. (onAbort): Exception -> RecoverableException.
  14957. * src/DlRetryEx.h: Exception -> RecoverableException.
  14958. * src/DlAbortEx.h: Exception -> RecoverableException.
  14959. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14960. * src/Util.cc: Exception -> RecoverableException.
  14961. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14962. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14963. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14964. To make ID static const int
  14965. * src/BtInterestedMessage.h
  14966. (ID_t): Removed.
  14967. (ID): New variable.
  14968. (getId): Made non-const.
  14969. * src/BtPieceMessage.h
  14970. (ID_t): Removed.
  14971. (ID): New variable.
  14972. (getId): Made non-const.
  14973. * src/BtChokeMessage.h
  14974. (ID_t): Removed.
  14975. (ID): New variable.
  14976. (getId): Made non-const.
  14977. * src/BtHaveAllMessage.h
  14978. (ID_t): Removed.
  14979. (ID): New variable.
  14980. (getId): Made non-const.
  14981. * src/BtKeepAliveMessage.h
  14982. (ID_t): Removed.
  14983. (ID): New variable.
  14984. (getId): Made non-const.
  14985. * src/BtHandshakeMessage.h
  14986. (ID): New variable.
  14987. (getId): Made non-const.
  14988. * src/BtSuggestPieceMessage.h
  14989. (ID_t): Removed.
  14990. (ID): New variable.
  14991. (getId): Made non-const.
  14992. * src/BtPortMessage.h
  14993. (ID_t): Removed.
  14994. (ID): New variable.
  14995. (getId): Made non-const.
  14996. * src/AbstractBtMessage.h
  14997. (id): Removed.
  14998. (AbstractBtMessage): Removed id.
  14999. (getId): Removed.
  15000. * src/BtHaveMessage.h
  15001. (ID_t): Removed.
  15002. (ID): New variable.
  15003. (getId): Made non-const.
  15004. * src/BtAllowedFastMessage.h
  15005. (ID_t): Removed.
  15006. (ID): New variable.
  15007. (getId): Made non-const.
  15008. * src/BtCancelMessage.h
  15009. (ID_t): Removed.
  15010. (ID): New variable.
  15011. (getId): Made non-const.
  15012. * src/BtNotInterestedMessage.h
  15013. (ID_t): Removed.
  15014. (ID): New variable.
  15015. (getId): Made non-const.
  15016. * src/BtChokeMessage.h
  15017. (ID_t): Removed.
  15018. (ID): New variable.
  15019. (getId): Made non-const.
  15020. * src/BtRejectMessage.h
  15021. (ID_t): Removed.
  15022. (ID): New variable.
  15023. (getId): Made non-const.
  15024. * src/BtBitfieldMessage.h
  15025. (ID_t): Removed.
  15026. (ID): New variable.
  15027. (getId): Made non-const.
  15028. * src/BtUnchokeMessage.h
  15029. (ID_t): Removed.
  15030. (ID): New variable.
  15031. (getId): Made non-const.
  15032. * src/BtRequestMessage.h
  15033. (ID_t): Removed.
  15034. (ID): New variable.
  15035. (getId): Made non-const.
  15036. * src/BtHaveMessage.h
  15037. (ID_t): Removed.
  15038. (ID): New variable.
  15039. (getId): Made non-const.
  15040. To add --force-truncate command-line option and a check whether
  15041. the file already exists:
  15042. * src/DirectDiskAdaptor.h
  15043. (getFilePath): Made virtual public.
  15044. * src/MultiDiskAdaptor.h
  15045. (File.h): New include.
  15046. (DiskWriterEntry::fileEntry): Made private.
  15047. (DiskWriterEntry::fileExists): New function.
  15048. (DiskWriterEntry::getFileEntry): New function.
  15049. (fileExists): New function.
  15050. (getFilePath): New function.
  15051. * src/TorrentRequestInfo.cc
  15052. (FatalException.h): New include.
  15053. (message.h): New include.
  15054. (RecoverableException.h): New include.
  15055. (execute): Added a check whether file is already exists or not.
  15056. * src/DiskAdaptor.h
  15057. (fileExists): New function.
  15058. (getFilePath): New function.
  15059. * src/main.cc
  15060. (showUsage): Added an explanation of --force-truncate command-line
  15061. option.
  15062. (main): Added --force-truncate command-line option.
  15063. * src/Exception.h
  15064. (setMsg): buf[256] -> buf[1024]
  15065. * src/CopyDiskWriter.h
  15066. (getFilePath): Made public virtual.
  15067. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  15068. (fileExists): New function.
  15069. * src/DownloadEngineFactory.cc
  15070. (newTorrentConsoleEngine): Don't open file here.
  15071. * src/message.h
  15072. (EX_FILE_ALREADY_EXISTS): New definition.
  15073. * src/prefs.h
  15074. (PREF_FOECE_TRUNCATE): New definition.
  15075. * src/HttpResponseCommand.cc
  15076. (handleDefaultEncoding): Added a check whether the file already exists.
  15077. * src/SegmentMan.h
  15078. (fileExists): New function.
  15079. (shouldCancelDownloadForSafety): New function.
  15080. * src/FtpNegotiateCommand.cc
  15081. (recvSize): Added a check whether the file already exists.
  15082. * src/AbstractSingleDiskAdaptor.cc
  15083. (File.h): New include.
  15084. (fileExists): New function.
  15085. * src/AbstractSingleDiskAdaptor.h
  15086. (getFilePath): Removed.
  15087. (fileExists): New function.
  15088. * src/SegmentMan.cc
  15089. (fileExists): New function.
  15090. (shouldCancelDownloadForSafety): New function.
  15091. To fix regression bug in torrent downloading:
  15092. * src/DefaultBtRequestFactory.cc
  15093. (doChokedAction): New function.
  15094. * src/DefaultBtRequestFactory.h
  15095. (doChokedAction): New function.
  15096. * src/DefaultBtMessageDispatcher.cc
  15097. (doChokedAction): Do not delete request if its target is in allowed
  15098. fast set.
  15099. * src/DefaultBtInteractive.cc
  15100. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  15101. (sendKeepAlive): Send keep alive message even if the outgoing message
  15102. queue is not empty.
  15103. (decideInterest): Simplified the code.
  15104. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  15105. it is already called when BtChokeMessage is received from a peer.
  15106. * src/BtRequestFactory.h
  15107. (doChokedAction): New function.
  15108. To clean up code:
  15109. * src/PeerInteractionCommand.h
  15110. (executeInternal): Added virtual keyword explicitly.
  15111. (prepareForRetry): Added virtual keyword explicitly.
  15112. (prepareForNextPeer): Added virtual keyword explicitly.
  15113. (onAbort): Added virtual keyword explicitly.
  15114. * src/RequestSlot.cc
  15115. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  15116. * src/BtPieceMessage.cc
  15117. (doReceivedAction): Added a debug log of piece's bitfield.
  15118. * src/Piece.h
  15119. (getBitfieldLength): New function.
  15120. * src/ByteArrayDiskWriter.cc
  15121. (clear): Added buf = 0 to avoid double free corruption.
  15122. * src/FileAllocator.cc
  15123. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  15124. Added cp.reset().
  15125. * src/BitfieldMan.h
  15126. (operator=): Rewritten.
  15127. * src/BitfieldMan.cc
  15128. (BitfieldMan): Initialized bitfield, useBitfield.
  15129. * src/PeerConnection.cc
  15130. (receiveMessage): Added a call to socket->readable() after getting
  15131. message length to avoid possible EOF.
  15132. * src/Util.cc
  15133. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  15134. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15135. To add an ability to pre-allocate file space:
  15136. * src/DirectDiskAdaptor.h: Rewritten.
  15137. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  15138. * src/MultiDiskAdaptor.h: Rewritten.
  15139. * src/DefaultPieceStorage.cc
  15140. (MultiDiskWriter.h): Removed include.
  15141. (PreAllocationDiskWriter.h): Removed include.
  15142. (FileAllocationMonitor.h): New include.
  15143. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  15144. (initStorage): Rewritten.
  15145. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15146. * src/FileAllocator.h: New class.
  15147. * src/FileAllocator.cc: New class.
  15148. * src/FileAllocationMonitor.h: New class.
  15149. * src/FileAllocationMonitor.cc: New class.
  15150. * src/ConsoleFileAllocationMonitor.h: New class.
  15151. * src/ConsoleFileAllocationMonitor.cc: New class.
  15152. * src/AbstractSingleDiskAdaptor.h: New class.
  15153. * src/AbstractSingleDiskAdaptor.cc: New class.
  15154. * src/DiskAdaptor.h
  15155. (Directory.h): Removed include.
  15156. (DiskWriter.h): Removed include.
  15157. (FileEntry.h): Removed include.
  15158. (diskWriter): Removed.
  15159. (DiskAdaptor): Removed diskWriter.
  15160. (openFile): Made pure virtual.
  15161. (closeFile): Made pure virtual.
  15162. (openExistingFile): Made pure virtual.
  15163. (initAndOpenFile): Made pure virtual.
  15164. (writeData): Made pure virtual.
  15165. (readData): Made pure virtual.
  15166. (sha1Sum): Made pure virtual.
  15167. (getStoreDir): Returns const reference of storeDir.
  15168. (DiskAdaptorHandle): New type definition.
  15169. * src/main.cc
  15170. (ConsoleFileAllocationMonitor.h): New include.
  15171. (showUsage): Added default value description of -s option.
  15172. Added the description of --file-allocation option.
  15173. (main): Set default value of --file-allocation option to 'none'.
  15174. Added --file-allocation command-line option.
  15175. Setup FileAllocationMonitorFactory.
  15176. * src/FtpInitiateConnectionCommand.cc
  15177. (executeInternal): Removed diskWriter related processing, which was
  15178. moved to FtpNegotiationCommand.cc.
  15179. * src/DirectDiskAdaptor.cc
  15180. (getFilePath): Made non-const.
  15181. * src/CopyDiskAdaptor.h
  15182. (DiskAdaptor.h): Removed include.
  15183. (DiskWriter.h): Removed include.
  15184. (AbstractSingleDiskAdaptor.h): New include.
  15185. (getFilePath): Made non-const. Added virtual keyword.
  15186. (CopyDiskAdaptor): Removed diskWriter.
  15187. (getTempFile): Returns const reference.
  15188. (CopyDiskAdaptorHandle): New type definition.
  15189. * src/ByteArrayDiskWriter.cc
  15190. (clear): Simplified.
  15191. (initAndOpenFile): Rewritten.
  15192. (openFile): Call initAndOpenFile()
  15193. * src/MultiDiskAdaptor.cc: Rewritten.
  15194. * src/DownloadEngineFactory.cc
  15195. (FileAllocator.h): New include.
  15196. (FileAllocationMonitor.h): New include.
  15197. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  15198. create DefaultDiskWriter with file allocator.
  15199. * src/DiskWriter.h
  15200. (initAndOpenFile): Added totalLength argument.
  15201. (openFile): Added totalLength argument.
  15202. * src/prefs.h
  15203. (PREF_FILE_ALLOCATION): New definition.
  15204. (V_PREALLOC): New definition.
  15205. (V_NONE): New definition.
  15206. * src/HttpResponseCommand.cc
  15207. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  15208. size.
  15209. * src/FtpNegotiateCommand.cc
  15210. (Util.h): New include.
  15211. (recvSize): Open file here.
  15212. * src/Util.h
  15213. (ullitos): New function.
  15214. * src/CopyDiskWriter.h
  15215. (getFilePath): Made non-const.
  15216. * src/DefaultDiskWriter.h
  15217. (Option.h): New include.
  15218. (totalLength): Removed.
  15219. (DefaultDiskWriter): Removed totalLength.
  15220. (initAndOpenFile): Added totalLength argument.
  15221. (DefaultDiskWriterHandle): New type definition.
  15222. (createNewDiskWriter): New function.
  15223. * src/Util.cc
  15224. (ullitos): New function.
  15225. * src/DefaultDiskWriter.cc
  15226. (message.h): New include.
  15227. (FileAllocator.h): New include.
  15228. (prefs.h): New include.
  15229. (Util.h): New include.
  15230. (DefaultDiskWriter): Removed totalLength.
  15231. (initAndOpenFile): Added file allocation.
  15232. (createNewDiskWriter): New function. Just for temporary solution.
  15233. It will be rewritten later.
  15234. * src/DiskAdaptor.cc
  15235. (DiskAdaptor): Removed diskWriter.
  15236. * src/AbstractDiskWriter.cc
  15237. (LogFactory.h): New include.
  15238. (AbstractDiskWriter): Added fileAllocator, logger.
  15239. (openFile): Added totalLength argument.
  15240. * src/AbstractDiskWriter.h
  15241. (FileAllocator.h): New include.
  15242. (Logger.h): New include.
  15243. (fileAllocator): New variable.
  15244. (logger): New variable.
  15245. (openFile): Added totalLength argument. Added virtual keyword
  15246. explicitly.
  15247. (openExistingFile): Added totalLength argument. Added virtual keyword
  15248. explicitly.
  15249. (closeFile): Added virtual keyword explicitly.
  15250. (sha1Sum): Added virtual keyword explicitly.
  15251. (writeData): Added virtual keyword explicitly.
  15252. (readData): Added virtual keyword explicitly.
  15253. (setFileAllocator): New function.
  15254. * src/DefaultPieceStorage.h
  15255. (FileAllocator.h): New include.
  15256. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15257. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15258. * src/FileProgressMonitor.h: New class.
  15259. To compile aria2 on PC-BSD:
  15260. * src/DefaultBtContext.cc
  15261. (libgen.h): New include.
  15262. To fix memory leak:
  15263. * src/Exception.h
  15264. (~Exception): Delete cause. Fixed memory leak.
  15265. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15266. Rewritten a portion of bittorrent implementation:
  15267. * src/BtMessageValidator.h: New class.
  15268. * src/BtBitfieldMessageValidator.h: New class.
  15269. * src/BtHandshakeMessageValidator.h: New class.
  15270. * src/BtRequestMessageValidator.h: New class.
  15271. * src/BtSuggestPieceMessageValidator.h: New class.
  15272. * src/BtAllowedFastMessageValidator.h: New class.
  15273. * src/BtRejectMessageValidator.h: New class.
  15274. * src/BtCancelMessageValidator.h: New class.
  15275. * src/BtPieceMessageValidator.h: New class.
  15276. * src/BtHaveMessageValidator.h: New class.
  15277. * src/BtEventListener.h: New class.
  15278. * src/AbstractBtEventListener.h: New class.
  15279. * src/BtEvent.h: New class.
  15280. * src/BtChokingEvent.h: New class.
  15281. * src/BtChokedEvent.h: New class.
  15282. * src/BtCancelSendingPieceEvent.h: New class.
  15283. * src/BtAbortOutstandingRequestEvent.h: New class.
  15284. * src/Randomizer.h: New class.
  15285. * src/SimpleRandomizer.h: New class.
  15286. * src/BtMessage.h: New class.
  15287. * src/AbstractBtMessage.h: New class.
  15288. * src/SimpleBtMessage.h: New class.
  15289. * src/BtHaveMessage.h: New class.
  15290. * src/BtInterestedMessage.h: New class.
  15291. * src/BtAllowedFastMessage.h: New class.
  15292. * src/BtUnchokeMessage.h: New class.
  15293. * src/BtCancelMessage.h: New class.
  15294. * src/BtNotInterestedMessage.h: New class.
  15295. * src/BtChokeMessage.h: New class.
  15296. * src/BtHaveNoneMessage.h: New class.
  15297. * src/BtHandshakeMessage.h: New class.
  15298. * src/BtSuggestPieceMessage.h: New class.
  15299. * src/BtHaveMessage.h: New class.
  15300. * src/BtPieceMessage.h: New class.
  15301. * src/BtHaveAllMessage.h: New class.
  15302. * src/BtKeepAliveMessage.h: New class.
  15303. * src/BtPortMessage.h: New class.
  15304. * src/BtRejectMessage.h: New class.
  15305. * src/BtBitfieldMessage.h: New class.
  15306. * src/BtRequestMessage.h: New class.
  15307. * src/DefaultBtRequestFactory.h: New class.
  15308. * src/DefaultBtMessageReceiver.h: New class.
  15309. * src/BtInteractive.h: New class.
  15310. * src/BtMessageDispatcher.h: New class.
  15311. * src/DefaultBtMessageDispatcher.h: New class.
  15312. * src/DefaultBtInteractive.h: New class.
  15313. * src/BitfieldManFactory.h: New class.
  15314. * src/HandleRegistry.h: New class.
  15315. * src/BtMessageFactory.h: New class.
  15316. * src/BtMessageReceiver.h: New class.
  15317. * src/DefaultBtMessageFactory.h: New class.
  15318. * src/PeerObject.h: New class.
  15319. * src/BtRequestFactory.h: New class.
  15320. * src/SuggestPieceMessage.h: Removed.
  15321. * src/PortMessage.h: Removed.
  15322. * src/SuggestPieceMessage.h: Removed.
  15323. * src/KeepAliveMessage.h: Removed.
  15324. * src/HandshakeMessage.h: Removed.
  15325. * src/PeerInteraction.h: Removed.
  15326. * src/UnchokeMessage.h: Removed.
  15327. * src/PieceMessage.h: Removed.
  15328. * src/RequestMessage.h: Removed.
  15329. * src/InterestedMessage.h: Removed.
  15330. * src/HaveMessage.h: Removed.
  15331. * src/CancelMessage.h: Removed.
  15332. * src/RejectMessage.h: Removed.
  15333. * src/AllowedFastMessage.h: Removed.
  15334. * src/HaveNoneMessage.h: Removed.
  15335. * src/SimplePeerMessage.h: Removed.
  15336. * src/HaveAllMessage.h: Removed.
  15337. * src/BitfieldMessage.h: Removed.
  15338. * src/PeerMessageFactory.h: Removed.
  15339. * src/NotInterestedMessage.h: Removed.
  15340. * src/ChokeMessage.h: Removed.
  15341. * src/PeerMessage.h: Removed.
  15342. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15343. To know root cause of exception:
  15344. * src/Exception.h
  15345. (cause): New variable.
  15346. (Exception): Added a parameter.
  15347. (getMsg): Return const reference to msg.
  15348. (getCause): New function.
  15349. * src/DlRetryEx.h
  15350. (DlRetryEx): Added a parameter 'cause'.
  15351. Added an overloaded constructor.
  15352. (DlAbortEx): Added a parameter 'cause'.
  15353. Added an overloaded constructor.
  15354. * src/SimpleLogger.cc
  15355. (writeLog): Log nested exception messages recursively.
  15356. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15357. * src/DefaultBtProgressInfoFile.cc
  15358. (load): Fixed memory leak when the infohash doesn't match.
  15359. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15360. * src/DefaultPeerStorage.cc
  15361. (calculateStat): Simplified the code by combining 2 loops into 1.
  15362. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15363. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  15364. for BitTorrent download:
  15365. * src/PeerAbstractCommand.cc
  15366. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  15367. * src/main.cc:
  15368. (timeoutSpecified): Removed.
  15369. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  15370. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  15371. * src/TorrentRequestInfo.cc
  15372. (timeoutSpecified): Removed.
  15373. (torrentHandler): Removed timeoutSpecified and the adjustment of
  15374. timeout value.
  15375. * src/prefs.h
  15376. (PREF_BT_TIMEOUT): New definition.
  15377. Delete unused variables:
  15378. * src/TorrentRequestInfo.cc
  15379. (requestInfo): Removed.
  15380. Move setSignalHander to Util::setGlobalSignalHandler:
  15381. * src/TorrentRequestInfo.cc:
  15382. setSignalHander -> Util::setGlobalSignalHandler
  15383. * src/main.cc
  15384. (setSignalHander): Removed.
  15385. (main): setSignalHander -> Util::setGlobalSignalHandler
  15386. * src/Util.h
  15387. (setGlobalSignalHandler): New function.
  15388. * src/Util.cc
  15389. (setGlobalSignalHandler): New function.
  15390. * src/UrlRequestInfo.cc:
  15391. setSignalHander -> Util::setGlobalSignalHandler
  15392. Reset peer status in order to exit gracefully:
  15393. * src/PeerAbstractCommand.cc
  15394. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  15395. To fix the bug that causes the number of bytes uploaded is not saved
  15396. to .aria2 file:
  15397. * src/DefaultPeerStorage.h
  15398. (removedPeerSessionDownloadLength): New variable.
  15399. (removedPeerSessionUploadLength): New variable.
  15400. * src/DefaultPeerStorage.cc
  15401. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  15402. removedPeerSessionUploadLength(0).
  15403. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  15404. through all peers, and then add removedPeerSessionDownloadLength(
  15405. removedPeerSessionUploadLength) to it.
  15406. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  15407. (to) the peer to removedPeerSessionDownloadLength
  15408. (removedPeerSessionUploadLength).
  15409. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15410. To add Metalink location option:
  15411. * src/MetalinkRequestInfo.cc
  15412. (execute): Call MetalinkEntry::setLocationPreference()
  15413. * src/main.cc
  15414. (showUsage): Added the help message for --metalink-location option.
  15415. (main): Added --metalink-location option.
  15416. * src/prefs.h
  15417. (PREF_METALINK_LOCATION): New definition.
  15418. * src/MetalinkEntry.cc
  15419. (AddLocationPreference): New function object.
  15420. (setLocationPreference): New function.
  15421. * src/Xml2MetalinkProcessor.cc
  15422. (getResource): Set location attribute to MetalinkResource
  15423. To show URLs to download
  15424. * src/UrlRequestInfo.h
  15425. (printUrls): New function.
  15426. To add multiple <file> Metalink support:
  15427. * src/MetalinkEntry.h
  15428. (MetalinkResources): Removed.
  15429. (setLocationPreference): New function.
  15430. (MetalinkEntryHandle): New type definition.
  15431. (MetalinkEntries): New type definition.
  15432. * src/Xml2MetalinkProcessor.h
  15433. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15434. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15435. (parseFile): Metalinker* -> MetalinkerHandle
  15436. * src/UrlRequestInfo.h
  15437. (execute): RequestInfo* -> RequestInfos
  15438. * src/MetalinkRequestInfo.cc
  15439. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  15440. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  15441. (execute): RequestInfo* -> RequestInfos
  15442. Added multiple <file> support. Print filename when it is queued.
  15443. * src/MetalinkRequestInfo.h
  15444. (execute): RequestInfo* -> RequestInfos
  15445. (getDownloadEngine): Removed.
  15446. * src/RequestInfo.h
  15447. (RequestInfoHandle): New type definition.
  15448. (RequestInfos): New type definition.
  15449. (execute): RequestInfo* -> RequestInfos
  15450. (getDownloadEngine): Removed.
  15451. * src/MetalinkResource.h
  15452. (MetalinkResourceHandle): New type definition.
  15453. (MetalinkResources): New type definition.
  15454. * src/MetalinkEntry.cc
  15455. (~MetalinkEntry): Removed the deletion of the elements of resources,
  15456. because the element is now of type MetalinkResourceHandle.
  15457. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  15458. (Supported): MetalinkResource* -> MetalinkResourceHandle
  15459. (dropUnsupportedResource): Removed the deletion of the elements of
  15460. resources because the element is now of type MetalinkResourceHandle.
  15461. * src/Xml2MetalinkProcessor.cc
  15462. (parseFile): Metalinker* -> MetalinkerHandle
  15463. MetalinkEntry* -> MetalinkEntryHandle
  15464. Removed try-catch block.
  15465. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15466. MetalinkResource* -> MetalinkResourceHandle
  15467. Removed try-catch block.
  15468. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15469. Free result by using xmlXPathFreeObject()
  15470. * src/Metalinker.cc
  15471. (~Metalinker): Removed the deletion of entries.
  15472. MetalinkEntry* -> MetalinkEntryHandle
  15473. (queryEntry): Add multiple <file> Metalink support.
  15474. * src/Metalinker.h
  15475. (MetalinkEntries): Removed.
  15476. (queryEntry): MetalinkEntry* -> MetalinkEntries
  15477. * src/MetalinkProcessor.h
  15478. (parseFile): Metalinker* -> MetalinkerHandle
  15479. Bug fixes:
  15480. * src/PeerChokeCommand.cc
  15481. (execute): cat01->cat02
  15482. * src/DefaultPieceStorage.cc
  15483. (DefaultPieceStorage): Added diskAdaptor(0)
  15484. * src/TrackerWatcherComand.cc:
  15485. (execute): Use btAnnounce->noMoreAnnounce()
  15486. to determin whether the function returns true or not.
  15487. * src/TrackerUpdateCommand.cc:
  15488. (execute): Use btAnnounce->noMoreAnnounce()
  15489. to determin whether the function returns true or not.
  15490. * src/FtpConnection.cc
  15491. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  15492. This is the fix of the busy loop bug.
  15493. * src/DownloadCommand.cc
  15494. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  15495. cached PeerStat.
  15496. The value of "name" entry in torrent file is now set by
  15497. *DiskAdaptor::setTopDir(...) methods.
  15498. * src/MultiDiskAdaptor.h
  15499. (topDir): New variable.
  15500. (setTopDir): New function.
  15501. (getTopDir): New function.
  15502. * src/MultiDiskAdaptor.cc
  15503. (getFilePath): Concat storDir, "/" and topDir.
  15504. (mkdir): Use getFilePath() to get the directory path for output.
  15505. * src/DefaultPieceStorage.cc
  15506. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  15507. CopyDiskAdaptor.
  15508. * src/CopyDiskAdaptor.h
  15509. (topDir): New variable.
  15510. (setTopDir): New function.
  15511. (getTopDir): New function.
  15512. * src/CopyDiskAdaptor.cc
  15513. (fixFilename): Updated.
  15514. Misc
  15515. * src/UrlRequestInfo.h
  15516. (e): Removed.
  15517. (UrlRequestInfo): Removed e.
  15518. (getDownloadEngine): Removed.
  15519. * src/UrlRequestInfo.cc
  15520. (handler): Rewritten.
  15521. (printUrls): New function.
  15522. (execute): Call printUrls().
  15523. * src/HandshakeMessage.cc
  15524. (check): peerinteraction->getBtContext() -> btContext
  15525. * src/PeerInteraction.h
  15526. (getBtContext): Removed.
  15527. * src/TorrentRequestInfo.h
  15528. (execute): RequestInfo* -> RequestInfos
  15529. (getDownloadEngine): Removed.
  15530. * src/TorrentRequestInfo.cc
  15531. (haltRequested): Removed.
  15532. (btHaltRequested): New variable.
  15533. (torrentHandler): haltRequested -> btHaltRequested
  15534. (execute): RequestInfo* -> RequestInfos
  15535. * src/TorrentConsoleDownloadEngine.cc
  15536. (afterEachIteration): haltRequested -> btHaltRequested.
  15537. * src/ConsoleDownloadEngine.h
  15538. (initStatistics): Added virtual.
  15539. (calculateStatistics): Added virtual.
  15540. (onEndOfRun): Added virtual.
  15541. (afterEachIteration): Added virtual.
  15542. * src/ConsoleDownloadEngine.cc
  15543. (haltRequested): New variable.
  15544. (afterEachIteration): New function.
  15545. * src/main.cc
  15546. (requestInfo): Removed.
  15547. * src/SegmentMan.cc
  15548. (findSlowerSegmentEntry): Refactored.
  15549. * Release 0.9.0
  15550. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15551. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15552. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15553. * src/TorrentMan.h: Removed.
  15554. * src/TorrentMan.cc: Removed.
  15555. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15556. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15557. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15558. * src/PeerAbstractCommand.cc: Use btRuntime.
  15559. * src/BtContextAwareCommand.h: New class.
  15560. * src/FileEntry.h: Added accessor methods for following variables.
  15561. (path): Made private.
  15562. (length): Made private.
  15563. (offset): Made private.
  15564. (extracted): Made private.
  15565. (requested): Made private.
  15566. (FileEntries): New definition.
  15567. (FileEntryHandle): New definition.
  15568. * src/FileEntry.cc: New file.
  15569. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15570. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15571. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15572. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15573. * src/PieceStorage.h: New file.
  15574. * src/PeerInteractionCommand.h: Use btContext.
  15575. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15576. btRuntime.
  15577. * src/DefaultBtProgressInfoFile.h: New file.
  15578. * src/DefaultBtProgressInfoFile.cc: New file.
  15579. * src/File.cc
  15580. (Util.h): New include.
  15581. (mkdirs): New function.
  15582. * src/MultiDiskAdaptor.h
  15583. (mkdir): New function.
  15584. * src/PeerListProcessor.h
  15585. (Peers): Removed.
  15586. * src/PeerInteraction.h
  15587. (torrentMan): Removed.
  15588. (btContext): New variable.
  15589. (peerStorage): New variable.
  15590. (pieceStorage): New variable.
  15591. (btAnnounce): New variable.
  15592. (getTorrentMan): Removed.
  15593. (getBtContext): New function.
  15594. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15595. btAnnounce.
  15596. * src/HandshakeMessage.h
  15597. (TorrentMan.h): Removed.
  15598. * src/HandshakeMessage.cc: Use btContext.
  15599. * src/DefaultBtAnnounce.cc: New file.
  15600. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  15601. * src/DefaultPieceStorage.cc: New file.
  15602. * src/DefaultBtContext.h: New file.
  15603. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  15604. Use the accessor methods of FileEntry.
  15605. * src/CookieBox.cc: Updated to use Util::slice().
  15606. * src/PieceMessage.cc: Use btContext, pieceStorage.
  15607. * src/common.h (SharedHandle.h): New include.
  15608. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  15609. pieceStorage.
  15610. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  15611. * src/DiskAdaptor.h
  15612. (topDir): Removed.
  15613. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  15614. (setTopDir): Removed.
  15615. (getTopDir): Removed.
  15616. * src/BtContext.h: New file.
  15617. * src/DefaultPeerStorage.h: New file.
  15618. * src/PieceMessage.h (TorrentMan.h): Removed.
  15619. * src/RequestMessage.h (TorrentMan.h): Removed.
  15620. * src/TorrentDownloadEngine.h
  15621. (uploadLength): New variable.
  15622. (btContext): New variable.
  15623. (btRuntime): New variable.
  15624. (pieceStorage): New variable.
  15625. (peerStorage): New variable.
  15626. (btAnnounce): New variable.
  15627. (btProgressInfoFile): New variable.
  15628. (torrentMan): Removed.
  15629. (setBtContext): New function.
  15630. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  15631. peerStorage, btAnnounce, btProgressInfoFile.
  15632. * src/Piece.h
  15633. (toString): New function.
  15634. (Pieces): New type definition.
  15635. * src/Peer.h
  15636. (active): New variable.
  15637. (Peer): Added active.
  15638. (activate): Set active to true.
  15639. (deactivate): Set active to false.
  15640. (isActive): New function.
  15641. (Peers): New type definition.
  15642. * src/DirectDiskAdaptor.cc
  15643. (getFilePath): Use the accessor methods of FileEntry.
  15644. * src/TorrentConsoleDownloadEngine.h
  15645. (afterEachIteration): New function.
  15646. * src/TorrentConsoleDownloadEngine.cc
  15647. (haltRequested): New variable.
  15648. (sendStatistics): Use pieceStorage, btRuntime.
  15649. (afterEachIteration): New function.
  15650. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  15651. * src/Directry.h
  15652. (Directory): New function.
  15653. (DirectoryHandle): New type definition.
  15654. * src/BtProgressInfoFile.h: New file.
  15655. * src/RequestMessage.cc: Use pieceStorage.
  15656. * src/BtRuntime.h: New file.
  15657. * src/DefaultBtContext.cc: New file.
  15658. * src/BitfieldMan.h
  15659. (getCompletedLength): New function(private).
  15660. (getCompletedLength): New function.
  15661. (getFilteredCompletedLength): New function.
  15662. * src/BitfieldMan.h
  15663. (getCompletedLength): New function(private).
  15664. (getCompletedLength): New function.
  15665. (getFilteredCompletedLength): New function.
  15666. * src/MultiDiskAdaptor.cc
  15667. (mkdir): New function.
  15668. (openFile): Call mkdir().
  15669. (initAndOpenFile): Call mkdir().
  15670. * src/CancelMessage.h
  15671. (TorrentMan.h): Removed.
  15672. * src/RejectMessage.h
  15673. (TorrentMan.h): Removed.
  15674. * src/DownloadEngineFactory.cc
  15675. (DefaultPieceStorage.h): New include.
  15676. (DefaultPeerStorage.h): New include.
  15677. (DefaultBtAnnounce.h): New include.
  15678. (DefaultBtProgressInfoFile.h): New include.
  15679. (newTorrentConsoleEngine): Rewritten.
  15680. * src/ShareRatioSeedCriteria.h
  15681. (torrentMan): Removed.
  15682. (btContext): New variable.
  15683. (peerStorage): New variable.
  15684. (btRuntime): New variable.
  15685. (evaluate): Use btContext, btRuntime, peerStorage.
  15686. * src/AnnounceTier.h: New file.
  15687. * src/BtAnnounce.h: New file.
  15688. * src/BtRegistry.h: New file.
  15689. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15690. * src/PeerConnection.h (TorrentMan.h): Removed.
  15691. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15692. * src/Util.h
  15693. (slice): Added an argument.
  15694. * src/Util.cc
  15695. (slice): Added an argument to control whether trim is made or not.
  15696. * src/PeerStorage.h: New file.
  15697. * src/BtRegistry.cc: New file.
  15698. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15699. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15700. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15701. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15702. * src/TorrentRequestInfo.h
  15703. (e): Removed.
  15704. (showFileEntry): Added an argument.
  15705. (getDownloadEngine): Return 0.
  15706. * src/DefaultBtAnnounce.h: New file.
  15707. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15708. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15709. * src/PeerMessageFactory.h
  15710. (btContext): New variable.
  15711. (pieceStorage): New variable.
  15712. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15713. btAnnounce.
  15714. * src/DiskAdaptor.cc
  15715. (DiskAdaptor): Removed topDir.
  15716. (~DiskAdaptor): Removed topDir.
  15717. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15718. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15719. * src/File.h (mkdirs): New function.
  15720. * src/DefaultPeerStorage): New file.
  15721. * src/DownloadEngineFactory.h
  15722. (newTorrentConsoleEngine): Use btContext.
  15723. * src/BtContextAwareCommand.cc: New file.
  15724. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15725. * src/PeerMessage.h
  15726. (btContext): New variable.
  15727. (peerStorage): New variable.
  15728. (pieceStorage): New variable.
  15729. (setBtContext): New function.
  15730. * src/Directry.cc
  15731. (Directory): New function.
  15732. (createDir): Do nothing if name.size() == 0.
  15733. * src/AnnounceList.h
  15734. (AnnounceTier): Removed.
  15735. (AnnounceTiers): Removed.
  15736. * src/DefaultPieceStorage.h: New file.
  15737. * src/Piece.cc (toString): New function.
  15738. To fix typo:
  15739. * src/main.cc (showVersion): Fixed typo.
  15740. To fix compile warning:
  15741. * src/DelegatingPeerListProcessor.cc
  15742. (canHandle): Added "return false".
  15743. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15744. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15745. make the process of announce request testable.
  15746. * src/TrackerWatcherCommand.h
  15747. (TimeA2.h): Removed.
  15748. (interval): Removed.
  15749. (checkPoint): Removed.
  15750. (createRequestCommand): Added an argument 'url'.
  15751. (TrackerWatherCommand): Removed interval.
  15752. (createCommand): New function.
  15753. * src/DownloadEngineFactory.cc
  15754. (newTorrentConsoleEngine): Updated according to the changes in
  15755. TrackerWatherCommand.
  15756. * src/TorrentMan.cc
  15757. (DelegatingPeerListProcessor.h): New includes.
  15758. (TorrentMan): Added the initialization of announceInterval.
  15759. (isStoppedAnnounceReady): New function.
  15760. (isCompletedAnnounceReady): New function.
  15761. (isDefaultAnnounceReady): New function.
  15762. (isAnnounceReady): New function.
  15763. (getAnnounceUrl): New function.
  15764. (announceStart): New function.
  15765. (announceFailure): New function.
  15766. (announceSuccess): New function.
  15767. (isAllAnnounceFailed): New function.
  15768. (resetAnnounce): New function.
  15769. (processAnnounceResponse): New function.
  15770. (needMorePeerConnection): New function.
  15771. (noMoreAnnounce): New function.
  15772. * src/TrackerUpdateCommand.h
  15773. (getTrackerResponse): int->size_t
  15774. * src/TorrentMan.h
  15775. (isStoppedAnnounceReady): New function.
  15776. (isCompletedAnnounceReady): New function.
  15777. (isDefaultAnnounceReady): New function.
  15778. (announceInterval): New variable.
  15779. (isAnnounceReady): New function.
  15780. (getAnnounceUrl): New function.
  15781. (announceStart): New function.
  15782. (announceFailure): New function.
  15783. (announceSuccess): New function.
  15784. (isAllAnnounceFailed): New function.
  15785. (resetAnnounce): New function.
  15786. (processAnnounceResponse): New function.
  15787. (needMorePeerConnection): New function.
  15788. (noMoreAnnounce): New function.
  15789. * src/TrackerWatcherCommand.cc
  15790. (TrackerWatherCommand): Removed interval and checkPoint.
  15791. (execute): Rewritten.
  15792. (createCommand): New function.
  15793. (createRequestCommand): Rewritten.
  15794. * src/TrackerUpdateCommand.cc
  15795. (MetaFileUtil.h): Removed.
  15796. (DelegatingPeerListProcessor.h): Removed.
  15797. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15798. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15799. Request -> RequestHandle:
  15800. * src/HttpResponseCommand.h: Request->RequestHandle
  15801. * src/AbstractCommand.cc: Request->RequestHandle
  15802. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15803. * src/HttpRequestCommand.cc: Request->RequestHandle
  15804. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15805. * src/AbstractCommand.h: Request->RequestHandle
  15806. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15807. * src/HttpResponseCommand.cc: Request->RequestHandle
  15808. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15809. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15810. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15811. * src/HttpConnection.h: Request->RequestHandle
  15812. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15813. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15814. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15815. * src/DownloadCommand.h: Request->RequestHandle
  15816. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15817. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15818. * src/HttpRequestCommand.h: Request->RequestHandle
  15819. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15820. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15821. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15822. * src/HttpDownloadCommand.h: Request->RequestHandle
  15823. * src/FtpConnection.cc: Request->RequestHandle
  15824. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15825. * src/UrlRequestInfo.cc: Request->RequestHandle
  15826. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15827. * src/HttpConnection.h: Request->RequestHandle
  15828. * src/DownloadCommand.cc: Request->RequestHandle
  15829. * src/FtpConnection.h: Request->RequestHandle
  15830. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15831. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15832. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15833. * src/Request.h
  15834. (SharedHandle.h): New include.
  15835. (RequestHandle): New type definition.
  15836. (Requests): Redefined.
  15837. To add MULTITRACKER support:
  15838. * src/TrackerWatcherCommand.h
  15839. (createRequestCommand): New function.
  15840. * src/DownloadEngineFactory.cc
  15841. (newTorrentConsoleEngine): Removed req.
  15842. * src/prefs.h
  15843. (PREF_TRACKER_MAX_TRIES): New definition.
  15844. * src/TorrentMan.cc
  15845. (TorrentMan): Removed req. Added trackerNumTry.
  15846. (~TorrentMan): Removed req.
  15847. (setupInternal1): Added announceList.
  15848. * src/TorrentRequestInfo.cc
  15849. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15850. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15851. * src/main.cc
  15852. (main): Added PREF_TRACKER_MAX_TRIES.
  15853. * src/TorrentMan.h
  15854. (Request.h): Removed.
  15855. (AnnounceList.h): New include.
  15856. (trackerNumTry): New variable.
  15857. (req): Removed.
  15858. (announceList): New variable.
  15859. * src/TrackerWatcherCommand.cc
  15860. (execute): Rewritten.
  15861. (createRequestCommand): New function.
  15862. * src/TrackerUpdateCommand.cc
  15863. (execute): Updated with the use of AnnounceList.
  15864. * src/AnnounceList.cc: New class.
  15865. * src/AnnounceList.h: New class.
  15866. To fix typo:
  15867. * src/prefs.h
  15868. (PREF_MAX_TRIES): max_try->max_tries
  15869. To not to decode "+" as space in URL decode:
  15870. * src/Util.cc
  15871. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15872. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15873. To add timeout to async name resolution:
  15874. * src/AbstractCommand.h
  15875. (nameResolveFinished): New function. This is not elegant way. It needs
  15876. to be more refined.
  15877. (nameResolverCheck): New variable.
  15878. * src/AbstractCommand.cc
  15879. (AbstractCommand): Added nameResolverCheck.
  15880. (execute): Added the check whether the name resolution has finished.
  15881. (setNameResolverCheck): Set nameResolverCheck to true.
  15882. (disableNameResolverCheck): Set nameResolverCheck to false.
  15883. (nameResolverFinished): New function.
  15884. * src/FtpInitiateConnectionCommand.h
  15885. (nameResolverFinished): New function.
  15886. * src/FtpInitiateConnectionCommand.cc
  15887. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15888. * src/HttpInitiateConnectionCommand.h
  15889. (nameResolverFinished): New function.
  15890. * src/HttpInitiateConnectionCommand.cc
  15891. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15892. * src/prefs.h
  15893. (PREF_DNS_TIMEOUT): New definition.
  15894. * src/main.cc
  15895. (main): Added PREF_DNS_TIMEOUT.
  15896. To add the support for a non-compact response from a tracker:
  15897. * src/PeerListProcessor.h: New class.
  15898. * src/DefaultPeerListProcessor.h: New class.
  15899. * src/DefaultPeerListProcessor.cc: New class.
  15900. * src/CompactPeerListProcessor.h: New class.
  15901. * src/CompactPeerListProcessor.cc: New class.
  15902. * src/DelegatingPeerListProcessor.h: New class.
  15903. * src/DelegatingPeerListProcessor.cc: New class.
  15904. * src/TorrentMan.cc
  15905. (addPeer): New function(overload).
  15906. (addPeer): Delete unused peers only when new peer is added.
  15907. * src/TorrentMan.h
  15908. (PeerListProcessor.h): Included.
  15909. (Peers): Removed.
  15910. (addPeer): New function(overload).
  15911. * src/TrackerUpdateCommand.cc
  15912. (netinet/in.h): Removed.
  15913. (DelegatingPeerListProcessor.h): Included.
  15914. (execute): Updated to use DelegatingPeerListProcessor.
  15915. To fix the memory leak in TorrentMan::peers:
  15916. * src/PeerAbstractCommand.cc
  15917. (onAbort): Added peer->resetStatus().
  15918. * src/Peer.h
  15919. (resetStatus): Made public.
  15920. To improve the precision of the speed calculation:
  15921. * src/SpeedCalc.h
  15922. (nextInterval): New variable.
  15923. * src/SpeedCalc.cc
  15924. (reset): Added nextInterval.
  15925. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15926. (changeSw): Set nextInterval to 15 seconds relative to the current
  15927. instant time.
  15928. * src/main.cc
  15929. (showVersion): Updated.
  15930. (showUsage): Updated.
  15931. * Release 0.8.1
  15932. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15933. * src/main.cc
  15934. (showUsage): Commented out --min-segment-size option.
  15935. (main): Commented out --min-segment-size option.
  15936. * Release 0.8.0
  15937. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15938. * src/*.{h,cc}:
  15939. Added an exception to the license which allows linking with OpenSSL.
  15940. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15941. * src/AbstractCommand.cc
  15942. (execute): Check whether the download has finished before checking
  15943. socket status.
  15944. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15945. Do not exit even if no segment is available.
  15946. * src/prefs.h
  15947. (PREF_STARTUP_IDLE_TIME): New definition.
  15948. * src/PeerInteractionCommand.cc
  15949. (executeInternal): Removed max speed limit. Because it performs bad.
  15950. (receiveMessages): Added max speed limit. This was better than above,
  15951. but still a little bit to be desired. Sometimes the download speed
  15952. became much faster than I specified.
  15953. * src/SpeedCalc.h
  15954. (start): New variable.
  15955. (accumulatedLength): New variable.
  15956. (getAvgSpeed): New function.
  15957. * src/SpeedCalc.cc
  15958. (reset): Added start, accumulatedLength.
  15959. (update): Added calculation of an average speed.
  15960. (getAvgSpeed): New function.
  15961. * src/DownloadCommand.h
  15962. (sw): Removed.
  15963. * src/main.cc
  15964. (main): Added PREF_STARTUP_IDLE_TIME.
  15965. * src/PeerStat.h
  15966. (STATUS): Added REQUEST_IDLE.
  15967. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15968. (getAvgDownloadSpeed): New function
  15969. (requestIdle): New function.
  15970. * src/SegmentMan.h
  15971. (SegmentEntryHandle): New type definition.
  15972. (SegmentEntries): Now holds SegmentEntryHandle.
  15973. (findSlowerSegmentEntry): New funtion.
  15974. * src/SegmentMan.cc
  15975. (save): Updated according to the changes in SegmentEntries.
  15976. (read): Updated according to the changes in SegmentEntries.
  15977. (FindSegmentEntryByIndex): Updated according to the changes in
  15978. SegmentEntries.
  15979. (FindSegmentEntryByCuid): Updated according to the changes in
  15980. SegmentEntries.
  15981. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15982. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15983. Renamed uitr as itr.
  15984. (findSlowerSegmentEntry): New function.
  15985. (getSegment): Updated according to the changes in SegmentEntries.
  15986. Added the feature that cancels the segment with slow server and fast
  15987. one takes it over.
  15988. (cancelSegment): Updated according to the changes in SegmentEntries.
  15989. (getDownloadLength): Updated according to the changes in
  15990. SegmentEntries.
  15991. (init): Assigned 0 to bitfield after deleting it.
  15992. * src/DownloadCommand.cc
  15993. (STARTUP_IDLE_TIME): Removed.
  15994. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15995. * src/PeerChokeCommand.cc
  15996. (optUnchokingPeer): Updated according to the changes in Peer.
  15997. (ResetDelta): Removed.
  15998. (UploadFaster): Updated according to the changes in Peer.
  15999. (DownloadFaster): Updated according to the changes in Peer.
  16000. (execute): I clarify the meaning of "upload" and "download" here.
  16001. "upload" means the transfer from localhost to remote host.
  16002. "download" means the transfer from remote host to localhost.
  16003. Based on this rule, I swapped orderByUploadRate and
  16004. orderByDownloadRate.
  16005. * src/PeerInteractionCommand.cc
  16006. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  16007. (executeInternal): Removed the argument of
  16008. peerInteraction->sendMessages().
  16009. (receiveMessages): Rewritten download speed limit.
  16010. (sendKeepAlive): Removed peerInteraction->sendMessages().
  16011. * src/HttpResponseCommand.cc
  16012. (handleDefaultEncoding): If file size is unknown in torrent request,
  16013. do not call segmentMan->initBitfield() here.
  16014. Disabled persistent connection feature in torrent request.
  16015. * src/UrlRequestInfo.h
  16016. (UrlRequestInfo): Removed const qualifier from option.
  16017. * src/TorrentMan.h
  16018. (TransferStat): New class.
  16019. (deltaDownloadLength): Removed.
  16020. (deltaUploadLength): Removed.
  16021. (addDeltaDownloadLength): Removed.
  16022. (getDeltaDownloadLength): Removed.
  16023. (resetDeltaDownloadLength): Removed.
  16024. (addDeltaUploadLength): Removed.
  16025. (getDeltaUploadLength): Removed.
  16026. (resetDeltaUploadLength): Removed.
  16027. (addActivePeer): Added peer->activate().
  16028. (deleteActivePeer): Added peer->deactivate().
  16029. (calculateStat): New function.
  16030. * src/TorrentMan.cc
  16031. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  16032. (calculateStat): New function.
  16033. * src/PeerInteraction.h
  16034. (uploadLimit): Removed.
  16035. (option): New variable.
  16036. (setUploadLimit): Removed.
  16037. (getUploadSpeed): Removed.
  16038. (sendMessages): Removed the argument "currentUploadSpeed".
  16039. * src/PeerInteraction.cc
  16040. (prefs.h): Included.
  16041. (PeerInteraction): Removed uploadLimit. Added option.
  16042. (sendMessages): Rewritten upload speed limit.
  16043. (sendHandshake): Removed the argument from sendMessages().
  16044. (sendBitfield): Removed the argument from sendMessages().
  16045. * src/PeerAbstractCommand.cc
  16046. (execute): Commented out the portion of upload limit.
  16047. (onAbort): Removed peer->resetStatus().
  16048. * src/TorrentRequestInfo.cc
  16049. (timeoutSpecified): Declared extern.
  16050. (execute): Set timeout to 180 if timeout is not specified by.
  16051. command-line.
  16052. * src/PieceMessage.cc
  16053. (receivedAction): Added peer->updateDownloadLength().
  16054. Removed peer->addPeerUpload().
  16055. Removed torrentMan->addDeltaDownloadLength().
  16056. (send): Added peer->updateUploadLength().
  16057. Removed peer->addPeerDownload().
  16058. Removed torrentMan->addDeltaUploadLength().
  16059. * src/main.cc
  16060. (timeoutSpecified): New variable.
  16061. (main): Set timeoutSpecified to false.
  16062. If the command-line option "--upload-limit" is specified, then
  16063. timeoutSpecified is set to true. This option will remain in the next
  16064. release, but be deprecated in the future release.
  16065. * src/TorrentRequestInfo.h
  16066. (TorrentRequestInfo): Removed const qualifier from op.
  16067. * src/PeerStat.h
  16068. (uploadSpeed): New variable.
  16069. (PeerStat): Added default value to cuid.
  16070. (calculateUploadSpeed): New function.
  16071. (updateUploadLength): New function.
  16072. (getMaxUploadSpeed): New function.
  16073. (getAvgUploadSpeed): New function.
  16074. (reset): Added uploadSpeed. Set status to IDLE.
  16075. * src/TorrentDownloadEngine.h
  16076. (cp): Declared as Time.
  16077. (sessionDownloadLengthArray): Removed.
  16078. (sessionUploadLengthArray): Removed.
  16079. (currentCp): Removed.
  16080. (lastCalcStat): New variable
  16081. (lastElapsed): Removed.
  16082. (sessionDownloadLength): Removed.
  16083. (calculateStat): New function.
  16084. * src/TorrentDownloadEngine.cc
  16085. (initStatistics): Removed lastElapsed, cp[],
  16086. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  16087. currentCp, sessionDownloadLength.
  16088. Added cp.reset() and lastCalcStat.reset().
  16089. (calculateSpeed): Changed the name of the argument.
  16090. (calculateStatistics): Rewritten.
  16091. (calculateStat): New function.
  16092. * src/Peer.h
  16093. (PeerStat.h): Included.
  16094. (peerUpload): Removed.
  16095. (peerDownload): Removed.
  16096. (peerStat): New variable.
  16097. (sessionUploadLength): New variable.
  16098. (sessionDownloadLength): New variable.
  16099. (deltaUpload): Removed.
  16100. (deltaDownload): Removed.
  16101. (resetStatus): Made private.
  16102. (Peer): Added sessionUploadLength, sessionDownloadLength.
  16103. Removed peerUpload, peerDownload.
  16104. (updateUploadLength): New function.
  16105. (addDeltaUpload): Removed.
  16106. (updateDownloadLength): New function.
  16107. (resetDeltaUpload): Removed.
  16108. (getDeltaUpload): Removed.
  16109. (addDeltaDownload): Removed.
  16110. (calculateUploadSpeed): New function.
  16111. (resetDeltaDownload): Removed.
  16112. (getDeltaDownload): Removed.
  16113. (calculateDownloadSpeed): New function.
  16114. (getSessionUploadLength): New function.
  16115. (getSessionDownloadLength): New function.
  16116. (activate): New function.
  16117. (deactivate): New function.
  16118. (addPeerUpload): Removed.
  16119. (setPeerUpload): Removed.
  16120. (getPeerUpload): Removed.
  16121. (addPeerDownload): Removed.
  16122. (setPeerDownload): Removed.
  16123. (getPeerDownload): Removed.
  16124. * src/Peer.cc
  16125. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  16126. * src/MetalinkRequestInfo.h
  16127. (MetalinkRequestInfo): Removed const qualifier from op.
  16128. * src/RequestInfo.h
  16129. (op): Removed const qualifier.
  16130. (RequestInfo): Removed const qualifier from op.
  16131. * src/prefs.h
  16132. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  16133. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  16134. * src/PeerInteractionCommand.cc
  16135. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  16136. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  16137. * src/PeerInteraction.cc
  16138. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  16139. * src/main.cc
  16140. (showUsage): Updated the description of "--lowest-speed-limit" option.
  16141. Added the description of "--max-download-limit" option.
  16142. Removed the description of "--upload-limit" option.
  16143. Added the description of "--max-upload-limit" option.
  16144. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  16145. Added "--max-download-limit" option and "--max-upload-limit" option.
  16146. Added the warning message if "--upload-limit" option is used.
  16147. * src/DownloadCommand.cc
  16148. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  16149. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16150. To rewrite segment download mechanism for HTTP/FTP download.
  16151. Use BitfieldMan to manage segment download.
  16152. * src/HttpResponseCommand.h
  16153. (executeInternal): Pass the reference of segment.
  16154. * src/AbstractCommand.cc
  16155. (prepareForRetry): Call segmentMan->cancelSegment here.
  16156. (onAbort): Call segmentMan->cancelSegment here.
  16157. * src/HttpDownloadCommand.cc
  16158. (prepareForNextSegment): New function.
  16159. * src/DownloadEngineFactory.cc
  16160. (newConsoleEngine): Removed splitter.
  16161. (newTorrentConsoleEngine): Removed splitter.
  16162. * src/Request.h
  16163. (segment): Renamed from seg.
  16164. * src/FtpInitiateConnectionCommand.h
  16165. (executeInternal): Pass the reference of segment.
  16166. * src/AbstractCommand.h
  16167. (executeInternal): Pass the reference of segment.
  16168. * src/pref.h
  16169. (PREF_SEGMENT_SIZE): New definition.
  16170. * src/HttpProxyRequestCommand.h
  16171. (executeInternal): Pass the reference of segment.
  16172. * src/HttpResponseCommand.cc
  16173. (checkResponse): Allowed status 206 when a request range starts 0.
  16174. (handleDefaultEncoding): Rewritten the code related to Segment.
  16175. (handleOtherEncoding): Rewritten the code related to Segment.
  16176. * src/SegmentMan.h
  16177. (SegmentEntry): New class.
  16178. (SegmentEntries): New type definition.
  16179. (bitfield): New variable.
  16180. (usedSegmentEntries): New variable.
  16181. (onNullBitfield): New function.
  16182. (checkoutSegment): New function.
  16183. (segments): Removed.
  16184. (splitter): Removed.
  16185. (unregisterId): Removed.
  16186. (getSegment): New function(overload)
  16187. (getDownloadedSize): Removed.
  16188. (cancelSegment): New function.
  16189. (completeSegment): New function.
  16190. (initBitfield): New function.
  16191. (hasSegment): New function.
  16192. (getDownloadLength): New function.
  16193. * src/BitfieldMan.h
  16194. (getStartIndex): New function.
  16195. (getEndIndex): New function.
  16196. (getMissingUnusedIndex): New function(overload).
  16197. (getSparseMissingUnusedIndex): New function.
  16198. * src/BitfieldMan.cc
  16199. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  16200. (getMissingUnusedIndex): New function(overload).
  16201. (Range): New class.
  16202. (getStartIndex): New function.
  16203. (getEndIndex): New function.
  16204. (getSparseMissingUnusedIndex): New function.
  16205. (isBitSetInternal): Return false if the given index is less than 0.
  16206. * src/HttpInitiateConnectionCommand.h
  16207. (executeInternal): Pass the reference of segment.
  16208. * src/FtpNegotiateCommand.h
  16209. (executeInternal): Pass the reference of segment.
  16210. * src/FtpNegotiateCommand.cc
  16211. (recvSize): Initialize bitfield here.
  16212. * src/FtpTunnelResponseCommand.h
  16213. (executeInternal): Pass the reference of segment.
  16214. * src/HttpConnection.cc
  16215. (createRequest): Rewritten range header processing.
  16216. * src/DownloadCommand.h
  16217. (executeInternal): Pass the reference of segment.
  16218. (prepareForRetry): Removed.
  16219. (prepareForNextSegment): Added an argument segment. Made it a virtual
  16220. function.
  16221. * src/main.cc
  16222. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  16223. * src/SegmentMan.cc
  16224. (SegmentMan): Added bitfield. Removed splitter.
  16225. (~SegmentMan): Added bitfield. Removed splitter.
  16226. (unregisterId): Removed.
  16227. (getSegment): Rewritten.
  16228. (updateSegment): Rewritten.
  16229. (save): Rewritten.
  16230. (read): Rewritten.
  16231. (finished): Rewritten.
  16232. (getDownloadedSize): Removed.
  16233. (initBitfield): New function.
  16234. (FindSegmentEntryByIndex): New function object.
  16235. (FindSegmentEntryByCuid): New function object.
  16236. (checkoutSegment): New function.
  16237. (onNullBitfield): New function.
  16238. (getSegment): New function(overload).
  16239. (CancelSegment): New function object.
  16240. (cancelSegment): New function.
  16241. (completeSegment): New function.
  16242. (hasSegment): New function.
  16243. (getDownloadLength): New function.
  16244. * src/FtpInitiateConnectionCommand.cc
  16245. (executeInternal): Load .aria2 file after hostname resolution finishes.
  16246. * src/Segment.h: Rewritten.
  16247. * src/Segment.cc (operator<<): New function.
  16248. * src/HttpDownloadCommand.h
  16249. (prepareForNextSegment): New function.
  16250. * src/Request.cc
  16251. (resetUrl): Made segment null.
  16252. * src/DownloadEngine.cc
  16253. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  16254. * src/HttpProxyRequestCommand.h
  16255. (executeInternal): Pass the reference of segment.
  16256. * src/DownloadCommand.cc
  16257. (executeInternal): Rewritten the code related to Segment.
  16258. (prepareForRetry): Removed.
  16259. (prepareForNextSegment): Rewritten.
  16260. * src/FtpTunnelResponseCommand.h
  16261. (executeInternal): Pass the reference of segment.
  16262. To add HTTP 1.1 persistent connection support(experimental)
  16263. * src/HttpRequestCommand.cc
  16264. (executeInternal): Disable keep alive if it is disabled by
  16265. configuration.
  16266. * src/Request.h
  16267. (keepAlive): New variable.
  16268. (isKeepAlive): New function.
  16269. (setKeepAlive): New function.
  16270. * src/pref.h
  16271. (PREF_HTTP_KEEP_ALIVE): New definition.
  16272. * src/HttpResponseCommand.cc
  16273. (executeInternal): Check the remote server supports keep alive.
  16274. * src/HttpConnection.cc
  16275. (createRequest): Send "Connection: close" only if keep alive is
  16276. disabled.
  16277. * src/main.cc
  16278. (main):
  16279. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  16280. To add max download speed limit:
  16281. * src/pref.h
  16282. (PREF_MAX_SPEED_LIMIT): New definition.
  16283. * src/PeerInteractionCommand.cc
  16284. (executeInternal): Added max download speed limit. Not tested yet.
  16285. * src/SegmentMan.h
  16286. (PeerStats): New type definition.
  16287. (peerStats): New variable.
  16288. (registerPeerStat): New function.
  16289. (FindPeerStat): New function object.
  16290. (getPeerStat): New function.
  16291. (calculateDownloadSpeed): New function.
  16292. * src/SpeedCalc.h: New class.
  16293. * src/SpeedCalc.cc: New class.
  16294. * src/main.cc
  16295. (main):
  16296. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  16297. download speed is not restricted).
  16298. * src/PeerStat.h: New class.
  16299. * src/SegmentMan.cc
  16300. (registerPeerStat): New function.
  16301. (calculateDownloadSpeed): New function.
  16302. * src/DownloadCommand.cc
  16303. (STARTUP_IDLE_TIME): New definition.
  16304. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  16305. downloadStart.
  16306. (~DownloadCommand): Call peerStat->downloadStop.
  16307. (executeInternal): Added download speed limitter. Rewritten lowest
  16308. speed limitter.
  16309. * src/HttpConnection.cc
  16310. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  16311. * src/AbstractCommand.cc
  16312. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  16313. Added hostname to the error message.
  16314. * src/ConsoleDownloadEngine.cc
  16315. (calculateStatistics): Initialize psize with dlSize.
  16316. * src/PieceMessage.cc
  16317. (receivedAction): Do not call peerInteraction->abortPiece here.
  16318. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  16319. * src/BitfieldMan.h
  16320. (clearAllUseBit): New function.
  16321. (setAllUseBit): New function.
  16322. * src/BitfieldMan.cc
  16323. (clearAllBit): Do not clear useBitfield here.
  16324. (clearAllUseBit): New function.
  16325. (setAllUseBit): New function.
  16326. * src/Piece.cc
  16327. (clearAllBlock): Call bitfield->clearAllUseBit().
  16328. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16329. To make filename URL-decoded:
  16330. * src/HttpResponseCommand.h: Updated doc.
  16331. * src/HttpResponseCommand.cc
  16332. (determinFilename): Made filename URL-decoded.
  16333. * src/FtpInitiateConnectionCommand.cc
  16334. (executeInternal): Made filename URL-decoded.
  16335. * src/Util.h (urldecode): New function.
  16336. * src/Util.cc (urldecode): New function.
  16337. To fix a bug that caused assertion failure in ares_strerror:
  16338. * src/NameResolver.cc (callback): Fixed the bug.
  16339. * Release 0.7.3
  16340. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16341. To add --seed-time and --seed-ratio command-line option:
  16342. * src/Option.h (getAsDouble): New function.
  16343. * src/Option.cc (getAsDouble): New function.
  16344. * src/SeedCheckCommand.h: New class.
  16345. * src/SeedCheckCommand.cc: New class.
  16346. * src/DownloadEngineFactory.cc
  16347. (SeedCheckCommand.h): Included.
  16348. (UnionSeedCriteria.h): Included.
  16349. (TimeSeedCriteria.h): Included.
  16350. (ShareRatioSeedCriteria.h): Included.
  16351. (newTorrentConsoleEngine): Added the processing of seed option.
  16352. * src/SeedCriteria.h: New class.
  16353. * src/ShareRatioSeedCriteria.h: New class.
  16354. * src/TimeSeedCriteria.h: New class.
  16355. * src/UnionSeedCriteria.h: New class.
  16356. * src/prefs.h
  16357. (PREF_SEED_TIME): New definition.
  16358. (PREF_SEED_RATIO): New definition.
  16359. * src/main.cc
  16360. (showUsage): Added --seed-time and --seed-ratio option.
  16361. (main): Added --seed-time and --seed-ratio option.
  16362. Made default log file name "/dev/null".
  16363. * src/SharedHandle.h
  16364. (SharedHandle): Copy constructor. Made it assignable from the
  16365. SharedHandle of the subclasses.
  16366. (operator=): Made it assignable from the SharedHandle of the
  16367. subclasses.
  16368. (getRefCount): New function.
  16369. To add notice log level and the switch to write log to stdout. This
  16370. switch is configurable per log level.
  16371. * src/Logger.h
  16372. (notice): New function.
  16373. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  16374. constant.
  16375. * src/LogFactory.cc
  16376. (getInstance): The use of NullLogger was removed. A log message with
  16377. notice log level was made written to stdout along with log file.
  16378. * src/NullLogger.h
  16379. (notice): New function.
  16380. * src/SimpleLogger.h
  16381. (writeHeader): Added the 'file' argument.
  16382. (writeLog): Added the 'file' argument.
  16383. (writeFile): New function.
  16384. (stdoutField): New variable.
  16385. (SimpleLogger): Removed the default constructor.
  16386. (SimpleLogger): Made the default value of logfile 0.
  16387. (debug): Added 'virtual' keyword.
  16388. (info): Added 'virtual' keyword.
  16389. (warn): Added 'virtual' keyword.
  16390. (error): Added 'virtual' keyword.
  16391. (notice): New function.
  16392. (setStdout): New function.
  16393. * src/SimpleLogger.cc
  16394. (WRITE_LOG): Replaced writeLog with writeFile.
  16395. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  16396. (SimpleLogger): Removed the default constructor.
  16397. (setStdout): New function.
  16398. (writeLog): Added the handling of NOTICE log level.
  16399. (writeFile): New function.
  16400. (notice): New function.
  16401. * src/TorrentMan.h: Updated doc.
  16402. * src/BitfieldMan.h: Updated doc.
  16403. * src/TrackerWatcherCommand.cc
  16404. (execute): Return true if error occurred in the request to the tracker
  16405. and halt is requested.
  16406. * src/TrackerUpdateCommand.cc
  16407. (execute): Return true if error occurred in the request to the tracker
  16408. and halt is requested.
  16409. To call onDownloadComplete from TorrentMan::completePiece(), not from
  16410. DownloadEngine:
  16411. * src/TorrentConsoleDownloadEngine.h
  16412. (onSelectiveDownloadingCompletes): Removed.
  16413. * src/TorrentConsoleDownloadEngine.cc
  16414. (onSelectiveDownloadingCompletes): Removed.
  16415. * src/TorrentDownloadEngine.h
  16416. (onEndOfRun): Added 'virtual' keyword.
  16417. (afterEachIteration): Removed.
  16418. (onSelectiveDownloadingCompletes): Removed.
  16419. * src/TorrentDownloadEngine.cc
  16420. (onEndOfRun): Removed filenameFixed.
  16421. (afterEachIteration): Removed.
  16422. * src/TorrentMan.cc
  16423. (completePiece): Call onDownloadComplete here.
  16424. (onDownloadComplete): Added 2 log messages.
  16425. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16426. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  16427. * src/NameResolver.h: Added the prototype declaration of callback().
  16428. To support c-ares library:
  16429. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16430. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16431. * src/FtpInitiateConnectionCommand.h:
  16432. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16433. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16434. * src/HttpInitiateConnectionCommand.h:
  16435. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16436. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  16437. Added thes upport of c-ares's ares_strerror(the idea came from patch
  16438. #1542285 by tizianomueller)
  16439. * src/HttpInitiateConnectionCommand.cc:
  16440. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16441. * src/FtpInitiateConnectionCommand.cc:
  16442. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16443. * src/DownloadEngine.h:
  16444. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16445. * src/DownloadEngine.cc:
  16446. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16447. To fix the bug that causes compilation failure with metalink-support
  16448. disabled(bug#1543587):
  16449. * src/main.cc: Fixed with the patch by tizianomueller.
  16450. * Release 0.7.2
  16451. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16452. * src/main.cc
  16453. (main): Added a message to inform users that aria2 is starting to
  16454. verify checksum.
  16455. * src/RequestInfo.cc
  16456. (printDownloadAbortMessage): Added a message to inform users that
  16457. transfer can be resumed.
  16458. * src/FeatureConfig.cc
  16459. (FEATURE_ASYNC_DNS): New definition.
  16460. (FeatureConfig): Added aysnc DNS entry.
  16461. To replace CommandUuid with Command* in SocketEntry and
  16462. NameResolverEntry:
  16463. * src/DownloadEngine.h
  16464. (CommandUuids): Removed.
  16465. (SocketEntry::commandUuid): Removed.
  16466. (SocketEntry::command): New variable.
  16467. (SocketEntry::SocketEntry): Updated.
  16468. (SocketEntry::operator==): Updated.
  16469. (NameResolverEntry::commandUuid): Removed.
  16470. (NameResolverEntry::command): New variable.
  16471. (NameResolverEntry::NameResolverEntry): Updated.
  16472. (NameResolverEntry::operator==): Updated.
  16473. (waitData): Changed the argument type.
  16474. (addSocketForReadCheck): Changed the argument type.
  16475. (deleteSocketForReadCheck): Changed the argument type.
  16476. (addSocketForWriteCheck): Changed the argument type.
  16477. (deleteSocketForWriteCheck): Changed the argument type.
  16478. (addNameResolverCheck): Changed the argument type.
  16479. (deleteNameResolverCheck): Changed the argument type.
  16480. * src/DownloadEngine.cc
  16481. (FindCommand): Removed.
  16482. (run): Removed activeUuid. Added activeCommands instead.
  16483. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  16484. (AccumulateActiveCommand): New function object.
  16485. (waitData): Use AccumulateActiveCommand.
  16486. (addSocketForReadCheck): Use Command instead of CommandUuid.
  16487. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  16488. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  16489. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  16490. (addNameResolverCheck): Use Command instead of CommandUuid.
  16491. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  16492. * src/AbstractCommand.cc
  16493. (disableReadCheckSocket): Updated according to the changes in
  16494. DownloadEngine.
  16495. (setReadCheckSocket): Updated according to the changes in
  16496. DownloadEngine.
  16497. (disableWriteCheckSocket): Updated according to the changes in
  16498. DownloadEngine.
  16499. (setWriteCheckSocket): Updated according to the changes in
  16500. DownloadEngine.
  16501. (setNameResolverCheck): Updated according to the changes in
  16502. DownloadEngine.
  16503. (disableNameResolverCheck): Updated according to the changes in
  16504. DownloadEngine.
  16505. * src/AbstractCommand.cc
  16506. (disableReadCheckSocket): Updated according to the changes in
  16507. DownloadEngine.
  16508. (setReadCheckSocket): Updated according to the changes in
  16509. DownloadEngine.
  16510. (disableWriteCheckSocket): Updated according to the changes in
  16511. DownloadEngine.
  16512. (setWriteCheckSocket): Updated according to the changes in
  16513. DownloadEngine.
  16514. * release 0.7.1
  16515. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16516. To handle the case where some BitTorrent tracker requires all letters
  16517. except for [A-Za-z0-9] is URL encoded.
  16518. * src/Util.h
  16519. (torrentUrlencode): New function.
  16520. * src/Util.cc
  16521. (ctype.h): Included.
  16522. (torrentUrlencode): New function.
  16523. * src/TrackerWatcherCommand.cc
  16524. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  16525. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16526. To add asynchronous DNS support(libares):
  16527. * src/AbstractCommand.h
  16528. (setNameResolverCheck): New function.
  16529. (disableNameResolverCheck): New function
  16530. (resolveHostname): New function.
  16531. * src/AbstractCommand.cc
  16532. (setNameResolverCheck): New function.
  16533. (disableNameResolverCheck): New function
  16534. (resolveHostname): New function.
  16535. * src/FtpInitiateConnectionCommand.h
  16536. (nameResolver): New function.
  16537. * src/FtpInitiateConnectionCommand.cc
  16538. (Util.h): Included.
  16539. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  16540. disableWriteCheckSocket.
  16541. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  16542. (executeInternal): Added async DNS support.
  16543. * src/HttpInitiateConnectionCommand.h
  16544. (nameResolver): New function.
  16545. * src/HttpInitiateConnectionCommand.cc
  16546. (DlRetryEx.h): Included.
  16547. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16548. disableWriteCheckSocket.
  16549. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16550. (executeInternal): Added async DNS support.
  16551. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16552. by extern "C" declaration.
  16553. * src/NameResolver.cc: New class.
  16554. * src/Util.h:
  16555. (isNumberAndDotsNotation): New function
  16556. * src/Util.cc
  16557. (isNumberAndDotsNotation): New function.
  16558. * src/DownloadEngine.h
  16559. (NameResolver.h): Included.
  16560. (NameResolverEntry): New class.
  16561. (NameResolverEntries): New type definition.
  16562. (addNameResolverCheck): New function.
  16563. (deleteNameResolverCheck): New function.
  16564. * src/DownloadEngine.cc
  16565. (run): Initialize cp with 0.
  16566. (SetDescriptor::operator()): Added for NameResolverEntry.
  16567. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16568. (waitData): Check nameResolver entries.
  16569. (updateFdSet): Update fds in nameResolver entries.
  16570. (addNameResolverCheck): New function.
  16571. (deleteNameResolverCheck): new function.
  16572. * src/PeerInteractionCommand.cc
  16573. (executeInternal): Fixed wrong socket handling.
  16574. * src/main.cc
  16575. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16576. * src/Util.cc
  16577. (fileChecksum): Removed the call to ctx.digestReset().
  16578. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16579. * po/ru.po: Azamat sent me Russian translation.
  16580. * src/FtpNegotiateCommand.cc
  16581. (recvGreeting): Call disableWriteCheckSocket just after
  16582. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16583. (recvRetr): Recognized status code 125 as a acceptable response code.
  16584. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16585. case-insesitive filesystem(BUG#1531057).
  16586. * src/Time.h: Renamed as TimeA2.h.
  16587. * src/Time.cc: Renamed as TimeA2.cc.
  16588. * src/TimeA2.h: New class.
  16589. * src/TimeA2.cc: New class.
  16590. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16591. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16592. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16593. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16594. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16595. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16596. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  16597. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  16598. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  16599. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16600. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  16601. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  16602. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  16603. * release 0.7.0
  16604. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16605. * src/PeerChokeCommand.h
  16606. (PeerChokeCommand): Rearranged the arguments.
  16607. * src/PeerChokeCommand.cc
  16608. (PeerChokeCommand): Rearranged the arguments.
  16609. * src/MetalinkEntry.h
  16610. (Checksum.h): Included.
  16611. (md5): Removed.
  16612. (sha1): Removed.
  16613. (checksum): New variable.
  16614. (operator=): Updated.
  16615. (check): Removed.
  16616. * src/prefs.h
  16617. (PREF_LOWEST_SPEED_LIMIT): New definition.
  16618. (PREF_FOLLOW_TORRENT): New definition.
  16619. (PREF_SELECT_FILE): New definition.
  16620. (PREF_FOLLOW_METALINK): New definition.
  16621. * src/MetalinkResource.h
  16622. (TYPE_HTTPS): Added to enum TYPE.
  16623. * src/TorrentMan.cc
  16624. (~TorrentMan): Rewritten.
  16625. * src/MultiDiskWriter.cc
  16626. (MultiDiskAdaptor): Updated according to the changes in
  16627. MessageDigestContext.
  16628. (~MultiDiskAdaptor): Updated according to the changes in
  16629. MessageDigestContext.
  16630. (hashUpdate): Updated according to the changes in MessageDigestContext.
  16631. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16632. * src/Util.h
  16633. (fileChecksum): Updated according to the changes in
  16634. MessageDigestContext.
  16635. * src/Util.cc
  16636. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16637. (fileChecksum): Updated according to the changes in
  16638. MessageDigestContext.
  16639. * src/messageDigest.h: Rewritten.
  16640. * src/MetalinkEntry.cc
  16641. (check): Removed.
  16642. (Supported): Updated.
  16643. (dropUnsupportedResource): Fixed a memory leak.
  16644. * src/ShaVisitor.cc
  16645. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  16646. (~ShaVisitor): Updated according to the changes in
  16647. MessageDigestContext.
  16648. (visit): Updated according to the changes in MessageDigestContext.
  16649. * src/main.cc
  16650. (main): Rewritten the portion of download loop. --lowest-speed-limit
  16651. command-line option added.
  16652. * src/DownloadEngine.h
  16653. (SocketEntry): New class.
  16654. (SocketEntries): New definition.
  16655. (PairFind): Removed.
  16656. (SockCmdMap): Removed.
  16657. * src/DownloadEngine.cc
  16658. (DownloadEngine): Rewritten.
  16659. (~DownloadEngine): Rewritten.
  16660. (run): Renamed activeCommandUuids as activeUuids.
  16661. (SetDescriptor): Rewritten.
  16662. (AccumulateActiveCommandUuid): Removed.
  16663. (AccumulateActiveUuid): New function object.
  16664. (waitData): Rewritten.
  16665. (updateFdSet): Rewritten.
  16666. (addSocket): Rewritten.
  16667. (deleteSocket): Rewritten.
  16668. (addSocketForReadCheck): Rewritten.
  16669. (deleteSocketForReadCheck): Rewritten.
  16670. (addSocketForWriteCheck): Rewritten.
  16671. (deleteSocketForWriteCheck): Rewritten.
  16672. * src/Xml2MetalinkProcessor.cc
  16673. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16674. * src/DownloadCommand.cc
  16675. (executeInternal): Added the check routine for lowest speed limit.
  16676. * src/AbstractDiskWriter.cc
  16677. (AbstractDiskWriter): Updated according to the changes in
  16678. MessageDigestContext.
  16679. (~AbstractDiskWriter): Updated according to the changes in
  16680. MessageDigestContext.
  16681. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16682. * src/RequestInfo.h: New class.
  16683. * src/UrlRequestInfo.h: New class.
  16684. * src/UrlRequestInfo.cc: New class.
  16685. * src/TorrentRequestInfo.h: New class.
  16686. * src/TorrentRequestInfo.cc: New class.
  16687. * src/MetalinkRequestInfo.h: New class.
  16688. * src/MetalinkRequestInfo.cc: New class.
  16689. * src/Checksum.h: New class.
  16690. * src/DownloadEngineFactory.h: New class.
  16691. * src/DownloadEngineFactory.cc: New class.
  16692. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16693. * src/Option.h
  16694. (getAsBool): New function.
  16695. * src/Option.cc
  16696. (prefs.h): Included.
  16697. (defined): 0-length value is now recognized as undefined.
  16698. (getAsInt): Rewritten.
  16699. (getAsLLInt): Rewritten.
  16700. (getAsBool): New function.
  16701. * src/FeatureConfig.h: Rewritten.
  16702. * src/FeatureConfig.cc: Rewritten.
  16703. * src/prefs.h
  16704. (PREF_STDOUT_LOG): New definition.
  16705. (PREF_LOG): New definition.
  16706. (PREF_DIR): New definition.
  16707. (PREF_OUT): New definition.
  16708. (PREF_SPLIT): New definition.
  16709. (PREF_DAEMON): New definition.
  16710. (PREF_REFERER): New definition.
  16711. (PREF_TORRENT_FILE): New definition.
  16712. (PREF_LISTEN_PORT): New definition.
  16713. (PREF_METALINK_FILE): New definition.
  16714. (PREF_METALINK_VERSION): New definition.
  16715. (PREF_METALINK_LANGUAGE): New definition.
  16716. (PREF_METALINK_OS): New definition.
  16717. (PREF_METALINK_SERVERS): New definition.
  16718. * src/main.cc
  16719. (main): Following command-line parameters are now put into Option
  16720. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16721. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16722. metalinkLanguage, metalinkOs, metalinkServers
  16723. To fix the bug that aria2 can not handle http response header properly.
  16724. * src/HttpHeader.cc
  16725. (put): Made name lowercased.
  16726. (defined): Made name lowercased.
  16727. (getFirst): Made name lowercased.
  16728. (get): Made name lowercased.
  16729. (getFirstAsInt): Rewritten.
  16730. (getFirstAsLLInt): Rewritten.
  16731. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16732. * src/TorrentMan.h:
  16733. (advertisePiece): Updated doc.
  16734. (getAdvertisedPieceIndexes): Updated doc.
  16735. (removeAdvertisedPiece); New function.
  16736. * src/TorrentMan.cc
  16737. (FindElapsedHave): New function object.
  16738. (removeAdvertisedPiece): New function.
  16739. * src/HaveEraseCommand.h: New class.
  16740. * src/HaveEraseCommand.cc: New class.
  16741. * src/FeatureConfig.h: New class.
  16742. * src/FeatureConfig.cc: New class.
  16743. * src/Request.h
  16744. (defaultPorts): Removed.
  16745. * src/Request.cc
  16746. (FeatureConfig.h): Included.
  16747. (Request): Removed the statements related to defaultPorts.
  16748. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16749. A default port number is now retrieved from FeatureConfig.
  16750. * src/main.cc
  16751. (HaveEraseCommand.h): Included.
  16752. (showVersion): Added the output of feature list.
  16753. (main): Added HaveEraseCommand to command queue in BitTorrent
  16754. downloading.
  16755. * src/PeerInteractionCommand.h
  16756. (chokeCheckPoint): Commented out.
  16757. (periodicExecPoint): New variable.
  16758. * src/PeerInteractionCommand.cc
  16759. (executeInternal): Following methods are now called in at least every
  16760. 0.5 seconds to reduce CPU usage:
  16761. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16762. checkHave(), sendKeepAlive().
  16763. (checkLongTimePeerChoking): Commented out.
  16764. * src/BitfieldMan.h
  16765. (getNthBitIndex): Changed the method signature.
  16766. (getMissingIndexRandomly): Changed the method signature.
  16767. * src/BitfieldMan.cc
  16768. (getNthBitIndex): Rewritten
  16769. (getMissingIndexRandomly): Rewritten.
  16770. (hasMissingPiece): Rewritten.
  16771. (getMissingIndex): Refactored.
  16772. (getMissingUnusedIndex); Refactored.
  16773. (getMissingIndex): Refactored.
  16774. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16775. * src/PeerMessage.h
  16776. (Piece.h): Included.
  16777. (SharedHandle.h): Included.
  16778. (invalidate): New variable.
  16779. (uploading): New variable.
  16780. (isInvalidate): New function.
  16781. (isUploading): New function.
  16782. (onPush): New function.
  16783. (onChoked): New function.
  16784. (onCanceled): New function.
  16785. (onAbortPiece): New function.
  16786. (PeerMessageHandle): New type definition.
  16787. * src/PeerMessage.cc
  16788. (PeerMessage): Added the initialization for invalidate and uploading.
  16789. * src/CancelMessage.h
  16790. (CancelMessage): Rewritten.
  16791. * src/RejectMessage.h
  16792. (RejectMessage): Rewritten.
  16793. * src/Metalinker.h
  16794. (operator=): Defined.
  16795. * src/MetaEntry.h
  16796. (operator=): Defined.
  16797. * src/MetalinkResource.h
  16798. (operator=): Defined.
  16799. * src/AllowedFastMessage.h
  16800. (AllowedFastMessage): Rewritten.
  16801. * src/HandshakeMessage.h
  16802. (HandshakeMessage): New function(overload).
  16803. * src/HandshakeMessage.cc
  16804. (HandshakeMessage): Rewritten.
  16805. (init): New function.
  16806. * src/HaveMessage.h
  16807. (HaveMessage): Rewritten.
  16808. * src/Time.h
  16809. (operator=): Defined the function body here.
  16810. * src/Time.cc
  16811. (operator=): Removed.
  16812. * src/SocketCore.h
  16813. (operator==): Defined here.
  16814. (operator!=): Defined here.
  16815. (operator<): Defined here.
  16816. * src/SocketCore.cc
  16817. (operator==): Removed.
  16818. (operator<): Removed.
  16819. * src/BitfieldMan.h
  16820. (operator=): Defined the function body here.
  16821. * src/BitfieldMan.cc
  16822. (operator=): Removed.
  16823. * src/TorrentMan.h
  16824. (deleteErrorPeer): Removed.
  16825. (deleteUnusedPeer); New function.
  16826. * src/TorrentMan.cc
  16827. (addPeer): Call deleteUnusedPeer.
  16828. (deleteErrorPeer): Removed.
  16829. (deleteUnusedPeer): New function.
  16830. * src/PeerAbstractCommand.h
  16831. (setNoCheck): New function.
  16832. (noCheck): New variable.
  16833. * src/PeerAbstractCommand.cc
  16834. (PeerAbstractCommand): Added the initialization of noCheck.
  16835. (execute): Added a check for noCheck.
  16836. (setNoCheck): New function.
  16837. * src/Util.h
  16838. (stdio.h): Included.
  16839. * src/Util.cc
  16840. (unistd.h): Included.
  16841. * src/DefaultDiskWriter.cc
  16842. (unistd.h): Included.
  16843. * src/Peer.h
  16844. (operator==): Defined the function body here.
  16845. (operator!=): Defined the function body here.
  16846. * src/Peer.cc
  16847. (operator==): Removed.
  16848. (operator!=): Removed.
  16849. * src/Piece.h
  16850. (Piece): Defined the function body here(copy constructor).
  16851. (operator=): Defined the function body here.
  16852. (operator==): Defined the function body here.
  16853. * src/Piece.cc
  16854. (Piece): Removed(copy constructor).
  16855. (operator=): Removed.
  16856. (operator==): Removed.
  16857. * src/PeerMessageUtil.h
  16858. (ChokeMessage.h): Removed.
  16859. (UnchokeMessage.h): Removed.
  16860. (InterestedMessage.h): Removed.
  16861. (NotInterestedMessage.h): Removed.
  16862. (HaveMessage.h): Removed.
  16863. (BitfieldMessage.h): Removed.
  16864. (RequestMessage.h): Removed.
  16865. (CancelMessage.h): Removed.
  16866. (PieceMessage.h): Removed.
  16867. (HandshakeMessage.h): Removed.
  16868. (KeepAliveMessage.h): Removed.
  16869. (PortMessage.h): Removed.
  16870. (HaveAllMessage.h): Removed.
  16871. (HaveNoneMessage.h): Removed.
  16872. (PeerConnection.h): Removed.
  16873. (HandshakeMessage.h): Included.
  16874. * src/BitfieldMessage.h
  16875. (init): New function.
  16876. (BitfieldMessage): Rewritten.
  16877. (BitfieldMessage): New function(overload).
  16878. * src/RequestSlot.h
  16879. (operator=): Defined the function body here.
  16880. (operator==): Defined the function body here.
  16881. * src/RequestSlot.cc
  16882. (operator=): Removed.
  16883. (operator==): Removed.
  16884. To remove the dependency on the PeerMessage subclass from
  16885. PeerInteraction:
  16886. * src/PeerMessageFactory.h: New class.
  16887. * src/PeerMessageFactory.cc: New class.
  16888. * src/SimplePeerMessage.cc
  16889. (send): If invalidate is true then do nothing.
  16890. * src/PeerInteractionCommand.cc
  16891. (HandshakeMessage.h): Included.
  16892. (KeepAliveMessage.h): Included.
  16893. (ChokeMessage.h): Included.
  16894. (UnchokeMessage.h): Included.
  16895. (HaveMessage.h): Included.
  16896. (executeInternal): Call setNoCheck().
  16897. Removed setWriteCheckSocket(socket).
  16898. * src/PeerInteraction.h
  16899. (ChokeMessage.h): Removed.
  16900. (UnchokeMessage.h): Removed.
  16901. (InterestedMessage.h): Removed.
  16902. (NotInterestedMessage.h): Removed.
  16903. (HaveMessage.h): Removed.
  16904. (BitfieldMessage.h): Removed.
  16905. (RequestMessage.h): Removed.
  16906. (CancelMessage.h): Removed.
  16907. (PieceMessage.h): Removed.
  16908. (HandshakeMessage.h): Removed.
  16909. (KeepAliveMessage.h): Removed.
  16910. (PortMessage.h): Removed.
  16911. (HaveAllMessage.h): Removed.
  16912. (HaveNoneMessage.h): Removed.
  16913. (RejectMessage.h): Removed.
  16914. (AllowedFastMessage.h): Removed.
  16915. (SuggestPieceMessage.h): Removed.
  16916. (PeerMessageFactory.h): Included.
  16917. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16918. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16919. (PeerMessageFactory): New variable.
  16920. (createPeerMessage): Removed.
  16921. (createHandshakeMessage): Removed.
  16922. (setPeerMessageCommonProperty): Removed.
  16923. (addRequestSlot): New function.
  16924. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16925. (getPeerMessageFactory): New function.
  16926. (createRequestMessage): Removed.
  16927. (createCancelMessage): Removed.
  16928. (createPieceMessage): Removed.
  16929. (createHaveMessage): Removed.
  16930. (createChokeMessage): Removed.
  16931. (createUnchokeMessage): Removed.
  16932. (createInterestedMessage): Removed.
  16933. (createNotInterestedMessage): Removed.
  16934. (createBitfieldMessage): Removed.
  16935. (createKeepAliveMessage): Removed.
  16936. (createHaveAllMessage): Removed.
  16937. (createHaveNoneMessage): Removed.
  16938. (createRejectMessage): Removed.
  16939. (createAllowedFastMessage): Removed.
  16940. * src/PeerInteraction.cc
  16941. (PeerInteraction): Allocate PeerMessageFactory here.
  16942. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16943. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16944. PieceMessage::ID.
  16945. (addMessage): Simplified by using PeerMessage::onPush().
  16946. (addRequestSlot): New function.
  16947. (rejectAllPieceMessageInQueue): Simplified by using
  16948. PeerMessage::onChoked().
  16949. (rejectPieceMessageInQueue): Simplified by using
  16950. PeerMessage::onCanceled().
  16951. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16952. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16953. (createHandshakeMessage): Removed.
  16954. (createPeerMessage): Removed.
  16955. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16956. (setPeerMessageCommonProperty): Removed.
  16957. (createRequestMessage): Removed.
  16958. (createCancelMessage): Removed.
  16959. (createPieceMessage): Removed.
  16960. (createHaveMessage): Removed.
  16961. (createChokeMessage): Removed.
  16962. (createUnchokeMessage): Removed.
  16963. (createInterestedMessage): Removed.
  16964. (createNotInterestedMessage): Removed.
  16965. (createBitfieldMessage): Removed.
  16966. (createKeepAliveMessage): Removed.
  16967. (createHaveAllMessage): Removed.
  16968. (createHaveNoneMessage): Removed.
  16969. (createRejectMessage): Removed.
  16970. (createAllowedFastMessage): Removed.
  16971. * src/PieceMessage.h
  16972. (createRejectMessage): New function.
  16973. (PieceMessage): Rewritten.
  16974. (onChoked): New function.
  16975. (onCanceled): New function.
  16976. * src/PieceMessage.cc
  16977. (send): If invalidate is true then do nothing, just return.
  16978. (createRejectMessage): New function.
  16979. (onChoked): New function.
  16980. (onCanceled): New function.
  16981. * src/RequestMessage.h
  16982. (RequestMessage): Rewritten.
  16983. (onPush): New function.
  16984. (onAbortPiece): New function.
  16985. * src/RequestMessage.cc
  16986. (onPush): New function.
  16987. (onAbortPiece): New function.
  16988. Update fd_set when a socket is added or deleted in order to improve
  16989. performance:
  16990. * src/DownloadEngine.h
  16991. (rfdset): New variable.
  16992. (wfdset): New variable.
  16993. (updateFdSet): New function.
  16994. * src/DownloadEngine.cc
  16995. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16996. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16997. (waitData): Copy rfdset and wfdset.
  16998. (updateFdSet): New function.
  16999. (addSocket): Call updateFdSet.
  17000. (deleteSocket): Call updateFdSet.
  17001. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17002. To add the support for Metalink3.0 backward compatible links:
  17003. * src/Request.h
  17004. (SAFE_CHARS): Added '#'.
  17005. (METALINK_MARK): New definition.
  17006. * src/Request.cc
  17007. (parseUrl): Added the support for Metalink3.0 backward compatible
  17008. links.
  17009. etc
  17010. * src/PeerInteraction.cc
  17011. (MsgPushBack): Removed.
  17012. (sendMessages): Use STL copy and back_inserter.
  17013. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  17014. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  17015. * src/TorrentMan.h
  17016. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  17017. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17018. * src/SharedHandle.h: New class.
  17019. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  17020. * src/HttpResponseCommand.h
  17021. (HttpResponseCommand): Wrapped Socket.
  17022. * src/SocketCore.h
  17023. (operator==): New function.
  17024. (operator!=): New function.
  17025. (operator<): New function.
  17026. (getSockfd): New function.
  17027. (isOpen): New function.
  17028. (writeData): New function.
  17029. * src/SocketCore.cc
  17030. (operator==): New function.
  17031. (operator!=): New function.
  17032. (operator<): New function.
  17033. * src/AbstractCommand.h
  17034. (socket): Changed its type to SocketHandle.
  17035. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17036. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17037. (disableReadCheckSocket): New function.
  17038. (disableWriteCheckSocket): New function.
  17039. (readCheckTarget): Changed its type to SocketHandle.
  17040. (writeCheckTarget): Changed its type to SocketHandle.
  17041. (AbstractCommand): Replaced Socket with SocketHandle.
  17042. * src/AbstractCommand.cc
  17043. (AbstractCommand): Replaced Socket with SocketHandle.
  17044. (~AbstractCommand): Removed the deallocation for Socket object.
  17045. (disableReadCheckSocket): New function.
  17046. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17047. (disableWriteCheckSocket): New function.
  17048. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17049. * src/HttpDownloadCommand.cc
  17050. (DownloadCommand): Replaced Socket with SocketHandle.
  17051. * src/PeerAbstractCommand.h
  17052. (socket): Changed its type to SocketHandle.
  17053. (peer): Changed its type to PeerHandle.
  17054. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17055. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17056. (disableReadCheckSocket): New function.
  17057. (disableWriteCheckSocket): New function.
  17058. (readCheckTarget): Changed its type to SocketHandle.
  17059. (writeCheckTarget): Changed its type to SocketHandle.
  17060. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17061. Replaced Peer with PeerHandle.
  17062. * src/HttpRequestCommand.cc
  17063. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17064. Use disableReadCheckSocket.
  17065. * src/PeerInitiateConnectionCommand.h
  17066. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17067. * src/PeerChokeCommand.cc
  17068. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  17069. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  17070. (execute): Use PeerHandle.
  17071. * src/PeerConnection.h
  17072. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  17073. (socket): Changed its type to SocketHandle.
  17074. (PeerConnection): Replaced Socket with SocketHandle.
  17075. * src/PeerConnection.cc
  17076. (PeerConnection): Replaced Socket with SocketHandle.
  17077. * src/PeerInteractionCommand.h
  17078. (PeerInteractionCommand): Replaced socket with SocketHandle.
  17079. Replaced Peer with PeerHandle.
  17080. * src/PeerInteractionCommand.cc
  17081. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  17082. Replaced Peer with PeerHandle.
  17083. (executeInternal): Use disableWriteCheckSocket.
  17084. Use HandshakeMessageHandle.
  17085. (receiveMessages): Use PeerMessageHandle.
  17086. (prepareForNextPeer): Use PeerHandle.
  17087. * src/HttpProxyRequestCommand.h
  17088. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17089. * src/HttpResponseCommand.cc
  17090. (HttpResponseCommand): Replaced Socket with SocketHandle.
  17091. * src/TorrentMan.cc
  17092. (nullPeer): Added external reference.
  17093. (~TorrentMan): Removed the deallocation of the elements of peers.
  17094. (addPeer): Rewritten.
  17095. (isPeerAvailable): Use nullPeer.
  17096. (deleteOldpeers): Replaced with deleteErrorPeer.
  17097. (deleteErrorPeer): New function.
  17098. (getPeer): Use PeerHandle and nullPeer.
  17099. (hasMissingPiece): Replaced Peer with PeerHandle.
  17100. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17101. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17102. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17103. (getMissingPiece): Replaced Peer with PeerHandle.
  17104. * src/FtpNegotiateCommand.cc
  17105. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  17106. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  17107. (recvGreeting): Use disableWriteCheckSocket.
  17108. (recvPasv): Removed the allocation of Socket.
  17109. Use disableReadCheckSocket.
  17110. (sendRestPasv): Use disableWriteCheckSocket.
  17111. (recvRetr): Changed assertion.
  17112. * src/PeerInteraction.h
  17113. (SharedHandle.h): Included SharedHandle.h.
  17114. (PeerMessageHandle): New type definition.
  17115. (HandshakeMessageHandle): New type definition.
  17116. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  17117. (peer): Changed its type to PeerHandle.
  17118. (createHandshakeMessage): Replaced HandshakeMessage with
  17119. HandshakeMessageHandle.
  17120. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  17121. (PeerInteraction): Replaced Peer with PeerHandle.
  17122. Replaced Socket with SocketHandle.
  17123. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17124. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17125. (receiveHandshake): Replaced HandshakeMessage with
  17126. HandshakeMessageHandle.
  17127. * src/PeerInteraction.cc
  17128. (PeerInteraction): Replaced Peer with PeerHandle.
  17129. Replaced Socket with SocketHandle.
  17130. (~PeerInteraction): Removed the deallocation of the elements of
  17131. messageQueue.
  17132. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  17133. (isSendingMessageInProgress): Replaced PeerMessage with
  17134. PeerMessageHandle.
  17135. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  17136. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17137. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  17138. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  17139. (abortPiece): Use PeerMessageHandle.
  17140. (receiveHandshake): Replaced HandshakeMessage with
  17141. HandshakeMessageHandle. Removed try-catch block.
  17142. (createHandshakeMessage): Replaced HandshakeMessage with
  17143. HandshakeMessageHandle.
  17144. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17145. Removed try-catch block.
  17146. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  17147. * src/HttpProxyResponseCommand.cc
  17148. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17149. * src/FtpTunnelResponseCommand.h
  17150. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17151. * src/HttpConnection.cc
  17152. (HttpConnection): Replaced Socket with SocketHandle.
  17153. * src/PeerAbstractCommand.cc
  17154. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17155. (~PeerAbstractCommand): Removed the deallocation of socket.
  17156. Use disableReadCheckSocket, disableWriteCheckSocket.
  17157. (disableReadCheckSocket): New function.
  17158. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17159. (disableWriteCheckSocket): New function.
  17160. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17161. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  17162. * src/FtpTunnelRequestCommand.cc
  17163. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17164. (~FtpTunnelRequestCommand): Corrected indentation.
  17165. * src/DownloadCommand.h
  17166. (DownloadCommand): Replaced Socket with SocketHandle.
  17167. * src/PeerListenCommand.cc
  17168. (PeerListenCommand): Removed the initialization of socket.
  17169. (~PeerListenCommand): Removed the deallocation of socket.
  17170. (bindPort): Use SocketHandle.
  17171. (execute): Use SocketHandle and PeerHandle.
  17172. * src/FtpDowndloadCommand.cc
  17173. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17174. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  17175. * src/main.cc
  17176. (main): Corrected indentation.
  17177. * src/HttpInitiateConnectionCommand.cc
  17178. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  17179. (executeInternal): Removed the allocation of socket.
  17180. * src/HttpRequestCommand.h
  17181. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17182. * src/FtpNegotiationCommand.h
  17183. (dataSocket): Changed its type to SocketHandle.
  17184. (serverSocket): Changed its type to SocketHandle.
  17185. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  17186. * src/TorrentMan.h
  17187. (MAX_PEER_UPDATE): Removed.
  17188. (MAX_PEERS): New definition.
  17189. (Peers): The element is now of type PeerHandle.
  17190. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  17191. (getPeer): Replaced Peer with PeerHandle.
  17192. (deleteOldErrorPeers): Removed.
  17193. (deleteErrorPeer): New function.
  17194. (hasMissingPiece): Replaced Peer with PeerHandle.
  17195. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17196. (getMissingPiece): Replaced Peer with PeerHandle.
  17197. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17198. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17199. (addActivePeer): Replaced Peer with PeerHandle.
  17200. (deleteActivePeer): Replaced Peer with PeerHandle.
  17201. Added a check for the return value of find.
  17202. * src/FtpTunnelResponseCommand.cc
  17203. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17204. * src/FtpInitiateConnectionCommand.cc
  17205. (executeInternal): Removed the allocation of socket.
  17206. * src/DownloadEngine.h
  17207. (Sockets): An element is now of type SocketHandle.
  17208. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  17209. (CommandUuids): New type definition.
  17210. (rsockets): Changed its type to SockCmdMap.
  17211. (wsockets): Changed its type to SockCmdMap.
  17212. (addSocket): Rewritten.
  17213. (deleteSocket): Rewritten.
  17214. (addSocketForReadCheck): Rewritten.
  17215. (deleteSocketForReadCheck): Rewritten.
  17216. (addSocketForWriteCheck): Rewritten.
  17217. (deleteSocketForWriteCheck): Rewritten.
  17218. (PairFind): New template class.
  17219. * src/HttpDownloadCommand.h
  17220. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  17221. * src/FtpConnection.cc
  17222. (FtpConnection): Replaced Socket with SocketHandle.
  17223. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  17224. block.
  17225. * src/InitiateConnectionCommandFactory.cc
  17226. (DlAbortEx.h): Included DlAbortEx.h.
  17227. (createInitiateConnectionCommand): Throw exception if the protocol of
  17228. requested URI is not supported.
  17229. * src/Peer.cc
  17230. (nullPeer): Changed its type to PeerHandle.
  17231. (operator==): New function.
  17232. (operator!=): New function.
  17233. * src/Peer.h
  17234. (SharedHandle.h): Included SharedHandle.h.
  17235. (operator==): New function.
  17236. (operator!=): New function.
  17237. (Peer): Added the default constructor.
  17238. Use resetStatus() to initialize member variables.
  17239. (nullPeer): Removed.
  17240. * src/TrackerUpdateCommand.cc
  17241. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  17242. with MIN_PEERS.
  17243. * src/PeerListenCommand.h
  17244. (socket): Changed its type to SocketHandle.
  17245. * src/Command.h
  17246. (CommandUuid): New type definition.
  17247. (uuid): New variable.
  17248. (uuidGen): New variable.
  17249. (Command): Added the initialization of uuid.
  17250. (getUuid): New function.
  17251. * src/Socket.h
  17252. (Socket): Removed.
  17253. (SocketHandle): New type definition.
  17254. * src/DownloadEngine.h
  17255. (FindCommand): New function object.
  17256. (run): The portion of socket check was rewritten.
  17257. (SetDescriptor): New function object.
  17258. (AccumulateActiveCommandUuid): New function object.
  17259. (waitData): Rewritten.
  17260. (addSocket): Rewritten.
  17261. (deleteSocket): Rewritten.
  17262. (addSocketForReadCheck): Rewritten.
  17263. (addSocketForWriteCheck): Rewritten.
  17264. (deleteSocketForReadCheck): Rewritten.
  17265. (deleteSocketForWriteCheck): Rewritten.
  17266. * src/HttpProxyResponseCommand.h
  17267. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  17268. * src/HttpConnection.h
  17269. (socket): Changed its type to SocketHandle.
  17270. (HttpConnection): Replaced Socket with SocketHandle.
  17271. * src/PeerInitiateConnectionCommand.cc
  17272. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17273. (executeInternal): Removed the allocation of socket.
  17274. (prepareForNextPeer): Use PeerHandle.
  17275. * src/PeerMessage.h
  17276. (peer): Changed its type to PeerHandle.
  17277. (getPeer): Replaced Peer with PeerHandle.
  17278. (setPeer): Replaced Peer with PeerHandle.
  17279. * src/DownloadCommand.cc
  17280. (DownloadCommand): Replaced Socket with SocketHandle.
  17281. * src/FtpConnection.h
  17282. (socket): Changed its type to SocketHandle.
  17283. (FtpConnection): Replaced Socket with SocketHandle.
  17284. (sendPort); Replaced Socket with SocketHandle.
  17285. * src/FtpDowndloadCommand.h
  17286. (ctrlSocket): Changed its type to SocketHandle.
  17287. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17288. * src/HttpProxyRequestCommand.cc
  17289. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17290. * src/FtpTunnelRequestCommand.h
  17291. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17292. etc
  17293. * src/PeerChokeCommand.h
  17294. (setAllPeerChoked): Removed.
  17295. (setAllPeerResetDelta): Removed.
  17296. * src/PeerChokeCommand.cc
  17297. (setAllPeerChoked): Removed.
  17298. (ChokePeer): New function object.
  17299. (setAllPeerResetDelta): Removed.
  17300. (ResetDelta): New function object.
  17301. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  17302. (execute): Show download speed when the local node is a seeder.
  17303. setAllPeerChoked and setAllPeerResetDelta were rewritten
  17304. using STL.
  17305. * src/TrackerWatcherCommand.h
  17306. (MIN_PEERS): Removed.
  17307. * src/TorrentMan.cc
  17308. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  17309. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17310. To fix the bug that .aria2 file is not saved if downloading is stopped
  17311. by the errors:it results that aria2 can not resume downloading:
  17312. * src/main.cc
  17313. (normalDownload): Added the call to save().
  17314. (main): Added the deletion of the elements in 'reserved'.
  17315. To fix log:
  17316. * src/PeerInteraction.cc
  17317. (receiveHandshake): Fixed log.
  17318. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17319. To improve download performance in BitTorrent:
  17320. * src/TorrentMan.cc
  17321. (getPeer): Check the number of connections. Return nullPeer if
  17322. it is greater than MAX_PEER_UPDATE.
  17323. This code was originally here, but was removed in 0.5.1.
  17324. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17325. To improve the conditional compilation:
  17326. * src/MultiDiskWriter.h:
  17327. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17328. * src/MultiDiskWriter.cc:
  17329. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17330. * src/Util.h:
  17331. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17332. Added ENABLE_BITTORRENT around computeFastSet().
  17333. * src/Util.cc:
  17334. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17335. Added ENABLE_BITTORRENT around computeFastSet().
  17336. * src/messageDigest.h:
  17337. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  17338. * src/ShaVisitor.h:
  17339. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17340. * src/ShaVisitor.cc:
  17341. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17342. * src/main.cc:
  17343. Added ENABLE_BITTORRENT around includes and blocks related to
  17344. BitTorrent.
  17345. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  17346. digest support is not available.
  17347. * src/AbstractDiskWriter.h:
  17348. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17349. * src/AbstractDiskWriter.cc:
  17350. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17351. * src/MetalinkEntry.cc
  17352. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  17353. support is not available.
  17354. To add command-line options for Metalink:
  17355. * src/main.cc:
  17356. Added metalink-version, metalink-language, metalink-os,
  17357. follow-metalink.
  17358. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  17359. * src/main.cc: Use these definition.
  17360. * Release 0.6.0
  17361. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17362. To add Metalink support(http/ftp only):
  17363. * src/AbstractCommand.h
  17364. (tryReserved): New function.
  17365. * src/AbstractCommand.cc
  17366. (execute): Call tryReserved().
  17367. (tryReserved): New function.
  17368. * src/Request.h
  17369. (Requests): New type definition.
  17370. * src/SegmentMan.h
  17371. (reserved): New variable.
  17372. * src/Util.h
  17373. (fileChecksum): New function.
  17374. (toUpper): New function.
  17375. (toLower): New function.
  17376. * src/Util.cc
  17377. (messageDigest.h): Included.
  17378. (trim): Trim \r\n\t.
  17379. (fileChecksum): New function.
  17380. (toUpper): New function.
  17381. (toLower): New function.
  17382. * src/main.cc
  17383. (normalDownload): New function.
  17384. (main): Added 2 command-line options: metalink-file,
  17385. metalink-connection. Their usage has not been written yet.
  17386. * src/MetalinkProcessor.h: New class.
  17387. * src/Xml2MetalinkProcessor.h: New class.
  17388. * src/Xml2MetalinkProcessor.cc: New class.
  17389. * src/MetalinkEntry.h: New class.
  17390. * src/MetalinkEntry.cc: New class.
  17391. * src/MetalinkResource.h: New class.
  17392. * src/MetalinkResource.cc: New class.
  17393. To add md5 message digest checking:
  17394. * src/messageDigest.h: Rewritten.
  17395. * src/MultiDiskWriter.cc: Updated according to the changes in
  17396. messageDigest.h.
  17397. * src/ShaVisitor.cc: Updated according to the changes in
  17398. messageDigest.h.
  17399. * src/Util.cc: Updated according to the changes in messageDigest.h.
  17400. * src/AbstractDiskWriter.cc: Updated according to the changes in
  17401. messageDigest.h.
  17402. To fix a bug that causes segfault when the payload length in peer
  17403. message is less than 0:
  17404. * src/PeerConnection.cc:
  17405. (receiveMessage): Fixed the bug.
  17406. * src/PeerMessageUtil.cc
  17407. (checkLength): Throw an exception if length is less than or equals to
  17408. 0.
  17409. To add new interfaces to Base64 encoding/decoding:
  17410. * src/Base64.h
  17411. (part_encode): Changed the method signature.
  17412. (encode): New function(overload).
  17413. (decode): New function(overload).
  17414. * src/Base64.cc
  17415. (part_encode): Rewritten.
  17416. (encode): Rewritten.
  17417. (encode): New function(overload).
  17418. To prevent a peer to download same piece if there is an error in
  17419. checksum:
  17420. * src/PieceMessage.cc
  17421. (receivedAction): Call peerInteraction->abortPiece().
  17422. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17423. To fix the bug that causes same have message is sent many times to
  17424. a single peer.
  17425. * src/Time.cc
  17426. (isNewer): Use Util::difftv().
  17427. * src/Util.cc
  17428. (difftv): Added a cast to (long long int).
  17429. * src/TorrentMan.cc
  17430. (advertisePiece): Use push_front.
  17431. (getAdvertisedPieceIndexes): A performance improvement was made.
  17432. To fix the bug that sends tracker requests without a sleep interval
  17433. when the number of connections is less than 15.
  17434. * src/TrackerWatcherCommand.cc
  17435. (execute): Now the number of connections is not a factor to decide
  17436. whether or not a tracker request should be sent or not.
  17437. * src/Time.h
  17438. (setTimeInSec): New function.
  17439. * src/Time.cc
  17440. (setTimeInSec): New function.
  17441. etc.
  17442. * src/ChokeMessage.cc
  17443. (receivedAction): Removed peer->snubbing = false
  17444. * src/PeerConnection.h
  17445. (receiveHandshake): Updated doc.
  17446. * src/TorrentMan.h
  17447. (getAdvertisedPieceIndexes): Updated the method signature.
  17448. * src/TorrentMan.cc
  17449. (getAdvertisedPieceIndexes): Updated the method signature.
  17450. * src/Time.h
  17451. (getTimeInMicros): Added a cast to (long long int).
  17452. (getTimeInMillis): Added a cast to (long long int).
  17453. * Release 0.5.2
  17454. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17455. To make a listening socket non-block:
  17456. * src/SocketCore.h
  17457. (setNonBlockingMode): New function.
  17458. * src/SocketCore.cc
  17459. (setNonBlockingMode): New function.
  17460. (beginListen): Added a call to setNonBlockingMode().
  17461. (acceptConnection): Call setNonBlockingMode().
  17462. (setBlockingMode): Updated.
  17463. To handle tracker's NAT-checking:
  17464. * src/PeerConnection.cc
  17465. (receiveHandshake): 'msg' param is filled with received data and
  17466. its length is assigned to 'length' param, even if all handshake
  17467. message is not yet received.
  17468. * src/PeerInteractionCommand.cc
  17469. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  17470. a new peer connects to localhost.
  17471. A call to peerInteraction->sendHandshake() was removed because
  17472. it is called from peerInteraction->receiveHandshake(true).
  17473. * src/PeerInteraction.h
  17474. (quickReplied): New variable.
  17475. (receiveHandshake): Added an argument.
  17476. * src/PeerInteraction.cc
  17477. (PeerInteraction): Added the initialization of quickReplied.
  17478. (receiveHandshake): Send handshake message as soon as the info hash
  17479. in a handshake message from a peer is correct.
  17480. To change the random part of peer id and key parameter:
  17481. * src/TorrentMan.h
  17482. (key): New variable.
  17483. * src/TorrentMan.cc
  17484. (setupInternal1): Use Util::randomAlpha() to generate random part
  17485. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  17486. key is also generated by Util::randomAlpha() and it is now 8 character
  17487. long.
  17488. * src/Util.h
  17489. (randomAlpha): New function.
  17490. * src/Util.cc
  17491. (randomAlpha): New function.
  17492. * src/TrackerWatcherCommand.cc
  17493. (execute): In a tracker request: Use torrentMan->key as key parameter.
  17494. Added no_peer_id=1.
  17495. Set snubbing flag to false when a choke message is received from a
  17496. snubbed peer.
  17497. * src/ChokeMessage.cc
  17498. (receivedAction): Set snubbing flag to false.
  17499. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17500. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  17501. * src/SimpleLogger.h (writeHeader): New function.
  17502. * src/SimpleLogger.cc (writeHeader): New function.
  17503. (writeLog): Fixed the bug that causes segfaults if exception message
  17504. contains an unescaped "%" character.
  17505. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  17506. when a tracker request fails.
  17507. * src/Request.cc (parseUrl): Query string is now handled properly.
  17508. * Release 0.5.1
  17509. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17510. To add Time class which represents a specific instant in time and
  17511. its precision is microseconds. Time checking procedures were rewritten
  17512. using this object.
  17513. * src/Time.h: New class.
  17514. * src/Time.cc: New class.
  17515. * src/AbstractCommand.h
  17516. (updateCheckPoint): Removed.
  17517. (isTimeoutDetected): Removed.
  17518. (checkPoint): Changed the type to Time.
  17519. (timeout): New variable.
  17520. (setTimeout): New function.
  17521. * src/AbstractCommand.cc
  17522. (AbstractCommand): Removed the initialization of checkPoint.
  17523. Added the initialization of timeout.
  17524. (updateCheckPoint): Removed.
  17525. (isTimeoutDetected): Removed.
  17526. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17527. * src/PeerChokeCommand.h
  17528. (checkPoint): Changed the type to Time.
  17529. * src/PeerChokeCommand.cc
  17530. (PeerChokeCommand): Removed the initialization of checkPoint.
  17531. (execute): Rewritten using Time object.
  17532. * src/TrackerWatcherCommand.h
  17533. (checkPoint): Changed the type to Time.
  17534. * src/TrackerWatcherCommand.cc
  17535. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  17536. (execute): Rewritten.
  17537. * src/ConsoleDownloadEngine.h
  17538. (cp): Changed the type to Time.
  17539. (startup): Changed the type to Time.
  17540. * src/ConsoleDownloadEngine.cc
  17541. (initStatistics): Use cp.reset(), startup.reset().
  17542. (calculateStatistics): Rewritten using Time object.
  17543. * src/PeerAbstractCommand.h
  17544. (updateCheckPoint): Removed.
  17545. (isTimeoutDetected): Removed.
  17546. (checkPoint): Changed the type to Time.
  17547. * src/PeerAbstractCommand.cc
  17548. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17549. (updateCheckPoint): Removed.
  17550. (isTimeoutDetected): Removed.
  17551. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17552. * src/PeerInteractionCommand.cc
  17553. (PeerInteractionCommand): Removed the initializations of struct
  17554. timeval variables.
  17555. * src/PeerInteractionCommand.h
  17556. (keepAliveCheckPoint): Changed the type to Time.
  17557. (chokeCheckPoint): Changed the type to Time.
  17558. (freqCheckPoint): Changed the type to Time.
  17559. (haveCheckTime): Changed the type to Time.
  17560. * src/PeerInteractionCommand.cc
  17561. (executeInternal): Rewritten using Time object.
  17562. (detectMessageFlooding): Rewritten using Time object.
  17563. (checkLongTimePeerChoking): Rewritten using Time object.
  17564. (sendKeepAlive): Rewritten using Time object.
  17565. (checkHave): Rewritten using Time object.
  17566. * src/SleepCommand.h
  17567. (checkPoint): Changed the type to Time.
  17568. * src/SleepCommand.cc
  17569. (SleepCommand): Removed the initialization of checkPoint.
  17570. (execute): Rewritten using Time object.
  17571. * src/TorrentAutoSaveCommand.h
  17572. (checkPoint): Changed the type to Time.
  17573. * src/TorrentAutoSaveCommand.cc
  17574. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17575. (execute): Rewritten.
  17576. * src/DownloadCommand.h
  17577. (sw): Changed the type to Time.
  17578. * src/DownloadCommand.cc
  17579. (DownloadCommand): Removed the initialization of sw.
  17580. (executeInternal): Rewritten.
  17581. * src/RequestSlot.h
  17582. (dispatchedTime): Changed the type to Time.
  17583. * src/RequestSlot.cc
  17584. (RequestSlot): Removed the call to setDispatchedTime().
  17585. (setDispatchedTime): Rewirtten.
  17586. (isTimeout): Rewritten.
  17587. (getLatencyInMillis): Rewritten.
  17588. * src/TorrentDownloadEngine.h
  17589. (cp): Changed the type to Time[2].
  17590. (startup): Changed the type to Time.
  17591. * src/TorrentDownloadEngine.cc
  17592. (initStatistics): Rewritten.
  17593. (calculateStatistics): Rewritten.
  17594. * src/DownloadEngine.cc
  17595. (run): Rewritten.
  17596. To detect all attempts to connect to the tracker are failed:
  17597. * src/AbstractCommand.cc
  17598. (execute): Increment e->segmentMan->errors if a command aborted.
  17599. * src/SegmentMan.h
  17600. (errors): New variable.
  17601. * src/SegmentMan.cc
  17602. (SegmentMan): Added the initialization of errors.
  17603. (init): Added the initialization of errors.
  17604. * src/TrackerWatcherCommand.cc
  17605. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  17606. request was failed.
  17607. To handle snubbed peers:
  17608. * src/PeerChokeCommand.cc
  17609. (optUnchokingPeer): Snubbed peers don't get unchoked.
  17610. (execute): Snubbed peers don't get unchoked.
  17611. * src/PeerInteraction.h
  17612. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  17613. * src/PeerInteraction.cc
  17614. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  17615. back the requested 16k block in 60 seconds.
  17616. * src/PieceMessage.cc
  17617. (receivedAction): A peer's snubbed state is cleard if it sends
  17618. the requested 16k block in 60 seconds.
  17619. * src/Peer.h
  17620. (snubbing): New variable.
  17621. * src/Peer.cc
  17622. (resetStatus): Added snubbed = false.
  17623. To fix the bug that causes have message is not sent:
  17624. * src/PeerInteractionCommand.cc
  17625. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  17626. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  17627. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  17628. * src/TorrentMan.h
  17629. (HaveEntry): New class.
  17630. (advertisePiece): Rewritten.
  17631. (getAdvertisedPieceIndexes): Rewritten.
  17632. (Haves): Changed the type.
  17633. (getAdvertisedPieceIndexes): Added an argument.
  17634. Others:
  17635. * src/TorrentMan.h
  17636. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  17637. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  17638. * src/TorrentMan.cc
  17639. (getPeer): Don't check the number of connections here.
  17640. (setupInternal1): Changed peerId.
  17641. * src/PeerInteractionCommand.h
  17642. (KEEP_ALIVE_INTERVAL): New definition.
  17643. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  17644. * src/main.cc
  17645. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  17646. * src/DownloadEngine.h: Removed unnecessary header includes.
  17647. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17648. To fix the bug that causes segfaults if a tracker returns a zero-length
  17649. list as "peers":
  17650. * src/TrackerUpdateCommand.cc
  17651. (execute): Added a check to see wether the type of peers is Data*.
  17652. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17653. * Release 0.5.0
  17654. To fix compile issue with gcc3:
  17655. * src/CancelMessage.h
  17656. (ID): Renamed as ID_t
  17657. (ID_t): New enum.
  17658. * src/RejectMessage.h
  17659. (ID): Renamed as ID_t
  17660. (ID_t): New enum.
  17661. * src/SuggestPieceMessage.h
  17662. (ID): Renamed as ID_t
  17663. (ID_t): New enum.
  17664. * src/AllowedFastMessage.h
  17665. (ID): Renamed as ID_t
  17666. (ID_t): New enum.
  17667. * src/PortMessage.h
  17668. (ID): Renamed as ID_t
  17669. (ID_t): New enum.
  17670. * src/HaveNoneMessage.h
  17671. (ID): Renamed as ID_t
  17672. (ID_t): New enum.
  17673. * src/KeepAliveMessage.h
  17674. (ID): Renamed as ID_t
  17675. (ID_t): New enum.
  17676. * src/HaveAllMessage.h
  17677. (ID): Renamed as ID_t
  17678. (ID_t): New enum.
  17679. * src/UnchokeMessage.h
  17680. (ID): Renamed as ID_t
  17681. (ID_t): New enum.
  17682. * src/BitfieldMessage.h
  17683. (ID): Renamed as ID_t
  17684. (ID_t): New enum.
  17685. * src/PieceMessage.h
  17686. (ID): Renamed as ID_t
  17687. (ID_t): New enum.
  17688. * src/RequestMessage.h
  17689. (ID): Renamed as ID_t
  17690. (ID_t): New enum.
  17691. * src/NotInterestedMessage.h
  17692. (ID): Renamed as ID_t
  17693. (ID_t): New enum.
  17694. * src/ChokeMessage.h
  17695. (ID): Renamed as ID_t
  17696. (ID_t): New enum.
  17697. * src/InterestedMessage.h
  17698. (ID): Renamed as ID_t
  17699. (ID_t): New enum.
  17700. * src/HaveMessage.h
  17701. (ID): Renamed as ID_t
  17702. (ID_t): New enum.
  17703. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17704. * src/PeerAbstractCommand.h
  17705. (beforeSocketCheck): Removed.
  17706. * src/PeerAbstractCommand.cc
  17707. Modified in order to call executeInternal() even if socket check
  17708. and upload limit check fail.
  17709. * src/PeerInteractionCommand.h
  17710. (keepAlive): Removed.
  17711. (sendKeepAlive): New function.
  17712. (checkHave): New function.
  17713. (beforeSocketCheck): Removed.
  17714. * src/PeerInteractionCommand.cc
  17715. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17716. calls to checkHave() and sendKeepAlive().
  17717. (keepAlive): Renamed to sendKeepAlive().
  17718. (sendKeepAlive): New function.
  17719. (beforeSocketCheck): Removed.
  17720. (checkHave): New function.
  17721. * src/BitfieldMan.cc
  17722. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17723. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17724. 0.
  17725. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17726. * src/TorrentMan.h
  17727. (UsedPieces): Removed.
  17728. (Pieces): New type definition.
  17729. * src/Piece.h: Updated doc.
  17730. * src/Peer.h
  17731. (totalLength): Removed.
  17732. * src/Peer.cc
  17733. (updateLatency): Fixed the latency calculation.
  17734. * src/TorrentMan.cc
  17735. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17736. than or equal to MAX_PEER_LIST_SIZE.
  17737. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17738. then return false.
  17739. (deleteOldErrorPeers): Rewritten.
  17740. (deleteUsedPiece): Fixed the miss use of STL remove.
  17741. * src/PeerInteraction.h
  17742. (Pieces): Removed.
  17743. (deleteTimeoutRequestSlot): Removed.
  17744. (deleteCompletedRequestSlot): Removed.
  17745. (checkRequestSlot): New function.
  17746. * src/PeerInteraction.cc
  17747. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17748. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17749. (checkRequestSlot): New function.
  17750. * src/DownloadEngine.cc
  17751. (run): Clear activeSockets before calling waitData().
  17752. (waitData): Removed a call to activeSockets.clear().
  17753. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17754. To attempt to handle EINTR:
  17755. * src/SocketCore.cc
  17756. (isReadable): Added EINTR handling.
  17757. (isWritable): Added EINTR handling.
  17758. To improve the performance:
  17759. * src/AbstractCommand.cc
  17760. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17761. * src/PeerInteractionCommand.h
  17762. (receiveMessage): Renamed as receiveMessages().
  17763. (receiveMessages): New function.
  17764. * src/PeerInteractionCommand.cc
  17765. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17766. () function. detectMessageFlooding() is moved here.
  17767. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17768. (). The flooding detection for have message is comment out.
  17769. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17770. Util::difftv().
  17771. (receiveMessage): Renamed as receiveMessages().
  17772. (receiveMessages): New function.
  17773. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17774. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17775. * src/SleepCommand.cc
  17776. (execute): Use Util::difftvsec() instead of Util::difftv().
  17777. * src/BitfieldMan.h
  17778. (getNthBitIndex): New function.
  17779. (hasMissingPiece): New function.
  17780. (getAllMissingIndexes): New function.
  17781. * src/BitfieldMan.cc
  17782. (countSetBit): Rewritten.
  17783. (getNthBitIndex): New function.
  17784. (getMissingIndexRandomly): Rewritten.
  17785. (hasMissingPiece): New function.
  17786. (getAllMissingIndexes): New function.
  17787. * src/TorrentMan.cc
  17788. (hasMissingPiece): New function.
  17789. (deleteUsedPiece): Rewritten using STL.
  17790. * src/PeerInteraction.cc
  17791. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17792. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17793. (addRequests): Updated the number of pending requests.
  17794. * src/PeerAbstractCommand.cc
  17795. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17796. (execute): Returns true if TorrentMan::isHalt() is true.
  17797. Corrected the condition of upload limit checking.
  17798. * src/Util.h
  17799. (countBit): New function.
  17800. * src/Util.cc
  17801. (nbits): New variable.
  17802. (countBit): New function.
  17803. * src/DownloadEngine.h
  17804. (SockCmdMap): New type definition.
  17805. (waitData): Added an argument.
  17806. (addSocket): Added an argument.
  17807. (addSocketForReadCheck): Added an argument.
  17808. (addSocketForWriteCheck): Added an argument.
  17809. * src/DownloadEngine.cc
  17810. (run): Executes only commands whose sockets are ready to read or write.
  17811. All commands are executed in every 1 second.
  17812. (waitData): Calls select() again if it returned
  17813. EINTR.
  17814. (addSocket): Saves socket and command object pair to the map.
  17815. (deleteSocket): Deletes socket and command object pair from the map.
  17816. (addSocketForReadCheck): Added an argument.
  17817. (addSocketForWriteCheck): Added an argument.
  17818. * src/DownloadCommand.cc
  17819. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17820. To send "event=stopped" to the tracker when the application finishes:
  17821. * src/PeerChokeCommand.h
  17822. (checkPoint): New variable.
  17823. * src/PeerChokeCommand.cc
  17824. (PeerChokeCommand): Added the initialization of checkPoint.
  17825. (execute): The interval check is now done by checkPoint, not
  17826. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17827. * src/TorrentMan.h
  17828. (halt): New function.
  17829. (hasMissingPiece): New function.
  17830. (isHalt): New function.
  17831. (setHalt): New function.
  17832. * src/TorrentMan.cc
  17833. (TorrentMan): Added the initialization of halt.
  17834. * src/TorrentAutoSaveCommand.h
  17835. (checkPoint): New variable.
  17836. * src/PeerListenCommand.cc
  17837. (execute): Returns true if TorrentMan::isHalt() is true.
  17838. * src/main.cc
  17839. (setSignalHander): Added flags argument.
  17840. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17841. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17842. Removed printDownloadAbortMessage() after torrent downloading loop.
  17843. * src/TorrentAutoSaveCommand.cc
  17844. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17845. (execute): Returns true if TorrentMan::isHalt() is true.
  17846. The interval check is now done by checkPoint, not SleepCommand.
  17847. * src/TrackerWatcherCommand.cc
  17848. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17849. event=stopped.
  17850. * src/TrackerUpdateCommand.cc
  17851. (prepareForRetry): Do not use SleepCommand here.
  17852. (execute): Returns true if TorrentMan::isHalt() is true.
  17853. Others:
  17854. * src/TorrentMan.cc
  17855. (getMissingPieceIndex): Updated log message.
  17856. * src/PeerInteraction.cc
  17857. (createPeerMessag): Updated log message.
  17858. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17859. To add the ability to download several pieces in mix in a command and
  17860. increase the number of request slots according to request-cancel
  17861. latency:
  17862. * src/PeerInteractionCommand.cc
  17863. (executeInternal): The number of messages to be received at a time
  17864. is increased from 10 to 50.
  17865. * src/LogFactory
  17866. (getInstance): Added NullLogger.
  17867. * src/NullLogger.h: New class.
  17868. * src/BitfieldMan.h
  17869. (getMissingIndex): New function.
  17870. * src/BitfieldMan.cc
  17871. (getMissingIndex): New function.
  17872. * src/TorrentMan.h
  17873. (checkOutPiece): New function.
  17874. (getMissingPieceIndex): New function.
  17875. (getMissingFastPieceIndex): New function.
  17876. (getMissingFastPiece): New function.
  17877. * src/TorrentMan.cc
  17878. (updatePiece): Rewritten using STL.
  17879. (syncPiece): Rewritten using STL.
  17880. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17881. checkOutPiece().
  17882. (getMissingPieceIndex): New function.
  17883. (getMissingFastPieceIndex): New function.
  17884. (getMissingFastPiece): New function.
  17885. (checkOutPiece): New function.
  17886. * src/PeerInteraction.h
  17887. (Pieces): New type definition.
  17888. (piece): Removed.
  17889. (pieces): New variable.
  17890. (getNewPieceAndSendInterest): Added the "piece" argument.
  17891. (abortPiece): Added the "piece" argument.
  17892. (abortAllPieces): New function.
  17893. (isInRequestSlot): New function.
  17894. (hasDownloadPiece): Added the "index" argument.
  17895. (setDownloadPiece): Removed.
  17896. (getDownloadPiece): Added the "index" argument.
  17897. (updatePiece): New function.
  17898. (createRequestMessage): Added the "index" argument.
  17899. * src/PeerInteraction.cc
  17900. (onChoked): Rewritten.
  17901. (abortPiece): Rewirtten.
  17902. (abortAllPieces): New function.
  17903. (deleteTimeoutRequestSlot): Rewritten.
  17904. Clarified code a little bit.
  17905. (deleteCompletedRequestSlot): Rewritten.
  17906. (isInRequestSlot): New function.
  17907. (syncPiece): Rewritten.
  17908. (updatePiece): New function.
  17909. (getNewPieceAndSendInterest): Rewritten.
  17910. (addRequests): Rewritten.
  17911. (getDownloadPiece): Rewritten.
  17912. (hasDownloadPiece): Rewritten.
  17913. (createRequestMessage): Added the "index" argument.
  17914. * src/common.h
  17915. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17916. (DIV_FLOOR): New definition.
  17917. * src/PieceMessage.cc
  17918. (receivedAction): Update request-piece latency here.
  17919. * src/RequestSlot.h
  17920. (getLatencyInMillis): New function.
  17921. * src/RequestSlot.cc
  17922. (isTimeout): Rewritten using getLatencyInMillis.
  17923. (getLatencyInMillis): New function.
  17924. * src/Piece.h
  17925. (operator==): New function.
  17926. (getMissingBlockIndex): New function.
  17927. * src/Piece.cc
  17928. (operator==): New function.
  17929. (getMissingBlockIndex): New function.
  17930. * src/Peer.h
  17931. (DEFAULT_LATENCY): New definition.
  17932. (latency): New variable.
  17933. (updateLatency): New function.
  17934. (getLatency): New function.
  17935. * src/Peer.cc
  17936. (resetStatus): Reset latecy.
  17937. (updateLatency): New function.
  17938. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17939. * src/SocketCore.cc
  17940. (isReadable): Added secure to the condition.
  17941. * src/HttpConnection.cc
  17942. (receiveResponse): Fixed a bug that causes no response header
  17943. exception.
  17944. * src/Peer.h
  17945. (getFastSet): Fixed the return value type.
  17946. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17947. To remove a wait from download loop:
  17948. * src/DownloadEngine.cc
  17949. (run): Comment out shortSleep.
  17950. To rewrite the message handling:
  17951. * src/SimplePeerMessage.h: New class.
  17952. * src/SimplePeerMessage.cc: New class.
  17953. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17954. (msg): New variable.
  17955. (create): New function.
  17956. (send): Removed.
  17957. (getMessage): New function.
  17958. (getMessageLength): New function.
  17959. * src/CancelMessage.cc
  17960. (create): New function.
  17961. (receivedAction): Replaced deleteRequestMessageInQueue with
  17962. rejectPieceMessageInQueue.
  17963. (send): Removed.
  17964. (getMessage): New function.
  17965. (getMessageLength): New function.
  17966. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17967. (msg): New variable.
  17968. (msgLength): New variable.
  17969. (~BitfieldMessage): Deleted msg.
  17970. (send): Removed.
  17971. (getMessage): New function.
  17972. (getMessageLength): New function.
  17973. * src/BitfieldMessage.cc
  17974. (create): New function.
  17975. (send): Removed.
  17976. (getMessage): New function.
  17977. (getMessageLength): New function.
  17978. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17979. (msg): New variable.
  17980. (sendPredicate): New function.
  17981. (onSendComplete): New function.
  17982. (send): Removed.
  17983. (getMessage): New function.
  17984. (getMessageLength): New function.
  17985. (create): New function.
  17986. * src/ChokeMessage.cc
  17987. (create): New function.
  17988. (send): Removed.
  17989. (sendPredicate): New function.
  17990. (getMessage): New function.
  17991. (getMessageLength): New function.
  17992. (onSendComplete): New function.
  17993. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17994. (msg): New variable.
  17995. (send): Removed.
  17996. (getMessage): New function.
  17997. (getMessageLength): New function.
  17998. * src/KeepAliveMessage.cc
  17999. (send): Removed.
  18000. (getMessage): New function.
  18001. (getMessageLength): New function.
  18002. * src/PortMessage.h
  18003. (create): New function.
  18004. (receivedAction): Updated log message.
  18005. * src/PortMessage.cc: New file.
  18006. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  18007. (msg): New variable.
  18008. (sendPredicate): New function.
  18009. (onSendComplete): New function.
  18010. (create): New function.
  18011. (send): Removed.
  18012. (getMessage): New function.
  18013. (getMessageLength): New function.
  18014. * src/UnchokeMessage.cc
  18015. (create): New function.
  18016. (send): Removed.
  18017. (sendPredicate): New function.
  18018. (getMessage): New function.
  18019. (getMessageLength): New function.
  18020. (onSendComplete): New function.
  18021. * src/PieceMessage.h
  18022. (leftPieceDataLength): Removed.
  18023. (leftDataLength): New variable.
  18024. (headerSend): New variable.
  18025. (pendingCount): New variable.
  18026. (msgHeader): New variable.
  18027. (sendPieceData): New function.
  18028. (incrementPendingCount): New function.
  18029. (isPendingCountMax): New function.
  18030. (create): New function.
  18031. (getMessageHeader): New function.
  18032. (getMessageHeaderLength): New function.
  18033. * src/PieceMessage.cc
  18034. (create): New function.
  18035. (getMessageHeader): New function.
  18036. (getMessageHeaderLength): New function.
  18037. (send): Rewritten.
  18038. (sendPieceData): New function.
  18039. * src/HaveMessage.h: Derived from SimplePeerMessage.
  18040. (msg): New variable.
  18041. (create): New function.
  18042. (getMessage): New function.
  18043. (getMessageLength): New function.
  18044. * src/HaveMessage.cc
  18045. (create): New function.
  18046. (send): Removed.
  18047. (sendPieceData): New function.
  18048. (getMessage): New function.
  18049. (getMessageLength): New function.
  18050. * src/RequestMessage.h: Derived from SimplePeerMessage.
  18051. (msg): New variable.
  18052. (create): New function.
  18053. (send): Removed.
  18054. (getMessage): New function.
  18055. (getMessageLength): New function.
  18056. * src/RequestMessage.cc
  18057. (create): New function.
  18058. (receivedAction): Added the handling of fast extension.
  18059. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  18060. (send): Removed.
  18061. (getMessage): New function.
  18062. (getMessageLength): New function.
  18063. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  18064. (msg): New variable.
  18065. (sendPredicate): New function.
  18066. (onSendComplete): New function.
  18067. (create): New function.
  18068. (getMessage): New function.
  18069. (getMessageLength): New function.
  18070. * src/InterestedMessage.cc
  18071. (create): New function.
  18072. (send): Removed.
  18073. (sendPieceData): New function.
  18074. (getMessage): New function.
  18075. (getMessageLength): New function.
  18076. (onSendComplete): New function.
  18077. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  18078. (msg): New variable.
  18079. (sendPieceData): New function.
  18080. (onSendComplete): New function.
  18081. (create): New function.
  18082. (send): Removed.
  18083. (getMessage): New function.
  18084. (getMessageLength): New function.
  18085. * src/NotInterestedMessage.cc
  18086. (create): New function.
  18087. (send): Removed.
  18088. (sendPredicate): New function.
  18089. (getMessage): New function.
  18090. (getMessageLength): New function.
  18091. (onSendComplete): New function.
  18092. * src/AllowedFastMessage.h: New class.
  18093. * src/AllowedFastMessage.cc: New class.
  18094. * src/RejectMessage.h: New class.
  18095. * src/RejectMessage.cc: New class.
  18096. * src/SuggestPieceMessage.h: New class.
  18097. * src/SuggestPieceMessage.cc: New class.
  18098. * src/HaveAllMessage.h: New class.
  18099. * src/HaveAllMessage.cc: New class.
  18100. * src/HaveNoneMessage.h: New class.
  18101. * src/HaveNoneMessage.cc: New class.
  18102. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  18103. (msg): New variable.
  18104. (reserved): New variable.
  18105. (create): New function.
  18106. (getId): New function.
  18107. (receivedAction): New function.
  18108. (getMessage): New function.
  18109. (getMessageLength): New function.
  18110. (isFastExtensionSupported): New function.
  18111. * src/HandshakeMessage.cc
  18112. (HandshakeMessage): Moved here from HandshakeMessage.h.
  18113. (create): New function.
  18114. (getMessage): New function.
  18115. (getMessageLength): New function.
  18116. (toString): Added the output of reserved field.
  18117. (check): Added const qualifier.
  18118. (isFastExtensionSupported): New function.
  18119. * src/PeerMessageUtil.h
  18120. (createChokeMessage): Removed.
  18121. (createUnchokeMessage): Removed.
  18122. (createInterestedMessage): Removed.
  18123. (createNotInterestedMessage): Removed.
  18124. (createHaveMessage): Removed.
  18125. (createBitfieldMessage): Removed.
  18126. (createRequestMessage): Removed.
  18127. (createCancelMessage): Removed.
  18128. (createPieceMessage): Removed.
  18129. (createPortMessage): Removed.
  18130. (createChokeMessage): Removed.
  18131. (createUnchokeMessage): Removed.
  18132. (createInterestedMessage): Removed.
  18133. (createNotInterestedMessage): Removed.
  18134. (createHaveMessage): Removed.
  18135. (createBitfieldMessage): Removed.
  18136. (createRequestMessage): Removed.
  18137. (createCancelMessage): Removed.
  18138. (createPieceMessage): Removed.
  18139. (createKeepAliveMessage): Removed.
  18140. (createHandshakeMessage): Removed.
  18141. (setIntParam): New function.
  18142. (createPeerMessageString): New function.
  18143. * src/PeerMessageUtil.cc
  18144. (createChokeMessage): Removed.
  18145. (createUnchokeMessage): Removed.
  18146. (createInterestedMessage): Removed.
  18147. (createNotInterestedMessage): Removed.
  18148. (createHaveMessage): Removed.
  18149. (createBitfieldMessage): Removed.
  18150. (createRequestMessage): Removed.
  18151. (createCancelMessage): Removed.
  18152. (createPieceMessage): Removed.
  18153. (createPortMessage): Removed.
  18154. (createRequestMessage): Removed.
  18155. (createCancelMessage): Removed.
  18156. (createPieceMessage): Removed.
  18157. (createHaveMessage): Removed.
  18158. (createChokeMessage): Removed.
  18159. (createUnchokeMessage): Removed.
  18160. (createInterestedMessage): Removed.
  18161. (createNotInterestedMessage): Removed.
  18162. (createBitfieldMessage): Removed.
  18163. (createKeepAliveMessage): Removed.
  18164. (createHandshakeMessage): Removed.
  18165. (setIntParam): New function.
  18166. (createPeerMessageString): New function.
  18167. * src/PeerConnection.h
  18168. (peer): Removed.
  18169. (torrentMan): Removed.
  18170. (createNLengthMessage): Removed.
  18171. (setIntParam): Removed.
  18172. (writeOutgoingMessageLog): Removed all overloaded functions.
  18173. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18174. (sendMessage): New function.
  18175. (sendHandshake): Removed.
  18176. (sendKeepAlive): Removed.
  18177. (sendChoke): Removed.
  18178. (sendUnchoke): Removed.
  18179. (sendInterested): Removed.
  18180. (sendNotInterested): Removed.
  18181. (sendHave): Removed.
  18182. (sendBitfield): Removed.
  18183. (sendRequest): Removed.
  18184. (sendPiece): Removed.
  18185. (sendPieceHeader): Removed.
  18186. (sendPieceData): Removed.
  18187. (sendCancel): Removed.
  18188. (getPeer): Removed.
  18189. * src/PeerConnection.cc
  18190. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18191. (sendHandshake): Removed.
  18192. (sendKeepAlive): Removed.
  18193. (createNLengthMessage): Removed.
  18194. (setIntParam): Removed.
  18195. (writeOutgoingMessageLog): Removed all overloaded functions.
  18196. (sendChoke): Removed.
  18197. (sendUnchoke): Removed.
  18198. (sendInterested): Removed.
  18199. (sendNotInterested): Removed.
  18200. (sendHave): Removed.
  18201. (sendBitfield): Removed.
  18202. (sendRequest): Removed.
  18203. (sendPiece): Removed.
  18204. (sendPieceHeader): Removed.
  18205. (sendPieceData): Removed.
  18206. (sendMessage): New function.
  18207. (sendCancel): Removed.
  18208. * src/PeerInteractionCommand.cc
  18209. (PeerInteractionCommand): Call setUploadLimit.
  18210. (executeInternal): Call setUploadLimit.
  18211. Added the handling of "inProgress" state of handshake message.
  18212. Call sendBitfield() or sendAllowdFast() instead of deprecated
  18213. sendNow().
  18214. (keepAlive): Call addMessage and sendMessage instead of deprecated
  18215. sendNow().
  18216. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  18217. * src/TorrentMan.h
  18218. (PEER_ID_LENGTH): New definition.
  18219. (hasAllPieces): New function.
  18220. * src/TorrentMan.cc
  18221. (getMissingPiece): Added the handling of fast extension.
  18222. (cancelPiece): Call updatePiece().
  18223. (hasAllPieces): New function.
  18224. * src/PeerInteraction.h
  18225. (fastSet): New variable.
  18226. (getNewPieceAndSendInterest): Changed the return type to void.
  18227. (send): Renamed as sendMessages.
  18228. (deleteAllRequestSlot): Removed.
  18229. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18230. (cancelAllRequest): Removed all overloaded functions.
  18231. (deleteAllRequestSlot): Removed.
  18232. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18233. (rejectPieceMessageInQueue): New function.
  18234. (rejectAllPieceMessageInQueue): New function.
  18235. (onChoked): New function.
  18236. (isSendingMessageInProgress): New function.
  18237. (getCorrespondingRequestSlot): Changed its arguments.
  18238. (isInFastSet): New function.
  18239. (addFastSetIndex): New function.
  18240. (addRequests): New function.
  18241. (sendNow): Removed.
  18242. (trySendNow): Removed.
  18243. (sendBitfield): New function.
  18244. (sendAllowdFast): New function.
  18245. (createHaveAllMessage): New function.
  18246. (createHaveNoneMessage): New function.
  18247. (createRejectMessage): New function.
  18248. (createAllowedFastMessage): New function.
  18249. * src/PeerInteraction.cc
  18250. (send): Renamed as sendMessages.
  18251. (sendMessages): New function.
  18252. (MsgPushBack): New class.
  18253. (isSendingMessageInProgress): New function.
  18254. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18255. (rejectAllPieceMessageInQueue): New function.
  18256. Added the handling of fast extension.
  18257. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18258. (rejectPieceMessageInQueue): New function.
  18259. Added the handling of fast extension.
  18260. (deleteRequestSlot): Replaced for loop with std::find.
  18261. (onChoked): New function.
  18262. (deleteAllRequestSlot): Removed.
  18263. (abortPiece): Rewirtten.
  18264. (deleteTimeoutRequestSlot): Updated log messages.
  18265. (getCorrespondingRequestSlot): Changed its arguments.
  18266. (cancelAllRequest): Removed all overloaded functions.
  18267. (receiveHandshake): Added the check to see whether an incoming peer
  18268. supports fast extension.
  18269. (createHandshakeMessage): Use HandshakeMessage::create instead of
  18270. PeerMessageUtil.
  18271. (createPeerMessage): Use create() of each message class instead of
  18272. PeerMessageUtil.
  18273. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  18274. AllowedFastMessage were added.
  18275. (getNewPieceAndSendInterest): Changed its return value type to void.
  18276. Added the handling of fast extension.
  18277. (addRequests): New function.
  18278. (sendNow): Removed.
  18279. (sendHandshake): Rewritten.
  18280. (trySendNow): Removed.
  18281. (sendBitfield): New function.
  18282. (sendAllowdFast): New function.
  18283. (isInFastSet): New function.
  18284. (addFastSetIndex): New function.
  18285. (createRequestMessage): Use RequestMessage::create instead of
  18286. PeerMessageUtil.
  18287. (createCancelMessage): Use CancelMessage::create instead of
  18288. PeerMessageUtil.
  18289. (createPieceMessage): Use PieceMessage::create instead of
  18290. PeerMessageUtil.
  18291. (createHaveMessage): Use HaveMessage::create instead of
  18292. PeerMessageUtil.
  18293. (createChokeMessage): Use ChokeMessage::create instead of
  18294. PeerMessageUtil.
  18295. (createUnchokeMessage): Use UnchokeMessage::create instead of
  18296. PeerMessageUtil.
  18297. (createInterestedMessage): Use InterestedMessage::create instead of
  18298. PeerMessageUtil.
  18299. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  18300. of PeerMessageUtil.
  18301. (createBitfieldMessage): Use BitfieldMessage::create instead of
  18302. PeerMessageUtil.
  18303. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  18304. PeerMessageUtil.
  18305. (createHaveAllMessage): New function.
  18306. (createHaveNoneMessage): New function.
  18307. (createRejectMessage): New function.
  18308. (createAllowedFastMessage: New function.
  18309. * src/Util.h
  18310. (sha1Sum): New function.
  18311. (computeFastSet): New function.
  18312. * src/Util.cc
  18313. (sha1Sum): New function.
  18314. (computeFastSet): New function.
  18315. * src/Peer.h
  18316. (fastExtensionEnabled): New variable.
  18317. (fastSet): New variable.
  18318. (setAllBitfield): New function.
  18319. (setFastExtensionEnabled): New function.
  18320. (isFastExtensionEnabled): New function.
  18321. (addFastSetIndex): New function.
  18322. (getFastSet): New function.
  18323. (isInFastSet): New function.
  18324. (countFastSet): New function.
  18325. * src/Peer.cc
  18326. (isInFastSet): New function.
  18327. (addFastSetIndex): New function.
  18328. (setAllBitfield): New function.
  18329. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  18330. sockets.
  18331. * src/PeerAbstractCommand.cc
  18332. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  18333. and uploadLimit.
  18334. (execute): Changed the procedure of checking sockets. The upload speed
  18335. checking were added.
  18336. (setUploadLimit): New function.
  18337. (setUploadLimitCheck): New function.
  18338. * src/PeerAbstractCommand.h
  18339. (setUploadLimit): New function.
  18340. (setUploadLimitCheck): New function.
  18341. (uploadLimit): New variable.
  18342. (uploadLimitCheck): New variable.
  18343. To contact a tracker regularly:
  18344. * src/TrackerWatcherCommand.h (interval): New variable.
  18345. (checkPoint): New variable.
  18346. (TrackerWatcherCommand): Added interval argument.
  18347. * src/TrackerWatcherCommand.cc
  18348. (TrackerWatcherCommand): Initialized checkPoint.
  18349. (execute): Now a tracker is contacted in every specified period.
  18350. If peer list is not needed, send request with numwant=0.
  18351. * src/TrackerUpdateCommand.cc
  18352. (execute): Updated log messages.
  18353. * src/DownloadEngine.cc
  18354. (~DownloadEngine): Removed two asserts.
  18355. (waitData): Uncommented wfds. May be a bug fix.
  18356. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18357. * src/PeerInteractionCommand.h
  18358. (checkInactiveConnection): Removed.
  18359. * src/PeerInteractionCommand.cc
  18360. (executeInternal): Removed following function calls:
  18361. detectMessageFlooding(), checkLongTimePeerChoking and
  18362. checkInactiveConnection().
  18363. (checkInactiveConnection): Removed.
  18364. (detectMessageFlooding): Removed function call to
  18365. checkInactiveConnection().
  18366. * src/PeerMessageUtil.h
  18367. (createChokeMessage): New function. Overload.
  18368. (createUnchokeMessage): New function. Overload.
  18369. (createInterestedMessage): New function. Overload.
  18370. (createNotInterestedMessage): New function. Overload.
  18371. (createHaveMessage): New function. Overload.
  18372. (createBitfieldMessage): New function. Overload.
  18373. (createRequestMessage): New function. Overload.
  18374. (createCancelMessage): New function. Overload.
  18375. (createPieceMessage): New function. Overload.
  18376. (createKeepAliveMessage): New function. Overload.
  18377. * src/PeerMessageUtil.cc
  18378. (createChokeMessage): New function. Overload.
  18379. (createUnchokeMessage): New function. Overload.
  18380. (createInterestedMessage): New function. Overload.
  18381. (createNotInterestedMessage): New function. Overload.
  18382. (createHaveMessage): New function. Overload.
  18383. (createBitfieldMessage): New function. Overload.
  18384. (createRequestMessage): New function. Overload.
  18385. (createCancelMessage): New function. Overload.
  18386. (createPieceMessage): New function. Overload.
  18387. (createKeepAliveMessage): New function. Overload.
  18388. * src/SendMessageQueue.cc
  18389. (createRequestMessage): Use PeerMessageUtil.
  18390. (createCancelMessage): Use PeerMessageUtil.
  18391. (createPieceMessage): Use PeerMessageUtil.
  18392. (createHaveMessage): Use PeerMessageUtil.
  18393. (createChokeMessage): Use PeerMessageUtil.
  18394. (createUnchokeMessage): Use PeerMessageUtil.
  18395. (createInterestedMessage): Use PeerMessageUtil.
  18396. (createNotInterestedMessage): Use PeerMessageUtil.
  18397. (createBitfieldMessage): Use PeerMessageUtil.
  18398. (createKeepAliveMessage): Use PeerMessageUtil.
  18399. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  18400. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  18401. * src/PeerInteraction.h: New class.
  18402. * src/PeerInteraction.cc: New class.
  18403. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18404. Each peer message has its own class.
  18405. * src/PendingMessages.h: Removed.
  18406. * src/PendingMessages.cc: Removed. The sending process was moved to
  18407. each message class.
  18408. * src/RequestSlotMan.h: Removed.
  18409. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  18410. SendMessageQueue.
  18411. * src/RequestMessage.h: New class.
  18412. * src/RequestMessage.cc: New class.
  18413. * src/CancelMessage.h: New class.
  18414. * src/CancelMessage.cc: New class.
  18415. * src/BitfieldMessage.h: New class.
  18416. * src/BitfieldMessage.cc: New class.
  18417. * src/ChokeMessage.h: New class.
  18418. * src/ChokeMessage.cc: New class.
  18419. * src/KeepAliveMessage.h: New class.
  18420. * src/KeepAliveMessage.cc: New class.
  18421. * src/PortMessage.h: New class.
  18422. * src/UnchokeMessage.h: New class.
  18423. * src/UnchokeMessage.cc: New class.
  18424. * src/PieceMessage.h: New class.
  18425. * src/PieceMessage.cc: New class.
  18426. * src/HaveMessage.h: New class.
  18427. * src/HaveMessage.cc: New class.
  18428. * src/BitfieldMessage.h: New class.
  18429. * src/BitfieldMessage.cc: New class.
  18430. * src/NotInterestedMessage.h: New class.
  18431. * src/NotInterestedMessage.cc: New class.
  18432. * src/InterestedMessage.h: New class.
  18433. * src/InterestedMessage.cc: New class.
  18434. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  18435. (getSendMessageQueue): New function.
  18436. (setSendMessageQueue): New function.
  18437. * src/HandshakeMessage.cc: New class.
  18438. * src/PeerConnection.h (receiveMessage): Changed return value and
  18439. arguments.
  18440. (receiveHandshake): Changed return value and arguments.
  18441. * src/PeerConnection.cc (receiveMessage): Do not create message class
  18442. here.
  18443. (receiveHandshake): Do not create handshake class here.
  18444. * src/PeerInteractionCommand.h (peerConnection): Removed.
  18445. (piece): Removed.
  18446. (syncPiece): Removed.
  18447. (sendInterest): Removed.
  18448. (sendMessages): Removed.
  18449. (createRequestPendingMessage): Removed.
  18450. (checkPieceHash): Removed.
  18451. (erasePieceOnDisk): Removed.
  18452. (getNewPieceAndSendInterest): Removed.
  18453. (onGotNewPice): Removed.
  18454. (onGotWrongPiece): Removed.
  18455. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18456. Removed peerConnection, piece.
  18457. (~PeerInteractionCommand): Removed peerConnection.
  18458. (executeInternal): Use sendMessageQueue instead of peerConnection.
  18459. (syncPiece): Moved to SendMessageQueue.
  18460. (decideChoking): Removed PendingMessage.
  18461. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  18462. The action after receiving peer message was moved to each message
  18463. class.
  18464. (onGotNewPice): Moved to SendMessageQueue.
  18465. (onGotWrongPiece): Moved to SendMessageQueue.
  18466. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  18467. (sendInterest): Moved to SendMessageQueue.
  18468. (createRequestPendingMessage): Removed.
  18469. (sendMessages): Moved to SendMessageQueue.
  18470. (onAbort): Use SendMessageQueue::abortPiece()
  18471. (keepAlive): Use sendMessageQueue instead of peerConnection.
  18472. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  18473. (checkPieceHash): Moved to SendMessageQueue.
  18474. (erasePieceOnDisk): Moved to SendMessageQueue.
  18475. * src/PeerMessageUtil.h
  18476. (createBitfieldMessage): Removed.
  18477. (createHaveMessage): Changed return value and arguments.
  18478. (createBitfieldMessage): Changed return value and arguments.
  18479. (createRequestCancelMessage): Removed.
  18480. (createPieceMessage): Changed return value and arguments.
  18481. (getShortIntParam): New function.
  18482. (checkIndex): Changed arguments.
  18483. (checkBegin): Changed arguments.
  18484. (checkLength): Changed arguments.
  18485. (checkPieceOffset): Removed.
  18486. (checkRange): New function.
  18487. (checkBitfield): Changed arguments.
  18488. (createPeerMessage): Removed.
  18489. (checkIntegrity): Removed.
  18490. (createHandshakeMessage): Changed arguments.
  18491. (createChokeMessage): New function.
  18492. (createUnchokeMessage): New function.
  18493. (createInterestedMessage): New function.
  18494. (createNotInterestedMessage): New function.
  18495. (createRequestMessage): New function.
  18496. (createCancelMessage): New function.
  18497. (createPortMessage): New function.
  18498. * src/PeerMessageUtil.cc
  18499. (createBitfieldMessage): Removed.
  18500. (createHaveMessage): Changed return value and arguments.
  18501. (createBitfieldMessage): Changed return value and arguments.
  18502. (createRequestCancelMessage): Removed.
  18503. (createPieceMessage): Changed return value and arguments.
  18504. (getShortIntParam): New function.
  18505. (checkIndex): Changed arguments.
  18506. (checkBegin): Changed arguments.
  18507. (checkLength): Changed arguments.
  18508. (checkPieceOffset): Removed.
  18509. (checkRange): New function.
  18510. (checkBitfield): Changed arguments.
  18511. (createPeerMessage): Removed.
  18512. (checkIntegrity): Removed.
  18513. (createHandshakeMessage): Changed arguments.
  18514. (createChokeMessage): New function.
  18515. (createUnchokeMessage): New function.
  18516. (createInterestedMessage): New function.
  18517. (createNotInterestedMessage): New function.
  18518. (createRequestMessage): New function.
  18519. (createCancelMessage): New function.
  18520. (createPortMessage): New function.
  18521. * src/PeerMessage.h
  18522. (id): Removed.
  18523. (index): Removed.
  18524. (begin): Removed.
  18525. (length): Removed.
  18526. (bitfield): Removed.
  18527. (bitfieldLength): Removed.
  18528. (block): Removed.
  18529. (blockLength): Removed.
  18530. (inProgress): New variable.
  18531. (cuid): New variable.
  18532. (peer): New variable.
  18533. (sendMessageQueue): New variable.
  18534. (logger): New variable.
  18535. (setBitfield): Removed.
  18536. (getBitfield): Removed.
  18537. (setBlock): Removed.
  18538. (getBlock): Removed.
  18539. (getBitfieldLength): Removed.
  18540. (getBlockLength): Removed.
  18541. (isInProgress): New function.
  18542. (toString): Made pure virtual.
  18543. (check): New function.
  18544. (send): New function.
  18545. (receivedAction): New function.
  18546. (getId): Made pure virtual.
  18547. (setId): Removed.
  18548. (getIndex): Removed.
  18549. (setIndex): Removed.
  18550. (getBegin): Removed.
  18551. (setBegin): Removed.
  18552. (getLength): Removed.
  18553. (setLength): Removed.
  18554. (getCuid): New function.
  18555. (setCuid): New function.
  18556. (getPeer): New function.
  18557. (setPeer): New function.
  18558. (getSendMessageQueue): New function.
  18559. (setSendMessageQueue): New function.
  18560. (ID): Removed.
  18561. * src/PeerMessage.cc
  18562. (setBitfield): Removed.
  18563. (setBlock): Removed.
  18564. (toString): Removed.
  18565. * src/TorrentMan.h
  18566. (getPieceLength): New function.
  18567. (getPieceLength): New function.
  18568. * src/SendMessageQueue.h
  18569. (REQUEST_TIME_OUT): New definition.
  18570. (RequestSlots): New definition.
  18571. (MessageQueue): New definition.
  18572. (requestSlotMan): Removed.
  18573. (pendingMessages): Removed.
  18574. (requestSlots): New variable.
  18575. (messageQueue): New variable.
  18576. (torrentMan): New variable.
  18577. (peerConnection): New variable.
  18578. (peer): New variable.
  18579. (piece): New variable.
  18580. (getNewPieceAndSendInterest): New function.
  18581. (createPeerMessage): New function.
  18582. (createHandshakeMessage): New function.
  18583. (send): Made private.
  18584. (setPeerMessageCommonProperty): New function.
  18585. (deleteAllRequestSlot): New function.
  18586. (deleteRequestMessageInQueue): New function.
  18587. (cancelAllRequest): Made private.
  18588. (cancelAllRequest): Made private.
  18589. (countRequestSlot): Made private.
  18590. (addPendingMessage): Removed.
  18591. (deletePendingPieceMessage): Removed.
  18592. (deletePendingRequestMessage): Removed.
  18593. (addMessage): New function.
  18594. (deletePieceMessageInQueue): New function.
  18595. (deleteTimeoutRequestSlot): Changed argument.
  18596. (deleteCompletedRequestSlot): Changed argument.
  18597. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  18598. (getCorrespondingRequestSlot): New function.
  18599. (countPendingMessage): Removed.
  18600. (countMessageInQueue): New function.
  18601. (getTorrentMan): New function.
  18602. (getPeerConnection): New function.
  18603. (hasDownloadPiece): New function.
  18604. (getDownloadPiece): New function.
  18605. (setDownloadPiece): New function.
  18606. (syncPiece): New function.
  18607. (sendMessages): New function.
  18608. (sendNow): New function.
  18609. (trySendNow): New function.
  18610. (abortPiece): New function.
  18611. (sendHandshake): New function.
  18612. (receiveMessage): New function.
  18613. (receiveHandshake): New function.
  18614. (createRequestMessage): New function.
  18615. (createCancelMessage): New function.
  18616. (createPieceMessage): New function.
  18617. (createHaveMessage): New function.
  18618. (createChokeMessage): New function.
  18619. (createUnchokeMessage): New function.
  18620. (createInterestedMessage): New function.
  18621. (createNotInterestedMessage): New function.
  18622. (createBitfieldMessage): New function.
  18623. (createKeepAliveMessage): New function.
  18624. * src/SendMessageQueue.cc
  18625. (SendMessageQueue): Removed requestSlotMan.
  18626. Instantiated peerConnection here.
  18627. (~SendMessageQueue): Removed requestSlotMan.
  18628. Added deletion of peerConnection and the contents of messageQueue.
  18629. (send): Updated according to the change of messageQueue.
  18630. (addPendingMessage): Renamed to addMessage.
  18631. (addMessage): New function.
  18632. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  18633. (deletePieceMessageInQueue): New function.
  18634. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  18635. (deleteRequestMessageInQueue): New function.
  18636. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  18637. here.
  18638. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  18639. (...) was moved here.
  18640. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  18641. moved here.
  18642. (deleteCompletedRequestSlot):
  18643. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  18644. (getCorrespondingRequestSlot):
  18645. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  18646. And renamed to getCorrespondingRequestSlot, correcting a typo.
  18647. (countPendingMessage): Renamed to countMessageInQueue.
  18648. (countMessageInQueue): New function.
  18649. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  18650. (receiveHandshake): New function.
  18651. (createHandshakeMessage): New function.
  18652. (receiveMessage): New function.
  18653. (createPeerMessage): New function.
  18654. (syncPiece): New function.
  18655. (getNewPieceAndSendInterest): New function.
  18656. (sendMessages): New function.
  18657. (sendNow): New function.
  18658. (trySendNow): New function.
  18659. (sendHandshake): New function.
  18660. (abortPiece): New function.
  18661. (getDownloadPiece): New function.
  18662. (getPeerMessageCommonProperty): New function.
  18663. (createRequestMessage): New function.
  18664. (createCancelMessage): New function.
  18665. (createPieceMessage): New function.
  18666. (createHaveMessage): New function.
  18667. (createChokeMessage): New function.
  18668. (createUnchokeMessage): New function.
  18669. (createInterestedMessage): New function.
  18670. (createNotInterestedMessage): New function.
  18671. (createBitfieldMessage): New function.
  18672. (createKeepAliveMessage): New function.
  18673. To add simple Content-Disposition support:
  18674. * src/HttpResponseCommand.h (determinFilename): New function.
  18675. * src/HttpResponseCommand.cc (executeInternal):
  18676. Use determinFilename(headers) instead of req->getFile() when comparing
  18677. filename.
  18678. (determinFilename): New function.
  18679. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18680. req->getFile().
  18681. (handleOtherEncoding): Use determinFilename(headers) instead of
  18682. req->getFile().
  18683. * src/Util.h (getContentDispositionFilename): New function.
  18684. * src/Util.cc (getContentDispositionFilename): New function.
  18685. * src/LogFactory.h (release): New function.
  18686. * src/LogFactory.cc (release): New function.
  18687. To fix a bug that causes out-of-bound exception when HTTP status
  18688. line is wrong:
  18689. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18690. size.
  18691. * src/common.h (Deleter): New class.
  18692. * src/SegmentMan.cc
  18693. (~SegmentMan): Added deletion of splitter and diskWriter.
  18694. * src/DownloadEngine.h
  18695. (Commands): Use deque.
  18696. (clearQueue): New function.
  18697. * src/DownloadEngine.cc
  18698. (~DownloadEngine): Added deletion of segmentMan.
  18699. (cleanQueue): New function.
  18700. * src/TorrentDownloadEngine.h
  18701. (TorrentDownloadEngine): The implementation was moved to
  18702. TorrentDownloadEngine.cc.
  18703. (~TorrentDownloadEngine): The implementation was moved to
  18704. TorrentDownloadEngine.cc.
  18705. * src/TorrentDownloadEngine.cc
  18706. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18707. * src/main.cc
  18708. (clearRequest): Removed.
  18709. (handler): Added deletion of e.
  18710. (torrentHandler): Added deletion of te.
  18711. (main): Do not share splitter.
  18712. Use Deleter instead of clearRequest.
  18713. Deletion of classes were updated.
  18714. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18715. * src/main.cc (main): Fixed typo.
  18716. * src/message.h: Fixed typo.
  18717. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18718. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18719. To add --select-file command-line option:
  18720. * src/Util.cc
  18721. (unfoldRange): New function.
  18722. (getNum): New function.
  18723. (unfoldSubRange): New function
  18724. * src/main.cc
  18725. (showUsage): Added help message.
  18726. (main): Added --select-file command-line option. Updated the layout of
  18727. file listing.
  18728. * src/common.h
  18729. (Integers): New definition.
  18730. * src/SocketCore.cc
  18731. (writeData): Removed timeout argument.
  18732. (readData): Removed timeout argument.
  18733. (peekData): Removed timeout argument.
  18734. * src/Socket.cc
  18735. (writeData): Removed timeout argument.
  18736. (readData): Removed timeout argument.
  18737. (peekData): Removed timeout argument.
  18738. * Release 0.4.1
  18739. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18740. To deploy upload rate based choking algorithm:
  18741. * src/PeerInteractionCommand.cc
  18742. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18743. peer currently used.
  18744. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18745. download completes. Simplified.
  18746. (receiveMessage): Updated.
  18747. * src/TorrentMan.h
  18748. (activePeers): New variable.
  18749. (addActivePeer): New function.
  18750. (getActivePeers): New function.
  18751. (deleteActivePeer): New function.
  18752. * src/TorrentMan.cc
  18753. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18754. * src/PeerAbstractCommand.cc
  18755. (onAbort): Use peer->resetStatus().
  18756. * src/main.cc
  18757. (PeerChokeCommand.h): Included.
  18758. (main): Added the instance of ChokingCommand to the command queue.
  18759. * src/Peer.h
  18760. (amChoking): Renamed from amChocking
  18761. (chokingRequired): New variable.
  18762. (optUnchoking): New variable.
  18763. (deltaUpload): New variable.
  18764. (deltaDownload): New variable.
  18765. (addDeltaUpload): New function.
  18766. (resetDeltaUpload): New function.
  18767. (addDeltaDownload): New function.
  18768. (resetDeltaDownload): New function.
  18769. (addPeerUpload): Added a call to addDeltaUpload.
  18770. (addPeerDownload): Added a call to addDeltaDownload.
  18771. * src/Peer.cc
  18772. (shouldBeChoking): Renamed from shouldChoke.
  18773. (resetStatus): New function.
  18774. * src/PeerChokeCommand.h: New class.
  18775. * src/PeerChokeCommand.cc: New class.
  18776. To add lazy upload speed limiter:
  18777. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18778. statistics calculation to TorrentDownloadEngine.
  18779. * src/TorrentConsoleDownloadEngine.cc
  18780. (sendStatistics): Renamed from printStatistics.
  18781. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18782. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18783. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18784. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18785. calculation.
  18786. (sendStatistics): New function as pure virtual function.
  18787. (getUploadSpeed): New function.
  18788. * src/TorrentDownloadEngine.cc
  18789. (initStatistics): New function.
  18790. (calculateSpeed): New function.
  18791. (calculateStatistics): New function.
  18792. * src/SendMessageQueue.h
  18793. (uploadLength): New variable.
  18794. (send): Added an argument.
  18795. (setUploadLimit): New function.
  18796. (getUploadLimit): New function.
  18797. * src/SendMessageQueue.cc
  18798. (send): Added upload speed limiter.
  18799. * src/prefs.h
  18800. (PREF_UPLOAD_LIMIT): New definition.
  18801. * src/PeerInteractionCommand.cc
  18802. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18803. * src/main.cc
  18804. (main): Added --upload-limit option
  18805. For bug fixes:
  18806. * src/main.cc
  18807. (showUsage): Corrected --listen-port help
  18808. Other changes:
  18809. * src/TorrentMan.cc
  18810. (getPeer): Return nullPeer if connection is grather than
  18811. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18812. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18813. To add some useful information to the exception message:
  18814. * src/SocketCore.cc : Updated messages.
  18815. * src/SegmentMan.cc :
  18816. * src/TorrentMan.cc : Updated messages.
  18817. * src/MultiDiskWriter.cc : Updated messages.
  18818. * src/Util.cc : Updated messages.
  18819. * src/AbstractDiskWriter.cc : Updated messages.
  18820. * src/PreAllocationDiskWriter.cc : Updated messages.
  18821. * src/message.cc : Added new messages. Updated some messages.
  18822. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18823. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18824. Updated threshold from 30 to 15.
  18825. * src/AbstractDiskWriter.h (filename): New variable.
  18826. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18827. (createFile): Assigned filename.
  18828. * src/main.cc: Updated the help message for http-auth-scheme.
  18829. * Release 0.4.0
  18830. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18831. To add TrackerUpdateCommand with which replaces
  18832. CompactTrackerResponseProcessor:
  18833. * src/TrackerWatcherCommand.h (req): Removed.
  18834. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18835. if the number of peer connections are less than 30.
  18836. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18837. * src/SegmentMan.h (diskWriter): New function.
  18838. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18839. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18840. (main): Use TrackerUpdateCommand.
  18841. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18842. (req): New variable.
  18843. (setTrackerResponseProcessor): Removed.
  18844. (getTrackerResponseProcessor): Removed.
  18845. (processTrackerResponse): Removed.
  18846. * src/DownloadEngine.h (diskWriter): Removed.
  18847. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18848. to torrentMan->processTrackerResponse().
  18849. To add Util::expandBuffer:
  18850. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18851. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18852. * src/Util.h (expandBuffer): New function.
  18853. To fix the bug that causes segmentation fault when "-l ." is specified
  18854. in command-line option:
  18855. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18856. (openFile): New function.
  18857. (closeFile): New function.
  18858. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18859. (~SimpleLogger): Call closeFile();
  18860. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18861. * src/main.cc (main): Added a check to see logger is configured
  18862. properly.
  18863. To enable HTTP authentication without specifying "--http-auth-scheme"
  18864. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18865. * src/HttpConnection.cc (createRequest): Send Authorization header
  18866. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18867. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18868. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18869. * src/Peer.cc (shouldChoke): Updated algorithm.
  18870. * src/message.h (EX_AUTH_FAILED): New definition.
  18871. (EX_FILE_OPEN): New definition.
  18872. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18873. if status == 401.
  18874. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18875. if req->isTorrent == true.
  18876. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18877. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18878. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18879. (createFile): Updated message.
  18880. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18881. To add a readout of estimated remaining time to normal HTTP/FTP
  18882. downloads:
  18883. * src/ConsoleDownloadEngine.h (startup): New variable.
  18884. (startupLength): New variable.
  18885. (isStartupLengthSet): New variable.
  18886. (avgSpeed): New variable.
  18887. (eta): New variable.
  18888. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18889. estimated remaining time.
  18890. (initStatistics): Initialized newly added variables.
  18891. (calculateStatistics): Calculate average speed and estimated remaining
  18892. time.
  18893. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18894. * src/TrackerDownloadCommand.h: Removed.
  18895. * src/TrackerDownloadCommand.cc: Removed.
  18896. * src/TrackerInitCommand.h: Removed.
  18897. * src/TrackerInitCommand.cc: Removed.
  18898. * src/TrackerUpdateCommand.h: Removed.
  18899. * src/TrackerUpdateCommand.cc: Removed.
  18900. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18901. url written in TrackerInitCommand was moved here. Do not create
  18902. tracker request command if torrentMan->trackers != 0.
  18903. * src/CompactTrackerResponseProcessor.h: New class.
  18904. * src/CompactTrackerResponseProcessor.cc: New class.
  18905. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18906. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18907. Decoupled TorrentDownloadEngine from this.
  18908. * src/SegmentMan.h (init): New function.
  18909. * src/SegmentMan.cc (init): New function.
  18910. * src/TorrentMan.h (responseProcessor): New variable.
  18911. (trackers): New variable.
  18912. (setTrackerResponseProcessor): New function.
  18913. (getTrackerResponseProcessor): New function.
  18914. (processTrackerResponse): New function.
  18915. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18916. (processTrackerResponse): New function.
  18917. * src/main.cc (main): Use ByteArrayDiskWriter and
  18918. CompactTrackerResponseProcessor.
  18919. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18920. processTrackerResponse().
  18921. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18922. readout.
  18923. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18924. which indicates download has completed.
  18925. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18926. (closeFile): fd >= 0, not fd > 0
  18927. * src/main.cc (main): Added short cut for show-files.
  18928. Added short cut for torrent-file.
  18929. Added new command-line option listen-port.
  18930. Updated i18n messages.
  18931. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18932. To add LogFactory which creates singleton logger:
  18933. * src/LogFactory.h: New class.
  18934. * src/LogFactory.cc: New class.
  18935. * src/Command.h (logger): New variable.
  18936. (Constructor): Use LogFactory.
  18937. * src/AbstractCommand.cc: Use Command::logger
  18938. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18939. Use LogFactory.
  18940. * src/SegmentSplitter.h : Made logger protected.
  18941. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18942. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18943. * src/DownloadEngine.h : Made logger protected.
  18944. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18945. * src/PeerInteractionCommand.cc : Use Command::logger.
  18946. * src/HttpResponseCommand.cc : Use Command::logger.
  18947. * src/SegmentMan.h : Made logger private.
  18948. * src/TorrentMan.h : Made logger private.
  18949. * src/TorrentMan.cc : Use LogFactory.
  18950. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18951. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18952. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18953. Use LogFactory.
  18954. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18955. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18956. Use LogFactory.
  18957. * src/DownloadCommand.cc : Use Command::logger.
  18958. * src/PeerAbstractCommand.cc : Use Command::logger.
  18959. * src/PeerListenCommand.cc : Use Command::logger.
  18960. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18961. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18962. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18963. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18964. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18965. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18966. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18967. Use LogFactory.
  18968. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18969. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18970. Use LogFactory.
  18971. * src/main.cc (main): Use LogFactory.
  18972. * src/DiskAdaptor.h (logger): New variable.
  18973. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18974. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18975. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18976. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18977. parameter to a tracker request.
  18978. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18979. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18980. * src/main.cc (setSignalHander): New function.
  18981. (main): Added a handler for SIGTERM.
  18982. (handler): Updated message.
  18983. (torrentHandler): Updated message.
  18984. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18985. * src/TorrentConsoleDownloadEngine.cc
  18986. (onPartialDownloadingCompletes): Renamed as
  18987. onSelectiveDownloadingCompletes.
  18988. (onSelectiveDownloadingCompletes): Updated message.
  18989. To add DiskAdaptor which abstract DiskWriter family:
  18990. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18991. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18992. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18993. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18994. MultiDiskAdaptor.h.
  18995. (readFileEntry): Changed its arguments.
  18996. (setup): setupDiskWriter is merged into this function.
  18997. (setupDiskWriter): Removed.
  18998. (setFileFilter): New function.
  18999. (readFileEntryFromMetaInfoFile): Updated according to the changes
  19000. made in readFileEntry.
  19001. (getFilePath): Removed.
  19002. (getTempFilePath): Removed.
  19003. (getSegmentFilePath): Updated due to the removal of getFilePath.
  19004. (fixFilename): Removed.
  19005. (copySingleFile): Removed.
  19006. (splitMultiFile): Removed.
  19007. (deleteTempFile): Removed.
  19008. (setFileEntriesToDownload): Removed.
  19009. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  19010. (isSelectiveDownloadingMode): New function.
  19011. (setAllMultiFileRequestedState): Removed.
  19012. (finishPartialDownloadingMode): Renamed as
  19013. finishSelectiveDownloadingMode.
  19014. (finishSelectiveDownloadingMode): New function.
  19015. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  19016. (getSelectedTotalLength): New function.
  19017. (onDownloadComplete): Use diskAdaptor.
  19018. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  19019. (Range): Removed.
  19020. (setMultiFileEntries): Renamed as setFileEntries.
  19021. (setFileEntries): New function.
  19022. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  19023. (pieceLength): New variable.
  19024. * src/main.cc (printDownloadCompeleteMessage): New function.
  19025. (torrentHandler): Use diskAdaptor instead of diskWriter.
  19026. (main): Renamed torrent-show-files to show-files.
  19027. Rewritten file contents listing.
  19028. * src/TorrentMan.h (FileEntry): Removed.
  19029. (multiFileTopDir): Removed.
  19030. (multiFileEntries): Removed.
  19031. (diskWriter): Removed.
  19032. (diskAdaptor): New variable.
  19033. * src/DefaultDiskWriter.h (totalLength): New variable.
  19034. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  19035. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  19036. diskWriter.
  19037. * src/TorrentConsoleDownloadEngine.h
  19038. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  19039. (partialTotalLength): Renamed as selectedTotalLength.
  19040. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  19041. openExistingFile, otherwise call initAndOpenFile.
  19042. (closeFile): fd > 0, not fd != 0.
  19043. * src/DirectDiskAdaptor.h: New class.
  19044. * src/DirectDiskAdaptor.cc: New class.
  19045. * src/MultiDiskAdaptor.h: New class.
  19046. * src/MultiDiskAdaptor.cc: New class.
  19047. * src/CopyDiskAdaptor.h: New class.
  19048. * src/CopyDiskAdaptor.cc: New class.
  19049. * src/DiskAdaptor.h: New class.
  19050. * src/DiskAdaptor.cc: New class.
  19051. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  19052. (PREF_SHOW_FILES): New definition.
  19053. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19054. To add the ability to download multi torrent into respective files
  19055. directly:
  19056. * src/DiskWriter.h (openFile): New function.
  19057. (seek): Removed.
  19058. * src/MultiDiskWriter.h: New class.
  19059. * src/MultiDiskWriter.cc: New class.
  19060. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  19061. protected.
  19062. (openFile): New function.
  19063. * src/AbstractDiskWriter.cc (openFile): New function.
  19064. * src/prefs.h (V_FALSE): New definition.
  19065. (PREF_DIRECT_FILE_MAPPING): New definition.
  19066. * src/TorrentMan.h (setupDiskWriter): New function.
  19067. (setAllMultiFileRequestedState): New function.
  19068. (onDownloadComplete): New function.
  19069. * src/TorrentMan.cc : Included MultiDiskWriter.h
  19070. (setupDiskWriter): New function.
  19071. (getFilePath): Updated.
  19072. (getTempFilePath): Updated.
  19073. (getSegmentFilePath): Updated.
  19074. (fixFilename): Updated.
  19075. (deleteTempFile): Updated.
  19076. (setAllMultiFileRequestedState): New function.
  19077. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  19078. (finishPartialDownloadingMode): Reset requested flags.
  19079. (onDownloadComplete): New function.
  19080. * src/main.cc: Added --direct-file-mapping option.
  19081. Use TorrentMan::setupDiskWriter().
  19082. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  19083. onDownloadComplete().
  19084. To fix ETA bug:
  19085. * src/Util.h (difftvsec): New function.
  19086. * src/Util.cc (difftvsec): New function.
  19087. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  19088. type of "elapsed" instead of long long int.
  19089. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  19090. The updates of statistics takes place every 1 seconds.
  19091. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  19092. (calculateSpeed): Changed its argument signature.
  19093. * src/PeerMessage.cc (toString): Fixed message.
  19094. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19095. To print ETA:
  19096. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  19097. completion handling when dealing with
  19098. TorrentMan::isPartialDownloadingMode() == true.
  19099. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  19100. New function.
  19101. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  19102. (sessionDownloadLength): New variable.
  19103. (avgSpeed): New variable.
  19104. (eta): New variable.
  19105. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  19106. new variables: eta, avgSpeed, startup.
  19107. (calculateSpeed): Calculate average speed and ETA.
  19108. (printStatistics): Added ETA.
  19109. * src/Util.h (secfmt): New function.
  19110. * src/Util.cc (secfmt): New function.
  19111. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19112. To detect "keep alive" flooding:
  19113. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  19114. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  19115. variable: keepAliveCount.
  19116. (detectMessageFlooding): Added "keep alive" flooding detection.
  19117. (receiveMessage): Increase keepAliveCount when "keep alive" message
  19118. received.
  19119. To add the ability to download only specified files in multi-file
  19120. torrent:
  19121. * src/BitfieldMan.h (filterBitfield): New variable.
  19122. (filterEnabled): New variable.
  19123. (setFilterBit): New function.
  19124. (enableFilter): New function.
  19125. (disableFilter): New function.
  19126. (isFilterEnabled): New function.
  19127. (getFilteredTotalLength): New function.
  19128. (getCompletedLength): New function.
  19129. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  19130. filterBitfield, filterEnabled.
  19131. (CopyConstructor): Added filterBitfield and filterEnabled.
  19132. (operator==): Added filterBitfield and filterEnabled.
  19133. (Destructor): Added filterBitfield.
  19134. (getMissingIndex): Use filterBitfield.
  19135. (getMissingUnusedIndex): Use filterBitfield.
  19136. (getFirstMissingUnusedIndex): Use filterBitfield.
  19137. (getFirstMissingUnusedIndex): Use filterBitfield.
  19138. (getAllMissingIndexes): Use filterBitfield.
  19139. (countMissingBlock): Use filterBitfield.
  19140. (countBlock): Use filterBitfield.
  19141. (setBitInternal): Added new argument on.
  19142. (setUseBit): Use setBitInternal.
  19143. (unsetUseBit): Use setBitInternal.
  19144. (setBit): Use setBitInternal.
  19145. (unsetBit): Use setBitInternal.
  19146. (isAllBitSet): Use filterBitfield.
  19147. (setFilterBit): New function.
  19148. (addFilter): New function.
  19149. (enableFilter): New function.
  19150. (disableFilter): New function.
  19151. (clearFilter): New function.
  19152. (isFilterEnabled): New function.
  19153. (getFilteredTotalLength): New function.
  19154. (getCompletedLength): New function.
  19155. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  19156. Initalized newly added variables.
  19157. [FileEntry](offset): New variable.
  19158. [FileEntry](extracted): New variable.
  19159. [FileEntry](requested): New variable.
  19160. (readFileEntry): New function.
  19161. (option): New variable.
  19162. (splitMultiFile): Removed const qualifier.
  19163. (fixFilename): Removed const qualifier.
  19164. (readFileEntryFromMetaInfoFile): New function.
  19165. (finishPartialDownloadingMode): New function.
  19166. (isPartialDownloadingMode): New function.
  19167. (setFileEntriesToDownload): New function.
  19168. (getCompletedLength): New function.
  19169. (getPartialTotalLength): New function.
  19170. * src/TorrentMan.cc (readFileEntry): New function.
  19171. (setup): Use readFileEntry. If no-preallocation option is specified,
  19172. use DefaultDiskWriter.
  19173. (readFileEntryFromMetaInfoFile): New function.
  19174. (fixFilename): Removed const qualifier.
  19175. (splitMultiFile): Removed const qualifier.
  19176. (setFileEntriesToDownload): New function.
  19177. (isPartialDownloadingMode): New function.
  19178. (finishPartialDownloadingMode): New function.
  19179. (getCompletedLength): New function.
  19180. (getPartialTotalLength): New function.
  19181. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  19182. New variable.
  19183. (partialTotalLength): New variable.
  19184. (downloadLength): New variable.
  19185. (totalLength): New variable.
  19186. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  19187. Added log.
  19188. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  19189. partialTotalLength, downloadLength, totalLength.
  19190. (calculate): Calculate downloadLength and totalLength.
  19191. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  19192. * src/main.cc (addCommand): Changed argument signature.
  19193. (main): Added new variable: args. Added new option "torrent-show-files"
  19194. "no-preallocation". Usage is not updated yet.
  19195. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19196. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  19197. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19198. Attempt to add the ability to listing file entries in a .torrent file.
  19199. This feature is not yet complete.
  19200. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  19201. * src/TorrentMan.cc (getMultiFileEntries): New function.
  19202. (getName): New function.
  19203. * src/TorrentMan.h (getMultiFileEntries): New function.
  19204. (getName): New function.
  19205. * src/main.cc (main): Use above 2 funtion.
  19206. * Release 0.3.2
  19207. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19208. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  19209. (detectMessageFlooding): Updated threshold value.
  19210. (checkLongTimePeerChoking): Updated timeout value.
  19211. (getNewPieceAndSendInterest): Added debug log.
  19212. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  19213. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  19214. (getPeer): Updated.
  19215. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  19216. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  19217. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  19218. is localhost.
  19219. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  19220. * src/PendingMessage.cc (processMessage): Not to send piece message
  19221. if peer is not interested in the pieces localhost has.
  19222. * src/Peer.cc (shouldChoke): Updated.
  19223. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  19224. * src/Util.cc (isPowerOf): New function.
  19225. * src/Util.h (isPowerOf): New function.
  19226. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  19227. whether or not it is power of 2.
  19228. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19229. Added new class SendMessageQueue that includes PendingMessages and
  19230. RequestSlotMan.
  19231. * src/SendMessageQueue.h: New class.
  19232. * src/SendMessageQueue.cc: New class.
  19233. * src/PendingMessage.h: Added new member variable blockIndex and its
  19234. accessors.
  19235. (createRequestMessage): Updated.
  19236. * src/PendingMessage.cc (createRequestMessage): Updated.
  19237. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  19238. SendMessageQueue.
  19239. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  19240. (receiveMessage): Updated with SendMessageQueue.
  19241. (deletePendingPieceMessage): Removed.
  19242. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  19243. (sendInterest): Updated with SendMessageQueue.
  19244. (createRequestPendingMessage): Updated with SendMessageQueue.
  19245. (sendMessages): Updated with SendMessageQueue.
  19246. (onAbort): Updated with SendMessageQueue.
  19247. (keepAlive): Updated with SendMessageQueue.
  19248. (beforeSocketCheck): Updated SendMessageQueue.
  19249. * src/PeerInteractionCommand (sendMessages): Shuffle
  19250. missingBLockIndexes before using it.
  19251. Added its own timeout for peer connection.
  19252. * src/PeerAbstractCommand.h: Added member variable timeout and its
  19253. setter.
  19254. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  19255. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  19256. Added setTimeout() call.
  19257. (executeInternal): Added setTimeout() call.
  19258. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  19259. Added timeout.
  19260. (isTimeoutDetected): Updated.
  19261. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  19262. option.
  19263. Added *simple* message flooding checker.
  19264. * src/PeerInteractionCommand.cc (executeInternal):
  19265. Added detectMessageFlooding() call.
  19266. (detectMessageFlooding): New function.
  19267. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  19268. (beforeSocketCheck): Added detectMessageFlooding() call.
  19269. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  19270. chokeUnchokeCount, haveCount, detectMessageFlooding().
  19271. Removed deletePendingPieceMessage(), getRequestSlot(),
  19272. deleteRequestSlot(), deleteAllRequestSlot().
  19273. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  19274. Added checkLongTimePeerChoking() call.
  19275. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  19276. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  19277. if duplicate == false.
  19278. The parameter "uploaded" and "downloaded" in the tracker request are
  19279. the size since the client sent the "started" event to the tracker.
  19280. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  19281. uploaded size to preDownloadedSize, preUploadedSize respectively.
  19282. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  19283. getSessionDownloadedSize(), getSessionUploadedSize().
  19284. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  19285. getSessionUploadedSize() instead of getDownloadedSize(),
  19286. getUploadedSize().
  19287. * src/PendingMessage.cc (processMessage): Do not send request message
  19288. if the peer is choking the client.
  19289. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  19290. less than interval.
  19291. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19292. * configure.in: Added gnutls support. Added several CPP macros.
  19293. * m4/openssl.m4: Added.
  19294. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  19295. readData(), peekData(). Added gnutls support.
  19296. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  19297. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  19298. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  19299. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  19300. Instead, added a check for whether setup method has executed
  19301. successfully.
  19302. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  19303. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  19304. * src/Makefile.am: Updated.
  19305. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  19306. using whether OpenSSL or gcrypt, depending on the result of configure
  19307. script.
  19308. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19309. messageDigest.h.
  19310. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  19311. * src/PeerListenCommand.cc: Added log about port binded successfully.
  19312. Fixed memory leak.
  19313. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  19314. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  19315. Removed instantiation of TrackerInitCommand. Instead,
  19316. TrackerWatcherCommand is instantiated and pushed to the command queue.
  19317. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  19318. ENABLE_SSL.
  19319. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  19320. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  19321. If a piece is already acquired by another command, delete the request
  19322. slots for the piece.
  19323. * src/TrackerUpdateCommand.cc (execute):
  19324. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  19325. Added a check whether peer list is null.
  19326. Fixed the bug that causes sending completed event to the tracker
  19327. several times.
  19328. * src/TrackerInitCommand.cc (execute):
  19329. Fixed the bug that causes sending completed event to the tracker
  19330. several times.
  19331. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  19332. by using messageDigest.h.
  19333. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19334. * PeerConnection.cc: Replaced log message "keep-alive" with
  19335. "keep alive".
  19336. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  19337. localhost long time.
  19338. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  19339. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  19340. at most 100 failure entry from the list. If with duplicate = false,
  19341. MAX_PEER_LIST is not checked.
  19342. * PeerListenCommand.cc: Fixed the argument order of log message.
  19343. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19344. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  19345. Added warn().
  19346. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  19347. Implemented warn().
  19348. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  19349. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19350. * Request.h: Added AFTER_COMPLETED event.
  19351. * TorrentDownloadEngine.cc: Prints "Download complete" message
  19352. instead of downloaded size and progress(%) after download completes.
  19353. * PeerInteractionCommand.cc: After download completes, sends unchoke
  19354. message to the peer if it is interested in what localhost has
  19355. downloaded.
  19356. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  19357. destination instead of just renaming it.
  19358. * TorrentMan.cc: Added deleteTempFile().
  19359. * PeerAbstractCommand.cc: do not stop execution after download
  19360. completes. This makes localhost a seeder.
  19361. * Util.{h,cc}: Added fileCopy().
  19362. * PeerListenCommand.cc: do not stop execution after download completes.
  19363. This makes localhost a seeder.
  19364. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  19365. Added TorrentMan::deleteTempFile() to torrentHandler.
  19366. Initialized the variable dir as ".".
  19367. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  19368. Deleted renameSingleFile().
  19369. Added copySingleFile(), deleteTempFile().
  19370. * DownloadEngine.h: Added virtual function afterEachIteration().
  19371. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  19372. in onEndOfRun() to afterEachIteration().
  19373. In onEndOfRun(), changed if condition to check whether filenameFixed is
  19374. true.
  19375. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  19376. In rangedFileCopy(), added try-catch block to properly close file
  19377. descriptors.
  19378. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  19379. Added afterEachIteration(), isFilenameFixed().
  19380. * Peer.cc: Changed choking strategy.
  19381. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  19382. * TrackerInitCommand.cc: Send completed event only once.
  19383. * DownloadEngine.cc: Added a call to afterEachIteration().
  19384. * TrackerUpdateCommand.cc: Do not stop execution after download
  19385. completes.
  19386. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  19387. connect the peers at most MAX_PEER_UPDATE when a peer list is
  19388. received from a tracker.
  19389. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  19390. Decreased the number of failure peers to delete to 0(just comment out
  19391. the line).
  19392. * Release 0.3.1
  19393. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19394. * PeerInteractionCommand.cc: added a call to
  19395. TorrentMan::unadvertisePiece in Destructor.
  19396. * PeerInteractionCommand.cc: make have message sent immediately
  19397. if the size of pending message queue is zero.
  19398. * TorrentMan.cc: set the maximum size of peer list to 250.
  19399. * TorrentMan.h: changed the container type of Peers and UsedPieces
  19400. to deque.
  19401. * Util.cc: fixed rangedFileCopy.
  19402. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  19403. to Constructor. Also, moved digest cleanup to Destructor.
  19404. * MetaFileUtil.cc: fixed memory leak
  19405. * replaced std::vector with std::deque.
  19406. * AbstractCommand.cc: casted timeout value to long long int.
  19407. * ChunkedEncoding.cc: fixed memory leak.
  19408. * PeerInteractionCommand.cc: casted timeout value to long long int.
  19409. * SleepCommand.cc: casted timeout value to long long int.
  19410. * Data.cc: fixed memory leak.
  19411. * Data.cc: fixed toLLInt().
  19412. * BitfieldMan.cc: fixed memory leak.
  19413. * TorrentMan.cc: initialized storeDir to ".".
  19414. * TorrentMan.cc: fixed memory leak.
  19415. * TorrentMan.cc: corrected file paths of splitted files.
  19416. * PeerAbstractCommand.cc: casted timeout to long long int.
  19417. * main.cc: added delete(req) and delete(te->diskWriter).
  19418. * RequestSlot.cc: casted timeout value to long long int.
  19419. * Request.cc: fixed memory leak.
  19420. * PendingMessage.cc: make HAVE messages sent only when peer does not
  19421. have the piece.
  19422. * Peer.{h,cc}: added hasPiece(int index).
  19423. * main.cc: corrected addCommand.
  19424. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19425. * BitTorrent protocol support added.
  19426. * Release 0.3.0
  19427. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19428. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  19429. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19430. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  19431. decoding did not work properly.
  19432. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19433. * DownloadEngine.h: included sys/time.h
  19434. * DownloadEngine.cc: remove sys/time.h
  19435. * Makefile.am (SUBDIRS): Add intl.
  19436. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  19437. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19438. * main.cc: correct help message for --http-auth-scheme.
  19439. * main.cc: changed e-mail address for bug reports.
  19440. * ja.po: added japanese translation.
  19441. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19442. * SimpleLogger.cc: flush log file instead of stdout.
  19443. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19444. * main.cc: Fixed command-line option: max-tries
  19445. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  19446. does not equal to seg.sp.
  19447. * DownloadCommand.cc: If EOF is got from the server and the total size
  19448. of file is not zero, then throw DlRetryEx.
  19449. * main.cc: Set the minium value of min-segment-size to 1024.
  19450. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  19451. fails because of a regression since 0.2.0 release.
  19452. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19453. * HttpConnection.cc:
  19454. * common.h: defined the user agent name as macro
  19455. * DownloadEngine.{h, cc}:
  19456. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  19457. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  19458. * main.cc: Download complete/abort message is now generated by main.
  19459. * Makefile.am (SUBDIRS): Add m4.
  19460. (ACLOCAL_AMFLAGS): New variable.
  19461. (EXTRA_DIST): New variable.
  19462. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  19463. * gettext: added gettext functionality
  19464. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19465. * AbstractCommand.cc:
  19466. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  19467. unregister its cuid from SegmentMan.
  19468. * DownloadEngine.cc: .aria2 file was written when a downloading
  19469. failed with errors.
  19470. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  19471. Added "User-Agent" header to CONNECT proxy request.
  19472. Fixed "Proxy-Authorization" header. Now proxy authorization works
  19473. properly.
  19474. * Logger.h:
  19475. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  19476. * ChunkedEncoding.cc: Added #include directive for strings.h
  19477. * Release 0.2.1
  19478. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19479. * Util.{h,cc}: added startsWith().
  19480. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  19481. Util::endsWith().
  19482. * SocketCore.cc: struct addrinfo is now zero-initialized.
  19483. * common.h: added #include directive of limit.h.
  19484. * DownloadEngine.cc: added #include directive of sys/time.h and
  19485. algorithm.
  19486. * Exception.h: added #include directive of stdio.h.
  19487. * AbstractCommand.h: added #include directive of sys/time.h.
  19488. * DownloadCommand.h: added #include directive of sys/time.h.
  19489. * *.h: added #include directive of common.h to all base classes.
  19490. subclasses' one was removed.
  19491. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  19492. does not define these macros.
  19493. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19494. * Release 0.2.0
  19495. * main.cc:
  19496. * HttpInitiateConnectionCommand.{h,cc}:
  19497. * prefs.h:
  19498. * HttpConnection.{h,cc}: added --http-proxy-method option.
  19499. We can now use GET command in http proxy.
  19500. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19501. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  19502. that splits slowest segment of SegmentMan::commands vector.
  19503. This is the default split algorithm of aria2.
  19504. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  19505. that splits first segment of SegmentMan::commands vector.
  19506. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  19507. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  19508. * Segment.h:
  19509. * SegmentMan.cc: Added speed field to Segment.h
  19510. * main.cc: -s option now affects all URLs in command-line arguemtns.
  19511. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  19512. * message.h: Change file size related %d to %lld.
  19513. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19514. * FtpInitiateConnectionCommand.{h,cc}:
  19515. * FtpNegotiationCommand.{h,cc}:
  19516. * FtpDownloadCommand.{h,cc}:
  19517. * FtpConnection.{h,cc}: Added FTP support
  19518. * SimpleLogger.cc: Log message now includes time information.
  19519. * main.cc: The value of --http-auth-scheme option is chagned from
  19520. 'BASIC' to 'basic'
  19521. * main.cc: Added --timeout command-line option.
  19522. * main.cc: Added --min-segment-size command-line option.
  19523. * main.cc: Added --max-retries command-line option.
  19524. * prefs.h: option string constants are now defined in prefs.h
  19525. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19526. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  19527. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  19528. with version 0.1.0's one.
  19529. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19530. * configure.in: Added --enable-ssl option to configure script.
  19531. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  19532. cannot permit absoluteURI as Request-URI.
  19533. * HttpConnection.cc: Added Referer support.
  19534. * main.cc: Added referer command-line option.
  19535. * main.cc: Added rety-wait command-line option.
  19536. * Exception.h: Fixed formating bug in Exception::setMsg()
  19537. * SocketCore.{h,cc}:
  19538. * Socket.{h, cc}:
  19539. * Request.cc:
  19540. * InitiateConnectionCommandFactory.cc:
  19541. * HttpRequestCommand.cc: Added HTTPS support.
  19542. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  19543. for SocketCore.
  19544. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  19545. size is wrong
  19546. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19547. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19548. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19549. * Release 0.1.0