ChangeLog 700 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611
  1. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed the bug that grouped FileEntry objects are not used but
  3. instead all FileEntry objects are used for each metaurl group.
  4. * src/Metalink2RequestGroup.cc
  5. * test/Metalink2RequestGroupTest.cc
  6. * test/metalink4-groupbymetaurl.xml
  7. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Use vector instead of deque for ChunkChecksum.
  9. * src/ChunkChecksum.h
  10. * src/MetalinkParserController.cc
  11. * src/MetalinkParserController.h
  12. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  14. algorithm in Metalink properly
  15. * src/MetalinkParserController.cc
  16. * src/MetalinkParserController.h
  17. * src/messageDigest.cc
  18. * src/messageDigest.h
  19. * test/MetalinkProcessorTest.cc
  20. * test/metalink4.xml
  21. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Replaced null or control characters in file path with '_'. For
  23. MinGW32 build, additional characters which is not allowed in
  24. Windows kernel are also replaced. util::detectDirTraversal() now
  25. returns true if given string contains null or control characters.
  26. * src/DownloadContext.cc
  27. * src/DownloadContext.h
  28. * src/Metalink2RequestGroup.cc
  29. * src/MetalinkParserController.cc
  30. * src/bittorrent_helper.cc
  31. * src/util.cc
  32. * src/util.h
  33. * test/UtilTest.cc
  34. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Discard metalink:file if its name attribute is empty string.
  36. Removed FileEntry instantiation in
  37. MetalinkParserController::setFileLengthOfEntry()
  38. * src/MetalinkParserController.cc
  39. * src/MetalinkParserStateV3Impl.cc
  40. * src/MetalinkParserStateV4Impl.cc
  41. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Discard torrent file if path data in it contains directory
  43. traversal directives. Discard metalink:file element in Metalink3
  44. format if its name attribute contains directory traversal
  45. directives. Ignore name attribute of metalink:signature element
  46. in Metalink3 format if it contains directory traversal directives.
  47. * src/MetalinkParserStateV3Impl.cc
  48. * src/bittorrent_helper.cc
  49. * src/message.h
  50. * test/BittorrentHelperTest.cc
  51. * test/Makefile.am
  52. * test/MetalinkProcessorTest.cc
  53. * test/metalink3-dirtraversal.xml
  54. * test/test.xml
  55. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Removed useless comment
  57. * src/MetalinkParserStateV4Impl.cc
  58. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Supported name attribute of metalink::metaurl element and
  60. multi-file torrent with Metalink4. Files with same metaurl are
  61. grouped and downloaded in one RequestGroup.
  62. * src/BtDependency.cc
  63. * src/FileEntry.h
  64. * src/Metalink2RequestGroup.cc
  65. * src/Metalink2RequestGroup.h
  66. * src/MetalinkEntry.cc
  67. * src/MetalinkEntry.h
  68. * src/MetalinkHelper.cc
  69. * src/MetalinkHelper.h
  70. * src/MetalinkMetaurl.cc
  71. * src/MetalinkMetaurl.h
  72. * src/MetalinkParserController.cc
  73. * src/RequestGroup.cc
  74. * src/RequestGroup.h
  75. * src/bittorrent_helper.cc
  76. * test/BittorrentHelperTest.cc
  77. * test/BtDependencyTest.cc
  78. * test/MetalinkHelperTest.cc
  79. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  80. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  81. * src/MetalinkMetaurl.h
  82. * src/MetalinkParserController.cc
  83. * src/MetalinkParserController.h
  84. * src/MetalinkParserStateMachine.cc
  85. * src/MetalinkParserStateMachine.h
  86. * src/MetalinkParserStateV4Impl.cc
  87. * test/MetalinkProcessorTest.cc
  88. * test/metalink4-dirtraversal.xml
  89. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  91. element.
  92. * src/Makefile.am
  93. * src/Metalink2RequestGroup.cc
  94. * src/MetalinkEntry.cc
  95. * src/MetalinkEntry.h
  96. * src/MetalinkMetaurl.cc
  97. * src/MetalinkMetaurl.h
  98. * src/MetalinkParserController.cc
  99. * src/MetalinkParserController.h
  100. * src/MetalinkParserStateMachine.cc
  101. * src/MetalinkParserStateMachine.h
  102. * src/MetalinkParserStateV4Impl.cc
  103. * src/MetalinkParserStateV4Impl.h
  104. * test/MetalinkProcessorTest.cc
  105. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Added Metalink4 support. Currently, name attribute of
  107. metalink::metaurl is ignored and multi-file torrent cannot be used
  108. with Metalink4.
  109. * doc/aria2c.1.txt
  110. * src/DownloadHandlerConstants.cc
  111. * src/ExpatMetalinkProcessor.cc
  112. * src/Makefile.am
  113. * src/Metalink2RequestGroup.cc
  114. * src/MetalinkEntry.cc
  115. * src/MetalinkEntry.h
  116. * src/MetalinkParserController.cc
  117. * src/MetalinkParserController.h
  118. * src/MetalinkParserState.h
  119. * src/MetalinkParserStateImpl.cc
  120. * src/MetalinkParserStateImpl.h
  121. * src/MetalinkParserStateMachine.cc
  122. * src/MetalinkParserStateMachine.h
  123. * src/MetalinkParserStateV3Impl.cc
  124. * src/MetalinkParserStateV3Impl.h
  125. * src/MetalinkParserStateV4Impl.cc
  126. * src/MetalinkParserStateV4Impl.h
  127. * src/MetalinkResource.cc
  128. * src/MetalinkResource.h
  129. * src/Metalinker.cc
  130. * src/RequestGroup.cc
  131. * src/RequestGroup.h
  132. * src/XML2SAXMetalinkProcessor.cc
  133. * src/messageDigest.cc
  134. * src/util.cc
  135. * src/util.h
  136. * test/Makefile.am
  137. * test/MetalinkEntryTest.cc
  138. * test/MetalinkParserControllerTest.cc
  139. * test/MetalinkProcessorTest.cc
  140. * test/MetalinkerTest.cc
  141. * test/UtilTest.cc
  142. * test/metalink4-attrs.xml
  143. * test/metalink4-dirtraversal.xml
  144. * test/metalink4.xml
  145. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Added aiFlags argument to getInterfaceAddress(). Use
  147. AI_NUMERICHOST to find interface specified using
  148. --bt-lpd-interface option to avoid time-consuming address lookup.
  149. * src/BtSetup.cc
  150. * src/SocketCore.cc
  151. * src/SocketCore.h
  152. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  154. is bad in LpdMessageReceiver.
  155. * src/LpdMessage.h
  156. * src/LpdMessageReceiver.cc
  157. * src/LpdMessageReceiver.h
  158. * src/LpdReceiveMessageCommand.cc
  159. * test/LpdMessageReceiverTest.cc
  160. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Added --bt-lpd-interface option to specify the interface to use
  162. for Local Peer Discovery. LpdMessageDispatcher object now has its
  163. own socket. LpdMessageReceiver's socket is binded to multicast
  164. address to only receive multicast packets.
  165. * src/BtSetup.cc
  166. * src/LpdMessageDispatcher.cc
  167. * src/LpdMessageDispatcher.h
  168. * src/LpdMessageReceiver.cc
  169. * src/LpdMessageReceiver.h
  170. * src/LpdReceiveMessageCommand.cc
  171. * src/LpdReceiveMessageCommand.h
  172. * src/OptionHandlerFactory.cc
  173. * src/SocketCore.cc
  174. * src/SocketCore.h
  175. * src/prefs.cc
  176. * src/prefs.h
  177. * src/usage_text.h
  178. * test/LpdMessageDispatcherTest.cc
  179. * test/LpdMessageReceiverTest.cc
  180. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Put the portion of code to get interface addresses in
  182. SocketCore::bindAddress() into newly added getInterfaceAddress().
  183. * src/SocketCore.cc
  184. * src/SocketCore.h
  185. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Rewritten util::parseInt() and parseUInt()
  187. * src/util.cc
  188. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Fixed compile error with mingw32 cross compiler. Defined
  190. a2_sockopt_t as void* for the target systems other than mingw32.
  191. * src/SocketCore.cc
  192. * src/a2netcompat.h
  193. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Removed 'always true' condition
  195. * src/util.cc
  196. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Documented --bt-enable-lpd option in man page.
  198. * doc/aria2c.1.txt
  199. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Added Local Peer Discovery. It is disabled by default. Use
  201. --bt-enable-lpd to enable the function.
  202. * src/BtConstants.h
  203. * src/BtSetup.cc
  204. * src/LpdDispatchMessageCommand.cc
  205. * src/LpdDispatchMessageCommand.h
  206. * src/LpdMessage.h
  207. * src/LpdMessageDispatcher.cc
  208. * src/LpdMessageDispatcher.h
  209. * src/LpdMessageReceiver.cc
  210. * src/LpdMessageReceiver.h
  211. * src/LpdReceiveMessageCommand.cc
  212. * src/LpdReceiveMessageCommand.h
  213. * src/Makefile.am
  214. * src/OptionHandlerFactory.cc
  215. * src/Peer.cc
  216. * src/Peer.h
  217. * src/PeerInteractionCommand.cc
  218. * src/SocketCore.cc
  219. * src/SocketCore.h
  220. * src/prefs.cc
  221. * src/prefs.h
  222. * src/usage_text.h
  223. * src/util.cc
  224. * src/util.h
  225. * test/LpdMessageDispatcherTest.cc
  226. * test/LpdMessageReceiverTest.cc
  227. * test/Makefile.am
  228. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. User-defined custom request headers specified by --header option
  230. now override builtin headers if they have same name.
  231. * src/HttpRequest.cc
  232. * src/HttpRequest.h
  233. * test/HttpRequestTest.cc
  234. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Rewirtten util::isNumber()
  236. * src/util.cc
  237. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  239. because without it localized error messages are not printed
  240. correctly.
  241. * src/Platform.cc
  242. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Added unit tests for util::getContentDispositionFilename() from
  244. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  245. tests are passed.
  246. * src/util.cc
  247. * test/UtilTest.cc
  248. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  250. util.cc
  251. * src/Platform.cc
  252. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Support RFC2231 "Parameter Value Character Set and Language
  254. Information" in Content-Disposition header.
  255. * src/HttpResponse.cc
  256. * src/util.cc
  257. * src/util.h
  258. * test/UtilTest.cc
  259. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Print CXXFLAGS
  261. * configure.ac
  262. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Small optimization for A2_WOULDBLOCK(e)
  264. * src/SocketCore.cc
  265. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Removed test file
  267. * test/CookieStorageTest.cc
  268. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Check both EAGAIN and EWOULDBLOCK
  270. * src/SocketCore.cc
  271. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Removed ret == 0 checking for SSL_read(), SSL_write() and
  273. SSL_peek() because the checks are done in the caller. In
  274. SocketBuffer::send(), throw exception if nothing could be written
  275. and socket error was not EWOULDBLOCK
  276. * src/SocketBuffer.cc
  277. * src/SocketCore.cc
  278. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Fixed error code handling so that it can handle Winsock2 error
  280. code.
  281. * src/SocketCore.cc
  282. * src/SocketCore.h
  283. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Bump up version number to 1.9.0a
  285. * configure.ac
  286. * doc/aria2c.1.txt
  287. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Fixed the bug that aria2 doesn't handle return value if error
  289. occurred before download begins.
  290. * src/MultiUrlRequestInfo.cc
  291. * src/main.cc
  292. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  293. Removed SegmentManFactory class.
  294. * src/AbstractSegmentManFactory.h
  295. * src/DefaultSegmentManFactory.cc
  296. * src/DefaultSegmentManFactory.h
  297. * src/Makefile.am
  298. * src/RequestGroup.cc
  299. * src/RequestGroup.h
  300. * src/SegmentManFactory.h
  301. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  302. Destroyed digest context after getting calculated hash.
  303. * src/Piece.cc
  304. * src/Piece.h
  305. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Removed BitfieldManFactory class.
  307. * src/BitfieldManFactory.cc
  308. * src/BitfieldManFactory.h
  309. * src/DefaultPieceStorage.cc
  310. * src/Makefile.am
  311. * src/PeerSessionResource.cc
  312. * src/Piece.cc
  313. * src/main.cc
  314. * test/DefaultPieceStorageTest.cc
  315. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  316. Removed unused methods from BitfieldMan class. Moved
  317. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  318. class.
  319. * src/BitfieldMan.cc
  320. * src/BitfieldMan.h
  321. * src/BitfieldManFactory.cc
  322. * src/BitfieldManFactory.h
  323. * src/bitfield.h
  324. * src/main.cc
  325. * test/BitfieldManTest.cc
  326. * test/DefaultPieceStorageTest.cc
  327. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Moved getFirstNMissingIndex to bitfield.h and made it return the
  329. number of appended indexes.
  330. * src/BitfieldMan.cc
  331. * src/BitfieldMan.h
  332. * src/Piece.cc
  333. * src/Piece.h
  334. * src/bitfield.h
  335. * test/BitfieldManTest.cc
  336. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Added more tests.
  338. * test/BitfieldManTest.cc
  339. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  341. unused block indexes at once instead of calling
  342. getFirstMissingUnusedIndex() multiple times. Made use of it in
  343. Piece class and DefaultBtRequestFactory class via Piece class.
  344. * src/BitfieldMan.cc
  345. * src/BitfieldMan.h
  346. * src/DefaultBtRequestFactory.cc
  347. * src/Piece.cc
  348. * src/Piece.h
  349. * test/BitfieldManTest.cc
  350. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. Use std::make_pair(...)
  352. * src/DHTMessageTracker.cc
  353. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  354. Use std::make_pair(...)
  355. * src/bittorrent_helper.cc
  356. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. urlencode(removeFragment(...)) in parseUrl(...)
  358. * src/Request.cc
  359. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  360. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  361. * src/AbstractCommand.cc
  362. * src/AdaptiveURISelector.cc
  363. * src/BtPieceMessage.cc
  364. * src/BtPortMessage.cc
  365. * src/CreateRequestCommand.cc
  366. * src/DHTAbstractNodeLookupTask.cc
  367. * src/DHTBucket.cc
  368. * src/DHTGetPeersCommand.cc
  369. * src/DHTMessageDispatcherImpl.cc
  370. * src/DHTMessageFactoryImpl.cc
  371. * src/DHTMessageTracker.cc
  372. * src/DHTPeerAnnounceStorage.cc
  373. * src/DHTRoutingTable.cc
  374. * src/DHTSetup.cc
  375. * src/DefaultBtAnnounce.cc
  376. * src/DefaultBtInteractive.cc
  377. * src/DefaultBtMessageDispatcher.cc
  378. * src/DefaultBtMessageReceiver.cc
  379. * src/DefaultBtProgressInfoFile.cc
  380. * src/DefaultBtRequestFactory.cc
  381. * src/DefaultPeerStorage.cc
  382. * src/DefaultPieceStorage.cc
  383. * src/DownloadCommand.cc
  384. * src/DownloadEngine.cc
  385. * src/EpollEventPoll.cc
  386. * src/FileAllocationCommand.cc
  387. * src/FileEntry.cc
  388. * src/FtpNegotiationCommand.cc
  389. * src/HandshakeExtensionMessage.cc
  390. * src/HttpListenCommand.cc
  391. * src/HttpServer.cc
  392. * src/HttpSkipResponseCommand.cc
  393. * src/IteratableChunkChecksumValidator.cc
  394. * src/Logger.h
  395. * src/MSEHandshake.cc
  396. * src/MetalinkPostDownloadHandler.cc
  397. * src/MultiDiskAdaptor.cc
  398. * src/PeerAbstractCommand.cc
  399. * src/PeerConnection.cc
  400. * src/PeerListenCommand.cc
  401. * src/PeerReceiveHandshakeCommand.cc
  402. * src/RequestGroup.cc
  403. * src/RequestGroupMan.cc
  404. * src/SegmentMan.cc
  405. * src/SelectEventPoll.cc
  406. * src/ServerStat.cc
  407. * src/SimpleBtMessage.cc
  408. * src/SocketCore.cc
  409. * src/TrackerWatcherCommand.cc
  410. * src/UTMetadataDataExtensionMessage.cc
  411. * src/UTMetadataRequestFactory.cc
  412. * src/UTMetadataRequestTracker.cc
  413. * src/XmlRpcMethod.cc
  414. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  415. Changed log level from debug to info
  416. * src/BtDependency.cc
  417. * src/BtPostDownloadHandler.cc
  418. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Removed unused PeerSessionResource::_latency.
  420. * src/BtConstants.h
  421. * src/BtPieceMessage.cc
  422. * src/Peer.cc
  423. * src/Peer.h
  424. * src/PeerSessionResource.cc
  425. * src/PeerSessionResource.h
  426. * test/PeerSessionResourceTest.cc
  427. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  428. Fixed the bug that --file-allocation=falloc doesn't work with
  429. single file download.
  430. * src/AbstractSingleDiskAdaptor.cc
  431. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Release 1.8.2
  433. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Added Portuguese translation. Updated Ukrainian and Spanish
  435. translation. Thanks to all translators.
  436. * po/LINGUAS
  437. * po/es.po
  438. * po/pt.po
  439. * po/uk.po
  440. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  441. Remove fragment from redirected URI.
  442. * src/Request.cc
  443. * test/RequestTest.cc
  444. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Updated po templates.
  446. * po/aria2.pot
  447. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Drop legacy ifdef for ares support and code cleanup.
  449. * src/AsyncNameResolver.cc
  450. * src/AsyncNameResolver.h
  451. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  452. Call ares_library_init and ares_library_cleanup if they are
  453. available. Some code cleanups.
  454. * src/Platform.cc
  455. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Call ares_process_fd() each time after epoll to handle timeout.
  457. * src/EpollEventPoll.cc
  458. * src/EpollEventPoll.h
  459. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Suppressed type-cast compiler warning
  461. * src/CookieStorage.cc
  462. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  463. Fixed compile error on Mac OS X.
  464. * src/CookieStorage.h
  465. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Removed cookietest.txt from Makefile.am
  467. * test/Makefile.am
  468. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Updated version number in man page.
  470. * doc/aria2c.1.txt
  471. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  472. Rewritten help message for --allow-overwrite option.
  473. * doc/aria2c.1.txt
  474. * src/usage_text.h
  475. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  476. Added bittorrent key to the response of tellStatus XML-RPC method.
  477. The associated value of the key is a struct and contains data
  478. retrieved from .torrent file, such as name, announce-list,
  479. comment, etc.
  480. * doc/aria2c.1.txt
  481. * src/XmlRpcMethodImpl.cc
  482. * src/XmlRpcMethodImpl.h
  483. * test/XmlRpcMethodTest.cc
  484. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  485. Removed parse(std::istream&) and parse(const std::string&) from
  486. CookieParser.
  487. * src/CookieParser.cc
  488. * src/CookieParser.h
  489. * test/CookieParserTest.cc
  490. * test/cookietest.txt: Removed
  491. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Fixed the bug that cookie for domain a.b.c is not sent to the host
  493. a.b.c if no other cookies are stored. Fixed the bug that
  494. Cookie::markOriginServerOnly() is not called when cookies are
  495. loaded from file/sqlite3 database.
  496. * src/Cookie.h
  497. * src/CookieStorage.cc
  498. * src/NsCookieParser.cc
  499. * src/Sqlite3MozCookieParser.cc
  500. * test/CookieStorageTest.cc
  501. * test/NsCookieParserTest.cc
  502. * test/Sqlite3MozCookieParserTest.cc
  503. * test/cookies.sqlite
  504. * test/nscookietest.txt
  505. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  507. both _pieceStorage and _segmentMan are initialized or they are
  508. not.
  509. * src/RequestGroup.cc
  510. * src/RequestGroup.h
  511. * test/BtDependencyTest.cc
  512. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Bump up version number to 1.8.2
  514. * configure.ac
  515. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  516. Replaced "." with A2STR::DOT_C
  517. * src/AbstractCommand.cc
  518. * src/Cookie.cc
  519. * src/DownloadContext.cc
  520. * src/FtpConnection.cc
  521. * src/RequestGroup.cc
  522. * src/util.cc
  523. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Replaced isNumberAndDotsNotation() with isNumericHost().
  525. isNumericHost() can handle IPv6 address.
  526. * src/Cookie.cc
  527. * src/CookieStorage.cc
  528. * src/util.cc
  529. * src/util.h
  530. * test/CookieTest.cc
  531. * test/UtilTest.cc
  532. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Included A2STR.h
  534. * src/CookieStorage.cc
  535. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Rewritten Cookie storage.
  537. * src/Cookie.cc
  538. * src/Cookie.h
  539. * src/CookieParser.cc
  540. * src/CookieStorage.cc
  541. * src/CookieStorage.h
  542. * src/a2functional.h
  543. * test/CookieParserTest.cc
  544. * test/CookieStorageTest.cc
  545. * test/CookieTest.cc
  546. * test/HttpResponseTest.cc
  547. * test/TestUtil.h
  548. * test/a2functionalTest.cc
  549. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Handle redirected URI which is not properly percent encoded.
  551. * src/Request.cc
  552. * test/RequestTest.cc
  553. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  555. not found' in the N times(N is where --max-file-not-found=N, N>0)
  556. in a row without single '200 OK' response.
  557. * src/RequestGroup.cc.
  558. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  560. readout by 80 characters in mingw32 build. Catch exception in
  561. DHTMessageReceiver::receiveMessage().
  562. * src/AbstractDiskWriter.cc
  563. * src/ConsoleStatCalc.cc
  564. * src/DHTMessageReceiver.cc
  565. * src/File.cc
  566. * src/RequestGroupMan.cc
  567. * src/a2io.h
  568. * test/FileTest.cc
  569. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Fixed compile error with intel compiler
  571. * src/XmlRpcMethodImpl.cc
  572. * src/XmlRpcMethodImpl.h
  573. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. Release 1.8.1
  575. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Updated Swedish, Russian and Italian translations. Thanks to all
  577. translators.
  578. * po/it.po
  579. * po/ru.po
  580. * po/sv.po
  581. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Fixed broken OptionParser::findByName().
  583. * src/OptionParser.cc
  584. * test/OptionParserTest.cc
  585. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Fixed test error without BitTorrent support.
  587. * test/XmlRpcMethodTest.cc
  588. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Fixed compile error without GNUTLS/OpenSSL.
  590. * src/util.cc
  591. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Changed compression level to Z_DEFAULT_COMPRESSION.
  593. * src/GZipEncoder.cc
  594. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Added missing command line options: --http-no-cache,
  596. --bt-save-metadata and --bt-metadata-only.
  597. * doc/xmlrpc/aria2rpc
  598. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  600. client accepts gzip content encoding.
  601. * src/A2STR.cc
  602. * src/A2STR.h
  603. * src/GZipEncoder.cc
  604. * src/GZipEncoder.h
  605. * src/HttpHeader.cc
  606. * src/HttpHeader.h
  607. * src/HttpServer.cc
  608. * src/HttpServer.h
  609. * src/HttpServerBodyCommand.cc
  610. * src/HttpServerCommand.cc
  611. * src/Makefile.am
  612. * src/XmlRpcResponse.cc
  613. * src/XmlRpcResponse.h
  614. * test/GZipEncoderTest.cc
  615. * test/Makefile.am
  616. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Added XML-RPC client sample code in Python.
  618. * doc/aria2c.1.txt
  619. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Updated po templates.
  621. * po/aria2.pot
  622. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Bump up version number to 1.8.1
  624. * configure.ac
  625. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Added version number to man page. Updated copyright year in man
  627. page.
  628. * doc/aria2c.1.txt
  629. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Rewritten toTagString
  631. * src/NameMatchOptionHandler.cc
  632. * test/OptionHandlerTest.cc
  633. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Added dir and files key to the response struct of aria2.tellStatus
  635. XML-RPC method. The value associated with files key is the list
  636. of files. Its element is the same struct used in aria2.getFiles
  637. XML-RPC method. Added uris key to the response struct of
  638. aria2.getFiles XML-RPC method. The value associated with uris key
  639. is the list of URIs. Its element is the same struct used in
  640. aria2.getUris XML-RPC method.
  641. * doc/aria2c.1.txt
  642. * src/XmlRpcMethodImpl.cc
  643. * test/XmlRpcMethodTest.cc
  644. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  645. Added aria2.getSessionInfo XML-RPC method. This method returns a
  646. struct containing Session ID, which is generated each time when
  647. aria2 is invoked.
  648. * doc/aria2c.1.txt
  649. * doc/xmlrpc/aria2rpc
  650. * src/DownloadEngine.cc
  651. * src/DownloadEngine.h
  652. * src/XmlRpcMethodFactory.cc
  653. * src/XmlRpcMethodImpl.cc
  654. * src/XmlRpcMethodImpl.h
  655. * test/XmlRpcMethodTest.cc
  656. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Moved generateRandomKey() from bittorrent_helper to util.
  658. * src/DHTBucket.cc
  659. * src/DHTNode.cc
  660. * src/bittorrent_helper.cc
  661. * src/bittorrent_helper.h
  662. * src/util.cc
  663. * src/util.h
  664. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Updated doc about GID.
  666. * doc/aria2c.1.txt
  667. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  669. accepts a negative integer. 'offset' == -1 points last download
  670. in the waiting queue and 'offset' == -2 points the download before
  671. the last download, and so on. The downloads in the response are in
  672. reversed order.
  673. * doc/aria2c.1.txt
  674. * src/XmlRpcMethodImpl.cc
  675. * src/XmlRpcMethodImpl.h
  676. * test/XmlRpcMethodTest.cc
  677. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Added --human-readable option. This option, when true is given,
  679. prints sizes and speed in human readable format(e.g., 1.2Ki,
  680. 3.4Mi) in the console readout. The default value is true and it
  681. looks exactly the same as aria2-1.8.0. So the 'new feature'
  682. appears when false is given. In this case, sizes and speed are
  683. printed without in bytes. No Ki, Mi units conversion is used.
  684. This may be useful for a program to parse the output of aria2.
  685. * doc/aria2c.1.txt
  686. * src/ConsoleStatCalc.cc
  687. * src/ConsoleStatCalc.h
  688. * src/OptionHandlerFactory.cc
  689. * src/main.cc
  690. * src/prefs.cc
  691. * src/prefs.h
  692. * src/usage_text.h
  693. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  695. option accepts empty string "". When "" is given, it erases
  696. previously defined proxy.
  697. * doc/aria2c.1.txt
  698. * src/OptionHandlerImpl.h
  699. * src/usage_text.h
  700. * test/OptionHandlerTest.cc
  701. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  702. Code cleanup for proxy URI handling.
  703. * src/AbstractCommand.cc
  704. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  705. Added --bt-metadata-only option. If true is given to this option,
  706. aria2 downloads metadata only. The file(s) described in metadata
  707. will not be downloaded. This option has effect only when
  708. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  709. * doc/aria2c.1.txt
  710. * src/OptionHandlerFactory.cc
  711. * src/UTMetadataPostDownloadHandler.cc
  712. * src/download_helper.cc
  713. * src/prefs.cc
  714. * src/prefs.h
  715. * src/usage_text.h
  716. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  717. Fixed memory leak. Commands stored in std::deque<Command*> are not
  718. deleted when exception is thrown. Make sure that when passing
  719. std::deque<Command*> to function to store Commands, handle
  720. exception and delete these Commands.
  721. * src/AbstractCommand.cc
  722. * src/CheckIntegrityCommand.cc
  723. * src/FileAllocationCommand.cc
  724. * src/RequestGroup.cc
  725. * src/TrackerWatcherCommand.cc
  726. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  728. * src/A2STR.cc
  729. * src/A2STR.h
  730. * src/FtpNegotiationCommand.cc
  731. * src/HttpResponseCommand.cc
  732. * src/util.cc
  733. * src/util.h
  734. * test/UtilTest.cc
  735. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Treat --dir="" as --dir="."
  737. * src/FtpNegotiationCommand.cc
  738. * src/HttpResponseCommand.cc
  739. * src/Metalink2RequestGroup.cc
  740. * src/UTMetadataPostDownloadHandler.cc
  741. * src/bittorrent_helper.cc
  742. * src/download_helper.cc
  743. * src/util.cc
  744. * src/util.h
  745. * test/UtilTest.cc
  746. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Code clean up.
  748. * src/main.cc
  749. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  750. Reset GID to 1 when they reach maximum value. Rewritten
  751. CUIDCounter::newID()
  752. * src/CUIDCounter.h
  753. * src/RequestGroup.cc
  754. * src/RequestGroup.h
  755. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Documented --http-no-cache option in man page.
  757. * doc/aria2c.1.txt
  758. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  759. Added --http-no-cache option. When true is given, aria2 sends
  760. Cache-Control: no-cache and Pragma: no-cache header to avoid
  761. cached content. If false is given , these headers are not sent
  762. and you can add Cache-Control header with a directive you like
  763. using --header option.
  764. * src/HttpRequest.cc
  765. * src/HttpRequest.h
  766. * src/HttpRequestCommand.cc
  767. * src/OptionHandlerFactory.cc
  768. * src/download_helper.cc
  769. * src/prefs.cc
  770. * src/prefs.h
  771. * src/usage_text.h
  772. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Removed Logger from OptionParser. When OptionParser is used to
  774. parse options at bootstrap, LogFactory is not configured yet
  775. properly. When LogFactory is used in OptionParser, it initializes
  776. itself to return a logger which has no ability to write log to the
  777. disk.
  778. * src/OptionParser.cc
  779. * src/OptionParser.h
  780. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Added following sentance to the help message of --out option:
  782. --out option is ignored when -Z is used.
  783. * doc/aria2c.1.txt
  784. * src/usage_text.h
  785. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  786. Added --bt-save-metadata option to -i list options.
  787. * doc/aria2c.1.txt
  788. * src/download_helper.cc
  789. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  791. additional libraries.
  792. * src/MultiUrlRequestInfo.cc
  793. * src/NameResolver.cc
  794. * src/SelectEventPoll.cc
  795. * src/SelectEventPoll.h
  796. * src/SocketCore.cc
  797. * src/SocketCore.h
  798. * src/a2netcompat.h
  799. * src/daemon.cc
  800. * src/main.cc
  801. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Fixed typo.
  803. * src/DHTMessageReceiver.cc
  804. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Fixed the bug that causes segmentation fault if unknown option is
  806. put in aria2.conf file. BUG#2928303
  807. * src/OptionParser.cc
  808. * src/OptionParser.h
  809. * src/option_processing.cc
  810. * test/OptionParserTest.cc
  811. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. Ignore port message with port=0.
  813. * src/BtPortMessage.cc
  814. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Run autoupdate
  816. * configure.ac
  817. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Updated autoconf/automake auxiliary files.
  819. * INSTALL
  820. * config.guess
  821. * config.sub
  822. * depcomp
  823. * install-sh
  824. * m4/intldir.m4
  825. * missing
  826. * mkinstalldirs
  827. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Removed unused function.
  829. * src/SharedHandle.h
  830. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Find pooled socket using all cached addresses.
  832. * src/DNSCache.h
  833. * src/DownloadEngine.cc
  834. * src/DownloadEngine.h
  835. * src/InitiateConnectionCommand.cc
  836. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Updated copyright year.
  838. * src/version_usage.cc
  839. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Pool connection if _contentEncodingDecoder is used and server
  841. supports persistent connection.
  842. * src/HttpDownloadCommand.cc
  843. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Updated doc.
  845. * src/DownloadCommand.cc
  846. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Untabify. Fixed one line in copyright which is longer than 80
  848. columns.
  849. * src
  850. * test
  851. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Release 1.8.0
  853. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  854. Updated po templates.
  855. * po/aria2.pot
  856. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. Documented --bt-save-metadata option in man page.
  858. * doc/aria2c.1.txt
  859. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Fixed usage of --bt-save-metadata option.
  861. * src/usage_text.h
  862. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  863. Updated po templates.
  864. * po/aria2.pot
  865. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  867. causes name resolution error when none of network interface has
  868. IPv4 address.
  869. * src/main.cc
  870. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  871. Bump up version number to 1.8.0.
  872. * configure.ac
  873. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Use info hash as a filename when saving BitTorrent metadata.
  875. * src/UTMetadataPostDownloadHandler.cc
  876. * test/UTMetadataPostDownloadHandlerTest.cc
  877. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  878. Documented system.multicall XML-RPC method in man page.
  879. * doc/aria2c.1.txt
  880. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Added signal handler for SIGHUP to save .aria2 file when terminal
  882. is closed. The handler is the same one for SIGINT and SIGTERM.
  883. * src/MultiUrlRequestInfo.cc
  884. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  885. Defined method name in XmlRpcMethod subclasses.
  886. * src/XmlRpcMethodFactory.cc
  887. * src/XmlRpcMethodImpl.cc
  888. * src/XmlRpcMethodImpl.h
  889. * test/XmlRpcMethodTest.cc
  890. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Added system.multicall XML-RPC method.
  892. * src/XmlRpcMethod.cc
  893. * src/XmlRpcMethod.h
  894. * src/XmlRpcMethodFactory.cc
  895. * src/XmlRpcMethodImpl.cc
  896. * src/XmlRpcMethodImpl.h
  897. * test/XmlRpcMethodTest.cc
  898. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Check structure depth when decoding.
  900. * src/bencode.cc
  901. * src/bencode.h
  902. * test/BencodeTest.cc
  903. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Documented tellStopped XML-RPC method in man page.
  905. * doc/aria2c.1.txt
  906. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  907. Added tellStopped XML-RPC method to aria2rpc.
  908. * doc/xmlrpc/aria2rpc
  909. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Added tellStopped XML-RPC method. This method returns stopped
  911. download in the specified range. It takes same parameters with
  912. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  913. * src/XmlRpcMethodFactory.cc
  914. * src/XmlRpcMethodImpl.cc
  915. * src/XmlRpcMethodImpl.h
  916. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  918. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  919. when conducting unit tests because they fail if networking
  920. interface is not configured with IPv4 address.
  921. * src/NameResolver.cc
  922. * src/SocketCore.cc
  923. * src/SocketCore.h
  924. * src/a2netcompat.h
  925. * test/AllTest.cc
  926. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  927. Fixed unit test error
  928. * test/UTMetadataPostDownloadHandlerTest.cc
  929. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  930. Defined static string constants for efficiency.
  931. * src/XmlRpcMethodImpl.cc
  932. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Added --bt-save-metadata option. When true is given, it saves
  934. metadata as .torrent file. This option has effect only when
  935. BitTorrent Magnet URI is used. The filename is name in metadata
  936. with suffix .torrent. The directory to be saved is the same
  937. directory where download file is saved. If the same file already
  938. exists, metdata is not saved.
  939. * src/OptionHandlerFactory.cc
  940. * src/UTMetadataPostDownloadHandler.cc
  941. * src/UTMetadataPostDownloadHandler.h
  942. * src/message.h
  943. * src/prefs.cc
  944. * src/prefs.h
  945. * src/usage_text.h
  946. * test/UTMetadataDataExtensionMessageTest.cc
  947. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Added util::saveAs() function. Use it in Signature::save().
  949. * src/Signature.cc
  950. * src/util.cc
  951. * src/util.h
  952. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Upcase info hash in Magnet URI.
  954. * doc/aria2c.1.txt
  955. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Refactored RequestGroupMan::changeReservedGroupPosition()
  957. * src/RequestGroupMan.cc
  958. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Updated the description for aria2.addTorrent XML-RPC method.
  960. * doc/aria2c.1.txt
  961. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  962. Added changePosition to aria2rpc.
  963. * doc/xmlrpc/aria2rpc
  964. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Documented changePosition XML-RPC method in man page.
  966. * doc/aria2c.1.txt
  967. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  969. pos and how. This method changes the position of download denoted
  970. by gid. If how is POS_SET, it moves the download to a position
  971. relative to the beginning of the queue. If how is POS_CUR, it
  972. moves the download to a position relative to the current
  973. position. If how is POS_END, it moves the download to a position
  974. relative to the end of the queue. If the destination position is
  975. less than 0 or beyond the end of the queue, it moves the download
  976. to the beginning or the end of the queue respectively. Returns
  977. the destination position.
  978. * src/RequestGroupMan.cc
  979. * src/RequestGroupMan.h
  980. * src/XmlRpcMethodFactory.cc
  981. * src/XmlRpcMethodImpl.cc
  982. * src/XmlRpcMethodImpl.h
  983. * test/RequestGroupManTest.cc
  984. * test/XmlRpcMethodTest.cc
  985. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  986. Added getOption and getGlobalOption to aria2rpc.
  987. * doc/xmlrpc/aria2rpc
  988. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  989. Documented getOption and getGlobalOption XML-RPC method in man
  990. page
  991. * doc/aria2c.1.txt
  992. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Added getOption and getGlobalOption XML-RPC method. getOption
  994. takes GID as a parameter and returns its options as struct.
  995. getGlobalOption takes no parameter and returns global
  996. options. Because global option is used as a template for the
  997. option of newly added downloads, it includes options returned by
  998. getOption.
  999. * src/Option.h
  1000. * src/XmlRpcMethodFactory.cc
  1001. * src/XmlRpcMethodImpl.cc
  1002. * src/XmlRpcMethodImpl.h
  1003. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Sort _optionHandlers in OptionParser by name in ascending order.
  1005. Use vector instead of deque for efficiency.
  1006. * src/OptionHandler.h
  1007. * src/OptionHandlerFactory.h
  1008. * src/OptionParser.cc
  1009. * src/OptionParser.h
  1010. * src/version_usage.cc
  1011. * test/OptionParserTest.cc
  1012. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Code cleanup
  1014. * src/XmlRpcMethod.cc
  1015. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Documented about followedBy and belongsTo in man page.
  1017. * doc/aria2c.1.txt
  1018. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Added following 2 keys, followedBy and belongsTo, to the response
  1020. of tellStatus.
  1021. followedBy: List of GIDs which are generated by the consequence of
  1022. this download. For example, when aria2 downloaded Metalink file,
  1023. it generates downloads described in it(see *--follow-metalink*
  1024. option). This value is useful to track these auto generated
  1025. downloads. If there is no such downloads, this key will not be
  1026. included in the response.
  1027. belongsTo: GID of a parent download. Some downloads are a part of
  1028. another download. For example, if a file in Metalink has
  1029. BitTorrent resource, the download of .torrent is a part of that
  1030. file. If this download has no parent, this key will not be
  1031. included in the response.
  1032. * src/BtPostDownloadHandler.cc
  1033. * src/DownloadResult.h
  1034. * src/Metalink2RequestGroup.cc
  1035. * src/MetalinkPostDownloadHandler.cc
  1036. * src/RequestGroup.cc
  1037. * src/RequestGroup.h
  1038. * src/UTMetadataPostDownloadHandler.cc
  1039. * src/XmlRpcMethodImpl.cc
  1040. * src/XmlRpcMethodImpl.h
  1041. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1042. Assigned BObject in BDE() to avoid segmentation fault when calling
  1043. methods of BDE::none().
  1044. * src/BDE.cc
  1045. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Show info hash in Magnet URI in upper case letters in -S output.
  1047. * src/bittorrent_helper.cc
  1048. * test/BittorrentHelperTest.cc
  1049. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Removed old useless comment
  1051. * src/MultiUrlRequestInfo.cc
  1052. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1054. not properly used in configure script and failed to detect gnutls.
  1055. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1056. and the initialization of pkg-config is done in first occurrence
  1057. of PKG_CHECK_MODULES which is not executed because it is inside of
  1058. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1059. * configure.ac
  1060. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Release 1.7.2
  1062. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1063. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1064. true even if all downloads haven't finished, especially when
  1065. PostDownloadHandler is involved. Changed the condition so that it
  1066. only returns true if both _requestGroups and _reservedGroups are
  1067. empty.
  1068. * src/RequestGroupMan.cc
  1069. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1070. Log listening port for BitTorrent/DHT in notice level.
  1071. * src/DHTConnectionImpl.cc
  1072. * src/PeerListenCommand.cc
  1073. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Updated po templates.
  1075. * po/aria2.pot
  1076. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Bump up version number to 1.7.2
  1078. * configure.ac
  1079. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Changed default value of --enable-dht from 'false' to 'true'.
  1081. * doc/aria2c.1.txt
  1082. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1083. Enabled DHT by default because of Magnet URI support. To disable
  1084. DHT, use --enable-dht=false
  1085. * src/OptionHandlerFactory.cc
  1086. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. Print Magnet URI in -S output.
  1088. * src/AnnounceList.cc
  1089. * src/bittorrent_helper.cc
  1090. * src/bittorrent_helper.h
  1091. * test/BittorrentHelperTest.cc
  1092. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Added --bt-prioritize-piece option to aria2rpc.
  1094. * doc/xmlrpc/aria2rpc
  1095. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Refer Magnet URI in --help. Made some cosmetic changes.
  1097. * src/version_usage.cc
  1098. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Updated -T and -M option.
  1100. * doc/aria2c.1.txt
  1101. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1102. Fixed typo
  1103. * doc/aria2c.1.txt
  1104. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Fixed the bug that line separator is missing in horizontal bar.
  1106. * doc/xmlrpc/aria2mon
  1107. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Updated usage text for --metalink-file option.
  1109. * src/usage_text.h
  1110. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. If '-' is given as an argument to --metalink-file option, aria2
  1112. reads Metalink file from stdin.
  1113. * src/OptionHandlerFactory.cc
  1114. * src/OptionHandlerImpl.h
  1115. * src/a2io.h
  1116. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Fixed the bug that aria2 listens wrong port if --interface option
  1118. is used.
  1119. * src/SocketCore.cc
  1120. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1121. Fixed the bug that query parameter in magnet URI is not decoded.
  1122. * src/magnet.cc
  1123. * test/MagnetTest.cc
  1124. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Specified defaultSize as an argument for easy testing.
  1126. * src/util.cc
  1127. * src/util.h
  1128. * test/UtilTest.cc
  1129. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Release 1.7.1
  1131. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1132. Bump up version number to 1.7.1
  1133. * configure.ac
  1134. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1135. Fixed the bug --bt-prioritize-piece=tail is not working.
  1136. * src/util.cc
  1137. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1138. Release 1.7.0
  1139. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. Updated po templates.
  1141. * po/aria2.pot
  1142. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1143. Updated help message for --bt-prioritize-piece. Some cosmetic
  1144. changes.
  1145. * doc/aria2c.1.txt
  1146. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1148. * src/usage_text.h
  1149. * src/util.cc
  1150. * test/UtilTest.cc
  1151. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Updated Russian, Ukrainian, German and French translations.
  1153. Thanks to all translators involved.
  1154. * po/de.po
  1155. * po/fr.po
  1156. * po/ru.po
  1157. * po/uk.po
  1158. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Mentioned about pkg-config
  1160. * README
  1161. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Fixed typo. Referred --index-out option in BitTorrent notes.
  1163. * README
  1164. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1166. bind, try all addresses until success
  1167. * src/SocketCore.cc
  1168. * src/SocketCore.h
  1169. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Updated po templates.
  1171. * po/aria2.pot
  1172. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Bump up version number to 1.7.0
  1174. * configure.ac
  1175. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1177. * src/DefaultPieceStorage.cc
  1178. * src/DefaultPieceStorage.h
  1179. * src/PieceStorage.h
  1180. * src/UnknownLengthPieceStorage.cc
  1181. * src/UnknownLengthPieceStorage.h
  1182. * test/MockPieceStorage.h
  1183. * test/ProtocolDetectorTest.cc
  1184. * test/XmlRpcMethodTest.cc
  1185. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Documented in man page that if getifaddrs() is missing,
  1187. --interface option doesn't accept interface name.
  1188. * doc/aria2c.1.txt
  1189. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1191. * src/DefaultBtAnnounce.cc
  1192. * src/DefaultBtAnnounce.h
  1193. * test/DefaultBtAnnounceTest.cc
  1194. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1195. Fixed the bug that connection is always dropped if handshake
  1196. message in extension protocol don't have metadata_size.
  1197. src/HandshakeExtensionMessage.cc
  1198. * src/HandshakeExtensionMessage.cc
  1199. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1201. text saying DHT is recommended when Magnet URI is provided.
  1202. * doc/aria2c.1.txt
  1203. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1205. URI is supplied. Notify user that they should consider enabling
  1206. DHT if they use Magnet URI.
  1207. * src/RequestGroup.cc
  1208. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Added --disable-ipv6 option to disable IPv6.
  1210. * doc/aria2c.1.txt
  1211. * src/InitiateConnectionCommand.cc
  1212. * src/NameResolver.cc
  1213. * src/NameResolver.h
  1214. * src/OptionHandlerFactory.cc
  1215. * src/main.cc
  1216. * src/prefs.cc
  1217. * src/prefs.h
  1218. * src/usage_text.h
  1219. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1220. Updated usage text for --bt-prioritize-piece option.
  1221. * doc/aria2c.1.txt
  1222. * src/usage_text.h
  1223. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1225. given and PACKAGE is missing in the system or FEATURE cannot be
  1226. enabled, print error message and stop the script.
  1227. * configure.ac
  1228. * m4/aria2_arg.m4
  1229. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Halt metadata download immediately when metadata download is done.
  1231. Don't wait unresponsive tracker.
  1232. * src/ByteArrayDiskWriter.h
  1233. * src/DefaultBtInteractive.cc
  1234. * src/DefaultExtensionMessageFactory.cc
  1235. * src/DefaultExtensionMessageFactory.h
  1236. * src/PeerInteractionCommand.cc
  1237. * src/UTMetadataDataExtensionMessage.cc
  1238. * src/UTMetadataDataExtensionMessage.h
  1239. * src/UTMetadataRequestExtensionMessage.cc
  1240. * test/UTMetadataDataExtensionMessageTest.cc
  1241. * test/UTMetadataRequestExtensionMessageTest.cc
  1242. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Documented --interface option in man page.
  1244. * doc/aria2c.1.txt
  1245. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1246. Try resolved address in the order received from the resolver.
  1247. * src/DNSCache.h
  1248. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Added debug logs.
  1250. * src/SocketCore.cc
  1251. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Fixed type of tail to uint64_t
  1253. * src/util.cc
  1254. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Added --interface option. This feature binds sockets to given
  1256. interface. You can specify interface name, IP address and
  1257. hostname.
  1258. * configure.ac
  1259. * src/OptionHandlerFactory.cc
  1260. * src/SocketCore.cc
  1261. * src/SocketCore.h
  1262. * src/main.cc
  1263. * src/message.h
  1264. * src/prefs.cc
  1265. * src/prefs.h
  1266. * src/usage_text.h
  1267. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Updated man page for bt-prioritize-piece option in -i list.
  1269. * doc/aria2c.1.txt
  1270. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Added bt-prioritize-piece option to -i list.
  1272. * src/download_helper.cc
  1273. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Removed --http-auth-scheme option from man page.
  1275. * doc/aria2c.1.txt
  1276. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1277. Removed --http-auth-scheme option since it doesn't do nothing.
  1278. * src/OptionHandlerFactory.cc
  1279. * src/prefs.cc
  1280. * src/prefs.h
  1281. * src/usage_text.h
  1282. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1283. Adjusted the number of peer info which get_peers reply message can
  1284. carry.
  1285. * src/DHTGetPeersReplyMessage.cc
  1286. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1287. Added extension_message_test_helper.h to aria2c_SOURCES.
  1288. * test/Makefile.am
  1289. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Documented --bt-prioritize-piece option in man page.
  1291. * doc/aria2c.1.txt
  1292. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Added option --bt-prioritize-piece. This option instruct aria2 to
  1294. try to download first and last pieces of each file first. The
  1295. argument can contain 2 keywords:head and tail. To include both
  1296. keywords, they must be separated by comma. These keywords can take
  1297. one parameter, SIZE. For example , if head=SIZE is specified,
  1298. pieces in the range of first SIZE bytes of each file get higher
  1299. priority. tail=SIZE means the range of last SIZE bytes of each
  1300. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1301. * src/DefaultPieceStorage.h
  1302. * src/Makefile.am
  1303. * src/OptionHandlerFactory.cc
  1304. * src/OptionHandlerImpl.h
  1305. * src/PriorityPieceSelector.cc
  1306. * src/PriorityPieceSelector.h
  1307. * src/RequestGroup.cc
  1308. * src/prefs.cc
  1309. * src/prefs.h
  1310. * src/usage_text.h
  1311. * src/util.cc
  1312. * src/util.h
  1313. * test/Makefile.am
  1314. * test/MockPieceSelector.h
  1315. * test/PriorityPieceSelectorTest.cc
  1316. * test/UtilTest.cc
  1317. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Fixed typo
  1319. * src/HttpRequest.h
  1320. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. In Magnet URI with tr parameter, put each announce URI in separate
  1322. tier.
  1323. * src/bittorrent_helper.cc
  1324. * test/BittorrentHelperTest.cc
  1325. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1326. Renamed ExtensionMessage::getBencodedData() as
  1327. ExtensionMessage::getPayload()
  1328. * src/BtExtendedMessage.cc
  1329. * src/ExtensionMessage.h
  1330. * src/HandshakeExtensionMessage.cc
  1331. * src/HandshakeExtensionMessage.h
  1332. * src/UTMetadataDataExtensionMessage.cc
  1333. * src/UTMetadataDataExtensionMessage.h
  1334. * src/UTMetadataRejectExtensionMessage.cc
  1335. * src/UTMetadataRejectExtensionMessage.h
  1336. * src/UTMetadataRequestExtensionMessage.cc
  1337. * src/UTMetadataRequestExtensionMessage.h
  1338. * src/UTPexExtensionMessage.cc
  1339. * src/UTPexExtensionMessage.h
  1340. * test/HandshakeExtensionMessageTest.cc
  1341. * test/MockExtensionMessage.h
  1342. * test/UTMetadataDataExtensionMessageTest.cc
  1343. * test/UTMetadataRejectExtensionMessageTest.cc
  1344. * test/UTMetadataRequestExtensionMessageTest.cc
  1345. * test/UTPexExtensionMessageTest.cc
  1346. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Updated man page for BitTorrent Magnet URI.
  1348. * doc/aria2c.1.txt
  1349. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Call DownloadContext::setOwnerRequestGroup() in
  1351. RequestGroup::setDownloadContext().
  1352. * src/BtDependency.cc
  1353. * src/RequestGroup.cc
  1354. * src/RequestGroup.h
  1355. * src/download_helper.cc
  1356. * test/DefaultBtMessageDispatcherTest.cc
  1357. * test/DefaultExtensionMessageFactoryTest.cc
  1358. * test/HandshakeExtensionMessageTest.cc
  1359. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1361. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1362. from metadata, use new metadata2Torrent() function.
  1363. * src/BtDependency.cc
  1364. * src/UTMetadataPostDownloadHandler.cc
  1365. * src/bittorrent_helper.cc
  1366. * src/bittorrent_helper.h
  1367. * test/BittorrentHelperTest.cc
  1368. * test/BtDependencyTest.cc
  1369. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. Use createRequestGroupForUri to create the download for torrent
  1371. file.
  1372. * src/Metalink2RequestGroup.cc
  1373. * test/Metalink2RequestGroupTest.cc
  1374. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Fixed typo
  1376. * src/DownloadContext.h
  1377. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Use createRequestGroupForBitTorrent()
  1379. * src/BtPostDownloadHandler.cc
  1380. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Added remove().
  1382. * src/Option.cc
  1383. * src/Option.h
  1384. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Removed options which is only valid for URIs specified in
  1386. command-line. If they are left, because op is used as a template
  1387. for new RequestGroup(such as created in XML-RPC command,
  1388. BtPostDownloadHandler etc), they causes unintentional effect.
  1389. * src/main.cc
  1390. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1391. Refer to option value of PREF_OUT only in download_helper.
  1392. * src/FtpNegotiationCommand.cc
  1393. * src/HttpResponseCommand.cc
  1394. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1396. * src/download_helper.cc
  1397. * src/download_helper.h
  1398. * src/XmlRpcMethodImpl.cc
  1399. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1400. Updated man page for changeOption XML-RPC method.
  1401. * doc/aria2c.1.txt
  1402. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1403. Added --bt-max-peers option to changeOption XML-RPC method.
  1404. * src/XmlRpcMethod.cc
  1405. * src/XmlRpcMethodImpl.cc
  1406. * test/XmlRpcMethodTest.cc
  1407. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1409. * test/XmlRpcMethodTest.cc
  1410. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Removed redundant DownloadContext::hasAttribute(...) calls.
  1412. * src/ConsoleStatCalc.cc
  1413. * src/RequestGroup.cc
  1414. * src/XmlRpcMethodImpl.cc
  1415. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Changed the number of tracker request attempt from 5 to 2.
  1417. * src/TrackerWatcherCommand.cc
  1418. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1419. Use host and protocol in original URI, because URI selector
  1420. selects URI based on original URI, not redirected one.
  1421. * src/Request.cc
  1422. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Fixed the bug which causes segmentation fault with tellWaiting
  1424. XML-RPC method when BitTorrent download is waiting. The key of
  1425. BtRegistry is changed from info hash to GID, because it is
  1426. registered per RequestGroup, not info hash.
  1427. * src/BtRegistry.cc
  1428. * src/BtRegistry.h
  1429. * src/BtSetup.cc
  1430. * src/ConsoleStatCalc.cc
  1431. * src/InitiatorMSEHandshakeCommand.cc
  1432. * src/PeerInitiateConnectionCommand.cc
  1433. * src/PeerInteractionCommand.cc
  1434. * src/PeerInteractionCommand.h
  1435. * src/PeerReceiveHandshakeCommand.cc
  1436. * src/RequestGroup.cc
  1437. * src/XmlRpcMethodImpl.cc
  1438. * test/BtRegistryTest.cc
  1439. * test/XmlRpcMethodTest.cc
  1440. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Updated man page for changeOption XML-RPC method.
  1442. * doc/aria2c.1.txt
  1443. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1445. method.
  1446. * src/XmlRpcMethod.cc
  1447. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. Documented about BitTorrent Magnet URI in man page.
  1449. * doc/aria2c.1.txt
  1450. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1451. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1452. inherited to generated RequestGroup.
  1453. * src/UTMetadataPostDownloadHandler.cc
  1454. * test/UTMetadataPostDownloadHandlerTest.cc
  1455. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. Prepended "[METADATA]" before dn.
  1457. * src/bittorrent_helper.cc
  1458. * test/BittorrentHelperTest.cc
  1459. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1460. Rewritten Magnet URI parser.
  1461. * src/Makefile.am
  1462. * src/ProtocolDetector.cc
  1463. * src/bittorrent_helper.cc
  1464. * src/bittorrent_helper.h
  1465. * src/download_helper.cc
  1466. * src/magnet.cc
  1467. * src/magnet.h
  1468. * test/BittorrentHelperTest.cc
  1469. * test/MagnetTest.cc
  1470. * test/Makefile.am
  1471. * test/ProtocolDetectorTest.cc
  1472. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1473. Use hton64
  1474. * src/base32.cc
  1475. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Added Base32 encoded BitTorrent Magnet Link support.
  1477. * src/Makefile.am
  1478. * src/base32.cc
  1479. * src/base32.h
  1480. * src/bittorrent_helper.cc
  1481. * test/Base32Test.cc
  1482. * test/BittorrentHelperTest.cc
  1483. * test/Makefile.am
  1484. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1485. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1486. supported yet. Fixed typo in method name in RequestGroup. In
  1487. metadataGetMode, don't show "Your share ratio was ..." message.
  1488. * src/DefaultBtInteractive.cc
  1489. * src/DefaultBtInteractive.h
  1490. * src/DownloadHandlerFactory.cc
  1491. * src/DownloadHandlerFactory.h
  1492. * src/HandshakeExtensionMessage.cc
  1493. * src/Makefile.am
  1494. * src/Metalink2RequestGroup.cc
  1495. * src/PeerInteractionCommand.cc
  1496. * src/RequestGroup.cc
  1497. * src/RequestGroup.h
  1498. * src/UTMetadataPostDownloadHandler.cc
  1499. * src/UTMetadataPostDownloadHandler.h
  1500. * src/download_helper.cc
  1501. * test/HandshakeExtensionMessageTest.cc
  1502. * test/Makefile.am
  1503. * test/UTMetadataPostDownloadHandlerTest.cc
  1504. * test/UTMetadataRejectExtensionMessageTest.cc
  1505. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. In metadataGetMode, don't show SEEDING.
  1507. * src/ConsoleStatCalc.cc
  1508. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1509. Fixed ut_metadata data handling. Implemented
  1510. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1511. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1512. metadata_size is received.
  1513. * src/DefaultExtensionMessageFactory.cc
  1514. * src/DefaultExtensionMessageFactory.h
  1515. * src/HandshakeExtensionMessage.cc
  1516. * src/HandshakeExtensionMessage.h
  1517. * src/UTMetadataDataExtensionMessage.cc
  1518. * src/UTMetadataDataExtensionMessage.h
  1519. * src/UTMetadataRequestExtensionMessage.cc
  1520. * src/UTMetadataRequestFactory.cc
  1521. * src/UTMetadataRequestFactory.h
  1522. * src/UTMetadataRequestTracker.cc
  1523. * src/UTMetadataRequestTracker.h
  1524. * test/DefaultExtensionMessageFactoryTest.cc
  1525. * test/HandshakeExtensionMessageTest.cc
  1526. * test/MockBtMessage.h
  1527. * test/UTMetadataDataExtensionMessageTest.cc
  1528. * test/UTMetadataRequestExtensionMessageTest.cc
  1529. * test/UTMetadataRequestFactoryTest.cc
  1530. * test/UTMetadataRequestTrackerTest.cc
  1531. * test/extension_message_test_helper.h
  1532. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Drop connection if ut_metadata reject message is received.
  1534. * src/UTMetadataRejectExtensionMessage.cc
  1535. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1537. get high enough in that mode.
  1538. * src/ActivePeerConnectionCommand.cc
  1539. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Added BitTorrent magnet link support to ProtocolDetector.
  1541. * src/ProtocolDetector.cc
  1542. * src/ProtocolDetector.h
  1543. * test/ProtocolDetectorTest.cc
  1544. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Don't inject validator into BtMessage in metadataGetMode because
  1546. most of the checks depends on the total length of download but it
  1547. is unknown. Delegate metadataGetMode to BtMessage.
  1548. * src/DefaultBtMessageFactory.cc
  1549. * src/DefaultBtMessageFactory.h
  1550. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1552. * src/DefaultPieceStorage.h
  1553. * src/PieceStorage.h
  1554. * src/UnknownLengthPieceStorage.h
  1555. * test/MockPieceStorage.h
  1556. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Added markTotalLengthIsKnown().
  1558. * src/DownloadContext.h
  1559. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1561. missing. If metadata is missing, always use DHT when it is ready.
  1562. * src/BtSetup.cc
  1563. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Added parseMagnetLink(). Hex encoded info hash is supported.
  1565. Base32 encoded info hash is not supported yet.
  1566. * src/bittorrent_helper.cc
  1567. * src/bittorrent_helper.h
  1568. * test/BittorrentHelperTest.cc
  1569. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Added FromHex()
  1571. * src/util.cc
  1572. * src/util.h
  1573. * test/UtilTest.cc
  1574. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Added _metadataGetMode member variable. It toggles the action when
  1576. messages are received: usually they almost do nothing if
  1577. _metadataGetMode is true.
  1578. * src/AbstractBtMessage.cc
  1579. * src/AbstractBtMessage.h
  1580. * src/BtAllowedFastMessage.cc
  1581. * src/BtBitfieldMessage.cc
  1582. * src/BtCancelMessage.cc
  1583. * src/BtChokeMessage.cc
  1584. * src/BtHaveAllMessage.cc
  1585. * src/BtHaveMessage.cc
  1586. * src/BtInterestedMessage.cc
  1587. * src/BtNotInterestedMessage.cc
  1588. * src/BtPieceMessage.cc
  1589. * src/BtRejectMessage.cc
  1590. * src/BtRequestMessage.cc
  1591. * src/BtUnchokeMessage.cc
  1592. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. Added bencode::decode overload functions. They have extra argument
  1594. 'end', passed by reference. 'end' points to the beyond the last
  1595. position of data used in decoding process.
  1596. * src/bencode.cc
  1597. * src/bencode.h
  1598. * test/BencodeTest.cc
  1599. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. Initial support of Extension for Peers to Send Metadata
  1601. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1602. metadata from swarm.
  1603. * src/BtConstants.h
  1604. * src/DefaultBtInteractive.cc
  1605. * src/DefaultExtensionMessageFactory.cc
  1606. * src/DefaultExtensionMessageFactory.h
  1607. * src/ExtensionMessage.h
  1608. * src/ExtensionMessageRegistry.h
  1609. * src/HandshakeExtensionMessage.cc
  1610. * src/HandshakeExtensionMessage.h
  1611. * src/Makefile.am
  1612. * src/PeerConnection.h
  1613. * src/PeerInteractionCommand.cc
  1614. * src/UTMetadataDataExtensionMessage.cc
  1615. * src/UTMetadataDataExtensionMessage.h
  1616. * src/UTMetadataExtensionMessage.cc
  1617. * src/UTMetadataExtensionMessage.h
  1618. * src/UTMetadataRejectExtensionMessage.cc
  1619. * src/UTMetadataRejectExtensionMessage.h
  1620. * src/UTMetadataRequestExtensionMessage.cc
  1621. * src/UTMetadataRequestExtensionMessage.h
  1622. * src/bittorrent_helper.cc
  1623. * src/bittorrent_helper.h
  1624. * test/BittorrentHelperTest.cc
  1625. * test/DefaultExtensionMessageFactoryTest.cc
  1626. * test/HandshakeExtensionMessageTest.cc
  1627. * test/Makefile.am
  1628. * test/UTMetadataDataExtensionMessageTest.cc
  1629. * test/UTMetadataRejectExtensionMessageTest.cc
  1630. * test/UTMetadataRequestExtensionMessageTest.cc
  1631. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Cancel segment in prepareForRetry() because there is a chance that
  1633. the command has segments.
  1634. * src/CreateRequestCommand.cc
  1635. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Fixed the bug that slow server is not knocked down in favor of
  1637. faster one.
  1638. * src/AbstractCommand.cc
  1639. * src/DefaultPieceStorage.cc
  1640. * src/DefaultPieceStorage.h
  1641. * src/PieceStorage.h
  1642. * src/UnknownLengthPieceStorage.cc
  1643. * src/UnknownLengthPieceStorage.h
  1644. * test/MockPieceStorage.h
  1645. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1646. Fixed the bug that Request object is not added to
  1647. _inFlightRequests in findFasterRequest().
  1648. * src/FileEntry.cc
  1649. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Changed the strategry of how to increase the number of outstanding
  1651. requests. Now the number is doubled if there are no outstanding
  1652. requests after receiving messages.
  1653. * src/BtConstants.h
  1654. * src/DefaultBtInteractive.cc
  1655. * src/DefaultBtInteractive.h
  1656. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1657. Check socket for reading if there are outstanding requests.
  1658. * src/PeerInteractionCommand.cc
  1659. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Moved frequently called methods to header file so they get
  1661. inlined.
  1662. * src/RequestSlot.cc
  1663. * src/RequestSlot.h
  1664. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1665. Copied in_addr instead of just casting from char* which might
  1666. violate strict aliasing rules.
  1667. * src/AsyncNameResolver.cc
  1668. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Use dynamic_pointer_cast
  1670. * test/BtPieceMessageTest.cc
  1671. * test/BtRequestMessageTest.cc
  1672. * test/DefaultBtRequestFactoryTest.cc
  1673. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Added testSetUrl20()
  1675. * test/RequestTest.cc
  1676. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Code cleanup
  1678. * src/bittorrent_helper.cc
  1679. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Use C++ style cast
  1681. * src/AsyncNameResolver.cc
  1682. * src/Base64.h
  1683. * src/BtBitfieldMessage.cc
  1684. * src/BtHandshakeMessage.cc
  1685. * src/DefaultBtMessageFactory.cc
  1686. * src/DefaultBtProgressInfoFile.cc
  1687. * src/EpollEventPoll.cc
  1688. * src/ExpatMetalinkProcessor.cc
  1689. * src/IteratableChecksumValidator.cc
  1690. * src/IteratableChunkChecksumValidator.cc
  1691. * src/MessageDigestHelper.cc
  1692. * src/Platform.cc
  1693. * src/RequestGroupMan.cc
  1694. * src/SingleFileAllocationIterator.cc
  1695. * src/Sqlite3MozCookieParser.cc
  1696. * src/XML2SAXMetalinkProcessor.cc
  1697. * src/Xml2XmlRpcRequestProcessor.cc
  1698. * src/util.cc
  1699. * src/util.h
  1700. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Fixed integer potential alignment problem.
  1702. * src/bitfield.h
  1703. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1705. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1706. include file ordering.
  1707. * src/PeerListProcessor.h
  1708. * src/bittorrent_helper.cc
  1709. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1710. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1711. * src/Request.cc
  1712. * src/util.cc
  1713. * src/util.h
  1714. * test/RequestTest.cc
  1715. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1716. Rewritten util::uitos()
  1717. * src/util.h
  1718. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1719. Code cleanup
  1720. * src/Request.cc
  1721. * src/Request.h
  1722. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1723. Rewritten Request::parseUrl()
  1724. * src/Request.cc
  1725. * test/RequestTest.cc
  1726. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Removed unused macro SAFE_CHARS
  1728. * src/Request.cc
  1729. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Updated doc
  1731. * src/DHTRoutingTableDeserializer.cc
  1732. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. Release 1.6.3
  1734. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Removed unused function.
  1736. * test/DHTPeerAnnounceStorageTest.cc
  1737. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Only decrement cols if cols > 0
  1739. * src/ConsoleStatCalc.cc
  1740. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1742. translations. Thanks to all translators.
  1743. * po/ca.po
  1744. * po/fr.po
  1745. * po/it.po
  1746. * po/ja.po
  1747. * po/pl.po
  1748. * po/ru.po
  1749. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Updated translation template
  1751. * po
  1752. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Fixed compile error without ssl library.
  1754. * src/util.cc
  1755. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Logged received nodes in get_peers reply message.
  1757. * src/DHTAbstractNodeLookupTask.cc
  1758. * src/DHTAbstractNodeLookupTask.h
  1759. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1760. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1761. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1762. * src/DHTMessageDispatcherImpl.cc
  1763. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1764. Don't reuse URI if Request pool is not empty.
  1765. * src/CreateRequestCommand.cc
  1766. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1767. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1768. receive get_peers request for torrent which the client is now
  1769. downloading.
  1770. * src/BtSetup.cc
  1771. * src/DHTPeerAnnounceEntry.cc
  1772. * src/DHTPeerAnnounceEntry.h
  1773. * src/DHTPeerAnnounceStorage.cc
  1774. * src/DHTPeerAnnounceStorage.h
  1775. * src/RequestGroup.cc
  1776. * test/DHTPeerAnnounceEntryTest.cc
  1777. * test/DHTPeerAnnounceStorageTest.cc
  1778. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1779. Fixed the bug that in Windows environment new blank line is
  1780. inserted when console readout is updated.
  1781. * src/ConsoleStatCalc.cc
  1782. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1783. Throw exception if binding listening port is failed. Removed
  1784. RequestGroupMan::getInitialCommand(). Use
  1785. fillRequestGroupFromReserver() instead. Delete commands for
  1786. RequestGroup which has errors when it is being added.
  1787. * src/BtSetup.cc
  1788. * src/DownloadEngine.cc
  1789. * src/DownloadEngine.h
  1790. * src/DownloadEngineFactory.cc
  1791. * src/MultiUrlRequestInfo.cc
  1792. * src/RequestGroupMan.cc
  1793. * src/RequestGroupMan.h
  1794. * test/RequestGroupManTest.cc
  1795. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Fixed the bug that when downloading more than one torrent,
  1797. listening port is not reported properly to tracker for 2nd or
  1798. later torrents.
  1799. * src/BtSetup.cc
  1800. * src/PeerListenCommand.cc
  1801. * src/PeerListenCommand.h
  1802. * src/RequestGroup.cc
  1803. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Bump up version number to 1.6.3
  1805. * configure.ac
  1806. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Removed Util.cc from POTFILES.in
  1808. * po/POTFILES.in
  1809. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Updated man page for previous change.
  1811. * doc/aria2c.1.txt
  1812. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1813. If user name is embedded but password is missing in URI, first
  1814. resolve password using .netrc. If password is found in .netrc,
  1815. then use it as password. If not, use the password specified in
  1816. --ftp-passwd.
  1817. * src/AuthConfigFactory.cc
  1818. * src/Request.cc
  1819. * src/Request.h
  1820. * test/AuthConfigFactoryTest.cc
  1821. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Fixed typo
  1823. * doc/aria2c.1.txt
  1824. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Fixed typo
  1826. * src/usage_text.h
  1827. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Added missing bitfield.cc
  1829. * src/bitfield.cc
  1830. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1831. Renamed Util.{cc,h} as util.{cc,h}
  1832. * src/Util.cc
  1833. * src/Util.h
  1834. * src/util.cc
  1835. * src/util.h
  1836. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1837. Moved static functions in Util class to namespace util.
  1838. * src
  1839. * test
  1840. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1842. Moved generateRandomKey to bittorrent_helper.cc.
  1843. * src/DHTBucket.cc
  1844. * src/DHTGetPeersMessage.cc
  1845. * src/DHTGetPeersReplyMessage.cc
  1846. * src/DHTMessage.cc
  1847. * src/DHTNode.cc
  1848. * src/DHTTokenTracker.cc
  1849. * src/DHTUtil.cc: Removed.
  1850. * src/DHTUtil.h: Removed.
  1851. * src/Makefile.am
  1852. * src/Util.cc
  1853. * src/Util.h
  1854. * src/bitfield.h
  1855. * src/bittorrent_helper.cc
  1856. * src/bittorrent_helper.h
  1857. * test/ARC4Test.cc
  1858. * test/BNodeTest.cc
  1859. * test/DHTAnnouncePeerMessageTest.cc
  1860. * test/DHTAnnouncePeerReplyMessageTest.cc
  1861. * test/DHTFindNodeMessageTest.cc
  1862. * test/DHTFindNodeReplyMessageTest.cc
  1863. * test/DHTGetPeersMessageTest.cc
  1864. * test/DHTGetPeersReplyMessageTest.cc
  1865. * test/DHTPingMessageTest.cc
  1866. * test/DHTPingReplyMessageTest.cc
  1867. * test/DHTTokenTrackerTest.cc
  1868. * test/DHTUtilTest.cc: Removed.
  1869. * test/Makefile.am
  1870. * test/UtilTest.cc
  1871. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1872. Removed the call to trim() because trim() is called for each
  1873. element in split().
  1874. * src/CookieParser.cc
  1875. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1876. Replaced Util::slice() with split()
  1877. * src/AbstractCommand.cc
  1878. * src/CookieParser.cc
  1879. * src/File.cc
  1880. * src/HttpHeaderProcessor.cc
  1881. * src/HttpRequest.cc
  1882. * src/Metalink2RequestGroup.cc
  1883. * src/MetalinkParserController.cc
  1884. * src/Netrc.cc
  1885. * src/NsCookieParser.cc
  1886. * src/ParameterizedStringParser.cc
  1887. * src/ServerStatMan.cc
  1888. * src/UriListParser.cc
  1889. * src/Util.cc
  1890. * src/Util.h
  1891. * src/bittorrent_helper.cc
  1892. * test/UtilTest.cc
  1893. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Use request->getDir() instead of "/" for embedded user/pass in
  1895. URI.
  1896. * src/AuthConfigFactory.cc
  1897. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Fixed wrong insertion point for BasicCred.
  1899. * src/AuthConfigFactory.cc
  1900. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Allowed non-regular file in LocalFilePathOptionHandler
  1902. * src/OptionHandlerImpl.h
  1903. * src/message.h
  1904. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1905. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1906. * src/Netrc.cc
  1907. * src/Util.h
  1908. * test/NetrcTest.cc
  1909. * test/sample.netrc
  1910. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Fixed typo
  1912. * src/BtDependency.cc
  1913. * src/BtRejectMessage.cc
  1914. * src/FtpConnection.cc
  1915. * src/HttpHeaderProcessor.h
  1916. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Fixed lintian report in man page
  1918. * doc/aria2c.1.txt
  1919. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Release 1.6.2
  1921. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1922. Updated Ukrainian translation. Thanks to all translators.
  1923. * po/uk.po
  1924. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1925. Updated translation template
  1926. * po
  1927. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1928. Bump up version number to 1.6.2
  1929. * configure.ac
  1930. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1931. Updated licence message in -v output.
  1932. * src/version_usage.cc
  1933. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. Replaced aria2 with aria2c in help message.
  1935. * src/version_usage.cc
  1936. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1937. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1938. * src/version_usage.cc
  1939. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Quoted localedir
  1941. * src/Makefile.am
  1942. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1943. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1944. utime. Check header for utime.h.
  1945. * configure.ac
  1946. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1948. * configure.ac
  1949. * src/daemon.cc
  1950. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Don't set localedir manually. Leave it to autoconf.
  1952. * configure.ac
  1953. * src/Makefile.am
  1954. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Added --install to ACLOCAL_AMFLAGS.
  1956. Removed m4 from SUBDIRS.
  1957. Updated automake 1.11 and autoconf 2.64.
  1958. Replaced some obsolute macros with new one.
  1959. * Makefile.am
  1960. * configure.ac
  1961. * m4/aria2_arg.m4
  1962. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1963. Removed Makefile.am in m4 directory.
  1964. * configure.ac
  1965. * m4/ChangeLog
  1966. * m4/Makefile.am
  1967. * m4/Makefile.in
  1968. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. Removed unused m4 macros.
  1970. * m4/intldir.m4
  1971. * m4/inttypes.m4
  1972. * m4/isc-posix.m4
  1973. * m4/libgnutls-extra.m4
  1974. * m4/ulonglong.m4
  1975. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Fixed the bug that causes segmentation fault if
  1977. req->getCurrentUrl() contains printf formatting characters such as
  1978. %d. The statement that causes this bug is useless and removed.
  1979. * src/AbstractCommand.cc
  1980. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. * Release 1.6.1
  1982. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1983. Updated Simplified Chinese translation. Thanks to translators.
  1984. * po/zh_CN.po
  1985. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Updated translation template
  1987. * po
  1988. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Bump up version number to 1.6.1
  1990. * configure.ac
  1991. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Changed interval from 120 to 60 for dropping inactive peer.
  1993. * src/DefaultBtInteractive.cc
  1994. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Updated man page for --user-agent and --peer-id-prefix option.
  1996. * doc/aria2c.1.txt
  1997. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Code clean up
  1999. * src/BtPostDownloadHandler.cc
  2000. * src/ContentTypeRequestGroupCriteria.cc
  2001. * src/ContentTypeRequestGroupCriteria.h
  2002. * src/DownloadHandlerConstants.cc
  2003. * src/DownloadHandlerConstants.h
  2004. * src/DownloadHandlerFactory.cc
  2005. * src/MetalinkPostDownloadHandler.cc
  2006. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2007. Don't save control file when aria2 exists while checking piece
  2008. hash(behavior of -V option). If control file doesn't exist when
  2009. aria2 launched, the completed length in saved control file will be
  2010. 0 byte and this confuses user. disableSaveControlFile() is called
  2011. in RequestGroup::processCheckIntegrityEntry().
  2012. enableSaveControlFile() will be called after hash checking is
  2013. done. See CheckIntegrityCommand.
  2014. * src/CheckIntegrityCommand.cc
  2015. * src/RequestGroup.cc
  2016. * src/RequestGroup.h
  2017. * src/RequestGroupMan.cc
  2018. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. Included version number in Peer ID and client version. Peer ID
  2020. now starts with "aria2/VERSION-", where VERSION is
  2021. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2022. * src/DefaultBtInteractive.cc
  2023. * src/OptionHandlerFactory.cc
  2024. * src/bittorrent_helper.cc
  2025. * src/bittorrent_helper.h
  2026. * src/main.cc
  2027. * src/usage_text.h
  2028. * test/BittorrentHelperTest.cc
  2029. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Fixed memory leak.
  2031. * src/DownloadCommand.cc
  2032. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Removed server, port, user and passwd key from options before
  2034. XMLRPC::Client.call since they are not options of aria2.
  2035. * doc/xmlrpc/aria2mon
  2036. * doc/xmlrpc/aria2rpc
  2037. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2038. Included version number in user-agent string.
  2039. * src/OptionHandlerFactory.cc
  2040. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2041. Fixed the bug that the option values changed by XML-RPC
  2042. method(changeOption and changeGlobalOption) are overwritten to the
  2043. previous value by the next these request which doesn't contain
  2044. that option value. Supporse max-download-limit is initially 0. You
  2045. changed this value to 100K by changeOption. Then you issue
  2046. changeOption request to change max-upload-limit to 50K. This
  2047. second request doesn't contain xml-download-limit, so it is back
  2048. to initial value, 0. Another improvement is that exception is
  2049. thrown when changeOption and changeGlobalOption request contains
  2050. option name which doesn't allowed in each request.
  2051. * src/DownloadEngine.h
  2052. * src/XmlRpcMethod.cc
  2053. * src/XmlRpcMethod.h
  2054. * src/XmlRpcMethodImpl.cc
  2055. * src/download_helper.cc
  2056. * src/download_helper.h
  2057. * test/XmlRpcMethodTest.cc
  2058. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2059. Added missing MetalinkParserStateImpl.{cc,h}
  2060. * src/MetalinkParserStateImpl.cc
  2061. * src/MetalinkParserStateImpl.h
  2062. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Put all MetalinkParserState subclasses into
  2064. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2065. * src/FileMetalinkParserState.cc: Removed
  2066. * src/FileMetalinkParserState.h: Removed
  2067. * src/FilesMetalinkParserState.cc: Removed
  2068. * src/FilesMetalinkParserState.h: Removed
  2069. * src/FinMetalinkParserState.cc: Removed
  2070. * src/FinMetalinkParserState.h: Removed
  2071. * src/HashMetalinkParserState.cc: Removed
  2072. * src/HashMetalinkParserState.h: Removed
  2073. * src/InitialMetalinkParserState.cc: Removed
  2074. * src/InitialMetalinkParserState.h: Removed
  2075. * src/LanguageMetalinkParserState.cc: Removed
  2076. * src/LanguageMetalinkParserState.h: Removed
  2077. * src/Makefile.am
  2078. * src/MetalinkMetalinkParserState.cc: Removed
  2079. * src/MetalinkMetalinkParserState.h: Removed
  2080. * src/MetalinkParserState.h
  2081. * src/MetalinkParserStateMachine.cc
  2082. * src/MetalinkParserStateMachine.h
  2083. * src/OSMetalinkParserState.cc: Removed
  2084. * src/OSMetalinkParserState.h: Removed
  2085. * src/PieceHashMetalinkParserState.cc: Removed
  2086. * src/PieceHashMetalinkParserState.h: Removed
  2087. * src/PiecesMetalinkParserState.cc: Removed
  2088. * src/PiecesMetalinkParserState.h: Removed
  2089. * src/ResourcesMetalinkParserState.cc: Removed
  2090. * src/ResourcesMetalinkParserState.h: Removed
  2091. * src/SignatureMetalinkParserState.cc: Removed
  2092. * src/SignatureMetalinkParserState.h: Removed
  2093. * src/SizeMetalinkParserState.cc: Removed
  2094. * src/SizeMetalinkParserState.h: Removed
  2095. * src/SkipTagMetalinkParserState.cc: Removed
  2096. * src/SkipTagMetalinkParserState.h: Removed
  2097. * src/URLMetalinkParserState.cc: Removed
  2098. * src/URLMetalinkParserState.h: Removed
  2099. * src/VerificationMetalinkParserState.cc: Removed
  2100. * src/VerificationMetalinkParserState.h: Removed
  2101. * src/VersionMetalinkParserState.cc: Removed
  2102. * src/VersionMetalinkParserState.h: Removed
  2103. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Move all functions in PeerMessageUtil to bittorrent_helper.
  2105. * src/BtBitfieldMessage.cc
  2106. * src/BtBitfieldMessageValidator.h
  2107. * src/BtExtendedMessage.cc
  2108. * src/BtHandshakeMessage.cc
  2109. * src/BtHandshakeMessageValidator.h
  2110. * src/BtPieceMessage.cc
  2111. * src/BtPieceMessageValidator.h
  2112. * src/BtPortMessage.cc
  2113. * src/DHTFindNodeReplyMessage.cc
  2114. * src/DHTGetPeersReplyMessage.cc
  2115. * src/DHTMessageFactoryImpl.cc
  2116. * src/DHTRoutingTableDeserializer.cc
  2117. * src/DHTRoutingTableSerializer.cc
  2118. * src/DHTTokenTracker.cc
  2119. * src/DefaultBtMessageFactory.cc
  2120. * src/IndexBtMessage.cc
  2121. * src/IndexBtMessage.h
  2122. * src/IndexBtMessageValidator.h
  2123. * src/Makefile.am
  2124. * src/PeerMessageUtil.cc: Removed.
  2125. * src/PeerMessageUtil.h: Removed.
  2126. * src/RangeBtMessage.cc
  2127. * src/RangeBtMessage.h
  2128. * src/RangeBtMessageValidator.h
  2129. * src/UTPexExtensionMessage.cc
  2130. * src/ZeroBtMessage.cc
  2131. * src/ZeroBtMessage.h
  2132. * src/bittorrent_helper.cc
  2133. * src/bittorrent_helper.h
  2134. * test/BittorrentHelperTest.cc
  2135. * test/BtAllowedFastMessageTest.cc
  2136. * test/BtBitfieldMessageTest.cc
  2137. * test/BtCancelMessageTest.cc
  2138. * test/BtChokeMessageTest.cc
  2139. * test/BtExtendedMessageTest.cc
  2140. * test/BtHandshakeMessageTest.cc
  2141. * test/BtHaveAllMessageTest.cc
  2142. * test/BtHaveMessageTest.cc
  2143. * test/BtHaveNoneMessageTest.cc
  2144. * test/BtInterestedMessageTest.cc
  2145. * test/BtNotInterestedMessageTest.cc
  2146. * test/BtPieceMessageTest.cc
  2147. * test/BtPortMessageTest.cc
  2148. * test/BtRejectMessageTest.cc
  2149. * test/BtRequestMessageTest.cc
  2150. * test/BtSuggestPieceMessageTest.cc
  2151. * test/BtUnchokeMessageTest.cc
  2152. * test/DHTFindNodeReplyMessageTest.cc
  2153. * test/DHTGetPeersReplyMessageTest.cc
  2154. * test/DHTMessageFactoryImplTest.cc
  2155. * test/DHTRoutingTableDeserializerTest.cc
  2156. * test/DHTRoutingTableSerializerTest.cc
  2157. * test/DefaultBtMessageFactoryTest.cc
  2158. * test/DefaultExtensionMessageFactoryTest.cc
  2159. * test/Makefile.am
  2160. * test/PeerListProcessorTest.cc
  2161. * test/PeerMessageUtilTest.cc: Removed.
  2162. * test/UTPexExtensionMessageTest.cc
  2163. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2164. Limit the size of values list when sending get_peers reply.
  2165. * src/DHTGetPeersReplyMessage.cc
  2166. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2167. Updated banner
  2168. * doc/xmlrpc/aria2rpc
  2169. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Added missing help message for remove command.
  2171. * doc/xmlrpc/aria2rpc
  2172. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Generated configure and config.h.in
  2174. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2175. Add check for fork(), which is missing on MinGW
  2176. * src/daemon.cc
  2177. * configure.ac
  2178. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2180. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2181. Util::httpGMT().
  2182. * src/Util.cc
  2183. * src/Util.h
  2184. * test/UtilTest.cc
  2185. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2186. * Release 1.6.0
  2187. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2188. Fixed a path to xmlrpc/README.txt
  2189. * doc/Makefile.am
  2190. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. Added XML-RPC in -v Configuration output.
  2192. * src/FeatureConfig.cc
  2193. * src/FeatureConfig.h
  2194. * test/FeatureConfigTest.cc
  2195. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Updated Bulgarian, Russian, Slovak and Japanese
  2197. translations. Thanks to all translators.
  2198. * po/bg.po
  2199. * po/ja.po
  2200. * po/ru.po
  2201. * po/sk.po
  2202. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Removed --retry-wait option from aria2rpc
  2204. * doc/xmlrpc/aria2rpc
  2205. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2206. Removed --retry-wait option from man page.
  2207. * doc/aria2c.1.txt
  2208. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. Removed --retry-wait option since the current architecture doesn't
  2210. allow sleep for particular URI.
  2211. * src/AbstractCommand.cc
  2212. * src/OptionHandlerFactory.cc
  2213. * src/download_helper.cc
  2214. * src/prefs.cc
  2215. * src/prefs.h
  2216. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2217. Removed Retry-After header support. Since the current architecture
  2218. doesn't allow sleep for particular URI.
  2219. * src/HttpSkipResponseCommand.cc
  2220. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. Updated the help message for --daemon option.
  2222. * doc/aria2c.1.txt
  2223. * src/usage_text.h
  2224. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. Added our own daemon() function for systems which desn't have
  2226. daemon(3).
  2227. * configure.ac
  2228. * src/Makefile.am
  2229. * src/daemon.cc
  2230. * src/daemon.h
  2231. * src/option_processing.cc
  2232. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Simplified File::getCurrentDir()
  2234. * src/File.cc
  2235. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2236. Use exit() instead of _exit
  2237. * src/RequestGroupMan.cc
  2238. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2239. Replaced "CATEGORY" with "TAGS".
  2240. * src/usage_text.h
  2241. * doc/aria2c.1.txt
  2242. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Updated the help message for --help option.
  2244. * src/usage_text.h
  2245. * doc/aria2c.1.txt
  2246. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Updated man page for added help tags.
  2248. * doc/aria2c.1.txt
  2249. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Added help category #file. Added #file tag to the options related
  2251. to downloaded file.
  2252. * src/OptionHandlerFactory.cc
  2253. * src/help_tags.h
  2254. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Added help categories: #cookie and #hook. Added #https tag to
  2256. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2257. * src/OptionHandlerFactory.cc
  2258. * src/help_tags.h
  2259. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2260. Made MSG_NOT_FILE translatable.
  2261. * src/message.h
  2262. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2263. Updated man page for --help option.
  2264. * doc/aria2c.1.txt
  2265. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2266. Updated doc.
  2267. * src/XmlRpcMethod.h
  2268. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Help category now starts with "#" to distinguish a category from
  2270. keyword search. For example, "http" categroy is now "#http". You
  2271. can type "--help=#http" to get explanation of options related to
  2272. http. If '#' is omitted, then the argument is treated as a keyword
  2273. and aria2 searches options whose name includes the keyword and
  2274. print matched ones. For example, "--help=http" will show options
  2275. whose name includes "http".
  2276. * src/OptionHandlerFactory.cc
  2277. * src/help_tags.h
  2278. * src/usage_text.h
  2279. * src/version_usage.cc
  2280. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2281. Documented missing experimental tag and newly added xml-rpc tag in
  2282. man page.
  2283. * doc/aria2c.1.txt
  2284. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Added xml-rpc help tag. Tagged xml-rpc related options with
  2286. xml-rpc tag.
  2287. * src/OptionHandlerFactory.cc
  2288. * src/help_tags.h
  2289. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2290. Updated message when a path is not a file. Updated common message
  2291. for wrong option.
  2292. * src/OptionHandlerException.cc
  2293. * src/message.h
  2294. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Use File::isFile() instead of File::exists(). Updated message when
  2296. a path is not a file.
  2297. * src/OptionHandlerImpl.cc
  2298. * src/message.h
  2299. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Fixed the bug that server performence profile is not updated when
  2301. aria2c was terminated by emergency shutdown.
  2302. * src/TrackerWatcherCommand.cc
  2303. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Use LocalFilePathOptionHandler for -T and -M option.
  2305. Updated message of MSG_FILE_NOT_EXIST.
  2306. * src/OptionHandlerFactory.cc
  2307. * src/message.h
  2308. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Added LocalFilePathOptionHandler which check whether the specified
  2310. file path does exist or not.
  2311. * src/OptionHandlerImpl.cc
  2312. * src/message.h
  2313. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2314. Updated wiki page URI.
  2315. * README
  2316. * doc/aria2c.1.txt
  2317. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2318. Added README.txt for xmlrpc directory.
  2319. * doc/Makefile.am
  2320. * doc/xmlrpc/README.txt
  2321. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2322. Bump up version number to 1.6.0.
  2323. * configure.ac
  2324. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2325. Added XML-RPC client scripts written in ruby.
  2326. * doc/Makefile.am
  2327. * doc/xmlrpc/aria2mon
  2328. * doc/xmlrpc/aria2rpc
  2329. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. Added support for IPv6 literal address in URI. Now aria2 can
  2331. handle URI such as http://[::1]/
  2332. * src/HttpRequest.cc
  2333. * src/HttpRequest.h
  2334. * src/Request.cc
  2335. * src/Request.h
  2336. * test/HttpRequestTest.cc
  2337. * test/OptionHandlerTest.cc
  2338. * test/RequestTest.cc
  2339. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Fixed the bug that HTTP request header for XML-RPC request is not
  2341. parsed properly.
  2342. * src/HttpHeader.cc
  2343. * src/HttpHeaderProcessor.cc
  2344. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2345. Fixed the bug that XML-RPC authorization might be done before HTTP
  2346. request header is fully received.
  2347. * src/HttpServerCommand.cc
  2348. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2349. Documented --xml-rpc-listen-all option in man page.
  2350. * doc/aria2c.1.txt
  2351. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2352. Added --xml-rpc-listen-all option. If true is given to this
  2353. option, aria2 listens incoming XML-RPC requests on all network
  2354. interfaces. If false is given, listens only on local loopback
  2355. interface. The default value is false.
  2356. * src/HttpListenCommand.cc
  2357. * src/OptionHandlerFactory.cc
  2358. * src/SocketCore.cc
  2359. * src/SocketCore.h
  2360. * src/prefs.cc
  2361. * src/prefs.h
  2362. * src/usage_text.h
  2363. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2364. * Release 1.5.2
  2365. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2366. Updated Ukrainian and Russian translations. Thanks to all
  2367. translators.
  2368. * po/ru.po
  2369. * po/uk.po
  2370. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Bump up version number to 1.5.2
  2372. * configure.ac
  2373. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Get comment, comment.utf-8, created by and creation date from
  2375. .torrent file and print them in -S output.
  2376. * src/bittorrent_helper.cc
  2377. * src/bittorrent_helper.h
  2378. * test/BittorrentHelperTest.cc
  2379. * test/test.torrent
  2380. * test/utf8.torrent
  2381. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2382. Show exact file size along in -S option output.
  2383. * src/Util.h
  2384. * src/bittorrent_helper.cc
  2385. * test/UtilTest.cc
  2386. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Avoided unnecessary memory allocation in
  2388. BitfieldMan::getCompletedLength().
  2389. * src/BitfieldMan.cc
  2390. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. Fixed the bug that download fails if
  2392. SocketCore::establishConnection() throws exception and aria2
  2393. doesn't try another address.
  2394. * src/AbstractCommand.cc
  2395. * src/InitiateConnectionCommand.cc
  2396. * src/message.h
  2397. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2398. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2399. detected properly.
  2400. * m4/sqlite3.m4
  2401. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2403. because it causes compile error if PARAMS macro is defined.
  2404. * src/XmlRpcElements.cc
  2405. * src/XmlRpcElements.h
  2406. * src/XmlRpcRequestParserStateImpl.cc
  2407. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. * Release 1.5.1
  2409. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Bump up version number to 1.5.1
  2411. * configure.ac
  2412. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Fixed compile error without BitTorrent support
  2414. * src/DefaultBtProgressInfoFile.cc
  2415. * src/DownloadEngine.cc
  2416. * src/DownloadEngine.h
  2417. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2418. Added missing '=' in Download Results
  2419. * src/RequestGroupMan.cc
  2420. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. Fixed compiler warning
  2422. * src/DefaultBtProgressInfoFile.cc
  2423. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2424. Fixed compiler warning on 32bit systems.
  2425. * src/DownloadCommand.cc
  2426. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2427. Call flush from ServerStatMan::save()
  2428. * src/ServerStatMan.cc
  2429. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2430. Check stream status after file is opened.
  2431. * src/CookieStorage.cc
  2432. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Rewritten Signature::save()
  2434. * src/Signature.cc
  2435. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Rewritten RequestGroupMan::saveServerStat()
  2437. * src/RequestGroupMan.cc
  2438. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Rewritten stream error handling
  2440. * src/DHTAutoSaveCommand.cc
  2441. * src/DHTRoutingTableDeserializer.cc
  2442. * src/DHTRoutingTableSerializer.cc
  2443. * src/DHTSetup.cc
  2444. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2445. Check stream status after file is opened.
  2446. * src/DefaultBtProgressInfoFile.cc
  2447. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Rewritten stream error handling
  2449. * src/DefaultBtProgressInfoFile.cc
  2450. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Make sure that stream is closed before renaming file. Unit test
  2452. fails on mingw32 in the previous implementation.
  2453. * src/CookieStorage.cc
  2454. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Fixed the unit test error without sqlite3
  2456. * test/CookieStorageTest.cc
  2457. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Fixed the undefined reference error
  2459. * test/HttpResponseTest.cc
  2460. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2461. * Release 1.5.0
  2462. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2464. Ukrainian translations. Thanks to all translators.
  2465. * po/ru.po
  2466. * po/it.po
  2467. * po/da.po
  2468. * po/bg.po
  2469. * po/ja.po
  2470. * po/uk.po
  2471. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Added missing src/Logger.cc
  2473. * src/Logger.cc
  2474. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2475. Rewritten Logger to avoiding constly virtual call.
  2476. * src/LogFactory.cc
  2477. * src/LogFactory.h
  2478. * src/Logger.h
  2479. * src/Makefile.am
  2480. * src/Makefile.in
  2481. * src/NullLogger.h: Removed.
  2482. * src/SimpleLogger.cc
  2483. * src/SimpleLogger.h
  2484. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2485. Updated doc
  2486. * src/main.cc
  2487. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2488. Updated debug log message
  2489. * src/AbstractCommand.cc
  2490. * src/message.h
  2491. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Avoid to create zombie process when commands specified in
  2493. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2494. X and NetBSD.
  2495. * src/main.cc
  2496. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2497. Fixed typo
  2498. * src/usage_text.h
  2499. * doc/aria2c.1.txt
  2500. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. Documented 'errorCode' of tellStatus in man page.
  2502. * doc/aria2c.1.txt
  2503. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2504. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2505. This key is only available for stopped/completed downloads and its
  2506. value is the error code defined in EXIT STATUS in man page.
  2507. * src/XmlRpcMethodImpl.cc
  2508. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2509. Fixed the bug that session download length is not updated when
  2510. PeerStat is not fastest one.
  2511. * src/SegmentMan.cc
  2512. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Updated doc.
  2514. * doc/aria2c.1.txt
  2515. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Updated doc.
  2517. * src/AbstractCommand.cc
  2518. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Handle the case when DownloadContext has no FileEntry.
  2520. * src/XmlRpcMethodImpl.cc
  2521. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2522. Handle the situation where struct option.name is char *.
  2523. * configure.ac
  2524. * src/OptionParser.cc
  2525. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Code cleanup
  2527. * src/AbstractCommand.cc
  2528. * src/DownloadCommand.cc
  2529. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2530. Use option of each download to create AuthConfig instead of global
  2531. option.
  2532. * src/AuthConfigFactory.cc
  2533. * src/AuthConfigFactory.h
  2534. * src/FtpNegotiationCommand.cc
  2535. * src/HttpRequest.cc
  2536. * src/HttpRequest.h
  2537. * src/HttpRequestCommand.cc
  2538. * src/HttpSkipResponseCommand.cc
  2539. * src/MultiUrlRequestInfo.cc
  2540. * test/AuthConfigFactoryTest.cc
  2541. * test/FtpConnectionTest.cc
  2542. * test/HttpRequestTest.cc
  2543. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. Don't call prepareForRetry(1) if all segments are ignored in
  2545. SegmentMan.
  2546. * src/AbstractCommand.cc
  2547. * src/BitfieldMan.cc
  2548. * src/BitfieldMan.h
  2549. * src/SegmentMan.cc
  2550. * src/SegmentMan.h
  2551. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2552. Removed FileEntry::getAssociatedUris()
  2553. * src/FileEntry.h
  2554. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Updated doc: TODO1.5 -> TODO
  2556. * src/FileEntry.cc
  2557. * src/HttpResponseCommand.cc
  2558. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2560. involved.
  2561. * src/RequestGroup.cc
  2562. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2563. Eliminated duplicated filterBitfield initialization code.
  2564. * src/BitfieldMan.cc
  2565. * src/BitfieldMan.h
  2566. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2567. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2568. relatively naive approach, though). For DownloadFailureException,
  2569. we handle the case when req is null properly.
  2570. * src/AbstractCommand.cc
  2571. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2572. Added function returning suffix of control file to
  2573. DefaultBtProgressInfoFile.
  2574. * src/DefaultBtProgressInfoFile.cc
  2575. * src/DefaultBtProgressInfoFile.h
  2576. * src/RequestGroup.cc
  2577. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Documented getVersion in man page.
  2579. * doc/aria2c.1.txt
  2580. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Documented type of offset and num for tellWaiting xml-rpc method.
  2582. * doc/aria2c.1.txt
  2583. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Implemented getVersion xml-rpc method. This method returns struct
  2585. which has 2 key-value pairs: "version" key is associated to the
  2586. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2587. associated to the list of enabled features, such as "Async DNS",
  2588. "BitTorrent".
  2589. * src/FeatureConfig.h
  2590. * src/XmlRpcMethodFactory.cc
  2591. * src/XmlRpcMethodImpl.cc
  2592. * src/XmlRpcMethodImpl.h
  2593. * test/XmlRpcMethodTest.cc
  2594. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2596. for compatibility issue.
  2597. * src/SocketCore.cc
  2598. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Fixed compile error with openSSL
  2600. * src/bittorrent_helper.cc
  2601. * src/messageDigest.h
  2602. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Removed bad code: setting certificate type priority to key
  2604. exchange priority.
  2605. * src/SocketCore.cc
  2606. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2607. Disconnect seeder if client is also in seed state.
  2608. * src/BtBitfieldMessage.cc
  2609. * src/BtHaveAllMessage.cc
  2610. * src/BtHaveMessage.cc
  2611. * src/message.h
  2612. * test/BtBitfieldMessageTest.cc
  2613. * test/BtHaveAllMessageTest.cc
  2614. * test/BtHaveMessageTest.cc
  2615. * test/MockPieceStorage.h
  2616. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. Keep CreateRequestCommand in queue when no segment is available so
  2618. that they can pick up pieces which slow BitTorrent peers are
  2619. downloading.
  2620. * src/AbstractCommand.cc
  2621. * src/CreateRequestCommand.cc
  2622. * src/CreateRequestCommand.h
  2623. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2624. --bt-stop-timeout now only checks download speed.
  2625. * src/BtStopDownloadCommand.cc
  2626. * src/BtStopDownloadCommand.h
  2627. * src/BtSetup.cc
  2628. * src/usage_text.h
  2629. * doc/aria2c.1.txt
  2630. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2631. Fixed compile error regarding BUFSIZE.
  2632. * src/DownloadCommand.cc
  2633. * src/DownloadCommand.h
  2634. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Documented tellWaiting xml-rpc method in man page.
  2636. * doc/aria2c.1.txt
  2637. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2638. Bump up version number to 1.5.0
  2639. * configure.ac
  2640. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. Removed resolved TODO1.5
  2642. * src/AbstractCommand.cc
  2643. * src/DownloadCommand.cc
  2644. * src/RequestGroup.cc
  2645. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Release pooled and in-flight Request objectsand URIResult objects
  2647. in FileEntry after download completed.
  2648. * src/DownloadContext.cc
  2649. * src/DownloadContext.h
  2650. * src/FileEntry.cc
  2651. * src/FileEntry.h
  2652. * src/RequestGroup.cc
  2653. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Set manual and source attribute in aria2c.1.txt
  2655. * doc/aria2c.1.txt
  2656. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2657. Documented that the default value of --use-head is 'false' in man
  2658. page.
  2659. * doc/aria2c.1.txt
  2660. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Added bt-stop-timeout option to -i list.
  2662. * doc/aria2c.1.txt
  2663. * src/download_helper.cc
  2664. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Fixed typo
  2666. * doc/aria2c.1.txt
  2667. * src/usage_text.h
  2668. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2669. Removed peer-id-prefix option from -i list.
  2670. * doc/aria2c.1.txt
  2671. * src/download_helper.cc
  2672. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2673. Fixed typo
  2674. * doc/aria2c.1.txt
  2675. * src/usage_text.h
  2676. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. Documented --bt-stop-timeout option in man page.
  2678. * doc/aria2c.1.txt
  2679. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Updated README regarding multi-file torrent web-seeding.
  2681. * doc/README.txt
  2682. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2683. Updated man page regarding multi-file torrent web-seeding.
  2684. * doc/aria2c.1.txt
  2685. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2686. Updated doc
  2687. * src/version_usage.cc
  2688. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. Winsock select() doesn't work if no socket is in FD_SET. To
  2690. overcome this problem, a dummy socket is added to FD_SET and it is
  2691. given to select().
  2692. * src/SelectEventPoll.cc
  2693. * src/SelectEventPoll.h
  2694. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2695. Disabled --use-head option by default because --use-head=true
  2696. causes problems on some web sites.
  2697. * src/OptionHandlerFactory.cc
  2698. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Print URL List in -S option for torrent.
  2700. * src/bittorrent_helper.cc
  2701. * src/bittorrent_helper.h
  2702. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Allocate buffer in ctor of DownloadCommand.
  2704. * src/DownloadCommand.cc
  2705. * src/DownloadCommand.h
  2706. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Removed DiskAdaptor::onDownloadComplete()
  2708. * src/DirectDiskAdaptor.cc
  2709. * src/DirectDiskAdaptor.h
  2710. * src/DiskAdaptor.h
  2711. * src/MultiDiskAdaptor.cc
  2712. * src/MultiDiskAdaptor.h
  2713. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2714. Committed missing BtStopDownloadCommand.{cc,h}
  2715. * src/BtStopDownloadCommand.cc
  2716. * src/BtStopDownloadCommand.h
  2717. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2718. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2719. download if the download speed is 0 and the number of seeder is 0
  2720. in consecutive SEC seconds. By default, this function is disabled.
  2721. * src/BtSetup.cc
  2722. * src/Makefile.am
  2723. * src/OptionHandlerFactory.cc
  2724. * src/prefs.cc
  2725. * src/prefs.h
  2726. * src/usage_text.h
  2727. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. Removed the call to DiskAdaptor::onDownloadComplete() from
  2729. BtCheckIntegrityEntry and DefaultPieceStorage.
  2730. * src/BtCheckIntegrityEntry.cc
  2731. * src/DefaultPieceStorage.cc
  2732. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Commented out throw statements when number of piece is 0 to
  2734. download 0 length torrent.
  2735. * src/bittorrent_helper.cc
  2736. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Call RequestGroup::createNextCommandWithAdj() from
  2738. BtFileAllocationEntry if at least one FileEntry has URI. The
  2739. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2740. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2741. * src/BtFileAllocationEntry.cc
  2742. * src/FileEntry.h
  2743. * src/RequestGroup.cc
  2744. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2745. Generate peer ID after SimpleRandomizer is initialized.
  2746. * src/main.cc
  2747. * src/option_processing.cc
  2748. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2749. Removed unused method argument.
  2750. * src/CreateRequestCommand.cc
  2751. * src/RequestGroup.cc
  2752. * src/RequestGroup.h
  2753. * src/RequestGroupMan.cc
  2754. * src/TrackerWatcherCommand.cc
  2755. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2756. Made URI reusing function work.
  2757. * src/CreateRequestCommand.cc
  2758. * src/FileEntry.cc
  2759. * src/FileEntry.h
  2760. * test/FileEntryTest.cc
  2761. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2762. Add formerly fastest PeerStat's sessionDownloadLength to new
  2763. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2764. bytes in a session.
  2765. * src/PeerStat.cc
  2766. * src/SegmentMan.cc
  2767. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2768. If pipelining is enabled, we can always pool socket.
  2769. * src/HttpDownloadCommand.cc
  2770. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. In a single file download, file size becomes known just after
  2772. downloading, set total length to FileEntry object when download
  2773. completed.
  2774. * src/DownloadCommand.cc
  2775. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. Use std::vector::reserve() for fileEntries and pieceHashes in
  2777. bittorrent_helper
  2778. * src/bittorrent_helper.cc
  2779. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2780. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2781. Removed hidden option PREF_RESET_URI.
  2782. * src/AbstractCommand.cc
  2783. * src/OptionHandlerFactory.cc
  2784. * src/prefs.cc
  2785. * src/prefs.h
  2786. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Removed unused variable/function.
  2788. * src/PeerStat.h
  2789. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2790. Show first URL in Download Results if file path is not available.
  2791. * src/FileEntry.h
  2792. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2793. Throw exception if file path doesn't exist in FTP URL.
  2794. * src/InitiateConnectionCommandFactory.cc
  2795. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2796. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2797. * src/BitfieldMan.cc
  2798. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2800. of PeerStat in SegmentMan. peerStats is used for calculating
  2801. download speed. Therefore all active PeerStats should be in
  2802. there. Another one is _fastestPeerStats and it only contains
  2803. fastest PeerStat for each hostname/protocol pair. They are used
  2804. for updating ServerStat.
  2805. * src/DownloadCommand.cc
  2806. * src/Request.h
  2807. * src/RequestGroupMan.cc
  2808. * src/SegmentMan.cc
  2809. * src/SegmentMan.h
  2810. * test/SegmentManTest.cc
  2811. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Try all available addresses returned by DNS until it gets
  2813. connected in HTTP(S)/FTP download
  2814. * src/AbstractCommand.cc
  2815. * src/AbstractCommand.h
  2816. * src/AbstractProxyRequestCommand.cc
  2817. * src/AbstractProxyRequestCommand.h
  2818. * src/DNSCache.h
  2819. * src/DownloadEngine.cc
  2820. * src/DownloadEngine.h
  2821. * src/FtpInitiateConnectionCommand.cc
  2822. * src/FtpInitiateConnectionCommand.h
  2823. * src/FtpNegotiationCommand.cc
  2824. * src/FtpNegotiationCommand.h
  2825. * src/HttpInitiateConnectionCommand.cc
  2826. * src/HttpInitiateConnectionCommand.h
  2827. * src/HttpRequestCommand.cc
  2828. * src/HttpRequestCommand.h
  2829. * src/InitiateConnectionCommand.cc
  2830. * src/InitiateConnectionCommand.h
  2831. * test/DNSCacheTest.cc
  2832. * test/Makefile.am
  2833. * test/SimpleDNSCacheTest.cc
  2834. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2835. Updated doc
  2836. * src/download_helper.cc
  2837. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2838. Refactored fieldMan ctor.
  2839. * src/BitfieldMan.cc
  2840. * src/BitfieldMan.h
  2841. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. Don't print "No files to download." message if -S is given.
  2843. * src/main.cc
  2844. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2845. Set referer and method to newly created Request object.
  2846. * src/CreateRequestCommand.cc
  2847. * src/FileEntry.cc
  2848. * src/FileEntry.h
  2849. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2850. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2851. * src/AbstractCommand.cc
  2852. * src/AbstractCommand.h
  2853. * src/CreateRequestCommand.cc
  2854. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2855. Get proxy download working
  2856. * src/AbstractProxyRequestCommand.cc
  2857. * src/AbstractProxyRequestCommand.h
  2858. * src/AbstractProxyResponseCommand.cc
  2859. * src/AbstractProxyResponseCommand.h
  2860. * src/FtpInitiateConnectionCommand.cc
  2861. * src/FtpTunnelRequestCommand.cc
  2862. * src/FtpTunnelRequestCommand.h
  2863. * src/FtpTunnelResponseCommand.cc
  2864. * src/FtpTunnelResponseCommand.h
  2865. * src/HttpInitiateConnectionCommand.cc
  2866. * src/HttpProxyRequestCommand.cc
  2867. * src/HttpProxyRequestCommand.h
  2868. * src/HttpProxyResponseCommand.cc
  2869. * src/HttpProxyResponseCommand.h
  2870. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2871. Use SegmentMan::getSegment(cuid) for single file download.
  2872. * src/AbstractCommand.cc
  2873. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2874. Fixed bufSize calculation
  2875. * src/DownloadCommand.cc
  2876. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2877. Don't append "/" if base URI ends with "/".
  2878. * src/bittorrent_helper.cc
  2879. * test/url-list-multiFile.torrent
  2880. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. HTTP pipelining is now working. Fixed Segmention fault in
  2882. BitfieldMan's copy ctor.
  2883. * src/AbstractCommand.cc
  2884. * src/BitfieldMan.cc
  2885. * src/BitfieldMan.h
  2886. * src/DownloadCommand.cc
  2887. * src/HttpDownloadCommand.cc
  2888. * src/HttpRequest.cc
  2889. * src/SegmentMan.cc
  2890. * src/SegmentMan.h
  2891. * test/BitfieldManTest.cc
  2892. * test/SegmentManTest.cc
  2893. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2894. Removed ServerHost. Same functionality is implemented using
  2895. FileEntry's in-flight Request objects.
  2896. * src/AbstractCommand.cc
  2897. * src/BtDependency.cc
  2898. * src/CreateRequestCommand.cc
  2899. * src/FileEntry.cc
  2900. * src/FileEntry.h
  2901. * src/FtpNegotiationCommand.cc
  2902. * src/HttpResponseCommand.cc
  2903. * src/Makefile.am
  2904. * src/Metalink2RequestGroup.cc
  2905. * src/RequestGroup.cc
  2906. * src/RequestGroup.h
  2907. * src/ServerHost.cc: Removed
  2908. * src/ServerHost.h: Removed
  2909. * test/BtDependencyTest.cc
  2910. * test/FileEntryTest.cc
  2911. * test/RequestGroupTest.cc
  2912. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2913. Rewritten PeerStat handling. In the previous implementation,
  2914. faster command tries to find slower command. In this new
  2915. implementation, slower command tries to find faster command.
  2916. PeerStat is now created in each HTTP/FTP request to get download
  2917. rate correctly. If the download range is small, the download rate
  2918. tends to small and this will occur at the later stage of download.
  2919. * src/AbstractCommand.cc
  2920. * src/DownloadCommand.cc
  2921. * src/FileEntry.cc
  2922. * src/FileEntry.h
  2923. * src/Request.cc
  2924. * src/Request.h
  2925. * src/RequestGroup.h
  2926. * src/RequestGroupMan.cc
  2927. * src/SegmentMan.cc
  2928. * src/SegmentMan.h
  2929. * test/SegmentManTest.cc
  2930. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2931. Removed _uris from RequestGroup. All functions that refer to _uris
  2932. were moved to FileEntry. Exit status code are now defined in
  2933. DownloadResultCode.h.
  2934. * src/AbstractCommand.cc
  2935. * src/AdaptiveURISelector.cc
  2936. * src/AdaptiveURISelector.h
  2937. * src/AutoSaveCommand.cc
  2938. * src/BtPostDownloadHandler.cc
  2939. * src/CheckIntegrityDispatcherCommand.cc
  2940. * src/CookieStorage.cc
  2941. * src/DHTAutoSaveCommand.cc
  2942. * src/DHTBucketRefreshCommand.cc
  2943. * src/DHTEntryPointNameResolveCommand.cc
  2944. * src/DHTInteractionCommand.cc
  2945. * src/DHTPeerAnnounceCommand.cc
  2946. * src/DHTTokenUpdateCommand.cc
  2947. * src/DlAbortEx.h
  2948. * src/DlRetryEx.h
  2949. * src/DownloadCommand.cc
  2950. * src/DownloadContext.h
  2951. * src/DownloadFailureException.h
  2952. * src/DownloadResult.h
  2953. * src/DownloadResultCode.h
  2954. * src/FeedbackURISelector.cc
  2955. * src/FeedbackURISelector.h
  2956. * src/FileEntry.cc
  2957. * src/FileEntry.h
  2958. * src/FtpNegotiationCommand.cc
  2959. * src/HttpListenCommand.cc
  2960. * src/HttpResponseCommand.cc
  2961. * src/HttpServerResponseCommand.cc
  2962. * src/HttpSkipResponseCommand.cc
  2963. * src/InOrderURISelector.cc
  2964. * src/InOrderURISelector.h
  2965. * src/Makefile.am
  2966. * src/Makefile.in
  2967. * src/Metalink2RequestGroup.cc
  2968. * src/MultiUrlRequestInfo.cc
  2969. * src/MultiUrlRequestInfo.h
  2970. * src/OptionHandlerFactory.cc
  2971. * src/PeerListenCommand.cc
  2972. * src/RecoverableException.h
  2973. * src/RequestGroup.cc
  2974. * src/RequestGroup.h
  2975. * src/RequestGroupMan.cc
  2976. * src/RequestGroupMan.h
  2977. * src/TimedHaltCommand.cc
  2978. * src/TrackerWatcherCommand.cc
  2979. * src/URIResult.cc
  2980. * src/URIResult.h
  2981. * src/URISelector.h
  2982. * src/XmlRpcMethodImpl.cc
  2983. * src/bittorrent_helper.cc
  2984. * src/bittorrent_helper.h
  2985. * src/download_helper.cc
  2986. * src/main.cc
  2987. * src/option_processing.cc
  2988. * test/BtDependencyTest.cc
  2989. * test/BtPostDownloadHandlerTest.cc
  2990. * test/CookieStorageTest.cc
  2991. * test/DefaultBtMessageDispatcherTest.cc
  2992. * test/DownloadHandlerFactoryTest.cc
  2993. * test/DownloadHelperTest.cc
  2994. * test/FeedbackURISelectorTest.cc
  2995. * test/FileEntryTest.cc
  2996. * test/InOrderURISelectorTest.cc
  2997. * test/Metalink2RequestGroupTest.cc
  2998. * test/MetalinkPostDownloadHandlerTest.cc
  2999. * test/RequestGroupManTest.cc
  3000. * test/RequestGroupTest.cc
  3001. * test/XmlRpcMethodTest.cc
  3002. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3003. Removed MockBtContext.h
  3004. * test/Makefile.am
  3005. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3006. Removed _currentRequest from StreamCheckIntegrityEntry and
  3007. StreamFileAllocationEntry.
  3008. * src/AbstractCommand.cc
  3009. * src/HttpResponseCommand.cc
  3010. * src/RequestGroup.cc
  3011. * src/StreamCheckIntegrityEntry.cc
  3012. * src/StreamCheckIntegrityEntry.h
  3013. * src/StreamFileAllocationEntry.cc
  3014. * src/StreamFileAllocationEntry.h
  3015. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3016. Rewritten DownloadContext and removed SingleFileDownloadContext
  3017. and BtContext and its derived classes. BitTorrent specific
  3018. attributes are now set by DownloadContext::setAttribute() with key
  3019. bittorrent::BITTORRENT.
  3020. * src/AbstractBtMessage.cc
  3021. * src/AbstractBtMessage.h
  3022. * src/AbstractCommand.cc
  3023. * src/AbstractCommand.h
  3024. * src/AbstractProxyRequestCommand.cc
  3025. * src/AbstractProxyResponseCommand.cc
  3026. * src/ActivePeerConnectionCommand.cc
  3027. * src/ActivePeerConnectionCommand.h
  3028. * src/AnnounceList.cc
  3029. * src/BtCheckIntegrityEntry.cc
  3030. * src/BtConstants.h
  3031. * src/BtContext.h: Removed
  3032. * src/BtDependency.cc
  3033. * src/BtExtendedMessage.cc
  3034. * src/BtPieceMessage.cc
  3035. * src/BtPieceMessage.h
  3036. * src/BtPostDownloadHandler.cc
  3037. * src/BtRegistry.cc
  3038. * src/BtRegistry.h
  3039. * src/BtSetup.cc
  3040. * src/CheckIntegrityCommand.cc
  3041. * src/CheckIntegrityEntry.cc
  3042. * src/ChecksumCheckIntegrityEntry.cc
  3043. * src/ConsoleStatCalc.cc
  3044. * src/ContentTypeRequestGroupCriteria.cc
  3045. * src/DHTGetPeersCommand.cc
  3046. * src/DHTGetPeersCommand.h
  3047. * src/DHTPeerLookupTask.cc
  3048. * src/DHTPeerLookupTask.h
  3049. * src/DHTTaskFactory.h
  3050. * src/DHTTaskFactoryImpl.cc
  3051. * src/DHTTaskFactoryImpl.h
  3052. * src/DefaultBtAnnounce.cc
  3053. * src/DefaultBtAnnounce.h
  3054. * src/DefaultBtContext.cc: Removed
  3055. * src/DefaultBtContext.h: Removed
  3056. * src/DefaultBtInteractive.cc
  3057. * src/DefaultBtInteractive.h
  3058. * src/DefaultBtMessageDispatcher.cc
  3059. * src/DefaultBtMessageDispatcher.h
  3060. * src/DefaultBtMessageFactory.cc
  3061. * src/DefaultBtMessageFactory.h
  3062. * src/DefaultBtMessageReceiver.cc
  3063. * src/DefaultBtMessageReceiver.h
  3064. * src/DefaultBtProgressInfoFile.cc
  3065. * src/DefaultBtRequestFactory.cc
  3066. * src/DefaultBtRequestFactory.h
  3067. * src/DefaultExtensionMessageFactory.cc
  3068. * src/DefaultExtensionMessageFactory.h
  3069. * src/DefaultPeerStorage.cc
  3070. * src/DefaultPeerStorage.h
  3071. * src/DefaultPieceStorage.cc
  3072. * src/DefaultSegmentManFactory.cc
  3073. * src/DiskAdaptor.cc
  3074. * src/DiskAdaptor.h
  3075. * src/DownloadContext.cc
  3076. * src/DownloadContext.h
  3077. * src/DownloadEngine.cc
  3078. * src/DownloadEngineFactory.cc
  3079. * src/DownloadHandler.cc
  3080. * src/DownloadResult.h
  3081. * src/FileAllocationCommand.cc
  3082. * src/FileAllocationDispatcherCommand.cc
  3083. * src/FileAllocationEntry.cc
  3084. * src/FileEntry.h
  3085. * src/FillRequestGroupCommand.cc
  3086. * src/FtpDownloadCommand.cc
  3087. * src/FtpFinishDownloadCommand.cc
  3088. * src/FtpInitiateConnectionCommand.cc
  3089. * src/FtpNegotiationCommand.cc
  3090. * src/FtpTunnelRequestCommand.cc
  3091. * src/FtpTunnelResponseCommand.cc
  3092. * src/HandshakeExtensionMessage.cc
  3093. * src/HandshakeExtensionMessage.h
  3094. * src/HaveEraseCommand.cc
  3095. * src/HttpDownloadCommand.cc
  3096. * src/HttpInitiateConnectionCommand.cc
  3097. * src/HttpProxyRequestCommand.cc
  3098. * src/HttpProxyResponseCommand.cc
  3099. * src/HttpRequest.cc
  3100. * src/HttpRequest.h
  3101. * src/HttpRequestCommand.cc
  3102. * src/HttpResponseCommand.cc
  3103. * src/HttpServerBodyCommand.cc
  3104. * src/HttpServerCommand.cc
  3105. * src/HttpSkipResponseCommand.cc
  3106. * src/InitiateConnectionCommandFactory.cc
  3107. * src/InitiatorMSEHandshakeCommand.cc
  3108. * src/InitiatorMSEHandshakeCommand.h
  3109. * src/IteratableChecksumValidator.cc
  3110. * src/IteratableChecksumValidator.h
  3111. * src/IteratableChunkChecksumValidator.cc
  3112. * src/MSEHandshake.cc
  3113. * src/MSEHandshake.h
  3114. * src/Makefile.am
  3115. * src/Makefile.in
  3116. * src/Metalink2RequestGroup.cc
  3117. * src/MetalinkPostDownloadHandler.cc
  3118. * src/MultiDiskAdaptor.cc
  3119. * src/MultiDiskAdaptor.h
  3120. * src/MultiFileAllocationIterator.cc
  3121. * src/MultiUrlRequestInfo.cc
  3122. * src/PeerChokeCommand.cc
  3123. * src/PeerChokeCommand.h
  3124. * src/PeerInitiateConnectionCommand.cc
  3125. * src/PeerInitiateConnectionCommand.h
  3126. * src/PeerInteractionCommand.cc
  3127. * src/PeerInteractionCommand.h
  3128. * src/PeerReceiveHandshakeCommand.cc
  3129. * src/PieceHashCheckIntegrityEntry.cc
  3130. * src/RealtimeCommand.cc
  3131. * src/ReceiverMSEHandshakeCommand.cc
  3132. * src/RequestGroup.cc
  3133. * src/RequestGroup.h
  3134. * src/RequestGroupEntry.cc
  3135. * src/RequestGroupMan.cc
  3136. * src/SeedCheckCommand.cc
  3137. * src/SeedCheckCommand.h
  3138. * src/SegmentMan.cc
  3139. * src/ShareRatioSeedCriteria.h
  3140. * src/SingleFileDownloadContext.cc: Removed
  3141. * src/SingleFileDownloadContext.h: Removed
  3142. * src/SleepCommand.cc
  3143. * src/StreamCheckIntegrityEntry.cc
  3144. * src/TrackerWatcherCommand.cc
  3145. * src/TrackerWatcherCommand.h
  3146. * src/UnknownLengthPieceStorage.cc
  3147. * src/Util.cc
  3148. * src/Util.h
  3149. * src/XmlRpcMethodImpl.cc
  3150. * src/bittorrent_helper.cc
  3151. * src/bittorrent_helper.h
  3152. * src/download_helper.cc
  3153. * src/main.cc
  3154. * src/option_processing.cc
  3155. * test/BitfieldManTest.cc
  3156. * test/BittorrentHelperTest.cc
  3157. * test/BtCancelMessageTest.cc
  3158. * test/BtChokeMessageTest.cc
  3159. * test/BtDependencyTest.cc
  3160. * test/BtPieceMessageTest.cc
  3161. * test/BtPostDownloadHandlerTest.cc
  3162. * test/BtRegistryTest.cc
  3163. * test/BtRejectMessageTest.cc
  3164. * test/BtRequestMessageTest.cc
  3165. * test/DHTPeerAnnounceStorageTest.cc
  3166. * test/DefaultBtAnnounceTest.cc
  3167. * test/DefaultBtContextTest.cc: Removed
  3168. * test/DefaultBtMessageDispatcherTest.cc
  3169. * test/DefaultBtMessageFactoryTest.cc
  3170. * test/DefaultBtProgressInfoFileTest.cc
  3171. * test/DefaultBtRequestFactoryTest.cc
  3172. * test/DefaultExtensionMessageFactoryTest.cc
  3173. * test/DefaultPeerStorageTest.cc
  3174. * test/DefaultPieceStorageTest.cc
  3175. * test/DirectDiskAdaptorTest.cc
  3176. * test/DownloadContextTest.cc
  3177. * test/DownloadHandlerFactoryTest.cc
  3178. * test/DownloadHelperTest.cc
  3179. * test/HandshakeExtensionMessageTest.cc
  3180. * test/HttpRequestTest.cc
  3181. * test/HttpResponseTest.cc
  3182. * test/IteratableChecksumValidatorTest.cc
  3183. * test/IteratableChunkChecksumValidatorTest.cc
  3184. * test/MSEHandshakeTest.cc
  3185. * test/Makefile.am
  3186. * test/Makefile.in
  3187. * test/Metalink2RequestGroupTest.cc
  3188. * test/MetalinkPostDownloadHandlerTest.cc
  3189. * test/MockBtContext.h: Removed
  3190. * test/MockDHTTaskFactory.h
  3191. * test/MockDownloadContext.h: Removed
  3192. * test/MockPieceStorage.h
  3193. * test/MultiDiskAdaptorTest.cc
  3194. * test/MultiFileAllocationIteratorTest.cc
  3195. * test/RequestGroupManTest.cc
  3196. * test/RequestGroupTest.cc
  3197. * test/SegmentManTest.cc
  3198. * test/ShareRatioSeedCriteriaTest.cc
  3199. * test/SingleFileDownloadContextTest.cc: Removed
  3200. * test/UtilTest.cc
  3201. * test/XmlRpcMethodTest.cc
  3202. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3203. Added experimental support of WEB-Seeding for multi-file torrent.
  3204. Due to fundamental changes in file handling in HTTP/FTP code, many
  3205. functions are not working: PeerStat, ServerHost, proxy..etc
  3206. * src/AbstractCommand.cc
  3207. * src/AbstractCommand.h
  3208. * src/BitfieldMan.cc
  3209. * src/BitfieldMan.h
  3210. * src/CreateRequestCommand.cc
  3211. * src/CreateRequestCommand.h
  3212. * src/DefaultPieceStorage.cc
  3213. * src/DefaultPieceStorage.h
  3214. * src/DownloadCommand.cc
  3215. * src/DownloadCommand.h
  3216. * src/DownloadContext.cc
  3217. * src/DownloadContext.h
  3218. * src/FileEntry.cc
  3219. * src/FileEntry.h
  3220. * src/FtpDownloadCommand.cc
  3221. * src/FtpDownloadCommand.h
  3222. * src/FtpFinishDownloadCommand.cc
  3223. * src/FtpFinishDownloadCommand.h
  3224. * src/FtpInitiateConnectionCommand.cc
  3225. * src/FtpInitiateConnectionCommand.h
  3226. * src/FtpNegotiationCommand.cc
  3227. * src/FtpNegotiationCommand.h
  3228. * src/FtpTunnelResponseCommand.cc
  3229. * src/HttpDownloadCommand.cc
  3230. * src/HttpDownloadCommand.h
  3231. * src/HttpInitiateConnectionCommand.cc
  3232. * src/HttpInitiateConnectionCommand.h
  3233. * src/HttpProxyResponseCommand.cc
  3234. * src/HttpRequest.cc
  3235. * src/HttpRequest.h
  3236. * src/HttpRequestCommand.cc
  3237. * src/HttpRequestCommand.h
  3238. * src/HttpResponseCommand.cc
  3239. * src/HttpResponseCommand.h
  3240. * src/HttpSkipResponseCommand.cc
  3241. * src/HttpSkipResponseCommand.h
  3242. * src/InitiateConnectionCommand.cc
  3243. * src/InitiateConnectionCommand.h
  3244. * src/InitiateConnectionCommandFactory.cc
  3245. * src/InitiateConnectionCommandFactory.h
  3246. * src/Makefile.am
  3247. * src/PieceStorage.h
  3248. * src/RequestGroup.cc
  3249. * src/RequestGroup.h
  3250. * src/RequestGroupMan.cc
  3251. * src/SegmentMan.cc
  3252. * src/SegmentMan.h
  3253. * src/SingleFileDownloadContext.h
  3254. * src/StreamFileAllocationEntry.cc
  3255. * src/TrackerWatcherCommand.cc
  3256. * src/UnknownLengthPieceStorage.cc
  3257. * src/UnknownLengthPieceStorage.h
  3258. * src/array_fun.h
  3259. * src/bitfield.h
  3260. * src/download_helper.cc
  3261. * test/DownloadContextTest.cc
  3262. * test/Makefile.am
  3263. * test/MockDownloadContext.h
  3264. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3265. Added tellWaiting XML-RPC method.
  3266. * src/SingleFileDownloadContext.cc
  3267. * src/XmlRpcMethodFactory.cc
  3268. * src/XmlRpcMethodImpl.cc
  3269. * src/XmlRpcMethodImpl.h
  3270. * test/XmlRpcMethodTest.cc
  3271. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3272. Updated CookieStorageTest
  3273. * test/CookieStorageTest.cc
  3274. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3275. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3276. handle excepion inside these functions.
  3277. * src/LibgnutlsTLSContext.cc
  3278. * src/LibgnutlsTLSContext.h
  3279. * src/LibsslTLSContext.cc
  3280. * src/LibsslTLSContext.h
  3281. * src/MultiUrlRequestInfo.cc
  3282. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Added comment
  3284. * src/RequestGroup.cc
  3285. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. In CookieStorage::load() and saveNsFormat(), handle exception
  3287. inside the functions. When saving Cookies, first write temporary
  3288. file and after successful writes, then renames it to final
  3289. destination.
  3290. * src/CookieStorage.cc
  3291. * src/CookieStorage.h
  3292. * src/MultiUrlRequestInfo.cc
  3293. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3294. The default value of --dir option is the absolute path to the
  3295. current directory. If getcwd() is failed, then it is ".", which is
  3296. the same value with old implementation. This change is necessary
  3297. because after daemon() call, the current working directory is
  3298. changed to /.
  3299. * src/File.cc
  3300. * src/File.h
  3301. * src/OptionHandlerFactory.cc
  3302. * src/option_processing.cc
  3303. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3304. Call daemon() with arguments(0,0), which means daemon() changes
  3305. current working directory to / and redirects stdin, stdout and
  3306. stderr to /dev/null.
  3307. * src/option_processing.cc
  3308. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3309. Small performance optimizations.
  3310. * src/RequestGroupMan.cc
  3311. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3312. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3313. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3314. * src/RequestGroupMan.cc
  3315. * src/RequestGroupMan.h
  3316. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3317. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3318. setNoWiat(true) if newly created command calls
  3319. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3320. * src/HttpListenCommand.cc
  3321. * src/HttpServerBodyCommand.cc
  3322. * src/HttpServerCommand.cc
  3323. * src/HttpServerResponseCommand.cc
  3324. * src/InitiateConnectionCommand.cc
  3325. * src/RequestGroup.cc
  3326. * src/StreamFileAllocationEntry.cc
  3327. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. Removed include vector
  3329. * src/BtRegistry.h
  3330. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3331. Rewritten BtRegistry
  3332. * src/BtRegistry.cc
  3333. * src/BtRegistry.h
  3334. * src/BtSetup.cc
  3335. * src/ConsoleStatCalc.cc
  3336. * src/PeerInteractionCommand.cc
  3337. * src/PeerReceiveHandshakeCommand.cc
  3338. * src/ReceiverMSEHandshakeCommand.cc
  3339. * src/RequestGroup.cc
  3340. * src/XmlRpcMethodImpl.cc
  3341. * test/BtRegistryTest.cc
  3342. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3343. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3344. * src/DefaultBtProgressInfoFile.cc
  3345. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3346. Throw an exception if position is less than 0.
  3347. * src/XmlRpcMethodImpl.cc
  3348. * test/XmlRpcMethodTest.cc
  3349. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3350. Use writeFilePath() in ConsoleStatCalc.cc
  3351. * src/ConsoleStatCalc.cc
  3352. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3353. Receive the return value as const reference from
  3354. DownloadContext::getFileEntries().
  3355. * src/DefaultPieceStorage.cc
  3356. * src/RequestGroupMan.cc
  3357. * src/XmlRpcMethodImpl.cc
  3358. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3359. DownloadContext now has _fileEntries so that
  3360. DownloadContext::getFileEntries() can returns its const reference.
  3361. * src/DefaultBtContext.cc
  3362. * src/DefaultBtContext.h
  3363. * src/DownloadContext.cc
  3364. * src/DownloadContext.h
  3365. * src/SingleFileDownloadContext.cc
  3366. * src/SingleFileDownloadContext.h
  3367. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3368. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3369. writeFilePath() function template from RequestGroupMan.cc to
  3370. FileEntry.h
  3371. * src/FileEntry.h
  3372. * src/RequestGroupMan.cc
  3373. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3374. Documented 'position' parameter is starting from 0 in man page.
  3375. * doc/aria2c.1.txt
  3376. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3377. Updated doc.
  3378. * src/MSEHandshake.cc
  3379. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3380. Removed _acceptFeatures and its accessor functions from
  3381. RequestGroup since they are not used practically.
  3382. * src/HttpRequestCommand.cc
  3383. * src/RequestGroup.cc
  3384. * src/RequestGroup.h
  3385. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3386. Removed member _maxTries from RequestGroup class to avoid
  3387. duplicate option value. Those classes who refer this variable
  3388. should use option value of PREF_MAX_TRIES directly.
  3389. * src/AbstractCommand.cc
  3390. * src/RequestGroup.cc
  3391. * src/RequestGroup.h
  3392. * src/TrackerWatcherCommand.cc
  3393. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. * Release 1.4.1
  3395. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3396. Fixed compiler warnings on netbsd
  3397. * src/DHTConnectionImpl.cc
  3398. * src/PeerListenCommand.cc
  3399. * src/PeerSessionResource.cc
  3400. * src/SegmentMan.cc
  3401. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Updated Ukrainian translation. Thanks to all translators.
  3403. * po/uk.po
  3404. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Bump up version number to 1.4.1.
  3406. * configure.ac
  3407. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3408. Added unit tests for strjoin, strconcat and strappend.
  3409. * test/a2functionalTest.cc
  3410. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3411. Rewritten strconcat and strappend using operator+ instead of
  3412. append().
  3413. * src/a2functional.h
  3414. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3415. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3416. is enabled.
  3417. * src/Makefile.am
  3418. * test/Makefile.am
  3419. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3420. Added countSeeder() function which counts seeder in the given
  3421. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3422. * src/ConsoleStatCalc.cc
  3423. * src/Peer.h
  3424. * src/XmlRpcMethodImpl.cc
  3425. * test/PeerTest.cc
  3426. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3427. Documented missing seeder in getPeers xml-rpc method.
  3428. Documented uploadLength and numSeeders.
  3429. * doc/aria2c.1.txt
  3430. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3431. Added uploadLength and numSeeders to the response of tellStatus
  3432. xml-rpc method. Assert that PeerStorage instance is not null
  3433. instead of checking if statement. It should be non-null in this
  3434. context.
  3435. * src/XmlRpcMethodImpl.cc
  3436. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3437. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3438. * src/XmlRpcResponse.cc
  3439. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3440. Avoid intermediate object during string concatenation.
  3441. * src/HttpRequest.cc
  3442. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Added strjoin function template. Use it in pathJoin()
  3444. * src/Util.h
  3445. * src/a2functional.h
  3446. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3447. Avoid intermediate object during string concatenation. Replaced
  3448. post-increment unary operator with pre-increment one in for loop.
  3449. * src/AdaptiveURISelector.cc
  3450. * src/AnnounceList.cc
  3451. * src/AuthConfig.h
  3452. * src/BtBitfieldMessage.cc
  3453. * src/BtExtendedMessage.cc
  3454. * src/BtHandshakeMessage.cc
  3455. * src/BtPieceMessage.cc
  3456. * src/BtPortMessage.cc
  3457. * src/Cookie.cc
  3458. * src/DHTAnnouncePeerMessage.cc
  3459. * src/DHTAutoSaveCommand.cc
  3460. * src/DHTGetPeersReplyMessage.cc
  3461. * src/DHTNode.cc
  3462. * src/DHTQueryMessage.cc
  3463. * src/DHTResponseMessage.cc
  3464. * src/DHTUnknownMessage.cc
  3465. * src/DefaultBtAnnounce.cc
  3466. * src/DefaultBtContext.cc
  3467. * src/DefaultBtInteractive.cc
  3468. * src/DefaultBtProgressInfoFile.cc
  3469. * src/DefaultPeerStorage.cc
  3470. * src/DownloadEngine.cc
  3471. * src/FeatureConfig.cc
  3472. * src/File.cc
  3473. * src/FtpConnection.cc
  3474. * src/FtpNegotiationCommand.cc
  3475. * src/HandshakeExtensionMessage.cc
  3476. * src/HttpConnection.cc
  3477. * src/HttpRequest.cc
  3478. * src/HttpResponseCommand.cc
  3479. * src/HttpServer.cc
  3480. * src/IndexBtMessage.cc
  3481. * src/Metalink2RequestGroup.cc
  3482. * src/OptionHandlerImpl.h
  3483. * src/PStringBuildVisitor.cc
  3484. * src/Peer.cc
  3485. * src/PeerListenCommand.cc
  3486. * src/Piece.cc
  3487. * src/RangeBtMessage.cc
  3488. * src/Request.cc
  3489. * src/Request.h
  3490. * src/RequestGroup.cc
  3491. * src/RequestGroupMan.cc
  3492. * src/ServerStat.cc
  3493. * src/ServerStatMan.cc
  3494. * src/UTPexExtensionMessage.cc
  3495. * src/Util.cc
  3496. * src/a2functional.h
  3497. * src/download_helper.cc
  3498. * src/messageDigest.cc
  3499. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. Unchoke a peer randomly at first and second choke round in seed
  3501. state.
  3502. * src/BtSeederStateChoke.cc
  3503. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3504. Added (sock_t) to quiet compiler warnings in MinGW
  3505. * src/SocketCore.cc
  3506. * src/SocketCore.h
  3507. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3509. * src/EpollEventPoll.h
  3510. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3511. Added fork() emulation using CreateProcess() in MinGW
  3512. * src/RequestGroupMan.cc
  3513. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3514. * Release 1.4.0
  3515. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3516. Added utf8.torrent to EXTRA_DIST
  3517. * test/Makefile.am
  3518. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Fixed docs of aria2.addMetalink xml-rpc method.
  3520. * doc/aria2c.1.txt
  3521. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. Added Slovak translation. Updated Ukrainian and Brazilian
  3523. Portuguese translation. Thanks to all translators.
  3524. * po/sk.po
  3525. * po/uk.po
  3526. * po/pt_BR.po
  3527. * po/LINGUAS
  3528. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Added test case for XmlRpcProcessor to fail to parse malformed
  3530. document.
  3531. * test/XmlRpcRequestProcessorTest.cc
  3532. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3533. Removed *.gmo files in po because they are generated on 'make
  3534. dist'
  3535. * po/*.gmo
  3536. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3537. Documented max-concurrent-downloads of changeGlobalOption method
  3538. in man page.
  3539. * doc/aria2c.1.txt
  3540. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3541. Added max-concurrent-downloads option to changeGlobalOption
  3542. xml-rpc method. Rewritten loop conditional in
  3543. RequestGroupMan::fillRequestGroupFromReserver().
  3544. * src/RequestGroupMan.cc
  3545. * src/RequestGroupMan.h
  3546. * src/XmlRpcMethod.cc
  3547. * src/XmlRpcMethodImpl.cc
  3548. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Documented position parameter in man page.
  3550. * doc/aria2c.1.txt
  3551. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Added 'position' parameter to addUri, addTorrent and addMetalink
  3553. xml-rpc method.
  3554. * src/RequestGroupMan.cc
  3555. * src/RequestGroupMan.h
  3556. * src/XmlRpcMethodImpl.cc
  3557. * test/XmlRpcMethodTest.cc
  3558. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. Removed Peer.cc from compile source list when --disable-bittorrent
  3560. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3561. takes Peer.
  3562. * src/DefaultPieceStorage.cc
  3563. * src/DefaultPieceStorage.h
  3564. * src/Makefile.am
  3565. * src/PieceStorage.h
  3566. * src/UnknownLengthPieceStorage.cc
  3567. * src/UnknownLengthPieceStorage.h
  3568. * test/MockPieceStorage.h
  3569. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3570. Implemented getter methods in header files to give them more
  3571. chance of optimization.
  3572. Return const reference for SharadHandle if possible.
  3573. * src/AbstractAuthResolver.cc
  3574. * src/AbstractAuthResolver.h
  3575. * src/AbstractBtMessage.cc
  3576. * src/AbstractBtMessage.h
  3577. * src/AbstractSingleDiskAdaptor.cc
  3578. * src/AbstractSingleDiskAdaptor.h
  3579. * src/AsyncNameResolver.cc
  3580. * src/AsyncNameResolver.h
  3581. * src/BNode.cc
  3582. * src/BNode.h
  3583. * src/BitfieldMan.cc
  3584. * src/BitfieldMan.h
  3585. * src/BtAbortOutstandingRequestEvent.h
  3586. * src/BtExtendedMessage.cc
  3587. * src/BtExtendedMessage.h
  3588. * src/BtSeederStateChoke.cc
  3589. * src/BtSeederStateChoke.h
  3590. * src/Cookie.cc
  3591. * src/Cookie.h
  3592. * src/DHTBucket.cc
  3593. * src/DHTBucket.h
  3594. * src/DHTConnectionImpl.cc
  3595. * src/DHTConnectionImpl.h
  3596. * src/DHTFindNodeReplyMessage.cc
  3597. * src/DHTFindNodeReplyMessage.h
  3598. * src/DHTGetPeersReplyMessage.cc
  3599. * src/DHTGetPeersReplyMessage.h
  3600. * src/DHTInteractionCommand.cc
  3601. * src/DHTMessage.cc
  3602. * src/DHTMessage.h
  3603. * src/DHTMessageDispatcherImpl.cc
  3604. * src/DHTMessageEntry.cc
  3605. * src/DHTMessageReceiver.cc
  3606. * src/DHTMessageReceiver.h
  3607. * src/DHTMessageTrackerEntry.cc
  3608. * src/DHTMessageTrackerEntry.h
  3609. * src/DHTPeerAnnounceEntry.cc
  3610. * src/DHTPeerAnnounceEntry.h
  3611. * src/DHTPeerLookupTask.cc
  3612. * src/DHTPeerLookupTask.h
  3613. * src/DHTRoutingTableDeserializer.cc
  3614. * src/DHTRoutingTableDeserializer.h
  3615. * src/DefaultBtAnnounce.cc
  3616. * src/DefaultBtAnnounce.h
  3617. * src/DefaultBtMessageDispatcher.cc
  3618. * src/DefaultBtMessageDispatcher.h
  3619. * src/DefaultBtRequestFactory.cc
  3620. * src/DefaultBtRequestFactory.h
  3621. * src/DiskAdaptor.cc
  3622. * src/DiskAdaptor.h
  3623. * src/DownloadContext.cc
  3624. * src/DownloadContext.h
  3625. * src/DownloadEngine.cc
  3626. * src/DownloadEngine.h
  3627. * src/EpollEventPoll.cc
  3628. * src/EpollEventPoll.h
  3629. * src/FtpConnection.cc
  3630. * src/FtpConnection.h
  3631. * src/HttpConnection.cc
  3632. * src/HttpConnection.h
  3633. * src/HttpHeader.cc
  3634. * src/HttpHeader.h
  3635. * src/HttpRequest.cc
  3636. * src/HttpRequest.h
  3637. * src/HttpResponse.cc
  3638. * src/HttpResponse.h
  3639. * src/LibsslTLSContext.cc
  3640. * src/LibsslTLSContext.h
  3641. * src/MSEHandshake.cc
  3642. * src/MSEHandshake.h
  3643. * src/MetalinkEntry.cc
  3644. * src/MetalinkEntry.h
  3645. * src/MetalinkParserController.cc
  3646. * src/MetalinkParserController.h
  3647. * src/MetalinkParserStateMachine.cc
  3648. * src/MetalinkParserStateMachine.h
  3649. * src/MultiDiskAdaptor.cc
  3650. * src/MultiDiskAdaptor.h
  3651. * src/NetrcAuthResolver.cc
  3652. * src/NetrcAuthResolver.h
  3653. * src/Peer.cc
  3654. * src/Peer.h
  3655. * src/PeerSessionResource.cc
  3656. * src/PeerSessionResource.h
  3657. * src/Piece.cc
  3658. * src/Piece.h
  3659. * src/PieceStatMan.cc
  3660. * src/PieceStatMan.h
  3661. * src/Request.cc
  3662. * src/Request.h
  3663. * src/RequestGroup.cc
  3664. * src/RequestGroup.h
  3665. * src/RequestGroupMan.cc
  3666. * src/RequestGroupMan.h
  3667. * src/RequestSlot.cc
  3668. * src/RequestSlot.h
  3669. * src/SegmentMan.cc
  3670. * src/SegmentMan.h
  3671. * src/SelectEventPoll.cc
  3672. * src/SelectEventPoll.h
  3673. * src/ServerStat.cc
  3674. * src/ServerStat.h
  3675. * src/Signature.cc
  3676. * src/Signature.h
  3677. * src/URIResult.cc
  3678. * src/URIResult.h
  3679. * src/UTPexExtensionMessage.cc
  3680. * src/UTPexExtensionMessage.h
  3681. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3682. Fixed compile error without BitTorrent and Metalink support.
  3683. * src/XmlRpcMethod.cc
  3684. * src/XmlRpcMethodFactory.cc
  3685. * src/XmlRpcMethodImpl.cc
  3686. * src/XmlRpcMethodImpl.h
  3687. * test/XmlRpcMethodTest.cc
  3688. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3689. Rewritten the help message for --allow-overwrite option.
  3690. * doc/aria2c.1.txt
  3691. * src/usage_text.h
  3692. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3693. Fixed typo
  3694. * doc/aria2c.1.txt
  3695. * src/usage_text.h
  3696. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3697. Updated README for 1.4.0 release. Use new table syntax of
  3698. asciidoc.
  3699. * README
  3700. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3701. Documented --xml-rpc-max-request-size option in man page.
  3702. * doc/aria2c.1.txt
  3703. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3704. Moved C_* constants from BtContext to DefaultBtContext.
  3705. * src/BtContext.cc: Removed.
  3706. * src/BtContext.h
  3707. * src/DefaultBtContext.cc
  3708. * src/DefaultBtContext.h
  3709. * src/Makefile.am
  3710. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3711. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3712. path key respectively when persing .torrent file.
  3713. * src/BtContext.cc
  3714. * src/BtContext.h
  3715. * src/DefaultBtContext.cc
  3716. * test/DefaultBtContextTest.cc
  3717. * test/utf8.torrent
  3718. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3719. Added --xml-rpc-max-request-size option to limit the size of
  3720. XML-RPC request.
  3721. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3722. Documented XML-RPC API in man page.
  3723. * doc/aria2c.1.txt
  3724. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3725. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3726. will break strict-aliasing rules
  3727. * src/PeerConnection.cc
  3728. * test/DHTRoutingTableSerializerTest.cc
  3729. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3730. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3731. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3732. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3733. PKG_CHECK_MODULES macro uses latter name.
  3734. * m4/sqlite3.m4
  3735. * src/Makefile.am
  3736. * test/Makefile.am
  3737. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3738. Fixed typo
  3739. * configure.ac
  3740. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3741. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3742. presence of libgnutls using pkg-config first. If it fails, fall
  3743. back to old macro libgnutls.m4.
  3744. * configure.ac
  3745. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3746. Use s itself instead of !s.bad()
  3747. * src/CookieStorage.cc
  3748. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3749. Documented --on-download-* option and --save-cookies option in man
  3750. page.
  3751. * doc/aria2c.1.txt
  3752. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3753. Set possible values for --load-cookie option to "/path/to/file".
  3754. * src/OptionHandlerFactory.cc
  3755. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Added --save-cookies option.
  3757. * src/Cookie.cc
  3758. * src/Cookie.h
  3759. * src/CookieStorage.cc
  3760. * src/CookieStorage.h
  3761. * src/MultiUrlRequestInfo.cc
  3762. * src/OptionHandlerFactory.cc
  3763. * src/prefs.cc
  3764. * src/prefs.h
  3765. * src/usage_text.h
  3766. * test/CookieStorageTest.cc
  3767. * test/CookieTest.cc
  3768. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Removed tellAll XML-RPC command because its reponse tends to be
  3770. big if stopped/waiting downloads pile up.
  3771. * src/XmlRpcMethodFactory.cc
  3772. * src/XmlRpcMethodImpl.cc
  3773. * src/XmlRpcMethodImpl.h
  3774. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3775. Added the ability to execute command when download starts and
  3776. stops. You can also specify command for particular cases such as
  3777. complete/error download. Added --on-download-start,
  3778. --on-download-stop, --on-download-complete and --on-download-error
  3779. option.
  3780. * src/OptionHandlerFactory.cc
  3781. * src/RequestGroupMan.cc
  3782. * src/prefs.cc
  3783. * src/prefs.h
  3784. * src/usage_text.h
  3785. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Fixed test error
  3787. * test/BencodeTest.cc
  3788. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3789. Added unit tests.
  3790. * test/XmlRpcMethodTest.cc
  3791. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3792. Made exception message more verbose.
  3793. * src/bencode.cc
  3794. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3795. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3796. space in console readout. Also they are now shown in MiB/s if
  3797. speed > 1024KiB/s.
  3798. * src/ConsoleStatCalc.cc
  3799. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Added SEED to console output, which represents the number of
  3801. seeders currently the client is connecting to.
  3802. * src/ConsoleStatCalc.cc
  3803. * src/ConsoleStatCalc.h
  3804. * src/DownloadEngine.cc
  3805. * src/NullStatCalc.h
  3806. * src/StatCalc.h
  3807. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3808. Added source filename(__FILE__) and line number(__LINE__) to
  3809. exception message.
  3810. * src/AbstractCommand.cc
  3811. * src/AbstractDiskWriter.cc
  3812. * src/AbstractProxyResponseCommand.cc
  3813. * src/BDE.h
  3814. * src/BtAllowedFastMessage.cc
  3815. * src/BtHandshakeMessageValidator.h
  3816. * src/BtHaveAllMessage.cc
  3817. * src/BtHaveNoneMessage.cc
  3818. * src/BtPieceMessage.cc
  3819. * src/BtRejectMessage.cc
  3820. * src/ChunkedDecoder.cc
  3821. * src/CookieStorage.cc
  3822. * src/DHTAnnouncePeerMessage.cc
  3823. * src/DHTEntryPointNameResolveCommand.cc
  3824. * src/DHTMessageFactoryImpl.cc
  3825. * src/DHTMessageTracker.cc
  3826. * src/DHTRoutingTableDeserializer.cc
  3827. * src/DHTRoutingTableSerializer.cc
  3828. * src/DHTSetup.cc
  3829. * src/DHTTokenTracker.cc
  3830. * src/DefaultBtAnnounce.cc
  3831. * src/DefaultBtContext.cc
  3832. * src/DefaultBtInteractive.cc
  3833. * src/DefaultBtMessageFactory.cc
  3834. * src/DefaultBtProgressInfoFile.cc
  3835. * src/DefaultExtensionMessageFactory.cc
  3836. * src/DlAbortEx.h
  3837. * src/DlRetryEx.h
  3838. * src/DownloadCommand.cc
  3839. * src/DownloadEngineFactory.cc
  3840. * src/DownloadFailureException.h
  3841. * src/Exception.cc
  3842. * src/Exception.h
  3843. * src/ExpatMetalinkProcessor.cc
  3844. * src/ExpatXmlRpcRequestProcessor.cc
  3845. * src/FallocFileAllocationIterator.cc
  3846. * src/FatalException.h
  3847. * src/FtpConnection.cc
  3848. * src/FtpFinishDownloadCommand.cc
  3849. * src/FtpInitiateConnectionCommand.cc
  3850. * src/FtpNegotiationCommand.cc
  3851. * src/GZipDecoder.cc
  3852. * src/HandshakeExtensionMessage.cc
  3853. * src/HttpConnection.cc
  3854. * src/HttpHeaderProcessor.cc
  3855. * src/HttpInitiateConnectionCommand.cc
  3856. * src/HttpResponse.cc
  3857. * src/HttpResponseCommand.cc
  3858. * src/HttpServer.cc
  3859. * src/HttpSkipResponseCommand.cc
  3860. * src/InitiateConnectionCommandFactory.cc
  3861. * src/IteratableChunkChecksumValidator.cc
  3862. * src/LibgcryptARC4Context.h
  3863. * src/LibgcryptARC4Decryptor.h
  3864. * src/LibgcryptARC4Encryptor.h
  3865. * src/LibgcryptDHKeyExchange.h
  3866. * src/LibgnutlsTLSContext.cc
  3867. * src/LibsslARC4Context.h
  3868. * src/LibsslARC4Decryptor.h
  3869. * src/LibsslARC4Encryptor.h
  3870. * src/LibsslDHKeyExchange.h
  3871. * src/LibsslTLSContext.cc
  3872. * src/MSEHandshake.cc
  3873. * src/MessageDigestHelper.cc
  3874. * src/MetalinkHelper.cc
  3875. * src/MultiDiskAdaptor.cc
  3876. * src/NameMatchOptionHandler.h
  3877. * src/NameResolver.cc
  3878. * src/Netrc.cc
  3879. * src/NsCookieParser.cc
  3880. * src/OptionHandlerException.cc
  3881. * src/OptionHandlerException.h
  3882. * src/OptionHandlerImpl.h
  3883. * src/OptionParser.cc
  3884. * src/ParameterizedStringParser.cc
  3885. * src/PeerAbstractCommand.cc
  3886. * src/PeerConnection.cc
  3887. * src/PeerMessageUtil.cc
  3888. * src/PeerReceiveHandshakeCommand.cc
  3889. * src/Platform.cc
  3890. * src/ReceiverMSEHandshakeCommand.cc
  3891. * src/RecoverableException.h
  3892. * src/RequestGroup.cc
  3893. * src/SimpleLogger.cc
  3894. * src/SocketCore.cc
  3895. * src/Sqlite3MozCookieParser.cc
  3896. * src/UTPexExtensionMessage.cc
  3897. * src/Util.cc
  3898. * src/XML2SAXMetalinkProcessor.cc
  3899. * src/Xml2XmlRpcRequestProcessor.cc
  3900. * src/XmlRpcMethodImpl.cc
  3901. * src/bencode.cc
  3902. * src/download_helper.cc
  3903. * src/messageDigest.h
  3904. * test/ExceptionTest.cc
  3905. * test/TestUtil.cc
  3906. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3907. Bump up version number to 1.4.0
  3908. * configure.ac
  3909. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3910. Added 2files.metalink to EXTRA_DIST
  3911. * test/Makefile.am
  3912. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3913. Added missing 2files.metalink
  3914. * test/2files.metalink
  3915. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3916. Show "[MEMORY]" prefix before filename in download summary if it
  3917. is downloaded into memory.
  3918. * src/DownloadResult.h
  3919. * src/RequestGroup.cc
  3920. * src/RequestGroupMan.cc
  3921. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3923. * src/ExpatXmlRpcRequestProcessor.cc
  3924. * src/Xml2XmlRpcRequestProcessor.cc
  3925. * src/message.h
  3926. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3927. Defined const BDEs to avoid duplicate instantiation.
  3928. Defined MSG_GID_NOT_PROVIDED.
  3929. * src/XmlRpcMethodImpl.cc
  3930. * src/message.h
  3931. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3932. Code cleanup
  3933. * src/Xml2XmlRpcRequestProcessor.cc
  3934. * src/Xml2XmlRpcRequestProcessor.h
  3935. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3936. Defined ENABLE_XML_RPC
  3937. * configure.ac
  3938. * configure
  3939. * config.h.in
  3940. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Added ExpatXmlRpcRequestProcessor
  3942. * src/ExpatXmlRpcRequestProcessor.cc
  3943. * src/ExpatXmlRpcRequestProcessor.h
  3944. * src/Makefile.am
  3945. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. Added tests for addTorrent and addMetalink command.
  3947. * test/TestUtil.cc
  3948. * test/TestUtil.h
  3949. * test/XmlRpcMethodTest.cc
  3950. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3951. Corrected the description of --file-allocation option.
  3952. * doc/aria2c.1.txt
  3953. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3954. Added tellAll command.
  3955. * src/XmlRpcMethodFactory.cc
  3956. * src/XmlRpcMethodImpl.cc
  3957. * src/XmlRpcMethodImpl.h
  3958. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3959. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3960. * src/XmlRpcMethodImpl.cc
  3961. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3962. Added changeGlobalOption command. Currently,
  3963. max-overall-download-limit and max-overall-upload-limit option are
  3964. available.
  3965. * src/RequestGroupMan.h
  3966. * src/XmlRpcMethod.cc
  3967. * src/XmlRpcMethod.h
  3968. * src/XmlRpcMethodFactory.cc
  3969. * src/XmlRpcMethodImpl.cc
  3970. * src/XmlRpcMethodImpl.h
  3971. * test/XmlRpcMethodTest.cc
  3972. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3973. Added changeOption command. Currently, max-download-limit,
  3974. max-upload-limit option are available in this command.
  3975. * src/RequestGroup.h
  3976. * src/XmlRpcMethod.cc
  3977. * src/XmlRpcMethod.h
  3978. * src/XmlRpcMethodFactory.cc
  3979. * src/XmlRpcMethodImpl.cc
  3980. * src/XmlRpcMethodImpl.h
  3981. * test/XmlRpcMethodTest.cc
  3982. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3983. Added purgeDownloadResult command.
  3984. * src/RequestGroupMan.cc
  3985. * src/RequestGroupMan.h
  3986. * src/XmlRpcMethodFactory.cc
  3987. * src/XmlRpcMethodImpl.cc
  3988. * src/XmlRpcMethodImpl.h
  3989. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3990. Refactored.
  3991. * src/XmlRpcMethod.cc
  3992. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3993. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3994. XmlRpcResponse.
  3995. * src/HttpServerBodyCommand.cc
  3996. * src/Makefile.am
  3997. * src/XmlRpcMethod.cc
  3998. * src/XmlRpcMethod.h
  3999. * src/XmlRpcMethodImpl.cc
  4000. * src/XmlRpcResponse.cc
  4001. * src/XmlRpcResponse.h
  4002. * test/XmlRpcMethodTest.cc
  4003. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. In XML-RPC option struct, header and index-out option can take
  4005. array as value.
  4006. * src/XmlRpcMethod.cc
  4007. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4008. Removed unused option member from PeerConnection.
  4009. * src/InitiatorMSEHandshakeCommand.cc
  4010. * src/PeerConnection.cc
  4011. * src/PeerConnection.h
  4012. * src/PeerInteractionCommand.cc
  4013. * src/PeerReceiveHandshakeCommand.cc
  4014. * src/ReceiverMSEHandshakeCommand.cc
  4015. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4016. Added "seeder" key to getPeers response.
  4017. * src/XmlRpcMethodImpl.cc
  4018. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4019. Added addMetalink XML-RPC command.
  4020. * src/XmlRpcMethodFactory.cc
  4021. * src/XmlRpcMethodImpl.cc
  4022. * src/XmlRpcMethodImpl.h
  4023. * src/download_helper.cc
  4024. * src/download_helper.h
  4025. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4026. Fixed the bug that POU peers are never choked in seeding.
  4027. * src/BtSeederStateChoke.cc
  4028. * src/BtSeederStateChoke.h
  4029. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4030. Added web-seeding URI handling in addTorrent command.
  4031. * src/XmlRpcMethodImpl.cc
  4032. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4033. Added "length" key to getFiles response.
  4034. * src/XmlRpcMethodImpl.cc
  4035. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4036. Moved --no-netrc option from ftp option section to http/ftp option
  4037. section.
  4038. * doc/aria2c.1.txt
  4039. * src/OptionHandlerFactory.cc
  4040. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4041. Removed garbage "\" character before '
  4042. * doc/aria2c.1.txt
  4043. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4044. Removed garbage "\" character before http.
  4045. * doc/aria2c.1.txt
  4046. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4047. Documented additional options that can be specified in -i list.
  4048. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4049. and --xml-rpc-passwd. Removed --enable-http-server and
  4050. --http-server-listen-port.
  4051. * doc/aria2c.1.txt
  4052. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4053. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4054. * src/DefaultPeerStorage.cc
  4055. * src/DefaultPeerStorage.h
  4056. * src/PeerStorage.h
  4057. * src/XmlRpcMethodImpl.cc
  4058. * test/MockPeerStorage.h
  4059. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4060. Put a call to Socket::isReadable() in try block.
  4061. * src/HttpServerBodyCommand.cc
  4062. * src/HttpServerCommand.cc
  4063. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4064. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4065. exception , so it is now in try block.
  4066. * src/HttpServerResponseCommand.cc
  4067. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4068. Added "amChoking" and "peerChoking" key in getPeers response.
  4069. * src/XmlRpcMethodImpl.cc
  4070. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4071. Added test case for zero-length filter.
  4072. * test/BitfieldManTest.cc
  4073. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4074. getFiles command now returns file data for finished/stopped
  4075. downloads.
  4076. * src/XmlRpcMethodImpl.cc
  4077. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4078. DownloadResult now has the list of FileEntry. The download
  4079. summary displays the path of first selected file and the number of
  4080. remaining files for multi-file torrent.
  4081. * src/DownloadResult.h
  4082. * src/RequestGroup.cc
  4083. * src/RequestGroupMan.cc
  4084. * test/RequestGroupTest.cc
  4085. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4086. Fixed segmentation fault error when no file is selected in
  4087. multi-file torrent.
  4088. * src/BitfieldMan.cc
  4089. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4090. Escaped <,>,& character in XML-RPC response.
  4091. * src/XmlRpcMethod.cc
  4092. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4093. Throw DlAbortEx instead of FatalException during parsing options
  4094. because we don't want for aria2 to quit when bad option is passed
  4095. via XML-RPC.
  4096. * src/OptionHandlerException.cc
  4097. * src/OptionHandlerException.h
  4098. * src/OptionHandlerImpl.h
  4099. * src/OptionParser.cc
  4100. * src/OptionParser.h
  4101. * src/PStringSegment.cc
  4102. * src/ParameterizedStringParser.cc
  4103. * src/download_helper.cc
  4104. * test/ParameterizedStringParserTest.cc
  4105. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4106. Selecting files are now done in
  4107. DefaultBtContext::setFileFileter().
  4108. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4109. functions are removed because they are no longer used. Creating
  4110. filter in BitfieldMan is done in new funtion
  4111. PieceStorage::setupFileFilter()
  4112. * src/BtContext.cc
  4113. * src/BtContext.h
  4114. * src/DefaultBtContext.cc
  4115. * src/DefaultBtContext.h
  4116. * src/DefaultPieceStorage.cc
  4117. * src/DefaultPieceStorage.h
  4118. * src/DiskAdaptor.cc
  4119. * src/DiskAdaptor.h
  4120. * src/PieceStorage.h
  4121. * src/RequestGroup.cc
  4122. * src/UnknownLengthPieceStorage.h
  4123. * src/XmlRpcMethodImpl.cc
  4124. * test/DefaultBtContextTest.cc
  4125. * test/MockBtContext.h
  4126. * test/MockPieceStorage.h
  4127. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4128. Fixed compile error on Mac OS X
  4129. * src/HttpServer.cc
  4130. * src/XmlRpcMethod.h
  4131. * src/XmlRpcMethodImpl.cc
  4132. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4133. Use std::binary_search instead of std::find
  4134. * src/DefaultPieceStorage.cc
  4135. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4136. Removed unnecessary BDE() call; leave them to implicit conversion.
  4137. * src/XmlRpcMethodImpl.cc
  4138. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4139. Return connections and gid in string
  4140. * src/XmlRpcMethodImpl.cc
  4141. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Renamed addURI as addUri
  4143. * src/XmlRpcMethodFactory.cc
  4144. * src/XmlRpcMethodImpl.cc
  4145. * src/XmlRpcMethodImpl.h
  4146. * test/XmlRpcMethodTest.cc
  4147. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4148. Renamed addTorrentFile as addTorrent
  4149. * src/XmlRpcMethodFactory.cc
  4150. * src/XmlRpcMethodImpl.cc
  4151. * src/XmlRpcMethodImpl.h
  4152. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4153. The information for files, URIs, peers are removed from the
  4154. reponse of TellaActive, TellStatus command because they tend to be
  4155. large. Instead they can be retrieved by the dedicated commands:
  4156. getFiles, getUris and getPeers respectively.
  4157. * src/XmlRpcMethodFactory.cc
  4158. * src/XmlRpcMethodImpl.cc
  4159. * src/XmlRpcMethodImpl.h
  4160. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4161. Removed --max-overall-upload-limit and
  4162. --max-overall-download-limit option from listRequestOptions.
  4163. * src/download_helper.cc
  4164. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4165. Log incoming host in HttpListenCommand.
  4166. * src/HttpListenCommand.cc
  4167. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4168. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4169. --xml-rpc-passwd option.
  4170. * src/HttpServer.cc
  4171. * src/HttpServer.h
  4172. * src/HttpServerCommand.cc
  4173. * src/OptionHandlerFactory.cc
  4174. * src/prefs.cc
  4175. * src/prefs.h
  4176. * src/usage_text.h
  4177. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4178. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4179. processing 0 length request.
  4180. * src/HttpServerBodyCommand.cc
  4181. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4182. Removed --enable-http-server and --http-server-listen-port
  4183. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4184. instead. The original feature for --enable-http-server that
  4185. reports download progress in HTML was officially removed. Persist
  4186. XML-RPC connection if client supports keep-alive.
  4187. * src/DownloadEngineFactory.cc
  4188. * src/HttpServerCommand.cc
  4189. * src/HttpServerResponseCommand.cc
  4190. * src/Makefile.am
  4191. * src/Makefile.in
  4192. * src/OptionHandlerFactory.cc
  4193. * src/RequestGroupMan.cc
  4194. * src/main.cc
  4195. * src/option_processing.cc
  4196. * src/prefs.cc
  4197. * src/prefs.h
  4198. * src/usage_text.h
  4199. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4200. Added "uris" key to the response of tellStatus command. Added
  4201. "connections" key to the response of tellStatus and tellActive
  4202. command.
  4203. * src/XmlRpcMethodImpl.cc
  4204. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4205. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4206. Added TellStatusXmlRpcMethod. Remove command can now remove
  4207. waiting RequestGroup.
  4208. * src/RequestGroupMan.cc
  4209. * src/RequestGroupMan.h
  4210. * src/XmlRpcMethodFactory.cc
  4211. * src/XmlRpcMethodImpl.cc
  4212. * src/XmlRpcMethodImpl.h
  4213. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4214. Initialized _peerId
  4215. * src/Peer.cc
  4216. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4217. Return fault structure for error. FailXmlRpcMethod is renamed as
  4218. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4219. in non-torrent download. Return single param value.
  4220. * src/XmlRpcMethod.cc
  4221. * src/XmlRpcMethodFactory.cc
  4222. * src/XmlRpcMethodImpl.cc
  4223. * src/XmlRpcMethodImpl.h
  4224. * test/XmlRpcMethodTest.cc
  4225. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4226. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4227. command.
  4228. * src/RequestGroup.cc
  4229. * src/RequestGroup.h
  4230. * src/RequestGroupMan.cc
  4231. * src/XmlRpcMethodImpl.cc
  4232. * test/RequestGroupTest.cc
  4233. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4234. Added more options that can be specified in -i list and xml-rpc
  4235. add* command.
  4236. * src/download_helper.h
  4237. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4238. The available options in -i list should be listed in
  4239. listRequestOptions().
  4240. * src/download_helper.cc
  4241. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4242. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4243. command.
  4244. * src/XmlRpcMethodImpl.cc
  4245. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4246. Now RequestGroup has its own copy of Option object. This will help
  4247. to give custom option for each RequestGroup.
  4248. addTorrentFile command now takes options.
  4249. * src/AbstractCommand.cc
  4250. * src/AbstractCommand.h
  4251. * src/AbstractProxyRequestCommand.cc
  4252. * src/ActivePeerConnectionCommand.cc
  4253. * src/ActivePeerConnectionCommand.h
  4254. * src/AdaptiveURISelector.cc
  4255. * src/BtCheckIntegrityEntry.cc
  4256. * src/BtDependency.cc
  4257. * src/BtDependency.h
  4258. * src/BtFileAllocationEntry.cc
  4259. * src/BtPostDownloadHandler.cc
  4260. * src/CheckIntegrityEntry.cc
  4261. * src/DownloadCommand.cc
  4262. * src/FtpDownloadCommand.cc
  4263. * src/FtpFinishDownloadCommand.cc
  4264. * src/FtpInitiateConnectionCommand.cc
  4265. * src/FtpNegotiationCommand.cc
  4266. * src/HttpInitiateConnectionCommand.cc
  4267. * src/HttpRequestCommand.cc
  4268. * src/HttpResponseCommand.cc
  4269. * src/HttpSkipResponseCommand.cc
  4270. * src/InitiateConnectionCommand.cc
  4271. * src/InitiateConnectionCommandFactory.cc
  4272. * src/InitiatorMSEHandshakeCommand.cc
  4273. * src/InitiatorMSEHandshakeCommand.h
  4274. * src/Metalink2RequestGroup.cc
  4275. * src/Metalink2RequestGroup.h
  4276. * src/MetalinkPostDownloadHandler.cc
  4277. * src/MultiUrlRequestInfo.cc
  4278. * src/MultiUrlRequestInfo.h
  4279. * src/PeerAbstractCommand.cc
  4280. * src/PeerInteractionCommand.cc
  4281. * src/PeerInteractionCommand.h
  4282. * src/PeerReceiveHandshakeCommand.cc
  4283. * src/PeerReceiveHandshakeCommand.h
  4284. * src/RequestGroup.cc
  4285. * src/RequestGroup.h
  4286. * src/TrackerWatcherCommand.cc
  4287. * src/TrackerWatcherCommand.h
  4288. * src/XmlRpcMethod.cc
  4289. * src/XmlRpcMethod.h
  4290. * src/XmlRpcMethodImpl.cc
  4291. * src/download_helper.cc
  4292. * src/download_helper.h
  4293. * src/main.cc
  4294. * test/BtDependencyTest.cc
  4295. * test/BtPostDownloadHandlerTest.cc
  4296. * test/DefaultBtMessageDispatcherTest.cc
  4297. * test/DownloadHandlerFactoryTest.cc
  4298. * test/DownloadHelperTest.cc
  4299. * test/Metalink2RequestGroupTest.cc
  4300. * test/MetalinkPostDownloadHandlerTest.cc
  4301. * test/RequestGroupManTest.cc
  4302. * test/RequestGroupTest.cc
  4303. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4304. Added tellActiveStatus xml-rpc command which reports download
  4305. status of active downloads.
  4306. * src/XmlRpcMethodFactory.cc
  4307. * src/XmlRpcMethodImpl.cc
  4308. * src/XmlRpcMethodImpl.h
  4309. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4310. Added addTorrentFile xml-rpc command which receives uploaded
  4311. torrent file and add download for it.
  4312. * src/RequestGroupMan.cc
  4313. * src/XmlRpcMethodFactory.cc
  4314. * src/XmlRpcMethodImpl.cc
  4315. * src/XmlRpcMethodImpl.h
  4316. * src/download_helper.cc
  4317. * src/download_helper.h
  4318. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4319. Added remove xml-rpc command which removes specified download.
  4320. There is a known issue: the removed unfinished downloads are
  4321. reported ERR when aria2 exits. They should be reported as INPR.
  4322. * src/RequestGroupMan.cc
  4323. * src/RequestGroupMan.h
  4324. * src/XmlRpcMethodFactory.cc
  4325. * src/XmlRpcMethodImpl.cc
  4326. * src/XmlRpcMethodImpl.h
  4327. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4328. If --enable-http-server is enabled, don't stop aria2 when all
  4329. download finished and don't quit when no files to download at
  4330. start up.
  4331. * src/RequestGroupMan.cc
  4332. * src/main.cc
  4333. * src/option_processing.cc
  4334. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4335. Added missing AM_CONDITIONAL
  4336. * configure.ac
  4337. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4338. Added xml-rpc functionality. Currently only addURI commad is
  4339. supported. To enable xml-rpc, run aria2 with
  4340. --enable-http-server. This option name is temporal and will be
  4341. changed. The feature that reports download progress in html format
  4342. is temporarily disabled.
  4343. * src/HttpServer.cc
  4344. * src/HttpServer.h
  4345. * src/HttpServerBodyCommand.cc
  4346. * src/HttpServerBodyCommand.h
  4347. * src/HttpServerCommand.cc
  4348. * src/HttpServerResponseCommand.cc
  4349. * src/Makefile.am
  4350. * src/OptionParser.cc
  4351. * src/OptionParser.h
  4352. * src/RequestGroupMan.cc
  4353. * src/RequestGroupMan.h
  4354. * src/XmlRpcMethod.cc
  4355. * src/XmlRpcMethod.h
  4356. * src/XmlRpcMethodFactory.cc
  4357. * src/XmlRpcMethodFactory.h
  4358. * src/XmlRpcMethodImpl.cc
  4359. * src/XmlRpcMethodImpl.h
  4360. * src/download_helper.cc
  4361. * src/download_helper.h
  4362. * test/Makefile.am
  4363. * test/XmlRpcMethodTest.cc
  4364. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4365. Added xml-rpc request parser. The supported value types are:
  4366. i4/int, string, double, struct, array, base64. Currently only
  4367. libxml2 version is provided.
  4368. * src/Xml2XmlRpcRequestProcessor.cc
  4369. * src/Xml2XmlRpcRequestProcessor.h
  4370. * src/XmlRpcElements.cc
  4371. * src/XmlRpcElements.h
  4372. * src/XmlRpcRequest.h
  4373. * src/XmlRpcRequestParserController.cc
  4374. * src/XmlRpcRequestParserController.h
  4375. * src/XmlRpcRequestParserState.h
  4376. * src/XmlRpcRequestParserStateImpl.cc
  4377. * src/XmlRpcRequestParserStateImpl.h
  4378. * src/XmlRpcRequestParserStateMachine.cc
  4379. * src/XmlRpcRequestParserStateMachine.h
  4380. * src/XmlRpcRequestProcessor.h
  4381. * test/XmlRpcRequestParserControllerTest.cc
  4382. * test/XmlRpcRequestProcessorTest.cc
  4383. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4384. * Release 1.3.3
  4385. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4386. Fixed compile error since r1202.
  4387. * src/ExpatMetalinkProcessor.cc
  4388. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4389. Updated Ukrainian, Russian and Simplified Chinese
  4390. translations. Thanks to all translators.
  4391. * po/ru.po
  4392. * po/uk.po
  4393. * po/zh_CN.po
  4394. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. Pass reference of Option object instead of pointer.
  4396. * src/download_helper.cc
  4397. * src/download_helper.h
  4398. * src/main.cc
  4399. * test/DownloadHelperTest.cc
  4400. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4401. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4402. from option directly. Instead, get them from RequestGroup.
  4403. * src/ActivePeerConnectionCommand.cc
  4404. * src/ActivePeerConnectionCommand.h
  4405. * src/PeerReceiveHandshakeCommand.cc
  4406. * src/RequestGroup.h
  4407. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4408. Removed unused uploadLimitCheck and uploadLimit from
  4409. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4410. PeerInteractionCommand.
  4411. * src/PeerAbstractCommand.cc
  4412. * src/PeerAbstractCommand.h
  4413. * src/PeerInteractionCommand.cc
  4414. * src/PeerInteractionCommand.h
  4415. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4416. Fixed broken file renaming feature since r1202.
  4417. * src/FtpNegotiationCommand.cc
  4418. * src/FtpNegotiationCommand.h
  4419. * src/HttpResponseCommand.cc
  4420. * src/RequestGroup.cc
  4421. * src/RequestGroup.h
  4422. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4423. Removed unused debug log
  4424. * src/SocketCore.cc
  4425. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4426. Generated configure and Makefile.in using autoconf 2.63 and
  4427. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4428. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4429. * configure.ac
  4430. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4431. Moved piece statistics stuff to new PieceStatMan class.
  4432. Refactored PieceSelector interface.
  4433. * src/DefaultPieceStorage.cc
  4434. * src/DefaultPieceStorage.h
  4435. * src/LongestSequencePieceSelector.cc
  4436. * src/LongestSequencePieceSelector.h
  4437. * src/Makefile.am
  4438. * src/PieceSelector.h
  4439. * src/PieceStatMan.cc
  4440. * src/PieceStatMan.h
  4441. * src/RarestPieceSelector.cc
  4442. * src/RarestPieceSelector.h
  4443. * src/RequestGroup.cc
  4444. * test/DefaultPieceStorageTest.cc
  4445. * test/InOrderPieceSelector.h
  4446. * test/Makefile.am
  4447. * test/PieceStatManTest.cc
  4448. * test/RarestPieceSelectorTest.cc
  4449. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4450. Added static member _protocolFamily to SocketCore. By default,
  4451. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4452. address. Sometime SocketCore::bind() and
  4453. SocketCore::establishConnection() use difference protocl family
  4454. and latter cannot connect to former. To avoid this situation, we
  4455. limit protocol family to AF_INET for unit tests.
  4456. * src/SocketCore.cc
  4457. * src/SocketCore.h
  4458. * test/AllTest.cc
  4459. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4460. Avoid std::bad_alloc for negative bencode string length.
  4461. * src/bencode.cc
  4462. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. Supported segmented downloading with chunked transfer encoding and
  4464. content-length.
  4465. * src/DownloadCommand.cc
  4466. * src/HttpResponseCommand.cc
  4467. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4468. Bump up version number to 1.3.3
  4469. * configure.ac
  4470. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4471. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4472. from 4096 to 65536 (for insanely large ftp login banners)
  4473. * src/FtpConnection.h
  4474. * test/FtpConnectionTest.cc
  4475. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4476. In DefaultBtContext::getActualBasePath(), return first
  4477. FileEntry::getPath() for single file torrent.
  4478. * src/DefaultBtContext.cc
  4479. * test/DefaultBtContextTest.cc
  4480. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4481. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4482. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4483. Removed _directIOAllowed member from DiskWriter.
  4484. * src/AbstractDiskWriter.cc
  4485. * src/AbstractDiskWriter.h
  4486. * src/AbstractSingleDiskAdaptor.cc
  4487. * src/AbstractSingleDiskAdaptor.h
  4488. * src/BinaryStream.h
  4489. * src/ByteArrayDiskWriter.h
  4490. * src/DefaultPieceStorage.cc
  4491. * src/DiskWriter.h
  4492. * src/MultiDiskAdaptor.cc
  4493. * src/MultiDiskAdaptor.h
  4494. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4495. Now the constructor of AbstractDiskWriter takes filename as an
  4496. argument and filename argument is removed from openFile(),
  4497. initAndOpenFile(), openExistingFile() interface. storeDir member
  4498. and its accessor functions are removed from DiskAdaptor because it
  4499. is not used anymore. size() member function of DefaultDiskWriter,
  4500. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4501. opening file.
  4502. * src/AbstractDiskWriter.cc
  4503. * src/AbstractDiskWriter.h
  4504. * src/AbstractSingleDiskAdaptor.cc
  4505. * src/AbstractSingleDiskAdaptor.h
  4506. * src/ByteArrayDiskWriter.cc
  4507. * src/ByteArrayDiskWriter.h
  4508. * src/ByteArrayDiskWriterFactory.cc
  4509. * src/ByteArrayDiskWriterFactory.h
  4510. * src/DefaultDiskWriter.cc
  4511. * src/DefaultDiskWriter.h
  4512. * src/DefaultDiskWriterFactory.cc
  4513. * src/DefaultDiskWriterFactory.h
  4514. * src/DefaultPieceStorage.cc
  4515. * src/DirectDiskAdaptor.cc
  4516. * src/DirectDiskAdaptor.h
  4517. * src/DiskAdaptor.h
  4518. * src/DiskWriter.h
  4519. * src/DiskWriterFactory.h
  4520. * src/MessageDigestHelper.cc
  4521. * src/MultiDiskAdaptor.cc
  4522. * src/RequestGroup.cc
  4523. * src/UnknownLengthPieceStorage.cc
  4524. * src/Util.cc
  4525. * test/DefaultDiskWriterTest.cc
  4526. * test/DirectDiskAdaptorTest.cc
  4527. * test/FallocFileAllocationIteratorTest.cc
  4528. * test/MessageDigestHelperTest.cc
  4529. * test/MetalinkProcessorTest.cc
  4530. * test/MultiDiskAdaptorTest.cc
  4531. * test/MultiFileAllocationIteratorTest.cc
  4532. * test/SingleFileAllocationIteratorTest.cc
  4533. * test/UtilTest.cc
  4534. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4535. Fixed the bug that aria2 aborts when --select-file is used. This
  4536. bug was introduced in r1199.
  4537. * src/MultiDiskAdaptor.cc
  4538. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. Code cleanup
  4540. * test/MockPieceStorage.cc
  4541. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4542. Fixed the bug that read-only file with wrong file size will cause
  4543. error because it cannot be truncated to the correct size. Now if
  4544. file size is different than the expected one, re-open file in
  4545. writable mode.
  4546. * src/AbstractSingleDiskAdaptor.cc
  4547. * src/AbstractSingleDiskAdaptor.h
  4548. * src/BtCheckIntegrityEntry.cc
  4549. * src/DiskAdaptor.h
  4550. * src/MultiDiskAdaptor.h
  4551. * src/RequestGroup.cc
  4552. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4553. Fixed the bug that with --check-integrity option aria2 reports
  4554. downloaded file size is 0 even if some parts of file is correctly
  4555. downloaded. This bug is reproducible for the download that a file
  4556. includes last piece is missing. This bug doesn't reveal for
  4557. single-torrent with file allocation on.
  4558. * src/IteratableChecksumValidator.cc
  4559. * test/IteratableChecksumValidatorTest.cc
  4560. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4561. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4562. * src/RequestGroupMan.cc
  4563. * src/AdaptiveURISelector.cc
  4564. * src/AdaptiveURISelector.h
  4565. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4566. * Release 1.3.2
  4567. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4568. Updated README
  4569. * README
  4570. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4571. Updated Ukrainian translations. Thanks to Alexander10.
  4572. * po/uk.po
  4573. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4574. Code cleanup
  4575. * src/MetalinkParserStateMachine.cc
  4576. * src/MetalinkParserStateMachine.h
  4577. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4578. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4579. and expat simultaneously, MetalinkProcessor is now not base class
  4580. and it is directly implemented in XML2SAXMetalinkProcessor and
  4581. ExpatMetalinkProcessor.
  4582. * src/ExpatMetalinkProcessor.cc
  4583. * src/ExpatMetalinkProcessor.h
  4584. * src/Makefile.am
  4585. * src/MetalinkHelper.cc
  4586. * src/MetalinkProcessor.h
  4587. * src/MetalinkProcessorFactory.cc: Removed.
  4588. * src/MetalinkProcessorFactory.h: Removed
  4589. * src/XML2SAXMetalinkProcessor.cc
  4590. * src/XML2SAXMetalinkProcessor.h
  4591. * test/MetalinkProcessorTest.cc
  4592. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4593. Bump up version number to 1.3.2
  4594. * configure.ac
  4595. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4596. Added missing file.
  4597. * test/Makefile.am
  4598. * test/url-list-singleFileEndsWithSlash.torrent
  4599. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4600. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4601. request.
  4602. * src/AnnounceList.cc
  4603. * src/AnnounceList.h
  4604. * src/BDE.cc: Added
  4605. * src/BDE.h: Added
  4606. * src/DHTAbstractMessage.cc
  4607. * src/DHTAbstractMessage.h
  4608. * src/DHTAnnouncePeerMessage.cc
  4609. * src/DHTAnnouncePeerMessage.h
  4610. * src/DHTAnnouncePeerReplyMessage.cc
  4611. * src/DHTAnnouncePeerReplyMessage.h
  4612. * src/DHTFindNodeMessage.cc
  4613. * src/DHTFindNodeMessage.h
  4614. * src/DHTFindNodeReplyMessage.cc
  4615. * src/DHTFindNodeReplyMessage.h
  4616. * src/DHTGetPeersMessage.cc
  4617. * src/DHTGetPeersMessage.h
  4618. * src/DHTGetPeersReplyMessage.cc
  4619. * src/DHTGetPeersReplyMessage.h
  4620. * src/DHTMessageFactory.h
  4621. * src/DHTMessageFactoryImpl.cc
  4622. * src/DHTMessageFactoryImpl.h
  4623. * src/DHTMessageReceiver.cc
  4624. * src/DHTMessageTracker.cc
  4625. * src/DHTMessageTracker.h
  4626. * src/DHTPingMessage.cc
  4627. * src/DHTPingMessage.h
  4628. * src/DHTPingReplyMessage.cc
  4629. * src/DHTPingReplyMessage.h
  4630. * src/DHTQueryMessage.cc
  4631. * src/DHTQueryMessage.h
  4632. * src/DHTResponseMessage.cc
  4633. * src/DHTResponseMessage.h
  4634. * src/DefaultBtAnnounce.cc
  4635. * src/DefaultBtContext.cc
  4636. * src/DefaultBtContext.h
  4637. * src/HandshakeExtensionMessage.cc
  4638. * src/Makefile.am
  4639. * src/PeerListProcessor.h
  4640. * src/UTPexExtensionMessage.cc
  4641. * src/bencode.cc
  4642. * src/bencode.h
  4643. * test/AnnounceListTest.cc
  4644. * test/BDETest.cc: Added
  4645. * test/BencodeTest.cc
  4646. * test/DHTAnnouncePeerMessageTest.cc
  4647. * test/DHTAnnouncePeerReplyMessageTest.cc
  4648. * test/DHTFindNodeMessageTest.cc
  4649. * test/DHTFindNodeReplyMessageTest.cc
  4650. * test/DHTGetPeersMessageTest.cc
  4651. * test/DHTGetPeersReplyMessageTest.cc
  4652. * test/DHTMessageFactoryImplTest.cc
  4653. * test/DHTMessageTrackerTest.cc
  4654. * test/DHTPingMessageTest.cc
  4655. * test/DHTPingReplyMessageTest.cc
  4656. * test/Makefile.am
  4657. * test/MockDHTMessageFactory.h
  4658. * test/PeerListProcessorTest.cc
  4659. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4660. Use url-list (web-seeding) only for single-file torrent. This is
  4661. basically the same behavior with Metalink file with torrent and
  4662. URIs.
  4663. * src/RequestGroup.cc
  4664. * src/DefaultBtContext.cc
  4665. * test/DefaultBtContextTest.cc
  4666. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4667. Rewritten expr
  4668. * src/array_fun.h
  4669. * test/array_funTest.cc
  4670. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4671. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4672. * src/DefaultBtMessageDispatcher.cc
  4673. * src/a2algo.h
  4674. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4675. Removed ExtendedMessagingAware. Instead of using inheritance,
  4676. added ExtensionMessageRegistry and it is passed to
  4677. DefaultExtensionMessageFactory.
  4678. * src/DefaultBtInteractive.cc
  4679. * src/DefaultBtInteractive.h
  4680. * src/DefaultExtensionMessageFactory.cc
  4681. * src/DefaultExtensionMessageFactory.h
  4682. * src/ExtendedMessagingAware.h: Removed.
  4683. * src/ExtensionMessageFactory.h
  4684. * src/ExtensionMessageRegistry.h: Added.
  4685. * src/Makefile.am
  4686. * src/PeerInteractionCommand.cc
  4687. * test/DefaultExtensionMessageFactoryTest.cc
  4688. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4689. Fixed typo in log messages
  4690. * src/MSEHandshake.cc
  4691. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4692. Fixed the bug that prevents torrent download from finishing. The
  4693. bug doesn't reveal for all torrents. The torrents affected this
  4694. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4695. of pieces.
  4696. * src/bitfield.h
  4697. * test/bitfieldTest.cc
  4698. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4699. Code cleanup
  4700. * src/PeerListProcessor.h
  4701. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4702. Removed RequestGroupAware
  4703. * src/AbstractCommand.cc
  4704. * src/AbstractCommand.h
  4705. * src/ActivePeerConnectionCommand.cc
  4706. * src/ActivePeerConnectionCommand.h
  4707. * src/DHTGetPeersCommand.cc
  4708. * src/DHTGetPeersCommand.h
  4709. * src/InitiatorMSEHandshakeCommand.cc
  4710. * src/InitiatorMSEHandshakeCommand.h
  4711. * src/Makefile.am
  4712. * src/PeerInitiateConnectionCommand.cc
  4713. * src/PeerInitiateConnectionCommand.h
  4714. * src/PeerInteractionCommand.cc
  4715. * src/PeerInteractionCommand.h
  4716. * src/RealtimeCommand.cc
  4717. * src/RealtimeCommand.h
  4718. * src/RequestGroupAware.cc: Removed
  4719. * src/RequestGroupAware.h: Removed
  4720. * src/SeedCheckCommand.cc
  4721. * src/SeedCheckCommand.h
  4722. * src/SleepCommand.cc
  4723. * src/TrackerWatcherCommand.cc
  4724. * src/TrackerWatcherCommand.h
  4725. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4726. Rewritten PeerListProcessor
  4727. * src/PeerListProcessor.h
  4728. * src/CompactPeerListProcessor.h: Removed
  4729. * src/CompactPeerListProcessor.cc: Removed
  4730. * src/DelegatingPeerListProcessor.cc: Removed.
  4731. * src/DefaultBtAnnounce.cc
  4732. * src/Makefile.am
  4733. * src/UTPexExtensionMessage.cc
  4734. * src/DefaultPeerListProcessor.h: Removed.
  4735. * src/DefaultPeerListProcessor.cc: Removed.
  4736. * src/DelegatingPeerListProcessor.h: Removed.
  4737. * test/Makefile.am
  4738. * test/PeerListProcessorTest.cc
  4739. * test/DefaultPeerListProcessorTest.cc: Removed.
  4740. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4741. Rewritten RequestGroupMan::calculateStat()
  4742. * src/RequestGroupMan.cc
  4743. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4744. Removed unnecessary virtual destructor for Request class.
  4745. * src/Request.cc
  4746. * src/Request.h
  4747. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4748. Avoid dynamic_pointer_cast.
  4749. * src/DHTGetPeersCommand.cc
  4750. * src/DHTGetPeersCommand.h
  4751. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4752. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4753. BtEvent.
  4754. * src/AbstractBtEventListener.h: Removed.
  4755. * src/AbstractBtMessage.cc
  4756. * src/AbstractBtMessage.h
  4757. * src/BtAbortOutstandingRequestEvent.h
  4758. * src/BtCancelSendingPieceEvent.h
  4759. * src/BtChokedEvent.h: Removed.
  4760. * src/BtChokingEvent.h
  4761. * src/BtEvent.h: Removed
  4762. * src/BtEventListener.h: Removed.
  4763. * src/BtMessage.h
  4764. * src/BtPieceMessage.cc
  4765. * src/BtPieceMessage.h
  4766. * src/BtRequestMessage.cc
  4767. * src/BtRequestMessage.h
  4768. * src/DefaultBtMessageDispatcher.cc
  4769. * src/Makefile.am
  4770. * src/a2functional.h
  4771. * test/BtPieceMessageTest.cc
  4772. * test/BtRequestMessageTest.cc
  4773. * test/DefaultBtMessageDispatcherTest.cc
  4774. * test/MockBtMessage.h
  4775. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4776. Code cleanup
  4777. * src/RequestGroupMan.cc
  4778. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4779. Code cleanup
  4780. * src/DownloadCommand.cc
  4781. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4782. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4783. byte.
  4784. * src/DownloadCommand.cc
  4785. * src/bitfield.h
  4786. * test/bitfieldTest.cc
  4787. Fixed the bug that causes infinite loop if broken web server
  4788. returns chunked response without last "0" chunk-size marker and
  4789. closes connection.
  4790. * src/DownloadCommand.cc
  4791. Instantiate properly configured HttpDownloadCommand for
  4792. non-resumable downlaods.
  4793. * src/HttpResponseCommand.cc
  4794. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4795. Rewritten array operation functions.
  4796. * src/BitfieldMan.cc
  4797. * src/array_fun.h
  4798. * test/array_funTest.cc
  4799. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4800. Removed unused variable 'query'
  4801. * src/Request.cc
  4802. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4803. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4804. accidentally set to false in r1162.
  4805. * configure.ac
  4806. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4807. Code cleanup
  4808. * src/BNode.cc
  4809. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4810. Increase prefixLength for the bucket which doesn't own local node
  4811. ID when splitting bucket.
  4812. * src/DHTBucket.cc
  4813. * test/DHTBucketTest.cc
  4814. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4815. * Release 1.3.1
  4816. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4817. Bump up version number to 1.3.1
  4818. * configure.ac
  4819. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4820. Removed unused variable checkPoint. Also removed include directive
  4821. for TimeA2.h.
  4822. * src/SeedCheckCommand.h
  4823. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4824. Fixed the bug that upload limit exceeds the value specified in
  4825. --seed-ratio option depending on the timing of the execution of
  4826. SeedCheckCommand.
  4827. * src/SeedCheckCommand.cc
  4828. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4829. Fixed the bug that removed peer's session upload/download length
  4830. are counted twice in _cachedTransferStat before it is
  4831. re-calculated. This affected the calculation of shara ratio,
  4832. resulting aria2 wrongly determines that specified share ratio is
  4833. reached. Also fixed the typo in calculateStatFor function name.
  4834. * src/BtSetup.cc
  4835. * src/DefaultPeerStorage.cc
  4836. * src/ShareRatioSeedCriteria.h
  4837. * test/ShareRatioSeedCriteriaTest.cc
  4838. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4839. * Release 1.3.0
  4840. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4841. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4842. Nynorsk translations. Thanks to all translators.
  4843. * po/es.po
  4844. * po/ja.po
  4845. * po/nn.po
  4846. * po/ru.po
  4847. * po/uk.po
  4848. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4849. Rewritten isInRange()
  4850. * src/DHTBucket.cc
  4851. * test/DHTBucketTest.cc
  4852. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Fixed typo
  4854. * doc/aria2c.1.txt
  4855. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4856. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4857. malloc/realloc is not used.
  4858. * src/configure.ac
  4859. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4860. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4861. char* bitfield instead of stl container for efficiency.
  4862. PieceSelector::select now takes this
  4863. bitfield. RarestPieceSelector::select now also performs
  4864. efficiently for this change. bitfield namespace is introduced and
  4865. it has several helper functions to handle basic bitfield
  4866. operations such as test, count set bits, etc.
  4867. * src/BitfieldMan.cc
  4868. * src/BitfieldMan.h
  4869. * src/DefaultBtRequestFactory.cc
  4870. * src/DefaultPieceStorage.cc
  4871. * src/DefaultPieceStorage.h
  4872. * src/LongestSequencePieceSelector.cc
  4873. * src/LongestSequencePieceSelector.h
  4874. * src/Makefile.am
  4875. * src/Piece.cc
  4876. * src/Piece.h
  4877. * src/PieceSelector.h
  4878. * src/RarestPieceSelector.cc
  4879. * src/RarestPieceSelector.h
  4880. * src/Util.cc
  4881. * src/Util.h
  4882. * src/bitfield.h
  4883. * test/BitfieldManTest.cc
  4884. * test/LongestSequencePieceSelectorTest.cc
  4885. * test/Makefile.am
  4886. * test/RarestPieceSelectorTest.cc
  4887. * test/UtilTest.cc
  4888. * test/bitfieldTest.cc
  4889. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4890. Made accepted socket non-block.
  4891. * src/FtpNegotiationCommand.cc
  4892. * src/HttpListenCommand.cc
  4893. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4894. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4895. * src/AbstractSingleDiskAdaptor.cc
  4896. * src/DefaultPieceStorage.cc
  4897. * src/DiskAdaptor.h
  4898. * src/DiskAdaptor.h
  4899. * src/MultiFileAllocationIterator.cc
  4900. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4901. Run
  4902. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4903. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4904. it doesn't need to be called every time when
  4905. DefaultBtInteractive::doInteractionProcessing() is called.
  4906. * src/DefaultBtInteractive.cc
  4907. * src/DefaultBtInteractive.h
  4908. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4909. Documented 'falloc' in man page.
  4910. * doc/aria2c.1.txt
  4911. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4912. Updated doc
  4913. * src/usage_text.h
  4914. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4915. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4916. allocation mode uses posix_fallocate() system call to allocate
  4917. file on disk. If you are using newer file systems such as ext4
  4918. (with extents support), btrfs or xfs, 'falloc' is your best
  4919. choice. It allocates large(few GiB) files almost instantly. Don't
  4920. use 'falloc' with legacy file systems such as ext3 because it
  4921. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4922. until allocation finishes. 'falloc' may not be available if your
  4923. system doesn't have posix_fallocate() system call.
  4924. * configure.ac
  4925. * src/AbstractDiskWriter.cc
  4926. * src/AbstractDiskWriter.h
  4927. * src/AbstractSingleDiskAdaptor.cc
  4928. * src/BinaryStream.h
  4929. * src/BtCheckIntegrityEntry.cc
  4930. * src/ByteArrayDiskWriter.h
  4931. * src/CheckIntegrityEntry.cc
  4932. * src/CheckIntegrityEntry.h
  4933. * src/DefaultPieceStorage.cc
  4934. * src/DiskAdaptor.cc
  4935. * src/DiskAdaptor.h
  4936. * src/DiskWriter.h
  4937. * src/FallocFileAllocationIterator.cc
  4938. * src/FallocFileAllocationIterator.h
  4939. * src/FileAllocationEntry.cc
  4940. * src/FileAllocationEntry.h
  4941. * src/Makefile.am
  4942. * src/MultiFileAllocationIterator.cc
  4943. * src/MultiFileAllocationIterator.h
  4944. * src/OptionHandlerFactory.cc
  4945. * src/RequestGroup.cc
  4946. * src/StreamCheckIntegrityEntry.cc
  4947. * src/prefs.cc
  4948. * src/prefs.h
  4949. * src/usage_text.h
  4950. * test/FallocFileAllocationIteratorTest.cc
  4951. * test/Makefile.am
  4952. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4953. Removed duplicate enableDirectIO() call.
  4954. * src/MultiFileAllocationIterator.cc
  4955. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4956. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4957. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4958. cost of std::rotate().
  4959. * src/RarestPieceSelector.cc
  4960. * src/RarestPieceSelector.h
  4961. * test/RarestPieceSelectorTest.cc
  4962. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4963. Updated usage doc for --bt-tracker-interval option.
  4964. * src/usage_text.h
  4965. * doc/aria2c.1.txt
  4966. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4967. Documented --bt-tracker-interval option in man page.
  4968. * doc/aria2c.1.txt
  4969. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4970. Added an option to specify the interval between tracker requests.
  4971. If non-zero value is specified, aria2 uses it and ignores the
  4972. interval value in the response of tracker. If zero is specified,
  4973. aria2 determines the inteval value based on the tarcker response
  4974. and download progress.
  4975. * src/DefaultBtAnnounce.cc
  4976. * src/DefaultBtAnnounce.h
  4977. * src/OptionHandlerFactory.cc
  4978. * src/RequestGroup.cc
  4979. * src/prefs.cc
  4980. * src/prefs.h
  4981. * src/usage_text.h
  4982. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4983. Added operator+=, operator-=, operator-
  4984. * src/TransferStat.cc
  4985. * src/TransferStat.h
  4986. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4987. Refactored RarestPieceSelector to reduce CPU load, especially for
  4988. addPieceStats.
  4989. * src/RarestPieceSelector.cc
  4990. * src/RarestPieceSelector.h
  4991. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4992. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4993. getAllMissingBlockIndexes to reduce a call to
  4994. array_function_base::operator[].
  4995. * src/BitfieldMan.cc
  4996. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4997. Cached TransferStat/download speed to avoid to sum them up in each
  4998. call.
  4999. * src/DefaultPeerStorage.cc
  5000. * src/DefaultPeerStorage.h
  5001. * src/SegmentMan.cc
  5002. * src/SegmentMan.h
  5003. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5004. Typedefed cuid_t as int32_t in Command.h
  5005. * src/CUIDCounter.h
  5006. * src/Command.cc
  5007. * src/Command.h
  5008. * src/DownloadEngine.cc
  5009. * src/DownloadEngine.h
  5010. * src/PeerStat.h
  5011. * src/SegmentMan.cc
  5012. * src/SegmentMan.h
  5013. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5014. Reduced the number of calls to PeerStorage::calculateStat() and
  5015. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5016. transfer rate.
  5017. * src/DefaultBtInteractive.cc
  5018. * src/DefaultBtMessageDispatcher.cc
  5019. * src/DefaultPeerStorage.cc
  5020. * src/DefaultPeerStorage.h
  5021. * src/DownloadCommand.cc
  5022. * src/DownloadEngine.cc
  5023. * src/PeerStorage.h
  5024. * src/SegmentMan.cc
  5025. * src/SegmentMan.h
  5026. * test/MockPeerStorage.h
  5027. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5028. Prepended _dir+"/" after joining path elements in torrent file.
  5029. * src/DefaultBtContext.cc
  5030. * test/DefaultBtContextTest.cc
  5031. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. Added missing IndexBtMessageValidator.h
  5033. * src/Makefile.am
  5034. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5035. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5036. Chinese translations. Thank you for contributing our project.
  5037. * po/id.po
  5038. * po/it.po
  5039. * po/ru.po
  5040. * po/uk.po
  5041. * po/zh_CN.po
  5042. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Updated README
  5044. * README
  5045. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5046. Bump up version number to 1.3.0
  5047. * configure.ac
  5048. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Updated doc
  5050. * src/DefaultBtContext.h
  5051. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5052. Slice/joinPath for name of single torrent.
  5053. * src/DefaultBtContext.cc
  5054. * test/DefaultBtContextTest.cc
  5055. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Updated man page: Documented --dry-run and --index-out
  5057. options. Changed the default value of --uri-selector and
  5058. --http-auth-challenge options. Removed --direct-file-mapping
  5059. option. Added example for --index-out
  5060. * doc/aria2c.1.txt
  5061. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5062. Updated TEXT_DRY_RUN
  5063. * src/usage_text.h
  5064. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5065. Changed the default value of --uri-selector option from 'inorder'
  5066. to 'feedback'
  5067. * src/OptionHandlerFactory.cc
  5068. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5069. Included current URI in exception message.
  5070. * src/AbstractCommand.cc
  5071. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5072. Renamed ServerStatURISelector as FeedbackURISelector.
  5073. * src/FeedbackURISelector.cc
  5074. * src/FeedbackURISelector.h
  5075. * src/Makefile.am
  5076. * src/RequestGroupMan.cc
  5077. * src/ServerStatURISelector.cc
  5078. * src/ServerStatURISelector.h
  5079. * test/FeedbackURISelectorTest.cc
  5080. * test/Makefile.am
  5081. * test/ServerStatURISelectorTest.cc
  5082. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5083. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5084. all URIs are tested and their timeout is not reached.
  5085. * src/AdaptiveURISelector.cc
  5086. * src/AdaptiveURISelector.h
  5087. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. Changed the default value of --http-auth-challenge option to false.
  5089. * src/OptionHandlerFactory.cc
  5090. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5091. Reuse URIs when all unused URIs run out.
  5092. * src/OptionHandlerFactory.cc
  5093. * src/RequestGroup.cc
  5094. * src/prefs.cc
  5095. * src/prefs.h
  5096. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5097. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5098. and BtRejectMessage are derived from RangeBtMessage class.
  5099. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5100. derived from IndexBtMessage class. BtChokeMessage,
  5101. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5102. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5103. ZeroBtMessage class.
  5104. * src/AbstractBtMessage.cc
  5105. * src/AbstractBtMessage.h
  5106. * src/BtAllowedFastMessage.cc
  5107. * src/BtAllowedFastMessage.h
  5108. * src/BtAllowedFastMessageValidator.h: Removed
  5109. * src/BtBitfieldMessage.cc
  5110. * src/BtBitfieldMessage.h
  5111. * src/BtCancelMessage.cc
  5112. * src/BtCancelMessage.h
  5113. * src/BtCancelMessageValidator.h: Removed
  5114. * src/BtChokeMessage.cc
  5115. * src/BtChokeMessage.h
  5116. * src/BtExtendedMessage.cc
  5117. * src/BtExtendedMessage.h
  5118. * src/BtHandshakeMessage.cc
  5119. * src/BtHandshakeMessage.h
  5120. * src/BtHaveAllMessage.cc
  5121. * src/BtHaveAllMessage.h
  5122. * src/BtHaveMessage.cc
  5123. * src/BtHaveMessage.h
  5124. * src/BtHaveMessageValidator.h: Removed
  5125. * src/BtHaveNoneMessage.cc
  5126. * src/BtHaveNoneMessage.h
  5127. * src/BtInterestedMessage.cc
  5128. * src/BtInterestedMessage.h
  5129. * src/BtKeepAliveMessage.cc
  5130. * src/BtKeepAliveMessage.h
  5131. * src/BtNotInterestedMessage.cc
  5132. * src/BtNotInterestedMessage.h
  5133. * src/BtPieceMessage.cc
  5134. * src/BtPieceMessage.h
  5135. * src/BtPortMessage.cc
  5136. * src/BtPortMessage.h
  5137. * src/BtRejectMessage.cc
  5138. * src/BtRejectMessage.h
  5139. * src/BtRejectMessageValidator.h: Removed
  5140. * src/BtRequestMessage.cc
  5141. * src/BtRequestMessage.h
  5142. * src/BtRequestMessageValidator.h: Removed
  5143. * src/BtSuggestPieceMessage.cc
  5144. * src/BtSuggestPieceMessage.h
  5145. * src/BtSuggestPieceMessageValidator.h: Removed
  5146. * src/BtUnchokeMessage.cc
  5147. * src/BtUnchokeMessage.h
  5148. * src/DefaultBtMessageFactory.cc
  5149. * src/IndexBtMessage.cc
  5150. * src/IndexBtMessage.h
  5151. * src/IndexBtMessageValidator.h
  5152. * src/Makefile.am
  5153. * src/PeerMessageUtil.cc
  5154. * src/PeerMessageUtil.h
  5155. * src/RangeBtMessage.cc
  5156. * src/RangeBtMessage.h
  5157. * src/RangeBtMessageValidator.h
  5158. * src/SimpleBtMessage.cc
  5159. * src/SimpleBtMessage.h
  5160. * src/ZeroBtMessage.cc
  5161. * src/ZeroBtMessage.h
  5162. * test/BtRequestMessageTest.cc
  5163. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5164. Reverted usage_text.h to r1093 to avoid to lose translated
  5165. messages.
  5166. * src/usage_text.h
  5167. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5168. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5169. declared as non-const previously is now const and defined in class
  5170. definition.
  5171. * src/AbstractBtMessage.cc
  5172. * src/AbstractBtMessage.h
  5173. * src/BtAllowedFastMessage.cc
  5174. * src/BtAllowedFastMessage.h
  5175. * src/BtBitfieldMessage.h
  5176. * src/BtCancelMessage.cc
  5177. * src/BtCancelMessage.h
  5178. * src/BtChokeMessage.cc
  5179. * src/BtChokeMessage.h
  5180. * src/BtExtendedMessage.cc
  5181. * src/BtExtendedMessage.h
  5182. * src/BtHandshakeMessage.cc
  5183. * src/BtHandshakeMessage.h
  5184. * src/BtHaveAllMessage.cc
  5185. * src/BtHaveAllMessage.h
  5186. * src/BtHaveMessage.cc
  5187. * src/BtHaveMessage.h
  5188. * src/BtHaveNoneMessage.cc
  5189. * src/BtHaveNoneMessage.h
  5190. * src/BtInterestedMessage.cc
  5191. * src/BtInterestedMessage.h
  5192. * src/BtKeepAliveMessage.cc
  5193. * src/BtKeepAliveMessage.h
  5194. * src/BtMessage.h
  5195. * src/BtNotInterestedMessage.cc
  5196. * src/BtNotInterestedMessage.h
  5197. * src/BtPieceMessage.h
  5198. * src/BtPortMessage.cc
  5199. * src/BtPortMessage.h
  5200. * src/BtRejectMessage.cc
  5201. * src/BtRejectMessage.h
  5202. * src/BtRequestMessage.cc
  5203. * src/BtRequestMessage.h
  5204. * src/BtSuggestPieceMessage.cc
  5205. * src/BtSuggestPieceMessage.h
  5206. * src/BtUnchokeMessage.cc
  5207. * src/BtUnchokeMessage.h
  5208. * src/SimpleBtMessage.cc
  5209. * src/SimpleBtMessage.h
  5210. * test/MockBtMessage.h
  5211. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5212. Use FileEntry::exists()
  5213. * src/MultiDiskAdaptor.cc
  5214. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5215. Added exists()
  5216. * src/FileEntry.cc
  5217. * src/FileEntry.h
  5218. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5219. Added missing prefix dir.
  5220. * src/download_helper.cc
  5221. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5222. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5223. * src/CopyDiskAdaptor.cc: Removed
  5224. * src/CopyDiskAdaptor.h: Removed
  5225. * src/DefaultPieceStorage.cc
  5226. * src/Makefile.am
  5227. * src/OptionHandlerFactory.cc
  5228. * src/prefs.cc
  5229. * src/prefs.h
  5230. * src/usage_text.h
  5231. * test/CopyDiskAdaptorTest.cc: Removed
  5232. * test/Makefile.am
  5233. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5234. Rewritten isSameFileBeingDownloaded()
  5235. * src/RequestGroupMan.cc
  5236. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5237. Removed getName() from DownloadContext. getName() is declared in
  5238. BtContext.
  5239. * src/BtContext.h
  5240. * src/DownloadContext.h
  5241. * src/SingleFileDownloadContext.cc
  5242. * src/SingleFileDownloadContext.h
  5243. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5244. in AbstractSingleDiskAdaptor.
  5245. * src/AbstractSingleDiskAdaptor.h
  5246. * src/DiskAdaptor.h
  5247. * src/MultiDiskAdaptor.h
  5248. * src/RequestGroup.cc
  5249. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5250. MultiDiskAdaptor.
  5251. * src/DefaultPieceStorage.cc
  5252. * src/MultiDiskAdaptor.cc
  5253. * src/MultiDiskAdaptor.h
  5254. * test/MultiDiskAdaptorTest.cc
  5255. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5256. FileEntry::getPath() contains store(top level) directory to
  5257. simplify path handling operation. In the previous implementation,
  5258. store directory is concatenated to FileEntry::getPath() in
  5259. DownloadContext.
  5260. * src/BtDependency.cc
  5261. * src/BtPostDownloadHandler.cc
  5262. * src/CopyDiskAdaptor.cc
  5263. * src/DefaultBtContext.cc
  5264. * src/DirectDiskAdaptor.cc
  5265. * src/FileEntry.cc
  5266. * src/FileEntry.h
  5267. * src/FtpNegotiationCommand.cc
  5268. * src/HttpResponse.cc
  5269. * src/HttpResponseCommand.cc
  5270. * src/Metalink2RequestGroup.cc
  5271. * src/MultiDiskAdaptor.cc
  5272. * src/MultiDiskAdaptor.h
  5273. * src/MultiFileAllocationIterator.cc
  5274. * src/RequestGroup.cc
  5275. * src/SingleFileDownloadContext.cc
  5276. * src/SingleFileDownloadContext.h
  5277. * src/download_helper.cc
  5278. * test/BtDependencyTest.cc
  5279. * test/CopyDiskAdaptorTest.cc
  5280. * test/DefaultBtContextTest.cc
  5281. * test/DefaultBtProgressInfoFileTest.cc
  5282. * test/DirectDiskAdaptorTest.cc
  5283. * test/DownloadHelperTest.cc
  5284. * test/FileEntryTest.cc
  5285. * test/MultiDiskAdaptorTest.cc
  5286. * test/MultiFileAllocationIteratorTest.cc
  5287. * test/RequestGroupTest.cc
  5288. * test/SingleFileDownloadContextTest.cc
  5289. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5290. Fixed compiler warning
  5291. * src/download_helper.cc
  5292. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5293. Throw exception if same infohash torrent is now downloading.
  5294. * src/RequestGroup.cc
  5295. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5296. Added --dry-run option. In this mode, aria2 just checks whether
  5297. the remote file is available and doesn't download data. This
  5298. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5299. are canceled in this mode.
  5300. * src/FtpNegotiationCommand.cc
  5301. * src/HttpResponseCommand.cc
  5302. * src/HttpResponseCommand.h
  5303. * src/OptionHandlerFactory.cc
  5304. * src/RequestGroup.cc
  5305. * src/RequestGroupMan.cc
  5306. * src/prefs.cc
  5307. * src/prefs.h
  5308. * src/usage_text.h
  5309. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5310. Fixed compiler waring
  5311. * test/UriListParserTest.cc
  5312. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5313. Parse options in -i list using OptionParser.
  5314. * src/UriListParser.cc
  5315. * src/UriListParser.h
  5316. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5317. Don't reset URI in retry to avoid additional round trips because
  5318. of redirects.
  5319. * src/AbstractCommand.cc
  5320. * src/OptionHandlerFactory.cc
  5321. * src/prefs.cc
  5322. * src/prefs.h
  5323. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5324. Declared hide() in OptionHandler.
  5325. * src/NameMatchOptionHandler.h
  5326. * src/OptionHandler.h
  5327. * src/OptionHandlerImpl.h
  5328. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5329. Updated doc
  5330. * src/Peer.h
  5331. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5332. Added log message in setStatusInternal()
  5333. * src/ServerStat.cc
  5334. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5335. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5336. effectively exclude failed server.
  5337. * src/AbstractCommand.cc
  5338. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5339. Added --index-out option to specify each file path for torrent.
  5340. Here index shown in --show-files option is used to specify which
  5341. file path should be altered. For example, to change the file path
  5342. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5343. option multiple times: --index-out=1=aria2.tar.bz2
  5344. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5345. available. This option can be specified in -i list.
  5346. * src/DefaultBtContext.cc
  5347. * src/DefaultBtContext.h
  5348. * src/MultiDiskAdaptor.cc
  5349. * src/MultiDiskAdaptor.h
  5350. * src/MultiFileAllocationIterator.cc
  5351. * src/OptionHandlerFactory.cc
  5352. * src/OptionHandlerImpl.h
  5353. * src/Util.cc
  5354. * src/Util.h
  5355. * src/download_helper.cc
  5356. * src/prefs.cc
  5357. * src/prefs.h
  5358. * src/usage_text.h
  5359. * test/DefaultBtContextTest.cc
  5360. * test/MultiDiskAdaptorTest.cc
  5361. * test/MultiFileAllocationIteratorTest.cc
  5362. * test/UtilTest.cc
  5363. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5364. Use Util::pathJoin()
  5365. * src/MetalinkParserController.cc
  5366. * test/test.xml
  5367. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5368. Use Util::pathJoin()
  5369. * src/DefaultBtContext.cc
  5370. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5371. Added Util::pathJoin()
  5372. * src/Util.h
  5373. * test/UtilTest.cc
  5374. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5375. Applied basename function to remove directory element in
  5376. content-disposition value.
  5377. Return empty string if content-disposition value is ".." or ".".
  5378. * src/Util.cc
  5379. * test/UtilTest.cc
  5380. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5381. Added --max-overall-download-limit in man page.
  5382. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5383. * doc/aria2c.1.txt
  5384. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5385. Added --max-overall-download-limit option. Now --max-upload-limit
  5386. option is not ignored when --max-overall-upload-limit option has
  5387. non-zero value. aria2 checks download(upload) speed in the order:
  5388. first checks overall speed limit and if it is not exceeded, then
  5389. checks speed limit per download. Thus you can specify both
  5390. value. For example, set --max-overall-download-limit=1M and
  5391. --max-download-limit=500K to prevent from one download from eating
  5392. all overall speed limit.
  5393. * src/DefaultBtInteractive.cc
  5394. * src/DefaultBtInteractive.h
  5395. * src/DefaultBtMessageDispatcher.cc
  5396. * src/DefaultBtMessageDispatcher.h
  5397. * src/DownloadCommand.cc
  5398. * src/DownloadCommand.h
  5399. * src/FtpNegotiationCommand.cc
  5400. * src/HttpResponseCommand.cc
  5401. * src/OptionHandlerFactory.cc
  5402. * src/PeerInteractionCommand.cc
  5403. * src/RequestGroup.cc
  5404. * src/RequestGroup.h
  5405. * src/RequestGroupMan.cc
  5406. * src/RequestGroupMan.h
  5407. * src/prefs.cc
  5408. * src/prefs.h
  5409. * src/usage_text.h
  5410. * test/DefaultBtMessageDispatcherTest.cc
  5411. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5412. Documented select-file option in Input File section.
  5413. Documented --http-auth-challenge option.
  5414. * doc/aria2c.1.txt
  5415. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5416. Now select-file can be specified in the uri list(-i list).
  5417. * src/BtContext.cc
  5418. * src/BtContext.h
  5419. * src/RequestGroup.cc
  5420. * src/Sequence.h
  5421. * src/download_helper.cc
  5422. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5423. Made the upper value of --max-concurrent-downloads options unlimited.
  5424. * src/OptionHandlerFactory.cc
  5425. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5426. Fixed the bug that disk writer is not created even if it shares
  5427. same piece with the preceding file if the length of previous file
  5428. is 0.
  5429. * src/MultiDiskAdaptor.cc
  5430. * test/MultiDiskAdaptorTest.cc
  5431. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5432. In BitTorrent, Open files in read-only mode for hash check. After
  5433. that, re-open file in read/write mode only when the download is
  5434. not finished.
  5435. * src/AbstractDiskWriter.cc
  5436. * src/AbstractDiskWriter.h
  5437. * src/AbstractSingleDiskAdaptor.cc
  5438. * src/AbstractSingleDiskAdaptor.h
  5439. * src/BtCheckIntegrityEntry.cc
  5440. * src/DiskAdaptor.h
  5441. * src/DiskWriter.h
  5442. * src/MultiDiskAdaptor.cc
  5443. * src/MultiDiskAdaptor.h
  5444. * src/RequestGroup.cc
  5445. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5446. Added --http-auth-challenge option. If it is set to true(by
  5447. default), aria2 sends HTTP authorization header only when it is
  5448. requested by the server. If false is set, then authorization
  5449. header is always sent to the server. This is useful for servers
  5450. that don't respond 401 code when authentication is required.
  5451. There is an exception: if username and password are embedded in
  5452. URI, authorization header is always sent to the server regardless
  5453. of this option.
  5454. * src/AuthConfigFactory.cc
  5455. * src/HttpSkipResponseCommand.cc
  5456. * src/OptionHandlerFactory.cc
  5457. * src/prefs.cc
  5458. * src/prefs.h
  5459. * src/usage_text.h
  5460. * test/AuthConfigFactoryTest.cc
  5461. * test/HttpRequestTest.cc
  5462. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5463. * Release 1.2.0
  5464. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5465. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5466. Thanks to all translators.
  5467. * po/es.po
  5468. * po/ja.po
  5469. * po/ru.po
  5470. * po/uk.po
  5471. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5472. Call deleteSocketForReadCheck() before socket is closed.
  5473. * src/HttpListenCommand.cc
  5474. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5475. Defined virtual destructor for BObject.
  5476. * src/bencode.h
  5477. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5478. Rewritten BDE to make it efficient.
  5479. * src/bencode.cc
  5480. * src/bencode.h
  5481. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5482. Removed function throw list.
  5483. * src/bencode.cc
  5484. * src/bencode.h
  5485. * test/BencodeTest.cc
  5486. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5487. Enclosed all URLs in double quotes in command-line examples.
  5488. * doc/aria2c.1.txt
  5489. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5490. Updated reference/see also section.
  5491. * README
  5492. * doc/aria2c.1.txt
  5493. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5494. Reorganized man page based on man man-pages.
  5495. * doc/aria2c.1.txt
  5496. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5497. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5498. because same documents are available in man page. Added
  5499. References section.
  5500. * README
  5501. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5502. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5503. PERFORMANCE PROFILE section.
  5504. * doc/aria2c.1.txt
  5505. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5506. Rewritten the section for configuration file.
  5507. * README
  5508. * doc/aria2c.1.txt
  5509. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5510. Fixed the segmentation fault during execution of choking algorithm
  5511. in leecher state because of broken compare operator
  5512. implementation.
  5513. * src/BtLeecherStateChoke.cc
  5514. * src/BtLeecherStateChoke.h
  5515. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5516. Open file in binary mode.
  5517. * src/CookieStorage.cc
  5518. * src/DHTSetup.cc
  5519. * src/DHTUtil.cc
  5520. * src/Netrc.cc
  5521. * src/NsCookieParser.cc
  5522. * src/ProtocolDetector.cc
  5523. * src/RequestGroupMan.cc
  5524. * src/Signature.cc
  5525. * src/bencode.cc
  5526. * src/download_helper.cc
  5527. * src/option_processing.cc
  5528. * test/CookieParserTest.cc
  5529. * test/DefaultBtProgressInfoFileTest.cc
  5530. * test/FileTest.cc
  5531. * test/GZipDecoderTest.cc
  5532. * test/RequestGroupManTest.cc
  5533. * test/SignatureTest.cc
  5534. * test/SingleFileAllocationIteratorTest.cc
  5535. * test/UriListParserTest.cc
  5536. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5537. Removed operator[] because it is ambiguous with built-in []
  5538. operator.
  5539. * src/array_fun.h
  5540. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5541. Fixed compile error
  5542. * src/OptionParser.cc
  5543. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5544. Added missing call to arrayWrapperConst
  5545. * test/array_funTest.cc
  5546. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5547. Use array_wrapper instead of array_ptr.
  5548. * src/DHTRoutingTableDeserializer.cc
  5549. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5550. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5551. * src/array_fun.h
  5552. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5553. Added array_wrapper template.
  5554. * src/array_fun.h
  5555. * test/array_funTest.cc
  5556. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5557. Use operator T* of array_ptr.
  5558. * src/OptionParser.cc
  5559. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5560. Use localhost instead of 127.0.0.1
  5561. * test/FtpConnectionTest.cc
  5562. * test/MSEHandshakeTest.cc
  5563. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5564. Added operator T*
  5565. * src/array_fun.h
  5566. * test/array_funTest.cc
  5567. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5568. Use dynamically allocated char array to detect memory access
  5569. violation.
  5570. * src/DHTRoutingTableDeserializer.cc
  5571. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5572. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5573. defined.
  5574. * src/PeerMessageUtil.cc
  5575. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5576. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5577. * configure.ac
  5578. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5579. Added a check to see struct sockaddr_in has sin_len member.
  5580. * configure.ac
  5581. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5582. Fixed buffer overrun.
  5583. * src/DHTRoutingTableDeserializer.cc
  5584. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5585. Added LL for long long int constant.
  5586. * test/FtpConnectionTest.cc
  5587. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5588. Casted to unsigned int to suppress compiler warning on netbsd.
  5589. * src/BtRuntime.h
  5590. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5591. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5592. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5593. type time_t.
  5594. * src/SimpleLogger.cc
  5595. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5596. Added test for FtpConnection::receiveSizeResponse().
  5597. * test/FtpConnectionTest.cc
  5598. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5599. Fix epoll error on the old kernel 2.6.8 or ealier.
  5600. * src/EpollEventPoll.cc
  5601. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5602. Use Util::parseLLInt instead of sscanf for portability. The
  5603. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5604. * src/FtpConnection.cc
  5605. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5606. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5607. block. It should not filter anything.
  5608. * src/BitfieldMan.cc
  5609. * src/ConsoleStatCalc.cc
  5610. * test/BitfieldManTest.cc
  5611. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5612. Fixed the bug that the boolean options that don't take arguments
  5613. don't work.
  5614. * src/OptionHandlerImpl.h
  5615. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5616. Fixed broken selected file BitTorrent download.
  5617. * src/MultiDiskAdaptor.cc
  5618. * test/MultiDiskAdaptorTest.cc
  5619. * test/MultiFileAllocationIteratorTest.cc
  5620. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5621. Fixed #define guard for EpollEventPoll
  5622. * src/EpollEventPoll.h
  5623. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5624. Wait 2 seconds. 1 second is sometimes not enough.
  5625. * test/TimeSeedCriteriaTest.cc
  5626. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5627. Use localhost instead of 127.0.0.1.
  5628. * test/DHTConnectionImplTest.cc
  5629. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5630. Suppressed compiler warning.
  5631. * src/AdaptiveURISelector.cc
  5632. * src/DefaultPieceStorage.cc
  5633. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5634. Defined virtual destructor.
  5635. * src/MetalinkParserState.h
  5636. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5637. Give NULL for second argument of getaddrinfo instead of "0".
  5638. * src/NameResolver.cc
  5639. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5640. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5641. included strptime doesn't parse data for this format.
  5642. * src/FtpConnection.cc
  5643. * test/FtpConnectionTest.cc
  5644. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5645. Removed tests giving -1 for unsigned argument.
  5646. * test/SingleFileDownloadContextTest.cc
  5647. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5648. Don't use sha256 in tests because it might not be supported by the
  5649. SSL library.
  5650. * test/MetalinkProcessorTest.cc
  5651. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5652. Removed tests giving -1 for unsigned argument.
  5653. * test/AlphaNumberDecoratorTest
  5654. * test/BitfieldManTest.cc
  5655. * test/DefaultBtContextTest.cc
  5656. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5657. Fixed compile error without libcares when epoll is available.
  5658. * src/EpollEventPoll.cc
  5659. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5660. Included fstream instead of iostream.
  5661. * test/SignatureTest.cc
  5662. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5663. Removed #include <algorithm>
  5664. * test/RequestGroupTest.cc
  5665. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5667. using RequestGroup::extractURIResult().
  5668. * src/AdaptiveURISelector.cc
  5669. * src/RequestGroup.cc
  5670. * src/RequestGroup.h
  5671. * test/RequestGroupTest.cc
  5672. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5673. Added tests for array_ptr.
  5674. * test/array_funTest.cc
  5675. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5676. Don't send ip parameter to a tracker if ip parameter is empty
  5677. string.
  5678. * src/DefaultBtAnnounce.cc
  5679. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5680. Adjusted line feed.
  5681. * src/version_usage.cc
  5682. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5683. Print tags, possible values when OptionHandlerException is caught.
  5684. * src/option_processing.cc
  5685. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5686. Changed the message for FatalException.
  5687. * src/OptionParser.cc
  5688. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5689. Documented --bt-external-ip option in man page. Updated man pages
  5690. for --proxy-method option.
  5691. * doc/aria2c.1.txt
  5692. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5693. Use GET method for FTP via HTTP proxy.
  5694. * src/FtpInitiateConnectionCommand.cc
  5695. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5696. Changed the default value of --proxy-method option from 'tunnel'
  5697. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5698. option.
  5699. * src/AbstractCommand.cc
  5700. * src/AbstractCommand.h
  5701. * src/FtpInitiateConnectionCommand.cc
  5702. * src/HttpDownloadCommand.cc
  5703. * src/HttpInitiateConnectionCommand.cc
  5704. * src/HttpInitiateConnectionCommand.h
  5705. * src/OptionHandlerFactory.cc
  5706. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5707. Initialized _logger
  5708. * src/SelectEventPoll.cc
  5709. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5710. Defined a copy constructor for the same type.
  5711. * src/SharedHandle.h
  5712. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5713. Added OptionParser::parseArg() which internally uses getopt_long
  5714. to parse command-line options. All command-line options are now
  5715. configured by OptionHandler. No manual editing of struct option*
  5716. is required any more.
  5717. * src/NameMatchOptionHandler.h
  5718. * src/OptionHandler.h
  5719. * src/OptionHandlerFactory.cc
  5720. * src/OptionHandlerImpl.h
  5721. * src/OptionParser.cc
  5722. * src/OptionParser.h
  5723. * src/array_fun.h
  5724. * src/main.cc
  5725. * src/option_processing.cc
  5726. * test/OptionHandlerTest.cc
  5727. * test/OptionParserTest.cc
  5728. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5729. Fixed configure error with --disable-epoll
  5730. * configure.ac
  5731. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5732. Fixed compile error when HAVE_EPOLL is not defined.
  5733. Fixed linker error on bigendian systems.
  5734. * src/SocketCore.cc
  5735. * src/SocketCore.h
  5736. * test/DefaultBtProgressInfoFileTest.cc
  5737. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5738. Added --bt-external-ip option. You can specify the external IP
  5739. address to report to a BitTorrent tracker. Although this function
  5740. is named 'external', it can accept any kind of IP addresses.
  5741. * src/DefaultBtAnnounce.cc
  5742. * src/OptionHandlerFactory.cc
  5743. * src/option_processing.cc
  5744. * src/prefs.cc
  5745. * src/prefs.h
  5746. * src/usage_text.h
  5747. * test/DefaultBtAnnounceTest.cc
  5748. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5749. Extracted the algorithm to find the longest incremental sequence
  5750. as max_sequence template.
  5751. * src/LongestSequencePieceSelector.cc
  5752. * src/a2algo.h
  5753. * test/Makefile.am
  5754. * test/a2algoTest.cc
  5755. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5756. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5757. * src/usage_text.h
  5758. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5759. Updated doc for --uri-selector, --http-server-listen-port and
  5760. --enable-http-server option. Documented --event-poll option.
  5761. * doc/aria2c.1.txt
  5762. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5763. Updated doc for --enable-http-server.
  5764. * src/usage_text.h
  5765. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5766. Documented --http-server-listen-port and --enable-http-server in
  5767. man page.
  5768. * doc/aria2c.1.txt
  5769. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5770. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5771. translations. Thanks to all translators.
  5772. * po/es.po
  5773. * po/id.po
  5774. * po/it.po
  5775. * po/ru.po
  5776. * po/uk.po
  5777. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5778. Bump up version number to 1.2.0
  5779. * configure.ac
  5780. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5781. BtContext::getAnnounceTiers() now returns const reference.
  5782. * src/BtContext.h
  5783. * src/DefaultBtContext.cc
  5784. * src/DefaultBtContext.h
  5785. * test/MockBtContext.h
  5786. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5787. Change the number of retries for tracker request based on the
  5788. number of available tracker in a torrent file.
  5789. * src/TrackerWatcherCommand.cc
  5790. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5791. Added _maxTries property to RequestGroup and assign the option
  5792. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5793. RequestGroup::getMaxTries() instead of
  5794. Option::getAsInt(PREF_MAX_TRIES).
  5795. * src/AbstractCommand.cc
  5796. * src/RequestGroup.cc
  5797. * src/RequestGroup.h
  5798. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5799. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5800. Mandriva. I modified the patch: make RequestGroup have the
  5801. timeout value and AdaptiveURISelector directly modifies that
  5802. value.
  5803. * src/AbstractCommand.cc
  5804. * src/AdaptiveURISelector.cc
  5805. * src/AdaptiveURISelector.h
  5806. * src/FtpNegotiationCommand.cc
  5807. * src/RequestGroup.cc
  5808. * src/RequestGroup.h
  5809. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5810. Fixed compiler warning
  5811. * test/IteratableChecksumValidatorTest.cc
  5812. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5813. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5814. integrated downloads. This PieceSelector subclass finds the
  5815. longest continuous sequence in the available missing pieces and
  5816. selects the last index of such sequence. This makes HTTP/FTP
  5817. connections less interrupted by the pieces obtained by BitTorrent
  5818. peers.
  5819. * src/DefaultPieceStorage.cc
  5820. * src/DefaultPieceStorage.h
  5821. * src/LongestSequencePieceSelector.cc
  5822. * src/LongestSequencePieceSelector.h
  5823. * src/Makefile.am
  5824. * src/PieceSelector.h
  5825. * src/RarestPieceSelector.h
  5826. * src/RequestGroup.cc
  5827. * test/BtDependencyTest.cc
  5828. * test/DefaultPieceStorageTest.cc
  5829. * test/IteratableChecksumValidatorTest.cc
  5830. * test/LongestSequencePieceSelectorTest.cc
  5831. * test/Makefile.am
  5832. * test/SegmentManTest.cc
  5833. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5834. Fixed the bug that the average speed is wrong in
  5835. http/ftp/BitTorrent integrated download. Only the download bytes
  5836. in BitTorrent were considered.
  5837. * src/RequestGroup.cc
  5838. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5839. Choose port for BitTorrent/DHT randomly from the specified range.
  5840. * src/DHTConnectionImpl.cc
  5841. * src/PeerListenCommand.cc
  5842. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5843. Send HTTP Authorization header only if it is requested by the
  5844. server(response 401). There are some exceptions. The authorization
  5845. header for proxy is always sent if it is available without request
  5846. by the server. If username/password is specified in the URI, it
  5847. is immediately sent to the server without request by the server.
  5848. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5849. SharedHandle<AuthConfig>().
  5850. NetrcAuthResolver::resolveAuthConfig() returns
  5851. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5852. * src/AbstractAuthResolver.cc
  5853. * src/AbstractProxyRequestCommand.cc
  5854. * src/AuthConfigFactory.cc
  5855. * src/AuthConfigFactory.h
  5856. * src/HttpConnection.cc
  5857. * src/HttpRequest.cc
  5858. * src/HttpRequest.h
  5859. * src/HttpResponse.cc
  5860. * src/HttpResponseCommand.cc
  5861. * src/HttpSkipResponseCommand.cc
  5862. * test/AuthConfigFactoryTest.cc
  5863. * test/HttpRequestTest.cc
  5864. * test/HttpResponseTest.cc
  5865. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5866. Remove leading "--" from help keyword and a substring after "="
  5867. from help keyword, so that one can query options by '-h--max-' or
  5868. '-hmax-peers=10'.
  5869. * src/option_processing.cc
  5870. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5871. Rewritten PStringVisitor and its implementation.
  5872. * src/PStringBuildVisitor.cc
  5873. * src/PStringBuildVisitor.h
  5874. * src/PStringDatum.h
  5875. * src/PStringNumLoop.h
  5876. * src/PStringSegment.cc
  5877. * src/PStringSegment.h
  5878. * src/PStringSelect.h
  5879. * src/PStringVisitor.h
  5880. * src/download_helper.cc
  5881. * test/PStringBuildVisitorTest.cc
  5882. * test/ParameterizedStringParserTest.cc
  5883. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5884. Persist connection between the built-in HTTP server and a client
  5885. if a client supports keep-alive. Fixed the bug that aria2 exits
  5886. when the HTTP server receives EOF from a client.
  5887. * src/HttpServer.cc
  5888. * src/HttpServer.h
  5889. * src/HttpServerCommand.cc
  5890. * src/HttpServerCommand.h
  5891. * src/HttpServerResponseCommand.cc
  5892. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5893. Added experimental built-in HTTP server. Currently, when a client
  5894. accesses to the server, it responds with the current download
  5895. progress. By default, it is disabled. To enable the server, give
  5896. --enable-http-server option. To change the default port number
  5897. for the server to listen to, use --http-server-listen-port option.
  5898. The response HTML is very simple and refreshes it self each 1
  5899. second. Because of this refresh, you see flicker in normal web
  5900. browser such as Firefox. I recommend to use console-based browser
  5901. such as elinks, w3m. To connect to the server, run 'elinks
  5902. http://localhost:6800/' while running aria2. Please replace port
  5903. number '6800'(which is default) with your preference.
  5904. * src/DownloadEngineFactory.cc
  5905. * src/HttpHeader.cc
  5906. * src/HttpHeader.h
  5907. * src/HttpHeaderProcessor.cc
  5908. * src/HttpHeaderProcessor.h
  5909. * src/HttpListenCommand.cc
  5910. * src/HttpListenCommand.h
  5911. * src/HttpServer.cc
  5912. * src/HttpServer.h
  5913. * src/HttpServerCommand.cc
  5914. * src/HttpServerCommand.h
  5915. * src/HttpServerResponseCommand.cc
  5916. * src/HttpServerResponseCommand.h
  5917. * src/Makefile.am
  5918. * src/OptionHandlerFactory.cc
  5919. * src/Util.cc
  5920. * src/Util.h
  5921. * src/help_tags.h
  5922. * src/option_processing.cc
  5923. * src/prefs.cc
  5924. * src/prefs.h
  5925. * src/usage_text.h
  5926. * test/HttpHeaderProcessorTest.cc
  5927. * test/UtilTest.cc
  5928. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5929. Removed.
  5930. * src/CheckIntegrityMan.cc
  5931. * src/FileAllocationMan.cc
  5932. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5933. Made (piece) hash check sequential for each RequestGroup because
  5934. simultaneous hash check is slower than sequential execution.
  5935. * src/CheckIntegrityCommand.cc
  5936. * src/CheckIntegrityDispatcherCommand.cc
  5937. * src/CheckIntegrityDispatcherCommand.h
  5938. * src/CheckIntegrityMan.h
  5939. * src/ConsoleStatCalc.cc
  5940. * src/DownloadCommand.cc
  5941. * src/DownloadEngine.cc
  5942. * src/DownloadEngine.h
  5943. * src/DownloadEngineFactory.cc
  5944. * src/Makefile.am
  5945. * src/Makefile.in
  5946. * src/RequestGroup.cc
  5947. * src/StatCalc.h
  5948. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5949. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5950. SequentialDispatcherCommand.
  5951. * src/FileAllocationDispatcherCommand.cc
  5952. * src/SequentialDispatcherCommand.h
  5953. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5954. Rewritten FileAllocationDispatcherCommand using brand new
  5955. SequentialDispatcherCommand.
  5956. * src/DownloadEngineFactory.cc
  5957. * src/FileAllocationCommand.cc
  5958. * src/FileAllocationDispatcherCommand.cc
  5959. * src/FileAllocationDispatcherCommand.h
  5960. * src/Makefile.am
  5961. * src/SequentialDispatcherCommand.h
  5962. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5963. Replaced FileAllocationMan with
  5964. SequentialPicker<FileAllocationEntry>.
  5965. * src/BtCheckIntegrityEntry.cc
  5966. * src/ConsoleStatCalc.cc
  5967. * src/DownloadEngine.cc
  5968. * src/DownloadEngine.h
  5969. * src/DownloadEngineFactory.cc
  5970. * src/FileAllocationCommand.cc
  5971. * src/FileAllocationDispatcherCommand.cc
  5972. * src/FileAllocationMan.h
  5973. * src/Makefile.am
  5974. * src/SequentialPicker.h
  5975. * src/StatCalc.h
  5976. * src/StreamCheckIntegrityEntry.cc
  5977. * test/Makefile.am
  5978. * test/SequentialPickerTest.cc
  5979. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5980. Added doc for adaptive URI selector.
  5981. * doc/aria2c.1.txt
  5982. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5983. Added doc for adaptive URI selector.
  5984. * src/usage_text.h
  5985. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5986. Added doc for --bt-max-peers option.
  5987. * doc/aria2c.1.txt
  5988. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5989. Added doc for --bt-hash-check-seed option.
  5990. * doc/aria2c.1.txt
  5991. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5992. Documented exit codes.
  5993. * doc/aria2c.1.txt
  5994. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5995. Added --bt-max-peers option to specify the maximum number of peers
  5996. per torrent. 0 means unlimited number of peers.
  5997. * src/ActivePeerConnectionCommand.cc
  5998. * src/BtRuntime.h
  5999. * src/DefaultPeerStorage.cc
  6000. * src/DefaultPeerStorage.h
  6001. * src/OptionHandlerFactory.cc
  6002. * src/RequestGroup.cc
  6003. * src/option_processing.cc
  6004. * src/prefs.cc
  6005. * src/prefs.h
  6006. * src/usage_text.h
  6007. * test/DefaultPeerStorageTest.cc
  6008. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6009. Added --bt-hash-check-seed option. If true is given to this
  6010. option, after hash check using --check-integrity option and file
  6011. is complete, continue to seed file. If you want to check file and
  6012. download it only when it is damaged or incomplete, set this option
  6013. to false. This option has effect only on BitTorrent download.
  6014. The default value is true(This is the same behavior with the
  6015. previous release).
  6016. * src/BtCheckIntegrityEntry.cc
  6017. * src/OptionHandlerFactory.cc
  6018. * src/option_processing.cc
  6019. * src/prefs.cc
  6020. * src/prefs.h
  6021. * src/usage_text.h
  6022. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6023. Updated copyright year.
  6024. * src/version_usage.cc
  6025. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6026. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6027. * doc/aria2c.1.txt
  6028. * src/usage_text.h
  6029. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6030. Made the max value of split option unlimited.
  6031. * doc/aria2c.1.txt
  6032. * src/OptionHandlerFactory.cc
  6033. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6034. Fixed compile warning/error.
  6035. * src/DownloadResult.h
  6036. * src/HttpDownloadCommand.cc
  6037. * src/ServerStat.cc
  6038. * test/RequestGroupTest.cc
  6039. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6040. Added --event-poll option to select the method for polling events.
  6041. The available methods are "select" and "epoll". "epoll" is
  6042. available on Linux only. The earlier release has the compile
  6043. option to choose from these methods.
  6044. * configure.ac
  6045. * src/RequestGroupMan.cc
  6046. * src/OptionHandlerFactory.cc
  6047. * src/EpollEventPoll.h
  6048. * src/StreamFileAllocationEntry.cc
  6049. * src/a2io.h
  6050. * src/SelectEventPoll.h
  6051. * src/option_processing.cc
  6052. * src/prefs.h
  6053. * src/EpollEventPoll.cc
  6054. * src/EventPoll.h
  6055. * src/SocketCore.h
  6056. * src/Makefile.am
  6057. * src/main.cc
  6058. * src/DownloadEngine.h
  6059. * src/SelectEventPoll.cc
  6060. * src/DownloadEngine.cc
  6061. * src/SocketCore.cc
  6062. * src/DownloadEngineFactory.cc
  6063. * src/Makefile.in
  6064. * src/prefs.cc
  6065. * src/usage_text.h
  6066. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6067. Included RecoverableException.h from main.cc
  6068. * src/main.cc
  6069. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6070. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6071. now returns last error encountered in the HTTP/FTP downloads as a
  6072. exit status value. If all downloads finished successfully, aria2
  6073. returns 0. The error code is defined in src/DownloadResult.h.
  6074. The error occurred in the download currently in progress is not
  6075. reported as a last error. If no error has encountered but there
  6076. are in progress or waiting downloads, aria2 returns 7.
  6077. * src/AbstractCommand.cc
  6078. * src/DlAbortEx.h
  6079. * src/DlRetryEx.h
  6080. * src/DownloadCommand.cc
  6081. * src/DownloadFailureException.h
  6082. * src/DownloadResult.h
  6083. * src/FtpNegotiationCommand.cc
  6084. * src/HttpSkipResponseCommand.cc
  6085. * src/Makefile.am
  6086. * src/MultiUrlRequestInfo.cc
  6087. * src/MultiUrlRequestInfo.h
  6088. * src/RecoverableException.h
  6089. * src/RequestGroup.cc
  6090. * src/RequestGroup.h
  6091. * src/RequestGroupMan.cc
  6092. * src/RequestGroupMan.h
  6093. * src/URIResult.cc
  6094. * src/URIResult.h
  6095. * src/main.cc
  6096. * src/option_processing.cc
  6097. * test/RequestGroupTest.cc
  6098. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6099. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6100. patch adds AdaptiveURISelector, which selects one of the bests
  6101. mirrors for first and reserved connections. For supplementary
  6102. ones, it returns mirrors which has not been tested yet, and if
  6103. each of them already tested, returns mirrors which has to be
  6104. tested again. Otherwise, it doesn't return anymore mirrors.
  6105. * src/AdaptiveURISelector.cc
  6106. * src/AdaptiveURISelector.h
  6107. * src/FtpNegotiationCommand.cc
  6108. * src/HttpResponseCommand.cc
  6109. * src/Makefile.am
  6110. * src/Makefile.in
  6111. * src/OptionHandlerFactory.cc
  6112. * src/RequestGroup.cc
  6113. * src/RequestGroup.h
  6114. * src/RequestGroupMan.cc
  6115. * src/ServerStat.cc
  6116. * src/ServerStat.h
  6117. * src/ServerStatMan.cc
  6118. * src/SpeedCalc.cc
  6119. * src/URISelector.h
  6120. * src/prefs.cc
  6121. * src/prefs.h
  6122. * test/RequestGroupManTest.cc
  6123. * test/ServerStatManTest.cc
  6124. * test/ServerStatTest.cc
  6125. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6126. Fixed unit test error.
  6127. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6128. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6129. * Release 1.1.2
  6130. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6131. Updated Russian translation. Thanks to the translators.
  6132. * po/ru.po
  6133. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6134. Added the description of --use-head option to man page.
  6135. * doc/aria2c.1.txt
  6136. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6137. Bump up version number to 1.1.2
  6138. * configure.ac
  6139. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6140. Added --use-head option to toggle whether HEAD method should be
  6141. used in the first HTTP request. By default aria2 uses HEAD method
  6142. as the first request. When the server doesn't recognize HEAD, then
  6143. give aria2 --use-head=false to force aria2 to use GET method
  6144. instead.
  6145. * src/OptionHandlerFactory.cc
  6146. * src/RequestGroupMan.cc
  6147. * src/option_processing.cc
  6148. * src/prefs.cc
  6149. * src/prefs.h
  6150. * src/usage_text.h
  6151. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6152. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6153. message is received before CHOKE message. The old implementation
  6154. doen't clear the use-bit of the piece when recieved REJECT
  6155. message.
  6156. * src/DefaultBtMessageDispatcher.cc
  6157. * test/DefaultBtMessageDispatcherTest.cc
  6158. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6159. * Release 1.1.1
  6160. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6161. Bump up version number to 1.1.1.
  6162. * configure.ac
  6163. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6164. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6165. is printed repeatedly.
  6166. * src/ConsoleStatCalc.cc
  6167. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6168. * Release 1.1.0
  6169. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6170. Added ifdef clause for conditional compilation.
  6171. * src/main.cc
  6172. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6173. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6174. translations. Thanks to all translators.
  6175. * po/ja.po
  6176. * po/ru.po
  6177. * po/uk.po
  6178. * po/zh_CN.po
  6179. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6180. Added the preceding ">>> " before the message "Printing the
  6181. contents of file..." to make the output more readable.
  6182. * src/main.cc
  6183. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6184. Added try-catch block in the loop in showFiles() to continue the
  6185. operation even if the exception occurred in one file.
  6186. * src/main.cc (showFiles)
  6187. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6188. Made messages in showFiles() translatable.
  6189. * po/aria2.pot
  6190. * src/main.cc
  6191. * src/message.h
  6192. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6193. Print the contents of Torrent/Metalink files are printed without
  6194. -T/-M options.
  6195. * src/main.cc
  6196. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6197. Escaped '--' with '\--'
  6198. * README
  6199. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6200. Updated "How to build" section in README. Mentioned about
  6201. --with-ca-bundle compile option.
  6202. * README
  6203. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6204. Bump up version number to 1.1.0.
  6205. * configure.ac
  6206. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6207. Added a note for --dht-listen-port option.
  6208. * doc/aria2c.1.txt
  6209. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6210. Update doc for --realtime-chunk-checksum option.
  6211. * doc/aria2c.1.txt
  6212. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6213. Update doc for --realtime-chunk-checksum option.
  6214. * src/usage_text.h
  6215. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6216. Updated French, Japanese, Russian and Ukrainian translations.
  6217. Thanks to all translators.
  6218. * po/fr.po
  6219. * po/ja.po
  6220. * po/ru.po
  6221. * po/uk.po
  6222. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6223. Renamed aria2c.pot to aria2.pot
  6224. * po/aria2.pot
  6225. * po/aria2c.pot: Removed.
  6226. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6227. Removed MetaEntry.h
  6228. * src/Makefile.am
  6229. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6230. Rename file by appending digits if a local file exists and its
  6231. file size is larger than that of remote file with --continue
  6232. option. The old implementation just throws exception in such case.
  6233. * src/RequestGroup.cc
  6234. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6235. Fixed the bug that download progress summary is not printed in the
  6236. interval specified by the option.
  6237. * src/ConsoleStatCalc.cc
  6238. * src/ConsoleStatCalc.h
  6239. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6240. Fixed compiler warning
  6241. * src/Cookie.cc
  6242. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6243. Fixed the cookie implementation based on RFC2965.
  6244. Now if a value in domain field is not started with dot, then
  6245. prepend dot. That means a cookie with domain=sf.net is sent to
  6246. wiki.sf.net.
  6247. * src/Cookie.cc
  6248. * test/CookieParserTest.cc
  6249. * test/CookieStorageTest.cc
  6250. * test/CookieTest.cc
  6251. * test/NsCookieParserTest.cc
  6252. * test/Sqlite3MozCookieParserTest.cc
  6253. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6254. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6255. is enabled and the server doesn't support keep-alive.
  6256. * src/AbstractCommand.cc
  6257. * src/DownloadCommand.cc
  6258. * src/HttpDownloadCommand.cc
  6259. * src/HttpDownloadCommand.h
  6260. * src/HttpResponseCommand.cc
  6261. * src/Request.cc
  6262. * src/Request.h
  6263. * test/RequestTest.cc
  6264. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6265. Removed Dictionary/List/Data and its related classes.
  6266. * src/BencodeVisitor.cc: Removed.
  6267. * src/BencodeVisitor.h: Removed.
  6268. * src/Data.cc: Removed.
  6269. * src/Data.h: Removed.
  6270. * src/Dictionary.cc: Removed.
  6271. * src/Dictionary.h: Removed.
  6272. * src/List.cc: Removed.
  6273. * src/List.h: Removed.
  6274. * src/Makefile.am
  6275. * src/MetaEntry.h: Removed.
  6276. * src/MetaEntryVisitor.h: Removed.
  6277. * src/MetaFileUtil.cc: Removed.
  6278. * src/MetaFileUtil.h: Removed.
  6279. * test/BencodeVisitorTest.cc: Removed.
  6280. * test/DataTest.cc: Removed.
  6281. * test/DictionaryTest.cc: Removed.
  6282. * test/ListTest.cc: Removed.
  6283. * test/Makefile.am
  6284. * test/MetaFileUtilTest.cc: Removed.
  6285. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6286. Removed include of MetaEntry.h
  6287. * test/DHTMessageTrackerEntryTest.cc
  6288. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6289. Use BDE instead of Dictionary/List/Data.
  6290. * src/AnnounceList.cc
  6291. * src/AnnounceList.h
  6292. * test/AnnounceListTest.cc
  6293. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6294. Use BDE instead of Dictionary/List/Data.
  6295. * src/DHTAbstractMessage.cc
  6296. * src/DHTAbstractMessage.h
  6297. * src/DHTAnnouncePeerMessage.cc
  6298. * src/DHTAnnouncePeerMessage.h
  6299. * src/DHTAnnouncePeerReplyMessage.cc
  6300. * src/DHTAnnouncePeerReplyMessage.h
  6301. * src/DHTFindNodeMessage.cc
  6302. * src/DHTFindNodeMessage.h
  6303. * src/DHTFindNodeReplyMessage.cc
  6304. * src/DHTFindNodeReplyMessage.h
  6305. * src/DHTGetPeersMessage.cc
  6306. * src/DHTGetPeersMessage.h
  6307. * src/DHTGetPeersReplyMessage.cc
  6308. * src/DHTGetPeersReplyMessage.h
  6309. * src/DHTMessageFactory.h
  6310. * src/DHTMessageFactoryImpl.cc
  6311. * src/DHTMessageFactoryImpl.h
  6312. * src/DHTMessageReceiver.cc
  6313. * src/DHTMessageTracker.cc
  6314. * src/DHTMessageTracker.h
  6315. * src/DHTPingMessage.cc
  6316. * src/DHTPingMessage.h
  6317. * src/DHTPingReplyMessage.cc
  6318. * src/DHTPingReplyMessage.h
  6319. * src/DHTQueryMessage.cc
  6320. * src/DHTQueryMessage.h
  6321. * src/DHTResponseMessage.cc
  6322. * src/DHTResponseMessage.h
  6323. * test/DHTAnnouncePeerMessageTest.cc
  6324. * test/DHTAnnouncePeerReplyMessageTest.cc
  6325. * test/DHTFindNodeMessageTest.cc
  6326. * test/DHTFindNodeReplyMessageTest.cc
  6327. * test/DHTGetPeersMessageTest.cc
  6328. * test/DHTGetPeersReplyMessageTest.cc
  6329. * test/DHTMessageFactoryImplTest.cc
  6330. * test/DHTMessageTrackerTest.cc
  6331. * test/DHTPingMessageTest.cc
  6332. * test/DHTPingReplyMessageTest.cc
  6333. * test/MockDHTMessageFactory.h
  6334. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6335. Added tests the case where length < 0 is specified.
  6336. * test/BencodeTest.cc
  6337. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6338. Fixed memory leak in decoderawstring()
  6339. * src/bencode.cc
  6340. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6341. Added missing #ifdef guard. Added uc() function for String and
  6342. removeKey() for Dict.
  6343. * src/bencode.cc
  6344. * src/bencode.h
  6345. * test/BencodeTest.cc
  6346. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6347. Use BDE instead of Dictionary/List/Data.
  6348. * src/HandshakeExtensionMessage.cc
  6349. * src/HandshakeExtensionMessage.h
  6350. * test/HandshakeExtensionMessageTest.cc
  6351. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6352. Added --max-overall-upload-limit option. This option limits the
  6353. overall upload speed. Stated in help message that the existing
  6354. --max-upload-limit option limits the upload speed per each
  6355. torrent. Man page is also updated.
  6356. * doc/aria2c.1.txt
  6357. * src/DefaultBtMessageDispatcher.cc
  6358. * src/DefaultBtMessageDispatcher.h
  6359. * src/OptionHandlerFactory.cc
  6360. * src/PeerInteractionCommand.cc
  6361. * src/option_processing.cc
  6362. * src/prefs.cc
  6363. * src/prefs.h
  6364. * src/usage_text.h
  6365. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6366. Use BDE instead of Dictionary/List/Data classes.
  6367. * src/CompactPeerListProcessor.cc
  6368. * src/CompactPeerListProcessor.h
  6369. * src/DefaultBtAnnounce.cc
  6370. * src/DefaultBtContext.cc
  6371. * src/DefaultBtContext.h
  6372. * src/DefaultPeerListProcessor.cc
  6373. * src/DefaultPeerListProcessor.h
  6374. * src/DelegatingPeerListProcessor.cc
  6375. * src/DelegatingPeerListProcessor.h
  6376. * src/PeerListProcessor.h
  6377. * src/UTPexExtensionMessage.cc
  6378. * src/Util.h
  6379. * src/message.h
  6380. * test/DefaultBtContextTest.cc
  6381. * test/DefaultPeerListProcessorTest.cc
  6382. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6383. Added bencode helper functions and BDE class.
  6384. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6385. * src/Makefile.am
  6386. * src/bencode.cc
  6387. * src/bencode.h
  6388. * test/BencodeTest.cc
  6389. * test/Makefile.am
  6390. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6391. Fixed the bug that bad URI is sent to the tracker when the announe
  6392. URI in torrent file includes query.
  6393. * src/DefaultBtAnnounce.cc
  6394. * test/DefaultBtAnnounceTest.cc
  6395. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6396. Added Option::blank().
  6397. Use !Option::blank(name) instead of Option::defined(name) for
  6398. the options that take filename.
  6399. * src/MultiUrlRequestInfo.cc
  6400. * src/Option.cc
  6401. * src/Option.h
  6402. * src/main.cc
  6403. * src/option_processing.cc
  6404. * test/OptionTest.cc
  6405. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6406. Documented the default value of --check-certificate option in man
  6407. page.
  6408. * doc/aria2c.1.txt
  6409. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6410. Enabled --check-certificate by default. Added compile
  6411. time(configure) option --with-ca-bundle to specify CA bundle.
  6412. Warn if --check-certificate=true and --ca-certificate is not
  6413. specified or loading CA certificate is failed.
  6414. * configure.ac
  6415. * src/MultiUrlRequestInfo.cc
  6416. * src/OptionHandlerFactory.cc
  6417. * src/message.h
  6418. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6419. Mentioned https tag in help option.
  6420. * doc/aria2c.1.txt
  6421. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6422. Added `https' tag to help option category. Added https tag to
  6423. --ca-certificate, --certificate, --check-certificate and
  6424. --private-key option.
  6425. * src/OptionHandlerFactory.cc
  6426. * src/help_tags.h
  6427. * src/option_processing.cc
  6428. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6429. Changed the package name from `aria2c' to `aria2' in order to fix
  6430. the packaging issue in Debian and Fedora. The name of the
  6431. executable is not changed.
  6432. * configure.ac
  6433. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6434. Fixed typos
  6435. * src/usage_text.h
  6436. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6437. Fixed typos and updated doc.
  6438. * README
  6439. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6440. Fixed typos
  6441. * doc/aria2c.1.txt
  6442. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6443. Fixed typos
  6444. * src/usage_text.h
  6445. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6446. Print a message when no files to download.
  6447. * src/download_helper.cc
  6448. * src/main.cc
  6449. * src/message.h
  6450. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6451. RFC3986 complied Percent-Encoding(urlencode).
  6452. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6453. ones.
  6454. * src/Request.cc
  6455. * src/Util.cc
  6456. * src/Util.h
  6457. * test/BtHandshakeMessageTest.cc
  6458. * test/DefaultBtAnnounceTest.cc
  6459. * test/DefaultBtContextTest.cc
  6460. * test/RequestTest.cc
  6461. * test/UtilTest.cc
  6462. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6463. Fixed the bug that prevents aria2 from downloading 0-length files
  6464. via HTTP/FTP.
  6465. * src/DefaultBtContext.cc
  6466. * src/DefaultBtContext.h
  6467. * src/DownloadContext.h
  6468. * src/FtpNegotiationCommand.cc
  6469. * src/HttpResponseCommand.cc
  6470. * src/HttpResponseCommand.h
  6471. * src/RequestGroup.cc
  6472. * src/SingleFileDownloadContext.cc
  6473. * src/SingleFileDownloadContext.h
  6474. * test/BtPostDownloadHandlerTest.cc
  6475. * test/MetalinkPostDownloadHandlerTest.cc
  6476. * test/MockBtContext.h
  6477. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6478. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6479. * src/option_processing.cc
  6480. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6481. Applied aria2-1.0.1-mingw.patch.
  6482. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6483. mingw.
  6484. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6485. * src/SocketCore.cc
  6486. * src/a2netcompat.h
  6487. * test/SocketCoreTest.cc
  6488. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6489. * Release 1.0.1
  6490. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6491. Updated Ukrainian and Norwegian Nynorsk translations.
  6492. Thanks to all translators.
  6493. * po/nn.po
  6494. * po/uk.po
  6495. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6496. Don't show download result when -S option is used.
  6497. * src/main.cc
  6498. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6499. Bump up version number to 1.0.1
  6500. * configure.ac
  6501. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6502. Closed files after the test cases in MultiDiskWriterTest::
  6503. testResetDiskWriterEntries(). This will fix the unit test error
  6504. in mingw32 build.
  6505. * test/MultiDiskWriterTest.cc
  6506. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6507. Use HEAD method to get file size from HTTP server for segmented
  6508. downloading.
  6509. The request to the BitTorrent Tracker always uses GET method because
  6510. the response of the tracker is small and it doesn't need segmented
  6511. download.
  6512. * src/FtpNegotiationCommand.cc
  6513. * src/HttpRequest.cc
  6514. * src/HttpResponseCommand.cc
  6515. * src/HttpSkipResponseCommand.cc
  6516. * src/RequestGroup.cc
  6517. * src/RequestGroup.h
  6518. * src/TrackerWatcherCommand.cc
  6519. * test/HttpRequestTest.cc
  6520. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6521. Fixed the bug that causes floating exception when -T option is used and
  6522. no URIs are given.
  6523. * src/download_helper.cc
  6524. * test/DownloadHelperTest.cc
  6525. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6526. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6527. errors in MinGW:
  6528. Closed file after saving server stats (RequestGroupMan.cc)
  6529. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6530. Ignored case & handled 2-digit years (strptime.c)
  6531. Added missing suseconds_t definition (a2time.h)
  6532. Fixed socket CLOSE() define (SocketCore.cc)
  6533. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6534. Changed utime() test values from x000 to x00000 as MinGW failed on
  6535. values less than timezone offset from Unix epoch
  6536. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6537. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6538. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6539. handle negative dates (CookieParserTest.cc)
  6540. * src/a2time.h
  6541. * src/FtpConnection.cc
  6542. * src/RequestGroupMan.cc
  6543. * src/SocketCore.cc
  6544. * src/strptime.c
  6545. * test/CookieParserTest.cc
  6546. * test/CopyDiskAdaptorTest.cc
  6547. * test/FileTest.cc
  6548. * test/FtpConnectionTest.cc
  6549. * test/MultiDiskAdaptorTest.cc
  6550. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6551. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6552. * doc/aria2c.1.txt
  6553. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6554. * Release 1.0.0
  6555. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6556. Added '~' to reserved characters.
  6557. * src/Util.cc
  6558. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6559. Do not urlencode Request::url in setUrl() because we want unmodified
  6560. URL using Request::getUrl()
  6561. * src/Request.cc
  6562. * src/Request.h
  6563. * test/RequestTest.cc
  6564. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6565. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6566. Thanks to all translators.
  6567. * po/bg.po
  6568. * po/fr.po
  6569. * po/ja.po
  6570. * po/ru.po
  6571. * po/uk.po
  6572. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6573. Bump up version number to 1.0.0
  6574. * configure.ac
  6575. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6576. Added nosqlite3 build to build_test.sh.
  6577. Renamed noxml as expat.
  6578. * build_test.sh
  6579. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6580. Updated INPUT FILE section.
  6581. * doc/aria2c.1.txt
  6582. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6583. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6584. on big endian systems because test .aria2 files are made for little
  6585. endian systems.
  6586. * test/DefaultBtProgressInfoFileTest.cc
  6587. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6588. Dropped ares support.
  6589. * README
  6590. * configure.ac
  6591. * m4/libares.m4: Removed.
  6592. * src/AsyncNameResolver.cc
  6593. * src/Makefile.am
  6594. * test/Makefile.am
  6595. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6596. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6597. Removed const qualifier from DiskWriter::size().
  6598. * src/AbstractDiskWriter.cc
  6599. * src/AbstractDiskWriter.h
  6600. * src/ByteArrayDiskWriter.cc
  6601. * src/ByteArrayDiskWriter.h
  6602. * src/DiskWriter.h
  6603. * test/ByteArrayDiskWriterTest.cc
  6604. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6605. Fixed the bug that causes segmentation fault/bus error during executing
  6606. choking algorithm while seeding. This is caused by improper
  6607. implementation of compare function which returns inconsistent results
  6608. depending on the timing of last unchoke.
  6609. * src/BtSeederStateChoke.cc
  6610. * src/BtSeederStateChoke.h
  6611. * src/DefaultPeerStorage.cc
  6612. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6613. Removed TODO
  6614. * TODO
  6615. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6616. Added a section that explains how to pass argument to options that
  6617. takes optional arguments with its short form.
  6618. * doc/aria2c.1.txt
  6619. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6620. Added -u for the short form of --max-upload-limit option.
  6621. * doc/aria2c.1.txt
  6622. * src/option_processing.cc
  6623. * src/usage_text.h
  6624. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6625. Added -V for the short form of --check-integrity option.
  6626. Now the argument of --check-integrity option is optional:
  6627. if it is omitted, it is evaluated as true.
  6628. * doc/aria2c.1.txt
  6629. * src/option_processing.cc
  6630. * src/usage_text.h
  6631. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6632. Made the default value of --ftp-pasv option set to true and it can take
  6633. true/false values.
  6634. * src/OptionHandlerFactory.cc
  6635. * src/option_processing.cc
  6636. * src/usage_text.h
  6637. * doc/aria2c.1.txt
  6638. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6639. Given custom random number generator to std::random_shuffle.
  6640. * src/AnnounceList.cc
  6641. * src/BtLeecherStateChoke.cc
  6642. * src/BtSeederStateChoke.cc
  6643. * src/DefaultBtRequestFactory.cc
  6644. * src/MetalinkEntry.cc
  6645. * src/RarestPieceSelector.cc
  6646. * src/SimpleRandomizer.cc
  6647. * src/SimpleRandomizer.h
  6648. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6649. Now the default value of --enable-direct-io is true.
  6650. * src/OptionHandlerFactory.cc
  6651. * doc/aria2c.1.txt
  6652. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6653. Erase peer before executing onReturningPeer and onErasingPeer
  6654. because choking algorithm called from onReturningPeer doesn't
  6655. like erasing peer in the active peer list.
  6656. * src/DefaultPeerStorage.cc
  6657. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6658. Instead of creating special filename in createDownloadResult() if
  6659. inMemoryDownload() is true, now it is done in getFilePath().
  6660. * src/RequestGroup.cc
  6661. * test/RequestGroupTest.cc
  6662. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6663. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6664. processed in memory. This is the fix for previous comment out.
  6665. * src/MemoryBufferPreDownloadHandler.cc
  6666. * src/RequestGroup.cc
  6667. * src/RequestGroup.h
  6668. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6669. Commented out the code which sets virtual directory path "[MEMORY]"
  6670. propagate directory to store to following RequestGroup.
  6671. * src/MemoryBufferPreDownloadHandler.cc
  6672. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6673. Bump up version number to 1.0.0b
  6674. * configure.ac
  6675. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6676. Added input_uris.txt to EXTRA_DIST
  6677. * test/Makefile.am
  6678. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6679. Removed PeerObject.h from Makefile.am
  6680. * src/Makefile.am
  6681. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6682. Avoid slow seeding
  6683. * src/PeerInteractionCommand.cc
  6684. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6685. Updated usage for -i option.
  6686. * src/usage_text.h (TEXT_INPUT_FILE)
  6687. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6688. Added INPUT FILE section to man page.
  6689. Escaped fake URLs.
  6690. * doc/aria2c.1.txt
  6691. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6692. Fixed wrong note position for -o option.
  6693. * doc/aria2c.1.txt
  6694. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6695. Fixed compile error without SSL/XML library.
  6696. * src/DefaultBtProgressInfoFile.cc
  6697. * src/DefaultBtProgressInfoFile.h
  6698. * src/FileMetalinkParserState.cc
  6699. * src/RequestGroup.h
  6700. * src/SocketCore.cc
  6701. * src/SocketCore.h
  6702. * src/VerificationMetalinkParserState.cc
  6703. * src/download_helper.h
  6704. * src/main.cc
  6705. * test/DefaultBtProgressInfoFileTest.cc
  6706. * test/DownloadHelperTest.cc
  6707. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6708. Rewritten URI handling functions. They are now provided as a testable
  6709. functions.
  6710. * src/Makefile.am
  6711. * src/RequestGroup.cc
  6712. * src/RequestGroup.h
  6713. * src/download_helper.cc
  6714. * src/download_helper.h
  6715. * src/main.cc
  6716. * test/DownloadHelperTest.cc
  6717. * test/Makefile.am
  6718. * test/input_uris.txt
  6719. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6720. Quickly terminate commands when ctrl-c is pressed.
  6721. * src/DownloadEngine.cc
  6722. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6723. Quickly terminate idle commands when download finished.
  6724. * src/AbstractCommand.cc
  6725. * src/DownloadCommand.cc
  6726. * src/DownloadEngine.cc
  6727. * src/DownloadEngine.h
  6728. * src/SleepCommand.cc
  6729. * src/SleepCommand.h
  6730. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6731. Added the ability to specify output filename and directory in input
  6732. file.
  6733. Additional parameters are added in the following line of URIs
  6734. with proceeding white space(s), 1 parameter in 1 line.
  6735. The parameter names are the same with the command-line option name
  6736. without proceeding "--". Not all the options are available here:
  6737. at the moment, 'dir' and 'out' options are avialable.
  6738. Please note that out option has no effect against Metalink or BitTorrent
  6739. downloads.
  6740. Example input file:
  6741. http://host/foo-1.1.tar.bz2
  6742. out=foo.tar.bz2
  6743. dir=/tmp/downloads
  6744. http://host/thundermonkey-2.0.tar.bz2
  6745. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6746. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6747. thundermonkey-2.0.tar.bz2 is saved as
  6748. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6749. * src/BtPostDownloadHandler.cc
  6750. * src/Metalink2RequestGroup.cc
  6751. * src/Metalink2RequestGroup.h
  6752. * src/MetalinkPostDownloadHandler.cc
  6753. * src/UriListParser.cc
  6754. * src/UriListParser.h
  6755. * src/main.cc
  6756. * test/Metalink2RequestGroupTest.cc
  6757. * test/UriListParserTest.cc
  6758. * test/filelist1.txt
  6759. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6760. Fixed error when SSL library is not found.
  6761. * configure.ac
  6762. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6763. Cross referenced among -s, -C and -j options.
  6764. Updated usage of -C and -s options.
  6765. * src/usage_text.h
  6766. * doc/aria2c.1.txt
  6767. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6768. Fixed bad cast in 32bit platforms.
  6769. * test/DefaultPieceStorageTest.cc
  6770. (DefaultPieceStorageTest::testGetCompletedLength)
  6771. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6772. Fixed unit test fails on 32bit platforms.
  6773. * test/CookieParserTest.cc
  6774. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6775. Show an average download speed in Download results.
  6776. * src/BtFileAllocationEntry.cc
  6777. * src/DefaultPieceStorage.cc
  6778. * src/DownloadContext.cc
  6779. * src/DownloadContext.h
  6780. * src/DownloadResult.h
  6781. * src/RequestGroup.cc
  6782. * src/RequestGroupMan.cc
  6783. * src/StreamFileAllocationEntry.cc
  6784. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6785. Fixed the bug that metalink file is not processed if Content-Type
  6786. field has a paramter.
  6787. * src/HttpResponse.cc
  6788. * src/HttpResponse.h
  6789. * test/HttpResponseTest.cc
  6790. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6791. Removed unused code.
  6792. * src/DefaultBtAnnounce.cc
  6793. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6794. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6795. the value larger than DefaultPieceStorage::getTotalLength() when
  6796. in flight pieces are involved.
  6797. * src/DefaultPieceStorage.cc
  6798. * test/DefaultPieceStorageTest.cc
  6799. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6800. Bump up version number to 1.0.0a.
  6801. * configure.ac
  6802. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6803. Updated configure.ac
  6804. * configure.ac
  6805. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6806. Added usege for proxy.
  6807. * doc/aria2c.1.txt
  6808. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6809. Added usage for --ca-certificate, --certificate, --private-key and
  6810. --check-certificate options.
  6811. * doc/aria2c.1.txt
  6812. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6813. Updated man page
  6814. * doc/aria2c.1.txt
  6815. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6816. Added --no-proxy option. It receives comman separated hostname or
  6817. domains to which proxy should not be used.
  6818. aria2 honors the environment variable no_proxy to override no-proxy
  6819. value in configuration file. The user can override the environment
  6820. variable no_proxy with --no-proxy command-line option.
  6821. * src/AbstractCommand.cc
  6822. * src/OptionHandlerFactory.cc
  6823. * src/option_processing.cc
  6824. * src/prefs.cc
  6825. * src/prefs.h
  6826. * src/usage_text.h
  6827. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6828. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6829. The CA certificates are specified in --ca-certificate option.
  6830. By default, the verification is disabled. Use --check-certificate
  6831. option to enable it.
  6832. * src/HttpRequestCommand.cc
  6833. * src/LibgnutlsTLSContext.cc
  6834. * src/LibgnutlsTLSContext.h
  6835. * src/LibsslTLSContext.cc
  6836. * src/LibsslTLSContext.h
  6837. * src/MultiUrlRequestInfo.cc
  6838. * src/OptionHandlerFactory.cc
  6839. * src/SocketCore.cc
  6840. * src/SocketCore.h
  6841. * src/a2functional.h
  6842. * src/message.h
  6843. * src/option_processing.cc
  6844. * src/prefs.cc
  6845. * src/prefs.h
  6846. * src/usage_text.h
  6847. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6848. Added client certificate authentication for SSL/TLS.
  6849. Currently a private key must be decrypted for use with aria2.
  6850. If a user accidentally gives encrypted file to aria2 then following
  6851. thing happens:
  6852. If encrypted private key is given to aria2, it behaves differently
  6853. depending on the ssl library it uses. If aria2 built with openssl then
  6854. openssl prompts the user for password. If aria2 build with gnutls then
  6855. aria2 exists with error at start up.
  6856. * src/DownloadEngineFactory.cc
  6857. * src/MultiUrlRequestInfo.cc
  6858. * src/OptionHandlerFactory.cc
  6859. * src/option_processing.cc
  6860. * src/prefs.cc
  6861. * src/prefs.h
  6862. * src/usage_text.h
  6863. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6864. Introduced TLSContext that holds TLS related data that can be shared
  6865. with multiple SSL connections.
  6866. * src/DownloadEngineFactory.cc
  6867. * src/LibgnutlsTLSContext.cc
  6868. * src/LibgnutlsTLSContext.h
  6869. * src/LibsslTLSContext.cc
  6870. * src/LibsslTLSContext.h
  6871. * src/Makefile.am
  6872. * src/SocketCore.cc
  6873. * src/SocketCore.h
  6874. * src/TLSContext.h
  6875. * src/message.h
  6876. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6877. Fixed the bug that the DiskWriter of the first FileEntry whose
  6878. `needsFileAllocation' property is false is not created
  6879. even if it shares a piece with next FileEntry which `requested' property
  6880. is true.
  6881. Fixed the bug that zero-length file is not created if pre file
  6882. allocation is not done.
  6883. * src/MultiDiskAdaptor.cc
  6884. * src/MultiDiskAdaptor.h
  6885. * test/MultiDiskAdaptorTest.cc
  6886. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6887. Added the ability to pool proxy connection.
  6888. The conneciton in FTP with proxy-method=GET is not pooled.
  6889. Proxy-Connection header will not be sent when sending CONNECT method.
  6890. * src/DownloadEngine.cc
  6891. * src/DownloadEngine.h
  6892. * src/FtpFinishDownloadCommand.cc
  6893. * src/FtpInitiateConnectionCommand.cc
  6894. * src/FtpNegotiationCommand.cc
  6895. * src/HttpDownloadCommand.cc
  6896. * src/HttpInitiateConnectionCommand.cc
  6897. * src/HttpRequest.cc
  6898. * src/HttpRequest.h
  6899. * src/HttpResponse.cc
  6900. * src/HttpSkipResponseCommand.cc
  6901. * test/HttpRequestTest.cc
  6902. * test/HttpResponseTest.cc
  6903. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6904. Handle date before epoch.
  6905. To create *bad* Time object, call Time::null().
  6906. * src/CookieParser.cc
  6907. * src/FtpConnection.cc
  6908. * src/FtpConnection.h
  6909. * src/FtpNegotiationCommand.cc
  6910. * src/RequestGroup.cc
  6911. * src/TimeA2.cc
  6912. * src/TimeA2.h
  6913. * test/CookieParserTest.cc
  6914. * test/FtpConnectionTest.cc
  6915. * test/TimeTest.cc
  6916. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Added support for following envrionment variables: http_proxy,
  6918. https_proxy, ftp_proxy and all_proxy.
  6919. Each variable is equivalent to the aria2 option whose name is the
  6920. variable name with '_' replaced with '-'.
  6921. They overrides options specified in aria2.conf file.
  6922. The envrionment variables can be overrode using command-line option.
  6923. * src/option_processing.cc
  6924. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Renamed --http-proxy-method as --proxy-method.
  6926. * src/AbstractCommand.cc
  6927. * src/FtpInitiateConnectionCommand.cc
  6928. * src/HttpInitiateConnectionCommand.cc
  6929. * src/OptionHandlerFactory.cc
  6930. * src/option_processing.cc
  6931. * src/prefs.cc
  6932. * src/prefs.h
  6933. * src/usage_text.h
  6934. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6935. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6936. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6937. Above 3 options and --http-proxy option can handle proxy in URL format
  6938. like: http://user:passwd@host:port.
  6939. If a proxy requires user/password, they must be specified in a URL.
  6940. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6941. instead.
  6942. * src/AbstractCommand.cc
  6943. * src/AbstractCommand.h
  6944. * src/AbstractProxyRequestCommand.cc
  6945. * src/AbstractProxyRequestCommand.h
  6946. * src/AuthConfigFactory.cc
  6947. * src/AuthConfigFactory.h
  6948. * src/FtpFinishDownloadCommand.cc
  6949. * src/FtpInitiateConnectionCommand.cc
  6950. * src/FtpInitiateConnectionCommand.h
  6951. * src/FtpNegotiationCommand.cc
  6952. * src/FtpTunnelRequestCommand.cc
  6953. * src/FtpTunnelRequestCommand.h
  6954. * src/HttpDownloadCommand.cc
  6955. * src/HttpInitiateConnectionCommand.cc
  6956. * src/HttpInitiateConnectionCommand.h
  6957. * src/HttpProxyRequestCommand.cc
  6958. * src/HttpProxyRequestCommand.h
  6959. * src/HttpRequest.cc
  6960. * src/HttpRequest.h
  6961. * src/HttpRequestCommand.cc
  6962. * src/HttpRequestCommand.h
  6963. * src/HttpSkipResponseCommand.cc
  6964. * src/InitiateConnectionCommand.cc
  6965. * src/InitiateConnectionCommand.h
  6966. * src/OptionHandlerFactory.cc
  6967. * src/OptionHandlerImpl.h
  6968. * src/Request.cc
  6969. * src/option_processing.cc
  6970. * src/prefs.cc
  6971. * src/prefs.h
  6972. * src/usage_text.h
  6973. * test/AuthConfigFactoryTest.cc
  6974. * test/HttpRequestTest.cc
  6975. * test/OptionHandlerTest.cc
  6976. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6977. Execute choking algorithm when unchoked and interested peer is
  6978. disconected.
  6979. * src/DefaultPeerStorage.cc
  6980. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6981. Added testcase for BtNotInterestedMessage from unchoked peer.
  6982. * test/BtNotInterestedMessageTest.cc
  6983. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Execute choking algorithm when BtInterestedMessage arrives from
  6985. unchoked peer.
  6986. * src/BtInterestedMessage.cc
  6987. * src/BtInterestedMessage.h
  6988. * src/DefaultBtMessageFactory.cc
  6989. * test/BtInterestedMessageTest.cc
  6990. * test/MockPeerStorage.h
  6991. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. AuthConfigFactory is now part of DownloadEngine.
  6993. * src/AbstractProxyRequestCommand.cc
  6994. * src/AuthConfigFactory.h
  6995. * src/DownloadEngine.cc
  6996. * src/DownloadEngine.h
  6997. * src/FtpConnection.cc
  6998. * src/FtpConnection.h
  6999. * src/FtpNegotiationCommand.cc
  7000. * src/HttpConnection.cc
  7001. * src/HttpRequest.cc
  7002. * src/HttpRequest.h
  7003. * src/HttpRequestCommand.cc
  7004. * src/HttpResponse.cc
  7005. * src/HttpResponseCommand.cc
  7006. * src/HttpSkipResponseCommand.cc
  7007. * src/MultiUrlRequestInfo.cc
  7008. * src/main.cc
  7009. * test/FtpConnectionTest.cc
  7010. * test/HttpRequestTest.cc
  7011. * test/HttpResponseTest.cc
  7012. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7013. Corrected catched exception type.
  7014. * src/ServerStatMan.cc
  7015. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. DNSCache is now part of DownloadEngine.
  7017. * src/DNSCache.h
  7018. * src/DownloadEngine.cc
  7019. * src/DownloadEngine.h
  7020. * src/InitiateConnectionCommand.cc
  7021. * src/MultiUrlRequestInfo.cc
  7022. * test/Makefile.am
  7023. * test/Makefile.in
  7024. * test/SimpleDNSCacheTest.cc
  7025. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7026. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7027. DownloadEngine.
  7028. * src/ActivePeerConnectionCommand.cc
  7029. * src/BtSetup.cc
  7030. * src/CUIDCounter.h
  7031. * src/DHTSetup.cc
  7032. * src/DownloadCommand.cc
  7033. * src/DownloadEngine.cc
  7034. * src/DownloadEngine.h
  7035. * src/DownloadEngineFactory.cc
  7036. * src/FileAllocationDispatcherCommand.cc
  7037. * src/InitiatorMSEHandshakeCommand.cc
  7038. * src/PeerInitiateConnectionCommand.cc
  7039. * src/PeerInteractionCommand.cc
  7040. * src/PeerListenCommand.cc
  7041. * src/RequestGroup.cc
  7042. * src/StreamFileAllocationEntry.cc
  7043. * src/TrackerWatcherCommand.cc
  7044. * src/main.cc
  7045. * test/RequestGroupManTest.cc
  7046. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7047. Implemented commented code in BtSeederStateChoke
  7048. * src/BtSeederStateChoke.cc
  7049. * src/Peer.cc
  7050. * src/Peer.h
  7051. * src/PeerInteractionCommand.cc
  7052. * src/PeerSessionResource.cc
  7053. * src/PeerSessionResource.h
  7054. * test/MockBtMessageDispatcher.h
  7055. * test/PeerSessionResourceTest.cc
  7056. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7058. its object.
  7059. * src/AbstractBtMessage.cc
  7060. * src/ActivePeerConnectionCommand.cc
  7061. * src/ActivePeerConnectionCommand.h
  7062. * src/BtContextAwareCommand.cc
  7063. * src/BtContextAwareCommand.h
  7064. * src/BtExtendedMessage.cc
  7065. * src/BtExtendedMessage.h
  7066. * src/BtInterestedMessage.cc
  7067. * src/BtInterestedMessage.h
  7068. * src/BtNotInterestedMessage.cc
  7069. * src/BtNotInterestedMessage.h
  7070. * src/BtRegistry.cc
  7071. * src/BtRegistry.h
  7072. * src/BtSeederStateChoke.cc
  7073. * src/BtSetup.cc
  7074. * src/DHTGetPeersCommand.cc
  7075. * src/DHTGetPeersCommand.h
  7076. * src/DHTPeerAnnounceEntry.cc
  7077. * src/DHTPeerAnnounceEntry.h
  7078. * src/DHTPeerAnnounceStorage.cc
  7079. * src/DHTPeerAnnounceStorage.h
  7080. * src/DHTPeerLookupTask.cc
  7081. * src/DHTPeerLookupTask.h
  7082. * src/DHTSetup.cc
  7083. * src/DHTSetup.h
  7084. * src/DHTTaskFactory.h
  7085. * src/DHTTaskFactoryImpl.cc
  7086. * src/DHTTaskFactoryImpl.h
  7087. * src/DefaultBtAnnounce.cc
  7088. * src/DefaultBtInteractive.cc
  7089. * src/DefaultBtInteractive.h
  7090. * src/DefaultBtMessageDispatcher.cc
  7091. * src/DefaultBtMessageDispatcher.h
  7092. * src/DefaultBtMessageFactory.cc
  7093. * src/DefaultBtMessageFactory.h
  7094. * src/DefaultBtMessageReceiver.cc
  7095. * src/DefaultBtProgressInfoFile.cc
  7096. * src/DefaultBtProgressInfoFile.h
  7097. * src/DefaultBtRequestFactory.cc
  7098. * src/DefaultBtRequestFactory.h
  7099. * src/DefaultExtensionMessageFactory.cc
  7100. * src/DefaultExtensionMessageFactory.h
  7101. * src/DefaultPeerStorage.cc
  7102. * src/DefaultPeerStorage.h
  7103. * src/DownloadEngine.cc
  7104. * src/DownloadEngine.h
  7105. * src/InitiatorMSEHandshakeCommand.cc
  7106. * src/InitiatorMSEHandshakeCommand.h
  7107. * src/MSEHandshake.cc
  7108. * src/MSEHandshake.h
  7109. * src/Makefile.am
  7110. * src/Makefile.in
  7111. * src/PeerChokeCommand.cc
  7112. * src/PeerChokeCommand.h
  7113. * src/PeerInitiateConnectionCommand.cc
  7114. * src/PeerInitiateConnectionCommand.h
  7115. * src/PeerInteractionCommand.cc
  7116. * src/PeerInteractionCommand.h
  7117. * src/PeerObject.h
  7118. * src/PeerReceiveHandshakeCommand.cc
  7119. * src/PeerReceiveHandshakeCommand.h
  7120. * src/ReceiverMSEHandshakeCommand.cc
  7121. * src/RequestGroup.cc
  7122. * src/RequestGroup.h
  7123. * src/RequestGroupMan.cc
  7124. * src/RequestGroupMan.h
  7125. * src/SeedCheckCommand.cc
  7126. * src/SeedCheckCommand.h
  7127. * src/ShareRatioSeedCriteria.h
  7128. * src/SimpleBtMessage.cc
  7129. * src/TrackerWatcherCommand.cc
  7130. * src/TrackerWatcherCommand.h
  7131. * src/UTPexExtensionMessage.cc
  7132. * src/UTPexExtensionMessage.h
  7133. * test/BtCancelMessageTest.cc
  7134. * test/BtChokeMessageTest.cc
  7135. * test/BtExtendedMessageTest.cc
  7136. * test/BtInterestedMessageTest.cc
  7137. * test/BtNotInterestedMessageTest.cc
  7138. * test/BtPieceMessageTest.cc
  7139. * test/BtPortMessageTest.cc
  7140. * test/BtRegistryTest.cc
  7141. * test/BtRejectMessageTest.cc
  7142. * test/BtRequestMessageTest.cc
  7143. * test/DHTPeerAnnounceEntryTest.cc
  7144. * test/DHTPeerAnnounceStorageTest.cc
  7145. * test/DefaultBtMessageDispatcherTest.cc
  7146. * test/DefaultBtMessageFactoryTest.cc
  7147. * test/DefaultBtProgressInfoFileTest.cc
  7148. * test/DefaultBtRequestFactoryTest.cc
  7149. * test/DefaultExtensionMessageFactoryTest.cc
  7150. * test/MSEHandshakeTest.cc
  7151. * test/MockDHTTaskFactory.h
  7152. * test/ShareRatioSeedCriteriaTest.cc
  7153. * test/UTPexExtensionMessageTest.cc
  7154. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7155. Fixed compiler warning.
  7156. * test/UtilTest.cc
  7157. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7158. Treat Cookie object as session cookie if expiry = 0 is given.
  7159. With this change, you can specify session scoped cookies in an external
  7160. file setting expiry value to 0.
  7161. * src/Cookie.cc
  7162. * src/Cookie.h
  7163. * test/CookieParserTest.cc
  7164. * test/CookieStorageTest.cc
  7165. * test/CookieTest.cc
  7166. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Changed signature of DHTMessageFactory::createResponseMessage().
  7168. Removed unused validateIDMatch.
  7169. * src/DHTMessageFactory.h
  7170. * src/DHTMessageFactoryImpl.cc
  7171. * src/DHTMessageFactoryImpl.h
  7172. * src/DHTMessageTracker.cc
  7173. * test/DHTMessageFactoryImplTest.cc
  7174. * test/MockDHTMessageFactory.h
  7175. Dropped DHT message coming from same ID of localhost.
  7176. * src/DHTMessageReceiver.cc
  7177. Rejected adding node whose ID is the same as localhost's.
  7178. * src/DHTRoutingTable.cc
  7179. * test/BtPortMessageTest.cc
  7180. * test/DHTRoutingTableTest.cc
  7181. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7182. Pool connection when redirection occurs with Content-Length = 0.
  7183. * src/HttpSkipResponseCommand.cc
  7184. * src/HttpSkipResponseCommand.h
  7185. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Fixed the bug that causes time out when redirection occurs with
  7187. content-length 0.
  7188. * src/HttpResponseCommand.cc
  7189. * src/HttpSkipResponseCommand.cc
  7190. * src/HttpSkipResponseCommand.h
  7191. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7192. Now each status legends is shown only when it appears in Download
  7193. Result. If Download Result has no item, then status legend will not
  7194. be printed.
  7195. * src/RequestGroupMan.cc
  7196. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7197. Removed duplicate creation of OptionHandlers.
  7198. * src/option_processing.cc
  7199. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7200. Fixed the bug that causes segmentation fault when accessing files which
  7201. don't exist or are not included in --select-file option while
  7202. validating chunk checksum.
  7203. * src/MultiDiskAdaptor.cc
  7204. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7205. Fixed compiler warning.
  7206. * test/UtilTest.cc
  7207. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7208. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7209. * src/IteratableChecksumValidator.cc
  7210. * src/IteratableChunkChecksumValidator.cc
  7211. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7212. * Release 0.16.2
  7213. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7214. Added Serbian translation. Updated Ukrainian translation.
  7215. Thanks to all translators.
  7216. * po/sr.po
  7217. * po/uk.po
  7218. * po/LINGUAS
  7219. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Bump up version number to 0.16.2
  7221. * configure.ac
  7222. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Added length equality test to operator== to drop a piece message
  7224. whose length does not match to the requested one.
  7225. * src/RequestSlot.cc
  7226. * test/DefaultBtMessageDispatcherTest.cc
  7227. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7228. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7229. recieved.
  7230. In this fix, if a request larger than 16KiB length is received, aria2
  7231. disconnects the peer.
  7232. * src/BtConstants.h
  7233. * src/PeerMessageUtil.cc
  7234. * src/PeerMessageUtil.h
  7235. * test/BtRequestMessageTest.cc
  7236. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7237. * Release 0.16.1
  7238. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7239. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7240. * doc/aria2c.1.txt
  7241. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7242. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7243. Updated French, Simplified Chinese and Japanese translations.
  7244. Thanks to all translators.
  7245. en@quot and en@boldquot are also added.
  7246. * po/LINGUAS
  7247. * po/fr.po
  7248. * po/ja.po
  7249. * po/uk.po
  7250. * po/vi.po
  7251. * po/zh_CN.po
  7252. * po/zh_TW.po
  7253. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7254. Bump up version number to 0.16.1.
  7255. * configure.ac
  7256. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Updated README.
  7258. * README
  7259. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7260. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7261. not to replace '--' with em dash character.
  7262. * doc/aria2c.1.txt
  7263. * doc/makeman
  7264. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7265. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7266. every SEC seconds.
  7267. * src/DownloadEngineFactory.cc
  7268. * src/OptionHandlerFactory.cc
  7269. * src/option_processing.cc
  7270. * src/usage_text.h
  7271. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Fixed compile warning on linux-amd64
  7273. * src/FtpConnection.cc
  7274. * src/IteratableChunkChecksumValidator.cc
  7275. * src/MultiDiskAdaptor.cc
  7276. Fixed the bug that unit test fails on linux-amd64
  7277. * test/UtilTest.cc
  7278. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Added --dht-file-path option to change the path to dht.dat, which is a
  7280. serialized DHT routing table.
  7281. * src/OptionHandlerFactory.cc
  7282. * src/option_processing.cc
  7283. * src/usage_text.h
  7284. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7285. Fixed possible underflow.
  7286. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7287. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7288. Fixed the bug that last character in URI is not encoded.
  7289. * src/Request.cc
  7290. * test/RequestTest.cc
  7291. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7292. Fixed the bug that referer header field contains fragment.
  7293. Now Request class removes fragment part of URI and encodes it
  7294. in Request::setUri() and setReferer().
  7295. * src/Request.h
  7296. * src/Request.cc
  7297. * test/RequestTest.cc
  7298. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7299. Added missing m4 macros.
  7300. * m4/cppunit.m4
  7301. * m4/libgcrypt.m4
  7302. * m4/libgnutls-extra.m4
  7303. * m4/libgnutls.m4
  7304. * m4/libxml2.m4
  7305. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Fixed compile error with gcc-4.4(snapshot)
  7307. * src/File.cc
  7308. * src/FtpConnection.cc
  7309. * src/OptionHandlerImpl.h
  7310. * src/Util.cc
  7311. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. Removed assert()
  7313. * src/SocketBuffer.cc (SocketBuffer::send)
  7314. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. Changed the type of _numNewConnection to unsigned int.
  7316. * src/ActivePeerConnectionCommand.cc
  7317. * src/ActivePeerConnectionCommand.h
  7318. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. * Release 0.16.0
  7320. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. Updated doc
  7322. * README
  7323. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7324. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7325. translations. Thanks to all translators.
  7326. * po/bg.po
  7327. * po/de.po
  7328. * po/fr.po
  7329. * po/ja.po
  7330. * po/zh_CN.po
  7331. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7332. Bump up version number to 0.16.0.
  7333. * configure.ac
  7334. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7336. int32_t.
  7337. Changed the type of count to int32_t.
  7338. * src/Metalink2RequestGroup.cc
  7339. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Added test for Time::elapsed(time_t).
  7341. * test/TimeTest.cc
  7342. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7343. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7344. Util::difftv() should be used instead.
  7345. * src/TimeA2.cc
  7346. * src/TimeA2.h
  7347. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Made socket for dht connections non-blocking
  7349. * src/DHTAbstractMessage.cc
  7350. * src/DHTAbstractMessage.h
  7351. * src/DHTConnection.h
  7352. * src/DHTConnectionImpl.cc
  7353. * src/DHTConnectionImpl.h
  7354. * src/DHTMessage.h
  7355. * src/DHTMessageDispatcherImpl.cc
  7356. * src/DHTMessageDispatcherImpl.h
  7357. * src/DHTUnknownMessage.cc
  7358. * src/DHTUnknownMessage.h
  7359. * src/SocketCore.cc
  7360. * src/SocketCore.h
  7361. * test/MockDHTMessage.h
  7362. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Changed the type of offset to int.
  7364. * src/ParameterizedStringParser.cc
  7365. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Made getAsInt() return int32_t
  7367. * src/Option.h
  7368. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7369. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7370. build.
  7371. * configure.ac
  7372. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7373. Use sqlite3_open if sqlite3_open_v2 is not available.
  7374. * src/Sqlite3MozCookieParser.cc
  7375. * src/Sqlite3MozCookieParser.h
  7376. * m4/sqlite3.m4
  7377. * test/Sqlite3MozCookieParserTest.cc
  7378. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7380. * src/BtPieceMessage.cc
  7381. * src/DHTPeerAnnounceStorage.cc
  7382. * src/DefaultPieceStorage.cc
  7383. * src/DownloadCommand.cc
  7384. * src/DownloadEngine.cc
  7385. * src/FtpConnection.cc
  7386. * src/PeerConnection.cc
  7387. * src/PeerMessageUtil.cc
  7388. * src/RequestGroup.cc
  7389. * src/RequestGroupMan.cc
  7390. * src/SimpleBtMessage.cc
  7391. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7392. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7393. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7394. * src/AbstractDiskWriter.cc
  7395. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7396. Don't set Request::supportsPersistentConnection() in HttpConnection
  7397. since this code is also used in AbstractProxyResponseCommand.
  7398. Moved those code to HttpResponse.
  7399. * src/HttpResponse.cc
  7400. * src/HttpResponse.h
  7401. * src/HttpConnection.cc
  7402. * src/HttpConnection.h
  7403. * src/HttpResponseCommand.cc
  7404. * test/HttpResponseTest.cc
  7405. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7407. The configuration is minimum: no torrent, no metalink, so there may be
  7408. other compile error on their code.
  7409. * src/a2netcompat.h
  7410. * src/File.cc
  7411. * src/File.h
  7412. * src/SocketCore.cc
  7413. * src/SocketCore.h
  7414. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Made a socket of incoming peer non-blocking.
  7416. * src/PeerListenCommand.cc
  7417. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7418. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7419. whole message data is not sent in one send() call.
  7420. * src/BtPieceMessage.cc
  7421. * src/BtPieceMessage.h
  7422. * src/PeerConnection.cc
  7423. * src/PeerConnection.h
  7424. * src/SimpleBtMessage.cc
  7425. * src/SimpleBtMessage.h
  7426. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7427. Fixed the bug that aria2 downloads faster than max-download-limit when
  7428. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7429. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7430. , instead of sum of them.
  7431. * src/ActivePeerConnectionCommand.cc
  7432. * src/DefaultBtInteractive.cc
  7433. * src/DownloadCommand.cc
  7434. * src/PeerInteractionCommand.cc
  7435. * src/PeerReceiveHandshakeCommand.cc
  7436. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Fixed the bug that HTTPS download fails.
  7438. * src/AbstractCommand.cc
  7439. * src/AbstractCommand.h
  7440. * src/DownloadCommand.cc
  7441. * src/FtpConnection.cc
  7442. * src/HttpConnection.cc
  7443. * src/HttpRequestCommand.cc
  7444. * src/HttpResponseCommand.cc
  7445. * src/HttpSkipResponseCommand.cc
  7446. * src/MSEHandshake.cc
  7447. * src/PeerConnection.cc
  7448. * src/SocketCore.cc
  7449. * src/SocketCore.h
  7450. Fixed the bug that aria2 doesn't download whole content body and cannot
  7451. reuse connection if chunked transfer encoding and gzip content encoding
  7452. are set.
  7453. * src/DownloadCommand.cc
  7454. * src/HttpSkipResponseCommand.cc
  7455. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7456. Updated man page.
  7457. * doc/aria2c.1.txt
  7458. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. When error occurred while aria2 was parsing an .aria2.conf file, print
  7460. the usage of the option that caused error.
  7461. * src/option_processing.cc
  7462. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Fixed compile error on OptionHandlerException
  7464. * src/Makefile.am
  7465. * src/OptionHandlerException.cc
  7466. * src/OptionHandlerException.h
  7467. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7468. Moved message of the error to OptionHandlerException.h
  7469. * src/NameMatchOptionHandler.h
  7470. * src/OptionHandlerException.h
  7471. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. When error occurs while aria2 is parsing an command-line option, print
  7473. the usage of the option.
  7474. * src/Makefile.am
  7475. * src/NameMatchOptionHandler.h
  7476. * src/OptionHandlerException.h
  7477. * src/option_processing.cc
  7478. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7479. Reverted previous change.
  7480. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7481. username is not in URI.
  7482. * src/HttpRequest.cc
  7483. * src/Request.cc
  7484. * test/HttpRequestTest.cc
  7485. * test/RequestTest.cc
  7486. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7487. Now colon is required for username and password in FTP URL, like:
  7488. ftp://username:password@host.
  7489. If colon is not there, aria2 don't parse it as a username. For example,
  7490. aria2 don't retrieve username from ftp://username@host.
  7491. This fix was made in order to login FTP server via non-transparent ftp
  7492. proxy.
  7493. * src/Request.cc
  7494. * test/RequestTest.cc
  7495. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7496. Use netrc for HTTP.
  7497. Now FTP user/password is sent in Authorization header when
  7498. --ftp-via-http-proxy=get is given.
  7499. * src/AuthConfigFactory.cc
  7500. * src/HttpRequest.cc
  7501. * src/HttpRequest.h
  7502. * src/NetrcAuthResolver.cc
  7503. * src/NetrcAuthResolver.h
  7504. * src/OptionHandlerFactory.cc
  7505. * src/option_processing.cc
  7506. * src/prefs.cc
  7507. * src/prefs.h
  7508. * test/AuthConfigFactoryTest.cc
  7509. * test/HttpRequestTest.cc
  7510. * test/NetrcAuthResolverTest.cc
  7511. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7512. Issue PWD command first and get working directory and use it as a prefix
  7513. for CWD command.
  7514. * src/DownloadEngine.cc
  7515. * src/DownloadEngine.h
  7516. * src/FtpConnection.cc
  7517. * src/FtpConnection.h
  7518. * src/FtpFinishDownloadCommand.cc
  7519. * src/FtpInitiateConnectionCommand.cc
  7520. * src/FtpNegotiationCommand.cc
  7521. * src/FtpNegotiationCommand.h
  7522. * test/FtpConnectionTest.cc
  7523. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. Removed default user/pass for FTP user/pass, since it should not have
  7525. precedence over netrc configuration by default.
  7526. * src/OptionHandlerFactory.cc
  7527. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Added debug log for socket event.
  7529. * src/AbstractCommand.cc
  7530. * src/PeerAbstractCommand.cc
  7531. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7532. Log microseconds.
  7533. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7534. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. Replaced HelpItem.cc with OptionHandler.cc.
  7536. * po/POTFILES.in
  7537. Updated po files with 'make update-po'
  7538. * po/aria2c.pot
  7539. * po/*.po
  7540. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7541. Removed possible values from the text.
  7542. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7543. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Removed unused preferences:
  7545. PREF_NO_PREALLOCATION
  7546. PREF_STDOUT_LOG
  7547. PREF_TRACKER_MAX_TRIES
  7548. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7549. PREF_MIN_SEGMENT_SIZE
  7550. * src/option_processing.cc
  7551. * src/prefs.cc
  7552. * src/prefs.h
  7553. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7554. Integrated HelpItem into OptionParser to ease the workload for adding
  7555. new options. Removed default value from usage text.
  7556. * src/HelpItem.cc: Removed.
  7557. * src/HelpItem.h: Removed.
  7558. * src/HelpItemFactory.cc: Removed.
  7559. * src/HelpItemFactory.h: Removed.
  7560. * src/Makefile.am
  7561. * src/Makefile.in
  7562. * src/NameMatchOptionHandler.h
  7563. * src/OptionHandler.cc
  7564. * src/OptionHandler.h
  7565. * src/OptionHandlerFactory.cc
  7566. * src/OptionHandlerImpl.h
  7567. * src/OptionParser.cc
  7568. * src/OptionParser.h
  7569. * src/TagContainer.cc: Removed.
  7570. * src/TagContainer.h: Removed.
  7571. * src/TaggedItem.cc: Removed.
  7572. * src/TaggedItem.h: Removed.
  7573. * src/main.cc
  7574. * src/option_processing.cc
  7575. * src/usage_text.h
  7576. * src/version_usage.cc
  7577. * test/HelpItemTest.cc: Removed.
  7578. * test/Makefile.am
  7579. * test/Makefile.in
  7580. * test/OptionHandlerTest.cc
  7581. * test/OptionParserTest.cc
  7582. * test/TagContainerTest.cc: Removed.
  7583. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7584. Moved `TransferStat stat = ...' to inside the `if' clause.
  7585. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7586. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Fixed the bug that a block in a piece is requested when same block is
  7588. already requested to the same peer in end game mode.
  7589. * src/BtRequestFactory.h
  7590. * src/DefaultBtInteractive.cc
  7591. * src/DefaultBtRequestFactory.cc
  7592. * src/DefaultBtRequestFactory.h
  7593. * src/DefaultPieceStorage.cc
  7594. * src/DefaultPieceStorage.h
  7595. * src/PieceStorage.h
  7596. * src/UnknownLengthPieceStorage.cc
  7597. * src/UnknownLengthPieceStorage.h
  7598. * test/DefaultBtRequestFactoryTest.cc
  7599. * test/DefaultPieceStorageTest.cc
  7600. * test/MockBtRequestFactory.h
  7601. * test/MockPieceStorage.h
  7602. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7603. Removed _uploadLength and _downloadLength from PeerSessionResource
  7604. and use PeerStat::_sessionUploadLength and
  7605. PeerStat::_sessionDownloadLength.
  7606. * src/PeerSessionResource.cc
  7607. * src/PeerSessionResource.h
  7608. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7609. Fixed the bug that prefixLength of split bucket which doesn't include
  7610. local node ID is incremented.
  7611. * src/DHTBucket.cc
  7612. * src/DHTBucket.h
  7613. * test/DHTBucketTest.cc
  7614. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Added cookies.sqlite to EXTRA_DIST
  7616. * test/Makefile.am
  7617. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Added Turkish translation. Updated French, German, Russian and
  7619. Simplified Chinese translations. Thanks to all translators.
  7620. * po/LINGUAS
  7621. * po/de.po
  7622. * po/fr.po
  7623. * po/ru.po
  7624. * po/tr.po
  7625. * po/zh_CN.po
  7626. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7627. Added deliminating text to the beginning of the log so that one can find
  7628. where the log starts easily.
  7629. * src/main.cc
  7630. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7631. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7632. to fix compile error when async DNS is not enabled by configuration.
  7633. * src/AbstractCommand.cc
  7634. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7635. If establishing conneciton to a server is failed, then mark error on
  7636. its ServerStat.
  7637. Added the cause of error to log when error event occurred.
  7638. Moved message string to message.h for translation.
  7639. * src/AbstractCommand.cc
  7640. * src/AbstractCommand.h
  7641. * src/FtpNegotiationCommand.cc
  7642. * src/HttpRequestCommand.cc
  7643. * src/PeerAbstractCommand.cc
  7644. * src/message.h
  7645. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Added the function to get error message from socket.
  7647. * src/SocketCore.cc
  7648. * src/SocketCore.h
  7649. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7651. * src/RequestGroupMan.cc
  7652. * src/RequestGroupMan.h
  7653. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7654. If error event is received in epoll, then abort download immediately.
  7655. * src/AbstractCommand.cc
  7656. * src/Command.cc
  7657. * src/Command.h
  7658. * src/DownloadEngine.cc
  7659. * src/PeerAbstractCommand.cc
  7660. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. Added usage message for --uri-selector, --server-stat-of,
  7662. --server-stat-in, --server-stat-timeout options.
  7663. * src/HelpItemFactory.cc
  7664. * src/usage_text.h
  7665. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. Added upper limit of FTP response buffer. The current implementation
  7667. uses 4096bytes as a limit.
  7668. * src/FtpConnection.cc
  7669. * src/FtpConnection.h
  7670. * test/FtpConnectionTest.cc
  7671. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7672. Use non-blocking socket for TCP communication to avoid possible
  7673. blocking due to buffer full.
  7674. * src/AbstractProxyRequestCommand.cc
  7675. * src/FtpConnection.cc
  7676. * src/FtpConnection.h
  7677. * src/FtpNegotiationCommand.cc
  7678. * src/FtpNegotiationCommand.h
  7679. * src/HttpConnection.cc
  7680. * src/HttpConnection.h
  7681. * src/HttpRequestCommand.cc
  7682. * src/InitiatorMSEHandshakeCommand.cc
  7683. * src/InitiatorMSEHandshakeCommand.h
  7684. * src/MSEHandshake.cc
  7685. * src/MSEHandshake.h
  7686. * src/Makefile.am
  7687. * src/PeerConnection.cc
  7688. * src/PeerConnection.h
  7689. * src/PeerInteractionCommand.cc
  7690. * src/PeerListenCommand.cc
  7691. * src/ReceiverMSEHandshakeCommand.cc
  7692. * src/ReceiverMSEHandshakeCommand.h
  7693. * src/SocketBuffer.cc
  7694. * src/SocketBuffer.h
  7695. * src/SocketCore.cc
  7696. * src/SocketCore.h
  7697. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7698. Call setStatusRealtime() in constructor.
  7699. * src/RealtimeCommand.cc
  7700. * src/RealtimeCommand.h
  7701. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Call Download::setNoWait(true) to execute newly created command without
  7703. a pause.
  7704. * src/AbstractCommand.cc
  7705. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7706. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7707. found' error from HTTP/FTP server NUM times without getting single
  7708. bytes of data, then force the download to fail.
  7709. Basically aria2 tris all URIs available. So if long list of URIs are
  7710. specified in Metalink, then aria2 will take a long time to fail
  7711. eventually if all URIs are outdated. This option eases this situation
  7712. to limit the number of servers to try.
  7713. * src/FtpNegotiationCommand.cc
  7714. * src/HelpItemFactory.cc
  7715. * src/HttpResponseCommand.cc
  7716. * src/OptionHandlerFactory.cc
  7717. * src/PeerStat.h
  7718. * src/RequestGroup.cc
  7719. * src/RequestGroup.h
  7720. * src/SegmentMan.cc
  7721. * src/SegmentMan.h
  7722. * src/option_processing.cc
  7723. * src/prefs.cc
  7724. * src/prefs.h
  7725. * src/usage_text.h
  7726. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7728. response even if more than one response is in it.
  7729. * src/FtpConnection.cc
  7730. * src/FtpConnection.h
  7731. * test/FtpConnectionTest.cc
  7732. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Merged from stable-0.15
  7734. * m4/libcares.m4
  7735. Use pkg-config
  7736. * m4/sqlite3.m4
  7737. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7738. Removed unnecessary if statement.
  7739. * src/DefaultPieceStorage.cc (initPieceStorage)
  7740. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Added --connect-timeout option to specify connect timeout in seconds.
  7742. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7743. connecting to BitTorrent peer is not controlled by this option.
  7744. * src/AbstractProxyRequestCommand.cc
  7745. * src/FtpNegotiationCommand.cc
  7746. * src/HelpItemFactory.cc
  7747. * src/HttpRequestCommand.cc
  7748. * src/OptionHandlerFactory.cc
  7749. * src/option_processing.cc
  7750. * src/prefs.cc
  7751. * src/prefs.h
  7752. * src/usage_text.h
  7753. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7754. Added help message for -R option.
  7755. * src/HelpItemFactory.cc
  7756. * src/usage_text.h
  7757. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Added the message that the time is in local time zone.
  7759. * src/RequestGroup.cc
  7760. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7761. Implemented the ability to get timestamp from remote FTP server using
  7762. MDTM command described in RFC3659.
  7763. * src/FtpConnection.cc
  7764. * src/FtpConnection.h
  7765. * src/FtpNegotiationCommand.cc
  7766. * src/FtpNegotiationCommand.h
  7767. * test/FtpConnectionTest.cc
  7768. * test/Makefile.am
  7769. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7770. Implemented the ability to get timestamp from remote HTTP server and
  7771. apply it to local file. To enable this feature, --remote-time option
  7772. is added. No usage text has been written yet.
  7773. If several servers returns difference timestamp, then aria2 uses latest
  7774. one.
  7775. * src/CopyDiskAdaptor.cc
  7776. * src/CopyDiskAdaptor.h
  7777. * src/DirectDiskAdaptor.cc
  7778. * src/DirectDiskAdaptor.h
  7779. * src/DiskAdaptor.h
  7780. * src/File.cc
  7781. * src/File.h
  7782. * src/HttpHeader.cc
  7783. * src/HttpHeader.h
  7784. * src/HttpResponse.cc
  7785. * src/HttpResponse.h
  7786. * src/HttpResponseCommand.cc
  7787. * src/HttpResponseCommand.h
  7788. * src/MultiDiskAdaptor.cc
  7789. * src/MultiDiskAdaptor.h
  7790. * src/OptionHandlerFactory.cc
  7791. * src/RequestGroup.cc
  7792. * src/RequestGroup.h
  7793. * src/RequestGroupMan.cc
  7794. * src/option_processing.cc
  7795. * src/prefs.cc
  7796. * src/prefs.h
  7797. * test/CopyDiskAdaptorTest.cc
  7798. * test/FileTest.cc
  7799. * test/Makefile.am
  7800. * test/Makefile.in
  7801. * test/MultiDiskAdaptorTest.cc
  7802. * test/TestUtil.cc
  7803. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. Fixed the bug that DiskWriterEntry is not created when its
  7805. FileEntry.isRequested() is false and it doesn't share a piece with
  7806. other FileEntries that are requested. This bug causes segmentation fault
  7807. in the end.
  7808. * src/MultiDiskAdaptor.cc
  7809. * src/MultiDiskAdaptor.h
  7810. * src/MultiFileAllocationIterator.cc
  7811. * test/MultiDiskAdaptorTest.cc
  7812. * test/MultiFileAllocationIteratorTest.cc
  7813. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7814. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7815. called if the number of file entries are greater than max open files.
  7816. * src/AbstractSingleDiskAdaptor.cc
  7817. * src/AbstractSingleDiskAdaptor.h
  7818. * src/DiskAdaptor.h
  7819. * src/MultiDiskAdaptor.cc
  7820. * src/MultiDiskAdaptor.h
  7821. * test/MultiDiskAdaptorTest.cc
  7822. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Added a constuctor that receives struct timeval.
  7824. Added operator<.
  7825. * src/TimeA2.cc
  7826. * src/TimeA2.h
  7827. * test/TimeTest.cc
  7828. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7830. * src/CookieParser.cc
  7831. * test/CookieParserTest.cc
  7832. * test/HttpResponseTest.cc
  7833. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7834. Implmented the functions to parse date.
  7835. * src/TimeA2.cc
  7836. * src/TimeA2.h
  7837. * test/TimeTest.cc
  7838. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7839. Added "Firefox3 Cookie" feature to FeatureConfig
  7840. * src/FeatureConfig.cc
  7841. * src/FeatureConfig.h
  7842. * test/FeatureConfigTest.cc
  7843. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Bump up version number to 0.16.0b
  7845. * configure.ac
  7846. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Use pkg-config if is is available.
  7848. * m4/openssl.m4
  7849. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7850. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7851. * src/BtAnnounce.h
  7852. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. If an error occurred with a URI, remove identical URI from remaining
  7854. URI list because it is likely that same error occurred in the end and it
  7855. is waste of time.
  7856. * src/AbstractCommand.cc
  7857. * src/RequestGroup.cc
  7858. * src/RequestGroup.h
  7859. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Removed wrong comment.
  7861. * src/DefaultPeerStorage.cc
  7862. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7864. Added return value of getpid() to argument of srand() to achieve more
  7865. randomized value.
  7866. * src/SimpleRandomizer.cc
  7867. * src/SimpleRandomizer.h
  7868. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. Contact tracker frequently when the number of connections are 0 and
  7870. download is not finished yet.
  7871. * src/ActivePeerConnectionCommand.cc
  7872. * src/BtAnnounce.h
  7873. * src/DefaultBtAnnounce.cc
  7874. * src/DefaultBtAnnounce.h
  7875. * test/MockBtAnnounce.h
  7876. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7877. Moved threshold values to UTPexExtensionMessage.
  7878. * src/DefaultBtInteractive.cc
  7879. * src/Peer.cc
  7880. * src/Peer.h
  7881. * src/UTPexExtensionMessage.cc
  7882. * src/UTPexExtensionMessage.h
  7883. * test/UTPexExtensionMessageTest.cc
  7884. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7885. Added _incoming member to Peer class and made it true if the peer
  7886. initiated connection. Don't add those peer to UTPex message.
  7887. If extended handshake is received, assign _incoming to false.
  7888. * src/DefaultBtInteractive.cc
  7889. * src/HandshakeExtensionMessage.cc
  7890. * src/Peer.cc
  7891. * src/Peer.h
  7892. * src/PeerListenCommand.cc
  7893. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7895. Encoding Decoder. Removed size threshold for turning off on the fly
  7896. inflation because resulting file may or may not be inflated depending
  7897. on the file size and I think it is not expected by users.
  7898. This change fixes segmentation fault when Metalink file contains gzipped
  7899. file and its filesize is provided.
  7900. * src/HttpResponseCommand.cc
  7901. * src/HttpResponseCommand.h
  7902. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7903. Made Cookie immutable.
  7904. * src/Cookie.cc
  7905. * src/Cookie.h
  7906. * src/CookieParser.cc
  7907. * src/CookieParser.h
  7908. * src/CookieStorage.cc
  7909. * test/CookieParserTest.cc
  7910. * test/CookieStorageTest.cc
  7911. * test/NsCookieParserTest.cc
  7912. * test/Sqlite3MozCookieParserTest.cc
  7913. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Removed CookieBox, CookieBoxFactory.
  7915. * src/CookieBox.cc
  7916. * src/CookieBox.h
  7917. * src/CookieBoxFactory.cc
  7918. * src/CookieBoxFactory.h
  7919. * src/Makefile.am
  7920. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7921. Use CookieStorage class instead of CookieBox class.
  7922. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7923. * src/AbstractProxyRequestCommand.cc
  7924. * src/CookieStorage.cc
  7925. * src/DownloadEngine.cc
  7926. * src/DownloadEngine.h
  7927. * src/HttpConnection.cc
  7928. * src/HttpConnection.h
  7929. * src/HttpRequest.cc
  7930. * src/HttpRequest.h
  7931. * src/HttpRequestCommand.cc
  7932. * src/HttpResponse.cc
  7933. * src/HttpResponseCommand.cc
  7934. * src/HttpSkipResponseCommand.cc
  7935. * src/Makefile.am
  7936. * src/MultiUrlRequestInfo.cc
  7937. * src/Request.cc
  7938. * src/Request.h
  7939. * src/main.cc
  7940. * test/AllTest.cc
  7941. * test/CookieStorageTest.cc
  7942. * test/CookieTest.cc
  7943. * test/HttpRequestTest.cc
  7944. * test/HttpResponseTest.cc
  7945. * test/Makefile.am
  7946. * test/NsCookieParserTest.cc
  7947. * test/Sqlite3MozCookieParserTest.cc
  7948. * test/nscookietest.txt
  7949. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Updated
  7951. * test/Cookies.sqlite
  7952. * test/nscookietest.txt
  7953. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7954. Added tests for CookieStorage::load()
  7955. * test/CookieStorageTest.cc
  7956. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7957. Added CookieStorage class which is based on RFC2109 and manages cookies
  7958. more strictly than CookieBox and CookieBoxFactory class.
  7959. * src/CookieStorage.cc
  7960. * src/CookieStorage.h
  7961. * src/Cookie.cc
  7962. * src/Cookie.h
  7963. * test/CookieStorageTest.cc
  7964. * test/CookieTest.cc
  7965. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. Fixed the bug that commands are created more than the number of pieces.
  7967. * src/RequestGroup.cc
  7968. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7969. Fixed infinite loop bug in FTP when SIZE command failed.
  7970. * src/FtpNegotiationCommand.cc
  7971. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7972. Removed DirectDiskAdaptorTest.h
  7973. * test/Makefile.am
  7974. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7975. Fixed chunk checksum validation cannot detect trailing garbage data.
  7976. BUG#2074141
  7977. * src/AbstractSingleDiskAdaptor.cc
  7978. * src/AbstractSingleDiskAdaptor.h
  7979. * src/CheckIntegrityEntry.cc
  7980. * src/CheckIntegrityEntry.h
  7981. * src/DiskAdaptor.h
  7982. * src/MultiDiskAdaptor.cc
  7983. * src/MultiDiskAdaptor.h
  7984. * src/RequestGroup.cc
  7985. * test/DirectDiskAdaptorTest.cc
  7986. * test/MultiDiskAdaptorTest.cc
  7987. * test/TestUtil.cc
  7988. * test/TestUtil.h
  7989. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Bump up version number of dht.dat file to 3. In version 3 format, time
  7991. is stored in 64bit, network byte order.
  7992. New build can load old format(version 2) but it saves the file in new
  7993. format. It means once you used new build, your dht.dat becomes
  7994. incompatible with older build.
  7995. * src/DHTRoutingTableDeserializer.cc
  7996. * src/DHTRoutingTableSerializer.cc
  7997. * test/DHTRoutingTableSerializerTest.cc
  7998. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7999. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8000. * test/Makefile.am
  8001. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8002. Bump up version number of .aria2 control file to 0001.
  8003. New aria2 can still load version 0000 file but it saves the file in
  8004. version 0001 format. It means that new aria2 can resume download
  8005. started by old aria2 but the opposite is not true.
  8006. * src/DefaultBtProgressInfoFile.cc
  8007. * src/DefaultBtProgressInfoFile.h
  8008. * test/DefaultBtProgressInfoFileTest.cc
  8009. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8010. Added ntoh64 and hton64 as inline functions.
  8011. * src/Util.cc
  8012. * test/UtilTest.cc
  8013. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Added sqlite3 depenency and Firefox3 cookie support.
  8015. * README
  8016. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. State that firefox3 cookie is supported explicitly in the usage.
  8018. * src/usage_text.h
  8019. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Externalized message.
  8021. * src/RequestGroupMan.cc
  8022. * src/message.h
  8023. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8024. Save temporary file first and rename to the destination on success.
  8025. Added test cases.
  8026. * src/RequestGroupMan.cc
  8027. * test/RequestGroupManTest.cc
  8028. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. Fixed the bug that the number of connected peer is exceeding the limit
  8030. (55 by default) in seeding mode.
  8031. Multiplied 0.8 to _maxUploadSpeedLimit.
  8032. * src/ActivePeerConnectionCommand.cc
  8033. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8034. Clear table item.
  8035. * src/Dictionary.cc
  8036. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8037. Fixed error handling of lseek.
  8038. * src/AbstractDiskWriter.cc
  8039. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8041. style cookie file.
  8042. * src/usage_text.h
  8043. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8044. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8045. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8046. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8047. * src/Util.cc
  8048. * src/Util.h
  8049. * src/CookieParser.cc
  8050. * test/UtilTest.cc
  8051. * test/CookieParserTest.cc
  8052. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8053. Separate the implementation to load old mozilla format of cookie to
  8054. NsCookieParser class.
  8055. * src/CookieBoxFactory.cc
  8056. * src/CookieBoxFactory.h
  8057. * src/NsCookieParser.cc
  8058. * src/NsCookieParser.h
  8059. * test/NsCookieParserTest.cc
  8060. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Made parse() const
  8062. * src/Sqlite3MozCookieParser.cc
  8063. * src/Sqlite3MozCookieParser.h
  8064. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8065. Added firefox3 cookie support based on the patch submitted by
  8066. tizianomueller.
  8067. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8068. this functionality.
  8069. * configure.ac
  8070. * m4/sqlite3.m4
  8071. * src/CookieBoxFactory.cc
  8072. * src/CookieBoxFactory.h
  8073. * src/Makefile.am
  8074. * src/Makefile.in
  8075. * src/Sqlite3MozCookieParser.cc
  8076. * src/Sqlite3MozCookieParser.h
  8077. * src/main.cc
  8078. * test/CookieBoxFactoryTest.cc
  8079. * test/Makefile.am
  8080. * test/Makefile.in
  8081. * test/Sqlite3MozCookieParserTest.cc
  8082. * test/badcookies.sqlite
  8083. * test/cookies.sqlite
  8084. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. Added Danish and Greek translations.
  8086. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8087. Great thanks to all translators.
  8088. * po/LINGUAS
  8089. * po/el.po
  8090. * po/da.po
  8091. * po/es.po
  8092. * po/ca.po
  8093. * po/nn.po
  8094. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Fixed man page: --follow-bittorrent should be --follow-torrent
  8096. * doc/aria2c.1.txt
  8097. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. Fixed: numCommand is less than the value specified in -C option.
  8099. * src/RequestGroup.cc
  8100. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. Fixed occasional assertion failure in PieceSegment.
  8102. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8103. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8104. creation of duplicate segments and one of the segment was finished then
  8105. assertion failure was caused.
  8106. * src/SegmentMan.cc
  8107. * test/SegmentManTest.cc
  8108. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8109. Added options to load/save the server's performance/status to a file
  8110. and the timeout to drop their data.
  8111. --server-stat-of=FILE specifies the file to which performance data
  8112. is saved.
  8113. --server-stat-if=FILE specifies the file to read previously saved
  8114. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8115. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8116. TIMEOUT is specified in seconds and the default value is 24hours.
  8117. * src/MultiUrlRequestInfo.cc
  8118. * src/OptionHandlerFactory.cc
  8119. * src/RequestGroupMan.cc
  8120. * src/RequestGroupMan.h
  8121. * src/ServerStatMan.cc
  8122. * src/ServerStatMan.h
  8123. * src/option_processing.cc
  8124. * src/prefs.cc
  8125. * src/prefs.h
  8126. * test/ServerStatManTest.cc
  8127. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8129. * src/ServerStatMan.cc
  8130. * src/ServerStatMan.h
  8131. * test/ServerStatManTest.cc
  8132. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8133. Implemented ServerStatMan::load(...) function and its test case.
  8134. * src/ServerStat.cc
  8135. * src/ServerStat.h
  8136. * src/ServerStatMan.cc
  8137. * test/ServerStatManTest.cc
  8138. * test/ServerStatTest.cc
  8139. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8140. Use time_t instead of int32_t. Use int64_t where milli second is
  8141. expected.
  8142. * src/TimeA2.cc
  8143. * src/TimeA2.h
  8144. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Implemented ServerStatMan::save(...) function and its test case.
  8146. * src/ServerStat.cc
  8147. * src/ServerStat.h
  8148. * src/ServerStatMan.cc
  8149. * src/ServerStatMan.h
  8150. * test/ServerStatManTest.cc
  8151. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8152. Now aria2 uses name attribute in Metalink as local filename in
  8153. BitTorrent downloads. BUG#2033999
  8154. * src/BtContext.h
  8155. * src/BtDependency.cc
  8156. * src/DefaultBtContext.cc
  8157. * src/DefaultBtContext.h
  8158. * src/SingleFileDownloadContext.cc
  8159. * src/SingleFileDownloadContext.h
  8160. * test/BtDependencyTest.cc
  8161. * test/DefaultBtContextTest.cc
  8162. * test/MockBtContext.h
  8163. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. Added AC_C_BIGENDIAN
  8165. * src/configure.ac
  8166. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. Limited numCommand less than or equal to the number of piece.
  8168. * src/RequestGroup.cc
  8169. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8171. directive.
  8172. * test/DefaultPieceStorageTest.cc
  8173. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8174. Fixed memory leak in test code
  8175. * test/AnnounceListTest.cc
  8176. * test/DefaultPeerListProcessorTest.cc
  8177. * test/DefaultPeerStorageTest.cc
  8178. * test/MetaFileUtilTest.cc
  8179. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8180. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8181. * src/DefaultPieceStorage.cc
  8182. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Initialized _directIOAllowed
  8184. * src/MultiDiskAdaptor.cc
  8185. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Fixed memory leak
  8187. * src/GZipDecoder.cc
  8188. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. Fixed memory leak
  8190. * src/MetalinkParserStateMachine.cc
  8191. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8192. Fixed memory leak
  8193. * src/Dictionary.cc
  8194. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8195. Fixed memory leak
  8196. * src/IteratableChunkChecksumValidator.h
  8197. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Fixed unmatched malloc/free.
  8199. * src/IteratableChunkChecksumValidator.cc
  8200. * src/IteratableChecksumValidator.cc
  8201. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Removed max chunk size check. This change fixes BUG#2040169
  8203. * src/ChunkedDecoder.cc
  8204. * src/ChunkedDecoder.h
  8205. * test/ChunkedDecoderTest.cc
  8206. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. Implemented download speed based URI selection algorithm.
  8208. Introduced new option --uri-selector.
  8209. If --uri-selector=feedback is given, aria2 uses download speed observed
  8210. in the previous downloads and chooses fastest server in the URI list.
  8211. Currently at most 10 URIs are considered to introduce randomeness for
  8212. finding better servers. The speed is average download speed in the
  8213. downloads.
  8214. On the other hand, if --uri-selector=inorder is given, which is default,
  8215. URI is tried in order in URI list.
  8216. The usage text for the new option has not been written yet.
  8217. * src/AbstractCommand.cc
  8218. * src/DownloadCommand.cc
  8219. * src/DownloadEngine.cc
  8220. * src/DownloadEngineFactory.cc
  8221. * src/InOrderURISelector.cc
  8222. * src/InOrderURISelector.h
  8223. * src/OptionHandlerFactory.cc
  8224. * src/PeerStat.h
  8225. * src/RequestGroup.cc
  8226. * src/RequestGroup.h
  8227. * src/RequestGroupMan.cc
  8228. * src/RequestGroupMan.h
  8229. * src/SegmentMan.cc
  8230. * src/SegmentMan.h
  8231. * src/ServerStat.cc
  8232. * src/ServerStat.h
  8233. * src/ServerStatMan.cc
  8234. * src/ServerStatMan.h
  8235. * src/ServerStatURISelector.cc
  8236. * src/ServerStatURISelector.h
  8237. * src/URISelector.h
  8238. * src/option_processing.cc
  8239. * src/prefs.cc
  8240. * src/prefs.h
  8241. * test/InOrderURISelectorTest.cc
  8242. * test/RequestGroupManTest.cc
  8243. * test/ServerStatManTest.cc
  8244. * test/ServerStatURISelectorTest.cc
  8245. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8246. * Release 0.15.1+2
  8247. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Bump up version number to 0.15.1+2
  8249. * configure.ac
  8250. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8252. * m4/aria2_arg.m4
  8253. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8254. * Release 0.15.1+1
  8255. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Bump up version number to 0.15.1+1
  8257. * configure.ac
  8258. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Fixed the bug that causes segmentaion fault when resuming download
  8260. using metalink without size tag. Reproducible only using HTTP URI.
  8261. * src/HttpResponseCommand.cc
  8262. * src/FtpNegotiationCommand.cc
  8263. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. * Release 0.15.1
  8265. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Updated Bulgarian and French translations, thanks to all translators.
  8267. * po/bg.po
  8268. * po/fr.po
  8269. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Bump up version number to 0.15.1
  8271. * configure.ac
  8272. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. Avoid repeated call of gettimeofday() when calculating speed.
  8274. * src/SpeedCalc.cc
  8275. * src/SpeedCalc.h
  8276. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8277. Removed writable check when socket's send buffer is full in BitTorrent
  8278. downloads to lower CPU usage.
  8279. * src/PeerInteractionCommand.cc
  8280. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Fixed broken gzip inflation.
  8282. Turn off segmented downloading if gzip content is smaller than or equal
  8283. to 1MiB and inflate the data on the fly, because HTTP response header
  8284. doesn't contain the length of inflated file we can't determin where
  8285. the chunk of data should be written.
  8286. On the other hand, if gzip content is larger than 1MB, then turn off
  8287. on the fly inflation, because some servers returns "content-type: gzip"
  8288. for *.tgz, *.gz files.
  8289. * src/DownloadCommand.cc
  8290. * src/HttpResponseCommand.cc
  8291. * src/HttpResponseCommand.h
  8292. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8293. Applied tizianomueller's patch to fix compile error.
  8294. * test/BitfieldManTest.cc
  8295. * test/BtRequestMessageTest.cc
  8296. * test/DefaultBtContextTest.cc
  8297. * test/DefaultDiskWriterTest.cc
  8298. * test/DefaultPieceStorageTest.cc
  8299. * test/HttpHeaderProcessorTest.cc
  8300. * test/HttpResponseTest.cc
  8301. * test/Metalink2RequestGroupTest.cc
  8302. * test/MetalinkParserControllerTest.cc
  8303. * test/MetalinkProcessorTest.cc
  8304. * test/PeerSessionResourceTest.cc
  8305. * test/UtilTest.cc
  8306. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. * Release 0.15.0
  8308. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8309. Reordered src files in POTFILES.in so that usage text appears first.
  8310. * po/POTFILES.in
  8311. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. Bump up version number to 0.15.0
  8313. * configure.ac
  8314. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Added Bulgarian translation.
  8316. Updated Catalan, Spanish, French and Japanese translations.
  8317. Thanks to all translators.
  8318. * po/LINGUAS
  8319. * po/bg.po
  8320. * po/ca.po
  8321. * po/es.po
  8322. * po/fr.po
  8323. * po/ja.po
  8324. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8325. Updated feature list. Added libz for dependency section.
  8326. Added a description about unit testing using CppUnit.
  8327. * README
  8328. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8329. Added a test for libz. Quoted where it is necessary.
  8330. * build_test.sh
  8331. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8332. Added GZip to `Enabled Features' list.
  8333. * src/FeatureConfig.cc
  8334. * src/FeatureConfig.h
  8335. * test/FeatureConfigTest.cc
  8336. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8338. the transfer has not yet started.
  8339. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8340. * src/SegmentMan.cc
  8341. * src/SegmentMan.h
  8342. * test/SegmentManTest.cc
  8343. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Cache last calculated average download/upload speed.
  8345. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8346. cached value.
  8347. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8348. * src/PeerStat.h
  8349. * src/SpeedCalc.cc
  8350. * src/SpeedCalc.h
  8351. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Call parseUrl directly.
  8353. * src/Request.cc (resetUrl)
  8354. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8355. Supported absolute/relative path in Location header field.
  8356. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8357. * src/HttpHeader.cc
  8358. * src/HttpHeader.h
  8359. * src/HttpResponse.cc
  8360. * src/HttpSkipResponseCommand.cc
  8361. * src/Request.cc
  8362. * test/HttpHeaderTest.cc
  8363. * test/HttpResponseTest.cc
  8364. * test/RequestTest.cc
  8365. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Changed help text for --load-cookie option.
  8367. * doc/aria2c.1.txt
  8368. * src/usage_text.h
  8369. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8370. Regenerated test/Makefile.in to remove stale ChangeLog.
  8371. * test/Makefile.in
  8372. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8373. Updated po files.
  8374. * po/aria2c.pot
  8375. * po/*.po
  8376. * po/*.gmo
  8377. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. Bump up version number to 0.15.0b
  8379. * configure.ac
  8380. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8381. Externalize messages.
  8382. * src/RequestGroupMan.cc
  8383. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8384. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8385. Use File::exists() instead of File::isFile() to allow non-regular file
  8386. such as block special files.
  8387. * src/AbstractDiskWriter.cc
  8388. * src/MultiDiskWriter.cc
  8389. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8390. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8391. * src/gai_strerror.h
  8392. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Fixed compile error. Thanks gknauf for the patch.
  8394. * src/asctime_r.c
  8395. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Included asctime_r.h from a2time.h.
  8397. * src/a2time.h
  8398. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8399. Added a message "aria2 doesn't verify signature" to log message when
  8400. signature file is saved.
  8401. * src/RequestGroupMan.cc
  8402. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8403. Added the ability to save signature when download is completed if
  8404. signature is available. The filename of signature file is the path to
  8405. download file followed by ".sig". If it already exists, then signature
  8406. will not be saved.
  8407. * src/RequestGroupMan.cc
  8408. * src/Signature.cc
  8409. * test/SignatureTest.cc
  8410. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Updated the descriptions for --bt-seed-unverified.
  8412. * doc/aria2c.1
  8413. * doc/aria2c.1.html
  8414. * doc/aria2c.1.txt
  8415. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8416. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8417. that this is not going to verify files using piece hashes.
  8418. * src/HelpItemFactory.cc
  8419. * src/OptionHandlerFactory.cc
  8420. * src/RequestGroup.cc
  8421. * src/option_processing.cc
  8422. * src/prefs.cc
  8423. * src/prefs.h
  8424. * src/usage_text.h
  8425. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8426. Added the ability to retrieve signature from Metalink file.
  8427. A retrieved signature is stored in Signature class and it is held by
  8428. DownloadContext class. Note that aria2 doesn't verify signature.
  8429. * src/DownloadContext.cc
  8430. * src/DownloadContext.h
  8431. * src/Makefile.am
  8432. * src/Makefile.in
  8433. * src/Metalink2RequestGroup.cc
  8434. * src/MetalinkEntry.cc
  8435. * src/MetalinkEntry.h
  8436. * src/MetalinkParserController.cc
  8437. * src/MetalinkParserController.h
  8438. * src/MetalinkParserStateMachine.cc
  8439. * src/MetalinkParserStateMachine.h
  8440. * src/Signature.cc
  8441. * src/Signature.h
  8442. * src/SignatureMetalinkParserState.cc
  8443. * src/SignatureMetalinkParserState.h
  8444. * src/VerificationMetalinkParserState.cc
  8445. * src/VerificationMetalinkParserState.h
  8446. * test/Metalink2RequestGroupTest.cc
  8447. * test/MetalinkParserControllerTest.cc
  8448. * test/MetalinkProcessorTest.cc
  8449. * test/test.xml
  8450. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. Close DiskAdaptor after renaming file.
  8452. * src/RequestGroup.cc
  8453. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Corrected indentation
  8455. * src/DefaultBtProgressInfoFile.cc
  8456. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8457. Moved the calls of std::ios::exceptions() inside of try-catch block
  8458. because if an error occurred in constructor of std::fstream, then
  8459. exception is thrown immediately when std::ios::exceptions() is called
  8460. which results unhandled exception and aria2c aborts.
  8461. * src/DefaultBtProgressInfoFile.cc
  8462. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. Added the test for the previous change in DefaultBtContext.cc
  8464. * test/DefaultBtContextTest.cc
  8465. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8466. Fixed the bug that causes infinite loop when the number of pieces are
  8467. fewer than allowed fast set size which is 10 by default.
  8468. * src/DefaultBtContext.cc
  8469. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8470. Updated the descriptions for -j, -s. Added --bt-seed.
  8471. * doc/aria2c.1
  8472. * doc/aria2c.1.html
  8473. * doc/aria2c.1.txt
  8474. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8476. aria2 seeds previously downloaded files without validating piece hashs.
  8477. * src/HelpItemFactory.cc
  8478. * src/OptionHandlerFactory.cc
  8479. * src/RequestGroup.cc
  8480. * src/option_processing.cc
  8481. * src/prefs.cc
  8482. * src/prefs.h
  8483. * src/usage_text.h
  8484. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. Updated DESCRIPTION of man page.
  8486. * doc/aria2c.1
  8487. * doc/aria2c.1.html
  8488. * doc/aria2c.1.txt
  8489. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8490. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8491. Don't define `struct addrinfo' when __sun is defined.
  8492. * src/getaddrinfo.h
  8493. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8495. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8496. second argument is of type `struct _stati64'. Otherwise it is defined as
  8497. `struct stat'.
  8498. * src/AbstractDiskWriter.cc
  8499. * src/File.cc
  8500. * src/File.h
  8501. * src/a2io.h
  8502. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8503. Fixed the compile error in hurd-i386
  8504. See the original bug report:
  8505. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8506. * src/a2io.h
  8507. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8508. Code cleanup.
  8509. * src/PeerAbstractCommand.cc
  8510. * src/PeerAbstractCommand.h
  8511. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8512. Removed TransferEncoding.
  8513. * src/DownloadCommand.cc
  8514. * src/DownloadCommand.h
  8515. * src/HttpResponseCommand.cc
  8516. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8517. Updated po files.
  8518. * po/aria2c.pot
  8519. * po/*.po
  8520. * po/*.gmo
  8521. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8522. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8523. * src/A2STR.cc
  8524. * src/A2STR.h
  8525. * src/ChunkedDecoder.cc
  8526. * src/ChunkedDecoder.h
  8527. * src/ChunkedEncoding.cc: Removed
  8528. * src/ChunkedEncoding.h: Removed
  8529. * src/DownloadCommand.cc
  8530. * src/DownloadCommand.h
  8531. * src/HttpDownloadCommand.cc
  8532. * src/HttpResponse.cc
  8533. * src/HttpResponse.h
  8534. * src/HttpResponseCommand.cc
  8535. * src/HttpSkipResponseCommand.cc
  8536. * src/HttpSkipResponseCommand.h
  8537. * src/Makefile.am
  8538. * src/TransferEncoding.h: Removed
  8539. * test/ChunkedDecoderTest.cc
  8540. * test/ChunkedEncodingTest.cc: Removed
  8541. * test/HttpResponseTest.cc
  8542. * test/Makefile.am
  8543. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Use append instead of insert.
  8545. * src/GZipDecoder.cc
  8546. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Updated doc
  8548. * src/Decoder.h
  8549. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Updated usage text for -s option.
  8551. * src/usage_text.h
  8552. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8554. * src/Request.cc
  8555. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8556. Cleaned up configure.ac.
  8557. * configure.ac
  8558. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8559. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8560. AC_ARG_ENABLE.
  8561. * configure.ac
  8562. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8564. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8565. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8566. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8567. fly and writes decoded data to a local disk.
  8568. * README
  8569. * README.html
  8570. * configure.ac
  8571. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8572. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8573. * m4/libz.m4
  8574. * src/Decoder.h
  8575. * src/DownloadCommand.cc
  8576. * src/DownloadCommand.h
  8577. * src/Exception.h
  8578. * src/GZipDecoder.cc
  8579. * src/GZipDecoder.h
  8580. * src/HttpHeader.cc
  8581. * src/HttpHeader.h
  8582. * src/HttpRequest.cc
  8583. * src/HttpRequest.h
  8584. * src/HttpResponse.cc
  8585. * src/HttpResponse.h
  8586. * src/HttpResponseCommand.cc
  8587. * src/Makefile.am
  8588. * test/GZipDecoderTest.cc
  8589. * test/HttpRequestTest.cc
  8590. * test/HttpResponseTest.cc
  8591. * test/Makefile.am
  8592. * test/Makefile.in
  8593. * test/gzip_decode_test.gz
  8594. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8595. Clarified usage of -j option.
  8596. * src/usage_text.h
  8597. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. Disabled getting size from the response of RETR.
  8599. If SIZE command failed, then disable resuming and segmented downloading.
  8600. * src/FtpConnection.cc
  8601. * src/FtpConnection.h
  8602. * src/FtpNegotiationCommand.cc
  8603. * src/FtpNegotiationCommand.h
  8604. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Use digits to find first byte of file size, which makes the intention
  8606. of the code clearer.
  8607. * src/FtpConnection.cc
  8608. Don't call validateTotalLength() when size is 0.
  8609. * src/FtpNegotiationCommand.cc
  8610. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Updated po files.
  8612. * po/aria2c.pot
  8613. * po/*.gmo
  8614. * po/*.po
  8615. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Clarified usage text for --split option.
  8617. * src/usage_text.h
  8618. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Bump up version number to 0.15.0dev. "dev" means "development"
  8620. version, which means I started the development of the next release!
  8621. * src/configure.ac
  8622. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8623. If FTP server returns negative response with REST raw command and
  8624. requested range is not 0, throw exception. If requested range is 0,
  8625. continue download a file from 0 byte.
  8626. * src/FtpNegotiationCommand.cc
  8627. * src/FtpNegotiationCommand.h
  8628. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8629. Supported FTP server which don't recognize SIZE raw command.
  8630. If SIZE raw command is failed, aria2 will try to get file size
  8631. from the response of RETR raw command. If both attempts are failed,
  8632. then resuming and segmented downloading are disabled.
  8633. * src/FtpConnection.cc
  8634. * src/FtpConnection.h
  8635. * src/FtpNegotiationCommand.cc
  8636. * src/FtpNegotiationCommand.h
  8637. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8638. * Release 0.14.0+1
  8639. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Bump up version number to 0.14.0+1
  8641. * src/configure.ac
  8642. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. Fixed the code that refers static member variable from non-static
  8644. context.
  8645. * src/DefaultPeerStorage.cc
  8646. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. * Release 0.14.0
  8648. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Added build test script
  8650. * build_test.sh
  8651. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8652. Updated ja.po
  8653. * src/ja.po
  8654. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Bump up version number to 0.14.0
  8656. * src/configure.ac
  8657. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Updated ja.po and fr.po. Great thanks for french translators and
  8659. Sebastien WILLEMIJNS.
  8660. * po/fr.po
  8661. * po/ja.po
  8662. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Added configure option to enable/disable epoll support.
  8664. * configure.ac
  8665. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Updated man page.
  8667. * doc/aria2c.1.txt
  8668. * doc/aria2c.1
  8669. * doc/aria2c.1.html
  8670. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8671. Added missing default value '5' to the usage of --split option.
  8672. * src/HelpItemFactory.cc
  8673. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. Filled up pieces based on the number of missing blocks, rather than
  8675. simplay the number of piece * block length.
  8676. * src/BtRequestFactory.h
  8677. * src/DefaultBtInteractive.cc
  8678. * src/DefaultBtInteractive.h
  8679. * src/DefaultBtRequestFactory.cc
  8680. * src/DefaultBtRequestFactory.h
  8681. * src/Piece.cc
  8682. * src/Piece.h
  8683. * test/BitfieldManTest.cc
  8684. * test/DefaultBtRequestFactoryTest.cc
  8685. * test/MockBtRequestFactory.h
  8686. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8687. Made _epEvents a member variable.
  8688. * src/DownloadEngine.cc
  8689. * src/DownloadEngine.h
  8690. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Cancel download if http redirect is bounded more than 20 times.
  8692. * src/AbstractCommand.cc
  8693. * src/HttpSkipResponseCommand.cc
  8694. * src/Request.cc
  8695. * src/Request.h
  8696. * test/RequestTest.cc
  8697. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8698. Fixed unhandled exception(removed keyword `new').
  8699. * src/SocketCore.cc (initEPOLL)
  8700. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8701. Removed visit(const MetaEntry*)
  8702. * src/MetaEntryVisitor.h:
  8703. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8704. and made them virtual.
  8705. * src/BencodeVisitor.h
  8706. * src/BencodeVisitor.cc
  8707. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8708. Updated po files.
  8709. * po/aria2c.pot
  8710. * po/*.po
  8711. * po/*.gmo
  8712. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8713. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8714. the number of socket to watch out.
  8715. * src/PeerInteractionCommand.cc
  8716. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8717. When there is not enough space in disk when writing a chunk of data,
  8718. aria2 now prints the message to the console to warn user and aborts
  8719. its download. Not all downloads are canceled because some downloads
  8720. may use another disk or partition. BUG#1640332
  8721. * src/AbstractDiskWriter.cc
  8722. * src/PeerAbstractCommand.cc
  8723. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8724. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8725. setHaltRequested(true) to cancel download.
  8726. * src/PeerInteractionCommand.h
  8727. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8728. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8729. socket from int to sock_t as sockets are unsigned in Windows.
  8730. For AsyncNameResolver, DownloadEngine, I did additional modification
  8731. for the portion of the code changed according to epoll support.
  8732. I defined sock_t in a2netcompat.h to use sock_t without including
  8733. SocketCore.h.
  8734. * src/AsyncNameResolver.cc
  8735. * src/AsyncNameResolver.h
  8736. * src/DownloadEngine.cc
  8737. * src/DownloadEngine.h
  8738. * src/SocketCore.cc
  8739. * src/SocketCore.h
  8740. * src/a2netcompat.h
  8741. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8742. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8743. changes in the patch were applied.
  8744. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8745. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8746. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8747. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8749. a2io.h and common.h were modified.
  8750. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8751. MinGW.
  8752. * src/common.h: Changed off_t to 64 bit in MinGW.
  8753. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8754. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8755. only a2netcompat.h is modified.
  8756. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8757. directives.
  8758. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8759. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8760. only gai_strerror.h is modified.
  8761. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8762. winsock errors in MinGW.
  8763. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8764. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8765. follow sources are applied.
  8766. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8767. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8768. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8769. I included locale.h from Platform.cc.
  8770. * src/main.cc: Moved common setup/teardown code to Platform class.
  8771. * test/AllTest.cc: Use Platform class.
  8772. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8773. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8774. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8775. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8776. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8777. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8779. aria2-0.13.2+1-mingw-2.patch.
  8780. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8781. systems which don't have termious.h. I moved the directive inside of
  8782. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8783. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8784. anyway.
  8785. * src/asctime_r.h
  8786. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8787. I added 2nd argument to the prototype declaration.
  8788. * src/StringFormat.cc: Get rid of vasprintf.
  8789. * src/getaddrinfo.h: Fixed constants.
  8790. * configure.ac: Added the check for asctime_r function.
  8791. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8792. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Added writable test for Socket when the sending message is in progress.
  8794. Usually the sending message is piece message. Without wriable check,
  8795. upload latency is dropped to more than 1sec.
  8796. * src/PeerInteractionCommand.cc
  8797. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8798. Create only requested files and files which shares a piece with
  8799. requested file in multi-torrent downloads. Directory structures are
  8800. also created in the same rule.
  8801. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8802. DiskWriterEntry as in the previous implementation.
  8803. * src/MultiDiskWriter.cc
  8804. * src/MultiFileAllocationIterator.cc
  8805. * src/MultiFileAllocationIterator.h
  8806. * test/MultiFileAllocationIteratorTest.cc
  8807. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8808. Commented out -lprofiler
  8809. * src/Makefile.am
  8810. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. Bump up version number to 0.14.0b.
  8812. * src/configure.ac
  8813. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. Actively establish connection to peers in seeding, when peer cache
  8815. is not full and max upload speed limit is not reached.
  8816. * src/ActivePeerConnectionCommand.cc
  8817. * src/ActivePeerConnectionCommand.h
  8818. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8819. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8820. to make room more fleshy, recently found peers.
  8821. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8822. it.
  8823. * src/DefaultPeerStorage.cc
  8824. * test/DefaultPeerStorageTest.cc
  8825. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Returns cached data only when the previous receiveHandshake() is called
  8827. with peek = true.
  8828. * src/PeerConnection.cc (receiveHandshake)
  8829. * src/PeerConnection.h (receiveHandshake)
  8830. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. Changed default value of -s option from 1 to 5.
  8832. Also max value of -s option is changed from 5 to 16.
  8833. * src/HelpItemFactory.cc
  8834. * src/OptionHandlerFactory.cc
  8835. * src/option_processing.cc
  8836. * src/usage_text.h
  8837. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Changed -s options behavior. Now it means the number of connections
  8839. made simultaneously in each http/ftp download.
  8840. If 1 URL is specified, the behavior is the same with old implementation.
  8841. If -s N is given and more than N URLs are specified, first N URLs are
  8842. used and remaining URLs are used for backup. If less than N URLs are
  8843. specified, some of URLs are used more than once so that totally N
  8844. connections are made simultaneously.
  8845. * src/main.cc
  8846. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8847. Included missing iosfwd or ostream header.
  8848. * src/RequestGroupMan.cc
  8849. * src/TaggedItem.cc
  8850. * src/TaggedItem.h
  8851. * src/Util.cc
  8852. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8854. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8855. * src/HttpConnection.cc: Included missing sstream.
  8856. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Added --bt-max-open-files option.
  8858. * src/DefaultPieceStorage.cc
  8859. * src/HelpItemFactory.cc
  8860. * src/MultiDiskAdaptor.cc
  8861. * src/MultiDiskAdaptor.h
  8862. * src/OptionHandlerFactory.cc
  8863. * src/option_processing.cc
  8864. * src/prefs.cc
  8865. * src/prefs.h
  8866. * src/usage_text.h
  8867. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. Fixed the bug that aria2 aborts when a path to a directory is given
  8869. in command-line.
  8870. * src/ProtocolDetector.cc
  8871. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8872. Limited the number files opened in each BitTorrent download. The default
  8873. value is 100. The option to change this value will be added.
  8874. * src/MultiDiskAdaptor.cc
  8875. * src/MultiDiskAdaptor.h
  8876. * src/MultiFileAllocationIterator.cc
  8877. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8878. Fixed the bug that HTTP downloads don't start with old libraries.
  8879. * src/HttpHeaderProcessor.cc
  8880. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8881. Use empty() instead of size() > 0.
  8882. * src/HttpConnection.cc
  8883. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8884. Drop connection if the incoming peer ID is the same with localhost's
  8885. one. The previous implementation drops connection when incoming peer's
  8886. IP address is the same with localhost's one.
  8887. * src/PeerListenCommand.cc
  8888. * src/DefaultBtInteractive.cc
  8889. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8890. Returns cached data without checking whether socket is readable
  8891. if the cache is available.
  8892. * src/PeerConnection.cc (receiveHandshake)
  8893. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. Included stdint.h
  8895. * src/common.h
  8896. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. Removed duplicate HAVE_GETTIMEOFDAY
  8898. * src/Makefile.am
  8899. * src/Makefile.in
  8900. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Use interval as a minInterval when minInterval is not supplied.
  8902. * src/DefaultBtAnnounce.cc
  8903. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8905. attempt is failed, then 2nd attempt get kicked out more quickly.
  8906. And it is now static const member of DefaultBtAnnounce.
  8907. * src/DefaultBtAnnounce.h
  8908. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8909. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8910. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8911. * src/ActivePeerConnectionCommand.cc
  8912. * src/BtConstants.h
  8913. * src/BtRuntime.h
  8914. * src/DHTGetPeersCommand.cc
  8915. * src/DefaultBtAnnounce.cc
  8916. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8917. BtRuntime::MAX_PEERS.
  8918. * src/DefaultPeerStorage.h
  8919. * src/InitiatorMSEHandshakeCommand.cc
  8920. * src/PeerInitiateConnectionCommand.cc
  8921. * src/PeerInteractionCommand.cc
  8922. * src/PeerReceiveHandshakeCommand.cc
  8923. * src/TrackerWatcherCommand.cc
  8924. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. Always Connect to _numNewConnection
  8926. * src/ActivePeerConnectionCommand.cc
  8927. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8928. Made `begin' unsigned int.
  8929. * src/GrowSegment.h
  8930. * src/Piece.cc
  8931. * src/Piece.h
  8932. * src/PiecedSegment.cc
  8933. * src/PiecedSegment.h
  8934. * src/Segment.h
  8935. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. Calculate piece hash when data is arrived if the data is arrived in
  8937. order. This removes additional read operation for hash calculation.
  8938. If the data is arrived in out of order, the hash is calucated when the
  8939. piece is completed. This is the same behavior as the old implementation.
  8940. * src/BtPieceMessage.cc
  8941. * src/DefaultBtProgressInfoFile.cc
  8942. * src/DefaultPieceStorage.cc
  8943. * src/DownloadCommand.cc
  8944. * src/DownloadCommand.h
  8945. * src/DownloadEngine.cc
  8946. * src/GrowSegment.cc
  8947. * src/GrowSegment.h
  8948. * src/Piece.cc
  8949. * src/Piece.h
  8950. * src/PiecedSegment.cc
  8951. * src/PiecedSegment.h
  8952. * src/Segment.h
  8953. * test/PieceTest.cc
  8954. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8955. Try to keep the ordering of outgoing piece message.
  8956. * src/DefaultBtMessageDispatcher.cc
  8957. (DefaultBtMessageDispatcher::sendMessages)
  8958. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8959. Fixed busy loop when error/hup epoll events occur.
  8960. * src/AbstractCommand.cc
  8961. * src/PeerAbstractCommand.cc
  8962. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8963. Added --bt-request-peer-speed-limit option, which was a constant
  8964. SLOW_SPEED_THRESHOLD.
  8965. * src/ActivePeerConnectionCommand.cc
  8966. * src/ActivePeerConnectionCommand.h
  8967. * src/BtConstants.h
  8968. * src/HelpItemFactory.cc
  8969. * src/OptionHandlerFactory.cc
  8970. * src/PeerReceiveHandshakeCommand.cc
  8971. * src/option_processing.cc
  8972. * src/prefs.cc
  8973. * src/prefs.h
  8974. * src/usage_text.h
  8975. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8976. Removed repeated call of getTopDirPath(). Instead, call it once and
  8977. cache the result.
  8978. * src/MultiDiskAdaptor.cc
  8979. * src/MultiDiskAdaptor.h
  8980. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8981. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8982. Fixed compile error on debian etch.
  8983. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8984. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8985. it is undefined.
  8986. * src/Util.cc (ULLONG_MAX)
  8987. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8988. Added epoll support. Use epoll if it is available. If not, use select.
  8989. When async dns is enabled in compile time, epoll support is enabled
  8990. only when aria2 is built with c-ares. This condition statement is
  8991. defined in a2io.h.
  8992. Currently aria2 supports both c-ares and ares, but ares is maintained
  8993. for quite a while and debian already has c-ares package, ares support
  8994. will be dropped in the future version.
  8995. * configure.ac
  8996. * src/AbstractCommand.cc
  8997. * src/AsyncNameResolver.cc
  8998. * src/AsyncNameResolver.h
  8999. * src/Command.cc
  9000. * src/Command.h
  9001. * src/DownloadEngine.cc
  9002. * src/DownloadEngine.h
  9003. * src/PeerAbstractCommand.cc
  9004. * src/SocketCore.cc
  9005. * src/SocketCore.h
  9006. * src/a2io.h
  9007. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9008. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9009. directive.
  9010. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Do not do write operation to /dev/null file.
  9012. * src/LogFactory.cc
  9013. * src/SimpleLogger.cc
  9014. Replaced vasprintf with vsnprintf
  9015. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9016. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9017. * src/BtRequestMessage.cc
  9018. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9019. for segmentation fault caused by previous commit.
  9020. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9021. Reduced the usage of gettimeofday().
  9022. * src/DefaultBtMessageDispatcher.cc
  9023. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9024. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9025. * src/RequestSlot.cc
  9026. * src/RequestSlot.h
  9027. (RequestSlot::isTimeout)
  9028. Made RequestSlot have a reference to Piece object to avoid find
  9029. Piece repeatedly.
  9030. * src/DefaultBtMessageDispatcher.cc
  9031. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9032. * src/RequestSlot.cc
  9033. * src/RequestSlot.h
  9034. (RequestSlot::getPiece)
  9035. * test/DefaultBtMessageDispatcherTest.cc
  9036. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9037. * src/TimeA2.cc
  9038. * src/TimeA2.h
  9039. (Time::difference): New function.
  9040. (Time::elapsed): Done optimization.
  9041. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9042. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9043. directive.
  9044. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. * src/option_processing.cc: Added missing `defined' keyword to #if
  9046. directive.
  9047. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9048. Bump up version number to 0.13.2+1
  9049. * src/configure.ac
  9050. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Refactored broken outstanding piece handling.
  9052. * src/DefaultPieceStorage.cc
  9053. * src/DefaultPieceStorage.h
  9054. * src/Piece.cc
  9055. * src/Piece.h
  9056. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9057. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9058. name collision of static variable and predefined macro.
  9059. * src/BtContext.cc
  9060. * src/BtContext.h
  9061. * src/CookieBoxFactory.cc
  9062. * src/CookieBoxFactory.h
  9063. * src/CookieParser.cc
  9064. * src/CookieParser.h
  9065. * src/DefaultBtContext.cc
  9066. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. * src/RequestGroup.cc
  9068. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9069. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. * Release 0.13.2
  9071. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9072. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9073. * po/fr.po
  9074. * po/ja.po
  9075. * po/aria2c.pot
  9076. * po/*.po
  9077. * po/*.gmo
  9078. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9079. Bump up version number to 0.13.2
  9080. * src/configure.ac
  9081. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. Refactord.
  9083. * src/RequestGroupMan.cc
  9084. (removeStoppedGroup)
  9085. (fillRequestGroupFromReserver)
  9086. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9087. Fixed compile error on Ubuntu.
  9088. * src/BtPieceMessage.cc
  9089. * src/MessageDigestHelper.cc
  9090. * src/Util.cc
  9091. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Fixed compile error when configured with --disable-bittorrent
  9093. * test/DownloadHandlerFactoryTest.cc
  9094. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9095. Done make update-po
  9096. * po/aria2c.pot
  9097. * po/*.po
  9098. * po/*.gmo
  9099. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Bump up version number to 0.13.2rc.
  9101. * src/configure.ac
  9102. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Made option name bold. Updated SYNOPSIS to make it more readable.
  9104. * doc/aria2c.1.txt
  9105. * doc/aria2c.1
  9106. * doc/aria2c.1.html
  9107. * src/version_usage.cc
  9108. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9109. Refactored. Use std::string instead of size and char*.
  9110. * Data.cc
  9111. * Data.h
  9112. * test/Data.cc
  9113. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9114. Added trimSelf(). Rewritten trim() to use trimSelf().
  9115. * Util.cc
  9116. * Util.h
  9117. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9118. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9119. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9120. Fixed compile error when configured with --disable-metalink.
  9121. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9122. * test/FeatureConfigTest.cc
  9123. * test/DownloadHandlerFactoryTest.cc
  9124. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9125. Fixed compile error when configured with --without-gnutls
  9126. --without-openssl
  9127. * src/main.cc
  9128. * test/DefaultBtProgressInfoFileTest.cc
  9129. * test/SegmentManTest.cc
  9130. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. Fixed compile error with OpenSSL.
  9132. * src/IteratableChunkChecksumValidator.cc
  9133. * src/LibsslDHKeyExchange.h
  9134. * src/MessageDigestHelper.cc
  9135. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9136. Revert the default value of --max-concurrent-downloads to 5.
  9137. Revert the default value of --metalink-servers to 5.
  9138. Man pages was also updated.
  9139. * src/option_processing.cc
  9140. * doc/aria2c.1.txt
  9141. * doc/aria2c.1.html
  9142. * doc/aria2c.1
  9143. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9144. Returns const reference:
  9145. DownloadContext::getPieceHash, DownloadContext::getName,
  9146. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9147. BtContext::getInfoHashAsString,
  9148. * src/BtContext.h
  9149. * src/DefaultBtContext.cc
  9150. * src/DefaultBtContext.h
  9151. * src/DownloadContext.h
  9152. * src/SingleFileDownloadContext.h
  9153. * test/MockBtContext.h
  9154. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9155. * src/RequestGroup.h (getDir): Removed.
  9156. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Returns const reference. The internal urlencode function was optimized
  9158. a little bit.
  9159. * src/Request.cc
  9160. * src/Request.h
  9161. * src/HttpRequest.cc
  9162. * src/HttpRequest.h
  9163. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9164. Defined option name and possible values as std::string to reduce
  9165. temporary string object creation in runtime.
  9166. * src/HelpItemFactory.cc
  9167. * src/LogFactory.cc
  9168. * src/Option.cc
  9169. * src/OptionHandlerFactory.cc
  9170. * src/option_processing.cc
  9171. * src/prefs.cc
  9172. * src/prefs.h
  9173. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9174. Return const reference.
  9175. * src/DownloadHandlerConstants.cc
  9176. * src/DownloadHandlerConstants.h
  9177. (getMetalinkExtensions)
  9178. (getMetalinkContentTypes)
  9179. (getBtExtensions)
  9180. (getBtContentTypes)
  9181. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. * src/HttpHeader.cc (get): Rewritten.
  9183. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9184. Make HttpHeader::getFirst(...) return const reference.
  9185. * src/HttpHeader.cc
  9186. * src/HttpHeader.h
  9187. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9188. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9189. it with V_TRUE.
  9190. * src/DefaultPieceStorage.cc
  9191. * src/DownloadCommand.cc
  9192. * src/FtpNegotiationCommand.cc
  9193. * src/HttpRequest.cc
  9194. * src/InitiateConnectionCommand.cc
  9195. * src/RequestGroup.cc
  9196. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. Made Option::get(...) return const reference of std::string.
  9198. * src/Option.cc
  9199. * src/Option.h
  9200. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. Replaced std:copy with insert.
  9202. * src/DefaultBtMessageDispatcher.cc
  9203. * src/DefaultPieceStorage.cc
  9204. * src/DownloadEngineFactory.cc
  9205. * src/RequestGroup.cc
  9206. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9207. Included SocketCore.h to fix compiler warning.
  9208. * src/InitiateConnectionCommand.cc
  9209. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. Put piece selection strategy algorithm to RarestPieceSelector class,
  9211. Added a switch to choose whether randomized selection so that unit
  9212. tests emit same results in, possibly, win32.
  9213. * src/DefaultPieceStorage.cc
  9214. * src/DefaultPieceStorage.h
  9215. * src/RarestPieceSelector.cc
  9216. * src/RarestPieceSelector.h
  9217. * test/DefaultPieceStorageTest.cc
  9218. * test/RarestPieceSelectorTest.cc
  9219. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Don't pool connection if HTTP proxy is enabled.
  9221. * src/FtpFinishDownloadCommand.cc
  9222. * src/FtpNegotiationCommand.cc
  9223. * src/HttpSkipResponseCommand.cc
  9224. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9225. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9226. * src/AbstractCommand.cc
  9227. * src/AbstractCommand.h
  9228. * src/ActivePeerConnectionCommand.cc
  9229. * src/FtpInitiateConnectionCommand.cc
  9230. * src/HttpInitiateConnectionCommand.cc
  9231. * src/InitiateConnectionCommandFactory.cc
  9232. * src/PeerAbstractCommand.cc
  9233. * src/PeerAbstractCommand.h
  9234. * src/PeerInitiateConnectionCommand.cc
  9235. * src/TrackerWatcherCommand.cc
  9236. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9237. Sort RequestSlot in ascending order and manipulate them using
  9238. lower_bound.
  9239. * src/DefaultBtMessageDispatcher.cc
  9240. * src/DefaultBtMessageDispatcher.h
  9241. (getMessageQueue): Added const qualifier.
  9242. (getRequestSlots): Added const qualifier.
  9243. (sendMessages): Use empty() instead of size().
  9244. (doCancelSendingPieceAction): Use HandleEvent object.
  9245. (doAbortOutstandingRequestAction): Rewritten.
  9246. (doChokedAction): Rewritten.
  9247. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9248. (isOutstandingRequest): Rewritten.
  9249. (getOutstandingRequest): Rewritten.
  9250. (removeOutstandingRequest): Rewritten.
  9251. (addOutstandingRequest): Rewritten.
  9252. * src/RequestSlot.cc
  9253. * src/RequestSlot.h
  9254. (operator=): Rewritten.
  9255. (operator!=): New function.
  9256. (operator<): New function.
  9257. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9258. * src/DefaultBtRequestFactory.cc
  9259. (doChokedAction): Rewritten.
  9260. (removeCompletedPiece): Rewritten.
  9261. (removeTargetPiece): Rewritten.
  9262. (createRequestMessages): Added the debug log.
  9263. (createRequestMessagesOnEndGame: Added the debug log.
  9264. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9265. Added the debug log message.
  9266. * src/BtPieceMessage.cc (doReceivedAction)
  9267. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9269. used lower_bound to process them rather than linear search.
  9270. * src/DHTPeerAnnounceStorage.cc
  9271. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9273. peer has at least one completed piece.
  9274. * src/Peer.cc
  9275. * src/Peer.h
  9276. * src/PeerInteractionCommand.cc
  9277. * src/PeerSessionResource.cc
  9278. * src/PeerSessionResource.h
  9279. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9280. Removed unnecessary sorting
  9281. * src/DefaultPieceStorage (DefaultPieceStorage)
  9282. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9283. Rewritten the portion of the code that mangaes allowed fast indexes.
  9284. * src/PeerSessionResource.cc
  9285. * src/PeerSessionResource.h
  9286. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9287. Removed the invalid string including '\r' from ru.po and
  9288. did make update-po.
  9289. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. Added --log-level and --summary-interval to man page.
  9291. * doc/aria2c.1.txt
  9292. * doc/aria2c.1.html
  9293. * doc/aria2c.1
  9294. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9295. Added --log-level option to specify log level. Log messages under
  9296. the specified level are not output. Default value is `debug'.
  9297. * src/HelpItemFactory.cc
  9298. * src/LogFactory.cc
  9299. * src/LogFactory.h
  9300. * src/Logger.h
  9301. * src/OptionHandlerFactory.cc
  9302. * src/SimpleLogger.cc
  9303. * src/SimpleLogger.h
  9304. * src/main.cc
  9305. * src/option_processing.cc
  9306. * src/prefs.h
  9307. * src/usage_text.h
  9308. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Print download progress summary of all parallel downloads in specified
  9310. interval, default 60 secs. While aria2 could download several files
  9311. in parallel (see -j option), it displayed just first download progress,
  9312. and the other downloads are hidden from the users. This new feature
  9313. prints all downloads currently in-progress to the console so that you
  9314. can check the status of all downloads. The interval can be adjusted
  9315. by --summary-interval option.
  9316. The progress readout is now cut so that all fits in the one line of
  9317. console.
  9318. * src/ConsoleStatCalc.cc
  9319. * src/ConsoleStatCalc.h
  9320. * src/HelpItemFactory.cc
  9321. * src/OptionHandlerFactory.cc
  9322. * src/RequestGroupMan.cc
  9323. * src/RequestGroupMan.h
  9324. * src/main.cc
  9325. * src/option_processing.cc
  9326. * src/prefs.h
  9327. * src/usage_text.h
  9328. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9329. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9330. * src/DownloadEngine.cc (DownloadEngine)
  9331. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9333. defined.
  9334. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9335. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9336. Use erase+lower_bound+insert instead of sort.
  9337. * src/DefaultPieceStorage.cc (addPieceStats)
  9338. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9340. * src/A2STR.cc
  9341. * src/A2STR.h
  9342. * src/OptionParser.cc (parse)
  9343. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Defined fake filename `[tracker.announce]' as static const std::string.
  9345. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9346. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. Defined default filename `index.html' as static const std::string
  9348. * src/SingleFileDownloadContext.cc
  9349. * src/SingleFileDownloadContext.h
  9350. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9351. Defined "[MEMORY]" as static const std::string.
  9352. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9353. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9354. Defined control file's version number as static const std::string.
  9355. * src/DefaultBtProgressInfoFile.cc
  9356. * src/DefaultBtProgressInfoFile.h
  9357. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Use Request::METHOD_GET
  9359. * src/RequestGroup.cc (createNextCommandWithAdj)
  9360. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9361. Defined "OK", "ERR", "INPR" as static const std::string
  9362. * src/RequestGroupMan.cc (showDownloadResults)
  9363. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9364. Defined default client used in extended handshake as static const
  9365. std::string
  9366. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9367. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9368. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9369. * src/HttpConnection.cc (eraseConfidentialInfo)
  9370. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9371. Defined default ftp user and password as static const std::string
  9372. * src/AuthConfigFactory.cc
  9373. * src/AuthConfigFactory.h
  9374. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9375. Defined strings used in netrc as static const std::string
  9376. * src/Netrc.cc
  9377. * src/Netrc.h
  9378. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9379. Defined HTTP status as static const std::string
  9380. * src/AbstractProxyResponseCommand.cc
  9381. * src/HttpHeader.cc
  9382. * src/HttpHeader.h
  9383. * src/HttpResponse.cc
  9384. * src/HttpResponseCommand.cc
  9385. * src/HttpSkipResponseCommand.cc
  9386. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Defined "\r\n", "A", "I" as static const std::string
  9388. * src/A2STR.cc
  9389. * src/A2STR.h
  9390. * src/FtpConnection.cc
  9391. * src/FtpConnection.h
  9392. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. Added COLON_C(".") and used it in Request::parseUrl()
  9394. * src/A2STR.cc
  9395. * src/A2STR.h
  9396. * src/Request.cc (parseUrl)
  9397. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9398. Changed the type of padName from `const std::string&' to `const char*'.
  9399. * src/MSEHandshake.cc (verifyPadLength)
  9400. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. Defined "sha1" as static const std::string.
  9402. * src/MetalinkParserController.cc
  9403. * src/MetalinkParserController.h
  9404. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9405. Defined message digest algorithm name as static const std::string
  9406. * src/DHTTokenTracker.cc
  9407. * src/DHTUtil.cc
  9408. * src/DefaultBtContext.cc
  9409. * src/MSEHandshake.cc
  9410. * src/MessageDigestHelper.cc
  9411. * src/Peer.cc
  9412. * src/messageDigest.cc
  9413. * src/messageDigest.h
  9414. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9415. Made string literals used in SAX parser static const std::string.
  9416. * src/FileMetalinkParserState.cc
  9417. * src/FileMetalinkParserState.h
  9418. * src/FilesMetalinkParserState.cc
  9419. * src/FilesMetalinkParserState.h
  9420. * src/InitialMetalinkParserState.cc
  9421. * src/InitialMetalinkParserState.h
  9422. * src/MetalinkMetalinkParserState.cc
  9423. * src/MetalinkMetalinkParserState.h
  9424. * src/PiecesMetalinkParserState.cc
  9425. * src/PiecesMetalinkParserState.h
  9426. * src/ResourcesMetalinkParserState.cc
  9427. * src/ResourcesMetalinkParserState.h
  9428. * src/VerificationMetalinkParserState.cc
  9429. * src/VerificationMetalinkParserState.h
  9430. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9431. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9432. * src/A2STR.cc
  9433. * src/A2STR.h
  9434. * src/File.cc
  9435. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9436. Defined static const std::string IP("ip"), PORT("port") and use them
  9437. instead of string literals.
  9438. * src/DefaultPeerListProcessor.cc
  9439. * src/DefaultPeerListProcessor.h
  9440. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Made string literals for torrent file processing static const
  9442. std::string.
  9443. * src/BtContext.cc
  9444. * src/BtContext.h
  9445. * src/DefaultBtContext.cc
  9446. * src/DefaultBtContext.h
  9447. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. Made string literal for tracker response static const std::string
  9449. * src/BtAnnounce.cc
  9450. * src/BtAnnounce.h
  9451. * src/DefaultBtAnnounce.cc
  9452. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9453. Use DHTMessage::T instead of "t".
  9454. * src/DHTMessageTracker.cc (messageArrived)
  9455. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9456. Made keyName static const. Made trimmed charset static const
  9457. std::string.
  9458. * src/Util.cc (getContentDispositionFilename)
  9459. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9460. Made USER_AGENT const. Made "/" static const std::string.
  9461. * src/A2STR.cc
  9462. * src/A2STR.h
  9463. * src/HttpRequest.cc
  9464. * src/HttpRequest.h
  9465. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9466. Made string listeral to static const std::string:
  9467. "Content-Range", "Content-Length"
  9468. * src/HttpHeader.cc
  9469. * src/HttpHeader.h
  9470. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. Made string listeral to static const std::string.
  9472. * src/HttpConnection.cc
  9473. * src/HttpHeader.cc
  9474. * src/HttpHeader.h
  9475. * src/HttpResponse.cc
  9476. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9477. Made string listeral to static const std::string.
  9478. * src/A2STR.cc
  9479. * src/A2STR.h
  9480. * src/SimpleLogger.cc
  9481. * src/SimpleLogger.h
  9482. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. Made string literal to static const std::string.
  9484. Rewritten CookieParser::setField.
  9485. * src/A2STR.cc
  9486. * src/A2STR.h
  9487. * src/CookieBoxFactory.cc
  9488. * src/CookieBoxFactory.h
  9489. * src/CookieParser.cc
  9490. * src/CookieParser.h
  9491. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9492. Made string literal to static const std::string
  9493. * src/DHTAbstractMessage.cc
  9494. * src/DHTAnnouncePeerMessage.cc
  9495. * src/DHTAnnouncePeerMessage.h
  9496. * src/DHTAnnouncePeerReplyMessage.cc
  9497. * src/DHTAnnouncePeerReplyMessage.h
  9498. * src/DHTFindNodeMessage.cc
  9499. * src/DHTFindNodeMessage.h
  9500. * src/DHTFindNodeReplyMessage.cc
  9501. * src/DHTFindNodeReplyMessage.h
  9502. * src/DHTGetPeersMessage.cc
  9503. * src/DHTGetPeersMessage.h
  9504. * src/DHTGetPeersReplyMessage.cc
  9505. * src/DHTGetPeersReplyMessage.h
  9506. * src/DHTMessage.cc
  9507. * src/DHTMessage.h
  9508. * src/DHTMessageFactoryImpl.cc
  9509. * src/DHTMessageReceiver.cc
  9510. * src/DHTPingMessage.cc
  9511. * src/DHTPingMessage.h
  9512. * src/DHTPingReplyMessage.cc
  9513. * src/DHTPingReplyMessage.h
  9514. * src/DHTQueryMessage.cc
  9515. * src/DHTQueryMessage.h
  9516. * src/DHTResponseMessage.cc
  9517. * src/DHTResponseMessage.h
  9518. * src/DHTUnknownMessage.cc
  9519. * src/DHTUnknownMessage.h
  9520. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9521. Made string literal to static const std::string
  9522. * src/BtChokeMessage.cc (toString)
  9523. * src/BtHaveAllMessage.cc (toString)
  9524. * src/BtHaveNoneMessage.cc (toString)
  9525. * src/BtInterestedMessage.cc (toString)
  9526. * src/BtNotInterestedMessage.cc (toString)
  9527. * src/BtUnchokeMessage.cc (toString)
  9528. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9529. Replaced "" with static const variable A2STR::NIL.
  9530. Replaced string comparison against "" with std::string::empty().
  9531. Added PROTO_* to Request class and use them as a protocol string
  9532. constant.
  9533. Made "started", "stopped", "completed" static const variable in
  9534. AnnounceList class.
  9535. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9536. Updated translations. Great thanks to translators.
  9537. * po/ca.po
  9538. * po/de.po
  9539. * po/fr.po
  9540. * po/it.po
  9541. * po/ja.po
  9542. * po/ru.po
  9543. * po/zh_CN.po
  9544. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9545. Updated man page; categorized options and fixed typo.
  9546. * doc/aria2c.1.txt
  9547. * doc/aria2c.1.html
  9548. * doc/aria2c.1
  9549. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. Removed const ref
  9551. * src/MetalinkEntry.cc (AddProtocolPreference)
  9552. * src/RequestGroup.cc (FindServerHostByHostname)
  9553. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9554. Rewritten Accept-Features handling.
  9555. * src/HttpRequestCommand.cc (createHttpRequest)
  9556. * src/a2functional.h
  9557. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. Changed method signature:
  9559. DHTAbstractNodeLookupTask::toEntries
  9560. * src/DHTAbstractNodeLookupTask.cc
  9561. * src/DHTAbstractNodeLookupTask.h
  9562. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. Changed method signature:
  9564. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9565. * src/BtContext.h
  9566. * src/DefaultBtContext.cc
  9567. * src/DefaultBtContext.h
  9568. * src/DefaultBtInteractive.cc
  9569. * test/DefaultBtContextTest.cc
  9570. * test/MockBtContext.h
  9571. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9572. Changed method signature:
  9573. MultiFileAllocationIterator::makeDiskWriterEntries
  9574. * src/MultiFileAllocationIterator.cc
  9575. * src/MultiFileAllocationIterator.h
  9576. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9577. Changed method sinature:
  9578. MetalinkEntry::toFileEntry,
  9579. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9580. Metalinker::queryEntry
  9581. * src/Metalink2RequestGroup.cc
  9582. * src/MetalinkEntry.cc
  9583. * src/MetalinkEntry.h
  9584. * src/MetalinkHelper.cc
  9585. * src/MetalinkHelper.h
  9586. * src/Metalinker.cc
  9587. * src/Metalinker.h
  9588. * src/main.cc
  9589. * test/MetalinkHelperTest.cc
  9590. * test/MetalinkerTest.cc
  9591. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9592. Changed method sinature:
  9593. RequestGroup::getURIs
  9594. * src/RequestGroup.cc
  9595. * src/RequestGroup.h
  9596. * test/Metalink2RequestGroupTest.cc
  9597. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9598. Changed method signature:
  9599. PeerListProcessor::extractPeer
  9600. * src/CompactPeerListProcessor.cc
  9601. * src/CompactPeerListProcessor.h
  9602. * src/DefaultBtAnnounce.cc
  9603. * src/DefaultPeerListProcessor.cc
  9604. * src/DefaultPeerListProcessor.h
  9605. * src/DelegatingPeerListProcessor.cc
  9606. * src/DelegatingPeerListProcessor.h
  9607. * src/PeerListProcessor.h
  9608. * src/UTPexExtensionMessage.cc
  9609. * test/DefaultPeerListProcessorTest.cc
  9610. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9611. Changed method signature:
  9612. BtRequestFactory::createRequestMessages,
  9613. BtRequestFactory::createRequestMessagesOnEndGame
  9614. * src/BtRequestFactory.h
  9615. * src/DefaultBtInteractive.cc
  9616. * src/DefaultBtRequestFactory.cc
  9617. * src/DefaultBtRequestFactory.h
  9618. * test/DefaultBtRequestFactoryTest.cc
  9619. * test/MockBtRequestFactory.h
  9620. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9621. Changed method signature:
  9622. PieceStorage::getInFlightPieces
  9623. * src/DefaultBtProgressInfoFile.cc
  9624. * src/DefaultPieceStorage.cc
  9625. * src/DefaultPieceStorage.h
  9626. * src/PieceStorage.h
  9627. * src/UnknownLengthPieceStorage.cc
  9628. * src/UnknownLengthPieceStorage.h
  9629. * test/DefaultBtProgressInfoFileTest.cc
  9630. * test/MockPieceStorage.h
  9631. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. Changed method signature:
  9633. PostDownloadHandler::getNextRequestGroups
  9634. Metalink2RequestGroup::generate
  9635. RequestGroup::postDownloadProcessing
  9636. * src/BtPostDownloadHandler.cc
  9637. * src/BtPostDownloadHandler.h
  9638. * src/Metalink2RequestGroup.cc
  9639. * src/Metalink2RequestGroup.h
  9640. * src/MetalinkPostDownloadHandler.cc
  9641. * src/MetalinkPostDownloadHandler.h
  9642. * src/PostDownloadHandler.h
  9643. * src/RequestGroup.cc
  9644. * src/RequestGroup.h
  9645. * src/RequestGroupMan.cc
  9646. * src/main.cc
  9647. * test/BtPostDownloadHandlerTest.cc
  9648. * test/Metalink2RequestGroupTest.cc
  9649. * test/MetalinkPostDownloadHandlerTest.cc
  9650. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9651. Rewritten AccRequestGroup
  9652. * src/main.cc
  9653. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. Rewritten.
  9655. * src/TaggedItem.cc (toTagString)
  9656. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9657. Rewritten Accept-Features handling.
  9658. * src/HttpRequestCommand.cc (createHttpRequest)
  9659. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9660. Rewritten accept types handling.
  9661. * HttpRequest.cc (createRequest)
  9662. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Rewritten
  9664. * src/FeatureConfig.cc (featureSummary)
  9665. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9666. Changed method signature:
  9667. PeerStorage::getActivePeers
  9668. * src/DHTPeerAnnounceEntry.cc
  9669. * src/DefaultPeerStorage.cc
  9670. * src/DefaultPeerStorage.h
  9671. * src/PeerStorage.h
  9672. * test/DefaultPeerStorageTest.cc
  9673. * test/MockPeerStorage.h
  9674. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9675. Changed method signature:
  9676. DHTPeerAnnounceStorage::getPeers,
  9677. DHTPeerAnnounceEntry::getPeers
  9678. * src/DHTGetPeersMessage.cc
  9679. * src/DHTPeerAnnounceEntry.cc
  9680. * src/DHTPeerAnnounceEntry.h
  9681. * src/DHTPeerAnnounceStorage.cc
  9682. * src/DHTPeerAnnounceStorage.h
  9683. * test/DHTAnnouncePeerMessageTest.cc
  9684. * test/DHTPeerAnnounceEntryTest.cc
  9685. * test/DHTPeerAnnounceStorageTest.cc
  9686. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9687. Changed method signature:
  9688. NameResolver::resolve
  9689. * src/DHTEntryPointNameResolveCommand.cc
  9690. * src/InitiateConnectionCommand.cc
  9691. * src/NameResolver.cc
  9692. * src/NameResolver.h
  9693. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9694. Changed method signature:
  9695. PieceStorage::getAdvertisedPieceIndexes
  9696. * src/DefaultBtInteractive.cc
  9697. * src/DefaultPieceStorage.cc
  9698. * src/DefaultPieceStorage.h
  9699. * src/PieceStorage.h
  9700. * src/UnknownLengthPieceStorage.h
  9701. * test/MockPieceStorage.h
  9702. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9703. Changed method signature:
  9704. SegmentMan::getInFlightSegment
  9705. * src/AbstractCommand.cc
  9706. * src/SegmentMan.cc
  9707. * src/SegmentMan.h
  9708. * test/SegmentManTest.cc
  9709. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9710. Changed method signature:
  9711. DHTAbstractNodeLookupTask::getNodesFromMessage
  9712. * src/DHTAbstractNodeLookupTask.cc
  9713. * src/DHTAbstractNodeLookupTask.h
  9714. * src/DHTNodeLookupTask.cc
  9715. * src/DHTNodeLookupTask.h
  9716. * src/DHTPeerLookupTask.cc
  9717. * src/DHTPeerLookupTask.h
  9718. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9719. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9720. * src/AbstractCommand.cc
  9721. * src/BtCheckIntegrityEntry.cc
  9722. * src/BtCheckIntegrityEntry.h
  9723. * src/BtFileAllocationEntry.cc
  9724. * src/BtFileAllocationEntry.h
  9725. * src/BtSetup.cc
  9726. * src/BtSetup.h
  9727. * src/CheckIntegrityCommand.cc
  9728. * src/CheckIntegrityEntry.h
  9729. * src/ChecksumCheckIntegrityEntry.cc
  9730. * src/ChecksumCheckIntegrityEntry.h
  9731. * src/DHTSetup.cc
  9732. * src/DHTSetup.h
  9733. * src/DownloadEngine.cc
  9734. * src/FileAllocationCommand.cc
  9735. * src/FileAllocationEntry.h
  9736. * src/RequestGroup.cc
  9737. * src/RequestGroup.h
  9738. * src/RequestGroupMan.cc
  9739. * src/RequestGroupMan.h
  9740. * src/StreamCheckIntegrityEntry.cc
  9741. * src/StreamCheckIntegrityEntry.h
  9742. * src/StreamFileAllocationEntry.cc
  9743. * src/StreamFileAllocationEntry.h
  9744. * src/TrackerWatcherCommand.cc
  9745. * src/a2functional.h
  9746. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Changed method signature:
  9748. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9749. DHTBucket::getGoodNodes,
  9750. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9751. * src/BNode.cc
  9752. * src/BNode.h
  9753. * src/DHTAbstractNodeLookupTask.cc
  9754. * src/DHTAutoSaveCommand.cc
  9755. * src/DHTBucket.cc
  9756. * src/DHTBucket.h
  9757. * src/DHTBucketRefreshTask.cc
  9758. * src/DHTFindNodeMessage.cc
  9759. * src/DHTGetPeersMessage.cc
  9760. * src/DHTRoutingTable.cc
  9761. * src/DHTRoutingTable.h
  9762. * test/BNodeTest.cc
  9763. * test/DHTBucketTest.cc
  9764. * test/DHTRoutingTableTest.cc
  9765. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9766. In piece selection functions, Pass std::deque<...> by reference rather
  9767. than returning it.
  9768. * src/BitfieldMan.cc
  9769. * src/BitfieldMan.h
  9770. * src/DefaultBtRequestFactory.cc
  9771. * src/DefaultPieceStorage.cc
  9772. * src/Piece.cc
  9773. * src/Piece.h
  9774. * test/BitfieldManTest.cc
  9775. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9776. Implemented rarest piece first piece selection strategy.
  9777. * src/AbstractBtMessage.cc
  9778. * src/AbstractBtMessage.h
  9779. * src/BitfieldMan.cc
  9780. * src/BitfieldMan.h
  9781. * src/BtBitfieldMessage.cc
  9782. * src/BtHaveAllMessage.cc
  9783. * src/BtHaveMessage.cc
  9784. * src/DefaultPieceStorage.cc
  9785. * src/DefaultPieceStorage.h
  9786. * src/PeerInteractionCommand.cc
  9787. * src/PieceStorage.h
  9788. * src/UnknownLengthPieceStorage.h
  9789. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Rewritten readData and writeData.
  9791. * src/MultiDiskAdaptor.cc
  9792. * src/MultiDiskAdaptor.h
  9793. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9794. Move \n out of the message "Usage: ...".
  9795. * src/version_usage.cc
  9796. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9797. Bump up version number to 0.13.2b.
  9798. * configure.ac
  9799. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9800. Added const qualifier to argument Exception& e.
  9801. * src/Logger.h
  9802. * src/SimpleLogger.cc
  9803. * src/SimpleLogger.h
  9804. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Pool connection when CWD, SIZE command fails.
  9806. * src/FtpNegotiationCommand.cc
  9807. * src/FtpNegotiationCommand.h
  9808. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9809. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9810. * src/HttpResponseCommand.cc
  9811. * src/HttpSkipResponseCommand.cc
  9812. * src/HttpSkipResponseCommand.h
  9813. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9814. Pool connection when a server returns 4xx, 5xx responses.
  9815. * src/HttpNullDownloadCommand.cc
  9816. * src/HttpNullDownloadCommand.h
  9817. * src/HttpResponse.cc
  9818. * src/HttpResponse.h
  9819. * src/HttpResponseCommand.cc
  9820. * src/HttpResponseCommand.h
  9821. * test/HttpResponseTest.cc
  9822. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9823. Print usage when no URL is specifed or bad command-line option is
  9824. specified.
  9825. * src/HelpItemFactory.cc
  9826. * src/help_tags.h
  9827. * src/option_processing.cc
  9828. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Removed duplicate log message.
  9830. * src/AbstractCommand.cc (asyncResolveHostname)
  9831. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9833. Changed -j option's default value from 5 to 1.
  9834. Added new examples using protocol auto detection feature.
  9835. Removed -T, -M usage where it can be omitted.
  9836. * doc/aria2c.1.txt
  9837. * doc/aria2c.1.html
  9838. * doc/aria2c.1.txt
  9839. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9840. Updated command-line usage text, so that it tells users that they
  9841. can specify any number of torrent files and metalink files in
  9842. command-line.
  9843. * src/version_usage.cc
  9844. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Changed the default value of -j option to 1.
  9846. * src/HelpItemFactory.cc
  9847. * src/option_processing.cc
  9848. * src/usage_text.h
  9849. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Added the ability to reuse connection in FTP and it is enabled by
  9851. default. It can be disabled by --ftp-reuse-connection=false option.
  9852. * src/Command.cc
  9853. * src/DownloadCommand.cc
  9854. * src/FtpDownloadCommand.cc
  9855. * src/FtpDownloadCommand.h
  9856. * src/FtpFinishDownloadCommand.cc
  9857. * src/FtpFinishDownloadCommand.h
  9858. * src/FtpInitiateConnectionCommand.cc
  9859. * src/FtpNegotiationCommand.cc
  9860. * src/FtpNegotiationCommand.h
  9861. * src/HelpItemFactory.cc
  9862. * src/Makefile.am
  9863. * src/Makefile.in
  9864. * src/OptionHandlerFactory.cc
  9865. * src/option_processing.cc
  9866. * src/prefs.h
  9867. * src/usage_text.h
  9868. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9869. Call Command::transitStatus() before calling Command::execute(),
  9870. so that the status change made in execute() is not cleared.
  9871. * src/DownloadEngine.cc
  9872. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9873. Removed forward declaration of SocketCore class.
  9874. * src/HttpDownloadCommand.h
  9875. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9877. in InitiateConnectionCommandFactory. They should be set only when
  9878. the protocol is HTTP or HTTPS.
  9879. * src/InitiateConnectionCommandFactory.cc
  9880. * src/RequestGroup.cc
  9881. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9882. Fixed infinite loop in checksum checking.
  9883. * src/IteratableChecksumValidator.cc
  9884. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9885. Set _supportsPersistentConnection to true by default.
  9886. * src/Request.cc
  9887. * src/RequestGroup.cc
  9888. * test/HttpRequestTest.cc
  9889. * test/RequestTest.cc
  9890. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9891. Added timeout to socket pool. The default timeout is 15 seconds,
  9892. which is the same value Apache uses.
  9893. * src/DownloadEngine.cc
  9894. * src/DownloadEngine.h
  9895. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Fixed misuse of multimap::find()
  9897. * src/HttpHeader.cc
  9898. * test/HttpHeaderTest.cc
  9899. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9900. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9901. option.
  9902. The asynchronous DNS is not capable of IPv6 yet.
  9903. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9904. least for HTTP download.
  9905. * src/AbstractCommand.cc
  9906. * src/AbstractCommand.h
  9907. * src/AsyncNameResolver.cc
  9908. * src/AsyncNameResolver.h
  9909. * src/DHTEntryPointNameResolveCommand.cc
  9910. * src/DHTEntryPointNameResolveCommand.h
  9911. * src/DownloadEngine.cc
  9912. * src/DownloadEngine.h
  9913. * src/FtpInitiateConnectionCommand.cc
  9914. * src/FtpInitiateConnectionCommand.h
  9915. * src/HelpItemFactory.cc
  9916. * src/HttpInitiateConnectionCommand.cc
  9917. * src/HttpInitiateConnectionCommand.h
  9918. * src/InitiateConnectionCommand.cc
  9919. * src/InitiateConnectionCommand.h
  9920. * src/Makefile.am
  9921. * src/Makefile.in
  9922. * src/NameResolver.cc
  9923. * src/NameResolver.h
  9924. * src/OptionHandlerFactory.cc
  9925. * src/SocketCore.cc
  9926. * src/SocketCore.h
  9927. * src/Util.cc
  9928. * src/Util.h
  9929. * src/option_processing.cc
  9930. * src/prefs.h
  9931. * src/usage_text.h
  9932. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9933. Updated man page: --quiet, --header were added.
  9934. --metalink-servers and --enable-http-keep-alive option were updated.
  9935. * doc/aria2c.1
  9936. * doc/aria2c.1.html
  9937. * doc/aria2c.1.txt
  9938. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9939. Enable HTTP keep-alive by default.
  9940. * src/HelpItemFactory.cc
  9941. * src/option_processing.cc
  9942. * src/usage_text.h
  9943. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9944. Disable http keep-alive if the remote server is not HTTP/1.1.
  9945. * src/HttpConnection.cc
  9946. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9947. Receive content body of 302 response so that the connection can be
  9948. reused later when http keep-alive is enabled.
  9949. * src/HttpNullDownloadCommand.cc
  9950. * src/HttpNullDownloadCommand.h
  9951. * src/HttpResponseCommand.cc
  9952. * src/HttpResponseCommand.h
  9953. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. const SharedHandle<Request> -> const SharedHandle<Request>&
  9955. * src/FtpDowndloadCommand.cc
  9956. * src/FtpDowndloadCommand.h
  9957. * src/HttpDownloadCommand.cc
  9958. * src/HttpDownloadCommand.h
  9959. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9960. Fixed the bug that the control file(.aria2 file) is not renamed
  9961. according to tryAutoFileRenaming().
  9962. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9963. its control file exist, use them and continue download.
  9964. The old implementation didn't take into account of control file's
  9965. existence, so basically you couldn't continue download of renamed file.
  9966. * src/BtProgressInfoFile.h
  9967. * src/DefaultBtProgressInfoFile.cc
  9968. * src/DefaultBtProgressInfoFile.h
  9969. * src/NullProgressInfoFile.h
  9970. * src/RequestGroup.cc
  9971. * test/DefaultBtProgressInfoFileTest.cc
  9972. * test/MockBtProgressInfoFile.h
  9973. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9974. Change the default value of --metalink-servers option from `5' to `1'.
  9975. * src/HelpItemFactory.cc
  9976. * src/option_processing.cc
  9977. * src/usage_text.h
  9978. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9979. Reimplemented transparent metalink using Accept request header.
  9980. * src/HttpRequest.cc
  9981. * src/HttpRequest.h
  9982. * src/HttpRequestCommand.cc
  9983. * src/Metalink2RequestGroup.cc
  9984. * src/RequestGroup.cc
  9985. * src/RequestGroup.h
  9986. * test/HttpRequestTest.cc
  9987. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Bump up version number to 0.13.2a
  9989. * configure.ac
  9990. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9991. Updated configure.ac using the result of autoscan.
  9992. * configure.ac
  9993. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9994. Fixed compilation error without gcrypt/openssl.
  9995. * src/DownloadCommand.cc
  9996. * src/DownloadCommand.h
  9997. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9998. Reorganized version information so that it can be displayed in a
  9999. standard terminal screen without scrolling.
  10000. Removed http, ftp from Configuration section, because they are always
  10001. enabled.
  10002. * src/FeatureConfig.cc
  10003. * src/FeatureConfig.h
  10004. * src/main.cc
  10005. * src/messageDigest.cc
  10006. * src/messageDigest.h
  10007. * src/version_usage.cc
  10008. * test/FeatureConfigTest.cc
  10009. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. Masked user ID in log.
  10011. * src/FtpConnection.cc (sendUser)
  10012. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10013. Removed query part from filename in HTTP download. The query part means
  10014. the substring after "?" in URL. Firefox seems do the same thing.
  10015. A query part is sometimes very long and not suitable to filename,
  10016. so I think it is better to remove it from filename.
  10017. * src/HttpRequest.cc
  10018. * src/HttpRequest.h
  10019. * src/Request.cc
  10020. * src/Request.h
  10021. * test/HttpRequestTest.cc
  10022. * test/RequestTest.cc
  10023. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10024. Rewritten Exception class. Throw exception object, not its pointer and
  10025. catch by reference, so that remove problematic delete operator for
  10026. catched exception.
  10027. * src/Exception.cc
  10028. * src/Exception.h
  10029. * test/ExceptionTest.cc
  10030. * src/*: All files throwing/catching exception.
  10031. * test/*: All files throwing/catching exception.
  10032. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10033. Now auto protocol detection is enabled without -Z option.
  10034. But there is a important difference between with/without -Z optoin.
  10035. For example, if you type:
  10036. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10037. then, aria2 interprets there are 3 request groups:
  10038. (1) http://host/file, http://mirror/file <-- multi-source download
  10039. (2) file1.torrent
  10040. (3) file2.metalink
  10041. On the other hand, if you invoke above command with -Z option, it is
  10042. interpreted as 4 request groups:
  10043. (1) http://host/file
  10044. (2) file1.torrent
  10045. (3) file2.metalink
  10046. (4) http://mirror/file
  10047. I think usually user don't mix multi-source URLs and torrent files, so
  10048. there is no big problem here.
  10049. * src/main.cc
  10050. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10051. Fixed the bug that causes segmentaion fault when reading XML containing
  10052. unescapsed character like '&'.
  10053. Also a modification was made which avoids adding unnecessary
  10054. characters stack and appending unused string.
  10055. * src/ExpatMetalinkProcessor.cc
  10056. * src/FileMetalinkParserState.h
  10057. * src/FilesMetalinkParserState.h
  10058. * src/FinMetalinkParserState.h
  10059. * src/HashMetalinkParserState.h
  10060. * src/InitialMetalinkParserState.h
  10061. * src/LanguageMetalinkParserState.h
  10062. * src/MetalinkMetalinkParserState.h
  10063. * src/MetalinkParserState.h
  10064. * src/MetalinkParserStateMachine.cc
  10065. * src/MetalinkParserStateMachine.h
  10066. * src/OSMetalinkParserState.h
  10067. * src/PieceHashMetalinkParserState.h
  10068. * src/PiecesMetalinkParserState.h
  10069. * src/ResourcesMetalinkParserState.h
  10070. * src/SizeMetalinkParserState.h
  10071. * src/SkipTagMetalinkParserState.h
  10072. * src/URLMetalinkParserState.h
  10073. * src/VerificationMetalinkParserState.h
  10074. * src/VersionMetalinkParserState.h
  10075. * src/XML2SAXMetalinkProcessor.cc
  10076. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10077. Added StringFormat class, which internally calls vasprintf.
  10078. operator<< is defined for this class, so it can be used with iostream
  10079. classes nicely. SimpleLogger and following functions are rewritten
  10080. using StringFormat class.
  10081. Besides, now Logger class's methods are non-const, many classes
  10082. that has a const Logger* as a member variable are modified to remove
  10083. const qualifier from the variable declaration.
  10084. * src/HelpItemFactory.cc
  10085. * src/Request.cc
  10086. * src/SimpleLogger.cc
  10087. * src/StringFormat.cc
  10088. * src/StringFormat.h
  10089. * src/Util.cc
  10090. * src/option_processing.cc
  10091. * src/version_usage.cc
  10092. * test/StringFormatTest.cc
  10093. * src/*.h: The classes that has const Logger* as a member variable.
  10094. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10095. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10096. failed. Also fixed memory link when exception is thrown there.
  10097. * src/main.cc (AccRequestGroup)
  10098. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10099. Added build-in "Accept-Features" support. For now only "metalink" is
  10100. used in this header field.
  10101. This "metalink" value is removed from the list when connecting URLs
  10102. fed by metalink file to avoid loop in "transparent" metlaink.
  10103. * src/HttpRequest.cc
  10104. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10105. header is also held in this variable. Also renamed setUserHeaders as
  10106. addHeader and it was rewritten to add header not just to clear the old
  10107. value.
  10108. * src/HttpRequestCommand.cc
  10109. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10110. from "Accept-Features" list.
  10111. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10112. default.
  10113. * src/RequestGroup.h
  10114. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10115. * src/a2functional.h: Included <string> because Concat class depends on
  10116. it.
  10117. * test/HttpRequestTest.cc
  10118. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. Added comment
  10120. * src/RequestGroup.cc (createNextCommand)
  10121. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10122. Capitalized METHOD_GET and METHOD_HEAD
  10123. * src/Request.cc
  10124. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10125. Added getDownloadResults() method
  10126. * src/RequestGroupMan.cc
  10127. * src/RequestGroupMan.h
  10128. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10129. Fixed the bug that aria2 exits when commands is empty() but
  10130. _routineCommands are not.
  10131. * src/DownloadEngine.cc
  10132. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10133. Use the default value pulled from Option object in HelpItemFactory.
  10134. except options whose defualt value is embedded in a usage text.
  10135. * src/HelpItemFactory.cc
  10136. * src/HelpItemFactory.h
  10137. * src/option_processing.cc
  10138. * src/version_usage.cc
  10139. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. Added --quiet option to make aria2 quiet (no console output).
  10141. --quiet option is tagged with ADVANCED.
  10142. * src/HelpItemFactory.cc
  10143. * src/LogFactory.cc
  10144. * src/LogFactory.h
  10145. * src/MultiUrlRequestInfo.cc
  10146. * src/MultiUrlRequestInfo.h
  10147. * src/NullStatCalc.h: New class. This class prints nothing.
  10148. * src/OptionHandlerFactory.cc
  10149. * src/main.cc
  10150. * src/option_processing.cc
  10151. * src/prefs.h
  10152. * src/usage_text.h
  10153. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10154. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10155. * src/HelpItemFactory.cc (createHelpItems):
  10156. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10157. Fixed compilation error in ExpatMetalinkProcessor.cc
  10158. * src/ExpatMetalinkProcessor.cc
  10159. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10160. Reuse socket if the origin server supports HTTP keep-alive and
  10161. --enable-http-keep-alive or --enable-http-pipelining is given.
  10162. The current implementation doesn't reuse the connections established
  10163. against proxy server.
  10164. * src/AbstractCommand.cc
  10165. * src/DownloadEngine.cc
  10166. * src/DownloadEngine.h
  10167. * src/HttpDownloadCommand.cc
  10168. * src/HttpInitiateConnectionCommand.cc
  10169. * src/HttpResponseCommand.cc
  10170. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10171. Rewritten HTTP keep-alive and pipelining routine.
  10172. * src/AbstractCommand.cc
  10173. * src/HttpConnection.cc
  10174. * src/HttpDownloadCommand.cc
  10175. * src/HttpRequest.cc
  10176. * src/HttpRequestCommand.cc
  10177. * src/HttpResponseCommand.cc
  10178. * src/Request.cc
  10179. * src/Request.h
  10180. * src/RequestGroup.cc
  10181. * test/HttpRequestTest.cc
  10182. * test/HttpResponseTest.cc
  10183. * test/RequestTest.cc
  10184. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10185. Added missing setUserHeaders call
  10186. * src/HttpRequestCommand.cc
  10187. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10188. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10189. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10190. waste of time because it is more likey false.
  10191. * src/FileAllocationDispatcherCommand.cc (execute)
  10192. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10193. Now HTTP status and version are a member variable of HttpHeader.
  10194. HTTP status is processed as a string, not integer.
  10195. * src/AbstractProxyResponseCommand.cc
  10196. * src/HttpConnection.cc
  10197. * src/HttpHeader.cc
  10198. * src/HttpHeader.h
  10199. * src/HttpHeaderProcessor.cc
  10200. * src/HttpHeaderProcessor.h
  10201. * src/HttpResponse.cc
  10202. * src/HttpResponse.h
  10203. * test/HttpHeaderProcessorTest.cc
  10204. * test/HttpResponseTest.cc
  10205. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10206. Added --header option. You can specify any number of additional HTTP headers
  10207. like:
  10208. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10209. Unlike other commad-line option, you can use --header option multiple times.
  10210. * src/HelpItemFactory.cc
  10211. * src/HttpRequest.{cc, h}
  10212. * src/HttpRequestCommand.cc
  10213. * src/OptionHandlerFactory.cc
  10214. * src/OptionHandlerImpl.h
  10215. * src/option_processing.cc
  10216. * src/prefs.h
  10217. * src/usage_text.h
  10218. * test/HttpRequestTest.cc (testUserHeaders)
  10219. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10220. Eliminates the time lag between sequential downloads and commands in
  10221. the same RequestGroup.
  10222. In old implementation, aria2 occasionally waits 1 seconds before
  10223. executing next command or RequestGroup.
  10224. This is really a waste of time, and new implementation eliminates
  10225. this unnecessary time lag.
  10226. * src/AbstractCommand.cc
  10227. * src/AutoSaveCommand.cc
  10228. * src/CheckIntegrityCommand.cc
  10229. * src/Command.{cc, h}
  10230. * src/DownloadEngine.{cc, h}
  10231. * src/DownloadEngineFactory.cc
  10232. * src/FileAllocationCommand.cc
  10233. * src/FileAllocationDispatcherCommand.cc
  10234. * src/FillRequestGroupCommand.cc
  10235. * src/FtpInitiateConnectionCommand.cc
  10236. * src/HaveEraseCommand.cc
  10237. * src/HttpInitiateConnectionCommand.cc
  10238. * src/HttpResponseCommand.cc
  10239. * src/RealtimeCommand.cc
  10240. * src/RequestGroup.cc
  10241. * src/RequestGroupMan.cc
  10242. * src/StreamFileAllocationEntry.cc
  10243. * src/TimeBasedCommand.{cc, h}
  10244. * src/TimedHaltCommand.cc
  10245. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10247. keyword explicit and SharedHandle's default constructor initializes
  10248. its internal obj to null, old implementation initializes it using
  10249. obj's default constructor.
  10250. To assign null, write SharedHandle<T> x(...); x.reset();
  10251. TODO: test/SharedHandleTest.cc needs more tests.
  10252. * src/SharedHandle.h
  10253. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. Fixed type in man page.
  10255. * doc/aria2c.1.txt
  10256. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10257. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10258. * src/SimpleLogger.{cc, h}
  10259. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10260. Implemented auto protocol detection.
  10261. Now you can do:
  10262. aria2c -Z http://host/file file1.torrent file2.metalink
  10263. (Note: -Z option is required for auto protcol detection.)
  10264. Then aria2c downloads 3 files simultaneously:
  10265. 1. http://host/file
  10266. 2. file1.torrent <-- read local torrent file
  10267. 3. file2.metalink <-- read local Metalink file.
  10268. Same thing goes with -i option. Assume your uris.txt contans:
  10269. http://host/file
  10270. file1.torrent
  10271. file2.metalink
  10272. Then you can do: aria2c -i uris.txt
  10273. (Note: -Z option is not needed if -i option is given.)
  10274. * src/main.cc
  10275. * src/ProtocolDetector.{cc, h}
  10276. * test/ProtocolDetectorTest.cc
  10277. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10278. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10279. installed
  10280. * src/ARC4Encryptor.h
  10281. * src/ARC4Decryptor.h
  10282. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10283. Renamed argument from 'errno' to 'err', since errno is confused with
  10284. errno defined in errno.h.
  10285. * src/LibgcryptARC4Decryptor.h
  10286. * src/LibgcryptARC4Context.h
  10287. * src/LibgcryptDHKeyExchange.h
  10288. * src/LibgcryptARC4Encryptor.h
  10289. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. Rewritten choking algorithm.
  10291. * src/PeerChokeCommand.{cc, h}
  10292. * src/BtInterestedMessage.cc
  10293. * src/PeerSessionResource.{cc, h}
  10294. * src/DefaultPeerStorage.{cc, h}
  10295. * src/BtNotInterestedMessage.cc
  10296. * src/DefaultBtMessageDispatcher.{cc, h}
  10297. * src/BtMessageDispatcher.h
  10298. * src/Peer.{cc, h}
  10299. * src/BtLeecherStateChoke.{cc, h}
  10300. * src/BtSetup.cc
  10301. * src/BtSeederStateChoke.{cc, h}
  10302. * src/PeerStorage.h
  10303. * test/MockPeerStorage.h
  10304. * test/MockBtMessageDispatcher.h
  10305. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10306. Fixed compilation error on x84-64 platform.
  10307. * src/AuthConfig.cc: Included ostream.
  10308. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10309. Rewritten getBasename() and getDirname(), without standard library
  10310. basename(), dirname().
  10311. * src/File.cc
  10312. * test/FileTest.cc
  10313. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10314. Added Simplified Chinese translation. Also updated the following
  10315. translations: Polish, Dutch, German. Great thanks to all translators.
  10316. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10317. Suppress content-range error when 'Content-Range' response header
  10318. doesn't contains bytes-unit specifier 'bytes'
  10319. * src/HttpHeader.cc (getRange)
  10320. * test/HttpHeaderTest.cc
  10321. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10322. Fixed compilation error with g++-4.3
  10323. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. Added missing include files for MinGW
  10325. * test/HttpHeaderProcessorTest.cc
  10326. * test/DHTRoutingTableSerializerTest.cc
  10327. * test/DHTRoutingTableDeserializerTest.cc
  10328. * test/UriListParserTest.cc
  10329. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10330. Now download line is printed nicely with no garbage at the end of
  10331. line. I use ioctl to get the columns of terminal.
  10332. If stdout is redirected to another device, instead of carriage return,
  10333. end of line '\n' character is used. This is feature request#1909659
  10334. * src/ConsoleStatCalc.cc (calculateStat)
  10335. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10336. Included a2time.h
  10337. * src/DHTMessageDispatcher.h
  10338. * src/DHTMessageEntry.h
  10339. * src/DHTReplaceNodeTask.h
  10340. * src/DHTMessageTracker.h
  10341. * src/Util.h
  10342. * src/CookieBox.h
  10343. * src/SocketCore.h
  10344. * src/DefaultBtMessageDispatcher.h
  10345. * src/SocketCore.cc
  10346. * src/Util.cc
  10347. * src/DHTPingTask.h
  10348. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10349. Fixed high memory footprint when DHT is enabled.
  10350. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10351. queued than it is processed and the queue is getting longer. As a
  10352. consequence, momory usage is increased.
  10353. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10354. replacement cache in DHTBucket which is described in Kademlia paper.
  10355. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10356. DHTReplaceNodeTask.
  10357. * src/DHTBucket.{h, cc}
  10358. (cacheNode): New function.
  10359. (getCachedNodes): New function.
  10360. (dropNode): Push back cached node to _nodes.
  10361. * test/DHTBucketTest.cc
  10362. (testCacheNode): New test
  10363. (testDropNode): New test
  10364. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10365. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10366. the unused 4KB memory when ssl is not used.
  10367. * src/SocketCore.cc
  10368. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10369. Added summary log for peer announce storage.
  10370. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10371. Removed cast
  10372. * src/DefaultPeerStorage.cc (addPeer)
  10373. Log exception message
  10374. * src/DHTMessageTracker.cc (handleTimeout)
  10375. Fixed casting
  10376. * test/HttpRequestTest.cc
  10377. * test/MetalinkProcessorTest.cc
  10378. * test/PieceTest.cc
  10379. * test/MetalinkEntryTest.cc
  10380. * test/SequenceTest.cc
  10381. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10382. * src/ParameterizedStringParser.cc (createLoop):
  10383. Removed unused variable sstep.
  10384. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10385. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10386. * src/Util.{h, cc}
  10387. (parseUInt): New function.
  10388. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10389. The actual range is uint32_t.
  10390. * test/UtilTest.cc
  10391. * src/ParameterizedStringParser.cc:
  10392. Use Util::parseUInt() for loop variables.
  10393. * test/ParameterizedStringParserTest.cc
  10394. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10395. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. Rewritten the functions for binding port.
  10397. * src/DHTConnectionImpl.{h, cc}
  10398. * src/PeerListenCommand.{h, cc}
  10399. * src/DHTSetup.cc
  10400. * src/BtSetup.cc
  10401. * test/DHTConnectionImplTest.cc
  10402. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10403. type cleanup for allmost all remaining files.
  10404. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10405. Type clarification
  10406. * src/PeerSessionResource.{h, cc}
  10407. * src/DefaultPieceStorage.{h, cc}
  10408. * src/Peer.{h, cc}
  10409. * test/PeerSessionResourceTest.cc
  10410. Use div function
  10411. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10412. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10413. Type clarification
  10414. * src/DefaultPeerStorage.{h, cc}
  10415. * test/DefaultPeerStorageTest.cc
  10416. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. Type clarification: size_t for length or size, uint64_t for file
  10418. length, off_t for file offset.
  10419. * src/DefaultBtProgressInfoFile.cc
  10420. * src/DefaultBtContext.{h, cc}
  10421. * src/DefaultBtInteractive.cc
  10422. * src/DownloadCommand.{h, cc}
  10423. * src/IteratableChunkChecksumValidator.{h, cc}
  10424. * src/SegmentMan.{h, cc}
  10425. * src/SingleFileDownloadContext.{h, cc}
  10426. * src/IteratableChecksumValidator.{h, cc}
  10427. * src/BtContext.h
  10428. * src/IteratableValidator.h
  10429. * src/DownloadContext.h
  10430. * test/SingleFileDownloadContextTest.cc
  10431. * test/DefaultBtContextTest.cc
  10432. * test/MockBtContext.h
  10433. * test/Metalink2RequestGroupTest.cc
  10434. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10435. Type clarification: size_t for length or size, uint64_t for file
  10436. length, off_t for file offset.
  10437. * src/PiecedSegment.cc
  10438. * src/GrowSegment.h
  10439. * src/DefaultBtRequestFactory.h
  10440. * src/DefaultBtProgressInfoFile.cc
  10441. * src/UnknownLengthPieceStorage.h
  10442. * src/DefaultPieceStorage.cc
  10443. * src/UnknownLengthPieceStorage.cc
  10444. * src/DefaultBtInteractive.cc
  10445. * src/GrowSegment.cc
  10446. * src/BitfieldMan.h
  10447. * src/DownloadCommand.cc
  10448. * src/BtRequestFactory.h
  10449. * src/PiecedSegment.h
  10450. * src/DefaultPieceStorage.h
  10451. * src/Piece.cc
  10452. * src/DefaultBtRequestFactory.cc
  10453. * src/PieceStorage.h
  10454. * src/Segment.h
  10455. * src/Piece.h
  10456. * src/BitfieldMan.cc
  10457. * src/Util.cc
  10458. * test/DefaultBtProgressInfoFileTest.cc
  10459. * test/DefaultPieceStorageTest.cc
  10460. * test/MockPieceStorage.h
  10461. * test/BtRequestMessageTest.cc
  10462. * test/DefaultBtMessageDispatcherTest.cc
  10463. * test/BitfieldManTest.cc
  10464. * test/GrowSegmentTest.cc
  10465. * test/PieceTest.cc
  10466. * test/SegmentTest.cc
  10467. * test/SegmentManTest.cc
  10468. * test/DefaultBtRequestFactoryTest.cc
  10469. * test/MockBtRequestFactory.h
  10470. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10471. Fixed compilation error with --disable-nls
  10472. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10473. in gettext.h causes the problem.
  10474. * src/common.h
  10475. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. Removed subPiece related functions.
  10477. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10478. * src/DefaultPieceStorage.{h, cc}
  10479. * test/PieceTest.cc
  10480. * test/DefaultPieceStorageTest.cc
  10481. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10482. Use unsigned char for data store.
  10483. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10484. Bump up version number to 0.13.0+1
  10485. * configure.ac
  10486. * Release 0.13.0+1
  10487. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10488. Changed inactive connection timeout to 120.
  10489. To accept more mulually interested peers, disconnect peer when there
  10490. is no interest between us after certain time passed.
  10491. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10492. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10493. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10494. when compiled with async DNS support.
  10495. * src/DownloadEngine.cc
  10496. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10497. value '10' will be a little bit short when some DNS servers are
  10498. offline and several DNS servers are tried. It should be configured
  10499. by command-line option.
  10500. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10501. Merged Ross's mingw patch.
  10502. * src/DHTRoutingTableDeserializer.cc
  10503. * src/DHTRoutingTableSerializer.cc
  10504. * src/Platform.{h, cc}
  10505. * src/timegm.h
  10506. * src/gettimeofday.h
  10507. * src/getaddrinfo.h
  10508. * src/SocketCore.h
  10509. * src/common.h
  10510. * src/inet_aton.h
  10511. * src/DownloadEngine.h
  10512. * src/gai_strerror.h
  10513. * src/a2netcompat.h
  10514. * configure.ac
  10515. * configure
  10516. * aclocal.m4
  10517. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10518. Included missing iostream.
  10519. * test/AllTest.cc
  10520. * test/BtDependencyTest.cc
  10521. * test/BtExtendedMessageTest.cc
  10522. * test/DHTConnectionImplTest.cc
  10523. * test/DHTMessageFactoryImplTest.cc
  10524. * test/DHTMessageTrackerEntryTest.cc
  10525. * test/DHTNodeTest.cc
  10526. * test/DHTRoutingTableSerializerTest.cc
  10527. * test/DefaultBtAnnounceTest.cc
  10528. * test/DefaultBtContextTest.cc
  10529. * test/DefaultBtMessageFactoryTest.cc
  10530. * test/DefaultExtensionMessageFactoryTest.cc
  10531. * test/HandshakeExtensionMessageTest.cc
  10532. * test/HttpResponseTest.cc
  10533. * test/MetalinkProcessorTest.cc
  10534. * test/MultiFileAllocationIteratorTest.cc
  10535. * test/SocketCoreTest.cc
  10536. * test/UTPexExtensionMessageTest.cc
  10537. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. Reorganized includes.
  10539. * src/NameResolver.cc
  10540. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Fixed compilation error without ares/c-ares
  10542. * src/NameResolver.h:
  10543. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10544. Added a test for large file.
  10545. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10546. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10547. Fixed the bug that file size is ignored if size > INT32_MAX
  10548. * src/SizeMetalinkParserState.cc (endElement):
  10549. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10550. Bump up version number to 0.13.0
  10551. * configure.ac
  10552. * Release 0.13.0
  10553. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10554. Updated Makfefile.am to make 'make dist' work.
  10555. Now packaged filename is aria2c-VERSION.tar.bz2.
  10556. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10557. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10558. Large file support is now configured by configure script.
  10559. * configure.ac
  10560. Removed unsused source files
  10561. * src/
  10562. * test/
  10563. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10564. Peer.h and BtContext.h respectively.
  10565. * src/Peer.h
  10566. * src/BtContext.h
  10567. Updated translations.
  10568. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10569. translations. Great thanks to all translators!;)
  10570. * po/*.{po, gmo}
  10571. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10572. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10573. statically declared sha1 MessageDigestContext.
  10574. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10575. initialization of short-lived MessageDigestContext.
  10576. * src/MessageDigestHelper.{h, cc}
  10577. * src/main.cc
  10578. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10579. the initialization of MessageDigestContext every time in validating
  10580. chunk checksum.
  10581. * src/DownloadCommand.{h, cc}
  10582. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10583. Add a file descriptor which connected to fast peer(latency<1500) to
  10584. select(). This change reduced CPU load.
  10585. * src/PeerInteractionCommand.cc
  10586. * src/DefaultBtInteractive.{h, cc}
  10587. * src/BtInteractive.h
  10588. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. Fixed the previous insufficient fix for possible busy loop.
  10590. * src/MSEHandshake.cc (identifyHandshakeType)
  10591. Removed unused functions.
  10592. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10593. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10594. Fixed possible busy loop if first 20 bytes are not received for a few
  10595. minutes.
  10596. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10597. * src/ReceiverMSEHandshakeCommand.cc
  10598. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10599. Fixed compilation error
  10600. * src/ExpatMetalinkProcessor.cc
  10601. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10602. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10603. * src/DHTBucket.cc
  10604. Removed unnecessary cast.
  10605. * src/HandshakeExtensionMessage.cc
  10606. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10607. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10608. is missing.
  10609. * src/OptionHandlerFactory.cc
  10610. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10611. Fixed the bug that HAVE message is not sent for a piece they are
  10612. downloaded fom http/ftp server before any BitTorrent handshake is done
  10613. with peers.
  10614. * src/DefaultBtInteractive.cc
  10615. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10616. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10617. * src/Makefile.am
  10618. * src/Makefile.in
  10619. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10620. Updated README. Added html version of README and man page.
  10621. * README
  10622. * README.html
  10623. * readme2html: Shell script to generate README.html from README using
  10624. asciidoc.
  10625. * doc/aria2c.1.html
  10626. * doc/makeman: Added the line to generate aria2c.1.html
  10627. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10628. Fixed offset calculation.
  10629. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10630. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10631. Rewritten itos and uitos using template. llitos and ullitos are
  10632. replaced with itos and uitos respectively.
  10633. * src/Util.{h, cc}
  10634. * test/UtilTest.cc
  10635. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10636. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10637. of the number of bytes required for storing public key and shared
  10638. secret.
  10639. * src/LibgcryptDHKeyExchange.h
  10640. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10641. * src/MSEHandshake.cc
  10642. * test/DHKeyExchangeTest.cc
  10643. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10644. Removed since they are not used.
  10645. * src/Xml2MetalinkProcessor.{h, cc}
  10646. * src/Socket.cc
  10647. * src/SegmentSplitter.{h, cc}
  10648. * test/Xml2MetalinkProcessorTest.cc
  10649. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10650. Fixed the bug that prevents aria2 from stopping other than by pressing
  10651. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10652. option. aria2 doesn't stop even after --seed-time is satisfied and
  10653. continues to output blank lines in the console.
  10654. * src/ReceiverMSEHandshakeCommand.cc
  10655. * src/PeerReceiveHandshakeCommand.cc
  10656. * src/PeerListenCommand.cc
  10657. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10658. Bump up version number to 0.13.0rc
  10659. * configure.ac
  10660. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10661. Updated man page and some usage text.
  10662. * doc/aria2c.1.txt
  10663. * src/usage_text.h
  10664. * po/*.{po, gmo}
  10665. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10666. Updated translations. Added Finnish and Hebrew translations.
  10667. Great thanks to all translators!
  10668. * po/*.{po, gmo}
  10669. * po/LINGUAS
  10670. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10671. Log more detailed information about each message.
  10672. * src/DHTQueryMessage.{h, cc}
  10673. * src/DHTGetPeersMessage.{h, cc}
  10674. * src/DHTFindNodeReplyMessage.{h, cc}
  10675. * src/DHTGetPeersReplyMessage.{h, cc}
  10676. * src/DHTAnnouncePeerMessage.{h, cc}
  10677. * src/DHTResponseMessage.{h, cc}
  10678. * src/DHTFindNodeMessage.{h, cc}
  10679. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10680. Use constants defined in prefs.h
  10681. * src/option_processing.cc
  10682. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10683. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10684. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10685. Make room for future enchancements for IPv6 addresses.
  10686. Bump up version number of dht.dat file format to 2.
  10687. Not compatible with previous version.
  10688. * src/DHTRoutingTableSerializer.cc
  10689. * src/DHTRoutingTableDeserializer.cc
  10690. * test/DHTRoutingTableSerializerTest.cc
  10691. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10692. Added handling for the return values from
  10693. PeerMessageUtil::createcompact().
  10694. * src/DefaultBtContext.cc (computeFastSet):
  10695. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10696. Fixed abort when peer's ip address is IPv4-mapped address.
  10697. * src/DefaultBtContext.cc (computeFastSet)
  10698. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10699. cannot handle IPv4-mapped addresses.
  10700. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10701. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10702. Proper return value handling for OpenSSL functions.
  10703. * src/LibsslDHKeyExchange.h
  10704. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10705. Random bytes generation using libgcrypt and OpenSSL.
  10706. * src/DHTUtil.{h, cc}
  10707. * test/DHTUtilTest.cc
  10708. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10709. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10710. received.
  10711. * src/DHTMessageReceiver.cc (receiveMessage)
  10712. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10713. Fixed the bug that a return code is always 0. BUG#1897704
  10714. If error occurred during the download or there exist unfinished
  10715. downloads, aria2 returns with code 1.
  10716. * src/RequestGroupMan.{h, cc}
  10717. * src/MultiUrlRequestInfo.{h, cc}
  10718. * src/main.cc
  10719. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10720. IPv6 support for SocketCore class.
  10721. TODO: In SocketCore::establishConnection(), this is insufficient to
  10722. determin the failure of connect() here because the socket is
  10723. non-blocking state. The next addresses should be tried after select().
  10724. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10725. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10726. instead which address family independent.
  10727. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10728. information in a compact peer format which is for IPv4 only.
  10729. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10730. this is a spec of BitTorrent protocol.
  10731. * src/SocketCore.{h, cc}
  10732. * src/PeerMessageUtil.cc
  10733. * test/SocketCoreTest.cc
  10734. * test/PeerMessageUtilTest.cc
  10735. * test/DHTConnectionImplTest.cc
  10736. Handle IPv4-mapped addresses.
  10737. * src/DHTNode.cc: Now identity is determined by node id.
  10738. * src/DHTMessageTrackerEntry.cc
  10739. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10740. should handle it.
  10741. * src/DHTRoutingTableDeserializer.cc
  10742. * src/DHTMessageFactoryImpl.cc
  10743. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10744. Change the unit of --stop option from a minute to a second.
  10745. * src/usage_text.h
  10746. * src/DownloadEngineFactory.cc
  10747. * src/OptionHandlerFactory.cc
  10748. * src/message.h
  10749. * src/TimedHaltCommand.cc
  10750. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10751. Make listening socket non-block mode.
  10752. * src/FtpConnection.cc
  10753. * src/FtpNegotiationCommand.{h, cc}
  10754. * src/PeerListenCommand.cc
  10755. Fixed the bug that cause slow ftp negotiation.
  10756. * src/FtpNegotiationCommand.{h, cc}
  10757. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10758. Added basic tag to --enable-dht, --dht-listen-port option.
  10759. * src/HelpItemFactory.cc (createHelpItems)
  10760. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10761. Updated text.
  10762. * src/usage_text.h
  10763. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10764. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10765. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10766. Determin _threadtholdSpeed in each constructor for
  10767. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10768. * src/ActivePeerConnectionCommand.{h, cc}
  10769. * src/PeerReceiveHandshakeCommand.{h, cc}
  10770. * src/BtSetup.cc
  10771. * src/BtConstants.h
  10772. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10773. Added --bt-min-crypto-level and --bt-require-crypto options.
  10774. * src/OptionHandlerFactory.cc
  10775. * src/MSEHandshake.cc
  10776. * src/HelpItemFactory.cc
  10777. * src/option_processing.cc
  10778. * src/ReceiverMSEHandshakeCommand.cc
  10779. * src/prefs.h
  10780. * src/DefaultBtAnnounce.cc
  10781. * src/InitiatorMSEHandshakeCommand.cc
  10782. * src/usage_text.h
  10783. * test/MSEHandshakeTest.cc
  10784. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10785. Bump version number to 0.13.0b
  10786. * configure.ac
  10787. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10788. Updated doc.
  10789. * src/MessageDigestHelper.h:
  10790. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10791. Use raw message digest as a token instead of its hexadecimal
  10792. representation.
  10793. * src/DHTTokenTracker.cc (generateToken)
  10794. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10795. Added Message Stream Encryption(MSE) support.
  10796. Currently, aria2 accepts incoming connections with Obfuscation Header
  10797. and legacy BitTorrent Header and establishes connections with
  10798. Obfuscation Header first and if failed then retry with legacy
  10799. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10800. choose ARC4. The new option to change the default behavior is planned.
  10801. For tracker extension, "supportcrypto=1" is added statically.
  10802. * src/PeerInitiateConnectionCommand.{h, cc}
  10803. * src/PeerConnection.{h, cc}
  10804. * src/HandleRegistry.h
  10805. * src/SocketCore.h
  10806. * src/PeerReceiveHandshakeCommand.{h, cc}
  10807. * src/BtRegistry.{h, cc}
  10808. * src/PeerListenCommand.cc
  10809. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10810. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10811. * src/MSEHandshake.{h, cc}
  10812. * src/ARC4Encryptor.h
  10813. * src/ARC4Decryptor.h
  10814. * src/LibgcryptARC4Encryptor.h
  10815. * src/LibgcryptARC4Decryptor.h
  10816. * src/LibgcryptARC4Context.h
  10817. * src/LibsslARC4Encryptor.h
  10818. * src/LibsslARC4Decryptor.h
  10819. * src/LibsslARC4Context.h
  10820. * src/DHKeyExchange.h
  10821. * src/LibgcryptDHKeyExchange.h
  10822. * src/LibsslDHKeyExchange.h
  10823. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10824. * test/DefaultBtAnnounceTest.cc
  10825. * test/ARC4Test.cc
  10826. * test/DHKeyExchangeTest.cc
  10827. Removed prepareForRetry() because it is not used.
  10828. * src/PeerAbstractCommand.{h, cc}
  10829. * src/PeerInteractionCommand.{h, cc}
  10830. * src/PeerInitiateConnectionCommand.{h, cc}
  10831. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10832. Added the ability to load nodes from torrent file. These nodes are
  10833. added to the routing table when downloading that torrent.
  10834. * src/BtContext.h
  10835. * src/DefaultBtContext.{h, cc}
  10836. * src/DHTSetup.cc
  10837. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10838. hostname and port pair, and resolves all of them.
  10839. * src/NameResolver.{h, cc}: Added reset().
  10840. * src/RequestGroup.cc
  10841. * test/DefaultBtContextTest.cc
  10842. * test/MockBtContext.h
  10843. Removed assert() from DefaultBtContext and throw exception instead.
  10844. * src/DefaultBtContext.cc
  10845. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10846. Fixed segmentation fault bug when exiting if dht is disabled.
  10847. * src/RequestGroup.cc
  10848. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10849. Fixed typo in log message and define the message in message.h
  10850. * src/TimedHaltCommand.cc
  10851. * src/message.h
  10852. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10853. Included RecoverableException.h to fix compilation error.
  10854. * test/DHTMessageFactoryImplTest.cc
  10855. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10856. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10857. * test/DHTPingMessageTest.cc
  10858. * test/DHTGetPeersMessageTest.cc
  10859. * test/DHTFindNodeMessageTest.cc
  10860. * test/DHTAnnouncePeerMessageTest.cc
  10861. * test/MockDHTMessage.h
  10862. * test/MockDHTMessageFactory.h
  10863. * test/MockDHTMessageDispatcher.h: New class.
  10864. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10865. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10866. virtual.
  10867. * src/DHTMessageDispatcher.h
  10868. * src/DHTMessageDispatcherImpl.{h, cc}
  10869. * src/DHTSetup.cc
  10870. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10871. Adding handling of DHT error message. Just log error message and
  10872. throw exception.
  10873. * src/DHTMessageFactoryImpl.cc
  10874. * test/DHTMessageFactoryImplTest.cc
  10875. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10876. Added handling of dynamic cast failure.
  10877. * src/DHTNodeLookupTask.cc
  10878. * src/DHTPeerLookupTask.cc
  10879. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10880. Added the ability to stop aria2 itself when given time has passed
  10881. from start. Use --stop option to specify time in minutes.
  10882. When 0 is given, this feature is disabled.
  10883. * src/OptionHandlerFactory.cc
  10884. * src/TimeBasedCommand.h: Make _interval protected scope.
  10885. * src/HelpItemFactory.cc
  10886. * src/option_processing.cc
  10887. * src/prefs.h
  10888. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10889. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10890. Without this modification, the result list shows "ERR" when aria2 is
  10891. stopped by --stop option. It should be "INPR".
  10892. * src/DownloadEngine.{h, cc}
  10893. * src/DownloadEngineFactory.cc
  10894. * src/usage_text.h
  10895. * src/TimedHaltCommand.{h, cc}: New class.
  10896. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10897. Bootstrap through node added by port message.
  10898. Currently bootstrap is executed if the number of buckets in routing
  10899. table is 1.
  10900. * src/BtPortMessage.{h, cc}
  10901. * src/DefaultBtMessageFactory.{h, cc}
  10902. * src/PeerInteractionCommand.cc
  10903. * test/BtPortMessageTest.cc
  10904. * test/MockDHTTask.h
  10905. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10906. Extract the Peer class's member variables, which are only needed after
  10907. PeerInteractionCommand, into PeerSessionResource class.
  10908. This class is instantiated in PeerInteractionCommand class's ctor and
  10909. released in its dtor.
  10910. This will make Peer class lightweight and uses less memory for peers
  10911. which are not connected and wait in the queue.
  10912. * src/PeerChokeCommand.cc
  10913. * src/PeerSessionResource.{h, cc}
  10914. * src/PeerInteractionCommand.cc
  10915. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10916. * src/DefaultBtInteractive.cc
  10917. * src/BtPieceMessage.cc
  10918. * src/BtInterestedMessage.cc
  10919. * src/BtUnchokeMessage.cc
  10920. * src/DefaultPeerStorage.{h, cc}
  10921. * src/PeerInitiateConnectionCommand.cc
  10922. * src/ActivePeerConnectionCommand.cc
  10923. * src/BtNotInterestedMessage.cc
  10924. * src/DefaultBtMessageDispatcher.cc
  10925. * src/BtChokeMessage.cc
  10926. * src/BtRequestMessage.cc
  10927. * src/Peer.{h, cc}
  10928. * src/BtRegistry.h
  10929. * src/TrackerWatcherCommand.cc
  10930. * src/PeerReceiveHandshakeCommand.cc
  10931. * test/BtExtendedMessageTest.cc
  10932. * test/BtAllowedFastMessageTest.cc
  10933. * test/BtCancelMessageTest.cc
  10934. * test/DefaultPieceStorageTest.cc
  10935. * test/BtBitfieldMessageTest.cc
  10936. * test/BtHaveMessageTest.cc
  10937. * test/BtNotInterestedMessageTest.cc
  10938. * test/BtRequestMessageTest.cc
  10939. * test/PeerSessionResourceTest.cc
  10940. * test/DefaultBtMessageDispatcherTest.cc
  10941. * test/PeerTest.cc
  10942. * test/BtInterestedMessageTest.cc
  10943. * test/BtRejectMessageTest.cc
  10944. * test/BtChokeMessageTest.cc
  10945. * test/DefaultPeerStorageTest.cc
  10946. * test/BtHaveNoneMessageTest.cc
  10947. * test/BtHaveAllMessageTest.cc
  10948. * test/DefaultExtensionMessageFactoryTest.cc
  10949. * test/BtUnchokeMessageTest.cc
  10950. * test/DefaultBtMessageFactoryTest.cc
  10951. * test/HandshakeExtensionMessageTest.cc
  10952. * test/UTPexExtensionMessageTest.cc
  10953. * test/DefaultBtRequestFactoryTest.cc
  10954. * test/BtPieceMessageTest.cc
  10955. Removed typedef PeerStats.
  10956. * src/PeerStat.h
  10957. * src/SegmentMan.cc
  10958. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10959. Added std namespace to copy, remove_copy, back_inserter,
  10960. front_inserter.
  10961. * src/RequestGroupMan.cc
  10962. * src/DefaultPieceStorage.cc
  10963. * src/StreamFileAllocationEntry.cc
  10964. * src/BtFileAllocationEntry.cc
  10965. * src/RequestGroup.cc
  10966. * src/MetalinkEntry.cc
  10967. * src/DelegatingPeerListProcessor.cc
  10968. * src/DefaultBtRequestFactory.cc
  10969. * src/DefaultBtMessageDispatcher.cc
  10970. * src/version_usage.cc: Included <algorithm>
  10971. * src/main.cc
  10972. * src/MetalinkParserController.cc
  10973. * src/DefaultBtContext.cc
  10974. * src/DownloadEngineFactory.cc
  10975. * src/a2algo.h
  10976. Removed.
  10977. * test/StreamUriListParserTest.cc
  10978. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10979. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10980. ActivePeerConnectionCommand when it is given and
  10981. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10982. * src/ActivePeerConnectionCommand.{h, cc}
  10983. * src/BtSetup.cc
  10984. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. Only add socket to DownloadEngine's select routine when peer or
  10986. localhost is unchoked and interested. This lowers CPU usage a
  10987. little bit.
  10988. * src/PeerInteractionCommand.cc
  10989. * src/PeerAbstractCommand.{h, cc}
  10990. * src/BtInteractive.h
  10991. * src/DefaultBtInteractive.{h, cc}
  10992. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10993. Revert previous change because get_peers message is needed for
  10994. announce_peer anyway.
  10995. * src/DHTGetPeersCommand.cc
  10996. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10997. Request peers thought DHT only when download hasn't finished.
  10998. * src/DHTGetPeersCommand.cc
  10999. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11000. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11001. * src/DHTBucketRefreshTask.{h, cc}
  11002. * src/DHTSetup.cc
  11003. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11005. standard classes.
  11006. Included string.h where mem* function are used.
  11007. Added namespace aria2.
  11008. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11009. Create directory before saving DHT routing table.
  11010. Now ios::failure is now handled properly.
  11011. * src/DHTAutoSaveCommand.cc
  11012. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11013. Removed unnecessary cerr.
  11014. * src/DownloadEngine.cc
  11015. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11016. Catch exception inside DHTMessageReceiver::receiveMessage().
  11017. Log unknown message.
  11018. * src/DHTMessageReceiver.{h, cc}
  11019. * src/DHTMessageFactory.h
  11020. * src/DHTMessageFactoryImpl.{h, cc}
  11021. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11022. * src/DHTInteractionCommand.cc
  11023. * src/DHTUnknownMessage.{h, cc}
  11024. * test/DHTUnknownMessageTest.cc
  11025. * test/MockDHTMessageFactory.h
  11026. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11027. Commented out ip address comparison because a host can have multiple
  11028. ip addresses and it is hard to predict the hostname is resolved into
  11029. which one.
  11030. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11031. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11032. * po/Makefile.in: Removed since this is generated by configure.
  11033. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11034. Fixed compiler warning about redefinition of SIZE_MAX.
  11035. Use common.h instead of config.h directly here.
  11036. * src/Platform.{h, cc}
  11037. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11038. here.
  11039. * common.h
  11040. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11041. Updated gettext related files.
  11042. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11043. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11044. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11045. Added DHT functionality, compatible with mainline.
  11046. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11047. You may need to specify entry point to DHT network using
  11048. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11049. Use --dht-listen-port to specify port number. Make sure that your
  11050. firewall configuration can pass through UDP traffic to the port.
  11051. The routing table is saved in $HOME/.aria2/dht.dat.
  11052. * src/DHT*
  11053. * src/BNode.{h, cc}
  11054. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11055. particular torrent.
  11056. * src/Data.cc: Rewritten ctor.
  11057. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11058. --dht-entry-point.
  11059. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11060. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11061. ends, remove BtContext from DHTPeerAnnounceStorage.
  11062. * src/BtPortMessage.{h, cc}: Rewritten.
  11063. * src/message.h
  11064. * src/OptionHandlerImpl.cc
  11065. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11066. --dht-entry-point.
  11067. * src/Dictionary.{h, cc} (remove): New function.
  11068. * src/prefs.h
  11069. * src/DefaultBtMessageFactory.h
  11070. * src/BtHandshakeMessage.cc
  11071. * src/ActivePeerConnectionCommand.cc
  11072. * src/SocketCore.{h, cc}: Added datagram socket support.
  11073. * src/DefaultBtMessageFactory.cc
  11074. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11075. Create DHT commands.
  11076. * src/BtMessageFactory.h
  11077. * src/PeerMessageUtil.{h, cc}
  11078. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11079. Fixed the bug that log file is not written when configuration file doesn't exist.
  11080. This is caused by using Logger class before LogFactory is not configured.
  11081. BUG #1875079
  11082. * src/option_processing.cc
  11083. Warning message "configuration doesn't exist" is only printed when --conf is
  11084. given.
  11085. * src/option_processing.cc
  11086. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11087. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11088. ShaVisitor is now deprecated and slated to be removed.
  11089. * src/DefaultBtContext.cc
  11090. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11091. Externalize message to message.h
  11092. * src/Platform.cc
  11093. * src/message.h
  11094. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11095. Set default domain and default path to cookie.
  11096. * src/HttpResponse.cc
  11097. * src/CookieBox.{h, cc}
  11098. * src/CookieParser.{h, cc}
  11099. * test/CookieParserTest.cc
  11100. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11101. Added --no-conf and --conf-path command-line option.
  11102. --no-conf option disables loading aria2.conf file.
  11103. --conf-path option changes the configuration file path. The default
  11104. file path is $HOME/.aria2/aria2.conf
  11105. Added a warning message when the configuration file is not found.
  11106. * src/HelpItemFactory.cc
  11107. * src/option_processing.cc
  11108. * src/prefs.h
  11109. * src/usage_text.h
  11110. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11111. Added the message to inform users that other help categories are
  11112. available in -h option.
  11113. * src/version_usage.cc
  11114. * src/TagContainer.{h, cc}
  11115. * test/TagContainerTest.cc
  11116. * src/TaggedItem.{h, cc}
  11117. * test/TaggedItemTest.cc
  11118. * src/HelpItem.h
  11119. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11120. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11121. from PiecedSegment's ctor.
  11122. Previously Piece::getAllMissingBlockIndexes() is called from
  11123. PiecedSegment() but it is rather expensive since only first element is
  11124. used.
  11125. * src/PiecedSegment.cc
  11126. * src/Piece.{h, cc}
  11127. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11128. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11129. each time these functions are called.
  11130. * src/BitfieldMan.{h, cc}
  11131. * test/BitfieldManTest.cc
  11132. * src/array_fun.h
  11133. * test/array_funTest.cc
  11134. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11135. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11136. filtered. Removed unnecessary cast to int32_t.
  11137. * src/BitfieldMan.{h, cc}
  11138. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11139. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11140. payload length(4bytes) are received. This happens because lenbufLength
  11141. is not updated in this particular case and successive call of
  11142. receiveMessage() overwrites payload length with bytes recieved which
  11143. are payload body.
  11144. * src/PeerConnection.{h, cc}
  11145. * src/message.h
  11146. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11147. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11148. peer if there are peers that have same ipaddr and port.
  11149. I've experiened segmentation fault and "pure virtual function was
  11150. called" error.
  11151. * src/Peer.h
  11152. * test/PeerTest.cc
  11153. * src/DefaultPeerStorage.cc
  11154. * test/DefaultPeerStorageTest.cc
  11155. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11156. Removed a call to isPowerOf() because it is no longer necessary here
  11157. and a request block is not always power of 2.
  11158. BUG#1866924
  11159. * src/PeerMessageUtil.cc (checkLength)
  11160. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11161. Fixed the bug that always first found Segment is removed from
  11162. usedSegmentEntries. Removed unused functions.
  11163. * src/SegmentMan.{h, cc}
  11164. * test/SegmentManTest.cc
  11165. Fixed the bug that ServerHost is not removed.
  11166. * src/RequestGroup.cc
  11167. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11168. Fixed the bug that SegmentMan::completeSegment() is not called
  11169. even if Segment is complete when --lowest-speed-limit is enabled.
  11170. BUG#1864525
  11171. * src/DownloadCommand.{h, cc}
  11172. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Fixed: hash algorithm 'sha1' is always used.
  11174. * src/DownloadCommand.cc (validatePieceHash)
  11175. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11176. Added --enable-peer-exchange command-line option.
  11177. * src/OptionHandlerFactory.cc
  11178. * src/HelpItemFactory.cc
  11179. * src/option_processing.cc
  11180. * src/usage_text.h
  11181. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11182. Move extension from BtRuntime to ExtensionMessageFactory, because
  11183. extension can be specified per peer, not per torrent.
  11184. * src/DefaultBtInteractive.cc
  11185. * src/BtRuntime.h
  11186. * src/ExtendedMessagingAware.h
  11187. * src/ExtensionMessageFactory.h
  11188. * src/DefaultExtensionMessageFactory.cc
  11189. * test/DefaultExtensionMessageFactoryTest.cc
  11190. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11191. Added categorized option help. Specify category using --help option.
  11192. Also added the ability to search options in forward match.
  11193. * src/HelpItem.{h, cc}
  11194. * test/HelpItemTest.cc
  11195. * src/HelpItemFactory.{h, cc}
  11196. * src/TagContainer.{h, cc}
  11197. * test/TagContainerTest.cc
  11198. * src/option_processing.cc
  11199. * src/prefs.h
  11200. * src/TaggedItem.{h, cc}
  11201. * test/TaggedItemTest.cc
  11202. * src/version_usage.cc
  11203. * src/help_tags.h
  11204. * src/usage_text.h
  11205. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11206. Fixed segmentation fault when bad torrent metainfo is parsed.
  11207. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11208. and then throw exception or skip it.
  11209. * src/DefaultBtContext.{h, cc}
  11210. * test/DefaultBtContextTest.cc
  11211. * src/AnnounceList.cc
  11212. * src/CompactPeerListProcessor.cc
  11213. * src/message.h
  11214. * src/DefaultBtAnnounce.{h, cc}
  11215. * test/DefaultBtAnnounceTest.cc
  11216. * src/BencodeVisitor.cc
  11217. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11218. Added missing "B"(=Byte). So now the message looks like this:
  11219. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11220. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11221. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11222. Show the seed ratio after torrent downloads.
  11223. For example, after torrent download completed and --seed-time and
  11224. --seed-ratio conditions are fulfilled, following message is printed
  11225. right after "Download complete: .....":
  11226. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11227. * src/RequestGroupMan.cc
  11228. * src/RequestGroup.{h, cc}
  11229. * src/message.h
  11230. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11231. Remove a defunct control file. A defunct control file means that while
  11232. it exists, but the corresponding download file is missing.
  11233. After its removal, a download restarts from the beginning.
  11234. * src/RequestGroup.cc
  11235. * src/message.h
  11236. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11237. Allocate bitfield in Peer when it is really used. More specifically,
  11238. bitfield in Peer is allocated after the connection is established and
  11239. deallocated when the connection is dropped.
  11240. Since 2 parameters(piece length and total length) was removed from the
  11241. constructor of Peer class, many test classes were modified accordingly.
  11242. See svn log for more detailed information.
  11243. * src/PeerInteractionCommand.cc
  11244. * src/CompactPeerListProcessor.cc
  11245. * src/Peer.cc
  11246. * src/DefaultPeerListProcessor.cc
  11247. * src/PeerListenCommand.cc
  11248. * src/PeerReceiveHandshakeCommand.cc
  11249. Fixed memory leak
  11250. * src/Piece.cc
  11251. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11252. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11253. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11254. command-line options.
  11255. * src/option_processing.cc
  11256. * src/ActivePeerConnectionCommand.cc
  11257. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11258. Send have message to peer if it already has the piece.
  11259. * src/BtHaveMessage.{h, cc}
  11260. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11261. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11262. port.
  11263. * src/DefaultPeerStorage.{h, cc}
  11264. * test/DefaultPeerStorageTest.cc
  11265. * src/HandshakeExtensionMessage.cc
  11266. * test/HandshakeExtensionMessageTest.cc
  11267. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11268. * src/PeerStorage.h
  11269. * test/MockPeerStorage.h
  11270. * src/PeerListenCommand.cc
  11271. * src/PeerReceiveHandshakeCommand.cc
  11272. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11273. Added --metalink-enable-unique-protocol option.
  11274. * src/Metalink2RequestGroup.cc
  11275. * src/option_processing.cc
  11276. * src/prefs.h
  11277. * src/version_usage.cc
  11278. * doc/aria2c.1.txt
  11279. * doc/aria2c.1
  11280. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11281. Allow a peer in incomingPeer to be added peers.
  11282. * src/DefaultPeerStorage.cc
  11283. * test/DefaultPeerStorageTest.cc
  11284. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11285. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11286. I could reproduce this bug in following procedure:
  11287. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11288. 2. Restart aria2.
  11289. 3. You see the download stopped around 99%.
  11290. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11291. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11292. If timeout is reached, then _nextCommand is unused and it may contains
  11293. segments and they won't be canceled. Actually, timeout is not needed
  11294. here because if the server dropped connection, then retry is made.
  11295. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11296. Added uTorrent compatible Peer Exchange.
  11297. * src/BencodeVisitor.{h, cc}
  11298. * test/BencodeVisitorTest.cc
  11299. * src/BtConstants.h
  11300. * src/BtContext.h: Added 'private' flag.
  11301. * src/BtExtendedMessage.{h, cc}
  11302. * test/BtExtendedMessageTest.cc
  11303. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11304. reserved field.
  11305. * test/BtHandshakeMessageTest.cc
  11306. * src/BtMessageFactory.h
  11307. * src/BtRegistry.h
  11308. * src/BtRuntime.h: This class holds default extension message IDs for
  11309. aria2. By default, aria2 uses ID 8 for ut_pex.
  11310. * src/DefaultBtContext.cc
  11311. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11312. When it is true, aria2 enables ut_pex. This value is set by
  11313. PeerInteractionCommand.
  11314. * src/DefaultBtMessageFactory.{h, cc}
  11315. * test/DefaultBtMessageFactoryTest.cc
  11316. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11317. handling to DefaultBtInteractive class.
  11318. * src/DefaultExtensionMessageFactory.{h, cc}
  11319. * test/DefaultExtensionMessageFactoryTest.cc
  11320. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11321. the container(peers and incomingPeers. The equality is determined by
  11322. Peer::id).
  11323. * test/DefaultPeerStorageTest.cc
  11324. * src/ExtensionMessage.h
  11325. * test/MockExtensionMessage.h
  11326. * src/ExtensionMessageFactory.h
  11327. * test/MockExtensionMessageFactory.h
  11328. * src/HandshakeExtensionMessage.{h, cc}
  11329. * test/HandshakeExtensionMessageTest.cc
  11330. * src/MetaEntry.h
  11331. * src/Peer.{h, cc}
  11332. * src/PeerInteractionCommand.cc
  11333. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11334. addIncomingPeer.
  11335. * src/PeerMessageUtil.{h, cc}
  11336. * src/PeerObject.h
  11337. * src/UTPexExtensionMessage.{h, cc}
  11338. * test/UTPexExtensionMessageTest.cc
  11339. * src/message.h
  11340. * src/prefs.h
  11341. Fixed the bug that returns incomplete data when it contains null
  11342. character. A convenient constructor was also added.
  11343. * src/Data.{h, cc}
  11344. Rewritten.
  11345. * src/CompactPeerListProcessor.cc
  11346. Fixed typos.
  11347. * src/message.h
  11348. * src/MetaFileUtil.cc
  11349. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11350. Added "Status Legend" label to the explanation text of 'stat' in
  11351. download result and moved it to the last. BUG#1848214
  11352. * src/RequestGroupMan.cc
  11353. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11354. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11355. * src/Makefie.am
  11356. * test/Makefile.am
  11357. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11358. Fixed the bug that prevents aria2 from loading cookie file when expire
  11359. value is greater than 2^31-1. BUG#1851066
  11360. * src/CookieBoxFactory.cc
  11361. * test/CookieBoxFactoryTest.cc
  11362. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11363. Fixed possible memory leak when an exception is thrown.
  11364. * src/XML2SAXMetalinkProcessor.cc
  11365. Added Expat support. If both libxml2 and Expat are installed, then
  11366. libxml2 is used by default.
  11367. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11368. ExpatMetalinkProcessor according to the configuration.
  11369. * src/ExpatMetalinkProcessor.{h, cc}
  11370. * src/main.cc: Removed libxml2 specific header and init/free function.
  11371. * src/MetalinkProcessorFactory.{h, cc}
  11372. * src/MetalinkHelper.cc
  11373. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11374. * src/MetalinkProcessor.h
  11375. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11376. MetalinkProcessorTest is used instead.
  11377. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11378. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11379. MetalinkProcessorFactory::newInstance().
  11380. * m4/libexpat.m4
  11381. * configure.ac: Added configuration options for libexpat.
  11382. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11383. Disabled -s option in metalink download.
  11384. * src/Metalink2RequestGroup.cc
  11385. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11386. If several protocols are available for a mirror in metalink file,
  11387. aria2 now use one of them. --metalink-preferred-protocol option was
  11388. added to specify the preference of protocol.
  11389. * src/AbstractCommand.cc
  11390. * src/OptionHandlerFactory.cc
  11391. * src/ServerHost.{h, cc}
  11392. * src/Metalink2RequestGroup.cc
  11393. * src/RequestGroup.{h, cc}
  11394. * test/RequestGroupTest.cc
  11395. * src/option_processing.cc
  11396. * src/prefs.h
  11397. * src/HttpResponseCommand.cc
  11398. * src/MetalinkResource.{h, cc}
  11399. * src/FtpNegotiationCommand.cc
  11400. * src/MetalinkEntry.{h, cc}
  11401. * src/MetalinkEntryTest.cc
  11402. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11403. Code cleanup and added debug log.
  11404. * src/PeerConnection.cc
  11405. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11406. Compiler error fix: applied the patch by Tiziano Mueller
  11407. * src/RequestGroup.cc
  11408. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11409. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11410. in stopped and completed event.
  11411. * src/AnnounceList.{h, cc}
  11412. * test/AnnounceListTest.cc
  11413. * src/DefaultBtAnnounce.cc
  11414. * test/DefaultBtAnnounceTest.cc
  11415. Sorted URLs.
  11416. * test/Metalink2RequestGroupTest.cc
  11417. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11418. Removed unnecessary string copy. Updated doc and corrected indentation.
  11419. * src/Base64.cc
  11420. Fixed compilation warnings
  11421. * test/DataTest.cc
  11422. * test/HttpRequestTest.cc
  11423. * test/MetaFileUtilTest.cc
  11424. * test/RequestTest.cc
  11425. * Release 0.12.0
  11426. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11427. Updated translations
  11428. * po/{de,fr,ja,nl,ru}.po
  11429. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11430. translations. Many thanks to translators.
  11431. * po/{ca,es,it,pt_BR,sv}.po
  11432. * po/LINGUAS
  11433. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11434. Added a notice about URL
  11435. * src/version_usage.cc
  11436. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11437. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11438. aria2 repeatedly sends stopped request when tracker returns error code.
  11439. * src/AnnounceList.cc
  11440. * test/AnnounceListTest.cc
  11441. * src/AnnounceTier.h
  11442. Added a message when ctrl-c is hit.
  11443. Now second ctrl-c is also handled in signal handler.
  11444. * src/RequestGroupMan.{h, cc}
  11445. * src/RequestGroup.{h, cc}
  11446. * src/MultiUrlRequestInfo.cc
  11447. * src/DownloadEngine.cc
  11448. * src/TrackerWatcherCommand.cc
  11449. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11450. Code cleanup
  11451. * src/Base64.cc (encode)
  11452. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11453. Changed Direct/IO enable/disable procesure in file allocation routine.
  11454. * src/SingleFileAllocationIterator.cc
  11455. (SingleFileAllocationIterator):
  11456. Disable directIO if offset is not multiple of 512.
  11457. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11458. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11459. Enable created SingleFileAllocationIterator's directIO.
  11460. * src/FileAllocationEntry.cc
  11461. (FileAllocationEntry): Enable directIO here.
  11462. (~FileAllocationEntry): Disable directIO here.
  11463. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11464. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11465. * src/Peer.{h, cc}
  11466. * src/DefaultPieceStorage.cc
  11467. * test/DefaultPieceStorageTest.cc
  11468. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11469. Rewritten direct I/O support routine
  11470. * src/SingleFileAllocationIterator.cc
  11471. * src/MultiDiskAdaptor.{h, cc}
  11472. * src/ByteArrayDiskWriter.h
  11473. * src/AbstractSingleDiskAdaptor.h
  11474. * src/AbstractDiskWriter.cc
  11475. * src/DefaultPieceStorage.cc
  11476. * src/DiskWriter.h
  11477. * src/BinaryStream.h
  11478. * src/IteratableChunkChecksumValidator.cc
  11479. * src/IteratableChecksumValidator.cc
  11480. * src/CheckIntegrityEntry.cc
  11481. * src/FileAllocationEntry.cc
  11482. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11483. Fixed typo
  11484. * src/version_usage.cc
  11485. Updated doc
  11486. * doc/aria2c.1.txt
  11487. * doc/aria2c.1
  11488. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11489. Fixed compile error without message digest support.
  11490. * src/FileMetalinkParserState.cc
  11491. * src/MetalinkParserController.{h, cc}
  11492. * test/XML2SAXMetalinkProcessorTest.cc
  11493. * test/MetalinkParserControllerTest.cc
  11494. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11495. Enable direct I/O support in checksum checking.
  11496. * src/IteratableChunkChecksumValidator.{h, cc}
  11497. * test/IteratableChunkChecksumValidatorTest.cc
  11498. * src/CheckIntegrityEntry.cc
  11499. * src/PieceHashCheckIntegrityEntry.cc
  11500. * src/IteratableChecksumValidator.{h, cc}
  11501. * src/BtCheckIntegrityEntry.cc: Added doc.
  11502. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11503. Added --allow-piece-length-change option.
  11504. * src/DefaultBtProgressInfoFile.cc
  11505. * test/DefaultBtProgressInfoFileTest.cc
  11506. * src/OptionHandlerFactory.cc
  11507. * src/option_processing.cc
  11508. * src/prefs.h
  11509. * src/version_usage.cc
  11510. * doc/aria2c.1.txt
  11511. * doc/aria2c.1
  11512. Fixed: duplicated result entry appears when exception is thrown in
  11513. RequestGroup::createInitiateConnectionCommand().
  11514. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11515. Add RequestGroup to _requestGroup after RequetGroup::
  11516. createInitiateConnectionCommand() succeeds.
  11517. Externalized message
  11518. * src/XML2SAXMetalinkProcessor.cc
  11519. * src/message.h
  11520. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11521. Forced download abort when received negative response from http/ftp
  11522. server.
  11523. * src/HttpResponseCommand.cc
  11524. * src/FtpNegotiationCommand.cc
  11525. * src/HttpResponse.cc
  11526. * src/FtpConnection.cc
  11527. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11528. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11529. the predecessor, Xml2MetalinkParser class.
  11530. I tested them against 94KB metalink file with 1234 chunk checksums.
  11531. The new one parsed it in 22msec, while it took 6000msec with old one.
  11532. * src/XML2SAXMetalinkProcessor.{h, cc}
  11533. * test/XML2SAXMetalinkProcessorTest.cc
  11534. * src/MetalinkParserController.{h, cc}
  11535. * test/MetalinkParserControllerTest.cc
  11536. * src/MetalinkParserState.h: Also added 16 subclasses.
  11537. * src/main.cc
  11538. * src/Metalink2RequestGroup.cc
  11539. * src/MetalinkHelper.cc
  11540. * src/MetalinkEntry.cc
  11541. * src/ChunkChecksum.h
  11542. Rewritten Base64 class for better performance.
  11543. * src/Base64.{h, cc}
  11544. * test/Base64Test.cc
  11545. * src/HttpRequest.cc
  11546. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11547. Fixed the bug#1841757: aria2 will connect to server to only get
  11548. file size.
  11549. * src/StreamFileAllocationEntry.cc
  11550. * src/option_processing.cc
  11551. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11552. downloads.
  11553. * src/FtpNegotiationCommand.cc
  11554. Suppressed wrong message when finding PreDownloadHandler
  11555. * src/RequestGroup.cc
  11556. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11557. Updated usage
  11558. * src/version_usage.cc
  11559. Updated man page
  11560. * doc/aria2c.1.txt
  11561. * doc/aria2c.1
  11562. Updated po files
  11563. * po/aria2c.pot
  11564. * po/*.po
  11565. * po/*.gmo
  11566. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11567. Eliminated g++-4.2 warning
  11568. * src/DownloadHandlerConstants.{h, cc}
  11569. * src/Util.cc
  11570. * test/MetaFileUtilTest.cc
  11571. * test/PStringBuildVisitorTest.cc
  11572. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11573. * src/RequestGroup.cc
  11574. * src/BtCheckIntegrityEntry.cc
  11575. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11576. Fixed a2io.h
  11577. * src/a2io.h
  11578. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11579. Added direct I/O support. The current implementation uses O_DIRECT,
  11580. which is not posix standard and is tested on linux 2.6.21.
  11581. Currently only file allocation uses direct I/O.
  11582. * src/SingleFileAllocationIterator.{h, cc}
  11583. * test/SingleFileAllocationIteratorTest.cc
  11584. * src/MultiFileAllocationIterator.{h, cc}
  11585. * test/MultiFileAllocationIteratorTest.cc
  11586. * src/BinaryStream.h
  11587. * src/DiskWriter.h
  11588. * src/AbstractDiskWriter.{h, cc}
  11589. * src/ByteArrayDiskWriter.h
  11590. * src/DiskAdaptor.h
  11591. * src/AbstractSingleDiskAdaptor.{h, cc}
  11592. * src/MultiDiskAdaptor.{h, cc}
  11593. * src/FileAllocationEntry.cc
  11594. * src/Util.{h, cc}
  11595. * src/OptionHandlerFactory.cc
  11596. * src/prefs.h
  11597. * src/version_usage.cc
  11598. * src/option_processing.cc
  11599. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11600. handleException.
  11601. * src/MultiFileAllocationIterator.cc
  11602. Added EINTR handling
  11603. * src/SocketCore.cc
  11604. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11605. Updated usage
  11606. * src/version_usage.cc
  11607. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11608. Applied Ross's patch for MinGW port.
  11609. * src/DownloadEngine.h
  11610. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11611. Set Content-Type to SingleFileDownloadContext when http response is
  11612. received.
  11613. * src/HttpResponseCommand.cc
  11614. * src/HttpResponse.{h, cc}
  11615. * test/HttpResponseTest.cc
  11616. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11617. Rewritten to add content-type support.
  11618. * src/DownloadHandler.{h, cc}
  11619. * src/BtPostDownloadHandler.{h, cc}
  11620. * test/BtPostDownloadHandlerTest.cc
  11621. * src/MetalinkPostDownloadHandler.{h, cc}
  11622. * test/MetalinkPostDownloadHandlerTest.cc
  11623. * src/PostDownloadHandler.{h, cc}
  11624. * src/DownloadHandlerConstants.{h, cc}
  11625. * src/RequestGroup.cc
  11626. * src/HttpResponseCommand.cc
  11627. * src/FtpNegotiationCommand.cc
  11628. * src/SingleFileDownloadContext.{h, cc}
  11629. * src/RequestGroup.h
  11630. * src/RequestGroupCriteria.h
  11631. * src/ContentTypeRequestGroupCriteria.h
  11632. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11633. If it is give, metalink/torrent file is not written to the disk, but
  11634. just is kept in memory. Parsing is occurred on memory.
  11635. * src/MetalinkHelper.{h, cc}
  11636. * src/MetalinkProcessor.h
  11637. * src/Xml2MetalinkProcessor.{h, cc}
  11638. * test/Xml2MetalinkProcessorTest.cc
  11639. * src/DownloadHandlerFactory.{h, cc}
  11640. * test/DownloadHandlerFactoryTest.cc
  11641. * src/PreDownloadHandler.{h, cc}
  11642. * src/OptionHandlerFactory.cc
  11643. * src/DefaultBtContext.{h, cc}
  11644. * test/DefaultBtContextTest.cc
  11645. * src/version_usage.cc
  11646. * src/Metalink2RequestGroup.{h, cc}
  11647. * src/RequestGroup.{h, cc}
  11648. * src/a2functional.h
  11649. * test/a2functionalTest.cc
  11650. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11651. * src/OptionHandlerImpl.h
  11652. * src/prefs.h
  11653. * src/Util.{h, cc}
  11654. * test/UtilTest.cc
  11655. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11656. memory usage.
  11657. * src/RequestGroupMan.{h, cc}
  11658. * src/DownloadEngine.cc
  11659. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11660. WeakHandle to SharedHandle because WeakHandle could be null.
  11661. * src/RequestGroup.{h, cc}
  11662. * src/DownloadEngineFactory.cc
  11663. * src/DownloadResult.h
  11664. Set totalLength after download finished
  11665. * src/UnknownLengthPieceStorage.{h, cc}
  11666. Keep torrent file specified in metalink in memory.
  11667. * src/Metalink2RequestGroup.cc
  11668. * src/BtDependency.cc
  11669. * src/TrueRequestGroupCriteria.h
  11670. Fixed the bug: seekg is used where seekp should be used.
  11671. * src/ByteArrayDiskWriter.cc
  11672. * test/ByteArraydiskWriterTest.cc
  11673. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11674. Fixed syntax error
  11675. * test/SequenceTest.cc
  11676. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11677. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11678. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11679. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11680. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11681. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11682. Added the check to see whether ares_host_callback accepts timeouts
  11683. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11684. * src/NameResolver.{h, cc}
  11685. * m4/libcares.m4
  11686. * configure.ac: Set C++ for language choice.
  11687. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11688. Fixed: compilation fails without c-ares/ares
  11689. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11690. Generate http/ftp commands only when download is incomplete.
  11691. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11692. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11693. Corrected typo. Examples are removed since they are available in man
  11694. page.
  11695. * src/version_usage.cc
  11696. Updated man page.
  11697. * doc/aria2c.1
  11698. * doc/aria2c.1.txt
  11699. * doc/makeman: Commented out sed command.
  11700. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11701. Throw DlAbortEx when a remote file is not found.
  11702. * src/HttpResponse.cc
  11703. * src/FtpNegotiationCommand.cc
  11704. * src/message.h
  11705. Overwrite an existing file if --allow-overwrite=true is given.
  11706. * src/RequestGroup.cc
  11707. Removed unused functions
  11708. * src/AbstractCommand.h
  11709. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11710. Removed 'extern' from 'extern typedef ...' in src/*.h
  11711. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11712. Updated usage
  11713. * src/version_usage.cc
  11714. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11715. Trim announce URL
  11716. * src/DefaultBtContext.cc
  11717. * test/ShaVisitorTest.cc
  11718. Trim argument s. Give trimed s to exception constructor.
  11719. * src/Util.cc (parseInt)(parseLLInt)
  11720. * test/UtilTest.cc
  11721. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11722. Set precision back to 1.
  11723. * src/ConsoleStatCalc.cc (calculateStat)
  11724. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11725. Replaced strtol with Util::parseInt
  11726. * src/ChunkedEncoding.cc
  11727. * src/HttpConnection.cc
  11728. * src/CookieBoxFactory.cc
  11729. * src/ParameterizedStringParser.cc
  11730. * src/Util.cc
  11731. * test/UtilTest.cc
  11732. * test/OptionHandlerTest.cc
  11733. * src/Request.cc
  11734. Throw exception when empty string is given. The message for exception
  11735. changed.
  11736. * src/Util.cc (parseInt)(parseLLInt)
  11737. * src/message.h
  11738. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11739. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11740. set to 1.
  11741. * src/ConsoleStatCalc.cc (calculateStat)
  11742. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11743. Preallocate non-requested file which is adjacent forward to requested
  11744. file('requested' files means the files given in --select-file option)
  11745. if they share a same piece.
  11746. This fixes long pause in the file system which doesn't support sparse
  11747. files like FAT32 while downloading.
  11748. * src/MultiFileAllocationIterator.{h, cc}
  11749. * test/MultiFileAllocationIteratorTest.cc
  11750. * src/FileEntry.{h, cc}
  11751. Removed unused _option.
  11752. * src/MultiDiskAdaptor.h
  11753. * test/MultiDiskAdaptorTest.cc
  11754. * src/DefaultPieceStorage.cc
  11755. Set the default value of --seed-ratio to 1.0.
  11756. If 0.0 is given, then seeding continues regardless of share ratio.
  11757. * src/version_usage.cc
  11758. * src/option_processing.cc
  11759. * src/BtSetup.cc
  11760. * doc/aria2c.1.txt
  11761. * doc/aria2c.1
  11762. Fixed: Selective download is not working in BitTorrent
  11763. * src/RequestGroup.cc
  11764. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11765. * src/PieceStorage.h
  11766. * test/MockPieceStorage.h
  11767. * src/UnknownLengthPieceStorage.h
  11768. * src/DefaultPieceStorage.{h, cc}
  11769. * src/Metalink2RequestGroup.cc
  11770. * src/RequestGroup.cc
  11771. * src/Sequence.h
  11772. * test/SequenceTest.cc
  11773. * src/IntSequence.h
  11774. * src/message.h
  11775. * src/Util.{h, cc}
  11776. * test/UtilTest.cc
  11777. Added new function 'parse' to catch exception thrown by subclass's
  11778. parseArg
  11779. * src/OptionHandler.h
  11780. * src/OptionParser.cc
  11781. * src/NameMatchOptionHandler.h
  11782. * src/OptionHandlerImpl.h
  11783. * test/OptionHandlerTest.cc
  11784. Added IntegerRangeOptionHandler. Used for --listen-port and
  11785. --select-file. Now --listen-port accepts range of port.
  11786. * src/OptionHandlerFactory.cc
  11787. * src/version_usage.cc
  11788. * src/OptionHandlerImpl.h
  11789. * src/option_processing.cc
  11790. * src/BtSetup.cc
  11791. * src/PeerListenCommand.{h, cc}
  11792. * doc/aria2c.1.txt
  11793. * doc/aria2c.1
  11794. Implemented operator< for Exception class to provide easy way to print
  11795. exception stack trace.
  11796. * src/Exception.{h, cc}
  11797. * src/main.cc
  11798. * src/option_processing.cc
  11799. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11800. * src/version_usage.cc
  11801. (showVersion): Reworked.
  11802. (showUsage): Added examples.
  11803. Removed Hint for total length and file name.
  11804. * src/Metalink2RequestGroup.cc
  11805. * src/RequestGroup.{h, cc}
  11806. * src/HttpResponseCommand.cc
  11807. * src/FtpNegotiationCommand.cc
  11808. Now --follow-torrent and --follow-metalink option work properly.
  11809. * src/RequestGroup.cc
  11810. Updated man page
  11811. * doc/aria2c.1.txt
  11812. * doc/aria2c.1
  11813. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11814. Removed.
  11815. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11816. Use Segment::operator==()
  11817. * src/HttpConnection.cc
  11818. * src/Segment.h
  11819. Updated usage
  11820. * src/version_usage.cc
  11821. Added EINTR treatment.
  11822. * src/SocketCore.cc
  11823. * src/AbstractDiskWriter.cc
  11824. Rewritten.
  11825. * src/Util.cc (rangedFileCopy)
  11826. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11827. Fixed typo.
  11828. * src/version_usage.cc
  11829. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11830. Implemented. Now -c option works fine.
  11831. * src/DefaultPieceStorage.cc (markPiecesDone)
  11832. * test/DefaultPieceStorageTest.cc
  11833. Removed.
  11834. * src/SegmentMan.{h, cc}
  11835. (markAllPiecesDone)
  11836. (markPieceDone)
  11837. Synchronized po files with
  11838. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11839. * src/fr.po
  11840. * src/ru.po
  11841. * src/de.po
  11842. * src/ja.po
  11843. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11844. Added ifdef and some modifications to compile without BitTorrent,
  11845. Metalink, MessageDigest
  11846. support.
  11847. * src/PieceHashCheckIntegrityEntry.cc
  11848. * src/MetalinkEntry.h
  11849. * src/version_usage.cc
  11850. * src/main.cc
  11851. * src/DownloadEngine.{h, cc}
  11852. * src/Metalink2RequestGroup.cc
  11853. * src/Peer.cc
  11854. * src/RequestGroup.cc
  11855. * src/MetalinkHelper.cc
  11856. * test/DefaultPieceStorageTest.cc
  11857. * test/MetalinkPostDownloadHandlerTest.cc
  11858. * test/Metalink2RequestGroupTest.cc
  11859. Hide TOTAL SPD when all downloads complete.
  11860. * src/ConsoleStatCalc.cc
  11861. Log target system information.
  11862. * src/main.cc
  11863. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11864. Now --metalink-location accepts a comma-deliminated list of locations.
  11865. * src/MetalinkEntry.{h, cc}
  11866. * test/MetalinkEntryTest.cc
  11867. * src/version_usage.cc
  11868. * src/Metalink2RequestGroup.cc
  11869. * src/Xml2MetalinkProcessor.cc
  11870. * test/Xml2MetalinkProcessorTest.cc
  11871. * doc/aria2c.1.txt
  11872. * doc/aria2c.1
  11873. * src/Util.cc (toUpper)(toLower): Rewritten.
  11874. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11875. Added the ability to detect duplicate download entry which is about to
  11876. download the same file other RequestGroup is downloading.
  11877. * src/RequestGroup.cc
  11878. * src/HttpResponseCommand.cc
  11879. * src/FtpNegotiationCommand.cc
  11880. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11881. Recalculates download progress when loading a control file,
  11882. if the piece length of DownloadContext is different from the one saved
  11883. in the control file. Currently in-flight pieces are ignored.
  11884. * src/DefaultBtProgressInfoFile.cc
  11885. * test/DefaultBtProgressInfoFileTest.cc
  11886. * src/Util.{h, cc}
  11887. * test/UtilTest.cc
  11888. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11889. Do not rotate tiers in announce-list.
  11890. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11891. AnnounceList::allTiersFailed() used instead to detect whether all
  11892. tiers are tried and failed.
  11893. * test/DefaultBtAnnounceTest.cc
  11894. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11895. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11896. * test/AnnounceListTest.cc
  11897. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11898. clause. Catch RecoverableException instead of DlRetryEx instead.
  11899. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11900. Implemented checksum validation feature(1 checksum for each file)
  11901. The validation takes place after the download.
  11902. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11903. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11904. * src/CheckIntegrityCommand.cc: Changed log message.
  11905. * src/Metalink2RequestGroup.cc: Set checksum to
  11906. SingleFileDownloadContext.
  11907. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11908. PieceHashCheckIntegrity class.
  11909. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11910. PieceHashCheckIntegrity class.
  11911. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11912. * src/IteratableValidator.h: New class.
  11913. * src/message.h
  11914. * src/CheckIntegrityEntry.{h, cc}
  11915. * src/IteratableChunkChecksumValidator.{h, cc}
  11916. * src/SingleFileDownloadContext.h
  11917. * src/DownloadCommand.cc
  11918. --allow-overwrite=true is no longer needed to check file integrity
  11919. before download in BitTorrent download.
  11920. * src/RequestGroup.cc (getInitialCommand)
  11921. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11922. throws exception.
  11923. * src/RequestGroupMan.cc (getInitialCommands)
  11924. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11925. urlencode the given url inside Request::parseUrl(...)
  11926. * src/Request.{h, cc}
  11927. * src/Util.{h, cc}
  11928. * test/RequestTest.cc
  11929. Removed #!metalink3! notation support because it is deleted from
  11930. the metalink specification.
  11931. * src/Request.{h, cc}
  11932. * test/RequestTest.cc
  11933. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11934. Don't connect server before checking file integrity at startup, if
  11935. filesize and output file path are known.
  11936. * src/AbstractCommand.cc
  11937. * src/StreamFileAllocationEntry.cc
  11938. * src/Metalink2RequestGroup.cc
  11939. * src/RequestGroup.{h, cc}
  11940. * src/HttpResponseCommand.cc
  11941. * src/FtpNegotiationCommand.cc
  11942. Added DownloadFailureException. If it is thrown, RequestGroup should
  11943. halt.
  11944. * src/AbstractCommand.cc
  11945. * src/DownloadFailureException.h
  11946. * src/RequestGroup.cc
  11947. Catch RecoverableException, instead of DlAbortEx.
  11948. * src/RequestGroupMan.cc
  11949. * src/FillRequestGroupCommand.cc
  11950. * src/MetaFileUtil.cc
  11951. * src/IteratableChunkChecksumValidator.cc
  11952. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11953. getGID())
  11954. * src/CheckIntegrityCommand.cc
  11955. * src/message.h
  11956. Print gid instead of idx.
  11957. * src/RequestGroupMan.cc
  11958. Removed exception throwers declaration.
  11959. * src/DirectDiskAdaptor.{h, cc}
  11960. * src/SocketCore.{h, cc}
  11961. * src/MultiDiskAdaptor.{h, cc}
  11962. * src/HttpConnection.{h, cc}
  11963. * src/HttpResponse.{h, cc}
  11964. * src/DiskAdaptor.{h, cc}
  11965. * src/CopyDiskAdaptor.{h, cc}
  11966. * src/MultiDiskAdaptor.{h, cc}
  11967. * src/HttpHeaderProcessor.{h, cc}
  11968. * src/AbstractSingleDiskAdaptor.{h, cc}
  11969. * src/Util.{h, cc}
  11970. * test/UtilTest.cc
  11971. * src/DefaultDiskWriter.{h, cc}
  11972. * src/FtpConnection.{h, cc}
  11973. * src/AbstractDiskWriter.{h, cc}
  11974. Removed duplicate code.
  11975. * src/StreamCheckIntegrityEntry.cc
  11976. Removed unnecessary include.
  11977. * src/DiskWriter.h
  11978. Included Exception.h
  11979. * src/option_processing.cc
  11980. Included 2 files and added doc
  11981. * src/TrackerWatcherCommand.cc
  11982. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11983. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11984. Changed CheckIntegrityEntry interface so that it can define
  11985. the action when all the chunk checksums are valid.
  11986. * src/CheckIntegrityEntry.h
  11987. * src/StreamCheckIntegrityEntry.{h, cc}
  11988. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11989. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11990. to exit rather than doing seeding. So, it would be good to toggle this
  11991. behavior.
  11992. * src/CheckIntegrityCommand.cc
  11993. * src/AbstractCommand.cc
  11994. * src/RequestGroup.cc
  11995. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11996. Reflect the download length of in-flight pieces.
  11997. It makes the download length readout more precise.
  11998. * src/DefaultPieceStorage.{h, cc}
  11999. * test/DefaultPieceStorageTest.cc
  12000. * src/a2functional.h
  12001. * test/a2functionalTest.cc
  12002. Lower CPU load when --max-download-limit is used.
  12003. There is up and down in speed indicator when enabling
  12004. http-pipelining but a download goes well. I think the problem is that
  12005. because http-pipelining is enabled, DownloadCommand is created for
  12006. each segment and in its constructor, PeerStat::downloadStart() is
  12007. called. In PeerStat::downloadStart(), speed calculation object is
  12008. reseted, which makes download speed zero.
  12009. * src/DownloadCommand.cc
  12010. Rewritten using accumulate.
  12011. * src/RequestGroupMan.cc (calculateStat)
  12012. Code clearnup.
  12013. * src/FtpNegotiationCommand.cc
  12014. * src/HttpResponseCommand.cc
  12015. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12016. Fixed: Can not resume: aria2 reports download already finished.
  12017. * src/AbstractCommand.{h, cc}
  12018. * src/HttpResponseCommand.cc
  12019. * src/FtpNegotiateCommand.cc
  12020. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12021. Now a file is stored in the directory specified in .metalnk file
  12022. (file[@name]).
  12023. * src/Metalink2RequestGroup.cc
  12024. Create the directory structure when opening the file if it doesn't
  12025. exist.
  12026. * src/AbstractDiskWriter.cc
  12027. * src/Util.{h, cc}
  12028. * src/File.h
  12029. * test/UtilTest.cc
  12030. Removed file name comparison
  12031. * src/Metalink2RequestGroup.cc
  12032. * src/HttpResponseCommand.cc
  12033. Rewritten using Util::mkdirs()
  12034. * src/FileEntry.cc (setupDir)
  12035. * test/FileEntryTest.cc
  12036. Updated doc
  12037. * src/SingleFileDownloadContext.h
  12038. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12039. Now SleepCommand dispatches nextCommand when halt is requested.
  12040. It avoids a possible long wait after hitting CTRL-C.
  12041. * src/SleepCommand.{h, cc}
  12042. * src/RequestGroupAware.{h, cc}
  12043. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12044. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12045. to open listen port, then remove the port number from the tracker
  12046. request.
  12047. * src/DefaultBtAnnounce.cc
  12048. * test/DefaultBtAnnounceTest.cc
  12049. * test/MockPieceStorage.h
  12050. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12051. them more testable.
  12052. * src/DefaultBtAnnounce.{h, cc}
  12053. * src/DefaultBtContext.{h, cc}
  12054. * src/Util.{h, cc}
  12055. * test/DefaultBtAnnounceTest.cc
  12056. * test/DefaultBtContextTest.cc
  12057. * test/UtilTest.cc
  12058. Added 'B' to upload bytes readout.
  12059. * src/ConsoleStatCalc.cc
  12060. Now the listen port for BitTorrent download is opened when it is
  12061. needed.
  12062. * src/DownloadEngineFactory.cc
  12063. * src/BtSetup.{h, cc}
  12064. * src/PeerListenCommand.{h, cc}
  12065. Now an exception thrown while parsing tracker response is now logged.
  12066. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12067. called, which means no retry is made in this case, assuming a tracker
  12068. has a problem.
  12069. * src/TrackerWatcherCommand.cc
  12070. Fixed: downloading a file whose length is unkown fails.
  12071. * src/DownloadCommand.cc
  12072. Simplified prepareForNextSegment()
  12073. * src/DownloadCommand.cc
  12074. Updated
  12075. * po/POTFILES.in
  12076. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12077. Re-implemented a file listing for Metalink, which was dropped while
  12078. http/ftp/torrent integration was being implemented.
  12079. * src/MetalinkHelper.{h, cc}: New class.
  12080. * test/MetalinkHelperTest.cc
  12081. * src/main.cc
  12082. * src/Metalink2RequestGroup.cc
  12083. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12084. Added the ability to display the detailed torrent file information.
  12085. Now -S option gives not only a file listing, but also total download
  12086. length, info hash, announce URI, piece length, the number of pieces,
  12087. and mode(single or multi-torrent).
  12088. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12089. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12090. KiB)
  12091. * test/UtilTest.cc
  12092. * src/main.cc
  12093. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12094. Added ftp://USER:PASSWD@Servername automatic parsing.
  12095. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12096. _password. Recognize username and password in URI.
  12097. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12098. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12099. * src/RequestFactory.{h, cc}: Removed.
  12100. * src/AuthConfigFactory.{h, cc}: New class.
  12101. * src/FtpConnection.cc: Use AuthConfigFactory.
  12102. * src/HttpRequest.cc: Use AuthConfigFactory.
  12103. * test/HttpRequestTest.cc: Updated.
  12104. * test/RequestTest.cc: Updated.
  12105. * test/AuthConfigFactoryTest.cc: New class.
  12106. * test/RequestFactoryTest.cc: Removed.
  12107. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12108. Use RequestGroup::allDownloadFinished() to decide whether the control
  12109. file should be removed or saved.
  12110. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12111. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12112. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12113. Use File::renameTo()
  12114. * src/DefaultBtProgressInfoFile.cc
  12115. Added --no-file-allocation-limit command-line option.
  12116. * src/version_usage.cc
  12117. * src/option_processing.cc
  12118. * src/OptionHandlerFactory.cc
  12119. * src/RequestGroup.{h, cc}
  12120. * src/BtCheckIntegrityEntry.cc
  12121. * src/StreamCheckIntegrityEntry.cc
  12122. * src/prefs.h
  12123. * doc/aria2c.1.txt
  12124. * doc/aria2c.1
  12125. Now prealloc is the default value for --file-allocation option.
  12126. * src/version_usage.cc
  12127. * src/option_processing.cc
  12128. * doc/aria2c.1.txt
  12129. * doc/aria2c.1
  12130. Don't URL-encode user-agent.
  12131. * src/HttpRequest.cc
  12132. Updated translations
  12133. * po/LINGUAS: Added nl for Dutch translation.
  12134. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12135. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12136. * po/POTFILES.in: Updated.
  12137. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12138. Added the ability to recognize url-list in a torrent file.
  12139. The retrieved URLs are attached to the corresponding FileEntry.
  12140. * src/DefaultBtContext.{h, cc}
  12141. * src/FileEntry.{h, cc}
  12142. * test/DefaultBtContextTest.cc
  12143. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12144. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12145. after the download finishes.
  12146. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12147. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12148. the data smaller than block length.
  12149. A block length can be specified by constructor's argument.
  12150. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12151. Get a missing piece in the range of given FileEntry. This function is
  12152. not used in the program yet.
  12153. * src/Util.h: Added some macros.
  12154. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12155. Added HTTP/1.1 keep alive and pipelining support.
  12156. See --enable-http-keep-alive and --enable-http-pipelining option.
  12157. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12158. Segment.
  12159. * src/HttpDownloadCommand.{h, cc}
  12160. * src/OptionHandlerFactory.cc
  12161. * src/HttpConnection.{h, cc}
  12162. * src/version_usage.cc
  12163. * src/HttpInitiateConnectionCommand.cc
  12164. * src/FtpInitiateConnectionCommand.cc
  12165. * src/Segment.h
  12166. * src/HttpRequestCommand.{h, cc}
  12167. * src/option_processing.cc
  12168. * src/prefs.h
  12169. * src/HttpResponseCommand.cc
  12170. * src/SegmentMan.{h, cc}
  12171. * src/FtpNegotiateCommand.cc
  12172. * src/HttpProxyResponseCommand.cc
  12173. * src/Request.cc
  12174. * src/HttpRequest.cc
  12175. * src/DownloadCommand.cc
  12176. * test/HttpRequestTest.cc
  12177. * test/RequestTest.cc
  12178. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12179. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12180. finished.
  12181. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12182. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12183. catching it inside the method.
  12184. When no file entry is found in a metalink without querying user
  12185. preferences, throw the exception with the error message that suggests
  12186. metalink file is probably broken.
  12187. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12188. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12189. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12190. processed.
  12191. * src/RequestGroupMan.cc (removeStoppedGroup)
  12192. Added debug message.
  12193. * src/BtPostDownloadHandler.cc
  12194. * src/MetalinkPostDownloadHandler.cc
  12195. * src/PostDownloadHandler.{h, cc}
  12196. * src/RequestGroup.cc
  12197. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12198. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12199. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12200. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12201. stops and there are any unfinished or in-progress downloads.
  12202. Added the legend of "stat".
  12203. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12204. Throw exception when chunck checksum verification fails.
  12205. * src/DownloadCommand.cc (validatePieceHash): New function.
  12206. * src/PiecedSegment.{h, cc} (clear): New function.
  12207. * src/GrowSegment.{h, cc} (clear): New function.
  12208. * src/Segment.h (clear): New function.
  12209. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12210. * test/SegmentTest.cc
  12211. * test/GrowSegmentTest.cc
  12212. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12213. Do not send referer when redirected.
  12214. * src/Request.cc (redirectUrl)
  12215. * test/RequestTest.cc
  12216. * test/HttpRequestTest.cc
  12217. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12218. Implemented BitTorrent/http/ftp integrated download.
  12219. I've rewritten lots of files and now some headers have forward
  12220. class declarations to reduce compile time.
  12221. The implementation is extremely alpha stage, I recommend to use this
  12222. for testing purpose only.
  12223. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12224. Fixed the compilation error on 64bit platform.
  12225. * test/HttpHeaderProcessorTest.cc
  12226. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12227. Merged Ross's patch that fixes compilation problem in MinGW
  12228. * test/DefaultBtProgressInfoFileTest.cc
  12229. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12230. Updated fr.po by sebone
  12231. * po/fr.po
  12232. Updated man page.
  12233. * doc/aria2c.1.txt
  12234. * Release 0.11.3
  12235. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12236. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12237. failure in Metalink.
  12238. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12239. Automatically save *.aria2 control file of http/ftp download in every
  12240. 60 seconds.
  12241. * src/AutoSaveCommand.{h, cc}: New class.
  12242. * src/TimeBasedCommand.{h, cc}: New class.
  12243. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12244. Disable parameterized URI support by default. Added -P option to
  12245. enable the feature.
  12246. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12247. * src/OptionHandlerFactory.cc
  12248. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12249. Updated Japanese translation.
  12250. * po/ja.po
  12251. Updated man page.
  12252. * doc/aria2c.1.txt
  12253. * Release 0.11.3-rc
  12254. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12255. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12256. it is successful, then renamed to *.aria2.
  12257. This prevents *.aria2 file from being truncated or corrupted when
  12258. file system becomes out of space.
  12259. * src/DefaultBtProgressInfoFile.cc (save)
  12260. * src/SegmentMan.cc (save)
  12261. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12262. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12263. Reduced the fragmentation of bitfield in http/ftp download.
  12264. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12265. * test/BitfieldManTest.cc
  12266. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12267. Added the ability to disable segmented download in .metalink.
  12268. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12269. 'url' tag.
  12270. * src/MetalinkEntry.{h, cc}
  12271. * src/RequestResource.{h, cc}
  12272. * src/MetalinkRequestInfo.cc
  12273. * src/Xml2MetalinkProcessor.cc
  12274. * test/Xml2MetalinkProcessorTest.cc
  12275. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12276. Added parameterized URI support.
  12277. * src/main.cc: -Z option added.
  12278. * src/OptionHandlerFactory.cc
  12279. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12280. * src/PStringDatum.h: New class.
  12281. * src/PStringSegment.{h,cc}: New class.
  12282. * src/PStringNumLoop.h: New class.
  12283. * src/PStringSelect.h: New class.
  12284. * src/NumberDecorator.h: New class.
  12285. * src/FixedWidthNumberDecorator.h: New class.
  12286. * src/AlphaNumberDecorator.h: New class.
  12287. * src/PStringVisitor.h: New class.
  12288. * src/PStringBuildVisitor.{h,cc}: New class.
  12289. * src/ParameterizedStringParser.{h,cc}: New class.
  12290. * src/Util.{h,cc}
  12291. (isNumber): New function.
  12292. (isLowercase): New function.
  12293. (isUppercase): New function.
  12294. (alphaToNum): New function.
  12295. * test/ParameterizedStringParserTest.cc: New class.
  12296. * test/AlphaNumberDecoratorTest.cc: New class.
  12297. * test/PStringBuildVisitorTest.cc: New class.
  12298. * test/UtilTest.cc
  12299. (testIsNumber): New function.
  12300. (testIsLowercase): New function.
  12301. (testIsUppercase): New function.
  12302. (testAlphaToNum): New function.
  12303. Added '\n' after the error message
  12304. * src/RequestInfo.h (printDownloadAbortMessage)
  12305. Added auto file renaming feature in http(s)/ftp download.
  12306. * src/main.cc: Added --auto-file-renaming command-line option.
  12307. * src/OptionHandlerFactory.cc
  12308. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12309. * src/RequestGroup.{h, cc}
  12310. (shouldCancelDownloadForSafety): Rewritten
  12311. (tryAutoFileRenaming): New function.
  12312. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12313. * src/HttpResponseCommand.cc
  12314. (executeInternal): Removed the call to RequestGroupMan::
  12315. isSameFileBeingDownloaded()
  12316. * src/FtpNegotiateCommand.cc
  12317. (recvSize): Removed the call to RequestGroupMan::
  12318. isSameFileBeingDownloaded()
  12319. * test/RequestGroupTest.cc: New class.
  12320. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12321. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12322. IO.
  12323. * src/DefaultBtProgressInfoFile.cc
  12324. * src/MetaFileUtil.cc
  12325. * src/SimpleLogger.cc
  12326. * src/SegmentMan.cc
  12327. * src/Util.cc
  12328. * src/Platform.cc
  12329. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12330. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12331. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12332. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12333. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12334. Fixed the bug that prevents file allocation is not done when
  12335. dowloading multi-torrent file.
  12336. * src/AbstractDiskWriter.cc (openFile)
  12337. Increase the maximum number of -j option from 15 to 45.
  12338. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12339. Added fr.po, thanks to Charles Landemaine.
  12340. * po/fr.po
  12341. * po/LINGUAS
  12342. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12343. gcc 3.4.4 support:
  12344. * src/DefaultBtContext.cc: int32_t -> int
  12345. * src/main.cc: int -> int32_t, int32_t -> int
  12346. * src/messageDigest.h: uint32_t -> unsigned int
  12347. * src/NameResolver.h: int32_t -> int
  12348. * src/PeerConnection.cc: int -> int32_t
  12349. * src/SpeedCalc.cc: int32_t -> int
  12350. * src/TrackerUpdateCommand.h: int -> int32_t
  12351. * src/Util.cc: int32_t -> int
  12352. * src/Util.h: int32_t -> int
  12353. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12354. * test/AnnounceListTest.cc: int -> int32_t
  12355. * test/ChunkedEncodingTest.cc: int -> int32_t
  12356. * test/DataTest.cc: int -> int32_t
  12357. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12358. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12359. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12360. * test/FeatureConfigTest.cc: int -> int32_t
  12361. * test/MetalinkEntryTest.cc: int -> int32_t
  12362. * test/MockBtRequestFactory.h: int -> int32_t
  12363. * test/MockPieceStorage.h: int -> int32_t
  12364. * test/OptionTest.cc: int -> int32_t
  12365. * test/RequestTest.cc: int -> int32_t
  12366. * test/SegmentManTest.cc: int -> int32_t
  12367. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12368. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12369. Move sleep functions to Util class:
  12370. * src/Util.cc
  12371. (sleep): New function.
  12372. (usleep): New function.
  12373. * src/DownloadCommand.cc: sleep -> Util::sleep
  12374. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12375. MinGW build enhancements. The following files are added:
  12376. * src/timegm.{c,h}
  12377. Changes to support the above new files:
  12378. * configure.ac
  12379. * src/Makefile.am
  12380. * src/a2time.h
  12381. * src/Util.cc:
  12382. * src/strptime.c: Added support for %Z option.
  12383. Fixed MinGW non-blocking bug.
  12384. * src/SocketCore.cc
  12385. * src/HttpRequestCommand.cc
  12386. Miscellenous build fixes/enhancements.
  12387. * configure.ac: Added summary report.
  12388. * src/Platform.h: Tweaked #include's.
  12389. * src/a2netcompat.h: Tweaked #include's.
  12390. * src/strptime.h: Tweaked #include's.
  12391. * src/gai_strerror.c: Tweaked #include's.
  12392. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12393. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12394. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12395. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12396. Increased the initial connection size in BitTorrent download to 40.
  12397. * src/BtRuntime.h
  12398. Added the usage message of --peer-id-prefix option.
  12399. * src/main.cc
  12400. * Release 0.11.2
  12401. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12402. MessageDigestHelper is introduced in order to simplify the use
  12403. of message digest. Removed repeated code.
  12404. The message digest algorithm is now specified by string, like "sha1",
  12405. "md5".
  12406. * src/messageDigest.{h, cc}
  12407. * src/MessageDigestHelper.{h, cc}: New class.
  12408. * src/DefaultPieceStorage.cc
  12409. * src/DefaultBtContext.{h, cc}
  12410. (computeFastSet): New function.
  12411. (setInfoHash): Added for unit testing.
  12412. (setNumPieces): Added for unit testing.
  12413. * src/DefaultBtInteractive.cc
  12414. * src/BtPieceMessage.cc
  12415. * src/Peer.cc
  12416. * src/Checksum.h
  12417. * src/message.h
  12418. * src/IteratableChecksumValidator.h
  12419. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12420. inside it.
  12421. * src/SegmentMan.{h, cc}
  12422. (checkIntegrity): Removed.
  12423. * src/IteratableChunkChecksumValidator.{h, cc}
  12424. * src/Util.h
  12425. (sha1Sum): Removed.
  12426. (simpleMessageDigest): Removed.
  12427. (fileChecksum): Removed.
  12428. (computeFastSet): Removed.
  12429. * src/ShaVisitor.cc
  12430. * src/ChunkChecksum.h
  12431. * src/DownloadCommand.cc
  12432. Removed messageDigest virtual functions.
  12433. * src/MultiDiskAdaptor.{h, cc}
  12434. * src/DiskAdaptor.h
  12435. * src/ByteArrayDiskWriter.h
  12436. * src/DiskWriter.h
  12437. * src/DiskAdaptorWriter.h
  12438. * src/AbstractSingleDiskAdaptor.{h, cc}
  12439. * src/AbstractDiskWriter.{h, cc}
  12440. Fixed comilation error when message digest is disabled.
  12441. * src/MetalinkEntry.{h, cc}
  12442. * src/MetalinkRequestInfo.cc
  12443. Removed srandom and random.
  12444. * src/SimpleRandomizer.h
  12445. Added size() virtual function to DiskAdaptor
  12446. * src/MultiDiskAdaptor.h
  12447. Fixed the bug that causes that files are not opened correctly in
  12448. multi-file torrent.
  12449. * src/TorrentRequestInfo.cc
  12450. * src/MultiDiskAdaptor.cc
  12451. Added SHA256 support
  12452. * src/messageDigest.cc
  12453. * src/Xml2MetalinkProcessor.cc
  12454. Show supported message digest algorithms
  12455. * src/main.cc
  12456. Updated contact info.
  12457. * src/main.cc
  12458. Applied Ross's patch
  12459. * src/a2netcompat.h
  12460. * src/main.cc
  12461. Fixed the bug that prevents a remote metalink from not being processed
  12462. even if '-o foo.metalink' is specified.
  12463. * src/MetalinkRequestInfo.cc
  12464. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12465. Merged Dan's patch:
  12466. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12467. Use va_copy to avoid core dump on amd64:
  12468. * src/SimpleLogger.cc
  12469. Updated contact info.
  12470. * src/main.cc
  12471. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12472. digest is not available.
  12473. * src/MetalinkEntry.h
  12474. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12475. Make a2netcompat.h include a2io.h to fix compilation error:
  12476. * src/a2netcompat.h
  12477. * src/SocketCore.cc: Removed include of a2io.h
  12478. * src/Util.cc: Removed include of a2io.h
  12479. Gather time related functions to a2time.h:
  12480. * src/a2time.h: New file.
  12481. * src/DefaultPeerStorage.cc
  12482. * src/SimpleLogger.cc
  12483. * src/Util.{h, cc}
  12484. * src/SimpleRandomizer.h
  12485. * src/TimeA2.{h,cc}
  12486. * src/DownloadCommand.cc
  12487. * src/main.cc
  12488. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12489. a2netcompat.h:
  12490. * src/NameResolver.cc
  12491. Fixed compilation error without openssl:
  12492. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12493. Added default block to suppress compiler warnings:
  12494. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12495. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12496. MinGW build enhancements. The following files are added:
  12497. * src/gai_strerror.{c,h}
  12498. * src/gettimeofday.{c,h}
  12499. Changes to support the above new files:
  12500. * configure.ac
  12501. * src/Makefile.am
  12502. * src/a2netcompat.h
  12503. * src/TimeA2.cc
  12504. * src/DefaultPeerStorage.cc
  12505. * src/NameResolver.cc: removed mingw_strerror() function.
  12506. * src/SocketCore.cc: removed mingw_strerror() function.
  12507. Miscellaneous MinGW build fixes.
  12508. * src/a2io.h: Use _lseeki64() instead of lseek()
  12509. * src/common.h
  12510. * src/DefaultFileAllocator.cc
  12511. * src/GlowFileAllocator.cc
  12512. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12513. * src/NameResolver.cc
  12514. (callback): Changed int32_t to int.
  12515. (resolve): Changed int32_t to int.
  12516. * src/Platform.cc
  12517. * src/Platform.h
  12518. * test/MultiDiskWriterTest.cc
  12519. * test/PeerMessageUtilTest.cc
  12520. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12521. Other enhancements and fixes.
  12522. * src/HttpRequestCommand.cc
  12523. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12524. * src/SocketCore.cc:
  12525. (error): New function to abstract errno/WSAGetLastError().
  12526. (errorMsg): New function to abstract errno/WSAGetLastError().
  12527. (initiateSecureConnection): Added more detailed error reporting.
  12528. * src/SocketCore.h: Added private variable blocking, to allow
  12529. proper handling of OpenSSL psuedo-errors.
  12530. * src/message.h
  12531. (EX_SSL_INIT_FAILURE)
  12532. (EX_SSL_IO_ERROR)
  12533. (EX_SSL_PROTOCOL_ERROR)
  12534. (EX_SSL_UNKNOWN_ERROR)
  12535. (EX_SSL_CONNECT_ERROR)
  12536. (EX_SOCKET_BLOCKING)
  12537. (EX_SOCKET_NONBLOCKING)
  12538. (EX_SOCKET_UNKNOWN_ERROR)
  12539. * src/Util.cc
  12540. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12541. reserved name.
  12542. (httpGMT): Fixed typo.
  12543. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12544. Merged Ross's win32 patch(manually)
  12545. In the course of merging, following files are added.
  12546. * src/strptime.{h,c}
  12547. * src/libgen.{h,c}
  12548. * src/inet_aton.{h,c}
  12549. * src/Platform.{h,cc}
  12550. * src/localtime_r.{h,c}
  12551. * src/getaddrinfo.{h,c}
  12552. I've gethered network related things, and put them to following file:
  12553. * src/a2netcompat.h
  12554. Also io related things are put to following file:
  12555. * src/a2io.h
  12556. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12557. * src/message.h
  12558. (MSG_ALLOCATION_COMPLETED)
  12559. (EX_TOO_LARGE_FILE)
  12560. (EX_SIZE_MISMATCH)
  12561. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12562. (EX_INVALID_CHUNK_CHECKSUM)
  12563. (EX_INVALID_RANGE_HEADER)
  12564. * src/FileAllocationCommand.cc
  12565. * src/HttpResponse.cc
  12566. * src/RequestGroup.cc
  12567. * src/MultiDiskAdaptor.cc
  12568. * src/OptionHandlerImpl.h
  12569. * src/HttpResponseCommand.cc
  12570. * src/FtpNegotiateCommand.cc
  12571. * src/IteratableChecksumValidator.cc
  12572. * src/SegmentMan.cc
  12573. * src/ChunkChecksumValidator.cc
  12574. Added Randomizer::getRandomNumber(long int)
  12575. * src/Randomizer.h (getRandomNumber)
  12576. * src/SimpleRandomizer.h (getRandomNumber)
  12577. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12578. * src/Util.cc (randomAlpha): Use this new function.
  12579. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12580. Converted int's to in32_t. long long int's are also converted to
  12581. int64_t
  12582. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12583. Fixed the bug that prevents cookies from being sent to the server
  12584. if the domain of cookie is FQDN and starts with ".".
  12585. * src/Cookie.cc (match)
  12586. To add the ability to change peer id.
  12587. * src/DefaultBtContext.h
  12588. (_peerIdPrefix): New variable
  12589. (setPeerIdPrefix): New function.
  12590. * src/torrentRequestInfo.cc
  12591. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12592. DefaultBtContext.
  12593. * src/main.cc (main): Added peer-id-prefix command-line option.
  12594. The usage message is not added yet.
  12595. * src/DefaultBtContext.cc
  12596. (generatePeerId): Use _peerIdPrefix.
  12597. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12598. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12599. Fixed the bug that prevents filename in content-disposition from
  12600. being retrieved when filename is not quoted.
  12601. * src/Util.cc (getContentDispositionFilename)
  12602. Fixed the bug that causes infinate loop and memory leak when file open
  12603. operation failed.
  12604. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12605. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12606. Fixed the bug that causes segfault when all URIs specified are
  12607. unsupported.
  12608. * src/RequestGroupMan.cc (getInitialCommands)
  12609. Check if RequestGroup::createNextCommand() returns empty list of
  12610. commands.
  12611. * src/RequestGroup.cc (createNextCommand)
  12612. Change log level from info to error so that users can notice that
  12613. an error occurred.
  12614. Fixed the bug that causes segfault when a zero-sized file is
  12615. downloaded.
  12616. * src/BitfieldMan.cc (isAllBitSet)
  12617. Return true if bitfieldLength is 0.
  12618. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12619. * src/main.cc
  12620. (showUsage): Added 3 usage examples for metalink download.
  12621. Replace MetalinkChunkChecksum with ChunkChecksum.
  12622. * src/MetalinkChunkChecksum.h: Removed.
  12623. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12624. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12625. * src/Xml2MetalinkProcessor.cc
  12626. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12627. * src/MetalinkRequestInfo.cc (execute)
  12628. * Release 0.11.1
  12629. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12630. Reads URIs from stdin when "-i -" is specified.
  12631. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12632. * src/UriListParser.h, src/UriListParser.cc: New class.
  12633. * src/StreamUriListParser.h: New class.
  12634. * src/FileUriListParser.h: New class.
  12635. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12636. instead of UriFileListParser.
  12637. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12638. Made console readout more readable.
  12639. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12640. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12641. Fix the bug that causes -s option not to work.
  12642. * src/main.cc (main)
  12643. * src/a2algo.h: New file.
  12644. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12645. Create directory structure specified in metalink file.
  12646. * src/RequestGroup.h, src/RequestGroup.cc
  12647. (initAndOpenFile): Create a directory to store files if it does not
  12648. exist.
  12649. (getDir): New function.
  12650. Added ETA and download speed for an individual file to readout.
  12651. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12652. * src/RequestGroup.h
  12653. (calculateDownloadSpeed): New function.
  12654. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12655. Made -S option work with metalink file and provided selective download
  12656. to metalink.
  12657. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12658. (filename): Removed.
  12659. (file): New variable.
  12660. (size): Removed.
  12661. (operator=): Updated.
  12662. (getPath): New function.
  12663. (getLength): New function.
  12664. (toFileEntry): New function.
  12665. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12666. (execute): Use toStream.
  12667. (showFileEntry): Removed.
  12668. * src/MetalinkRequestInfo.h
  12669. (targetFiles): New variable.
  12670. (setTargetFiles): New variable.
  12671. * src/MetalinkRequestInfo.cc
  12672. (execute): Added the ability to print file information included in
  12673. a metalink file.
  12674. Added selective download mode to metalink.
  12675. * src/main.cc
  12676. (showUsage): Updated to denote that -S and --select-file options are
  12677. applicable to metalink.
  12678. * src/FileEntry.h
  12679. (operator=): New function.
  12680. (getBasename): New function.
  12681. (getDirname): New function.
  12682. * src/Util.h, src/Util.cc
  12683. (toStream): New function.
  12684. * src/Xml2MetalinkProcessor.cc: Updated.
  12685. Made aria2 work with metalink with directory structure.
  12686. * src/File.h, src/File.cc
  12687. (getBasename): New function.
  12688. (getDirname): New function.
  12689. * src/RequestGroup.h, src/RequestGroup.cc
  12690. (_topDir): New variable.
  12691. (setTopDir): New function.
  12692. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12693. Rewrote HTTP header parsing with stringstream.
  12694. * src/HttpConnection.h, src/HttpConnection.cc
  12695. (HttpRequestEntry): New class.
  12696. (headerBuf): Removed.
  12697. (headerBufLength): Removed.
  12698. (outstandingHttpRequests): Now its element type is
  12699. HttpRequestEntryHandle.
  12700. (findEndOfHeader): Removed.
  12701. (receiveResponse): Rewritten.
  12702. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12703. Updated doc for -j option to notice that it should be used with -i
  12704. option.
  12705. * src/main.cc (showUsage)
  12706. Removed unused classes.
  12707. * src/RequestInfo.h
  12708. (FileInfo): Removed.
  12709. (checksum): Removed.
  12710. (fileInfo): Removed.
  12711. (setChecksum): Removed.
  12712. (getChecksum): Removed.
  12713. (getFileInfo): Removed.
  12714. Use ISO units.
  12715. * src/ConsoleDownloadEngine.cc
  12716. * src/TorrentConsoleDownloadEngine.cc
  12717. * src/Util.cc (abbrevSize)
  12718. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12719. Added the default listening ports to the help message.
  12720. * src/main.cc (showUsage)
  12721. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12722. Reduce the number of calls to gettimeofday to lower CPU load.
  12723. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12724. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12725. * src/Peer.h (calculateUploadSpeed): New function.
  12726. (calculateDownloadSpeed): New function.
  12727. * src/DefaultPeerStorage.cc
  12728. (CalculateStat): Added _now variable.
  12729. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12730. and Peer::calculateUploadSpeed(const struct timeval&)
  12731. Drop connection if no request or piece message is exchanged in
  12732. a certain interval.
  12733. * src/DefaultBtInteractive.h
  12734. (btRuntime): New variable.
  12735. (inactiveCheckPoint): New variable.
  12736. (checkActiveInteraction): New function.
  12737. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12738. request or piece message is received.
  12739. (checkActiveInteraction): New function.
  12740. (doInteractionProcessing): Call checkActiveInteraction.
  12741. Fixed the bug that causes remote Metalink and Torrent files are not
  12742. processed.
  12743. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12744. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12745. Changed format of log file.
  12746. * src/SimpleLogger.cc
  12747. * Release 0.11.0
  12748. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12749. * src/AbstractCommand.cc
  12750. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12751. MSG_MAX_TRY from error to info.
  12752. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12753. * src/message.h
  12754. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12755. (MSG_DOWNLOAD_ABORTED): Added %s.
  12756. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12757. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12758. * src/PeerAbstractCommand.cc
  12759. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12760. * src/Request.h
  12761. (cookieBox): Made ShardHandle.
  12762. * src/RequestGroup.h, src/RequestGroup.cc
  12763. (createNextCommandWithAdj): New function.
  12764. * src/FileAllocationCommand.cc
  12765. (executeInternal): Use createNextCommandWithAdj().
  12766. * src/CheckIntegrityCommand.cc
  12767. (executeInternal): Use createNextCommandWithAdj().
  12768. Added --load-cookies command-option.
  12769. * src/OptionHandlerFactory.cc
  12770. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12771. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12772. Now aria2 can handle cookie's expiration date.
  12773. * src/Cookie.h (expires): Changed its type to time_t.
  12774. * src/main.cc: Added --load-cookies command-line option.
  12775. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12776. * src/Util.h, src/Util.cc (httpGMT): New function.
  12777. * src/Request.cc (Request): Initialize cookieBox using
  12778. CookieBoxFactory.
  12779. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12780. * src/CookieParser.h, src/CookieParser.cc: New class.
  12781. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12782. * src/HttpResponseCommand.cc
  12783. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12784. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12785. download.
  12786. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12787. Added -j command-line option.
  12788. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12789. * src/main.cc
  12790. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12791. Rewritten using stringstream.
  12792. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12793. Rewritten using stringstream.
  12794. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12795. Make download size shown in MB, KB.
  12796. * src/ConsoleDownloadEngine.h (sendStatistics)
  12797. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12798. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12799. Accept incoming connections if download rate is low.
  12800. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12801. (_lowestSpeedLimit): New variable.
  12802. (setLowestSpeedLimit): New function.
  12803. (execute): Accept incoming connections if download rate is low.
  12804. MAX_PEERS is ignored in this case.
  12805. Disable PREF_OUT in multiple concurrent download:
  12806. * src/RequestGroup.h, src/RequestGroup.cc
  12807. (setUserDefinedFilename): New function.
  12808. * src/DownloadEngineFactory.cc
  12809. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12810. concurrent download.
  12811. * src/DefaultSegmentManFactory.cc
  12812. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12813. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12814. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12815. Added its overloaded method.
  12816. * src/RequestGroup.h
  12817. (_numConcurrentCommand): New variable.
  12818. (setNumConcurrentCommand): New function.
  12819. * src/RequestGroup.cc
  12820. Abort download if same file is being downloaded concurrently.
  12821. * src/RequestGroup.h, src/RequestGroupMan.cc
  12822. (isSameFileBeingDownloaded): New function.
  12823. * src/HttpResponseCommand.cc (executeInternal)
  12824. * src/FtpNegotiateCommand.cc (recvSize)
  12825. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12826. * main.cc: Added help message for -i option.
  12827. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12828. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12829. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12830. * src/MetalinkEntry.h
  12831. (checksum): Changed to ChecksumHandle
  12832. * src/MetalinkRequestInfo.cc
  12833. (checksum): Changed to ChecksumHandle
  12834. * src/File.cc
  12835. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12836. * src/common.h
  12837. (DIR_OPEN_MODE): New definition
  12838. * src/RequestGroup.cc
  12839. (prepareForNextAction): Added an argument.
  12840. * src/message.h
  12841. (MSG_GOOD_CHECKSUM): New definition
  12842. (MSG_BAD_CHECKSUM): New definition
  12843. * src/HttpResponseCommand.cc
  12844. (handleDefaultEncoding): Continue download sequence in new
  12845. non-segmented download.
  12846. * src/FileAllocationEntry.h
  12847. (_nextDownloadCommand): New variable.
  12848. * src/DownloadCommand.cc
  12849. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12850. available.
  12851. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12852. * src/IteratableChecksumValidator.h,
  12853. src/IteratableChecksumValidator.cc: New class.
  12854. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12855. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12856. Change file mode to 666:
  12857. * src/common.h (OPEN_MODE): New definition.
  12858. * src/File.cc
  12859. * src/Util.cc
  12860. * src/Directry.cc
  12861. * src/AbstractDiskWriter.cc
  12862. Change the level of log message "download aborted" to debug:
  12863. * src/PeerAbstractCommand.cc (execute)
  12864. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12865. * src/TrackerWatcherCommand.cc
  12866. (createCommand): Sleep some seconds after request failed.
  12867. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12868. then abort tracker request.
  12869. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12870. * Added the simultaneous download feature.
  12871. * src/main.cc: Print "Exception caught: " when exception is caught.
  12872. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12873. * src/ActivePeerConnectionCommand.cc
  12874. * src/PeerInteractionCommand.cc
  12875. * src/BtRuntime.h
  12876. (cuidCounter): Removed.
  12877. (getNewCuid): Removed.
  12878. * src/DownloadEngineFactory.cc
  12879. * src/PeerListenCommand.cc
  12880. * src/TrackerUpdateCommand.cc
  12881. * src/PeerInitiateConnectionCommand.cc
  12882. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12883. * src/PeerAbstractCommand.cc
  12884. (onAbort): Call PeerStorage::returnPeer()
  12885. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12886. (incomingPeers): New variable.
  12887. (addIncomingPeer): New function.
  12888. (returnPeer): New function.
  12889. (onErasingPeer): New function.
  12890. (addPeer): push_back -> push_front
  12891. (getActivePeers): Rewritten.
  12892. (calculateStat): Rewritten.
  12893. * src/PeerStorage.h
  12894. (TransferStat::copy): New function.
  12895. (TransferStat::TransferStat): New function.
  12896. (TransferStat::operator=): New function.
  12897. (addIncomingPeer): New function.
  12898. (returnPeer): New function.
  12899. * src/PeerListenCommand.cc
  12900. (execute): Use PeerStorage::addIncomingPeer() instead of
  12901. Peer::addPeer().
  12902. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12903. Connect to a peer actively when download speed is lower than specified
  12904. speed in torrent download:
  12905. * src/ActivePeerConnectionCommand.h: New class.
  12906. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12907. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12908. * src/main.cc: Fixed the bug that prevents download if .netrc
  12909. doesn't exist.
  12910. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12911. To cache resolved hostname:
  12912. * src/AbstractCommand.h, src/AbstractCommand.cc
  12913. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12914. Added dns cache.
  12915. * src/FtpInitiateConnectionCommand.cc
  12916. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12917. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12918. NameResolver working without ares.
  12919. * src/TorrentRequestInfo.cc
  12920. (execute): Don't cache dns in torrent download.
  12921. * src/HttpInitiateConnectionCommand.cc
  12922. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12923. * src/DNSCache.h: New class.
  12924. * src/UrlRequestInfo.cc
  12925. (execute): Use dns cache.
  12926. In http request, suppress port number in http request header if port
  12927. is 80 or 443:
  12928. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12929. request header if port is 80 or 443.
  12930. (createProxyRequest): Allways send port number.
  12931. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12932. To add the command-line option which disables netrc support:
  12933. * src/OptionHandlerFactory.cc
  12934. (createOptionHandlers): Added PREF_NO_NETRC.
  12935. * src/main.cc: Added -n option.
  12936. * src/prefs.h (PREF_NO_NETRC): New definition.
  12937. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12938. V_TRUE.
  12939. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12940. is V_FALSE. This may get configurable in the future release.
  12941. To clear peer's error status by time basis:
  12942. * src/PeerAbstractCommand.cc
  12943. (onAbort): Call Peer::startBadCondition().
  12944. * src/Peer.h, src/Peer.cc
  12945. (error): Removed.
  12946. (_badConditionStartTime): New variable.
  12947. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12948. (startBadCondition): New function.
  12949. (isGood): New function.
  12950. * src/DefaultPeerStorage.cc
  12951. (addPeer): Use Peer::isGood().
  12952. (FindFinePeer): Use Peer::isGood().
  12953. Always include port number in http request header:
  12954. * src/HttpRequest.cc (getHostText): Always include port number in
  12955. http request header.
  12956. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12957. To the ability to read options from a config file:
  12958. * src/main.cc: Command-line parameter validation is delegated to
  12959. OptionHandler class.
  12960. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12961. * src/Option.h, src/Option.cc (clear): New function.
  12962. * src/OptionParser.h, src/OptionParser.cc: New class.
  12963. * src/OptionHandler.h: New class.
  12964. * src/NameMatchOptionHandler.h: New class.
  12965. * src/OptionHandlerImpl.h: New classes.
  12966. * src/prefs.h: '_' -> '-'
  12967. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12968. (FTP_PASV): New definition.
  12969. * src/Util.h, src/Util.cc (getRealSize): New function.
  12970. To disable netrc support if .netrc file does not have correct
  12971. permissions:
  12972. * src/File.h, src/File.cc (mode): New function.
  12973. To prevent confidential information to be logged:
  12974. * src/HttpConnection.h, src/HttpConnection.cc
  12975. (eraseConfidentialInfo): New function.
  12976. (sendRequest): Call eraseConfidentialInfo().
  12977. (sendProxyRequest): Call eraseConfidentialInfo().
  12978. * src/main.cc: Validate permissions of .netrc file.
  12979. To add --user-agent command-line option:
  12980. * src/main.cc: Added new command line option: --user-agent
  12981. * src/prefs.h (PREF_USER_AGENT): New definition.
  12982. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12983. parameter to HttpRequest object.
  12984. * src/AbstractProxyRequestCommand.cc
  12985. (executeInternal): Set user-agent option parameter to HttpRequest
  12986. object.
  12987. Marged the patches from Dan Fandrich.
  12988. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12989. Use filename and size from Metalink file instead of sending HEAD
  12990. request:
  12991. * src/UrlRequestInfo.h
  12992. (_filename): New variable.
  12993. (_totalLength): New variable.
  12994. (setTotalLength): New variable.
  12995. (setFilename): New variable.
  12996. * src/MetalinkRequestInfo.cc
  12997. (execute): Set filename and size to UrlRequestInfo
  12998. * src/UrlRequestInfo.cc
  12999. (execute): Use filename and size from Metalink instead of seding
  13000. HEAD request to servers.
  13001. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13002. To add the ability to resume downloading a partially downloaded file
  13003. which is downloaded from the beginning:
  13004. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13005. takes this role.
  13006. * src/main.cc: Added -c option.
  13007. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13008. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13009. * src/prefs.h (PREF_CONTINUE): New definition.
  13010. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13011. * src/DefaultDiskWriter.cc
  13012. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13013. * src/AbstractDiskWriter.h
  13014. (glowFileAllocator): New variable.
  13015. * src/AbstractDiskWriter.cc
  13016. (openExistingFile): Now preallocate file space from the end of the
  13017. existing file if totalLength argument is specified and grater than 0.
  13018. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13019. to download exists in local, continue the download of the file.
  13020. --allow-overwrite=true is assumed in this context.
  13021. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13022. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13023. Throw exception if --check-integrity=true is specified but chunk
  13024. checksums are not provided:
  13025. * src/UrlRequestInfo.cc
  13026. Do not print URLs to stdout:
  13027. * src/UrlRequestInfo.cc
  13028. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13029. * src/Request.h: Use AuthResolver to get authentication information.
  13030. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13031. set to RequestFactory object.
  13032. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13033. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13034. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13035. create Request object.
  13036. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13037. To integrate Netrc into exsiting classes:
  13038. * src/Request.h
  13039. (_userDefinedAuthConfig): New variable.
  13040. (findNetrcAuthenticator): New function.
  13041. (segment): Removed.
  13042. (setUserDefinedAuthConfig): New function.
  13043. (resolveHttpAuthConfigItem): New function.
  13044. (resolveFtpAuthConfigItem): New function.
  13045. (resolveHttpProxyAuthConfigItem): New function.
  13046. * src/HttpRequest.h
  13047. (authConfig): Removed.
  13048. (proxyAuthConfig): Removed.
  13049. (setAuthConfig): Removed.
  13050. (setProxyAuthConfig): Removed.
  13051. * src/UrlRequest.h
  13052. (getHeadResult): Added a parameter: authConfigHandle
  13053. * src/common.h
  13054. (SingletonHolder.h): New include.
  13055. * src/main.cc
  13056. (Netrc.h): New include.
  13057. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13058. Added initial value of PREF_NETRC_PATH.
  13059. Added the initialization of netrc.
  13060. * src/AuthConfig.h: New class.
  13061. * src/prefs.h
  13062. (PREF_NETRC_PATH): New definition.
  13063. * src/HttpAuthConfig.h: Removed.
  13064. * src/Netrc.cc
  13065. (getRequiredNextToken): New function.
  13066. (skipMacdef): New function.
  13067. (parse): Rewritten.
  13068. * src/Netrc.h
  13069. (getRequiredNextToken): New function.
  13070. (skipMacdef): New function.
  13071. * src/Util.h, src/Util.cc
  13072. (getHomeDir): New function.
  13073. * src/TrackerWatcherComand.cc
  13074. (createRequestCommand): Use AuthConfig.
  13075. * src/FtpConnection.cc
  13076. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13077. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13078. * src/Request.cc
  13079. (findNetrcAuthenticator): New function.
  13080. (resolveHttpAuthConfigItem): New function.
  13081. (resolveFtpAuthConfigItem): New function.
  13082. (resolveHttpProxyAuthConfigItem): New function.
  13083. * src/UrlRequestInfo.cc: Use AuthConfig.
  13084. * src/HttpRequest.cc
  13085. (createRequest): Use authConfig.
  13086. (getProxyAuthString): Use authConfig.
  13087. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13088. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13089. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13090. To reduce overhead to find commands whose socket is either
  13091. readable or writable in the download engine loop:
  13092. * src/Command.h, src/Command.cc
  13093. (STATUS): New enum.
  13094. (status): New variable.
  13095. (statusMatch): New function.
  13096. (setStatusActive): New function.
  13097. (setStatusInactive): New function.
  13098. * src/DownloadEngine.h, src/DownloadEngine.cc
  13099. (executeCommand): New function.
  13100. (run): Simplified.
  13101. (waitData): Call Command::setStatusActive() when command's socket is
  13102. readable or writable.
  13103. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13104. To handle Segment as SegmentHandle:
  13105. * src/AbstractCommand.cc (execute): Rewritten.
  13106. * src/SegmentMan.h: Segment -> SegmentHandle
  13107. Introducded HttpResponse class, HttpRequest class to improve code
  13108. extensiveness and make it clear:
  13109. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13110. HttpResponse class.
  13111. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13112. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13113. * src/HttpConnection.cc: Contruction of http request were moved to
  13114. HttpRequest class.
  13115. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13116. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13117. * src/HttpAuthConfig.h: New class.
  13118. * src/Range.h: New class.
  13119. To make FtpTunnel{Request, Response}Command and
  13120. HttpProxy{Request, Response}Command derived from
  13121. AbstractProxy{Request, Response}Command:
  13122. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13123. Derived from AbstractProxyRequestCommand class.
  13124. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13125. Derived from AbstractProxyResponseCommand class.
  13126. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13127. Derived from AbstractProxyRequestCommand class.
  13128. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13129. Derived from AbstractProxyResponseCommand class.
  13130. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13131. : New class.
  13132. * src/AbstractProxyResponseCommand.h,
  13133. src/AbstractProxyResponseCommand.cc: New class.
  13134. To add netrc support:
  13135. * src/Netrc.h, src/Netrc.cc: New class.
  13136. * src/Util.h, src/Util.cc (split): New function.
  13137. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13138. "Content-Range" header instead of "Range" header.
  13139. * src/HttpHeader.h
  13140. (getStatus): Removed.
  13141. (setStatus): Removed.
  13142. * src/Segment.h
  13143. (getPositionToWrite): New function.
  13144. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13145. * src/HttpHeader.h
  13146. (Range.h): New include.
  13147. (status): New variable.
  13148. (HttpHeader): Initialized status with 0.
  13149. (getStatus): New function.
  13150. (setStatus): New function.
  13151. (getRange): New function.
  13152. (HttpHeaderHandle): New function.
  13153. * src/HttpHeader.cc
  13154. (getRange): New function.
  13155. * src/Request.h
  13156. (RequestWeakHandle): New definition.
  13157. * src/HttpConnection.h
  13158. (HttpConnectionHandle): New type definition.
  13159. * src/HttpConnection.cc
  13160. (receiveResponse): Set HTTP status to headers.
  13161. * src/main.cc
  13162. (showUsage): Fixed typo.
  13163. * src/Segment.h
  13164. (SegmentHandle): New type definition.
  13165. * src/BitfieldMan.h
  13166. (getMissingUnusedLength): New function.
  13167. * src/BitfieldMan.cc
  13168. (getMissingUnusedLength): New function.
  13169. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13170. To fix static initialization order problem:
  13171. * src/BitfieldManFactory.h
  13172. (defaultRandomizer): Removed.
  13173. (factory): New variable.
  13174. (getNewFactory): Removed.
  13175. (getFactoryInstance): New function.
  13176. (setDefaultRandomizer): Rewritten.
  13177. (getDefaultRandomizer): Rewritten.
  13178. * src/BitfieldManFactory.cc
  13179. (defaultRandomizer): Removed.
  13180. (factory): Initialized to 0.
  13181. (BitfieldManFactory): Initialized randomizer to 0.
  13182. * src/DefaultPieceStorage.cc
  13183. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13184. * src/Peer.cc
  13185. (Peer): getNewFactory() -> getFactoryInstance()
  13186. * src/SegmentMan.cc
  13187. (initBitfield): getNewFactory() -> getFactoryInstance()
  13188. * src/Piece.cc
  13189. (Piece): getNewFactory() -> getFactoryInstance()
  13190. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13191. To fix the bug that causes crash on Max OS X:
  13192. * src/SimpleRandomizer.h
  13193. (getInstance): Create new instance if the static variable is null.
  13194. * src/SimpleRandomizer.cc
  13195. (randomizer): Initialized to 0.
  13196. * src/BitfieldManFactory.h
  13197. (getNewFactory): Removed the call to setRandomizer().
  13198. To fix the miscalculation of the range of checksum:
  13199. * src/BitfieldMan.h
  13200. (isBitSetOffsetRange): New function.
  13201. * src/BitfieldMan.cc
  13202. (isBitSetOffsetRange): New function.
  13203. * src/SegmentMan.cc
  13204. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13205. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13206. * Release 0.10.1
  13207. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13208. To lower CPU usage in BitTorrent download when --max-upload-limit
  13209. command-line option specified:
  13210. * src/DefaultBtMessageDispatcher.cc
  13211. (sendMessages): Calculate uploading speed only when current message
  13212. is uploading data and is not sent yet.
  13213. * src/DefaultPeerStorage.h
  13214. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13215. * src/HttpResponseCommand.cc
  13216. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13217. This fixes compile error in Soralis 10.
  13218. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13219. To fix segfault in Metalink download:
  13220. * src/UrlRequestInfo.h
  13221. (filename): Removed.
  13222. (totalLength): Removed.
  13223. (setTotalLength): Removed.
  13224. (setFilename): Removed.
  13225. * src/MetalinkRequestInfo.cc
  13226. (execute): Do not set filename and totalLength to reqInfo.
  13227. Set chunk checksum to reqInfo if it is not null.
  13228. * src/HttpResponseCommand.cc
  13229. (executeInternal): Fixed filename in log.
  13230. (handleDefaultEncoding): Removed the call to initBitfield() and
  13231. markAllPiecesDone().
  13232. (handleOtherEncoding): Added HEAD method handling.
  13233. * src/FtpNegotiateCommand.cc
  13234. (executeInternal): Added SEQ_HEAD_OK handling.
  13235. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13236. return false.
  13237. * src/FtpNegotiateCommand.h
  13238. (SEQ_HEAD_OK): New definition.
  13239. * src/SegmentMan.cc
  13240. (initBitfield): Delete bitfield.
  13241. (isChunkChecksumValidationReady): Fixed the condition.
  13242. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13243. works fine.
  13244. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13245. * src/Xml2MetalinkProcessor.h
  13246. (xpathExists): New function.
  13247. * src/Xml2MetalinkProcessor.cc
  13248. (xpathExists): New function.
  13249. Not to send HEAD request if filename and size are available in Metalink
  13250. file:
  13251. * src/UrlRequestInfo.h
  13252. (filename): New variable.
  13253. (totalLength): New variable.
  13254. (setTotalLength): New function.
  13255. (setFilename): New function.
  13256. * src/MetalinkRequestInfo.cc
  13257. (execute): Set filename and size to UrlRequestInfo.
  13258. * src/MetalinkEntry.cc
  13259. (MetalinkEntry): Initialize size with 0.
  13260. * src/UrlRequestInfo.cc
  13261. (execute): Set filename and size to SegmentMan.
  13262. Not to download rest of the files after selected files are downloaded
  13263. in BitTorrent:
  13264. * src/PieceStorage.h
  13265. (allDownloadFinished): New function.
  13266. * src/DefaultBtAnnounce.cc
  13267. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13268. downloadFinished.
  13269. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13270. * src/DefaultPieceStorage.cc
  13271. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13272. Commented out the call to finishSelectiveDownloadingMode().
  13273. (downloadFinished): Call isFilteredAllBitSet() instead of
  13274. isAllBitSet().
  13275. (allDownloadFinished): New function.
  13276. * src/DefaultBtInteractive.cc
  13277. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13278. downloadFinished().
  13279. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13280. * src/TorrentDownloadEngine.cc
  13281. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13282. * src/BitfieldMan.h
  13283. (isFilteredAllBitSet): New function.
  13284. * src/ShareRatioSeedCriteria.h
  13285. (PieceStorage.h): New include.
  13286. (pieceStorage): New variable.
  13287. (evaluate):
  13288. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13289. * src/BitfieldMan.cc
  13290. (isFilteredAllBitSet): New function.
  13291. (isAllBitSet): Filter is not took into account.
  13292. Rename --force-truncate as --allow-overwrite:
  13293. * src/TorrentRequestInfo.cc
  13294. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13295. * src/main.cc
  13296. (showUsage): --force-truncate -> --allow-overwrite
  13297. * src/message.h
  13298. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13299. * src/prefs.h
  13300. (PREF_FORCE_TRUNCATE): Removed.
  13301. (PREF_ALLOW_OVERWRITE): New definition.
  13302. * src/SegmentMan.cc
  13303. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13304. * src/MetalinkRequestInfo.cc
  13305. (execute): Queueing message are now logged in info level.
  13306. * src/common.h
  13307. (LONG_LONG_MAX): Removed.
  13308. (LONG_LONG_MIN): Removed.
  13309. * src/HttpResponseCommand.cc
  13310. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13311. * src/FtpNegotiateCommand.cc
  13312. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13313. * src/main.cc
  13314. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13315. command-line option.
  13316. (main): Added --check-integriy and --realtime-chunk-checksum
  13317. command-line option.
  13318. --force-truncate -> --allow-overwrite
  13319. Set initial value of --check-integrity option to false.
  13320. Don't show usage when error occurs while persing command-line options.
  13321. Removed deprecated --upload-limit option.
  13322. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13323. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13324. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13325. * src/BtAllowedFastMessage.cc:
  13326. * src/BtBitfieldMessage.cc
  13327. * src/BtCancelMessage.cc
  13328. * src/BtChokeMessage.cc
  13329. * src/BtHaveAllMessage.cc
  13330. * src/BtHaveMessage.cc
  13331. * src/BtHaveNoneMessage.cc
  13332. * src/BtInterestedMessage.cc
  13333. * src/BtNotInterestedMessage.cc
  13334. * src/BtPieceMessage.cc
  13335. * src/BtPortMessage.cc
  13336. * src/BtRejectMessage.cc
  13337. * src/BtRequestMessage.cc
  13338. * src/BtSuggestPieceMessage.cc
  13339. * src/BtUnchokeMessage.cc
  13340. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13341. files are affected.
  13342. * src/ChunkChecksumValidator.cc
  13343. * src/SegmentMan.cc
  13344. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13345. To add chunk checksum validation:
  13346. * src/MetalinkEntry.h
  13347. (MetalinkChunkChecksum.h): New include.
  13348. (chunkChecksum): New variable.
  13349. * src/Request.h
  13350. (method): New variable.
  13351. (setMethod): New function.
  13352. (getMethod): New function.
  13353. (METHOD_GET): New static constant.
  13354. (METHOD_HEAD): New static constant.
  13355. * src/Xml2MetalinkProcessor.h
  13356. (getPieceHash): New function.
  13357. * src/PieceStorage.h
  13358. (markAllPiecesDone): New function.
  13359. (checkIntegrity): New function.
  13360. * src/FileAllocator.h
  13361. (NullFileAllocationMonitor.h): New include.
  13362. (FileAllocator): Initialize fileAllocationMonitor with new
  13363. NullFileAllocationMonitor().
  13364. * src/MultiDiskAdaptor.h
  13365. (messageDigest.h): Remove include.
  13366. (ctx): Removed.
  13367. (hashUpdate): Added ctx.
  13368. (MultiDiskAdaptor): Removed ctx.
  13369. (sha1Sum): Renamed as messageDigest.
  13370. (messageDigest): New function.
  13371. * src/UrlRequestInfo.h
  13372. (HeadResult): New class.
  13373. (digestAlgo): New variable.
  13374. (chunkChecksumLength): New variable.
  13375. (chunkChecksums): New variable.
  13376. (getHeadResult): New function.
  13377. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13378. (setDigestAlgo): New function.
  13379. (setChunkChecksumLength): New function.
  13380. (setChunkChecksums): New function.
  13381. * src/DefaultPieceStorage.cc
  13382. (DiskAdaptorWriter.h): New include.
  13383. (ChunkChecksumValidator.h): New include.
  13384. (markAllPiecesDone): New function.
  13385. (checkIntegrity): New function.
  13386. * src/DefaultBtContext.h
  13387. (getPieceHashes): New function.
  13388. * src/TorrentRequestInfo.cc
  13389. (execute): Try to validate chunk checksum if file already exists and
  13390. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13391. * src/messageDigest.h
  13392. (~MessageDigestContext): Added digestFree().
  13393. * src/MetalinkRequestInfo.cc
  13394. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13395. * src/DiskAdaptor.h
  13396. (messageDigest.h): New include.
  13397. (sha1Sum): Renamed as messageDigest.
  13398. (messageDigest): New function.
  13399. * src/DownloadCommand.h
  13400. (PeerStat.h): New include.
  13401. (maxDownloadSpeedLimit): New variable.
  13402. (startupIdleTime): New variable.
  13403. (lowestDownloadSpeedLimit): New variable.
  13404. (peerStat): New variable.
  13405. (setMaxDownloadSpeedLimit): New function.
  13406. (setStartupIdleTime): New function.
  13407. (setLowestDownloadSPeedLimit): New function.
  13408. * src/BtContext.h
  13409. (getPieceHashes): New function.
  13410. * src/main.cc
  13411. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13412. option to true for testing purpose.
  13413. * src/BtPieceMessage.cc
  13414. (checkPieceHash): Use messageDigest
  13415. * src/DownloadEngine.cc
  13416. (SetDescriptor): Removed.
  13417. (AccumulateActiveCommand): Removed.
  13418. (waitData): Rewritten.
  13419. (updateFdSet): Rewritten.
  13420. * src/MultiDiskAdaptor.cc
  13421. (hashUpdate): Added ctx.
  13422. (sha1Sum): Renamed as messageDigest.
  13423. (messageDigest): New function.
  13424. * src/BitfieldMan.h
  13425. (isBitRangeSet): New function.
  13426. (unsetBitRange): New function.
  13427. * src/ByteArrayDiskWriter.h
  13428. (sha1Sum): Renamed as messageDigest.
  13429. (messageDigest): New function.
  13430. * src/ConsoleDownloadEngine.cc
  13431. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13432. * src/DiskWriter.h
  13433. (messageDigest.h): New include.
  13434. (sha1Sum): Renamed as messageDigest.
  13435. (messageDigest): New function.
  13436. * src/ChunkChecksumValidator.h: New class.
  13437. * src/DiskAdaptorWriter.h: New class.
  13438. * src/prefs.h
  13439. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13440. (PREF_CHECK_INTEGRITY): New definition.
  13441. * src/HttpResponseCommand.cc
  13442. (handleDefaultEncoding): Added method "HEAD" handling.
  13443. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13444. (handleOtherEncoding):
  13445. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13446. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13447. startupIdleTime, lowestDownloadSpeedLimit to command.
  13448. * src/SegmentMan.h
  13449. (getSegmentEntryByIndex): New function.
  13450. (getSegmentEntryByCuid): New function.
  13451. (getSegmentEntryIteratorByCuid): New function.
  13452. (diskWriter): DiskWriter -> DiskWriterHandle
  13453. (pieceHashes): New variable.
  13454. (chunkHashLength): New variable.
  13455. (digestAlgo): New variable.
  13456. (FindPeerStat): Removed.
  13457. (getPeerStat): Rewritten.
  13458. (markAllPiecesDone): New function.
  13459. (checkIntegrity): New function.
  13460. (tryChunkChecksumValidation): New function.
  13461. (isChunkChecksumValidationReady): New function.
  13462. * src/BitfieldMan.cc
  13463. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13464. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13465. blocks to 0.
  13466. (isBitRangeSet): New function.
  13467. (unsetBitRange): New function.
  13468. * src/FtpNegotiateCommand.cc
  13469. (executeInternal): Set maxDownloadSpeedLimit,
  13470. startupIdleTime, lowestDownloadSpeedLimit to command.
  13471. (recvSize): Added method "HEAD" handling.
  13472. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13473. * src/AbstractSingleDiskAdaptor.cc
  13474. (sha1Sum): Renamed as messageDigest.
  13475. (messageDigest): New function.
  13476. * src/AbstractSingleDiskAdaptor.h
  13477. (sha1Sum): Renamed as messageDigest.
  13478. (messageDigest): New function.
  13479. * src/Util.h
  13480. (indexRange): New function.
  13481. * src/MetalinkEntry.cc
  13482. (MetalinkEntry): Initialized chunkChecksum to 0.
  13483. * src/ShaVisitor.cc
  13484. (~ShaVisitor): Removed the call to ctx.digestFree().
  13485. * src/SegmentMan.cc
  13486. (ChunkChecksumValidator.h): New include.
  13487. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13488. to DIGEST_ALGO_SHA1.
  13489. (~SegmentMan): Removed diskWriter.
  13490. (FindSegmentEntryByIndex): Removed.
  13491. (FindSegmentEntryByCuid): Removed.
  13492. (checkoutSegment): Rewritten.
  13493. (findSlowerSegmentEntry): Rewritten.
  13494. (getSegment): Rewritten.
  13495. (updateSegment): Rewritten.
  13496. (completeSegment): Rewritten.
  13497. (markAllPiecesDone): New function.
  13498. (checkIntegrity): New function.
  13499. (isChunkChecksumValidationReady): New function.
  13500. (tryChunkChecksumValidation): New function.
  13501. * src/Xml2MetalinkProcessor.cc
  13502. (getEntry): Get size and set it to entry.
  13503. Get chunk checksum and set it to entry.
  13504. (getPieceHash): New function.
  13505. * src/Util.cc
  13506. (sha1Sum): Removed ctx.digestFree()
  13507. (fileChecksum): Removed ctx.digestFree()
  13508. (indexRange): New function.
  13509. * src/Request.cc
  13510. (METHOD_GET): New variable.
  13511. (METHOD_HEAD): New variable.
  13512. (Request): Added method.
  13513. * src/UrlRequestInfo.cc
  13514. (FatalException.h): New include.
  13515. (message.h): New include.
  13516. (operator<<): Added operator<< for class HeadResult.
  13517. (getHeadResult): New function.
  13518. (execute): Get filename and size in separate download engine.
  13519. * src/ChunkChecksumValidator.cc: New class.
  13520. * src/DownloadCommand.cc:
  13521. (DownloadCommand): Added peerStat.
  13522. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13523. the value from Option.
  13524. The buffer size is now 16KB.
  13525. Use peerStat member instead of getting it from SegmentMan.
  13526. Use startupIdleTime member instead of gettingit from Option.
  13527. Added chunk checksum validation.
  13528. * src/AbstractDiskWriter.cc
  13529. (AbstractDiskWriter): Removed ctx.
  13530. (~AbstractDiskWriter): Removed ctx.digestFree()
  13531. (writeDataInternal): Returns the return value of write.
  13532. (readDataInternal): Returns the return value of read.
  13533. (sha1Sum): Renamed as messageDigest
  13534. (messageDigest): New function.
  13535. * src/AbstractDiwkWriter.h
  13536. (messageDigest.h): Removed include.
  13537. (ctx): Removed.
  13538. (sha1Sum): Renamed as messageDigest
  13539. (messageDigest): New function.
  13540. * src/DefaultPieceStorage.h
  13541. (markAllPiecesDone): New function.
  13542. (checkIntegrity): New function.
  13543. * src/NullFileAllocationMonitor.h: New class.
  13544. * src/MetalinkChunkChecksum.h: New class.
  13545. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13546. To decrease CPU usage in bittorrent download, calculation results in
  13547. BitfieldMan were cached and realtime fetching PeerObject was removed
  13548. with WeakHandle introduced. Option values are set to the objects
  13549. by setter before download begins.
  13550. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13551. * src/DefaultBtRequestFactory.h
  13552. (dispatcher): BtMessageDispatcherHandle ->
  13553. BtMessageDispatcherWeakHandle.
  13554. (messageFactory): New variable.
  13555. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13556. BtMessageDispatcherWeakHandle.
  13557. (setBtMessageFactory): New function.
  13558. * src/DefaultBtMessageDispatcher.cc:
  13559. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13560. from Option.
  13561. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13562. feating the value from Option.
  13563. Use messageFactory member.
  13564. * src/PeerInteractionCommand.cc
  13565. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13566. Add reverse dependencies to factory object.
  13567. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13568. dispatcher.
  13569. Set messageFactory to receiver.
  13570. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13571. btInteractive.
  13572. Set receiver to peerObject.
  13573. Set maxDownloadSpeedLimit to this.
  13574. (executeInternal): Use maxDownloadSpeedLimit member.
  13575. * src/BtChokeMessage.cc
  13576. (doReceivedAction): Use dispatcher, requestFactory member.
  13577. (onSendComplete): Use dispatcher member.
  13578. * src/PeerInteractionCommand.h
  13579. (maxDownloadSpeedLimit): New variable.
  13580. * src/DefaultBtMessageReceiver.h
  13581. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13582. (dispatcher):
  13583. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13584. (messageFactory): New variable.
  13585. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13586. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13587. (setDispatcher):
  13588. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13589. (setBtMessageFactory): New function.
  13590. * src/DefaultBtInteractive.cc
  13591. (initiateHandshake): Use messageFactory member.
  13592. (addBitfieldMessageToQueue): Use messageFactory member.
  13593. (addAllowedFastMessageToQueue): Use messageFactory member.
  13594. (decideChoking): Use messageFactory member.
  13595. (checkHave): Use messageFactory member.
  13596. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13597. (receiveMessages): Use maxDownloadSpeedLimit member.
  13598. (decideInterest): Use messageFactory member.
  13599. * src/BtRequestMessage.cc
  13600. (doReceivedAction): Use messageFactory, dispatcher member.
  13601. (onQueued): Use dispatcher member.
  13602. * src/BtPieceMessage.cc
  13603. (doReceivedAction): Use dispatcher member.
  13604. (send): Use peerConnection member.
  13605. (onWrongPiece): Use requestFactory member.
  13606. (handleChokingEvent): Use messageFactory, dispatcher member.
  13607. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13608. * src/BtMessageDispatcher.h
  13609. (BtMessageDispatcherWeakHandle): New type definition.
  13610. * src/SimpleBtMessage.cc
  13611. (send): Use peerConnection member.
  13612. * src/BtRejectMessage.cc
  13613. (doReceivedAction): Use dispatcher member.
  13614. * src/DefaultBtMessageDispatcher.h
  13615. (Option.h): Removed include.
  13616. (messageFactory): New variable.
  13617. (option): Removed.
  13618. (maxUploadSpeedLimit): New variable.
  13619. (requestTimeout): New variable.
  13620. (DefaultBtMessageDispatcher): Removed option.
  13621. Added maxUploadSpeedLimit, requestTimeout.
  13622. (setOption): Removed.
  13623. (getOption): Removed.
  13624. (setMaxUploadSpeedLimit): New function.
  13625. (setRequestTimeout): New function.
  13626. (setBtMessageFactory): New function.
  13627. * src/DefaultBtInteractive.h
  13628. (btMessageReceiver):
  13629. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13630. (dispatcher):
  13631. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13632. (btRequestFactory):
  13633. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13634. (peerConnection):
  13635. PeerConnectionHandle -> PeerConnectionWeakHandle
  13636. (messageFactory): New variable.
  13637. (option): Removed.
  13638. (keepAliveInterval): New variable.
  13639. (maxDownloadSpeedLimit): New variable.
  13640. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13641. (setBtMessageReceiver):
  13642. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13643. (setDispatcher):
  13644. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13645. (setBtRequestFactory):
  13646. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13647. (setPeerConnection):
  13648. PeerConnectionHandle -> PeerConnectionWeakHandle
  13649. (setOption): Removed.
  13650. (setKeepAliveInterval): New function.
  13651. (setMaxDownloadSpeedLimit): New function.
  13652. (setBtMessageFactory): New function.
  13653. * src/BitfieldMan.h
  13654. (cachedNumMissingBlock): New variable.
  13655. (cachedNumFilteredBlock): New variable.
  13656. (cachedCompletedLength): New variable.
  13657. (cachedFilteredComletedLength): New variable.
  13658. (cachedFilteredTotalLength): New variable.
  13659. (countMissingBlockNow): New function.
  13660. (countFilteredBlockNow): New function.
  13661. (getFilteredTotalLengthNow): New function.
  13662. (getCompletedLengthNow): New function.
  13663. (getFilteredCompletedLengthNow): New function.
  13664. (updateCache): New function.
  13665. * src/AbstractBtMessage.h
  13666. (BtMessageDispatcher.h): New include.
  13667. (PeerConnection.h): New include.
  13668. (BtRequestFactory.h): New include
  13669. (BtMessageFactory.h): New include.
  13670. (dispatcher): New variable.
  13671. (messageFactory): New variable.
  13672. (peerConnection: New variable.
  13673. (setBtMessageDispatcher): New function.
  13674. (setPeerConnection): New function.
  13675. (setBtMessageFactory): New function.
  13676. (setBtRequestFactory): New function.
  13677. * src/DefaultBtMessageFactory.cc
  13678. (setCommonProperty): Set dispatcher, requestFactory, this,
  13679. peerConnection to msg.
  13680. * src/BtRegistry.h
  13681. (BT_MESSAGE_RECEIVER): New macro.
  13682. * src/PeerConnection.h
  13683. (PeerConnectionWeakHandle): New type definition.
  13684. * src/BtMessageFactory.h
  13685. (BtMessageFactoryWeakHandle): New type definition.
  13686. * src/BitfieldMan.cc
  13687. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13688. cachedCompletedLength, cachedFilteredComletedLength,
  13689. cachedFilteredTotalLength.
  13690. Call updateCache().
  13691. (countMissingBlock): Return cachedNumMissingBlock.
  13692. (countMissingBlockNow): New function.
  13693. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13694. (countFilteredBlockNow): New function.
  13695. (setBit): Call updateCache().
  13696. (unsetBit): Call updateCache().
  13697. (setBitfield): Call updateCache().
  13698. (clearAllBit): Call updateCache().
  13699. (setAllBit): Use setBitInternal instead of setBit.
  13700. Call updateCache().
  13701. (addFilter): Call updateCache().
  13702. (enableFilter): Call updateCache().
  13703. (disableFilter): Call updateCache().
  13704. (clearFilter): Call updateCache().
  13705. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13706. (getFilteredTotalLengthNow): New function.
  13707. (getCompletedLength): Return cachedCompletedLength.
  13708. (getCompletedLengthNow): New function.
  13709. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13710. (getFilteredCompletedLengthNow): New function.
  13711. (updateCache): New function.
  13712. * src/BtMessageReceiver.h
  13713. (BtMessageReceiverWeakHandle): New type definition.
  13714. * src/DefaultBtMessageReceiver.cc
  13715. (receiveHandshake): Use messageFactory member.
  13716. (sendHandshake): Use messageFactory member.
  13717. (receiveMessage): Use messageFactory member.
  13718. * src/DefaultBtMessageFactory.h
  13719. (dispatcher): New variable.
  13720. (requestFactory): New variable.
  13721. (peerConnection): New variablle.
  13722. (setBtMessageDispatcher): New function.
  13723. (setBtRequestFactory): New function.
  13724. (setPeerConnection): New function.
  13725. * src/SharedHandle.h
  13726. (RefCount): New class.
  13727. (WeakHandle): New class.
  13728. * src/PeerObject.h
  13729. (BtMessageReceiver.h): New include.
  13730. (PeerObject): Added btMessageReceiver.
  13731. (btMessageReceiver): New variable.
  13732. * src/Util.cc
  13733. (countBit): Simplified.
  13734. * src/BtCancelMessage.cc
  13735. (doReceivedAction): Use dispatcher member.
  13736. * src/BtRequestFactory.h
  13737. (BtRequestFactoryWeakHandle): New type definition.
  13738. * src/PeerStorage.h
  13739. (downloadSpeed): int -> uint32_t
  13740. (uploadSpeed): int -> uint32_t
  13741. (sessionDownloadLength): long long int -> uint64_t
  13742. (sessionUploadLength): long long int -> uint64_t
  13743. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13744. To add RecoverableException, FatalException:
  13745. * src/AbstractCommand.cc
  13746. (onAbort): Exception -> RecoverableException
  13747. * src/PeerAbstractCommand.h
  13748. (RecoverableException.h): New include.
  13749. (onAbort): Exception -> RecoverableException.
  13750. * src/PeerInteractionCommand.cc
  13751. (onAbort): Exception -> RecoverableException.
  13752. * src/PeerAbstractCommand.cc
  13753. (execute): Exception -> RecoverableException.
  13754. (onAbort): Exception -> RecoverableException.
  13755. * src/TorrentRequestInfo.cc
  13756. (execute): Exception -> RecoverableException.
  13757. * src/MetalinkRequestInfo.cc
  13758. (execute): Exception -> RecoverableException.
  13759. * src/MetaFileUtil.cc: RecoverableException.
  13760. * src/AbstractCommand.h
  13761. (onAbort): Exception -> RecoverableException.
  13762. * src/DlRetryEx.h: Exception -> RecoverableException.
  13763. * src/DlAbortEx.h: Exception -> RecoverableException.
  13764. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13765. * src/Util.cc: Exception -> RecoverableException.
  13766. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13767. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13768. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13769. To make ID static const int
  13770. * src/BtInterestedMessage.h
  13771. (ID_t): Removed.
  13772. (ID): New variable.
  13773. (getId): Made non-const.
  13774. * src/BtPieceMessage.h
  13775. (ID_t): Removed.
  13776. (ID): New variable.
  13777. (getId): Made non-const.
  13778. * src/BtChokeMessage.h
  13779. (ID_t): Removed.
  13780. (ID): New variable.
  13781. (getId): Made non-const.
  13782. * src/BtHaveAllMessage.h
  13783. (ID_t): Removed.
  13784. (ID): New variable.
  13785. (getId): Made non-const.
  13786. * src/BtKeepAliveMessage.h
  13787. (ID_t): Removed.
  13788. (ID): New variable.
  13789. (getId): Made non-const.
  13790. * src/BtHandshakeMessage.h
  13791. (ID): New variable.
  13792. (getId): Made non-const.
  13793. * src/BtSuggestPieceMessage.h
  13794. (ID_t): Removed.
  13795. (ID): New variable.
  13796. (getId): Made non-const.
  13797. * src/BtPortMessage.h
  13798. (ID_t): Removed.
  13799. (ID): New variable.
  13800. (getId): Made non-const.
  13801. * src/AbstractBtMessage.h
  13802. (id): Removed.
  13803. (AbstractBtMessage): Removed id.
  13804. (getId): Removed.
  13805. * src/BtHaveMessage.h
  13806. (ID_t): Removed.
  13807. (ID): New variable.
  13808. (getId): Made non-const.
  13809. * src/BtAllowedFastMessage.h
  13810. (ID_t): Removed.
  13811. (ID): New variable.
  13812. (getId): Made non-const.
  13813. * src/BtCancelMessage.h
  13814. (ID_t): Removed.
  13815. (ID): New variable.
  13816. (getId): Made non-const.
  13817. * src/BtNotInterestedMessage.h
  13818. (ID_t): Removed.
  13819. (ID): New variable.
  13820. (getId): Made non-const.
  13821. * src/BtChokeMessage.h
  13822. (ID_t): Removed.
  13823. (ID): New variable.
  13824. (getId): Made non-const.
  13825. * src/BtRejectMessage.h
  13826. (ID_t): Removed.
  13827. (ID): New variable.
  13828. (getId): Made non-const.
  13829. * src/BtBitfieldMessage.h
  13830. (ID_t): Removed.
  13831. (ID): New variable.
  13832. (getId): Made non-const.
  13833. * src/BtUnchokeMessage.h
  13834. (ID_t): Removed.
  13835. (ID): New variable.
  13836. (getId): Made non-const.
  13837. * src/BtRequestMessage.h
  13838. (ID_t): Removed.
  13839. (ID): New variable.
  13840. (getId): Made non-const.
  13841. * src/BtHaveMessage.h
  13842. (ID_t): Removed.
  13843. (ID): New variable.
  13844. (getId): Made non-const.
  13845. To add --force-truncate command-line option and a check whether
  13846. the file already exists:
  13847. * src/DirectDiskAdaptor.h
  13848. (getFilePath): Made virtual public.
  13849. * src/MultiDiskAdaptor.h
  13850. (File.h): New include.
  13851. (DiskWriterEntry::fileEntry): Made private.
  13852. (DiskWriterEntry::fileExists): New function.
  13853. (DiskWriterEntry::getFileEntry): New function.
  13854. (fileExists): New function.
  13855. (getFilePath): New function.
  13856. * src/TorrentRequestInfo.cc
  13857. (FatalException.h): New include.
  13858. (message.h): New include.
  13859. (RecoverableException.h): New include.
  13860. (execute): Added a check whether file is already exists or not.
  13861. * src/DiskAdaptor.h
  13862. (fileExists): New function.
  13863. (getFilePath): New function.
  13864. * src/main.cc
  13865. (showUsage): Added an explanation of --force-truncate command-line
  13866. option.
  13867. (main): Added --force-truncate command-line option.
  13868. * src/Exception.h
  13869. (setMsg): buf[256] -> buf[1024]
  13870. * src/CopyDiskWriter.h
  13871. (getFilePath): Made public virtual.
  13872. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13873. (fileExists): New function.
  13874. * src/DownloadEngineFactory.cc
  13875. (newTorrentConsoleEngine): Don't open file here.
  13876. * src/message.h
  13877. (EX_FILE_ALREADY_EXISTS): New definition.
  13878. * src/prefs.h
  13879. (PREF_FOECE_TRUNCATE): New definition.
  13880. * src/HttpResponseCommand.cc
  13881. (handleDefaultEncoding): Added a check whether the file already exists.
  13882. * src/SegmentMan.h
  13883. (fileExists): New function.
  13884. (shouldCancelDownloadForSafety): New function.
  13885. * src/FtpNegotiateCommand.cc
  13886. (recvSize): Added a check whether the file already exists.
  13887. * src/AbstractSingleDiskAdaptor.cc
  13888. (File.h): New include.
  13889. (fileExists): New function.
  13890. * src/AbstractSingleDiskAdaptor.h
  13891. (getFilePath): Removed.
  13892. (fileExists): New function.
  13893. * src/SegmentMan.cc
  13894. (fileExists): New function.
  13895. (shouldCancelDownloadForSafety): New function.
  13896. To fix regression bug in torrent downloading:
  13897. * src/DefaultBtRequestFactory.cc
  13898. (doChokedAction): New function.
  13899. * src/DefaultBtRequestFactory.h
  13900. (doChokedAction): New function.
  13901. * src/DefaultBtMessageDispatcher.cc
  13902. (doChokedAction): Do not delete request if its target is in allowed
  13903. fast set.
  13904. * src/DefaultBtInteractive.cc
  13905. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13906. (sendKeepAlive): Send keep alive message even if the outgoing message
  13907. queue is not empty.
  13908. (decideInterest): Simplified the code.
  13909. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13910. it is already called when BtChokeMessage is received from a peer.
  13911. * src/BtRequestFactory.h
  13912. (doChokedAction): New function.
  13913. To clean up code:
  13914. * src/PeerInteractionCommand.h
  13915. (executeInternal): Added virtual keyword explicitly.
  13916. (prepareForRetry): Added virtual keyword explicitly.
  13917. (prepareForNextPeer): Added virtual keyword explicitly.
  13918. (onAbort): Added virtual keyword explicitly.
  13919. * src/RequestSlot.cc
  13920. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13921. * src/BtPieceMessage.cc
  13922. (doReceivedAction): Added a debug log of piece's bitfield.
  13923. * src/Piece.h
  13924. (getBitfieldLength): New function.
  13925. * src/ByteArrayDiskWriter.cc
  13926. (clear): Added buf = 0 to avoid double free corruption.
  13927. * src/FileAllocator.cc
  13928. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13929. Added cp.reset().
  13930. * src/BitfieldMan.h
  13931. (operator=): Rewritten.
  13932. * src/BitfieldMan.cc
  13933. (BitfieldMan): Initialized bitfield, useBitfield.
  13934. * src/PeerConnection.cc
  13935. (receiveMessage): Added a call to socket->readable() after getting
  13936. message length to avoid possible EOF.
  13937. * src/Util.cc
  13938. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13939. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13940. To add an ability to pre-allocate file space:
  13941. * src/DirectDiskAdaptor.h: Rewritten.
  13942. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13943. * src/MultiDiskAdaptor.h: Rewritten.
  13944. * src/DefaultPieceStorage.cc
  13945. (MultiDiskWriter.h): Removed include.
  13946. (PreAllocationDiskWriter.h): Removed include.
  13947. (FileAllocationMonitor.h): New include.
  13948. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13949. (initStorage): Rewritten.
  13950. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13951. * src/FileAllocator.h: New class.
  13952. * src/FileAllocator.cc: New class.
  13953. * src/FileAllocationMonitor.h: New class.
  13954. * src/FileAllocationMonitor.cc: New class.
  13955. * src/ConsoleFileAllocationMonitor.h: New class.
  13956. * src/ConsoleFileAllocationMonitor.cc: New class.
  13957. * src/AbstractSingleDiskAdaptor.h: New class.
  13958. * src/AbstractSingleDiskAdaptor.cc: New class.
  13959. * src/DiskAdaptor.h
  13960. (Directory.h): Removed include.
  13961. (DiskWriter.h): Removed include.
  13962. (FileEntry.h): Removed include.
  13963. (diskWriter): Removed.
  13964. (DiskAdaptor): Removed diskWriter.
  13965. (openFile): Made pure virtual.
  13966. (closeFile): Made pure virtual.
  13967. (openExistingFile): Made pure virtual.
  13968. (initAndOpenFile): Made pure virtual.
  13969. (writeData): Made pure virtual.
  13970. (readData): Made pure virtual.
  13971. (sha1Sum): Made pure virtual.
  13972. (getStoreDir): Returns const reference of storeDir.
  13973. (DiskAdaptorHandle): New type definition.
  13974. * src/main.cc
  13975. (ConsoleFileAllocationMonitor.h): New include.
  13976. (showUsage): Added default value description of -s option.
  13977. Added the description of --file-allocation option.
  13978. (main): Set default value of --file-allocation option to 'none'.
  13979. Added --file-allocation command-line option.
  13980. Setup FileAllocationMonitorFactory.
  13981. * src/FtpInitiateConnectionCommand.cc
  13982. (executeInternal): Removed diskWriter related processing, which was
  13983. moved to FtpNegotiationCommand.cc.
  13984. * src/DirectDiskAdaptor.cc
  13985. (getFilePath): Made non-const.
  13986. * src/CopyDiskAdaptor.h
  13987. (DiskAdaptor.h): Removed include.
  13988. (DiskWriter.h): Removed include.
  13989. (AbstractSingleDiskAdaptor.h): New include.
  13990. (getFilePath): Made non-const. Added virtual keyword.
  13991. (CopyDiskAdaptor): Removed diskWriter.
  13992. (getTempFile): Returns const reference.
  13993. (CopyDiskAdaptorHandle): New type definition.
  13994. * src/ByteArrayDiskWriter.cc
  13995. (clear): Simplified.
  13996. (initAndOpenFile): Rewritten.
  13997. (openFile): Call initAndOpenFile()
  13998. * src/MultiDiskAdaptor.cc: Rewritten.
  13999. * src/DownloadEngineFactory.cc
  14000. (FileAllocator.h): New include.
  14001. (FileAllocationMonitor.h): New include.
  14002. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14003. create DefaultDiskWriter with file allocator.
  14004. * src/DiskWriter.h
  14005. (initAndOpenFile): Added totalLength argument.
  14006. (openFile): Added totalLength argument.
  14007. * src/prefs.h
  14008. (PREF_FILE_ALLOCATION): New definition.
  14009. (V_PREALLOC): New definition.
  14010. (V_NONE): New definition.
  14011. * src/HttpResponseCommand.cc
  14012. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14013. size.
  14014. * src/FtpNegotiateCommand.cc
  14015. (Util.h): New include.
  14016. (recvSize): Open file here.
  14017. * src/Util.h
  14018. (ullitos): New function.
  14019. * src/CopyDiskWriter.h
  14020. (getFilePath): Made non-const.
  14021. * src/DefaultDiskWriter.h
  14022. (Option.h): New include.
  14023. (totalLength): Removed.
  14024. (DefaultDiskWriter): Removed totalLength.
  14025. (initAndOpenFile): Added totalLength argument.
  14026. (DefaultDiskWriterHandle): New type definition.
  14027. (createNewDiskWriter): New function.
  14028. * src/Util.cc
  14029. (ullitos): New function.
  14030. * src/DefaultDiskWriter.cc
  14031. (message.h): New include.
  14032. (FileAllocator.h): New include.
  14033. (prefs.h): New include.
  14034. (Util.h): New include.
  14035. (DefaultDiskWriter): Removed totalLength.
  14036. (initAndOpenFile): Added file allocation.
  14037. (createNewDiskWriter): New function. Just for temporary solution.
  14038. It will be rewritten later.
  14039. * src/DiskAdaptor.cc
  14040. (DiskAdaptor): Removed diskWriter.
  14041. * src/AbstractDiskWriter.cc
  14042. (LogFactory.h): New include.
  14043. (AbstractDiskWriter): Added fileAllocator, logger.
  14044. (openFile): Added totalLength argument.
  14045. * src/AbstractDiskWriter.h
  14046. (FileAllocator.h): New include.
  14047. (Logger.h): New include.
  14048. (fileAllocator): New variable.
  14049. (logger): New variable.
  14050. (openFile): Added totalLength argument. Added virtual keyword
  14051. explicitly.
  14052. (openExistingFile): Added totalLength argument. Added virtual keyword
  14053. explicitly.
  14054. (closeFile): Added virtual keyword explicitly.
  14055. (sha1Sum): Added virtual keyword explicitly.
  14056. (writeData): Added virtual keyword explicitly.
  14057. (readData): Added virtual keyword explicitly.
  14058. (setFileAllocator): New function.
  14059. * src/DefaultPieceStorage.h
  14060. (FileAllocator.h): New include.
  14061. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14062. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14063. * src/FileProgressMonitor.h: New class.
  14064. To compile aria2 on PC-BSD:
  14065. * src/DefaultBtContext.cc
  14066. (libgen.h): New include.
  14067. To fix memory leak:
  14068. * src/Exception.h
  14069. (~Exception): Delete cause. Fixed memory leak.
  14070. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14071. Rewritten a portion of bittorrent implementation:
  14072. * src/BtMessageValidator.h: New class.
  14073. * src/BtBitfieldMessageValidator.h: New class.
  14074. * src/BtHandshakeMessageValidator.h: New class.
  14075. * src/BtRequestMessageValidator.h: New class.
  14076. * src/BtSuggestPieceMessageValidator.h: New class.
  14077. * src/BtAllowedFastMessageValidator.h: New class.
  14078. * src/BtRejectMessageValidator.h: New class.
  14079. * src/BtCancelMessageValidator.h: New class.
  14080. * src/BtPieceMessageValidator.h: New class.
  14081. * src/BtHaveMessageValidator.h: New class.
  14082. * src/BtEventListener.h: New class.
  14083. * src/AbstractBtEventListener.h: New class.
  14084. * src/BtEvent.h: New class.
  14085. * src/BtChokingEvent.h: New class.
  14086. * src/BtChokedEvent.h: New class.
  14087. * src/BtCancelSendingPieceEvent.h: New class.
  14088. * src/BtAbortOutstandingRequestEvent.h: New class.
  14089. * src/Randomizer.h: New class.
  14090. * src/SimpleRandomizer.h: New class.
  14091. * src/BtMessage.h: New class.
  14092. * src/AbstractBtMessage.h: New class.
  14093. * src/SimpleBtMessage.h: New class.
  14094. * src/BtHaveMessage.h: New class.
  14095. * src/BtInterestedMessage.h: New class.
  14096. * src/BtAllowedFastMessage.h: New class.
  14097. * src/BtUnchokeMessage.h: New class.
  14098. * src/BtCancelMessage.h: New class.
  14099. * src/BtNotInterestedMessage.h: New class.
  14100. * src/BtChokeMessage.h: New class.
  14101. * src/BtHaveNoneMessage.h: New class.
  14102. * src/BtHandshakeMessage.h: New class.
  14103. * src/BtSuggestPieceMessage.h: New class.
  14104. * src/BtHaveMessage.h: New class.
  14105. * src/BtPieceMessage.h: New class.
  14106. * src/BtHaveAllMessage.h: New class.
  14107. * src/BtKeepAliveMessage.h: New class.
  14108. * src/BtPortMessage.h: New class.
  14109. * src/BtRejectMessage.h: New class.
  14110. * src/BtBitfieldMessage.h: New class.
  14111. * src/BtRequestMessage.h: New class.
  14112. * src/DefaultBtRequestFactory.h: New class.
  14113. * src/DefaultBtMessageReceiver.h: New class.
  14114. * src/BtInteractive.h: New class.
  14115. * src/BtMessageDispatcher.h: New class.
  14116. * src/DefaultBtMessageDispatcher.h: New class.
  14117. * src/DefaultBtInteractive.h: New class.
  14118. * src/BitfieldManFactory.h: New class.
  14119. * src/HandleRegistry.h: New class.
  14120. * src/BtMessageFactory.h: New class.
  14121. * src/BtMessageReceiver.h: New class.
  14122. * src/DefaultBtMessageFactory.h: New class.
  14123. * src/PeerObject.h: New class.
  14124. * src/BtRequestFactory.h: New class.
  14125. * src/SuggestPieceMessage.h: Removed.
  14126. * src/PortMessage.h: Removed.
  14127. * src/SuggestPieceMessage.h: Removed.
  14128. * src/KeepAliveMessage.h: Removed.
  14129. * src/HandshakeMessage.h: Removed.
  14130. * src/PeerInteraction.h: Removed.
  14131. * src/UnchokeMessage.h: Removed.
  14132. * src/PieceMessage.h: Removed.
  14133. * src/RequestMessage.h: Removed.
  14134. * src/InterestedMessage.h: Removed.
  14135. * src/HaveMessage.h: Removed.
  14136. * src/CancelMessage.h: Removed.
  14137. * src/RejectMessage.h: Removed.
  14138. * src/AllowedFastMessage.h: Removed.
  14139. * src/HaveNoneMessage.h: Removed.
  14140. * src/SimplePeerMessage.h: Removed.
  14141. * src/HaveAllMessage.h: Removed.
  14142. * src/BitfieldMessage.h: Removed.
  14143. * src/PeerMessageFactory.h: Removed.
  14144. * src/NotInterestedMessage.h: Removed.
  14145. * src/ChokeMessage.h: Removed.
  14146. * src/PeerMessage.h: Removed.
  14147. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14148. To know root cause of exception:
  14149. * src/Exception.h
  14150. (cause): New variable.
  14151. (Exception): Added a parameter.
  14152. (getMsg): Return const reference to msg.
  14153. (getCause): New function.
  14154. * src/DlRetryEx.h
  14155. (DlRetryEx): Added a parameter 'cause'.
  14156. Added an overloaded constructor.
  14157. (DlAbortEx): Added a parameter 'cause'.
  14158. Added an overloaded constructor.
  14159. * src/SimpleLogger.cc
  14160. (writeLog): Log nested exception messages recursively.
  14161. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14162. * src/DefaultBtProgressInfoFile.cc
  14163. (load): Fixed memory leak when the infohash doesn't match.
  14164. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14165. * src/DefaultPeerStorage.cc
  14166. (calculateStat): Simplified the code by combining 2 loops into 1.
  14167. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14168. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14169. for BitTorrent download:
  14170. * src/PeerAbstractCommand.cc
  14171. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14172. * src/main.cc:
  14173. (timeoutSpecified): Removed.
  14174. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14175. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14176. * src/TorrentRequestInfo.cc
  14177. (timeoutSpecified): Removed.
  14178. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14179. timeout value.
  14180. * src/prefs.h
  14181. (PREF_BT_TIMEOUT): New definition.
  14182. Delete unused variables:
  14183. * src/TorrentRequestInfo.cc
  14184. (requestInfo): Removed.
  14185. Move setSignalHander to Util::setGlobalSignalHandler:
  14186. * src/TorrentRequestInfo.cc:
  14187. setSignalHander -> Util::setGlobalSignalHandler
  14188. * src/main.cc
  14189. (setSignalHander): Removed.
  14190. (main): setSignalHander -> Util::setGlobalSignalHandler
  14191. * src/Util.h
  14192. (setGlobalSignalHandler): New function.
  14193. * src/Util.cc
  14194. (setGlobalSignalHandler): New function.
  14195. * src/UrlRequestInfo.cc:
  14196. setSignalHander -> Util::setGlobalSignalHandler
  14197. Reset peer status in order to exit gracefully:
  14198. * src/PeerAbstractCommand.cc
  14199. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14200. To fix the bug that causes the number of bytes uploaded is not saved
  14201. to .aria2 file:
  14202. * src/DefaultPeerStorage.h
  14203. (removedPeerSessionDownloadLength): New variable.
  14204. (removedPeerSessionUploadLength): New variable.
  14205. * src/DefaultPeerStorage.cc
  14206. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14207. removedPeerSessionUploadLength(0).
  14208. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14209. through all peers, and then add removedPeerSessionDownloadLength(
  14210. removedPeerSessionUploadLength) to it.
  14211. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14212. (to) the peer to removedPeerSessionDownloadLength
  14213. (removedPeerSessionUploadLength).
  14214. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14215. To add Metalink location option:
  14216. * src/MetalinkRequestInfo.cc
  14217. (execute): Call MetalinkEntry::setLocationPreference()
  14218. * src/main.cc
  14219. (showUsage): Added the help message for --metalink-location option.
  14220. (main): Added --metalink-location option.
  14221. * src/prefs.h
  14222. (PREF_METALINK_LOCATION): New definition.
  14223. * src/MetalinkEntry.cc
  14224. (AddLocationPreference): New function object.
  14225. (setLocationPreference): New function.
  14226. * src/Xml2MetalinkProcessor.cc
  14227. (getResource): Set location attribute to MetalinkResource
  14228. To show URLs to download
  14229. * src/UrlRequestInfo.h
  14230. (printUrls): New function.
  14231. To add multiple <file> Metalink support:
  14232. * src/MetalinkEntry.h
  14233. (MetalinkResources): Removed.
  14234. (setLocationPreference): New function.
  14235. (MetalinkEntryHandle): New type definition.
  14236. (MetalinkEntries): New type definition.
  14237. * src/Xml2MetalinkProcessor.h
  14238. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14239. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14240. (parseFile): Metalinker* -> MetalinkerHandle
  14241. * src/UrlRequestInfo.h
  14242. (execute): RequestInfo* -> RequestInfos
  14243. * src/MetalinkRequestInfo.cc
  14244. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14245. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14246. (execute): RequestInfo* -> RequestInfos
  14247. Added multiple <file> support. Print filename when it is queued.
  14248. * src/MetalinkRequestInfo.h
  14249. (execute): RequestInfo* -> RequestInfos
  14250. (getDownloadEngine): Removed.
  14251. * src/RequestInfo.h
  14252. (RequestInfoHandle): New type definition.
  14253. (RequestInfos): New type definition.
  14254. (execute): RequestInfo* -> RequestInfos
  14255. (getDownloadEngine): Removed.
  14256. * src/MetalinkResource.h
  14257. (MetalinkResourceHandle): New type definition.
  14258. (MetalinkResources): New type definition.
  14259. * src/MetalinkEntry.cc
  14260. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14261. because the element is now of type MetalinkResourceHandle.
  14262. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14263. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14264. (dropUnsupportedResource): Removed the deletion of the elements of
  14265. resources because the element is now of type MetalinkResourceHandle.
  14266. * src/Xml2MetalinkProcessor.cc
  14267. (parseFile): Metalinker* -> MetalinkerHandle
  14268. MetalinkEntry* -> MetalinkEntryHandle
  14269. Removed try-catch block.
  14270. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14271. MetalinkResource* -> MetalinkResourceHandle
  14272. Removed try-catch block.
  14273. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14274. Free result by using xmlXPathFreeObject()
  14275. * src/Metalinker.cc
  14276. (~Metalinker): Removed the deletion of entries.
  14277. MetalinkEntry* -> MetalinkEntryHandle
  14278. (queryEntry): Add multiple <file> Metalink support.
  14279. * src/Metalinker.h
  14280. (MetalinkEntries): Removed.
  14281. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14282. * src/MetalinkProcessor.h
  14283. (parseFile): Metalinker* -> MetalinkerHandle
  14284. Bug fixes:
  14285. * src/PeerChokeCommand.cc
  14286. (execute): cat01->cat02
  14287. * src/DefaultPieceStorage.cc
  14288. (DefaultPieceStorage): Added diskAdaptor(0)
  14289. * src/TrackerWatcherComand.cc:
  14290. (execute): Use btAnnounce->noMoreAnnounce()
  14291. to determin whether the function returns true or not.
  14292. * src/TrackerUpdateCommand.cc:
  14293. (execute): Use btAnnounce->noMoreAnnounce()
  14294. to determin whether the function returns true or not.
  14295. * src/FtpConnection.cc
  14296. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14297. This is the fix of the busy loop bug.
  14298. * src/DownloadCommand.cc
  14299. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14300. cached PeerStat.
  14301. The value of "name" entry in torrent file is now set by
  14302. *DiskAdaptor::setTopDir(...) methods.
  14303. * src/MultiDiskAdaptor.h
  14304. (topDir): New variable.
  14305. (setTopDir): New function.
  14306. (getTopDir): New function.
  14307. * src/MultiDiskAdaptor.cc
  14308. (getFilePath): Concat storDir, "/" and topDir.
  14309. (mkdir): Use getFilePath() to get the directory path for output.
  14310. * src/DefaultPieceStorage.cc
  14311. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14312. CopyDiskAdaptor.
  14313. * src/CopyDiskAdaptor.h
  14314. (topDir): New variable.
  14315. (setTopDir): New function.
  14316. (getTopDir): New function.
  14317. * src/CopyDiskAdaptor.cc
  14318. (fixFilename): Updated.
  14319. Misc
  14320. * src/UrlRequestInfo.h
  14321. (e): Removed.
  14322. (UrlRequestInfo): Removed e.
  14323. (getDownloadEngine): Removed.
  14324. * src/UrlRequestInfo.cc
  14325. (handler): Rewritten.
  14326. (printUrls): New function.
  14327. (execute): Call printUrls().
  14328. * src/HandshakeMessage.cc
  14329. (check): peerinteraction->getBtContext() -> btContext
  14330. * src/PeerInteraction.h
  14331. (getBtContext): Removed.
  14332. * src/TorrentRequestInfo.h
  14333. (execute): RequestInfo* -> RequestInfos
  14334. (getDownloadEngine): Removed.
  14335. * src/TorrentRequestInfo.cc
  14336. (haltRequested): Removed.
  14337. (btHaltRequested): New variable.
  14338. (torrentHandler): haltRequested -> btHaltRequested
  14339. (execute): RequestInfo* -> RequestInfos
  14340. * src/TorrentConsoleDownloadEngine.cc
  14341. (afterEachIteration): haltRequested -> btHaltRequested.
  14342. * src/ConsoleDownloadEngine.h
  14343. (initStatistics): Added virtual.
  14344. (calculateStatistics): Added virtual.
  14345. (onEndOfRun): Added virtual.
  14346. (afterEachIteration): Added virtual.
  14347. * src/ConsoleDownloadEngine.cc
  14348. (haltRequested): New variable.
  14349. (afterEachIteration): New function.
  14350. * src/main.cc
  14351. (requestInfo): Removed.
  14352. * src/SegmentMan.cc
  14353. (findSlowerSegmentEntry): Refactored.
  14354. * Release 0.9.0
  14355. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14356. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14357. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14358. * src/TorrentMan.h: Removed.
  14359. * src/TorrentMan.cc: Removed.
  14360. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14361. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14362. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14363. * src/PeerAbstractCommand.cc: Use btRuntime.
  14364. * src/BtContextAwareCommand.h: New class.
  14365. * src/FileEntry.h: Added accessor methods for following variables.
  14366. (path): Made private.
  14367. (length): Made private.
  14368. (offset): Made private.
  14369. (extracted): Made private.
  14370. (requested): Made private.
  14371. (FileEntries): New definition.
  14372. (FileEntryHandle): New definition.
  14373. * src/FileEntry.cc: New file.
  14374. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14375. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14376. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14377. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14378. * src/PieceStorage.h: New file.
  14379. * src/PeerInteractionCommand.h: Use btContext.
  14380. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14381. btRuntime.
  14382. * src/DefaultBtProgressInfoFile.h: New file.
  14383. * src/DefaultBtProgressInfoFile.cc: New file.
  14384. * src/File.cc
  14385. (Util.h): New include.
  14386. (mkdirs): New function.
  14387. * src/MultiDiskAdaptor.h
  14388. (mkdir): New function.
  14389. * src/PeerListProcessor.h
  14390. (Peers): Removed.
  14391. * src/PeerInteraction.h
  14392. (torrentMan): Removed.
  14393. (btContext): New variable.
  14394. (peerStorage): New variable.
  14395. (pieceStorage): New variable.
  14396. (btAnnounce): New variable.
  14397. (getTorrentMan): Removed.
  14398. (getBtContext): New function.
  14399. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14400. btAnnounce.
  14401. * src/HandshakeMessage.h
  14402. (TorrentMan.h): Removed.
  14403. * src/HandshakeMessage.cc: Use btContext.
  14404. * src/DefaultBtAnnounce.cc: New file.
  14405. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14406. * src/DefaultPieceStorage.cc: New file.
  14407. * src/DefaultBtContext.h: New file.
  14408. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14409. Use the accessor methods of FileEntry.
  14410. * src/CookieBox.cc: Updated to use Util::slice().
  14411. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14412. * src/common.h (SharedHandle.h): New include.
  14413. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14414. pieceStorage.
  14415. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14416. * src/DiskAdaptor.h
  14417. (topDir): Removed.
  14418. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14419. (setTopDir): Removed.
  14420. (getTopDir): Removed.
  14421. * src/BtContext.h: New file.
  14422. * src/DefaultPeerStorage.h: New file.
  14423. * src/PieceMessage.h (TorrentMan.h): Removed.
  14424. * src/RequestMessage.h (TorrentMan.h): Removed.
  14425. * src/TorrentDownloadEngine.h
  14426. (uploadLength): New variable.
  14427. (btContext): New variable.
  14428. (btRuntime): New variable.
  14429. (pieceStorage): New variable.
  14430. (peerStorage): New variable.
  14431. (btAnnounce): New variable.
  14432. (btProgressInfoFile): New variable.
  14433. (torrentMan): Removed.
  14434. (setBtContext): New function.
  14435. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14436. peerStorage, btAnnounce, btProgressInfoFile.
  14437. * src/Piece.h
  14438. (toString): New function.
  14439. (Pieces): New type definition.
  14440. * src/Peer.h
  14441. (active): New variable.
  14442. (Peer): Added active.
  14443. (activate): Set active to true.
  14444. (deactivate): Set active to false.
  14445. (isActive): New function.
  14446. (Peers): New type definition.
  14447. * src/DirectDiskAdaptor.cc
  14448. (getFilePath): Use the accessor methods of FileEntry.
  14449. * src/TorrentConsoleDownloadEngine.h
  14450. (afterEachIteration): New function.
  14451. * src/TorrentConsoleDownloadEngine.cc
  14452. (haltRequested): New variable.
  14453. (sendStatistics): Use pieceStorage, btRuntime.
  14454. (afterEachIteration): New function.
  14455. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14456. * src/Directry.h
  14457. (Directory): New function.
  14458. (DirectoryHandle): New type definition.
  14459. * src/BtProgressInfoFile.h: New file.
  14460. * src/RequestMessage.cc: Use pieceStorage.
  14461. * src/BtRuntime.h: New file.
  14462. * src/DefaultBtContext.cc: New file.
  14463. * src/BitfieldMan.h
  14464. (getCompletedLength): New function(private).
  14465. (getCompletedLength): New function.
  14466. (getFilteredCompletedLength): New function.
  14467. * src/BitfieldMan.h
  14468. (getCompletedLength): New function(private).
  14469. (getCompletedLength): New function.
  14470. (getFilteredCompletedLength): New function.
  14471. * src/MultiDiskAdaptor.cc
  14472. (mkdir): New function.
  14473. (openFile): Call mkdir().
  14474. (initAndOpenFile): Call mkdir().
  14475. * src/CancelMessage.h
  14476. (TorrentMan.h): Removed.
  14477. * src/RejectMessage.h
  14478. (TorrentMan.h): Removed.
  14479. * src/DownloadEngineFactory.cc
  14480. (DefaultPieceStorage.h): New include.
  14481. (DefaultPeerStorage.h): New include.
  14482. (DefaultBtAnnounce.h): New include.
  14483. (DefaultBtProgressInfoFile.h): New include.
  14484. (newTorrentConsoleEngine): Rewritten.
  14485. * src/ShareRatioSeedCriteria.h
  14486. (torrentMan): Removed.
  14487. (btContext): New variable.
  14488. (peerStorage): New variable.
  14489. (btRuntime): New variable.
  14490. (evaluate): Use btContext, btRuntime, peerStorage.
  14491. * src/AnnounceTier.h: New file.
  14492. * src/BtAnnounce.h: New file.
  14493. * src/BtRegistry.h: New file.
  14494. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14495. * src/PeerConnection.h (TorrentMan.h): Removed.
  14496. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14497. * src/Util.h
  14498. (slice): Added an argument.
  14499. * src/Util.cc
  14500. (slice): Added an argument to control whether trim is made or not.
  14501. * src/PeerStorage.h: New file.
  14502. * src/BtRegistry.cc: New file.
  14503. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14504. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14505. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14506. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14507. * src/TorrentRequestInfo.h
  14508. (e): Removed.
  14509. (showFileEntry): Added an argument.
  14510. (getDownloadEngine): Return 0.
  14511. * src/DefaultBtAnnounce.h: New file.
  14512. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14513. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14514. * src/PeerMessageFactory.h
  14515. (btContext): New variable.
  14516. (pieceStorage): New variable.
  14517. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14518. btAnnounce.
  14519. * src/DiskAdaptor.cc
  14520. (DiskAdaptor): Removed topDir.
  14521. (~DiskAdaptor): Removed topDir.
  14522. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14523. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14524. * src/File.h (mkdirs): New function.
  14525. * src/DefaultPeerStorage): New file.
  14526. * src/DownloadEngineFactory.h
  14527. (newTorrentConsoleEngine): Use btContext.
  14528. * src/BtContextAwareCommand.cc: New file.
  14529. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14530. * src/PeerMessage.h
  14531. (btContext): New variable.
  14532. (peerStorage): New variable.
  14533. (pieceStorage): New variable.
  14534. (setBtContext): New function.
  14535. * src/Directry.cc
  14536. (Directory): New function.
  14537. (createDir): Do nothing if name.size() == 0.
  14538. * src/AnnounceList.h
  14539. (AnnounceTier): Removed.
  14540. (AnnounceTiers): Removed.
  14541. * src/DefaultPieceStorage.h: New file.
  14542. * src/Piece.cc (toString): New function.
  14543. To fix typo:
  14544. * src/main.cc (showVersion): Fixed typo.
  14545. To fix compile warning:
  14546. * src/DelegatingPeerListProcessor.cc
  14547. (canHandle): Added "return false".
  14548. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14549. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14550. make the process of announce request testable.
  14551. * src/TrackerWatcherCommand.h
  14552. (TimeA2.h): Removed.
  14553. (interval): Removed.
  14554. (checkPoint): Removed.
  14555. (createRequestCommand): Added an argument 'url'.
  14556. (TrackerWatherCommand): Removed interval.
  14557. (createCommand): New function.
  14558. * src/DownloadEngineFactory.cc
  14559. (newTorrentConsoleEngine): Updated according to the changes in
  14560. TrackerWatherCommand.
  14561. * src/TorrentMan.cc
  14562. (DelegatingPeerListProcessor.h): New includes.
  14563. (TorrentMan): Added the initialization of announceInterval.
  14564. (isStoppedAnnounceReady): New function.
  14565. (isCompletedAnnounceReady): New function.
  14566. (isDefaultAnnounceReady): New function.
  14567. (isAnnounceReady): New function.
  14568. (getAnnounceUrl): New function.
  14569. (announceStart): New function.
  14570. (announceFailure): New function.
  14571. (announceSuccess): New function.
  14572. (isAllAnnounceFailed): New function.
  14573. (resetAnnounce): New function.
  14574. (processAnnounceResponse): New function.
  14575. (needMorePeerConnection): New function.
  14576. (noMoreAnnounce): New function.
  14577. * src/TrackerUpdateCommand.h
  14578. (getTrackerResponse): int->size_t
  14579. * src/TorrentMan.h
  14580. (isStoppedAnnounceReady): New function.
  14581. (isCompletedAnnounceReady): New function.
  14582. (isDefaultAnnounceReady): New function.
  14583. (announceInterval): New variable.
  14584. (isAnnounceReady): New function.
  14585. (getAnnounceUrl): New function.
  14586. (announceStart): New function.
  14587. (announceFailure): New function.
  14588. (announceSuccess): New function.
  14589. (isAllAnnounceFailed): New function.
  14590. (resetAnnounce): New function.
  14591. (processAnnounceResponse): New function.
  14592. (needMorePeerConnection): New function.
  14593. (noMoreAnnounce): New function.
  14594. * src/TrackerWatcherCommand.cc
  14595. (TrackerWatherCommand): Removed interval and checkPoint.
  14596. (execute): Rewritten.
  14597. (createCommand): New function.
  14598. (createRequestCommand): Rewritten.
  14599. * src/TrackerUpdateCommand.cc
  14600. (MetaFileUtil.h): Removed.
  14601. (DelegatingPeerListProcessor.h): Removed.
  14602. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14603. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14604. Request -> RequestHandle:
  14605. * src/HttpResponseCommand.h: Request->RequestHandle
  14606. * src/AbstractCommand.cc: Request->RequestHandle
  14607. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14608. * src/HttpRequestCommand.cc: Request->RequestHandle
  14609. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14610. * src/AbstractCommand.h: Request->RequestHandle
  14611. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14612. * src/HttpResponseCommand.cc: Request->RequestHandle
  14613. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14614. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14615. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14616. * src/HttpConnection.h: Request->RequestHandle
  14617. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14618. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14619. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14620. * src/DownloadCommand.h: Request->RequestHandle
  14621. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14622. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14623. * src/HttpRequestCommand.h: Request->RequestHandle
  14624. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14625. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14626. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14627. * src/HttpDownloadCommand.h: Request->RequestHandle
  14628. * src/FtpConnection.cc: Request->RequestHandle
  14629. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14630. * src/UrlRequestInfo.cc: Request->RequestHandle
  14631. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14632. * src/HttpConnection.h: Request->RequestHandle
  14633. * src/DownloadCommand.cc: Request->RequestHandle
  14634. * src/FtpConnection.h: Request->RequestHandle
  14635. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14636. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14637. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14638. * src/Request.h
  14639. (SharedHandle.h): New include.
  14640. (RequestHandle): New type definition.
  14641. (Requests): Redefined.
  14642. To add MULTITRACKER support:
  14643. * src/TrackerWatcherCommand.h
  14644. (createRequestCommand): New function.
  14645. * src/DownloadEngineFactory.cc
  14646. (newTorrentConsoleEngine): Removed req.
  14647. * src/prefs.h
  14648. (PREF_TRACKER_MAX_TRIES): New definition.
  14649. * src/TorrentMan.cc
  14650. (TorrentMan): Removed req. Added trackerNumTry.
  14651. (~TorrentMan): Removed req.
  14652. (setupInternal1): Added announceList.
  14653. * src/TorrentRequestInfo.cc
  14654. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14655. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14656. * src/main.cc
  14657. (main): Added PREF_TRACKER_MAX_TRIES.
  14658. * src/TorrentMan.h
  14659. (Request.h): Removed.
  14660. (AnnounceList.h): New include.
  14661. (trackerNumTry): New variable.
  14662. (req): Removed.
  14663. (announceList): New variable.
  14664. * src/TrackerWatcherCommand.cc
  14665. (execute): Rewritten.
  14666. (createRequestCommand): New function.
  14667. * src/TrackerUpdateCommand.cc
  14668. (execute): Updated with the use of AnnounceList.
  14669. * src/AnnounceList.cc: New class.
  14670. * src/AnnounceList.h: New class.
  14671. To fix typo:
  14672. * src/prefs.h
  14673. (PREF_MAX_TRIES): max_try->max_tries
  14674. To not to decode "+" as space in URL decode:
  14675. * src/Util.cc
  14676. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14677. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14678. To add timeout to async name resolution:
  14679. * src/AbstractCommand.h
  14680. (nameResolveFinished): New function. This is not elegant way. It needs
  14681. to be more refined.
  14682. (nameResolverCheck): New variable.
  14683. * src/AbstractCommand.cc
  14684. (AbstractCommand): Added nameResolverCheck.
  14685. (execute): Added the check whether the name resolution has finished.
  14686. (setNameResolverCheck): Set nameResolverCheck to true.
  14687. (disableNameResolverCheck): Set nameResolverCheck to false.
  14688. (nameResolverFinished): New function.
  14689. * src/FtpInitiateConnectionCommand.h
  14690. (nameResolverFinished): New function.
  14691. * src/FtpInitiateConnectionCommand.cc
  14692. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14693. * src/HttpInitiateConnectionCommand.h
  14694. (nameResolverFinished): New function.
  14695. * src/HttpInitiateConnectionCommand.cc
  14696. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14697. * src/prefs.h
  14698. (PREF_DNS_TIMEOUT): New definition.
  14699. * src/main.cc
  14700. (main): Added PREF_DNS_TIMEOUT.
  14701. To add the support for a non-compact response from a tracker:
  14702. * src/PeerListProcessor.h: New class.
  14703. * src/DefaultPeerListProcessor.h: New class.
  14704. * src/DefaultPeerListProcessor.cc: New class.
  14705. * src/CompactPeerListProcessor.h: New class.
  14706. * src/CompactPeerListProcessor.cc: New class.
  14707. * src/DelegatingPeerListProcessor.h: New class.
  14708. * src/DelegatingPeerListProcessor.cc: New class.
  14709. * src/TorrentMan.cc
  14710. (addPeer): New function(overload).
  14711. (addPeer): Delete unused peers only when new peer is added.
  14712. * src/TorrentMan.h
  14713. (PeerListProcessor.h): Included.
  14714. (Peers): Removed.
  14715. (addPeer): New function(overload).
  14716. * src/TrackerUpdateCommand.cc
  14717. (netinet/in.h): Removed.
  14718. (DelegatingPeerListProcessor.h): Included.
  14719. (execute): Updated to use DelegatingPeerListProcessor.
  14720. To fix the memory leak in TorrentMan::peers:
  14721. * src/PeerAbstractCommand.cc
  14722. (onAbort): Added peer->resetStatus().
  14723. * src/Peer.h
  14724. (resetStatus): Made public.
  14725. To improve the precision of the speed calculation:
  14726. * src/SpeedCalc.h
  14727. (nextInterval): New variable.
  14728. * src/SpeedCalc.cc
  14729. (reset): Added nextInterval.
  14730. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14731. (changeSw): Set nextInterval to 15 seconds relative to the current
  14732. instant time.
  14733. * src/main.cc
  14734. (showVersion): Updated.
  14735. (showUsage): Updated.
  14736. * Release 0.8.1
  14737. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14738. * src/main.cc
  14739. (showUsage): Commented out --min-segment-size option.
  14740. (main): Commented out --min-segment-size option.
  14741. * Release 0.8.0
  14742. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14743. * src/*.{h,cc}:
  14744. Added an exception to the license which allows linking with OpenSSL.
  14745. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14746. * src/AbstractCommand.cc
  14747. (execute): Check whether the download has finished before checking
  14748. socket status.
  14749. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14750. Do not exit even if no segment is available.
  14751. * src/prefs.h
  14752. (PREF_STARTUP_IDLE_TIME): New definition.
  14753. * src/PeerInteractionCommand.cc
  14754. (executeInternal): Removed max speed limit. Because it performs bad.
  14755. (receiveMessages): Added max speed limit. This was better than above,
  14756. but still a little bit to be desired. Sometimes the download speed
  14757. became much faster than I specified.
  14758. * src/SpeedCalc.h
  14759. (start): New variable.
  14760. (accumulatedLength): New variable.
  14761. (getAvgSpeed): New function.
  14762. * src/SpeedCalc.cc
  14763. (reset): Added start, accumulatedLength.
  14764. (update): Added calculation of an average speed.
  14765. (getAvgSpeed): New function.
  14766. * src/DownloadCommand.h
  14767. (sw): Removed.
  14768. * src/main.cc
  14769. (main): Added PREF_STARTUP_IDLE_TIME.
  14770. * src/PeerStat.h
  14771. (STATUS): Added REQUEST_IDLE.
  14772. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14773. (getAvgDownloadSpeed): New function
  14774. (requestIdle): New function.
  14775. * src/SegmentMan.h
  14776. (SegmentEntryHandle): New type definition.
  14777. (SegmentEntries): Now holds SegmentEntryHandle.
  14778. (findSlowerSegmentEntry): New funtion.
  14779. * src/SegmentMan.cc
  14780. (save): Updated according to the changes in SegmentEntries.
  14781. (read): Updated according to the changes in SegmentEntries.
  14782. (FindSegmentEntryByIndex): Updated according to the changes in
  14783. SegmentEntries.
  14784. (FindSegmentEntryByCuid): Updated according to the changes in
  14785. SegmentEntries.
  14786. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14787. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14788. Renamed uitr as itr.
  14789. (findSlowerSegmentEntry): New function.
  14790. (getSegment): Updated according to the changes in SegmentEntries.
  14791. Added the feature that cancels the segment with slow server and fast
  14792. one takes it over.
  14793. (cancelSegment): Updated according to the changes in SegmentEntries.
  14794. (getDownloadLength): Updated according to the changes in
  14795. SegmentEntries.
  14796. (init): Assigned 0 to bitfield after deleting it.
  14797. * src/DownloadCommand.cc
  14798. (STARTUP_IDLE_TIME): Removed.
  14799. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14800. * src/PeerChokeCommand.cc
  14801. (optUnchokingPeer): Updated according to the changes in Peer.
  14802. (ResetDelta): Removed.
  14803. (UploadFaster): Updated according to the changes in Peer.
  14804. (DownloadFaster): Updated according to the changes in Peer.
  14805. (execute): I clarify the meaning of "upload" and "download" here.
  14806. "upload" means the transfer from localhost to remote host.
  14807. "download" means the transfer from remote host to localhost.
  14808. Based on this rule, I swapped orderByUploadRate and
  14809. orderByDownloadRate.
  14810. * src/PeerInteractionCommand.cc
  14811. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14812. (executeInternal): Removed the argument of
  14813. peerInteraction->sendMessages().
  14814. (receiveMessages): Rewritten download speed limit.
  14815. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14816. * src/HttpResponseCommand.cc
  14817. (handleDefaultEncoding): If file size is unknown in torrent request,
  14818. do not call segmentMan->initBitfield() here.
  14819. Disabled persistent connection feature in torrent request.
  14820. * src/UrlRequestInfo.h
  14821. (UrlRequestInfo): Removed const qualifier from option.
  14822. * src/TorrentMan.h
  14823. (TransferStat): New class.
  14824. (deltaDownloadLength): Removed.
  14825. (deltaUploadLength): Removed.
  14826. (addDeltaDownloadLength): Removed.
  14827. (getDeltaDownloadLength): Removed.
  14828. (resetDeltaDownloadLength): Removed.
  14829. (addDeltaUploadLength): Removed.
  14830. (getDeltaUploadLength): Removed.
  14831. (resetDeltaUploadLength): Removed.
  14832. (addActivePeer): Added peer->activate().
  14833. (deleteActivePeer): Added peer->deactivate().
  14834. (calculateStat): New function.
  14835. * src/TorrentMan.cc
  14836. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14837. (calculateStat): New function.
  14838. * src/PeerInteraction.h
  14839. (uploadLimit): Removed.
  14840. (option): New variable.
  14841. (setUploadLimit): Removed.
  14842. (getUploadSpeed): Removed.
  14843. (sendMessages): Removed the argument "currentUploadSpeed".
  14844. * src/PeerInteraction.cc
  14845. (prefs.h): Included.
  14846. (PeerInteraction): Removed uploadLimit. Added option.
  14847. (sendMessages): Rewritten upload speed limit.
  14848. (sendHandshake): Removed the argument from sendMessages().
  14849. (sendBitfield): Removed the argument from sendMessages().
  14850. * src/PeerAbstractCommand.cc
  14851. (execute): Commented out the portion of upload limit.
  14852. (onAbort): Removed peer->resetStatus().
  14853. * src/TorrentRequestInfo.cc
  14854. (timeoutSpecified): Declared extern.
  14855. (execute): Set timeout to 180 if timeout is not specified by.
  14856. command-line.
  14857. * src/PieceMessage.cc
  14858. (receivedAction): Added peer->updateDownloadLength().
  14859. Removed peer->addPeerUpload().
  14860. Removed torrentMan->addDeltaDownloadLength().
  14861. (send): Added peer->updateUploadLength().
  14862. Removed peer->addPeerDownload().
  14863. Removed torrentMan->addDeltaUploadLength().
  14864. * src/main.cc
  14865. (timeoutSpecified): New variable.
  14866. (main): Set timeoutSpecified to false.
  14867. If the command-line option "--upload-limit" is specified, then
  14868. timeoutSpecified is set to true. This option will remain in the next
  14869. release, but be deprecated in the future release.
  14870. * src/TorrentRequestInfo.h
  14871. (TorrentRequestInfo): Removed const qualifier from op.
  14872. * src/PeerStat.h
  14873. (uploadSpeed): New variable.
  14874. (PeerStat): Added default value to cuid.
  14875. (calculateUploadSpeed): New function.
  14876. (updateUploadLength): New function.
  14877. (getMaxUploadSpeed): New function.
  14878. (getAvgUploadSpeed): New function.
  14879. (reset): Added uploadSpeed. Set status to IDLE.
  14880. * src/TorrentDownloadEngine.h
  14881. (cp): Declared as Time.
  14882. (sessionDownloadLengthArray): Removed.
  14883. (sessionUploadLengthArray): Removed.
  14884. (currentCp): Removed.
  14885. (lastCalcStat): New variable
  14886. (lastElapsed): Removed.
  14887. (sessionDownloadLength): Removed.
  14888. (calculateStat): New function.
  14889. * src/TorrentDownloadEngine.cc
  14890. (initStatistics): Removed lastElapsed, cp[],
  14891. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14892. currentCp, sessionDownloadLength.
  14893. Added cp.reset() and lastCalcStat.reset().
  14894. (calculateSpeed): Changed the name of the argument.
  14895. (calculateStatistics): Rewritten.
  14896. (calculateStat): New function.
  14897. * src/Peer.h
  14898. (PeerStat.h): Included.
  14899. (peerUpload): Removed.
  14900. (peerDownload): Removed.
  14901. (peerStat): New variable.
  14902. (sessionUploadLength): New variable.
  14903. (sessionDownloadLength): New variable.
  14904. (deltaUpload): Removed.
  14905. (deltaDownload): Removed.
  14906. (resetStatus): Made private.
  14907. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14908. Removed peerUpload, peerDownload.
  14909. (updateUploadLength): New function.
  14910. (addDeltaUpload): Removed.
  14911. (updateDownloadLength): New function.
  14912. (resetDeltaUpload): Removed.
  14913. (getDeltaUpload): Removed.
  14914. (addDeltaDownload): Removed.
  14915. (calculateUploadSpeed): New function.
  14916. (resetDeltaDownload): Removed.
  14917. (getDeltaDownload): Removed.
  14918. (calculateDownloadSpeed): New function.
  14919. (getSessionUploadLength): New function.
  14920. (getSessionDownloadLength): New function.
  14921. (activate): New function.
  14922. (deactivate): New function.
  14923. (addPeerUpload): Removed.
  14924. (setPeerUpload): Removed.
  14925. (getPeerUpload): Removed.
  14926. (addPeerDownload): Removed.
  14927. (setPeerDownload): Removed.
  14928. (getPeerDownload): Removed.
  14929. * src/Peer.cc
  14930. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14931. * src/MetalinkRequestInfo.h
  14932. (MetalinkRequestInfo): Removed const qualifier from op.
  14933. * src/RequestInfo.h
  14934. (op): Removed const qualifier.
  14935. (RequestInfo): Removed const qualifier from op.
  14936. * src/prefs.h
  14937. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14938. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14939. * src/PeerInteractionCommand.cc
  14940. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14941. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14942. * src/PeerInteraction.cc
  14943. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14944. * src/main.cc
  14945. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14946. Added the description of "--max-download-limit" option.
  14947. Removed the description of "--upload-limit" option.
  14948. Added the description of "--max-upload-limit" option.
  14949. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14950. Added "--max-download-limit" option and "--max-upload-limit" option.
  14951. Added the warning message if "--upload-limit" option is used.
  14952. * src/DownloadCommand.cc
  14953. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14954. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14955. To rewrite segment download mechanism for HTTP/FTP download.
  14956. Use BitfieldMan to manage segment download.
  14957. * src/HttpResponseCommand.h
  14958. (executeInternal): Pass the reference of segment.
  14959. * src/AbstractCommand.cc
  14960. (prepareForRetry): Call segmentMan->cancelSegment here.
  14961. (onAbort): Call segmentMan->cancelSegment here.
  14962. * src/HttpDownloadCommand.cc
  14963. (prepareForNextSegment): New function.
  14964. * src/DownloadEngineFactory.cc
  14965. (newConsoleEngine): Removed splitter.
  14966. (newTorrentConsoleEngine): Removed splitter.
  14967. * src/Request.h
  14968. (segment): Renamed from seg.
  14969. * src/FtpInitiateConnectionCommand.h
  14970. (executeInternal): Pass the reference of segment.
  14971. * src/AbstractCommand.h
  14972. (executeInternal): Pass the reference of segment.
  14973. * src/pref.h
  14974. (PREF_SEGMENT_SIZE): New definition.
  14975. * src/HttpProxyRequestCommand.h
  14976. (executeInternal): Pass the reference of segment.
  14977. * src/HttpResponseCommand.cc
  14978. (checkResponse): Allowed status 206 when a request range starts 0.
  14979. (handleDefaultEncoding): Rewritten the code related to Segment.
  14980. (handleOtherEncoding): Rewritten the code related to Segment.
  14981. * src/SegmentMan.h
  14982. (SegmentEntry): New class.
  14983. (SegmentEntries): New type definition.
  14984. (bitfield): New variable.
  14985. (usedSegmentEntries): New variable.
  14986. (onNullBitfield): New function.
  14987. (checkoutSegment): New function.
  14988. (segments): Removed.
  14989. (splitter): Removed.
  14990. (unregisterId): Removed.
  14991. (getSegment): New function(overload)
  14992. (getDownloadedSize): Removed.
  14993. (cancelSegment): New function.
  14994. (completeSegment): New function.
  14995. (initBitfield): New function.
  14996. (hasSegment): New function.
  14997. (getDownloadLength): New function.
  14998. * src/BitfieldMan.h
  14999. (getStartIndex): New function.
  15000. (getEndIndex): New function.
  15001. (getMissingUnusedIndex): New function(overload).
  15002. (getSparseMissingUnusedIndex): New function.
  15003. * src/BitfieldMan.cc
  15004. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15005. (getMissingUnusedIndex): New function(overload).
  15006. (Range): New class.
  15007. (getStartIndex): New function.
  15008. (getEndIndex): New function.
  15009. (getSparseMissingUnusedIndex): New function.
  15010. (isBitSetInternal): Return false if the given index is less than 0.
  15011. * src/HttpInitiateConnectionCommand.h
  15012. (executeInternal): Pass the reference of segment.
  15013. * src/FtpNegotiateCommand.h
  15014. (executeInternal): Pass the reference of segment.
  15015. * src/FtpNegotiateCommand.cc
  15016. (recvSize): Initialize bitfield here.
  15017. * src/FtpTunnelResponseCommand.h
  15018. (executeInternal): Pass the reference of segment.
  15019. * src/HttpConnection.cc
  15020. (createRequest): Rewritten range header processing.
  15021. * src/DownloadCommand.h
  15022. (executeInternal): Pass the reference of segment.
  15023. (prepareForRetry): Removed.
  15024. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15025. function.
  15026. * src/main.cc
  15027. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15028. * src/SegmentMan.cc
  15029. (SegmentMan): Added bitfield. Removed splitter.
  15030. (~SegmentMan): Added bitfield. Removed splitter.
  15031. (unregisterId): Removed.
  15032. (getSegment): Rewritten.
  15033. (updateSegment): Rewritten.
  15034. (save): Rewritten.
  15035. (read): Rewritten.
  15036. (finished): Rewritten.
  15037. (getDownloadedSize): Removed.
  15038. (initBitfield): New function.
  15039. (FindSegmentEntryByIndex): New function object.
  15040. (FindSegmentEntryByCuid): New function object.
  15041. (checkoutSegment): New function.
  15042. (onNullBitfield): New function.
  15043. (getSegment): New function(overload).
  15044. (CancelSegment): New function object.
  15045. (cancelSegment): New function.
  15046. (completeSegment): New function.
  15047. (hasSegment): New function.
  15048. (getDownloadLength): New function.
  15049. * src/FtpInitiateConnectionCommand.cc
  15050. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15051. * src/Segment.h: Rewritten.
  15052. * src/Segment.cc (operator<<): New function.
  15053. * src/HttpDownloadCommand.h
  15054. (prepareForNextSegment): New function.
  15055. * src/Request.cc
  15056. (resetUrl): Made segment null.
  15057. * src/DownloadEngine.cc
  15058. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15059. * src/HttpProxyRequestCommand.h
  15060. (executeInternal): Pass the reference of segment.
  15061. * src/DownloadCommand.cc
  15062. (executeInternal): Rewritten the code related to Segment.
  15063. (prepareForRetry): Removed.
  15064. (prepareForNextSegment): Rewritten.
  15065. * src/FtpTunnelResponseCommand.h
  15066. (executeInternal): Pass the reference of segment.
  15067. To add HTTP 1.1 persistent connection support(experimental)
  15068. * src/HttpRequestCommand.cc
  15069. (executeInternal): Disable keep alive if it is disabled by
  15070. configuration.
  15071. * src/Request.h
  15072. (keepAlive): New variable.
  15073. (isKeepAlive): New function.
  15074. (setKeepAlive): New function.
  15075. * src/pref.h
  15076. (PREF_HTTP_KEEP_ALIVE): New definition.
  15077. * src/HttpResponseCommand.cc
  15078. (executeInternal): Check the remote server supports keep alive.
  15079. * src/HttpConnection.cc
  15080. (createRequest): Send "Connection: close" only if keep alive is
  15081. disabled.
  15082. * src/main.cc
  15083. (main):
  15084. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15085. To add max download speed limit:
  15086. * src/pref.h
  15087. (PREF_MAX_SPEED_LIMIT): New definition.
  15088. * src/PeerInteractionCommand.cc
  15089. (executeInternal): Added max download speed limit. Not tested yet.
  15090. * src/SegmentMan.h
  15091. (PeerStats): New type definition.
  15092. (peerStats): New variable.
  15093. (registerPeerStat): New function.
  15094. (FindPeerStat): New function object.
  15095. (getPeerStat): New function.
  15096. (calculateDownloadSpeed): New function.
  15097. * src/SpeedCalc.h: New class.
  15098. * src/SpeedCalc.cc: New class.
  15099. * src/main.cc
  15100. (main):
  15101. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15102. download speed is not restricted).
  15103. * src/PeerStat.h: New class.
  15104. * src/SegmentMan.cc
  15105. (registerPeerStat): New function.
  15106. (calculateDownloadSpeed): New function.
  15107. * src/DownloadCommand.cc
  15108. (STARTUP_IDLE_TIME): New definition.
  15109. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15110. downloadStart.
  15111. (~DownloadCommand): Call peerStat->downloadStop.
  15112. (executeInternal): Added download speed limitter. Rewritten lowest
  15113. speed limitter.
  15114. * src/HttpConnection.cc
  15115. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15116. * src/AbstractCommand.cc
  15117. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15118. Added hostname to the error message.
  15119. * src/ConsoleDownloadEngine.cc
  15120. (calculateStatistics): Initialize psize with dlSize.
  15121. * src/PieceMessage.cc
  15122. (receivedAction): Do not call peerInteraction->abortPiece here.
  15123. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15124. * src/BitfieldMan.h
  15125. (clearAllUseBit): New function.
  15126. (setAllUseBit): New function.
  15127. * src/BitfieldMan.cc
  15128. (clearAllBit): Do not clear useBitfield here.
  15129. (clearAllUseBit): New function.
  15130. (setAllUseBit): New function.
  15131. * src/Piece.cc
  15132. (clearAllBlock): Call bitfield->clearAllUseBit().
  15133. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15134. To make filename URL-decoded:
  15135. * src/HttpResponseCommand.h: Updated doc.
  15136. * src/HttpResponseCommand.cc
  15137. (determinFilename): Made filename URL-decoded.
  15138. * src/FtpInitiateConnectionCommand.cc
  15139. (executeInternal): Made filename URL-decoded.
  15140. * src/Util.h (urldecode): New function.
  15141. * src/Util.cc (urldecode): New function.
  15142. To fix a bug that caused assertion failure in ares_strerror:
  15143. * src/NameResolver.cc (callback): Fixed the bug.
  15144. * Release 0.7.3
  15145. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15146. To add --seed-time and --seed-ratio command-line option:
  15147. * src/Option.h (getAsDouble): New function.
  15148. * src/Option.cc (getAsDouble): New function.
  15149. * src/SeedCheckCommand.h: New class.
  15150. * src/SeedCheckCommand.cc: New class.
  15151. * src/DownloadEngineFactory.cc
  15152. (SeedCheckCommand.h): Included.
  15153. (UnionSeedCriteria.h): Included.
  15154. (TimeSeedCriteria.h): Included.
  15155. (ShareRatioSeedCriteria.h): Included.
  15156. (newTorrentConsoleEngine): Added the processing of seed option.
  15157. * src/SeedCriteria.h: New class.
  15158. * src/ShareRatioSeedCriteria.h: New class.
  15159. * src/TimeSeedCriteria.h: New class.
  15160. * src/UnionSeedCriteria.h: New class.
  15161. * src/prefs.h
  15162. (PREF_SEED_TIME): New definition.
  15163. (PREF_SEED_RATIO): New definition.
  15164. * src/main.cc
  15165. (showUsage): Added --seed-time and --seed-ratio option.
  15166. (main): Added --seed-time and --seed-ratio option.
  15167. Made default log file name "/dev/null".
  15168. * src/SharedHandle.h
  15169. (SharedHandle): Copy constructor. Made it assignable from the
  15170. SharedHandle of the subclasses.
  15171. (operator=): Made it assignable from the SharedHandle of the
  15172. subclasses.
  15173. (getRefCount): New function.
  15174. To add notice log level and the switch to write log to stdout. This
  15175. switch is configurable per log level.
  15176. * src/Logger.h
  15177. (notice): New function.
  15178. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15179. constant.
  15180. * src/LogFactory.cc
  15181. (getInstance): The use of NullLogger was removed. A log message with
  15182. notice log level was made written to stdout along with log file.
  15183. * src/NullLogger.h
  15184. (notice): New function.
  15185. * src/SimpleLogger.h
  15186. (writeHeader): Added the 'file' argument.
  15187. (writeLog): Added the 'file' argument.
  15188. (writeFile): New function.
  15189. (stdoutField): New variable.
  15190. (SimpleLogger): Removed the default constructor.
  15191. (SimpleLogger): Made the default value of logfile 0.
  15192. (debug): Added 'virtual' keyword.
  15193. (info): Added 'virtual' keyword.
  15194. (warn): Added 'virtual' keyword.
  15195. (error): Added 'virtual' keyword.
  15196. (notice): New function.
  15197. (setStdout): New function.
  15198. * src/SimpleLogger.cc
  15199. (WRITE_LOG): Replaced writeLog with writeFile.
  15200. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15201. (SimpleLogger): Removed the default constructor.
  15202. (setStdout): New function.
  15203. (writeLog): Added the handling of NOTICE log level.
  15204. (writeFile): New function.
  15205. (notice): New function.
  15206. * src/TorrentMan.h: Updated doc.
  15207. * src/BitfieldMan.h: Updated doc.
  15208. * src/TrackerWatcherCommand.cc
  15209. (execute): Return true if error occurred in the request to the tracker
  15210. and halt is requested.
  15211. * src/TrackerUpdateCommand.cc
  15212. (execute): Return true if error occurred in the request to the tracker
  15213. and halt is requested.
  15214. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15215. DownloadEngine:
  15216. * src/TorrentConsoleDownloadEngine.h
  15217. (onSelectiveDownloadingCompletes): Removed.
  15218. * src/TorrentConsoleDownloadEngine.cc
  15219. (onSelectiveDownloadingCompletes): Removed.
  15220. * src/TorrentDownloadEngine.h
  15221. (onEndOfRun): Added 'virtual' keyword.
  15222. (afterEachIteration): Removed.
  15223. (onSelectiveDownloadingCompletes): Removed.
  15224. * src/TorrentDownloadEngine.cc
  15225. (onEndOfRun): Removed filenameFixed.
  15226. (afterEachIteration): Removed.
  15227. * src/TorrentMan.cc
  15228. (completePiece): Call onDownloadComplete here.
  15229. (onDownloadComplete): Added 2 log messages.
  15230. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15231. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15232. * src/NameResolver.h: Added the prototype declaration of callback().
  15233. To support c-ares library:
  15234. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15235. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15236. * src/FtpInitiateConnectionCommand.h:
  15237. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15238. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15239. * src/HttpInitiateConnectionCommand.h:
  15240. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15241. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15242. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15243. #1542285 by tizianomueller)
  15244. * src/HttpInitiateConnectionCommand.cc:
  15245. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15246. * src/FtpInitiateConnectionCommand.cc:
  15247. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15248. * src/DownloadEngine.h:
  15249. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15250. * src/DownloadEngine.cc:
  15251. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15252. To fix the bug that causes compilation failure with metalink-support
  15253. disabled(bug#1543587):
  15254. * src/main.cc: Fixed with the patch by tizianomueller.
  15255. * Release 0.7.2
  15256. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15257. * src/main.cc
  15258. (main): Added a message to inform users that aria2 is starting to
  15259. verify checksum.
  15260. * src/RequestInfo.cc
  15261. (printDownloadAbortMessage): Added a message to inform users that
  15262. transfer can be resumed.
  15263. * src/FeatureConfig.cc
  15264. (FEATURE_ASYNC_DNS): New definition.
  15265. (FeatureConfig): Added aysnc DNS entry.
  15266. To replace CommandUuid with Command* in SocketEntry and
  15267. NameResolverEntry:
  15268. * src/DownloadEngine.h
  15269. (CommandUuids): Removed.
  15270. (SocketEntry::commandUuid): Removed.
  15271. (SocketEntry::command): New variable.
  15272. (SocketEntry::SocketEntry): Updated.
  15273. (SocketEntry::operator==): Updated.
  15274. (NameResolverEntry::commandUuid): Removed.
  15275. (NameResolverEntry::command): New variable.
  15276. (NameResolverEntry::NameResolverEntry): Updated.
  15277. (NameResolverEntry::operator==): Updated.
  15278. (waitData): Changed the argument type.
  15279. (addSocketForReadCheck): Changed the argument type.
  15280. (deleteSocketForReadCheck): Changed the argument type.
  15281. (addSocketForWriteCheck): Changed the argument type.
  15282. (deleteSocketForWriteCheck): Changed the argument type.
  15283. (addNameResolverCheck): Changed the argument type.
  15284. (deleteNameResolverCheck): Changed the argument type.
  15285. * src/DownloadEngine.cc
  15286. (FindCommand): Removed.
  15287. (run): Removed activeUuid. Added activeCommands instead.
  15288. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15289. (AccumulateActiveCommand): New function object.
  15290. (waitData): Use AccumulateActiveCommand.
  15291. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15292. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15293. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15294. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15295. (addNameResolverCheck): Use Command instead of CommandUuid.
  15296. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15297. * src/AbstractCommand.cc
  15298. (disableReadCheckSocket): Updated according to the changes in
  15299. DownloadEngine.
  15300. (setReadCheckSocket): Updated according to the changes in
  15301. DownloadEngine.
  15302. (disableWriteCheckSocket): Updated according to the changes in
  15303. DownloadEngine.
  15304. (setWriteCheckSocket): Updated according to the changes in
  15305. DownloadEngine.
  15306. (setNameResolverCheck): Updated according to the changes in
  15307. DownloadEngine.
  15308. (disableNameResolverCheck): Updated according to the changes in
  15309. DownloadEngine.
  15310. * src/AbstractCommand.cc
  15311. (disableReadCheckSocket): Updated according to the changes in
  15312. DownloadEngine.
  15313. (setReadCheckSocket): Updated according to the changes in
  15314. DownloadEngine.
  15315. (disableWriteCheckSocket): Updated according to the changes in
  15316. DownloadEngine.
  15317. (setWriteCheckSocket): Updated according to the changes in
  15318. DownloadEngine.
  15319. * release 0.7.1
  15320. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15321. To handle the case where some BitTorrent tracker requires all letters
  15322. except for [A-Za-z0-9] is URL encoded.
  15323. * src/Util.h
  15324. (torrentUrlencode): New function.
  15325. * src/Util.cc
  15326. (ctype.h): Included.
  15327. (torrentUrlencode): New function.
  15328. * src/TrackerWatcherCommand.cc
  15329. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15330. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15331. To add asynchronous DNS support(libares):
  15332. * src/AbstractCommand.h
  15333. (setNameResolverCheck): New function.
  15334. (disableNameResolverCheck): New function
  15335. (resolveHostname): New function.
  15336. * src/AbstractCommand.cc
  15337. (setNameResolverCheck): New function.
  15338. (disableNameResolverCheck): New function
  15339. (resolveHostname): New function.
  15340. * src/FtpInitiateConnectionCommand.h
  15341. (nameResolver): New function.
  15342. * src/FtpInitiateConnectionCommand.cc
  15343. (Util.h): Included.
  15344. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15345. disableWriteCheckSocket.
  15346. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15347. (executeInternal): Added async DNS support.
  15348. * src/HttpInitiateConnectionCommand.h
  15349. (nameResolver): New function.
  15350. * src/HttpInitiateConnectionCommand.cc
  15351. (DlRetryEx.h): Included.
  15352. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15353. disableWriteCheckSocket.
  15354. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15355. (executeInternal): Added async DNS support.
  15356. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15357. by extern "C" declaration.
  15358. * src/NameResolver.cc: New class.
  15359. * src/Util.h:
  15360. (isNumberAndDotsNotation): New function
  15361. * src/Util.cc
  15362. (isNumberAndDotsNotation): New function.
  15363. * src/DownloadEngine.h
  15364. (NameResolver.h): Included.
  15365. (NameResolverEntry): New class.
  15366. (NameResolverEntries): New type definition.
  15367. (addNameResolverCheck): New function.
  15368. (deleteNameResolverCheck): New function.
  15369. * src/DownloadEngine.cc
  15370. (run): Initialize cp with 0.
  15371. (SetDescriptor::operator()): Added for NameResolverEntry.
  15372. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15373. (waitData): Check nameResolver entries.
  15374. (updateFdSet): Update fds in nameResolver entries.
  15375. (addNameResolverCheck): New function.
  15376. (deleteNameResolverCheck): new function.
  15377. * src/PeerInteractionCommand.cc
  15378. (executeInternal): Fixed wrong socket handling.
  15379. * src/main.cc
  15380. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15381. * src/Util.cc
  15382. (fileChecksum): Removed the call to ctx.digestReset().
  15383. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15384. * po/ru.po: Azamat sent me Russian translation.
  15385. * src/FtpNegotiateCommand.cc
  15386. (recvGreeting): Call disableWriteCheckSocket just after
  15387. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15388. (recvRetr): Recognized status code 125 as a acceptable response code.
  15389. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15390. case-insesitive filesystem(BUG#1531057).
  15391. * src/Time.h: Renamed as TimeA2.h.
  15392. * src/Time.cc: Renamed as TimeA2.cc.
  15393. * src/TimeA2.h: New class.
  15394. * src/TimeA2.cc: New class.
  15395. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15396. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15397. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15398. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15399. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15400. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15401. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15402. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15403. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15404. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15405. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15406. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15407. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15408. * release 0.7.0
  15409. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15410. * src/PeerChokeCommand.h
  15411. (PeerChokeCommand): Rearranged the arguments.
  15412. * src/PeerChokeCommand.cc
  15413. (PeerChokeCommand): Rearranged the arguments.
  15414. * src/MetalinkEntry.h
  15415. (Checksum.h): Included.
  15416. (md5): Removed.
  15417. (sha1): Removed.
  15418. (checksum): New variable.
  15419. (operator=): Updated.
  15420. (check): Removed.
  15421. * src/prefs.h
  15422. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15423. (PREF_FOLLOW_TORRENT): New definition.
  15424. (PREF_SELECT_FILE): New definition.
  15425. (PREF_FOLLOW_METALINK): New definition.
  15426. * src/MetalinkResource.h
  15427. (TYPE_HTTPS): Added to enum TYPE.
  15428. * src/TorrentMan.cc
  15429. (~TorrentMan): Rewritten.
  15430. * src/MultiDiskWriter.cc
  15431. (MultiDiskAdaptor): Updated according to the changes in
  15432. MessageDigestContext.
  15433. (~MultiDiskAdaptor): Updated according to the changes in
  15434. MessageDigestContext.
  15435. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15436. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15437. * src/Util.h
  15438. (fileChecksum): Updated according to the changes in
  15439. MessageDigestContext.
  15440. * src/Util.cc
  15441. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15442. (fileChecksum): Updated according to the changes in
  15443. MessageDigestContext.
  15444. * src/messageDigest.h: Rewritten.
  15445. * src/MetalinkEntry.cc
  15446. (check): Removed.
  15447. (Supported): Updated.
  15448. (dropUnsupportedResource): Fixed a memory leak.
  15449. * src/ShaVisitor.cc
  15450. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15451. (~ShaVisitor): Updated according to the changes in
  15452. MessageDigestContext.
  15453. (visit): Updated according to the changes in MessageDigestContext.
  15454. * src/main.cc
  15455. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15456. command-line option added.
  15457. * src/DownloadEngine.h
  15458. (SocketEntry): New class.
  15459. (SocketEntries): New definition.
  15460. (PairFind): Removed.
  15461. (SockCmdMap): Removed.
  15462. * src/DownloadEngine.cc
  15463. (DownloadEngine): Rewritten.
  15464. (~DownloadEngine): Rewritten.
  15465. (run): Renamed activeCommandUuids as activeUuids.
  15466. (SetDescriptor): Rewritten.
  15467. (AccumulateActiveCommandUuid): Removed.
  15468. (AccumulateActiveUuid): New function object.
  15469. (waitData): Rewritten.
  15470. (updateFdSet): Rewritten.
  15471. (addSocket): Rewritten.
  15472. (deleteSocket): Rewritten.
  15473. (addSocketForReadCheck): Rewritten.
  15474. (deleteSocketForReadCheck): Rewritten.
  15475. (addSocketForWriteCheck): Rewritten.
  15476. (deleteSocketForWriteCheck): Rewritten.
  15477. * src/Xml2MetalinkProcessor.cc
  15478. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15479. * src/DownloadCommand.cc
  15480. (executeInternal): Added the check routine for lowest speed limit.
  15481. * src/AbstractDiskWriter.cc
  15482. (AbstractDiskWriter): Updated according to the changes in
  15483. MessageDigestContext.
  15484. (~AbstractDiskWriter): Updated according to the changes in
  15485. MessageDigestContext.
  15486. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15487. * src/RequestInfo.h: New class.
  15488. * src/UrlRequestInfo.h: New class.
  15489. * src/UrlRequestInfo.cc: New class.
  15490. * src/TorrentRequestInfo.h: New class.
  15491. * src/TorrentRequestInfo.cc: New class.
  15492. * src/MetalinkRequestInfo.h: New class.
  15493. * src/MetalinkRequestInfo.cc: New class.
  15494. * src/Checksum.h: New class.
  15495. * src/DownloadEngineFactory.h: New class.
  15496. * src/DownloadEngineFactory.cc: New class.
  15497. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15498. * src/Option.h
  15499. (getAsBool): New function.
  15500. * src/Option.cc
  15501. (prefs.h): Included.
  15502. (defined): 0-length value is now recognized as undefined.
  15503. (getAsInt): Rewritten.
  15504. (getAsLLInt): Rewritten.
  15505. (getAsBool): New function.
  15506. * src/FeatureConfig.h: Rewritten.
  15507. * src/FeatureConfig.cc: Rewritten.
  15508. * src/prefs.h
  15509. (PREF_STDOUT_LOG): New definition.
  15510. (PREF_LOG): New definition.
  15511. (PREF_DIR): New definition.
  15512. (PREF_OUT): New definition.
  15513. (PREF_SPLIT): New definition.
  15514. (PREF_DAEMON): New definition.
  15515. (PREF_REFERER): New definition.
  15516. (PREF_TORRENT_FILE): New definition.
  15517. (PREF_LISTEN_PORT): New definition.
  15518. (PREF_METALINK_FILE): New definition.
  15519. (PREF_METALINK_VERSION): New definition.
  15520. (PREF_METALINK_LANGUAGE): New definition.
  15521. (PREF_METALINK_OS): New definition.
  15522. (PREF_METALINK_SERVERS): New definition.
  15523. * src/main.cc
  15524. (main): Following command-line parameters are now put into Option
  15525. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15526. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15527. metalinkLanguage, metalinkOs, metalinkServers
  15528. To fix the bug that aria2 can not handle http response header properly.
  15529. * src/HttpHeader.cc
  15530. (put): Made name lowercased.
  15531. (defined): Made name lowercased.
  15532. (getFirst): Made name lowercased.
  15533. (get): Made name lowercased.
  15534. (getFirstAsInt): Rewritten.
  15535. (getFirstAsLLInt): Rewritten.
  15536. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15537. * src/TorrentMan.h:
  15538. (advertisePiece): Updated doc.
  15539. (getAdvertisedPieceIndexes): Updated doc.
  15540. (removeAdvertisedPiece); New function.
  15541. * src/TorrentMan.cc
  15542. (FindElapsedHave): New function object.
  15543. (removeAdvertisedPiece): New function.
  15544. * src/HaveEraseCommand.h: New class.
  15545. * src/HaveEraseCommand.cc: New class.
  15546. * src/FeatureConfig.h: New class.
  15547. * src/FeatureConfig.cc: New class.
  15548. * src/Request.h
  15549. (defaultPorts): Removed.
  15550. * src/Request.cc
  15551. (FeatureConfig.h): Included.
  15552. (Request): Removed the statements related to defaultPorts.
  15553. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15554. A default port number is now retrieved from FeatureConfig.
  15555. * src/main.cc
  15556. (HaveEraseCommand.h): Included.
  15557. (showVersion): Added the output of feature list.
  15558. (main): Added HaveEraseCommand to command queue in BitTorrent
  15559. downloading.
  15560. * src/PeerInteractionCommand.h
  15561. (chokeCheckPoint): Commented out.
  15562. (periodicExecPoint): New variable.
  15563. * src/PeerInteractionCommand.cc
  15564. (executeInternal): Following methods are now called in at least every
  15565. 0.5 seconds to reduce CPU usage:
  15566. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15567. checkHave(), sendKeepAlive().
  15568. (checkLongTimePeerChoking): Commented out.
  15569. * src/BitfieldMan.h
  15570. (getNthBitIndex): Changed the method signature.
  15571. (getMissingIndexRandomly): Changed the method signature.
  15572. * src/BitfieldMan.cc
  15573. (getNthBitIndex): Rewritten
  15574. (getMissingIndexRandomly): Rewritten.
  15575. (hasMissingPiece): Rewritten.
  15576. (getMissingIndex): Refactored.
  15577. (getMissingUnusedIndex); Refactored.
  15578. (getMissingIndex): Refactored.
  15579. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15580. * src/PeerMessage.h
  15581. (Piece.h): Included.
  15582. (SharedHandle.h): Included.
  15583. (invalidate): New variable.
  15584. (uploading): New variable.
  15585. (isInvalidate): New function.
  15586. (isUploading): New function.
  15587. (onPush): New function.
  15588. (onChoked): New function.
  15589. (onCanceled): New function.
  15590. (onAbortPiece): New function.
  15591. (PeerMessageHandle): New type definition.
  15592. * src/PeerMessage.cc
  15593. (PeerMessage): Added the initialization for invalidate and uploading.
  15594. * src/CancelMessage.h
  15595. (CancelMessage): Rewritten.
  15596. * src/RejectMessage.h
  15597. (RejectMessage): Rewritten.
  15598. * src/Metalinker.h
  15599. (operator=): Defined.
  15600. * src/MetaEntry.h
  15601. (operator=): Defined.
  15602. * src/MetalinkResource.h
  15603. (operator=): Defined.
  15604. * src/AllowedFastMessage.h
  15605. (AllowedFastMessage): Rewritten.
  15606. * src/HandshakeMessage.h
  15607. (HandshakeMessage): New function(overload).
  15608. * src/HandshakeMessage.cc
  15609. (HandshakeMessage): Rewritten.
  15610. (init): New function.
  15611. * src/HaveMessage.h
  15612. (HaveMessage): Rewritten.
  15613. * src/Time.h
  15614. (operator=): Defined the function body here.
  15615. * src/Time.cc
  15616. (operator=): Removed.
  15617. * src/SocketCore.h
  15618. (operator==): Defined here.
  15619. (operator!=): Defined here.
  15620. (operator<): Defined here.
  15621. * src/SocketCore.cc
  15622. (operator==): Removed.
  15623. (operator<): Removed.
  15624. * src/BitfieldMan.h
  15625. (operator=): Defined the function body here.
  15626. * src/BitfieldMan.cc
  15627. (operator=): Removed.
  15628. * src/TorrentMan.h
  15629. (deleteErrorPeer): Removed.
  15630. (deleteUnusedPeer); New function.
  15631. * src/TorrentMan.cc
  15632. (addPeer): Call deleteUnusedPeer.
  15633. (deleteErrorPeer): Removed.
  15634. (deleteUnusedPeer): New function.
  15635. * src/PeerAbstractCommand.h
  15636. (setNoCheck): New function.
  15637. (noCheck): New variable.
  15638. * src/PeerAbstractCommand.cc
  15639. (PeerAbstractCommand): Added the initialization of noCheck.
  15640. (execute): Added a check for noCheck.
  15641. (setNoCheck): New function.
  15642. * src/Util.h
  15643. (stdio.h): Included.
  15644. * src/Util.cc
  15645. (unistd.h): Included.
  15646. * src/DefaultDiskWriter.cc
  15647. (unistd.h): Included.
  15648. * src/Peer.h
  15649. (operator==): Defined the function body here.
  15650. (operator!=): Defined the function body here.
  15651. * src/Peer.cc
  15652. (operator==): Removed.
  15653. (operator!=): Removed.
  15654. * src/Piece.h
  15655. (Piece): Defined the function body here(copy constructor).
  15656. (operator=): Defined the function body here.
  15657. (operator==): Defined the function body here.
  15658. * src/Piece.cc
  15659. (Piece): Removed(copy constructor).
  15660. (operator=): Removed.
  15661. (operator==): Removed.
  15662. * src/PeerMessageUtil.h
  15663. (ChokeMessage.h): Removed.
  15664. (UnchokeMessage.h): Removed.
  15665. (InterestedMessage.h): Removed.
  15666. (NotInterestedMessage.h): Removed.
  15667. (HaveMessage.h): Removed.
  15668. (BitfieldMessage.h): Removed.
  15669. (RequestMessage.h): Removed.
  15670. (CancelMessage.h): Removed.
  15671. (PieceMessage.h): Removed.
  15672. (HandshakeMessage.h): Removed.
  15673. (KeepAliveMessage.h): Removed.
  15674. (PortMessage.h): Removed.
  15675. (HaveAllMessage.h): Removed.
  15676. (HaveNoneMessage.h): Removed.
  15677. (PeerConnection.h): Removed.
  15678. (HandshakeMessage.h): Included.
  15679. * src/BitfieldMessage.h
  15680. (init): New function.
  15681. (BitfieldMessage): Rewritten.
  15682. (BitfieldMessage): New function(overload).
  15683. * src/RequestSlot.h
  15684. (operator=): Defined the function body here.
  15685. (operator==): Defined the function body here.
  15686. * src/RequestSlot.cc
  15687. (operator=): Removed.
  15688. (operator==): Removed.
  15689. To remove the dependency on the PeerMessage subclass from
  15690. PeerInteraction:
  15691. * src/PeerMessageFactory.h: New class.
  15692. * src/PeerMessageFactory.cc: New class.
  15693. * src/SimplePeerMessage.cc
  15694. (send): If invalidate is true then do nothing.
  15695. * src/PeerInteractionCommand.cc
  15696. (HandshakeMessage.h): Included.
  15697. (KeepAliveMessage.h): Included.
  15698. (ChokeMessage.h): Included.
  15699. (UnchokeMessage.h): Included.
  15700. (HaveMessage.h): Included.
  15701. (executeInternal): Call setNoCheck().
  15702. Removed setWriteCheckSocket(socket).
  15703. * src/PeerInteraction.h
  15704. (ChokeMessage.h): Removed.
  15705. (UnchokeMessage.h): Removed.
  15706. (InterestedMessage.h): Removed.
  15707. (NotInterestedMessage.h): Removed.
  15708. (HaveMessage.h): Removed.
  15709. (BitfieldMessage.h): Removed.
  15710. (RequestMessage.h): Removed.
  15711. (CancelMessage.h): Removed.
  15712. (PieceMessage.h): Removed.
  15713. (HandshakeMessage.h): Removed.
  15714. (KeepAliveMessage.h): Removed.
  15715. (PortMessage.h): Removed.
  15716. (HaveAllMessage.h): Removed.
  15717. (HaveNoneMessage.h): Removed.
  15718. (RejectMessage.h): Removed.
  15719. (AllowedFastMessage.h): Removed.
  15720. (SuggestPieceMessage.h): Removed.
  15721. (PeerMessageFactory.h): Included.
  15722. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15723. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15724. (PeerMessageFactory): New variable.
  15725. (createPeerMessage): Removed.
  15726. (createHandshakeMessage): Removed.
  15727. (setPeerMessageCommonProperty): Removed.
  15728. (addRequestSlot): New function.
  15729. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15730. (getPeerMessageFactory): New function.
  15731. (createRequestMessage): Removed.
  15732. (createCancelMessage): Removed.
  15733. (createPieceMessage): Removed.
  15734. (createHaveMessage): Removed.
  15735. (createChokeMessage): Removed.
  15736. (createUnchokeMessage): Removed.
  15737. (createInterestedMessage): Removed.
  15738. (createNotInterestedMessage): Removed.
  15739. (createBitfieldMessage): Removed.
  15740. (createKeepAliveMessage): Removed.
  15741. (createHaveAllMessage): Removed.
  15742. (createHaveNoneMessage): Removed.
  15743. (createRejectMessage): Removed.
  15744. (createAllowedFastMessage): Removed.
  15745. * src/PeerInteraction.cc
  15746. (PeerInteraction): Allocate PeerMessageFactory here.
  15747. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15748. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15749. PieceMessage::ID.
  15750. (addMessage): Simplified by using PeerMessage::onPush().
  15751. (addRequestSlot): New function.
  15752. (rejectAllPieceMessageInQueue): Simplified by using
  15753. PeerMessage::onChoked().
  15754. (rejectPieceMessageInQueue): Simplified by using
  15755. PeerMessage::onCanceled().
  15756. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15757. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15758. (createHandshakeMessage): Removed.
  15759. (createPeerMessage): Removed.
  15760. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15761. (setPeerMessageCommonProperty): Removed.
  15762. (createRequestMessage): Removed.
  15763. (createCancelMessage): Removed.
  15764. (createPieceMessage): Removed.
  15765. (createHaveMessage): Removed.
  15766. (createChokeMessage): Removed.
  15767. (createUnchokeMessage): Removed.
  15768. (createInterestedMessage): Removed.
  15769. (createNotInterestedMessage): Removed.
  15770. (createBitfieldMessage): Removed.
  15771. (createKeepAliveMessage): Removed.
  15772. (createHaveAllMessage): Removed.
  15773. (createHaveNoneMessage): Removed.
  15774. (createRejectMessage): Removed.
  15775. (createAllowedFastMessage): Removed.
  15776. * src/PieceMessage.h
  15777. (createRejectMessage): New function.
  15778. (PieceMessage): Rewritten.
  15779. (onChoked): New function.
  15780. (onCanceled): New function.
  15781. * src/PieceMessage.cc
  15782. (send): If invalidate is true then do nothing, just return.
  15783. (createRejectMessage): New function.
  15784. (onChoked): New function.
  15785. (onCanceled): New function.
  15786. * src/RequestMessage.h
  15787. (RequestMessage): Rewritten.
  15788. (onPush): New function.
  15789. (onAbortPiece): New function.
  15790. * src/RequestMessage.cc
  15791. (onPush): New function.
  15792. (onAbortPiece): New function.
  15793. Update fd_set when a socket is added or deleted in order to improve
  15794. performance:
  15795. * src/DownloadEngine.h
  15796. (rfdset): New variable.
  15797. (wfdset): New variable.
  15798. (updateFdSet): New function.
  15799. * src/DownloadEngine.cc
  15800. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15801. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15802. (waitData): Copy rfdset and wfdset.
  15803. (updateFdSet): New function.
  15804. (addSocket): Call updateFdSet.
  15805. (deleteSocket): Call updateFdSet.
  15806. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15807. To add the support for Metalink3.0 backward compatible links:
  15808. * src/Request.h
  15809. (SAFE_CHARS): Added '#'.
  15810. (METALINK_MARK): New definition.
  15811. * src/Request.cc
  15812. (parseUrl): Added the support for Metalink3.0 backward compatible
  15813. links.
  15814. etc
  15815. * src/PeerInteraction.cc
  15816. (MsgPushBack): Removed.
  15817. (sendMessages): Use STL copy and back_inserter.
  15818. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15819. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15820. * src/TorrentMan.h
  15821. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15822. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15823. * src/SharedHandle.h: New class.
  15824. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15825. * src/HttpResponseCommand.h
  15826. (HttpResponseCommand): Wrapped Socket.
  15827. * src/SocketCore.h
  15828. (operator==): New function.
  15829. (operator!=): New function.
  15830. (operator<): New function.
  15831. (getSockfd): New function.
  15832. (isOpen): New function.
  15833. (writeData): New function.
  15834. * src/SocketCore.cc
  15835. (operator==): New function.
  15836. (operator!=): New function.
  15837. (operator<): New function.
  15838. * src/AbstractCommand.h
  15839. (socket): Changed its type to SocketHandle.
  15840. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15841. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15842. (disableReadCheckSocket): New function.
  15843. (disableWriteCheckSocket): New function.
  15844. (readCheckTarget): Changed its type to SocketHandle.
  15845. (writeCheckTarget): Changed its type to SocketHandle.
  15846. (AbstractCommand): Replaced Socket with SocketHandle.
  15847. * src/AbstractCommand.cc
  15848. (AbstractCommand): Replaced Socket with SocketHandle.
  15849. (~AbstractCommand): Removed the deallocation for Socket object.
  15850. (disableReadCheckSocket): New function.
  15851. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15852. (disableWriteCheckSocket): New function.
  15853. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15854. * src/HttpDownloadCommand.cc
  15855. (DownloadCommand): Replaced Socket with SocketHandle.
  15856. * src/PeerAbstractCommand.h
  15857. (socket): Changed its type to SocketHandle.
  15858. (peer): Changed its type to PeerHandle.
  15859. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15860. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15861. (disableReadCheckSocket): New function.
  15862. (disableWriteCheckSocket): New function.
  15863. (readCheckTarget): Changed its type to SocketHandle.
  15864. (writeCheckTarget): Changed its type to SocketHandle.
  15865. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15866. Replaced Peer with PeerHandle.
  15867. * src/HttpRequestCommand.cc
  15868. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15869. Use disableReadCheckSocket.
  15870. * src/PeerInitiateConnectionCommand.h
  15871. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15872. * src/PeerChokeCommand.cc
  15873. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15874. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15875. (execute): Use PeerHandle.
  15876. * src/PeerConnection.h
  15877. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15878. (socket): Changed its type to SocketHandle.
  15879. (PeerConnection): Replaced Socket with SocketHandle.
  15880. * src/PeerConnection.cc
  15881. (PeerConnection): Replaced Socket with SocketHandle.
  15882. * src/PeerInteractionCommand.h
  15883. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15884. Replaced Peer with PeerHandle.
  15885. * src/PeerInteractionCommand.cc
  15886. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15887. Replaced Peer with PeerHandle.
  15888. (executeInternal): Use disableWriteCheckSocket.
  15889. Use HandshakeMessageHandle.
  15890. (receiveMessages): Use PeerMessageHandle.
  15891. (prepareForNextPeer): Use PeerHandle.
  15892. * src/HttpProxyRequestCommand.h
  15893. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15894. * src/HttpResponseCommand.cc
  15895. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15896. * src/TorrentMan.cc
  15897. (nullPeer): Added external reference.
  15898. (~TorrentMan): Removed the deallocation of the elements of peers.
  15899. (addPeer): Rewritten.
  15900. (isPeerAvailable): Use nullPeer.
  15901. (deleteOldpeers): Replaced with deleteErrorPeer.
  15902. (deleteErrorPeer): New function.
  15903. (getPeer): Use PeerHandle and nullPeer.
  15904. (hasMissingPiece): Replaced Peer with PeerHandle.
  15905. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15906. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15907. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15908. (getMissingPiece): Replaced Peer with PeerHandle.
  15909. * src/FtpNegotiateCommand.cc
  15910. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15911. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15912. (recvGreeting): Use disableWriteCheckSocket.
  15913. (recvPasv): Removed the allocation of Socket.
  15914. Use disableReadCheckSocket.
  15915. (sendRestPasv): Use disableWriteCheckSocket.
  15916. (recvRetr): Changed assertion.
  15917. * src/PeerInteraction.h
  15918. (SharedHandle.h): Included SharedHandle.h.
  15919. (PeerMessageHandle): New type definition.
  15920. (HandshakeMessageHandle): New type definition.
  15921. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15922. (peer): Changed its type to PeerHandle.
  15923. (createHandshakeMessage): Replaced HandshakeMessage with
  15924. HandshakeMessageHandle.
  15925. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15926. (PeerInteraction): Replaced Peer with PeerHandle.
  15927. Replaced Socket with SocketHandle.
  15928. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15929. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15930. (receiveHandshake): Replaced HandshakeMessage with
  15931. HandshakeMessageHandle.
  15932. * src/PeerInteraction.cc
  15933. (PeerInteraction): Replaced Peer with PeerHandle.
  15934. Replaced Socket with SocketHandle.
  15935. (~PeerInteraction): Removed the deallocation of the elements of
  15936. messageQueue.
  15937. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15938. (isSendingMessageInProgress): Replaced PeerMessage with
  15939. PeerMessageHandle.
  15940. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15941. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15942. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15943. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15944. (abortPiece): Use PeerMessageHandle.
  15945. (receiveHandshake): Replaced HandshakeMessage with
  15946. HandshakeMessageHandle. Removed try-catch block.
  15947. (createHandshakeMessage): Replaced HandshakeMessage with
  15948. HandshakeMessageHandle.
  15949. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15950. Removed try-catch block.
  15951. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15952. * src/HttpProxyResponseCommand.cc
  15953. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15954. * src/FtpTunnelResponseCommand.h
  15955. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15956. * src/HttpConnection.cc
  15957. (HttpConnection): Replaced Socket with SocketHandle.
  15958. * src/PeerAbstractCommand.cc
  15959. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15960. (~PeerAbstractCommand): Removed the deallocation of socket.
  15961. Use disableReadCheckSocket, disableWriteCheckSocket.
  15962. (disableReadCheckSocket): New function.
  15963. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15964. (disableWriteCheckSocket): New function.
  15965. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15966. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15967. * src/FtpTunnelRequestCommand.cc
  15968. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15969. (~FtpTunnelRequestCommand): Corrected indentation.
  15970. * src/DownloadCommand.h
  15971. (DownloadCommand): Replaced Socket with SocketHandle.
  15972. * src/PeerListenCommand.cc
  15973. (PeerListenCommand): Removed the initialization of socket.
  15974. (~PeerListenCommand): Removed the deallocation of socket.
  15975. (bindPort): Use SocketHandle.
  15976. (execute): Use SocketHandle and PeerHandle.
  15977. * src/FtpDowndloadCommand.cc
  15978. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15979. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15980. * src/main.cc
  15981. (main): Corrected indentation.
  15982. * src/HttpInitiateConnectionCommand.cc
  15983. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15984. (executeInternal): Removed the allocation of socket.
  15985. * src/HttpRequestCommand.h
  15986. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15987. * src/FtpNegotiationCommand.h
  15988. (dataSocket): Changed its type to SocketHandle.
  15989. (serverSocket): Changed its type to SocketHandle.
  15990. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15991. * src/TorrentMan.h
  15992. (MAX_PEER_UPDATE): Removed.
  15993. (MAX_PEERS): New definition.
  15994. (Peers): The element is now of type PeerHandle.
  15995. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15996. (getPeer): Replaced Peer with PeerHandle.
  15997. (deleteOldErrorPeers): Removed.
  15998. (deleteErrorPeer): New function.
  15999. (hasMissingPiece): Replaced Peer with PeerHandle.
  16000. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16001. (getMissingPiece): Replaced Peer with PeerHandle.
  16002. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16003. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16004. (addActivePeer): Replaced Peer with PeerHandle.
  16005. (deleteActivePeer): Replaced Peer with PeerHandle.
  16006. Added a check for the return value of find.
  16007. * src/FtpTunnelResponseCommand.cc
  16008. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16009. * src/FtpInitiateConnectionCommand.cc
  16010. (executeInternal): Removed the allocation of socket.
  16011. * src/DownloadEngine.h
  16012. (Sockets): An element is now of type SocketHandle.
  16013. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16014. (CommandUuids): New type definition.
  16015. (rsockets): Changed its type to SockCmdMap.
  16016. (wsockets): Changed its type to SockCmdMap.
  16017. (addSocket): Rewritten.
  16018. (deleteSocket): Rewritten.
  16019. (addSocketForReadCheck): Rewritten.
  16020. (deleteSocketForReadCheck): Rewritten.
  16021. (addSocketForWriteCheck): Rewritten.
  16022. (deleteSocketForWriteCheck): Rewritten.
  16023. (PairFind): New template class.
  16024. * src/HttpDownloadCommand.h
  16025. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16026. * src/FtpConnection.cc
  16027. (FtpConnection): Replaced Socket with SocketHandle.
  16028. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16029. block.
  16030. * src/InitiateConnectionCommandFactory.cc
  16031. (DlAbortEx.h): Included DlAbortEx.h.
  16032. (createInitiateConnectionCommand): Throw exception if the protocol of
  16033. requested URI is not supported.
  16034. * src/Peer.cc
  16035. (nullPeer): Changed its type to PeerHandle.
  16036. (operator==): New function.
  16037. (operator!=): New function.
  16038. * src/Peer.h
  16039. (SharedHandle.h): Included SharedHandle.h.
  16040. (operator==): New function.
  16041. (operator!=): New function.
  16042. (Peer): Added the default constructor.
  16043. Use resetStatus() to initialize member variables.
  16044. (nullPeer): Removed.
  16045. * src/TrackerUpdateCommand.cc
  16046. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16047. with MIN_PEERS.
  16048. * src/PeerListenCommand.h
  16049. (socket): Changed its type to SocketHandle.
  16050. * src/Command.h
  16051. (CommandUuid): New type definition.
  16052. (uuid): New variable.
  16053. (uuidGen): New variable.
  16054. (Command): Added the initialization of uuid.
  16055. (getUuid): New function.
  16056. * src/Socket.h
  16057. (Socket): Removed.
  16058. (SocketHandle): New type definition.
  16059. * src/DownloadEngine.h
  16060. (FindCommand): New function object.
  16061. (run): The portion of socket check was rewritten.
  16062. (SetDescriptor): New function object.
  16063. (AccumulateActiveCommandUuid): New function object.
  16064. (waitData): Rewritten.
  16065. (addSocket): Rewritten.
  16066. (deleteSocket): Rewritten.
  16067. (addSocketForReadCheck): Rewritten.
  16068. (addSocketForWriteCheck): Rewritten.
  16069. (deleteSocketForReadCheck): Rewritten.
  16070. (deleteSocketForWriteCheck): Rewritten.
  16071. * src/HttpProxyResponseCommand.h
  16072. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16073. * src/HttpConnection.h
  16074. (socket): Changed its type to SocketHandle.
  16075. (HttpConnection): Replaced Socket with SocketHandle.
  16076. * src/PeerInitiateConnectionCommand.cc
  16077. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16078. (executeInternal): Removed the allocation of socket.
  16079. (prepareForNextPeer): Use PeerHandle.
  16080. * src/PeerMessage.h
  16081. (peer): Changed its type to PeerHandle.
  16082. (getPeer): Replaced Peer with PeerHandle.
  16083. (setPeer): Replaced Peer with PeerHandle.
  16084. * src/DownloadCommand.cc
  16085. (DownloadCommand): Replaced Socket with SocketHandle.
  16086. * src/FtpConnection.h
  16087. (socket): Changed its type to SocketHandle.
  16088. (FtpConnection): Replaced Socket with SocketHandle.
  16089. (sendPort); Replaced Socket with SocketHandle.
  16090. * src/FtpDowndloadCommand.h
  16091. (ctrlSocket): Changed its type to SocketHandle.
  16092. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16093. * src/HttpProxyRequestCommand.cc
  16094. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16095. * src/FtpTunnelRequestCommand.h
  16096. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16097. etc
  16098. * src/PeerChokeCommand.h
  16099. (setAllPeerChoked): Removed.
  16100. (setAllPeerResetDelta): Removed.
  16101. * src/PeerChokeCommand.cc
  16102. (setAllPeerChoked): Removed.
  16103. (ChokePeer): New function object.
  16104. (setAllPeerResetDelta): Removed.
  16105. (ResetDelta): New function object.
  16106. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16107. (execute): Show download speed when the local node is a seeder.
  16108. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16109. using STL.
  16110. * src/TrackerWatcherCommand.h
  16111. (MIN_PEERS): Removed.
  16112. * src/TorrentMan.cc
  16113. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16114. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16115. To fix the bug that .aria2 file is not saved if downloading is stopped
  16116. by the errors:it results that aria2 can not resume downloading:
  16117. * src/main.cc
  16118. (normalDownload): Added the call to save().
  16119. (main): Added the deletion of the elements in 'reserved'.
  16120. To fix log:
  16121. * src/PeerInteraction.cc
  16122. (receiveHandshake): Fixed log.
  16123. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16124. To improve download performance in BitTorrent:
  16125. * src/TorrentMan.cc
  16126. (getPeer): Check the number of connections. Return nullPeer if
  16127. it is greater than MAX_PEER_UPDATE.
  16128. This code was originally here, but was removed in 0.5.1.
  16129. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16130. To improve the conditional compilation:
  16131. * src/MultiDiskWriter.h:
  16132. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16133. * src/MultiDiskWriter.cc:
  16134. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16135. * src/Util.h:
  16136. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16137. Added ENABLE_BITTORRENT around computeFastSet().
  16138. * src/Util.cc:
  16139. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16140. Added ENABLE_BITTORRENT around computeFastSet().
  16141. * src/messageDigest.h:
  16142. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16143. * src/ShaVisitor.h:
  16144. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16145. * src/ShaVisitor.cc:
  16146. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16147. * src/main.cc:
  16148. Added ENABLE_BITTORRENT around includes and blocks related to
  16149. BitTorrent.
  16150. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16151. digest support is not available.
  16152. * src/AbstractDiskWriter.h:
  16153. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16154. * src/AbstractDiskWriter.cc:
  16155. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16156. * src/MetalinkEntry.cc
  16157. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16158. support is not available.
  16159. To add command-line options for Metalink:
  16160. * src/main.cc:
  16161. Added metalink-version, metalink-language, metalink-os,
  16162. follow-metalink.
  16163. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16164. * src/main.cc: Use these definition.
  16165. * Release 0.6.0
  16166. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16167. To add Metalink support(http/ftp only):
  16168. * src/AbstractCommand.h
  16169. (tryReserved): New function.
  16170. * src/AbstractCommand.cc
  16171. (execute): Call tryReserved().
  16172. (tryReserved): New function.
  16173. * src/Request.h
  16174. (Requests): New type definition.
  16175. * src/SegmentMan.h
  16176. (reserved): New variable.
  16177. * src/Util.h
  16178. (fileChecksum): New function.
  16179. (toUpper): New function.
  16180. (toLower): New function.
  16181. * src/Util.cc
  16182. (messageDigest.h): Included.
  16183. (trim): Trim \r\n\t.
  16184. (fileChecksum): New function.
  16185. (toUpper): New function.
  16186. (toLower): New function.
  16187. * src/main.cc
  16188. (normalDownload): New function.
  16189. (main): Added 2 command-line options: metalink-file,
  16190. metalink-connection. Their usage has not been written yet.
  16191. * src/MetalinkProcessor.h: New class.
  16192. * src/Xml2MetalinkProcessor.h: New class.
  16193. * src/Xml2MetalinkProcessor.cc: New class.
  16194. * src/MetalinkEntry.h: New class.
  16195. * src/MetalinkEntry.cc: New class.
  16196. * src/MetalinkResource.h: New class.
  16197. * src/MetalinkResource.cc: New class.
  16198. To add md5 message digest checking:
  16199. * src/messageDigest.h: Rewritten.
  16200. * src/MultiDiskWriter.cc: Updated according to the changes in
  16201. messageDigest.h.
  16202. * src/ShaVisitor.cc: Updated according to the changes in
  16203. messageDigest.h.
  16204. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16205. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16206. messageDigest.h.
  16207. To fix a bug that causes segfault when the payload length in peer
  16208. message is less than 0:
  16209. * src/PeerConnection.cc:
  16210. (receiveMessage): Fixed the bug.
  16211. * src/PeerMessageUtil.cc
  16212. (checkLength): Throw an exception if length is less than or equals to
  16213. 0.
  16214. To add new interfaces to Base64 encoding/decoding:
  16215. * src/Base64.h
  16216. (part_encode): Changed the method signature.
  16217. (encode): New function(overload).
  16218. (decode): New function(overload).
  16219. * src/Base64.cc
  16220. (part_encode): Rewritten.
  16221. (encode): Rewritten.
  16222. (encode): New function(overload).
  16223. To prevent a peer to download same piece if there is an error in
  16224. checksum:
  16225. * src/PieceMessage.cc
  16226. (receivedAction): Call peerInteraction->abortPiece().
  16227. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16228. To fix the bug that causes same have message is sent many times to
  16229. a single peer.
  16230. * src/Time.cc
  16231. (isNewer): Use Util::difftv().
  16232. * src/Util.cc
  16233. (difftv): Added a cast to (long long int).
  16234. * src/TorrentMan.cc
  16235. (advertisePiece): Use push_front.
  16236. (getAdvertisedPieceIndexes): A performance improvement was made.
  16237. To fix the bug that sends tracker requests without a sleep interval
  16238. when the number of connections is less than 15.
  16239. * src/TrackerWatcherCommand.cc
  16240. (execute): Now the number of connections is not a factor to decide
  16241. whether or not a tracker request should be sent or not.
  16242. * src/Time.h
  16243. (setTimeInSec): New function.
  16244. * src/Time.cc
  16245. (setTimeInSec): New function.
  16246. etc.
  16247. * src/ChokeMessage.cc
  16248. (receivedAction): Removed peer->snubbing = false
  16249. * src/PeerConnection.h
  16250. (receiveHandshake): Updated doc.
  16251. * src/TorrentMan.h
  16252. (getAdvertisedPieceIndexes): Updated the method signature.
  16253. * src/TorrentMan.cc
  16254. (getAdvertisedPieceIndexes): Updated the method signature.
  16255. * src/Time.h
  16256. (getTimeInMicros): Added a cast to (long long int).
  16257. (getTimeInMillis): Added a cast to (long long int).
  16258. * Release 0.5.2
  16259. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16260. To make a listening socket non-block:
  16261. * src/SocketCore.h
  16262. (setNonBlockingMode): New function.
  16263. * src/SocketCore.cc
  16264. (setNonBlockingMode): New function.
  16265. (beginListen): Added a call to setNonBlockingMode().
  16266. (acceptConnection): Call setNonBlockingMode().
  16267. (setBlockingMode): Updated.
  16268. To handle tracker's NAT-checking:
  16269. * src/PeerConnection.cc
  16270. (receiveHandshake): 'msg' param is filled with received data and
  16271. its length is assigned to 'length' param, even if all handshake
  16272. message is not yet received.
  16273. * src/PeerInteractionCommand.cc
  16274. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16275. a new peer connects to localhost.
  16276. A call to peerInteraction->sendHandshake() was removed because
  16277. it is called from peerInteraction->receiveHandshake(true).
  16278. * src/PeerInteraction.h
  16279. (quickReplied): New variable.
  16280. (receiveHandshake): Added an argument.
  16281. * src/PeerInteraction.cc
  16282. (PeerInteraction): Added the initialization of quickReplied.
  16283. (receiveHandshake): Send handshake message as soon as the info hash
  16284. in a handshake message from a peer is correct.
  16285. To change the random part of peer id and key parameter:
  16286. * src/TorrentMan.h
  16287. (key): New variable.
  16288. * src/TorrentMan.cc
  16289. (setupInternal1): Use Util::randomAlpha() to generate random part
  16290. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16291. key is also generated by Util::randomAlpha() and it is now 8 character
  16292. long.
  16293. * src/Util.h
  16294. (randomAlpha): New function.
  16295. * src/Util.cc
  16296. (randomAlpha): New function.
  16297. * src/TrackerWatcherCommand.cc
  16298. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16299. Added no_peer_id=1.
  16300. Set snubbing flag to false when a choke message is received from a
  16301. snubbed peer.
  16302. * src/ChokeMessage.cc
  16303. (receivedAction): Set snubbing flag to false.
  16304. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16305. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16306. * src/SimpleLogger.h (writeHeader): New function.
  16307. * src/SimpleLogger.cc (writeHeader): New function.
  16308. (writeLog): Fixed the bug that causes segfaults if exception message
  16309. contains an unescaped "%" character.
  16310. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16311. when a tracker request fails.
  16312. * src/Request.cc (parseUrl): Query string is now handled properly.
  16313. * Release 0.5.1
  16314. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16315. To add Time class which represents a specific instant in time and
  16316. its precision is microseconds. Time checking procedures were rewritten
  16317. using this object.
  16318. * src/Time.h: New class.
  16319. * src/Time.cc: New class.
  16320. * src/AbstractCommand.h
  16321. (updateCheckPoint): Removed.
  16322. (isTimeoutDetected): Removed.
  16323. (checkPoint): Changed the type to Time.
  16324. (timeout): New variable.
  16325. (setTimeout): New function.
  16326. * src/AbstractCommand.cc
  16327. (AbstractCommand): Removed the initialization of checkPoint.
  16328. Added the initialization of timeout.
  16329. (updateCheckPoint): Removed.
  16330. (isTimeoutDetected): Removed.
  16331. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16332. * src/PeerChokeCommand.h
  16333. (checkPoint): Changed the type to Time.
  16334. * src/PeerChokeCommand.cc
  16335. (PeerChokeCommand): Removed the initialization of checkPoint.
  16336. (execute): Rewritten using Time object.
  16337. * src/TrackerWatcherCommand.h
  16338. (checkPoint): Changed the type to Time.
  16339. * src/TrackerWatcherCommand.cc
  16340. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16341. (execute): Rewritten.
  16342. * src/ConsoleDownloadEngine.h
  16343. (cp): Changed the type to Time.
  16344. (startup): Changed the type to Time.
  16345. * src/ConsoleDownloadEngine.cc
  16346. (initStatistics): Use cp.reset(), startup.reset().
  16347. (calculateStatistics): Rewritten using Time object.
  16348. * src/PeerAbstractCommand.h
  16349. (updateCheckPoint): Removed.
  16350. (isTimeoutDetected): Removed.
  16351. (checkPoint): Changed the type to Time.
  16352. * src/PeerAbstractCommand.cc
  16353. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16354. (updateCheckPoint): Removed.
  16355. (isTimeoutDetected): Removed.
  16356. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16357. * src/PeerInteractionCommand.cc
  16358. (PeerInteractionCommand): Removed the initializations of struct
  16359. timeval variables.
  16360. * src/PeerInteractionCommand.h
  16361. (keepAliveCheckPoint): Changed the type to Time.
  16362. (chokeCheckPoint): Changed the type to Time.
  16363. (freqCheckPoint): Changed the type to Time.
  16364. (haveCheckTime): Changed the type to Time.
  16365. * src/PeerInteractionCommand.cc
  16366. (executeInternal): Rewritten using Time object.
  16367. (detectMessageFlooding): Rewritten using Time object.
  16368. (checkLongTimePeerChoking): Rewritten using Time object.
  16369. (sendKeepAlive): Rewritten using Time object.
  16370. (checkHave): Rewritten using Time object.
  16371. * src/SleepCommand.h
  16372. (checkPoint): Changed the type to Time.
  16373. * src/SleepCommand.cc
  16374. (SleepCommand): Removed the initialization of checkPoint.
  16375. (execute): Rewritten using Time object.
  16376. * src/TorrentAutoSaveCommand.h
  16377. (checkPoint): Changed the type to Time.
  16378. * src/TorrentAutoSaveCommand.cc
  16379. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16380. (execute): Rewritten.
  16381. * src/DownloadCommand.h
  16382. (sw): Changed the type to Time.
  16383. * src/DownloadCommand.cc
  16384. (DownloadCommand): Removed the initialization of sw.
  16385. (executeInternal): Rewritten.
  16386. * src/RequestSlot.h
  16387. (dispatchedTime): Changed the type to Time.
  16388. * src/RequestSlot.cc
  16389. (RequestSlot): Removed the call to setDispatchedTime().
  16390. (setDispatchedTime): Rewirtten.
  16391. (isTimeout): Rewritten.
  16392. (getLatencyInMillis): Rewritten.
  16393. * src/TorrentDownloadEngine.h
  16394. (cp): Changed the type to Time[2].
  16395. (startup): Changed the type to Time.
  16396. * src/TorrentDownloadEngine.cc
  16397. (initStatistics): Rewritten.
  16398. (calculateStatistics): Rewritten.
  16399. * src/DownloadEngine.cc
  16400. (run): Rewritten.
  16401. To detect all attempts to connect to the tracker are failed:
  16402. * src/AbstractCommand.cc
  16403. (execute): Increment e->segmentMan->errors if a command aborted.
  16404. * src/SegmentMan.h
  16405. (errors): New variable.
  16406. * src/SegmentMan.cc
  16407. (SegmentMan): Added the initialization of errors.
  16408. (init): Added the initialization of errors.
  16409. * src/TrackerWatcherCommand.cc
  16410. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16411. request was failed.
  16412. To handle snubbed peers:
  16413. * src/PeerChokeCommand.cc
  16414. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16415. (execute): Snubbed peers don't get unchoked.
  16416. * src/PeerInteraction.h
  16417. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16418. * src/PeerInteraction.cc
  16419. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16420. back the requested 16k block in 60 seconds.
  16421. * src/PieceMessage.cc
  16422. (receivedAction): A peer's snubbed state is cleard if it sends
  16423. the requested 16k block in 60 seconds.
  16424. * src/Peer.h
  16425. (snubbing): New variable.
  16426. * src/Peer.cc
  16427. (resetStatus): Added snubbed = false.
  16428. To fix the bug that causes have message is not sent:
  16429. * src/PeerInteractionCommand.cc
  16430. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16431. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16432. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16433. * src/TorrentMan.h
  16434. (HaveEntry): New class.
  16435. (advertisePiece): Rewritten.
  16436. (getAdvertisedPieceIndexes): Rewritten.
  16437. (Haves): Changed the type.
  16438. (getAdvertisedPieceIndexes): Added an argument.
  16439. Others:
  16440. * src/TorrentMan.h
  16441. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16442. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16443. * src/TorrentMan.cc
  16444. (getPeer): Don't check the number of connections here.
  16445. (setupInternal1): Changed peerId.
  16446. * src/PeerInteractionCommand.h
  16447. (KEEP_ALIVE_INTERVAL): New definition.
  16448. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16449. * src/main.cc
  16450. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16451. * src/DownloadEngine.h: Removed unnecessary header includes.
  16452. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16453. To fix the bug that causes segfaults if a tracker returns a zero-length
  16454. list as "peers":
  16455. * src/TrackerUpdateCommand.cc
  16456. (execute): Added a check to see wether the type of peers is Data*.
  16457. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16458. * Release 0.5.0
  16459. To fix compile issue with gcc3:
  16460. * src/CancelMessage.h
  16461. (ID): Renamed as ID_t
  16462. (ID_t): New enum.
  16463. * src/RejectMessage.h
  16464. (ID): Renamed as ID_t
  16465. (ID_t): New enum.
  16466. * src/SuggestPieceMessage.h
  16467. (ID): Renamed as ID_t
  16468. (ID_t): New enum.
  16469. * src/AllowedFastMessage.h
  16470. (ID): Renamed as ID_t
  16471. (ID_t): New enum.
  16472. * src/PortMessage.h
  16473. (ID): Renamed as ID_t
  16474. (ID_t): New enum.
  16475. * src/HaveNoneMessage.h
  16476. (ID): Renamed as ID_t
  16477. (ID_t): New enum.
  16478. * src/KeepAliveMessage.h
  16479. (ID): Renamed as ID_t
  16480. (ID_t): New enum.
  16481. * src/HaveAllMessage.h
  16482. (ID): Renamed as ID_t
  16483. (ID_t): New enum.
  16484. * src/UnchokeMessage.h
  16485. (ID): Renamed as ID_t
  16486. (ID_t): New enum.
  16487. * src/BitfieldMessage.h
  16488. (ID): Renamed as ID_t
  16489. (ID_t): New enum.
  16490. * src/PieceMessage.h
  16491. (ID): Renamed as ID_t
  16492. (ID_t): New enum.
  16493. * src/RequestMessage.h
  16494. (ID): Renamed as ID_t
  16495. (ID_t): New enum.
  16496. * src/NotInterestedMessage.h
  16497. (ID): Renamed as ID_t
  16498. (ID_t): New enum.
  16499. * src/ChokeMessage.h
  16500. (ID): Renamed as ID_t
  16501. (ID_t): New enum.
  16502. * src/InterestedMessage.h
  16503. (ID): Renamed as ID_t
  16504. (ID_t): New enum.
  16505. * src/HaveMessage.h
  16506. (ID): Renamed as ID_t
  16507. (ID_t): New enum.
  16508. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16509. * src/PeerAbstractCommand.h
  16510. (beforeSocketCheck): Removed.
  16511. * src/PeerAbstractCommand.cc
  16512. Modified in order to call executeInternal() even if socket check
  16513. and upload limit check fail.
  16514. * src/PeerInteractionCommand.h
  16515. (keepAlive): Removed.
  16516. (sendKeepAlive): New function.
  16517. (checkHave): New function.
  16518. (beforeSocketCheck): Removed.
  16519. * src/PeerInteractionCommand.cc
  16520. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16521. calls to checkHave() and sendKeepAlive().
  16522. (keepAlive): Renamed to sendKeepAlive().
  16523. (sendKeepAlive): New function.
  16524. (beforeSocketCheck): Removed.
  16525. (checkHave): New function.
  16526. * src/BitfieldMan.cc
  16527. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16528. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16529. 0.
  16530. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16531. * src/TorrentMan.h
  16532. (UsedPieces): Removed.
  16533. (Pieces): New type definition.
  16534. * src/Piece.h: Updated doc.
  16535. * src/Peer.h
  16536. (totalLength): Removed.
  16537. * src/Peer.cc
  16538. (updateLatency): Fixed the latency calculation.
  16539. * src/TorrentMan.cc
  16540. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16541. than or equal to MAX_PEER_LIST_SIZE.
  16542. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16543. then return false.
  16544. (deleteOldErrorPeers): Rewritten.
  16545. (deleteUsedPiece): Fixed the miss use of STL remove.
  16546. * src/PeerInteraction.h
  16547. (Pieces): Removed.
  16548. (deleteTimeoutRequestSlot): Removed.
  16549. (deleteCompletedRequestSlot): Removed.
  16550. (checkRequestSlot): New function.
  16551. * src/PeerInteraction.cc
  16552. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16553. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16554. (checkRequestSlot): New function.
  16555. * src/DownloadEngine.cc
  16556. (run): Clear activeSockets before calling waitData().
  16557. (waitData): Removed a call to activeSockets.clear().
  16558. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16559. To attempt to handle EINTR:
  16560. * src/SocketCore.cc
  16561. (isReadable): Added EINTR handling.
  16562. (isWritable): Added EINTR handling.
  16563. To improve the performance:
  16564. * src/AbstractCommand.cc
  16565. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16566. * src/PeerInteractionCommand.h
  16567. (receiveMessage): Renamed as receiveMessages().
  16568. (receiveMessages): New function.
  16569. * src/PeerInteractionCommand.cc
  16570. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16571. () function. detectMessageFlooding() is moved here.
  16572. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16573. (). The flooding detection for have message is comment out.
  16574. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16575. Util::difftv().
  16576. (receiveMessage): Renamed as receiveMessages().
  16577. (receiveMessages): New function.
  16578. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16579. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16580. * src/SleepCommand.cc
  16581. (execute): Use Util::difftvsec() instead of Util::difftv().
  16582. * src/BitfieldMan.h
  16583. (getNthBitIndex): New function.
  16584. (hasMissingPiece): New function.
  16585. (getAllMissingIndexes): New function.
  16586. * src/BitfieldMan.cc
  16587. (countSetBit): Rewritten.
  16588. (getNthBitIndex): New function.
  16589. (getMissingIndexRandomly): Rewritten.
  16590. (hasMissingPiece): New function.
  16591. (getAllMissingIndexes): New function.
  16592. * src/TorrentMan.cc
  16593. (hasMissingPiece): New function.
  16594. (deleteUsedPiece): Rewritten using STL.
  16595. * src/PeerInteraction.cc
  16596. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16597. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16598. (addRequests): Updated the number of pending requests.
  16599. * src/PeerAbstractCommand.cc
  16600. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16601. (execute): Returns true if TorrentMan::isHalt() is true.
  16602. Corrected the condition of upload limit checking.
  16603. * src/Util.h
  16604. (countBit): New function.
  16605. * src/Util.cc
  16606. (nbits): New variable.
  16607. (countBit): New function.
  16608. * src/DownloadEngine.h
  16609. (SockCmdMap): New type definition.
  16610. (waitData): Added an argument.
  16611. (addSocket): Added an argument.
  16612. (addSocketForReadCheck): Added an argument.
  16613. (addSocketForWriteCheck): Added an argument.
  16614. * src/DownloadEngine.cc
  16615. (run): Executes only commands whose sockets are ready to read or write.
  16616. All commands are executed in every 1 second.
  16617. (waitData): Calls select() again if it returned
  16618. EINTR.
  16619. (addSocket): Saves socket and command object pair to the map.
  16620. (deleteSocket): Deletes socket and command object pair from the map.
  16621. (addSocketForReadCheck): Added an argument.
  16622. (addSocketForWriteCheck): Added an argument.
  16623. * src/DownloadCommand.cc
  16624. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16625. To send "event=stopped" to the tracker when the application finishes:
  16626. * src/PeerChokeCommand.h
  16627. (checkPoint): New variable.
  16628. * src/PeerChokeCommand.cc
  16629. (PeerChokeCommand): Added the initialization of checkPoint.
  16630. (execute): The interval check is now done by checkPoint, not
  16631. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16632. * src/TorrentMan.h
  16633. (halt): New function.
  16634. (hasMissingPiece): New function.
  16635. (isHalt): New function.
  16636. (setHalt): New function.
  16637. * src/TorrentMan.cc
  16638. (TorrentMan): Added the initialization of halt.
  16639. * src/TorrentAutoSaveCommand.h
  16640. (checkPoint): New variable.
  16641. * src/PeerListenCommand.cc
  16642. (execute): Returns true if TorrentMan::isHalt() is true.
  16643. * src/main.cc
  16644. (setSignalHander): Added flags argument.
  16645. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16646. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16647. Removed printDownloadAbortMessage() after torrent downloading loop.
  16648. * src/TorrentAutoSaveCommand.cc
  16649. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16650. (execute): Returns true if TorrentMan::isHalt() is true.
  16651. The interval check is now done by checkPoint, not SleepCommand.
  16652. * src/TrackerWatcherCommand.cc
  16653. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16654. event=stopped.
  16655. * src/TrackerUpdateCommand.cc
  16656. (prepareForRetry): Do not use SleepCommand here.
  16657. (execute): Returns true if TorrentMan::isHalt() is true.
  16658. Others:
  16659. * src/TorrentMan.cc
  16660. (getMissingPieceIndex): Updated log message.
  16661. * src/PeerInteraction.cc
  16662. (createPeerMessag): Updated log message.
  16663. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16664. To add the ability to download several pieces in mix in a command and
  16665. increase the number of request slots according to request-cancel
  16666. latency:
  16667. * src/PeerInteractionCommand.cc
  16668. (executeInternal): The number of messages to be received at a time
  16669. is increased from 10 to 50.
  16670. * src/LogFactory
  16671. (getInstance): Added NullLogger.
  16672. * src/NullLogger.h: New class.
  16673. * src/BitfieldMan.h
  16674. (getMissingIndex): New function.
  16675. * src/BitfieldMan.cc
  16676. (getMissingIndex): New function.
  16677. * src/TorrentMan.h
  16678. (checkOutPiece): New function.
  16679. (getMissingPieceIndex): New function.
  16680. (getMissingFastPieceIndex): New function.
  16681. (getMissingFastPiece): New function.
  16682. * src/TorrentMan.cc
  16683. (updatePiece): Rewritten using STL.
  16684. (syncPiece): Rewritten using STL.
  16685. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16686. checkOutPiece().
  16687. (getMissingPieceIndex): New function.
  16688. (getMissingFastPieceIndex): New function.
  16689. (getMissingFastPiece): New function.
  16690. (checkOutPiece): New function.
  16691. * src/PeerInteraction.h
  16692. (Pieces): New type definition.
  16693. (piece): Removed.
  16694. (pieces): New variable.
  16695. (getNewPieceAndSendInterest): Added the "piece" argument.
  16696. (abortPiece): Added the "piece" argument.
  16697. (abortAllPieces): New function.
  16698. (isInRequestSlot): New function.
  16699. (hasDownloadPiece): Added the "index" argument.
  16700. (setDownloadPiece): Removed.
  16701. (getDownloadPiece): Added the "index" argument.
  16702. (updatePiece): New function.
  16703. (createRequestMessage): Added the "index" argument.
  16704. * src/PeerInteraction.cc
  16705. (onChoked): Rewritten.
  16706. (abortPiece): Rewirtten.
  16707. (abortAllPieces): New function.
  16708. (deleteTimeoutRequestSlot): Rewritten.
  16709. Clarified code a little bit.
  16710. (deleteCompletedRequestSlot): Rewritten.
  16711. (isInRequestSlot): New function.
  16712. (syncPiece): Rewritten.
  16713. (updatePiece): New function.
  16714. (getNewPieceAndSendInterest): Rewritten.
  16715. (addRequests): Rewritten.
  16716. (getDownloadPiece): Rewritten.
  16717. (hasDownloadPiece): Rewritten.
  16718. (createRequestMessage): Added the "index" argument.
  16719. * src/common.h
  16720. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16721. (DIV_FLOOR): New definition.
  16722. * src/PieceMessage.cc
  16723. (receivedAction): Update request-piece latency here.
  16724. * src/RequestSlot.h
  16725. (getLatencyInMillis): New function.
  16726. * src/RequestSlot.cc
  16727. (isTimeout): Rewritten using getLatencyInMillis.
  16728. (getLatencyInMillis): New function.
  16729. * src/Piece.h
  16730. (operator==): New function.
  16731. (getMissingBlockIndex): New function.
  16732. * src/Piece.cc
  16733. (operator==): New function.
  16734. (getMissingBlockIndex): New function.
  16735. * src/Peer.h
  16736. (DEFAULT_LATENCY): New definition.
  16737. (latency): New variable.
  16738. (updateLatency): New function.
  16739. (getLatency): New function.
  16740. * src/Peer.cc
  16741. (resetStatus): Reset latecy.
  16742. (updateLatency): New function.
  16743. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16744. * src/SocketCore.cc
  16745. (isReadable): Added secure to the condition.
  16746. * src/HttpConnection.cc
  16747. (receiveResponse): Fixed a bug that causes no response header
  16748. exception.
  16749. * src/Peer.h
  16750. (getFastSet): Fixed the return value type.
  16751. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16752. To remove a wait from download loop:
  16753. * src/DownloadEngine.cc
  16754. (run): Comment out shortSleep.
  16755. To rewrite the message handling:
  16756. * src/SimplePeerMessage.h: New class.
  16757. * src/SimplePeerMessage.cc: New class.
  16758. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16759. (msg): New variable.
  16760. (create): New function.
  16761. (send): Removed.
  16762. (getMessage): New function.
  16763. (getMessageLength): New function.
  16764. * src/CancelMessage.cc
  16765. (create): New function.
  16766. (receivedAction): Replaced deleteRequestMessageInQueue with
  16767. rejectPieceMessageInQueue.
  16768. (send): Removed.
  16769. (getMessage): New function.
  16770. (getMessageLength): New function.
  16771. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16772. (msg): New variable.
  16773. (msgLength): New variable.
  16774. (~BitfieldMessage): Deleted msg.
  16775. (send): Removed.
  16776. (getMessage): New function.
  16777. (getMessageLength): New function.
  16778. * src/BitfieldMessage.cc
  16779. (create): New function.
  16780. (send): Removed.
  16781. (getMessage): New function.
  16782. (getMessageLength): New function.
  16783. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16784. (msg): New variable.
  16785. (sendPredicate): New function.
  16786. (onSendComplete): New function.
  16787. (send): Removed.
  16788. (getMessage): New function.
  16789. (getMessageLength): New function.
  16790. (create): New function.
  16791. * src/ChokeMessage.cc
  16792. (create): New function.
  16793. (send): Removed.
  16794. (sendPredicate): New function.
  16795. (getMessage): New function.
  16796. (getMessageLength): New function.
  16797. (onSendComplete): New function.
  16798. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16799. (msg): New variable.
  16800. (send): Removed.
  16801. (getMessage): New function.
  16802. (getMessageLength): New function.
  16803. * src/KeepAliveMessage.cc
  16804. (send): Removed.
  16805. (getMessage): New function.
  16806. (getMessageLength): New function.
  16807. * src/PortMessage.h
  16808. (create): New function.
  16809. (receivedAction): Updated log message.
  16810. * src/PortMessage.cc: New file.
  16811. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16812. (msg): New variable.
  16813. (sendPredicate): New function.
  16814. (onSendComplete): New function.
  16815. (create): New function.
  16816. (send): Removed.
  16817. (getMessage): New function.
  16818. (getMessageLength): New function.
  16819. * src/UnchokeMessage.cc
  16820. (create): New function.
  16821. (send): Removed.
  16822. (sendPredicate): New function.
  16823. (getMessage): New function.
  16824. (getMessageLength): New function.
  16825. (onSendComplete): New function.
  16826. * src/PieceMessage.h
  16827. (leftPieceDataLength): Removed.
  16828. (leftDataLength): New variable.
  16829. (headerSend): New variable.
  16830. (pendingCount): New variable.
  16831. (msgHeader): New variable.
  16832. (sendPieceData): New function.
  16833. (incrementPendingCount): New function.
  16834. (isPendingCountMax): New function.
  16835. (create): New function.
  16836. (getMessageHeader): New function.
  16837. (getMessageHeaderLength): New function.
  16838. * src/PieceMessage.cc
  16839. (create): New function.
  16840. (getMessageHeader): New function.
  16841. (getMessageHeaderLength): New function.
  16842. (send): Rewritten.
  16843. (sendPieceData): New function.
  16844. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16845. (msg): New variable.
  16846. (create): New function.
  16847. (getMessage): New function.
  16848. (getMessageLength): New function.
  16849. * src/HaveMessage.cc
  16850. (create): New function.
  16851. (send): Removed.
  16852. (sendPieceData): New function.
  16853. (getMessage): New function.
  16854. (getMessageLength): New function.
  16855. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16856. (msg): New variable.
  16857. (create): New function.
  16858. (send): Removed.
  16859. (getMessage): New function.
  16860. (getMessageLength): New function.
  16861. * src/RequestMessage.cc
  16862. (create): New function.
  16863. (receivedAction): Added the handling of fast extension.
  16864. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16865. (send): Removed.
  16866. (getMessage): New function.
  16867. (getMessageLength): New function.
  16868. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16869. (msg): New variable.
  16870. (sendPredicate): New function.
  16871. (onSendComplete): New function.
  16872. (create): New function.
  16873. (getMessage): New function.
  16874. (getMessageLength): New function.
  16875. * src/InterestedMessage.cc
  16876. (create): New function.
  16877. (send): Removed.
  16878. (sendPieceData): New function.
  16879. (getMessage): New function.
  16880. (getMessageLength): New function.
  16881. (onSendComplete): New function.
  16882. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16883. (msg): New variable.
  16884. (sendPieceData): New function.
  16885. (onSendComplete): New function.
  16886. (create): New function.
  16887. (send): Removed.
  16888. (getMessage): New function.
  16889. (getMessageLength): New function.
  16890. * src/NotInterestedMessage.cc
  16891. (create): New function.
  16892. (send): Removed.
  16893. (sendPredicate): New function.
  16894. (getMessage): New function.
  16895. (getMessageLength): New function.
  16896. (onSendComplete): New function.
  16897. * src/AllowedFastMessage.h: New class.
  16898. * src/AllowedFastMessage.cc: New class.
  16899. * src/RejectMessage.h: New class.
  16900. * src/RejectMessage.cc: New class.
  16901. * src/SuggestPieceMessage.h: New class.
  16902. * src/SuggestPieceMessage.cc: New class.
  16903. * src/HaveAllMessage.h: New class.
  16904. * src/HaveAllMessage.cc: New class.
  16905. * src/HaveNoneMessage.h: New class.
  16906. * src/HaveNoneMessage.cc: New class.
  16907. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16908. (msg): New variable.
  16909. (reserved): New variable.
  16910. (create): New function.
  16911. (getId): New function.
  16912. (receivedAction): New function.
  16913. (getMessage): New function.
  16914. (getMessageLength): New function.
  16915. (isFastExtensionSupported): New function.
  16916. * src/HandshakeMessage.cc
  16917. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16918. (create): New function.
  16919. (getMessage): New function.
  16920. (getMessageLength): New function.
  16921. (toString): Added the output of reserved field.
  16922. (check): Added const qualifier.
  16923. (isFastExtensionSupported): New function.
  16924. * src/PeerMessageUtil.h
  16925. (createChokeMessage): Removed.
  16926. (createUnchokeMessage): Removed.
  16927. (createInterestedMessage): Removed.
  16928. (createNotInterestedMessage): Removed.
  16929. (createHaveMessage): Removed.
  16930. (createBitfieldMessage): Removed.
  16931. (createRequestMessage): Removed.
  16932. (createCancelMessage): Removed.
  16933. (createPieceMessage): Removed.
  16934. (createPortMessage): Removed.
  16935. (createChokeMessage): Removed.
  16936. (createUnchokeMessage): Removed.
  16937. (createInterestedMessage): Removed.
  16938. (createNotInterestedMessage): Removed.
  16939. (createHaveMessage): Removed.
  16940. (createBitfieldMessage): Removed.
  16941. (createRequestMessage): Removed.
  16942. (createCancelMessage): Removed.
  16943. (createPieceMessage): Removed.
  16944. (createKeepAliveMessage): Removed.
  16945. (createHandshakeMessage): Removed.
  16946. (setIntParam): New function.
  16947. (createPeerMessageString): New function.
  16948. * src/PeerMessageUtil.cc
  16949. (createChokeMessage): Removed.
  16950. (createUnchokeMessage): Removed.
  16951. (createInterestedMessage): Removed.
  16952. (createNotInterestedMessage): Removed.
  16953. (createHaveMessage): Removed.
  16954. (createBitfieldMessage): Removed.
  16955. (createRequestMessage): Removed.
  16956. (createCancelMessage): Removed.
  16957. (createPieceMessage): Removed.
  16958. (createPortMessage): Removed.
  16959. (createRequestMessage): Removed.
  16960. (createCancelMessage): Removed.
  16961. (createPieceMessage): Removed.
  16962. (createHaveMessage): Removed.
  16963. (createChokeMessage): Removed.
  16964. (createUnchokeMessage): Removed.
  16965. (createInterestedMessage): Removed.
  16966. (createNotInterestedMessage): Removed.
  16967. (createBitfieldMessage): Removed.
  16968. (createKeepAliveMessage): Removed.
  16969. (createHandshakeMessage): Removed.
  16970. (setIntParam): New function.
  16971. (createPeerMessageString): New function.
  16972. * src/PeerConnection.h
  16973. (peer): Removed.
  16974. (torrentMan): Removed.
  16975. (createNLengthMessage): Removed.
  16976. (setIntParam): Removed.
  16977. (writeOutgoingMessageLog): Removed all overloaded functions.
  16978. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16979. (sendMessage): New function.
  16980. (sendHandshake): Removed.
  16981. (sendKeepAlive): Removed.
  16982. (sendChoke): Removed.
  16983. (sendUnchoke): Removed.
  16984. (sendInterested): Removed.
  16985. (sendNotInterested): Removed.
  16986. (sendHave): Removed.
  16987. (sendBitfield): Removed.
  16988. (sendRequest): Removed.
  16989. (sendPiece): Removed.
  16990. (sendPieceHeader): Removed.
  16991. (sendPieceData): Removed.
  16992. (sendCancel): Removed.
  16993. (getPeer): Removed.
  16994. * src/PeerConnection.cc
  16995. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16996. (sendHandshake): Removed.
  16997. (sendKeepAlive): Removed.
  16998. (createNLengthMessage): Removed.
  16999. (setIntParam): Removed.
  17000. (writeOutgoingMessageLog): Removed all overloaded functions.
  17001. (sendChoke): Removed.
  17002. (sendUnchoke): Removed.
  17003. (sendInterested): Removed.
  17004. (sendNotInterested): Removed.
  17005. (sendHave): Removed.
  17006. (sendBitfield): Removed.
  17007. (sendRequest): Removed.
  17008. (sendPiece): Removed.
  17009. (sendPieceHeader): Removed.
  17010. (sendPieceData): Removed.
  17011. (sendMessage): New function.
  17012. (sendCancel): Removed.
  17013. * src/PeerInteractionCommand.cc
  17014. (PeerInteractionCommand): Call setUploadLimit.
  17015. (executeInternal): Call setUploadLimit.
  17016. Added the handling of "inProgress" state of handshake message.
  17017. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17018. sendNow().
  17019. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17020. sendNow().
  17021. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17022. * src/TorrentMan.h
  17023. (PEER_ID_LENGTH): New definition.
  17024. (hasAllPieces): New function.
  17025. * src/TorrentMan.cc
  17026. (getMissingPiece): Added the handling of fast extension.
  17027. (cancelPiece): Call updatePiece().
  17028. (hasAllPieces): New function.
  17029. * src/PeerInteraction.h
  17030. (fastSet): New variable.
  17031. (getNewPieceAndSendInterest): Changed the return type to void.
  17032. (send): Renamed as sendMessages.
  17033. (deleteAllRequestSlot): Removed.
  17034. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17035. (cancelAllRequest): Removed all overloaded functions.
  17036. (deleteAllRequestSlot): Removed.
  17037. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17038. (rejectPieceMessageInQueue): New function.
  17039. (rejectAllPieceMessageInQueue): New function.
  17040. (onChoked): New function.
  17041. (isSendingMessageInProgress): New function.
  17042. (getCorrespondingRequestSlot): Changed its arguments.
  17043. (isInFastSet): New function.
  17044. (addFastSetIndex): New function.
  17045. (addRequests): New function.
  17046. (sendNow): Removed.
  17047. (trySendNow): Removed.
  17048. (sendBitfield): New function.
  17049. (sendAllowdFast): New function.
  17050. (createHaveAllMessage): New function.
  17051. (createHaveNoneMessage): New function.
  17052. (createRejectMessage): New function.
  17053. (createAllowedFastMessage): New function.
  17054. * src/PeerInteraction.cc
  17055. (send): Renamed as sendMessages.
  17056. (sendMessages): New function.
  17057. (MsgPushBack): New class.
  17058. (isSendingMessageInProgress): New function.
  17059. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17060. (rejectAllPieceMessageInQueue): New function.
  17061. Added the handling of fast extension.
  17062. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17063. (rejectPieceMessageInQueue): New function.
  17064. Added the handling of fast extension.
  17065. (deleteRequestSlot): Replaced for loop with std::find.
  17066. (onChoked): New function.
  17067. (deleteAllRequestSlot): Removed.
  17068. (abortPiece): Rewirtten.
  17069. (deleteTimeoutRequestSlot): Updated log messages.
  17070. (getCorrespondingRequestSlot): Changed its arguments.
  17071. (cancelAllRequest): Removed all overloaded functions.
  17072. (receiveHandshake): Added the check to see whether an incoming peer
  17073. supports fast extension.
  17074. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17075. PeerMessageUtil.
  17076. (createPeerMessage): Use create() of each message class instead of
  17077. PeerMessageUtil.
  17078. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17079. AllowedFastMessage were added.
  17080. (getNewPieceAndSendInterest): Changed its return value type to void.
  17081. Added the handling of fast extension.
  17082. (addRequests): New function.
  17083. (sendNow): Removed.
  17084. (sendHandshake): Rewritten.
  17085. (trySendNow): Removed.
  17086. (sendBitfield): New function.
  17087. (sendAllowdFast): New function.
  17088. (isInFastSet): New function.
  17089. (addFastSetIndex): New function.
  17090. (createRequestMessage): Use RequestMessage::create instead of
  17091. PeerMessageUtil.
  17092. (createCancelMessage): Use CancelMessage::create instead of
  17093. PeerMessageUtil.
  17094. (createPieceMessage): Use PieceMessage::create instead of
  17095. PeerMessageUtil.
  17096. (createHaveMessage): Use HaveMessage::create instead of
  17097. PeerMessageUtil.
  17098. (createChokeMessage): Use ChokeMessage::create instead of
  17099. PeerMessageUtil.
  17100. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17101. PeerMessageUtil.
  17102. (createInterestedMessage): Use InterestedMessage::create instead of
  17103. PeerMessageUtil.
  17104. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17105. of PeerMessageUtil.
  17106. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17107. PeerMessageUtil.
  17108. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17109. PeerMessageUtil.
  17110. (createHaveAllMessage): New function.
  17111. (createHaveNoneMessage): New function.
  17112. (createRejectMessage): New function.
  17113. (createAllowedFastMessage: New function.
  17114. * src/Util.h
  17115. (sha1Sum): New function.
  17116. (computeFastSet): New function.
  17117. * src/Util.cc
  17118. (sha1Sum): New function.
  17119. (computeFastSet): New function.
  17120. * src/Peer.h
  17121. (fastExtensionEnabled): New variable.
  17122. (fastSet): New variable.
  17123. (setAllBitfield): New function.
  17124. (setFastExtensionEnabled): New function.
  17125. (isFastExtensionEnabled): New function.
  17126. (addFastSetIndex): New function.
  17127. (getFastSet): New function.
  17128. (isInFastSet): New function.
  17129. (countFastSet): New function.
  17130. * src/Peer.cc
  17131. (isInFastSet): New function.
  17132. (addFastSetIndex): New function.
  17133. (setAllBitfield): New function.
  17134. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17135. sockets.
  17136. * src/PeerAbstractCommand.cc
  17137. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17138. and uploadLimit.
  17139. (execute): Changed the procedure of checking sockets. The upload speed
  17140. checking were added.
  17141. (setUploadLimit): New function.
  17142. (setUploadLimitCheck): New function.
  17143. * src/PeerAbstractCommand.h
  17144. (setUploadLimit): New function.
  17145. (setUploadLimitCheck): New function.
  17146. (uploadLimit): New variable.
  17147. (uploadLimitCheck): New variable.
  17148. To contact a tracker regularly:
  17149. * src/TrackerWatcherCommand.h (interval): New variable.
  17150. (checkPoint): New variable.
  17151. (TrackerWatcherCommand): Added interval argument.
  17152. * src/TrackerWatcherCommand.cc
  17153. (TrackerWatcherCommand): Initialized checkPoint.
  17154. (execute): Now a tracker is contacted in every specified period.
  17155. If peer list is not needed, send request with numwant=0.
  17156. * src/TrackerUpdateCommand.cc
  17157. (execute): Updated log messages.
  17158. * src/DownloadEngine.cc
  17159. (~DownloadEngine): Removed two asserts.
  17160. (waitData): Uncommented wfds. May be a bug fix.
  17161. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17162. * src/PeerInteractionCommand.h
  17163. (checkInactiveConnection): Removed.
  17164. * src/PeerInteractionCommand.cc
  17165. (executeInternal): Removed following function calls:
  17166. detectMessageFlooding(), checkLongTimePeerChoking and
  17167. checkInactiveConnection().
  17168. (checkInactiveConnection): Removed.
  17169. (detectMessageFlooding): Removed function call to
  17170. checkInactiveConnection().
  17171. * src/PeerMessageUtil.h
  17172. (createChokeMessage): New function. Overload.
  17173. (createUnchokeMessage): New function. Overload.
  17174. (createInterestedMessage): New function. Overload.
  17175. (createNotInterestedMessage): New function. Overload.
  17176. (createHaveMessage): New function. Overload.
  17177. (createBitfieldMessage): New function. Overload.
  17178. (createRequestMessage): New function. Overload.
  17179. (createCancelMessage): New function. Overload.
  17180. (createPieceMessage): New function. Overload.
  17181. (createKeepAliveMessage): New function. Overload.
  17182. * src/PeerMessageUtil.cc
  17183. (createChokeMessage): New function. Overload.
  17184. (createUnchokeMessage): New function. Overload.
  17185. (createInterestedMessage): New function. Overload.
  17186. (createNotInterestedMessage): New function. Overload.
  17187. (createHaveMessage): New function. Overload.
  17188. (createBitfieldMessage): New function. Overload.
  17189. (createRequestMessage): New function. Overload.
  17190. (createCancelMessage): New function. Overload.
  17191. (createPieceMessage): New function. Overload.
  17192. (createKeepAliveMessage): New function. Overload.
  17193. * src/SendMessageQueue.cc
  17194. (createRequestMessage): Use PeerMessageUtil.
  17195. (createCancelMessage): Use PeerMessageUtil.
  17196. (createPieceMessage): Use PeerMessageUtil.
  17197. (createHaveMessage): Use PeerMessageUtil.
  17198. (createChokeMessage): Use PeerMessageUtil.
  17199. (createUnchokeMessage): Use PeerMessageUtil.
  17200. (createInterestedMessage): Use PeerMessageUtil.
  17201. (createNotInterestedMessage): Use PeerMessageUtil.
  17202. (createBitfieldMessage): Use PeerMessageUtil.
  17203. (createKeepAliveMessage): Use PeerMessageUtil.
  17204. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17205. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17206. * src/PeerInteraction.h: New class.
  17207. * src/PeerInteraction.cc: New class.
  17208. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17209. Each peer message has its own class.
  17210. * src/PendingMessages.h: Removed.
  17211. * src/PendingMessages.cc: Removed. The sending process was moved to
  17212. each message class.
  17213. * src/RequestSlotMan.h: Removed.
  17214. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17215. SendMessageQueue.
  17216. * src/RequestMessage.h: New class.
  17217. * src/RequestMessage.cc: New class.
  17218. * src/CancelMessage.h: New class.
  17219. * src/CancelMessage.cc: New class.
  17220. * src/BitfieldMessage.h: New class.
  17221. * src/BitfieldMessage.cc: New class.
  17222. * src/ChokeMessage.h: New class.
  17223. * src/ChokeMessage.cc: New class.
  17224. * src/KeepAliveMessage.h: New class.
  17225. * src/KeepAliveMessage.cc: New class.
  17226. * src/PortMessage.h: New class.
  17227. * src/UnchokeMessage.h: New class.
  17228. * src/UnchokeMessage.cc: New class.
  17229. * src/PieceMessage.h: New class.
  17230. * src/PieceMessage.cc: New class.
  17231. * src/HaveMessage.h: New class.
  17232. * src/HaveMessage.cc: New class.
  17233. * src/BitfieldMessage.h: New class.
  17234. * src/BitfieldMessage.cc: New class.
  17235. * src/NotInterestedMessage.h: New class.
  17236. * src/NotInterestedMessage.cc: New class.
  17237. * src/InterestedMessage.h: New class.
  17238. * src/InterestedMessage.cc: New class.
  17239. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17240. (getSendMessageQueue): New function.
  17241. (setSendMessageQueue): New function.
  17242. * src/HandshakeMessage.cc: New class.
  17243. * src/PeerConnection.h (receiveMessage): Changed return value and
  17244. arguments.
  17245. (receiveHandshake): Changed return value and arguments.
  17246. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17247. here.
  17248. (receiveHandshake): Do not create handshake class here.
  17249. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17250. (piece): Removed.
  17251. (syncPiece): Removed.
  17252. (sendInterest): Removed.
  17253. (sendMessages): Removed.
  17254. (createRequestPendingMessage): Removed.
  17255. (checkPieceHash): Removed.
  17256. (erasePieceOnDisk): Removed.
  17257. (getNewPieceAndSendInterest): Removed.
  17258. (onGotNewPice): Removed.
  17259. (onGotWrongPiece): Removed.
  17260. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17261. Removed peerConnection, piece.
  17262. (~PeerInteractionCommand): Removed peerConnection.
  17263. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17264. (syncPiece): Moved to SendMessageQueue.
  17265. (decideChoking): Removed PendingMessage.
  17266. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17267. The action after receiving peer message was moved to each message
  17268. class.
  17269. (onGotNewPice): Moved to SendMessageQueue.
  17270. (onGotWrongPiece): Moved to SendMessageQueue.
  17271. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17272. (sendInterest): Moved to SendMessageQueue.
  17273. (createRequestPendingMessage): Removed.
  17274. (sendMessages): Moved to SendMessageQueue.
  17275. (onAbort): Use SendMessageQueue::abortPiece()
  17276. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17277. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17278. (checkPieceHash): Moved to SendMessageQueue.
  17279. (erasePieceOnDisk): Moved to SendMessageQueue.
  17280. * src/PeerMessageUtil.h
  17281. (createBitfieldMessage): Removed.
  17282. (createHaveMessage): Changed return value and arguments.
  17283. (createBitfieldMessage): Changed return value and arguments.
  17284. (createRequestCancelMessage): Removed.
  17285. (createPieceMessage): Changed return value and arguments.
  17286. (getShortIntParam): New function.
  17287. (checkIndex): Changed arguments.
  17288. (checkBegin): Changed arguments.
  17289. (checkLength): Changed arguments.
  17290. (checkPieceOffset): Removed.
  17291. (checkRange): New function.
  17292. (checkBitfield): Changed arguments.
  17293. (createPeerMessage): Removed.
  17294. (checkIntegrity): Removed.
  17295. (createHandshakeMessage): Changed arguments.
  17296. (createChokeMessage): New function.
  17297. (createUnchokeMessage): New function.
  17298. (createInterestedMessage): New function.
  17299. (createNotInterestedMessage): New function.
  17300. (createRequestMessage): New function.
  17301. (createCancelMessage): New function.
  17302. (createPortMessage): New function.
  17303. * src/PeerMessageUtil.cc
  17304. (createBitfieldMessage): Removed.
  17305. (createHaveMessage): Changed return value and arguments.
  17306. (createBitfieldMessage): Changed return value and arguments.
  17307. (createRequestCancelMessage): Removed.
  17308. (createPieceMessage): Changed return value and arguments.
  17309. (getShortIntParam): New function.
  17310. (checkIndex): Changed arguments.
  17311. (checkBegin): Changed arguments.
  17312. (checkLength): Changed arguments.
  17313. (checkPieceOffset): Removed.
  17314. (checkRange): New function.
  17315. (checkBitfield): Changed arguments.
  17316. (createPeerMessage): Removed.
  17317. (checkIntegrity): Removed.
  17318. (createHandshakeMessage): Changed arguments.
  17319. (createChokeMessage): New function.
  17320. (createUnchokeMessage): New function.
  17321. (createInterestedMessage): New function.
  17322. (createNotInterestedMessage): New function.
  17323. (createRequestMessage): New function.
  17324. (createCancelMessage): New function.
  17325. (createPortMessage): New function.
  17326. * src/PeerMessage.h
  17327. (id): Removed.
  17328. (index): Removed.
  17329. (begin): Removed.
  17330. (length): Removed.
  17331. (bitfield): Removed.
  17332. (bitfieldLength): Removed.
  17333. (block): Removed.
  17334. (blockLength): Removed.
  17335. (inProgress): New variable.
  17336. (cuid): New variable.
  17337. (peer): New variable.
  17338. (sendMessageQueue): New variable.
  17339. (logger): New variable.
  17340. (setBitfield): Removed.
  17341. (getBitfield): Removed.
  17342. (setBlock): Removed.
  17343. (getBlock): Removed.
  17344. (getBitfieldLength): Removed.
  17345. (getBlockLength): Removed.
  17346. (isInProgress): New function.
  17347. (toString): Made pure virtual.
  17348. (check): New function.
  17349. (send): New function.
  17350. (receivedAction): New function.
  17351. (getId): Made pure virtual.
  17352. (setId): Removed.
  17353. (getIndex): Removed.
  17354. (setIndex): Removed.
  17355. (getBegin): Removed.
  17356. (setBegin): Removed.
  17357. (getLength): Removed.
  17358. (setLength): Removed.
  17359. (getCuid): New function.
  17360. (setCuid): New function.
  17361. (getPeer): New function.
  17362. (setPeer): New function.
  17363. (getSendMessageQueue): New function.
  17364. (setSendMessageQueue): New function.
  17365. (ID): Removed.
  17366. * src/PeerMessage.cc
  17367. (setBitfield): Removed.
  17368. (setBlock): Removed.
  17369. (toString): Removed.
  17370. * src/TorrentMan.h
  17371. (getPieceLength): New function.
  17372. (getPieceLength): New function.
  17373. * src/SendMessageQueue.h
  17374. (REQUEST_TIME_OUT): New definition.
  17375. (RequestSlots): New definition.
  17376. (MessageQueue): New definition.
  17377. (requestSlotMan): Removed.
  17378. (pendingMessages): Removed.
  17379. (requestSlots): New variable.
  17380. (messageQueue): New variable.
  17381. (torrentMan): New variable.
  17382. (peerConnection): New variable.
  17383. (peer): New variable.
  17384. (piece): New variable.
  17385. (getNewPieceAndSendInterest): New function.
  17386. (createPeerMessage): New function.
  17387. (createHandshakeMessage): New function.
  17388. (send): Made private.
  17389. (setPeerMessageCommonProperty): New function.
  17390. (deleteAllRequestSlot): New function.
  17391. (deleteRequestMessageInQueue): New function.
  17392. (cancelAllRequest): Made private.
  17393. (cancelAllRequest): Made private.
  17394. (countRequestSlot): Made private.
  17395. (addPendingMessage): Removed.
  17396. (deletePendingPieceMessage): Removed.
  17397. (deletePendingRequestMessage): Removed.
  17398. (addMessage): New function.
  17399. (deletePieceMessageInQueue): New function.
  17400. (deleteTimeoutRequestSlot): Changed argument.
  17401. (deleteCompletedRequestSlot): Changed argument.
  17402. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17403. (getCorrespondingRequestSlot): New function.
  17404. (countPendingMessage): Removed.
  17405. (countMessageInQueue): New function.
  17406. (getTorrentMan): New function.
  17407. (getPeerConnection): New function.
  17408. (hasDownloadPiece): New function.
  17409. (getDownloadPiece): New function.
  17410. (setDownloadPiece): New function.
  17411. (syncPiece): New function.
  17412. (sendMessages): New function.
  17413. (sendNow): New function.
  17414. (trySendNow): New function.
  17415. (abortPiece): New function.
  17416. (sendHandshake): New function.
  17417. (receiveMessage): New function.
  17418. (receiveHandshake): New function.
  17419. (createRequestMessage): New function.
  17420. (createCancelMessage): New function.
  17421. (createPieceMessage): New function.
  17422. (createHaveMessage): New function.
  17423. (createChokeMessage): New function.
  17424. (createUnchokeMessage): New function.
  17425. (createInterestedMessage): New function.
  17426. (createNotInterestedMessage): New function.
  17427. (createBitfieldMessage): New function.
  17428. (createKeepAliveMessage): New function.
  17429. * src/SendMessageQueue.cc
  17430. (SendMessageQueue): Removed requestSlotMan.
  17431. Instantiated peerConnection here.
  17432. (~SendMessageQueue): Removed requestSlotMan.
  17433. Added deletion of peerConnection and the contents of messageQueue.
  17434. (send): Updated according to the change of messageQueue.
  17435. (addPendingMessage): Renamed to addMessage.
  17436. (addMessage): New function.
  17437. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17438. (deletePieceMessageInQueue): New function.
  17439. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17440. (deleteRequestMessageInQueue): New function.
  17441. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17442. here.
  17443. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17444. (...) was moved here.
  17445. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17446. moved here.
  17447. (deleteCompletedRequestSlot):
  17448. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17449. (getCorrespondingRequestSlot):
  17450. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17451. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17452. (countPendingMessage): Renamed to countMessageInQueue.
  17453. (countMessageInQueue): New function.
  17454. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17455. (receiveHandshake): New function.
  17456. (createHandshakeMessage): New function.
  17457. (receiveMessage): New function.
  17458. (createPeerMessage): New function.
  17459. (syncPiece): New function.
  17460. (getNewPieceAndSendInterest): New function.
  17461. (sendMessages): New function.
  17462. (sendNow): New function.
  17463. (trySendNow): New function.
  17464. (sendHandshake): New function.
  17465. (abortPiece): New function.
  17466. (getDownloadPiece): New function.
  17467. (getPeerMessageCommonProperty): New function.
  17468. (createRequestMessage): New function.
  17469. (createCancelMessage): New function.
  17470. (createPieceMessage): New function.
  17471. (createHaveMessage): New function.
  17472. (createChokeMessage): New function.
  17473. (createUnchokeMessage): New function.
  17474. (createInterestedMessage): New function.
  17475. (createNotInterestedMessage): New function.
  17476. (createBitfieldMessage): New function.
  17477. (createKeepAliveMessage): New function.
  17478. To add simple Content-Disposition support:
  17479. * src/HttpResponseCommand.h (determinFilename): New function.
  17480. * src/HttpResponseCommand.cc (executeInternal):
  17481. Use determinFilename(headers) instead of req->getFile() when comparing
  17482. filename.
  17483. (determinFilename): New function.
  17484. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17485. req->getFile().
  17486. (handleOtherEncoding): Use determinFilename(headers) instead of
  17487. req->getFile().
  17488. * src/Util.h (getContentDispositionFilename): New function.
  17489. * src/Util.cc (getContentDispositionFilename): New function.
  17490. * src/LogFactory.h (release): New function.
  17491. * src/LogFactory.cc (release): New function.
  17492. To fix a bug that causes out-of-bound exception when HTTP status
  17493. line is wrong:
  17494. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17495. size.
  17496. * src/common.h (Deleter): New class.
  17497. * src/SegmentMan.cc
  17498. (~SegmentMan): Added deletion of splitter and diskWriter.
  17499. * src/DownloadEngine.h
  17500. (Commands): Use deque.
  17501. (clearQueue): New function.
  17502. * src/DownloadEngine.cc
  17503. (~DownloadEngine): Added deletion of segmentMan.
  17504. (cleanQueue): New function.
  17505. * src/TorrentDownloadEngine.h
  17506. (TorrentDownloadEngine): The implementation was moved to
  17507. TorrentDownloadEngine.cc.
  17508. (~TorrentDownloadEngine): The implementation was moved to
  17509. TorrentDownloadEngine.cc.
  17510. * src/TorrentDownloadEngine.cc
  17511. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17512. * src/main.cc
  17513. (clearRequest): Removed.
  17514. (handler): Added deletion of e.
  17515. (torrentHandler): Added deletion of te.
  17516. (main): Do not share splitter.
  17517. Use Deleter instead of clearRequest.
  17518. Deletion of classes were updated.
  17519. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17520. * src/main.cc (main): Fixed typo.
  17521. * src/message.h: Fixed typo.
  17522. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17523. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17524. To add --select-file command-line option:
  17525. * src/Util.cc
  17526. (unfoldRange): New function.
  17527. (getNum): New function.
  17528. (unfoldSubRange): New function
  17529. * src/main.cc
  17530. (showUsage): Added help message.
  17531. (main): Added --select-file command-line option. Updated the layout of
  17532. file listing.
  17533. * src/common.h
  17534. (Integers): New definition.
  17535. * src/SocketCore.cc
  17536. (writeData): Removed timeout argument.
  17537. (readData): Removed timeout argument.
  17538. (peekData): Removed timeout argument.
  17539. * src/Socket.cc
  17540. (writeData): Removed timeout argument.
  17541. (readData): Removed timeout argument.
  17542. (peekData): Removed timeout argument.
  17543. * Release 0.4.1
  17544. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17545. To deploy upload rate based choking algorithm:
  17546. * src/PeerInteractionCommand.cc
  17547. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17548. peer currently used.
  17549. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17550. download completes. Simplified.
  17551. (receiveMessage): Updated.
  17552. * src/TorrentMan.h
  17553. (activePeers): New variable.
  17554. (addActivePeer): New function.
  17555. (getActivePeers): New function.
  17556. (deleteActivePeer): New function.
  17557. * src/TorrentMan.cc
  17558. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17559. * src/PeerAbstractCommand.cc
  17560. (onAbort): Use peer->resetStatus().
  17561. * src/main.cc
  17562. (PeerChokeCommand.h): Included.
  17563. (main): Added the instance of ChokingCommand to the command queue.
  17564. * src/Peer.h
  17565. (amChoking): Renamed from amChocking
  17566. (chokingRequired): New variable.
  17567. (optUnchoking): New variable.
  17568. (deltaUpload): New variable.
  17569. (deltaDownload): New variable.
  17570. (addDeltaUpload): New function.
  17571. (resetDeltaUpload): New function.
  17572. (addDeltaDownload): New function.
  17573. (resetDeltaDownload): New function.
  17574. (addPeerUpload): Added a call to addDeltaUpload.
  17575. (addPeerDownload): Added a call to addDeltaDownload.
  17576. * src/Peer.cc
  17577. (shouldBeChoking): Renamed from shouldChoke.
  17578. (resetStatus): New function.
  17579. * src/PeerChokeCommand.h: New class.
  17580. * src/PeerChokeCommand.cc: New class.
  17581. To add lazy upload speed limiter:
  17582. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17583. statistics calculation to TorrentDownloadEngine.
  17584. * src/TorrentConsoleDownloadEngine.cc
  17585. (sendStatistics): Renamed from printStatistics.
  17586. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17587. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17588. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17589. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17590. calculation.
  17591. (sendStatistics): New function as pure virtual function.
  17592. (getUploadSpeed): New function.
  17593. * src/TorrentDownloadEngine.cc
  17594. (initStatistics): New function.
  17595. (calculateSpeed): New function.
  17596. (calculateStatistics): New function.
  17597. * src/SendMessageQueue.h
  17598. (uploadLength): New variable.
  17599. (send): Added an argument.
  17600. (setUploadLimit): New function.
  17601. (getUploadLimit): New function.
  17602. * src/SendMessageQueue.cc
  17603. (send): Added upload speed limiter.
  17604. * src/prefs.h
  17605. (PREF_UPLOAD_LIMIT): New definition.
  17606. * src/PeerInteractionCommand.cc
  17607. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17608. * src/main.cc
  17609. (main): Added --upload-limit option
  17610. For bug fixes:
  17611. * src/main.cc
  17612. (showUsage): Corrected --listen-port help
  17613. Other changes:
  17614. * src/TorrentMan.cc
  17615. (getPeer): Return nullPeer if connection is grather than
  17616. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17617. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17618. To add some useful information to the exception message:
  17619. * src/SocketCore.cc : Updated messages.
  17620. * src/SegmentMan.cc :
  17621. * src/TorrentMan.cc : Updated messages.
  17622. * src/MultiDiskWriter.cc : Updated messages.
  17623. * src/Util.cc : Updated messages.
  17624. * src/AbstractDiskWriter.cc : Updated messages.
  17625. * src/PreAllocationDiskWriter.cc : Updated messages.
  17626. * src/message.cc : Added new messages. Updated some messages.
  17627. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17628. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17629. Updated threshold from 30 to 15.
  17630. * src/AbstractDiskWriter.h (filename): New variable.
  17631. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17632. (createFile): Assigned filename.
  17633. * src/main.cc: Updated the help message for http-auth-scheme.
  17634. * Release 0.4.0
  17635. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17636. To add TrackerUpdateCommand with which replaces
  17637. CompactTrackerResponseProcessor:
  17638. * src/TrackerWatcherCommand.h (req): Removed.
  17639. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17640. if the number of peer connections are less than 30.
  17641. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17642. * src/SegmentMan.h (diskWriter): New function.
  17643. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17644. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17645. (main): Use TrackerUpdateCommand.
  17646. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17647. (req): New variable.
  17648. (setTrackerResponseProcessor): Removed.
  17649. (getTrackerResponseProcessor): Removed.
  17650. (processTrackerResponse): Removed.
  17651. * src/DownloadEngine.h (diskWriter): Removed.
  17652. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17653. to torrentMan->processTrackerResponse().
  17654. To add Util::expandBuffer:
  17655. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17656. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17657. * src/Util.h (expandBuffer): New function.
  17658. To fix the bug that causes segmentation fault when "-l ." is specified
  17659. in command-line option:
  17660. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17661. (openFile): New function.
  17662. (closeFile): New function.
  17663. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17664. (~SimpleLogger): Call closeFile();
  17665. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17666. * src/main.cc (main): Added a check to see logger is configured
  17667. properly.
  17668. To enable HTTP authentication without specifying "--http-auth-scheme"
  17669. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17670. * src/HttpConnection.cc (createRequest): Send Authorization header
  17671. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17672. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17673. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17674. * src/Peer.cc (shouldChoke): Updated algorithm.
  17675. * src/message.h (EX_AUTH_FAILED): New definition.
  17676. (EX_FILE_OPEN): New definition.
  17677. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17678. if status == 401.
  17679. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17680. if req->isTorrent == true.
  17681. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17682. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17683. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17684. (createFile): Updated message.
  17685. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17686. To add a readout of estimated remaining time to normal HTTP/FTP
  17687. downloads:
  17688. * src/ConsoleDownloadEngine.h (startup): New variable.
  17689. (startupLength): New variable.
  17690. (isStartupLengthSet): New variable.
  17691. (avgSpeed): New variable.
  17692. (eta): New variable.
  17693. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17694. estimated remaining time.
  17695. (initStatistics): Initialized newly added variables.
  17696. (calculateStatistics): Calculate average speed and estimated remaining
  17697. time.
  17698. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17699. * src/TrackerDownloadCommand.h: Removed.
  17700. * src/TrackerDownloadCommand.cc: Removed.
  17701. * src/TrackerInitCommand.h: Removed.
  17702. * src/TrackerInitCommand.cc: Removed.
  17703. * src/TrackerUpdateCommand.h: Removed.
  17704. * src/TrackerUpdateCommand.cc: Removed.
  17705. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17706. url written in TrackerInitCommand was moved here. Do not create
  17707. tracker request command if torrentMan->trackers != 0.
  17708. * src/CompactTrackerResponseProcessor.h: New class.
  17709. * src/CompactTrackerResponseProcessor.cc: New class.
  17710. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17711. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17712. Decoupled TorrentDownloadEngine from this.
  17713. * src/SegmentMan.h (init): New function.
  17714. * src/SegmentMan.cc (init): New function.
  17715. * src/TorrentMan.h (responseProcessor): New variable.
  17716. (trackers): New variable.
  17717. (setTrackerResponseProcessor): New function.
  17718. (getTrackerResponseProcessor): New function.
  17719. (processTrackerResponse): New function.
  17720. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17721. (processTrackerResponse): New function.
  17722. * src/main.cc (main): Use ByteArrayDiskWriter and
  17723. CompactTrackerResponseProcessor.
  17724. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17725. processTrackerResponse().
  17726. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17727. readout.
  17728. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17729. which indicates download has completed.
  17730. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17731. (closeFile): fd >= 0, not fd > 0
  17732. * src/main.cc (main): Added short cut for show-files.
  17733. Added short cut for torrent-file.
  17734. Added new command-line option listen-port.
  17735. Updated i18n messages.
  17736. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17737. To add LogFactory which creates singleton logger:
  17738. * src/LogFactory.h: New class.
  17739. * src/LogFactory.cc: New class.
  17740. * src/Command.h (logger): New variable.
  17741. (Constructor): Use LogFactory.
  17742. * src/AbstractCommand.cc: Use Command::logger
  17743. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17744. Use LogFactory.
  17745. * src/SegmentSplitter.h : Made logger protected.
  17746. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17747. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17748. * src/DownloadEngine.h : Made logger protected.
  17749. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17750. * src/PeerInteractionCommand.cc : Use Command::logger.
  17751. * src/HttpResponseCommand.cc : Use Command::logger.
  17752. * src/SegmentMan.h : Made logger private.
  17753. * src/TorrentMan.h : Made logger private.
  17754. * src/TorrentMan.cc : Use LogFactory.
  17755. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17756. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17757. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17758. Use LogFactory.
  17759. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17760. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17761. Use LogFactory.
  17762. * src/DownloadCommand.cc : Use Command::logger.
  17763. * src/PeerAbstractCommand.cc : Use Command::logger.
  17764. * src/PeerListenCommand.cc : Use Command::logger.
  17765. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17766. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17767. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17768. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17769. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17770. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17771. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17772. Use LogFactory.
  17773. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17774. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17775. Use LogFactory.
  17776. * src/main.cc (main): Use LogFactory.
  17777. * src/DiskAdaptor.h (logger): New variable.
  17778. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17779. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17780. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17781. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17782. parameter to a tracker request.
  17783. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17784. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17785. * src/main.cc (setSignalHander): New function.
  17786. (main): Added a handler for SIGTERM.
  17787. (handler): Updated message.
  17788. (torrentHandler): Updated message.
  17789. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17790. * src/TorrentConsoleDownloadEngine.cc
  17791. (onPartialDownloadingCompletes): Renamed as
  17792. onSelectiveDownloadingCompletes.
  17793. (onSelectiveDownloadingCompletes): Updated message.
  17794. To add DiskAdaptor which abstract DiskWriter family:
  17795. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17796. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17797. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17798. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17799. MultiDiskAdaptor.h.
  17800. (readFileEntry): Changed its arguments.
  17801. (setup): setupDiskWriter is merged into this function.
  17802. (setupDiskWriter): Removed.
  17803. (setFileFilter): New function.
  17804. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17805. made in readFileEntry.
  17806. (getFilePath): Removed.
  17807. (getTempFilePath): Removed.
  17808. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17809. (fixFilename): Removed.
  17810. (copySingleFile): Removed.
  17811. (splitMultiFile): Removed.
  17812. (deleteTempFile): Removed.
  17813. (setFileEntriesToDownload): Removed.
  17814. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17815. (isSelectiveDownloadingMode): New function.
  17816. (setAllMultiFileRequestedState): Removed.
  17817. (finishPartialDownloadingMode): Renamed as
  17818. finishSelectiveDownloadingMode.
  17819. (finishSelectiveDownloadingMode): New function.
  17820. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17821. (getSelectedTotalLength): New function.
  17822. (onDownloadComplete): Use diskAdaptor.
  17823. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17824. (Range): Removed.
  17825. (setMultiFileEntries): Renamed as setFileEntries.
  17826. (setFileEntries): New function.
  17827. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17828. (pieceLength): New variable.
  17829. * src/main.cc (printDownloadCompeleteMessage): New function.
  17830. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17831. (main): Renamed torrent-show-files to show-files.
  17832. Rewritten file contents listing.
  17833. * src/TorrentMan.h (FileEntry): Removed.
  17834. (multiFileTopDir): Removed.
  17835. (multiFileEntries): Removed.
  17836. (diskWriter): Removed.
  17837. (diskAdaptor): New variable.
  17838. * src/DefaultDiskWriter.h (totalLength): New variable.
  17839. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17840. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17841. diskWriter.
  17842. * src/TorrentConsoleDownloadEngine.h
  17843. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17844. (partialTotalLength): Renamed as selectedTotalLength.
  17845. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17846. openExistingFile, otherwise call initAndOpenFile.
  17847. (closeFile): fd > 0, not fd != 0.
  17848. * src/DirectDiskAdaptor.h: New class.
  17849. * src/DirectDiskAdaptor.cc: New class.
  17850. * src/MultiDiskAdaptor.h: New class.
  17851. * src/MultiDiskAdaptor.cc: New class.
  17852. * src/CopyDiskAdaptor.h: New class.
  17853. * src/CopyDiskAdaptor.cc: New class.
  17854. * src/DiskAdaptor.h: New class.
  17855. * src/DiskAdaptor.cc: New class.
  17856. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17857. (PREF_SHOW_FILES): New definition.
  17858. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17859. To add the ability to download multi torrent into respective files
  17860. directly:
  17861. * src/DiskWriter.h (openFile): New function.
  17862. (seek): Removed.
  17863. * src/MultiDiskWriter.h: New class.
  17864. * src/MultiDiskWriter.cc: New class.
  17865. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17866. protected.
  17867. (openFile): New function.
  17868. * src/AbstractDiskWriter.cc (openFile): New function.
  17869. * src/prefs.h (V_FALSE): New definition.
  17870. (PREF_DIRECT_FILE_MAPPING): New definition.
  17871. * src/TorrentMan.h (setupDiskWriter): New function.
  17872. (setAllMultiFileRequestedState): New function.
  17873. (onDownloadComplete): New function.
  17874. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17875. (setupDiskWriter): New function.
  17876. (getFilePath): Updated.
  17877. (getTempFilePath): Updated.
  17878. (getSegmentFilePath): Updated.
  17879. (fixFilename): Updated.
  17880. (deleteTempFile): Updated.
  17881. (setAllMultiFileRequestedState): New function.
  17882. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17883. (finishPartialDownloadingMode): Reset requested flags.
  17884. (onDownloadComplete): New function.
  17885. * src/main.cc: Added --direct-file-mapping option.
  17886. Use TorrentMan::setupDiskWriter().
  17887. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17888. onDownloadComplete().
  17889. To fix ETA bug:
  17890. * src/Util.h (difftvsec): New function.
  17891. * src/Util.cc (difftvsec): New function.
  17892. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17893. type of "elapsed" instead of long long int.
  17894. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17895. The updates of statistics takes place every 1 seconds.
  17896. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17897. (calculateSpeed): Changed its argument signature.
  17898. * src/PeerMessage.cc (toString): Fixed message.
  17899. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17900. To print ETA:
  17901. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17902. completion handling when dealing with
  17903. TorrentMan::isPartialDownloadingMode() == true.
  17904. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17905. New function.
  17906. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17907. (sessionDownloadLength): New variable.
  17908. (avgSpeed): New variable.
  17909. (eta): New variable.
  17910. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17911. new variables: eta, avgSpeed, startup.
  17912. (calculateSpeed): Calculate average speed and ETA.
  17913. (printStatistics): Added ETA.
  17914. * src/Util.h (secfmt): New function.
  17915. * src/Util.cc (secfmt): New function.
  17916. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17917. To detect "keep alive" flooding:
  17918. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17919. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17920. variable: keepAliveCount.
  17921. (detectMessageFlooding): Added "keep alive" flooding detection.
  17922. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17923. received.
  17924. To add the ability to download only specified files in multi-file
  17925. torrent:
  17926. * src/BitfieldMan.h (filterBitfield): New variable.
  17927. (filterEnabled): New variable.
  17928. (setFilterBit): New function.
  17929. (enableFilter): New function.
  17930. (disableFilter): New function.
  17931. (isFilterEnabled): New function.
  17932. (getFilteredTotalLength): New function.
  17933. (getCompletedLength): New function.
  17934. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17935. filterBitfield, filterEnabled.
  17936. (CopyConstructor): Added filterBitfield and filterEnabled.
  17937. (operator==): Added filterBitfield and filterEnabled.
  17938. (Destructor): Added filterBitfield.
  17939. (getMissingIndex): Use filterBitfield.
  17940. (getMissingUnusedIndex): Use filterBitfield.
  17941. (getFirstMissingUnusedIndex): Use filterBitfield.
  17942. (getFirstMissingUnusedIndex): Use filterBitfield.
  17943. (getAllMissingIndexes): Use filterBitfield.
  17944. (countMissingBlock): Use filterBitfield.
  17945. (countBlock): Use filterBitfield.
  17946. (setBitInternal): Added new argument on.
  17947. (setUseBit): Use setBitInternal.
  17948. (unsetUseBit): Use setBitInternal.
  17949. (setBit): Use setBitInternal.
  17950. (unsetBit): Use setBitInternal.
  17951. (isAllBitSet): Use filterBitfield.
  17952. (setFilterBit): New function.
  17953. (addFilter): New function.
  17954. (enableFilter): New function.
  17955. (disableFilter): New function.
  17956. (clearFilter): New function.
  17957. (isFilterEnabled): New function.
  17958. (getFilteredTotalLength): New function.
  17959. (getCompletedLength): New function.
  17960. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17961. Initalized newly added variables.
  17962. [FileEntry](offset): New variable.
  17963. [FileEntry](extracted): New variable.
  17964. [FileEntry](requested): New variable.
  17965. (readFileEntry): New function.
  17966. (option): New variable.
  17967. (splitMultiFile): Removed const qualifier.
  17968. (fixFilename): Removed const qualifier.
  17969. (readFileEntryFromMetaInfoFile): New function.
  17970. (finishPartialDownloadingMode): New function.
  17971. (isPartialDownloadingMode): New function.
  17972. (setFileEntriesToDownload): New function.
  17973. (getCompletedLength): New function.
  17974. (getPartialTotalLength): New function.
  17975. * src/TorrentMan.cc (readFileEntry): New function.
  17976. (setup): Use readFileEntry. If no-preallocation option is specified,
  17977. use DefaultDiskWriter.
  17978. (readFileEntryFromMetaInfoFile): New function.
  17979. (fixFilename): Removed const qualifier.
  17980. (splitMultiFile): Removed const qualifier.
  17981. (setFileEntriesToDownload): New function.
  17982. (isPartialDownloadingMode): New function.
  17983. (finishPartialDownloadingMode): New function.
  17984. (getCompletedLength): New function.
  17985. (getPartialTotalLength): New function.
  17986. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17987. New variable.
  17988. (partialTotalLength): New variable.
  17989. (downloadLength): New variable.
  17990. (totalLength): New variable.
  17991. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17992. Added log.
  17993. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17994. partialTotalLength, downloadLength, totalLength.
  17995. (calculate): Calculate downloadLength and totalLength.
  17996. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17997. * src/main.cc (addCommand): Changed argument signature.
  17998. (main): Added new variable: args. Added new option "torrent-show-files"
  17999. "no-preallocation". Usage is not updated yet.
  18000. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18001. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18002. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18003. Attempt to add the ability to listing file entries in a .torrent file.
  18004. This feature is not yet complete.
  18005. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18006. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18007. (getName): New function.
  18008. * src/TorrentMan.h (getMultiFileEntries): New function.
  18009. (getName): New function.
  18010. * src/main.cc (main): Use above 2 funtion.
  18011. * Release 0.3.2
  18012. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18013. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18014. (detectMessageFlooding): Updated threshold value.
  18015. (checkLongTimePeerChoking): Updated timeout value.
  18016. (getNewPieceAndSendInterest): Added debug log.
  18017. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18018. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18019. (getPeer): Updated.
  18020. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18021. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18022. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18023. is localhost.
  18024. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18025. * src/PendingMessage.cc (processMessage): Not to send piece message
  18026. if peer is not interested in the pieces localhost has.
  18027. * src/Peer.cc (shouldChoke): Updated.
  18028. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18029. * src/Util.cc (isPowerOf): New function.
  18030. * src/Util.h (isPowerOf): New function.
  18031. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18032. whether or not it is power of 2.
  18033. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18034. Added new class SendMessageQueue that includes PendingMessages and
  18035. RequestSlotMan.
  18036. * src/SendMessageQueue.h: New class.
  18037. * src/SendMessageQueue.cc: New class.
  18038. * src/PendingMessage.h: Added new member variable blockIndex and its
  18039. accessors.
  18040. (createRequestMessage): Updated.
  18041. * src/PendingMessage.cc (createRequestMessage): Updated.
  18042. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18043. SendMessageQueue.
  18044. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18045. (receiveMessage): Updated with SendMessageQueue.
  18046. (deletePendingPieceMessage): Removed.
  18047. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18048. (sendInterest): Updated with SendMessageQueue.
  18049. (createRequestPendingMessage): Updated with SendMessageQueue.
  18050. (sendMessages): Updated with SendMessageQueue.
  18051. (onAbort): Updated with SendMessageQueue.
  18052. (keepAlive): Updated with SendMessageQueue.
  18053. (beforeSocketCheck): Updated SendMessageQueue.
  18054. * src/PeerInteractionCommand (sendMessages): Shuffle
  18055. missingBLockIndexes before using it.
  18056. Added its own timeout for peer connection.
  18057. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18058. setter.
  18059. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18060. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18061. Added setTimeout() call.
  18062. (executeInternal): Added setTimeout() call.
  18063. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18064. Added timeout.
  18065. (isTimeoutDetected): Updated.
  18066. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18067. option.
  18068. Added *simple* message flooding checker.
  18069. * src/PeerInteractionCommand.cc (executeInternal):
  18070. Added detectMessageFlooding() call.
  18071. (detectMessageFlooding): New function.
  18072. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18073. (beforeSocketCheck): Added detectMessageFlooding() call.
  18074. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18075. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18076. Removed deletePendingPieceMessage(), getRequestSlot(),
  18077. deleteRequestSlot(), deleteAllRequestSlot().
  18078. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18079. Added checkLongTimePeerChoking() call.
  18080. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18081. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18082. if duplicate == false.
  18083. The parameter "uploaded" and "downloaded" in the tracker request are
  18084. the size since the client sent the "started" event to the tracker.
  18085. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18086. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18087. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18088. getSessionDownloadedSize(), getSessionUploadedSize().
  18089. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18090. getSessionUploadedSize() instead of getDownloadedSize(),
  18091. getUploadedSize().
  18092. * src/PendingMessage.cc (processMessage): Do not send request message
  18093. if the peer is choking the client.
  18094. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18095. less than interval.
  18096. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18097. * configure.in: Added gnutls support. Added several CPP macros.
  18098. * m4/openssl.m4: Added.
  18099. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18100. readData(), peekData(). Added gnutls support.
  18101. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18102. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18103. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18104. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18105. Instead, added a check for whether setup method has executed
  18106. successfully.
  18107. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18108. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18109. * src/Makefile.am: Updated.
  18110. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18111. using whether OpenSSL or gcrypt, depending on the result of configure
  18112. script.
  18113. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18114. messageDigest.h.
  18115. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18116. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18117. Fixed memory leak.
  18118. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18119. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18120. Removed instantiation of TrackerInitCommand. Instead,
  18121. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18122. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18123. ENABLE_SSL.
  18124. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18125. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18126. If a piece is already acquired by another command, delete the request
  18127. slots for the piece.
  18128. * src/TrackerUpdateCommand.cc (execute):
  18129. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18130. Added a check whether peer list is null.
  18131. Fixed the bug that causes sending completed event to the tracker
  18132. several times.
  18133. * src/TrackerInitCommand.cc (execute):
  18134. Fixed the bug that causes sending completed event to the tracker
  18135. several times.
  18136. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18137. by using messageDigest.h.
  18138. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18139. * PeerConnection.cc: Replaced log message "keep-alive" with
  18140. "keep alive".
  18141. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18142. localhost long time.
  18143. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18144. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18145. at most 100 failure entry from the list. If with duplicate = false,
  18146. MAX_PEER_LIST is not checked.
  18147. * PeerListenCommand.cc: Fixed the argument order of log message.
  18148. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18149. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18150. Added warn().
  18151. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18152. Implemented warn().
  18153. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18154. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18155. * Request.h: Added AFTER_COMPLETED event.
  18156. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18157. instead of downloaded size and progress(%) after download completes.
  18158. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18159. message to the peer if it is interested in what localhost has
  18160. downloaded.
  18161. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18162. destination instead of just renaming it.
  18163. * TorrentMan.cc: Added deleteTempFile().
  18164. * PeerAbstractCommand.cc: do not stop execution after download
  18165. completes. This makes localhost a seeder.
  18166. * Util.{h,cc}: Added fileCopy().
  18167. * PeerListenCommand.cc: do not stop execution after download completes.
  18168. This makes localhost a seeder.
  18169. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18170. Added TorrentMan::deleteTempFile() to torrentHandler.
  18171. Initialized the variable dir as ".".
  18172. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18173. Deleted renameSingleFile().
  18174. Added copySingleFile(), deleteTempFile().
  18175. * DownloadEngine.h: Added virtual function afterEachIteration().
  18176. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18177. in onEndOfRun() to afterEachIteration().
  18178. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18179. true.
  18180. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18181. In rangedFileCopy(), added try-catch block to properly close file
  18182. descriptors.
  18183. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18184. Added afterEachIteration(), isFilenameFixed().
  18185. * Peer.cc: Changed choking strategy.
  18186. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18187. * TrackerInitCommand.cc: Send completed event only once.
  18188. * DownloadEngine.cc: Added a call to afterEachIteration().
  18189. * TrackerUpdateCommand.cc: Do not stop execution after download
  18190. completes.
  18191. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18192. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18193. received from a tracker.
  18194. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18195. Decreased the number of failure peers to delete to 0(just comment out
  18196. the line).
  18197. * Release 0.3.1
  18198. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18199. * PeerInteractionCommand.cc: added a call to
  18200. TorrentMan::unadvertisePiece in Destructor.
  18201. * PeerInteractionCommand.cc: make have message sent immediately
  18202. if the size of pending message queue is zero.
  18203. * TorrentMan.cc: set the maximum size of peer list to 250.
  18204. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18205. to deque.
  18206. * Util.cc: fixed rangedFileCopy.
  18207. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18208. to Constructor. Also, moved digest cleanup to Destructor.
  18209. * MetaFileUtil.cc: fixed memory leak
  18210. * replaced std::vector with std::deque.
  18211. * AbstractCommand.cc: casted timeout value to long long int.
  18212. * ChunkedEncoding.cc: fixed memory leak.
  18213. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18214. * SleepCommand.cc: casted timeout value to long long int.
  18215. * Data.cc: fixed memory leak.
  18216. * Data.cc: fixed toLLInt().
  18217. * BitfieldMan.cc: fixed memory leak.
  18218. * TorrentMan.cc: initialized storeDir to ".".
  18219. * TorrentMan.cc: fixed memory leak.
  18220. * TorrentMan.cc: corrected file paths of splitted files.
  18221. * PeerAbstractCommand.cc: casted timeout to long long int.
  18222. * main.cc: added delete(req) and delete(te->diskWriter).
  18223. * RequestSlot.cc: casted timeout value to long long int.
  18224. * Request.cc: fixed memory leak.
  18225. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18226. have the piece.
  18227. * Peer.{h,cc}: added hasPiece(int index).
  18228. * main.cc: corrected addCommand.
  18229. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18230. * BitTorrent protocol support added.
  18231. * Release 0.3.0
  18232. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18233. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18234. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18235. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18236. decoding did not work properly.
  18237. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18238. * DownloadEngine.h: included sys/time.h
  18239. * DownloadEngine.cc: remove sys/time.h
  18240. * Makefile.am (SUBDIRS): Add intl.
  18241. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18242. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18243. * main.cc: correct help message for --http-auth-scheme.
  18244. * main.cc: changed e-mail address for bug reports.
  18245. * ja.po: added japanese translation.
  18246. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18247. * SimpleLogger.cc: flush log file instead of stdout.
  18248. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18249. * main.cc: Fixed command-line option: max-tries
  18250. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18251. does not equal to seg.sp.
  18252. * DownloadCommand.cc: If EOF is got from the server and the total size
  18253. of file is not zero, then throw DlRetryEx.
  18254. * main.cc: Set the minium value of min-segment-size to 1024.
  18255. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18256. fails because of a regression since 0.2.0 release.
  18257. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18258. * HttpConnection.cc:
  18259. * common.h: defined the user agent name as macro
  18260. * DownloadEngine.{h, cc}:
  18261. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18262. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18263. * main.cc: Download complete/abort message is now generated by main.
  18264. * Makefile.am (SUBDIRS): Add m4.
  18265. (ACLOCAL_AMFLAGS): New variable.
  18266. (EXTRA_DIST): New variable.
  18267. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18268. * gettext: added gettext functionality
  18269. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18270. * AbstractCommand.cc:
  18271. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18272. unregister its cuid from SegmentMan.
  18273. * DownloadEngine.cc: .aria2 file was written when a downloading
  18274. failed with errors.
  18275. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18276. Added "User-Agent" header to CONNECT proxy request.
  18277. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18278. properly.
  18279. * Logger.h:
  18280. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18281. * ChunkedEncoding.cc: Added #include directive for strings.h
  18282. * Release 0.2.1
  18283. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18284. * Util.{h,cc}: added startsWith().
  18285. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18286. Util::endsWith().
  18287. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18288. * common.h: added #include directive of limit.h.
  18289. * DownloadEngine.cc: added #include directive of sys/time.h and
  18290. algorithm.
  18291. * Exception.h: added #include directive of stdio.h.
  18292. * AbstractCommand.h: added #include directive of sys/time.h.
  18293. * DownloadCommand.h: added #include directive of sys/time.h.
  18294. * *.h: added #include directive of common.h to all base classes.
  18295. subclasses' one was removed.
  18296. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18297. does not define these macros.
  18298. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18299. * Release 0.2.0
  18300. * main.cc:
  18301. * HttpInitiateConnectionCommand.{h,cc}:
  18302. * prefs.h:
  18303. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18304. We can now use GET command in http proxy.
  18305. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18306. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18307. that splits slowest segment of SegmentMan::commands vector.
  18308. This is the default split algorithm of aria2.
  18309. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18310. that splits first segment of SegmentMan::commands vector.
  18311. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18312. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18313. * Segment.h:
  18314. * SegmentMan.cc: Added speed field to Segment.h
  18315. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18316. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18317. * message.h: Change file size related %d to %lld.
  18318. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18319. * FtpInitiateConnectionCommand.{h,cc}:
  18320. * FtpNegotiationCommand.{h,cc}:
  18321. * FtpDownloadCommand.{h,cc}:
  18322. * FtpConnection.{h,cc}: Added FTP support
  18323. * SimpleLogger.cc: Log message now includes time information.
  18324. * main.cc: The value of --http-auth-scheme option is chagned from
  18325. 'BASIC' to 'basic'
  18326. * main.cc: Added --timeout command-line option.
  18327. * main.cc: Added --min-segment-size command-line option.
  18328. * main.cc: Added --max-retries command-line option.
  18329. * prefs.h: option string constants are now defined in prefs.h
  18330. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18331. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18332. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18333. with version 0.1.0's one.
  18334. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18335. * configure.in: Added --enable-ssl option to configure script.
  18336. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18337. cannot permit absoluteURI as Request-URI.
  18338. * HttpConnection.cc: Added Referer support.
  18339. * main.cc: Added referer command-line option.
  18340. * main.cc: Added rety-wait command-line option.
  18341. * Exception.h: Fixed formating bug in Exception::setMsg()
  18342. * SocketCore.{h,cc}:
  18343. * Socket.{h, cc}:
  18344. * Request.cc:
  18345. * InitiateConnectionCommandFactory.cc:
  18346. * HttpRequestCommand.cc: Added HTTPS support.
  18347. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18348. for SocketCore.
  18349. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18350. size is wrong
  18351. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18352. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18353. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18354. * Release 0.1.0